@intent-hq/web 2.313.1 → 2.315.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (268) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{Dz6YK0K2.js → -EpgQj88.js} +1 -1
  3. package/web/app/immutable/chunks/{Cbh1BCiS.js → 17xFUwtQ.js} +2 -2
  4. package/web/app/immutable/chunks/{DBUJXdXR.js → 1r2-2NoO.js} +1 -1
  5. package/web/app/immutable/chunks/{CICEz2Qq.js → 2UOzeX2M.js} +1 -1
  6. package/web/app/immutable/chunks/{B88eFHaH.js → 2j5TR93A.js} +1 -1
  7. package/web/app/immutable/chunks/{BE-b7v7R.js → 45Qi4YFf.js} +1 -1
  8. package/web/app/immutable/chunks/{DPG0D59v.js → 4GsjZWx0.js} +1 -1
  9. package/web/app/immutable/chunks/{Bl_iEh1f.js → 6Rt8MvWn.js} +1 -1
  10. package/web/app/immutable/chunks/{CbpiaYyP.js → 6vbvyEDW.js} +1 -1
  11. package/web/app/immutable/chunks/{XzWc0fs1.js → 82qiqofo.js} +1 -1
  12. package/web/app/immutable/chunks/{HWP1BG2L.js → 9CybJbHN.js} +1 -1
  13. package/web/app/immutable/chunks/{_4p7wl12.js → 9GP6SafJ.js} +1 -1
  14. package/web/app/immutable/chunks/{DQNmQX9F.js → AJN9mSFe.js} +1 -1
  15. package/web/app/immutable/chunks/{qcgLBz2O.js → AStlTL_B.js} +1 -1
  16. package/web/app/immutable/chunks/{DGAww3vc.js → B-2_r0A5.js} +1 -1
  17. package/web/app/immutable/chunks/{DvC622kv.js → B-7spAu4.js} +1 -1
  18. package/web/app/immutable/chunks/{C6L7wkhi.js → B-8kHUzd.js} +1 -1
  19. package/web/app/immutable/chunks/{DTMKqgRU.js → B-P4veSb.js} +1 -1
  20. package/web/app/immutable/chunks/{3V4Tx4nH.js → B1h0QCy7.js} +1 -1
  21. package/web/app/immutable/chunks/{CqzZhYYx.js → B2jOlwPp.js} +1 -1
  22. package/web/app/immutable/chunks/{DkrnUdRW.js → B36kU0RI.js} +2 -2
  23. package/web/app/immutable/chunks/B3iaLYr6.js +1 -0
  24. package/web/app/immutable/chunks/{BAssmU5H.js → B6MVuluU.js} +1 -1
  25. package/web/app/immutable/chunks/{1wCbR4ud.js → B6o2T7JU.js} +1 -1
  26. package/web/app/immutable/chunks/{nHQ6ExVj.js → B7ZHl5_Y.js} +1 -1
  27. package/web/app/immutable/chunks/{C11wqToa.js → B9pexpLt.js} +1 -1
  28. package/web/app/immutable/chunks/{Bf1tCDQg.js → B9xm9DK7.js} +1 -1
  29. package/web/app/immutable/chunks/{BRNfUSNR.js → BA8g-07b.js} +1 -1
  30. package/web/app/immutable/chunks/{DzfdD6YD.js → BDIALQgX.js} +1 -1
  31. package/web/app/immutable/chunks/{Ctl9Ux7T.js → BGkYz2ud.js} +1 -1
  32. package/web/app/immutable/chunks/{4wFlAApS.js → BHJ90Mf-.js} +1 -1
  33. package/web/app/immutable/chunks/{D62gE1G0.js → BI7cYdMD.js} +3 -3
  34. package/web/app/immutable/chunks/{q4Mp6azq.js → BKJB_6oY.js} +4 -4
  35. package/web/app/immutable/chunks/{BssmMBl2.js → BL1pyapR.js} +1 -1
  36. package/web/app/immutable/chunks/BLUkoS8T.js +2 -0
  37. package/web/app/immutable/chunks/{CN_VK1iL.js → BLyNH-U9.js} +1 -1
  38. package/web/app/immutable/chunks/{DijSalri.js → BM62R-OM.js} +1 -1
  39. package/web/app/immutable/chunks/{DH9gMPGd.js → BMMcARVk.js} +1 -1
  40. package/web/app/immutable/chunks/{B6mHy78M.js → BP6KtsDA.js} +1 -1
  41. package/web/app/immutable/chunks/{BW6fyv0T.js → BPhG_Xtj.js} +2 -2
  42. package/web/app/immutable/chunks/{COpjcilg.js → BQupMMp-.js} +1 -1
  43. package/web/app/immutable/chunks/{BNasdn-P.js → BS-r7N3W.js} +1 -1
  44. package/web/app/immutable/chunks/{Cop9b2dY.js → BS1nq856.js} +1 -1
  45. package/web/app/immutable/chunks/{DoCNcHnE.js → BTxL9if-.js} +3 -3
  46. package/web/app/immutable/chunks/{ZUZF8K3P.js → BW4xwD_u.js} +1 -1
  47. package/web/app/immutable/chunks/{By8e6LYt.js → BW4yj8m7.js} +1 -1
  48. package/web/app/immutable/chunks/{Cb6WrSKY.js → BWdRpmh3.js} +1 -1
  49. package/web/app/immutable/chunks/{usUeYWMe.js → BX6Kopvz.js} +1 -1
  50. package/web/app/immutable/chunks/{CoKEteoj.js → BYevJ1Pj.js} +1 -1
  51. package/web/app/immutable/chunks/{BgyuoEGq.js → BZmsmL8P.js} +1 -1
  52. package/web/app/immutable/chunks/{EEJgvLyS.js → BbGlxyDx.js} +1 -1
  53. package/web/app/immutable/chunks/{DxZSyekB.js → BcI-R0js.js} +1 -1
  54. package/web/app/immutable/chunks/{qr2Z9jBR.js → Bg4RpIu7.js} +1 -1
  55. package/web/app/immutable/chunks/{DulsjrO4.js → BhfbTmVQ.js} +1 -1
  56. package/web/app/immutable/chunks/{DmsGklpx.js → Bjzk9M3D.js} +1 -1
  57. package/web/app/immutable/chunks/{D47PZJI_.js → BkDFndY7.js} +1 -1
  58. package/web/app/immutable/chunks/{BaWcyleE.js → BlQxdvN2.js} +1 -1
  59. package/web/app/immutable/chunks/{D84mJH5u.js → BoXSGPEf.js} +2 -2
  60. package/web/app/immutable/chunks/{B8VhjfbW.js → Br9IA-Ja.js} +1 -1
  61. package/web/app/immutable/chunks/{OpYhygEs.js → BsB-PCKs.js} +1 -1
  62. package/web/app/immutable/chunks/{C-fnz5X4.js → BsZr4pOk.js} +1 -1
  63. package/web/app/immutable/chunks/{y_yPvfwh.js → BwdewdLu.js} +1 -1
  64. package/web/app/immutable/chunks/{NYwlcfYt.js → BzVDQRgL.js} +1 -1
  65. package/web/app/immutable/chunks/{CQbq623l.js → C-jm3uXv.js} +1 -1
  66. package/web/app/immutable/chunks/{D-8WC0DU.js → C3vS1byi.js} +1 -1
  67. package/web/app/immutable/chunks/{BMkc6ng0.js → C4C2GjZ7.js} +1 -1
  68. package/web/app/immutable/chunks/{CAn8DYJP.js → C5-HTPPK.js} +1 -1
  69. package/web/app/immutable/chunks/{BCoW5DN6.js → C5DgMO0u.js} +3 -3
  70. package/web/app/immutable/chunks/{Y6LratEc.js → C7ilG2WB.js} +1 -1
  71. package/web/app/immutable/chunks/{DNYGh_FV.js → C8LKnqUt.js} +1 -1
  72. package/web/app/immutable/chunks/CA0a6eNp.js +1 -0
  73. package/web/app/immutable/chunks/{UuiGcpAE.js → CBRfvExq.js} +1 -1
  74. package/web/app/immutable/chunks/{DESxr5Rj.js → CD3v15Ti.js} +1 -1
  75. package/web/app/immutable/chunks/{B_CpN824.js → CEoXgs7Q.js} +1 -1
  76. package/web/app/immutable/chunks/{BUjtm23k.js → CFrKPVp-.js} +1 -1
  77. package/web/app/immutable/chunks/{DkI_jPOw.js → CHXEA9Fi.js} +4 -4
  78. package/web/app/immutable/chunks/{C6aPQebU.js → CIOSdkrK.js} +1 -1
  79. package/web/app/immutable/chunks/{Io79CQwx.js → CIkNpS3P.js} +1 -1
  80. package/web/app/immutable/chunks/{CE8vXfAM.js → CJzNuuJO.js} +1 -1
  81. package/web/app/immutable/chunks/{DlKVdWHt.js → CLGCkXvY.js} +15 -15
  82. package/web/app/immutable/chunks/{BOQCK4ni.js → CLSvSGMY.js} +1 -1
  83. package/web/app/immutable/chunks/{C2m8Iivv.js → CLkwa_R_.js} +1 -1
  84. package/web/app/immutable/chunks/{C8_w7W1W.js → CMMABWQi.js} +1 -1
  85. package/web/app/immutable/chunks/{BRIkzo-E.js → CMqLPRJh.js} +1 -1
  86. package/web/app/immutable/chunks/{BjqGlL_Y.js → CPS8yuKp.js} +1 -1
  87. package/web/app/immutable/chunks/{CsTPrgDm.js → CPxyG9KJ.js} +3 -3
  88. package/web/app/immutable/chunks/{dX_oN6Xt.js → CS74N62e.js} +1 -1
  89. package/web/app/immutable/chunks/{CMvHzajx.js → CTKJUmq_.js} +1 -1
  90. package/web/app/immutable/chunks/{a6K5_NPk.js → CTX2aXUF.js} +1 -1
  91. package/web/app/immutable/chunks/{DsU6W5Yf.js → CUjmBXfD.js} +1 -1
  92. package/web/app/immutable/chunks/{yNufUFm8.js → CV9PEzoB.js} +1 -1
  93. package/web/app/immutable/chunks/{DFq6CFhq.js → CVr9pwFM.js} +1 -1
  94. package/web/app/immutable/chunks/{CTfHCA2Y.js → CXnUJFR2.js} +1 -1
  95. package/web/app/immutable/chunks/{Dvil1FCS.js → CZBUuakO.js} +2 -2
  96. package/web/app/immutable/chunks/{Bc2zOKbx.js → CZikPtVV.js} +1 -1
  97. package/web/app/immutable/chunks/{DD-f8Y3V.js → CfHhYnBc.js} +1 -1
  98. package/web/app/immutable/chunks/{BHqHNrOT.js → Ch8MPJbT.js} +1 -1
  99. package/web/app/immutable/chunks/{BtAYzBSd.js → ChLTaT6L.js} +1 -1
  100. package/web/app/immutable/chunks/{DUdpP1ED.js → CiJSzLSf.js} +1 -1
  101. package/web/app/immutable/chunks/{Bfc094Ub.js → CjCXWRTy.js} +1 -1
  102. package/web/app/immutable/chunks/{DwPGocEY.js → CjGoJ5M9.js} +2 -2
  103. package/web/app/immutable/chunks/{AGSVFpXc.js → Clc6wozH.js} +1 -1
  104. package/web/app/immutable/chunks/{CG-371Y6.js → ClgzRlxs.js} +1 -1
  105. package/web/app/immutable/chunks/{BIZcuYRW.js → CnodaVJ0.js} +2 -2
  106. package/web/app/immutable/chunks/{2O2vJlPl.js → Co0AVCAv.js} +1 -1
  107. package/web/app/immutable/chunks/{D-rJNj43.js → CoJeJSLc.js} +1 -1
  108. package/web/app/immutable/chunks/{C9gP-gRX.js → CpELl9t1.js} +3 -3
  109. package/web/app/immutable/chunks/{CXNySl0c.js → Cpn3qWfd.js} +1 -1
  110. package/web/app/immutable/chunks/{DOnT_3WY.js → CpnUYFMu.js} +1 -1
  111. package/web/app/immutable/chunks/{DO2cS8JO.js → CqSXeJtk.js} +1 -1
  112. package/web/app/immutable/chunks/{CWaCCzEn.js → CrskbTlC.js} +1 -1
  113. package/web/app/immutable/chunks/{D0Dsw2tV.js → Csa9LtrA.js} +1 -1
  114. package/web/app/immutable/chunks/{DgfdSIWo.js → Cso7NntT.js} +1 -1
  115. package/web/app/immutable/chunks/{CzRl1R1n.js → CtO7SsM-.js} +1 -1
  116. package/web/app/immutable/chunks/{DY6JypjK.js → Cti1rV_x.js} +3 -3
  117. package/web/app/immutable/chunks/{Bvq2wF7r.js → Cufik1EG.js} +1 -1
  118. package/web/app/immutable/chunks/{CBwn70Pq.js → Cuq9exmb.js} +1 -1
  119. package/web/app/immutable/chunks/{DAtBKOQq.js → CwR0GP6W.js} +1 -1
  120. package/web/app/immutable/chunks/{CYmZhCDN.js → Cwy3o6zK.js} +1 -1
  121. package/web/app/immutable/chunks/{hacdNVQl.js → Czd6tfZA.js} +1 -1
  122. package/web/app/immutable/chunks/{qIh42_HI.js → CzdJ5DN4.js} +1 -1
  123. package/web/app/immutable/chunks/{C-li4cfO.js → CzzsK_z0.js} +1 -1
  124. package/web/app/immutable/chunks/{D-XHjwsv.js → D-b9zJlt.js} +1 -1
  125. package/web/app/immutable/chunks/{B1YnvfKo.js → D0UXbQbI.js} +1 -1
  126. package/web/app/immutable/chunks/{7ZJvg7ev.js → D0UrvUQM.js} +1 -1
  127. package/web/app/immutable/chunks/{6rzwTXJx.js → D1h8l9Ve.js} +1 -1
  128. package/web/app/immutable/chunks/{BDGDJyji.js → D22I-TIV.js} +1 -1
  129. package/web/app/immutable/chunks/{DcYvv2Iw.js → D2QAvk7S.js} +1 -1
  130. package/web/app/immutable/chunks/{C5Nz-crT.js → D38Ru3z6.js} +1 -1
  131. package/web/app/immutable/chunks/{B2st7VbN.js → D43c7AFS.js} +1 -1
  132. package/web/app/immutable/chunks/{x8WBzABF.js → D441f0lY.js} +46 -46
  133. package/web/app/immutable/chunks/{BcVu_y1Z.js → D56XXK4f.js} +1 -1
  134. package/web/app/immutable/chunks/{DQRxUuCh.js → D5arKTNF.js} +1 -1
  135. package/web/app/immutable/chunks/{Bc3_ahSr.js → D60vJvLR.js} +1 -1
  136. package/web/app/immutable/chunks/{DNo4fphO.js → D8NOVJ50.js} +1 -1
  137. package/web/app/immutable/chunks/{C2Cq4c9l.js → D90jQ3ZZ.js} +1 -1
  138. package/web/app/immutable/chunks/{gsqPz4Y0.js → D9Da4bYx.js} +1 -1
  139. package/web/app/immutable/chunks/{tSV1knJu.js → DBOoSzzw.js} +1 -1
  140. package/web/app/immutable/chunks/{CzrG_lpv.js → DCPTVyDU.js} +21 -21
  141. package/web/app/immutable/chunks/{CW1tBVLY.js → DCdW5wmG.js} +1 -1
  142. package/web/app/immutable/chunks/{xfGEIVf6.js → DDIYUGOD.js} +1 -1
  143. package/web/app/immutable/chunks/{CQMd4GmI.js → DE0RJrWM.js} +1 -1
  144. package/web/app/immutable/chunks/{BPk16bSc.js → DEmaG7Ya.js} +1 -1
  145. package/web/app/immutable/chunks/{Ccf4dYFA.js → DGvAL7MJ.js} +1 -1
  146. package/web/app/immutable/chunks/{A3beYjJS.js → DHNO0898.js} +4 -4
  147. package/web/app/immutable/chunks/{CeQYwwry.js → DIYS_mcw.js} +1 -1
  148. package/web/app/immutable/chunks/{9sI_nbHm.js → DJZIU3cR.js} +1 -1
  149. package/web/app/immutable/chunks/DLueLf8l.js +4 -0
  150. package/web/app/immutable/chunks/{992RyGqf.js → DM1ZHS3Y.js} +1 -1
  151. package/web/app/immutable/chunks/{C6XSZJri.js → DMKbkua9.js} +1 -1
  152. package/web/app/immutable/chunks/DMkYHym4.js +324 -0
  153. package/web/app/immutable/chunks/{DUrqH6OL.js → DNFEdIdv.js} +1 -1
  154. package/web/app/immutable/chunks/{_bllxFVr.js → DNOlba2e.js} +1 -1
  155. package/web/app/immutable/chunks/{Cb7SCycF.js → DQ13AkOA.js} +1 -1
  156. package/web/app/immutable/chunks/{BVkJyN1U.js → DQHfY0wY.js} +2 -2
  157. package/web/app/immutable/chunks/{DWccAyE3.js → DRONnAVY.js} +1 -1
  158. package/web/app/immutable/chunks/{CcGPnEzl.js → DSyGSHPH.js} +1 -1
  159. package/web/app/immutable/chunks/{BESrHe_0.js → DTsLO4aV.js} +1 -1
  160. package/web/app/immutable/chunks/{CA7UZgrf.js → DUjsEo3X.js} +1 -1
  161. package/web/app/immutable/chunks/{AHQMxoVk.js → DV6UkZ5a.js} +1 -1
  162. package/web/app/immutable/chunks/DW_tfZdS.js +12 -0
  163. package/web/app/immutable/chunks/{aegF9YRH.js → DWhtEEhJ.js} +1 -1
  164. package/web/app/immutable/chunks/{DwgP_YcK.js → DXHWw6vt.js} +1 -1
  165. package/web/app/immutable/chunks/{CxO_9nE4.js → DXYkWPe_.js} +1 -1
  166. package/web/app/immutable/chunks/{Bc-8qHYh.js → DYlSkPA-.js} +1 -1
  167. package/web/app/immutable/chunks/{B6QJA3k0.js → DZhHioOL.js} +1 -1
  168. package/web/app/immutable/chunks/{CKWaKOqs.js → DaCSSt4n.js} +1 -1
  169. package/web/app/immutable/chunks/{4CMzT_BI.js → DbHbiWFj.js} +1 -1
  170. package/web/app/immutable/chunks/{DhAv1XMF.js → DbrsPlQk.js} +1 -1
  171. package/web/app/immutable/chunks/{TP4sXUzS.js → DcBvBE74.js} +1 -1
  172. package/web/app/immutable/chunks/{CKH-l4ig.js → Dd-BRJYG.js} +1 -1
  173. package/web/app/immutable/chunks/{DL9BUVq-.js → DdHsJ0nA.js} +1 -1
  174. package/web/app/immutable/chunks/{BDXCy3lH.js → Deg5jWhG.js} +1 -1
  175. package/web/app/immutable/chunks/DhLTyNrj.js +1 -0
  176. package/web/app/immutable/chunks/{DW9ZR5Up.js → DhZDbKoP.js} +1 -1
  177. package/web/app/immutable/chunks/{B2RRuLl5.js → Dj42fWMH.js} +1 -1
  178. package/web/app/immutable/chunks/{CCCBFmfe.js → DmYZE-MO.js} +3 -3
  179. package/web/app/immutable/chunks/{kdf0l6Z-.js → DnMKNs0X.js} +3 -3
  180. package/web/app/immutable/chunks/{DwbQaKgL.js → DnouAZbM.js} +1 -1
  181. package/web/app/immutable/chunks/{C0VJEx2v.js → Dr41JWYu.js} +1 -1
  182. package/web/app/immutable/chunks/{Bu6sHonm.js → DrxYPSVr.js} +1 -1
  183. package/web/app/immutable/chunks/DsAKyTjw.js +4 -0
  184. package/web/app/immutable/chunks/{D2uybU7F.js → DsRw0NLx.js} +2 -2
  185. package/web/app/immutable/chunks/DuQiXW7a.js +1 -0
  186. package/web/app/immutable/chunks/{CTX5Fuc9.js → Dvap-Bcg.js} +2 -2
  187. package/web/app/immutable/chunks/{DSOeLuN2.js → DxI6kRYN.js} +1 -1
  188. package/web/app/immutable/chunks/{CelhKzDn.js → DyHgOFFg.js} +1 -1
  189. package/web/app/immutable/chunks/{sg8Cer3T.js → E-3i0Fur.js} +3 -3
  190. package/web/app/immutable/chunks/FAATYx56.js +1 -0
  191. package/web/app/immutable/chunks/H0ZjbDhN.js +1 -0
  192. package/web/app/immutable/chunks/{CBzaXebB.js → HpMdkrj7.js} +1 -1
  193. package/web/app/immutable/chunks/{CJtH5G9P.js → IIdGbw6g.js} +1 -1
  194. package/web/app/immutable/chunks/{MgJqQwQp.js → JchQH-Q8.js} +1 -1
  195. package/web/app/immutable/chunks/{DSRwOSd4.js → Pb7J418u.js} +1 -1
  196. package/web/app/immutable/chunks/{BQFqw3YD.js → PeOOhaLn.js} +1 -1
  197. package/web/app/immutable/chunks/{C48G3Oh4.js → Q95-G3Tv.js} +1 -1
  198. package/web/app/immutable/chunks/{B-xGvc_0.js → QihShgnK.js} +1 -1
  199. package/web/app/immutable/chunks/{7IyNIHph.js → Swkg1pRS.js} +1 -1
  200. package/web/app/immutable/chunks/UWOPR8uY.js +2 -0
  201. package/web/app/immutable/chunks/{LSDVwgG8.js → Uxor6krE.js} +2 -2
  202. package/web/app/immutable/chunks/{C8PuI333.js → WVbSHjXl.js} +1 -1
  203. package/web/app/immutable/chunks/{DOzphY7c.js → ZaCkwnYl.js} +1 -1
  204. package/web/app/immutable/chunks/{qHcHiO2c.js → ZpSdOcUX.js} +1 -1
  205. package/web/app/immutable/chunks/{B0qtRhuw.js → _pUPWAkF.js} +1 -1
  206. package/web/app/immutable/chunks/{BGGxKX5q.js → bS-VFUYb.js} +1 -1
  207. package/web/app/immutable/chunks/cE62vW_i.js +2 -0
  208. package/web/app/immutable/chunks/{D9SqGY86.js → dRknRrDn.js} +1 -1
  209. package/web/app/immutable/chunks/{DKXEy5Lq.js → dUOQ5AaY.js} +1 -1
  210. package/web/app/immutable/chunks/{DYrH45vr.js → daoeIyG_.js} +1 -1
  211. package/web/app/immutable/chunks/{nt8jKVrH.js → dyJEvFNA.js} +1 -1
  212. package/web/app/immutable/chunks/{19F8thw1.js → eYob4ynm.js} +1 -1
  213. package/web/app/immutable/chunks/{AF5xKPfV.js → etKulcEH.js} +1 -1
  214. package/web/app/immutable/chunks/{ClfTOQ5L.js → fKsoycU6.js} +1 -1
  215. package/web/app/immutable/chunks/{Cpwl5RRn.js → gIgvBwPt.js} +1 -1
  216. package/web/app/immutable/chunks/h8IoI-w7.js +9 -0
  217. package/web/app/immutable/chunks/{DiCMHWTR.js → hUiIfi2t.js} +1 -1
  218. package/web/app/immutable/chunks/{BxiJOwnz.js → hYDzZ9as.js} +1 -1
  219. package/web/app/immutable/chunks/{CP06IBS7.js → i8qNDIdz.js} +1 -1
  220. package/web/app/immutable/chunks/{QCq950da.js → j-Hd81da.js} +1 -1
  221. package/web/app/immutable/chunks/{C1XicA-w.js → ja3pdsid.js} +1 -1
  222. package/web/app/immutable/chunks/{D4qqUzAr.js → jn5owXje.js} +1 -1
  223. package/web/app/immutable/chunks/{CBTot2K1.js → qmO_2WOw.js} +1 -1
  224. package/web/app/immutable/chunks/{MED7rLah.js → r3MPkSU0.js} +1 -1
  225. package/web/app/immutable/chunks/{jnmyog2T.js → tVfn9CHP.js} +1 -1
  226. package/web/app/immutable/chunks/{B3W2oJ3u.js → uDDQZzPe.js} +1 -1
  227. package/web/app/immutable/chunks/{dKjrvSqn.js → wc9xM_2L.js} +1 -1
  228. package/web/app/immutable/chunks/{Br5d6l04.js → yJa3kvR1.js} +1 -1
  229. package/web/app/immutable/chunks/{C6gBBEr6.js → ye8JXfxU.js} +1 -1
  230. package/web/app/immutable/entry/{app.BlqNT7Cr.js → app.rwgCwLre.js} +3 -3
  231. package/web/app/immutable/entry/start.CHX_XseY.js +1 -0
  232. package/web/app/immutable/nodes/{0.ShO9PneW.js → 0.CAiwn7VU.js} +1 -1
  233. package/web/app/immutable/nodes/{1.CWY9gUhn.js → 1.4C-qOEjD.js} +1 -1
  234. package/web/app/immutable/nodes/{10.BPcvGGhE.js → 10.CSnI2pUC.js} +1 -1
  235. package/web/app/immutable/nodes/{11.BtNxR4dm.js → 11.DeNilyai.js} +1 -1
  236. package/web/app/immutable/nodes/{12.DQmthXqN.js → 12.ySK4H8-2.js} +1 -1
  237. package/web/app/immutable/nodes/{13.pfWPVnQT.js → 13._q8cT7vQ.js} +3 -3
  238. package/web/app/immutable/nodes/{14.C46jjudj.js → 14.BVMi0m8a.js} +1 -1
  239. package/web/app/immutable/nodes/{15.CkuJDDnR.js → 15.DZYm8wgy.js} +1 -1
  240. package/web/app/immutable/nodes/{16.DxDrMp3A.js → 16.2kka0tX2.js} +2 -2
  241. package/web/app/immutable/nodes/{2.BY4xMtJS.js → 2.BOqim1UO.js} +4 -4
  242. package/web/app/immutable/nodes/{3.RPzUk4Sw.js → 3.rvoF1b9l.js} +1 -1
  243. package/web/app/immutable/nodes/{4.ZFgOw7Ux.js → 4.COWGFPUE.js} +1 -1
  244. package/web/app/immutable/nodes/5.ClB4PiMc.js +5 -0
  245. package/web/app/immutable/nodes/{6.BqCf3vb3.js → 6.B09HHXQ8.js} +1 -1
  246. package/web/app/immutable/nodes/{7.CJYSYpjI.js → 7.ivApEpSz.js} +1 -1
  247. package/web/app/immutable/nodes/8.BSIvYD1L.js +15 -0
  248. package/web/app/immutable/nodes/{9.p1SC8ote.js → 9.C9K9J_Xm.js} +5 -5
  249. package/web/app/version.json +1 -1
  250. package/web/generated/paraglide.js +49 -49
  251. package/web/index.html +18 -18
  252. package/web/app/immutable/chunks/-URcs0EB.js +0 -4
  253. package/web/app/immutable/chunks/2zKcFAvZ.js +0 -1
  254. package/web/app/immutable/chunks/B6Eksue8.js +0 -4
  255. package/web/app/immutable/chunks/BAqR9jtB.js +0 -1
  256. package/web/app/immutable/chunks/BSwWMzab.js +0 -9
  257. package/web/app/immutable/chunks/B_-1t0b5.js +0 -1
  258. package/web/app/immutable/chunks/C6krgOsR.js +0 -324
  259. package/web/app/immutable/chunks/C80u9j_3.js +0 -2
  260. package/web/app/immutable/chunks/CUPAS0zd.js +0 -1
  261. package/web/app/immutable/chunks/CZI4_vlI.js +0 -1
  262. package/web/app/immutable/chunks/C_KYY7ZK.js +0 -12
  263. package/web/app/immutable/chunks/D5XH3yqM.js +0 -2
  264. package/web/app/immutable/chunks/DChetNRi.js +0 -2
  265. package/web/app/immutable/chunks/jq7ACadW.js +0 -1
  266. package/web/app/immutable/entry/start.DaNUqzZq.js +0 -1
  267. package/web/app/immutable/nodes/5.BKaPpN7j.js +0 -5
  268. package/web/app/immutable/nodes/8.B_FmoLB7.js +0 -15
@@ -1 +1 @@
1
- import{C as T}from"./BvFAWM27.js";import{a as b}from"./BJzHxIyr.js";import{y as M}from"./C8_w7W1W.js";import{Hp as n,Cv as v,B_ as _,g as y,tR as E,ts as C,Bi as D,BA as O,Dv as H,Bm as L}from"./BSwWMzab.js";import{aX as p}from"./DY6JypjK.js";import{d as P}from"./B0Z-1lwJ.js";import{n as R}from"./D2uybU7F.js";import{o as B,e as x}from"./CxO_9nE4.js";const f=new b("OpenMessage"),A=150,S=15e3,W=2,q=[150,400,800,1500,3e3],F=T;let g;function k(e){return new Promise(t=>setTimeout(t,e))}function m(e,t){const s=n.state,a=s.agentSessions?.byAgentId[e]?.messages,o=s.agentSessions?.historySegmentsByAgentId?.[e]?.messages;return!!(a?.some(i=>i.id===t)||o?.some(i=>i.id===t))}function N(e){return n.state.chatState?.byAgentId[e]?.transcriptHydration}async function G(e,t,s){const a=Date.now()+S;let o=0;for(;Date.now()<a;){if(s.aborted)return!1;if(m(e,t))return!0;if(o>=W&&N(e)==="settled"&&!p.select(n.state,e).initialHistoryPending)return!1;o++,await k(A)}return!s.aborted&&m(e,t)}async function Y(e,t,s,a){const o=Date.now()+S;for(;p.select(n.state,e).initialHistoryPending;){if(a?.aborted||Date.now()>=o)return!1;await k(A)}const i=n.state.agentSessions?.byAgentId[e];if(!i||a?.aborted)return!1;if(m(e,t))return!0;s??=i.workspaceId;const d=p.select(n.state,e);let c={nextToken:d.scrollbackOlderToken,prevToken:d.scrollbackGapToken};n.dispatch(D(e,"seek"));const l=p.select(n.state,e).scrollbackDiscardEpoch,u=()=>!!n.state.agentSessions?.byAgentId[e]&&p.select(n.state,e).scrollbackDiscardEpoch===l;try{const r=await M.agents.getConversation(e,F,void 0,t,void 0,s);return a?.aborted||!u()||!r.messages.some(w=>w.id===t)?!1:(n.dispatch(O(e,r.messages,r.messages[0]?.seq)),r.nextToken===null&&n.dispatch(H(e)),c={nextToken:r.nextToken,prevToken:r.prevToken},m(e,t))}catch(r){return f.warn("[seekConversationToMessage] Seek fetch failed (message may no longer exist)",{agentId:e,messageId:t,error:r}),!1}finally{u()&&n.dispatch(L(e,c))}}async function z(e){if(e.signal?.aborted)return;g?.abort(),g=new AbortController;const t=e.signal?AbortSignal.any([g.signal,e.signal]):g.signal,{workspaceId:s,agentId:a,messageId:o,query:i,targetTabId:d}=e;f.info("[openMessage] Deep-opening conversation at message",{workspaceId:s,agentId:a,messageId:o});const c=s===y;c&&!e.contentAlreadyOpen&&(n.dispatch(v(a)),n.dispatch(_(y,a)),n.dispatch(E("chief")));const l=c?"/":x(s);if(!e.contentAlreadyOpen&&typeof window<"u"&&window.location.pathname!==l){try{c?await R(l):await B(s)}catch(h){f.warn("[openMessage] Workspace navigation failed",{workspaceId:s,error:h});return}if(t.aborted)return;if(window.location.pathname!==l){f.warn("[openMessage] Workspace navigation was not confirmed",{workspaceId:s});return}}!e.contentAlreadyOpen&&!c&&n.dispatch(C(s,{agentId:a}));const u=await G(a,o,t)?!0:await Y(a,o,s,t);if(t.aborted)return;if(!u){f.warn("[openMessage] Message not found; conversation opened at tail",{agentId:a,messageId:o});return}const r=`open-message-${Date.now()}-${Math.random().toString(36).slice(2)}`,w={agentId:a,messageId:o,query:i,targetTabId:d,requestId:r,signal:t};for(const h of q)setTimeout(()=>{t.aborted||P("chat:open-message",w)},h)}export{z as openMessage,Y as seekConversationToMessage};
1
+ import{C as T}from"./BvFAWM27.js";import{a as b}from"./BJzHxIyr.js";import{y as M}from"./CMMABWQi.js";import{Hp as n,Cv as v,B_ as _,g as y,tR as E,ts as C,Bi as D,BA as O,Dv as H,Bm as L}from"./h8IoI-w7.js";import{aX as p}from"./Cti1rV_x.js";import{d as P}from"./B0Z-1lwJ.js";import{n as R}from"./DsRw0NLx.js";import{o as B,e as x}from"./DXYkWPe_.js";const f=new b("OpenMessage"),A=150,S=15e3,W=2,q=[150,400,800,1500,3e3],F=T;let g;function k(e){return new Promise(t=>setTimeout(t,e))}function m(e,t){const s=n.state,a=s.agentSessions?.byAgentId[e]?.messages,o=s.agentSessions?.historySegmentsByAgentId?.[e]?.messages;return!!(a?.some(i=>i.id===t)||o?.some(i=>i.id===t))}function N(e){return n.state.chatState?.byAgentId[e]?.transcriptHydration}async function G(e,t,s){const a=Date.now()+S;let o=0;for(;Date.now()<a;){if(s.aborted)return!1;if(m(e,t))return!0;if(o>=W&&N(e)==="settled"&&!p.select(n.state,e).initialHistoryPending)return!1;o++,await k(A)}return!s.aborted&&m(e,t)}async function Y(e,t,s,a){const o=Date.now()+S;for(;p.select(n.state,e).initialHistoryPending;){if(a?.aborted||Date.now()>=o)return!1;await k(A)}const i=n.state.agentSessions?.byAgentId[e];if(!i||a?.aborted)return!1;if(m(e,t))return!0;s??=i.workspaceId;const d=p.select(n.state,e);let c={nextToken:d.scrollbackOlderToken,prevToken:d.scrollbackGapToken};n.dispatch(D(e,"seek"));const l=p.select(n.state,e).scrollbackDiscardEpoch,u=()=>!!n.state.agentSessions?.byAgentId[e]&&p.select(n.state,e).scrollbackDiscardEpoch===l;try{const r=await M.agents.getConversation(e,F,void 0,t,void 0,s);return a?.aborted||!u()||!r.messages.some(w=>w.id===t)?!1:(n.dispatch(O(e,r.messages,r.messages[0]?.seq)),r.nextToken===null&&n.dispatch(H(e)),c={nextToken:r.nextToken,prevToken:r.prevToken},m(e,t))}catch(r){return f.warn("[seekConversationToMessage] Seek fetch failed (message may no longer exist)",{agentId:e,messageId:t,error:r}),!1}finally{u()&&n.dispatch(L(e,c))}}async function z(e){if(e.signal?.aborted)return;g?.abort(),g=new AbortController;const t=e.signal?AbortSignal.any([g.signal,e.signal]):g.signal,{workspaceId:s,agentId:a,messageId:o,query:i,targetTabId:d}=e;f.info("[openMessage] Deep-opening conversation at message",{workspaceId:s,agentId:a,messageId:o});const c=s===y;c&&!e.contentAlreadyOpen&&(n.dispatch(v(a)),n.dispatch(_(y,a)),n.dispatch(E("chief")));const l=c?"/":x(s);if(!e.contentAlreadyOpen&&typeof window<"u"&&window.location.pathname!==l){try{c?await R(l):await B(s)}catch(h){f.warn("[openMessage] Workspace navigation failed",{workspaceId:s,error:h});return}if(t.aborted)return;if(window.location.pathname!==l){f.warn("[openMessage] Workspace navigation was not confirmed",{workspaceId:s});return}}!e.contentAlreadyOpen&&!c&&n.dispatch(C(s,{agentId:a}));const u=await G(a,o,t)?!0:await Y(a,o,s,t);if(t.aborted)return;if(!u){f.warn("[openMessage] Message not found; conversation opened at tail",{agentId:a,messageId:o});return}const r=`open-message-${Date.now()}-${Math.random().toString(36).slice(2)}`,w={agentId:a,messageId:o,query:i,targetTabId:d,requestId:r,signal:t};for(const h of q)setTimeout(()=>{t.aborted||P("chat:open-message",w)},h)}export{z as openMessage,Y as seekConversationToMessage};
@@ -1 +1 @@
1
- import{b as s}from"./q4Mp6azq.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I};
1
+ import{b as s}from"./BKJB_6oY.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/B6Eksue8.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/BAqR9jtB.js","/app/immutable/chunks/DiCMHWTR.js","/app/immutable/chunks/Cop9b2dY.js","/app/immutable/chunks/Bl_iEh1f.js","/app/immutable/chunks/BPk16bSc.js","/app/immutable/chunks/UyBYtOpv.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/C9gP-gRX.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/B2RRuLl5.js","/app/immutable/chunks/UuiGcpAE.js","/app/immutable/chunks/C11wqToa.js","/app/immutable/chunks/BlOn95cv.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/XzWc0fs1.js","/app/immutable/chunks/BRNfUSNR.js","/app/immutable/chunks/BSwWMzab.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/DO2cS8JO.js","/app/immutable/chunks/7IyNIHph.js","/app/immutable/chunks/DKXEy5Lq.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/DH9gMPGd.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/assets/observe-overflow.CJJmE3_P.css","/app/immutable/chunks/-URcs0EB.js","/app/immutable/chunks/C0VJEx2v.js","/app/immutable/chunks/BtAYzBSd.js","/app/immutable/chunks/DY6JypjK.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/Ccf4dYFA.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/7ZJvg7ev.js","/app/immutable/assets/pending-agent-deletions.UE5obH5A.css","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/C5Nz-crT.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/BgyuoEGq.js","/app/immutable/chunks/Bc-8qHYh.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BMkc6ng0.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/C80u9j_3.js","/app/immutable/chunks/BHqHNrOT.js","/app/immutable/chunks/CzRl1R1n.js","/app/immutable/chunks/D2uybU7F.js","/app/immutable/chunks/BOQCK4ni.js","/app/immutable/chunks/BW6fyv0T.js","/app/immutable/chunks/CJtH5G9P.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/CxO_9nE4.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 D,by as jt,b as Wt,br as Lf,bu as Mt,bs as oa,bt as ci,b7 as tl,ba as Mf,bl as Nf,bb as Of,bm as Df,a$ as Bf,b9 as Ff,b8 as zf,b2 as Hf,bf as jf,bg as Wf,bk as Uf,be as qf,bn as Vf,b0 as Kf,b4 as Gf,bi as Jf,bh as Yf,b6 as Xf,b5 as Zf,b3 as Qf,bd as $f,bc as ep,bj as tp,b1 as rp,_ as np}from"./BAqR9jtB.js";import{bI as ap,bj as hs,aG as sp,bs as Ut,aD as e,a5 as I,bS as m,bA as w,W as d,bn as qt,c9 as u,aA as x,a7 as wt,ay as Ue,be as ar,b$ as At,aC as ha,bl as L,b_ as k,bO as y,aB as S,bo as bs,ca as kt,bH as M,bV as _e,br as qr,bk as ys,c0 as Jn,ai as Pa,cd as is,aw as Cn,a as op,aj as Rr,c7 as ip,c6 as rl,c5 as Nn,bf as Bs,bz as qc}from"./DYhIMPy1.js";import{E as Fs,I as lp,x as cp}from"./UuiGcpAE.js";import{c as dp,s as ae,a as On,l as Pn,f as En,d as ur,k as mt,I as _s,h as Pt,i as Tr,o as up,j as fp,g as pp,m as gp}from"./BPk16bSc.js";import{s as fn}from"./DiCMHWTR.js";import{c as Zr}from"./B2RRuLl5.js";import{H as Bo,t as lr,n as vp,i as nl,u as al}from"./Bl_iEh1f.js";import{b as gr}from"./BaIAhI85.js";import{h as Vc,bt as mp,cI as hp,dB as bp,dm as yp,aw as _p,cs as xp,a1 as wp,cO as kp,dl as ls,aB as Xs,c1 as Sp,H as Ip,c as Cp,$ as sl,cU as Ep,bR as Pp,L as Ap,di as Tp,V as Rp,ds as Lp,ae as Mp,as as Np,f as Op,t as Dp}from"./DY6JypjK.js";import{c as Bp}from"./D-62MVd3.js";import{n as Qn,w as Fp,C as Kc,M as zp,R as Hp}from"./Bc-8qHYh.js";import{f as yt,ap as Ua,ai as jp,am as Fo,bc as Wp}from"./C9gP-gRX.js";import{am as Up,aa as ol,_ as qp,az as Vp,ab as Kp,i as Gp,aR as Jp,I as Yp,R as Xp,ar as Zp,af as Qp,$ as $p,b as il,as as eg,s as tg,o as rg,aX as ng,n as ag,aZ as zo,A as ll,ae as sg,aY as og,ao as Gc,T as Jc,a6 as ig,a5 as cl,L as dl}from"./A3beYjJS.js";import{c$ as lg,F as Tt,bh as Ho,bL as cg,ap as dg,aQ as ug,cL as fg,bl as di,bB as pg,aG as Yc,aL as ui,c_ as zs,ac as jo,cn as gg,cd as vg,ci as fi,cF as Xc,bs as mg,e as hg,b$ as ul,c9 as bg,cl as yg,cW as Zc,bV as fl,b8 as ho,be as ns,aF as _g,aA as Wo,av as Qc,bc as $c,bC as xg,B as wg,bv as kg,a7 as ed,ch as Sg,am as td,cN as rd,cJ as pl,at as nd,aK as gl,a1 as Ig,cv as Cg,cU as Eg,bO as ad,bn as Pg,c5 as vl,ao as sd,az as Ag,aa as Tg,a8 as Rg}from"./DKXEy5Lq.js";import{c as od}from"./ChTqQfQN.js";import{h as Lg}from"./7ZJvg7ev.js";import{Hp as Nt,bP as Mg,re as ml,rQ as Ng,Ic as Og,Ii as Dg,g as id,Hb as Bg,n3 as ld,nj as cd,ni as dd,mY as Zs,pz as pi,x4 as Fg,u8 as Rs,ts as Uo,ua as zg,mM as ud,Hu as Hg,sm as jg,o7 as fd,qD as gi,lt as hl,a6 as bl,qa as Wg,q6 as Ug,qb as qg,q2 as Vg,q8 as Kg,t_ as Gg,zC as pd,zG as gd,nk as yl,bi as qo,FW as Jg,H7 as Yg,ne as Xg,vb as Zg,vc as Qg,va as _l,AD as Kn,cu as $g,ci as ev,d4 as tv,db as rv,zM as nv}from"./BSwWMzab.js";import{bv as av,bD as sv,i as ov,w as iv,bG as lv,a5 as cv,a7 as dv,a9 as uv}from"./-URcs0EB.js";import{m as fv,l as pv,t as Vo,c8 as gv,K as vv,c7 as mv,c2 as hv,aA as xl,c4 as bv,bE as Ko,aK as yv,r as _v,bo as xv,w as wv}from"./C80u9j_3.js";import{cd as kv,cf as Sv,ce as Iv,b0 as Cv,a_ as Ev,a$ as Pv,a3 as Av,ak as Cs,aj as Tv,az as wl,aH as Rv,ai as Lv,C as Mv,i as Nv,E as Ls,cO as Ov,aV as kl,cT as Dv,af as Bv,a7 as Fv,r as zv,p as Hv,aE as jv,cW as Wv,cF as Uv,cy as qv,cp as Vv,bO as Kv}from"./CzrG_lpv.js";import{s as Gv,j as Jv,i as Yv,I as Va,c as Sl}from"./XzWc0fs1.js";import"./BRNfUSNR.js";import{k as vd,f as Il,K as Cl,M as Xv,r as Zv,q as Qv,N as md,J as Go,e as cs,a0 as El,i as $v}from"./B6Eksue8.js";import"./DH9gMPGd.js";import{J as vi,P as em,s as tm,k as rm,G as nm,o as am,l as sm,M as om,H as im,w as ja,a as lm,K as cm,n as dm,R as um}from"./DO2cS8JO.js";import{t as ds,n as fm,O as pm,M as gm,S as va}from"./7IyNIHph.js";import{C as Jo}from"./BGGxKX5q.js";import{aQ as vm,aY as mm,aB as hm,b0 as bm,aO as ym,aU as _m,a7 as Ga,b3 as Pl,aK as xm,aR as wm,aX as mi,aS as hi,W as bo,aq as km,X as Sm,a_ as Im,aJ as Cm,aT as Em,aW as Pm,b6 as Am,b4 as Tm,ay as hd,p as Rm,n as Lm,aV as Mm,_ as Nm,ao as Om,aD as Dm,z as Bm,aC as Fm,a8 as zm}from"./CCCBFmfe.js";import{s as Yo}from"./C6XSZJri.js";import{M as Hm}from"./AGSVFpXc.js";import{u as bi,w as jm,v as Qs,I as Wm,A as Al,e as us,d as ma,J as Tl,c as Um,f as qm,g as Rl,i as Vm,b as Km,o as bd,j as Gm,O as Jm,x as Ym,k as yd,S as Xm,N as Zm,q as Ll,p as Qm,n as Ml,z as $m,s as eh}from"./C_KYY7ZK.js";import{o as Nl,a as Ol,T as yo,b as th}from"./LSDVwgG8.js";import{ag as rh,a6 as nh,M as ah,J as sh,aj as oh}from"./C8_w7W1W.js";import{D as fs}from"./C-fnz5X4.js";import"./3V4Tx4nH.js";import{C as $n}from"./6rzwTXJx.js";import{M as ih}from"./q4Mp6azq.js";import{g as yi}from"./Cop9b2dY.js";import{f as Dl}from"./BOQCK4ni.js";import{c as Ms}from"./CZI4_vlI.js";import{handleIntentLink as lh}from"./Cbh1BCiS.js";import{s as ch,a as dh,f as uh,d as fh,r as ph,h as gh,w as as,g as vh,W as mh,H as hh,c as bh,M as _d}from"./DkI_jPOw.js";import{e as yh,q as _h}from"./C0VJEx2v.js";import{showAssistantContent as xh}from"./BIZcuYRW.js";import{o as Hs,c as wh,n as kh}from"./CxO_9nE4.js";import{p as Sh}from"./DPG0D59v.js";import{m as Ih}from"./7k5ozo9c.js";import{h as Es}from"./BDGDJyji.js";import{i as xd}from"./BHqHNrOT.js";import{g as Ch,e as Eh,f as Ph,h as Ah}from"./BvFAWM27.js";import{T as _o}from"./BDXCy3lH.js";import{i as Th,r as Bl}from"./Dvil1FCS.js";import{a as Rh}from"./BMkc6ng0.js";import{a as Lh}from"./BJzHxIyr.js";import{p as Mh}from"./CA7UZgrf.js";const Nh="intent:inline-visual-draft";function xI(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((c,l)=>Math.max(c,l.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/DsAKyTjw.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/B3iaLYr6.js","/app/immutable/chunks/hUiIfi2t.js","/app/immutable/chunks/BS1nq856.js","/app/immutable/chunks/6Rt8MvWn.js","/app/immutable/chunks/DEmaG7Ya.js","/app/immutable/chunks/UyBYtOpv.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CpELl9t1.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/Dj42fWMH.js","/app/immutable/chunks/CBRfvExq.js","/app/immutable/chunks/B9pexpLt.js","/app/immutable/chunks/BlOn95cv.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/82qiqofo.js","/app/immutable/chunks/BA8g-07b.js","/app/immutable/chunks/h8IoI-w7.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/CqSXeJtk.js","/app/immutable/chunks/Swkg1pRS.js","/app/immutable/chunks/dUOQ5AaY.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/BMMcARVk.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/assets/observe-overflow.CJJmE3_P.css","/app/immutable/chunks/DLueLf8l.js","/app/immutable/chunks/Dr41JWYu.js","/app/immutable/chunks/ChLTaT6L.js","/app/immutable/chunks/Cti1rV_x.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DGvAL7MJ.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/D0UrvUQM.js","/app/immutable/assets/pending-agent-deletions.UE5obH5A.css","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/D38Ru3z6.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/BZmsmL8P.js","/app/immutable/chunks/DYlSkPA-.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/C4C2GjZ7.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/BLUkoS8T.js","/app/immutable/chunks/Ch8MPJbT.js","/app/immutable/chunks/CtO7SsM-.js","/app/immutable/chunks/DsRw0NLx.js","/app/immutable/chunks/CLSvSGMY.js","/app/immutable/chunks/BPhG_Xtj.js","/app/immutable/chunks/IIdGbw6g.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/DXYkWPe_.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 D,by as jt,b as Wt,br as Lf,bu as Mt,bs as oa,bt as ci,b7 as tl,ba as Mf,bl as Nf,bb as Of,bm as Df,a$ as Bf,b9 as Ff,b8 as zf,b2 as Hf,bf as jf,bg as Wf,bk as Uf,be as qf,bn as Vf,b0 as Kf,b4 as Gf,bi as Jf,bh as Yf,b6 as Xf,b5 as Zf,b3 as Qf,bd as $f,bc as ep,bj as tp,b1 as rp,_ as np}from"./B3iaLYr6.js";import{bI as ap,bj as hs,aG as sp,bs as Ut,aD as e,a5 as I,bS as m,bA as w,W as d,bn as qt,c9 as u,aA as x,a7 as wt,ay as Ue,be as ar,b$ as At,aC as ha,bl as L,b_ as k,bO as y,aB as S,bo as bs,ca as kt,bH as M,bV as _e,br as qr,bk as ys,c0 as Jn,ai as Pa,cd as is,aw as Cn,a as op,aj as Rr,c7 as ip,c6 as rl,c5 as Nn,bf as Bs,bz as qc}from"./DYhIMPy1.js";import{E as Fs,I as lp,x as cp}from"./CBRfvExq.js";import{c as dp,s as ae,a as On,l as Pn,f as En,d as ur,k as mt,I as _s,h as Pt,i as Tr,o as up,j as fp,g as pp,m as gp}from"./DEmaG7Ya.js";import{s as fn}from"./hUiIfi2t.js";import{c as Zr}from"./Dj42fWMH.js";import{H as Bo,t as lr,n as vp,i as nl,u as al}from"./6Rt8MvWn.js";import{b as gr}from"./BaIAhI85.js";import{h as Vc,bt as mp,cJ as hp,dC as bp,dn as yp,aw as _p,cs as xp,a1 as wp,cP as kp,dm as ls,aB as Xs,c1 as Sp,H as Ip,c as Cp,$ as sl,cV as Ep,bR as Pp,L as Ap,dj as Tp,V as Rp,dt as Lp,ae as Mp,as as Np,f as Op,t as Dp}from"./Cti1rV_x.js";import{c as Bp}from"./D-62MVd3.js";import{n as Qn,w as Fp,C as Kc,M as zp,R as Hp}from"./DYlSkPA-.js";import{f as yt,ap as Ua,ai as jp,am as Fo,bc as Wp}from"./CpELl9t1.js";import{am as Up,aa as ol,_ as qp,az as Vp,ab as Kp,i as Gp,aR as Jp,I as Yp,R as Xp,ar as Zp,af as Qp,$ as $p,b as il,as as eg,s as tg,o as rg,aX as ng,n as ag,aZ as zo,A as ll,ae as sg,aY as og,ao as Gc,T as Jc,a6 as ig,a5 as cl,L as dl}from"./DHNO0898.js";import{c$ as lg,F as Tt,bh as Ho,bL as cg,ap as dg,aQ as ug,cL as fg,bl as di,bB as pg,aG as Yc,aL as ui,c_ as zs,ac as jo,cn as gg,cd as vg,ci as fi,cF as Xc,bs as mg,e as hg,b$ as ul,c9 as bg,cl as yg,cW as Zc,bV as fl,b8 as ho,be as ns,aF as _g,aA as Wo,av as Qc,bc as $c,bC as xg,B as wg,bv as kg,a7 as ed,ch as Sg,am as td,cN as rd,cJ as pl,at as nd,aK as gl,a1 as Ig,cv as Cg,cU as Eg,bO as ad,bn as Pg,c5 as vl,ao as sd,az as Ag,aa as Tg,a8 as Rg}from"./dUOQ5AaY.js";import{c as od}from"./ChTqQfQN.js";import{h as Lg}from"./D0UrvUQM.js";import{Hp as Nt,bP as Mg,re as ml,rQ as Ng,Ic as Og,Ii as Dg,g as id,Hb as Bg,n3 as ld,nj as cd,ni as dd,mY as Zs,pz as pi,x4 as Fg,u8 as Rs,ts as Uo,ua as zg,mM as ud,Hu as Hg,sm as jg,o7 as fd,qD as gi,lt as hl,a6 as bl,qa as Wg,q6 as Ug,qb as qg,q2 as Vg,q8 as Kg,t_ as Gg,zC as pd,zG as gd,nk as yl,bi as qo,FW as Jg,H7 as Yg,ne as Xg,vb as Zg,vc as Qg,va as _l,AD as Kn,cu as $g,ci as ev,d4 as tv,db as rv,zM as nv}from"./h8IoI-w7.js";import{bw as av,bF as sv,i as ov,w as iv,bI as lv,a6 as cv,a8 as dv,aa as uv}from"./DLueLf8l.js";import{m as fv,l as pv,v as Vo,cb as gv,N as vv,ca as mv,c5 as hv,aC as xl,c7 as bv,bH as Ko,aM as yv,t as _v,bq as xv,y as wv}from"./BLUkoS8T.js";import{cd as kv,cf as Sv,ce as Iv,b0 as Cv,a_ as Ev,a$ as Pv,a3 as Av,ak as Cs,aj as Tv,az as wl,aH as Rv,ai as Lv,C as Mv,i as Nv,E as Ls,cO as Ov,aV as kl,cT as Dv,af as Bv,a7 as Fv,r as zv,p as Hv,aE as jv,cW as Wv,cF as Uv,cy as qv,cp as Vv,bO as Kv}from"./DCPTVyDU.js";import{s as Gv,j as Jv,i as Yv,I as Va,c as Sl}from"./82qiqofo.js";import"./BA8g-07b.js";import{k as vd,f as Il,K as Cl,M as Xv,r as Zv,q as Qv,N as md,J as Go,e as cs,a0 as El,i as $v}from"./DsAKyTjw.js";import"./BMMcARVk.js";import{J as vi,P as em,s as tm,k as rm,G as nm,o as am,l as sm,M as om,H as im,w as ja,a as lm,K as cm,n as dm,R as um}from"./CqSXeJtk.js";import{t as ds,n as fm,O as pm,M as gm,S as va}from"./Swkg1pRS.js";import{C as Jo}from"./bS-VFUYb.js";import{aQ as vm,aY as mm,aB as hm,b0 as bm,aO as ym,aU as _m,a7 as Ga,b3 as Pl,aK as xm,aR as wm,aX as mi,aS as hi,W as bo,aq as km,X as Sm,a_ as Im,aJ as Cm,aT as Em,aW as Pm,b6 as Am,b4 as Tm,ay as hd,p as Rm,n as Lm,aV as Mm,_ as Nm,ao as Om,aD as Dm,z as Bm,aC as Fm,a8 as zm}from"./DmYZE-MO.js";import{s as Yo}from"./DMKbkua9.js";import{M as Hm}from"./Clc6wozH.js";import{u as bi,w as jm,v as Qs,I as Wm,A as Al,e as us,d as ma,J as Tl,c as Um,f as qm,g as Rl,i as Vm,b as Km,o as bd,j as Gm,O as Jm,x as Ym,k as yd,S as Xm,N as Zm,q as Ll,p as Qm,n as Ml,z as $m,s as eh}from"./DW_tfZdS.js";import{o as Nl,a as Ol,T as yo,b as th}from"./Uxor6krE.js";import{ag as rh,a6 as nh,M as ah,J as sh,aj as oh}from"./CMMABWQi.js";import{D as fs}from"./BsZr4pOk.js";import"./B1h0QCy7.js";import{C as $n}from"./D1h8l9Ve.js";import{M as ih}from"./BKJB_6oY.js";import{g as yi}from"./BS1nq856.js";import{f as Dl}from"./CLSvSGMY.js";import{c as Ms}from"./DhLTyNrj.js";import{handleIntentLink as lh}from"./17xFUwtQ.js";import{s as ch,a as dh,f as uh,d as fh,r as ph,h as gh,w as as,g as vh,W as mh,H as hh,c as bh,M as _d}from"./CHXEA9Fi.js";import{e as yh,q as _h}from"./Dr41JWYu.js";import{showAssistantContent as xh}from"./CnodaVJ0.js";import{o as Hs,c as wh,n as kh}from"./DXYkWPe_.js";import{p as Sh}from"./4GsjZWx0.js";import{m as Ih}from"./7k5ozo9c.js";import{h as Es}from"./D22I-TIV.js";import{i as xd}from"./Ch8MPJbT.js";import{g as Ch,e as Eh,f as Ph,h as Ah}from"./BvFAWM27.js";import{T as _o}from"./Deg5jWhG.js";import{i as Th,r as Bl}from"./CZBUuakO.js";import{a as Rh}from"./C4C2GjZ7.js";import{a as Lh}from"./BJzHxIyr.js";import{p as Mh}from"./DUjsEo3X.js";const Nh="intent:inline-visual-draft";function xI(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((c,l)=>Math.max(c,l.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
  `,q1=["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"],Mo=96,Cc=2e4,V1=480,Pu=512,K1=["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 G1(r,t,n,a,s,o){const c=new MessageChannel,l=MessagePort.prototype.postMessage.bind(c.port1);window.parent.postMessage({channel:r,type:"scroll-port"},"*",[c.port2]);const f=(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&&f("snapshot",{snapshot:p}),p=null})),!0}catch{return!1}}})});let R=!1,b=-1,h=innerHeight,P=Number.NaN,T=0,B=0;const F=()=>{if(R=!1,!document.body)return;let C=Math.ceil(Math.max(document.body.scrollHeight,document.body.getBoundingClientRect().height));const z=innerHeight,J=C-z;if(z>h+1&&J>1&&Math.abs(J-P)<=1?T+=1:(z!==h||J<=1)&&(T=0),h=z,P=J,!B&&T>=3){B=Math.max(a,z);const Y="Page height follows the frame (vh units or height: 100%); frame height held.";console.warn(Y),f("layout",{message:Y})}B&&(C=Math.min(C,B)),C!==b&&(b=C,f("resize",{height:C}))},O=()=>{R||(R=!0,requestAnimationFrame(F))},N=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 J=C.variables["--inline-html-root-font-size"];"--inline-html-root-font-size"in t.variables&&typeof J=="string"&&J.length<512&&z.style.setProperty("--inline-html-root-font-size",J);for(const Y of Object.keys(t.variables)){if(Y==="--inline-html-root-font-size")continue;const re=C.variables[Y];typeof re=="string"&&re.length<512&&z.style.setProperty(Y,re)}O()};window.addEventListener("message",C=>{C.source!==window.parent||!C.data||C.data.channel!==r||C.data.type==="theme"&&N(C.data.theme)});const W=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=re=>{const xe=getComputedStyle(re);if(re!==document.scrollingElement&&!/^(auto|scroll|overlay)$/.test(xe.overflowY)||/^(hidden|clip)$/.test(xe.overflowY))return!1;const ie=re.scrollHeight-re.clientHeight;return ie>1&&(C.deltaY<0?re.scrollTop>1:re.scrollTop<ie-1)};if(C.composedPath().some(re=>re instanceof Element&&z(re))||document.scrollingElement&&z(document.scrollingElement))return;const J=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*J));Number.isFinite(Y)&&(C.preventDefault(),l({deltaY:Y}))};window.addEventListener("wheel",()=>{window.removeEventListener("wheel",W),window.addEventListener("wheel",W,{passive:!1})},{capture:!0,passive:!1}),window.addEventListener("error",C=>{C.message&&f("error",{message:C.message.slice(0,300)})}),window.addEventListener("unhandledrejection",C=>{const z=C.reason;f("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),N(t),window.addEventListener("DOMContentLoaded",()=>{new ResizeObserver(O).observe(document.body),new MutationObserver(O).observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),window.addEventListener("resize",O),document.addEventListener("load",O,!0),document.fonts.ready.then(O),f("ready"),O()},{once:!0})}function J1(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 c;const l=f=>{const i=f.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",f=>{const i=f.data;if(!(!i||typeof i!="object"||i.channel!==r)){if(f.source===window.parent&&i.type==="theme"){o.contentWindow?.postMessage({channel:r,type:"theme",theme:i.theme},"*");return}if(!(f.source!==o.contentWindow||f.origin!=="null")){if(i.type==="scroll-port"&&!c&&f.ports.length===1){c=f.ports[0],c.onmessage=l;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 Y1(r,t,n,a,s,o,c,l){const f=document.implementation.createHTMLDocument(""),i=f.createElement("template");i.innerHTML=n,f.body.append(i.content);const p=Y=>{Y.querySelectorAll("meta, base, link, iframe, frame, frameset, object, embed").forEach(re=>re.remove()),Y.querySelectorAll("template").forEach(re=>p(re.content)),Y.querySelectorAll("a, area").forEach(re=>{for(const xe of["href","xlink:href"])re.getAttribute(xe)?.startsWith("#")||re.removeAttribute(xe);re.removeAttribute("target"),re.removeAttribute("ping"),re.removeAttribute("download")})};p(f);const g=Y=>JSON.stringify(Y).replace(/</g,"\\u003c"),R=f.createElement("meta");R.httpEquiv="Content-Security-Policy",R.content=r.csp;const b=f.createElement("meta");b.setAttribute("charset","utf-8");const h=f.createElement("style"),P=/^data:[\w.+/-]+;base64,[A-Za-z0-9+/=]+$/.test(l)?`@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900;
261
261
  font-display: swap; src: url('${l}') format('woff2'); }`:"";h.textContent=`${P}${r.styles}`;const T=f.createElement("script"),B=g([a,s,r.maxScrollDelta,r.lockHeight,t(c)?c:null]);T.textContent=`(${r.bridge})(...${B}, (${r.validate}));`,f.head.prepend(R,b,h,T);const F=`<!doctype html>${f.documentElement.outerHTML}`,O=document.implementation.createHTMLDocument(""),N=O.createElement("meta");N.httpEquiv="Content-Security-Policy",N.content=r.csp.replace("frame-src 'none'","frame-src about:");const W=O.createElement("meta");W.setAttribute("charset","utf-8");const C=O.createElement("style");C.textContent="html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }";const z=O.createElement("script"),J=g([a,F,o,r.maxScrollDelta]);return z.textContent=`(${r.shell})(...${J}, (${r.validate}));`,O.head.prepend(N,W,C,z),`<!doctype html>${O.documentElement.outerHTML}`}const X1=()=>({csp:K1,styles:U1,maxScrollDelta:Pu,lockHeight:V1,bridge:G1.toString(),shell:J1.toString(),validate:gi.toString()});function Z1(r,t,n,a,s=null,o=""){return Y1(X1(),gi,r,t,n,a,s,o)}function Ec(r){const t=getComputedStyle(r);return{dark:document.documentElement.classList.contains("dark"),variables:{...Object.fromEntries(q1.map(n=>[`--${n}`,t.getPropertyValue(`--${n}`).trim()])),"--inline-html-root-font-size":getComputedStyle(document.documentElement).fontSize}}}function Q1(r,t,n,a,s=null){return Z1(r,t,n,a,s,W1)}var $1=S('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground"> </p>'),e0=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),t0=S('<p class="sr-only" role="status"> </p>'),r0=S('<p class="type-body m-0 px-4 py-3 text-muted-foreground" role="status"> </p>'),n0=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>'),a0=S('<iframe sandbox="allow-scripts" referrerpolicy="no-referrer"></iframe>'),s0=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>'),o0=S('<span class="type-caption ml-auto text-muted-foreground" role="status"> </span>'),i0=S('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground" role="status"> <!></p>'),l0=S('<th class="min-w-40 px-2 pb-3 align-top font-normal"><!> <div class="mt-1 flex gap-1"><!> <!></div></th>'),c0=S('<td class="max-w-56 px-2 py-2 align-top break-words tabular-nums"> </td>'),d0=S('<tr><th class="max-w-48 py-2 pr-4 align-top font-normal break-words text-muted-foreground"> </th><!></tr>'),u0=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>'),f0=S('<div class="flex flex-wrap items-center gap-1 px-4 py-2" data-inline-visual-actions=""><!> <!> <!> <!> <!></div> <!> <!>',1),p0=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 Au(r,t){if(new.target)return Ht({component:Au,...r});Ut(t,!0);const n=720;let a=_(t,"source",7),s=_(t,"isStreaming",7,!1),o=_(t,"isComplete",7,!0),c=_(t,"record",7),l=_(t,"storageStatus",7,"ready"),f=_(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),P=_(t,"exportError",7),T,B=_e(void 0),F=_e(!1),O=_e(!1),N=_e(0),W=_e(""),C=_e(""),z=_e(!1),J=_e(""),Y=_e(qr(Mo)),re=_e(n),xe=_e(""),ie=_e(hl()),ne=_e(void 0),ge,Ne=_e(void 0),V=_e(!1);const pe=u(()=>c()??e(ie)),ce=u(()=>l()!=="loading"&&(l()!=="error"||!!e(pe).current)),Te=u(()=>!s()&&o()&&!!a().trim()&&e(ce)),Oe=u(()=>Math.min(Cc,Math.max(Mo,e(Y)))),we=u(()=>s()||l()==="loading"?"loading":o()?a().trim()?e(J)?"error":e(z)?"ready":"loading":"empty":"incomplete"),Qe=u(()=>s()||l()==="loading"||e(Te)&&!e(z)&&!e(J));function qe(Q){const Ce={...Q,current:e(ne)??Q.current};M(ie,Ce),f()?.(Ce)}function et(){const Q=e(ne);!Q||e(pe).scenarios.length>=bl||(qe({...e(pe),scenarios:[...e(pe).scenarios,{id:crypto.randomUUID(),name:Uf({number:al(e(pe).scenarios.length+1)}),snapshot:structuredClone(Q)}]}),M(V,!0))}function de(Q,Ce){const $e=Ce.trim().slice(0,120);$e&&qe({...e(pe),scenarios:e(pe).scenarios.map(tt=>tt.id===Q?{...tt,name:$e}:tt)})}function $(Q){const Ce=structuredClone(Q);M(ne,Ce),M(Ne,Ce),qe({...e(pe),current:Ce}),M(N,e(N)+1)}function Re(Q){return typeof Q=="number"?al(Q):typeof Q=="string"?Q:JSON.stringify(Q)}function G(){!e(B)?.contentWindow||!e(C)||e(B).contentWindow.postMessage({channel:e(C),type:"theme",theme:Ec(T)},"*")}function K(Q){let Ce=T.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(F))return;const Q=a(),Ce=e(Te);e(N),Nn(()=>{ge!==Q&&(M(ie,hl()),M(ne,void 0),M(V,!1),M(Ne,void 0),ge=Q),M(z,!1),M(J,""),M(xe,""),M(Y,Mo,!0),M(C,crypto.randomUUID(),!0),M(W,Ce?Q1(Q,e(C),Ec(T),tl(),e(Ne)??e(ne)??e(pe).current):"",!0),M(Ne,void 0)})}),ys(()=>{M(F,!0);const Q=ft=>{if(ft.source!==e(B)?.contentWindow||ft.origin!=="null")return;const Fe=ft.data;if(!(!Fe||typeof Fe!="object"||Fe.channel!==e(C)))if(Fe.type==="resize"&&typeof Fe.height=="number"&&Number.isFinite(Fe.height)&&Fe.height>=0)M(Y,Math.min(Cc,Math.ceil(Fe.height)),!0);else if(Fe.type==="ready")M(z,!0),G();else if(Fe.type==="error"&&typeof Fe.message=="string")M(J,Fe.message.slice(0,300),!0);else if(Fe.type==="layout"&&typeof Fe.message=="string")M(xe,Fe.message.slice(0,300),!0);else if(Fe.type==="snapshot"&&e(Te)&&gi(Fe.snapshot)){const ht=Fe.snapshot;M(ne,ht),qe({...e(pe),current:ht})}else Fe.type==="wheel"&&e(z)&&e(Te)&&!e(O)&&!e(Qe)&&typeof Fe.deltaY=="number"&&Number.isFinite(Fe.deltaY)&&Fe.deltaY!==0&&Math.abs(Fe.deltaY)<=Pu&&K(Fe.deltaY)},Ce=()=>{M(re,Math.min(n,Math.max(160,Math.floor(window.innerHeight*.8))),!0)},$e=new MutationObserver(G);$e.observe(document.documentElement,{attributes:!0,attributeFilter:["class","style","data-theme"]});const tt=window.matchMedia("(prefers-color-scheme: dark)");return tt.addEventListener("change",G),window.addEventListener("message",Q),window.addEventListener("resize",Ce),Ce(),()=>{$e.disconnect(),tt.removeEventListener("change",G),window.removeEventListener("message",Q),window.removeEventListener("resize",Ce)}});var U={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 c()},set record(Q){c(Q),x()},get storageStatus(){return l()},set storageStatus(Q="ready"){l(Q),x()},get onRecordChange(){return f()},set onRecordChange(Q){f(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 P()},set exportError(Q){P(Q),x()},$set:jt,$on:(Q,Ce)=>Wt(t,Q,Ce)},oe=p0(),he=I(oe),X=I(he);yt(X,{variant:"ghost",size:"sm",get active(){return e(O)},get"aria-pressed"(){return e(O)},onclick:()=>{M(O,!e(O))},children:(Q,Ce)=>{ar();var $e=At();k(tt=>y($e,tt),[()=>e(O)?Mf():Nf()]),d(Q,$e)},$$slots:{default:!0}});var fe=m(X,2);{let Q=u(()=>!e(Te));yt(fe,{variant:"ghost",size:"sm",get disabled(){return e(Q)},onclick:()=>{M(N,e(N)+1)},children:(Ce,$e)=>{ar();var tt=At();k(ft=>y(tt,ft),[()=>Of()]),d(Ce,tt)},$$slots:{default:!0}})}w(he);var Le=m(he,2);{var ze=Q=>{var Ce=e0(),$e=Ue(Ce),tt=I($e),ft=L(tt,!0),Fe=m(tt,2);{var ht=vt=>{yt(vt,{variant:"ghost",size:"sm",get onclick(){return g()},children:(Ct,Rt)=>{ar();var Zt=At();k(_t=>y(Zt,_t),[()=>qf()]),d(Ct,Zt)},$$slots:{default:!0}})};D(Fe,vt=>{g()&&vt(ht)})}w($e);var lt=m($e,2);{var gt=vt=>{var Ct=$1(),Rt=L(Ct,!0);k(()=>y(Rt,R())),d(vt,Ct)};D(lt,vt=>{R()&&vt(gt)})}k(vt=>y(ft,vt),[()=>Df()]),d(Q,Ce)};D(Le,Q=>{l()==="error"&&Q(ze)})}var nt=m(Le,2);{var me=Q=>{var Ce=t0(),$e=L(Ce,!0);k(tt=>y($e,tt),[()=>s()?Bf():Ff()]),d(Q,Ce)},Ee=Q=>{var Ce=r0(),$e=L(Ce,!0);k(tt=>y($e,tt),[()=>o()?Hf():zf()]),d(Q,Ce)},q=Q=>{var Ce=n0(),$e=I(Ce),tt=L($e,!0),ft=m($e,2),Fe=L(ft,!0);w(Ce),k(ht=>{y(tt,ht),y(Fe,e(J))},[()=>jf()]),d(Q,Ce)};D(nt,Q=>{e(Qe)?Q(me):e(Te)?e(J)&&Q(q,2):Q(Ee,1)})}var Se=m(nt,2),ue=I(Se);{var A=Q=>{var Ce=a0();let $e,tt;gr(Ce,ft=>M(B,ft),()=>e(B)),k(ft=>{ae(Ce,"title",ft),ae(Ce,"srcdoc",e(W)),$e=mt(Ce,1,"block w-full border-0 svelte-1kkow1d",null,$e,{"preview-hidden":e(O)||e(Qe)}),ae(Ce,"aria-hidden",e(O)||e(Qe)),tt=Pn(Ce,"",tt,{height:`${e(Oe)}px`})},[()=>tl()]),d(Q,Ce)};D(ue,Q=>{e(Te)&&e(W)&&Q(A)})}var H=m(ue,2);{var ye=Q=>{$n(Q,{get code(){return a()},language:"html",noBorder:!0,noMargin:!0,get maxHeight(){return e(re)}})},Ze=Q=>{var Ce=s0(),$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 Fe=m($e,2);ja(Fe,{class:"aspect-video max-h-60 w-full rounded-lg"});var ht=m(Fe,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)};D(H,Q=>{e(O)?Q(ye):e(Qe)&&Q(Ze,1)})}w(Se);var Pe=m(Se,2);{var He=Q=>{var Ce=f0(),$e=Ue(Ce),tt=I($e);{var ft=Et=>{{let Jt=u(()=>!e(z)||!!e(J));yt(Et,{size:"sm",get disabled(){return e(Jt)},onclick:()=>e(ne)&&i()(e(ne)),children:(Ot,ve)=>{ar();var ee=At();k(Ve=>y(ee,Ve),[()=>Vf()]),d(Ot,ee)},$$slots:{default:!0}})}};D(tt,Et=>{i()&&Et(ft)})}var Fe=m(tt,2);{let Et=u(()=>!e(z)||!!e(J)||e(pe).scenarios.length>=bl);yt(Fe,{variant:"ghost",size:"sm",get disabled(){return e(Et)},onclick:et,children:(Jt,Ot)=>{ar();var ve=At();k(ee=>y(ve,ee),[()=>Wf()]),d(Jt,ve)},$$slots:{default:!0}})}var ht=m(Fe,2);{var lt=Et=>{yt(Et,{variant:"ghost",size:"sm",get active(){return e(V)},get"aria-expanded"(){return e(V)},onclick:()=>M(V,!e(V)),children:(Jt,Ot)=>{ar();var ve=At();k(ee=>y(ve,ee),[()=>Kf()]),d(Jt,ve)},$$slots:{default:!0}})};D(ht,Et=>{e(pe).scenarios.length&&Et(lt)})}var gt=m(ht,2);{var vt=Et=>{{let Jt=u(()=>!e(z)||b()==="saving");yt(Et,{variant:"ghost",size:"sm",get disabled(){return e(Jt)},onclick:()=>p()({...e(pe),current:e(ne)??null}),children:(Ot,ve)=>{ar();var ee=At();k(Ve=>y(ee,Ve),[()=>Gf()]),d(Ot,ee)},$$slots:{default:!0}})}};D(gt,Et=>{p()&&Et(vt)})}var Ct=m(gt,2);{var Rt=Et=>{var Jt=o0(),Ot=L(Jt,!0);k(ve=>y(Ot,ve),[()=>l()==="saving"?Jf():l()==="ready"?Yf():""]),d(Et,Jt)};D(Ct,Et=>{f()&&Et(Rt)})}w($e);var Zt=m($e,2);{var _t=Et=>{var Jt=i0(),Ot=I(Jt),ve=m(Ot);{var ee=Ve=>{var at=At();k(()=>y(at,P())),d(Ve,at)};D(ve,Ve=>{b()==="error"&&P()&&Ve(ee)})}w(Jt),k(Ve=>y(Ot,`${Ve??""} `),[()=>b()==="saving"?Xf():b()==="saved"?Zf({path:h()??""}):Qf()]),d(Et,Jt)};D(Zt,Et=>{b()&&Et(_t)})}var Vt=m(Zt,2);{var er=Et=>{var Jt=u0(),Ot=I(Jt),ve=I(Ot),ee=I(ve),Ve=I(ee),at=L(Ve,!0),dt=m(Ve),We=L(dt,!0),Z=m(dt);Pt(Z,17,()=>e(pe).scenarios,le=>le.id,(le,ke)=>{var Ae=l0(),Be=I(Ae);{let Ie=u(()=>tp());Va(Be,{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),de(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 je=m(Be,2),Je=I(je);yt(Je,{variant:"ghost",size:"sm",onclick:()=>$(e(ke).snapshot),children:(Ie,Ye)=>{ar();var Ge=At();k(rt=>y(Ge,rt),[()=>$f()]),d(Ie,Ge)},$$slots:{default:!0}});var Ke=m(Je,2);yt(Ke,{variant:"ghost",size:"sm",onclick:()=>qe({...e(pe),scenarios:e(pe).scenarios.filter(Ie=>Ie.id!==e(ke).id)}),children:(Ie,Ye)=>{ar();var Ge=At();k(rt=>y(Ge,rt),[()=>ep()]),d(Ie,Ge)},$$slots:{default:!0}}),w(je),w(Ae),d(le,Ae)}),w(ee),w(ve);var se=m(ve);Pt(se,20,()=>["inputs","results"],Tr,(le,ke)=>{const Ae=u(()=>ke),Be=u(()=>Array.from(new Set([...Object.keys(e(ne)[e(Ae)]),...e(pe).scenarios.flatMap(Ke=>Object.keys(Ke.snapshot[e(Ae)]))])));var je=wt(),Je=Ue(je);Pt(Je,16,()=>e(Be),Ke=>Ke,(Ke,Ie)=>{var Ye=d0(),Ge=I(Ye),rt=L(Ge,!0),ot=m(Ge);Pt(ot,17,()=>[e(ne),...e(pe).scenarios.map(it=>it.snapshot)],Tr,(it,ut)=>{var St=c0(),bt=L(St,!0);k(Lt=>y(bt,Lt),[()=>Object.hasOwn(e(ut)[e(Ae)],Ie)?Re(e(ut)[e(Ae)][Ie]):"—"]),d(it,St)}),w(Ye),k(()=>y(rt,Ie)),d(Ke,Ye)}),d(le,je)}),w(se),w(Ot),w(Jt),k(le=>{y(at,e(ne).title),y(We,le)},[()=>rp()]),d(Et,Jt)};D(Vt,Et=>{e(V)&&e(pe).scenarios.length&&Et(er)})}d(Q,Ce)};D(Pe,Q=>{e(ne)&&e(Te)&&Q(He)})}return w(oe),gr(oe,Q=>T=Q,()=>T),k(()=>{ae(oe,"data-inline-html-status",e(we)),ae(oe,"data-inline-html-layout",e(xe)?"viewport-locked":void 0),ae(oe,"aria-busy",e(Qe))}),d(r,oe),qt(U)}var g0=S('<div class="w-full min-w-0"><!></div>');function v0(r,t){if(new.target)return Ht({component:v0,...r});Ut(t,!0);const n=()=>Mt(e(b),"$agent$",s),a=()=>Mt(e(B),"$entry$",s),[s,o]=oa();let c=_(t,"block",7),l=_(t,"role",7),f=_(t,"workspaceId",7),i=_(t,"agentId",7),p=_(t,"messageId",7),g=_(t,"contentBlockKey",7,""),R=_e(void 0);const b=u(()=>Xs(i()??"")),h=u(()=>l()==="assistant"&&f()&&i()&&p()&&c().metadata?.fenceClosed&&!c().metadata?.isStreaming&&n()&&!fd(n())?{workspaceId:f(),agentId:i(),messageId:p(),blockKey:JSON.stringify([g(),c().metadata?.fenceStart??0]),source:c().content}:void 0),P=u(()=>!!(f()&&i()&&p()&&c().metadata?.fenceClosed&&!n())),T=u(()=>e(h)?Kg(e(h)):""),B=u(()=>ym(e(T)));kt(()=>{e(h)&&Nt.dispatch(Wg(e(h)))});function F(Y){!f()||!i()||n()?.retiredAt||e(R)?.dispatchEvent(new CustomEvent(Nh,{bubbles:!0,detail:{workspaceId:f(),agentId:i(),snapshot:Y}}))}var O={get block(){return c()},set block(Y){c(Y),x()},get role(){return l()},set role(Y){l(Y),x()},get workspaceId(){return f()},set workspaceId(Y){f(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,re)=>Wt(t,Y,re)},N=wt(),W=Ue(N);{var C=Y=>{var re=g0(),xe=I(re);{let ie=u(()=>c().metadata?.isStreaming??!1),ne=u(()=>c().metadata?.fenceClosed??!1),ge=u(()=>a()?.record),Ne=u(()=>e(h)?a()?.status??"loading":e(P)?"loading":"ready"),V=u(()=>a()?.error),pe=u(()=>e(h)?et=>Nt.dispatch(Vg(e(T),et)):void 0),ce=u(()=>f()&&i()&&n()&&!n().retiredAt?F:void 0),Te=u(()=>e(h)?()=>Nt.dispatch(qg(e(T))):void 0),Oe=u(()=>e(h)?et=>Nt.dispatch(Ug(e(T),crypto.randomUUID(),et)):void 0),we=u(()=>a()?.export?.status),Qe=u(()=>a()?.export?.path),qe=u(()=>a()?.export?.error);Au(xe,{get source(){return c().content},get isStreaming(){return e(ie)},get isComplete(){return e(ne)},get record(){return e(ge)},get storageStatus(){return e(Ne)},get storageError(){return e(V)},get onRecordChange(){return e(pe)},get onUseConfiguration(){return e(ce)},get onRetry(){return e(Te)},get onExport(){return e(Oe)},get exportStatus(){return e(we)},get exportPath(){return e(Qe)},get exportError(){return e(qe)}})}w(re),gr(re,ie=>M(R,ie),()=>e(R)),d(Y,re)},z=Y=>{$n(Y,{get code(){return c().content},language:"html"})};D(W,Y=>{l()==="assistant"?Y(C):Y(z,-1)})}d(r,N);var J=qt(O);return o(),J}var m0=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 h0(r,t){if(new.target)return Ht({component:h0,...r});Ut(t,!0);let n=_(t,"digest",7);var a={get digest(){return n()},set digest(c){n(c),x()},$set:jt,$on:(c,l)=>Wt(t,c,l)},s=m0(),o=L(s,!0);return k(()=>y(o,n())),d(r,s),qt(a)}var b0=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>'),y0=S('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-muted text-muted-foreground"> </span>'),_0=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>'),x0=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>'),w0=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 k0(r,t){if(new.target)return Ht({component:k0,...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=w0(),o=I(s),c=I(o);Tt(c,{get icon(){return Zc},size:"sm",class:"text-primary-ink/70"});var l=m(c,2),f=L(l,!0);w(o);var i=m(o,2);Pt(i,21,n,b=>b.name+b.command,(b,h)=>{var P=x0(),T=I(P),B=I(T),F=I(B),O=L(F,!0),N=m(F,2);{var W=xe=>{var ie=b0(),ne=L(ie,!0);k(ge=>y(ne,ge),[()=>v.chat_detectedScripts_service_badge()]),d(xe,ie)},C=xe=>{var ie=y0(),ne=L(ie,!0);k(ge=>y(ne,ge),[()=>v.chat_detectedScripts_command_badge()]),d(xe,ie)};D(N,xe=>{e(h).mode==="service"?xe(W):xe(C,-1)})}var z=m(N,2);{var J=xe=>{var ie=_0(),ne=L(ie,!0);k(()=>y(ne,e(h).category)),d(xe,ie)};D(z,xe=>{e(h).category&&e(h).category!=="other"&&xe(J)})}w(B);var Y=m(B,2),re=L(Y,!0);w(T),w(P),k(()=>{y(O,e(h).name),y(re,e(h).command)}),d(b,P)}),w(i);var p=m(i,2),g=I(p),R=L(g,!0);return w(p),w(s),k((b,h)=>{y(f,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 S0(r,t){if(new.target)return Ht({component:S0,...r});Ut(t,!0);let n=_(t,"diff",7),a=_(t,"filePath",7),s=_(t,"language",7),o=_(t,"onApply",7),c=_(t,"onReject",7);function l(){o()?.(),Qn.success(v.chat_diffViewer_applied_toast())}function f(){c()?.(),Qn.info(v.chat_diffViewer_rejected_toast())}const i=u(()=>{const g=[];return o()&&g.push({label:v.chat_diffViewer_apply_label(),variant:"success",onClick:l}),c()&&g.push({label:v.chat_diffViewer_reject_label(),variant:"danger",onClick:f}),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 c()},set onReject(g){c(g),x()},$set:jt,$on:(g,R)=>Wt(t,g,R)};{let g=u(()=>a()||v.chat_diffViewer_suggestedChanges_fallback());fs(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 I0=ha('<circle fill="none" style="transition: stroke-dasharray 0.3s ease-out"></circle>'),Pc=ha("<circle></circle>"),C0=ha('<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>'),E0=S('<div class="relative"><svg fill="none" xmlns="http://www.w3.org/2000/svg"><circle fill="none"></circle><!></svg> <!></div>');function Ds(r,t){if(new.target)return Ht({component:Ds,...r});Ut(t,!0);let n=_(t,"phase",7),a=_(t,"progress",7,0),s=_(t,"size",7,16),o=_(t,"class",7,""),c=u(()=>s()/2),l=u(()=>e(c)),f=u(()=>e(c)),i=u(()=>s()*.12),p=u(()=>e(c)-e(i)/2),g=u(()=>e(c)*.35),R=u(()=>2*Math.PI*e(g)),b=u(()=>Math.max(0,Math.min(1,a()))*e(R));const h={planning:"#99999999",building:"#54B1F3",reviewing:"#6D7FF5",shipped:"var(--color-foreground)"};let P=u(()=>h[n()]||"currentColor");var T={get phase(){return n()},set phase(ie){n(ie),x()},get progress(){return a()},set progress(ie=0){a(ie),x()},get size(){return s()},set size(ie=16){s(ie),x()},get class(){return o()},set class(ie=""){o(ie),x()},$set:jt,$on:(ie,ne)=>Wt(t,ie,ne)},B=E0(),F=I(B),O=I(F),N=m(O);{var W=ie=>{},C=ie=>{var ne=I0();k(()=>{ae(ne,"cx",e(l)),ae(ne,"cy",e(f)),ae(ne,"r",e(g)*.8),ae(ne,"stroke",e(P)),ae(ne,"stroke-width",e(g)*1.5),ae(ne,"stroke-dasharray",`${e(b)??""} ${e(R)??""}`),ae(ne,"stroke-dashoffset",e(R)*.25),ae(ne,"transform",`rotate(-90 ${e(l)??""} ${e(f)??""})`)}),d(ie,ne)},z=ie=>{var ne=Pc();k(()=>{ae(ne,"cx",e(l)),ae(ne,"cy",e(f)),ae(ne,"r",e(p)*.6),ae(ne,"fill",e(P))}),d(ie,ne)},J=ie=>{var ne=Pc();k(()=>{ae(ne,"cx",e(l)),ae(ne,"cy",e(f)),ae(ne,"r",e(p)),ae(ne,"fill",e(P))}),d(ie,ne)};D(N,ie=>{n()==="planning"?ie(W):n()==="building"?ie(C,1):n()==="reviewing"?ie(z,2):n()==="shipped"&&ie(J,3)})}w(F);var Y=m(F,2);{var re=ie=>{},xe=ie=>{var ne=C0();k(()=>ae(ne,"width",s()*.5)),d(ie,ne)};D(Y,ie=>{n()==="reviewing"?ie(re):n()==="shipped"&&ie(xe,1)})}return w(B),k(()=>{ae(F,"width",s()),ae(F,"height",s()),ae(F,"viewBox",`0 0 ${s()??""} ${s()??""}`),mt(F,0,ur(o())),ae(O,"cx",e(l)),ae(O,"cy",e(f)),ae(O,"r",e(p)),ae(O,"stroke",e(P)),ae(O,"stroke-width",e(i))}),d(r,B),qt(T)}var Ac=S('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full"></span> </span>'),P0=S('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full bg-border"></span> </span>'),Tc=S('<span class="text-ui text-subtle truncate"> </span>'),Rc=S('<div class="flex items-center gap-1 mt-0.5"><!> <!></div>'),Lc=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>'),A0=S('<div class="flex items-center gap-2"><div class="shrink-0"><!></div> <span class="text-ui text-subtle truncate line-through"> </span></div>'),T0=S('<span class="text-ui text-subtle pl-4"> </span>'),R0=S('<div class="flex flex-col gap-0.5 pt-1 border-t border-border"><!> <!></div>'),L0=S('<div class="text-ui text-subtle"> </div>'),M0=S("<!> <!> <!> <!>",1),N0=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>'),O0=S('<div class="rounded-[0.5px]"></div>');function Tu(r,t){if(new.target)return Ht({component:Tu,...r});Ut(t,!0);let n=_(t,"stats",7),a=_(t,"tasks",23,()=>[]),s=_(t,"maxBars",7,20),o=_(t,"barWidth",7,"1px"),c=_(t,"barHeight",7,"16px"),l=_(t,"gap",7,"1px"),f=_(t,"class",7);const i={completed:"#22c55e",inProgress:"#4F7BF7",notStarted:"var(--border)"};let p=u(()=>{const{completed:N,inProgress:W,notStarted:C,total:z}=n();if(z===0)return[];const J=[...Array(N).fill("completed"),...Array(W).fill("inProgress"),...Array(Math.max(0,C)).fill("notStarted")];return J.length<=s()?J:J.slice(J.length-s())}),g=u(()=>a().filter(N=>N.status==="complete")),R=u(()=>a().filter(N=>N.status==="in_progress"||N.status==="review_required")),b=u(()=>a().filter(N=>N.status!=="complete"&&N.status!=="in_progress"&&N.status!=="review_required"&&N.status!=="cancelled")),h=u(()=>a().filter(N=>N.status==="cancelled")),P=u(()=>a().length>0);var T={get stats(){return n()},set stats(N){n(N),x()},get tasks(){return a()},set tasks(N=[]){a(N),x()},get maxBars(){return s()},set maxBars(N=20){s(N),x()},get barWidth(){return o()},set barWidth(N="1px"){o(N),x()},get barHeight(){return c()},set barHeight(N="16px"){c(N),x()},get gap(){return l()},set gap(N="1px"){l(N),x()},get class(){return f()},set class(N){f(N),x()},$set:jt,$on:(N,W)=>Wt(t,N,W)},B=wt(),F=Ue(B);{var O=N=>{Fo(N,{side:"top",align:"start",sideOffset:6,contentClass:"max-w-xs p-0",delayDuration:200,disableHoverableContent:!1,content:C=>{var z=N0(),J=I(z),Y=I(J),re=L(Y,!0),xe=m(Y,2),ie=I(xe);{var ne=Oe=>{var we=Ac(),Qe=I(we);Pn(Qe,"",{},{"background-color":"#22c55e"});var qe=m(Qe);w(we),k(()=>y(qe,` ${n().completed??""}`)),d(Oe,we)};D(ie,Oe=>{n().completed>0&&Oe(ne)})}var ge=m(ie,2);{var Ne=Oe=>{var we=Ac(),Qe=I(we);Pn(Qe,"",{},{"background-color":"#4F7BF7"});var qe=m(Qe);w(we),k(()=>y(qe,` ${n().inProgress??""}`)),d(Oe,we)};D(ge,Oe=>{n().inProgress>0&&Oe(Ne)})}var V=m(ge,2);{var pe=Oe=>{var we=P0(),Qe=m(I(we));w(we),k(()=>y(Qe,` ${n().notStarted??""}`)),d(Oe,we)};D(V,Oe=>{n().notStarted>0&&Oe(pe)})}w(xe),w(J);var ce=m(J,2);{var Te=Oe=>{var we=M0(),Qe=Ue(we);Pt(Qe,17,()=>e(R),Tr,(G,K)=>{var U=Lc(),oe=I(U),he=I(oe);yo(he,{get status(){return e(K).status},size:14}),w(oe);var X=m(oe,2),fe=I(X),Le=L(fe,!0),ze=m(fe,2);{var nt=me=>{var Ee=Rc(),q=I(Ee);{let A=u(()=>e(K).agentState||"idle");ll(q,{get agentId(){return e(K).agentId},get state(){return e(A)},size:12,get specialist(){return e(K).agentSpecialist}})}var Se=m(q,2);{var ue=A=>{var H=Tc(),ye=L(H,!0);k(()=>y(ye,e(K).agentName)),d(A,H)};D(Se,A=>{e(K).agentName&&A(ue)})}w(Ee),d(me,Ee)};D(ze,me=>{e(K).agentId&&me(nt)})}w(X),w(U),k(()=>y(Le,e(K).title)),d(G,U)});var qe=m(Qe,2);Pt(qe,17,()=>e(b),Tr,(G,K)=>{var U=Lc(),oe=I(U),he=I(oe);yo(he,{get status(){return e(K).status},size:14}),w(oe);var X=m(oe,2),fe=I(X),Le=L(fe,!0),ze=m(fe,2);{var nt=me=>{var Ee=Rc(),q=I(Ee);{let A=u(()=>e(K).agentState||"idle");ll(q,{get agentId(){return e(K).agentId},get state(){return e(A)},size:12,get specialist(){return e(K).agentSpecialist}})}var Se=m(q,2);{var ue=A=>{var H=Tc(),ye=L(H,!0);k(()=>y(ye,e(K).agentName)),d(A,H)};D(Se,A=>{e(K).agentName&&A(ue)})}w(Ee),d(me,Ee)};D(ze,me=>{e(K).agentId&&me(nt)})}w(X),w(U),k(()=>y(Le,e(K).title)),d(G,U)});var et=m(qe,2);{var de=G=>{var K=R0(),U=I(K);Pt(U,17,()=>e(g).slice(0,3),Tr,(X,fe)=>{var Le=A0(),ze=I(Le),nt=I(ze);yo(nt,{status:"complete",size:12}),w(ze);var me=m(ze,2),Ee=L(me,!0);w(Le),k(()=>y(Ee,e(fe).title)),d(X,Le)});var oe=m(U,2);{var he=X=>{var fe=T0(),Le=L(fe,!0);k(ze=>y(Le,ze),[()=>v.workspace_taskProgressBar_moreCompleted_label({count:lr(e(g).length-3)})]),d(X,fe)};D(oe,X=>{e(g).length>3&&X(he)})}w(K),d(G,K)};D(et,G=>{e(g).length>0&&G(de)})}var $=m(et,2);{var Re=G=>{var K=L0(),U=L(K,!0);k(oe=>y(U,oe),[()=>v.workspace_taskProgressBar_cancelled_label({count:lr(e(h).length)})]),d(G,K)};D($,G=>{e(h).length>0&&G(Re)})}d(Oe,we)};D(ce,Oe=>{e(P)&&Oe(Te)})}w(z),k(Oe=>y(re,Oe),[()=>v.workspace_taskProgressBar_tasksRatio_label({completed:lr(n().completed),total:lr(n().total)})]),d(C,z)},children:(C,z)=>{{let J=u(()=>En("flex h-auto min-w-0 shrink items-end justify-start cursor-default rounded-none border-0",f())),Y=u(()=>`gap: ${l()}`),re=u(()=>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(J)},get style(){return e(Y)},get"aria-label"(){return e(re)},"data-task-progress-trigger":!0,children:(xe,ie)=>{var ne=wt(),ge=Ue(ne);Pt(ge,17,()=>e(p),Tr,(Ne,V)=>{var pe=O0();let ce;k(()=>ce=Pn(pe,"",ce,{width:o(),height:c(),"background-color":i[e(V)]})),d(Ne,pe)}),d(xe,ne)},$$slots:{default:!0}})}},$$slots:{content:!0,default:!0}})};D(F,N=>{n().total>0&&N(O)})}return d(r,B),qt(T)}function Li(r,t){if(new.target)return Ht({component:Li,...r});Ut(t,!0);let n=_(t,"items",7),a=_(t,"ariaLabel",7),s=_(t,"open",15,!1),o=_(t,"orientation",7,"vertical"),c=_(t,"selection",7),l=_(t,"class",7,"");const f=u(()=>og(n(),c(),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 c()},set selection(p){c(p),x()},get class(){return l()},set class(p=""){l(p),x()},$set:jt,$on:(p,g)=>Wt(t,p,g)};return lm(r,{get actions(){return e(f)},align:"end",get ariaLabel(){return a()},onAction:g=>sg(n(),g)?.onClick(),get open(){return s()},set open(g){s(g)},trigger:(g,R)=>{let b=()=>(R?.()).props;yt(g,ci(b,{variant:"plain",size:"icon-compact",iconOnly:!0,type:"button",get class(){return l()},get"aria-label"(){return a()},onclick:h=>{h.stopPropagation(),b().onclick?.(h)},oncontextmenu:h=>{h.preventDefault(),h.stopPropagation()},children:(h,P)=>{cm(h,{get orientation(){return o()},class:"size-3.5"})},$$slots:{default:!0}}))},$$slots:{trigger:!0}}),qt(i)}var D0=S('<span class="contents"><!></span>'),B0=S("<!> <!>",1);function Ru(r,t){if(new.target)return Ht({component:Ru,...r});Ut(t,!0);let n=_(t,"workspaceId",7),a=_(t,"slot",7);const s=u(()=>Lg(a()));let o=_e(null);kt(()=>{e(o)&&e(o).workspaceId!==n()&&M(o,null)});function c(h){const P=Gc(h);P&&M(o,{...P,workspaceId:n()},!0)}function l(h){h.preventDefault(),h.stopPropagation();const P=h.currentTarget.getBoundingClientRect();M(o,{x:P.left,y:P.bottom+2,returnFocus:h.currentTarget,workspaceId:n()},!0)}function f(){M(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,P)=>Wt(t,h,P)},p=B0(),g=Ue(p);{let h=u(()=>v.workspace_microKeyBadge_ariaLabel({number:lr(a()+1)})),P=u(()=>v.workspace_microKeyBadge_tooltip({number:lr(a()+1)})),T=u(()=>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(P)},onclick:l,oncontextmenu:c,onkeydown:c,"aria-haspopup":"menu",get"aria-expanded"(){return e(T)},children:(B,F)=>{var O=D0(),N=I(O);zp(N,{get slot(){return a()},get class(){return`transition-colors ${e(s)??""}`}}),w(O),d(B,O)},$$slots:{default:!0}})}var R=m(g,2);{var b=h=>{{let P=u(()=>e(o)?.x??0),T=u(()=>e(o)?.y??0),B=u(()=>e(o)?.returnFocus),F=u(()=>v.workspace_card_assignMicroKey_label()),O=u(()=>uh(n(),f));Jc(h,{get x(){return e(P)},get y(){return e(T)},get returnFocus(){return e(B)},selection:"single",get ariaLabel(){return e(F)},get items(){return e(O)},onClickOutside:f})}};D(R,h=>{e(o)&&h(b)})}return d(r,p),qt(i)}var F0=S('<span class="flex size-4 shrink-0 items-center justify-center"><!></span>'),z0=S('<span data-workspace-card-pin-indicator="" aria-hidden="true"><!></span> <span class="sr-only"> </span>',1),H0=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>'),j0=S('<span data-workspace-card-pr-item=""><!></span>'),W0=S('<span class="flex shrink-0 items-center" data-workspace-card-pr-list=""><!></span>'),U0=S('<span data-workspace-card-time=""><!></span>'),q0=S('<span aria-hidden="true"><!></span>'),V0=S("<div><!> <!> <!> <!></div>"),K0=S('<div data-workspace-card-hover-surface=""><!></div>'),G0=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),J0=S('<div class="relative z-10 flex shrink-0 items-center"><!></div>'),Y0=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>'),X0=S('<div class="text-sm font-semibold truncate"> </div>'),Mc=S('<span class="truncate"> </span>'),Z0=S('<span class="text-muted-foreground">·</span>'),Q0=S('<div class="flex items-center gap-1 truncate text-xs text-muted-foreground"><!> <!> <!></div>'),$0=S('<div><!> <!> <div class="flex items-center gap-2 text-xs"><!> <span class="truncate text-muted-foreground"> </span> <span> </span></div> <!></div>'),ek=S('<div class="flex items-center gap-2"><!> <span class="text-ui shrink-0 tabular-nums text-muted-foreground"> </span></div>'),tk=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>'),rk=S('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span></div>'),nk=S('<div class="flex items-center text-ui"><span> </span></div>'),ak=S('<div class="flex flex-col gap-1 px-3 pb-2.5"><!> <!> <!> <!></div>'),sk=S('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!></div>'),ok=S('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!> <!></div>'),ik=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 Lu(r,t){if(new.target)return Ht({component:Lu,...r});Ut(t,!0);const n=()=>Mt(qe,"$prMonitors$",c),a=()=>Mt(et,"$microConnected$",c),s=()=>Mt($,"$hidesOwnerActions$",c),o=()=>Mt(de,"$workspaceKeySlot$",c),[c,l]=oa();let f=_(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),P=_(t,"isWaiting",7),T=_(t,"isPinned",7,!1),B=_(t,"streamingAgentIds",23,()=>[]),F=_(t,"hasSpec",7,!1),O=_(t,"isAgentRunning",7,!1),N=_(t,"agentDigest",7),W=_(t,"trailingLabel",7),C=_(t,"title",7),z=_(t,"repoName",7),J=_(t,"branch",7),Y=_(t,"onClick",7),re=_(t,"onAction",7),xe=_(t,"onTogglePin",7),ie=_(t,"onMarkAsRead",7),ne=_(t,"onOpenInNewWindow",7),ge=_(t,"onHover",7),Ne=_(t,"highlighted",7,!1),V=_(t,"selected",7,!1),pe=_(t,"highlightId",7),ce=_(t,"suppressHover",7,!1),Te=_(t,"isolateHoverReveal",7,!1),Oe=_(t,"class",7),we=_(t,"actions",7);const Qe=is("");kt(()=>{Qe.set(f()?.id??"")});const qe=Ep(Qe),et=Ih(),de=lv(Qe),$=Pp(Qe),Re=u(()=>ph(f()??{})),G=u(()=>gh(e(Re)));let K=u(()=>f()?Sh.url.pathname===`/workspace/${f().id}`:!1),U=u(()=>f()?`workspace-hover-card-${f().id}`:void 0),oe=_e(!1),he=_e(null),X=_e(null);kt(()=>{if(!e(X))return;const te=Es(e(X),{id:pe()});return()=>te.destroy()});let fe=_e(null),Le=_e(null),ze=_e(null),nt=_e(0),me=_e(0),Ee=u(()=>e(nt)+(e(me)>0?e(me)+4:0));function q(){const te=e(fe),pt=e(ze);M(nt,te?Math.max(0,te.scrollWidth-te.clientWidth):0,!0),M(me,te&&pt&&pt.getClientRects().length>0?Math.max(0,te.getBoundingClientRect().right-pt.getBoundingClientRect().left):0,!0)}kt(()=>{const te=e(fe),pt=e(Le),Bt=e(ze);if(!te||!pt||(q(),typeof ResizeObserver>"u"))return;const hr=new ResizeObserver(q);return hr.observe(te),hr.observe(pt),Bt&&hr.observe(Bt),()=>hr.disconnect()});let Se=null,ue=null,A=!1,H=!1,ye=!1,Ze=!1,Pe=!1,He=!1,Q=_e(!1),Ce=!1,$e=null,tt=_e(null),ft=null,Fe;function ht(){Se!==null&&(clearTimeout(Se),Se=null)}function lt(){ue!==null&&(clearTimeout(ue),ue=null),ft?.(),ft=null}function gt(){lt(),M(Q,!0),M(oe,!0),!Pe&&(Pe=!0,as.notifyOpened())}function vt(){lt(),clearTimeout(Fe),M(Q,!1),M(oe,!1),H=!1,Ze=!1,Pe&&(Pe=!1,as.notifyClosed())}function Ct(){return A||H||ye||Ze}function Rt(){if(!e(oe)){vt();return}lt(),ue=setTimeout(()=>{ue=null,Ct()||vt()},mh),ft=as.deferClose(vt)}function Zt(){H=!0,lt()}function _t(){H=!1,!ye&&!Ze&&Rt()}function Vt(){Ze=!0,clearTimeout(Fe),lt()}function er(te){const pt=te.relatedTarget instanceof Node?te.relatedTarget:null;if(pt&&se()?.contains(pt)||(Ze=!1,pt&&e(he)?.contains(pt)))return;if(pt){!A&&!H&&vt();return}const Bt=te.target;clearTimeout(Fe),Fe=setTimeout(()=>{const hr=document.activeElement,Cr=se()?.contains(hr)||e(he)?.contains(hr);hr&&hr!==Bt&&Cr||!A&&!H&&vt()},0)}function Et(){$e!==null&&clearTimeout($e),Ce=!0,$e=setTimeout(()=>{Ce=!1,$e=null},0)}function Jt(te){const pt=te.target,Bt=se();pt instanceof Node&&Bt?.contains(pt)||te.type==="scroll"&&e(he)&&pt instanceof Node&&!pt.contains(e(he))||(te.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 Ot(te){if(te.key!=="Escape")return;const pt=te.target;pt instanceof Node&&se()?.contains(pt)||(te.preventDefault(),te.stopPropagation(),He=ye,ht(),vt())}kt(()=>{if(e(oe))return window.addEventListener("keydown",Ot,!0),()=>window.removeEventListener("keydown",Ot,!0)});const ve=u(()=>f()?Tp.select(Nt.state,f().id):null),ee=u(()=>e(ve)?e(ve):f()?.activePullRequest?f().activePullRequest:!f()?.prStatus||f().prNumber==null?null:{id:`legacy-pr-${f().prNumber}`,number:f().prNumber,url:f().prUrl??"",title:v.workspace_hoverCard_pullRequest_label(),status:f().prStatus,createdAt:f().updatedAt,updatedAt:f().updatedAt}),Ve=u(()=>Ap(f())),at=u(()=>{if(!f()||e(Ve))return[];const te=f(),pt=te.repositoryOwner&&te.repositoryName?`${te.repositoryOwner}/${te.repositoryName}`:void 0;return ig({workspacePRs:te.pullRequests,activePR:e(ee),monitors:n(),workspaceRepo:pt,buildPrUrl:(Bt,hr)=>Hv(Bt,te.repositoryOwner,te.repositoryName,hr),getDisplayTitle:Bt=>Bt.title})}),dt=u(()=>e(at)[0]);function We(te){const pt=te.resource?.repository.provider==="gitlab"?`${te.repo} !${te.number}`:te.repo?v.workspace_card_prBadge_repoLine_tooltip({repo:te.repo,number:te.number}):v.workspace_card_prBadge_label({number:` #${te.number}`});return[Rp(pt,te),te.title,te.details].filter(Boolean).join(`
262
262
  `)}function Z(te){te.key==="Enter"&&Y()?.(te)}function se(){return e(U)?document.getElementById(e(U)):null}function le(){return Array.from(se()?.querySelectorAll("button:not(:disabled), a[href]")??[])}function ke(){const te=e(he)?.querySelector("[data-workspace-card-trigger]"),pt=se();if(!te||!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(te);return hr>=0?Bt[hr+1]:null}function Ae(te){He=!!e(he)?.contains(te),vt(),te.focus({preventScroll:!0})}function Be(){const te=e(he)?.querySelector("[data-workspace-card-trigger]");te&&Ae(te)}async function je(te){if(te.key==="Escape"&&e(oe)){te.preventDefault(),te.stopPropagation(),vt();return}te.key!=="ArrowDown"||ce()||!f()||(te.preventDefault(),te.stopPropagation(),M(Q,!0),M(oe,!0),await Jn(),le()[0]?.focus({preventScroll:!0}))}function Je(te){const pt=le(),Bt=te.key==="Tab"&&te.shiftKey&&te.currentTarget===pt[0],Cr=te.key==="Tab"&&!te.shiftKey&&te.currentTarget===pt.at(-1)?ke():null;te.key!=="Escape"&&!Bt&&!Cr||(te.preventDefault(),te.stopPropagation(),Cr?Ae(Cr):Be())}function Ke(){A=!0,lt(),as.settleDeferredCloses(),q(),ge()?.(),f()&&!ce()&&!ye&&(ht(),M(Q,!0),Se=setTimeout(()=>{Se=null,gt()},as.currentOpenDelay))}function Ie(){A=!1,ht(),!ye&&!Ze&&Rt()}function Ye(){ye=!0,ht(),lt(),!He&&(Ce||f()&&!ce()&&(M(Q,!0),M(oe,!0)))}function Ge(te){const pt=te.relatedTarget instanceof Node?te.relatedTarget:null;pt&&e(he)?.contains(pt)||(He=!1,ye=!1,!(pt&&se()?.contains(pt))&&!A&&!H&&vt())}kt(()=>{ce()&&(ht(),lt(),vt())});let rt=_e(null),ot=_e(!1),it;kt(()=>{const te=f()?.id;it!==te&&(it=te,M(ot,!1)),e(rt)&&e(rt).workspaceId!==f()?.id&&St()});function ut(te){if(!f())return;const pt=Gc(te);if(pt){if(M(ot,!1),bt().length===0){M(rt,null);return}M(rt,{...pt,returnFocus:te.target instanceof HTMLElement?te.target.closest("button")??e(he)?.querySelector("button")??null:null,workspaceId:f().id},!0)}}function St(){M(rt,null),M(ot,!1)}kt(()=>{e(ot)&&M(rt,null)}),hs(()=>{ht(),lt(),$e!==null&&(clearTimeout($e),$e=null),vt()});function bt(){if(!f())return[];const te=[];return ne()&&te.push({id:"open-new-window",label:v.workspace_card_openNewWindow_label(),icon:ed,onClick:()=>{ne()?.(),St()}}),te.push(...vh(f().id,{connected:a(),onClose:St})),s()||(e(Ve)||te.push({id:"transfer",label:v.workspace_card_transfer_label(),icon:Sg,onClick:()=>{Nt.dispatch(Gg({workspaceId:f().id,workspaceTitle:f().title})),St()}}),te.push({id:"archive",label:v.workspace_card_archive_label(),icon:td,onClick:()=>{Nt.dispatch(pd(f().id)),St()}}),te.push({id:"delete",label:v.workspace_card_deleteSpace_label(),icon:rd,destructive:!0,onClick:()=>{Nt.dispatch(gd(f().id)),St()}})),te}let Lt=u(()=>O()&&N()?N():i()?.subtitle??""),Yt=u(()=>p()&&p().tasks.total>0?p().tasks.completed/p().tasks.total:0),$t=u(()=>!!p()&&(p().tasks.total>0||p().files.changed>0||p().commits.total>0||p().pr.hasOpen||p().pr.hasMerged)),Kt=u(()=>e(Ve)?void 0:J()),Lr=u(()=>!p()||e(Ve)?"":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=u(()=>i()?.phase==="planning"?O()?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:F()||(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 pn={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 f()},set workspace(te){f(te),x()},get phase(){return i()},set phase(te){i(te),x()},get stats(){return p()},set stats(te){p(te),x()},get variant(){return g()},set variant(te="compact"){g(te),x()},get showTime(){return R()},set showTime(te=!0){R(te),x()},get isRunning(){return b()},set isRunning(te=!1){b(te),x()},get isUnread(){return h()},set isUnread(te=!1){h(te),x()},get isWaiting(){return P()},set isWaiting(te){P(te),x()},get isPinned(){return T()},set isPinned(te=!1){T(te),x()},get streamingAgentIds(){return B()},set streamingAgentIds(te=[]){B(te),x()},get hasSpec(){return F()},set hasSpec(te=!1){F(te),x()},get isAgentRunning(){return O()},set isAgentRunning(te=!1){O(te),x()},get agentDigest(){return N()},set agentDigest(te){N(te),x()},get trailingLabel(){return W()},set trailingLabel(te){W(te),x()},get title(){return C()},set title(te){C(te),x()},get repoName(){return z()},set repoName(te){z(te),x()},get branch(){return J()},set branch(te){J(te),x()},get onClick(){return Y()},set onClick(te){Y(te),x()},get onAction(){return re()},set onAction(te){re(te),x()},get onTogglePin(){return xe()},set onTogglePin(te){xe(te),x()},get onMarkAsRead(){return ie()},set onMarkAsRead(te){ie(te),x()},get onOpenInNewWindow(){return ne()},set onOpenInNewWindow(te){ne(te),x()},get onHover(){return ge()},set onHover(te){ge(te),x()},get highlighted(){return Ne()},set highlighted(te=!1){Ne(te),x()},get selected(){return V()},set selected(te=!1){V(te),x()},get highlightId(){return pe()},set highlightId(te){pe(te),x()},get suppressHover(){return ce()},set suppressHover(te=!1){ce(te),x()},get isolateHoverReveal(){return Te()},set isolateHoverReveal(te=!1){Te(te),x()},get class(){return Oe()},set class(te){Oe(te),x()},get actions(){return we()},set actions(te){we(te),x()},$set:jt,$on:(te,pt)=>Wt(t,te,pt)},ln=wt(),Yn=Ue(ln);{var An=te=>{var pt=G0(),Bt=Ue(pt);let hr;var Cr=I(Bt);{let Me=u(()=>f().title||v.workspace_links_untitled_label()),st=u(()=>`workspace-status-state-${f().id}${T()?` workspace-pinned-state-${f().id}`:""}${e(oe)?` ${e(U)}`:""}`),Qt=u(()=>e(K)?"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(Me)},get"aria-describedby"(){return e(st)},get"aria-current"(){return e(Qt)},"data-workspace-card-trigger":!0,onkeydown:je,onclick:Dt=>{Dt.stopPropagation(),Y()?.(Dt)}})}var Tn=m(Cr,2),kr=I(Tn);{var Bn=Me=>{var st=F0(),Qt=I(st);{var Dt=tr=>{Ru(tr,{get workspaceId(){return f().id},get slot(){return o()}})};D(Qt,tr=>{o()!==null&&tr(Dt)})}w(st),d(Me,st)};D(kr,Me=>{a()&&Me(Bn)})}var Fn=m(kr,2);Fo(Fn,{get content(){return e(G).tooltip},side:"bottom",sideOffset:4,children:(Me,st)=>{fh(Me,{get status(){return e(Re)},size:14,decorative:!0,class:"justify-start"})},$$slots:{default:!0}});var Xn=m(Fn,2),zn=L(Xn,!0);w(Tn);var Vr=m(Tn,2),gn=I(Vr),sr=I(gn),Kr=I(sr),ra=L(Kr,!0);gr(Kr,Me=>M(Le,Me),()=>e(Le)),w(sr),gr(sr,Me=>M(fe,Me),()=>e(fe));var Sr=m(sr,2);{var Er=Me=>{var st=z0(),Qt=Ue(st),Dt=I(Qt);Tt(Dt,{get icon(){return pl},size:"xs"}),w(Qt);var tr=m(Qt,2),vr=L(tr,!0);k(cn=>{mt(Qt,1,`wc-pin-indicator inline-flex shrink-0 items-center text-muted-foreground transition-opacity
263
- ${xe()?Ne()?"opacity-0":ce()?"":Te()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),ae(tr,"id",`workspace-pinned-state-${f().id??""}`),y(vr,cn)},[()=>v.layout_activeCard_pinned_header()]),d(Me,st)};D(Sr,Me=>{T()&&Me(Er)})}w(gn);var $r=m(gn,2);{var la=Me=>{var st=H0(),Qt=L(st,!0);k(()=>y(Qt,W())),d(Me,st)};D($r,Me=>{W()&&Me(la)})}var Gr=m($r,2);{var en=Me=>{const st=u(()=>e(dt));var Qt=W0(),Dt=I(Qt);{let tr=u(()=>We(e(st)));Fo(Dt,{get content(){return e(tr)},side:"bottom",sideOffset:4,children:(vr,cn)=>{var xn=wt(),dn=Ue(xn);{var fr=Mr=>{{let yr=u(()=>We(e(st)));yt(Mr,{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 Pr=f().id;np(async()=>{const{handleLink:an}=await import("./B6Eksue8.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:Pr,event:Or}))},children:(Or,Pr)=>{Tt(Or,{get icon(){return e(st).statusIcon},size:14})},$$slots:{default:!0}})}},jr=Mr=>{var yr=j0(),Or=I(yr);Tt(Or,{get icon(){return e(st).statusIcon},size:14}),w(yr),k(Pr=>{mt(yr,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(st).foregroundClass??""}`,"svelte-1ct56pd"),ae(yr,"aria-label",Pr),ae(yr,"data-pr-identity",e(st).identity),ae(yr,"data-pr-status",e(st).status)},[()=>We(e(st))]),d(Mr,yr)};D(dn,Mr=>{e(st).url?Mr(fr):Mr(jr,-1)})}d(vr,xn)},$$slots:{default:!0}})}w(Qt),k(tr=>ae(Qt,"aria-label",tr),[()=>e(st).resource?.repository.provider==="gitlab"?v.workspace_hoverCard_mergeRequest_label():v.workspace_hoverCard_pullRequest_label()]),d(Me,Qt)};D(Gr,Me=>{e(dt)&&Me(en)})}var Jr=m(Gr,2);{var ca=Me=>{var st=U0(),Qt=I(st);{var Dt=vr=>{{let cn=u(()=>yl(f()));Hp(vr,{get date(){return e(cn)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},tr=u(()=>yl(f())>0);D(Qt,vr=>{e(tr)&&vr(Dt)})}w(st),k(()=>mt(st,1,`wc-secondary shrink-0 ${we()||xe()||h()&&ie()?Ne()?"opacity-0":ce()?"":Te()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),d(Me,st)};D(Jr,Me=>{R()&&Me(ca)})}w(Vr);var Ta=m(Vr,2);{var Ra=Me=>{var st=V0(),Qt=I(st);{var Dt=fr=>{{let jr=u(()=>T()?"text-primary-ink":"text-muted-foreground"),Mr=u(()=>T()?v.workspace_card_unpin_ariaLabel():v.workspace_card_pin_ariaLabel()),yr=u(()=>T()?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
+ ${xe()?Ne()?"opacity-0":ce()?"":Te()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),ae(tr,"id",`workspace-pinned-state-${f().id??""}`),y(vr,cn)},[()=>v.layout_activeCard_pinned_header()]),d(Me,st)};D(Sr,Me=>{T()&&Me(Er)})}w(gn);var $r=m(gn,2);{var la=Me=>{var st=H0(),Qt=L(st,!0);k(()=>y(Qt,W())),d(Me,st)};D($r,Me=>{W()&&Me(la)})}var Gr=m($r,2);{var en=Me=>{const st=u(()=>e(dt));var Qt=W0(),Dt=I(Qt);{let tr=u(()=>We(e(st)));Fo(Dt,{get content(){return e(tr)},side:"bottom",sideOffset:4,children:(vr,cn)=>{var xn=wt(),dn=Ue(xn);{var fr=Mr=>{{let yr=u(()=>We(e(st)));yt(Mr,{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 Pr=f().id;np(async()=>{const{handleLink:an}=await import("./DsAKyTjw.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:Pr,event:Or}))},children:(Or,Pr)=>{Tt(Or,{get icon(){return e(st).statusIcon},size:14})},$$slots:{default:!0}})}},jr=Mr=>{var yr=j0(),Or=I(yr);Tt(Or,{get icon(){return e(st).statusIcon},size:14}),w(yr),k(Pr=>{mt(yr,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(st).foregroundClass??""}`,"svelte-1ct56pd"),ae(yr,"aria-label",Pr),ae(yr,"data-pr-identity",e(st).identity),ae(yr,"data-pr-status",e(st).status)},[()=>We(e(st))]),d(Mr,yr)};D(dn,Mr=>{e(st).url?Mr(fr):Mr(jr,-1)})}d(vr,xn)},$$slots:{default:!0}})}w(Qt),k(tr=>ae(Qt,"aria-label",tr),[()=>e(st).resource?.repository.provider==="gitlab"?v.workspace_hoverCard_mergeRequest_label():v.workspace_hoverCard_pullRequest_label()]),d(Me,Qt)};D(Gr,Me=>{e(dt)&&Me(en)})}var Jr=m(Gr,2);{var ca=Me=>{var st=U0(),Qt=I(st);{var Dt=vr=>{{let cn=u(()=>yl(f()));Hp(vr,{get date(){return e(cn)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},tr=u(()=>yl(f())>0);D(Qt,vr=>{e(tr)&&vr(Dt)})}w(st),k(()=>mt(st,1,`wc-secondary shrink-0 ${we()||xe()||h()&&ie()?Ne()?"opacity-0":ce()?"":Te()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),d(Me,st)};D(Jr,Me=>{R()&&Me(ca)})}w(Vr);var Ta=m(Vr,2);{var Ra=Me=>{var st=V0(),Qt=I(st);{var Dt=fr=>{{let jr=u(()=>T()?"text-primary-ink":"text-muted-foreground"),Mr=u(()=>T()?v.workspace_card_unpin_ariaLabel():v.workspace_card_pin_ariaLabel()),yr=u(()=>T()?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(),xe()?.(Or)},get"aria-label"(){return e(Mr)},get title(){return e(yr)},children:(Or,Pr)=>{var an=q0(),na=I(an);Tt(na,{get icon(){return pl},size:"xs"}),w(an),d(Or,an)},$$slots:{default:!0}})}};D(Qt,fr=>{xe()&&fr(Dt)})}var tr=m(Qt,2);{var vr=fr=>{{let jr=u(()=>v.workspace_card_markAsRead_label()),Mr=u(()=>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(),ie()?.(yr)},get"aria-label"(){return e(jr)},get title(){return e(Mr)},children:(yr,Or)=>{Tt(yr,{get icon(){return nd},size:"xs"})},$$slots:{default:!0}})}};D(tr,fr=>{h()&&ie()&&fr(vr)})}var cn=m(tr,2);fn(cn,()=>we()??Bs);var xn=m(cn,2);{var dn=fr=>{{let jr=u(bt),Mr=u(()=>v.workspace_progressCard_actions_ariaLabel());Li(fr,{get items(){return e(jr)},get ariaLabel(){return e(Mr)},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){M(ot,yr,!0)}})}};D(xn,fr=>{ne()&&fr(dn)})}w(st),gr(st,fr=>M(ze,fr),()=>e(ze)),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
  ${Ne()?"opacity-100":ce()?"opacity-0":Te()?"opacity-0 group-hover/wc:opacity-100":"opacity-0 group-hover:opacity-100"}`,"svelte-1ct56pd")),d(Me,st)};D(Ta,Me=>{(we()||ne()||xe()||h()&&ie())&&Me(Ra)})}w(Bt),gr(Bt,Me=>M(he,Me),()=>e(he)),On(Bt,(Me,st)=>Es?.(Me,st),()=>({id:pe()}));var Yr=m(Bt,2);{var tn=Me=>{hh(Me,{get id(){return e(U)},get anchor(){return`--workspace-list-${f().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 Dt=K0(),tr=I(Dt);bh(tr,{get workspace(){return f()},get activeAgentIds(){return B()},onkeydown:Je}),w(Dt),gr(Dt,vr=>M(tt,vr),()=>e(tt)),Cn("pointerenter",Dt,Zt),Cn("pointerleave",Dt,_t),Rr("focusin",Dt,Vt),Rr("focusout",Dt,er),d(st,Dt)},$$slots:{default:!0}})};D(Yr,Me=>{e(oe)&&!ce()&&Me(tn)})}var j=m(Yr,2);{var De=Me=>{const st=u(bt);var Qt=wt(),Dt=Ue(Qt);{var tr=vr=>{{let cn=u(()=>e(rt)?.x??0),xn=u(()=>e(rt)?.y??0),dn=u(()=>e(rt)?.returnFocus),fr=u(()=>v.workspace_progressCard_actions_ariaLabel());Jc(vr,{get x(){return e(cn)},get y(){return e(xn)},get returnFocus(){return e(dn)},get ariaLabel(){return e(fr)},get items(){return e(st)},onClickOutside:St})}};D(Dt,vr=>{e(st).length>0&&vr(tr)})}d(Me,Qt)};D(j,Me=>{e(rt)&&Me(De)})}k((Me,st,Qt)=>{mt(Bt,1,Me,"svelte-1ct56pd"),ae(Bt,"data-pinned",T()),ae(Bt,"data-highlight-id",pe()),hr=Pn(Bt,"",hr,{"anchor-name":`--workspace-list-${f().id??""}`}),ae(Xn,"id",`workspace-status-state-${f().id??""}`),y(zn,e(G).accessibleName),mt(sr,1,`wc-title type-body min-w-0 truncate font-normal!
@@ -1 +1 @@
1
- import{t as Qt,bq as K,by as jt,b as Nt,a_ as P,bu as Q,bs as Ie,bo as i}from"./BAqR9jtB.js";import{bs as Yt,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 q,bk as Le,a5 as E,bA as O}from"./DYhIMPy1.js";import{h as Ae,i as Pe,k as ze,d as De,I as Bt,s as Mt}from"./BPk16bSc.js";import{c as Te}from"./B2RRuLl5.js";import{f as z}from"./C9gP-gRX.js";import"./DH9gMPGd.js";import{e as Fe,L as qt}from"./DO2cS8JO.js";import"./BRNfUSNR.js";import"./-URcs0EB.js";import{k as Ue,G as Ee,J as Oe}from"./B6Eksue8.js";import{I as Wt}from"./XzWc0fs1.js";import"./DiCMHWTR.js";import{Hp as W,fh as Kt,z as He,e9 as Rt,pX as Be,t1 as Me,Hg as qe,nM as We,hu as Ke}from"./BSwWMzab.js";import{aV as Vt,aW as Xt,aX as Re,aQ as Ve,aR as Jt,aS as Xe,aT as Je,a$ as Qe}from"./C80u9j_3.js";var je=I('<!> <p class="type-body"> </p>',1);function Ne(it,m){if(new.target)return Qt({component:Ne,...it});Yt(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),j=K(m,"onSelect",7);function V(r){D(!1),j()?.(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 j()},set onSelect(r){j(r),R()},$set:jt,$on:(r,M)=>Nt(m,r,M)};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(M){D(M)},footer:M=>{var T=Se(),w=yt(T);Ae(w,17,k,Pe,(N,Y,X)=>{{let Z=g(()=>X===b()?"ghost":X===k().length-1?"primary":"outline");z(N,{get variant(){return t(Z)},onclick:()=>V(X),children:(ct,pt)=>{h();var ut=x();s(()=>o(ut,t(Y))),n(ct,ut)},$$slots:{default:!0}})}}),n(M,T)},children:(M,T)=>{var w=je(),N=yt(w);Te(N,()=>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 Y=l(N,2),X=H(Y,!0);s(()=>o(X,_())),n(M,w)},$$slots:{footer:!0,default:!0}}),Zt(vt)}var Ye=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});Yt(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),j=()=>Q(te,"$deviceFlow$",r),V=()=>Q(_t,"$cancelOutcome$",r),vt=()=>Q(ae,"$error$",r),[r,M]=Ie();let T=K(m,"compact",7,!1),w=K(m,"onCancel",7);const N=`${D}-host`,Y=`${D}-host-help`,X=`${D}-host-error`,Z=`${D}-token`,ct=Vt(),pt=Xt(),ut=Re(),_t=Ve(),te=Jt(),ee=Xe(),ae=Je(),ne=Qe();let bt=kt(Ge(Vt.select(W.state))),St=kt(!1),tt=kt(""),ft=kt(!1);const p=g(()=>Me(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)||q(bt,c,!0)}),Ht(()=>{_()||q(tt,"")}),Le(()=>{const c=()=>{const e=W.state;Xt.select(e)&&Jt.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(){q(St,!0),q(tt,"")}function Lt(){!_()||!t(p)||k()||b()||W.dispatch(qe(t(p)))}function At(){const c=t(tt).trim();!_()||!c||!t(p)||k()||b()||(W.dispatch(Ke(t(p),c)),q(tt,""))}function Pt(){!_()||b()||(k()&&W.dispatch(Rt()),q(ft,!0))}function oe(){q(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:jt,$on:(c,e)=>Nt(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=Ye(),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 j().userCode},get verificationUri(){return j().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);qt(f,{get for(){return N},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)?Y:`${Y} ${X}`);Wt(G,{get id(){return N},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){q(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=>{Mt($,"id",X),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);qt(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){q(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),J=E(A);{let v=g(()=>!t(re));z(J,{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(J,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(J=>o(A,J),[()=>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(J=>o(A,J),[()=>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(J=>o(A,J),[()=>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=>{Mt(S,"id",Y),o(ot,d)},[()=>i.lib_gitlabConnect_host_description()]),n(e,a)};P(Ft,e=>{(k()||b())&&j()?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 M(),xe}export{ua as G,Ne as M};
1
+ import{t as Yt,bq as V,by as Zt,b as jt,a_ as P,bu as Y,bs as Ie,bo as i}from"./B3iaLYr6.js";import{bs as Nt,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 Qt,aA as W,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 q,bk as Le,a5 as E,bA as O}from"./DYhIMPy1.js";import{h as Ae,i as Pe,k as ze,d as De,I as Bt,s as Mt}from"./DEmaG7Ya.js";import{c as Te}from"./Dj42fWMH.js";import{f as z}from"./CpELl9t1.js";import"./BMMcARVk.js";import{e as Fe,L as qt}from"./CqSXeJtk.js";import"./BA8g-07b.js";import"./DLueLf8l.js";import{k as Ue,G as Ee,J as Oe}from"./DsAKyTjw.js";import{I as Kt}from"./82qiqofo.js";import"./hUiIfi2t.js";import{Hp as K,fh as Vt,z as He,e9 as Wt,pX as Be,t1 as Me,Hg as qe,nM as Ke,hu as Ve}from"./h8IoI-w7.js";import{aX as Xt,aY as Jt,aZ as We,aS as Xe,aT as Rt,aU as Je,aV as Re,b1 as Ye}from"./BLUkoS8T.js";var Ze=I('<!> <p class="type-body"> </p>',1);function je(it,m){if(new.target)return Yt({component:je,...it});Nt(m,!0);let D=V(m,"open",15,!1),B=V(m,"static",7,!1),st=V(m,"title",7),_=V(m,"message",7),k=V(m,"buttons",7),b=V(m,"cancelIndex",7,0),Z=V(m,"onSelect",7);function X(r){D(!1),Z()?.(r)}var vt={get open(){return D()},set open(r=!1){D(r),W()},get static(){return B()},set static(r=!1){B(r),W()},get title(){return st()},set title(r){st(r),W()},get message(){return _()},set message(r){_(r),W()},get buttons(){return k()},set buttons(r){k(r),W()},get cancelIndex(){return b()},set cancelIndex(r=0){b(r),W()},get onSelect(){return Z()},set onSelect(r){Z(r),W()},$set:Zt,$on:(r,M)=>jt(m,r,M)};return Ue(it,{get static(){return B()},role:"alertdialog",get title(){return st()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>X(k().length-1),onCancel:()=>X(b()),get open(){return D()},set open(M){D(M)},footer:M=>{var T=Se(),w=yt(T);Ae(w,17,k,Pe,(j,N,J)=>{{let Q=g(()=>J===b()?"ghost":J===k().length-1?"primary":"outline");z(j,{get variant(){return t(Q)},onclick:()=>X(J),children:(ct,pt)=>{h();var ut=x();s(()=>o(ut,t(N))),n(ct,ut)},$$slots:{default:!0}})}}),n(M,T)},children:(M,T)=>{var w=Ze(),j=yt(w);Te(j,()=>Fe,(Q,ct)=>{ct(Q,{class:"sr-only",children:(pt,ut)=>{h();var _t=x();s(()=>o(_t,_())),n(pt,_t)},$$slots:{default:!0}})});var N=l(j,2),J=H(N,!0);s(()=>o(J,_())),n(M,w)},$$slots:{footer:!0,default:!0}}),Qt(vt)}var Ne=I('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),Qe=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 Yt({component:ua,...it});Nt(m,!0);const B=()=>Y(ct,"$storedInstance$",r),st=()=>Y(ee,"$deviceGrantSupported$",r),_=()=>Y(ne,"$instanceSetupSupported$",r),k=()=>Y(pt,"$isAuthenticating$",r),b=()=>Y(ut,"$isCancelling$",r),Z=()=>Y(te,"$deviceFlow$",r),X=()=>Y(_t,"$cancelOutcome$",r),vt=()=>Y(ae,"$error$",r),[r,M]=Ie();let T=V(m,"compact",7,!1),w=V(m,"onCancel",7);const j=`${D}-host`,N=`${D}-host-help`,J=`${D}-host-error`,Q=`${D}-token`,ct=Xt(),pt=Jt(),ut=We(),_t=Xe(),te=Rt(),ee=Je(),ae=Re(),ne=Ye();let bt=kt(Ge(Xt.select(K.state))),St=kt(!1),tt=kt(""),ft=kt(!1);const p=g(()=>Me(t(bt))),wt=g(()=>t(ft)||t(p)===B()&&st()===!1),Ct=g(()=>t(p)?Ke(t(p)):null),re=g(()=>_()&&t(p)!==null&&t(tt).trim().length>0);Ht(()=>{const c=B();t(St)||q(bt,c,!0)}),Ht(()=>{_()||q(tt,"")}),Le(()=>{const c=()=>{const e=K.state;Jt.select(e)&&Rt.select(e)&&K.dispatch(Vt())};return window.addEventListener("focus",c),()=>window.removeEventListener("focus",c)});function Gt(){!_()||!t(p)||t(p)===B()||k()||b()||K.dispatch(Be(t(p)))}function se(){q(St,!0),q(tt,"")}function Lt(){!_()||!t(p)||k()||b()||K.dispatch(qe(t(p)))}function At(){const c=t(tt).trim();!_()||!c||!t(p)||k()||b()||(K.dispatch(Ve(t(p),c)),q(tt,""))}function Pt(){!_()||b()||(k()&&K.dispatch(Wt()),q(ft,!0))}function oe(){q(ft,!1)}function le(){b()||K.dispatch(Wt())}function ie(){t(Ct)&&Oe(t(Ct),{})}function ce(c){c.key==="Enter"&&(c.preventDefault(),Gt(),t(wt)?document.getElementById(Q)?.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),W()},get onCancel(){return w()},set onCancel(c){w(c),W()},$set:Zt,$on:(c,e)=>jt(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=Ne(),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=Qe(),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 Z().userCode},get verificationUri(){return Z().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);qt(f,{get for(){return j},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)?N:`${N} ${J}`);Kt(G,{get id(){return j},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){q(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=>{Mt($,"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);qt(L,{get for(){return Q},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(()=>!_());Kt(mt,{get id(){return Q},type:"password",autocomplete:"off",get disabled(){return t(v)},placeholder:"glpat-...",onkeydown:ue,get value(){return t(tt)},set value(U){q(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),R=E(A);{let v=g(()=>!t(re));z(R,{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(R,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(R=>o(A,R),[()=>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(R=>o(A,R),[()=>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(R=>o(A,R),[()=>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=>{Mt(S,"id",N),o(ot,d)},[()=>i.lib_gitlabConnect_host_description()]),n(e,a)};P(Ft,e=>{(k()||b())&&Z()?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:()=>K.dispatch(Vt()),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),[()=>X()==="already-started"?i.lib_gitlabConnect_alreadyStarted_description():i.lib_gitlabConnect_cancelFailed_description()]),n(e,a)};P(Ut,e=>{X()==="cancelled"?e(ge):(X()==="already-started"||X()==="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=Qt(de);return M(),xe}export{ua as G,je as M};
@@ -1 +1 @@
1
- import{t as T,bq as r,a_ as W,by as H,bs as $,b as x,bu as B}from"./BAqR9jtB.js";import{bs as C,cd as S,ca as q,a7 as m,ay as f,W as b,bn as D,aA as o}from"./DYhIMPy1.js";import{E}from"./UuiGcpAE.js";import{a as L}from"./DL9BUVq-.js";import{dl as j}from"./DY6JypjK.js";import{Hp as z,gH as F}from"./BSwWMzab.js";function G(i,a){if(new.target)return T({component:G,...i});C(a,!0);const d=()=>B(g,"$workspace$",k),[k,_]=$();let c=r(a,"tab",7),t=r(a,"workspaceId",7),n=r(a,"layoutId",7),p=r(a,"isActive",7);const l=S(t());q(()=>l.set(t()));const g=j(l);var v={get tab(){return c()},set tab(e){c(e),o()},get workspaceId(){return t()},set workspaceId(e){t(e),o()},get layoutId(){return n()},set layoutId(e){n(e),o()},get isActive(){return p()},set isActive(e){p(e),o()},$set:H,$on:(e,s)=>x(a,e,s)},u=m(),w=f(u);{var y=e=>{var s=m(),A=f(s);E(A,t,h=>{L(h,{get workspace(){return d()},showBackToList:!1,onclose:()=>z.dispatch(F(n()??t(),c().id))})}),b(e,s)};W(w,e=>{p()&&d()&&e(y)})}b(i,u);var I=D(v);return _(),I}export{G as default};
1
+ import{t as T,bq as r,a_ as W,by as H,bs as $,b as x,bu as B}from"./B3iaLYr6.js";import{bs as C,cd as S,ca as q,a7 as m,ay as f,W as b,bn as D,aA as o}from"./DYhIMPy1.js";import{E}from"./CBRfvExq.js";import{a as L}from"./DdHsJ0nA.js";import{dm as j}from"./Cti1rV_x.js";import{Hp as z,gH as F}from"./h8IoI-w7.js";function G(i,a){if(new.target)return T({component:G,...i});C(a,!0);const d=()=>B(g,"$workspace$",k),[k,_]=$();let c=r(a,"tab",7),t=r(a,"workspaceId",7),n=r(a,"layoutId",7),p=r(a,"isActive",7);const u=S(t());q(()=>u.set(t()));const g=j(u);var v={get tab(){return c()},set tab(e){c(e),o()},get workspaceId(){return t()},set workspaceId(e){t(e),o()},get layoutId(){return n()},set layoutId(e){n(e),o()},get isActive(){return p()},set isActive(e){p(e),o()},$set:H,$on:(e,s)=>x(a,e,s)},l=m(),w=f(l);{var y=e=>{var s=m(),A=f(s);E(A,t,h=>{L(h,{get workspace(){return d()},showBackToList:!1,onclose:()=>z.dispatch(F(n()??t(),c().id))})}),b(e,s)};W(w,e=>{p()&&d()&&e(y)})}b(i,l);var I=D(v);return _(),I}export{G as default};
@@ -1 +1 @@
1
- import{b as i,aW as l,aw as d,P as o}from"./q4Mp6azq.js";var x=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"};x(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,x as e,y as f,h as g,f as h};
1
+ import{b as i,aW as l,aw as d,P as o}from"./BKJB_6oY.js";var x=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"};x(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,x as e,y as f,h as g,f as h};
@@ -1 +1 @@
1
- import{g as r}from"./BCoW5DN6.js";import{l as d}from"./ChTqQfQN.js";let n=!1,t=!1;function c(){if(!n)try{r.defineTheme("app-dark",{base:"vs-dark",inherit:!0,rules:[{token:"keyword",foreground:"#569cd6"},{token:"string",foreground:"#ce9178"},{token:"number",foreground:"#b5cea8"},{token:"comment",foreground:"#6a9955"}],colors:{"editor.background":"#1B1B23","editor.foreground":"#d4d4d4","editor.selectionBackground":"#264f78","editor.lineHighlightBackground":"#0B0B0E","diffEditor.insertedLineBackground":"#22c55e18","diffEditor.removedLineBackground":"#ef444418","diffEditor.insertedTextBackground":"#22c55e70","diffEditor.removedTextBackground":"#ef444470","diffEditorGutter.insertedLineBackground":"#22c55ecc","diffEditorGutter.removedLineBackground":"#ef4444cc","diffEditor.insertedTextBorder":"#22c55e99","diffEditor.removedTextBorder":"#ef444499","diffEditor.diagonalFill":"#374151","diffEditorOverview.insertedForeground":"#22c55ecc","diffEditorOverview.removedForeground":"#ef4444cc"}}),r.defineTheme("app-light",{base:"vs",inherit:!0,rules:[{token:"keyword",foreground:"#7c3aed"},{token:"keyword.control",foreground:"#7c3aed"},{token:"keyword.operator",foreground:"#7c3aed"},{token:"operator",foreground:"#374151"},{token:"variable",foreground:"#374151"},{token:"variable.other",foreground:"#374151"},{token:"variable.parameter",foreground:"#374151"},{token:"variable.language",foreground:"#7c3aed"},{token:"type",foreground:"#b45309"},{token:"class",foreground:"#b45309"},{token:"interface",foreground:"#b45309"},{token:"enum",foreground:"#b45309"},{token:"function",foreground:"#1d4ed8"},{token:"function.declaration",foreground:"#1d4ed8"},{token:"function.call",foreground:"#1d4ed8"},{token:"string",foreground:"#047857"},{token:"string.quoted",foreground:"#047857"},{token:"string.quoted.single",foreground:"#047857"},{token:"string.quoted.double",foreground:"#047857"},{token:"number",foreground:"#c2410c"},{token:"comment",foreground:"#6b7280"},{token:"comment.line",foreground:"#6b7280"},{token:"comment.block",foreground:"#6b7280"},{token:"invalid",foreground:"#b91c1c"}],colors:{"editor.background":"#ffffff","editor.foreground":"#1f2937","editor.lineNumbersBackground":"#f9fafb","editor.lineNumbersForeground":"#9ca3af","editor.selectionBackground":"#dbeafe","editor.lineHighlightBackground":"#f3f4f6","editorCursor.foreground":"#1f2937","editorWhitespace.foreground":"#e5e7eb","diffEditor.insertedLineBackground":"#22c55e18","diffEditor.removedLineBackground":"#ef444418","diffEditor.insertedTextBackground":"#22c55e70","diffEditor.removedTextBackground":"#ef444470","diffEditorGutter.insertedLineBackground":"#22c55ecc","diffEditorGutter.removedLineBackground":"#ef4444cc","diffEditor.insertedTextBorder":"#22c55e99","diffEditor.removedTextBorder":"#ef444499","diffEditor.diagonalFill":"#e5e7eb55","diffEditorOverview.insertedForeground":"#22c55ecc","diffEditorOverview.removedForeground":"#ef4444cc"}}),n=!0}catch(e){d.error("Failed to initialize Monaco themes:",e)}}function u(e){try{r.defineTheme("app-custom",e),r.setTheme("app-custom"),t=!0}catch(o){d.error("Failed to apply custom Monaco theme:",o)}}function a(e){try{t=!1,r.setTheme(e?"app-dark":"app-light")}catch(o){d.error("Failed to revert Monaco theme:",o)}}function g(e){return t?"app-custom":e?"app-dark":"app-light"}export{u as applyCustomMonacoTheme,c as defineMonacoThemes,g as getActiveMonacoThemeName,a as revertMonacoTheme};
1
+ import{g as r}from"./C5DgMO0u.js";import{l as d}from"./ChTqQfQN.js";let n=!1,t=!1;function c(){if(!n)try{r.defineTheme("app-dark",{base:"vs-dark",inherit:!0,rules:[{token:"keyword",foreground:"#569cd6"},{token:"string",foreground:"#ce9178"},{token:"number",foreground:"#b5cea8"},{token:"comment",foreground:"#6a9955"}],colors:{"editor.background":"#1B1B23","editor.foreground":"#d4d4d4","editor.selectionBackground":"#264f78","editor.lineHighlightBackground":"#0B0B0E","diffEditor.insertedLineBackground":"#22c55e18","diffEditor.removedLineBackground":"#ef444418","diffEditor.insertedTextBackground":"#22c55e70","diffEditor.removedTextBackground":"#ef444470","diffEditorGutter.insertedLineBackground":"#22c55ecc","diffEditorGutter.removedLineBackground":"#ef4444cc","diffEditor.insertedTextBorder":"#22c55e99","diffEditor.removedTextBorder":"#ef444499","diffEditor.diagonalFill":"#374151","diffEditorOverview.insertedForeground":"#22c55ecc","diffEditorOverview.removedForeground":"#ef4444cc"}}),r.defineTheme("app-light",{base:"vs",inherit:!0,rules:[{token:"keyword",foreground:"#7c3aed"},{token:"keyword.control",foreground:"#7c3aed"},{token:"keyword.operator",foreground:"#7c3aed"},{token:"operator",foreground:"#374151"},{token:"variable",foreground:"#374151"},{token:"variable.other",foreground:"#374151"},{token:"variable.parameter",foreground:"#374151"},{token:"variable.language",foreground:"#7c3aed"},{token:"type",foreground:"#b45309"},{token:"class",foreground:"#b45309"},{token:"interface",foreground:"#b45309"},{token:"enum",foreground:"#b45309"},{token:"function",foreground:"#1d4ed8"},{token:"function.declaration",foreground:"#1d4ed8"},{token:"function.call",foreground:"#1d4ed8"},{token:"string",foreground:"#047857"},{token:"string.quoted",foreground:"#047857"},{token:"string.quoted.single",foreground:"#047857"},{token:"string.quoted.double",foreground:"#047857"},{token:"number",foreground:"#c2410c"},{token:"comment",foreground:"#6b7280"},{token:"comment.line",foreground:"#6b7280"},{token:"comment.block",foreground:"#6b7280"},{token:"invalid",foreground:"#b91c1c"}],colors:{"editor.background":"#ffffff","editor.foreground":"#1f2937","editor.lineNumbersBackground":"#f9fafb","editor.lineNumbersForeground":"#9ca3af","editor.selectionBackground":"#dbeafe","editor.lineHighlightBackground":"#f3f4f6","editorCursor.foreground":"#1f2937","editorWhitespace.foreground":"#e5e7eb","diffEditor.insertedLineBackground":"#22c55e18","diffEditor.removedLineBackground":"#ef444418","diffEditor.insertedTextBackground":"#22c55e70","diffEditor.removedTextBackground":"#ef444470","diffEditorGutter.insertedLineBackground":"#22c55ecc","diffEditorGutter.removedLineBackground":"#ef4444cc","diffEditor.insertedTextBorder":"#22c55e99","diffEditor.removedTextBorder":"#ef444499","diffEditor.diagonalFill":"#e5e7eb55","diffEditorOverview.insertedForeground":"#22c55ecc","diffEditorOverview.removedForeground":"#ef4444cc"}}),n=!0}catch(e){d.error("Failed to initialize Monaco themes:",e)}}function u(e){try{r.defineTheme("app-custom",e),r.setTheme("app-custom"),t=!0}catch(o){d.error("Failed to apply custom Monaco theme:",o)}}function a(e){try{t=!1,r.setTheme(e?"app-dark":"app-light")}catch(o){d.error("Failed to revert Monaco theme:",o)}}function g(e){return t?"app-custom":e?"app-dark":"app-light"}export{u as applyCustomMonacoTheme,c as defineMonacoThemes,g as getActiveMonacoThemeName,a as revertMonacoTheme};
@@ -1 +1 @@
1
- import{g as c}from"./BCoW5DN6.js";function a(e,o){const r=globalThis.MonacoEnvironment;if(r?.createTrustedTypesPolicy)try{return r.createTrustedTypesPolicy(e,o)}catch(t){console.error(t);return}try{return globalThis.trustedTypes?.createPolicy(e,o)}catch(t){console.error(t);return}}let n;typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope"&&globalThis.workerttPolicy!==void 0?n=globalThis.workerttPolicy:n=a("defaultWorkerFactory",{createScriptURL:e=>e});function l(e){const o=e.label,r=globalThis.MonacoEnvironment;if(r){if(typeof r.getWorker=="function")return r.getWorker("workerMain.js",o);if(typeof r.getWorkerUrl=="function"){const t=r.getWorkerUrl("workerMain.js",o);return new Worker(n?n.createScriptURL(t):t,{name:o,type:"module"})}}if(e.createWorker)return e.createWorker();throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function s(e){const o=Promise.resolve(l({label:e.label??"monaco-editor-worker",moduleId:e.moduleId,createWorker:e.createWorker})).then(r=>(r.postMessage("ignore"),r.postMessage(e.createData),r));return c.createWebWorker({worker:o,host:e.host,keepIdleModels:e.keepIdleModels})}export{s as c};
1
+ import{g as c}from"./C5DgMO0u.js";function a(e,o){const r=globalThis.MonacoEnvironment;if(r?.createTrustedTypesPolicy)try{return r.createTrustedTypesPolicy(e,o)}catch(t){console.error(t);return}try{return globalThis.trustedTypes?.createPolicy(e,o)}catch(t){console.error(t);return}}let n;typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope"&&globalThis.workerttPolicy!==void 0?n=globalThis.workerttPolicy:n=a("defaultWorkerFactory",{createScriptURL:e=>e});function l(e){const o=e.label,r=globalThis.MonacoEnvironment;if(r){if(typeof r.getWorker=="function")return r.getWorker("workerMain.js",o);if(typeof r.getWorkerUrl=="function"){const t=r.getWorkerUrl("workerMain.js",o);return new Worker(n?n.createScriptURL(t):t,{name:o,type:"module"})}}if(e.createWorker)return e.createWorker();throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function s(e){const o=Promise.resolve(l({label:e.label??"monaco-editor-worker",moduleId:e.moduleId,createWorker:e.createWorker})).then(r=>(r.postMessage("ignore"),r.postMessage(e.createData),r));return c.createWebWorker({worker:o,host:e.host,keepIdleModels:e.keepIdleModels})}export{s as c};
@@ -1 +1 @@
1
- import{l as e}from"./BCoW5DN6.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],a={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}]},m={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{a as conf,m as language};
1
+ import{l as e}from"./C5DgMO0u.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],a={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}]},m={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{a as conf,m as language};
@@ -1 +1 @@
1
- import{t as bt,bq as B,by as wt,bs as Rt,b as It,bu as g}from"./BAqR9jtB.js";import{bs as Pt,ca as I,aD as t,c9 as s,bn as kt,bH as N,bV as E,aA as F}from"./DYhIMPy1.js";import{b as vt}from"./BaIAhI85.js";import{Hp as l,er as Ut,es as At,rN as xt,nw as Bt,nx as Ft,HW as Tt,Ia as Wt,H$ as _t,nB as T}from"./BSwWMzab.js";import{aZ as Dt}from"./A3beYjJS.js";import{g as Lt}from"./DfN8_dcw.js";import{dl as Gt,by as Ht,bA as Nt,bx as Et,bC as Mt,cX as Vt,e as zt}from"./DY6JypjK.js";import{C as qt}from"./ZUZF8K3P.js";import{V as Kt}from"./CeQYwwry.js";import{bN as Xt,bK as Zt,b5 as jt}from"./CzrG_lpv.js";import{i as W,n as M}from"./H2jLkRRS.js";import{ah as Jt}from"./sg8Cer3T.js";function Ot(_,$){if(new.target)return bt({component:Ot,..._});Pt($,!0);const V=()=>g(at,"$gitRoots$",c),y=()=>g(ot,"$workspace",c),z=()=>g(nt,"$ftCommits$",c),q=()=>g(lt,"$rootGitRoots$",c),S=()=>g(st,"$ftChanges$",c),K=()=>g(tt,"$foldUnchanged",c),X=()=>g(Y,"$lineWrapping",c),Z=()=>g(et,"$diffSideBySide",c),j=()=>g(rt,"$ftLoading$",c),J=()=>g(it,"$ftBoundarySha$",c),[c,O]=Rt(),Q=o=>{Kt(o,{embedded:!0,showExpand:!0,get expanded(){return t(w)},onToggleExpand:()=>{N(w,!t(w)),t(w)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return K()},onToggleFold:()=>l.dispatch(_t()),get wrapEnabled(){return X()},onToggleWrap:()=>l.dispatch(Wt()),get splitEnabled(){return Z()},onToggleSplit:()=>l.dispatch(Tt())})},Y=Xt(),tt=Zt(),et=jt();let P=B($,"tab",7),m=B($,"workspaceId",7),C=B($,"isActive",7);const D=Lt(),p=Dt(()=>m()),ot=Gt(p);I(()=>{const o=m();if(!(!C()||!o||t(n)))return l.dispatch(Ut(o,"all")),()=>l.dispatch(At(o,"all"))});const n=s(()=>P().data?.gitRootId||""),at=Jt(p),b=s(()=>V().find(o=>o.id===t(n))),h=s(()=>y()?.worktreePath||y()?.repositoryPath||""),k=s(()=>t(b)?.path||t(h)),st=Ht(p),nt=Nt(p),it=Et(p),rt=Mt(p),dt=s(()=>z()||[]),lt=Vt(p),f=s(()=>q()[t(n)]??zt),ct=s(()=>t(f).status),gt=s(()=>t(f).loading),mt=s(()=>t(f).commitFiles),ut=s(()=>{const o=t(b)?.registeredCommitSha,i=o?t(f).commits.findIndex(e=>e.hash===o):-1;return i>=0?t(f).commits.slice(0,i):t(f).commits});I(()=>{const o=m(),i=t(n);o&&i&&l.dispatch(xt(o,i,t(b)?.registeredCommitSha,100))});let w=E(!0),R=E(null);const pt=s(()=>{if(t(n))return[...(t(ct)?.files??[]).map(e=>({filePath:`${t(k)}/${e.path}`,action:"modify",additions:e.additions??0,deletions:e.deletions??0,toolName:"local",toolCallId:`root-${t(n)}-${e.staged}-${e.path}`,staged:e.staged,category:e.staged?"staged":"unstaged"})),...t(ut).flatMap(e=>(t(mt)[e.hash]??[]).map(a=>({filePath:`${t(k)}/${a.path}`,action:"modify",additions:a.additions??0,deletions:a.deletions??0,toolName:"local",toolCallId:`root-commit-${e.hash}-${a.path}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message})))];const o=S().filter(e=>e.stage==="unstaged"),i=S().filter(e=>e.stage==="staged");return[...o.map(e=>{const a=e.file||e.relativePath,r=a&&W(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-unstaged-${r}`,staged:!1,category:"unstaged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...i.map(e=>{const a=e.file||e.relativePath,r=a&&W(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-staged-${r}`,staged:!0,category:"staged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...t(dt).flatMap(e=>(e.files||[]).map(a=>{const r=typeof a=="string"?a:a.path||"",U=r&&W(r)?r:`${t(h)}/${r}`,A=typeof a=="string"?0:a.additions||0,x=typeof a=="string"?0:a.deletions||0;return{filePath:U,action:"modify",additions:A,deletions:x,toolName:"local",toolCallId:`commit-${e.hash}-${r}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message}}))]});function v(o){if(!t(h))return o;const i=M(o),e=M(t(h));return i.startsWith(`${e}/`)?i.slice(e.length+1):o}function L(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"stage",paths:o.map(v),source:"localChanges"}))}function G(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"unstage",paths:o.map(v),source:"localChanges"}))}function ht(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"discard",paths:o.map(v),source:"localChanges"}))}I(()=>{!D||!C()||D.registerActions({display:Q})});const H=crypto.randomUUID();I(()=>{const o=m();if(!(!(C()&&t(n))||!o))return l.dispatch(Bt(o,H)),()=>l.dispatch(Ft(o,H))});var ft={get tab(){return P()},set tab(o){P(o),F()},get workspaceId(){return m()},set workspaceId(o){m(o),F()},get isActive(){return C()},set isActive(o){C(o),F()},$set:wt,$on:(o,i)=>It($,o,i)};{let o=s(()=>t(n)?t(gt):j()),i=s(()=>t(n)||void 0),e=s(()=>t(n)?t(k):void 0),a=s(()=>y()?.baseRef??null),r=s(()=>t(n)?t(b)?.registeredCommitSha||null:J()||y()?.baseCommitSha||null),U=s(()=>!t(n)),A=s(()=>t(n)?void 0:d=>void L([d])),x=s(()=>t(n)?void 0:d=>void G([d])),Ct=s(()=>t(n)?void 0:d=>void ht([d])),yt=s(()=>t(n)?void 0:()=>{const d=S().filter(u=>u.stage==="unstaged");L(d.map(u=>u.relativePath||u.file))}),St=s(()=>t(n)?void 0:()=>{const d=S().filter(u=>u.stage==="staged");G(d.map(u=>u.relativePath||u.file))});vt(qt(_,{get isLoading(){return t(o)},get changes(){return t(pt)},get gitRootId(){return t(i)},get gitRootPath(){return t(e)},get branchBaseRef(){return t(a)},get branchBaseCommitSha(){return t(r)},get showStagingControls(){return t(U)},showCategoryFilter:!0,get onStage(){return t(A)},get onUnstage(){return t(x)},get onRevert(){return t(Ct)},get onStageAll(){return t(yt)},get onUnstageAll(){return t(St)}}),d=>N(R,d,!0),()=>t(R))}var $t=kt(ft);return O(),$t}export{Ot as default};
1
+ import{t as bt,bq as B,by as wt,bs as Rt,b as It,bu as g}from"./B3iaLYr6.js";import{bs as Pt,ca as I,aD as t,c9 as s,bn as kt,bH as N,bV as E,aA as F}from"./DYhIMPy1.js";import{b as vt}from"./BaIAhI85.js";import{Hp as l,er as Ut,es as At,rN as xt,nw as Bt,nx as Ft,HW as Tt,Ia as Wt,H$ as _t,nB as T}from"./h8IoI-w7.js";import{aZ as Dt}from"./DHNO0898.js";import{g as Lt}from"./DfN8_dcw.js";import{dm as Gt,by as Ht,bA as Nt,bx as Et,bC as Mt,cY as Vt,e as zt}from"./Cti1rV_x.js";import{C as qt}from"./BW4xwD_u.js";import{V as Kt}from"./DIYS_mcw.js";import{bN as Yt,bK as Zt,b5 as jt}from"./DCPTVyDU.js";import{i as W,n as M}from"./H2jLkRRS.js";import{ah as Jt}from"./E-3i0Fur.js";function Ot(_,$){if(new.target)return bt({component:Ot,..._});Pt($,!0);const V=()=>g(at,"$gitRoots$",c),y=()=>g(ot,"$workspace",c),z=()=>g(nt,"$ftCommits$",c),q=()=>g(lt,"$rootGitRoots$",c),S=()=>g(st,"$ftChanges$",c),K=()=>g(tt,"$foldUnchanged",c),Y=()=>g(X,"$lineWrapping",c),Z=()=>g(et,"$diffSideBySide",c),j=()=>g(rt,"$ftLoading$",c),J=()=>g(it,"$ftBoundarySha$",c),[c,O]=Rt(),Q=o=>{Kt(o,{embedded:!0,showExpand:!0,get expanded(){return t(w)},onToggleExpand:()=>{N(w,!t(w)),t(w)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return K()},onToggleFold:()=>l.dispatch(_t()),get wrapEnabled(){return Y()},onToggleWrap:()=>l.dispatch(Wt()),get splitEnabled(){return Z()},onToggleSplit:()=>l.dispatch(Tt())})},X=Yt(),tt=Zt(),et=jt();let P=B($,"tab",7),m=B($,"workspaceId",7),C=B($,"isActive",7);const D=Lt(),p=Dt(()=>m()),ot=Gt(p);I(()=>{const o=m();if(!(!C()||!o||t(n)))return l.dispatch(Ut(o,"all")),()=>l.dispatch(At(o,"all"))});const n=s(()=>P().data?.gitRootId||""),at=Jt(p),b=s(()=>V().find(o=>o.id===t(n))),h=s(()=>y()?.worktreePath||y()?.repositoryPath||""),k=s(()=>t(b)?.path||t(h)),st=Ht(p),nt=Nt(p),it=Et(p),rt=Mt(p),dt=s(()=>z()||[]),lt=Vt(p),f=s(()=>q()[t(n)]??zt),ct=s(()=>t(f).status),gt=s(()=>t(f).loading),mt=s(()=>t(f).commitFiles),ut=s(()=>{const o=t(b)?.registeredCommitSha,i=o?t(f).commits.findIndex(e=>e.hash===o):-1;return i>=0?t(f).commits.slice(0,i):t(f).commits});I(()=>{const o=m(),i=t(n);o&&i&&l.dispatch(xt(o,i,t(b)?.registeredCommitSha,100))});let w=E(!0),R=E(null);const pt=s(()=>{if(t(n))return[...(t(ct)?.files??[]).map(e=>({filePath:`${t(k)}/${e.path}`,action:"modify",additions:e.additions??0,deletions:e.deletions??0,toolName:"local",toolCallId:`root-${t(n)}-${e.staged}-${e.path}`,staged:e.staged,category:e.staged?"staged":"unstaged"})),...t(ut).flatMap(e=>(t(mt)[e.hash]??[]).map(a=>({filePath:`${t(k)}/${a.path}`,action:"modify",additions:a.additions??0,deletions:a.deletions??0,toolName:"local",toolCallId:`root-commit-${e.hash}-${a.path}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message})))];const o=S().filter(e=>e.stage==="unstaged"),i=S().filter(e=>e.stage==="staged");return[...o.map(e=>{const a=e.file||e.relativePath,r=a&&W(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-unstaged-${r}`,staged:!1,category:"unstaged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...i.map(e=>{const a=e.file||e.relativePath,r=a&&W(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-staged-${r}`,staged:!0,category:"staged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...t(dt).flatMap(e=>(e.files||[]).map(a=>{const r=typeof a=="string"?a:a.path||"",U=r&&W(r)?r:`${t(h)}/${r}`,A=typeof a=="string"?0:a.additions||0,x=typeof a=="string"?0:a.deletions||0;return{filePath:U,action:"modify",additions:A,deletions:x,toolName:"local",toolCallId:`commit-${e.hash}-${r}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message}}))]});function v(o){if(!t(h))return o;const i=M(o),e=M(t(h));return i.startsWith(`${e}/`)?i.slice(e.length+1):o}function L(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"stage",paths:o.map(v),source:"localChanges"}))}function G(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"unstage",paths:o.map(v),source:"localChanges"}))}function ht(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"discard",paths:o.map(v),source:"localChanges"}))}I(()=>{!D||!C()||D.registerActions({display:Q})});const H=crypto.randomUUID();I(()=>{const o=m();if(!(!(C()&&t(n))||!o))return l.dispatch(Bt(o,H)),()=>l.dispatch(Ft(o,H))});var ft={get tab(){return P()},set tab(o){P(o),F()},get workspaceId(){return m()},set workspaceId(o){m(o),F()},get isActive(){return C()},set isActive(o){C(o),F()},$set:wt,$on:(o,i)=>It($,o,i)};{let o=s(()=>t(n)?t(gt):j()),i=s(()=>t(n)||void 0),e=s(()=>t(n)?t(k):void 0),a=s(()=>y()?.baseRef??null),r=s(()=>t(n)?t(b)?.registeredCommitSha||null:J()||y()?.baseCommitSha||null),U=s(()=>!t(n)),A=s(()=>t(n)?void 0:d=>void L([d])),x=s(()=>t(n)?void 0:d=>void G([d])),Ct=s(()=>t(n)?void 0:d=>void ht([d])),yt=s(()=>t(n)?void 0:()=>{const d=S().filter(u=>u.stage==="unstaged");L(d.map(u=>u.relativePath||u.file))}),St=s(()=>t(n)?void 0:()=>{const d=S().filter(u=>u.stage==="staged");G(d.map(u=>u.relativePath||u.file))});vt(qt(_,{get isLoading(){return t(o)},get changes(){return t(pt)},get gitRootId(){return t(i)},get gitRootPath(){return t(e)},get branchBaseRef(){return t(a)},get branchBaseCommitSha(){return t(r)},get showStagingControls(){return t(U)},showCategoryFilter:!0,get onStage(){return t(A)},get onUnstage(){return t(x)},get onRevert(){return t(Ct)},get onStageAll(){return t(yt)},get onUnstageAll(){return t(St)}}),d=>N(R,d,!0),()=>t(R))}var $t=kt(ft);return O(),$t}export{Ot as default};
@@ -1,2 +1,2 @@
1
- import{Hp as d,qM as b,Hb as S}from"./BSwWMzab.js";import{J as A,b8 as _}from"./-URcs0EB.js";import{bt as k}from"./DY6JypjK.js";import{bE as y,bA as w}from"./C80u9j_3.js";import{bo as n}from"./BAqR9jtB.js";import{t as P}from"./Bl_iEh1f.js";const L=d.createSelector(e=>e.backgroundAgentSettings.defaultModel),z=d.createSelector(e=>e.backgroundAgentSettings.typeOverrides),G=d.createSelector((e,t)=>!!(e.backgroundAgentSettings.typeOverrides[t]||e.backgroundAgentSettings.typeReasoningEffortOverrides[t])),W=d.createSelector(e=>e.backgroundAgentSettings.defaultReasoningEffort),j=d.createSelector(e=>e.backgroundAgentSettings.typeReasoningEffortOverrides),q=d.createSelector(e=>e.backgroundAgentSettings);function r(e){return{category:"settings",...e}}const f=[{id:"new-workspace",tab:"",label:"New workspace",route:"/workspace/new",category:"navigation",description:"Create-workspace flow."},r({id:"utility-default-model",tab:"providers",hashAliases:["utility-default-model","default-model","quickActions.defaultModel","backgroundAgents.defaultModel"],scrollSelector:"#utility-default-model",highlightSelector:'[data-highlight-id="utility-default-model"]',label:"Settings: Default model",route:"/settings?tab=providers#utility-default-model",description:"Default AI behavior model selection."}),r({id:"global-instructions",tab:"agent-behavior",hashAliases:["global-instructions","agents","specialists","all-agents"],scrollSelector:"#global-instructions",highlightSelector:'[data-highlight-id="global-instructions"]',label:"Settings: Agent Behavior",route:"/settings?tab=agent-behavior#global-instructions",description:"Global agent instructions and defaults."}),r({id:"create-specialist",tab:"specialists",hashAliases:["create-specialist"],scrollSelector:"#create-specialist",highlightSelector:'[data-highlight-id="create-specialist"]',label:"Settings: Create specialist",route:"/settings?tab=specialists&view=create-specialist#create-specialist",description:"Create-specialist entry point."}),r({id:"providers",tab:"providers",hashAliases:["providers"],scrollSelector:"#providers",highlightSelector:'[data-highlight-id="providers"]',label:"Settings: AI coding CLIs",route:"/settings?tab=providers#providers",description:"Provider/account selector settings."}),r({id:"integrations",tab:"connections",hashAliases:["integrations"],scrollSelector:"#integrations",highlightSelector:'[data-highlight-id="integrations"]',label:"Settings: Connections",route:"/settings?tab=connections#integrations",description:"Connected integrations settings."}),r({id:"devices",tab:"devices",hashAliases:["devices","machines"],scrollSelector:"#devices",highlightSelector:"#devices",label:"Settings: Machines",route:"/settings?tab=devices#devices",description:"Saved remote machine settings."}),r({id:"mobile",tab:"mobile",hashAliases:["mobile"],scrollSelector:"#mobile",highlightSelector:'[data-highlight-id="mobile"]',label:"Settings: Mobile",route:"/settings?tab=mobile#mobile",description:"Remote access and Intent Mobile pairing."}),r({id:"guest-sessions",tab:"collaboration",hashAliases:["collaboration","guest-sessions","sharing"],scrollSelector:"#collaboration",highlightSelector:"#collaboration",label:"Settings: Collaboration",route:"/settings?tab=collaboration#collaboration",description:"Host membership, workspace guests and joined hosts."}),r({id:"websocket-api",tab:"mobile",hashAliases:["websocket-api","remote-access"],scrollSelector:"#websocket-api",highlightSelector:'[data-highlight-id="websocket-api"]',label:"Settings: Remote Access",route:"/settings?tab=mobile#websocket-api",description:"Remote access (WebSocket API) settings."}),...[["voice","Voice Dictation","Voice dictation settings.","input"],["keyboard-shortcuts","Keyboard Shortcuts","Keyboard shortcuts reference.","input"],["mcp-servers","MCP Servers","MCP server configuration.","connections"],["plugins","Plugins","App-wide Agent Plugins.","connections"],["git-workspace","Git & Workspace","Git and workspace defaults.","setup"],["git","Git","Git defaults.","setup"],["shell","Shell","Shell and CLI optimization settings.","setup"],["workspace","Workspace","Workspace defaults.","setup"],["cli-optimization","CLI Optimization","RTK/CLI optimization settings.","setup"],["workspace-api","Tool Output & Retention","Tool output size and retention settings.","advanced"],["notifications","Notifications","Notification preferences.","app-behavior"],["updates","Updates","Application update preferences.","app-behavior"],["open-in","Open In","External editor/app launch preferences.","app-behavior"],["github-link-action","GitHub Links","GitHub issue and pull request link behavior.","app-behavior"],["agent-features","Agent Features","Agent feature settings.","agent-behavior"],["font-style","Font style","Font style settings.","display"],["language","Language","Application language settings.","display"],["agent-backend","Agent Backend","Agent backend settings.","advanced"],["connection","Connection","Daemon connection details.","advanced"],["hardware","Hardware","Hardware integration settings.","advanced"],["developer","Developer","Development-only settings.","advanced"]].map(([e,t,i,a])=>r({id:e,tab:a,hashAliases:[e],scrollSelector:`#${e}`,highlightSelector:`[data-highlight-id="${e}"]`,label:`Settings: ${t}`,route:`/settings?tab=${a}#${e}`,description:i})),r({id:"appearance",tab:"display",hashAliases:["appearance","theme"],scrollSelector:"#theme",highlightSelector:'[data-highlight-id="appearance"]',label:"Settings: Appearance",route:"/settings?tab=display#theme",description:"Theme mode controls."}),...[["color-theme","Color theme","Color theme selection."],["note-font","Notes font","Notes/spec font style."],["agent-chat-font","Agent chat font","Agent chat font style."],["code-font","Code font","Code editor and diff font."]].map(([e,t,i])=>r({id:e,tab:"display",hashAliases:[e],scrollSelector:`#${e}`,highlightSelector:`[data-highlight-id="${e}"]`,label:`Settings: ${t}`,route:`/settings?tab=display#${e}`,description:i})),r({id:"general",tab:"advanced",hashAliases:["general","reset"],scrollSelector:"#reset",highlightSelector:'[data-highlight-id="general"]',label:"Settings: Advanced",route:"/settings?tab=advanced#reset",description:"Advanced settings and reset controls."}),{id:"workspace-card",tab:"",hashAliases:["workspace-card"],highlightSelector:'[data-highlight-id^="workspace-"]',label:"Workspace card",category:"workspace",description:"A workspace card on workspace list surfaces.",dynamic:!0,idPattern:"workspace-{workspaceId}"},{id:"specialist-entry",tab:"specialists",highlightSelector:'[data-highlight-id^="specialist-"]',label:"Specialist entry",route:"/settings?tab=specialists&specialist={specialistId}#specialist-{specialistId}",category:"specialist",description:"A specific specialist row in settings.",dynamic:!0,idPattern:"specialist-{specialistId}"}];function m(e){const t=e.indexOf("#"),i=t>=0?e.slice(t+1):e;return decodeURIComponent(i.replace(/^#/,"")).trim()}function I(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function M(e,t){if(!t.match(/\{[^}]+\}/g)?.length)return e===t;const a=t.split(/\{[^}]+\}/g).map(I).join("[^/]+");return new RegExp(`^${a}$`).test(e)}function R(e){const t=m(e);if(!t)return;const i=f.find(o=>o.id===t||o.hashAliases?.includes(t));if(i)return i;const a=f.find(o=>o.route&&o.dynamic&&o.idPattern&&M(t,o.idPattern));return a?{...a,id:t}:void 0}function T(e){try{return new URL(e,"app://intent").pathname||"/"}catch{const t=e.indexOf("?"),i=e.indexOf("#");let a=e.length;return t>=0&&(a=Math.min(a,t)),i>=0&&(a=Math.min(a,i)),e.slice(0,a)||"/"}}const E=new Set(f.flatMap(e=>e.route?[T(e.route)]:[])),C=[/^\/workspace\/[^/]+$/,/^\/agent\/[^/]+$/];function F(e){if(typeof e!="string")return!1;const t=e.trim();if(!t)return!1;if(t.startsWith("intent://"))return!0;let i,a;try{const o=new URL(t,"app://intent");if(o.protocol!=="app:")return!1;i=o.pathname||"/",a=m(o.hash)}catch{return!1}return E.has(i)?a?!!R(a):!0:C.some(o=>o.test(i))}const O=d.createSelector(e=>{const t=new Map,i=(s,c)=>{const g=t.get(s)??new Set;g.add(c),t.set(s,g)},a=k.select(e),o=A.select(e),h=_.select(e)[o];h&&o&&i(o,n.settings_providers_inUseDefaultModel_label({model:h})),b(o)&&!h&&i(o,n.settings_providers_inUseDefaultProvider_label());const u=e.backgroundAgentSettings?.providerId;u&&b(u)&&i(u,n.settings_providers_inUseQuickActions_label());for(const s of y.select(e)){const c=w.select(e,s.id),g=s.source?{project:n.settings_providers_pinSourceProject_label(),user:n.settings_providers_pinSourceUser_label(),bundled:n.settings_providers_pinSourceBundled_label(),builtin:n.settings_providers_pinSourceBuiltin_label(),"electron-store":n.settings_providers_pinSourceLegacy_label()}[s.source]:void 0,p=l=>g&&c?n.settings_providers_inUseSourcePath_label({reason:l,source:g,path:c}):g?n.settings_providers_inUseSource_label({reason:l,source:g}):c?n.settings_providers_inUsePath_label({reason:l,path:c}):l;if(s.codingAgent&&i(s.codingAgent,p(n.settings_providers_inUseSpecialistAgent_label({name:s.name}))),s.modelOptions?.forEach((l,v)=>{l.provider&&b(l.provider)&&i(l.provider,p(n.settings_providers_inUseSpecialistModelOption_label({name:s.name,position:P(v+1)})))}),s.defaultModel)if(s.defaultModel.includes(":")){const l=S(s.defaultModel).providerId??a;i(l,p(n.settings_providers_inUseSpecialistModel_label({name:s.name,model:s.defaultModel})))}else s.codingAgent||i(a,p(n.settings_providers_inUseSpecialistModel_label({name:s.name,model:s.defaultModel})))}return Object.fromEntries([...t].map(([s,c])=>[s,[...c].join(`
2
- `)]))});d.createSelector((e,t)=>O.select(e)[t]??null);const U=[{id:"dracula",label:"Dracula"},{id:"nord",label:"Nord"},{id:"rose-pine",label:"Rosé Pine"},{id:"tokyo-night",label:"Tokyo Night"},{id:"solarized",label:"Solarized"},{id:"github",label:"GitHub"},{id:"high-contrast",label:"High Contrast"}],K=U.map(({id:e})=>e);export{K as T,U as a,W as b,q as c,z as d,j as e,G as f,O as g,F as i,R as r,L as s};
1
+ import{Hp as d,qM as b,Hb as S}from"./h8IoI-w7.js";import{J as A,b9 as _}from"./DLueLf8l.js";import{bt as k}from"./Cti1rV_x.js";import{bH as y,bD as w}from"./BLUkoS8T.js";import{bo as n}from"./B3iaLYr6.js";import{t as P}from"./6Rt8MvWn.js";const L=d.createSelector(e=>e.backgroundAgentSettings.defaultModel),z=d.createSelector(e=>e.backgroundAgentSettings.typeOverrides),G=d.createSelector((e,t)=>!!(e.backgroundAgentSettings.typeOverrides[t]||e.backgroundAgentSettings.typeReasoningEffortOverrides[t])),W=d.createSelector(e=>e.backgroundAgentSettings.defaultReasoningEffort),j=d.createSelector(e=>e.backgroundAgentSettings.typeReasoningEffortOverrides),q=d.createSelector(e=>e.backgroundAgentSettings);function r(e){return{category:"settings",...e}}const f=[{id:"new-workspace",tab:"",label:"New workspace",route:"/workspace/new",category:"navigation",description:"Create-workspace flow."},r({id:"utility-default-model",tab:"providers",hashAliases:["utility-default-model","default-model","quickActions.defaultModel","backgroundAgents.defaultModel"],scrollSelector:"#utility-default-model",highlightSelector:'[data-highlight-id="utility-default-model"]',label:"Settings: Default model",route:"/settings?tab=providers#utility-default-model",description:"Default AI behavior model selection."}),r({id:"global-instructions",tab:"agent-behavior",hashAliases:["global-instructions","agents","specialists","all-agents"],scrollSelector:"#global-instructions",highlightSelector:'[data-highlight-id="global-instructions"]',label:"Settings: Agent Behavior",route:"/settings?tab=agent-behavior#global-instructions",description:"Global agent instructions and defaults."}),r({id:"create-specialist",tab:"specialists",hashAliases:["create-specialist"],scrollSelector:"#create-specialist",highlightSelector:'[data-highlight-id="create-specialist"]',label:"Settings: Create specialist",route:"/settings?tab=specialists&view=create-specialist#create-specialist",description:"Create-specialist entry point."}),r({id:"providers",tab:"providers",hashAliases:["providers"],scrollSelector:"#providers",highlightSelector:'[data-highlight-id="providers"]',label:"Settings: AI coding CLIs",route:"/settings?tab=providers#providers",description:"Provider/account selector settings."}),r({id:"integrations",tab:"connections",hashAliases:["integrations"],scrollSelector:"#integrations",highlightSelector:'[data-highlight-id="integrations"]',label:"Settings: Connections",route:"/settings?tab=connections#integrations",description:"Connected integrations settings."}),r({id:"devices",tab:"devices",hashAliases:["devices","machines"],scrollSelector:"#devices",highlightSelector:"#devices",label:"Settings: Machines",route:"/settings?tab=devices#devices",description:"Saved remote machine settings."}),r({id:"mobile",tab:"mobile",hashAliases:["mobile"],scrollSelector:"#mobile",highlightSelector:'[data-highlight-id="mobile"]',label:"Settings: Mobile",route:"/settings?tab=mobile#mobile",description:"Remote access and Intent Mobile pairing."}),r({id:"guest-sessions",tab:"collaboration",hashAliases:["collaboration","guest-sessions","sharing"],scrollSelector:"#collaboration",highlightSelector:"#collaboration",label:"Settings: Collaboration",route:"/settings?tab=collaboration#collaboration",description:"Host membership, workspace guests and joined hosts."}),r({id:"websocket-api",tab:"mobile",hashAliases:["websocket-api","remote-access"],scrollSelector:"#websocket-api",highlightSelector:'[data-highlight-id="websocket-api"]',label:"Settings: Remote Access",route:"/settings?tab=mobile#websocket-api",description:"Remote access (WebSocket API) settings."}),...[["voice","Voice Dictation","Voice dictation settings.","input"],["keyboard-shortcuts","Keyboard Shortcuts","Keyboard shortcuts reference.","input"],["mcp-servers","MCP Servers","MCP server configuration.","connections"],["plugins","Plugins","App-wide Agent Plugins.","connections"],["git-workspace","Git & Workspace","Git and workspace defaults.","setup"],["git","Git","Git defaults.","setup"],["shell","Shell","Shell and CLI optimization settings.","setup"],["workspace","Workspace","Workspace defaults.","setup"],["cli-optimization","CLI Optimization","RTK/CLI optimization settings.","setup"],["workspace-api","Tool Output & Retention","Tool output size and retention settings.","advanced"],["notifications","Notifications","Notification preferences.","app-behavior"],["updates","Updates","Application update preferences.","app-behavior"],["open-in","Open In","External editor/app launch preferences.","app-behavior"],["github-link-action","GitHub Links","GitHub issue and pull request link behavior.","app-behavior"],["agent-features","Agent Features","Agent feature settings.","agent-behavior"],["font-style","Font style","Font style settings.","display"],["language","Language","Application language settings.","display"],["agent-backend","Agent Backend","Agent backend settings.","advanced"],["connection","Connection","Daemon connection details.","advanced"],["hardware","Hardware","Hardware integration settings.","advanced"],["developer","Developer","Development-only settings.","advanced"]].map(([e,t,i,a])=>r({id:e,tab:a,hashAliases:[e],scrollSelector:`#${e}`,highlightSelector:`[data-highlight-id="${e}"]`,label:`Settings: ${t}`,route:`/settings?tab=${a}#${e}`,description:i})),r({id:"appearance",tab:"display",hashAliases:["appearance","theme"],scrollSelector:"#theme",highlightSelector:'[data-highlight-id="appearance"]',label:"Settings: Appearance",route:"/settings?tab=display#theme",description:"Theme mode controls."}),...[["color-theme","Color theme","Color theme selection."],["note-font","Notes font","Notes/spec font style."],["agent-chat-font","Agent chat font","Agent chat font style."],["code-font","Code font","Code editor and diff font."]].map(([e,t,i])=>r({id:e,tab:"display",hashAliases:[e],scrollSelector:`#${e}`,highlightSelector:`[data-highlight-id="${e}"]`,label:`Settings: ${t}`,route:`/settings?tab=display#${e}`,description:i})),r({id:"general",tab:"advanced",hashAliases:["general","reset"],scrollSelector:"#reset",highlightSelector:'[data-highlight-id="general"]',label:"Settings: Advanced",route:"/settings?tab=advanced#reset",description:"Advanced settings and reset controls."}),{id:"workspace-card",tab:"",hashAliases:["workspace-card"],highlightSelector:'[data-highlight-id^="workspace-"]',label:"Workspace card",category:"workspace",description:"A workspace card on workspace list surfaces.",dynamic:!0,idPattern:"workspace-{workspaceId}"},{id:"specialist-entry",tab:"specialists",highlightSelector:'[data-highlight-id^="specialist-"]',label:"Specialist entry",route:"/settings?tab=specialists&specialist={specialistId}#specialist-{specialistId}",category:"specialist",description:"A specific specialist row in settings.",dynamic:!0,idPattern:"specialist-{specialistId}"}];function m(e){const t=e.indexOf("#"),i=t>=0?e.slice(t+1):e;return decodeURIComponent(i.replace(/^#/,"")).trim()}function I(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function M(e,t){if(!t.match(/\{[^}]+\}/g)?.length)return e===t;const a=t.split(/\{[^}]+\}/g).map(I).join("[^/]+");return new RegExp(`^${a}$`).test(e)}function R(e){const t=m(e);if(!t)return;const i=f.find(o=>o.id===t||o.hashAliases?.includes(t));if(i)return i;const a=f.find(o=>o.route&&o.dynamic&&o.idPattern&&M(t,o.idPattern));return a?{...a,id:t}:void 0}function T(e){try{return new URL(e,"app://intent").pathname||"/"}catch{const t=e.indexOf("?"),i=e.indexOf("#");let a=e.length;return t>=0&&(a=Math.min(a,t)),i>=0&&(a=Math.min(a,i)),e.slice(0,a)||"/"}}const E=new Set(f.flatMap(e=>e.route?[T(e.route)]:[])),C=[/^\/workspace\/[^/]+$/,/^\/agent\/[^/]+$/];function F(e){if(typeof e!="string")return!1;const t=e.trim();if(!t)return!1;if(t.startsWith("intent://"))return!0;let i,a;try{const o=new URL(t,"app://intent");if(o.protocol!=="app:")return!1;i=o.pathname||"/",a=m(o.hash)}catch{return!1}return E.has(i)?a?!!R(a):!0:C.some(o=>o.test(i))}const H=d.createSelector(e=>{const t=new Map,i=(s,c)=>{const g=t.get(s)??new Set;g.add(c),t.set(s,g)},a=k.select(e),o=A.select(e),h=_.select(e)[o];h&&o&&i(o,n.settings_providers_inUseDefaultModel_label({model:h})),b(o)&&!h&&i(o,n.settings_providers_inUseDefaultProvider_label());const u=e.backgroundAgentSettings?.providerId;u&&b(u)&&i(u,n.settings_providers_inUseQuickActions_label());for(const s of y.select(e)){const c=w.select(e,s.id),g=s.source?{project:n.settings_providers_pinSourceProject_label(),user:n.settings_providers_pinSourceUser_label(),bundled:n.settings_providers_pinSourceBundled_label(),builtin:n.settings_providers_pinSourceBuiltin_label(),"electron-store":n.settings_providers_pinSourceLegacy_label()}[s.source]:void 0,p=l=>g&&c?n.settings_providers_inUseSourcePath_label({reason:l,source:g,path:c}):g?n.settings_providers_inUseSource_label({reason:l,source:g}):c?n.settings_providers_inUsePath_label({reason:l,path:c}):l;if(s.codingAgent&&i(s.codingAgent,p(n.settings_providers_inUseSpecialistAgent_label({name:s.name}))),s.modelOptions?.forEach((l,v)=>{l.provider&&b(l.provider)&&i(l.provider,p(n.settings_providers_inUseSpecialistModelOption_label({name:s.name,position:P(v+1)})))}),s.defaultModel)if(s.defaultModel.includes(":")){const l=S(s.defaultModel).providerId??a;i(l,p(n.settings_providers_inUseSpecialistModel_label({name:s.name,model:s.defaultModel})))}else s.codingAgent||i(a,p(n.settings_providers_inUseSpecialistModel_label({name:s.name,model:s.defaultModel})))}return Object.fromEntries([...t].map(([s,c])=>[s,[...c].join(`
2
+ `)]))});d.createSelector((e,t)=>H.select(e)[t]??null);const O=[{id:"dracula",label:"Dracula"},{id:"nord",label:"Nord"},{id:"rose-pine",label:"Rosé Pine"},{id:"tokyo-night",label:"Tokyo Night"},{id:"solarized",label:"Solarized"},{id:"github",label:"GitHub"},{id:"high-contrast",label:"High Contrast"}],K=O.map(({id:e})=>e);export{K as T,O as a,W as b,q as c,z as d,j as e,G as f,H as g,F as i,R as r,L as s};