@intent-hq/web 2.345.1 → 2.346.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (364) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/assets/{0.BtTQsuHZ.css → 0.C6uvaa87.css} +1 -1
  3. package/web/app/immutable/chunks/-UJlOg-6.js +1 -0
  4. package/web/app/immutable/chunks/-Wo302Zr.js +9 -0
  5. package/web/app/immutable/chunks/0qEvU7Aj.js +8 -0
  6. package/web/app/immutable/chunks/1_fC7X8z.js +1 -0
  7. package/web/app/immutable/chunks/2V4-p70U.js +408 -0
  8. package/web/app/immutable/chunks/{D3mUsAm9.js → 3DAIKGff.js} +1 -1
  9. package/web/app/immutable/chunks/{elYeRxWm.js → 3as4gwP9.js} +7 -7
  10. package/web/app/immutable/chunks/{BqRoJfH0.js → 3h5ZjEwa.js} +1 -1
  11. package/web/app/immutable/chunks/{Dz4sFk1c.js → 4sUGQp1u.js} +1 -1
  12. package/web/app/immutable/chunks/{AzoskYOh.js → 5Ixgq0WC.js} +1 -1
  13. package/web/app/immutable/chunks/{CgQ2Q_uI.js → 71L4lHBq.js} +1 -1
  14. package/web/app/immutable/chunks/7eL9Pgig.js +1 -0
  15. package/web/app/immutable/chunks/{CWE4oREl.js → 9XVQ1GVX.js} +1 -1
  16. package/web/app/immutable/chunks/{C8dU7SM3.js → A8_BT67P.js} +1 -1
  17. package/web/app/immutable/chunks/ACNn9MHT.js +2 -0
  18. package/web/app/immutable/chunks/{Cv_J2c72.js → B-7vt8Nv.js} +1 -1
  19. package/web/app/immutable/chunks/B0-4rCYZ.js +2 -0
  20. package/web/app/immutable/chunks/{CD-XXU5z.js → B0WVH3Hg.js} +1 -1
  21. package/web/app/immutable/chunks/B0mNIdOb.js +1 -0
  22. package/web/app/immutable/chunks/{CWQrbZgx.js → B1HPKTBI.js} +1 -1
  23. package/web/app/immutable/chunks/{s_GzTTEG.js → B1U_DCBw.js} +1 -1
  24. package/web/app/immutable/chunks/{HKs3jfWW.js → B3D9gAmi.js} +1 -1
  25. package/web/app/immutable/chunks/{C-M7eh_Z.js → B4XZNQ4a.js} +1 -1
  26. package/web/app/immutable/chunks/{BqqN40AD.js → B4gIvcP2.js} +1 -1
  27. package/web/app/immutable/chunks/{C4dCVzfY.js → B55-cQLT.js} +1 -1
  28. package/web/app/immutable/chunks/B5HeJKYE.js +1 -0
  29. package/web/app/immutable/chunks/{BiRT6AoP.js → B79pUPc3.js} +9 -9
  30. package/web/app/immutable/chunks/{34C5M9lk.js → B7dTLx8u.js} +1 -1
  31. package/web/app/immutable/chunks/B83M2_sj.js +1 -0
  32. package/web/app/immutable/chunks/BAGVOK-j.js +4 -0
  33. package/web/app/immutable/chunks/{DXDMhDlS.js → BBlTlRXR.js} +1 -1
  34. package/web/app/immutable/chunks/{CpHZSST_.js → BDDEv5gU.js} +1 -1
  35. package/web/app/immutable/chunks/BDPAYMJ1.js +4 -0
  36. package/web/app/immutable/chunks/BDPqCRJm.js +2 -0
  37. package/web/app/immutable/chunks/{CoXBdOLx.js → BDZoh7yg.js} +1 -1
  38. package/web/app/immutable/chunks/{oilydQC6.js → BDtb6AfX.js} +1 -1
  39. package/web/app/immutable/chunks/{LeKgig9P.js → BDzYiKUH.js} +3 -3
  40. package/web/app/immutable/chunks/{DeBWJfUF.js → BJZ04Dji.js} +1 -1
  41. package/web/app/immutable/chunks/{A34-FDia.js → BK2lpqz4.js} +1 -1
  42. package/web/app/immutable/chunks/{DOo17E8X.js → BK64B_Ic.js} +7 -7
  43. package/web/app/immutable/chunks/{8XhHIJcn.js → BKw5KoGy.js} +1 -1
  44. package/web/app/immutable/chunks/{PqUcZw1l.js → BLaIjbEF.js} +1 -1
  45. package/web/app/immutable/chunks/{CMxRuwYt.js → BLl22NdQ.js} +1 -1
  46. package/web/app/immutable/chunks/{DTXLkH8c.js → BM7oCSp5.js} +1 -1
  47. package/web/app/immutable/chunks/{C8BVjzNA.js → BMKkyPLo.js} +1 -1
  48. package/web/app/immutable/chunks/BO8NImWp.js +1 -0
  49. package/web/app/immutable/chunks/BOxkenyY.js +1 -0
  50. package/web/app/immutable/chunks/{CW_fORnH.js → BOyF7pe9.js} +1 -1
  51. package/web/app/immutable/chunks/BQ5F0iVp.js +1 -0
  52. package/web/app/immutable/chunks/BQbcEQz0.js +1 -0
  53. package/web/app/immutable/chunks/{WQwO_6NF.js → BTNEDHav.js} +1 -1
  54. package/web/app/immutable/chunks/{RL06_5hJ.js → BVURea8L.js} +1 -1
  55. package/web/app/immutable/chunks/{hTzIX9qo.js → BW9EApvt.js} +10 -10
  56. package/web/app/immutable/chunks/BWAGtvpD.js +1 -0
  57. package/web/app/immutable/chunks/BWTugGQ8.js +1 -0
  58. package/web/app/immutable/chunks/{D_2_kcuU.js → BWZmCaEW.js} +1 -1
  59. package/web/app/immutable/chunks/{Dt_vOHph.js → BY3nRRgO.js} +3 -3
  60. package/web/app/immutable/chunks/{Ch8P3vqn.js → BYDvuR-h.js} +1 -1
  61. package/web/app/immutable/chunks/{CaGwo1Kh.js → BZYeogxf.js} +1 -1
  62. package/web/app/immutable/chunks/{RvvsGyv8.js → Ba1C4iSG.js} +1 -1
  63. package/web/app/immutable/chunks/{DSf8k2cE.js → BaYeKXL3.js} +1 -1
  64. package/web/app/immutable/chunks/{BZLRqiW7.js → BaYzTmbw.js} +1 -1
  65. package/web/app/immutable/chunks/Bbkml6DP.js +1 -0
  66. package/web/app/immutable/chunks/{9HNwwiNt.js → BcbQZUsh.js} +1 -1
  67. package/web/app/immutable/chunks/BcgSXbtK.js +1 -0
  68. package/web/app/immutable/chunks/{Z9xsSWyS.js → BeJ5WWx4.js} +22 -22
  69. package/web/app/immutable/chunks/{A0r9TbR7.js → BfbZn9QX.js} +1 -1
  70. package/web/app/immutable/chunks/BgKhYgm8.js +1 -0
  71. package/web/app/immutable/chunks/Bgi2L8Br.js +1 -0
  72. package/web/app/immutable/chunks/Bgw3O9rE.js +1 -0
  73. package/web/app/immutable/chunks/Big_dnEI.js +1 -0
  74. package/web/app/immutable/chunks/{CwqpuMd6.js → BjURBDIt.js} +5 -5
  75. package/web/app/immutable/chunks/{CvGYkRzD.js → BlEwAz4v.js} +1 -1
  76. package/web/app/immutable/chunks/{CCwwkuT-.js → BmEcZoA2.js} +1 -1
  77. package/web/app/immutable/chunks/{Duypuh1W.js → BnkmaA34.js} +1 -1
  78. package/web/app/immutable/chunks/BpYNQf9o.js +1 -0
  79. package/web/app/immutable/chunks/{m3ndyWcI.js → BqBqZaGQ.js} +1 -1
  80. package/web/app/immutable/chunks/{DOca_73f.js → BqyYlCY3.js} +1 -1
  81. package/web/app/immutable/chunks/BrIsEZwT.js +1 -0
  82. package/web/app/immutable/chunks/Brqq8vhd.js +6 -0
  83. package/web/app/immutable/chunks/{D6qSHwEu.js → Bxnf75xq.js} +1 -1
  84. package/web/app/immutable/chunks/ByLCbaqp.js +1 -0
  85. package/web/app/immutable/chunks/{DLQToZFF.js → C-OtpXcF.js} +1 -1
  86. package/web/app/immutable/chunks/{BZr7mr7Q.js → C1CDOGnh.js} +2 -2
  87. package/web/app/immutable/chunks/C1osWUn_.js +1 -0
  88. package/web/app/immutable/chunks/{BI7MYBTt.js → C33Dw59E.js} +1 -1
  89. package/web/app/immutable/chunks/{BMm9sGZ6.js → C3NeTp2u.js} +1 -1
  90. package/web/app/immutable/chunks/{DdSX2jjJ.js → C3VPe7p1.js} +1 -1
  91. package/web/app/immutable/chunks/{BYMNRS4c.js → C3oF1SK5.js} +1 -1
  92. package/web/app/immutable/chunks/{CW13jkE8.js → C4HHXGmJ.js} +1 -1
  93. package/web/app/immutable/chunks/{ByCIOkhM.js → C59or46M.js} +1 -1
  94. package/web/app/immutable/chunks/{CL2hu5s-.js → C5SissXF.js} +1 -1
  95. package/web/app/immutable/chunks/{Cr_Liz2C.js → C8XrM-qb.js} +1 -1
  96. package/web/app/immutable/chunks/CA6TS0WC.js +1 -0
  97. package/web/app/immutable/chunks/CAUaU8Wh.js +1 -0
  98. package/web/app/immutable/chunks/CAdgzoaK.js +1 -0
  99. package/web/app/immutable/chunks/{DHNidPtN.js → CCm1BgPl.js} +1 -1
  100. package/web/app/immutable/chunks/CDbQwqu1.js +1 -0
  101. package/web/app/immutable/chunks/CEsW1euQ.js +1 -0
  102. package/web/app/immutable/chunks/{CcPTLJNE.js → CFs6uWH2.js} +1 -1
  103. package/web/app/immutable/chunks/{D6YDmdhV.js → CGcQAX9W.js} +1 -1
  104. package/web/app/immutable/chunks/{CVYjvOCP.js → CHfmHJ17.js} +1 -1
  105. package/web/app/immutable/chunks/{DuLyqtXH.js → CJ_dtcmM.js} +1 -1
  106. package/web/app/immutable/chunks/{CxdrVCtW.js → CNT1n9YR.js} +1 -1
  107. package/web/app/immutable/chunks/CP8WYBBE.js +1 -0
  108. package/web/app/immutable/chunks/{BzbcgIXt.js → CQB76zlc.js} +1 -1
  109. package/web/app/immutable/chunks/{DpMTpLDQ.js → CQbtnalz.js} +1 -1
  110. package/web/app/immutable/chunks/{CWmsRWEf.js → CQyjMIYw.js} +1 -1
  111. package/web/app/immutable/chunks/CSQXURhP.js +1 -0
  112. package/web/app/immutable/chunks/{DnpnDt-B.js → CSg3z6A2.js} +1 -1
  113. package/web/app/immutable/chunks/{BMaybjSV.js → CVa6MqnK.js} +1 -1
  114. package/web/app/immutable/chunks/{BzzDMYz_.js → CXVUfxHv.js} +5 -5
  115. package/web/app/immutable/chunks/{ClTbUKJh.js → CXpFRnSj.js} +1 -1
  116. package/web/app/immutable/chunks/C_EpV6jU.js +2 -0
  117. package/web/app/immutable/chunks/Cb0zVN4i.js +1 -0
  118. package/web/app/immutable/chunks/{BP7CI4Qx.js → CbZEAbX5.js} +1 -1
  119. package/web/app/immutable/chunks/{BqQiAH0O.js → CcaAQlGA.js} +1 -1
  120. package/web/app/immutable/chunks/CgLoJgPR.js +1 -0
  121. package/web/app/immutable/chunks/{_6kx8oz-.js → CguBowm8.js} +1 -1
  122. package/web/app/immutable/chunks/{dEUeoghd.js → ChNPgGKQ.js} +1 -1
  123. package/web/app/immutable/chunks/{B203wRvP.js → Chpqmkx4.js} +1 -1
  124. package/web/app/immutable/chunks/{DbK3CxeL.js → CiIELmgj.js} +1 -1
  125. package/web/app/immutable/chunks/CiKocWhX.js +1 -0
  126. package/web/app/immutable/chunks/{BIoLrYT0.js → CjbCpI18.js} +1 -1
  127. package/web/app/immutable/chunks/{hY1hM8g2.js → Ckp5dOHW.js} +1 -1
  128. package/web/app/immutable/chunks/{D_uYvQAH.js → ClMg3ew2.js} +1 -1
  129. package/web/app/immutable/chunks/{A8JjhnEv.js → Clhk_Z-l.js} +1 -1
  130. package/web/app/immutable/chunks/{DxMV_lzZ.js → CmoBwSCp.js} +1 -1
  131. package/web/app/immutable/chunks/{B5tGFpkq.js → CpHzYkzi.js} +1 -1
  132. package/web/app/immutable/chunks/{p3fN-Vr3.js → Cq2aackv.js} +1 -1
  133. package/web/app/immutable/chunks/Cq8oeEXe.js +1 -0
  134. package/web/app/immutable/chunks/CrHk5l6X.js +1 -0
  135. package/web/app/immutable/chunks/{BxuxDWAX.js → CrjpdU4V.js} +1 -1
  136. package/web/app/immutable/chunks/CswFIiBb.js +1 -0
  137. package/web/app/immutable/chunks/{BLR6m4ri.js → CtDj7gZD.js} +1 -1
  138. package/web/app/immutable/chunks/{7Zs8wY6y.js → CvGEpOsC.js} +1 -1
  139. package/web/app/immutable/chunks/CvHwMug-.js +2 -0
  140. package/web/app/immutable/chunks/{CaxyE6o_.js → Cx31i8ng.js} +1 -1
  141. package/web/app/immutable/chunks/CzcD2H5U.js +2 -0
  142. package/web/app/immutable/chunks/CzdMU9Bu.js +2 -0
  143. package/web/app/immutable/chunks/{CKzqOQI8.js → D-TVq_rK.js} +1 -1
  144. package/web/app/immutable/chunks/{SopK520R.js → D-i7C44m.js} +2 -2
  145. package/web/app/immutable/chunks/{CcuS-fLp.js → D0I9E6A0.js} +1 -1
  146. package/web/app/immutable/chunks/{CoDSLIZp.js → D1CYDv8t.js} +1 -1
  147. package/web/app/immutable/chunks/{FBAcw4MJ.js → D31IcU1_.js} +1 -1
  148. package/web/app/immutable/chunks/{B39Mxie0.js → D3toWTag.js} +8 -8
  149. package/web/app/immutable/chunks/{BFp6vZSQ.js → D492HRYt.js} +1 -1
  150. package/web/app/immutable/chunks/{Vk-IHNCU.js → D7NdkRF-.js} +4 -4
  151. package/web/app/immutable/chunks/{DZNLst19.js → D7dPbXji.js} +1 -1
  152. package/web/app/immutable/chunks/D9jYN6_J.js +1 -0
  153. package/web/app/immutable/chunks/{n58mTCVv.js → D9jvlcNy.js} +1 -1
  154. package/web/app/immutable/chunks/{QE-hjQtm.js → DByMRbHr.js} +1 -1
  155. package/web/app/immutable/chunks/{kjMhmnu9.js → DDySjsub.js} +1 -1
  156. package/web/app/immutable/chunks/{Dnr9ynjr.js → DE8QOEZV.js} +1 -1
  157. package/web/app/immutable/chunks/{Ca05Jmq3.js → DF1uIj8u.js} +1 -1
  158. package/web/app/immutable/chunks/{BYFJ74nm.js → DFs6FJS8.js} +1 -1
  159. package/web/app/immutable/chunks/{CgW9XFcu.js → DGmRhalF.js} +1 -1
  160. package/web/app/immutable/chunks/DH-29Rs_.js +11 -0
  161. package/web/app/immutable/chunks/{BL8utEbB.js → DHGSAfCZ.js} +1 -1
  162. package/web/app/immutable/chunks/DHROL4K5.js +1 -0
  163. package/web/app/immutable/chunks/DKKFIb2l.js +1 -0
  164. package/web/app/immutable/chunks/DKTqwHrN.js +1 -0
  165. package/web/app/immutable/chunks/DMYKSC8W.js +2 -0
  166. package/web/app/immutable/chunks/{-7ARPWgR.js → DMjNjha0.js} +1 -1
  167. package/web/app/immutable/chunks/{C1nHAGLu.js → DNWBkvFP.js} +1 -1
  168. package/web/app/immutable/chunks/DNjgs7AU.js +1 -0
  169. package/web/app/immutable/chunks/{4UXIq5lZ.js → DOB2ATTF.js} +5 -5
  170. package/web/app/immutable/chunks/{BrTyn-oU.js → DOCWMdWU.js} +1 -1
  171. package/web/app/immutable/chunks/{Z8gQAmFb.js → DOKxXiSI.js} +18 -18
  172. package/web/app/immutable/chunks/DOPeTAKk.js +13 -0
  173. package/web/app/immutable/chunks/{PrJr0a2j.js → DPUWJyjX.js} +1 -1
  174. package/web/app/immutable/chunks/{_xNtAuSN.js → DQlH_Wce.js} +1 -1
  175. package/web/app/immutable/chunks/{BIEvH8pu.js → DRZKWEq3.js} +1 -1
  176. package/web/app/immutable/chunks/DTSEdINd.js +2 -0
  177. package/web/app/immutable/chunks/{B7o4NziF.js → DUQV_xq3.js} +1 -1
  178. package/web/app/immutable/chunks/{BNuo4lAs.js → DW9MEQey.js} +1 -1
  179. package/web/app/immutable/chunks/{BL8tUtYB.js → DXnd4CJZ.js} +1 -1
  180. package/web/app/immutable/chunks/DYnCJwSs.js +1 -0
  181. package/web/app/immutable/chunks/DZ3SUe8R.js +1 -0
  182. package/web/app/immutable/chunks/{BmP1Wws6.js → DZyAzxxC.js} +1 -1
  183. package/web/app/immutable/chunks/D_SZXZdx.js +1 -0
  184. package/web/app/immutable/chunks/{BhMsVKL2.js → DcZKw8cP.js} +2 -2
  185. package/web/app/immutable/chunks/{C7tPYy06.js → DccrGg38.js} +22 -22
  186. package/web/app/immutable/chunks/DcwC09tE.js +1 -0
  187. package/web/app/immutable/chunks/{DSbO2mrE.js → DdVIXVso.js} +1 -1
  188. package/web/app/immutable/chunks/DeCAcSD9.js +19 -0
  189. package/web/app/immutable/chunks/DfjJilaB.js +2 -0
  190. package/web/app/immutable/chunks/{XzMpMF29.js → DgHZa_R5.js} +1 -1
  191. package/web/app/immutable/chunks/{DEGVinbl.js → DgwMMJRI.js} +1 -1
  192. package/web/app/immutable/chunks/{BecPnSy0.js → DhHSeQsG.js} +3 -3
  193. package/web/app/immutable/chunks/{Bk8EDJRq.js → Dj8J0eqI.js} +1 -1
  194. package/web/app/immutable/chunks/DjdPlKc4.js +2 -0
  195. package/web/app/immutable/chunks/{finAdq6c.js → DknPpgEW.js} +1 -1
  196. package/web/app/immutable/chunks/Dkr_RXdV.js +1 -0
  197. package/web/app/immutable/chunks/Dkva_evl.js +11 -0
  198. package/web/app/immutable/chunks/{Cf09_YLr.js → Do80Vc58.js} +1 -1
  199. package/web/app/immutable/chunks/{X8W_BfF4.js → Dr45ln4z.js} +1 -1
  200. package/web/app/immutable/chunks/DryyHkNv.js +1 -0
  201. package/web/app/immutable/chunks/{BdkEw9JP.js → DtAyUyC0.js} +1 -1
  202. package/web/app/immutable/chunks/Dto-4yb7.js +1 -0
  203. package/web/app/immutable/chunks/{CSdIXJpO.js → DukmxKgk.js} +1 -1
  204. package/web/app/immutable/chunks/{BwSA3fCS.js → DwA_Z_f6.js} +1 -1
  205. package/web/app/immutable/chunks/{Drt5qRI8.js → Dx3sZmi8.js} +1 -1
  206. package/web/app/immutable/chunks/{CcXuSxXv.js → DxBGs1BP.js} +1 -1
  207. package/web/app/immutable/chunks/{CeswpNyE.js → DzGNgfrZ.js} +1 -1
  208. package/web/app/immutable/chunks/DzKYjnRy.js +2 -0
  209. package/web/app/immutable/chunks/{HvBMlLJP.js → DzejiLWr.js} +3 -3
  210. package/web/app/immutable/chunks/{BBasLmtQ.js → G_wYaln-.js} +1 -1
  211. package/web/app/immutable/chunks/GzTl4Sb0.js +1 -0
  212. package/web/app/immutable/chunks/IRbjhecv.js +8 -0
  213. package/web/app/immutable/chunks/OPvMR-5p.js +1 -0
  214. package/web/app/immutable/chunks/{gURPJ1oX.js → SVZRr24P.js} +1 -1
  215. package/web/app/immutable/chunks/{DYmPPjiq.js → T9tywf_e.js} +1 -1
  216. package/web/app/immutable/chunks/TL85KYB9.js +1 -0
  217. package/web/app/immutable/chunks/{BgX4ALX_.js → U6cHmbYS.js} +3 -3
  218. package/web/app/immutable/chunks/{DLqztIqC.js → V9qci_dz.js} +1 -1
  219. package/web/app/immutable/chunks/{BESEELLz.js → W7sv3DY6.js} +1 -1
  220. package/web/app/immutable/chunks/{dR3YHGeF.js → WbTmlouE.js} +1 -1
  221. package/web/app/immutable/chunks/{CW41MFVu.js → Y4VeEPHl.js} +1 -1
  222. package/web/app/immutable/chunks/{BVviSubD.js → YYacqJ9a.js} +1 -1
  223. package/web/app/immutable/chunks/{Q-Oe5gQg.js → Zl17pAXX.js} +1 -1
  224. package/web/app/immutable/chunks/{BVt_T8ao.js → aQy6qVNs.js} +1 -1
  225. package/web/app/immutable/chunks/{C3SYquhf.js → ahX1JzRb.js} +1 -1
  226. package/web/app/immutable/chunks/{B0biUQQF.js → asQ_ruFQ.js} +1 -1
  227. package/web/app/immutable/chunks/{Cc_BIXdP.js → bKyElw3h.js} +1 -1
  228. package/web/app/immutable/chunks/cATI0wnI.js +1 -0
  229. package/web/app/immutable/chunks/ciTxbtqU.js +1 -0
  230. package/web/app/immutable/chunks/d-Ep-sfP.js +1 -0
  231. package/web/app/immutable/chunks/dBZS3-kp.js +3 -0
  232. package/web/app/immutable/chunks/{B1Zj1zGG.js → eNHX5lds.js} +1 -1
  233. package/web/app/immutable/chunks/etVaBLxV.js +6 -0
  234. package/web/app/immutable/chunks/euZ22sAu.js +1 -0
  235. package/web/app/immutable/chunks/{COrK0goa.js → ftma9Ybn.js} +1 -1
  236. package/web/app/immutable/chunks/fzs92dqr.js +1 -0
  237. package/web/app/immutable/chunks/i2sZiDEq.js +1 -0
  238. package/web/app/immutable/chunks/iKgBWWl-.js +2 -0
  239. package/web/app/immutable/chunks/{BRww0MVx.js → jlJQSpH6.js} +1 -1
  240. package/web/app/immutable/chunks/{DC_750GV.js → ouMKS3MA.js} +1 -1
  241. package/web/app/immutable/chunks/{jn3Rypn_.js → s0TWEExr.js} +1 -1
  242. package/web/app/immutable/chunks/{XIXbmV8F.js → txy0Txom.js} +1 -1
  243. package/web/app/immutable/chunks/{CYf2hryc.js → wTgWcOy1.js} +1 -1
  244. package/web/app/immutable/chunks/{BIlaJXMS.js → z-RLr2Z1.js} +1 -1
  245. package/web/app/immutable/chunks/zGl9gaL0.js +1 -0
  246. package/web/app/immutable/chunks/{DXCE75Ih.js → z_Tdw9N5.js} +1 -1
  247. package/web/app/immutable/entry/app.BXnRxWvG.js +4 -0
  248. package/web/app/immutable/entry/start.BX3EKd8C.js +1 -0
  249. package/web/app/immutable/nodes/0.CFk1FXLg.js +1 -0
  250. package/web/app/immutable/nodes/1.Bd67D1tA.js +1 -0
  251. package/web/app/immutable/nodes/10.CTZ0L3wZ.js +41 -0
  252. package/web/app/immutable/nodes/11.CH_h0WbH.js +1 -0
  253. package/web/app/immutable/nodes/12.DhihsAtw.js +1 -0
  254. package/web/app/immutable/nodes/{13.CscEwLVK.js → 13.B727xJXs.js} +5 -5
  255. package/web/app/immutable/nodes/14.CgITgBOZ.js +3 -0
  256. package/web/app/immutable/nodes/15.CCzIPJGf.js +1 -0
  257. package/web/app/immutable/nodes/{16.Cfgb0nOQ.js → 16.CbtJfPHZ.js} +2 -2
  258. package/web/app/immutable/nodes/17.CelzCwXF.js +1 -0
  259. package/web/app/immutable/nodes/{17.DFAwhIn_.js → 18.fqvApY-g.js} +2 -2
  260. package/web/app/immutable/nodes/2.t-1b60vK.js +13 -0
  261. package/web/app/immutable/nodes/3.4L0YPvZL.js +2 -0
  262. package/web/app/immutable/nodes/4.BLQgcpcU.js +1 -0
  263. package/web/app/immutable/nodes/5.Bp_OiOTI.js +5 -0
  264. package/web/app/immutable/nodes/6.CcuwCBp4.js +1 -0
  265. package/web/app/immutable/nodes/7.B-TRUT7o.js +1 -0
  266. package/web/app/immutable/nodes/{8.bG-TRaEn.js → 8.CaG5gby5.js} +9 -9
  267. package/web/app/immutable/nodes/{9.CBynOn0l.js → 9.DosMxTmg.js} +17 -17
  268. package/web/app/version.json +1 -1
  269. package/web/index.html +28 -21
  270. package/web/app/immutable/chunks/-6JGlnE4.js +0 -1
  271. package/web/app/immutable/chunks/-SwunqO3.js +0 -1
  272. package/web/app/immutable/chunks/3G6kqi6m.js +0 -19
  273. package/web/app/immutable/chunks/5MLUIYhU.js +0 -1
  274. package/web/app/immutable/chunks/B-jmn73b.js +0 -2
  275. package/web/app/immutable/chunks/B1C_jfbV.js +0 -1
  276. package/web/app/immutable/chunks/B65N3w4u.js +0 -1
  277. package/web/app/immutable/chunks/B6iA2dvO.js +0 -1
  278. package/web/app/immutable/chunks/BDACnpyW.js +0 -1
  279. package/web/app/immutable/chunks/BO67r0G6.js +0 -4
  280. package/web/app/immutable/chunks/BP5uyQTv.js +0 -18
  281. package/web/app/immutable/chunks/BPvruhgT.js +0 -13
  282. package/web/app/immutable/chunks/BQEszNiH.js +0 -1
  283. package/web/app/immutable/chunks/BVPvh88-.js +0 -1
  284. package/web/app/immutable/chunks/BXeiKdwz.js +0 -1
  285. package/web/app/immutable/chunks/BY-x4QLt.js +0 -1
  286. package/web/app/immutable/chunks/BZcpShp8.js +0 -9
  287. package/web/app/immutable/chunks/BbNk8c_P.js +0 -1
  288. package/web/app/immutable/chunks/BdD2ADMz.js +0 -1
  289. package/web/app/immutable/chunks/BlZYlbA9.js +0 -1
  290. package/web/app/immutable/chunks/BoCZH6mk.js +0 -1
  291. package/web/app/immutable/chunks/BsRwjCPo.js +0 -1
  292. package/web/app/immutable/chunks/BtXLgEvw.js +0 -6
  293. package/web/app/immutable/chunks/C4pN30lR.js +0 -2
  294. package/web/app/immutable/chunks/C52Qm4vO.js +0 -1
  295. package/web/app/immutable/chunks/C5AlgdZ0.js +0 -1
  296. package/web/app/immutable/chunks/CDQzU1Fp.js +0 -1
  297. package/web/app/immutable/chunks/CEQZVenN.js +0 -6
  298. package/web/app/immutable/chunks/CFduDdmx.js +0 -1
  299. package/web/app/immutable/chunks/CN-2rfdx.js +0 -1
  300. package/web/app/immutable/chunks/CRQGIXhv.js +0 -1
  301. package/web/app/immutable/chunks/CbCgON3R.js +0 -1
  302. package/web/app/immutable/chunks/CcvLGgrc.js +0 -1
  303. package/web/app/immutable/chunks/CdZRK319.js +0 -408
  304. package/web/app/immutable/chunks/Cfj3Lc6y.js +0 -1
  305. package/web/app/immutable/chunks/Ck9ZyE1n.js +0 -2
  306. package/web/app/immutable/chunks/CoLl8pQb.js +0 -1
  307. package/web/app/immutable/chunks/Cq0XJSNB.js +0 -1
  308. package/web/app/immutable/chunks/CuhrgDBI.js +0 -1
  309. package/web/app/immutable/chunks/CvWyDJGm.js +0 -1
  310. package/web/app/immutable/chunks/D5jO2tMO.js +0 -1
  311. package/web/app/immutable/chunks/DATvyyct.js +0 -1
  312. package/web/app/immutable/chunks/DBN9LmpO.js +0 -2
  313. package/web/app/immutable/chunks/DIP3ex32.js +0 -1
  314. package/web/app/immutable/chunks/DKBMY4SO.js +0 -2
  315. package/web/app/immutable/chunks/DPHzX3VR.js +0 -1
  316. package/web/app/immutable/chunks/DPLUjB3C.js +0 -11
  317. package/web/app/immutable/chunks/DTQYcznv.js +0 -1
  318. package/web/app/immutable/chunks/DU8kuP6M.js +0 -1
  319. package/web/app/immutable/chunks/DZmwTozc.js +0 -1
  320. package/web/app/immutable/chunks/DbGgneou.js +0 -3
  321. package/web/app/immutable/chunks/DbSsu2ZZ.js +0 -2
  322. package/web/app/immutable/chunks/Dc64E_SR.js +0 -1
  323. package/web/app/immutable/chunks/Ddw98WmY.js +0 -8
  324. package/web/app/immutable/chunks/DdxviGOy.js +0 -2
  325. package/web/app/immutable/chunks/De4z9gHo.js +0 -1
  326. package/web/app/immutable/chunks/DeBZgR-l.js +0 -2
  327. package/web/app/immutable/chunks/Dj_XMlva.js +0 -1
  328. package/web/app/immutable/chunks/Dk6iNNLu.js +0 -1
  329. package/web/app/immutable/chunks/DlN76n90.js +0 -1
  330. package/web/app/immutable/chunks/DlxIHej5.js +0 -1
  331. package/web/app/immutable/chunks/DoBQR8Vx.js +0 -4
  332. package/web/app/immutable/chunks/DtTm3-vx.js +0 -2
  333. package/web/app/immutable/chunks/DtftInpc.js +0 -1
  334. package/web/app/immutable/chunks/DvCoPCgB.js +0 -2
  335. package/web/app/immutable/chunks/DyASeQ3m.js +0 -2
  336. package/web/app/immutable/chunks/Ek5W6pp5.js +0 -1
  337. package/web/app/immutable/chunks/H60Tbroe.js +0 -1
  338. package/web/app/immutable/chunks/I2ER02OI.js +0 -2
  339. package/web/app/immutable/chunks/JzAjTSJP.js +0 -1
  340. package/web/app/immutable/chunks/S3l_n0fN.js +0 -1
  341. package/web/app/immutable/chunks/UYKGMt9K.js +0 -1
  342. package/web/app/immutable/chunks/VD4zAAAW.js +0 -1
  343. package/web/app/immutable/chunks/domP6Duj.js +0 -1
  344. package/web/app/immutable/chunks/exKuue_y.js +0 -2
  345. package/web/app/immutable/chunks/h4-gUr-R.js +0 -1
  346. package/web/app/immutable/chunks/oPIupn-5.js +0 -1
  347. package/web/app/immutable/chunks/rWjPMnbJ.js +0 -1
  348. package/web/app/immutable/chunks/uo2kAWaz.js +0 -1
  349. package/web/app/immutable/entry/app.B3U21m46.js +0 -4
  350. package/web/app/immutable/entry/start.BmptZn82.js +0 -1
  351. package/web/app/immutable/nodes/0.CWw0htIy.js +0 -1
  352. package/web/app/immutable/nodes/1.CwxWqCh2.js +0 -1
  353. package/web/app/immutable/nodes/10.DsQSJA4U.js +0 -41
  354. package/web/app/immutable/nodes/11.C9N9_Xb9.js +0 -1
  355. package/web/app/immutable/nodes/12.CqRfopX4.js +0 -1
  356. package/web/app/immutable/nodes/14.CGbyYvxu.js +0 -3
  357. package/web/app/immutable/nodes/15.BWtoiI44.js +0 -1
  358. package/web/app/immutable/nodes/2.DTAk55p0.js +0 -13
  359. package/web/app/immutable/nodes/3.DGPBblLK.js +0 -2
  360. package/web/app/immutable/nodes/4.ReQ1u5-M.js +0 -1
  361. package/web/app/immutable/nodes/5.Dp2B2lHQ.js +0 -5
  362. package/web/app/immutable/nodes/6.BpkWHnQJ.js +0 -1
  363. package/web/app/immutable/nodes/7.C7_Pil7L.js +0 -1
  364. /package/web/app/immutable/assets/{17.Cznk2DRv.css → 18.Cznk2DRv.css} +0 -0
@@ -0,0 +1,13 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/etVaBLxV.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/D9jYN6_J.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/BfbZn9QX.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/V9qci_dz.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/Cx31i8ng.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CEsW1euQ.js","/app/immutable/chunks/Dkva_evl.js","/app/immutable/chunks/DknPpgEW.js","/app/immutable/chunks/C_EpV6jU.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/CpHzYkzi.js","/app/immutable/chunks/aQy6qVNs.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DzGNgfrZ.js","/app/immutable/chunks/DzejiLWr.js","/app/immutable/chunks/BaYeKXL3.js","/app/immutable/chunks/DgHZa_R5.js","/app/immutable/chunks/BcbQZUsh.js","/app/immutable/chunks/U6cHmbYS.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/DRZKWEq3.js","/app/immutable/chunks/DGmRhalF.js","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/DHGSAfCZ.js","/app/immutable/chunks/DF1uIj8u.js","/app/immutable/chunks/BWAGtvpD.js","/app/immutable/chunks/7eL9Pgig.js","/app/immutable/chunks/0qEvU7Aj.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/Bgw3O9rE.js","/app/immutable/chunks/DZyAzxxC.js","/app/immutable/chunks/OPvMR-5p.js","/app/immutable/chunks/B4gIvcP2.js","/app/immutable/chunks/CQbtnalz.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/CAUaU8Wh.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/asQ_ruFQ.js","/app/immutable/chunks/DNWBkvFP.js","/app/immutable/chunks/A8_BT67P.js","/app/immutable/chunks/C3NeTp2u.js","/app/immutable/chunks/DTSEdINd.js","/app/immutable/chunks/C-OtpXcF.js","/app/immutable/chunks/D-i7C44m.js","/app/immutable/chunks/ChNPgGKQ.js"])))=>i.map(i=>d[i]);
2
+ import{Iz as a,nH as I,nx as g,nw as k,m2 as Z,qr as Q,i6 as ee,vf as He,jz as $e,CZ as Be,uM as Ve,nO as Ce,m5 as te,q1 as ze,m4 as Ke,lJ as Je,aM as le,lT as Ye,lZ as Xe,Fx as Ze,CX as Qe,zj as et,nM as tt,m7 as st}from"./BfbZn9QX.js";import{b as rt,p as nt,F as at,z as ot}from"./C3NeTp2u.js";import{aX as V,aT as se,cD as v,cG as ue,co as ct,dr as M,aU as it,cE as lt,dl as ut,o as de,O as dt,dn as pt,c3 as mt,ak as ht,au as ft,ad as St,bC as gt,cA as yt,cY as bt,cm as kt,bD as wt}from"./asQ_ruFQ.js";import{x as It}from"./A8_BT67P.js";import{ah as _t,cN as vt,aX as Ct,av as At,p as Et}from"./ChNPgGKQ.js";import{f as Rt}from"./etVaBLxV.js";import{bo as p,_ as q}from"./D9jYN6_J.js";import{i as w}from"./DNWBkvFP.js";import{I as Tt}from"./CEsW1euQ.js";import{L as P}from"./BDtb6AfX.js";import{an as Pt,k as Ot,h as O,ag as Wt,t as Nt}from"./D-i7C44m.js";import{c as xt}from"./ChTqQfQN.js";import{w as Mt}from"./DRZKWEq3.js";import{r as x}from"./uXuxG9cN.js";import{aN as Lt,O as Dt,R as Ut,x as jt}from"./DF1uIj8u.js";import{M as pe,O as me,h as Ae}from"./Dkva_evl.js";import{d as Gt,o as he,l as fe,s as Se}from"./CIyUrgF0.js";const ar=a.createSelector(e=>e.workspaceShare.open),or=a.createSelector(e=>e.workspaceShare.workspaceId),cr=a.createSelector(e=>{const{open:t,workspaceId:s,session:r}=e.workspaceShare;return t&&s?{workspaceId:s,session:r}:null}),re=a.createSelector(e=>{const{open:t,workspaceId:s,withheld:r}=e.workspaceShare;return!t||!s||r||I(e.workspaceShare,s).inviteWithheld?!1:V.select(e,s)}),ir=a.createSelector(e=>e.workspaceShare.createRequest),lr=a.createSelector(e=>e.workspaceShare.mutationGeneration),ur=a.createSelector(e=>e.workspaceShare.workspaceTitle),dr=a.createSelector(e=>g(e.workspaceShare.members)),pr=a.createSelector((e,t)=>k(e.workspaceShare.members,t)!==void 0),mr=a.createSelector(e=>e.workspaceShare.open&&e.workspaceShare.workspaceId&&!e.workspaceShare.withheld&&!I(e.workspaceShare,e.workspaceShare.workspaceId).inviteWithheld?g(e.workspaceShare.invites).filter(t=>t.workspaceId===e.workspaceShare.workspaceId):[]),hr=a.createSelector(e=>{const{principals:t,members:s}=e.workspaceShare;return g(t).filter(r=>!k(s,r.principalId)&&(r.hostRole===void 0||r.hostRole==="guest"))}),fr=a.createSelector(e=>e.workspaceShare.guestCount),Sr=a.createSelector(e=>e.workspaceShare.guestLimit),gr=a.createSelector(e=>e.workspaceShare.loadStatus==="loading"),yr=a.createSelector(e=>e.workspaceShare.loadError),br=a.createSelector(e=>e.workspaceShare.creating),kr=a.createSelector(e=>e.workspaceShare.createError),wr=a.createSelector(e=>e.workspaceShare.createdLink),Ir=a.createSelector(e=>e.workspaceShare.revokingInviteId),_r=a.createSelector(e=>e.workspaceShare.removingPrincipalId),vr=a.createSelector(e=>e.workspaceShare.addingPrincipalId),Cr=a.createSelector(e=>e.workspaceShare.actionError),Ar=a.createSelector((e,t)=>I(e.workspaceShare,t).loadStatus!=="idle"),Er=a.createSelector((e,t)=>t?g(I(e.workspaceShare,t).members):[]),Rr=a.createSelector((e,t)=>!!t&&!I(e.workspaceShare,t).withheld&&V.select(e,t));a.createSelector((e,t)=>!!t&&I(e.workspaceShare,t).withheld);const Tr=a.createSelector((e,t)=>t?I(e.workspaceShare,t).removingPrincipalId:null);a.createSelector((e,t)=>t?I(e.workspaceShare,t).removeError:null);const Pr=a.createSelector(e=>e.workspaceShare.integrationAuth),Or=a.createSelector(e=>e.workspaceShare.ownerForgeMissing),z=a.createSelector(e=>re.select(e)&&se.select(e)&&e.workspaceShare.sharingContext!==null&&e.workspaceShare.sharingContext===v.select(e)),qt=a.createSelector(e=>z.select(e)?e.workspaceShare.sharingEnabled:null),Wr=a.createSelector(e=>z.select(e)&&e.workspaceShare.sharingChecking),Ft=a.createSelector(e=>z.select(e)&&e.workspaceShare.sharingEnabling),Ht=a.createSelector(e=>z.select(e)?e.workspaceShare.sharingError:null),Nr=a.createSelector(e=>{if(!re.select(e))return!1;const t=e.workspaceShare;return!t.integrationAuthLoaded||se.select(e)&&qt.select(e)===null&&Ht.select(e)===null&&!Ft.select(e)?!0:g(t.members).length===0&&(t.loadStatus==="idle"||t.loadStatus==="loading")}),xr=a.createSelector(e=>re.select(e)&&!!e.workspaceShare.workspaceId&&(se.select(e)||(ge.select(e)?ge.select(e)===ue.select(e)?.principal.id:ct.select(e,e.workspaceShare.workspaceId)))&&ue.select(e)?.capabilities.workspaceGuestRoles===!0),Mr=a.createSelector(e=>e.workspaceShare.pendingRolePrincipalIds),Lr=a.createSelector(e=>e.workspaceShare.roleErrors),ge=a.createSelector(e=>{const t=e.workspaceShare.workspaceId;return t?M.select(e,t)?.ownerPrincipalId??null:null}),$t=a.createSelector(e=>{const t=v.select(e),s=rt.select(e);return{context:t,workspaceIds:t?s.filter(r=>V.select(e,r)):[]}}),Dr=a.createSelector((e,t)=>{const s=I(e.workspaceShare,t);return{context:s.inviteContext,generation:s.inviteGeneration,withheld:s.inviteWithheld}}),Bt=[],Vt=a.createSelector((e,t)=>{const s=v.select(e),r=I(e.workspaceShare,t);if(!s||r.inviteContext!==s||r.inviteWithheld||!V.select(e,t))return Bt;const n=e.presence?.context===s?e.presence.members[t]:void 0,o=new Set(n?g(n).flatMap(i=>i.identity?[JSON.stringify([i.identity.provider,i.identity.host.toLowerCase(),i.identity.externalUserId])]:[]):[]),c=new Set;return g(e.workspaceShare.invites).filter(i=>{if(i.workspaceId!==t||!i.pinLogin?.trim()||i.revokedAt||i.redeemedAt&&!i.reusable||!(Date.parse(i.expiresAt)>r.inviteReceivedAt))return!1;const l=i.pinIdentity??(i.pinGithubUserId!==void 0?{provider:"github",host:"github.com",externalUserId:String(i.pinGithubUserId)}:null);if(n&&i.redeemedByPrincipalId&&k(n,i.redeemedByPrincipalId))return!1;if(!l)return!0;const m=JSON.stringify([l.provider,l.host.toLowerCase(),l.externalUserId]);return o.has(m)||c.has(m)?!1:(c.add(m),!0)})}),Ur=a.createSelector(e=>{const s=$t.select(e).workspaceIds.flatMap(r=>Vt.select(e,r).map(n=>Date.parse(n.expiresAt)));return s.length?Math.min(...s):null});function jr(e){return Object.entries(e).some(([t,s])=>s.available&&It(t,s.authenticated))}const Gr=a.createSelector(e=>e.hostRequirements.git),qr=a.createSelector(e=>e.hostRequirements.node),Fr=a.createSelector(e=>e.hostRequirements.gh),Hr=a.createSelector(e=>e.hostRequirements.checking),$r=a.createSelector(e=>e.hostRequirements.hasCheckedOnce);function Ee(e){const t=e.gitlabAuth?.statusFailed===!0;return _t({labsEnabled:e.userPreferences?.labsPlainFolderWorkspacesEnabled===!0,protocolVersion:e.daemonHealth?.stats?.protocolVersion,githubConnected:e.githubAuth?.isAuthenticated===!0,githubSettled:e.githubAuth?.statusSettled===!0,githubFailed:e.githubAuth?.statusFailed===!0,gitlabConnected:e.gitlabAuth?.isConfigured===!0,gitlabSettled:e.gitlabAuth?.statusReady===!0||t,gitlabFailed:t})}const Br=a.createSelector(Ee),Vr=a.createSelector(e=>e.hostRequirements.node.ok&&(e.hostRequirements.git.available||Ee(e))),zr=a.createSelector(e=>{const t=e.hostRequirements.providerCli;return t?{context:t.context,warnings:g(t.warnings)}:void 0}),Kr="22.0.0";function zt(e){return e.length>15?`${e.slice(0,15)}…`:e}function H(e){return e.name?.trim()||zt(e.clientId)}function Jr(e){const{eligibleClients:t,ownClientId:s,driving:r,pinnedClientId:n}=e,o=t.find(l=>l.clientId===s&&l.connected),c=r!==null&&!r.connected,i=!r||r.clientId===s;return{mode:c?"offline":i?"here":"elsewhere",hostName:r?H(r):o?H(o):"",canSwitchHere:!!(o&&n!==s)}}const Yr=a.createSelector(e=>e?.browserClients?.ownClientId??null),Xr=a.createSelector(e=>e?.browserClients?.ownClientIdConfirmed===!0);a.createSelector(e=>g(e.browserClients.liveClients));const Zr=a.createSelector((e,t)=>t?e?.browserClients?.byWorkspaceId[t]?.liveClientsLoaded??!1:e?.browserClients?.liveClientsLoaded??!1);a.createSelector((e,t)=>k(e.browserClients.liveClients,t));const Qr=a.createSelector((e,t)=>(e?.browserClients?.byWorkspaceId[t]??Z).browserClient),en=a.createSelector((e,t)=>{const s=e?.browserClients?.byWorkspaceId[t];return s?.pinnedClientId!==void 0||s?.browserClient!=null});function X(e){const t=e.prettyHostname??e.hostname??e.name;return{clientId:e.clientId,...t!==void 0?{name:t}:{},connected:!0}}const tn=a.createSelector((e,t)=>{const s=e?.browserClients??Q,r=s.byWorkspaceId[t]?.liveClients??ee(),n=g(r).filter(y=>y.capabilities.browserExec===!0).map(X),o=(s.byWorkspaceId[t]??Z).browserClient,c=s.byWorkspaceId[t],i=c?.pinnedClientId!==void 0?c.pinnedClientId:o?.source==="workspace"?o.clientId:null,l=i===null?Rt(o):void 0;let m=null;if(o?.resolved){const y=k(r,o.resolved.clientId);m=y?X(y):{...o.resolved,connected:!0}}else o?.source==="workspace"?m={clientId:o.clientId,connected:!1}:l&&(m={clientId:l.clientId,connected:!1});return{eligibleClients:n,ownClientId:s.ownClientId??"",routedVia:o?.source==="default"?l?.via:void 0,driving:m,pinnedClientId:i}}),sn=a.createSelector((e,t)=>{const s=e?.browserClients??Q;if(!s.ownClientId||!s.ownClientIdConfirmed)return!1;const r=s.byWorkspaceId[t]?.liveClients??ee(),n=k(r,s.ownClientId);return n!==void 0&&n.capabilities.browserExec!==!0}),rn=a.createSelector((e,t,s)=>{const r=e?.browserClients??Q,n=s?r.byWorkspaceId[s]?.liveClients??ee():r.liveClients,o=s?r.byWorkspaceId[s]?.liveClientsLoaded:r.liveClientsLoaded,c=k(n,t);return c?{name:H(X(c)),connected:!0}:{name:H({clientId:t}),connected:!o}}),nn=a.createSelector((e,t)=>(e?.browserClients?.byWorkspaceId[t]??Z).tabsRevision),an=a.createSelector(e=>Object.entries(e.browserClients?.byWorkspaceId??{}).filter(([,t])=>Object.keys(t.consumers??{}).length>0).map(([t])=>t)),N=new Map;function on(e,t){return N.set(e,t),()=>{N.get(e)===t&&N.delete(e)}}async function cn(e){const t=N.get(e);return t?t():null}function ln(e){N.delete(e)}const Re="From repo config",un="repo-config";function dn(e,t){return t==="repo-config"?p.workspace_setupScriptEditor_fromRepoConfig_name():t==="custom"?p.workspace_setupScriptEditor_custom_name():e}function Te(e){if(!e||typeof e!="object"||Array.isArray(e))return{setupScript:null};const t=e.setupScript;return{setupScript:typeof t=="string"&&t.trim().length>0?t:null}}function Kt(e){let t;try{t=JSON.parse(e)}catch{return null}return Te(t).setupScript}async function pn(e){if(!e)return null;try{const t=await w(Tt.SETUP_SCRIPTS.READ_REPO_CONFIG,{repoPath:e}),s=t?.success?t.data?.content:null;return typeof s=="string"?Kt(s):null}catch{return null}}async function mn(e,t,s){if(!e||!t)return null;try{const{appClient:r}=await q(async()=>{const{appClient:o}=await import("./etVaBLxV.js").then(c=>c.o);return{appClient:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]),import.meta.url),n=await r.integrations.githubRepoConfig(e,t,s);return Te(n.config).setupScript}catch{return null}}function hn(e){const t=e.setupScript.trim();return t?e.setupScriptNameSource==="repo-config"&&e.setupScriptName===Re&&e.repoConfigScriptRepo===e.repoPath&&t===(e.repoConfigScript??"").trim()?void 0:t:e.explicitChoice?"cd .":void 0}function fn(e){const{repoConfigScript:t,lastUsed:s,genericTemplate:r}=e;return t?{content:t,name:Re,source:"repo-config"}:s?{content:s.content,name:s.nameSource==="repo-config"?"Custom":s.name,source:s.nameSource==="repo-config"?"custom":s.nameSource??"named"}:r?{content:r.content,name:r.name,source:"named"}:{content:"",name:"Custom",source:"custom"}}const Pe="setup-scripts:last-used-by-repo",Oe="setup-scripts:recent-by-repo",$=20,We=10,Jt=["repo-config","custom","named"];function ne(e,t){return t?`${e}\0${t}`:e}function Ne(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e;return typeof t.name=="string"&&typeof t.content=="string"&&t.content.trim().length>0&&typeof t.usedAt=="string"&&(t.nameSource===void 0||Jt.includes(t.nameSource))}function B(){try{const e=localStorage.getItem(Pe);if(!e)return{};const t=JSON.parse(e);if(!t||typeof t!="object"||Array.isArray(t))return{};const s={};for(const[r,n]of Object.entries(t))r&&Ne(n)&&(s[r]=n);return s}catch{return{}}}function xe(){try{const e=localStorage.getItem(Oe);if(!e)return{};const t=JSON.parse(e);if(!t||typeof t!="object"||Array.isArray(t))return{};const s={};for(const[r,n]of Object.entries(t)){if(!r||!Array.isArray(n))continue;const o=n.filter(Ne);o.length>0&&(s[r]=o)}return s}catch{return{}}}function Yt(e,t){return e.name===t.name&&(e.nameSource??"named")===(t.nameSource??"named")&&e.content.trim()===t.content.trim()}function Me(e){return[...e].sort((t,s)=>s.usedAt.localeCompare(t.usedAt))}function Le(e){const t=[];for(const s of e)t.some(r=>Yt(r,s))||t.push(s);return t}function Sn(e,t){if(!e)return[];const s=ne(e,t),r=xe()[s]??[],n=B()[s];return Le(Me(n?[...r,n]:r)).slice(0,We).map(c=>({name:c.name,content:c.content,nameSource:c.nameSource??"named",usedAt:c.usedAt}))}function Xt(e,t,s){try{const r=xe(),n=r[e]??(s?[s]:[]);r[e]=Le([t,...Me(n)]).slice(0,We);const o=Object.entries(r);o.length>$&&(o.sort(([,c],[,i])=>i[0].usedAt.localeCompare(c[0].usedAt)),o.length=$),localStorage.setItem(Oe,JSON.stringify(Object.fromEntries(o)))}catch{}}function gn(e,t){if(!e)return;const s=B()[ne(e,t)];return s?{name:s.name,content:s.content,nameSource:s.nameSource??"named"}:void 0}function yn(e,t,s){const r=t.content.trim();if(!e||!r)return;const n=ne(e,s),o={name:t.name,content:r,usedAt:new Date().toISOString(),nameSource:t.nameSource??"named"};Xt(n,o,B()[n]);try{const c=B();c[n]=o;const i=Object.entries(c);i.length>$&&(i.sort(([,l],[,m])=>m.usedAt.localeCompare(l.usedAt)),i.length=$),localStorage.setItem(Pe,JSON.stringify(Object.fromEntries(i)))}catch{}}const Zt={async isAuthenticated(e){try{return await w(P.IS_AUTHENTICATED,...e===void 0?[]:[{workspaceId:e}])}catch{return!1}},async getAuthState(e=!1,t){try{return await w(P.GET_AUTH_STATE,e,...t===void 0?[]:[{workspaceId:t}])}catch{return{isAuthenticated:!1,requiresDaemonAuth:!0}}},async getStatus(e){try{return await w(P.GET_STATUS,...e===void 0?[]:[{workspaceId:e}])}catch{return{isConfigured:!1,oauthUrl:""}}},async fetchMyIssues(e="assigned",t){return(await this.fetchMyIssuesPage(e,t===void 0?void 0:{workspaceId:t})).issues},async fetchMyIssuesPage(e="assigned",t){try{return await w(P.FETCH_MY_ISSUES,e,t)}catch{return{issues:[],nextToken:null}}},async searchIssues(e,t){return(await this.searchIssuesPage(e,t===void 0?void 0:{workspaceId:t})).issues},async searchIssuesPage(e,t){try{return await w(P.SEARCH_ISSUES,e,t)}catch{return{issues:[],nextToken:null}}}},bn=Object.freeze(Object.defineProperty({__proto__:null,linearAuthClient:Zt},Symbol.toStringTag,{value:"Module"})),_={IS_AUTHENTICATED:"sentry-auth:is-authenticated",SAVE_CONFIG:"sentry-auth:save-config",GET_AUTH_STATE:"sentry-auth:get-auth-state",LOGOUT:"sentry-auth:logout",FETCH_PROJECTS:"sentry-auth:fetch-projects",FETCH_ISSUES:"sentry-auth:fetch-issues",SEARCH_ISSUES:"sentry-auth:search-issues",GET_ISSUE:"sentry-auth:get-issue"},Qt={async isAuthenticated(e){try{return await w(_.IS_AUTHENTICATED,...e===void 0?[]:[{workspaceId:e}])}catch{return!1}},async saveConfig(e,t){return await w(_.SAVE_CONFIG,{organization:e,apiToken:t})},async getAuthState(e){try{return await w(_.GET_AUTH_STATE,...e===void 0?[]:[{workspaceId:e}])}catch{return{isAuthenticated:!1}}},async logout(){await w(_.LOGOUT)},async fetchProjects(e){try{return await w(_.FETCH_PROJECTS,...e===void 0?[]:[{workspaceId:e}])}catch{return[]}},async fetchIssues(e){return(await this.fetchIssuesPage(e)).issues},async fetchIssuesPage(e){try{return await w(_.FETCH_ISSUES,e)}catch{return{issues:[],nextToken:null}}},async searchIssues(e,t){return(await this.searchIssuesPage(e,t)).issues},async searchIssuesPage(e,t,s){try{return await w(_.SEARCH_ISSUES,{query:e,project:t,...s})}catch{return{issues:[],nextToken:null}}},async getIssue(e,t){try{return await w(_.GET_ISSUE,e,...t===void 0?[]:[{workspaceId:t}])}catch{return null}}},kn=Object.freeze(Object.defineProperty({__proto__:null,sentryAuthClient:Qt},Symbol.toStringTag,{value:"Module"})),ae=a.createSelector(e=>{const t=v.select(e);return!t||!it.select(e)?null:JSON.stringify([t,e.hostExecution.generation,e.repositoryCheckout.authorityGeneration,e.gitlabAuth.host,e.gitlabAuth.instanceBaseUrl,e.gitlabAuth.statusReady,e.gitlabAuth.isConfigured,e.gitlabAuth.user])}),K=a.createSelector((e,t)=>k(e.repositoryCheckout.forms,t)??null),wn=a.createSelector((e,t)=>{const s=K.select(e,t);return s?.admission===ae.select(e)&&s.status==="ready"?g(s.projects):[]}),In=a.createSelector((e,t)=>{const s=K.select(e,t);return s?.admission===ae.select(e)&&s.status==="ready"?g(s.branches):[]}),es=a.createSelector((e,t)=>{const s=K.select(e,t);return!s||s.status!=="ready"||s.admission!==ae.select(e)||!s.capture||!s.project||!s.branch?null:{checkoutId:s.capture.checkoutId,revision:s.capture.revision,projectPath:s.project.projectPath,branch:s.branch.name,commitSha:s.branch.commitSha,mode:s.mode}}),_n=a.createSelector((e,t)=>{const s=es.select(e,t);return!!s&&(s.mode==="direct"||K.select(e,t)?.warmStatus==="ready")}),vn="__new-workspace__",Cn="__initializer__",An="compact-workspace-initializer-state-prompt",En="onboarding-prompt",U=20*1024*1024,ye=xt("NewWorkspaceDraft");function Rn(e,t){if(e.length>U)return ye.warn("Draft text exceeds the size guard; skipping persistence",{textLength:e.length,limit:U}),null;const s=Pt(t);if(s.length===0)return{text:e};const r=[];let n=e.length+2,o=0;for(const c of s){const i=JSON.stringify(c).length+1;if(n+i>U){o+=1;continue}r.push(c),n+=i}return o>0&&ye.warn("Draft attachments exceed the size guard; persisting the ones that fit",{limit:U,attachmentCount:s.length,droppedCount:o}),r.length>0?{text:e,attachments:r}:{text:e}}const ts="host.providerAuthStatus";function ss(e={}){const t={};return e.workspaceId&&(t.workspaceId=e.workspaceId),typeof e.providerId=="string"&&e.providerId.length>0&&(t.providerId=e.providerId),typeof e.force=="boolean"&&(t.force=e.force),t}function rs(e,t){const s=t.toLowerCase(),r=e.toLowerCase();return s.startsWith(r)?/^(['’]s\s+organization)?$/.test(s.slice(r.length)):!1}function ns(e){const{email:t,orgName:s}=e??{};return t&&s?rs(t,s)?t:`${t} · ${s}`:t||s||void 0}function as(e){const t={};for(const s of e?.providers??[]){const r={authenticated:s.authenticated??void 0},n=ns(s.identity);n!==void 0&&(r.authDetails=n),s.identity?.email&&(r.email=s.identity.email),t[s.id]=r}return t}const os=6e4,E=new Map,j=new Map,A=new Map;let F=0,De=0;const cs=e=>JSON.stringify([lt.select(a.state),De,e.workspaceId??null,e.providerId??"*"]);function is(e){if(e.method!=="events.event"||!e.params)return;const t=e.params,r=(t.event&&typeof t.event=="object"?t.event:t).type;return typeof r=="string"?r:void 0}function J(e){if(F+=1,e)for(const t of E.keys()){const[,,,s]=JSON.parse(t);(s===e||s==="*")&&E.delete(t)}else E.clear()}typeof pe=="function"&&pe(e=>{["provider:auth-changed","host:execution-context-changed"].includes(is(e)??"")&&J()});typeof me=="function"&&me(()=>{De+=1,J()});function ls(e={}){const t=cs(e);if(e.force)J(e.providerId);else{const o=E.get(t);if(o&&o.expiresAt>Date.now())return Promise.resolve(o.verdicts);o&&E.delete(t)}const s=j.get(t);if(!e.force&&s?.generation===F)return s.promise;if(s){const o=A.get(t);if(o)return o.force||=e.force===!0,o.promise;let c;const i=s.promise.catch(()=>({})).then(()=>(A.get(t)===c&&A.delete(t),ls({...e,force:c.force}))).finally(()=>{A.get(t)===c&&A.delete(t)});return c={force:e.force===!0,promise:i},A.set(t,c),i}const r=F,n=Ae(ts,ss(e)).then(as).then(o=>(r===F&&E.set(t,{verdicts:o,expiresAt:Date.now()+os}),o)).finally(()=>{j.get(t)?.promise===n&&j.delete(t)});return j.set(t,{generation:r,promise:n}),n}function Tn(e,t=e,s="default",r,n){if(!Mt.select(a.state))return;const o=n??nt.select(a.state,t)??at.select(a.state,t)[0];if(!o)return;const c=ot.select(a.state,t,o),i={type:"discussion",title:r??(s==="new"?p.workspace_discussion_new_title():p.workspace_discussion_title()),workspaceId:e,closable:!0,data:{conversationId:s}},l=c?.tabs.find(m=>He(m,i));s==="new"&&a.dispatch($e(e)),a.dispatch(l?Be(t,l.id,o):Ve(t,i,o,void 0,!0,void 0,!0))}function Pn(e,t){return e.name?.trim()?e.name.trim():e.kind==="workspace"?e.id&&e.id!=="default"?p.workspace_discussion_conversation_title():p.workspace_discussion_title():e.participants.filter(r=>r.principalId!==t).map(r=>r.displayName||r.login||p.workspace_discussion_unknownAuthor_label()).join(", ")||p.workspace_discussion_group_title()}const us=a.createSelector((e,t,s)=>{const r=Ce(e.repositoryContext,t);return s!==null&&r.binding===s?r:null});a.createSelector((e,t,s)=>{const r=us.select(e,t.workspaceId,s);return r?.status==="ready"?k(r.roots,x(t))?.context:void 0});const On=a.createSelector((e,t)=>{if(t.admission===null||v.select(e)!==t.admission)return null;const s=Ce(e.repositoryContext,t.workspaceId),r=s.ownership;return!r||r.demandId!==t.demandId||r.admission!==t.admission||r.request.workspaceId!==t.workspaceId?null:{status:s.status,scope:s.scope,revision:s.revision,roots:s.status==="ready"?g(s.roots).map(n=>n.context):[],unavailableReason:s.unavailableReason}}),Wn=a.createSelector((e,t)=>{if(t.admission===null||v.select(e)!==t.admission)return null;const s=e.repositoryContext.selectionEdits,r=s?k(s,t.editId):void 0;return r&&r.status!=="closed"&&r.owner.admission===t.admission&&x(r.owner.root)===x(t.root)?r:null}),Nn=a.createSelector((e,t)=>{const s=e.repositoryContext.selectionEdits;return!!s&&g(s).some(r=>r.owner.root.workspaceId===t&&r.owner.admission===v.select(e)&&(r.status==="capturing"||r.status==="pending"&&(!r.observation||r.observation.attempt?.status==="pending")))}),xn=a.createSelector((e,t)=>{if(t.admission===null||v.select(e)!==t.admission||t.hostContext===null||ut.select(e,t.root.workspaceId)!==t.hostContext)return null;const s=e.repositoryContext.nativeReviewAttempts,r=s?k(s,t.attemptId):void 0;return r&&r.status!=="closed"&&r.owner.admission===t.admission&&r.owner.hostContext===t.hostContext&&x(r.owner.root)===x(t.root)?r:null}),Mn=a.createSelector((e,t)=>e.repositoryContext.nativeReviewAttempts?k(e.repositoryContext.nativeReviewAttempts,t):void 0),be={auggie:"npm install -g @augmentcode/auggie","claude-code":"curl -fsSL https://claude.ai/install.sh | bash",codex:"npm i -g @openai/codex",opencode:"curl -fsSL https://opencode.ai/install | bash",droid:"curl -fsSL https://app.factory.ai/cli | sh",grok:"npm i -g @xai-official/grok",cursor:"curl https://cursor.com/install -fsS | bash",cortex:"curl -LsS https://ai.snowflake.com/static/cc-scripts/install.sh | sh"};function Ln(e){return Object.hasOwn(be,e)?be[e]:void 0}const ds=["venv",".venv","virtualenv","node_modules","google-cloud-sdk","__pycache__",".pytest_cache",".mypy_cache",".ruff_cache",".tox",".nox"];function ps(e){return e.replace(/\\/g,"/").split("/").filter(t=>t.length>0&&t!==".")}function ms(e){const t=new Set(ds);return ps(e).some(s=>t.has(s))}const hs=new Set(["lastActivity","statusMessage","statusImageAssetId"]),fs=new Set([".git",".playwright-cli",".svelte-kit",".vite",".turbo",".cache",".parcel-cache",".next",".nuxt",".output","build","coverage","dist","playwright-report","target","test-results"]);function Ss(e){return e.replace(/\\/g,"/").split("/").filter(t=>t.length>0&&t!==".")}function gs(e){if(!e.type.startsWith("file:"))return null;const t=e.data,s=t?.relativePath??t?.path??t?.filePath;return typeof s=="string"&&s.length>0?s:null}function ys(e){const t=gs(e);return!t||ms(t)?!1:!Ss(t).some(s=>fs.has(s))}function bs(e){if(e.type==="workspace:displayStatus-changed")return!0;if(e.type!=="workspace:updated")return!1;const t=e.data;if(!t?.changes||typeof t.changes!="object"||Array.isArray(t.changes))return!1;const s=Object.keys(t.changes).filter(r=>r!=="workspaceId");return s.length>0&&s.every(r=>hs.has(r))}function h(e){return typeof e=="string"?e.trim():""}function R(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function ke(e){const t=R(e.data),s=h(t.agentId)||h(e.sessionId),r=h(t.messageId);return s&&r?JSON.stringify([s,r]):""}function ks(e){const t=R(e.data),s={workspaceId:e.workspaceId,closable:!0},r=n=>n?{...s,type:"note",noteId:n,title:h(t.title)||h(t.noteTitle)||p.layout_tabTypes_note_title()}:null;switch(e.type){case"note:created":case"note:updated":case"comment:added":case"comment:resolved":return r(h(t.noteId));case"task:status-changed":return r(h(t.noteId)||h(t.linkedNoteId));case"spec:updated":case"goal:updated":return r("spec");case"agent:created":case"agent:renamed":case"agent:restored":case"agent:updated":case"agent:message":case"agent:user-message:sent":{const n=h(t.agentId)||h(e.sessionId);return n?{...s,type:"agent",agentId:n,title:h(t.agentName)||p.layout_tabTypes_agent_title()}:null}case"file:changed":{const n=h(t.path)||h(t.relativePath);return n&&t.action!=="delete"?{...s,type:"file",filePath:n,title:n.split(/[\\/]/).pop()||n}:null}case"git:commit":{const n=h(t.commit),o=h(t.gitRootId);return n?{...s,type:"changes",title:p.layout_tabTypes_changes_title(),data:{commitHash:n,...o?{gitRootId:o}:{}}}:null}default:return null}}function we(e,t){const s=R(e.data),r=Object.fromEntries(Object.entries(s).filter(([,c])=>typeof c=="string")),n=c=>t?p.workspace_peopleActivity_actorAction_label({name:t,action:c}):c;switch(e.type){case"note:created":case"note:updated":case"note:deleted":case"spec:updated":case"goal:updated":return O({...e,actor:{...e.actor,name:t},data:r});case"agent:created":case"agent:renamed":case"agent:deleted":case"agent:restored":case"git:commit":case"git:push":case"git:pull":case"git:branch":case"git:merge":return n(O({...e,actor:{...e.actor,name:void 0},data:r}));case"agent:updated":return h(s.modelId)||s.completionReportCleared===!0?n(O({...e,actor:{...e.actor,name:void 0},data:s})):null;case"file:changed":return ys(e)?O({...e,actor:{...e.actor,name:t},data:{path:h(s.path)||h(s.relativePath),action:h(s.action)}}):null;case"comment:added":return t?p.events_activity_authorCommented_label({author:t}):p.workspace_peopleActivity_commented_label();case"comment:resolved":return s.resolved===!1?n(p.events_activity_reopenedCommentThread_label()):s.resolved===!0?n(p.events_activity_resolvedCommentThread_label()):null;case"agent:message":case"agent:user-message:sent":{const c=h(s.agentName)||h(s.toAgentName);return n(c?p.workspace_peopleActivity_messagedAgent_label({agent:c}):p.workspace_peopleActivity_sentMessage_label())}case"task:status-changed":return n(O({...e,actor:{...e.actor,name:void 0},data:{taskName:h(s.taskName)||h(s.noteTitle),newStatus:h(s.newStatus)||h(s.status)}}));case"workspace:created":return n(p.events_activity_createdWorkspace_label());case"workspace:updated":{if(bs(e))return null;const c=R(s.changes);if(Object.keys(c).filter(l=>l!=="workspaceId").length===0)return null;const i=h(c.title);return n(i?p.events_activity_renamedWorkspaceTo_label({title:i}):p.events_activity_updatedWorkspace_label())}default:return null}}function W(e,t){const s=h(e);return s===t||/^(user|you|system|unknown|anonymous|local user)$/i.test(s)?"":s}function ws(e,t,s,r){const n=new Map(s.map(u=>[u.principalId,u])),o=new Map;for(const u of t){if(u.workspaceId!==e||u.type!=="agent:last-message")continue;const d=R(u.data),f=de({role:d.role==="user"?"user":"system",author:d.author,metadata:d.metadata}),S=ke(u);if(!f||!S||typeof d.lastUserMessage!="string")continue;const b=Ot({id:h(d.messageId),role:"user",timestamp:u.timestamp,contentBlocks:[{type:"text",text:d.lastUserMessage}],author:f,metadata:d.metadata},r);b&&o.set(S,b)}const c=new Set,i=new Set,l=[];let m=0;for(const u of t){if(u.workspaceId!==e||!h(u.id)||c.has(u.id))continue;const d=Date.parse(u.timestamp);if(!Number.isFinite(d)){m++;continue}const f=R(u.data),S=u.type==="agent:message",b=S?de({role:f.role==="user"?"user":"system",author:f.author,metadata:f.metadata}):null;if(S?!b:u.actor?.type!=="user"){S&&f.role==="user"&&u.actor?.type==="user"&&dt(f.metadata)&&l.push({row:null,timestamp:d,segment:m});continue}const Fe=S?h(f.messageId):"",T=S?ke(u):"";if(T&&i.has(T))continue;const C=h(u.actor?.id),Y=C?n.get(C):void 0,L=b?W(b.displayName,b.principalId??"")||W(b.login,b.principalId??""):W(u.actor.name,C)||W(Y?.displayName,C)||W(Y?.login,C),ce=we(u,"");if(!ce)continue;if(!L){l.push({row:null,timestamp:d,segment:m});continue}const D=S?o.get(T)??null:null,ie=D?p.workspace_peopleActivity_actorAction_label({name:L,action:D}):we(u,L);ie&&(c.add(u.id),T&&i.add(T),l.push({timestamp:d,segment:m,row:{id:u.id,name:L,principalId:b?h(b.principalId)||null:C||null,avatarUrl:b?b.avatarUrl:Y?.avatarUrl??null,label:ie,actionLabel:D??ce,continuation:!1,timestamp:u.timestamp,destination:ks(u),messageId:Fe||null,messagePreview:D}}))}l.sort((u,d)=>d.timestamp-u.timestamp);const y=[];for(const[u,d]of l.entries()){if(!d.row)continue;const f=l[u-1],S=f?f.timestamp-d.timestamp:NaN;d.row.continuation=!!(d.row.principalId&&f?.row?.principalId===d.row.principalId&&f.segment===d.segment&&Number.isFinite(S)&&S>=0&&S<=15*6e4),y.push(d.row)}return y}const Dn=a.createSelector(e=>e.workspaceEvents.subscriptionAttempt),Un=a.createSelector(e=>e.workspaceEvents.subscriptionGeneration),Is=a.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]??te).events),jn=a.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]??te).nextToken),Gn=a.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]?.peopleRequestId??null)!==null),qn=a.createSelector((e,t)=>e.workspaceEvents.byWorkspaceId[t]?.peopleError??null),Fn=a.createSelector((e,t)=>e.workspaceEvents.byWorkspaceId[t]?.peopleInitialized??!1),Ue=a.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]??te).peopleStreams),Hn=a.createSelector((e,t)=>Object.values(Ue.select(e,t)).every(s=>s.initialized&&s.nextToken===null)),$n=a.createSelector((e,t,s)=>{const r=Is.select(e,t),o=ws(t,r,vt.select(e,t),M.select(e,t)?.ownerPrincipalId)[s-1]?.timestamp,c=Ue.select(e,t);return["user","message"].filter(i=>{const l=c[i];if(!l.initialized)return!0;if(l.nextToken===null)return!1;const m=r.find(y=>y.id===l.oldestEventId)?.timestamp;return!o||!m||!(Date.parse(m)<=Date.parse(o))})}),Bn=a.createSelector((e,t)=>{const s=[],r=new Set,n=new Set,o=c=>{const i=c.block.attachmentId??c.id;if(!r.has(i)){if(!c.block.attachmentId&&c.block.data&&!c.block.dataTruncated){const l=`${c.block.mimeType}/${c.block.data}`;if(n.has(l))return;n.add(l)}r.add(i),s.push(c)}};for(const[c,i]of Object.entries(Wt.select(e,t)))for(const l of g(i))l.imageData&&l.imageMimeType?o({id:`draft/${c}/${l.id}`,name:l.label,block:{type:"image",data:l.imageData,mimeType:l.imageMimeType}}):l.type==="file"&&(l.attachmentId||l.placementStatus)&&o({id:`draft/${c}/${l.id}`,name:l.label,placementStatus:l.placementStatus,block:{type:l.attachmentMimeType?.startsWith("image/")?"image":"file",attachmentId:l.attachmentId,mimeType:l.attachmentMimeType,fileName:l.label,size:l.attachmentSize}});for(const c of pt.select(e,t)){const i=mt.select(e,c),l=[...ht.select(e,c),...ft.select(e,c)];for(const m of l)if(m.role==="user")for(const[y,u]of(m.contentBlocks??[]).entries()){if(u.type!=="image"&&!Nt(u))continue;const d=u.id?i?.[ze(m.id,u.id)]:void 0,f=d?.status==="loaded"?d.block:u;o({id:`${c}/${m.id}/${u.id??y}`,name:f.fileName,block:f,agentId:c,messageId:m.id,hydration:d})}}return s}),_s=a.createSelector((e,t)=>e.context.byWorkspaceId[t]??Ke),vs=a.createSelector((e,t)=>g(_s.select(e,t).items)),Vn=a.createSelector((e,t)=>vs.select(e,t).filter(s=>!s.parentNoteId)),zn=a.createSelector((e,t)=>e.agentLock.byWorkspaceId[t]?.lockedAgentIds??je),Kn=a.createSelector((e,t)=>e.agentLock.byWorkspaceId[t]?.lockedFilePaths??je),je={},Jn=a.createSelector((e,t,s)=>{const r=e.gitWrite.byWorkspaceId[t]?.operations;return r?k(r,s):void 0}),Ge=a.createSelector((e,t)=>{const s=e.gitWrite.byWorkspaceId[t]?.operations;return s?g(s):[]}),Yn=a.createSelector((e,t)=>Ge.select(e,t).some(s=>s.status==="queued"||s.status==="running")),Xn=a.createSelector((e,t)=>Ge.select(e,t).filter(s=>s.operation.kind==="partialCommit"&&(s.status==="queued"||s.status==="running")));function Ie(e){return e.title||`PR #${e.number}`}const oe=a.createSelector((e,t)=>{const s=e.gitRoots?.byWorkspaceId?.[t];return s?g(s.gitRoots):[]});function Cs(e){return{key:"primary",isPrimary:!0,path:e.worktreePath??e.path,branch:e.branch,repoOwner:e.repositoryOwner,repoName:e.repositoryName,prNumber:e.prNumber,prUrl:e.prUrl,prStatus:e.prStatus,pullRequests:e.pullRequests}}function As(e){return{key:e.id,isPrimary:!1,path:e.path,branch:e.branch,repoOwner:e.repoOwner,repoName:e.repoName,prNumber:e.prNumber,prUrl:e.prUrl,prStatus:e.prStatus,pullRequests:e.pullRequests,gitRoot:e}}const Zn=a.createSelector((e,t)=>{const s=M.select(e,t),r=oe.select(e,t).map(As);return s?[Cs(s),...r]:r}),Qn=a.createSelector((e,t)=>oe.select(e,t).length>0),ea=a.createSelector(e=>Object.entries(e.gitRoots?.byWorkspaceId??{}).filter(([,t])=>Object.keys(t.consumers??{}).length>0).map(([t])=>t)),Es=a.createSelector((e,t,s)=>k((e.acceptWorkflow.byWorkspaceId[t]??Je).operations,s)),ta=a.createSelector((e,t,s)=>Es.select(e,t,s)?.status==="running"),sa=a.createSelector((e,t)=>e.acceptWorkflow.byWorkspaceId[t]?.mergeDrawerOpen??!1),ra=a.createSelector((e,t)=>{const s=St.select(e,t)?.hasRemote??!1,r=M.select(e,t)?.pullRequests?.some(n=>n.status===le.Open||n.status===le.Draft)??!1;return{squash:!1,viaPR:s&&r,pushAfter:s,...e.acceptWorkflow.byWorkspaceId[t]?.mergeOptions}}),na=a.createSelector(e=>Object.keys(e.acceptWorkflow.byWorkspaceId).filter(t=>e.acceptWorkflow.byWorkspaceId[t].observerRequested)),aa=a.createSelector((e,t)=>{const s=M.select(e,t),r=gt.select(e,t),n=yt.select(e,t),o=s?.repositoryOwner&&s.repositoryName?`${s.repositoryOwner}/${s.repositoryName}`:void 0,c=Ct(At(s?.pullRequests,s?.activePullRequest,(i,l)=>Et(i,s?.repositoryOwner,s?.repositoryName,l),Ie,o),bt.select(e,t),o,oe.select(e,t),Ie).own;return{visible:(e.acceptWorkflow.byWorkspaceId[t]?.consumerCount??0)>0,ready:wt.select(e,t),owner:!kt.select(e,t),authenticated:Lt.select(e),pushedCount:r.filter(i=>i.isPushed).length,hasRemote:n.hasRemote,clearReset:n.hasResetToTrunk&&c.some(i=>i.status!=="merged"),clearMerge:!!(n.mergeHeadSha&&r[0]?.hash&&n.mergeHeadSha!==r[0].hash)}}),oa=a.createSelector((e,t,s)=>e.bgExecutor?.byWorkspaceId[t]?.executors[s]??Ye),Rs=a.createSelector((e,t)=>e.prWorkflow.byWorkspaceId[t]??Xe);a.createSelector((e,t,s)=>Rs.select(e,t).operations[s]);const ca=a.createSelector(e=>Object.keys(e.noteReadTracking.unreadNoteIds)),ia=a.createSelector(e=>e.noteReadTracking.readRecords),Ts="host.providerTestPrompt",Ps=Gt("ok",[he({ok:fe(!0)}).passthrough(),he({ok:fe(!1),reason:Se().min(1),message:Se()}).passthrough()]),Os=3e5;async function la(e){const t=await Ae(Ts,{providerId:e.providerId,...e.model?{model:e.model}:{}},{timeoutMs:Os}),s=Ps.parse(t);return(s.ok||s.reason==="auth-required")&&J(e.providerId),s}const Ws=-1,Ns=/^remote-script-lost:\s*/,xs=["idle","starting","running","restarting","exited"],_e=e=>!!e&&typeof e=="object"&&!Array.isArray(e),ve=e=>typeof e=="string"&&e.trim().length>0;function Ms(e){return _e(e)&&ve(e.remoteAgentId)&&ve(e.nodeId)&&_e(e.runtime)&&xs.includes(e.runtime.status)}function ua(e){return Array.isArray(e.machineRuns)?e.machineRuns.filter(Ms):[]}function da(e,t,s){const r=Dt(e.nodeId,s)??{nodeId:e.nodeId,name:p.remoteAgent_location_unknownMachine(),platform:null,state:"ready"};if(s&&s.id===e.nodeId)return r;const n=t?.nodeId===e.nodeId?t:null;return{...r,name:n?.nodeName?.trim()||r.name,platform:Ut(n?.placement?.os,n?.placement?.arch)}}function Ls(e){return e.status==="exited"&&e.exitCode===Ws}function Ds(e){const t=e.error?.trim().replace(Ns,"").trim();switch(t){case"the machine disconnected":return p.scripts_remote_lostDisconnected_label();case"the machine was removed":return p.scripts_remote_lostRemoved_label();case"the agent was deleted":return p.scripts_remote_lostAgentDeleted_label();case"the agent was stopped for good":return p.scripts_remote_lostAgentStopped_label();default:return t||p.scripts_remote_lostReason_fallback()}}function pa(e){if(Ls(e))return{kind:"lost",label:p.scripts_remote_lost_tooltip({reason:Ds(e)})};const t=jt(e);switch(t){case"running":return{kind:t,label:p.terminal_quakeOverlay_status_running()};case"restarting":return{kind:t,label:p.workspace_devScripts_restarting_label()};case"idle":return{kind:t,label:p.terminal_quakeOverlay_status_idle()};case"succeeded":return{kind:t,label:p.terminal_quakeOverlay_status_exitedZero()};case"failed":return{kind:t,label:p.terminal_quakeOverlay_status_errorCode({code:e.exitCode??1})};case"stopped":return{kind:t,label:p.terminal_quakeOverlay_status_stoppedSignal({signal:(e.exitCode??128)-128})};default:return{kind:t,label:p.terminal_quakeOverlay_status_exited()}}}const G=e=>typeof e=="string"&&e.length>0,Us=/\bremote-script-agent-ending:/;function ma(e){return!!e&&Us.test(e)}function ha(e){if(!e||typeof e!="object")return null;const t=e.data;if(!t||typeof t!="object")return null;const s=t,r=e instanceof Error&&e.message?{message:e.message}:{};return s.code==="machine-update-required"?{success:!1,code:"machine-update-required",update:s.update==="backend"?"backend":"machine",...G(s.machineVersion)?{machineVersion:s.machineVersion}:{},...G(s.backendVersion)?{backendVersion:s.backendVersion}:{},...r}:s.code==="machine-unreachable"?{success:!1,code:"machine-unreachable",attempts:Array.isArray(s.attempts)?s.attempts.flatMap(o=>{const c=o??{};return G(c.route)&&G(c.error)?[{route:c.route,error:c.error}]:[]}):[],...r}:null}function fa(e){const s=e.filter(n=>n.runtime.status==="running"&&n.runtime.detectedUrl?.trim()).sort((n,o)=>(o.runtime.startedAt??"").localeCompare(n.runtime.startedAt??""))[0],r=s?.runtime.detectedUrl?.trim();return!s||!r?null:{scriptId:s.id,name:s.name,url:r}}const js={status:"idle",error:null},Gs=a.createSelector((e,t)=>e.workspaceLifecycle.loadByWorkspaceId[t]??js);a.createSelector((e,t)=>Gs.select(e,t).error);const Sa=a.createSelector((e,t)=>k(e.workspace.workspaces,t)??e.workspace.pendingCreations[t]),qe=a.createSelector((e,t)=>e.workspaceLifecycle.sessionPhaseByWorkspaceId[t]),qs=e=>e==="hydrated"||e==="live",ga=a.createSelector((e,t)=>{const s=qe.select(e,t);return s==="hydrated"||s==="live"}),ya=a.createSelector(e=>{const t=e.workspaceLifecycle.sessionPhaseByWorkspaceId;return Object.keys(t).filter(s=>qs(t[s]))}),ba=a.createSelector((e,t)=>qe.select(e,t)==="live");function ka(e){const{selectedProviderId:t,activeProviderId:s,recommitActive:r,dispatch:n}=e;if(t&&!(!r&&t===s))return n(Ze({providerId:t,enabled:!0})),n(Qe(t)),n(et()),t}function wa(e){const t=[];for(const s of e){let r={};if(s.metadata)try{r=JSON.parse(s.metadata)}catch{}const n=[];if(n.push(`[${s.identifier}] ${s.title}`),s.url&&n.push(`URL: ${s.url}`),s.description&&n.push(`
3
+ Description:
4
+ ${s.description}`),r.state&&n.push(`Status: ${r.state}`),r.teamName&&n.push(`Team: ${r.teamName}`),r.priority!==void 0){const o=["No priority","Urgent","High","Medium","Low"];n.push(`Priority: ${o[r.priority]||r.priority}`)}r.assignee&&n.push(`Assignee: ${r.assignee}`),t.push({type:s.itemType||"unknown",provider:s.provider,identifier:s.identifier,title:s.title,url:s.url,content:n.join(`
5
+ `),metadata:r})}return t}function Ia(e){const t=[];for(const s of e){if(s.type!=="file")continue;let r=s.meta?.fullPath||s.meta?.path||"";if(!r&&s.id?.startsWith("file-")){const n=s.id.slice(5);(n.startsWith("/")||/^[A-Za-z]:/.test(n))&&(r=n)}if(!r&&s.uri)if(s.uri.startsWith("devspace://file/"))try{r=decodeURIComponent(s.uri.slice(16))}catch{}else s.uri.startsWith("file:")&&(r=s.uri.slice(5));r||(r=s.label||s.meta?.name||""),t.push({type:"file",path:r,title:s.label})}return t}async function _a(e,t){const s=[];for(const r of e){if(r.type==="terminal")try{const{terminalManager:n}=await q(async()=>{const{terminalManager:l}=await import("./DzejiLWr.js").then(m=>m.c);return{terminalManager:l}},__vite__mapDeps([23,3,2,18,19,12,8,0,1,4,5,6,7,9,10,11,13,14,15,16,17,20,21,22,24,25,26,27,28,29,30,31,32]),import.meta.url),o=r.meta?.workspaceId||"",c=r.id??"",i=await n.getBufferContent(c,o);i&&s.push({type:"terminal",content:i,title:r.label,metadata:{terminalName:r.label,terminalId:c}})}catch(n){t?.warn("[OnboardingContext] Failed to read terminal buffer:",n)}if(r.type==="script")try{const{selectScriptById:n,selectScriptRuntime:o}=await q(async()=>{const{selectScriptById:S,selectScriptRuntime:b}=await import("./DHGSAfCZ.js");return{selectScriptById:S,selectScriptRuntime:b}},__vite__mapDeps([33,4,5,3,6,7,8,9,2,10,11,12,34,35,36,15,16,37,38,39,13,14,17,40,41,42,43,44,45,46,47,48,49,21,30,50,19,18,51,52,22,1,53]),import.meta.url),{readScriptContextOutputLines:c}=await q(async()=>{const{readScriptContextOutputLines:S}=await import("./C-OtpXcF.js");return{readScriptContextOutputLines:S}},__vite__mapDeps([54,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,55,49,45,40,36,39,30,42,56,34,35,37,38,41,43,44,46,47,48,50,51,52,53,33]),import.meta.url),i=r.meta?.workspaceId||"",l=r.id??"",m=a.state,y=await c(m,i,l),u=n.select(m,i,l),d=o.select(m,i,l);let f=`Script: ${u?.name||r.label}
6
+ `;if(f+=`Command: ${u?.command||"unknown"}
7
+ `,f+=`Status: ${d.status}`,d.exitCode!==null&&d.exitCode!==void 0&&(f+=` (exit code: ${d.exitCode})`),f+=`
8
+ `,d.detectedUrl&&(f+=`URL: ${d.detectedUrl}
9
+ `),y.length>0){const S=y.slice(-100).join(`
10
+ `);f+=`
11
+ Output (last ${Math.min(y.length,100)} lines):
12
+ ${S}`}else f+=`
13
+ No output yet.`;s.push({type:"script",content:f,title:u?.name||r.label,metadata:{scriptId:l,command:u?.command,status:d.status,exitCode:d.exitCode,detectedUrl:d.detectedUrl}})}catch(n){t?.warn("[OnboardingContext] Failed to resolve script context:",n)}}return s}function va(e){const t=e.find(r=>r.type==="linear-issue");if(!t)return;const s=t.metadata??{};return{id:s.id??t.identifier??"",identifier:t.identifier??"",title:t.title??"",description:s.description,url:t.url,teamName:s.teamName,teamKey:s.teamKey,state:s.state,priority:s.priority}}function Ca(e){const t=e.find(r=>r.type==="sentry-issue");if(!t)return;const s=t.metadata??{};return{id:s.id??t.identifier??"",shortId:t.identifier??"",title:t.title??"",culprit:s.culprit,permalink:t.url||s.permalink,projectSlug:s.projectSlug,projectName:s.projectName,level:s.level,status:s.status,count:s.count,firstSeen:s.firstSeen,lastSeen:s.lastSeen}}function Aa(e,t){if(!e||e.length===0)return[];const s=new Map;for(const n of e){if(!n.repositoryPath)continue;const o=n.repositoryPath,c=s.get(o),i=tt(n),l=i>0?new Date(i).toISOString():n.updatedAt,m=c&&Date.parse(c.updatedAt)||0;(!c||i>m)&&s.set(o,{path:n.repositoryPath,name:n.repositoryName||n.repositoryPath.split("/").pop()||"Unknown",updatedAt:l,owner:n.repositoryOwner})}const r=Array.from(s.values()).sort((n,o)=>o.updatedAt.localeCompare(n.updatedAt));return t!==void 0?r.slice(0,t):r}const Ea=a.createSelector((e,t)=>(e.workspaceSettings.byWorkspaceId[t]??st).autoCommitEnabled),Ra=a.createSelector(e=>Object.keys(e.workspaceSettings.byWorkspaceId));export{rn as $,da as A,pa as B,Tn as C,wa as D,Ia as E,_a as F,Ln as G,yn as H,on as I,ln as J,Jr as K,En as L,Kr as M,Cn as N,hn as O,ts as P,cn as Q,un as R,_ as S,la as T,ua as U,aa as V,na as W,ta as X,Vr as Y,Ea as Z,an as _,An as a,hr as a$,ae as a0,In as a1,_n as a2,K as a3,wn as a4,es as a5,vs as a6,Dn as a7,Un as a8,oa as a9,Rs as aA,Hn as aB,qn as aC,Fn as aD,Gn as aE,Ue as aF,$n as aG,zr as aH,ia as aI,On as aJ,Wn as aK,Nn as aL,Ra as aM,Cr as aN,vr as aO,re as aP,xr as aQ,kr as aR,ir as aS,wr as aT,br as aU,ar as aV,Nr as aW,fr as aX,Sr as aY,pr as aZ,Pr as a_,Fr as aa,Xn as ab,Br as ac,Gr as ad,ea as ae,oe as af,Jn as ag,Yn as ah,Qn as ai,Hr as aj,$r as ak,ga as al,ba as am,Zr as an,zn as ao,Kn as ap,sa as aq,ra as ar,ya as as,xn as at,Mn as au,qr as av,jn as aw,Yr as ax,Xr as ay,sn as az,vn as b,mr as b0,yr as b1,gr as b2,dr as b3,lr as b4,Or as b5,ge as b6,Mr as b7,_r as b8,Ir as b9,Ar as bA,Qt as bB,kn as bC,dn as bD,Te as bE,Lr as ba,Wr as bb,qt as bc,Ft as bd,Ht as be,cr as bf,or as bg,ur as bh,Vn as bi,ca as bj,Qr as bk,en as bl,nn as bm,Bn as bn,tn as bo,Is as bp,Zn as bq,Dr as br,Sa as bs,Gs as bt,Ur as bu,$t as bv,Vt as bw,Rr as bx,Er as by,Tr as bz,Re as c,Rn as d,ss as e,fn as f,ka as g,Pn as h,va as i,Ca as j,mn as k,pn as l,gn as m,Ie as n,ws as o,ls as p,Aa as q,Sn as r,fa as s,jr as t,J as u,ma as v,Ls as w,Zt as x,bn as y,ha as z};
@@ -1 +1 @@
1
- import{conf as t,language as e}from"./34C5M9lk.js";const i=t,o={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","static","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer};export{i as conf,o as language};
1
+ import{conf as t,language as e}from"./B7dTLx8u.js";const i=t,o={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","static","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer};export{i as conf,o as language};
@@ -1 +1 @@
1
- import{z as b}from"./-SwunqO3.js";const u=/^[A-Za-z0-9._:-]{1,128}$/,C="connections.manage",l="";class f extends Error{constructor(t,e){super(t),this.status=e,this.name="HostRequestError"}}function d(n){return typeof n=="string"&&n.startsWith("/")&&!n.startsWith("//")}function h(){const n=globalThis.__INTENT_RUNTIME_CONFIG__;if(!n)return null;const{backendId:t,connectionsUrl:e,eventsUrl:o,hostCapabilities:s}=n,r=Array.isArray(s)&&s.includes(C),a=t===null&&r;return!a&&(typeof t!="string"||!u.test(t))||!d(e)?null:{backendId:a?null:t,connectionsUrl:e,eventsUrl:d(o)?o:null,canManageConnections:r,tailcatAvailable:n.tailcatAvailable===!0}}function g(){return b()?null:h()}function E(){const n=g();return n?.canManageConnections?n:null}function w(n,t){const e=n.backendId??l;return{...t,activeId:t.activeId??l,windowBackendId:e}}async function H(n,t=fetch){const e=n.backendId===null?n.connectionsUrl:`${n.connectionsUrl}?backend=${encodeURIComponent(n.backendId)}`,o=await t(e,{credentials:"same-origin",cache:"no-store"});if(!o.ok)throw new f(`connections list failed: HTTP ${o.status}`,o.status);return w(n,await o.json())}function I(n,t=(s,r,a)=>globalThis.open?.(s,r,a),e=s=>globalThis.location?.assign(s),o=!1){if(!u.test(n))throw new Error(`invalid connection id: ${n}`);const s=`/?backend=${encodeURIComponent(n)}`;return o?e(s):t(s,"_blank","noopener"),{status:"opened",id:n}}function i(n,t,e){if(!u.test(t))throw new Error(`invalid connection id: ${t}`);return`${n.connectionsUrl}/${encodeURIComponent(t)}${e?`/${e}`:""}`}async function c(n,t,e,o){const s=await n(e,{method:t,credentials:"same-origin",cache:"no-store",...o===void 0?{}:{headers:{"Content-Type":"application/json"},body:JSON.stringify(o)}});if(!s.ok)throw new f(`connections request failed: HTTP ${s.status}`,s.status);return await s.json()}async function k(n,t,e=fetch){const o=await c(e,"POST",`${n.connectionsUrl}/capture-fingerprint`,{host:t.host,port:t.port,...t.token?{token:t.token}:{}});if(!o.ok)throw new Error(o.error??"fingerprint capture failed");return{fingerprint:o.fingerprint,tokenValid:o.tokenValid,...o.statusCode!==void 0?{statusCode:o.statusCode}:{}}}function y(n,t,e=fetch){const{syncExcluded:o,...s}=t;return c(e,"POST",n.connectionsUrl,s)}function A(n,t,e=fetch){const{id:o,syncExcluded:s,...r}=t;return c(e,"PATCH",i(n,o),r)}function _(n,t,e=fetch){const{id:o,...s}=t;return c(e,"POST",i(n,o,"test"),s)}function N(n,t,e=fetch){const{id:o,...s}=t;return c(e,"POST",i(n,o,"rotate-secret"),s)}function P(n,t,e=fetch){return c(e,"GET",i(n,t,"tunnel"))}function U(n,t,e=fetch){return c(e,"PUT",i(n,t.id,"tunnel"),{enabled:t.enabled})}async function $(n,t,e=fetch){return await c(e,"DELETE",i(n,t),{}),{id:t}}function T(n){return{manageConnections:n.canManageConnections,backendBound:n.backendId!==null,tailcatAvailable:n.tailcatAvailable}}function O(n){const t=g(),e=n?.connections;if(!t||e&&"browserHost"in e)return n;const o={...e,browserHost:T(t)};return{...n,connections:o}}export{f as H,y as a,w as b,k as c,$ as d,P as e,H as f,h as g,E as h,g as i,T as j,I as o,N as r,U as s,_ as t,A as u,O as w};
1
+ import{z as b}from"./CEsW1euQ.js";const u=/^[A-Za-z0-9._:-]{1,128}$/,C="connections.manage",l="";class f extends Error{constructor(t,e){super(t),this.status=e,this.name="HostRequestError"}}function d(n){return typeof n=="string"&&n.startsWith("/")&&!n.startsWith("//")}function h(){const n=globalThis.__INTENT_RUNTIME_CONFIG__;if(!n)return null;const{backendId:t,connectionsUrl:e,eventsUrl:o,hostCapabilities:s}=n,r=Array.isArray(s)&&s.includes(C),a=t===null&&r;return!a&&(typeof t!="string"||!u.test(t))||!d(e)?null:{backendId:a?null:t,connectionsUrl:e,eventsUrl:d(o)?o:null,canManageConnections:r,tailcatAvailable:n.tailcatAvailable===!0}}function g(){return b()?null:h()}function E(){const n=g();return n?.canManageConnections?n:null}function w(n,t){const e=n.backendId??l;return{...t,activeId:t.activeId??l,windowBackendId:e}}async function H(n,t=fetch){const e=n.backendId===null?n.connectionsUrl:`${n.connectionsUrl}?backend=${encodeURIComponent(n.backendId)}`,o=await t(e,{credentials:"same-origin",cache:"no-store"});if(!o.ok)throw new f(`connections list failed: HTTP ${o.status}`,o.status);return w(n,await o.json())}function I(n,t=(s,r,a)=>globalThis.open?.(s,r,a),e=s=>globalThis.location?.assign(s),o=!1){if(!u.test(n))throw new Error(`invalid connection id: ${n}`);const s=`/?backend=${encodeURIComponent(n)}`;return o?e(s):t(s,"_blank","noopener"),{status:"opened",id:n}}function i(n,t,e){if(!u.test(t))throw new Error(`invalid connection id: ${t}`);return`${n.connectionsUrl}/${encodeURIComponent(t)}${e?`/${e}`:""}`}async function c(n,t,e,o){const s=await n(e,{method:t,credentials:"same-origin",cache:"no-store",...o===void 0?{}:{headers:{"Content-Type":"application/json"},body:JSON.stringify(o)}});if(!s.ok)throw new f(`connections request failed: HTTP ${s.status}`,s.status);return await s.json()}async function k(n,t,e=fetch){const o=await c(e,"POST",`${n.connectionsUrl}/capture-fingerprint`,{host:t.host,port:t.port,...t.token?{token:t.token}:{}});if(!o.ok)throw new Error(o.error??"fingerprint capture failed");return{fingerprint:o.fingerprint,tokenValid:o.tokenValid,...o.statusCode!==void 0?{statusCode:o.statusCode}:{}}}function y(n,t,e=fetch){const{syncExcluded:o,...s}=t;return c(e,"POST",n.connectionsUrl,s)}function A(n,t,e=fetch){const{id:o,syncExcluded:s,...r}=t;return c(e,"PATCH",i(n,o),r)}function _(n,t,e=fetch){const{id:o,...s}=t;return c(e,"POST",i(n,o,"test"),s)}function N(n,t,e=fetch){const{id:o,...s}=t;return c(e,"POST",i(n,o,"rotate-secret"),s)}function P(n,t,e=fetch){return c(e,"GET",i(n,t,"tunnel"))}function U(n,t,e=fetch){return c(e,"PUT",i(n,t.id,"tunnel"),{enabled:t.enabled})}async function $(n,t,e=fetch){return await c(e,"DELETE",i(n,t),{}),{id:t}}function T(n){return{manageConnections:n.canManageConnections,backendBound:n.backendId!==null,tailcatAvailable:n.tailcatAvailable}}function O(n){const t=g(),e=n?.connections;if(!t||e&&"browserHost"in e)return n;const o={...e,browserHost:T(t)};return{...n,connections:o}}export{f as H,y as a,w as b,k as c,$ as d,P as e,H as f,h as g,E as h,g as i,T as j,I as o,N as r,U as s,_ as t,A as u,O as w};
@@ -1 +1 @@
1
- import{Iz as r,aX as n}from"./A0r9TbR7.js";import{r as a}from"./CaxyE6o_.js";import{bp as o}from"./DTQYcznv.js";const l=r.createSelector(e=>e.userPreferences.agentRulesEditor),S=r.createSelector(e=>{const t=l.select(e);return t.content.trim()!==t.originalContent.trim()}),d=r.createSelector(e=>e.userPreferences.agentFontStyle);r.createSelector(e=>{switch(e.userPreferences.agentFontStyle){case"sans":return"Sans-serif";case"monospace":return"Monospace";default:return"Sans-serif"}});const P=r.createSelector(e=>e.userPreferences.agentFontStyle==="monospace"),b=r.createSelector(e=>e.userPreferences.updateChannel),h=r.createSelector(e=>e.userPreferences.spellcheckEnabled),p=r.createSelector(e=>e.userPreferences.zoomFactor),m=r.createSelector(e=>e.userPreferences.showArchived),y=r.createSelector(e=>e.userPreferences.groupByRepo),E=r.createSelector(e=>e.userPreferences.hasCompletedProviderSetup),g=r.createSelector(e=>e.userPreferences?.showReasoningBlocks??!1),F=r.createSelector(e=>e.userPreferences?.chatAuroraEnabled??!0),A=r.createSelector(e=>e.userPreferences?.chatContentWidth??"full"),C=r.createSelector(e=>e.userPreferences?.collapseToolRuns??!1),k=r.createSelector(e=>e.userPreferences?.shellTransparencyEnabled??!0),v=r.createSelector(e=>e.userPreferences?.menuBarAutoHide??!1),L=r.createSelector(e=>e.userPreferences?.reduceMotionOnBattery??!1),R=r.createSelector(e=>e.userPreferences?.pauseAnimationsWhenUnfocused??!1),M=r.createSelector(e=>e.userPreferences?.labsSettingsVisible??!1),T=r.createSelector(e=>e.userPreferences?.labsMultiplayerEnabled??!0),w=r.createSelector(e=>e.userPreferences?.preferencesHydrated===!0),B=r.createSelector(e=>e.userPreferences?.nativeReviewEnabled===!0),D=r.createSelector(e=>e.userPreferences?.labsRemoteAgentsEnabled===!0),N=r.createSelector(e=>e.userPreferences?.labsPlainFolderWorkspacesEnabled===!0),O=r.createSelector(e=>e.userPreferences?.labsBrowserAccessEnabled===!0),W=r.createSelector(e=>e.userPreferences?.labsTabGroupsEnabled===!0),H=r.createSelector(e=>e.userPreferences?.labsCloudMachinesEnabled===!0),U=r.createSelector(e=>e.userPreferences?.labsSshMachineSetupEnabled===!0),_=r.createSelector(e=>1/e.userPreferences.zoomFactor),V=r.createSelector(e=>e.userPreferences.noteFontStyle);r.createSelector(e=>{switch(e.userPreferences.noteFontStyle){case"sans":return"Sans-serif";case"serif":return"Serif";case"monospace":return"Monospace";default:return"Sans-serif"}});const I=r.createSelector(e=>e.userPreferences.noteFontStyle==="monospace"),G=r.createSelector(e=>e.userPreferences.codeFontFamily),z=r.createSelector(e=>{const{codeFontFamily:t}=e.userPreferences;return t==="system-default"?n:`'${t}', monospace`});r.createSelector(e=>{const{codeFontFamily:t}=e.userPreferences;return t==="system-default"?o.settings_fonts_systemDefault_label():t});const x=r.createSelector(e=>{const{systemFonts:t}=e.userPreferences,c=[{value:"system-default",get label(){return o.settings_fonts_systemDefault_label()},fontFamily:n}];for(const s of t)c.push({value:s,label:s,fontFamily:`'${s}', monospace`});return c}),$=r.createSelector(e=>e.userPreferences.enabled),j=r.createSelector(e=>e.userPreferences.soundEnabled),q=r.createSelector(e=>e.userPreferences.soundOnlyWhenUnfocused),J=r.createSelector(e=>e.userPreferences.volume),K=r.createSelector(e=>({editId:e.userPreferences.pendingNotificationVolumeEditId,hydrationEpoch:e.userPreferences.notificationVolumeHydrationEpoch})),Q=r.createSelector(e=>e.userPreferences.activityLogPresets),X=r.createSelector(e=>e.userPreferences.languagePreference),Y=r.createSelector(e=>e.userPreferences?.githubLinkDefaultAction??"show-choices"),Z=r.createSelector(e=>e.userPreferences.shortcutOverrides),ee=r.createSelector(e=>a(e.userPreferences.languagePreference)),re=r.createSelector(e=>e.userPreferences.dockShortcuts??null),te=r.createSelector(e=>e.userPreferences.dockShortcutPending??!1),se=r.createSelector(e=>e.userPreferences.dockShortcutCaptureToken??null),ce=r.createSelector(e=>e.userPreferences.dockShortcutError??null);export{U as A,W as B,X as C,v as D,B as E,V as F,$ as G,J as H,K as I,R as J,L as K,ee as L,k as M,Z as N,m as O,g as P,j as Q,q as R,h as S,b as T,w as U,p as V,d as a,l as b,S as c,F as d,A as e,G as f,z as g,x as h,C as i,_ as j,se as k,ce as l,te as m,re as n,Y as o,y as p,E as q,P as r,Q as s,I as t,O as u,H as v,T as w,N as x,D as y,M as z};
1
+ import{Iz as r,aX as n}from"./BfbZn9QX.js";import{r as a}from"./Cx31i8ng.js";import{bo as o}from"./D9jYN6_J.js";const l=r.createSelector(e=>e.userPreferences.agentRulesEditor),S=r.createSelector(e=>{const t=l.select(e);return t.content.trim()!==t.originalContent.trim()}),d=r.createSelector(e=>e.userPreferences.agentFontStyle);r.createSelector(e=>{switch(e.userPreferences.agentFontStyle){case"sans":return"Sans-serif";case"monospace":return"Monospace";default:return"Sans-serif"}});const P=r.createSelector(e=>e.userPreferences.agentFontStyle==="monospace"),b=r.createSelector(e=>e.userPreferences.updateChannel),h=r.createSelector(e=>e.userPreferences.spellcheckEnabled),p=r.createSelector(e=>e.userPreferences.zoomFactor),m=r.createSelector(e=>e.userPreferences.showArchived),y=r.createSelector(e=>e.userPreferences.groupByRepo),E=r.createSelector(e=>e.userPreferences.hasCompletedProviderSetup),g=r.createSelector(e=>e.userPreferences?.showReasoningBlocks??!1),F=r.createSelector(e=>e.userPreferences?.chatAuroraEnabled??!0),A=r.createSelector(e=>e.userPreferences?.chatContentWidth??"full"),C=r.createSelector(e=>e.userPreferences?.collapseToolRuns??!1),k=r.createSelector(e=>e.userPreferences?.shellTransparencyEnabled??!0),v=r.createSelector(e=>e.userPreferences?.menuBarAutoHide??!1),L=r.createSelector(e=>e.userPreferences?.reduceMotionOnBattery??!1),R=r.createSelector(e=>e.userPreferences?.pauseAnimationsWhenUnfocused??!1),M=r.createSelector(e=>e.userPreferences?.labsSettingsVisible??!1),T=r.createSelector(e=>e.userPreferences?.labsMultiplayerEnabled??!0),w=r.createSelector(e=>e.userPreferences?.preferencesHydrated===!0),B=r.createSelector(e=>e.userPreferences?.nativeReviewEnabled===!0),D=r.createSelector(e=>e.userPreferences?.labsRemoteAgentsEnabled===!0),N=r.createSelector(e=>e.userPreferences?.labsPlainFolderWorkspacesEnabled===!0),O=r.createSelector(e=>e.userPreferences?.labsBrowserAccessEnabled===!0),W=r.createSelector(e=>e.userPreferences?.labsTabGroupsEnabled===!0),H=r.createSelector(e=>e.userPreferences?.labsCloudMachinesEnabled===!0),U=r.createSelector(e=>e.userPreferences?.labsSshMachineSetupEnabled===!0),_=r.createSelector(e=>1/e.userPreferences.zoomFactor),V=r.createSelector(e=>e.userPreferences.noteFontStyle);r.createSelector(e=>{switch(e.userPreferences.noteFontStyle){case"sans":return"Sans-serif";case"serif":return"Serif";case"monospace":return"Monospace";default:return"Sans-serif"}});const I=r.createSelector(e=>e.userPreferences.noteFontStyle==="monospace"),G=r.createSelector(e=>e.userPreferences.codeFontFamily),z=r.createSelector(e=>{const{codeFontFamily:t}=e.userPreferences;return t==="system-default"?n:`'${t}', monospace`});r.createSelector(e=>{const{codeFontFamily:t}=e.userPreferences;return t==="system-default"?o.settings_fonts_systemDefault_label():t});const x=r.createSelector(e=>{const{systemFonts:t}=e.userPreferences,c=[{value:"system-default",get label(){return o.settings_fonts_systemDefault_label()},fontFamily:n}];for(const s of t)c.push({value:s,label:s,fontFamily:`'${s}', monospace`});return c}),$=r.createSelector(e=>e.userPreferences.enabled),j=r.createSelector(e=>e.userPreferences.soundEnabled),q=r.createSelector(e=>e.userPreferences.soundOnlyWhenUnfocused),J=r.createSelector(e=>e.userPreferences.volume),K=r.createSelector(e=>({editId:e.userPreferences.pendingNotificationVolumeEditId,hydrationEpoch:e.userPreferences.notificationVolumeHydrationEpoch})),Q=r.createSelector(e=>e.userPreferences.activityLogPresets),X=r.createSelector(e=>e.userPreferences.languagePreference),Y=r.createSelector(e=>e.userPreferences?.githubLinkDefaultAction??"show-choices"),Z=r.createSelector(e=>e.userPreferences.shortcutOverrides),ee=r.createSelector(e=>a(e.userPreferences.languagePreference)),re=r.createSelector(e=>e.userPreferences.dockShortcuts??null),te=r.createSelector(e=>e.userPreferences.dockShortcutPending??!1),se=r.createSelector(e=>e.userPreferences.dockShortcutCaptureToken??null),ce=r.createSelector(e=>e.userPreferences.dockShortcutError??null);export{U as A,W as B,X as C,v as D,B as E,V as F,$ as G,J as H,K as I,R as J,L as K,ee as L,k as M,Z as N,m as O,g as P,j as Q,q as R,h as S,b as T,w as U,p as V,d as a,l as b,S as c,F as d,A as e,G as f,z as g,x as h,C as i,_ as j,se as k,ce as l,te as m,re as n,Y as o,y as p,E as q,P as r,Q as s,I as t,O as u,H as v,T as w,N as x,D as y,M as z};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CzdMU9Bu.js","/app/immutable/chunks/D9jYN6_J.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/BfbZn9QX.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/V9qci_dz.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/Cx31i8ng.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CEsW1euQ.js","/app/immutable/chunks/etVaBLxV.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/Dkva_evl.js","/app/immutable/chunks/DknPpgEW.js","/app/immutable/chunks/C_EpV6jU.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/CpHzYkzi.js","/app/immutable/chunks/aQy6qVNs.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DzGNgfrZ.js","/app/immutable/chunks/CvHwMug-.js","/app/immutable/chunks/BWAGtvpD.js","/app/immutable/chunks/7eL9Pgig.js","/app/immutable/chunks/0qEvU7Aj.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/Bgw3O9rE.js","/app/immutable/chunks/DZyAzxxC.js","/app/immutable/chunks/OPvMR-5p.js","/app/immutable/chunks/B4gIvcP2.js","/app/immutable/chunks/CQbtnalz.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/CAUaU8Wh.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/asQ_ruFQ.js","/app/immutable/chunks/DRZKWEq3.js","/app/immutable/chunks/C3NeTp2u.js","/app/immutable/chunks/CGcQAX9W.js","/app/immutable/chunks/DMjNjha0.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/DQlH_Wce.js","/app/immutable/chunks/CXVUfxHv.js"])))=>i.map(i=>d[i]);
2
+ import{_ as i}from"./D9jYN6_J.js";import{c as m}from"./ChTqQfQN.js";function d(){return typeof window<"u"&&window.location.pathname.startsWith("/hud")}let _=0;function f(){_+=1}function E(){return _}const h=m("Navigation"),w="settings-previous-path";function r(t){return/^\/settings(?:[/?#]|$)/.test(t)}async function l(t,a={}){if(d()||typeof window<"u"&&/^\/dock(?:\/|$)/.test(window.location.pathname)){h.debug("Ignoring navigation in auxiliary window",{route:t});return}const c=a.assistantContent||t.startsWith("intent://")||/^https?:\/\//.test(t);if(c||f(),c){const{showAssistantContent:n}=await i(async()=>{const{showAssistantContent:e}=await import("./CzdMU9Bu.js");return{showAssistantContent:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42]),import.meta.url);if(await n(t,{preserveFocus:!0,background:a.assistantContent===!0,agentId:a.assistantAgentId})){if(a.assistantContent)return;const{openPanel:e}=await i(async()=>{const{openPanel:o}=await import("./BfbZn9QX.js").then(s=>s.I7);return{openPanel:o}},__vite__mapDeps([3,4,2,5,6,7,8,1,9,10,11]),import.meta.url),{store:g}=await i(async()=>{const{store:o}=await import("./DMjNjha0.js");return{store:o}},__vite__mapDeps([43,3,4,2,5,6,7,8,1,9,10,11,44,45]),import.meta.url);g.dispatch(e("chief"));const{goto:p}=await i(async()=>{const{goto:o}=await import("./CXVUfxHv.js").then(s=>s.n);return{goto:o}},__vite__mapDeps([46,2]),import.meta.url);window.location.pathname!=="/"&&await p("/");return}}if(r(t)&&typeof window<"u"&&typeof sessionStorage<"u"&&!r(window.location.pathname)){const n=new URL(window.location.href);sessionStorage.setItem(w,n.pathname+n.search+n.hash)}const{goto:u}=await i(async()=>{const{goto:n}=await import("./CXVUfxHv.js").then(e=>e.n);return{goto:n}},__vite__mapDeps([46,2]),import.meta.url);return a.state?u(t,{state:a.state}):u(t)}const I=Object.freeze(Object.defineProperty({__proto__:null,SETTINGS_PREV_PATH_KEY:w,isHudWindowRenderer:d,isSettingsRoute:r,navigateToRoute:l},Symbol.toStringTag,{value:"Module"}));export{w as S,r as a,f as b,E as c,I as d,d as i,l as n};
@@ -1 +1 @@
1
- import"./DYhIMPy1.js";import{p as r}from"./BzzDMYz_.js";const t={get error(){return r.error},get params(){return r.params},get state(){return r.state},get status(){return r.status},get url(){return r.url}},s=t;export{s as p};
1
+ import"./DYhIMPy1.js";import{p as r}from"./CXVUfxHv.js";const t={get error(){return r.error},get params(){return r.params},get state(){return r.state},get status(){return r.status},get url(){return r.url}},s=t;export{s as p};
@@ -1,4 +1,4 @@
1
- import{p as Mt}from"./DZNLst19.js";import{aZ as Nt,U as zt,Y as Lt,b0 as Tt,V as Xt,a_ as At,b as u,a6 as Et,W as Yt,q as J,ay as Q,aX as It,B as Bt,r as Ft,X as V}from"./Z8gQAmFb.js";import{p as Rt}from"./Cv_J2c72.js";var G=u((o,r)=>{const e=o<=1?o*100:o;if(e<0||e>100)throw new Error(`${r} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${o}`);return e},"toPercent"),X=u((o,r,e)=>({x:G(r,`${e} evolution`),y:G(o,`${e} visibility`)}),"toCoordinates"),K=u(o=>{if(o){if(o==="+<>")return"bidirectional";if(o==="+<")return"backward";if(o==="+>")return"forward"}},"getFlowFromPort"),Ot=u(o=>{if(!o?.startsWith("+"))return{};const e=/^\+'([^']*)'/.exec(o)?.[1];return o.includes("<>")?{flow:"bidirectional",label:e}:o.includes("<")?{flow:"backward",label:e}:o.includes(">")?{flow:"forward",label:e}:{label:e}},"extractFlowFromArrow"),Wt=u((o,r)=>{if(Mt(o,r),o.size&&r.setSize(o.size.width,o.size.height),o.evolution){const e=o.evolution.stages.map(a=>a.secondName?`${a.name.trim()} / ${a.secondName.trim()}`:a.name.trim()),h=o.evolution.stages.filter(a=>a.boundary!==void 0).map(a=>a.boundary);r.updateAxes({stages:e,stageBoundaries:h})}if(o.anchors.forEach(e=>{const h=X(e.visibility,e.evolution,`Anchor "${e.name}"`);r.addNode(e.name,e.name,h.x,h.y,"anchor")}),o.components.forEach(e=>{const h=X(e.visibility,e.evolution,`Component "${e.name}"`),a=e.label?(e.label.negX?-1:1)*e.label.offsetX:void 0,d=e.label?(e.label.negY?-1:1)*e.label.offsetY:void 0,w=e.decorator?.strategy;r.addNode(e.name,e.name,h.x,h.y,"component",a,d,e.inertia,w)}),o.notes.forEach(e=>{const h=X(e.visibility,e.evolution,`Note "${e.text}"`);r.addNote(e.text,h.x,h.y)}),o.pipelines.forEach(e=>{const h=r.getNode(e.parent);if(!h||typeof h.y!="number")throw new Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);const a=h.y;r.startPipeline(e.parent),e.components.forEach(d=>{const w=`${e.parent}_${d.name}`,C=d.label?(d.label.negX?-1:1)*d.label.offsetX:void 0,g=d.label?(d.label.negY?-1:1)*d.label.offsetY:void 0,R=G(d.evolution,`Pipeline component "${d.name}" evolution`);r.addNode(w,d.name,R,a,"pipeline-component",C,g),r.addPipelineComponent(e.parent,w)})}),o.links.forEach(e=>{const h=!!e.arrow&&(e.arrow.includes("-.->")||e.arrow.includes(".-."));let a=K(e.fromPort)??K(e.toPort);const{flow:d,label:w}=Ot(e.arrow);!a&&d&&(a=d);const C=e.linkLabel,g=w??C;r.addLink(r.resolveNodeId(e.from),r.resolveNodeId(e.to),h,g,a)}),o.evolves.forEach(e=>{const h=r.getNode(e.component);if(h?.y!==void 0){const a=G(e.target,`Evolve target for "${e.component}"`);r.addTrend(e.component,a,h.y)}}),o.annotations.length>0){const e=o.annotations[0],h=X(e.x,e.y,"Annotations box");r.setAnnotationsBox(h.x,h.y)}o.annotation.forEach(e=>{const h=X(e.x,e.y,`Annotation ${e.number}`);r.addAnnotation(e.number,[{x:h.x,y:h.y}],e.text)}),o.accelerators.forEach(e=>{const h=X(e.x,e.y,`Accelerator "${e.name}"`);r.addAccelerator(e.name,h.x,h.y)}),o.deaccelerators.forEach(e=>{const h=X(e.x,e.y,`Deaccelerator "${e.name}"`);r.addDeaccelerator(e.name,h.x,h.y)})},"populateDb"),tt={parser:{yy:void 0},parse:u(async o=>{const r=await Rt("wardley",o);Q.debug(r);const e=tt.parser?.yy;if(!e||typeof e.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Wt(r,e)},"parse")},E,Dt=(E=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}addNode(r){const e=this.nodes.get(r.id)??{id:r.id,label:r.label},h={...e,...r,className:r.className??e.className,labelOffsetX:r.labelOffsetX??e.labelOffsetX,labelOffsetY:r.labelOffsetY??e.labelOffsetY};this.nodes.set(r.id,h)}addLink(r){this.links.push(r)}addTrend(r){this.trends.set(r.nodeId,r)}startPipeline(r){this.pipelines.set(r,{nodeId:r,componentIds:[]});const e=this.nodes.get(r);e&&(e.isPipelineParent=!0)}addPipelineComponent(r,e){const h=this.pipelines.get(r);h&&h.componentIds.push(e);const a=this.nodes.get(e);a&&(a.inPipeline=!0)}addAnnotation(r){this.annotations.push(r)}addNote(r){this.notes.push(r)}addAccelerator(r){this.accelerators.push(r)}addDeaccelerator(r){this.deaccelerators.push(r)}setAnnotationsBox(r,e){this.annotationsBox={x:r,y:e}}setAxes(r){this.axes={...this.axes,...r}}setSize(r,e){this.size={width:r,height:e}}getNode(r){return this.nodes.get(r)}resolveNodeId(r){if(this.nodes.has(r))return r;for(const[e,h]of this.nodes)if(h.label===r)return e;return r}build(){const r=[];for(const e of this.nodes.values()){if(typeof e.x!="number"||typeof e.y!="number")throw new Error(`Node "${e.label}" is missing coordinates`);r.push(e)}return{nodes:r,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},u(E,"WardleyBuilder"),E),k=new Dt;function et(){return V()["wardley-beta"]}u(et,"getConfig");function at(o,r,e,h,a,d,w,C,g){k.addNode({id:o,label:r,x:e,y:h,className:a,labelOffsetX:d,labelOffsetY:w,inertia:C,sourceStrategy:g})}u(at,"addNode");function rt(o,r,e=!1,h,a){k.addLink({source:o,target:r,dashed:e,label:h,flow:a})}u(rt,"addLink");function ot(o,r,e){k.addTrend({nodeId:o,targetX:r,targetY:e})}u(ot,"addTrend");function nt(o,r,e){k.addAnnotation({number:o,coordinates:r,text:e})}u(nt,"addAnnotation");function st(o,r,e){k.addNote({text:o,x:r,y:e})}u(st,"addNote");function it(o,r,e){k.addAccelerator({name:o,x:r,y:e})}u(it,"addAccelerator");function dt(o,r,e){k.addDeaccelerator({name:o,x:r,y:e})}u(dt,"addDeaccelerator");function lt(o,r){k.setAnnotationsBox(o,r)}u(lt,"setAnnotationsBox");function ct(o,r){k.setSize(o,r)}u(ct,"setSize");function pt(o){k.startPipeline(o)}u(pt,"startPipeline");function ft(o,r){k.addPipelineComponent(o,r)}u(ft,"addPipelineComponent");function ht(o){k.setAxes(o)}u(ht,"updateAxes");function xt(o){return k.getNode(o)}u(xt,"getNode");function gt(o){return k.resolveNodeId(o)}u(gt,"resolveNodeId");function yt(){return k.build()}u(yt,"getWardleyData");function ut(){k.clear(),Ft()}u(ut,"clear");var Gt={getConfig:et,addNode:at,addLink:rt,addTrend:ot,addAnnotation:nt,addNote:st,addAccelerator:it,addDeaccelerator:dt,setAnnotationsBox:lt,setSize:ct,startPipeline:pt,addPipelineComponent:ft,updateAxes:ht,getNode:xt,resolveNodeId:gt,getWardleyData:yt,clear:ut,setAccTitle:At,getAccTitle:Xt,setDiagramTitle:Tt,getDiagramTitle:Lt,getAccDescription:zt,setAccDescription:Nt},qt=["Genesis","Custom Built","Product","Commodity"],Ht=u(()=>{const{themeVariables:o}=V();return{backgroundColor:o.wardley?.backgroundColor??o.background??"#fff",axisColor:o.wardley?.axisColor??"#000",axisTextColor:o.wardley?.axisTextColor??o.primaryTextColor??"#222",gridColor:o.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:o.wardley?.componentFill??"#fff",componentStroke:o.wardley?.componentStroke??"#000",componentLabelColor:o.wardley?.componentLabelColor??o.primaryTextColor??"#222",linkStroke:o.wardley?.linkStroke??"#000",evolutionStroke:o.wardley?.evolutionStroke??"#dc3545",annotationStroke:o.wardley?.annotationStroke??"#000",annotationTextColor:o.wardley?.annotationTextColor??o.primaryTextColor??"#222",annotationFill:o.wardley?.annotationFill??o.background??"#fff"}},"getTheme"),jt=u(()=>{const o=V()["wardley-beta"];return{width:o?.width??900,height:o?.height??600,padding:o?.padding??48,nodeRadius:o?.nodeRadius??6,nodeLabelOffset:o?.nodeLabelOffset??8,axisFontSize:o?.axisFontSize??12,labelFontSize:o?.labelFontSize??10,showGrid:o?.showGrid??!1,useMaxWidth:o?.useMaxWidth??!0}},"getConfigValues"),Vt=u((o,r,e,h)=>{Q.debug(`Rendering Wardley map
1
+ import{p as Mt}from"./D7dPbXji.js";import{aZ as Nt,U as zt,Y as Lt,b0 as Tt,V as Xt,a_ as At,b as u,a6 as Et,W as Yt,q as J,ay as Q,aX as It,B as Bt,r as Ft,X as V}from"./DOKxXiSI.js";import{p as Rt}from"./B-7vt8Nv.js";var G=u((o,r)=>{const e=o<=1?o*100:o;if(e<0||e>100)throw new Error(`${r} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${o}`);return e},"toPercent"),X=u((o,r,e)=>({x:G(r,`${e} evolution`),y:G(o,`${e} visibility`)}),"toCoordinates"),K=u(o=>{if(o){if(o==="+<>")return"bidirectional";if(o==="+<")return"backward";if(o==="+>")return"forward"}},"getFlowFromPort"),Ot=u(o=>{if(!o?.startsWith("+"))return{};const e=/^\+'([^']*)'/.exec(o)?.[1];return o.includes("<>")?{flow:"bidirectional",label:e}:o.includes("<")?{flow:"backward",label:e}:o.includes(">")?{flow:"forward",label:e}:{label:e}},"extractFlowFromArrow"),Wt=u((o,r)=>{if(Mt(o,r),o.size&&r.setSize(o.size.width,o.size.height),o.evolution){const e=o.evolution.stages.map(a=>a.secondName?`${a.name.trim()} / ${a.secondName.trim()}`:a.name.trim()),h=o.evolution.stages.filter(a=>a.boundary!==void 0).map(a=>a.boundary);r.updateAxes({stages:e,stageBoundaries:h})}if(o.anchors.forEach(e=>{const h=X(e.visibility,e.evolution,`Anchor "${e.name}"`);r.addNode(e.name,e.name,h.x,h.y,"anchor")}),o.components.forEach(e=>{const h=X(e.visibility,e.evolution,`Component "${e.name}"`),a=e.label?(e.label.negX?-1:1)*e.label.offsetX:void 0,d=e.label?(e.label.negY?-1:1)*e.label.offsetY:void 0,w=e.decorator?.strategy;r.addNode(e.name,e.name,h.x,h.y,"component",a,d,e.inertia,w)}),o.notes.forEach(e=>{const h=X(e.visibility,e.evolution,`Note "${e.text}"`);r.addNote(e.text,h.x,h.y)}),o.pipelines.forEach(e=>{const h=r.getNode(e.parent);if(!h||typeof h.y!="number")throw new Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);const a=h.y;r.startPipeline(e.parent),e.components.forEach(d=>{const w=`${e.parent}_${d.name}`,C=d.label?(d.label.negX?-1:1)*d.label.offsetX:void 0,g=d.label?(d.label.negY?-1:1)*d.label.offsetY:void 0,R=G(d.evolution,`Pipeline component "${d.name}" evolution`);r.addNode(w,d.name,R,a,"pipeline-component",C,g),r.addPipelineComponent(e.parent,w)})}),o.links.forEach(e=>{const h=!!e.arrow&&(e.arrow.includes("-.->")||e.arrow.includes(".-."));let a=K(e.fromPort)??K(e.toPort);const{flow:d,label:w}=Ot(e.arrow);!a&&d&&(a=d);const C=e.linkLabel,g=w??C;r.addLink(r.resolveNodeId(e.from),r.resolveNodeId(e.to),h,g,a)}),o.evolves.forEach(e=>{const h=r.getNode(e.component);if(h?.y!==void 0){const a=G(e.target,`Evolve target for "${e.component}"`);r.addTrend(e.component,a,h.y)}}),o.annotations.length>0){const e=o.annotations[0],h=X(e.x,e.y,"Annotations box");r.setAnnotationsBox(h.x,h.y)}o.annotation.forEach(e=>{const h=X(e.x,e.y,`Annotation ${e.number}`);r.addAnnotation(e.number,[{x:h.x,y:h.y}],e.text)}),o.accelerators.forEach(e=>{const h=X(e.x,e.y,`Accelerator "${e.name}"`);r.addAccelerator(e.name,h.x,h.y)}),o.deaccelerators.forEach(e=>{const h=X(e.x,e.y,`Deaccelerator "${e.name}"`);r.addDeaccelerator(e.name,h.x,h.y)})},"populateDb"),tt={parser:{yy:void 0},parse:u(async o=>{const r=await Rt("wardley",o);Q.debug(r);const e=tt.parser?.yy;if(!e||typeof e.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Wt(r,e)},"parse")},E,Dt=(E=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}addNode(r){const e=this.nodes.get(r.id)??{id:r.id,label:r.label},h={...e,...r,className:r.className??e.className,labelOffsetX:r.labelOffsetX??e.labelOffsetX,labelOffsetY:r.labelOffsetY??e.labelOffsetY};this.nodes.set(r.id,h)}addLink(r){this.links.push(r)}addTrend(r){this.trends.set(r.nodeId,r)}startPipeline(r){this.pipelines.set(r,{nodeId:r,componentIds:[]});const e=this.nodes.get(r);e&&(e.isPipelineParent=!0)}addPipelineComponent(r,e){const h=this.pipelines.get(r);h&&h.componentIds.push(e);const a=this.nodes.get(e);a&&(a.inPipeline=!0)}addAnnotation(r){this.annotations.push(r)}addNote(r){this.notes.push(r)}addAccelerator(r){this.accelerators.push(r)}addDeaccelerator(r){this.deaccelerators.push(r)}setAnnotationsBox(r,e){this.annotationsBox={x:r,y:e}}setAxes(r){this.axes={...this.axes,...r}}setSize(r,e){this.size={width:r,height:e}}getNode(r){return this.nodes.get(r)}resolveNodeId(r){if(this.nodes.has(r))return r;for(const[e,h]of this.nodes)if(h.label===r)return e;return r}build(){const r=[];for(const e of this.nodes.values()){if(typeof e.x!="number"||typeof e.y!="number")throw new Error(`Node "${e.label}" is missing coordinates`);r.push(e)}return{nodes:r,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},u(E,"WardleyBuilder"),E),k=new Dt;function et(){return V()["wardley-beta"]}u(et,"getConfig");function at(o,r,e,h,a,d,w,C,g){k.addNode({id:o,label:r,x:e,y:h,className:a,labelOffsetX:d,labelOffsetY:w,inertia:C,sourceStrategy:g})}u(at,"addNode");function rt(o,r,e=!1,h,a){k.addLink({source:o,target:r,dashed:e,label:h,flow:a})}u(rt,"addLink");function ot(o,r,e){k.addTrend({nodeId:o,targetX:r,targetY:e})}u(ot,"addTrend");function nt(o,r,e){k.addAnnotation({number:o,coordinates:r,text:e})}u(nt,"addAnnotation");function st(o,r,e){k.addNote({text:o,x:r,y:e})}u(st,"addNote");function it(o,r,e){k.addAccelerator({name:o,x:r,y:e})}u(it,"addAccelerator");function dt(o,r,e){k.addDeaccelerator({name:o,x:r,y:e})}u(dt,"addDeaccelerator");function lt(o,r){k.setAnnotationsBox(o,r)}u(lt,"setAnnotationsBox");function ct(o,r){k.setSize(o,r)}u(ct,"setSize");function pt(o){k.startPipeline(o)}u(pt,"startPipeline");function ft(o,r){k.addPipelineComponent(o,r)}u(ft,"addPipelineComponent");function ht(o){k.setAxes(o)}u(ht,"updateAxes");function xt(o){return k.getNode(o)}u(xt,"getNode");function gt(o){return k.resolveNodeId(o)}u(gt,"resolveNodeId");function yt(){return k.build()}u(yt,"getWardleyData");function ut(){k.clear(),Ft()}u(ut,"clear");var Gt={getConfig:et,addNode:at,addLink:rt,addTrend:ot,addAnnotation:nt,addNote:st,addAccelerator:it,addDeaccelerator:dt,setAnnotationsBox:lt,setSize:ct,startPipeline:pt,addPipelineComponent:ft,updateAxes:ht,getNode:xt,resolveNodeId:gt,getWardleyData:yt,clear:ut,setAccTitle:At,getAccTitle:Xt,setDiagramTitle:Tt,getDiagramTitle:Lt,getAccDescription:zt,setAccDescription:Nt},qt=["Genesis","Custom Built","Product","Commodity"],Ht=u(()=>{const{themeVariables:o}=V();return{backgroundColor:o.wardley?.backgroundColor??o.background??"#fff",axisColor:o.wardley?.axisColor??"#000",axisTextColor:o.wardley?.axisTextColor??o.primaryTextColor??"#222",gridColor:o.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:o.wardley?.componentFill??"#fff",componentStroke:o.wardley?.componentStroke??"#000",componentLabelColor:o.wardley?.componentLabelColor??o.primaryTextColor??"#222",linkStroke:o.wardley?.linkStroke??"#000",evolutionStroke:o.wardley?.evolutionStroke??"#dc3545",annotationStroke:o.wardley?.annotationStroke??"#000",annotationTextColor:o.wardley?.annotationTextColor??o.primaryTextColor??"#222",annotationFill:o.wardley?.annotationFill??o.background??"#fff"}},"getTheme"),jt=u(()=>{const o=V()["wardley-beta"];return{width:o?.width??900,height:o?.height??600,padding:o?.padding??48,nodeRadius:o?.nodeRadius??6,nodeLabelOffset:o?.nodeLabelOffset??8,axisFontSize:o?.axisFontSize??12,labelFontSize:o?.labelFontSize??10,showGrid:o?.showGrid??!1,useMaxWidth:o?.useMaxWidth??!0}},"getConfigValues"),Vt=u((o,r,e,h)=>{Q.debug(`Rendering Wardley map
2
2
  `+o);const a=jt(),d=Ht(),w=a.nodeRadius*1.6,C=h.db,g=C.getWardleyData(),R=C.getDiagramTitle(),S=g.size?.width??a.width,b=g.size?.height??a.height,Y=It(r);Y.selectAll("*").remove(),Bt(Y,b,S,a.useMaxWidth),Y.attr("viewBox",`0 0 ${S} ${b}`);const v=Y.append("g").attr("class","wardley-map"),q=Y.append("defs");q.append("marker").attr("id",`arrow-${r}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.evolutionStroke).attr("stroke","none"),q.append("marker").attr("id",`link-arrow-end-${r}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.linkStroke).attr("stroke","none"),q.append("marker").attr("id",`link-arrow-start-${r}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",d.linkStroke).attr("stroke","none"),v.append("rect").attr("class","wardley-background").attr("width",S).attr("height",b).attr("fill",d.backgroundColor);const I=S-a.padding*2,B=b-a.padding*2;R&&v.append("text").attr("class","wardley-title").attr("x",S/2).attr("y",a.padding/2).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(R);const z=u(t=>a.padding+t/100*I,"projectX"),L=u(t=>b-a.padding-t/100*B,"projectY"),O=v.append("g").attr("class","wardley-axes");O.append("line").attr("x1",a.padding).attr("x2",S-a.padding).attr("y1",b-a.padding).attr("y2",b-a.padding).attr("stroke",d.axisColor).attr("stroke-width",1),O.append("line").attr("x1",a.padding).attr("x2",a.padding).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke",d.axisColor).attr("stroke-width",1);const wt=g.axes.xLabel??"Evolution",mt=g.axes.yLabel??"Visibility";O.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",a.padding+I/2).attr("y",b-a.padding/4).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(wt),O.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",a.padding/3).attr("y",a.padding+B/2).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${a.padding/3} ${a.padding+B/2})`).text(mt);const F=g.axes.stages&&g.axes.stages.length>0?g.axes.stages:qt;if(F.length>0){const t=v.append("g").attr("class","wardley-stages"),s=g.axes.stageBoundaries,n=[];if(s&&s.length===F.length){let i=0;s.forEach(p=>{n.push({start:i,end:p}),i=p})}else{const i=1/F.length;F.forEach((p,l)=>{n.push({start:l*i,end:(l+1)*i})})}F.forEach((i,p)=>{const l=n[p],f=a.padding+l.start*I,x=a.padding+l.end*I,y=(f+x)/2;p>0&&t.append("line").attr("x1",f).attr("x2",f).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),t.append("text").attr("class","wardley-stage-label").attr("x",y).attr("y",b-a.padding/1.5).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize-2).attr("text-anchor","middle").text(i)})}if(a.showGrid){const t=v.append("g").attr("class","wardley-grid");for(let s=1;s<4;s++){const n=s/4,i=a.padding+I*n;t.append("line").attr("x1",i).attr("x2",i).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6"),t.append("line").attr("x1",a.padding).attr("x2",S-a.padding).attr("y1",b-a.padding-B*n).attr("y2",b-a.padding-B*n).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6")}}const c=new Map;if(g.nodes.forEach(t=>{c.set(t.id,{x:z(t.x),y:L(t.y),node:t})}),g.pipelines.length>0){const t=v.append("g").attr("class","wardley-pipelines"),s=v.append("g").attr("class","wardley-pipeline-links");g.pipelines.forEach(n=>{if(n.componentIds.length===0)return;const i=n.componentIds.map(x=>({id:x,pos:c.get(x),node:g.nodes.find(y=>y.id===x)})).filter(x=>x.pos&&x.node).sort((x,y)=>x.node.x-y.node.x);for(let x=0;x<i.length-1;x++){const y=i[x],m=i[x+1];s.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",y.pos.x).attr("y1",y.pos.y).attr("x2",m.pos.x).attr("y2",m.pos.y).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let p=1/0,l=-1/0,f=0;if(n.componentIds.forEach(x=>{const y=c.get(x);y&&(p=Math.min(p,y.x),l=Math.max(l,y.x),f=y.y)}),p!==1/0&&l!==-1/0){const y=a.nodeRadius*4,m=f-y/2,P=c.get(n.nodeId);if(P){const N=(p+l)/2;P.x=N,P.y=m-w/6}t.append("rect").attr("class","wardley-pipeline-box").attr("x",p-15).attr("y",m).attr("width",l-p+30).attr("height",y).attr("fill","none").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}const _=v.append("g").attr("class","wardley-links"),Z=new Map;g.pipelines.forEach(t=>{Z.set(t.nodeId,new Set(t.componentIds))});const U=g.links.filter(t=>!(!c.has(t.source)||!c.has(t.target)||Z.get(t.target)?.has(t.source)));_.selectAll("line").data(U).enter().append("line").attr("class",t=>`wardley-link${t.dashed?" wardley-link--dashed":""}`).attr("x1",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.source).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=n.x-s.x,f=n.y-s.y,x=Math.sqrt(l*l+f*f);return s.x+l/x*p}).attr("y1",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.source).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=n.x-s.x,f=n.y-s.y,x=Math.sqrt(l*l+f*f);return s.y+f/x*p}).attr("x2",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.target).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=s.x-n.x,f=s.y-n.y,x=Math.sqrt(l*l+f*f);return n.x+l/x*p}).attr("y2",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.target).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=s.x-n.x,f=s.y-n.y,x=Math.sqrt(l*l+f*f);return n.y+f/x*p}).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",t=>t.dashed?"6 6":null).attr("marker-end",t=>t.flow==="forward"||t.flow==="bidirectional"?`url(#link-arrow-end-${r})`:null).attr("marker-start",t=>t.flow==="backward"||t.flow==="bidirectional"?`url(#link-arrow-start-${r})`:null),_.selectAll("text").data(U.filter(t=>t.label)).enter().append("text").attr("class","wardley-link-label").attr("x",t=>{const s=c.get(t.source),n=c.get(t.target),i=(s.x+n.x)/2,p=n.y-s.y,l=n.x-s.x,f=Math.sqrt(l*l+p*p),x=8,y=p/f;return i+y*x}).attr("y",t=>{const s=c.get(t.source),n=c.get(t.target),i=(s.y+n.y)/2,p=n.x-s.x,l=n.y-s.y,f=Math.sqrt(p*p+l*l),x=8,y=-p/f;return i+y*x}).attr("fill",d.axisTextColor).attr("font-size",a.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",t=>{const s=c.get(t.source),n=c.get(t.target),i=(s.x+n.x)/2,p=(s.y+n.y)/2,l=n.x-s.x,f=n.y-s.y,x=Math.sqrt(l*l+f*f),y=8,m=f/x,P=-l/x,N=i+m*y,W=p+P*y;let A=Math.atan2(f,l)*180/Math.PI;return(A>90||A<-90)&&(A+=180),`rotate(${A} ${N} ${W})`}).text(t=>t.label);const kt=v.append("g").attr("class","wardley-trends"),bt=g.trends.map(t=>{const s=c.get(t.nodeId);if(!s)return null;const n=z(t.targetX),i=L(t.targetY),p=n-s.x,l=i-s.y,f=Math.sqrt(p*p+l*l),x=a.nodeRadius+2,y=f>x?n-p/f*x:n,m=f>x?i-l/f*x:i;return{origin:s,targetX:n,targetY:i,adjustedX2:y,adjustedY2:m}}).filter(t=>t!==null);kt.selectAll("line").data(bt).enter().append("line").attr("class","wardley-trend").attr("x1",t=>t.origin.x).attr("y1",t=>t.origin.y).attr("x2",t=>t.adjustedX2).attr("y2",t=>t.adjustedY2).attr("stroke",d.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${r})`);const M=v.append("g").attr("class","wardley-nodes").selectAll("g").data(g.nodes).enter().append("g").attr("class",t=>["wardley-node",t.className?`wardley-node--${t.className}`:""].filter(Boolean).join(" "));M.filter(t=>t.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#666").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#ccc").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);const T=M.filter(t=>t.sourceStrategy==="market");T.append("circle").attr("class","wardley-market-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>!t.isPipelineParent&&t.sourceStrategy!=="market"&&t.className!=="anchor").append("circle").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1);const H=a.nodeRadius*.7,$=a.nodeRadius*1.2;if(T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x).attr("y1",t=>c.get(t.id).y-$).attr("x2",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x).attr("y2",t=>c.get(t.id).y-$).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y-$).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),M.filter(t=>t.isPipelineParent===!0).append("rect").attr("x",t=>c.get(t.id).x-w/2).attr("y",t=>c.get(t.id).y-w/2).attr("width",w).attr("height",w).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",t=>{const s=c.get(t.id);let n=t.isPipelineParent?w/2+15:a.nodeRadius+15;return t.sourceStrategy&&(n+=a.nodeRadius+10),s.x+n}).attr("y1",t=>{const s=c.get(t.id),n=t.isPipelineParent?w:a.nodeRadius*2;return s.y-n/2}).attr("x2",t=>{const s=c.get(t.id);let n=t.isPipelineParent?w/2+15:a.nodeRadius+15;return t.sourceStrategy&&(n+=a.nodeRadius+10),s.x+n}).attr("y2",t=>{const s=c.get(t.id),n=t.isPipelineParent?w:a.nodeRadius*2;return s.y+n/2}).attr("stroke",d.componentStroke).attr("stroke-width",6),M.append("text").attr("x",t=>{const s=c.get(t.id);if(t.className==="anchor")return t.labelOffsetX!==void 0?s.x+t.labelOffsetX:s.x;let n=a.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetX===void 0&&(n+=10);const i=t.labelOffsetX??n;return s.x+i}).attr("y",t=>{const s=c.get(t.id);if(t.className==="anchor")return t.labelOffsetY!==void 0?s.y+t.labelOffsetY:s.y-3;let n=-a.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetY===void 0&&(n-=10);const i=t.labelOffsetY??n;return s.y+i}).attr("class","wardley-node-label").attr("fill",t=>t.className==="evolved"?d.evolutionStroke:t.className==="anchor"?"#000":d.componentLabelColor).attr("font-size",a.labelFontSize).attr("font-weight",t=>t.className==="anchor"?"bold":"normal").attr("text-anchor",t=>t.className==="anchor"?"middle":"start").attr("dominant-baseline",t=>t.className==="anchor"?"middle":"auto").text(t=>t.label),g.annotations.length>0){const t=v.append("g").attr("class","wardley-annotations");if(g.annotations.forEach(s=>{const n=s.coordinates.map(i=>({x:z(i.x),y:L(i.y)}));if(n.length>1)for(let i=0;i<n.length-1;i++)t.append("line").attr("class","wardley-annotation-line").attr("x1",n[i].x).attr("y1",n[i].y).attr("x2",n[i+1].x).attr("y2",n[i+1].y).attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");n.forEach(i=>{const p=t.append("g").attr("class","wardley-annotation");p.append("circle").attr("cx",i.x).attr("cy",i.y).attr("r",10).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5),p.append("text").attr("x",i.x).attr("y",i.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",d.axisTextColor).attr("font-weight","bold").text(s.number)})}),g.annotationsBox){let s=z(g.annotationsBox.x),n=L(g.annotationsBox.y);const i=10,p=16,l=11,f=t.append("g").attr("class","wardley-annotations-box"),x=[...g.annotations].filter(m=>m.text).sort((m,P)=>m.number-P.number),y=[];if(x.forEach((m,P)=>{const N=f.append("text").attr("x",s+i).attr("y",n+i+(P+1)*p).attr("font-size",l).attr("fill",d.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${m.number}. ${m.text}`);y.push(N)}),y.length>0){let m=0,P=0;y.forEach(j=>{const D=j.node(),Ct=D.getComputedTextLength();m=Math.max(m,Ct);const St=D.getBBox();P=Math.max(P,St.height)});const N=m+i*2+105,W=x.length*p+i*2+P/2,A=a.padding,$t=S-a.padding-N,vt=a.padding,Pt=b-a.padding-W;s=Math.max(A,Math.min(s,$t)),n=Math.max(vt,Math.min(n,Pt)),y.forEach((j,D)=>{j.attr("x",s+i).attr("y",n+i+(D+1)*p)}),f.insert("rect","text").attr("x",s).attr("y",n).attr("width",N).attr("height",W).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(g.notes.length>0){const t=v.append("g").attr("class","wardley-notes");g.notes.forEach(s=>{const n=z(s.x),i=L(s.y);t.append("text").attr("x",n).attr("y",i).attr("text-anchor","start").attr("font-size",11).attr("fill",d.axisTextColor).attr("font-weight","bold").text(s.text)})}if(g.accelerators.length>0){const t=v.append("g").attr("class","wardley-accelerators");g.accelerators.forEach(s=>{const n=z(s.x),i=L(s.y),p=60,l=30,f=20,x=`
3
3
  M ${n} ${i-l/2}
4
4
  L ${n+p-f} ${i-l/2}
@@ -1,4 +1,4 @@
1
- import{t as d,br as r,bz as n,b as h}from"./DTQYcznv.js";import{bs as x,b_ as u,W as C,bn as g,aA as p,aC as y}from"./DYhIMPy1.js";import{u as i,v as G,j as M}from"./Ck9ZyE1n.js";var U=y(`<svg id="Ebene_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 466.73 533.32"><defs><style>.st0 {
1
+ import{t as d,bq as r,by as n,b as h}from"./D9jYN6_J.js";import{bs as x,b_ as u,W as C,bn as g,aA as p,aC as y}from"./DYhIMPy1.js";import{s as i,f as G,c as M}from"./C_EpV6jU.js";var U=y(`<svg id="Ebene_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 466.73 533.32"><defs><style>.st0 {
2
2
  fill: #72716d;
3
3
  }
4
4
 
@@ -0,0 +1 @@
1
+ import{t as te,bq as a,bt as le,by as re,br as ce,b as ae,bo as Oe}from"./D9jYN6_J.js";import{bs as se,a7 as A,ay as P,W as d,bn as oe,aA as s,aD as _,c9 as D,aB as q,ca as Le,bS as Z,a5 as U,bf as ke,bA as Y,aC as Xe,c0 as Ze,bV as et,be as _e,b$ as xe,b_ as pe,bO as we,bH as tt}from"./DYhIMPy1.js";import{i as R}from"./7eL9Pgig.js";import{s as ie}from"./Cx31i8ng.js";import{c as T}from"./DZyAzxxC.js";import{I as ye,F as ze,c as $e}from"./B4gIvcP2.js";import{b as Ce,e as de,f as rt,p as at}from"./C_EpV6jU.js";import{i as st,h as ot,a as nt}from"./DHROL4K5.js";import{a_ as lt,a1 as it,f as Ne}from"./0qEvU7Aj.js";import"./Dkva_evl.js";import{u as Re,c as ct,o as Pe,f as dt,e as ut,a as vt,D as ft,b as gt,d as mt}from"./DZ3SUe8R.js";import{c as pt,u as bt,s as ht,a as _t}from"./DfxQWSVU.js";import{p as xt}from"./d-Ep-sfP.js";import"./DtAyUyC0.js";import{b as Te}from"./BaIAhI85.js";import"./B1U_DCBw.js";import{F as wt,Y as yt}from"./CAUaU8Wh.js";import"./BOyF7pe9.js";var Pt=new Set(["$$slots","$$events","$$legacy","ref","class","forceMount","contained","staticPosition"]),kt=q("<div></div>");function qe(b,e){if(new.target)return te({component:qe,...b});se(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),v=a(e,"forceMount",7,!1),g=a(e,"contained",7,!1),f=a(e,"staticPosition",7,!1),l=ce(e,Pt);const i=Re();var r={get ref(){return c()},set ref(p=null){c(p),s()},get class(){return n()},set class(p){n(p),s()},get forceMount(){return v()},set forceMount(p=!1){v(p),s()},get contained(){return g()},set contained(p=!1){g(p),s()},get staticPosition(){return f()},set staticPosition(p=!1){f(p),s()},$set:re,$on:(p,F)=>ae(e,p,F)},m=A(),k=P(m);{const p=(F,H)=>{let L=()=>(H?.()).props;var V=A(),J=P(V);{var ee=G=>{var K=kt();Ce(K,o=>({...L(),"data-slot":"dialog-overlay","data-static-position":f()||void 0,class:o}),[()=>de(g()||f()?"absolute":"fixed","inset-0 z-[var(--layer-modal)] bg-black/40 dark:bg-black/80 motion-reduce:animate-none motion-reduce:transition-none",n())]),ye(1,K,()=>ze,()=>Pe.backdrop.enter),ye(2,K,()=>$e,()=>Pe.backdrop.exit),d(G,K)},ue=D(()=>v()||i());R(J,G=>{_(ue)&&G(ee)})}d(F,V)};T(k,()=>ct,(F,H)=>{H(F,le({forceMount:!0},()=>l,{get ref(){return c()},set ref(L){c(L)},child:p,$$slots:{child:!0}}))})}return d(b,m),oe(r)}var Ct=new Set(["$$slots","$$events","$$legacy","ref","class","portalProps","container","size","forceMount","showCloseButton","closeDisabled","closeLabel","role","onInteractOutside","onOpenAutoFocus","onCloseAutoFocus","trapFocus","preventScroll","children"]),Dt=Xe('<svg aria-hidden="true" viewBox="0 0 16 16" fill="none"><path d="M3 3l10 10M13 3L3 13" stroke="currentColor" stroke-width="1.5"></path></svg>'),St=q("<div><!> <!></div>"),At=q("<!> <!>",1);function Ft(b,e){if(new.target)return te({component:Ft,...b});se(e,!0);const c=t=>{var C=At(),N=P(C);{let W=D(()=>!!f()),j=D(u);qe(N,{get contained(){return _(W)},get staticPosition(){return _(j)}})}var X=Z(N,2);{const W=(ve,fe)=>{let ge=()=>(fe?.()).props;var be=A(),Ie=P(be);{var He=Se=>{var ne=St();Ce(ne,(me,he)=>({...ge(),role:p(),"data-slot":"dialog-content","data-overlay-surface":!0,"data-size":l(),"data-static-position":me,class:he,"data-surface-level":O,onoutroend:x.finishExit}),[()=>u()||void 0,()=>de(u()?"relative mx-auto":f()?"absolute":"fixed",!u()&&"left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2","dialog-editorial-content overlay-surface z-[var(--layer-modal)] grid w-full overflow-y-auto overscroll-contain p-6 text-popover-foreground outline-none motion-reduce:animate-none motion-reduce:transition-none",l()==="sm"&&(z==="compact"?"max-w-90":"max-w-100"),l()==="default"&&"max-w-110",l()==="lg"&&(z==="compact"?"max-w-120":"max-w-135"),l()==="wide"&&"max-w-2xl",l()==="editor"&&"max-w-6xl",_t(O),v())]);var Be=U(ne);ie(Be,()=>ee()??ke);var Ge=Z(Be,2);{var Qe=me=>{var he=A(),Ue=P(he);{const Ye=(Ae,Fe)=>{Ne(Ae,le(()=>(Fe?.()).props,{get"aria-label"(){return k()},get disabled(){return m()},variant:"ghost",size:"icon-sm",iconOnly:!0,class:"dialog-close-button absolute right-6 -translate-y-1/2 text-muted-foreground",children:(Je,Vt)=>{var Ke=Dt();d(Je,Ke)},$$slots:{default:!0}}))};T(Ue,()=>ft,(Ae,Fe)=>{Fe(Ae,{get disabled(){return m()},child:Ye,$$slots:{child:!0}})})}d(me,he)};R(Ge,me=>{r()&&me(Qe)})}Y(ne),ye(1,ne,()=>ze,()=>Pe.dialog.enter),ye(2,ne,()=>$e,()=>Pe.dialog.exit),d(Se,ne)},Ve=D(()=>Q());R(Ie,Se=>{_(Ve)&&Se(He)})}d(ve,be)};let j=D(()=>u()?M:$),E=D(()=>u()?M:L()),y=D(()=>u()?!1:V()),De=D(()=>u()?!1:J());T(X,()=>vt,(ve,fe)=>{fe(ve,le({forceMount:!0},()=>ue,{onInteractOutside:h,get onOpenAutoFocus(){return _(j)},get onCloseAutoFocus(){return _(E)},get trapFocus(){return _(y)},get preventScroll(){return _(De)},get ref(){return n()},set ref(ge){n(ge)},child:W,$$slots:{child:!0}}))})}d(t,C)};let n=a(e,"ref",15,null),v=a(e,"class",7),g=a(e,"portalProps",7),f=a(e,"container",7,null),l=a(e,"size",7,"default"),i=a(e,"forceMount",7,!1),r=a(e,"showCloseButton",7,!0),m=a(e,"closeDisabled",7,!1),k=a(e,"closeLabel",23,()=>Oe.ui_dialog_close_ariaLabel()),p=a(e,"role",7,"dialog"),F=a(e,"onInteractOutside",7),H=a(e,"onOpenAutoFocus",7),L=a(e,"onCloseAutoFocus",7),V=a(e,"trapFocus",7),J=a(e,"preventScroll",7),ee=a(e,"children",7),ue=ce(e,Ct);const G=st(),K=ot();Le(()=>{const t=n();if(!(!t||!G))return G.register(t,K)});const o=Re(),u=dt(),O=pt(bt()+2);ht(O);const z=lt(),Q=()=>i()||o(),x=ut(Q);xt(()=>n());function h(t){t.target instanceof Element&&t.target.closest("[data-image-lightbox-root]")&&t.preventDefault(),F()?.(t)}function $(t){if(H()?.(t),t.defaultPrevented||!n())return;const C=y=>y.closest('[data-slot="dialog-content"]')===n(),N=y=>!y.matches(':disabled, [aria-disabled="true"], [inert]')&&!y.closest("[inert]")&&y.getClientRects().length>0&&getComputedStyle(y).visibility==="visible",X=Array.from(n().querySelectorAll('[data-dialog-primary-action], [data-slot="dialog-footer"] button, [data-slot="dialog-footer"] a[href]')).filter(C),W=X.find(y=>y.hasAttribute("data-dialog-primary-action"))??X.at(-1),j=Array.from(n().querySelectorAll('input:not([type="hidden"]), textarea, select, [contenteditable="true"]')).find(y=>C(y)&&N(y)),E=W&&N(W)?W:j??n();t.preventDefault(),E.focus({preventScroll:!0})}function M(t){t.preventDefault()}var S={get ref(){return n()},set ref(t=null){n(t),s()},get class(){return v()},set class(t){v(t),s()},get portalProps(){return g()},set portalProps(t){g(t),s()},get container(){return f()},set container(t=null){f(t),s()},get size(){return l()},set size(t="default"){l(t),s()},get forceMount(){return i()},set forceMount(t=!1){i(t),s()},get showCloseButton(){return r()},set showCloseButton(t=!0){r(t),s()},get closeDisabled(){return m()},set closeDisabled(t=!1){m(t),s()},get closeLabel(){return k()},set closeLabel(t=Oe.ui_dialog_close_ariaLabel()){k(t),s()},get role(){return p()},set role(t="dialog"){p(t),s()},get onInteractOutside(){return F()},set onInteractOutside(t){F(t),s()},get onOpenAutoFocus(){return H()},set onOpenAutoFocus(t){H(t),s()},get onCloseAutoFocus(){return L()},set onCloseAutoFocus(t){L(t),s()},get trapFocus(){return V()},set trapFocus(t){V(t),s()},get preventScroll(){return J()},set preventScroll(t){J(t),s()},get children(){return ee()},set children(t){ee(t),s()},$set:re,$on:(t,C)=>ae(e,t,C)},I=A(),w=P(I);{var B=t=>{var C=A(),N=P(C);{var X=E=>{c(E)},W=D(()=>u()),j=E=>{var y=A(),De=P(y);{let ve=D(()=>f()??g()?.to??G?.target());T(De,()=>it,(fe,ge)=>{ge(fe,le(g,{get to(){return _(ve)},children:(be,Ie)=>{c(be)},$$slots:{default:!0}}))})}d(E,y)};R(N,E=>{_(W)?E(X):E(j,-1)})}d(t,C)};R(w,t=>{x.mounted&&t(B)})}return d(b,I),oe(S)}var Ot=new Set(["$$slots","$$events","$$legacy","ref","class"]);function We(b,e){if(new.target)return te({component:We,...b});se(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),v=ce(e,Ot);var g={get ref(){return c()},set ref(i=null){c(i),s()},get class(){return n()},set class(i){n(i),s()},$set:re,$on:(i,r)=>ae(e,i,r)},f=A(),l=P(f);{let i=D(()=>de("type-caption break-words text-muted-foreground",n()));T(l,()=>gt,(r,m)=>{m(r,le({"data-slot":"dialog-description",get class(){return _(i)}},()=>v,{get ref(){return c()},set ref(k){c(k)}}))})}return d(b,f),oe(g)}var Mt=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),It=q("<div><!></div>");function je(b,e){if(new.target)return te({component:je,...b});se(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),v=a(e,"children",7),g=ce(e,Mt);var f={get ref(){return c()},set ref(r=null){c(r),s()},get class(){return n()},set class(r){n(r),s()},get children(){return v()},set children(r){v(r),s()},$set:re,$on:(r,m)=>ae(e,r,m)},l=It();Ce(l,r=>({"data-slot":"dialog-footer",class:r,...g}),[()=>de("dialog-actions mt-6 flex min-w-0 flex-wrap items-center justify-end gap-2",n())],void 0,void 0,"svelte-1xlmj20");var i=U(l);return ie(i,()=>v()??ke),Y(l),Te(l,r=>c(r),()=>c()),d(b,l),oe(f)}var Bt=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Lt=q("<div><!></div>");function Ee(b,e){if(new.target)return te({component:Ee,...b});se(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),v=a(e,"children",7),g=ce(e,Bt);var f={get ref(){return c()},set ref(r=null){c(r),s()},get class(){return n()},set class(r){n(r),s()},get children(){return v()},set children(r){v(r),s()},$set:re,$on:(r,m)=>ae(e,r,m)},l=Lt();Ce(l,r=>({"data-slot":"dialog-header",class:r,...g}),[()=>de("mb-4 flex min-w-0 flex-col gap-1.5 pr-8",n())]);var i=U(l);return ie(i,()=>v()??ke),Y(l),Te(l,r=>c(r),()=>c()),d(b,l),oe(f)}var zt=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Me(b,e){if(new.target)return te({component:Me,...b});se(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),v=ce(e,zt);var g={get ref(){return c()},set ref(i=null){c(i),s()},get class(){return n()},set class(i){n(i),s()},$set:re,$on:(i,r)=>ae(e,i,r)},f=A(),l=P(f);{let i=D(()=>de("type-title font-bold text-foreground [anchor-name:--dialog-title]",n()));T(l,()=>mt,(r,m)=>{m(r,le({"data-slot":"dialog-title",get class(){return _(i)}},()=>v,{get ref(){return c()},set ref(k){c(k)}}))})}return d(b,f),oe(g)}var $t=q('<div class="flex min-w-0 items-center gap-2"><!> <!></div>'),Nt=q('<div class="flex min-w-0 flex-wrap items-center justify-between gap-3"><!> <div class="absolute right-14 top-[calc(1.5rem+var(--text-title-line-height)/2)] -translate-y-1/2"><!></div></div>'),Rt=q("<!> <!>",1),Tt=q('<div data-slot="dialog-body"><div class="grid min-w-0 grid-cols-1 gap-4"><!> <!></div></div>'),qt=q('<div class="h-6 shrink-0" aria-hidden="true"></div>'),Wt=q('<div class="dialog-layout flex min-h-0 min-w-0 flex-1 flex-col svelte-df1l0r"><!> <!> <!></div>');function jt(b,e){if(new.target)return te({component:jt,...b});se(e,!0);const c=o=>{var u=A(),O=P(u);{var z=x=>{var h=$t(),$=U(h);{let S=D(()=>p()??Oe.ui_navButtons_goBack_tooltip());Ne($,{variant:"ghost",size:"icon",class:"-my-1",get"aria-label"(){return _(S)},get onclick(){return k()},get ref(){return _(F)},set ref(I){tt(F,I,!0)},children:(I,w)=>{wt(I,{get icon(){return yt}})},$$slots:{default:!0}})}var M=Z($,2);T(M,()=>Me,(S,I)=>{I(S,{get id(){return g()},children:(w,B)=>{_e();var t=xe();pe(()=>we(t,n())),d(w,t)},$$slots:{default:!0}})}),Y(h),d(x,h)},Q=x=>{var h=A(),$=P(h);T($,()=>Me,(M,S)=>{S(M,{get id(){return g()},children:(I,w)=>{_e();var B=xe();pe(()=>we(B,n())),d(I,B)},$$slots:{default:!0}})}),d(x,h)};R(O,x=>{k()?x(z):x(Q,-1)})}d(o,u)};let n=a(e,"title",7),v=a(e,"description",7),g=a(e,"titleId",7),f=a(e,"descriptionId",7),l=a(e,"children",7),i=a(e,"headerActions",7),r=a(e,"footer",7),m=a(e,"error",7),k=a(e,"onBack",7),p=a(e,"backLabel",7),F=et(null);Le(()=>{k()&&Ze().then(()=>_(F)?.focus())});var H={get title(){return n()},set title(o){n(o),s()},get description(){return v()},set description(o){v(o),s()},get titleId(){return g()},set titleId(o){g(o),s()},get descriptionId(){return f()},set descriptionId(o){f(o),s()},get children(){return l()},set children(o){l(o),s()},get headerActions(){return i()},set headerActions(o){i(o),s()},get footer(){return r()},set footer(o){r(o),s()},get error(){return m()},set error(o){m(o),s()},get onBack(){return k()},set onBack(o){k(o),s()},get backLabel(){return p()},set backLabel(o){p(o),s()},$set:re,$on:(o,u)=>ae(e,o,u)},L=Wt(),V=U(L);{let o=D(()=>i()?"pr-22":"pr-14");T(V,()=>Ee,(u,O)=>{O(u,{get class(){return`m-0 shrink-0 px-6 pt-6 ${_(o)??""}`},children:(z,Q)=>{var x=Rt(),h=P(x);{var $=w=>{var B=Nt(),t=U(B);c(t);var C=Z(t,2),N=U(C);ie(N,i),Y(C),Y(B),d(w,B)},M=w=>{c(w)};R(h,w=>{i()?w($):w(M,-1)})}var S=Z(h,2);{var I=w=>{var B=A(),t=P(B);T(t,()=>We,(C,N)=>{N(C,{get id(){return f()},children:(X,W)=>{_e();var j=xe();pe(()=>we(j,v())),d(X,j)},$$slots:{default:!0}})}),d(w,B)};R(S,w=>{v()&&w(I)})}d(z,x)},$$slots:{default:!0}})})}var J=Z(V,2);{var ee=o=>{var u=Tt(),O=U(u),z=U(O);ie(z,()=>l()??ke);var Q=Z(z,2);{var x=h=>{nt(h,{tone:"error",children:($,M)=>{_e();var S=xe();pe(()=>we(S,m())),d($,S)},$$slots:{default:!0}})};R(Q,h=>{m()&&h(x)})}Y(O),Y(u),pe(()=>rt(u,1,`min-h-0 min-w-0 overflow-y-auto overscroll-contain px-6 pt-5 ${r()?"pb-5":"pb-6"}`)),d(o,u)};R(J,o=>{(l()||m())&&o(ee)})}var ue=Z(J,2);{var G=o=>{var u=A(),O=P(u);{let z=D(()=>l()?"m-0 shrink-0 px-6 pb-6":"m-0 shrink-0 p-6");T(O,()=>je,(Q,x)=>{x(Q,{get class(){return _(z)},children:(h,$)=>{var M=A(),S=P(M);ie(S,r),d(h,M)},$$slots:{default:!0}})})}d(o,u)},K=o=>{var u=qt();d(o,u)};R(ue,o=>{r()?o(G):l()||o(K,1)})}return Y(L),d(b,L),oe(H)}const Et=[{id:"textarea-state-matrix",title:"Textarea states",states:["default","rest","hover","focus","empty","placeholder","disabled","read-only","invalid","error","described","auto-expand","max-height-scroll","long-content","light","dark","zoom-200","keyboard-focus","compact","reduced-motion"],themes:["light","dark","high-contrast"],viewport:"both",reducedMotion:!0}];at({id:"textarea",source:"src/lib/components/ui/textarea/textarea.svelte",publicImport:"$lib/components/ui/textarea",legacyImports:["$lib/components/ui/textarea/textarea.svelte"],exports:["Textarea","textareaMetadata"],category:"primitive",owner:"007-B2",callers:["src/features/accept-changes/components/NativeReviewAttempt.svelte","src/features/accept-changes/components/NativeSidebarReview.svelte","src/features/discussions/components/DiscussionThread.svelte","src/features/hud/components/dock-composer-media.preview.svelte","src/features/hud/media-editor/screenshot/ScreenshotCanvas.svelte","src/features/machine-rail/machine-rail.preview.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/chat/QueuedMessageList.svelte","src/lib/components/chat/proposals/ProposalCard.svelte","src/lib/components/modals/ReplaceAgentModal.svelte","src/lib/components/patterns/settings/SettingsTextarea.svelte","src/lib/components/patterns/settings/settings-textarea.preview.svelte","src/lib/components/tiptap/CommentDialog.svelte","src/lib/components/tiptap/LaunchFromSelectionDialog.svelte","src/lib/components/tiptap/MermaidBlockNodeView.svelte","src/lib/components/ui/ask-user-questions/ask-user-questions.svelte","src/lib/components/ui/message-composer/message-composer.svelte","src/lib/components/ui/text-entry-focus.preview.svelte","src/lib/components/ui/tooltip/tooltip-audit.preview.svelte","src/lib/components/workspace/PullRequestCreator.svelte","src/lib/components/workspace/WorkspaceSidebarHeader.svelte","src/lib/components/workspace/sidebar-tabs.preview.svelte","src/lib/components/workspace/sidebar/CommitDrawer.svelte","src/lib/components/workspace/sidebar/MergePanel.svelte","src/lib/components/workspace/sidebar/PRSection.svelte","src/lib/components/workspace/sidebar/WorkspaceProgressCard.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/textarea/textarea.test.ts",removalGate:"Retain while exported and binding, resize, validation, and fixture tests pass.",dynamicImports:[],fixtures:Et});export{jt as D,Ft as a,We as b,Me as c};
@@ -0,0 +1 @@
1
+ var dt=Object.defineProperty;var je=n=>{throw TypeError(n)};var ct=(n,e,r)=>e in n?dt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r;var y=(n,e,r)=>ct(n,typeof e!="symbol"?e+"":e,r),ut=(n,e,r)=>e.has(n)||je("Cannot "+r);var l=(n,e,r)=>(ut(n,e,"read from private field"),r?r.call(n):e.get(n)),O=(n,e,r)=>e.has(n)?je("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,r);import{t as U,bq as i,by as W,b as X,br as L,bt as Ne}from"./D9jYN6_J.js";import{bV as M,aD as c,bH as b,c9 as N,bo as be,bs as j,a7 as A,ay as x,W as C,bn as H,aA as a,a5 as Ce,bf as Q,bA as Oe,aB as Y,bS as He,aG as Ye,br as ht,ca as pt,bI as Ze}from"./DYhIMPy1.js";import{i as q}from"./7eL9Pgig.js";import{s as k}from"./Cx31i8ng.js";import{b as Pe}from"./C_EpV6jU.js";import{h as gt,a2 as Qe,av as _,a$ as Te,aU as ft,aF as vt,an as _e,ay as mt,aG as $e,aq as Ie,a6 as yt,l as bt,az as R,aQ as B,aS as E,I as Ct,n as Ot,j as Pt,ad as _t,a9 as Ve}from"./0qEvU7Aj.js";import{c as wt}from"./DZyAzxxC.js";import{s as St}from"./DHROL4K5.js";import{f as xt,E as Nt}from"./B4gIvcP2.js";const It=mt({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),G=new gt("Dialog.Root | AlertDialog.Root");var te,re,ne,oe,se,ie,ae,le,de,ce,ue;const Be=class Be{constructor(e,r){y(this,"opts");O(this,te,M(null));O(this,re,M(null));O(this,ne,M(null));O(this,oe,M(null));O(this,se,M(void 0));O(this,ie,M(void 0));O(this,ae,M(void 0));O(this,le,M(void 0));O(this,de,M(null));O(this,ce,M(0));y(this,"depth");y(this,"parent");y(this,"contentPresence");y(this,"overlayPresence");y(this,"getBitsAttr",e=>It.getAttr(e,this.opts.variant.current));O(this,ue,N(()=>({"data-state":vt(this.opts.open.current)})));this.opts=e,this.parent=r,this.depth=r?r.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Qe({ref:_(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Qe({ref:_(()=>this.overlayNode),open:this.opts.open,enabled:!0}),Te(()=>this.opts.open.current,s=>{this.parent&&(s?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),ft(()=>{this.opts.open.current&&this.parent?.decrementNested()})}static create(e){const r=G.getOr(null);return G.set(new Be(e,r))}get triggerNode(){return c(l(this,te))}set triggerNode(e){b(l(this,te),e,!0)}get contentNode(){return c(l(this,re))}set contentNode(e){b(l(this,re),e,!0)}get overlayNode(){return c(l(this,ne))}set overlayNode(e){b(l(this,ne),e,!0)}get descriptionNode(){return c(l(this,oe))}set descriptionNode(e){b(l(this,oe),e,!0)}get contentId(){return c(l(this,se))}set contentId(e){b(l(this,se),e,!0)}get titleId(){return c(l(this,ie))}set titleId(e){b(l(this,ie),e,!0)}get triggerId(){return c(l(this,ae))}set triggerId(e){b(l(this,ae),e,!0)}get descriptionId(){return c(l(this,le))}set descriptionId(e){b(l(this,le),e,!0)}get cancelNode(){return c(l(this,de))}set cancelNode(e){b(l(this,de),e,!0)}get nestedOpenCount(){return c(l(this,ce))}set nestedOpenCount(e){b(l(this,ce),e,!0)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}get sharedProps(){return c(l(this,ue))}set sharedProps(e){b(l(this,ue),e)}};te=new WeakMap,re=new WeakMap,ne=new WeakMap,oe=new WeakMap,se=new WeakMap,ie=new WeakMap,ae=new WeakMap,le=new WeakMap,de=new WeakMap,ce=new WeakMap,ue=new WeakMap;let Fe=Be;var he;const Ke=class Ke{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,he,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(e){return new Ke(e,G.get())}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===yt||e.key===bt)&&(e.preventDefault(),this.root.handleClose())}get props(){return c(l(this,he))}set props(e){b(l(this,he),e)}};he=new WeakMap;let Ee=Ke;var pe;const qe=class qe{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,pe,N(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.root.titleId=this.opts.id.current,this.attachment=_e(this.opts.ref),Te.pre(()=>this.opts.id.current,s=>{this.root.titleId=s})}static create(e){return new qe(e,G.get())}get props(){return c(l(this,pe))}set props(e){b(l(this,pe),e)}};pe=new WeakMap;let ke=qe;var ge;const ze=class ze{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,ge,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.root.descriptionId=this.opts.id.current,this.attachment=_e(this.opts.ref,s=>{this.root.descriptionNode=s}),Te.pre(()=>this.opts.id.current,s=>{this.root.descriptionId=s})}static create(e){return new ze(e,G.get())}get props(){return c(l(this,ge))}set props(e){b(l(this,ge),e)}};ge=new WeakMap;let De=ze;var fe,ve;const Ge=class Ge{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,fe,N(()=>({open:this.root.opts.open.current})));O(this,ve,N(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...$e(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref,s=>{this.root.contentNode=s,this.root.contentId=s?.id})}static create(e){return new Ge(e,G.get())}get snippetProps(){return c(l(this,fe))}set snippetProps(e){b(l(this,fe),e)}get props(){return c(l(this,ve))}set props(e){b(l(this,ve),e)}get shouldRender(){return this.root.contentPresence.shouldRender}};fe=new WeakMap,ve=new WeakMap;let Me=Ge;var me,ye;const Ue=class Ue{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,me,N(()=>({open:this.root.opts.open.current})));O(this,ye,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...$e(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref,s=>this.root.overlayNode=s)}static create(e){return new Ue(e,G.get())}get snippetProps(){return c(l(this,me))}set snippetProps(e){b(l(this,me),e)}get props(){return c(l(this,ye))}set props(e){b(l(this,ye),e)}get shouldRender(){return this.root.overlayPresence.shouldRender}};me=new WeakMap,ye=new WeakMap;let Re=Ue;var At=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","level"]),Ft=Y("<div><!></div>");function Et(n,e){const r=be();if(new.target)return U({component:Et,...n});j(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"ref",15,null),u=i(e,"child",7),v=i(e,"children",7),m=i(e,"level",7,2),w=L(e,At);const p=ke.create({id:_(()=>s()),level:_(()=>m()),ref:_(()=>g(),t=>g(t))}),f=N(()=>B(w,p.props));var S={get id(){return s()},set id(t=R(r)){s(t),a()},get ref(){return g()},set ref(t=null){g(t),a()},get child(){return u()},set child(t){u(t),a()},get children(){return v()},set children(t){v(t),a()},get level(){return m()},set level(t=2){m(t),a()},$set:W,$on:(t,h)=>X(e,t,h)},P=A(),F=x(P);{var I=t=>{var h=A(),D=x(h);k(D,u,()=>({props:c(f)})),C(t,h)},o=t=>{var h=Ft();Pe(h,()=>({...c(f)}));var D=Ce(h);k(D,()=>v()??Q),Oe(h),C(t,h)};q(F,t=>{u()?t(I):t(o,-1)})}return C(n,P),H(S)}var kt=new Set(["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]),Dt=Y("<div><!></div>");function Mt(n,e){const r=be();if(new.target)return U({component:Mt,...n});j(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"forceMount",7,!1),u=i(e,"child",7),v=i(e,"children",7),m=i(e,"ref",15,null),w=L(e,kt);const p=Re.create({id:_(()=>s()),ref:_(()=>m(),o=>m(o))}),f=N(()=>B(w,p.props));var S={get id(){return s()},set id(o=R(r)){s(o),a()},get forceMount(){return g()},set forceMount(o=!1){g(o),a()},get child(){return u()},set child(o){u(o),a()},get children(){return v()},set children(o){v(o),a()},get ref(){return m()},set ref(o=null){m(o),a()},$set:W,$on:(o,t)=>X(e,o,t)},P=A(),F=x(P);{var I=o=>{var t=A(),h=x(t);{var D=K=>{var T=A(),d=x(T);{let V=N(()=>({props:B(c(f)),...p.snippetProps}));k(d,u,()=>c(V))}C(K,T)},we=K=>{var T=Dt();Pe(T,V=>({...V}),[()=>B(c(f))]);var d=Ce(T);k(d,()=>v()??Q,()=>p.snippetProps),Oe(T),C(K,T)};q(h,K=>{u()?K(D):K(we,-1)})}C(o,t)};q(F,o=>{(p.shouldRender||g())&&o(I)})}return C(n,P),H(S)}var Rt=new Set(["$$slots","$$events","$$legacy","id","children","child","ref"]),Tt=Y("<div><!></div>");function Bt(n,e){const r=be();if(new.target)return U({component:Bt,...n});j(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"children",7),u=i(e,"child",7),v=i(e,"ref",15,null),m=L(e,Rt);const w=De.create({id:_(()=>s()),ref:_(()=>v(),o=>v(o))}),p=N(()=>B(m,w.props));var f={get id(){return s()},set id(o=R(r)){s(o),a()},get children(){return g()},set children(o){g(o),a()},get child(){return u()},set child(o){u(o),a()},get ref(){return v()},set ref(o=null){v(o),a()},$set:W,$on:(o,t)=>X(e,o,t)},S=A(),P=x(S);{var F=o=>{var t=A(),h=x(t);k(h,u,()=>({props:c(p)})),C(o,t)},I=o=>{var t=Tt();Pe(t,()=>({...c(p)}));var h=Ce(t);k(h,()=>g()??Q),Oe(t),C(o,t)};q(P,o=>{u()?o(F):o(I,-1)})}return C(n,S),H(f)}function et(n,e){if(new.target)return U({component:et,...n});j(e,!0);let r=i(e,"open",15,!1),s=i(e,"onOpenChange",7,E),g=i(e,"onOpenChangeComplete",7,E),u=i(e,"children",7);Fe.create({variant:_(()=>"dialog"),open:_(()=>r(),p=>{r(p),s()(p)}),onOpenChangeComplete:_(()=>g())});var v={get open(){return r()},set open(p=!1){r(p),a()},get onOpenChange(){return s()},set onOpenChange(p=E){s(p),a()},get onOpenChangeComplete(){return g()},set onOpenChangeComplete(p=E){g(p),a()},get children(){return u()},set children(p){u(p),a()},$set:W,$on:(p,f)=>X(e,p,f)},m=A(),w=x(m);return k(w,()=>u()??Q),C(n,m),H(v)}var Kt=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]),qt=Y("<button><!></button>");function zt(n,e){const r=be();if(new.target)return U({component:zt,...n});j(e,!0);let s=i(e,"children",7),g=i(e,"child",7),u=i(e,"id",23,()=>R(r)),v=i(e,"ref",15,null),m=i(e,"disabled",7,!1),w=L(e,Kt);const p=Ee.create({variant:_(()=>"close"),id:_(()=>u()),ref:_(()=>v(),t=>v(t)),disabled:_(()=>!!m())}),f=N(()=>B(w,p.props));var S={get children(){return s()},set children(t){s(t),a()},get child(){return g()},set child(t){g(t),a()},get id(){return u()},set id(t=R(r)){u(t),a()},get ref(){return v()},set ref(t=null){v(t),a()},get disabled(){return m()},set disabled(t=!1){m(t),a()},$set:W,$on:(t,h)=>X(e,t,h)},P=A(),F=x(P);{var I=t=>{var h=A(),D=x(h);k(D,g,()=>({props:c(f)})),C(t,h)},o=t=>{var h=qt();Pe(h,()=>({...c(f)}));var D=Ce(h);k(D,()=>s()??Q),Oe(h),C(t,h)};q(F,t=>{g()?t(I):t(o,-1)})}return C(n,P),H(S)}var Gt=new Set(["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]),Ut=Y("<!> <!>",1),Wt=Y("<!> <div><!></div>",1);function Xt(n,e){const r=be();if(new.target)return U({component:Xt,...n});j(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"children",7),u=i(e,"child",7),v=i(e,"ref",15,null),m=i(e,"forceMount",7,!1),w=i(e,"onCloseAutoFocus",7,E),p=i(e,"onOpenAutoFocus",7,E),f=i(e,"onEscapeKeydown",7,E),S=i(e,"onInteractOutside",7,E),P=i(e,"trapFocus",7,!0),F=i(e,"preventScroll",7,!0),I=i(e,"restoreScrollDelay",7,null),o=L(e,Gt);const t=Me.create({id:_(()=>s()),ref:_(()=>v(),d=>v(d))}),h=N(()=>B(o,t.props));var D={get id(){return s()},set id(d=R(r)){s(d),a()},get children(){return g()},set children(d){g(d),a()},get child(){return u()},set child(d){u(d),a()},get ref(){return v()},set ref(d=null){v(d),a()},get forceMount(){return m()},set forceMount(d=!1){m(d),a()},get onCloseAutoFocus(){return w()},set onCloseAutoFocus(d=E){w(d),a()},get onOpenAutoFocus(){return p()},set onOpenAutoFocus(d=E){p(d),a()},get onEscapeKeydown(){return f()},set onEscapeKeydown(d=E){f(d),a()},get onInteractOutside(){return S()},set onInteractOutside(d=E){S(d),a()},get trapFocus(){return P()},set trapFocus(d=!0){P(d),a()},get preventScroll(){return F()},set preventScroll(d=!0){F(d),a()},get restoreScrollDelay(){return I()},set restoreScrollDelay(d=null){I(d),a()},$set:W,$on:(d,V)=>X(e,d,V)},we=A(),K=x(we);{var T=d=>{Ct(d,{get ref(){return t.opts.ref},loop:!0,get trapFocus(){return P()},get enabled(){return t.root.opts.open.current},get onOpenAutoFocus(){return p()},get onCloseAutoFocus(){return w()},focusScope:(nt,ot)=>{let We=()=>(ot?.()).props;Ot(nt,Ne(()=>c(h),{get enabled(){return t.root.opts.open.current},get ref(){return t.opts.ref},onEscapeKeydown:Se=>{f()(Se),!Se.defaultPrevented&&t.root.handleClose()},children:(Se,Lt)=>{Pt(Se,Ne(()=>c(h),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},onInteractOutside:xe=>{S()(xe),!xe.defaultPrevented&&t.root.handleClose()},children:(xe,Yt)=>{_t(xe,Ne(()=>c(h),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},children:(st,Zt)=>{var Xe=A(),it=x(Xe);{var at=J=>{var Z=Ut(),$=x(Z);{var ee=z=>{Ve(z,{get preventScroll(){return F()},get restoreScrollDelay(){return I()}})};q($,z=>{t.root.opts.open.current&&z(ee)})}var Ae=He($,2);{let z=N(()=>({props:B(c(h),We()),...t.snippetProps}));k(Ae,u,()=>c(z))}C(J,Z)},lt=J=>{var Z=Wt(),$=x(Z);Ve($,{get preventScroll(){return F()}});var ee=He($,2);Pe(ee,z=>({...z}),[()=>B(c(h),We())]);var Ae=Ce(ee);k(Ae,()=>g()??Q),Oe(ee),C(J,Z)};q(it,J=>{u()?J(at):J(lt,-1)})}C(st,Xe)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};q(K,d=>{(t.shouldRender||m())&&d(T)})}return C(n,we),H(D)}const tt=Symbol("overlay-open"),rt=Symbol("overlay-static"),Je={tier:"moderate",x:0,y:0,scale:1,opacity:0},Le={tier:"slow",x:0,y:8,scale:.97,opacity:0},jt={top:{x:0,y:"-100%"},right:{x:"100%",y:0},bottom:{x:0,y:"100%"},left:{x:"-100%",y:0}},dr={backdrop:{enter:Je,exit:Je},dialog:{enter:Le,exit:Le},sheet(n){const e={tier:"slow",scale:1,opacity:1,...jt[n]};return{enter:e,exit:e}}};function Ht(n){Ze(tt,n)}function cr(){const n=Ye(tt);if(!n)throw new Error("Dialog or Sheet Content must be nested inside its Root.");return n}function Qt(n){Ze(rt,n)}function ur(){return Ye(rt)??(()=>!1)}function hr(n){let e=M(ht(n()));return pt(()=>{if(n()){b(e,!0);return}if(!c(e))return;const r=window.setTimeout(()=>b(e,!1),xt(Nt.slow));return()=>window.clearTimeout(r)}),{get mounted(){return c(e)},finishExit(){n()||b(e,!1)}}}var Vt=new Set(["$$slots","$$events","$$legacy","open","staticPosition","children","onOpenChange"]);function Jt(n,e){if(new.target)return U({component:Jt,...n});j(e,!0);let r=i(e,"open",15,!1),s=i(e,"staticPosition",7,!1),g=i(e,"children",7),u=i(e,"onOpenChange",7),v=L(e,Vt);Ht(()=>r()),Qt(()=>s()),St(()=>{r(!1),u()?.(!1)});var m={get open(){return r()},set open(f=!1){r(f),a()},get staticPosition(){return s()},set staticPosition(f=!1){s(f),a()},get children(){return g()},set children(f){g(f),a()},get onOpenChange(){return u()},set onOpenChange(f){u(f),a()},$set:W,$on:(f,S)=>X(e,f,S)},w=A(),p=x(w);return wt(p,()=>et,(f,S)=>{S(f,Ne({get onOpenChange(){return u()}},()=>v,{get open(){return r()},set open(P){r(P)},children:(P,F)=>{var I=A(),o=x(I);k(o,()=>g()??Q),C(P,I)},$$slots:{default:!0}}))}),C(n,w),H(m)}export{zt as D,Jt as O,Xt as a,Bt as b,Mt as c,Et as d,hr as e,ur as f,dr as o,cr as u};
@@ -1 +1 @@
1
- import{aR as o,aP as l,a0 as v,l as y,bu as T,bT as b,bL as f,bM as i,r as m,aQ as p}from"./DYhIMPy1.js";import{B as R}from"./DTQYcznv.js";function E(d,_,e){var s;o&&(s=p,l());var r=new R(d);v(()=>{var a=_()??null;if(o){var h=T(s),u=h===m,c=a!==null;if(u!==c){var t=b();f(t),r.anchor=t,i(!1),r.ensure(a,a&&(n=>e(n,a))),i(!0);return}}r.ensure(a,a&&(n=>e(n,a)))},y)}export{E as c};
1
+ import{aR as o,aP as l,a0 as v,l as y,bu as T,bT as b,bL as f,bM as i,r as m,aQ as p}from"./DYhIMPy1.js";import{B as R}from"./D9jYN6_J.js";function E(d,_,e){var s;o&&(s=p,l());var r=new R(d);v(()=>{var a=_()??null;if(o){var h=T(s),u=h===m,c=a!==null;if(u!==c){var t=b();f(t),r.anchor=t,i(!1),r.ensure(a,a&&(n=>e(n,a))),i(!0);return}}r.ensure(a,a&&(n=>e(n,a)))},y)}export{E as c};
@@ -0,0 +1 @@
1
+ import{t as g,bq as h,bo as u,by as C,b as S}from"./D9jYN6_J.js";import{bs as T,a5 as _,bl as l,bS as c,bA as m,b_ as A,bO as n,W as j,bn as q,aA as w,aB as B}from"./DYhIMPy1.js";var I=B('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><div class="text-center"><p class="text-lg font-medium text-foreground"> </p> <p class="text-sm"> </p> <p class="text-xs mt-4 text-subtle"> </p></div></div>');function L(p,a){if(new.target)return g({component:L,...p});T(a,!0);let e=h(a,"tab",7);var v={get tab(){return e()},set tab(t){e(t),w()},$set:C,$on:(t,r)=>S(a,t,r)},s=I(),o=_(s),b=_(o),d=l(b,!0),i=c(b,2),x=l(i,!0),f=c(i,2),y=l(f,!0);return m(o),m(s),A((t,r)=>{n(d,e().title),n(x,t),n(y,r)},[()=>u.layout_panelContent_typeLabel({type:e().type}),()=>u.layout_settingsTab_notImplemented_label()]),j(p,s),q(v)}export{L as default};
@@ -1,7 +1,7 @@
1
- var Oe=Object.defineProperty;var ke=t=>{throw TypeError(t)};var Be=(t,e,s)=>e in t?Oe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var O=(t,e,s)=>Be(t,typeof e!="symbol"?e+"":e,s),ye=(t,e,s)=>e.has(t)||ke("Cannot "+s);var l=(t,e,s)=>(ye(t,e,"read from private field"),s?s.call(t):e.get(t)),k=(t,e,s)=>e.has(t)?ke("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s);var Y=(t,e,s)=>(ye(t,e,"access private method"),s);import{t as oe,a_ as ue,bz as de,b as ce,bu as Re,br as i,bs as De}from"./DTQYcznv.js";import{ao as N,aZ as He,aL as Je,bh as je,c9 as m,aD as b,bH as w,bs as le,a7 as he,ay as ee,W as D,bn as fe,bo as Ge,bS as Ve,aA as o,a5 as Se,bf as We,bA as Pe,aB as Le,b_ as Fe,aC as ge}from"./DYhIMPy1.js";import{c as Ue}from"./BmP1Wws6.js";import{i as Ze,v as Ke,l as Qe}from"./Ck9ZyE1n.js";import{H as Xe}from"./De4z9gHo.js";import{s as Ce}from"./CaxyE6o_.js";import{h as Ie,av as Ye,bM as se,l as $e,ad as et,aE as _e,aF as we,a$ as tt,bh as rt,aS as nt,aT as xe,aJ as C,bn as st}from"./BP5uyQTv.js";import"./BWYr8u9e.js";import{i as at}from"./BeP4UORy.js";var it="font-weight: bold",ot="font-weight: normal";function qe(t){N?console.warn(`%c[svelte] state_snapshot_uncloneable
1
+ var Oe=Object.defineProperty;var ve=t=>{throw TypeError(t)};var Be=(t,e,s)=>e in t?Oe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var O=(t,e,s)=>Be(t,typeof e!="symbol"?e+"":e,s),ye=(t,e,s)=>e.has(t)||ve("Cannot "+s);var l=(t,e,s)=>(ye(t,e,"read from private field"),s?s.call(t):e.get(t)),v=(t,e,s)=>e.has(t)?ve("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s);var Y=(t,e,s)=>(ye(t,e,"access private method"),s);import{t as oe,by as ue,b as de,bt as De,bq as i,br as Re}from"./D9jYN6_J.js";import{ao as N,aZ as He,aL as Je,bh as je,c9 as m,aD as b,bH as w,bs as ce,a7 as le,ay as ee,W as R,bn as he,bo as Ge,bS as Ve,aA as o,a5 as Se,bf as We,bA as Pe,aB as Le,b_ as Qe,aC as fe}from"./DYhIMPy1.js";import{i as ge}from"./7eL9Pgig.js";import{c as Ue}from"./DZyAzxxC.js";import{b as Ze,f as Fe,e as Ke}from"./C_EpV6jU.js";import{H as Xe}from"./Big_dnEI.js";import{s as Ce}from"./Cx31i8ng.js";import{h as Ie,an as Ye,a$ as se,l as $e,a6 as et,aq as _e,ar as we,aD as tt,aM as rt,ay as nt,az as xe,av as C,aQ as st}from"./0qEvU7Aj.js";import"./BWYr8u9e.js";import{i as at}from"./BeP4UORy.js";var it="font-weight: bold",ot="font-weight: normal";function qe(t){N?console.warn(`%c[svelte] state_snapshot_uncloneable
2
2
  %c${t?`The following properties cannot be cloned with \`$state.snapshot\` — the return value contains the originals:
3
3
 
4
4
  ${t}`:"Value cannot be cloned with `$state.snapshot` — the original value was returned"}
5
5
  https://svelte.dev/e/state_snapshot_uncloneable`,it,ot):console.warn("https://svelte.dev/e/state_snapshot_uncloneable")}const ut=[];function dt(t,e=!1,s=!1){if(N&&!e){const a=[],d=B(t,new Map,"",a,null,s);if(a.length===1&&a[0]==="")qe();else if(a.length>0){const h=a.length>10?a.slice(0,7):a.slice(0,10),f=a.length-h.length;let u=h.map(c=>`- <value>${c}`).join(`
6
6
  `);f>0&&(u+=`
7
- - ...and ${f} more`),qe(u)}return d}return B(t,new Map,"",ut,null,s)}function B(t,e,s,a,d=null,h=!1){if(typeof t=="object"&&t!==null){var f=e.get(t);if(f!==void 0)return f;if(t instanceof Map)return new Map(t);if(t instanceof Set)return new Set(t);if(He(t)){var u=Array(t.length);e.set(t,u),d!==null&&e.set(d,u);for(var c=0;c<t.length;c+=1){var y=t[c];c in t&&(u[c]=B(y,e,N?`${s}[${c}]`:s,a,null,h))}return u}if(Je(t)===je){u={},e.set(t,u),d!==null&&e.set(d,u);for(var g of Object.keys(t))u[g]=B(t[g],e,N?`${s}.${g}`:s,a,null,h);return u}if(t instanceof Date)return t.getTime(),structuredClone(t);if(typeof t.toJSON=="function"&&!h)return B(t.toJSON(),e,N?`${s}.toJSON()`:s,a,t)}if(t instanceof EventTarget)return t;try{return structuredClone(t)}catch{return N&&a.push(s),t}}const ct=nt({component:"checkbox",parts:["root","group","group-label","input"]}),lt=new Ie("Checkbox.Group"),Ne=new Ie("Checkbox.Root");var H,J,j,G,T,$,V,W;const be=class be{constructor(e,s){k(this,T);O(this,"opts");O(this,"group");k(this,H,m(()=>this.group&&this.group.opts.name.current?this.group.opts.name.current:this.opts.name.current));k(this,J,m(()=>this.group&&this.group.opts.required.current?!0:this.opts.required.current));k(this,j,m(()=>this.group&&this.group.opts.disabled.current?!0:this.opts.disabled.current));k(this,G,m(()=>this.group&&this.group.opts.readonly.current?!0:this.opts.readonly.current));O(this,"attachment");k(this,V,m(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current})));k(this,W,m(()=>({id:this.opts.id.current,role:"checkbox",type:this.opts.type.current,disabled:this.trueDisabled,"aria-checked":tt(this.opts.checked.current,this.opts.indeterminate.current),"aria-required":we(this.trueRequired),"aria-readonly":we(this.trueReadonly),"data-disabled":_e(this.trueDisabled),"data-readonly":_e(this.trueReadonly),"data-state":ht(this.opts.checked.current,this.opts.indeterminate.current),[ct.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment})));this.opts=e,this.group=s,this.attachment=Ye(this.opts.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),se.pre([()=>dt(this.group?.opts.value.current),()=>this.opts.value.current],([a,d])=>{!a||!d||(this.opts.checked.current=a.includes(d))}),se.pre(()=>this.opts.checked.current,a=>{this.group&&(a?this.group?.addValue(this.opts.value.current):this.group?.removeValue(this.opts.value.current))})}static create(e,s=null){return Ne.set(new be(e,s))}get trueName(){return b(l(this,H))}set trueName(e){w(l(this,H),e)}get trueRequired(){return b(l(this,J))}set trueRequired(e){w(l(this,J),e)}get trueDisabled(){return b(l(this,j))}set trueDisabled(e){w(l(this,j),e)}get trueReadonly(){return b(l(this,G))}set trueReadonly(e){w(l(this,G),e)}onkeydown(e){if(!(this.trueDisabled||this.trueReadonly)){if(e.key===$e){e.preventDefault(),this.opts.type.current==="submit"&&e.currentTarget.closest("form")?.requestSubmit();return}e.key===et&&(e.preventDefault(),Y(this,T,$).call(this))}}onclick(e){if(!(this.trueDisabled||this.trueReadonly)){if(this.opts.type.current==="submit"){Y(this,T,$).call(this);return}e.preventDefault(),Y(this,T,$).call(this)}}get snippetProps(){return b(l(this,V))}set snippetProps(e){w(l(this,V),e)}get props(){return b(l(this,W))}set props(e){w(l(this,W),e)}};H=new WeakMap,J=new WeakMap,j=new WeakMap,G=new WeakMap,T=new WeakSet,$=function(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current},V=new WeakMap,W=new WeakMap;let ae=be;var F,U,Z;const me=class me{constructor(e){O(this,"root");k(this,F,m(()=>this.root.group?!!(this.root.opts.value.current!==void 0&&this.root.group.opts.value.current.includes(this.root.opts.value.current)):this.root.opts.checked.current));k(this,U,m(()=>!!this.root.trueName));k(this,Z,m(()=>({type:"checkbox",checked:this.root.opts.checked.current===!0,disabled:this.root.trueDisabled,required:this.root.trueRequired,name:this.root.trueName,value:this.root.opts.value.current,readonly:this.root.trueReadonly,onfocus:this.onfocus})));this.root=e,this.onfocus=this.onfocus.bind(this)}static create(){return new me(Ne.get())}get trueChecked(){return b(l(this,F))}set trueChecked(e){w(l(this,F),e)}get shouldRender(){return b(l(this,U))}set shouldRender(e){w(l(this,U),e)}onfocus(e){rt(this.root.opts.ref.current)&&this.root.opts.ref.current.focus()}get props(){return b(l(this,Z))}set props(e){w(l(this,Z),e)}};F=new WeakMap,U=new WeakMap,Z=new WeakMap;let ie=me;function ht(t,e){return e?"indeterminate":t?"checked":"unchecked"}function Te(t,e){if(new.target)return oe({component:Te,...t});le(e,!1);const s=ie.create();var a={$set:de,$on:(u,c)=>ce(e,u,c)};at();var d=he(),h=ee(d);{var f=u=>{Xe(u,Re(()=>s.props))};ue(h,u=>{s.shouldRender&&u(f)})}return D(t,d),fe(a)}var ft=new Set(["$$slots","$$events","$$legacy","checked","ref","onCheckedChange","children","disabled","required","name","value","id","indeterminate","onIndeterminateChange","child","type","readonly"]),gt=Le("<button><!></button>"),bt=Le("<!> <!>",1);function ze(t,e){const s=Ge();if(new.target)return oe({component:ze,...t});le(e,!0);let a=i(e,"checked",15,!1),d=i(e,"ref",15,null),h=i(e,"onCheckedChange",7),f=i(e,"children",7),u=i(e,"disabled",7,!1),c=i(e,"required",7,!1),y=i(e,"name",7,void 0),g=i(e,"value",7,"on"),x=i(e,"id",23,()=>xe(s)),q=i(e,"indeterminate",15,!1),S=i(e,"onIndeterminateChange",7),R=i(e,"child",7),P=i(e,"type",7,"button"),L=i(e,"readonly",7),z=De(e,ft);const _=lt.getOr(null);_&&g()&&(_.opts.value.current.includes(g())?a(!0):a(!1)),se.pre(()=>g(),()=>{_&&g()&&(_.opts.value.current.includes(g())?a(!0):a(!1))});const A=ae.create({checked:C(()=>a(),r=>{a(r),h()?.(r)}),disabled:C(()=>u()??!1),required:C(()=>c()),name:C(()=>y()),value:C(()=>g()),id:C(()=>x()),ref:C(()=>d(),r=>d(r)),indeterminate:C(()=>q(),r=>{q(r),S()?.(r)}),type:C(()=>P()),readonly:C(()=>!!L())},_),K=m(()=>st({...z},A.props));var te={get checked(){return a()},set checked(r=!1){a(r),o()},get ref(){return d()},set ref(r=null){d(r),o()},get onCheckedChange(){return h()},set onCheckedChange(r){h(r),o()},get children(){return f()},set children(r){f(r),o()},get disabled(){return u()},set disabled(r=!1){u(r),o()},get required(){return c()},set required(r=!1){c(r),o()},get name(){return y()},set name(r=void 0){y(r),o()},get value(){return g()},set value(r="on"){g(r),o()},get id(){return x()},set id(r=xe(s)){x(r),o()},get indeterminate(){return q()},set indeterminate(r=!1){q(r),o()},get onIndeterminateChange(){return S()},set onIndeterminateChange(r){S(r),o()},get child(){return R()},set child(r){R(r),o()},get type(){return P()},set type(r="button"){P(r),o()},get readonly(){return L()},set readonly(r){L(r),o()},$set:de,$on:(r,p)=>ce(e,r,p)},Q=bt(),E=ee(Q);{var re=r=>{var p=he(),v=ee(p);{let pe=m(()=>({props:b(K),...A.snippetProps}));Ce(v,R,()=>b(pe))}D(r,p)},n=r=>{var p=gt();Ze(p,()=>({...b(K)}));var v=Se(p);Ce(v,()=>f()??We,()=>A.snippetProps),Pe(p),D(r,p)};ue(E,r=>{R()?r(re):r(n,-1)})}var M=Ve(E,2);return Te(M,{}),D(t,Q),fe(te)}var mt=new Set(["$$slots","$$events","$$legacy","ref","id","checked","indeterminate","disabled","required","readonly","invalid","class","onCheckedChange","onIndeterminateChange","name","value","ariaLabel","ariaLabelledby","ariaDescribedby","size"]),pt=ge('<path class="checkbox-line svelte-2cduoy" d="M2.5 6h7"></path>'),vt=ge('<path d="m2.25 6.25 2.25 2.2 5.25-5"></path>'),kt=ge('<svg class="checkbox-mark size-[75%] svelte-2cduoy" viewBox="0 0 12 12" aria-hidden="true"><!></svg>');function yt(t,e){if(new.target)return oe({component:yt,...t});le(e,!0);let s=i(e,"ref",15,null),a=i(e,"id",7,""),d=i(e,"checked",15,!1),h=i(e,"indeterminate",15,!1),f=i(e,"disabled",7,!1),u=i(e,"required",7,!1),c=i(e,"readonly",7,!1),y=i(e,"invalid",7,!1),g=i(e,"class",7,""),x=i(e,"onCheckedChange",7),q=i(e,"onIndeterminateChange",7),S=i(e,"name",7),R=i(e,"value",7,"on"),P=i(e,"ariaLabel",7),L=i(e,"ariaLabelledby",7),z=i(e,"ariaDescribedby",7),_=i(e,"size",7,"md"),A=De(e,mt);function K(n){n.stopPropagation(),e.onclick?.(n)}const te={sm:"w-3.5 h-3.5",md:"w-4 h-4",lg:"w-5 h-5"};var Q={get ref(){return s()},set ref(n=null){s(n),o()},get id(){return a()},set id(n=""){a(n),o()},get checked(){return d()},set checked(n=!1){d(n),o()},get indeterminate(){return h()},set indeterminate(n=!1){h(n),o()},get disabled(){return f()},set disabled(n=!1){f(n),o()},get required(){return u()},set required(n=!1){u(n),o()},get readonly(){return c()},set readonly(n=!1){c(n),o()},get invalid(){return y()},set invalid(n=!1){y(n),o()},get class(){return g()},set class(n=""){g(n),o()},get onCheckedChange(){return x()},set onCheckedChange(n){x(n),o()},get onIndeterminateChange(){return q()},set onIndeterminateChange(n){q(n),o()},get name(){return S()},set name(n){S(n),o()},get value(){return R()},set value(n="on"){R(n),o()},get ariaLabel(){return P()},set ariaLabel(n){P(n),o()},get ariaLabelledby(){return L()},set ariaLabelledby(n){L(n),o()},get ariaDescribedby(){return z()},set ariaDescribedby(n){z(n),o()},get size(){return _()},set size(n="md"){_(n),o()},$set:de,$on:(n,M)=>ce(e,n,M)},E=he(),re=ee(E);{let n=m(()=>y()||void 0),M=m(()=>Qe("checkbox-root border-border bg-card relative inline-flex shrink-0 cursor-pointer items-center justify-center rounded-(--radius-small) border-[1.5px] shadow-(--elevation-raised) transition-[border-color,background-color,box-shadow,opacity] duration-spring-fast ease-spring-fast after:absolute after:-inset-1.5 after:content-[''] motion-reduce:transition-none","hover:border-input hover:bg-hover active:bg-active",f()&&"cursor-not-allowed bg-muted/40 opacity-60 hover:border-border",c()&&"cursor-default",y()&&"border-danger ring-1 ring-danger/25","focus-visible:outline focus-visible:outline-1 focus-visible:outline-focus-ring focus-visible:outline-offset-2 focus-visible:shadow-none focus-visible:ring-0","data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:hover:bg-primary data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground data-[state=indeterminate]:hover:bg-primary",te[_()],g()));Ue(re,()=>ze,(r,p)=>{p(r,Re({get id(){return a()},get disabled(){return f()},get required(){return u()},get readonly(){return c()},get name(){return S()},get value(){return R()},get onCheckedChange(){return x()},get onIndeterminateChange(){return q()},get"aria-label"(){return P()},get"aria-labelledby"(){return L()},get"aria-describedby"(){return z()},get"aria-invalid"(){return b(n)},get class(){return b(M)}},()=>A,{onclick:K,get ref(){return s()},set ref(v){s(v)},get checked(){return d()},set checked(v){d(v)},get indeterminate(){return h()},set indeterminate(v){h(v)},children:(v,pe)=>{var ne=kt(),Ae=Se(ne);{var Ee=I=>{var X=pt();D(I,X)},Me=I=>{var X=vt();let ve;Fe(()=>ve=Ke(X,0,"svelte-2cduoy",null,ve,{drawn:d()})),D(I,X)};ue(Ae,I=>{h()?I(Ee):I(Me,-1)})}Pe(ne),D(v,ne)},$$slots:{default:!0}}))})}return D(t,E),fe(Q)}export{yt as C,dt as s};
7
+ - ...and ${f} more`),qe(u)}return d}return B(t,new Map,"",ut,null,s)}function B(t,e,s,a,d=null,h=!1){if(typeof t=="object"&&t!==null){var f=e.get(t);if(f!==void 0)return f;if(t instanceof Map)return new Map(t);if(t instanceof Set)return new Set(t);if(He(t)){var u=Array(t.length);e.set(t,u),d!==null&&e.set(d,u);for(var c=0;c<t.length;c+=1){var y=t[c];c in t&&(u[c]=B(y,e,N?`${s}[${c}]`:s,a,null,h))}return u}if(Je(t)===je){u={},e.set(t,u),d!==null&&e.set(d,u);for(var g of Object.keys(t))u[g]=B(t[g],e,N?`${s}.${g}`:s,a,null,h);return u}if(t instanceof Date)return t.getTime(),structuredClone(t);if(typeof t.toJSON=="function"&&!h)return B(t.toJSON(),e,N?`${s}.toJSON()`:s,a,t)}if(t instanceof EventTarget)return t;try{return structuredClone(t)}catch{return N&&a.push(s),t}}const ct=nt({component:"checkbox",parts:["root","group","group-label","input"]}),lt=new Ie("Checkbox.Group"),Ne=new Ie("Checkbox.Root");var H,J,j,G,z,$,V,W;const be=class be{constructor(e,s){v(this,z);O(this,"opts");O(this,"group");v(this,H,m(()=>this.group&&this.group.opts.name.current?this.group.opts.name.current:this.opts.name.current));v(this,J,m(()=>this.group&&this.group.opts.required.current?!0:this.opts.required.current));v(this,j,m(()=>this.group&&this.group.opts.disabled.current?!0:this.opts.disabled.current));v(this,G,m(()=>this.group&&this.group.opts.readonly.current?!0:this.opts.readonly.current));O(this,"attachment");v(this,V,m(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current})));v(this,W,m(()=>({id:this.opts.id.current,role:"checkbox",type:this.opts.type.current,disabled:this.trueDisabled,"aria-checked":tt(this.opts.checked.current,this.opts.indeterminate.current),"aria-required":we(this.trueRequired),"aria-readonly":we(this.trueReadonly),"data-disabled":_e(this.trueDisabled),"data-readonly":_e(this.trueReadonly),"data-state":ht(this.opts.checked.current,this.opts.indeterminate.current),[ct.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment})));this.opts=e,this.group=s,this.attachment=Ye(this.opts.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),se.pre([()=>dt(this.group?.opts.value.current),()=>this.opts.value.current],([a,d])=>{!a||!d||(this.opts.checked.current=a.includes(d))}),se.pre(()=>this.opts.checked.current,a=>{this.group&&(a?this.group?.addValue(this.opts.value.current):this.group?.removeValue(this.opts.value.current))})}static create(e,s=null){return Ne.set(new be(e,s))}get trueName(){return b(l(this,H))}set trueName(e){w(l(this,H),e)}get trueRequired(){return b(l(this,J))}set trueRequired(e){w(l(this,J),e)}get trueDisabled(){return b(l(this,j))}set trueDisabled(e){w(l(this,j),e)}get trueReadonly(){return b(l(this,G))}set trueReadonly(e){w(l(this,G),e)}onkeydown(e){if(!(this.trueDisabled||this.trueReadonly)){if(e.key===$e){e.preventDefault(),this.opts.type.current==="submit"&&e.currentTarget.closest("form")?.requestSubmit();return}e.key===et&&(e.preventDefault(),Y(this,z,$).call(this))}}onclick(e){if(!(this.trueDisabled||this.trueReadonly)){if(this.opts.type.current==="submit"){Y(this,z,$).call(this);return}e.preventDefault(),Y(this,z,$).call(this)}}get snippetProps(){return b(l(this,V))}set snippetProps(e){w(l(this,V),e)}get props(){return b(l(this,W))}set props(e){w(l(this,W),e)}};H=new WeakMap,J=new WeakMap,j=new WeakMap,G=new WeakMap,z=new WeakSet,$=function(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current},V=new WeakMap,W=new WeakMap;let ae=be;var Q,U,Z;const me=class me{constructor(e){O(this,"root");v(this,Q,m(()=>this.root.group?!!(this.root.opts.value.current!==void 0&&this.root.group.opts.value.current.includes(this.root.opts.value.current)):this.root.opts.checked.current));v(this,U,m(()=>!!this.root.trueName));v(this,Z,m(()=>({type:"checkbox",checked:this.root.opts.checked.current===!0,disabled:this.root.trueDisabled,required:this.root.trueRequired,name:this.root.trueName,value:this.root.opts.value.current,readonly:this.root.trueReadonly,onfocus:this.onfocus})));this.root=e,this.onfocus=this.onfocus.bind(this)}static create(){return new me(Ne.get())}get trueChecked(){return b(l(this,Q))}set trueChecked(e){w(l(this,Q),e)}get shouldRender(){return b(l(this,U))}set shouldRender(e){w(l(this,U),e)}onfocus(e){rt(this.root.opts.ref.current)&&this.root.opts.ref.current.focus()}get props(){return b(l(this,Z))}set props(e){w(l(this,Z),e)}};Q=new WeakMap,U=new WeakMap,Z=new WeakMap;let ie=me;function ht(t,e){return e?"indeterminate":t?"checked":"unchecked"}function ze(t,e){if(new.target)return oe({component:ze,...t});ce(e,!1);const s=ie.create();var a={$set:ue,$on:(u,c)=>de(e,u,c)};at();var d=le(),h=ee(d);{var f=u=>{Xe(u,De(()=>s.props))};ge(h,u=>{s.shouldRender&&u(f)})}return R(t,d),he(a)}var ft=new Set(["$$slots","$$events","$$legacy","checked","ref","onCheckedChange","children","disabled","required","name","value","id","indeterminate","onIndeterminateChange","child","type","readonly"]),gt=Le("<button><!></button>"),bt=Le("<!> <!>",1);function Te(t,e){const s=Ge();if(new.target)return oe({component:Te,...t});ce(e,!0);let a=i(e,"checked",15,!1),d=i(e,"ref",15,null),h=i(e,"onCheckedChange",7),f=i(e,"children",7),u=i(e,"disabled",7,!1),c=i(e,"required",7,!1),y=i(e,"name",7,void 0),g=i(e,"value",7,"on"),x=i(e,"id",23,()=>xe(s)),q=i(e,"indeterminate",15,!1),S=i(e,"onIndeterminateChange",7),D=i(e,"child",7),P=i(e,"type",7,"button"),L=i(e,"readonly",7),T=Re(e,ft);const _=lt.getOr(null);_&&g()&&(_.opts.value.current.includes(g())?a(!0):a(!1)),se.pre(()=>g(),()=>{_&&g()&&(_.opts.value.current.includes(g())?a(!0):a(!1))});const A=ae.create({checked:C(()=>a(),r=>{a(r),h()?.(r)}),disabled:C(()=>u()??!1),required:C(()=>c()),name:C(()=>y()),value:C(()=>g()),id:C(()=>x()),ref:C(()=>d(),r=>d(r)),indeterminate:C(()=>q(),r=>{q(r),S()?.(r)}),type:C(()=>P()),readonly:C(()=>!!L())},_),F=m(()=>st({...T},A.props));var te={get checked(){return a()},set checked(r=!1){a(r),o()},get ref(){return d()},set ref(r=null){d(r),o()},get onCheckedChange(){return h()},set onCheckedChange(r){h(r),o()},get children(){return f()},set children(r){f(r),o()},get disabled(){return u()},set disabled(r=!1){u(r),o()},get required(){return c()},set required(r=!1){c(r),o()},get name(){return y()},set name(r=void 0){y(r),o()},get value(){return g()},set value(r="on"){g(r),o()},get id(){return x()},set id(r=xe(s)){x(r),o()},get indeterminate(){return q()},set indeterminate(r=!1){q(r),o()},get onIndeterminateChange(){return S()},set onIndeterminateChange(r){S(r),o()},get child(){return D()},set child(r){D(r),o()},get type(){return P()},set type(r="button"){P(r),o()},get readonly(){return L()},set readonly(r){L(r),o()},$set:ue,$on:(r,p)=>de(e,r,p)},K=bt(),M=ee(K);{var re=r=>{var p=le(),k=ee(p);{let pe=m(()=>({props:b(F),...A.snippetProps}));Ce(k,D,()=>b(pe))}R(r,p)},n=r=>{var p=gt();Ze(p,()=>({...b(F)}));var k=Se(p);Ce(k,()=>f()??We,()=>A.snippetProps),Pe(p),R(r,p)};ge(M,r=>{D()?r(re):r(n,-1)})}var E=Ve(M,2);return ze(E,{}),R(t,K),he(te)}var mt=new Set(["$$slots","$$events","$$legacy","ref","id","checked","indeterminate","disabled","required","readonly","invalid","class","onCheckedChange","onIndeterminateChange","name","value","ariaLabel","ariaLabelledby","ariaDescribedby","size"]),pt=fe('<path class="checkbox-line svelte-2cduoy" d="M2.5 6h7"></path>'),kt=fe('<path d="m2.25 6.25 2.25 2.2 5.25-5"></path>'),vt=fe('<svg class="checkbox-mark size-[75%] svelte-2cduoy" viewBox="0 0 12 12" aria-hidden="true"><!></svg>');function yt(t,e){if(new.target)return oe({component:yt,...t});ce(e,!0);let s=i(e,"ref",15,null),a=i(e,"id",7,""),d=i(e,"checked",15,!1),h=i(e,"indeterminate",15,!1),f=i(e,"disabled",7,!1),u=i(e,"required",7,!1),c=i(e,"readonly",7,!1),y=i(e,"invalid",7,!1),g=i(e,"class",7,""),x=i(e,"onCheckedChange",7),q=i(e,"onIndeterminateChange",7),S=i(e,"name",7),D=i(e,"value",7,"on"),P=i(e,"ariaLabel",7),L=i(e,"ariaLabelledby",7),T=i(e,"ariaDescribedby",7),_=i(e,"size",7,"md"),A=Re(e,mt);function F(n){n.stopPropagation(),e.onclick?.(n)}const te={sm:"w-3.5 h-3.5",md:"w-4 h-4",lg:"w-5 h-5"};var K={get ref(){return s()},set ref(n=null){s(n),o()},get id(){return a()},set id(n=""){a(n),o()},get checked(){return d()},set checked(n=!1){d(n),o()},get indeterminate(){return h()},set indeterminate(n=!1){h(n),o()},get disabled(){return f()},set disabled(n=!1){f(n),o()},get required(){return u()},set required(n=!1){u(n),o()},get readonly(){return c()},set readonly(n=!1){c(n),o()},get invalid(){return y()},set invalid(n=!1){y(n),o()},get class(){return g()},set class(n=""){g(n),o()},get onCheckedChange(){return x()},set onCheckedChange(n){x(n),o()},get onIndeterminateChange(){return q()},set onIndeterminateChange(n){q(n),o()},get name(){return S()},set name(n){S(n),o()},get value(){return D()},set value(n="on"){D(n),o()},get ariaLabel(){return P()},set ariaLabel(n){P(n),o()},get ariaLabelledby(){return L()},set ariaLabelledby(n){L(n),o()},get ariaDescribedby(){return T()},set ariaDescribedby(n){T(n),o()},get size(){return _()},set size(n="md"){_(n),o()},$set:ue,$on:(n,E)=>de(e,n,E)},M=le(),re=ee(M);{let n=m(()=>y()||void 0),E=m(()=>Ke("checkbox-root border-border bg-card relative inline-flex shrink-0 cursor-pointer items-center justify-center rounded-(--radius-small) border-[1.5px] shadow-(--elevation-raised) transition-[border-color,background-color,box-shadow,opacity] duration-spring-fast ease-spring-fast after:absolute after:-inset-1.5 after:content-[''] motion-reduce:transition-none","hover:border-input hover:bg-hover active:bg-active",f()&&"cursor-not-allowed bg-muted/40 opacity-60 hover:border-border",c()&&"cursor-default",y()&&"border-danger ring-1 ring-danger/25","focus-visible:outline focus-visible:outline-1 focus-visible:outline-focus-ring focus-visible:outline-offset-2 focus-visible:shadow-none focus-visible:ring-0","data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:hover:bg-primary data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground data-[state=indeterminate]:hover:bg-primary",te[_()],g()));Ue(re,()=>Te,(r,p)=>{p(r,De({get id(){return a()},get disabled(){return f()},get required(){return u()},get readonly(){return c()},get name(){return S()},get value(){return D()},get onCheckedChange(){return x()},get onIndeterminateChange(){return q()},get"aria-label"(){return P()},get"aria-labelledby"(){return L()},get"aria-describedby"(){return T()},get"aria-invalid"(){return b(n)},get class(){return b(E)}},()=>A,{onclick:F,get ref(){return s()},set ref(k){s(k)},get checked(){return d()},set checked(k){d(k)},get indeterminate(){return h()},set indeterminate(k){h(k)},children:(k,pe)=>{var ne=vt(),Ae=Se(ne);{var Me=I=>{var X=pt();R(I,X)},Ee=I=>{var X=kt();let ke;Qe(()=>ke=Fe(X,0,"svelte-2cduoy",null,ke,{drawn:d()})),R(I,X)};ge(Ae,I=>{h()?I(Me):I(Ee,-1)})}Pe(ne),R(k,ne)},$$slots:{default:!0}}))})}return R(t,M),he(K)}export{yt as C,dt as s};