@intent-hq/web 2.283.0 → 2.283.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{DikRK37J.js → -EQ6B0ad.js} +6 -6
  3. package/web/app/immutable/chunks/{BOK7tZ0u.js → -FJQK9pf.js} +1 -1
  4. package/web/app/immutable/chunks/{DSMbTvmu.js → -eynjkyq.js} +1 -1
  5. package/web/app/immutable/chunks/{BMafDnH1.js → 0K6BfmBv.js} +1 -1
  6. package/web/app/immutable/chunks/{BaUre9ae.js → 1kQYhwzI.js} +1 -1
  7. package/web/app/immutable/chunks/{Cnak6su6.js → 2sWuLeQM.js} +1 -1
  8. package/web/app/immutable/chunks/{24W0Bn2s.js → 2zaEEAE2.js} +1 -1
  9. package/web/app/immutable/chunks/{DcKxGpqI.js → 5JlRwIXk.js} +1 -1
  10. package/web/app/immutable/chunks/{DMbXrJli.js → 67V3Eqst.js} +1 -1
  11. package/web/app/immutable/chunks/{CxHgNIPx.js → 6Rnnu0Za.js} +1 -1
  12. package/web/app/immutable/chunks/{CDTxQX_O.js → AL4WvJsG.js} +1 -1
  13. package/web/app/immutable/chunks/{BWShw5FX.js → B0dFfRzP.js} +1 -1
  14. package/web/app/immutable/chunks/{dGE6HMYD.js → B3t7QTl4.js} +1 -1
  15. package/web/app/immutable/chunks/{C__5IrZC.js → B4nXFAp1.js} +3 -3
  16. package/web/app/immutable/chunks/{CFzvK5D6.js → B856U1Jr.js} +1 -1
  17. package/web/app/immutable/chunks/{C4oKInMh.js → B9hh5ps3.js} +1 -1
  18. package/web/app/immutable/chunks/{Bw0IeVy1.js → B9un2a8L.js} +1 -1
  19. package/web/app/immutable/chunks/{DU0lunxS.js → BB4kjTGV.js} +1 -1
  20. package/web/app/immutable/chunks/{z8qxf2tv.js → BC7qvj8J.js} +1 -1
  21. package/web/app/immutable/chunks/{wqHUaR0E.js → BDq1sVyx.js} +1 -1
  22. package/web/app/immutable/chunks/{BcIZ6c0f.js → BIIzJP0L.js} +1 -1
  23. package/web/app/immutable/chunks/{CNnCGYha.js → BIUeJ7Ke.js} +1 -1
  24. package/web/app/immutable/chunks/{CMI5HTNV.js → BIZ0uXaU.js} +1 -1
  25. package/web/app/immutable/chunks/{C9TPtINb.js → BJhIFFGs.js} +3 -3
  26. package/web/app/immutable/chunks/{DeDjUs04.js → BKkrgjsa.js} +1 -1
  27. package/web/app/immutable/chunks/{Bar8ZAyw.js → BLqK1w-V.js} +1 -1
  28. package/web/app/immutable/chunks/{D-U5rcFa.js → BM-sVLs9.js} +1 -1
  29. package/web/app/immutable/chunks/{DlKkI_if.js → BM2v-1zr.js} +1 -1
  30. package/web/app/immutable/chunks/{BjU1p5sL.js → BM9f6Xn6.js} +1 -1
  31. package/web/app/immutable/chunks/{PJDGiarN.js → BMBkpFaV.js} +1 -1
  32. package/web/app/immutable/chunks/{0kUsCNYC.js → BMOHjFjD.js} +1 -1
  33. package/web/app/immutable/chunks/{CuaTp0m1.js → BMW1RYmJ.js} +2 -2
  34. package/web/app/immutable/chunks/{UFs8wmaf.js → BMt7MpM8.js} +1 -1
  35. package/web/app/immutable/chunks/{B122KxZy.js → BNLICSI-.js} +1 -1
  36. package/web/app/immutable/chunks/{CBWgmFBu.js → BNe0FUML.js} +1 -1
  37. package/web/app/immutable/chunks/{B8eIPDu7.js → BNm8i956.js} +1 -1
  38. package/web/app/immutable/chunks/{D3cS8a_B.js → BPp3W2jV.js} +1 -1
  39. package/web/app/immutable/chunks/{BlEVobud.js → BSERRzdN.js} +1 -1
  40. package/web/app/immutable/chunks/{UF5lygT0.js → BSa29cCP.js} +4 -4
  41. package/web/app/immutable/chunks/{2UHo-lr0.js → BTxaodpe.js} +1 -1
  42. package/web/app/immutable/chunks/{Dt0exTZ5.js → BUcRm8Vm.js} +1 -1
  43. package/web/app/immutable/chunks/{C8chCNZC.js → BVcYqOip.js} +2 -2
  44. package/web/app/immutable/chunks/{DLZWsh5d.js → BW9EmetF.js} +1 -1
  45. package/web/app/immutable/chunks/{E5HQjq_O.js → BXWTCqoP.js} +1 -1
  46. package/web/app/immutable/chunks/{BLdRIYgd.js → BXmUGAB5.js} +1 -1
  47. package/web/app/immutable/chunks/{CzI05dO6.js → BYX2DQge.js} +1 -1
  48. package/web/app/immutable/chunks/{BzSa9-IF.js → BYaK8uq0.js} +1 -1
  49. package/web/app/immutable/chunks/{DF6AYPg_.js → B_IHHwFT.js} +1 -1
  50. package/web/app/immutable/chunks/{DeiP0erP.js → B_KqSc_J.js} +1 -1
  51. package/web/app/immutable/chunks/{3SbVPCw7.js → BaWdIDeU.js} +1 -1
  52. package/web/app/immutable/chunks/{CPbL2cqN.js → Bcdu3rtl.js} +1 -1
  53. package/web/app/immutable/chunks/{Dq-W9mGx.js → BdXZBn8p.js} +3 -3
  54. package/web/app/immutable/chunks/{CjNKHPKC.js → Bda__gQr.js} +2 -2
  55. package/web/app/immutable/chunks/{DoxEq2_M.js → Bdp7u5fL.js} +2 -2
  56. package/web/app/immutable/chunks/{BBl02EyB.js → Bi0iCGDl.js} +1 -1
  57. package/web/app/immutable/chunks/{PhuO6dVo.js → Bk1uVK5j.js} +2 -2
  58. package/web/app/immutable/chunks/{DLshetD4.js → Bkt7VHdr.js} +1 -1
  59. package/web/app/immutable/chunks/Blk8v-pB.js +1 -0
  60. package/web/app/immutable/chunks/{BSoHy997.js → Bm_v6qLq.js} +1 -1
  61. package/web/app/immutable/chunks/{BNADo1Q7.js → BoDxQZ1k.js} +1 -1
  62. package/web/app/immutable/chunks/{C85s-gi8.js → BpLK-vah.js} +1 -1
  63. package/web/app/immutable/chunks/{DpSTAF6f.js → BplvCBzc.js} +1 -1
  64. package/web/app/immutable/chunks/{CsGRm74m.js → Bq6ix99x.js} +1 -1
  65. package/web/app/immutable/chunks/{Cyx56VLF.js → BrUeG1RC.js} +1 -1
  66. package/web/app/immutable/chunks/{CtrmC64x.js → BrzmNBOR.js} +1 -1
  67. package/web/app/immutable/chunks/{BdS003Kb.js → BtTwGRLV.js} +1 -1
  68. package/web/app/immutable/chunks/{XM2hxWVx.js → Btf9QGuY.js} +1 -1
  69. package/web/app/immutable/chunks/{Fbmia90H.js → Bw1SBWCL.js} +3 -3
  70. package/web/app/immutable/chunks/{DeSJTI_U.js → BweEgIMi.js} +1 -1
  71. package/web/app/immutable/chunks/{B1ELYeiC.js → BxU3DCFg.js} +1 -1
  72. package/web/app/immutable/chunks/{DHZ4JjoJ.js → BxuY-d7z.js} +1 -1
  73. package/web/app/immutable/chunks/{B8ZK3-zF.js → ByWgRTUb.js} +1 -1
  74. package/web/app/immutable/chunks/{VLmrqzTE.js → BzUhrKys.js} +1 -1
  75. package/web/app/immutable/chunks/{D71IW4i3.js → BzgtWDxy.js} +1 -1
  76. package/web/app/immutable/chunks/{DMl_gv4g.js → C-D97gL1.js} +1 -1
  77. package/web/app/immutable/chunks/{CbGnxjOM.js → C04G6COq.js} +1 -1
  78. package/web/app/immutable/chunks/{WwLuvBZd.js → C07lgk2D.js} +1 -1
  79. package/web/app/immutable/chunks/{Z5jotNHL.js → C17u3SPp.js} +1 -1
  80. package/web/app/immutable/chunks/{BFnOOmhf.js → C1_JJ0WX.js} +2 -2
  81. package/web/app/immutable/chunks/{wESj32Mw.js → C4ABvngM.js} +1 -1
  82. package/web/app/immutable/chunks/{BrnKg8z1.js → C8PgiJ6Y.js} +2 -2
  83. package/web/app/immutable/chunks/{8xUKp1ov.js → CA6N8yqk.js} +1 -1
  84. package/web/app/immutable/chunks/{ClyMCKaV.js → CARkdujD.js} +1 -1
  85. package/web/app/immutable/chunks/{FDVvdcz2.js → CBY4R5Io.js} +2 -2
  86. package/web/app/immutable/chunks/{CONx2grg.js → CBj-skM7.js} +1 -1
  87. package/web/app/immutable/chunks/{DX5DxI8W.js → CE7hy_eJ.js} +2 -2
  88. package/web/app/immutable/chunks/{Buyr-7cI.js → CFa2g-IY.js} +1 -1
  89. package/web/app/immutable/chunks/{gYd6zuXF.js → CGclmlzx.js} +1 -1
  90. package/web/app/immutable/chunks/{Br7_wSvp.js → CGtte9IE.js} +1 -1
  91. package/web/app/immutable/chunks/{Bl1nIYdr.js → CJqvN_qS.js} +1 -1
  92. package/web/app/immutable/chunks/{C81WcoAM.js → CMiRnadp.js} +1 -1
  93. package/web/app/immutable/chunks/{D76C-Lub.js → CNFZNMrf.js} +1 -1
  94. package/web/app/immutable/chunks/{C7Y7Xcjq.js → CNLVfjPb.js} +1 -1
  95. package/web/app/immutable/chunks/{DhUVW_9Y.js → CNPgXL7O.js} +1 -1
  96. package/web/app/immutable/chunks/{DpPiqmjZ.js → COH5cIoS.js} +1 -1
  97. package/web/app/immutable/chunks/{Bo3xcJTH.js → CQRR0AOa.js} +1 -1
  98. package/web/app/immutable/chunks/{DnsWe2Zg.js → CR7ldtgw.js} +1 -1
  99. package/web/app/immutable/chunks/{cpbf9St3.js → CRcZFIyJ.js} +1 -1
  100. package/web/app/immutable/chunks/{DXKXi4fU.js → CRzjInFH.js} +1 -1
  101. package/web/app/immutable/chunks/{Bjat9loC.js → CSVS8cGP.js} +1 -1
  102. package/web/app/immutable/chunks/{DEAKghGX.js → CSoIbBhB.js} +1 -1
  103. package/web/app/immutable/chunks/{Bd9QEf8t.js → CVC7R5g8.js} +1 -1
  104. package/web/app/immutable/chunks/{BsHwyYum.js → CVXsWkbg.js} +1 -1
  105. package/web/app/immutable/chunks/{DnGYdVeC.js → CX0jnzIf.js} +1 -1
  106. package/web/app/immutable/chunks/{Bme6a8ON.js → CZH06yTf.js} +1 -1
  107. package/web/app/immutable/chunks/{DLRsFOmD.js → CbcE07N6.js} +1 -1
  108. package/web/app/immutable/chunks/{BG8_YibP.js → Cbp3zliH.js} +1 -1
  109. package/web/app/immutable/chunks/{CmTb9opo.js → CcXmTQrG.js} +1 -1
  110. package/web/app/immutable/chunks/{NHQHo6R8.js → CeGnK4JQ.js} +49 -49
  111. package/web/app/immutable/chunks/{B_2t4zDu.js → CfgmsyOw.js} +1 -1
  112. package/web/app/immutable/chunks/{DA1BdbaM.js → CiFw-8Aw.js} +1 -1
  113. package/web/app/immutable/chunks/{CtSELtkL.js → CiV78Mds.js} +1 -1
  114. package/web/app/immutable/chunks/{DjvHPE3r.js → ClALIxbi.js} +1 -1
  115. package/web/app/immutable/chunks/{BbGMZxWy.js → CmLvFRqe.js} +2 -2
  116. package/web/app/immutable/chunks/{PQ1Aq9aw.js → Cnz8RKk9.js} +1 -1
  117. package/web/app/immutable/chunks/{O93N6pq0.js → CoIHYLew.js} +1 -1
  118. package/web/app/immutable/chunks/{6WATeGSz.js → Cobn53T5.js} +1 -1
  119. package/web/app/immutable/chunks/{5guZ9l7C.js → CqB0SlYo.js} +1 -1
  120. package/web/app/immutable/chunks/{DfwITmIi.js → Ct5pe7Ek.js} +1 -1
  121. package/web/app/immutable/chunks/{woMOP93x.js → Ctw6lIEV.js} +1 -1
  122. package/web/app/immutable/chunks/{D6EjWtzp.js → CuOjrr_z.js} +1 -1
  123. package/web/app/immutable/chunks/{BkTViBTC.js → CuViOyzR.js} +1 -1
  124. package/web/app/immutable/chunks/{NyRx-5qE.js → Cul55jvw.js} +3 -3
  125. package/web/app/immutable/chunks/{Cnz7jMnR.js → D-SL5jmx.js} +1 -1
  126. package/web/app/immutable/chunks/{BeYVLVXM.js → D0QGnN9N.js} +7 -7
  127. package/web/app/immutable/chunks/{B3yw5iey.js → D39KsI93.js} +1 -1
  128. package/web/app/immutable/chunks/{C95TwfNO.js → D3s69DNC.js} +3 -3
  129. package/web/app/immutable/chunks/{CeXEIZ_X.js → D4i52eN2.js} +1 -1
  130. package/web/app/immutable/chunks/{JWpKjkZt.js → D5Yn3bZC.js} +4 -4
  131. package/web/app/immutable/chunks/{B4NuLgfc.js → D6aq9EL_.js} +1 -1
  132. package/web/app/immutable/chunks/{BQniiLor.js → D7-ADqnT.js} +1 -1
  133. package/web/app/immutable/chunks/{DueTjjFx.js → D75qE5QF.js} +1 -1
  134. package/web/app/immutable/chunks/{BHUG3Di8.js → D7NIlQGn.js} +1 -1
  135. package/web/app/immutable/chunks/{8PEQ8hLc.js → D7gI_V1F.js} +1 -1
  136. package/web/app/immutable/chunks/{zCyqAg-B.js → D8AXxi58.js} +1 -1
  137. package/web/app/immutable/chunks/{DCVW2Y_h.js → D8G2wLaP.js} +1 -1
  138. package/web/app/immutable/chunks/{BQ1YF879.js → D9GJ60AX.js} +1 -1
  139. package/web/app/immutable/chunks/{JhrIJH4k.js → DCpb2VL6.js} +1 -1
  140. package/web/app/immutable/chunks/{Cb1CevU3.js → DECP5P_I.js} +1 -1
  141. package/web/app/immutable/chunks/{ZJCzYVmw.js → DEghD5AV.js} +1 -1
  142. package/web/app/immutable/chunks/{inj-bBZM.js → DFDb4afa.js} +1 -1
  143. package/web/app/immutable/chunks/{Bt6bgoI-.js → DHN03i25.js} +1 -1
  144. package/web/app/immutable/chunks/{U7JWtGAy.js → DHon_8tj.js} +1 -1
  145. package/web/app/immutable/chunks/{plw0uyc9.js → DJISFfnZ.js} +1 -1
  146. package/web/app/immutable/chunks/{C6UIN6U-.js → DNTeyAGR.js} +1 -1
  147. package/web/app/immutable/chunks/{Djk4k1SJ.js → DNdUAl79.js} +1 -1
  148. package/web/app/immutable/chunks/{itPVrVkG.js → DNeMGvC1.js} +1 -1
  149. package/web/app/immutable/chunks/{kYkRNrrI.js → DPWpLmap.js} +1 -1
  150. package/web/app/immutable/chunks/{Dr6lXyco.js → DPbm6slt.js} +4 -4
  151. package/web/app/immutable/chunks/{JCCFqsAd.js → DPyjdIy2.js} +1 -1
  152. package/web/app/immutable/chunks/{g3KZ-aok.js → DSakTSDY.js} +1 -1
  153. package/web/app/immutable/chunks/{DaMaCbrW.js → DV0nUf5d.js} +1 -1
  154. package/web/app/immutable/chunks/{Z8sIHDod.js → DWbuBB3d.js} +1 -1
  155. package/web/app/immutable/chunks/{Bx-glu6w.js → DX7KyYLV.js} +1 -1
  156. package/web/app/immutable/chunks/{Bcoxg00q.js → DXPPFxlV.js} +3 -3
  157. package/web/app/immutable/chunks/{PwM42XJW.js → DYpEID-4.js} +1 -1
  158. package/web/app/immutable/chunks/{cCabUQP6.js → DZwtNfnB.js} +1 -1
  159. package/web/app/immutable/chunks/{vlhkmmpx.js → D_o99_fG.js} +1 -1
  160. package/web/app/immutable/chunks/{BEJg4Sbf.js → DaBUZyWc.js} +1 -1
  161. package/web/app/immutable/chunks/{BMFwrOH1.js → DcIvDrh5.js} +1 -1
  162. package/web/app/immutable/chunks/{DheEnqqs.js → Dekj0CRz.js} +1 -1
  163. package/web/app/immutable/chunks/{DdwwnwEU.js → DfDa-Hf6.js} +1 -1
  164. package/web/app/immutable/chunks/{BRiTnHjR.js → DfTHDtr3.js} +1 -1
  165. package/web/app/immutable/chunks/{Ba4COzVc.js → DflDaBxQ.js} +1 -1
  166. package/web/app/immutable/chunks/{tLKcAW4W.js → DhJybiGT.js} +1 -1
  167. package/web/app/immutable/chunks/{DwufXbAm.js → DkfRsyNq.js} +1 -1
  168. package/web/app/immutable/chunks/{Byw2XPN_.js → Dm5XlejL.js} +1 -1
  169. package/web/app/immutable/chunks/{DKhnmIhc.js → DoI-lOCr.js} +1 -1
  170. package/web/app/immutable/chunks/{ClnUtlN_.js → DpHc5A-z.js} +1 -1
  171. package/web/app/immutable/chunks/{CaR7O_Ka.js → DpWrzKZ5.js} +1 -1
  172. package/web/app/immutable/chunks/{CqJYE2BI.js → DpvwyG67.js} +1 -1
  173. package/web/app/immutable/chunks/{D8EZluP_.js → DqG8xjZW.js} +1 -1
  174. package/web/app/immutable/chunks/{BxQ4u3F0.js → DqlqvyKI.js} +1 -1
  175. package/web/app/immutable/chunks/{J6ix93M3.js → Dr6CAh-x.js} +1 -1
  176. package/web/app/immutable/chunks/{Cc3IoHk5.js → Dtvcl9ZM.js} +2 -2
  177. package/web/app/immutable/chunks/{DBkSv110.js → DwwmXlwG.js} +1 -1
  178. package/web/app/immutable/chunks/{DzF66VDn.js → DyG--B3U.js} +1 -1
  179. package/web/app/immutable/chunks/{j32IuKtD.js → DyzC-8bY.js} +1 -1
  180. package/web/app/immutable/chunks/{B-fzbhlo.js → ED1Md46o.js} +1 -1
  181. package/web/app/immutable/chunks/{CcikvcoO.js → FGzP6Npj.js} +1 -1
  182. package/web/app/immutable/chunks/{Ci0ScEWC.js → FxlRoZ6N.js} +1 -1
  183. package/web/app/immutable/chunks/{C-TcncuL.js → I-6kOw9r.js} +1 -1
  184. package/web/app/immutable/chunks/{cZgi-_WA.js → IUhIao0l.js} +1 -1
  185. package/web/app/immutable/chunks/{BuYGacYC.js → JKrLJ2R_.js} +44 -44
  186. package/web/app/immutable/chunks/{VzlQnrws.js → JoMw8Mnh.js} +1 -1
  187. package/web/app/immutable/chunks/{DFBOrRiy.js → KT-2Ekxp.js} +1 -1
  188. package/web/app/immutable/chunks/{DlmTHr8T.js → LNCq34-O.js} +1 -1
  189. package/web/app/immutable/chunks/{B5Kd4cOY.js → MivJSmtA.js} +1 -1
  190. package/web/app/immutable/chunks/{CpTvuo0c.js → Mt7x2IZs.js} +1 -1
  191. package/web/app/immutable/chunks/{C723Veio.js → QBqsOIpN.js} +1 -1
  192. package/web/app/immutable/chunks/{y8Xlt_QT.js → SIlEqZy6.js} +1 -1
  193. package/web/app/immutable/chunks/{D2kpmACf.js → T3Bh0XrL.js} +1 -1
  194. package/web/app/immutable/chunks/YDzESqGE.js +1 -0
  195. package/web/app/immutable/chunks/{15pYd3N2.js → YsJRyh1t.js} +2 -2
  196. package/web/app/immutable/chunks/{Bh5viRl2.js → Zu_hB4jz.js} +1 -1
  197. package/web/app/immutable/chunks/{BxiiO4Iw.js → _Ha8_PaU.js} +1 -1
  198. package/web/app/immutable/chunks/{RykEwldd.js → _WbplBv2.js} +1 -1
  199. package/web/app/immutable/chunks/{CDUZ_0Sw.js → cOgdKI6o.js} +1 -1
  200. package/web/app/immutable/chunks/{CMU9ws3e.js → dfIdHF6z.js} +1 -1
  201. package/web/app/immutable/chunks/{DLNq3Dzg.js → dp7e7xW2.js} +1 -1
  202. package/web/app/immutable/chunks/{Cc-44AXb.js → ebuf-RO9.js} +1 -1
  203. package/web/app/immutable/chunks/{CelyhwOb.js → itr72ypM.js} +1 -1
  204. package/web/app/immutable/chunks/{DsEsCHJ8.js → k-AP8VlM.js} +1 -1
  205. package/web/app/immutable/chunks/{Dzpx8dBT.js → kbx4HHUe.js} +2 -2
  206. package/web/app/immutable/chunks/{C_XVzDtJ.js → kc3pShLm.js} +1 -1
  207. package/web/app/immutable/chunks/{DN-WSfNU.js → kkexgKXz.js} +1 -1
  208. package/web/app/immutable/chunks/{Et5QnGoZ.js → lzVZjIHK.js} +1 -1
  209. package/web/app/immutable/chunks/{D98MGnzl.js → mYHRHufZ.js} +1 -1
  210. package/web/app/immutable/chunks/{DS2ohrPS.js → neQDnDfO.js} +1 -1
  211. package/web/app/immutable/chunks/{C8gv124k.js → oEdBdTuH.js} +1 -1
  212. package/web/app/immutable/chunks/{BSt_qcPC.js → oRTpyK_P.js} +1 -1
  213. package/web/app/immutable/chunks/{DcUrbytI.js → uDFKivEo.js} +1 -1
  214. package/web/app/immutable/chunks/{CzT5E1qm.js → uEiZ2aa0.js} +1 -1
  215. package/web/app/immutable/chunks/{CbaotZDu.js → us_QodLQ.js} +1 -1
  216. package/web/app/immutable/chunks/{CE-1ma0H.js → uzVhgdYt.js} +1 -1
  217. package/web/app/immutable/chunks/{B1ZGt7sC.js → xHGNzBhq.js} +1 -1
  218. package/web/app/immutable/chunks/{DehyflGo.js → xcwRs97P.js} +1 -1
  219. package/web/app/immutable/chunks/{CJmNIYA9.js → ylZv2UEj.js} +1 -1
  220. package/web/app/immutable/entry/{app.DvoVvHKR.js → app.B7NDG9Ke.js} +2 -2
  221. package/web/app/immutable/entry/start.BNunxuiZ.js +1 -0
  222. package/web/app/immutable/nodes/{0.CUhABBgA.js → 0.Bun1I2n8.js} +1 -1
  223. package/web/app/immutable/nodes/{1.D60NQVeb.js → 1.CaXWyT2I.js} +1 -1
  224. package/web/app/immutable/nodes/{10.C1M6IFRf.js → 10.QcBz8vIO.js} +1 -1
  225. package/web/app/immutable/nodes/{12.B3DoWG9l.js → 12.VioYEcq0.js} +1 -1
  226. package/web/app/immutable/nodes/{13.DIkr4OJs.js → 13.DXKlob-e.js} +1 -1
  227. package/web/app/immutable/nodes/{14.BnWbXEMM.js → 14.Del2TMMg.js} +1 -1
  228. package/web/app/immutable/nodes/{15.CWOWBkmh.js → 15.Djr5my7L.js} +1 -1
  229. package/web/app/immutable/nodes/{16.DRycmOMe.js → 16.D5MyJ40_.js} +2 -2
  230. package/web/app/immutable/nodes/{2.BnNXzTi0.js → 2.DGym_vbk.js} +4 -4
  231. package/web/app/immutable/nodes/{3.B1Qb3sEW.js → 3.s5E8H3KB.js} +1 -1
  232. package/web/app/immutable/nodes/{4.TFhi0XIx.js → 4.D5-aRMMy.js} +1 -1
  233. package/web/app/immutable/nodes/{5.BGgJOCw5.js → 5.B3_zYP1m.js} +2 -2
  234. package/web/app/immutable/nodes/{6.CCZIKTds.js → 6.DutaO_wJ.js} +1 -1
  235. package/web/app/immutable/nodes/{7.CXxgyB8T.js → 7.BTpm8RYp.js} +1 -1
  236. package/web/app/immutable/nodes/{8.Dcka7hLW.js → 8.CZztH_7a.js} +4 -4
  237. package/web/app/immutable/nodes/{9.DemnlG5Y.js → 9.B2qxwSvF.js} +4 -4
  238. package/web/app/version.json +1 -1
  239. package/web/index.html +9 -9
  240. package/web/app/immutable/chunks/CKKsJ8BG.js +0 -1
  241. package/web/app/immutable/chunks/DwhTx6cH.js +0 -1
  242. package/web/app/immutable/entry/start.CiTIdCqa.js +0 -1
@@ -1,4 +1,4 @@
1
- var Cu=Object.defineProperty;var zu=(t,e,r)=>e in t?Cu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ie=(t,e,r)=>zu(t,typeof e!="symbol"?e+"":e,r);import{aI as Iu,g as ml,G2 as E,mv as we,mu as Te,u as De,b9 as t0,jc as li,kR as un,af as Ht,kQ as fs,k_ as gs,kX as vs,iL as pl,g7 as Da,Ez as Ru,ru as Du,xU as Nu,nw as Lu,lB as hn,zn as Ou,hU as Pu}from"./X8KOCQId.js";import{Z as S0,X as ia,Y as _u,W as $u,a0 as Bu,aa as qu,S as Fu,dL as Hu,L as Uu,cz as lr,aR as Wu,b7 as fl,cC as _0,dj as gl,aQ as Gu,aU as ju,ck as Vu,c6 as Xu,df as Na,dk as Yu,dF as Ku,dz as Zu,aw as Nn,ak as Qu,as as ci,dw as Ju,dB as vl,dy as e1}from"./CE-1ma0H.js";import{bo as re}from"./DEI12D8u.js";import{t as Je}from"./BycWLeDe.js";import{M as t1,v as yr,w as wr}from"./plw0uyc9.js";import{a as r0}from"./BJzHxIyr.js";import{o as me,r as Ft,f as n0,s as V,e as Xe,l as a0,n as Le,c as ir,b as He,u as r1,d as n1}from"./CpHIRYx9.js";import{j as bl}from"./DVkfuwKw.js";import{H as a1}from"./OtBI4VRo.js";import{D as bs,b5 as i1,bl as s1}from"./NyRx-5qE.js";import{p as o1}from"./BQkOKtmR.js";import{b as l1}from"./N_3EVFPG.js";import{i as Ge}from"./BKUFkB2Z.js";import{l as sa,c as c1}from"./ChTqQfQN.js";import{ax as i0}from"./FDVvdcz2.js";import{i as ys}from"./DvIWu0bM.js";import{f as ui,u as yl,v as wl,i as u1,s as kl,n as h1,p as d1}from"./DpSTAF6f.js";const We=[];for(let t=0;t<256;++t)We.push((t+256).toString(16).slice(1));function m1(t,e=0){return(We[t[e+0]]+We[t[e+1]]+We[t[e+2]]+We[t[e+3]]+"-"+We[t[e+4]]+We[t[e+5]]+"-"+We[t[e+6]]+We[t[e+7]]+"-"+We[t[e+8]]+We[t[e+9]]+"-"+We[t[e+10]]+We[t[e+11]]+We[t[e+12]]+We[t[e+13]]+We[t[e+14]]+We[t[e+15]]).toLowerCase()}const p1=new Uint8Array(16);function f1(){return crypto.getRandomValues(p1)}function hi(t,e,r){return crypto.randomUUID?crypto.randomUUID():g1(t)}function g1(t,e,r){t=t||{};const n=t.random??t.rng?.()??f1();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,m1(n)}const ws="workspace-debug-flags",dn={enableCreationAnimation:!0,animationDuration:300,enablePageTransitions:!0,enableComponentTransitions:!0,showDebugInfo:!1,showPerformanceMetrics:!1,logStateChanges:!1,enableAutofocus:!0,enableBranchCaching:!0,enableFormPersistence:!0,simulateSlowNetwork:!1,simulateErrors:!1,networkDelay:0};class v1{constructor(){ie(this,"flags");ie(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return dn;try{const e=localStorage.getItem(ws);if(e)return{...dn,...JSON.parse(e)}}catch(e){sa.error("Failed to load debug flags:",e)}return dn}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem(ws,JSON.stringify(this.flags))}catch(e){sa.error("Failed to save debug flags:",e)}this.listeners.forEach(e=>e(this.flags))}}get(e){return this.flags[e]}set(e,r){this.flags[e]=r,this.saveFlags()}toggle(e){typeof this.flags[e]=="boolean"&&(this.flags[e]=!this.flags[e],this.saveFlags())}reset(){this.flags={...dn},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),sa.info("Debug panel:",this.flags.showDebugInfo?"ON":"OFF")}async simulateDelay(e){return this.flags.simulateSlowNetwork&&this.flags.networkDelay>0&&await new Promise(r=>setTimeout(r,this.flags.networkDelay)),e}}const oa=new v1;function _2(t){if(!t)return"";let e=t;return e=e.replace(/\*\*(.+?)\*\*/g,"$1"),e=e.replace(/__(.+?)__/g,"$1"),e=e.replace(/(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)/g,"$1"),e=e.replace(/(?<!_)_(?!_)(.+?)(?<!_)_(?!_)/g,"$1"),e=e.replace(/~~(.+?)~~/g,"$1"),e=e.replace(/`([^`]+)`/g,"$1"),e=e.replace(/\[([^\]]+)\]\([^)]+\)/g,"$1"),e=e.replace(/^#{1,6}\s+/gm,""),e=e.replace(/^\*+\s*/gm,""),e=e.replace(/\s*\*+$/gm,""),e.trim()}function b1(t){return t.charAt(0).toUpperCase()+t.slice(1)}function $2(t){if(!t||t.trim().length===0)return re.workspace_sidebarHeader_branchEmpty_error();if(/[\s~^:\\?*\[\\]/.test(t))return re.workspace_sidebarHeader_branchInvalidChars_error();if(t.includes("@{"))return re.workspace_sidebarChanges_branchAtBrace_error({seq:"@{"});if(t==="@")return re.workspace_sidebarChanges_branchAt_error({symbol:"@"});if(t.startsWith("."))return re.workspace_sidebarHeader_branchStartsDot_error();if(t.endsWith(".lock"))return re.workspace_sidebarHeader_branchEndsLock_error();if(t.includes(".."))return re.workspace_sidebarHeader_branchDoubleDot_error();if(t.startsWith("/")||t.endsWith("/"))return re.workspace_sidebarHeader_branchSlashEnds_error();if(t.includes("//"))return re.workspace_sidebarHeader_branchDoubleSlash_error();if(t.startsWith("-"))return re.workspace_sidebarHeader_branchStartsDash_error();if(t.endsWith("."))return re.workspace_sidebarChanges_branchEndsPeriod_error();const e=t.split("/");for(const r of e){if(r.startsWith("."))return re.workspace_sidebarChanges_branchComponentStartsDot_error();if(r.endsWith(".lock"))return re.workspace_sidebarChanges_branchComponentEndsLock_error()}if(t.length>250)return re.workspace_sidebarHeader_branchTooLong_error()}function B2(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function La(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function q2(t,e){return`${e}:${t.agentId??"manual"}`}function y1(t,e){if(t.length===0||e>=t.length)return 0;const r=Math.max(0,e);let n=0;for(let a=r;a<t.length;a++)t[a].isPushed||n++;return n}function w1(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed&&n++;return n}function k1(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed||n++;return n}function F2(t,e,r,n){const a=y1(t,e),i=n?` (origin/${n})`:"";return r?a===1?re.workspace_sidebarChanges_addToPr_one({suffix:i}):re.workspace_sidebarChanges_addToPr_many({count:Je(a),suffix:i}):a===1?re.workspace_sidebarChanges_pushToRemote_one({suffix:i}):re.workspace_sidebarChanges_pushToRemote_many({count:Je(a),suffix:i})}function H2(t,e,r){const n=w1(t,e),a=r?` (origin/${r})`:"";return n===1?re.workspace_sidebarChanges_undoPush_one({suffix:a}):re.workspace_sidebarChanges_undoPush_many({count:Je(n),suffix:a})}function U2(t,e){const r=k1(t,e);return r===1?re.workspace_sidebarChanges_undoCommit_one():re.workspace_sidebarChanges_undoCommit_many({count:Je(r)})}function W2(t,e){return e===0&&t.length>0}function G2(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function j2(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function V2(t,e,r){return r?.path===t&&r?.staged===e}function X2(t){if(t.length===0)return[];const e=new Map,r=[...t].sort((n,a)=>n.timestamp-a.timestamp);for(const n of r)for(const a of n.files??[]){const i=e.get(a.path);i?e.set(a.path,{additions:i.additions+(a.additions||0),deletions:i.deletions+(a.deletions||0)}):e.set(a.path,{additions:a.additions||0,deletions:a.deletions||0})}return Array.from(e.entries()).map(([n,a])=>({path:n,additions:a.additions,deletions:a.deletions,staged:!1}))}function Y2(t,e,r){const n=new Set;let a=0,i=0;for(const s of t)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of e)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of r)for(const o of s.files||[])n.add(o.path),a+=o.additions||0,i+=o.deletions||0;return{totalFilesChanged:n.size,totalAdditions:a,totalDeletions:i}}function x1(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function K2(t,e,r,n,a){if(t&&t.length>0){const i=a?.split("/")[0];return t.map(s=>{const o=s.url||r(s.number),c=x1(s.url),h=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:La(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:h,crossRepoDisplay:h?di(h,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:La(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function Z2(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??Iu.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function S1(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function la(t,e,r){if(e.length===0)return t;const n=r?.split("/")[0],a=t.map(i=>({...i}));for(const i of e){const s=!i.resource&&!i.monitorAvailability&&(!r||i.repo===r),o=S0(i),c=o.toLowerCase(),h=a.find(m=>!!o&&m.url.toLowerCase()===c||(i.resource||i.monitorAvailability?m.monitorIdentity===ia(i):!m.resource&&!m.monitorAvailability&&(s?!m.crossRepo&&m.number===i.prNumber:m.crossRepo===i.repo&&m.number===i.prNumber)));if(h){h.monitorAgentId=i.agentId,h.resource=i.resource,h.monitorAvailability=i.monitorAvailability,h.monitorIdentity=i.resource||i.monitorAvailability?ia(i):void 0,h.monitorSnapshot=i.lastSnapshot??h.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${_u(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?ia(i):void 0,url:o,htmlUrl:o,status:S1(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:di(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function di(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function Q2(t,e,r,n,a){const i=r?.toLowerCase(),s=new Set;for(const x of n)x.repoOwner&&x.repoName&&s.add(`${x.repoOwner}/${x.repoName}`.toLowerCase());let o=t;const c=[],h=[];if(t.some(x=>x.crossRepo)){o=[];for(const x of t)x.crossRepo?s.has(x.crossRepo.toLowerCase())?c.push(x):h.push(x):o.push(x)}const m=[],f=[],g=[];for(const x of e){const C=x.repo.toLowerCase();S0(x)&&o.some(U=>U.url===S0(x))||!x.resource&&!x.monitorAvailability&&(!i||C===i)?m.push(x):S0(x)&&c.some(U=>U.url===S0(x))||!x.resource&&!x.monitorAvailability&&s.has(C)?f.push(x):g.push(x)}const w=la(o,m,r),S=r?.split("/")[0],M=new Set([...w,...c,...h].map(x=>`${(x.crossRepo??r??"").toLowerCase()}#${x.number}`)),I=[...c];for(const x of n){if(!x.repoOwner||!x.repoName)continue;const C=`${x.repoOwner}/${x.repoName}`;for(const U of x.pullRequests??[]){const K=`${C.toLowerCase()}#${U.number}`;if(M.has(K))continue;M.add(K);const Y=U.url||`https://github.com/${C}/pull/${U.number}`,T=i!==void 0&&C.toLowerCase()===i;I.push({number:U.number,title:a(U),url:Y,htmlUrl:Y,status:La(U.status),createdAt:U.createdAt,updatedAt:U.updatedAt,crossRepo:T?void 0:C,crossRepoDisplay:T?void 0:di(C,S)})}}return{own:w,otherRoots:la(I,f,r),otherTracked:la(h,g,r)}}function ks(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function J2(t){const e=t.status==="merged"?re.workspace_prSection_merged_label():t.status==="closed"?re.workspace_prSection_closed_label():t.status==="draft"?re.workspace_prSection_statusDraft_label():ks(t)?re.workspace_prSection_statusQueued_label():re.workspace_prSection_statusOpen_label(),r=[$u(t)??e],n=ks(t)?t1(t.monitorSnapshot?.mergeQueue):null;n&&r.push(n);const a=t.status==="merged"||t.status==="closed"?void 0:t.monitorSnapshot;return a&&(a.checks.total===null||a.checks.passed===null||a.checks.failed===null||a.checks.pending===null||a.availability&&a.availability.checks!=="available"?r.push(re.chat_monitoredPrs_hover_checksUnknown_label()):a.checks.total>0&&r.push(re.workspace_prSection_statusChecks_tooltip({passed:Je(a.checks.passed),failed:Je(a.checks.failed),pending:Je(a.checks.pending)})),r.push(a.approvals.have===null||a.availability&&a.availability.approvals!=="available"?re.chat_monitoredPrs_hover_approvalsUnknown_label():a.approvals.needed!=null?re.workspace_prSection_statusApprovalsOfNeeded_tooltip({count:Je(a.approvals.have),needed:Je(a.approvals.needed)}):re.workspace_prSection_statusApprovals_tooltip({count:Je(a.approvals.have)})),a.approvals.changesRequested!==null&&a.approvals.changesRequested>0&&r.push(re.workspace_prSection_statusChangesRequested_tooltip({count:Je(a.approvals.changesRequested)})),a.availability&&a.availability.discussions!=="available"?r.push(re.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()):typeof a.threads.unresolved=="number"?a.threads.unresolved>0&&r.push(re.workspace_prSection_statusUnresolvedThreads_tooltip({count:Je(a.threads.unresolved)})):a.threads.resolutionRequired&&r.push(re.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()),a.mergeBlockedReason&&r.push(b1(a.mergeBlockedReason))),r.join(`
1
+ var Cu=Object.defineProperty;var zu=(t,e,r)=>e in t?Cu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ie=(t,e,r)=>zu(t,typeof e!="symbol"?e+"":e,r);import{aI as Iu,g as ml,G2 as E,mv as we,mu as Te,u as De,b9 as t0,jc as li,kR as un,af as Ht,kQ as fs,k_ as gs,kX as vs,iL as pl,g7 as Da,Ez as Ru,ru as Du,xU as Nu,nw as Lu,lB as hn,zn as Ou,hU as Pu}from"./X8KOCQId.js";import{Z as S0,X as ia,Y as _u,W as $u,a0 as Bu,aa as qu,S as Fu,dL as Hu,L as Uu,cz as lr,aR as Wu,b7 as fl,cC as _0,dj as gl,aQ as Gu,aU as ju,ck as Vu,c6 as Xu,df as Na,dk as Yu,dF as Ku,dz as Zu,aw as Nn,ak as Qu,as as ci,dw as Ju,dB as vl,dy as e1}from"./uzVhgdYt.js";import{bo as re}from"./DEI12D8u.js";import{t as Je}from"./BycWLeDe.js";import{M as t1,v as yr,w as wr}from"./DJISFfnZ.js";import{a as r0}from"./BJzHxIyr.js";import{o as me,r as Ft,f as n0,s as V,e as Xe,l as a0,n as Le,c as ir,b as He,u as r1,d as n1}from"./CpHIRYx9.js";import{j as bl}from"./DVkfuwKw.js";import{H as a1}from"./OtBI4VRo.js";import{D as bs,b5 as i1,bl as s1}from"./Cul55jvw.js";import{p as o1}from"./BQkOKtmR.js";import{b as l1}from"./N_3EVFPG.js";import{i as Ge}from"./BKUFkB2Z.js";import{l as sa,c as c1}from"./ChTqQfQN.js";import{ax as i0}from"./CBY4R5Io.js";import{i as ys}from"./DvIWu0bM.js";import{f as ui,u as yl,v as wl,i as u1,s as kl,n as h1,p as d1}from"./BplvCBzc.js";const We=[];for(let t=0;t<256;++t)We.push((t+256).toString(16).slice(1));function m1(t,e=0){return(We[t[e+0]]+We[t[e+1]]+We[t[e+2]]+We[t[e+3]]+"-"+We[t[e+4]]+We[t[e+5]]+"-"+We[t[e+6]]+We[t[e+7]]+"-"+We[t[e+8]]+We[t[e+9]]+"-"+We[t[e+10]]+We[t[e+11]]+We[t[e+12]]+We[t[e+13]]+We[t[e+14]]+We[t[e+15]]).toLowerCase()}const p1=new Uint8Array(16);function f1(){return crypto.getRandomValues(p1)}function hi(t,e,r){return crypto.randomUUID?crypto.randomUUID():g1(t)}function g1(t,e,r){t=t||{};const n=t.random??t.rng?.()??f1();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,m1(n)}const ws="workspace-debug-flags",dn={enableCreationAnimation:!0,animationDuration:300,enablePageTransitions:!0,enableComponentTransitions:!0,showDebugInfo:!1,showPerformanceMetrics:!1,logStateChanges:!1,enableAutofocus:!0,enableBranchCaching:!0,enableFormPersistence:!0,simulateSlowNetwork:!1,simulateErrors:!1,networkDelay:0};class v1{constructor(){ie(this,"flags");ie(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return dn;try{const e=localStorage.getItem(ws);if(e)return{...dn,...JSON.parse(e)}}catch(e){sa.error("Failed to load debug flags:",e)}return dn}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem(ws,JSON.stringify(this.flags))}catch(e){sa.error("Failed to save debug flags:",e)}this.listeners.forEach(e=>e(this.flags))}}get(e){return this.flags[e]}set(e,r){this.flags[e]=r,this.saveFlags()}toggle(e){typeof this.flags[e]=="boolean"&&(this.flags[e]=!this.flags[e],this.saveFlags())}reset(){this.flags={...dn},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),sa.info("Debug panel:",this.flags.showDebugInfo?"ON":"OFF")}async simulateDelay(e){return this.flags.simulateSlowNetwork&&this.flags.networkDelay>0&&await new Promise(r=>setTimeout(r,this.flags.networkDelay)),e}}const oa=new v1;function _2(t){if(!t)return"";let e=t;return e=e.replace(/\*\*(.+?)\*\*/g,"$1"),e=e.replace(/__(.+?)__/g,"$1"),e=e.replace(/(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)/g,"$1"),e=e.replace(/(?<!_)_(?!_)(.+?)(?<!_)_(?!_)/g,"$1"),e=e.replace(/~~(.+?)~~/g,"$1"),e=e.replace(/`([^`]+)`/g,"$1"),e=e.replace(/\[([^\]]+)\]\([^)]+\)/g,"$1"),e=e.replace(/^#{1,6}\s+/gm,""),e=e.replace(/^\*+\s*/gm,""),e=e.replace(/\s*\*+$/gm,""),e.trim()}function b1(t){return t.charAt(0).toUpperCase()+t.slice(1)}function $2(t){if(!t||t.trim().length===0)return re.workspace_sidebarHeader_branchEmpty_error();if(/[\s~^:\\?*\[\\]/.test(t))return re.workspace_sidebarHeader_branchInvalidChars_error();if(t.includes("@{"))return re.workspace_sidebarChanges_branchAtBrace_error({seq:"@{"});if(t==="@")return re.workspace_sidebarChanges_branchAt_error({symbol:"@"});if(t.startsWith("."))return re.workspace_sidebarHeader_branchStartsDot_error();if(t.endsWith(".lock"))return re.workspace_sidebarHeader_branchEndsLock_error();if(t.includes(".."))return re.workspace_sidebarHeader_branchDoubleDot_error();if(t.startsWith("/")||t.endsWith("/"))return re.workspace_sidebarHeader_branchSlashEnds_error();if(t.includes("//"))return re.workspace_sidebarHeader_branchDoubleSlash_error();if(t.startsWith("-"))return re.workspace_sidebarHeader_branchStartsDash_error();if(t.endsWith("."))return re.workspace_sidebarChanges_branchEndsPeriod_error();const e=t.split("/");for(const r of e){if(r.startsWith("."))return re.workspace_sidebarChanges_branchComponentStartsDot_error();if(r.endsWith(".lock"))return re.workspace_sidebarChanges_branchComponentEndsLock_error()}if(t.length>250)return re.workspace_sidebarHeader_branchTooLong_error()}function B2(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function La(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function q2(t,e){return`${e}:${t.agentId??"manual"}`}function y1(t,e){if(t.length===0||e>=t.length)return 0;const r=Math.max(0,e);let n=0;for(let a=r;a<t.length;a++)t[a].isPushed||n++;return n}function w1(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed&&n++;return n}function k1(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed||n++;return n}function F2(t,e,r,n){const a=y1(t,e),i=n?` (origin/${n})`:"";return r?a===1?re.workspace_sidebarChanges_addToPr_one({suffix:i}):re.workspace_sidebarChanges_addToPr_many({count:Je(a),suffix:i}):a===1?re.workspace_sidebarChanges_pushToRemote_one({suffix:i}):re.workspace_sidebarChanges_pushToRemote_many({count:Je(a),suffix:i})}function H2(t,e,r){const n=w1(t,e),a=r?` (origin/${r})`:"";return n===1?re.workspace_sidebarChanges_undoPush_one({suffix:a}):re.workspace_sidebarChanges_undoPush_many({count:Je(n),suffix:a})}function U2(t,e){const r=k1(t,e);return r===1?re.workspace_sidebarChanges_undoCommit_one():re.workspace_sidebarChanges_undoCommit_many({count:Je(r)})}function W2(t,e){return e===0&&t.length>0}function G2(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function j2(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function V2(t,e,r){return r?.path===t&&r?.staged===e}function X2(t){if(t.length===0)return[];const e=new Map,r=[...t].sort((n,a)=>n.timestamp-a.timestamp);for(const n of r)for(const a of n.files??[]){const i=e.get(a.path);i?e.set(a.path,{additions:i.additions+(a.additions||0),deletions:i.deletions+(a.deletions||0)}):e.set(a.path,{additions:a.additions||0,deletions:a.deletions||0})}return Array.from(e.entries()).map(([n,a])=>({path:n,additions:a.additions,deletions:a.deletions,staged:!1}))}function Y2(t,e,r){const n=new Set;let a=0,i=0;for(const s of t)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of e)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of r)for(const o of s.files||[])n.add(o.path),a+=o.additions||0,i+=o.deletions||0;return{totalFilesChanged:n.size,totalAdditions:a,totalDeletions:i}}function x1(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function K2(t,e,r,n,a){if(t&&t.length>0){const i=a?.split("/")[0];return t.map(s=>{const o=s.url||r(s.number),c=x1(s.url),h=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:La(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:h,crossRepoDisplay:h?di(h,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:La(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function Z2(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??Iu.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function S1(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function la(t,e,r){if(e.length===0)return t;const n=r?.split("/")[0],a=t.map(i=>({...i}));for(const i of e){const s=!i.resource&&!i.monitorAvailability&&(!r||i.repo===r),o=S0(i),c=o.toLowerCase(),h=a.find(m=>!!o&&m.url.toLowerCase()===c||(i.resource||i.monitorAvailability?m.monitorIdentity===ia(i):!m.resource&&!m.monitorAvailability&&(s?!m.crossRepo&&m.number===i.prNumber:m.crossRepo===i.repo&&m.number===i.prNumber)));if(h){h.monitorAgentId=i.agentId,h.resource=i.resource,h.monitorAvailability=i.monitorAvailability,h.monitorIdentity=i.resource||i.monitorAvailability?ia(i):void 0,h.monitorSnapshot=i.lastSnapshot??h.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${_u(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?ia(i):void 0,url:o,htmlUrl:o,status:S1(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:di(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function di(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function Q2(t,e,r,n,a){const i=r?.toLowerCase(),s=new Set;for(const x of n)x.repoOwner&&x.repoName&&s.add(`${x.repoOwner}/${x.repoName}`.toLowerCase());let o=t;const c=[],h=[];if(t.some(x=>x.crossRepo)){o=[];for(const x of t)x.crossRepo?s.has(x.crossRepo.toLowerCase())?c.push(x):h.push(x):o.push(x)}const m=[],f=[],g=[];for(const x of e){const C=x.repo.toLowerCase();S0(x)&&o.some(U=>U.url===S0(x))||!x.resource&&!x.monitorAvailability&&(!i||C===i)?m.push(x):S0(x)&&c.some(U=>U.url===S0(x))||!x.resource&&!x.monitorAvailability&&s.has(C)?f.push(x):g.push(x)}const w=la(o,m,r),S=r?.split("/")[0],M=new Set([...w,...c,...h].map(x=>`${(x.crossRepo??r??"").toLowerCase()}#${x.number}`)),I=[...c];for(const x of n){if(!x.repoOwner||!x.repoName)continue;const C=`${x.repoOwner}/${x.repoName}`;for(const U of x.pullRequests??[]){const K=`${C.toLowerCase()}#${U.number}`;if(M.has(K))continue;M.add(K);const Y=U.url||`https://github.com/${C}/pull/${U.number}`,T=i!==void 0&&C.toLowerCase()===i;I.push({number:U.number,title:a(U),url:Y,htmlUrl:Y,status:La(U.status),createdAt:U.createdAt,updatedAt:U.updatedAt,crossRepo:T?void 0:C,crossRepoDisplay:T?void 0:di(C,S)})}}return{own:w,otherRoots:la(I,f,r),otherTracked:la(h,g,r)}}function ks(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function J2(t){const e=t.status==="merged"?re.workspace_prSection_merged_label():t.status==="closed"?re.workspace_prSection_closed_label():t.status==="draft"?re.workspace_prSection_statusDraft_label():ks(t)?re.workspace_prSection_statusQueued_label():re.workspace_prSection_statusOpen_label(),r=[$u(t)??e],n=ks(t)?t1(t.monitorSnapshot?.mergeQueue):null;n&&r.push(n);const a=t.status==="merged"||t.status==="closed"?void 0:t.monitorSnapshot;return a&&(a.checks.total===null||a.checks.passed===null||a.checks.failed===null||a.checks.pending===null||a.availability&&a.availability.checks!=="available"?r.push(re.chat_monitoredPrs_hover_checksUnknown_label()):a.checks.total>0&&r.push(re.workspace_prSection_statusChecks_tooltip({passed:Je(a.checks.passed),failed:Je(a.checks.failed),pending:Je(a.checks.pending)})),r.push(a.approvals.have===null||a.availability&&a.availability.approvals!=="available"?re.chat_monitoredPrs_hover_approvalsUnknown_label():a.approvals.needed!=null?re.workspace_prSection_statusApprovalsOfNeeded_tooltip({count:Je(a.approvals.have),needed:Je(a.approvals.needed)}):re.workspace_prSection_statusApprovals_tooltip({count:Je(a.approvals.have)})),a.approvals.changesRequested!==null&&a.approvals.changesRequested>0&&r.push(re.workspace_prSection_statusChangesRequested_tooltip({count:Je(a.approvals.changesRequested)})),a.availability&&a.availability.discussions!=="available"?r.push(re.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()):typeof a.threads.unresolved=="number"?a.threads.unresolved>0&&r.push(re.workspace_prSection_statusUnresolvedThreads_tooltip({count:Je(a.threads.unresolved)})):a.threads.resolutionRequired&&r.push(re.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()),a.mergeBlockedReason&&r.push(b1(a.mergeBlockedReason))),r.join(`
2
2
  `)}function e5(t,e){return e.has(t??"manual")}function t5(t,e){return{path:t.relativePath,additions:t.stats.additions,deletions:t.stats.deletions,staged:e,status:t.status,attribution:t.attribution?.agent?{agentId:t.attribution.agent.agentId,agentName:t.attribution.agent.agentName,sessionId:t.attribution.agent.sessionId,turnNumber:t.attribution.agent.turnNumber,timestamp:t.attribution.timestamp}:void 0}}const xl=500;function r5(t,e=xl){const r=Math.max(0,Math.floor(e));return t.length<=r?{visible:t,shown:t.length,hiddenCount:0}:{visible:t.slice(0,r),shown:r,hiddenCount:t.length-r}}function n5(t,e,r=xl){let n=Math.max(0,Math.floor(r)),a=0,i=0;return{groups:t.map(o=>{if(e(o))return{group:o,visibleFiles:[]};const c=Math.min(n,o.files.length);return n-=c,a+=c,i+=o.files.length-c,{group:o,visibleFiles:c===o.files.length?o.files:o.files.slice(0,c)}}),shown:a,hiddenCount:i}}function a5(t){if(t.hiddenCount<=0)return"";const e=Je(t.shown),r=Je(t.shown+t.hiddenCount);return t.hiddenCount===1?re.workspace_fileChanges_hiddenFiles_one({shown:e,total:r}):re.workspace_fileChanges_hiddenFiles_many({shown:e,total:r,count:Je(t.hiddenCount)})}function A1(t){if(!t)return{};try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Oa(t){return t.startsWith("@")?t.slice(1):t}function T1(t,e,r,n){const a=t.fullPath||t.path||t.filename;if(a)return Oa(String(a));const i=[r,e,n.trim()].map(Oa).filter(Boolean),s=i.find(o=>o.includes("/"))??i[0];return s?Bu(s).path:void 0}function E1(t){const e=t.line??t.startLine??t.range?.start;return typeof e=="number"&&Number.isFinite(e)?e:void 0}function M1(t){if(!t||t.getAttribute("data-mention")===null)return null;const e=t.getAttribute("data-type")||"",r=t.getAttribute("data-id")||"",n=t.getAttribute("data-label")||"",a=t.getAttribute("data-uri")||"",i=A1(t.getAttribute("data-meta")),s={type:e,id:r,label:n,uri:a,meta:i},o=a.startsWith("intent://")?a:typeof i.fullUrl=="string"&&i.fullUrl.startsWith("intent://")?i.fullUrl:void 0;if(o&&(s.intentUrl=o),e==="file"||e==="file-range"){const c=T1(i,n,r,t.textContent||"");c&&(s.filePath=c);const h=E1(i);h!==void 0&&(s.line=h)}else if(e==="folder"||e==="source-folder"){const c=i.fullPath||i.path||r||n,h=c?Oa(String(c)).replace(/\/+$/,""):"";h&&(s.folderPath=h)}else if(e==="note"||e==="note-range"){const c=i.noteId||r;c&&(s.note=i.isExternalLink&&i.workspaceId?{id:c,workspaceId:String(i.workspaceId)}:{id:c})}return s}function i5(t){return{sidebarTabId:"files",type:"file",filePath:`${t}/`}}function mi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Dr=mi();function Sl(t){Dr=t}var Er={exec:()=>null};function Ur(t){let e=[];return r=>{let n=Math.max(0,Math.min(3,r-1)),a=e[n];return a||(a=t(n),e[n]=a),a}}function le(t,e=""){let r=typeof t=="string"?t:t.source,n={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(Ve.caret,"$1"),r=r.replace(a,s),n},getRegex:()=>new RegExp(r,e)};return n}var C1=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),Ve={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Ur(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Ur(t=>new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Ur(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ur(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:Ur(t=>new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Ur(t=>new RegExp(`^ {0,${t}}>`))},z1=/^(?:[ \t]*(?:\n|$))+/,I1=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,R1=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,$0=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,D1=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,pi=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Al=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Tl=le(Al).replace(/bull/g,pi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),N1=le(Al).replace(/bull/g,pi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),fi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,L1=/^[^\n]+/,gi=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,O1=le(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",gi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),P1=le(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,pi).getRegex(),Ln="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",vi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,_1=le("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",vi).replace("tag",Ln).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),El=t=>le(fi).replace("hr",$0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ln).getRegex(),$1=El(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),B1=El(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),q1=le(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",B1).getRegex(),bi={blockquote:q1,code:I1,def:O1,fences:R1,heading:D1,hr:$0,html:_1,lheading:Tl,list:P1,newline:z1,paragraph:$1,table:Er,text:L1},xs=le("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",$0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ln).getRegex(),F1={...bi,lheading:N1,table:xs,paragraph:le(fi).replace("hr",$0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",xs).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ln).getRegex()},H1={...bi,html:le(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",vi).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Er,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:le(fi).replace("hr",$0).replace("heading",` *#{1,6} *[^
3
3
  ]`).replace("lheading",Tl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},U1=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,W1=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ml=/^( {2,}|\\)\n(?!\s*$)/,G1=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ut=/[\p{P}\p{S}]/u,s0=/[\s\p{P}\p{S}]/u,B0=/[^\s\p{P}\p{S}]/u,j1=le(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,s0).getRegex(),V1=/[\p{Pi}\p{Ps}"']/u,Cl=/(?!~)[\p{P}\p{S}]/u,X1=/(?!~)[\s\p{P}\p{S}]/u,Y1=/(?:[^\s\p{P}\p{S}]|~)/u,K1=le(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",C1?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),zl=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Z1=le(zl,"u").replace(/punct/g,Ut).getRegex(),Q1=le(zl,"u").replace(/punct/g,Cl).getRegex(),J1=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,eh=le(J1,"u").replace(/openQuote/g,V1).replace(/punct/g,Ut).getRegex(),Il="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",th=le(Il,"gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,s0).replace(/punct/g,Ut).getRegex(),rh=le(Il,"gu").replace(/notPunctSpace/g,Y1).replace(/punctSpace/g,X1).replace(/punct/g,Cl).getRegex(),nh="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",ah=le(nh,"gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,s0).replace(/punct/g,Ut).getRegex(),ih=le("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,s0).replace(/punct/g,Ut).getRegex(),sh="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",oh=le(sh,"gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,s0).replace(/punct/g,Ut).getRegex(),lh=le(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Ut).getRegex(),ch="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",uh=le(ch,"gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,s0).replace(/punct/g,Ut).getRegex(),hh=le(/\\(punct)/,"gu").replace(/punct/g,Ut).getRegex(),dh=le(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),mh=le(vi).replace("(?:-->|$)","-->").getRegex(),ph=le("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",mh).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Mn=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,fh=le(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Mn).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Rl=le(/^!?\[(label)\]\[(ref)\]/).replace("label",Mn).replace("ref",gi).getRegex(),Dl=le(/^!?\[(ref)\](?:\[\])?/).replace("ref",gi).getRegex(),gh=le("reflink|nolink(?!\\()","g").replace("reflink",Rl).replace("nolink",Dl).getRegex(),Ss=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,yi={_backpedal:Er,anyPunctuation:hh,autolink:dh,blockSkip:K1,br:Ml,code:W1,del:Er,delLDelim:Er,delRDelim:Er,emStrongLDelim:Z1,emStrongRDelimAst:th,emStrongRDelimUnd:ih,escape:U1,link:fh,nolink:Dl,punctuation:j1,reflink:Rl,reflinkSearch:gh,tag:ph,text:G1,url:Er},vh={...yi,emStrongLDelim:eh,emStrongRDelimAst:ah,emStrongRDelimUnd:oh,link:le(/^!?\[(label)\]\((.*?)\)/).replace("label",Mn).getRegex(),reflink:le(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Mn).getRegex()},Pa={...yi,emStrongRDelimAst:rh,emStrongLDelim:Q1,delLDelim:lh,delRDelim:uh,url:le(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Ss).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:le(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Ss).getRegex()},bh={...Pa,br:le(Ml).replace("{2,}","*").getRegex(),text:le(Pa.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},mn={normal:bi,gfm:F1,pedantic:H1},g0={normal:yi,gfm:Pa,breaks:bh,pedantic:vh},yh={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},As=t=>yh[t];function zt(t,e){if(e){if(Ve.escapeTest.test(t))return t.replace(Ve.escapeReplace,As)}else if(Ve.escapeTestNoEncode.test(t))return t.replace(Ve.escapeReplaceNoEncode,As);return t}function Ts(t){try{t=encodeURI(t).replace(Ve.percentDecode,"%")}catch{return null}return t}function Es(t,e){let r=t.replace(Ve.findPipe,(i,s,o)=>{let c=!1,h=s;for(;--h>=0&&o[h]==="\\";)c=!c;return c?"|":" |"}),n=r.split(Ve.splitPipe),a=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;a<n.length;a++)n[a]=n[a].trim().replace(Ve.slashPipe,"|");return n}function Qt(t,e,r){let n=t.length;if(n===0)return"";let a=0;for(;a<n&&t.charAt(n-a-1)===e;)a++;return t.slice(0,n-a)}function Ms(t){let e=t.split(`
4
4
  `),r=e.length-1;for(;r>=0&&Ve.blankLine.test(e[r]);)r--;return e.length-r<=2?t:e.slice(0,r+1).join(`
@@ -467,4 +467,4 @@ ${JSON.stringify(J,null,2)}
467
467
  `),de.debug("[markdown-processor] processHTMLToMarkdown OUTPUT:",{markdownLength:C.length,preservedAnchors:r}),C}typeof window<"u"&&(window.__clearMarkdownCache=Z4);const Jo={major:15,minor:3},Gc="workspace-create:initializeGit",uf="~/Documents",el="~/Developer";function hf(t){return bl(t,Jo.major,Jo.minor)}function g5(t){return t.some(e=>!Uu(e))}function v5(t){return t.rememberedChoice!==null?t.rememberedChoice:t.hasGitWorkspace||t.githubConnected||t.gitlabConnected||t.githubFailed||t.gitlabFailed?!0:!t.workspacesLoaded||!t.githubSettled||!t.gitlabSettled?null:!1}function b5(t,e){switch(t){case"git-repo":return!e;case"new-repo":return!0;case"clone":return!1;default:return null}}function y5(t){try{const e=t?.getItem(Gc);if(e==="true")return!0;if(e==="false")return!1}catch{}return null}function w5(t,e){try{t?.setItem(Gc,String(e))}catch{}}function k5(t,e){return t&&t!==el?t:e?uf:el}function df(t,e){const r=n=>n.replace(/[\\/]+$/,"");return r(t)===r(e)}function x5(t,e){return e?t.filter(r=>[r.repositoryPath,r.worktreePath,r.path].some(n=>typeof n=="string"&&n.length>0&&df(n,e))):[]}function S5(t){const e=t.contextLinks?.filter(r=>r.kind!=="pr");return{title:t.title??"",repositoryPath:t.repositoryPath,plainFolder:!0,...e&&e.length>0?{contextLinks:e}:{},...t.linearIssue?{linearIssue:t.linearIssue}:{},...t.sentryIssue?{sentryIssue:t.sentryIssue}:{},...t.initialAgent?{initialAgent:t.initialAgent}:{}}}function A5(t,e){return!t||t.isGitRepo||t.isSubdirectoryOfGitRepo?null:t.exists?t.isDirectory?"existing":null:e===!1?"new":null}function T5(t){return t.labsEnabled&&hf(t.protocolVersion)&&t.githubSettled&&t.gitlabSettled&&!t.githubFailed&&!t.gitlabFailed&&!t.githubConnected&&!t.gitlabConnected}function E5(t,e){return!!t&&!t.plainFolder&&e.checked&&!e.available}function mf(t,e){if(t.repositoryIdentity===null)return null;if(t.repositoryIdentity){const{provider:a,instanceBaseUrl:i,projectPath:s}=t.repositoryIdentity,o=mf({...t,repositoryIdentity:void 0,githubUrl:`${i}/${s}`},a==="gitlab"?i:void 0);return o?.provider===a?o:null}const r=t.githubUrl;if(!r)return null;const n=/^(?:https:\/\/github\.com\/|git@github\.com:)([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+?)(?:\.git)?\/?$/i.exec(r);return n&&!n.slice(1).some(a=>a==="."||a==="..")?{provider:"github",instanceBaseUrl:"https://github.com",projectPath:`${n[1]}/${n[2]}`}:e?a1(r.replace(/\.git\/?$/,""),e):null}function jc(t){const e=t.split(/[\\/]/).filter(Boolean);return e[e.length-1]??""}function M5(t){if(t.type!=="local")return{ownerPrefix:t.owner,primary:t.name};const e=jc(t.path)||t.name,r=t.owner?`${t.owner}/${t.name}`:void 0;return{primary:e,suffix:r}}function C5(t){return t.type==="local"&&t.path?t.path:void 0}const pf=["/.clones/","/.repo-cache/"];function z5(t){const e=t.replaceAll("\\","/");return pf.some(r=>e.includes(r))}function I5(t){const e=new Set;for(const r of t){const{repositoryPath:n,worktreePath:a}=r;n&&a&&n===a&&e.add(n)}return e}function ff(t){return t.includes("\\")||t.includes(":")||t.startsWith("/")?void 0:/^([^/]+)\/[^/]+$/.exec(t)?.[1]}function R5(t,e){const{selectedValue:r,selectedRepoType:n,confirmedGithubUrl:a}=t;if(!(n!=="github"||!r)){if(a){const i=e(a)?.owner;if(i)return i}return e(r)?.owner??ff(r)}}function D5(t,e){const r=e.trim().toLowerCase();return r===""?!0:[t.name,t.path,jc(t.path),t.owner,t.owner?`${t.owner}/${t.name}`:void 0].some(a=>a?.toLowerCase().includes(r)??!1)}function gf({compactFormState:t,lastSubmittedAgent:e,specialists:r,orchestratorId:n}){if(t?.isTeamMode??e?.isTeamMode??!1)return n;const i=o=>r.some(c=>c.id===o),s=t?.selectedSpecialist!==void 0?t.selectedSpecialist:e?.selectedSpecialist!==void 0?e.selectedSpecialist:i(bs)?bs:null;return s===null||!i(s)?null:s}const N5=E.createSelector(t=>t.workspaceInitializer.hydrated),L5=E.createSelector(t=>t.workspaceInitializer.compactFormState),O5=E.createSelector(t=>t.workspaceInitializer.onboardingFormState),P5=E.createSelector(t=>t.workspaceInitializer.lastSelectedRepo),_5=E.createSelector(t=>t.workspaceInitializer.branchByRepo),$5=E.createSelector(t=>t.workspaceInitializer.defaultParentPath),B5=E.createSelector(t=>we(t.workspaceInitializer.recentRepos)),q5=E.createSelector((t,e)=>Te(t.workspaceInitializer.recentRepoRefreshes,e)),F5=E.createSelector((t,e)=>Te(t.workspaceInitializer.directoryStatusChecks,e)),H5=E.createSelector(t=>t.workspaceInitializer.dismissedRecentRepoKeys),U5=E.createSelector(t=>we(t.workspaceInitializer.remoteSetups)),W5=E.createSelector(t=>t.workspaceInitializer.lastSubmittedAgent),G5=E.createSelector(t=>t.workspaceInitializer.agentByRepo),j5=E.createSelector(t=>t.workspaceInitializer.recentSpecialistIds),V5=E.createSelector((t,e)=>t.workspaceInitializer.agentByRepo[e]??null),X5=E.createSelector(t=>t.workspaceInitializer.pendingGitHubPrefill),Y5=E.createSelector((t,e)=>({restore:Te(t.workspaceInitializer.draftRestores,e),clear:Te(t.workspaceInitializer.draftClears,e)})),K5=E.createSelector((t,e,r)=>{const n=Te(t.workspaceInitializer.initializationOutcomes,e);return n?.resourceId===r?n:void 0}),Z5=E.createSelector((t,e)=>Te(t.workspaceInitializer.initializationOutcomes,e)),Q5=E.createSelector((t,e)=>Te(t.workspaceInitializer.initializationResumes,e)),J5=E.createSelector(t=>gf({compactFormState:t.workspaceInitializer.compactFormState,lastSubmittedAgent:t.workspaceInitializer.lastSubmittedAgent,specialists:s1.select(t),orchestratorId:i1.select(t)?.id??null})),vf=E.createSelector(t=>{const e=t.workspaceInitializer.gitCheckRequest,r=lr.select(t);return e&&r&&Wu.select(t)?JSON.stringify([r,e]):null}),e3=E.createSelector(t=>{const e=vf.select(t),r=t.workspaceInitializer.gitCheck;return e&&r?.context===e?r.available:null}),Ot=E.createSelector(t=>fl.select(t)?lr.select(t):null),bf=E.createSelector(t=>{const e=_0.select(t)?.principal;return e?JSON.stringify([t.connections.windowBackendId,e.id]):null}),t3=E.createSelector(t=>we(t.workspace.workspaces).map(e=>String(e.id))),r3=E.createSelector((t,e,r=De)=>{const n=Ot.select(t),a=Te(t.workspace.workspaces,t0(e)),i=li(t.workspaceDiscussion,e,r);return n&&t.workspaceDiscussion.context===n&&a&&t.workspaceDiscussion.workspaceIds.includes(e)&&i?{context:n,workspaceId:e,conversationId:r,epoch:i.epoch}:null}),Gn=E.createSelector(t=>{const e=t.workspaceDiscussion.owner;if(!e||!o1.select(t)||t.principal.status==="revoked"||t.principal.error==="incompatible-response"||t.connections.authRejected?.id===t.connections.windowBackendId)return!1;const r=bf.select(t);if(r)return r===e;try{const[n,a]=JSON.parse(e),i=t.principal.boundPrincipalId??t.principal.snapshot?.principal.id;return n===t.connections.windowBackendId&&(i==null||i===a)}catch{return!1}}),Rt=E.createSelector((t,e,r=De)=>{if(!Te(t.workspace.workspaces,t0(e))||!Gn.select(t))return un;const a=li(t.workspaceDiscussion,e,r)??un;return r!==De&&r!==Ht&&(!a.authorized||!a.initialized&&t.workspaceDiscussion.conversationsSupported!==!0)?{...a,draft:"",agentMentions:[],principalMentions:[],messages:un.messages,pending:un.pending}:a}),yf=E.createSelector((t,e,r=De)=>Rt.select(t,e,r).authorized?we(Rt.select(t,e,r).messages):[]),n3=E.createSelector((t,e,r=De)=>Rt.select(t,e,r).authorized?we(Rt.select(t,e,r).pending):[]),wf=E.createSelector((t,e,r=De)=>{const n=Te(t.workspace.workspaces,t0(e)),a=Rt.select(t,e,r);return!!Ot.select(t)&&!!n&&!t.workspaceDiscussion.deletedKeys.includes(JSON.stringify([e,r]))&&(r===De||(r===Ht?t.workspaceDiscussion.managementSupported===!0:(t.workspaceDiscussion.conversationsSupported===!0||t.workspaceDiscussion.managementSupported===!0)&&a.authorized))&&!a.unsupported&&a.error!=="forbidden"}),a3=E.createSelector(t=>t.workspaceDiscussion.requestedIds),i3=E.createSelector(t=>t.workspaceDiscussion.requestedIds.filter(e=>{const[r,n]=JSON.parse(e);return!li(t.workspaceDiscussion,r,n)})),Vc=E.createSelector((t,e)=>Yc.select(t)===!0&&!!Ot.select(t)&&!!gl.select(t,e)),kf=E.createSelector((t,e)=>Vc.select(t,e)&&!Xc.select(t)),G0=E.createSelector((t,e)=>Gn.select(t)&&(t.workspaceDiscussion.conversationsSupported===!0||t.workspaceDiscussion.managementSupported===!0)?t.workspaceDiscussion.directories[e]??fs:fs),s3=E.createSelector((t,e)=>we(G0.select(t,e).conversations)),o3=E.createSelector((t,e)=>{if(Gn.select(t)&&t.workspaceDiscussion.deletedKeys.includes(JSON.stringify([e,De])))return!1;if(t.workspaceDiscussion.managementSupported!==!0)return!0;const r=G0.select(t,e);return!!Te(r.conversations,De)||r.status!=="ready"||r.hasMore}),l3=E.createSelector((t,e)=>{const r=Gn.select(t)?t.workspaceDiscussion.recipients[e]??gs:gs,n=Rt.select(t,e,Ht).recipientPrincipalIds;return{status:r.status,query:r.query,members:we(r.members),selectedMembers:we(r.knownMembers).filter(a=>n.includes(a.principalId)),hasMore:r.hasMore,error:r.error}});E.createSelector((t,e)=>Rt.select(t,e,Ht).createdConversationId);const c3=E.createSelector(t=>t.workspaceDiscussion.conversationsSupported),u3=E.createSelector(t=>t.workspaceDiscussion.directoryRequestedIds),h3=E.createSelector((t,e)=>t.workspaceDiscussion.recipients[e]),xf=E.createSelector(t=>{const e=_0.select(t)?.principal;return e?{principalId:e.id,login:e.login??null,displayName:e.displayName??null,avatarUrl:e.avatarUrl??null}:null}),d3=E.createSelector((t,e,r=De)=>{const n=Rt.select(t,e,r),a=t.workspaceDiscussion.owner,i=xf.select(t)?.principalId??(a?JSON.parse(a)[1]:null),s=n.readSequence??0,o=yf.select(t,e,r).filter(c=>c.sequence>s&&(c.author.agentId!==void 0||c.author.principalId!==i));return{count:o.length,firstSequence:o[0]?.sequence??null}}),Xc=E.createSelector(t=>t.workspaceDiscussion.context===Ot.select(t)&&t.workspaceDiscussion.sharingEnabled===!1),j0=E.createSelector((t,e,r=De)=>(r!==Ht||kf.select(t,e))&&wf.select(t,e,r)&&!Xc.select(t)&&!Mf.select(t,e,r)),m3=E.createSelector((t,e)=>Gu.select(t)&&ju.select(t,e)),p3=E.createSelector(t=>t.workspaceDiscussion.messageActionsSupported),f3=E.createSelector((t,e,r=De)=>r!==Ht&&t.workspaceDiscussion.messageActionsSupported===!0&&j0.select(t,e,r)),g3=E.createSelector((t,e,r=De)=>{const n=Rt.select(t,e,r);return n.replyToMessageId&&n.authorized?Te(n.messages,n.replyToMessageId)??null:null}),Sf=E.createSelector(t=>t.workspaceDiscussion.context===Ot.select(t)?t.workspaceDiscussion.agentMessagingSupported:null),Af=E.createSelector(t=>t.workspaceDiscussion.context===Ot.select(t)?t.workspaceDiscussion.agentActivitySupported:null),v3=E.createSelector(t=>t.workspaceDiscussion.context===Ot.select(t)?t.workspaceDiscussion.principalMentionsSupported:null),b3=E.createSelector((t,e,r=De)=>r!==Ht&&Cf.select(t,e,r)&&Af.select(t)===!0&&j0.select(t,e,r)),y3=E.createSelector((t,e,r=De)=>we(Rt.select(t,e,r).agentControls).map(n=>n.key)),w3=E.createSelector(t=>t.workspaceDiscussion.context===Ot.select(t)?t.workspaceDiscussion.reactionsSupported:null),Yc=E.createSelector(t=>t.workspaceDiscussion.context===Ot.select(t)?t.workspaceDiscussion.managementSupported:null),Tf=E.createSelector((t,e)=>Ot.select(t)===t.workspaceDiscussion.context?t.workspaceDiscussion.management[e]??vs:vs),Ef=E.createSelector((t,e,r=De)=>{const n=gl.select(t,e);return Vc.select(t,e)&&(n?.myRole==="owner"||n?.myRole==="manager")&&!t.workspaceDiscussion.deletedKeys.includes(JSON.stringify([e,r]))&&Te(G0.select(t,e).conversations,r)?.kind==="workspace"}),k3=E.createSelector((t,e,r=De)=>Ef.select(t,e,r)&&Vu.select(t,e)),x3=E.createSelector((t,e,r)=>{const n=Tf.select(t,e);return n.pending!==null&&(r===void 0||n.conversationId===r)}),Mf=E.createSelector((t,e,r=De)=>{const n=Te(G0.select(t,e).conversations,r);return!!n&&n.kind!=="workspace"}),Cf=E.createSelector((t,e,r=De)=>Sf.select(t)===!0&&j0.select(t,e,r)&&(r===De||Yc.select(t)===!0&&(r===Ht||Te(G0.select(t,e).conversations,r)?.kind==="workspace"))),S3=E.createSelector(t=>t.presence.profileRevision),A3=E.createSelector(t=>t.presence.windowVisible),T3=E.createSelector(t=>t.presence.captureDrawingActive),zf=E.createSelector(t=>fl.select(t)?lr.select(t):null),Kc=t=>{const e=zf.select(t);return e!==null&&t.presence.context===e},E3=E.createSelector(t=>l1.select(t).filter(e=>!!Te(t.workspace.workspaces,t0(e)))),Kr=[],Zr=[],tl=[],If=(t,e)=>{const r=t.rosters[e];return r?we(r):Kr},Lr=(t,e)=>{const r=Te(t.workspace.workspaces,t0(e));return Kc(t)&&r&&(r.memberCount??1)>1?r:void 0},M3=E.createSelector((t,e)=>{const r=t.presence.ownPrincipalId;if(r===null||!Lr(t,e))return tl;const n=t.presence.members[e];return n?we(n).filter(a=>a.principalId!==r&&!!a.login?.trim()):tl}),Fi=(t,e)=>({principalId:t.principalId,login:t.login,displayName:t.displayName,avatarUrl:t.avatarUrl,...t.identity?{identity:t.identity}:{},...t.hostRole?{hostRole:t.hostRole}:{},...e}),Rf=t=>t.some(e=>e.online&&!e.self),Dn=t=>t.owner?0:t.online?1:2,Zc=E.createSelector((t,e)=>{const r=t.presence.ownPrincipalId;if(r===null||!Lr(t,e))return Zr;const n=t.presence.members[e];if(!n)return Zr;const a=t.presence.rosters[e],i=we(n).filter(s=>s.principalId!==r).map(s=>{const o=a?Te(a,s.principalId):void 0,c=o?{...s,...o}:s;return Fi(c,{owner:c.hostRole?c.hostRole==="owner":s.role==="owner",online:o!==void 0,viewing:o?.focus.some(h=>h.workspaceId===e)??!1,self:!1})}).sort((s,o)=>Dn(s)-Dn(o));return i.length>0?i:Zr}),C3=E.createSelector((t,e)=>{const r=_0.select(t)?.capabilities.hostMembership;return Zc.select(t,e).filter(n=>r&&!n.hostRole?!1:!n.hostRole||n.hostRole==="guest"||n.online)}),Df=E.createSelector((t,e)=>{if(!Lr(t,e))return Zr;const r=t.presence.members[e],n=t.presence.rosters[e],a=new Map;for(const s of r?we(r):[])a.set(s.principalId,s);for(const s of n?we(n):[])a.set(s.principalId,{...a.get(s.principalId),...s});const i=_0.select(t)?.principal;return i&&i.id===t.presence.ownPrincipalId&&!a.has(i.id)&&a.set(i.id,{...i,principalId:i.id}),[...a.values()]}),z3=E.createSelector((t,e)=>{const r=Zc.select(t,e),n=t.presence.ownPrincipalId,a=Df.select(t,e).find(s=>s.principalId===n);if(!a)return r;const i=Lr(t,e);return[Fi(a,{owner:a.hostRole?a.hostRole==="owner":i?.ownerPrincipalId===n,online:!0,viewing:!0,self:!0}),...r]}),I3=E.createSelector((t,e,r)=>{const n=t.presence.ownPrincipalId,a=Lr(t,e);if(n===null||!a)return Zr;const i=If(t.presence,e).filter(s=>s.principalId!==n&&s.focus.some(o=>o.workspaceId===e&&o.agentId===r)).map(s=>Fi(s,{owner:s.principalId===a.ownerPrincipalId,online:!0,viewing:!0,self:!1})).sort((s,o)=>Dn(s)-Dn(o));return Rf(i)?i:Zr}),R3=E.createSelector((t,e,r)=>{const n=t.presence.liveTyping[e],a=t.presence.rosters[e];if(!n||!a)return Kr;const i=new Set;for(const s of Object.keys(n)){const o=n[s];o.expired||o.agentId!==r||s===t.presence.ownTypingSource||Te(a,o.principalId)&&i.add(o.principalId)}return i.size===0?Kr:we(a).filter(s=>i.has(s.principalId))}),Nf=E.createSelector(t=>{const e=t.presence.discussionComposerWorkspaceId;return e&&Kc(t)&&Lr(t,e)&&t.presence.windowVisible&&t.tabState.currentTabId===e&&t.presence.discussionComposerConversationId!==Ht&&j0.select(t,e,t.presence.discussionComposerConversationId)?e:null}),Lf=E.createSelector(t=>{const e=Nf.select(t);return e?pl(e,t.presence.discussionComposerConversationId):null}),D3=E.createSelector((t,e,r=De)=>{if(r!==De&&!j0.select(t,e,r)||!Lr(t,e)||t.presence.ownPrincipalId===null)return Kr;const n=t.presence.liveDiscussionTyping[e],a=t.presence.rosters[e];if(!n||!a)return Kr;const i=new Set(Object.entries(n).filter(([s,o])=>!o.expired&&o.conversationId===r&&s!==t.presence.ownTypingSource&&o.principalId!==t.presence.ownPrincipalId).map(([,s])=>s.principalId));return i.size?we(a).filter(s=>i.has(s.principalId)):Kr}),N3=E.createSelector(t=>t.presence.liveDiscussionTyping),Of=E.createSelector(t=>{if(!t.presence.windowVisible)return{focus:[],typing:null};const e=t.tabState.currentTabId;if(!e)return{focus:[],typing:null};const r=[{workspaceId:e}],n=t.panelLayout.byWorkspaceId[e]?.panels??{};for(const i of Object.keys(n).sort()){const s=n[i],o=s.activeTabId?s.tabs.find(c=>c.id===s.activeTabId):void 0;o&&(o.type==="agent"&&o.agentId?r.push({workspaceId:e,agentId:o.agentId}):o.type==="note"&&o.noteId&&r.push({workspaceId:e,noteId:o.noteId}))}const a=t.presence.ownDiscussionTyping;return{focus:r,typing:t.presence.ownTyping,...a&&pl(a.workspaceId,a.conversationId)===Lf.select(t)?{discussionTyping:a}:{}}}),L3=E.createSelector(t=>JSON.stringify(Of.select(t))),O3=E.createSelector(t=>t.presence.liveTyping),P3=E.createSelector(t=>t.presence.ownPrincipalId),_3=E.createSelector(t=>{const e=[];for(const r of Object.keys(t.tabState.openTabs)){if(t.tabState.openTabs[r]!==!0)continue;const n=Te(t.workspace.workspaces,t0(r))?.memberCount??1;n>1&&e.push(`${r}:${n}`)}return e.sort()});let or=null;function $3(t){const e={};return or={token:e,onCancel:t},e}function B3(t){return or?.token===t}function q3(t){or?.token===t&&(or=null)}function F3(){return or!==null}function H3(){if(or===null)return!1;const{onCancel:t}=or;return or=null,t(),!0}const ut={IS_AUTHENTICATED:"github-auth:is-authenticated",GET_USER:"github-auth:get-user",START_AUTH:"github-auth:start",POLL_FOR_TOKEN:"github-auth:poll",CANCEL_AUTH:"github-auth:cancel",LOGOUT:"github-auth:logout",GET_AUTH_STATE:"github-auth:get-auth-state",GET_STATUS:"github-auth:get-status",LIST_REPOS:"github-auth:list-repos",SEARCH_REPOS:"github-auth:search-repos",SEARCH_USERS:"github-auth:search-users"},U3={async isAuthenticated(t){try{return await Ge(ut.IS_AUTHENTICATED,...t===void 0?[]:[{workspaceId:t}])}catch{return!1}},async getUser(t){try{return await Ge(ut.GET_USER,...t===void 0?[]:[{workspaceId:t}])}catch{return null}},async startAuth(t){return t?await Ge(ut.START_AUTH,t):await Ge(ut.START_AUTH)},async checkAuthComplete(){return await Ge(ut.POLL_FOR_TOKEN)},async cancelAuth(t){return t?Ge(ut.CANCEL_AUTH,t):Ge(ut.CANCEL_AUTH)},async logout(){return Ge(ut.LOGOUT)},async getAuthState(t){try{return await Ge(ut.GET_AUTH_STATE,...t===void 0?[]:[{workspaceId:t}])}catch{return{isAuthenticated:!1,requiresDaemonAuth:!0,user:null}}},async getStatus(t){try{return await Ge(ut.GET_STATUS,...t===void 0?[]:[{workspaceId:t}])}catch{return{isConfigured:!1,oauthUrl:"",configuredButNeedsUpdate:!1,updatedScopes:""}}},async listRepos(t,e){const r=await Ge(ut.LIST_REPOS,{page:t,...e===void 0?{}:{workspaceId:e}});if(!r.success)throw new Error(r.error||"Repository discovery failed");return r.data??[]},async searchRepos(t,e){try{return await Ge(ut.SEARCH_REPOS,{query:t,...e===void 0?{}:{workspaceId:e}})}catch(r){return{success:!1,error:r instanceof Error?r.message:String(r)}}},async searchUsers(t,e){try{return await Ge(ut.SEARCH_USERS,{query:t,...e===void 0?{}:{workspaceId:e}})}catch(r){return{success:!1,error:r instanceof Error?r.message:String(r)}}}};class Pf{constructor(){ie(this,"metrics",new Map);ie(this,"completedMetrics",[]);ie(this,"maxCompletedMetrics",100)}start(e,r){oa.get("showPerformanceMetrics")&&this.metrics.set(e,{name:e,startTime:performance.now(),metadata:r})}end(e){if(!oa.get("showPerformanceMetrics"))return null;const r=this.metrics.get(e);return r?(r.endTime=performance.now(),r.duration=r.endTime-r.startTime,this.metrics.delete(e),this.completedMetrics.push(r),this.completedMetrics.length>this.maxCompletedMetrics&&this.completedMetrics.shift(),oa.get("logStateChanges")&&rl.info(`[Performance] ${e}: ${r.duration.toFixed(2)}ms`,r.metadata),r.duration):(rl.warn(`Performance metric "${e}" was not started`),null)}async measure(e,r,n){this.start(e,n);try{const a=await r();return this.end(e),a}catch(a){throw this.end(e),a}}getMetrics(){return[...this.completedMetrics]}clear(){this.metrics.clear(),this.completedMetrics=[]}}const W3=new Pf,rl=new r0("Performance"),nl=t=>{t=1831565813+(t|=0)|0;let e=Math.imul(t^t>>>15,1|t);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296};class _f{constructor(e){this.dictionaries=void 0,this.length=void 0,this.separator=void 0,this.style=void 0,this.seed=void 0;const{length:r,separator:n,dictionaries:a,style:i,seed:s}=e;this.dictionaries=a,this.separator=n,this.length=r,this.style=i,this.seed=s}generate(){if(!this.dictionaries)throw new Error('Cannot find any dictionary. Please provide at least one, or leave the "dictionary" field empty in the config object');if(this.length<=0)throw new Error("Invalid length provided");if(this.length>this.dictionaries.length)throw new Error(`The length cannot be bigger than the number of dictionaries.
468
468
  Length provided: ${this.length}. Number of dictionaries provided: ${this.dictionaries.length}`);let e=this.seed;return this.dictionaries.slice(0,this.length).reduce((r,n)=>{let a;e?(a=(s=>{if(typeof s=="string"){const o=s.split("").map(h=>h.charCodeAt(0)).reduce((h,m)=>h+m,1),c=Math.floor(Number(o));return nl(c)}return nl(s)})(e),e=4294967296*a):a=Math.random();let i=n[Math.floor(a*n.length)]||"";if(this.style==="lowerCase")i=i.toLowerCase();else if(this.style==="capital"){const[s,...o]=i.split("");i=s.toUpperCase()+o.join("")}else this.style==="upperCase"&&(i=i.toUpperCase());return r?`${r}${this.separator}${i}`:`${i}`},"")}}const al={separator:"_",dictionaries:[]},$f=t=>{const e=[...t&&t.dictionaries||al.dictionaries],r={...al,...t,length:t&&t.length||e.length,dictionaries:e};if(!t||!t.dictionaries||!t.dictionaries.length)throw new Error('A "dictionaries" array must be provided. This is a breaking change introduced starting from Unique Name Generator v4. Read more about the breaking change here: https://github.com/andreasonny83/unique-names-generator#migration-guide');return new _f(r).generate()};var Bf=["able","above","absent","absolute","abstract","abundant","academic","acceptable","accepted","accessible","accurate","accused","active","actual","acute","added","additional","adequate","adjacent","administrative","adorable","advanced","adverse","advisory","aesthetic","afraid","aggregate","aggressive","agreeable","agreed","agricultural","alert","alive","alleged","allied","alone","alright","alternative","amateur","amazing","ambitious","amused","ancient","angry","annoyed","annual","anonymous","anxious","appalling","apparent","applicable","appropriate","arbitrary","architectural","armed","arrogant","artificial","artistic","ashamed","asleep","assistant","associated","atomic","attractive","automatic","autonomous","available","average","awake","aware","awful","awkward","back","bad","balanced","bare","basic","beautiful","beneficial","better","bewildered","big","binding","biological","bitter","bizarre","blank","blind","blonde","bloody","blushing","boiling","bold","bored","boring","bottom","brainy","brave","breakable","breezy","brief","bright","brilliant","broad","broken","bumpy","burning","busy","calm","capable","capitalist","careful","casual","causal","cautious","central","certain","changing","characteristic","charming","cheap","cheerful","chemical","chief","chilly","chosen","christian","chronic","chubby","circular","civic","civil","civilian","classic","classical","clean","clear","clever","clinical","close","closed","cloudy","clumsy","coastal","cognitive","coherent","cold","collective","colonial","colorful","colossal","coloured","colourful","combative","combined","comfortable","coming","commercial","common","communist","compact","comparable","comparative","compatible","competent","competitive","complete","complex","complicated","comprehensive","compulsory","conceptual","concerned","concrete","condemned","confident","confidential","confused","conscious","conservation","conservative","considerable","consistent","constant","constitutional","contemporary","content","continental","continued","continuing","continuous","controlled","controversial","convenient","conventional","convinced","convincing","cooing","cool","cooperative","corporate","correct","corresponding","costly","courageous","crazy","creative","creepy","criminal","critical","crooked","crowded","crucial","crude","cruel","cuddly","cultural","curious","curly","current","curved","cute","daily","damaged","damp","dangerous","dark","dead","deaf","deafening","dear","decent","decisive","deep","defeated","defensive","defiant","definite","deliberate","delicate","delicious","delighted","delightful","democratic","dependent","depressed","desirable","desperate","detailed","determined","developed","developing","devoted","different","difficult","digital","diplomatic","direct","dirty","disabled","disappointed","disastrous","disciplinary","disgusted","distant","distinct","distinctive","distinguished","disturbed","disturbing","diverse","divine","dizzy","domestic","dominant","double","doubtful","drab","dramatic","dreadful","driving","drunk","dry","dual","due","dull","dusty","dutch","dying","dynamic","eager","early","eastern","easy","economic","educational","eerie","effective","efficient","elaborate","elated","elderly","eldest","electoral","electric","electrical","electronic","elegant","eligible","embarrassed","embarrassing","emotional","empirical","empty","enchanting","encouraging","endless","energetic","enormous","enthusiastic","entire","entitled","envious","environmental","equal","equivalent","essential","established","estimated","ethical","ethnic","eventual","everyday","evident","evil","evolutionary","exact","excellent","exceptional","excess","excessive","excited","exciting","exclusive","existing","exotic","expected","expensive","experienced","experimental","explicit","extended","extensive","external","extra","extraordinary","extreme","exuberant","faint","fair","faithful","familiar","famous","fancy","fantastic","far","fascinating","fashionable","fast","fat","fatal","favourable","favourite","federal","fellow","female","feminist","few","fierce","filthy","final","financial","fine","firm","fiscal","fit","fixed","flaky","flat","flexible","fluffy","fluttering","flying","following","fond","foolish","foreign","formal","formidable","forthcoming","fortunate","forward","fragile","frail","frantic","free","frequent","fresh","friendly","frightened","front","frozen","full","fun","functional","fundamental","funny","furious","future","fuzzy","gastric","gay","general","generous","genetic","gentle","genuine","geographical","giant","gigantic","given","glad","glamorous","gleaming","global","glorious","golden","good","gorgeous","gothic","governing","graceful","gradual","grand","grateful","greasy","great","grieving","grim","gross","grotesque","growing","grubby","grumpy","guilty","handicapped","handsome","happy","hard","harsh","head","healthy","heavy","helpful","helpless","hidden","high","hilarious","hissing","historic","historical","hollow","holy","homeless","homely","hon","honest","horizontal","horrible","hostile","hot","huge","human","hungry","hurt","hushed","husky","icy","ideal","identical","ideological","ill","illegal","imaginative","immediate","immense","imperial","implicit","important","impossible","impressed","impressive","improved","inadequate","inappropriate","inc","inclined","increased","increasing","incredible","independent","indirect","individual","industrial","inevitable","influential","informal","inherent","initial","injured","inland","inner","innocent","innovative","inquisitive","instant","institutional","insufficient","intact","integral","integrated","intellectual","intelligent","intense","intensive","interested","interesting","interim","interior","intermediate","internal","international","intimate","invisible","involved","irrelevant","isolated","itchy","jealous","jittery","joint","jolly","joyous","judicial","juicy","junior","just","keen","key","kind","known","labour","large","late","latin","lazy","leading","left","legal","legislative","legitimate","lengthy","lesser","level","lexical","liable","liberal","light","like","likely","limited","linear","linguistic","liquid","literary","little","live","lively","living","local","logical","lonely","long","loose","lost","loud","lovely","low","loyal","ltd","lucky","mad","magic","magnetic","magnificent","main","major","male","mammoth","managerial","managing","manual","many","marginal","marine","marked","married","marvellous","marxist","mass","massive","mathematical","mature","maximum","mean","meaningful","mechanical","medical","medieval","melodic","melted","mental","mere","metropolitan","mid","middle","mighty","mild","military","miniature","minimal","minimum","ministerial","minor","miserable","misleading","missing","misty","mixed","moaning","mobile","moderate","modern","modest","molecular","monetary","monthly","moral","motionless","muddy","multiple","mushy","musical","mute","mutual","mysterious","naked","narrow","nasty","national","native","natural","naughty","naval","near","nearby","neat","necessary","negative","neighbouring","nervous","net","neutral","new","nice","noble","noisy","normal","northern","nosy","notable","novel","nuclear","numerous","nursing","nutritious","nutty","obedient","objective","obliged","obnoxious","obvious","occasional","occupational","odd","official","ok","okay","old","olympic","only","open","operational","opposite","optimistic","oral","ordinary","organic","organisational","original","orthodox","other","outdoor","outer","outrageous","outside","outstanding","overall","overseas","overwhelming","painful","pale","panicky","parallel","parental","parliamentary","partial","particular","passing","passive","past","patient","payable","peaceful","peculiar","perfect","permanent","persistent","personal","petite","philosophical","physical","plain","planned","plastic","pleasant","pleased","poised","polite","political","poor","popular","positive","possible","potential","powerful","practical","precious","precise","preferred","pregnant","preliminary","premier","prepared","present","presidential","pretty","previous","prickly","primary","prime","primitive","principal","printed","prior","private","probable","productive","professional","profitable","profound","progressive","prominent","promising","proper","proposed","prospective","protective","protestant","proud","provincial","psychiatric","psychological","public","puny","pure","purring","puzzled","quaint","qualified","quarrelsome","querulous","quick","quickest","quiet","quintessential","quixotic","racial","radical","rainy","random","rapid","rare","raspy","rational","ratty","raw","ready","real","realistic","rear","reasonable","recent","reduced","redundant","regional","registered","regular","regulatory","related","relative","relaxed","relevant","reliable","relieved","religious","reluctant","remaining","remarkable","remote","renewed","representative","repulsive","required","resident","residential","resonant","respectable","respective","responsible","resulting","retail","retired","revolutionary","rich","ridiculous","right","rigid","ripe","rising","rival","roasted","robust","rolling","romantic","rotten","rough","round","royal","rubber","rude","ruling","running","rural","sacred","sad","safe","salty","satisfactory","satisfied","scared","scary","scattered","scientific","scornful","scrawny","screeching","secondary","secret","secure","select","selected","selective","selfish","semantic","senior","sensible","sensitive","separate","serious","severe","sexual","shaggy","shaky","shallow","shared","sharp","sheer","shiny","shivering","shocked","short","shrill","shy","sick","significant","silent","silky","silly","similar","simple","single","skilled","skinny","sleepy","slight","slim","slimy","slippery","slow","small","smart","smiling","smoggy","smooth","social","socialist","soft","solar","sole","solid","sophisticated","sore","sorry","sound","sour","southern","soviet","spare","sparkling","spatial","special","specific","specified","spectacular","spicy","spiritual","splendid","spontaneous","sporting","spotless","spotty","square","squealing","stable","stale","standard","static","statistical","statutory","steady","steep","sticky","stiff","still","stingy","stormy","straight","straightforward","strange","strategic","strict","striking","striped","strong","structural","stuck","stupid","subjective","subsequent","substantial","subtle","successful","successive","sudden","sufficient","suitable","sunny","super","superb","superior","supporting","supposed","supreme","sure","surprised","surprising","surrounding","surviving","suspicious","sweet","swift","symbolic","sympathetic","systematic","tall","tame","tart","tasteless","tasty","technical","technological","teenage","temporary","tender","tense","terrible","territorial","testy","then","theoretical","thick","thin","thirsty","thorough","thoughtful","thoughtless","thundering","tight","tiny","tired","top","tory","total","tough","toxic","traditional","tragic","tremendous","tricky","tropical","troubled","typical","ugliest","ugly","ultimate","unable","unacceptable","unaware","uncertain","unchanged","uncomfortable","unconscious","underground","underlying","unemployed","uneven","unexpected","unfair","unfortunate","unhappy","uniform","uninterested","unique","united","universal","unknown","unlikely","unnecessary","unpleasant","unsightly","unusual","unwilling","upper","upset","uptight","urban","urgent","used","useful","useless","usual","vague","valid","valuable","variable","varied","various","varying","vast","verbal","vertical","very","vicarious","vicious","victorious","violent","visible","visiting","visual","vital","vitreous","vivacious","vivid","vocal","vocational","voiceless","voluminous","voluntary","vulnerable","wandering","warm","wasteful","watery","weak","wealthy","weary","wee","weekly","weird","welcome","well","western","wet","whispering","whole","wicked","wide","widespread","wild","wilful","willing","willowy","wily","wise","wispy","wittering","witty","wonderful","wooden","working","worldwide","worried","worrying","worthwhile","worthy","written","wrong","xenacious","xenial","xenogeneic","xenophobic","xeric","xerothermic","yabbering","yammering","yappiest","yappy","yawning","yearling","yearning","yeasty","yelling","yelping","yielding","yodelling","young","youngest","youthful","ytterbic","yucky","yummy","zany","zealous","zeroth","zestful","zesty","zippy","zonal","zoophagous","zygomorphic","zygotic"],qf=["aardvark","aardwolf","albatross","alligator","alpaca","amphibian","anaconda","angelfish","anglerfish","ant","anteater","antelope","antlion","ape","aphid","armadillo","asp","baboon","badger","bandicoot","barnacle","barracuda","basilisk","bass","bat","bear","beaver","bedbug","bee","beetle","bird","bison","blackbird","boa","boar","bobcat","bobolink","bonobo","booby","bovid","bug","butterfly","buzzard","camel","canid","canidae","capybara","cardinal","caribou","carp","cat","caterpillar","catfish","catshark","cattle","centipede","cephalopod","chameleon","cheetah","chickadee","chicken","chimpanzee","chinchilla","chipmunk","cicada","clam","clownfish","cobra","cockroach","cod","condor","constrictor","coral","cougar","cow","coyote","crab","crane","crawdad","crayfish","cricket","crocodile","crow","cuckoo","damselfly","deer","dingo","dinosaur","dog","dolphin","donkey","dormouse","dove","dragon","dragonfly","duck","eagle","earthworm","earwig","echidna","eel","egret","elephant","elk","emu","ermine","falcon","felidae","ferret","finch","firefly","fish","flamingo","flea","fly","flyingfish","fowl","fox","frog","galliform","gamefowl","gayal","gazelle","gecko","gerbil","gibbon","giraffe","goat","goldfish","goose","gopher","gorilla","grasshopper","grouse","guan","guanaco","guineafowl","gull","guppy","haddock","halibut","hamster","hare","harrier","hawk","hedgehog","heron","herring","hippopotamus","hookworm","hornet","horse","hoverfly","hummingbird","hyena","iguana","impala","jackal","jaguar","jay","jellyfish","junglefowl","kangaroo","kingfisher","kite","kiwi","koala","koi","krill","ladybug","lamprey","landfowl","lark","leech","lemming","lemur","leopard","leopon","limpet","lion","lizard","llama","lobster","locust","loon","louse","lungfish","lynx","macaw","mackerel","magpie","mammal","manatee","mandrill","marlin","marmoset","marmot","marsupial","marten","mastodon","meadowlark","meerkat","mink","minnow","mite","mockingbird","mole","mollusk","mongoose","monkey","moose","mosquito","moth","mouse","mule","muskox","narwhal","newt","nightingale","ocelot","octopus","opossum","orangutan","orca","ostrich","otter","owl","ox","panda","panther","parakeet","parrot","parrotfish","partridge","peacock","peafowl","pelican","penguin","perch","pheasant","pig","pigeon","pike","pinniped","piranha","planarian","platypus","pony","porcupine","porpoise","possum","prawn","primate","ptarmigan","puffin","puma","python","quail","quelea","quokka","rabbit","raccoon","rat","rattlesnake","raven","reindeer","reptile","rhinoceros","roadrunner","rodent","rook","rooster","roundworm","sailfish","salamander","salmon","sawfish","scallop","scorpion","seahorse","shark","sheep","shrew","shrimp","silkworm","silverfish","skink","skunk","sloth","slug","smelt","snail","snake","snipe","sole","sparrow","spider","spoonbill","squid","squirrel","starfish","stingray","stoat","stork","sturgeon","swallow","swan","swift","swordfish","swordtail","tahr","takin","tapir","tarantula","tarsier","termite","tern","thrush","tick","tiger","tiglon","toad","tortoise","toucan","trout","tuna","turkey","turtle","tyrannosaurus","unicorn","urial","vicuna","viper","vole","vulture","wallaby","walrus","warbler","wasp","weasel","whale","whippet","whitefish","wildcat","wildebeest","wildfowl","wolf","wolverine","wombat","woodpecker","worm","wren","xerinae","yak","zebra"];const Qc=/^[a-z]{2,15}-[a-z]{2,15}(-[0-9]+)?$/,Jc=/^[a-z]{2,15}$/,eu=Bf.filter(t=>Jc.test(t)),tu=qf.filter(t=>Jc.test(t));function G3(){return $f({dictionaries:[eu,tu],separator:"-",style:"lowerCase",length:2})}function j3(t,e){return`${t}-${e}`}function Ff(t){const e=t.match(/^([a-z]{2,15}-[a-z]{2,15})(?:-[0-9]+)?$/);return e?e[1]:t}const il=new Set(eu),sl=new Set(tu),Hf=new Set;function V3(t){return!t||typeof t!="string"?!1:Qc.test(t)||/^[a-z]{2,15}-[a-z]{2,15}-[a-z0-9]{4}$/.test(t)?!0:/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i.test(t)}function X3(t){if(!t||typeof t!="string")return!1;if(Hf.has(t))return!0;if(Qc.test(t)){const n=Ff(t).split("-");if(n.length===2){const[a,i]=n;if(il.has(a)&&sl.has(i))return!0}}if(/^[a-z]{2,15}-[a-z]{2,15}-[a-z0-9]{4}$/.test(t)){const r=t.split("-");if(r.length===3){const[n,a]=r;if(il.has(n)&&sl.has(a))return!0}}return!1}const Uf=c1("ContextAPI");function Y3(t){return t.some(e=>e.placementStatus==="placing"||e.placementStatus==="failed")}async function ol(t,e,r){return Uf.debug("Placing attachment",{workspaceId:t,fileName:e,viaSourcePath:r.sourcePath!==void 0,keyed:r.idempotencyKey!==void 0}),await i0("file.placeAttachment",{workspaceId:t,fileName:e,...r.data!==void 0?{data:r.data}:{},...r.sourcePath!==void 0?{sourcePath:r.sourcePath}:{},...r.mimeType!==void 0&&r.mimeType!==""?{mimeType:r.mimeType}:{},...r.idempotencyKey!==void 0?{idempotencyKey:r.idempotencyKey}:{},...r.rawScreenshot!==void 0?{rawScreenshot:r.rawScreenshot}:{}})}async function Wf(t,e,r,n,a={}){return await i0("file.attachmentUpload.begin",{workspaceId:t,fileName:e,sizeBytes:r,sha256:n,...a.mimeType!==void 0&&a.mimeType!==""?{mimeType:a.mimeType}:{},...a.idempotencyKey!==void 0?{idempotencyKey:a.idempotencyKey}:{},...a.rawScreenshot!==void 0?{rawScreenshot:a.rawScreenshot}:{}})}const ru=300*1e3;async function Gf(t,e,r,n){return await i0("file.attachmentUpload.chunk",{uploadId:t,seq:e,data:r,...n!==void 0?{workspaceId:n}:{}},{timeoutMs:ru})}async function jf(t,e){return await i0("file.attachmentUpload.commit",{uploadId:t,...e!==void 0?{workspaceId:e}:{}},{timeoutMs:ru})}async function Vf(t,e){return await i0("file.attachmentUpload.abort",{uploadId:t,...e!==void 0?{workspaceId:e}:{}})}async function Xf(t){const e=typeof t=="string"?{attachmentId:t}:t.attachmentId!==void 0?{workspaceId:t.workspaceId,attachmentId:t.attachmentId}:{workspaceId:t.workspaceId,idempotencyKey:t.idempotencyKey};return await i0("file.getAttachmentInfo",e)}async function K3(t,e,r){return await Ge("file:download-attachment",{workspaceId:t,path:e,fileName:r})}const nu=25*1024*1024,ll=1024*1024*1024,Yf=16*1024*1024,au="attachment upload cancelled";function Kf(t,e){return e?.aborted===!0||t instanceof Error&&t.message===au}function En(t){if(t?.aborted)throw new Error(au)}function Zf(){return!Xu.select(E.state)}function Qf(t){return bl(t,9,13)}function iu(){return Qf(E.state?.daemonHealth?.stats?.protocolVersion)}function Z3(t){if(iu())return t??crypto.randomUUID()}function su(t){if(!t||typeof t!="object")return!1;const{rpcCode:e,code:r}=t;return e===-32602||r==="INVALID_PARAMS"}function Jf(t){return su(t)&&/already committed/i.test(String(t.message??""))}function e2(t){return{ok:!0,path:t.path,fileName:t.fileName,size:t.size,attachmentId:t.attachmentId,...t.mimeType!==void 0?{mimeType:t.mimeType}:{},uploadedAt:t.uploadedAt,replayed:!0,...t.rawScreenshot!==void 0?{rawScreenshot:t.rawScreenshot}:{}}}async function oi(t,e,r=Xf){try{return e2(await r({workspaceId:t,idempotencyKey:e}))}catch{return}}function ou(t,e,r){return e!==void 0&&!su(t)&&!Kf(t,r)}async function cl(t,e,r,n,a=()=>!0){try{return it(a),await n()}catch(i){if(it(a),ou(i,e,r)){const s=await oi(t,e);if(s)return s}throw i}}const lu="file:read returned an unexpected response",Hi="file:read failed";function Ui(t){if(!t||typeof t!="object"||!("success"in t))throw new Error(lu);if(!t.success||t.data===void 0)throw new Error(t.error?.message??Hi);return t.data}async function t2(t){const e=await Ge("file:read",{path:t,encoding:"base64",maxSize:nu,truncateIfLarge:!1}),r=Ui(e);if(r.content===void 0)throw new Error(e.error?.message??Hi);return r.content}async function cu(t,e,r){const n=await Ge("file:read-chunk",{path:t,offset:e,length:r});return Ui(n)}async function r2(t){const{size:e}=await cu(t,0,1);return e}async function n2(t){const e=await Ge("file:hash",{path:t});return Ui(e).sha256}const a2=new Set(["Internal error","Backend request failed",lu,Hi]);async function Q3(t,e,r,n,a,i=()=>!0){it(i);const s=iu()?r.idempotencyKey:void 0,o=s!==void 0?{idempotencyKey:s}:{};if(!Zf())return cl(t,s,a,()=>ol(t,e,{sourcePath:r.sourcePath,mimeType:r.mimeType,...o}),i);const c=await r2(r.sourcePath);if(it(i),c>ll)throw new Error(re.chat_attachmentPlacement_tooLargeRemote_error({name:e,maxGb:Math.round(ll/(1024*1024*1024))}));if(c>nu)return i2(t,e,{...r,idempotencyKey:s},c,n,a,i);const h=await t2(r.sourcePath);return it(i),En(a),cl(t,s,a,()=>ol(t,e,{data:h,mimeType:r.mimeType,...o}),i)}async function i2(t,e,r,n,a,i,s=()=>!0){it(s);const o=await n2(r.sourcePath);it(s),En(i);let c,h;try{({uploadId:c,maxChunkBytes:h}=await Wf(t,e,n,o,{mimeType:r.mimeType,...r.idempotencyKey!==void 0?{idempotencyKey:r.idempotencyKey}:{}}))}catch(w){if(it(s),r.idempotencyKey!==void 0&&Jf(w)){const S=await oi(t,r.idempotencyKey);if(S)return S}throw w}const m=Math.min(Yf,h),f=Math.ceil(n/m);let g=!1;try{for(let w=0;w<f;w++){it(s),En(i);const{content:S}=await cu(r.sourcePath,w*m,m);it(s),await Gf(c,w,S,t),it(s),a?.((w+1)/f)}return En(i),it(s),g=!0,await jf(c,t)}catch(w){if(it(s),g&&ou(w,r.idempotencyKey,i)){const S=await oi(t,r.idempotencyKey);if(S)return S}throw it(s),await Vf(c,t).catch(()=>{}),w}}function J3(t){if(!t||typeof t!="object")return;const e=t.data;if(e&&typeof e=="object"){const n=e.detail;if(typeof n=="string"&&n.trim().length>0)return n.trim()}const r=t.message;if(typeof r=="string"&&r.trim().length>0&&!a2.has(r.trim()))return r.trim()}function it(t){if(!t())throw new DOMException("Obsolete attachment submission","AbortError")}function uu(t){const e=t?.split(";")[0].trim().toLowerCase()??"";return e==="image/jpg"?"image/jpeg":e}function e6(t){return["image/png","image/jpeg","image/gif","image/webp"].includes(uu(t))}const s2={"image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/avif":"avif","image/bmp":"bmp","image/tiff":"tiff","image/x-icon":"ico","image/vnd.microsoft.icon":"ico","image/heic":"heic","image/heif":"heif","image/jxl":"jxl"};function t6(t,e){const r=s2[uu(t)]??"bin";return`${e}.${r}`}let o2=0;const Wi=new WeakSet;function r6(t){const e=E.dispatch,r=E.state.connections.windowBackendId,n=Na.select(E.state,t.id);if(!n||E.state.workspace.pendingDeletions[t.id])return null;const a=`operation-${++o2}`;let i=!1;const s=()=>{try{return E.dispatch===e&&E.state.connections.windowBackendId===r}catch{return!1}},o=()=>s()&&E.state.workspace.deletionTokens[t.id]===a,c=()=>s()&&lr.select(E.state)===n&&(i?o()&&E.state.workspace.invalidatedDeletions[t.id]!==a&&E.state.workspace.terminalDeletions[t.id]!==a:Na.select(E.state,t.id)===n),h={workspaceId:t.id,current:c,terminal(){return!i||!o()||lr.select(E.state)!==n||E.state.workspace.terminalDeletions[t.id]!==a?null:E.state.workspace.invalidatedDeletions[t.id]===a?"denied":"removed"},begin(m=!0){return i||!c()||E.state.workspace.pendingDeletions[t.id]?!1:(e(Du(t.id,a)),m&&e(Nu(t.id)),i=!0,c())},restore(){c()&&(e(Da(t.id,a)),e(Ru(t)))},expire(){o()&&e(Da(t.id,a))}};return Wi.add(h),h}function ul(t,e){return Wi.has(t)&&t.workspaceId===e&&t.current()}function l2(t,e){return Wi.has(t)&&t.workspaceId===e&&t.terminal()==="removed"}function n6(t){const e=E.dispatch,r=E.state.connections.windowBackendId,n=E.state.workspace.deletionTokens[t];return()=>{try{n&&E.dispatch===e&&E.state.connections.windowBackendId===r&&e(Da(t,n))}catch{}}}function Sr(t,e){const r=()=>t===void 0?Yu.select(E.state)?lr.select(E.state):null:e?Ku.select(E.state,t,e):Na.select(E.state,t),n=E.dispatch,a=r();return()=>{try{return E.dispatch===n&&a!==null&&a===r()}catch{return!1}}}const nt=()=>({ok:!1,error:re.workspace_client_accessChanged_error()}),nr=new r0("WorkspaceClient"),c2=100;function x0(t){return{...t,path:t.path?.replaceAll("\\","/"),repositoryPath:t.repositoryPath?.replaceAll("\\","/"),worktreePath:t.worktreePath?.replaceAll("\\","/")}}class u2{constructor(){ie(this,"pendingRequests",new Map);ie(this,"cache",new Map);ie(this,"CACHE_TTL",5e3);ie(this,"mutationCounter",0)}getCacheKey(e,r){return`${e}:${JSON.stringify(r||{})}`}pruneExpiredCacheEntries(e=Date.now()){for(const[r,n]of this.cache)e-n.timestamp>=this.CACHE_TTL&&this.cache.delete(r)}setCacheEntry(e,r){for(this.pruneExpiredCacheEntries(),this.cache.delete(e),this.cache.set(e,{data:r,timestamp:Date.now()});this.cache.size>c2;){const n=this.cache.keys().next().value;if(n===void 0)break;this.cache.delete(n)}}shouldCacheResponse(e){return e!==yr.LIST&&(e.includes(":get")||e.includes(":list"))}async invoke(e,r){try{const n=this.mutationCounter,a=this.getCacheKey(e,r)+(e===yr.LIST?JSON.stringify([E.state.connections.windowBackendId,lr.select(E.state)]):"");this.pruneExpiredCacheEntries();const i=this.pendingRequests.get(a);if(i)return nr.debug(`[WorkspaceClient] Reusing pending request for ${e}`),i;if(this.shouldCacheResponse(e)){const o=this.cache.get(a);if(o&&Date.now()-o.timestamp<this.CACHE_TTL)return nr.debug(`[WorkspaceClient] Using cached response for ${e}`),{ok:!0,data:o.data};o&&this.cache.delete(a)}const s=(async()=>{if(typeof window<"u"&&window.electronAPI){let o=r;if(r!==void 0)try{o=JSON.parse(JSON.stringify(r))}catch(m){if(nr.error(`[WorkspaceClient] Data serialization failed for ${e}:`,{error:m,dataKeys:r?Object.keys(r):[]}),r&&typeof r=="object")for(const[f,g]of Object.entries(r))try{JSON.stringify(g)}catch{nr.error(`[WorkspaceClient] Non-serializable field: ${f}`,{type:typeof g,constructor:g?.constructor?.name})}throw new Error(`Data serialization failed: ${m instanceof Error?m.message:"Unknown error"}`)}const c=await ys(e,o),h=this.normalizeResponse(c);return h.ok&&this.shouldCacheResponse(e)&&n===this.mutationCounter&&this.setCacheEntry(a,h.data),h}return{ok:!1,error:"IPC not available"}})();this.pendingRequests.set(a,s);try{return await s}finally{this.pendingRequests.delete(a)}}catch(n){return nr.error(`[WorkspaceClient] IPC error for ${e}:`,n),{ok:!1,error:n instanceof Error?n.message:"IPC call failed"}}}clearCache(e){if(this.mutationCounter++,e){for(const[r]of this.cache)r.includes(e)&&this.cache.delete(r);for(const[r]of this.pendingRequests)r.includes(e)&&this.pendingRequests.delete(r)}else this.cache.clear(),this.pendingRequests.clear()}normalizeResponse(e){return e==null?{ok:!1,error:"No response received"}:"ok"in e?e.ok?{ok:!0,data:e.data}:{ok:!1,error:e.error||"Unknown error"}:"success"in e?e.success?{ok:!0,data:e.data}:{ok:!1,error:e.error||"Unknown error"}:{ok:!1,error:"Invalid response format"}}async list(e){const r=await this.invoke(yr.LIST,{lite:e?.lite});return r.ok?r.data&&"workspaces"in r.data?{ok:!0,data:r.data.workspaces.map(x0)}:{ok:!0,data:r.data.map(x0),complete:!0}:r}async create(e){const r=e.initialAgent;nr.info(`[WorkspaceClient] create called: title=${e.title}, hasInitialAgent=${!!r}, specialist=${r?.specialist}, model=${r?.model}, keys=${r?Object.keys(r).join(","):"none"}`);const n=Sr();if(!n())return nt();const a=await wr.workspaces.create(e);if(!n())return nt();if(nr.info("[WorkspaceClient] create result",{success:a.success,scope:e.scope,initialAgentId:a.success?a.initialAgent?.id:void 0,error:a.success?void 0:a.error}),a.success&&a.workspace)return this.clearCache(),{ok:!0,data:{workspace:x0(a.workspace),initialAgent:a.initialAgent,...a.proposalOrigin?{proposalOrigin:a.proposalOrigin}:{}}};const i=a.error||re.workspace_client_createFailed_error();return a.errorCode?{ok:!1,error:i,errorCode:a.errorCode,...a.launchFailure?{launchFailure:a.launchFailure}:{}}:{ok:!1,error:i}}async open(e){const r=await this.invoke(yr.OPEN,{id:e});return r.ok?{ok:!0,data:x0(r.data)}:r}async update(e){const r=Sr(e.id,Object.keys(e));if(!r())return nt();const n=await wr.workspaces.update(e);return r()?n.success&&n.workspace?(this.clearCache(e.id),this.clearCache(),{ok:!0,data:x0(n.workspace)}):{ok:!1,error:n.error||re.workspace_client_updateFailed_error()}:nt()}async delete(e,r,n){const a=n?()=>ul(n,e):Sr(e);if(!a())return{...nt(),obsolete:!0};const i=await wr.workspaces.delete(e,r);return!a()&&!(n&&l2(n,e))?{...nt(),obsolete:!0}:i.success?(this.clearCache(e),this.clearCache(),i.scheduled&&i.deleteAt?{ok:!0,data:{scheduled:!0,deleteAt:i.deleteAt}}:{ok:!0,data:void 0}):{ok:!1,error:i.error||re.workspace_client_deleteFailed_error()}}async cancelDelete(e,r){const n=r?()=>ul(r,e):Sr(e);if(!n())return{...nt(),obsolete:!0};const a=await wr.workspaces.cancelDelete(e);return n()?a.success?(this.clearCache(e),this.clearCache(),{ok:!0,data:{cancelled:a.cancelled===!0}}):{ok:!1,error:a.error||re.workspace_client_cancelDeleteFailed_error()}:{...nt(),obsolete:!0}}async archive(e){const r=Sr(e);if(!r())return nt();const n=await wr.workspaces.archive(e);return r()?n.success?(this.clearCache(e),this.clearCache(),{ok:!0,data:void 0}):{ok:!1,error:n.error||re.workspace_client_archiveFailed_error()}:nt()}async unarchive(e){const r=Sr(e);if(!r())return nt();const n=await wr.workspaces.unarchive(e);return r()?n.success?(this.clearCache(e),this.clearCache(),{ok:!0,data:void 0}):{ok:!1,error:n.error||re.workspace_client_unarchiveFailed_error()}:nt()}async retire(e){const r=Sr(e);if(!r())return nt();const n=await wr.workspaces.retire(e);return r()?n.success?(this.clearCache(e),this.clearCache(),{ok:!0,data:n.workspace}):{ok:!1,error:n.error||re.workspace_ops_purgeFailed_error(),...n.errorCode?{errorCode:n.errorCode}:{}}:nt()}async invokeFresh(e,r){try{if(typeof window<"u"&&window.electronAPI){const n=await ys(e,r);return this.normalizeResponse(n)}return{ok:!1,error:"IPC not available"}}catch(n){return nr.error(`[WorkspaceClient] IPC error for ${e}:`,n),{ok:!1,error:n instanceof Error?n.message:"IPC call failed"}}}async getDiffSummary(e){return this.invokeFresh(yr.GET_DIFF_SUMMARY,{workspaceId:e})}async getGitSummary(e){return this.invokeFresh(yr.GET_GIT_SUMMARY,{workspaceId:e})}async getTasks(e){return this.invokeFresh(yr.GET_TASKS,{workspaceId:e})}}const a6=new u2;function hl(t,e){return{key:t.id,confirmedId:t.id,confirmed:t,content:t.content,imageBlocks:[...t.imageBlocks??[]],fileBlocks:[...t.fileBlocks??[]],deliveryGroups:t.deliveryGroups,contextItems:[...t.contextItems??[]],contributions:[],blocksMutations:e}}function dl(t){return!t.imageBlocks?.length&&!t.fileBlocks?.length}function hu(t,e){const r=t?.supported===!0,n=r&&(t.refreshNeeded||Lu(t)),a=e.map(x=>hl(x,n));if(!t)return{conversation:[],processing:[],queue:a};const i=new Set(we(t.seeds).flatMap(x=>hn(x,t.scope.principalId))),s=we(t.submissions).filter(x=>!i.has(x.id)),o=new Set(e.flatMap(x=>hn(x,t.scope.principalId))),c=we(t.processing).filter(x=>!hn(x,t.scope.principalId).some(C=>o.has(C))),h=s.filter(x=>x.destination==="conversation");if(!r)return{conversation:h,processing:c,queue:a};for(const x of we(t.seeds)){const C=a.findIndex(Y=>Y.confirmedId===x.id),U=hl(x,!0),K=hn(x,t.scope.principalId);U.contributions=we(t.submissions).filter(Y=>K.includes(Y.id)),C>=0?(U.confirmed=a[C].confirmed,a[C]=U):(U.confirmedId=void 0,U.confirmed=void 0,a.push(U))}const m=e.filter(x=>x.mergeEligible===!0),f=!n&&m.length===1&&m[0].author?.principalId===t.scope.principalId&&m[0].submissionIds?.length&&!m[0].recoverySources?m[0].id:void 0;let g=f?a.find(x=>x.confirmedId===f):void 0;for(const x of s.filter(C=>C.destination==="queue")){const C=g&&dl(g)&&dl(x)?g:void 0;if(C)C.content=[C.content,x.content].filter(Boolean).join(`
469
469
 
470
- `),C.imageBlocks.push(...x.imageBlocks??[]),C.fileBlocks.push(...x.fileBlocks??[]),C.contextItems.push(...x.contextItems??[]),C.contributions.push(x),C.blocksMutations=!0,g=C;else{const U={key:x.id,content:x.content,imageBlocks:[...x.imageBlocks??[]],fileBlocks:[...x.fileBlocks??[]],contextItems:[...x.contextItems??[]],contributions:[x],blocksMutations:!0};a.push(U),n||(g=U)}}const w=new Map(we(t.submissions).map((x,C)=>[x.id,C])),S=x=>Math.min(...x.contributions.map(C=>w.get(C.id)??1/0)),M=a.filter(x=>!x.confirmedId).sort((x,C)=>S(x)-S(C));let I=0;for(let x=0;x<a.length;x+=1)a[x].confirmedId||(a[x]=M[I++]);return{conversation:h,processing:c,queue:a}}function h2(t,e){return t.some(r=>r.blocksMutations&&(!r.confirmedId||e===void 0||e===r.confirmedId||!!r.confirmed?.editingMessageId&&e===r.confirmed.editingMessageId))}const jn=E.createSelector((t,e)=>{const r=t.pendingSubmissions?.byAgentId[e.agentId];if(!r||!Ou(r.scope,e)||Zu.select(t,e.workspaceId)!==e.participation||_0.select(t)?.principal.id!==e.principalId)return;const n=t.agentSessions?.byAgentId[e.agentId]?.workspaceId;return n!==void 0&&n!==e.workspaceId?void 0:r}),d2=E.createSelector((t,e)=>hu(jn.select(t,e),Nn.select(t,e.agentId,e.workspaceId))),i6=E.createSelector(t=>t.pendingSubmissions),s6=E.createSelector((t,e)=>{const r=jn.select(t,e.scope);return!!r&&(!!Te(r.operations,e.id)||!!Te(r.submissions,e.id))}),m2=E.createSelector((t,e,r)=>{const n=t.pendingSubmissions?.byAgentId[e]?.scope;return n?.workspaceId===r?d2.select(t,n):hu(void 0,Nn.select(t,e,r))}),o6=E.createSelector((t,e)=>{const r=jn.select(t,e.scope);return!!r&&Te(r.operations,e.id)?.observed===!0}),l6=E.createSelector((t,e,r,n)=>h2(m2.select(t,e,r).queue,n));function Gi(t,e,r){const n=t.pendingSubmissions?.byAgentId[e]?.scope,a=n?jn.select(t,n):void 0;return a?[...we(a.submissions),...we(a.processing),...we(a.tombstones).filter(i=>i.reason==="history"||i.reason==="processing")].some(i=>h1({metadata:i.messageMetadata}).includes(r)):!1}function p2(t,e,r,n=!1){const a=Qu.select(t,e),i=Nn.select(t,e),s=t.agentSessions?.byAgentId[e],o=ui(s?.metadata?.pendingQuestionsMessageId),c=o.kind==="set"?r.find(w=>w.id===o.messageId)??ci.select(t,e,o.messageId):void 0,h=t.chatState?.byAgentId[e]?.pendingQuestionRecovery,m=o.kind==="set"&&!c&&h?.messageId===o.messageId&&h.status==="found"&&h.questions&&h.questions.length>0?{messageId:o.messageId,questions:h.questions}:null,f=o.kind==="set"&&c&&!r.includes(c)?[c,...r]:r,g=m?n||yl(r,m.messageId)||wl(i,m.messageId)?null:m:u1(f,a,n,o.kind==="set"?o.messageId:o.kind==="cleared"?"":void 0,i);return!g||Gi(t,e,g.messageId)||kl(s?.metadata,g.messageId)?null:g}function f2(t){return t.role==="assistant"&&t.provisional!==!0&&t.isStreaming!==!0&&(t.contentBlocks??[]).some(e=>d1(e)!==null)}function c6(t,e,r){if(p2(t,e,r))return!0;const n=t.agentSessions?.byAgentId[e],a=ui(n?.metadata?.pendingQuestionsMessageId);if(a.kind!=="set"||Gi(t,e,a.messageId)||kl(n?.metadata,a.messageId)||yl(r,a.messageId))return!1;const i=Nn.select(t,e);if(wl(i,a.messageId))return!1;const s=r.find(h=>h.id===a.messageId)??ci.select(t,e,a.messageId);if(s)return!f2(s);const o=t.chatState?.byAgentId[e]?.pendingQuestionRecovery;return!(o?.messageId===a.messageId&&o.status==="found"&&!!o.questions&&o.questions.length>0)}function u6(t,e){const r=ui(t.agentSessions?.byAgentId[e]?.metadata?.pendingQuestionsMessageId);if(r.kind!=="set"||Gi(t,e,r.messageId)||ci.select(t,e,r.messageId))return null;const n=t.chatState?.byAgentId[e]?.pendingQuestionRecovery;if(n?.messageId===r.messageId){const a=n.status==="found"&&!!n.questions&&n.questions.length>0;return{messageId:r.messageId,shouldRequest:!1,loading:!a}}return{messageId:r.messageId,shouldRequest:!0,loading:!0}}const g2=E.createSelector(t=>t.permission.requests),v2=E.createSelector(t=>we(g2.select(t))),b2=E.createSelector((t,e)=>v2.select(t).filter(r=>r.sessionId===e)),h6=E.createSelector((t,e)=>b2.select(t,e).length),d6=E.createSelector(t=>{const e=lr.select(t);if(!e||!Ju.select(t,t.connections.windowBackendId))return null;const r=we(t.workspace.workspaces).filter(n=>vl.select(t,n.id)!==null).map(n=>n.id).sort();return JSON.stringify([e,r])}),m6=E.createSelector(t=>JSON.stringify(Object.values(t.agentSessions.byAgentId).flatMap(e=>{if(!e.workspaceId)return[];const r=vl.select(t,e.workspaceId);return[[e.id,e.workspaceId,r,e1.select(t,e.workspaceId)]]}).sort((e,r)=>e[0].localeCompare(r[0])))),p6=E.createSelector((t,e,r)=>{const n=t.agentMutationUi.byWorkspaceId[e],a=n?Te(n.consumers,r):void 0;return a&&!a.consumed?{...a,workspaceId:e}:void 0});function f6(t){if(!t)return!0;const e=t.trim().toLowerCase();return e==="new agent"||e==="orchestrator"||e==="assistant"||e.startsWith("thread ")||e.startsWith("workspace agent")||/^chat \d{1,2}-\d{2} (am|pm)$/i.test(e)}function g6(t){return/^agent-[a-f0-9-]{36}$/i.test(t)}const v6=E.createSelector(t=>t.uiLayout.lineWrapping),b6=E.createSelector(t=>t.uiLayout.foldUnchanged),y6=E.createSelector(t=>t.uiLayout.diffSideBySide),w6=E.createSelector(t=>t.uiLayout.diffIndicators),k6=E.createSelector(t=>t.uiLayout.sidebarWidth),x6=E.createSelector(t=>t.uiLayout.sidebarExpandedWidth),S6=E.createSelector(t=>t.uiLayout.sidebarCollapsed),A6=E.createSelector((t,e,r)=>{const n=t.uiLayout.panelVisibility.byWorkspaceId[e];return n?n[r]:Pu[r]}),T6=E.createSelector(t=>t.uiLayout.spacesSidebarWidth),E6=E.createSelector(t=>t.uiLayout.spacesSidebarCollapsed),M6=E.createSelector(t=>t.uiLayout.tabbedSidebarPinned),C6=E.createSelector(t=>t.uiLayout.sidebarSide),z6=E.createSelector((t,e)=>t.uiLayout.resizablePanelSizes[e]),I6=E.createSelector((t,e)=>t.uiLayout.hydratedResizablePanelSizes[e]===!0);E.createSelector((t,e)=>t.uiLayout.collapsiblePanelCollapsed[e]);export{F3 as $,Ff as A,J3 as B,ke as C,x4 as D,i5 as E,a5 as F,ut as G,G3 as H,Xf as I,$2 as J,R5 as K,q2 as L,nu as M,A4 as N,J2 as O,F2 as P,mf as Q,M5 as R,C5 as S,jc as T,Yf as U,d5 as V,U2 as W,H2 as X,I5 as Y,Nl as Z,U3 as _,Vf as a,b3 as a$,Y3 as a0,g5 as a1,t6 as a2,c5 as a3,l5 as a4,Ip as a5,e5 as a6,Jf as a7,z5 as a8,G2 as a9,W3 as aA,ol as aB,Q3 as aC,x1 as aD,f5 as aE,p5 as aF,hu as aG,Wm as aH,Pi as aI,h2 as aJ,M1 as aK,y5 as aL,oi as aM,v5 as aN,Dp as aO,Q2 as aP,p6 as aQ,I3 as aR,m2 as aS,R3 as aT,L5 as aU,w6 as aV,y6 as aW,Af as aX,y3 as aY,Sf as aZ,xf as a_,V2 as aa,j2 as ab,f6 as ac,T5 as ad,ks as ae,Kf as af,Zf as ag,e6 as ah,B3 as ai,V3 as aj,zp as ak,X3 as al,Z2 as am,r5 as an,n5 as ao,g6 as ap,K2 as aq,u5 as ar,D5 as as,la as at,Z3 as au,E5 as av,k5 as aw,Cc as ax,Oc as ay,h5 as az,X2 as b,k6 as b$,kf as b0,k3 as b1,m3 as b2,f3 as b3,Ef as b4,j0 as b5,Cf as b6,c3 as b7,Ot as b8,s3 as b9,S6 as bA,v6 as bB,J5 as bC,Of as bD,L3 as bE,A6 as bF,h6 as bG,jn as bH,i6 as bI,m6 as bJ,d6 as bK,v2 as bL,g2 as bM,T3 as bN,zf as bO,N3 as bP,O3 as bQ,_3 as bR,P3 as bS,S3 as bT,A3 as bU,E3 as bV,l6 as bW,z6 as bX,I6 as bY,x6 as bZ,C6 as b_,o3 as ba,G0 as bb,u3 as bc,Tf as bd,x3 as be,Yc as bf,p3 as bg,yf as bh,bf as bi,n3 as bj,v3 as bk,w3 as bl,Mf as bm,wf as bn,h3 as bo,l3 as bp,g3 as bq,a3 as br,Xc as bs,r3 as bt,D3 as bu,Lf as bv,i3 as bw,d3 as bx,t3 as by,b6 as bz,j3 as c,E6 as c0,T6 as c1,s6 as c2,o6 as c3,M6 as c4,Rt as c5,K5 as c6,Z5 as c7,Q5 as c8,G5 as c9,hf as cA,t5 as cB,hi as cC,m5 as cD,o5 as cE,Bi as cF,a6 as cG,Fo as cH,x5 as cI,w5 as cJ,yt as cK,V5 as ca,_5 as cb,$5 as cc,F5 as cd,H5 as ce,Y5 as cf,e3 as cg,vf as ch,N5 as ci,P5 as cj,W5 as ck,O5 as cl,X5 as cm,q5 as cn,B5 as co,j5 as cp,U5 as cq,M3 as cr,Df as cs,z3 as ct,C3 as cu,Gf as cv,ou as cw,b5 as cx,Ih as cy,_2 as cz,it as d,Wf as e,$3 as f,S5 as g,W2 as h,H3 as i,uu as j,n6 as k,r6 as l,A5 as m,jf as n,Y2 as o,B2 as p,jm as q,Pc as r,oa as s,B4 as t,c6 as u,u6 as v,p2 as w,K3 as x,q3 as y,J4 as z};
470
+ `),C.imageBlocks.push(...x.imageBlocks??[]),C.fileBlocks.push(...x.fileBlocks??[]),C.contextItems.push(...x.contextItems??[]),C.contributions.push(x),C.blocksMutations=!0,g=C;else{const U={key:x.id,content:x.content,imageBlocks:[...x.imageBlocks??[]],fileBlocks:[...x.fileBlocks??[]],contextItems:[...x.contextItems??[]],contributions:[x],blocksMutations:!0};a.push(U),n||(g=U)}}const w=new Map(we(t.submissions).map((x,C)=>[x.id,C])),S=x=>Math.min(...x.contributions.map(C=>w.get(C.id)??1/0)),M=a.filter(x=>!x.confirmedId).sort((x,C)=>S(x)-S(C));let I=0;for(let x=0;x<a.length;x+=1)a[x].confirmedId||(a[x]=M[I++]);return{conversation:h,processing:c,queue:a}}function h2(t,e){return t.some(r=>r.blocksMutations&&(!r.confirmedId||e===void 0||e===r.confirmedId||!!r.confirmed?.editingMessageId&&e===r.confirmed.editingMessageId))}const jn=E.createSelector((t,e)=>{const r=t.pendingSubmissions?.byAgentId[e.agentId];if(!r||!Ou(r.scope,e)||Zu.select(t,e.workspaceId)!==e.participation||_0.select(t)?.principal.id!==e.principalId)return;const n=t.agentSessions?.byAgentId[e.agentId]?.workspaceId;return n!==void 0&&n!==e.workspaceId?void 0:r}),d2=E.createSelector((t,e)=>hu(jn.select(t,e),Nn.select(t,e.agentId,e.workspaceId))),i6=E.createSelector(t=>t.pendingSubmissions),s6=E.createSelector((t,e)=>{const r=jn.select(t,e.scope);return!!r&&(!!Te(r.operations,e.id)||!!Te(r.submissions,e.id))}),m2=E.createSelector((t,e,r)=>{const n=t.pendingSubmissions?.byAgentId[e]?.scope;return n?.workspaceId===r?d2.select(t,n):hu(void 0,Nn.select(t,e,r))}),o6=E.createSelector((t,e)=>{const r=jn.select(t,e.scope);return!!r&&Te(r.operations,e.id)?.observed===!0}),l6=E.createSelector((t,e,r,n)=>h2(m2.select(t,e,r).queue,n));function Gi(t,e,r){const n=t.pendingSubmissions?.byAgentId[e]?.scope,a=n?jn.select(t,n):void 0;return a?[...we(a.submissions),...we(a.processing),...we(a.tombstones).filter(i=>i.reason==="history"||i.reason==="processing")].some(i=>h1({metadata:i.messageMetadata}).includes(r)):!1}function p2(t,e,r,n=!1){const a=Qu.select(t,e),i=Nn.select(t,e),s=t.agentSessions?.byAgentId[e],o=ui(s?.metadata?.pendingQuestionsMessageId),c=o.kind==="set"?r.find(w=>w.id===o.messageId)??ci.select(t,e,o.messageId):void 0,h=t.chatState?.byAgentId[e]?.pendingQuestionRecovery,m=o.kind==="set"&&!c&&h?.messageId===o.messageId&&h.status==="found"&&h.questions&&h.questions.length>0?{messageId:o.messageId,questions:h.questions}:null,f=o.kind==="set"&&c&&!r.includes(c)?[c,...r]:r,g=m?n||yl(r,m.messageId)||wl(i,m.messageId)?null:m:u1(f,a,n,o.kind==="set"?o.messageId:o.kind==="cleared"?"":void 0,i);return!g||Gi(t,e,g.messageId)||kl(s?.metadata,g.messageId)?null:g}function f2(t){return t.role==="assistant"&&t.provisional!==!0&&t.isStreaming!==!0&&(t.contentBlocks??[]).some(e=>d1(e)!==null)}function c6(t,e,r){if(p2(t,e,r))return!0;const n=t.agentSessions?.byAgentId[e],a=ui(n?.metadata?.pendingQuestionsMessageId);if(a.kind!=="set"||Gi(t,e,a.messageId)||kl(n?.metadata,a.messageId)||yl(r,a.messageId))return!1;const i=Nn.select(t,e);if(wl(i,a.messageId))return!1;const s=r.find(h=>h.id===a.messageId)??ci.select(t,e,a.messageId);if(s)return!f2(s);const o=t.chatState?.byAgentId[e]?.pendingQuestionRecovery;return!(o?.messageId===a.messageId&&o.status==="found"&&!!o.questions&&o.questions.length>0)}function u6(t,e){const r=ui(t.agentSessions?.byAgentId[e]?.metadata?.pendingQuestionsMessageId);if(r.kind!=="set"||Gi(t,e,r.messageId)||ci.select(t,e,r.messageId))return null;const n=t.chatState?.byAgentId[e]?.pendingQuestionRecovery;if(n?.messageId===r.messageId){const a=n.status==="found"&&!!n.questions&&n.questions.length>0;return{messageId:r.messageId,shouldRequest:!1,loading:!a}}return{messageId:r.messageId,shouldRequest:!0,loading:!0}}const g2=E.createSelector(t=>t.permission.requests),v2=E.createSelector(t=>we(g2.select(t))),b2=E.createSelector((t,e)=>v2.select(t).filter(r=>r.sessionId===e)),h6=E.createSelector((t,e)=>b2.select(t,e).length),d6=E.createSelector(t=>{const e=lr.select(t);if(!e||!Ju.select(t,t.connections.windowBackendId))return null;const r=we(t.workspace.workspaces).filter(n=>vl.select(t,n.id)!==null).map(n=>n.id).sort();return JSON.stringify([e,r])}),m6=E.createSelector(t=>JSON.stringify(Object.values(t.agentSessions.byAgentId).flatMap(e=>{if(!e.workspaceId)return[];const r=vl.select(t,e.workspaceId);return[[e.id,e.workspaceId,r,e1.select(t,e.workspaceId)]]}).sort((e,r)=>e[0].localeCompare(r[0])))),p6=E.createSelector((t,e,r)=>{const n=t.agentMutationUi.byWorkspaceId[e],a=n?Te(n.consumers,r):void 0;return a&&!a.consumed?{...a,workspaceId:e}:void 0});function f6(t){if(!t)return!0;const e=t.trim().toLowerCase();return e==="new agent"||e==="orchestrator"||e==="assistant"||e.startsWith("thread ")||e.startsWith("workspace agent")||/^chat \d{1,2}-\d{2} (am|pm)$/i.test(e)}function g6(t){return/^agent-[a-f0-9-]{36}$/i.test(t)}const v6=E.createSelector(t=>t.uiLayout.lineWrapping),b6=E.createSelector(t=>t.uiLayout.foldUnchanged),y6=E.createSelector(t=>t.uiLayout.diffSideBySide),w6=E.createSelector(t=>t.uiLayout.diffIndicators),k6=E.createSelector(t=>t.uiLayout.sidebarWidth),x6=E.createSelector(t=>t.uiLayout.sidebarExpandedWidth),S6=E.createSelector(t=>t.uiLayout.sidebarCollapsed),A6=E.createSelector((t,e,r)=>{const n=t.uiLayout.panelVisibility.byWorkspaceId[e];return n?n[r]:Pu[r]}),T6=E.createSelector(t=>t.uiLayout.spacesSidebarWidth),E6=E.createSelector(t=>t.uiLayout.spacesSidebarCollapsed),M6=E.createSelector(t=>t.uiLayout.tabbedSidebarPinned),C6=E.createSelector(t=>t.uiLayout.sidebarSide),z6=E.createSelector((t,e)=>t.uiLayout.resizablePanelSizes[e]),I6=E.createSelector((t,e)=>t.uiLayout.hydratedResizablePanelSizes[e]===!0);E.createSelector((t,e)=>t.uiLayout.collapsiblePanelCollapsed[e]);export{F3 as $,Ff as A,J3 as B,ke as C,x4 as D,i5 as E,a5 as F,ut as G,G3 as H,Xf as I,$2 as J,R5 as K,q2 as L,nu as M,A4 as N,J2 as O,F2 as P,mf as Q,M5 as R,C5 as S,jc as T,Yf as U,d5 as V,U2 as W,H2 as X,I5 as Y,Nl as Z,U3 as _,Vf as a,xf as a$,Y3 as a0,g5 as a1,t6 as a2,c5 as a3,l5 as a4,Ip as a5,e5 as a6,Jf as a7,z5 as a8,G2 as a9,W3 as aA,ol as aB,Q3 as aC,x1 as aD,f5 as aE,p5 as aF,hu as aG,Wm as aH,Pi as aI,h2 as aJ,M1 as aK,y5 as aL,oi as aM,v5 as aN,Dp as aO,I0 as aP,Q2 as aQ,p6 as aR,I3 as aS,m2 as aT,R3 as aU,L5 as aV,w6 as aW,y6 as aX,Af as aY,y3 as aZ,Sf as a_,V2 as aa,j2 as ab,f6 as ac,T5 as ad,ks as ae,Kf as af,Zf as ag,e6 as ah,B3 as ai,V3 as aj,zp as ak,X3 as al,Z2 as am,r5 as an,n5 as ao,g6 as ap,K2 as aq,u5 as ar,D5 as as,la as at,Z3 as au,E5 as av,k5 as aw,Cc as ax,Oc as ay,h5 as az,X2 as b,C6 as b$,b3 as b0,kf as b1,k3 as b2,m3 as b3,f3 as b4,Ef as b5,j0 as b6,Cf as b7,c3 as b8,Ot as b9,b6 as bA,S6 as bB,v6 as bC,J5 as bD,Of as bE,L3 as bF,A6 as bG,h6 as bH,jn as bI,i6 as bJ,m6 as bK,d6 as bL,v2 as bM,g2 as bN,T3 as bO,zf as bP,N3 as bQ,O3 as bR,_3 as bS,P3 as bT,S3 as bU,A3 as bV,E3 as bW,l6 as bX,z6 as bY,I6 as bZ,x6 as b_,s3 as ba,o3 as bb,G0 as bc,u3 as bd,Tf as be,x3 as bf,Yc as bg,p3 as bh,yf as bi,bf as bj,n3 as bk,v3 as bl,w3 as bm,Mf as bn,wf as bo,h3 as bp,l3 as bq,g3 as br,a3 as bs,Xc as bt,r3 as bu,D3 as bv,Lf as bw,i3 as bx,d3 as by,t3 as bz,j3 as c,k6 as c0,E6 as c1,T6 as c2,s6 as c3,o6 as c4,M6 as c5,Rt as c6,K5 as c7,Z5 as c8,Q5 as c9,_2 as cA,hf as cB,t5 as cC,hi as cD,m5 as cE,o5 as cF,Bi as cG,a6 as cH,Fo as cI,x5 as cJ,w5 as cK,yt as cL,G5 as ca,V5 as cb,_5 as cc,$5 as cd,F5 as ce,H5 as cf,Y5 as cg,e3 as ch,vf as ci,N5 as cj,P5 as ck,W5 as cl,O5 as cm,X5 as cn,q5 as co,B5 as cp,j5 as cq,U5 as cr,M3 as cs,Df as ct,z3 as cu,C3 as cv,Gf as cw,ou as cx,b5 as cy,Ih as cz,it as d,Wf as e,$3 as f,S5 as g,W2 as h,H3 as i,uu as j,n6 as k,r6 as l,A5 as m,jf as n,Y2 as o,B2 as p,jm as q,Pc as r,oa as s,B4 as t,c6 as u,u6 as v,p2 as w,K3 as x,q3 as y,J4 as z};
@@ -1 +1 @@
1
- import{f as a,c3 as o}from"./DikRK37J.js";var g=a((t,e)=>{let n;return e==="sandbox"&&(n=o("#i"+t)),(e==="sandbox"?o(n.nodes()[0].contentDocument.body):o("body")).select(`[id="${t}"]`)},"getDiagramElement");export{g};
1
+ import{f as a,c3 as o}from"./-EQ6B0ad.js";var g=a((t,e)=>{let n;return e==="sandbox"&&(n=o("#i"+t)),(e==="sandbox"?o(n.nodes()[0].contentDocument.body):o("body")).select(`[id="${t}"]`)},"getDiagramElement");export{g};
@@ -0,0 +1 @@
1
+ import{d as a,C as n}from"./-EQ6B0ad.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
@@ -1 +1 @@
1
- import{t as I,bq as s,a_ as O,by as z,br as P,b as N,bu as M,bs as Q}from"./DEI12D8u.js";import{aG as V,bs as A,c5 as p,aD as x,a5 as R,bS as X,bf as B,bA as W,W as S,bn as E,c9 as H,aA as n,aB as G,ca as T,a7 as Z,ay as $}from"./B8o4lNgr.js";import{s as q}from"./BAR22MDD.js";import{c as L,f as w}from"./KLMKvNSD.js";import{b as U}from"./D2g8BuR1.js";import{u as ee,c as D,s as te,b as re,a as ae}from"./D2AmAQEr.js";import{C as se}from"./B5Kd4cOY.js";import{G2 as ne,qY as oe,bb as ie}from"./X8KOCQId.js";import{aU as de}from"./JWpKjkZt.js";import{m as ce}from"./DY0zw3Os.js";import{bs as le}from"./DpSTAF6f.js";import{M as ue}from"./C8gv124k.js";const fe=Symbol("card-group"),ve=()=>V(fe);var me=new Set(["$$slots","$$events","$$legacy","ref","class","inert","interactive","level","border","selected","media","children"]),be=G('<div data-slot="card-media" class="shrink-0 p-4"><!></div>'),ge=G("<div><!> <!></div>");function he(o,e){if(new.target)return I({component:he,...o});A(e,!0);let i=s(e,"ref",15,null),c=s(e,"class",7),a=s(e,"inert",7,!1),u=s(e,"interactive",7,!1),v=s(e,"level",7),f=s(e,"border",7),l=s(e,"selected",7,!1),b=s(e,"media",7),r=s(e,"children",7),g=P(e,me);const m=ve(),k=H(()=>f()==="outlined"||f()===void 0&&(!m||m.border==="outlined"&&m.separated)),y=ee(),d=D(p(()=>v()??y+1));te(d);const C=D(d+1);var Y={get ref(){return i()},set ref(t=null){i(t),n()},get class(){return c()},set class(t){c(t),n()},get inert(){return a()},set inert(t=!1){a(t),n()},get interactive(){return u()},set interactive(t=!1){u(t),n()},get level(){return v()},set level(t){v(t),n()},get border(){return f()},set border(t){f(t),n()},get selected(){return l()},set selected(t=!1){l(t),n()},get media(){return b()},set media(t){b(t),n()},get children(){return r()},set children(t){r(t),n()},$set:z,$on:(t,_)=>N(e,t,_)},h=ge();L(h,t=>({"data-slot":"card","data-selected":l()||void 0,"data-orientation":m?.orientation,"data-surface-level":d,"data-inert":a()||void 0,"data-interactive":u()||void 0,inert:a(),class:t,...g}),[()=>w("flex min-w-0 flex-col overflow-hidden rounded-md text-card-foreground",x(k)?m?"border border-border bg-transparent":ae(d):"bg-transparent",l()&&"bg-selected",m?.orientation==="inline"&&"flex-row items-center [&>[data-slot=card-header]]:min-w-0 [&>[data-slot=card-header]]:flex-1",m&&"relative",u()?w("cursor-pointer transition-[background-color,box-shadow] duration-(--motion-fast) ease-(--ease-standard)","focus-visible:outline focus-visible:-outline-offset-1","active:bg-active data-[state=pressed]:bg-active motion-reduce:transition-none",re(C)):"",c())]);var K=R(h);{var j=t=>{var _=be(),J=R(_);q(J,b),W(_),S(t,_)};O(K,t=>{b()&&t(j)})}var F=X(K,2);return q(F,()=>r()??B),W(h),U(h,t=>i(t),()=>i()),S(o,h),E(Y)}var _e=new Set(["$$slots","$$events","$$legacy","ref","class","flush","children"]),pe=G("<div><!></div>");function Se(o,e){if(new.target)return I({component:Se,...o});A(e,!0);let i=s(e,"ref",15,null),c=s(e,"class",7),a=s(e,"flush",7,!1),u=s(e,"children",7),v=P(e,_e);var f={get ref(){return i()},set ref(r=null){i(r),n()},get class(){return c()},set class(r){c(r),n()},get flush(){return a()},set flush(r=!1){a(r),n()},get children(){return u()},set children(r){u(r),n()},$set:z,$on:(r,g)=>N(e,r,g)},l=pe();L(l,r=>({"data-slot":"card-content","data-flush":a()||void 0,class:r,...v}),[()=>w("type-body min-w-0",a()?"p-0":w(se,"py-4 first:pt-4"),c())]);var b=R(l);return q(b,()=>u()??B),W(l),U(l,r=>i(r),()=>i()),S(o,l),E(f)}function Ge(o){const e=()=>ne.dispatch(oe({quiet:o.quiet}));T(()=>{o.key?.(),o.active()&&p(e)});const i=H(()=>o.workspaces().some(a=>a.status===ie.Retired));let c=p(()=>x(i));T(()=>{const a=x(i);p(()=>{c&&!a&&o.active()&&e(),c=a})})}function we(o,e){if(new.target)return I({component:we,...o});A(e,!0);const i=()=>M(l,"$connected$",a),c=()=>M(b,"$slot$",a),[a,u]=Q();let v=s(e,"workspaceId",7),f=s(e,"size",7,"default");const l=ce(),b=le(de(()=>v()));var r={get workspaceId(){return v()},set workspaceId(d){v(d),n()},get size(){return f()},set size(d="default"){f(d),n()},$set:z,$on:(d,C)=>N(e,d,C)},g=Z(),m=$(g);{var k=d=>{ue(d,{get slot(){return c()},get size(){return f()}})};O(m,d=>{i()&&c()!==null&&d(k)})}S(o,g);var y=E(r);return u(),y}export{he as C,we as W,Se as a,Ge as r};
1
+ import{t as I,bq as s,a_ as O,by as z,br as P,b as N,bu as M,bs as Q}from"./DEI12D8u.js";import{aG as V,bs as A,c5 as p,aD as x,a5 as R,bS as X,bf as B,bA as W,W as S,bn as E,c9 as H,aA as n,aB as G,ca as T,a7 as Z,ay as $}from"./B8o4lNgr.js";import{s as q}from"./BAR22MDD.js";import{c as L,f as w}from"./KLMKvNSD.js";import{b as U}from"./D2g8BuR1.js";import{u as ee,c as D,s as te,b as re,a as ae}from"./D2AmAQEr.js";import{C as se}from"./MivJSmtA.js";import{G2 as ne,qY as oe,bb as ie}from"./X8KOCQId.js";import{aU as de}from"./D5Yn3bZC.js";import{m as ce}from"./DY0zw3Os.js";import{bs as le}from"./BplvCBzc.js";import{M as ue}from"./oEdBdTuH.js";const fe=Symbol("card-group"),ve=()=>V(fe);var me=new Set(["$$slots","$$events","$$legacy","ref","class","inert","interactive","level","border","selected","media","children"]),be=G('<div data-slot="card-media" class="shrink-0 p-4"><!></div>'),ge=G("<div><!> <!></div>");function he(o,e){if(new.target)return I({component:he,...o});A(e,!0);let i=s(e,"ref",15,null),c=s(e,"class",7),a=s(e,"inert",7,!1),u=s(e,"interactive",7,!1),v=s(e,"level",7),f=s(e,"border",7),l=s(e,"selected",7,!1),b=s(e,"media",7),r=s(e,"children",7),g=P(e,me);const m=ve(),k=H(()=>f()==="outlined"||f()===void 0&&(!m||m.border==="outlined"&&m.separated)),y=ee(),d=D(p(()=>v()??y+1));te(d);const C=D(d+1);var Y={get ref(){return i()},set ref(t=null){i(t),n()},get class(){return c()},set class(t){c(t),n()},get inert(){return a()},set inert(t=!1){a(t),n()},get interactive(){return u()},set interactive(t=!1){u(t),n()},get level(){return v()},set level(t){v(t),n()},get border(){return f()},set border(t){f(t),n()},get selected(){return l()},set selected(t=!1){l(t),n()},get media(){return b()},set media(t){b(t),n()},get children(){return r()},set children(t){r(t),n()},$set:z,$on:(t,_)=>N(e,t,_)},h=ge();L(h,t=>({"data-slot":"card","data-selected":l()||void 0,"data-orientation":m?.orientation,"data-surface-level":d,"data-inert":a()||void 0,"data-interactive":u()||void 0,inert:a(),class:t,...g}),[()=>w("flex min-w-0 flex-col overflow-hidden rounded-md text-card-foreground",x(k)?m?"border border-border bg-transparent":ae(d):"bg-transparent",l()&&"bg-selected",m?.orientation==="inline"&&"flex-row items-center [&>[data-slot=card-header]]:min-w-0 [&>[data-slot=card-header]]:flex-1",m&&"relative",u()?w("cursor-pointer transition-[background-color,box-shadow] duration-(--motion-fast) ease-(--ease-standard)","focus-visible:outline focus-visible:-outline-offset-1","active:bg-active data-[state=pressed]:bg-active motion-reduce:transition-none",re(C)):"",c())]);var K=R(h);{var j=t=>{var _=be(),J=R(_);q(J,b),W(_),S(t,_)};O(K,t=>{b()&&t(j)})}var F=X(K,2);return q(F,()=>r()??B),W(h),U(h,t=>i(t),()=>i()),S(o,h),E(Y)}var _e=new Set(["$$slots","$$events","$$legacy","ref","class","flush","children"]),pe=G("<div><!></div>");function Se(o,e){if(new.target)return I({component:Se,...o});A(e,!0);let i=s(e,"ref",15,null),c=s(e,"class",7),a=s(e,"flush",7,!1),u=s(e,"children",7),v=P(e,_e);var f={get ref(){return i()},set ref(r=null){i(r),n()},get class(){return c()},set class(r){c(r),n()},get flush(){return a()},set flush(r=!1){a(r),n()},get children(){return u()},set children(r){u(r),n()},$set:z,$on:(r,g)=>N(e,r,g)},l=pe();L(l,r=>({"data-slot":"card-content","data-flush":a()||void 0,class:r,...v}),[()=>w("type-body min-w-0",a()?"p-0":w(se,"py-4 first:pt-4"),c())]);var b=R(l);return q(b,()=>u()??B),W(l),U(l,r=>i(r),()=>i()),S(o,l),E(f)}function Ge(o){const e=()=>ne.dispatch(oe({quiet:o.quiet}));T(()=>{o.key?.(),o.active()&&p(e)});const i=H(()=>o.workspaces().some(a=>a.status===ie.Retired));let c=p(()=>x(i));T(()=>{const a=x(i);p(()=>{c&&!a&&o.active()&&e(),c=a})})}function we(o,e){if(new.target)return I({component:we,...o});A(e,!0);const i=()=>M(l,"$connected$",a),c=()=>M(b,"$slot$",a),[a,u]=Q();let v=s(e,"workspaceId",7),f=s(e,"size",7,"default");const l=ce(),b=le(de(()=>v()));var r={get workspaceId(){return v()},set workspaceId(d){v(d),n()},get size(){return f()},set size(d="default"){f(d),n()},$set:z,$on:(d,C)=>N(e,d,C)},g=Z(),m=$(g);{var k=d=>{ue(d,{get slot(){return c()},get size(){return f()}})};O(m,d=>{i()&&c()!==null&&d(k)})}S(o,g);var y=E(r);return u(),y}export{he as C,we as W,Se as a,Ge as r};
@@ -1 +1 @@
1
- import{i as r}from"./BKUFkB2Z.js";import{v as a,I as e}from"./OtBI4VRo.js";import{G2 as s}from"./X8KOCQId.js";import{c as t}from"./BsHwyYum.js";function C(o,i){return t(s,o,{navigate:i,...a("windowChrome")?{closeWindow:()=>r(e.WINDOW.CLOSE)}:{}})}export{C as closeActiveTab};
1
+ import{i as r}from"./BKUFkB2Z.js";import{v as a,I as e}from"./OtBI4VRo.js";import{G2 as s}from"./X8KOCQId.js";import{c as t}from"./CVXsWkbg.js";function C(o,i){return t(s,o,{navigate:i,...a("windowChrome")?{closeWindow:()=>r(e.WINDOW.CLOSE)}:{}})}export{C as closeActiveTab};
@@ -1,4 +1,4 @@
1
- import{I as le}from"./UFs8wmaf.js";import{p as he}from"./B-fzbhlo.js";import{aP as $e,c9 as fe,c6 as ge,aK as ue,aL as ye,c7 as xe,f as h,aN as J,bC as w,c3 as me,aO as q,cx as pe,ce as be,a0 as we,a4 as B,$ as ke,ax as ve,bV as Ce}from"./DikRK37J.js";import{p as Ee}from"./bG4sEGuX.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Be=ve.gitGraph,S=h(()=>ke({...Be,...J().gitGraph}),"getConfig"),d=new le(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function Y(){return Ce({length:7})}h(Y,"getID");function te(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}h(te,"uniqBy");var Te=h(function(e){d.records.direction=e},"setDirection"),Le=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Me=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+Y(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Ie=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ae(r),w.debug("in createBranch")},"branch"),Oe=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${Y()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),_e=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+Y(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ae=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function V(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}h(V,"upsert");function Q(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);V(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);V(e,r,o)}}e=te(e,o=>o.id),Q(e)}h(Q,"prettyPrintCommitHistory");var Ge=h(function(){w.debug(d.records.commits);const e=ne()[0];Q([e])},"prettyPrint"),He=h(function(){d.reset(),we()},"clear"),Se=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ae=h(function(){return d.records.branches},"getBranches"),De=h(function(){return d.records.commits},"getCommits"),ne=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),Pe=h(function(){return d.records.currBranch},"getCurrentBranch"),We=h(function(){return d.records.direction},"getDirection"),qe=h(function(){return d.records.head},"getHead"),se={commitType:m,getConfig:S,setDirection:Te,setOptions:Le,getOptions:Me,commit:Re,branch:Ie,merge:Oe,cherryPick:_e,checkout:ae,prettyPrint:Ge,clear:He,getBranchesAsObjArray:Se,getBranches:Ae,getCommits:De,getCommitsArray:ne,getCurrentBranch:Pe,getDirection:We,getHead:qe,setAccTitle:xe,getAccTitle:ye,getAccDescription:ue,setAccDescription:ge,setDiagramTitle:fe,getDiagramTitle:$e},Ne=h((e,r)=>{he(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Fe(t,r)},"populate"),Fe=h((e,r)=>{const s={Commit:h(o=>r.commit(ze(o)),"Commit"),Branch:h(o=>r.branch(Ye(o)),"Branch"),Merge:h(o=>r.merge(je(o)),"Merge"),Checkout:h(o=>r.checkout(Ke(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ue(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ke=h(e=>e.branch,"parseCheckout"),Ue=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:h(async e=>{const r=await Ee("gitGraph",e);w.debug(r),Ne(r,se)},"parse")},O=10,_=40,L=4,R=2,G=8,j=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Z=new Set(["redux-color","redux-dark-color"]),Xe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,F=30,P=new Map,z=[],I=0,y="LR",Je=h(()=>{C.clear(),E.clear(),P.clear(),I=0,z=[],y="LR"},"clear"),oe=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ce=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Qe=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),Ze=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=rr(a),o=Math.max(s,o)):i.push(a),tr(a,s)}),s=o,i.forEach(n=>{ar(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Qe(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),er=h(e=>{const r=ce(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),rr=h(e=>er(e)+_,"calculateCommitPosition"),tr=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),ar=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),nr=h((e,r,t,s,o,i)=>{const{theme:n}=q(),a=j.has(n??""),l=Z.has(n??""),f=Xe.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),sr=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-R).attr("y",t.y+13.5).attr("width",l.width+2*R).attr("height",l.height+2*R),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),or=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
1
+ import{I as le}from"./BMt7MpM8.js";import{p as he}from"./ED1Md46o.js";import{aP as $e,c9 as fe,c6 as ge,aK as ue,aL as ye,c7 as xe,f as h,aN as J,bC as w,c3 as me,aO as q,cx as pe,ce as be,a0 as we,a4 as B,$ as ke,ax as ve,bV as Ce}from"./-EQ6B0ad.js";import{p as Ee}from"./bG4sEGuX.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Be=ve.gitGraph,S=h(()=>ke({...Be,...J().gitGraph}),"getConfig"),d=new le(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function Y(){return Ce({length:7})}h(Y,"getID");function te(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}h(te,"uniqBy");var Te=h(function(e){d.records.direction=e},"setDirection"),Le=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Me=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+Y(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Ie=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ae(r),w.debug("in createBranch")},"branch"),Oe=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${Y()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),_e=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+Y(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ae=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function V(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}h(V,"upsert");function Q(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);V(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);V(e,r,o)}}e=te(e,o=>o.id),Q(e)}h(Q,"prettyPrintCommitHistory");var Ge=h(function(){w.debug(d.records.commits);const e=ne()[0];Q([e])},"prettyPrint"),He=h(function(){d.reset(),we()},"clear"),Se=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ae=h(function(){return d.records.branches},"getBranches"),De=h(function(){return d.records.commits},"getCommits"),ne=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),Pe=h(function(){return d.records.currBranch},"getCurrentBranch"),We=h(function(){return d.records.direction},"getDirection"),qe=h(function(){return d.records.head},"getHead"),se={commitType:m,getConfig:S,setDirection:Te,setOptions:Le,getOptions:Me,commit:Re,branch:Ie,merge:Oe,cherryPick:_e,checkout:ae,prettyPrint:Ge,clear:He,getBranchesAsObjArray:Se,getBranches:Ae,getCommits:De,getCommitsArray:ne,getCurrentBranch:Pe,getDirection:We,getHead:qe,setAccTitle:xe,getAccTitle:ye,getAccDescription:ue,setAccDescription:ge,setDiagramTitle:fe,getDiagramTitle:$e},Ne=h((e,r)=>{he(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Fe(t,r)},"populate"),Fe=h((e,r)=>{const s={Commit:h(o=>r.commit(ze(o)),"Commit"),Branch:h(o=>r.branch(Ye(o)),"Branch"),Merge:h(o=>r.merge(je(o)),"Merge"),Checkout:h(o=>r.checkout(Ke(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ue(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ke=h(e=>e.branch,"parseCheckout"),Ue=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:h(async e=>{const r=await Ee("gitGraph",e);w.debug(r),Ne(r,se)},"parse")},O=10,_=40,L=4,R=2,G=8,j=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Z=new Set(["redux-color","redux-dark-color"]),Xe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,F=30,P=new Map,z=[],I=0,y="LR",Je=h(()=>{C.clear(),E.clear(),P.clear(),I=0,z=[],y="LR"},"clear"),oe=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ce=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Qe=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),Ze=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=rr(a),o=Math.max(s,o)):i.push(a),tr(a,s)}),s=o,i.forEach(n=>{ar(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Qe(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),er=h(e=>{const r=ce(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),rr=h(e=>er(e)+_,"calculateCommitPosition"),tr=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),ar=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),nr=h((e,r,t,s,o,i)=>{const{theme:n}=q(),a=j.has(n??""),l=Z.has(n??""),f=Xe.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),sr=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-R).attr("y",t.y+13.5).attr("width",l.width+2*R).attr("height",l.height+2*R),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),or=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
2
2
  ${s-i/2-L/2},${x+R}
3
3
  ${s-i/2-L/2},${x-R}
4
4
  ${t.posWithOffset-i/2-L},${x-c-R}
@@ -1,4 +1,4 @@
1
- import{FQ as U,G2 as n,qj as we,mv as g,z0 as Ae,vW as Q,mu as v,pb as ke,yY as _e,g as Y,pV as V,yZ as G,c as Re,mh as z,A as Oe}from"./X8KOCQId.js";import{k as Le}from"./DVkfuwKw.js";import{l as Te,s as Ne}from"./N_3EVFPG.js";import{b_ as w,cA as Be,c7 as y,bX as M,cr as C,cI as J,cH as xe,cz as De,bY as He,bs as Fe,l as We,F as je,dK as qe,dv as X,av as Ke,ci as $e}from"./CE-1ma0H.js";import{P as Ue,d as Qe}from"./BTxRR5tz.js";import{bo as h}from"./DEI12D8u.js";import{t as Ye}from"./BycWLeDe.js";import{p as Ve}from"./KLMKvNSD.js";import{p as Ge}from"./CiJsLr2J.js";function ze(e,t,o){if(!e||!o?.length)return null;const r=new Set(o);if(t!==null&&!r.has(t))return null;const s=e.lastIndexOf("/"),c=s>=0?e.slice(s+1):"",a=r.has(c)?e.slice(0,s):e;return t===null?a:`${a}/${t}`}const Je={major:5,minor:2};function Xe(e){const{major:t,minor:o}=Je;return Le(e,t,o)}function _(e,t,o){const r=U(e);return r.providerId&&o(r.providerId)===t?r.modelId:e}function k(e,t){const o=t(e);if(o)return o;const r=/\/(minimal|low|medium|high|xhigh|max|ultra|none)$/i.exec(e);if(!r||r.index===0)return;const s=t(e.slice(0,r.index)),c=r[1].toLowerCase();return s?`${s} (${c.charAt(0).toUpperCase()}${c.slice(1)})`:void 0}function Ze(e,t){return JSON.stringify([t||null,e])}const et=n.createSelector((e,t)=>(t?e.providerModels?.byWorkspaceId?.[t]:e.providerModels?.byProviderId)??{}),ao=n.createSelector((e,t,o)=>et.select(e,o)[t]),io=n.createSelector(e=>e.providerModels?.clearEpoch??0),lo=n.createSelector((e,t)=>(t?e.providerModels?.requestsByWorkspaceId?.[t]?.map:e.providerModels?.requests?.map)??{}),tt=n.createSelector(e=>Object.fromEntries(Object.values(e.providerModels?.observers?.map??{}).flatMap(({providerIds:t,workspaceId:o})=>t.map(r=>[Ze(r,o),{providerId:r,workspaceId:o}])))),uo=n.createSelector(e=>Object.keys(tt.select(e)).sort()),ot=n.createSelector((e,t,o)=>we(e.providerModels?.learnedNames??{},t,o)),fo=n.createSelector(e=>e.providerModels.learnedNames),nt={auggie:"auggie",claudeCode:"claude-code",codex:"codex",mock:"mock",opencode:"opencode",pi:"pi",cortex:"cortex",droid:"droid",grok:"grok",unsloth:"unsloth",antigravity:"antigravity"},rt=new Map(Object.entries(nt).map(([e,t])=>[t,e]));function st(e,t){const o=rt.get(t);return o===void 0?void 0:e?.providers[o]}function po(e,t){const o=st(e,t);return o?.available===!0&&N(t,o.authenticated)}const go=new Set(["claude-code"]);function N(e,t){return e==="antigravity"?t===!0:t!==!1}const B=n.createSelector(e=>e.agentAvailability.providerStatusMap),mo=n.createSelector(e=>e.agentAvailability.providerLoadingMap),vo=n.createSelector(e=>e.agentAvailability.providerCheckEpochMap),ct=n.createSelector(e=>e.agentAvailability.hasCheckedOnce),bo=n.createSelector(e=>Object.values(e.agentAvailability.providerLoadingMap).some(t=>t)),So=n.createSelector(e=>e.agentAvailability.npxStatus),ho=n.createSelector(e=>e.agentAvailability.hiddenProviders),yo=n.createSelector(e=>e.agentAvailability.discoveryError),Po=n.createSelector(e=>e.agentAvailability.discoveryRevision),Co=n.createSelector(e=>e.agentAvailability.refreshModelsPending),Mo=n.createSelector(e=>e.agentAvailability.refreshModelsRevision),Io=n.createSelector(e=>e.sidebarNav?.onboardingActive&&e.userPreferences.providerSetupHydratedBackendId===e.connections.windowBackendId&&!e.userPreferences.hasCompletedProviderSetup&&w.select(e)==="owner"?Be.select(e):null),Eo=n.createSelector((e,t)=>g(e.providerSettings.requests).filter(o=>o.sessionId===t)),wo=n.createSelector((e,t)=>e.providerSettings.sessions.includes(t)),Ao=n.createSelector((e,t)=>e.providerSettings.writeRevisions?.[t]??0),ko=n.createSelector(e=>e.providerSettings.paths),_o=n.createSelector(e=>e.providerSettings.pathsRevision),P=n.createSelector(e=>y.select(e)?M.select(e)?.defaultProviderId??"":e.model.defaultProviderId);n.createSelector((e,t)=>P.select(e)===t);const Ro=n.createSelector(e=>y.select(e)?Object.fromEntries((M.select(e)?.enabledProviderIds??[]).map(t=>[t,!0])):e.providerSettings.enabledProviders),Z=n.createSelector((e,t)=>{if(y.select(e))return M.select(e)?.enabledProviderIds?.includes(t)===!0;const o=e.providerSettings.nonDisableableProviderIds??[];return Ae(e.providerSettings.enabledProviders,t,{canBeDisabled:!o.includes(t)})}),ee=n.createSelector(e=>{if(y.select(e))return M.select(e)?.enabledProviderIds??[];const t=e.providerSettings.enabledProviders,o=e.providerCatalog?g(e.providerCatalog.providers):[],r=new Set(o.filter(a=>Z.select(e,a.id)).map(a=>a.id)),s=P.select(e),c=Q(s);c&&t[c]!==!1&&r.add(c);for(const[a,i]of Object.entries(t))i&&r.add(a);return[...r]});function at(e,t){const o=J.select(e,t);return y.select(e)?o?.visible!==!0:!!(o?.requiresEnvVar||o?.requiresFeatureCode)}const te=n.createSelector((e,t)=>{if(t!=="antigravity")return!0;const o=B.select(e)[t];return o?.available===!0&&N(t,o.authenticated)}),A=n.createSelector(e=>{const t=B.select(e);return ee.select(e).filter(o=>!at(e,o)&&t[o]?.available===!0&&te.select(e,o))}),Oo=n.createSelector((e,t)=>{const o=B.select(e),r=C.select(e,t);return A.select(e).filter(s=>C.select(e,s)!==r&&Z.select(e,s)&&N(s,o[s]?.authenticated))}),Lo=n.createSelector(e=>(ct.select(e)?A.select(e):ee.select(e)).filter(o=>te.select(e,o))),To=n.createSelector(e=>{const t=Q(P.select(e));return A.select(e).includes(t)}),No=n.createSelector(e=>e.providerSettings.fastMode),Bo=n.createSelector(e=>{const t=e.providerSettings.fastMode,o={...t?.confirmed};for(const[r,s]of Object.entries(t?.pending??{}))o[r]=s.enabled;return o}),xo=n.createSelector(e=>e.providerSettings.fastMode?.supported?["claude-code","codex"].filter(t=>J.select(e,t)?.supportsFastMode===!0):[]),m=e=>e.providerSettings?.profiles??ke,Do=n.createSelector(e=>xe.select(e).filter(t=>t.supportsProfiles===!0).map(t=>t.id)),Ho=n.createSelector((e,t)=>g(m(e).items).filter(o=>o.baseProviderId===t)),Fo=n.createSelector(e=>m(e).defaults),Wo=n.createSelector((e,t)=>m(e).defaults[t]),jo=n.createSelector((e,t)=>v(m(e).items,t)),qo=n.createSelector(e=>m(e).revision),Ko=n.createSelector(e=>m(e).loadStatus),$o=n.createSelector(e=>m(e).status),Uo=n.createSelector(e=>m(e).activation),Qo=n.createSelector(e=>Object.fromEntries(g(m(e).mutations).map(t=>[t.id,t]))),it={},Yo=n.createSelector(e=>m(e).identity??it),lt={},Vo=n.createSelector(e=>m(e).setups??lt),Go=n.createSelector(e=>(e.providerSettings?.sessions.length??0)>0),zo=n.createSelector(e=>e.model),Jo=n.createSelector(e=>{const t=De.select(e),o=w.select(e);if(!t||o!=="owner"&&o!=="member")return null;const r=P.select(e);return o==="member"&&!r?null:JSON.stringify([t,r,o==="member"?He.select(e):null])});function oe(e,t){return t??P.select(e)}const x=n.createSelector((e,t)=>{const o=oe(e,t),r=e.model.availableModelsProviderId===o?g(e.model.availableModels):[],s=M.select(e),c=y.select(e)?s?.defaultProviderId===o?s.defaultModelId:null:e.model.providerModels[o];return c||(A.select(e).includes(o)?_e(r):"")}),dt=n.createSelector((e,t)=>x.select(e,t)!==""),Xo=n.createSelector(e=>P.select(e)!==""||dt.select(e)),ut=n.createSelector(e=>e.model.availableModels),Zo=n.createSelector(e=>g(ut.select(e))),en=n.createSelector(e=>e.model.availableModelsProviderId),ne=n.createSelector((e,t)=>{const o=oe(e,t);return e.model.loadingState[o]??null}),tn=n.createSelector((e,t)=>ne.select(e,t)?.status==="loading"),on=n.createSelector((e,t)=>{const o=ne.select(e,t);return o?.status!=="error"?null:o.error??null}),nn=n.createSelector(e=>{const t={};for(const[o,r]of Object.entries(e.model.loadingState))r.warning&&(t[o]=r.warning);return t}),rn=n.createSelector(e=>{const t={};for(const[o,r]of Object.entries(e.model.loadingState))r.stale&&(t[o]=!0);return t}),sn=n.createSelector(e=>{const t={};for(const[o,r]of Object.entries(e.model.loadingState))r.warning&&r.warningKind&&(t[o]=r.warningKind);return t}),cn=n.createSelector(e=>e.model.providerModels),an=n.createSelector(e=>e.model.defaultReasoningEffort),ln=n.createSelector(e=>e.model.modelPickerCollapsedGroups),dn=n.createSelector((e,t)=>e.model.fallbackInfoByAgentId[t]??null),ft=n.createSelector((e,t,o,r)=>{const s=d=>C.select(e,d,r),c=s(t),a=_(o,c,s),i=e.model?.availableModels;if(!r&&i&&(!c||c===e.model.availableModelsProviderId)){const d=v(i,o)??v(i,a);if(d)return d}const l=r?e.providerModels?.byWorkspaceId?.[r]?.[c]:e.providerModels?.byProviderId?.[c];return l?.models.find(d=>d.value===o)??l?.models.find(d=>_(d.value,c,s)===a)}),un=n.createSelector((e,t,o,r)=>{const s=d=>C.select(e,d,r),c=s(t),a=_(o,c,s),i=d=>ft.select(e,c,d,r)?.label,l=d=>ot.select(e,c,d);return k(o,i)??(a!==o?k(a,i):void 0)??l(o)??k(a,l)}),pt=n.createSelector((e,t)=>{if(!t)return;const o=e.model?.availableModels;if(!o)return;const r=R(t);return v(o,r)?.effortLevels});function R(e){const t=U(e).modelId,o=t.indexOf("/");return o>0?t.slice(0,o):t}const gt=n.createSelector((e,t,o,r)=>{if(o){if(!r&&(!t||t===e.model?.availableModelsProviderId)){const s=pt.select(e,o);if(s)return s}if(t){const s=R(o);return(r?e.providerModels?.byWorkspaceId?.[r]?.[t]:e.providerModels?.byProviderId[t])?.models.find(a=>R(a.value)===s)?.effortLevels}}}),mt=n.createSelector((e,t)=>{const o=e.agentSessions?.byAgentId[t];if(!o)return;if(Array.isArray(o.effortLevels)&&o.effortLevels.length>0)return o.effortLevels;const r=o.workspaceId?e.providerCatalog?.byWorkspaceId?.[o.workspaceId]?.settings??[]:void 0,s=r?.find(u=>u.path==="model.defaultProvider")?.value,c=r?typeof s=="string"?s:"":Fe.select(e),a=We(o,c),i=C.select(e,a??c,o.workspaceId),l=r?.find(u=>u.path==="model.providerDefaults")?.value,d=l&&typeof l=="object"?l[i]:void 0,I=o.model??(r?typeof d=="string"?d:"":x.select(e,i));return gt.select(e,i,I,o.workspaceId)}),re="application/vnd.intent.question+json";function vt(e){if(!e||typeof e!="object")return!1;const t=e;return typeof t.label=="string"&&t.label.length>0&&(t.description===void 0||typeof t.description=="string")}function bt(e){if(!e||typeof e!="object")return!1;const t=e;return typeof t.attachmentId=="string"&&typeof t.header=="string"&&t.header.length>0&&typeof t.question=="string"&&t.question.length>0&&(t.explanation===void 0||typeof t.explanation=="string")&&Array.isArray(t.options)&&t.options.length>=2&&t.options.every(vt)&&(t.multiSelect===void 0||typeof t.multiSelect=="boolean")}function fn(e){if(!e||typeof e!="object")return!1;const t=e;if(t.type!=="resource")return!1;const o=t.resource;return typeof o=="object"&&o!==null&&o.mimeType===re}function St(e){if(!e||typeof e!="object")return null;const t=e,o=t.resource??t.metadata?.resource??t;if(!o||typeof o!="object"||o.mimeType!==re||typeof o.text!="string")return null;try{const r=JSON.parse(o.text);return bt(r)?r:null}catch{return null}}const ht="attachmentId",yt=/^tar-[0-9a-f]{12}$/;function se(e){if(!e||typeof e!="object")return null;const t=e;if(t.type!=="resource")return null;const o=t.resource;return!o||typeof o!="object"||typeof o.uri!="string"||typeof o.mimeType!="string"||typeof o.text!="string"||o.name!==void 0&&typeof o.name!="string"?null:o}function ce(e){const t=se(e);if(!t)return null;try{const o=JSON.parse(t.text);if(!o||typeof o!="object"||Array.isArray(o))return null;const r=o[ht];return typeof r=="string"&&yt.test(r)?r:null}catch{return null}}function O(e){return Array.isArray(e)?`[${e.map(O).join(",")}]`:e&&typeof e=="object"?`{${Object.entries(e).sort(([o],[r])=>o<r?-1:o>r?1:0).map(([o,r])=>`${JSON.stringify(o)}:${O(r)}`).join(",")}}`:JSON.stringify(e)??"undefined"}function Pt(e){const t=se(e);if(!t)return null;if(t.mimeType===Ue)try{const r=JSON.parse(t.text);if(Qe(r))return`proposal:${r.kind}:${r.applyToolCallId??r.preview.title}:${O(r.payload)}`}catch{}const o=ce(e);return o?`nonce:${o}`:t.uri.length>0?`uri:${t.uri}:${t.text}`:null}function D(e){return ce(e)!==null}function Ct(e){const t=new Map,o=[];for(const r of e){const s=Pt(r);if(s===null){o.push(r);continue}const c=t.get(s);if(c===void 0){t.set(s,o.length),o.push(r);continue}D(r)&&!D(o[c])&&(o[c]=r)}return o}function ae(e,t){if(typeof t!="string"||t.length===0)return!1;const o=e?.dismissedQuestionsMessageId;return typeof o=="string"&&o===t}function Mt(e){if(e.skipped)return"(skipped)";const t=[...e.selectedLabels],o=e.imageBlocks?.length??0,r=o===0?"":o===1?h.chat_questionWizard_imagesAttached_label_one():h.chat_questionWizard_imagesAttached_label_many({count:Ye(o)});return(e.freeText||o>0)&&t.push(`(Other) ${[e.freeText,r].filter(Boolean).join(" ")}`),t.length===0?"(skipped)":t.join(", ")}function It(e){return e.map(t=>`Q: ${t.question.question}
1
+ import{FQ as U,G2 as n,qj as we,mv as g,z0 as Ae,vW as Q,mu as v,pb as ke,yY as _e,g as Y,pV as V,yZ as G,c as Re,mh as z,A as Oe}from"./X8KOCQId.js";import{k as Le}from"./DVkfuwKw.js";import{l as Te,s as Ne}from"./N_3EVFPG.js";import{b_ as w,cA as Be,c7 as y,bX as M,cr as C,cI as J,cH as xe,cz as De,bY as He,bs as Fe,l as We,F as je,dK as qe,dv as X,av as Ke,ci as $e}from"./uzVhgdYt.js";import{P as Ue,d as Qe}from"./BTxRR5tz.js";import{bo as h}from"./DEI12D8u.js";import{t as Ye}from"./BycWLeDe.js";import{p as Ve}from"./KLMKvNSD.js";import{p as Ge}from"./CiJsLr2J.js";function ze(e,t,o){if(!e||!o?.length)return null;const r=new Set(o);if(t!==null&&!r.has(t))return null;const s=e.lastIndexOf("/"),c=s>=0?e.slice(s+1):"",a=r.has(c)?e.slice(0,s):e;return t===null?a:`${a}/${t}`}const Je={major:5,minor:2};function Xe(e){const{major:t,minor:o}=Je;return Le(e,t,o)}function _(e,t,o){const r=U(e);return r.providerId&&o(r.providerId)===t?r.modelId:e}function k(e,t){const o=t(e);if(o)return o;const r=/\/(minimal|low|medium|high|xhigh|max|ultra|none)$/i.exec(e);if(!r||r.index===0)return;const s=t(e.slice(0,r.index)),c=r[1].toLowerCase();return s?`${s} (${c.charAt(0).toUpperCase()}${c.slice(1)})`:void 0}function Ze(e,t){return JSON.stringify([t||null,e])}const et=n.createSelector((e,t)=>(t?e.providerModels?.byWorkspaceId?.[t]:e.providerModels?.byProviderId)??{}),ao=n.createSelector((e,t,o)=>et.select(e,o)[t]),io=n.createSelector(e=>e.providerModels?.clearEpoch??0),lo=n.createSelector((e,t)=>(t?e.providerModels?.requestsByWorkspaceId?.[t]?.map:e.providerModels?.requests?.map)??{}),tt=n.createSelector(e=>Object.fromEntries(Object.values(e.providerModels?.observers?.map??{}).flatMap(({providerIds:t,workspaceId:o})=>t.map(r=>[Ze(r,o),{providerId:r,workspaceId:o}])))),uo=n.createSelector(e=>Object.keys(tt.select(e)).sort()),ot=n.createSelector((e,t,o)=>we(e.providerModels?.learnedNames??{},t,o)),fo=n.createSelector(e=>e.providerModels.learnedNames),nt={auggie:"auggie",claudeCode:"claude-code",codex:"codex",mock:"mock",opencode:"opencode",pi:"pi",cortex:"cortex",droid:"droid",grok:"grok",unsloth:"unsloth",antigravity:"antigravity"},rt=new Map(Object.entries(nt).map(([e,t])=>[t,e]));function st(e,t){const o=rt.get(t);return o===void 0?void 0:e?.providers[o]}function po(e,t){const o=st(e,t);return o?.available===!0&&N(t,o.authenticated)}const go=new Set(["claude-code"]);function N(e,t){return e==="antigravity"?t===!0:t!==!1}const B=n.createSelector(e=>e.agentAvailability.providerStatusMap),mo=n.createSelector(e=>e.agentAvailability.providerLoadingMap),vo=n.createSelector(e=>e.agentAvailability.providerCheckEpochMap),ct=n.createSelector(e=>e.agentAvailability.hasCheckedOnce),bo=n.createSelector(e=>Object.values(e.agentAvailability.providerLoadingMap).some(t=>t)),So=n.createSelector(e=>e.agentAvailability.npxStatus),ho=n.createSelector(e=>e.agentAvailability.hiddenProviders),yo=n.createSelector(e=>e.agentAvailability.discoveryError),Po=n.createSelector(e=>e.agentAvailability.discoveryRevision),Co=n.createSelector(e=>e.agentAvailability.refreshModelsPending),Mo=n.createSelector(e=>e.agentAvailability.refreshModelsRevision),Io=n.createSelector(e=>e.sidebarNav?.onboardingActive&&e.userPreferences.providerSetupHydratedBackendId===e.connections.windowBackendId&&!e.userPreferences.hasCompletedProviderSetup&&w.select(e)==="owner"?Be.select(e):null),Eo=n.createSelector((e,t)=>g(e.providerSettings.requests).filter(o=>o.sessionId===t)),wo=n.createSelector((e,t)=>e.providerSettings.sessions.includes(t)),Ao=n.createSelector((e,t)=>e.providerSettings.writeRevisions?.[t]??0),ko=n.createSelector(e=>e.providerSettings.paths),_o=n.createSelector(e=>e.providerSettings.pathsRevision),P=n.createSelector(e=>y.select(e)?M.select(e)?.defaultProviderId??"":e.model.defaultProviderId);n.createSelector((e,t)=>P.select(e)===t);const Ro=n.createSelector(e=>y.select(e)?Object.fromEntries((M.select(e)?.enabledProviderIds??[]).map(t=>[t,!0])):e.providerSettings.enabledProviders),Z=n.createSelector((e,t)=>{if(y.select(e))return M.select(e)?.enabledProviderIds?.includes(t)===!0;const o=e.providerSettings.nonDisableableProviderIds??[];return Ae(e.providerSettings.enabledProviders,t,{canBeDisabled:!o.includes(t)})}),ee=n.createSelector(e=>{if(y.select(e))return M.select(e)?.enabledProviderIds??[];const t=e.providerSettings.enabledProviders,o=e.providerCatalog?g(e.providerCatalog.providers):[],r=new Set(o.filter(a=>Z.select(e,a.id)).map(a=>a.id)),s=P.select(e),c=Q(s);c&&t[c]!==!1&&r.add(c);for(const[a,i]of Object.entries(t))i&&r.add(a);return[...r]});function at(e,t){const o=J.select(e,t);return y.select(e)?o?.visible!==!0:!!(o?.requiresEnvVar||o?.requiresFeatureCode)}const te=n.createSelector((e,t)=>{if(t!=="antigravity")return!0;const o=B.select(e)[t];return o?.available===!0&&N(t,o.authenticated)}),A=n.createSelector(e=>{const t=B.select(e);return ee.select(e).filter(o=>!at(e,o)&&t[o]?.available===!0&&te.select(e,o))}),Oo=n.createSelector((e,t)=>{const o=B.select(e),r=C.select(e,t);return A.select(e).filter(s=>C.select(e,s)!==r&&Z.select(e,s)&&N(s,o[s]?.authenticated))}),Lo=n.createSelector(e=>(ct.select(e)?A.select(e):ee.select(e)).filter(o=>te.select(e,o))),To=n.createSelector(e=>{const t=Q(P.select(e));return A.select(e).includes(t)}),No=n.createSelector(e=>e.providerSettings.fastMode),Bo=n.createSelector(e=>{const t=e.providerSettings.fastMode,o={...t?.confirmed};for(const[r,s]of Object.entries(t?.pending??{}))o[r]=s.enabled;return o}),xo=n.createSelector(e=>e.providerSettings.fastMode?.supported?["claude-code","codex"].filter(t=>J.select(e,t)?.supportsFastMode===!0):[]),m=e=>e.providerSettings?.profiles??ke,Do=n.createSelector(e=>xe.select(e).filter(t=>t.supportsProfiles===!0).map(t=>t.id)),Ho=n.createSelector((e,t)=>g(m(e).items).filter(o=>o.baseProviderId===t)),Fo=n.createSelector(e=>m(e).defaults),Wo=n.createSelector((e,t)=>m(e).defaults[t]),jo=n.createSelector((e,t)=>v(m(e).items,t)),qo=n.createSelector(e=>m(e).revision),Ko=n.createSelector(e=>m(e).loadStatus),$o=n.createSelector(e=>m(e).status),Uo=n.createSelector(e=>m(e).activation),Qo=n.createSelector(e=>Object.fromEntries(g(m(e).mutations).map(t=>[t.id,t]))),it={},Yo=n.createSelector(e=>m(e).identity??it),lt={},Vo=n.createSelector(e=>m(e).setups??lt),Go=n.createSelector(e=>(e.providerSettings?.sessions.length??0)>0),zo=n.createSelector(e=>e.model),Jo=n.createSelector(e=>{const t=De.select(e),o=w.select(e);if(!t||o!=="owner"&&o!=="member")return null;const r=P.select(e);return o==="member"&&!r?null:JSON.stringify([t,r,o==="member"?He.select(e):null])});function oe(e,t){return t??P.select(e)}const x=n.createSelector((e,t)=>{const o=oe(e,t),r=e.model.availableModelsProviderId===o?g(e.model.availableModels):[],s=M.select(e),c=y.select(e)?s?.defaultProviderId===o?s.defaultModelId:null:e.model.providerModels[o];return c||(A.select(e).includes(o)?_e(r):"")}),dt=n.createSelector((e,t)=>x.select(e,t)!==""),Xo=n.createSelector(e=>P.select(e)!==""||dt.select(e)),ut=n.createSelector(e=>e.model.availableModels),Zo=n.createSelector(e=>g(ut.select(e))),en=n.createSelector(e=>e.model.availableModelsProviderId),ne=n.createSelector((e,t)=>{const o=oe(e,t);return e.model.loadingState[o]??null}),tn=n.createSelector((e,t)=>ne.select(e,t)?.status==="loading"),on=n.createSelector((e,t)=>{const o=ne.select(e,t);return o?.status!=="error"?null:o.error??null}),nn=n.createSelector(e=>{const t={};for(const[o,r]of Object.entries(e.model.loadingState))r.warning&&(t[o]=r.warning);return t}),rn=n.createSelector(e=>{const t={};for(const[o,r]of Object.entries(e.model.loadingState))r.stale&&(t[o]=!0);return t}),sn=n.createSelector(e=>{const t={};for(const[o,r]of Object.entries(e.model.loadingState))r.warning&&r.warningKind&&(t[o]=r.warningKind);return t}),cn=n.createSelector(e=>e.model.providerModels),an=n.createSelector(e=>e.model.defaultReasoningEffort),ln=n.createSelector(e=>e.model.modelPickerCollapsedGroups),dn=n.createSelector((e,t)=>e.model.fallbackInfoByAgentId[t]??null),ft=n.createSelector((e,t,o,r)=>{const s=d=>C.select(e,d,r),c=s(t),a=_(o,c,s),i=e.model?.availableModels;if(!r&&i&&(!c||c===e.model.availableModelsProviderId)){const d=v(i,o)??v(i,a);if(d)return d}const l=r?e.providerModels?.byWorkspaceId?.[r]?.[c]:e.providerModels?.byProviderId?.[c];return l?.models.find(d=>d.value===o)??l?.models.find(d=>_(d.value,c,s)===a)}),un=n.createSelector((e,t,o,r)=>{const s=d=>C.select(e,d,r),c=s(t),a=_(o,c,s),i=d=>ft.select(e,c,d,r)?.label,l=d=>ot.select(e,c,d);return k(o,i)??(a!==o?k(a,i):void 0)??l(o)??k(a,l)}),pt=n.createSelector((e,t)=>{if(!t)return;const o=e.model?.availableModels;if(!o)return;const r=R(t);return v(o,r)?.effortLevels});function R(e){const t=U(e).modelId,o=t.indexOf("/");return o>0?t.slice(0,o):t}const gt=n.createSelector((e,t,o,r)=>{if(o){if(!r&&(!t||t===e.model?.availableModelsProviderId)){const s=pt.select(e,o);if(s)return s}if(t){const s=R(o);return(r?e.providerModels?.byWorkspaceId?.[r]?.[t]:e.providerModels?.byProviderId[t])?.models.find(a=>R(a.value)===s)?.effortLevels}}}),mt=n.createSelector((e,t)=>{const o=e.agentSessions?.byAgentId[t];if(!o)return;if(Array.isArray(o.effortLevels)&&o.effortLevels.length>0)return o.effortLevels;const r=o.workspaceId?e.providerCatalog?.byWorkspaceId?.[o.workspaceId]?.settings??[]:void 0,s=r?.find(u=>u.path==="model.defaultProvider")?.value,c=r?typeof s=="string"?s:"":Fe.select(e),a=We(o,c),i=C.select(e,a??c,o.workspaceId),l=r?.find(u=>u.path==="model.providerDefaults")?.value,d=l&&typeof l=="object"?l[i]:void 0,I=o.model??(r?typeof d=="string"?d:"":x.select(e,i));return gt.select(e,i,I,o.workspaceId)}),re="application/vnd.intent.question+json";function vt(e){if(!e||typeof e!="object")return!1;const t=e;return typeof t.label=="string"&&t.label.length>0&&(t.description===void 0||typeof t.description=="string")}function bt(e){if(!e||typeof e!="object")return!1;const t=e;return typeof t.attachmentId=="string"&&typeof t.header=="string"&&t.header.length>0&&typeof t.question=="string"&&t.question.length>0&&(t.explanation===void 0||typeof t.explanation=="string")&&Array.isArray(t.options)&&t.options.length>=2&&t.options.every(vt)&&(t.multiSelect===void 0||typeof t.multiSelect=="boolean")}function fn(e){if(!e||typeof e!="object")return!1;const t=e;if(t.type!=="resource")return!1;const o=t.resource;return typeof o=="object"&&o!==null&&o.mimeType===re}function St(e){if(!e||typeof e!="object")return null;const t=e,o=t.resource??t.metadata?.resource??t;if(!o||typeof o!="object"||o.mimeType!==re||typeof o.text!="string")return null;try{const r=JSON.parse(o.text);return bt(r)?r:null}catch{return null}}const ht="attachmentId",yt=/^tar-[0-9a-f]{12}$/;function se(e){if(!e||typeof e!="object")return null;const t=e;if(t.type!=="resource")return null;const o=t.resource;return!o||typeof o!="object"||typeof o.uri!="string"||typeof o.mimeType!="string"||typeof o.text!="string"||o.name!==void 0&&typeof o.name!="string"?null:o}function ce(e){const t=se(e);if(!t)return null;try{const o=JSON.parse(t.text);if(!o||typeof o!="object"||Array.isArray(o))return null;const r=o[ht];return typeof r=="string"&&yt.test(r)?r:null}catch{return null}}function O(e){return Array.isArray(e)?`[${e.map(O).join(",")}]`:e&&typeof e=="object"?`{${Object.entries(e).sort(([o],[r])=>o<r?-1:o>r?1:0).map(([o,r])=>`${JSON.stringify(o)}:${O(r)}`).join(",")}}`:JSON.stringify(e)??"undefined"}function Pt(e){const t=se(e);if(!t)return null;if(t.mimeType===Ue)try{const r=JSON.parse(t.text);if(Qe(r))return`proposal:${r.kind}:${r.applyToolCallId??r.preview.title}:${O(r.payload)}`}catch{}const o=ce(e);return o?`nonce:${o}`:t.uri.length>0?`uri:${t.uri}:${t.text}`:null}function D(e){return ce(e)!==null}function Ct(e){const t=new Map,o=[];for(const r of e){const s=Pt(r);if(s===null){o.push(r);continue}const c=t.get(s);if(c===void 0){t.set(s,o.length),o.push(r);continue}D(r)&&!D(o[c])&&(o[c]=r)}return o}function ae(e,t){if(typeof t!="string"||t.length===0)return!1;const o=e?.dismissedQuestionsMessageId;return typeof o=="string"&&o===t}function Mt(e){if(e.skipped)return"(skipped)";const t=[...e.selectedLabels],o=e.imageBlocks?.length??0,r=o===0?"":o===1?h.chat_questionWizard_imagesAttached_label_one():h.chat_questionWizard_imagesAttached_label_many({count:Ye(o)});return(e.freeText||o>0)&&t.push(`(Other) ${[e.freeText,r].filter(Boolean).join(" ")}`),t.length===0?"(skipped)":t.join(", ")}function It(e){return e.map(t=>`Q: ${t.question.question}
2
2
  A: ${Mt(t)}`).join(`
3
3
 
4
4
  `)}const ie="question_answers";function Et(e){return{type:ie,answeredQuestionsMessageId:e}}function pn(e,t){const o=e.flatMap(r=>r.skipped?[]:r.imageBlocks??[]);return{text:It(e),messageMetadata:Et(t),...o.length>0?{imageBlocks:o}:{}}}function H(e){if(!e||typeof e!="object")return null;const t=e;if(t.type!==ie)return null;const o=t.answeredQuestionsMessageId;return typeof o=="string"&&o.length>0?o:null}function F(e){const t=H(e),o=t?[t]:[];if(e&&typeof e=="object"&&"mergedMessageMetadata"in e){const r=e.mergedMessageMetadata;if(Array.isArray(r))for(const s of r){const c=H(s);c&&!o.includes(c)&&o.push(c)}}return o}function le(e){if(!e)return[];const t=F(e.metadata);if(t.length)return t;const o=Array.isArray(e.contentBlocks)?e.contentBlocks:[];return[...new Set(o.flatMap(r=>r.type==="text"?F(r.messageMetadata):[]))]}function de(e){return e===void 0?{kind:"absent"}:e===""?{kind:"cleared"}:{kind:"set",messageId:e}}function W(e){return Ct(e.contentBlocks??[]).map(St).filter(t=>t!==null)}function ue(e,t){return e.some(o=>o.role==="user"&&le(o).includes(t))}function j(e,t){return e.some(o=>le({metadata:o.messageMetadata}).includes(t))}function wt(e,t,o=!1,r,s=[]){if(o||e.length===0)return null;const c=de(r);if(c.kind==="cleared")return null;if(c.kind==="set"){const a=e.find(l=>l.id===c.messageId);if(!a||a.role!=="assistant"||a.isStreaming||ue(e,c.messageId)||j(s,c.messageId))return null;const i=W(a);return i.length>0?{messageId:a.id,questions:i}:null}if(t)return null;for(let a=e.length-1;a>=0;a--){const i=e[a];if(i.role==="system")continue;if(i.role!=="assistant"||i.isStreaming||j(s,i.id))return null;const l=W(i);return l.length>0?{messageId:i.id,questions:l}:null}return null}function At(e){const t=wt(e.messages??[],je(qe(e)),!1,e.metadata?.pendingQuestionsMessageId);return!t||ae(e.metadata,t.messageId)?null:t}function kt(e){if(At(e)!==null)return!0;const t=de(e.metadata?.pendingQuestionsMessageId);if(t.kind!=="set")return!1;const o=e.messages??[];return o.some(r=>r.id===t.messageId)||ue(o,t.messageId)?!1:!ae(e.metadata,t.messageId)}const fe=0,L=1,_t=2,p=4,pe=6,Rt=[2,3,4,5,0,1],Ot=16777215,ge=689407,me=3199320,ve=16766474,be=16752394,T=16726832,Se=6607615,Lt=12540658,S=.9,Tt=.5,he=.25,Nt=.25,Bt={unassigned:{c:0,b:0,e:fe,s:0},idle:{c:Ot,b:.12,e:L,s:0},running:{c:ge,b:.6,e:p,s:Tt},unread:{c:Se,b:.4,e:p,s:he},complete:{c:me,b:.5,e:L,s:0},attention:{c:ve,b:.8,e:p,s:S},blocked:{c:be,b:.75,e:p,s:S},failed:{c:T,b:.7,e:p,s:S}},xt={e:fe,b:0,s:0,m:0,c:0},q=.35,Dt=.75,K=4;function Ht(e){const o=(Math.min(Math.max(e,1),K)-1)/(K-1);return q+o*(Dt-q)}const Ft={dark:xt,complete:{e:L,b:.25,s:0,m:0,c:me},unread:{e:p,b:.4,s:he,m:0,c:Se},question:{e:p,b:.8,s:S,m:0,c:ve},blocked:{e:p,b:.8,s:S,m:0,c:be},failed:{e:p,b:.8,s:S,m:0,c:T},recording:{e:p,b:.8,s:S,m:0,c:T},disconnected:{e:_t,b:.2,s:Nt,m:0,c:Lt}};function gn(e){const t=[];for(let o=0;o<pe;o+=1){const r=e[o]??"unassigned";t.push({id:Rt[o],...Bt[r]})}return t.sort((o,r)=>o.id-r.id),t}function mn(e){const t=e.kind==="running"?{e:p,b:.5,s:Ht(e.runningCount),m:0,c:ge}:Ft[e.kind];return{keys:{...t},ambient:{...t}}}function ye(e){return z(e)?.kind==="blocker"}function Pe(e){return z(e)?.kind==="discussion"||kt(e)}function Ce(e){return e.status===Re.Error}function $(e,t){const o=e.workspaceAgents.byWorkspaceId[t]?.foregroundAgentIds??[],r=e.agentSessions?.byAgentId??{},s=[];for(const c of o){const a=r[String(c)];a&&s.push(a)}return s}const Wt=new Set(["complete","pr_queued","pr_ready","pr_open","pr_merged"]);function Me(e){return e.activity==="agent_running"||e.displayStatus==="in_progress"}function Ie(e){return e.displayStatus!==void 0&&Wt.has(e.displayStatus)}function jt(e,t){return t.some(Ce)?"failed":t.some(ye)?"blocked":t.some(Pe)?"attention":Me(e)?"running":e.attention==="unread"?"unread":Ie(e)?"complete":"idle"}function qt(e){if(e.daemonHealth?.health==="down")return{keys:new Array(pe).fill("unassigned"),ambient:{kind:"disconnected"}};const t=g(e.workspace.workspaces).filter(f=>f.id!==Y&&V(f)),o=new Map;for(const f of t)o.set(f.id,f);const s=G(e.hardwareConsole.keyPins,t,e.hardwareConsole.excludedWorkspaceIds??[]).map(f=>{const b=f===null?void 0:o.get(f);return b?jt(b,$(e,b.id)):"unassigned"});let c=!1,a=!1,i=!1,l=0,d=!1,I=!1;for(const f of t){const b=$(e,f.id);b.some(Ce)&&(c=!0),b.some(ye)&&(a=!0),b.some(Pe)&&(i=!0),Me(f)&&(l+=1),f.attention==="unread"&&(d=!0),Ie(f)&&(I=!0)}let u;return e.hardwareConsole.pttRecording===!0?u={kind:"recording"}:c?u={kind:"failed"}:a?u={kind:"blocked"}:i?u={kind:"question"}:d?u={kind:"unread"}:l>0?u={kind:"running",runningCount:l}:I?u={kind:"complete"}:u={kind:"dark"},{keys:s,ambient:u}}const vn=n.createSelector(e=>{const t=w.select(e);return t==="guest"||t==="member"}),bn=n.createSelector(e=>{const t=e.hardwareConsole;if(w.select(e)!=="owner"||!t?.isConsoleOwner||!t.enabledHydrationSucceeded||!t.actionMappingHydrationSucceeded)return null;const o=r=>Oe.filter((s,c)=>t.actionMappingByModel[r][c]==="cycle-open-windows");return JSON.stringify({enabled:t.enabled,keysByModel:{"creator-micro-2":o("creator-micro-2"),"codex-micro":o("codex-micro")}})}),Sn=n.createSelector(e=>e.hardwareConsole.enabled),hn=n.createSelector(e=>e.hardwareConsole.encoderBehavior),yn=n.createSelector(e=>e.hardwareConsole.encoderBehaviorSaveFailed),Pn=n.createSelector(e=>e.hardwareConsole.isConsoleOwner),Cn=n.createSelector(e=>e.hardwareConsole.promptPickerLimit),Mn=n.createSelector(e=>e.hardwareConsole.actionMappingByModel),In=n.createSelector(e=>e.hardwareConsole.cycleScopeByFamily),En=n.createSelector(e=>e.hardwareConsole.keyPins),wn=n.createSelector(e=>e.hardwareConsole.excludedWorkspaceIds),An=n.createSelector(e=>e.hardwareConsole.promptUsage),Kt=n.createSelector(e=>{const t=X.select(e).filter(V);return G(e.hardwareConsole.keyPins,t,e.hardwareConsole.excludedWorkspaceIds)}),kn=n.createSelector((e,t)=>{const o=e.hardwareConsole.keyPins.indexOf(t);return o===-1?null:o}),_n=n.createSelector((e,t)=>{const o=Kt.select(e).indexOf(t);return o===-1?null:o}),Rn=n.createSelector(e=>e.hardwareConsole.radialPrompt),On=n.createSelector(e=>e.hardwareConsole.encoderHudWorkspaceId),Ln=n.createSelector(e=>{const t=e.hardwareConsole.encoderHudWorkspaceId;return t===null?null:X.select(e).find(o=>o.id===t)?.title??null}),Tn=n.createSelector(e=>e.hardwareConsole.actionHudLabel),Nn=n.createSelector(e=>e.hardwareConsole.pttRecording),Bn=n.createSelector(e=>e.hardwareConsole.voiceTranscribing),xn=n.createSelector(e=>qt(e)),$t=n.createSelector((e,t,o)=>{const r=e.agentSessions.byAgentId[o];if(!r||r.workspaceId!==t)return null;const s=mt.select(e,o);if(!s?.length)return null;const c=Ke.select(e,o),a=r.model??x.select(e,c),i=e.daemonHealth.stats?.protocolVersion,l=Xe(i)?ze(a,null,s):a;return{key:JSON.stringify([t,o,c,l,s]),workspaceId:t,agentId:o,levels:s}}),Ut=n.createSelector(e=>{const t=e.hardwareConsole;if(!t.enabled||!t.isConsoleOwner||!t.encoderBehaviorHydrated||t.encoderBehavior!=="agent-effort")return null;const o=Te.select(e);if(!o||o===Y||$e.select(e,o))return null;const r=Ne.select(e,o);return r?.type!=="agent"||!r.agentId||r.workspaceId&&r.workspaceId!==o?null:$t.select(e,o,r.agentId)}),Dn=n.createSelector(e=>{const t=e.hardwareConsole.encoderEffortFeedback;return!t||Ut.select(e)?.key!==t.target.key?null:(e.agentSessions.byAgentId[t.target.agentId]?.reasoningEffort??null)===t.effort?t:null}),Qt=[],Hn=n.createSelector((e,t)=>v(e.connections.workflows,t)),Fn=n.createSelector(e=>({writing:e.connections.keychainWritesPending>0,loadFailed:e.connections.keychainLoadError,saveFailed:e.connections.keychainSaveError})),Wn=n.createSelector(e=>e.connections.selfPublication),jn=n.createSelector(e=>e.connections.selfPublicationBusy),qn=n.createSelector((e,t)=>({guest:v(e.guestSessions.sessions,t),connection:v(e.connections.connections,t)})),Kn=n.createSelector(e=>g(e.connections.connections)),$n=n.createSelector(e=>g(e.connections.connections).filter(t=>!t.isLocal)),Un=n.createSelector(e=>e.connections.hasReceivedList);n.createSelector((e,t)=>v(e.connections.connections,t)?.status??"not-open");const Qn=n.createSelector(e=>e.connections.windowBackendId),Yn=n.createSelector(e=>{const{connections:t,windowBackendId:o}=e.connections;return v(t,o)??null}),Vn=n.createSelector(e=>e.connections.pinnedVersion),Gn=n.createSelector(e=>e.connections.connectedIds);n.createSelector(e=>e.connections.status);const zn=n.createSelector(e=>e.connections.status==="connecting"||e.connections.openingIds.length>0);n.createSelector((e,t)=>e.connections.openingIds.includes(t));n.createSelector(e=>e.connections.error);const Jn=n.createSelector(e=>e.connections.certMismatch),Xn=n.createSelector(e=>{const t={};for(const[o,r]of Object.entries(e.connections.certWarnings))t[o]=g(r);return t}),Zn=n.createSelector(e=>{const t=e.connections.certWarnings[e.connections.windowBackendId];return t?g(t):Qt}),er=n.createSelector(e=>{const{authRejected:t,windowBackendId:o}=e.connections;return t&&t.id===o?t:null}),tr=n.createSelector(e=>{const{protocolMismatch:t,windowBackendId:o}=e.connections;return t&&t.id===o?t:null}),or=n.createSelector(e=>{const{protocolMismatch:t,windowBackendId:o,protocolMismatchModalDismissed:r}=e.connections;return!t||t.id!==o||r?null:t}),nr=n.createSelector(e=>e.connections.keychainSync),rr=n.createSelector(e=>e.connections.browserHost?.manageConnections===!0),sr=n.createSelector(e=>e.connections.browserHost?.backendBound===!1),cr=n.createSelector(e=>{const t=e.connections.browserHost;return t?.manageConnections===!0&&!t.tailcatAvailable}),Yt=[{id:"label-state-matrix",title:"Label states",states:["default","rest","hover","focus","error","required","optional","disabled","long-content","compact","zoom-200","light","dark"],themes:["light","dark","high-contrast"],viewport:"both"}];Ve({id:"label",source:"src/lib/components/ui/label/label.svelte",publicImport:"$lib/components/ui/label",legacyImports:[],exports:["Label","labelMetadata"],category:"primitive",owner:"007-B2",callers:["src/features/collaboration-auth/renderer/CollaborationSignInModal.svelte","src/features/host-membership/HostInvitationDialog.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte","src/lib/component-catalog/renderers/ModalCatalogPreview.svelte","src/lib/components/GitLabConnectForm.svelte","src/lib/components/chat/secrets/SecretRequestCard.svelte","src/lib/components/debug/DebugPanel.svelte","src/lib/components/modals/InputDialog.svelte","src/lib/components/modals/ShareWorkspaceDialog.svelte","src/lib/components/modals/modal-polish.preview.svelte","src/lib/components/patterns/confirm/ConfirmRequestView.svelte","src/lib/components/patterns/form/FormField.svelte","src/lib/components/patterns/settings/SettingsFieldRow.svelte","src/lib/components/patterns/settings/custom-controls.ts","src/lib/components/workspace/initializer/AddRemoteSetupModal.svelte","src/lib/components/workspace/initializer/SetupScriptTrigger.svelte","src/lib/components/workspace/sidebar/context-picker/BrowserUrlPicker.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/label/label.test.ts",removalGate:"Retain while exported and association and fixture tests pass.",dynamicImports:[],fixtures:Yt});const Vt=[{id:"content-dialog",title:"Content dialog",states:["reading","progress","error","long-content"],themes:["light","dark"],viewport:"both"},{id:"confirm-service",title:"Confirm service",states:["confirm","prompt","alert","queued","busy","reduced-motion"],themes:["light","dark","high-contrast"],viewport:"both",reducedMotion:!0},{id:"form-dialog",title:"Form dialog",states:["default","busy","invalid"],themes:["light","dark"],viewport:"both"},{id:"destructive-confirm",title:"Destructive confirm",states:["default","busy"],themes:["light","dark"],viewport:"both"}];Ge({id:"confirm",source:"src/lib/components/patterns/confirm/index.ts",publicImport:"$lib/components/patterns/confirm",exports:["ConfirmHost","ConfirmRequestView","DestructiveConfirm","FormDialog","ContentDialog","alert","confirm","prompt"],owner:"design-system",fixtures:Vt,useWhen:["Blocking an action until the user confirms, enters one value, or acknowledges a message.","Building a dialog whose content is a form with standard actions.","Showing a selection, progress/result, or reading dialog with shared layout and focus ownership."],dontUseWhen:["Reporting non-blocking status; use the notification service instead.","Building a multi-step flow; use a dedicated screen or wizard composition."],replaces:["Browser confirm, prompt, and alert APIs.","InputDialog, MessageDialog, and one-off destructive confirmation markup."]});function Ee(e){const t=e.trim();if(!t.startsWith("tc"))return!1;const o=t.slice(2);if(o.length<50||o.length%4===1||!/^[A-Za-z0-9_-]+$/.test(o))return!1;const r=atob(o.slice(0,4).replace(/-/g,"+").replace(/_/g,"/")).charCodeAt(0);return r>=161&&r<=187||r===191}function ar(e){if(!e||typeof e!="object")return null;const t=e;for(const o of[t.collaborationName,t.prettyHostname,t.hostname])if(typeof o=="string"&&E(o))return E(o);return null}function ir(e){return[...E(e)].length<=100&&!/\p{Cc}/u.test(e)}function E(e){return e.replace(/^\p{White_Space}+|\p{White_Space}+$/gu,"")}function Gt(e){const t=e.label.trim(),o=e.host&&e.port!=null?`${e.host}:${e.port}`:"";return(t&&t!==o?t:"")||e.hostname?.trim()||t||o}function zt(e){const t=e.machineName?.trim();return t?h.settings_devices_localMachine_label({name:t}):h.layout_daemonStatus_localConnection_label()}function lr(e,t){if(e.isLocal)return zt(e);const o=Gt(e);return e.id===t?h.settings_devices_connectedBackend_label({name:o}):o}function Jt(e){const t=E(e.hostname??"");return t||(Ee(e.label)?h.connection_unknownHost_label():e.label)}function dr(e){const t=e.label.trim();return!t||Ee(t)?null:t!==Jt(e)?t:null}export{$t as $,pe as A,k as B,Tn as C,er as D,tr as E,P as F,mt as G,rn as H,sn as I,nn as J,A as K,Zo as L,en as M,go as N,Xn as O,nt as P,Gn as Q,Jn as R,qn as S,Hn as T,Kn as U,Un as V,Yn as W,Zn as X,Qn as Y,an as Z,Ro as _,qt as a,Co as a$,Dn as a0,Ut as a1,On as a2,Ln as a3,xo as a4,Mn as a5,In as a6,Sn as a7,hn as a8,yn as a9,dn as aA,Lo as aB,ln as aC,zo as aD,sr as aE,So as aF,uo as aG,tt as aH,Io as aI,Vn as aJ,Do as aK,Cn as aL,or as aM,vo as aN,Wo as aO,Fo as aP,yo as aQ,Po as aR,No as aS,Bo as aT,ho as aU,mo as aV,gt as aW,cn as aX,ao as aY,et as aZ,io as a_,wn as aa,En as ab,Kt as ac,An as ad,Rn as ae,xn as af,ct as ag,Xo as ah,rr as ai,cr as aj,To as ak,bo as al,zn as am,Pn as an,tn as ao,Z as ap,te as aq,Fn as ar,nr as as,ot as at,fo as au,on as av,Jo as aw,ft as ax,un as ay,pt as az,pn as b,Mo as b0,lo as b1,ko as b2,_o as b3,jo as b4,Uo as b5,Yo as b6,Qo as b7,Vo as b8,$o as b9,Ho as ba,Ko as bb,qo as bc,Go as bd,wo as be,Eo as bf,B as bg,Ao as bh,Nn as bi,Oo as bj,$n as bk,x as bl,Wn as bm,jn as bn,vn as bo,Bn as bp,bn as bq,kn as br,_n as bs,kt as bt,At as bu,Xe as bv,ir as bw,ze as c,mn as d,gn as e,de as f,ar as g,Ct as h,wt as i,Gt as j,dr as k,Jt as l,lr as m,le as n,st as o,St as p,N as q,po as r,ae as s,fn as t,ue as u,j as v,Ee as w,_ as x,E as y,Ze as z};