@intent-hq/web 2.321.0 → 2.321.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{Cz8iOYm8.js → -OAW1EMW.js} +1 -1
  3. package/web/app/immutable/chunks/{CDsY8gY8.js → -WHIysNv.js} +1 -1
  4. package/web/app/immutable/chunks/{BZyfa8QR.js → 1hja73nv.js} +1 -1
  5. package/web/app/immutable/chunks/{CvBuWqyP.js → 595JSfYJ.js} +4 -4
  6. package/web/app/immutable/chunks/{DZtstCLQ.js → 9ZBkr0Qf.js} +1 -1
  7. package/web/app/immutable/chunks/{DwsRDnkS.js → B-obUB2z.js} +4 -4
  8. package/web/app/immutable/chunks/{vzGm0J_h.js → B0SbPsRb.js} +1 -1
  9. package/web/app/immutable/chunks/{O0CxvO89.js → B1Ss_ZJB.js} +1 -1
  10. package/web/app/immutable/chunks/{Dritbi2C.js → B21V7_mT.js} +1 -1
  11. package/web/app/immutable/chunks/{D6dCvfQe.js → B3X_dqJy.js} +1 -1
  12. package/web/app/immutable/chunks/{DwNzQjT_.js → B5plHk_3.js} +1 -1
  13. package/web/app/immutable/chunks/{-x_SoK5J.js → B6l2HPmZ.js} +1 -1
  14. package/web/app/immutable/chunks/{CPKLysog.js → B7Ka_0Oj.js} +1 -1
  15. package/web/app/immutable/chunks/{Cqay3Iio.js → B8EyUhsU.js} +1 -1
  16. package/web/app/immutable/chunks/{BflC9e-C.js → B8lRKrSj.js} +1 -1
  17. package/web/app/immutable/chunks/{C0mBOV7w.js → B8z7D92E.js} +1 -1
  18. package/web/app/immutable/chunks/{BM51eWC-.js → B9_x-PiX.js} +1 -1
  19. package/web/app/immutable/chunks/{w6mFE4SD.js → BA_dLJoi.js} +1 -1
  20. package/web/app/immutable/chunks/{Ced26xBL.js → BBFIIkt3.js} +1 -1
  21. package/web/app/immutable/chunks/{CZEWv-Gf.js → BC2qBoqJ.js} +1 -1
  22. package/web/app/immutable/chunks/{BBeErNG6.js → BCXXXhph.js} +1 -1
  23. package/web/app/immutable/chunks/{CulY8r4s.js → BGDIUFls.js} +1 -1
  24. package/web/app/immutable/chunks/{Bgw4M5Hc.js → BIyU-DJK.js} +1 -1
  25. package/web/app/immutable/chunks/{BtTBXjdJ.js → BJevbZ6b.js} +1 -1
  26. package/web/app/immutable/chunks/{D2zJp5fS.js → BKGDTzxi.js} +4 -4
  27. package/web/app/immutable/chunks/{PUalo3UE.js → BKjTzecb.js} +1 -1
  28. package/web/app/immutable/chunks/BLK9_MXJ.js +1 -0
  29. package/web/app/immutable/chunks/{C6-BVYMv.js → BLPUk2wE.js} +1 -1
  30. package/web/app/immutable/chunks/{DjqPgoUP.js → BMeK3RDc.js} +1 -1
  31. package/web/app/immutable/chunks/{BwICfRz9.js → BOCB_5Mq.js} +1 -1
  32. package/web/app/immutable/chunks/{DMRQ6CDd.js → BOIp2sA8.js} +2 -2
  33. package/web/app/immutable/chunks/{4iRc0E9v.js → BOXp2u2v.js} +1 -1
  34. package/web/app/immutable/chunks/{CYOvUFvY.js → BQSDfUdM.js} +1 -1
  35. package/web/app/immutable/chunks/{CVrH3Neh.js → BTFetavf.js} +1 -1
  36. package/web/app/immutable/chunks/{BtWwzwrf.js → BUJszVQU.js} +1 -1
  37. package/web/app/immutable/chunks/{BeqbwVaJ.js → BUgNMnQK.js} +1 -1
  38. package/web/app/immutable/chunks/{CAgY0H5Q.js → BVu_zw0i.js} +1 -1
  39. package/web/app/immutable/chunks/{CmAVmm3T.js → BW92tDoj.js} +1 -1
  40. package/web/app/immutable/chunks/{5QXDo1_h.js → BaY77ElS.js} +1 -1
  41. package/web/app/immutable/chunks/{DnfX8iZ_.js → BepfjQky.js} +1 -1
  42. package/web/app/immutable/chunks/{DPoarPZL.js → BfDD9-8-.js} +1 -1
  43. package/web/app/immutable/chunks/{DJKXcaw9.js → BfLoMdoJ.js} +1 -1
  44. package/web/app/immutable/chunks/{C3lgqjB4.js → BhLhuxzO.js} +1 -1
  45. package/web/app/immutable/chunks/{CY9IKMQG.js → BhQoULkp.js} +1 -1
  46. package/web/app/immutable/chunks/{BD8I8FK1.js → BhptSt_t.js} +1 -1
  47. package/web/app/immutable/chunks/{C804xHCz.js → BnfqUxHy.js} +1 -1
  48. package/web/app/immutable/chunks/{CCsRc7xx.js → BoRJGEYY.js} +1 -1
  49. package/web/app/immutable/chunks/{CoUfnBeR.js → BqY6zXt8.js} +1 -1
  50. package/web/app/immutable/chunks/{DlZzAKZ2.js → Bswi_ddk.js} +1 -1
  51. package/web/app/immutable/chunks/{DZAWjsA4.js → BuSLaAvw.js} +1 -1
  52. package/web/app/immutable/chunks/{BziQ6zwo.js → Bv8X8HVG.js} +1 -1
  53. package/web/app/immutable/chunks/{CHRkLzGl.js → BxYEiUJG.js} +1 -1
  54. package/web/app/immutable/chunks/{BDgfVkJh.js → BxwVL-Fm.js} +1 -1
  55. package/web/app/immutable/chunks/{DNNMwmDG.js → By6RneNn.js} +1 -1
  56. package/web/app/immutable/chunks/{jvHJQ-Xz.js → ByHaUdGf.js} +1 -1
  57. package/web/app/immutable/chunks/{Cb3FWEmc.js → ByrMuSC8.js} +1 -1
  58. package/web/app/immutable/chunks/{DXySew1R.js → Bz3RpCLK.js} +1 -1
  59. package/web/app/immutable/chunks/{Du7yAEgM.js → BzxV99e1.js} +1 -1
  60. package/web/app/immutable/chunks/{CLmrIbfi.js → C-Bae4WT.js} +1 -1
  61. package/web/app/immutable/chunks/{DuMlpvYZ.js → C49MHRWB.js} +1 -1
  62. package/web/app/immutable/chunks/{DFyBaL9d.js → C4v4cxss.js} +1 -1
  63. package/web/app/immutable/chunks/{Ab2YxsyL.js → C7ROHbZN.js} +1 -1
  64. package/web/app/immutable/chunks/{DDdLPEvL.js → C8PJPEyt.js} +1 -1
  65. package/web/app/immutable/chunks/{Bcc7Bzbg.js → C8j9JMqo.js} +1 -1
  66. package/web/app/immutable/chunks/{z3QVK190.js → C9X3oeee.js} +2 -2
  67. package/web/app/immutable/chunks/{DOzF5uE-.js → CAlQoToi.js} +1 -1
  68. package/web/app/immutable/chunks/{DYhpST_X.js → CAqQ6ocO.js} +1 -1
  69. package/web/app/immutable/chunks/{Bi4OiJD3.js → CBB0H9gy.js} +1 -1
  70. package/web/app/immutable/chunks/{0Orrh1Id.js → CBt1geRx.js} +1 -1
  71. package/web/app/immutable/chunks/{C7JWgw8J.js → CCFv83XE.js} +3 -3
  72. package/web/app/immutable/chunks/{0x0gscua.js → CEifkBBF.js} +1 -1
  73. package/web/app/immutable/chunks/{CdVKa6AF.js → CF05BHVg.js} +1 -1
  74. package/web/app/immutable/chunks/{csuWDYc9.js → CFUuuOCk.js} +1 -1
  75. package/web/app/immutable/chunks/{DYfBNrOV.js → CFpa0qKK.js} +1 -1
  76. package/web/app/immutable/chunks/{C76-jvlr.js → CKVMwQIU.js} +1 -1
  77. package/web/app/immutable/chunks/{BcpqnYRX.js → CKwUXTNV.js} +1 -1
  78. package/web/app/immutable/chunks/{BWHu0fap.js → CNfmWkr2.js} +1 -1
  79. package/web/app/immutable/chunks/{ByKL05wN.js → COHcJhIZ.js} +1 -1
  80. package/web/app/immutable/chunks/{Cwv7iryQ.js → CPTVx1j_.js} +1 -1
  81. package/web/app/immutable/chunks/{B1WyTcs2.js → CQR2-ULA.js} +1 -1
  82. package/web/app/immutable/chunks/{CvegPRPp.js → CRIiIVFe.js} +1 -1
  83. package/web/app/immutable/chunks/{DRpDjwRs.js → CRVLGDX1.js} +1 -1
  84. package/web/app/immutable/chunks/{CIh8Ybhq.js → CShmL-bJ.js} +1 -1
  85. package/web/app/immutable/chunks/{CGIf2jXM.js → CVXLAap3.js} +1 -1
  86. package/web/app/immutable/chunks/{aLZSbque.js → CVpyP8V1.js} +1 -1
  87. package/web/app/immutable/chunks/{CEj75uMJ.js → CVxxrZlU.js} +1 -1
  88. package/web/app/immutable/chunks/{B-WefpDP.js → CZHW0zTR.js} +1 -1
  89. package/web/app/immutable/chunks/{Bknqawxe.js → C_J-ZvyS.js} +1 -1
  90. package/web/app/immutable/chunks/{Bok30zBH.js → C_etBYrd.js} +1 -1
  91. package/web/app/immutable/chunks/{BOrghaSd.js → Ccao0BPS.js} +2 -2
  92. package/web/app/immutable/chunks/{D7q-DSVP.js → Cd2nCrGL.js} +1 -1
  93. package/web/app/immutable/chunks/{7fl6VDRo.js → Cg1Q3Vce.js} +1 -1
  94. package/web/app/immutable/chunks/{UEd-gngc.js → Cg1YDdPt.js} +1 -1
  95. package/web/app/immutable/chunks/{nR16njgN.js → CgTaoYRE.js} +1 -1
  96. package/web/app/immutable/chunks/{I0eHZGMz.js → CgX-NR2x.js} +1 -1
  97. package/web/app/immutable/chunks/{CxZuxrAL.js → CgYFLqPV.js} +1 -1
  98. package/web/app/immutable/chunks/{CchM71Qw.js → ChoOa3ue.js} +1 -1
  99. package/web/app/immutable/chunks/{DlBxdhh5.js → ChwJR7tq.js} +2 -2
  100. package/web/app/immutable/chunks/{DS2Q5gr9.js → CjMMRJKO.js} +1 -1
  101. package/web/app/immutable/chunks/{CqGkRJXi.js → Cjt2NmNL.js} +1 -1
  102. package/web/app/immutable/chunks/{BMH4mbSd.js → CkCvlKVo.js} +2 -2
  103. package/web/app/immutable/chunks/{CXIZuwd7.js → CkFyNl9C.js} +1 -1
  104. package/web/app/immutable/chunks/{CdGIN-T1.js → CkO5mH9l.js} +3 -3
  105. package/web/app/immutable/chunks/{Bmmshx2M.js → CkVv_2uN.js} +1 -1
  106. package/web/app/immutable/chunks/{DDnwQoVq.js → CksqvVEv.js} +1 -1
  107. package/web/app/immutable/chunks/{C-RJDuZ9.js → ClKXAKis.js} +1 -1
  108. package/web/app/immutable/chunks/{5MGYaOe_.js → CmdmUBjO.js} +1 -1
  109. package/web/app/immutable/chunks/{Cbqk5Mud.js → Cn3sgfe9.js} +1 -1
  110. package/web/app/immutable/chunks/{Ob5NWDgS.js → CnGmyG1N.js} +1 -1
  111. package/web/app/immutable/chunks/{BC1v75_H.js → Cnv2xfJ5.js} +1 -1
  112. package/web/app/immutable/chunks/{C5aeZ3Yo.js → CpHf2NNU.js} +2 -2
  113. package/web/app/immutable/chunks/{QjpXu0Du.js → CpqBzFAh.js} +1 -1
  114. package/web/app/immutable/chunks/{Dix9BiYu.js → Cs29mItj.js} +1 -1
  115. package/web/app/immutable/chunks/{o5rEX9Xy.js → CtlvWnL2.js} +1 -1
  116. package/web/app/immutable/chunks/{CVjlpAWj.js → CukTrqVi.js} +3 -3
  117. package/web/app/immutable/chunks/{B6DUgu-2.js → CvEJT2Bp.js} +1 -1
  118. package/web/app/immutable/chunks/{BGFrQA7m.js → CwCU1Sl2.js} +1 -1
  119. package/web/app/immutable/chunks/{CM7Hb3PZ.js → Cx6BBijv.js} +1 -1
  120. package/web/app/immutable/chunks/{Cja4W1Zb.js → CxFIgZQh.js} +4 -4
  121. package/web/app/immutable/chunks/{ubLEbEcV.js → CxH_XgDD.js} +1 -1
  122. package/web/app/immutable/chunks/{DhtKWu39.js → CyDNFzzR.js} +1 -1
  123. package/web/app/immutable/chunks/{BEQ_aNVt.js → CzJkcVDg.js} +2 -2
  124. package/web/app/immutable/chunks/{CKO4faLg.js → D0t3600U.js} +1 -1
  125. package/web/app/immutable/chunks/{Bc-CUZMV.js → D2cK1lQ1.js} +1 -1
  126. package/web/app/immutable/chunks/{B0FYEeEw.js → D4GiefG7.js} +1 -1
  127. package/web/app/immutable/chunks/{DR4i54x0.js → D58l9gbk.js} +1 -1
  128. package/web/app/immutable/chunks/{8biy-UQv.js → D7DC5szJ.js} +1 -1
  129. package/web/app/immutable/chunks/{CKwPlZ66.js → D7G7K7c-.js} +1 -1
  130. package/web/app/immutable/chunks/{BX-dt_Uh.js → D7Ooq-cX.js} +1 -1
  131. package/web/app/immutable/chunks/{hxIWaKu8.js → D7T2_Y9j.js} +1 -1
  132. package/web/app/immutable/chunks/{NeHKo0ZG.js → D7gneRCc.js} +1 -1
  133. package/web/app/immutable/chunks/{Cts399i7.js → D8UKP7YR.js} +1 -1
  134. package/web/app/immutable/chunks/{tGqA6xQ9.js → DA-H5C8Y.js} +1 -1
  135. package/web/app/immutable/chunks/{CS7dHtKw.js → DA6yyw4t.js} +1 -1
  136. package/web/app/immutable/chunks/{k4eU_FWk.js → DCK0Naee.js} +1 -1
  137. package/web/app/immutable/chunks/{DsRLPs6I.js → DDQNWelJ.js} +3 -3
  138. package/web/app/immutable/chunks/{Byv2GcxJ.js → DEG0t0e4.js} +2 -2
  139. package/web/app/immutable/chunks/{DMvfzQWM.js → DFNIzPXh.js} +1 -1
  140. package/web/app/immutable/chunks/{C3AKbypo.js → DG59horb.js} +6 -6
  141. package/web/app/immutable/chunks/{CTlGDL05.js → DGwsJJPM.js} +1 -1
  142. package/web/app/immutable/chunks/{Dgqdx3pd.js → DHDWM67z.js} +1 -1
  143. package/web/app/immutable/chunks/{BkR5Qiti.js → DI5kEG-f.js} +1 -1
  144. package/web/app/immutable/chunks/{CGVJO4eq.js → DILsnJHr.js} +1 -1
  145. package/web/app/immutable/chunks/{XV0T3w4n.js → DJ4kCFeu.js} +1 -1
  146. package/web/app/immutable/chunks/{B9MBednq.js → DK60Gbnz.js} +1 -1
  147. package/web/app/immutable/chunks/{BG-UHIO1.js → DLL1CDAX.js} +1 -1
  148. package/web/app/immutable/chunks/{D84A4J8d.js → DN-zwgZs.js} +1 -1
  149. package/web/app/immutable/chunks/{dmSYAakE.js → DNmwPq0o.js} +1 -1
  150. package/web/app/immutable/chunks/{C11XjPnf.js → DPbHVaEp.js} +3 -3
  151. package/web/app/immutable/chunks/{BGiTQR4x.js → DPu6l1xr.js} +1 -1
  152. package/web/app/immutable/chunks/{CztKENY4.js → DQ5722kb.js} +1 -1
  153. package/web/app/immutable/chunks/{C-neqscP.js → DQJIFwfN.js} +1 -1
  154. package/web/app/immutable/chunks/{Bo4s1kgI.js → DSAz0okZ.js} +1 -1
  155. package/web/app/immutable/chunks/{B0pgN3Jj.js → DSK0s2id.js} +1 -1
  156. package/web/app/immutable/chunks/{p5gLe3PS.js → DSemZQdl.js} +1 -1
  157. package/web/app/immutable/chunks/{Dd0rdLMI.js → DWE0HeOH.js} +1 -1
  158. package/web/app/immutable/chunks/DXQjqgTI.js +2 -0
  159. package/web/app/immutable/chunks/{C8zzua9V.js → DXUSKOBi.js} +1 -1
  160. package/web/app/immutable/chunks/{BS5yagDq.js → Db4tMHqD.js} +1 -1
  161. package/web/app/immutable/chunks/{JfyBNQs2.js → DbEloQVd.js} +1 -1
  162. package/web/app/immutable/chunks/{uyOfKmty.js → DbSExeuK.js} +3 -3
  163. package/web/app/immutable/chunks/DdyXhBml.js +1 -0
  164. package/web/app/immutable/chunks/{DSdY0J1g.js → DeAs3CrV.js} +1 -1
  165. package/web/app/immutable/chunks/{Dd7A9glX.js → DfmFIVGk.js} +1 -1
  166. package/web/app/immutable/chunks/{BXean12D.js → DgH1Kxzo.js} +1 -1
  167. package/web/app/immutable/chunks/{C_Vz3LCC.js → DhupuNdm.js} +1 -1
  168. package/web/app/immutable/chunks/{CCnP87Jb.js → DjlgzWYz.js} +1 -1
  169. package/web/app/immutable/chunks/{QGE3iD8D.js → Djo4jLAK.js} +1 -1
  170. package/web/app/immutable/chunks/{CHM5tGJ6.js → DknRplPn.js} +1 -1
  171. package/web/app/immutable/chunks/{D_HysCp7.js → Dkqghfib.js} +1 -1
  172. package/web/app/immutable/chunks/{B5nbjbRb.js → Dl9O9El0.js} +1 -1
  173. package/web/app/immutable/chunks/{BwYRCP9e.js → DlVuwwPm.js} +1 -1
  174. package/web/app/immutable/chunks/{jMKjj8ae.js → Do2QraPX.js} +1 -1
  175. package/web/app/immutable/chunks/{CxQ0SCX2.js → Dpt5qRH-.js} +1 -1
  176. package/web/app/immutable/chunks/{DI4wCe7O.js → DqoSmmzJ.js} +1 -1
  177. package/web/app/immutable/chunks/{CGBBhq8k.js → DrLFKkMN.js} +1 -1
  178. package/web/app/immutable/chunks/{gCXIPBa3.js → DrV9FRnq.js} +1 -1
  179. package/web/app/immutable/chunks/DtA2OOMb.js +1 -0
  180. package/web/app/immutable/chunks/{DyVNmy1r.js → Dw8vhMX8.js} +1 -1
  181. package/web/app/immutable/chunks/{pnKMO5U0.js → Dx4FwkUV.js} +12 -12
  182. package/web/app/immutable/chunks/{BLhWzQz2.js → Dy273g_c.js} +1 -1
  183. package/web/app/immutable/chunks/{Ci959ZOg.js → DyAwtID_.js} +1 -1
  184. package/web/app/immutable/chunks/{QSR6vsk4.js → HjZp7lPh.js} +1 -1
  185. package/web/app/immutable/chunks/IVwolD3l.js +1 -0
  186. package/web/app/immutable/chunks/{CBxbaIvA.js → J2Ik-qgk.js} +1 -1
  187. package/web/app/immutable/chunks/{BdWpSBC4.js → Jyvn4VFV.js} +2 -2
  188. package/web/app/immutable/chunks/{vUGF5JqJ.js → KbX4WJa3.js} +1 -1
  189. package/web/app/immutable/chunks/{BsB3ty-n.js → LJbiiLoF.js} +1 -1
  190. package/web/app/immutable/chunks/{8OpKoiOO.js → M2KsQzCE.js} +1 -1
  191. package/web/app/immutable/chunks/{CEFpGNTq.js → P5ksjIJq.js} +1 -1
  192. package/web/app/immutable/chunks/{BBZiE97y.js → QH2SEUTS.js} +1 -1
  193. package/web/app/immutable/chunks/{YO4PhogQ.js → Qo3qzRgV.js} +1 -1
  194. package/web/app/immutable/chunks/{6cxhz2FS.js → R4RwwAIT.js} +1 -1
  195. package/web/app/immutable/chunks/{D4e2w8TP.js → R6TUWaQq.js} +1 -1
  196. package/web/app/immutable/chunks/{reR1kPlm.js → R7JNw0Kj.js} +1 -1
  197. package/web/app/immutable/chunks/{45y_L1a9.js → R7cFQfJw.js} +1 -1
  198. package/web/app/immutable/chunks/{XF_IbTR1.js → ShyOFQId.js} +3 -3
  199. package/web/app/immutable/chunks/{B2yYgkwz.js → UJOJMGUV.js} +1 -1
  200. package/web/app/immutable/chunks/{VEkj47bo.js → UrKpUjsc.js} +1 -1
  201. package/web/app/immutable/chunks/{CN70DRE5.js → W3fvY0y9.js} +1 -1
  202. package/web/app/immutable/chunks/{DNFHGDC9.js → Yemr8tAr.js} +1 -1
  203. package/web/app/immutable/chunks/{Cq6ekj5I.js → Z9C8BZgq.js} +1 -1
  204. package/web/app/immutable/chunks/{D2iCI9dn.js → ZXnl98NQ.js} +1 -1
  205. package/web/app/immutable/chunks/{nLw8YrmA.js → ZZRQ9A5E.js} +1 -1
  206. package/web/app/immutable/chunks/{VeIqG7dc.js → _tiHrnhs.js} +1 -1
  207. package/web/app/immutable/chunks/{D5lr7eae.js → bsuDfMJ7.js} +1 -1
  208. package/web/app/immutable/chunks/{CsqvO7xN.js → cSE4WxMO.js} +1 -1
  209. package/web/app/immutable/chunks/{CHZAzCO9.js → cb3YK4cU.js} +2 -2
  210. package/web/app/immutable/chunks/{BMc6OzJ-.js → fR46xO2d.js} +1 -1
  211. package/web/app/immutable/chunks/{0TFOtiMK.js → hbDKUMfp.js} +1 -1
  212. package/web/app/immutable/chunks/{BXPwex0u.js → hiomoPR0.js} +1 -1
  213. package/web/app/immutable/chunks/{BbCn81lZ.js → jG9ZxBG9.js} +1 -1
  214. package/web/app/immutable/chunks/{D26IPp5S.js → kJEAqQBZ.js} +1 -1
  215. package/web/app/immutable/chunks/{DFcwI6Rh.js → kYECwxqW.js} +1 -1
  216. package/web/app/immutable/chunks/{B0FM877X.js → knj_j9t3.js} +1 -1
  217. package/web/app/immutable/chunks/{C8xPpxcv.js → oeKvwm9n.js} +1 -1
  218. package/web/app/immutable/chunks/rVUl07zm.js +1 -0
  219. package/web/app/immutable/chunks/{BvkV35-O.js → s0WtN5GJ.js} +1 -1
  220. package/web/app/immutable/chunks/{Ctggj9Y1.js → tF6DpP53.js} +1 -1
  221. package/web/app/immutable/chunks/{Bm_1OUSw.js → vZMKGyZD.js} +1 -1
  222. package/web/app/immutable/chunks/{CG9qWr93.js → wCe59Qn_.js} +3 -3
  223. package/web/app/immutable/chunks/{BMvbnoDk.js → wL4DOyzk.js} +1 -1
  224. package/web/app/immutable/chunks/{C0VXEpDj.js → waagD0cO.js} +1 -1
  225. package/web/app/immutable/chunks/{B7BTR3Z_.js → wsChBzD5.js} +1 -1
  226. package/web/app/immutable/chunks/{C06rhFz-.js → xXOd43YN.js} +1 -1
  227. package/web/app/immutable/chunks/{BOaNSc_1.js → y427XYTC.js} +1 -1
  228. package/web/app/immutable/chunks/{B0JWnOsx.js → yDAFOpKJ.js} +1 -1
  229. package/web/app/immutable/chunks/{BPp7FHiR.js → yYa77Hy1.js} +1 -1
  230. package/web/app/immutable/entry/{app.PHHlgSoZ.js → app.C4lGM6VF.js} +3 -3
  231. package/web/app/immutable/entry/start.Dm-EgTQN.js +1 -0
  232. package/web/app/immutable/nodes/{0.D7bJjS_y.js → 0.qAsdYGwF.js} +1 -1
  233. package/web/app/immutable/nodes/{1.B3gH8FG5.js → 1.xPfapkeR.js} +1 -1
  234. package/web/app/immutable/nodes/{10.NQcSgQgq.js → 10.B15mzUUg.js} +1 -1
  235. package/web/app/immutable/nodes/{11.Drfz7PRj.js → 11.DQfonRjI.js} +1 -1
  236. package/web/app/immutable/nodes/{12.gXokqM9g.js → 12.BhFeMS2H.js} +1 -1
  237. package/web/app/immutable/nodes/{13.DFxxGy6Y.js → 13.BhRY0bGm.js} +3 -3
  238. package/web/app/immutable/nodes/{14.7T2ChNl_.js → 14.a47lQm__.js} +1 -1
  239. package/web/app/immutable/nodes/{15.CgEeXtgJ.js → 15.ByMIoKJb.js} +1 -1
  240. package/web/app/immutable/nodes/{16.CWrHY2VB.js → 16.BZyTPRIV.js} +2 -2
  241. package/web/app/immutable/nodes/{2.DQ6QcB9c.js → 2.C4xwnwcF.js} +4 -4
  242. package/web/app/immutable/nodes/{3.Fjkgohv2.js → 3.Bp1zelve.js} +1 -1
  243. package/web/app/immutable/nodes/{4.D1BNF_ep.js → 4.CVUqia69.js} +1 -1
  244. package/web/app/immutable/nodes/{5.C5OySrRk.js → 5.CeZEr5fx.js} +1 -1
  245. package/web/app/immutable/nodes/{6.BrxG9qCf.js → 6.D4BurFfy.js} +1 -1
  246. package/web/app/immutable/nodes/{7.CvdabbdY.js → 7.B6cTk0vB.js} +1 -1
  247. package/web/app/immutable/nodes/{8.BSQtFfFS.js → 8.orOAWU1G.js} +8 -8
  248. package/web/app/immutable/nodes/{9.D6DS9Z9f.js → 9.CgJhFQrz.js} +5 -5
  249. package/web/app/version.json +1 -1
  250. package/web/generated/paraglide.js +46 -46
  251. package/web/index.html +18 -18
  252. package/web/app/immutable/chunks/B2c_0_UD.js +0 -2
  253. package/web/app/immutable/chunks/CCaX_DIa.js +0 -1
  254. package/web/app/immutable/chunks/CRyHSgI1.js +0 -1
  255. package/web/app/immutable/chunks/CmYXfe7_.js +0 -1
  256. package/web/app/immutable/chunks/eK7OULll.js +0 -1
  257. package/web/app/immutable/chunks/uLB4Kp9c.js +0 -1
  258. package/web/app/immutable/entry/start.Cltn4m6a.js +0 -1
@@ -1,4 +1,4 @@
1
- import{s as xe}from"./ubLEbEcV.js";import{p as be}from"./BkR5Qiti.js";import{b as C,a6 as Ce,W as ae,q as ee,aX as we,B as Te,ay as te,b8 as B,aW as Z,a_ as Le,V as $e,b0 as Ae,Y as Fe,U as _e,aZ as Ne,O as Me,ao as ke,r as Ve}from"./DwsRDnkS.js";import{p as ze}from"./DZAWjsA4.js";import{f as O,o as Q}from"./DjqPgoUP.js";function De(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function Pe(){return this.eachAfter(De)}function Be(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function We(t,a){for(var l=this,n=[l],s,r,h=-1;l=n.pop();)if(t.call(a,l,++h,this),s=l.children)for(r=s.length-1;r>=0;--r)n.push(s[r]);return this}function Ee(t,a){for(var l=this,n=[l],s=[],r,h,d,f=-1;l=n.pop();)if(s.push(l),r=l.children)for(h=0,d=r.length;h<d;++h)n.push(r[h]);for(;l=s.pop();)t.call(a,l,++f,this);return this}function Re(t,a){let l=-1;for(const n of this)if(t.call(a,n,++l,this))return n}function He(t){return this.eachAfter(function(a){for(var l=+t(a.data)||0,n=a.children,s=n&&n.length;--s>=0;)l+=n[s].value;a.value=l})}function Ie(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function Oe(t){for(var a=this,l=qe(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var s=n.length;t!==l;)n.splice(s,0,t),t=t.parent;return n}function qe(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),s=null;for(t=l.pop(),a=n.pop();t===a;)s=t,t=l.pop(),a=n.pop();return s}function Ge(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function Xe(){return Array.from(this)}function Ye(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function je(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Ue(){var t=this,a,l=[t],n,s,r;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(s=0,r=n.length;s<r;++s)l.push(n[s]);while(l.length)}function ne(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=Ke)):a===void 0&&(a=Je);for(var l=new Y(t),n,s=[l],r,h,d,f;n=s.pop();)if((h=a(n.data))&&(f=(h=Array.from(h)).length))for(n.children=h,d=f-1;d>=0;--d)s.push(r=h[d]=new Y(h[d])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(et)}function Ze(){return ne(this).eachBefore(Qe)}function Je(t){return t.children}function Ke(t){return Array.isArray(t)?t[1]:null}function Qe(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function et(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function Y(t){this.data=t,this.depth=this.height=0,this.parent=null}Y.prototype=ne.prototype={constructor:Y,count:Pe,each:Be,eachAfter:Ee,eachBefore:We,find:Re,sum:He,sort:Ie,path:Oe,ancestors:Ge,descendants:Xe,leaves:Ye,links:je,copy:Ze,[Symbol.iterator]:Ue};function tt(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function G(t){return function(){return t}}function at(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function oe(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(n-a)/t.value;++d<f;)h=r[d],h.y0=l,h.y1=s,h.x0=a,h.x1=a+=h.value*o}Object.create(Y.prototype);function ce(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(s-l)/t.value;++d<f;)h=r[d],h.x0=a,h.x1=n,h.y0=l,h.y1=l+=h.value*o}var he=(1+Math.sqrt(5))/2;function de(t,a,l,n,s,r){for(var h=[],d=a.children,f,o,u=0,S=0,i=d.length,v,x,g=a.value,p,b,_,$,z,R,N;u<i;){v=s-l,x=r-n;do p=d[S++].value;while(!p&&S<i);for(b=_=p,R=Math.max(x/v,v/x)/(g*t),N=p*p*R,z=Math.max(_/N,N/b);S<i;++S){if(p+=o=d[S].value,o<b&&(b=o),o>_&&(_=o),N=p*p*R,$=Math.max(_/N,N/b),$>z){p-=o;break}z=$}h.push(f={value:p,dice:v<x,children:d.slice(u,S)}),f.dice?oe(f,l,n,s,g?n+=x*p/g:r):ce(f,l,n,g?l+=v*p/g:s,r),g-=p,u=S}return h}var nt=(function t(a){function l(n,s,r,h,d){de(a,n,s,r,h,d)}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);function lt(){var t=nt,a=!1,l=1,n=1,s=[0],r=q,h=q,d=q,f=q,o=q;function u(i){return i.x0=i.y0=0,i.x1=l,i.y1=n,i.eachBefore(S),s=[0],a&&i.eachBefore(at),i}function S(i){var v=s[i.depth],x=i.x0+v,g=i.y0+v,p=i.x1-v,b=i.y1-v;p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),i.x0=x,i.y0=g,i.x1=p,i.y1=b,i.children&&(v=s[i.depth+1]=r(i)/2,x+=o(i)-v,g+=h(i)-v,p-=d(i)-v,b-=f(i)-v,p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),t(i,x,g,p,b))}return u.round=function(i){return arguments.length?(a=!!i,u):a},u.size=function(i){return arguments.length?(l=+i[0],n=+i[1],u):[l,n]},u.tile=function(i){return arguments.length?(t=tt(i),u):t},u.padding=function(i){return arguments.length?u.paddingInner(i).paddingOuter(i):u.paddingInner()},u.paddingInner=function(i){return arguments.length?(r=typeof i=="function"?i:G(+i),u):r},u.paddingOuter=function(i){return arguments.length?u.paddingTop(i).paddingRight(i).paddingBottom(i).paddingLeft(i):u.paddingTop()},u.paddingTop=function(i){return arguments.length?(h=typeof i=="function"?i:G(+i),u):h},u.paddingRight=function(i){return arguments.length?(d=typeof i=="function"?i:G(+i),u):d},u.paddingBottom=function(i){return arguments.length?(f=typeof i=="function"?i:G(+i),u):f},u.paddingLeft=function(i){return arguments.length?(o=typeof i=="function"?i:G(+i),u):o},u}(function t(a){function l(n,s,r,h,d){if((f=n._squarify)&&f.ratio===a)for(var f,o,u,S,i=-1,v,x=f.length,g=n.value;++i<x;){for(o=f[i],u=o.children,S=o.value=0,v=u.length;S<v;++S)o.value+=u[S].value;o.dice?oe(o,s,r,h,g?r+=(d-r)*o.value/g:d):ce(o,s,r,g?s+=(h-s)*o.value/g:h,d),g-=o.value}else n._squarify=f=de(a,n,s,r,h,d),f.ratio=a}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);var E,ue=(E=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=Le,this.getAccTitle=$e,this.setDiagramTitle=Ae,this.getDiagramTitle=Fe,this.getAccDescription=_e,this.setAccDescription=Ne}getNodes(){return this.nodes}getConfig(){const a=Me,l=ae();return ee({...a.treemap,...l.treemap??{}})}addNode(a,l){this.nodes.push(a),this.levels.set(a,l),l===0&&(this.outerNodes.push(a),this.root??=a)}getRoot(){return{name:"",children:this.outerNodes}}addClass(a,l){const n=this.classes.get(a)??{id:a,styles:[],textStyles:[]},s=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");s&&s.forEach(r=>{ke(r)&&(n?.textStyles?n.textStyles.push(r):n.textStyles=[r]),n?.styles?n.styles.push(r):n.styles=[r]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){return this.classes.get(a)?.styles??[]}clear(){Ve(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},C(E,"TreeMapDB"),E);function pe(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const s={name:n.name,children:n.type==="Leaf"?void 0:[]};for(s.classSelector=n?.classSelector,n?.cssCompiledStyles&&(s.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(s.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(s);else{const r=l[l.length-1].node;r.children?r.children.push(s):r.children=[s]}n.type!=="Leaf"&&l.push({node:s,level:n.level})}),a}C(pe,"buildHierarchy");var st=C((t,a)=>{be(t,a);const l=[];for(const r of t.TreemapRows??[])r.$type==="ClassDefStatement"&&a.addClass(r.className??"",r.styleText??"");for(const r of t.TreemapRows??[]){const h=r.item;if(!h)continue;const d=r.indent?parseInt(r.indent):0,f=rt(h),o=h.classSelector?a.getStylesForClass(h.classSelector):[],u=o.length>0?o:void 0,S={level:d,name:f,type:h.$type,value:h.value,classSelector:h.classSelector,cssCompiledStyles:u};l.push(S)}const n=pe(l),s=C((r,h)=>{for(const d of r)a.addNode(d,h),d.children&&d.children.length>0&&s(d.children,h+1)},"addNodesRecursively");s(n,0)},"populate"),rt=C(t=>t.name?String(t.name):"","getItemName"),fe={parser:{yy:void 0},parse:C(async t=>{try{const l=await ze("treemap",t);te.debug("Treemap AST:",l);const n=fe.parser?.yy;if(!(n instanceof ue))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");st(l,n)}catch(a){throw te.error("Error parsing treemap:",a),a}},"parse")},it=10,W=10,X=25,ot=C((t,a,l,n)=>{const s=n.db,r=s.getConfig(),h=r.padding??it,d=s.getDiagramTitle(),f=s.getRoot(),{themeVariables:o}=ae();if(!f)return;const u=d?30:0,S=we(a),i=r.nodeWidth?r.nodeWidth*W:960,v=r.nodeHeight?r.nodeHeight*W:500,x=i,g=v+u;S.attr("viewBox",`0 0 ${x} ${g}`),Te(S,g,x,r.useMaxWidth);let p;try{const e=r.valueFormat||",";if(e==="$0,0")p=C(c=>"$"+O(",")(c),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const c=/\.\d+/.exec(e),m=c?c[0]:"";p=C(w=>"$"+O(","+m)(w),"valueFormat")}else if(e.startsWith("$")){const c=e.substring(1);p=C(m=>"$"+O(c||"")(m),"valueFormat")}else p=O(e)}catch(e){te.error("Error creating format function:",e),p=O(",")}const b=Q().range(["transparent",o.cScale0,o.cScale1,o.cScale2,o.cScale3,o.cScale4,o.cScale5,o.cScale6,o.cScale7,o.cScale8,o.cScale9,o.cScale10,o.cScale11]),_=Q().range(["transparent",o.cScalePeer0,o.cScalePeer1,o.cScalePeer2,o.cScalePeer3,o.cScalePeer4,o.cScalePeer5,o.cScalePeer6,o.cScalePeer7,o.cScalePeer8,o.cScalePeer9,o.cScalePeer10,o.cScalePeer11]),$=Q().range([o.cScaleLabel0,o.cScaleLabel1,o.cScaleLabel2,o.cScaleLabel3,o.cScaleLabel4,o.cScaleLabel5,o.cScaleLabel6,o.cScaleLabel7,o.cScaleLabel8,o.cScaleLabel9,o.cScaleLabel10,o.cScaleLabel11]);d&&S.append("text").attr("x",x/2).attr("y",u/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(d);const z=S.append("g").attr("transform",`translate(0, ${u})`).attr("class","treemapContainer"),R=ne(f).sum(e=>e.value??0).sort((e,c)=>(c.value??0)-(e.value??0)),le=lt().size([i,v]).paddingTop(e=>e.children&&e.children.length>0?X+W:0).paddingInner(h).paddingLeft(e=>e.children&&e.children.length>0?W:0).paddingRight(e=>e.children&&e.children.length>0?W:0).paddingBottom(e=>e.children&&e.children.length>0?W:0).round(!0)(R),me=le.descendants().filter(e=>e.children&&e.children.length>0),H=z.selectAll(".treemapSection").data(me).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),H.append("clipPath").attr("id",(e,c)=>`clip-section-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,c)=>`treemapSection section${c}`).attr("fill",e=>b(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>_(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const c=B({cssCompiledStyles:e.data.cssCompiledStyles});return c.nodeStyles+";"+c.borderStyles.join(";")}),H.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,c)=>`url(#clip-section-${a}-${c})`).attr("style",e=>{if(e.depth===0)return"display: none;";const c="dominant-baseline: middle; font-size: 12px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const c=Z(this),m=e.data.name;c.text(m);const w=e.x1-e.x0,L=6;let T;r.showValues!==!1&&e.value?T=w-10-30-10-L:T=w-L-6;const y=Math.max(15,T),M=c.node();if(M.getComputedTextLength()>y){let V=m;for(;V.length>0;){if(V=m.substring(0,V.length-1),V.length===0){c.text("..."),M.getComputedTextLength()>y&&c.text("");break}if(c.text(V+"..."),M.getComputedTextLength()<=y)break}}}),r.showValues!==!1&&H.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const c="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")});const se=le.leaves(),A=se.length>20,ge=A?16:38,j=A?14:28,D=A?4:8,I=A?4:6,J=A?2:4,re=A?8:10,K=A?1:2,U=z.selectAll(".treemapLeafGroup").data(se).enter().append("g").attr("class",(e,c)=>`treemapNode treemapLeafGroup leaf${c}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);U.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("style",e=>B({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("stroke-width",3),U.append("clipPath").attr("id",(e,c)=>`clip-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),U.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const c=`text-anchor: middle; dominant-baseline: middle; font-size: ${ge}px;fill:`+$(e.data.name)+";",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,c)=>`url(#clip-${a}-${c})`).text(e=>e.data.name).each(function(e){const c=Z(this),m=e.x1-e.x0,w=e.y1-e.y0,L=c.node(),T=m-2*J,P=w-2*J;if(T<re||P<re){c.style("display","none");return}let y=parseInt(c.style("font-size"),10);const M=.6;for(;L.getComputedTextLength()>T&&y>D;)y--,c.style("font-size",`${y}px`);let F=Math.max(I,Math.min(j,Math.round(y*M))),k=y+K+F;for(;k>P&&y>D&&(y--,F=Math.max(I,Math.min(j,Math.round(y*M))),!(F<I&&y===D));)c.style("font-size",`${y}px`),k=y+K+F;c.style("font-size",`${y}px`),A?(y<D||P<D)&&c.style("display","none"):(L.getComputedTextLength()>T||y<D||P<y)&&c.style("display","none")}),r.showValues!==!1&&U.append("text").attr("class","treemapValue").attr("x",c=>(c.x1-c.x0)/2).attr("y",function(c){return(c.y1-c.y0)/2}).attr("style",c=>{const m=`text-anchor: middle; dominant-baseline: hanging; font-size: ${j}px;fill:`+$(c.data.name)+";",w=B({cssCompiledStyles:c.data.cssCompiledStyles});return m+w.labelStyles.replace("color:","fill:")}).attr("clip-path",(c,m)=>`url(#clip-${a}-${m})`).text(c=>c.value?p(c.value):"").each(function(c){const m=Z(this),w=this.parentNode;if(!w){m.style("display","none");return}const L=Z(w).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){m.style("display","none");return}const T=parseFloat(L.style("font-size")),y=Math.max(I,Math.min(j,Math.round(T*.6)));m.style("font-size",`${y}px`);const F=(c.y1-c.y0)/2+T/2+K;m.attr("y",F);const k=c.x1-c.x0,ie=c.y1-c.y0-4,ve=k-2*J;m.node().getComputedTextLength()>ve||F+y>ie||y<I?m.style("display","none"):m.style("display",null)});const ye=r.diagramPadding??8;xe(S,ye,"flowchart",r?.useMaxWidth||!1)},"draw"),ct=C(function(t,a){return a.db.getClasses()},"getClasses"),ht={draw:ot,getClasses:ct},dt={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ut=C(({treemap:t}={})=>{const a=Ce(),l=ae(),n=ee(a,l.themeVariables),s=ee(dt,t),r=s.titleColor??n.titleColor,h=s.labelColor??n.textColor,d=s.valueColor??n.textColor;return`
1
+ import{s as xe}from"./CxH_XgDD.js";import{p as be}from"./DI5kEG-f.js";import{b as C,a6 as Ce,W as ae,q as ee,aX as we,B as Te,ay as te,b8 as B,aW as Z,a_ as Le,V as $e,b0 as Ae,Y as Fe,U as _e,aZ as Ne,O as Me,ao as ke,r as Ve}from"./B-obUB2z.js";import{p as ze}from"./BuSLaAvw.js";import{f as O,o as Q}from"./BMeK3RDc.js";function De(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function Pe(){return this.eachAfter(De)}function Be(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function We(t,a){for(var l=this,n=[l],s,r,h=-1;l=n.pop();)if(t.call(a,l,++h,this),s=l.children)for(r=s.length-1;r>=0;--r)n.push(s[r]);return this}function Ee(t,a){for(var l=this,n=[l],s=[],r,h,d,f=-1;l=n.pop();)if(s.push(l),r=l.children)for(h=0,d=r.length;h<d;++h)n.push(r[h]);for(;l=s.pop();)t.call(a,l,++f,this);return this}function Re(t,a){let l=-1;for(const n of this)if(t.call(a,n,++l,this))return n}function He(t){return this.eachAfter(function(a){for(var l=+t(a.data)||0,n=a.children,s=n&&n.length;--s>=0;)l+=n[s].value;a.value=l})}function Ie(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function Oe(t){for(var a=this,l=qe(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var s=n.length;t!==l;)n.splice(s,0,t),t=t.parent;return n}function qe(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),s=null;for(t=l.pop(),a=n.pop();t===a;)s=t,t=l.pop(),a=n.pop();return s}function Ge(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function Xe(){return Array.from(this)}function Ye(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function je(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Ue(){var t=this,a,l=[t],n,s,r;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(s=0,r=n.length;s<r;++s)l.push(n[s]);while(l.length)}function ne(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=Ke)):a===void 0&&(a=Je);for(var l=new Y(t),n,s=[l],r,h,d,f;n=s.pop();)if((h=a(n.data))&&(f=(h=Array.from(h)).length))for(n.children=h,d=f-1;d>=0;--d)s.push(r=h[d]=new Y(h[d])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(et)}function Ze(){return ne(this).eachBefore(Qe)}function Je(t){return t.children}function Ke(t){return Array.isArray(t)?t[1]:null}function Qe(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function et(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function Y(t){this.data=t,this.depth=this.height=0,this.parent=null}Y.prototype=ne.prototype={constructor:Y,count:Pe,each:Be,eachAfter:Ee,eachBefore:We,find:Re,sum:He,sort:Ie,path:Oe,ancestors:Ge,descendants:Xe,leaves:Ye,links:je,copy:Ze,[Symbol.iterator]:Ue};function tt(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function G(t){return function(){return t}}function at(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function oe(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(n-a)/t.value;++d<f;)h=r[d],h.y0=l,h.y1=s,h.x0=a,h.x1=a+=h.value*o}Object.create(Y.prototype);function ce(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(s-l)/t.value;++d<f;)h=r[d],h.x0=a,h.x1=n,h.y0=l,h.y1=l+=h.value*o}var he=(1+Math.sqrt(5))/2;function de(t,a,l,n,s,r){for(var h=[],d=a.children,f,o,u=0,S=0,i=d.length,v,x,g=a.value,p,b,_,$,z,R,N;u<i;){v=s-l,x=r-n;do p=d[S++].value;while(!p&&S<i);for(b=_=p,R=Math.max(x/v,v/x)/(g*t),N=p*p*R,z=Math.max(_/N,N/b);S<i;++S){if(p+=o=d[S].value,o<b&&(b=o),o>_&&(_=o),N=p*p*R,$=Math.max(_/N,N/b),$>z){p-=o;break}z=$}h.push(f={value:p,dice:v<x,children:d.slice(u,S)}),f.dice?oe(f,l,n,s,g?n+=x*p/g:r):ce(f,l,n,g?l+=v*p/g:s,r),g-=p,u=S}return h}var nt=(function t(a){function l(n,s,r,h,d){de(a,n,s,r,h,d)}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);function lt(){var t=nt,a=!1,l=1,n=1,s=[0],r=q,h=q,d=q,f=q,o=q;function u(i){return i.x0=i.y0=0,i.x1=l,i.y1=n,i.eachBefore(S),s=[0],a&&i.eachBefore(at),i}function S(i){var v=s[i.depth],x=i.x0+v,g=i.y0+v,p=i.x1-v,b=i.y1-v;p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),i.x0=x,i.y0=g,i.x1=p,i.y1=b,i.children&&(v=s[i.depth+1]=r(i)/2,x+=o(i)-v,g+=h(i)-v,p-=d(i)-v,b-=f(i)-v,p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),t(i,x,g,p,b))}return u.round=function(i){return arguments.length?(a=!!i,u):a},u.size=function(i){return arguments.length?(l=+i[0],n=+i[1],u):[l,n]},u.tile=function(i){return arguments.length?(t=tt(i),u):t},u.padding=function(i){return arguments.length?u.paddingInner(i).paddingOuter(i):u.paddingInner()},u.paddingInner=function(i){return arguments.length?(r=typeof i=="function"?i:G(+i),u):r},u.paddingOuter=function(i){return arguments.length?u.paddingTop(i).paddingRight(i).paddingBottom(i).paddingLeft(i):u.paddingTop()},u.paddingTop=function(i){return arguments.length?(h=typeof i=="function"?i:G(+i),u):h},u.paddingRight=function(i){return arguments.length?(d=typeof i=="function"?i:G(+i),u):d},u.paddingBottom=function(i){return arguments.length?(f=typeof i=="function"?i:G(+i),u):f},u.paddingLeft=function(i){return arguments.length?(o=typeof i=="function"?i:G(+i),u):o},u}(function t(a){function l(n,s,r,h,d){if((f=n._squarify)&&f.ratio===a)for(var f,o,u,S,i=-1,v,x=f.length,g=n.value;++i<x;){for(o=f[i],u=o.children,S=o.value=0,v=u.length;S<v;++S)o.value+=u[S].value;o.dice?oe(o,s,r,h,g?r+=(d-r)*o.value/g:d):ce(o,s,r,g?s+=(h-s)*o.value/g:h,d),g-=o.value}else n._squarify=f=de(a,n,s,r,h,d),f.ratio=a}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);var E,ue=(E=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=Le,this.getAccTitle=$e,this.setDiagramTitle=Ae,this.getDiagramTitle=Fe,this.getAccDescription=_e,this.setAccDescription=Ne}getNodes(){return this.nodes}getConfig(){const a=Me,l=ae();return ee({...a.treemap,...l.treemap??{}})}addNode(a,l){this.nodes.push(a),this.levels.set(a,l),l===0&&(this.outerNodes.push(a),this.root??=a)}getRoot(){return{name:"",children:this.outerNodes}}addClass(a,l){const n=this.classes.get(a)??{id:a,styles:[],textStyles:[]},s=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");s&&s.forEach(r=>{ke(r)&&(n?.textStyles?n.textStyles.push(r):n.textStyles=[r]),n?.styles?n.styles.push(r):n.styles=[r]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){return this.classes.get(a)?.styles??[]}clear(){Ve(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},C(E,"TreeMapDB"),E);function pe(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const s={name:n.name,children:n.type==="Leaf"?void 0:[]};for(s.classSelector=n?.classSelector,n?.cssCompiledStyles&&(s.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(s.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(s);else{const r=l[l.length-1].node;r.children?r.children.push(s):r.children=[s]}n.type!=="Leaf"&&l.push({node:s,level:n.level})}),a}C(pe,"buildHierarchy");var st=C((t,a)=>{be(t,a);const l=[];for(const r of t.TreemapRows??[])r.$type==="ClassDefStatement"&&a.addClass(r.className??"",r.styleText??"");for(const r of t.TreemapRows??[]){const h=r.item;if(!h)continue;const d=r.indent?parseInt(r.indent):0,f=rt(h),o=h.classSelector?a.getStylesForClass(h.classSelector):[],u=o.length>0?o:void 0,S={level:d,name:f,type:h.$type,value:h.value,classSelector:h.classSelector,cssCompiledStyles:u};l.push(S)}const n=pe(l),s=C((r,h)=>{for(const d of r)a.addNode(d,h),d.children&&d.children.length>0&&s(d.children,h+1)},"addNodesRecursively");s(n,0)},"populate"),rt=C(t=>t.name?String(t.name):"","getItemName"),fe={parser:{yy:void 0},parse:C(async t=>{try{const l=await ze("treemap",t);te.debug("Treemap AST:",l);const n=fe.parser?.yy;if(!(n instanceof ue))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");st(l,n)}catch(a){throw te.error("Error parsing treemap:",a),a}},"parse")},it=10,W=10,X=25,ot=C((t,a,l,n)=>{const s=n.db,r=s.getConfig(),h=r.padding??it,d=s.getDiagramTitle(),f=s.getRoot(),{themeVariables:o}=ae();if(!f)return;const u=d?30:0,S=we(a),i=r.nodeWidth?r.nodeWidth*W:960,v=r.nodeHeight?r.nodeHeight*W:500,x=i,g=v+u;S.attr("viewBox",`0 0 ${x} ${g}`),Te(S,g,x,r.useMaxWidth);let p;try{const e=r.valueFormat||",";if(e==="$0,0")p=C(c=>"$"+O(",")(c),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const c=/\.\d+/.exec(e),m=c?c[0]:"";p=C(w=>"$"+O(","+m)(w),"valueFormat")}else if(e.startsWith("$")){const c=e.substring(1);p=C(m=>"$"+O(c||"")(m),"valueFormat")}else p=O(e)}catch(e){te.error("Error creating format function:",e),p=O(",")}const b=Q().range(["transparent",o.cScale0,o.cScale1,o.cScale2,o.cScale3,o.cScale4,o.cScale5,o.cScale6,o.cScale7,o.cScale8,o.cScale9,o.cScale10,o.cScale11]),_=Q().range(["transparent",o.cScalePeer0,o.cScalePeer1,o.cScalePeer2,o.cScalePeer3,o.cScalePeer4,o.cScalePeer5,o.cScalePeer6,o.cScalePeer7,o.cScalePeer8,o.cScalePeer9,o.cScalePeer10,o.cScalePeer11]),$=Q().range([o.cScaleLabel0,o.cScaleLabel1,o.cScaleLabel2,o.cScaleLabel3,o.cScaleLabel4,o.cScaleLabel5,o.cScaleLabel6,o.cScaleLabel7,o.cScaleLabel8,o.cScaleLabel9,o.cScaleLabel10,o.cScaleLabel11]);d&&S.append("text").attr("x",x/2).attr("y",u/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(d);const z=S.append("g").attr("transform",`translate(0, ${u})`).attr("class","treemapContainer"),R=ne(f).sum(e=>e.value??0).sort((e,c)=>(c.value??0)-(e.value??0)),le=lt().size([i,v]).paddingTop(e=>e.children&&e.children.length>0?X+W:0).paddingInner(h).paddingLeft(e=>e.children&&e.children.length>0?W:0).paddingRight(e=>e.children&&e.children.length>0?W:0).paddingBottom(e=>e.children&&e.children.length>0?W:0).round(!0)(R),me=le.descendants().filter(e=>e.children&&e.children.length>0),H=z.selectAll(".treemapSection").data(me).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),H.append("clipPath").attr("id",(e,c)=>`clip-section-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,c)=>`treemapSection section${c}`).attr("fill",e=>b(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>_(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const c=B({cssCompiledStyles:e.data.cssCompiledStyles});return c.nodeStyles+";"+c.borderStyles.join(";")}),H.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,c)=>`url(#clip-section-${a}-${c})`).attr("style",e=>{if(e.depth===0)return"display: none;";const c="dominant-baseline: middle; font-size: 12px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const c=Z(this),m=e.data.name;c.text(m);const w=e.x1-e.x0,L=6;let T;r.showValues!==!1&&e.value?T=w-10-30-10-L:T=w-L-6;const y=Math.max(15,T),M=c.node();if(M.getComputedTextLength()>y){let V=m;for(;V.length>0;){if(V=m.substring(0,V.length-1),V.length===0){c.text("..."),M.getComputedTextLength()>y&&c.text("");break}if(c.text(V+"..."),M.getComputedTextLength()<=y)break}}}),r.showValues!==!1&&H.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const c="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")});const se=le.leaves(),A=se.length>20,ge=A?16:38,j=A?14:28,D=A?4:8,I=A?4:6,J=A?2:4,re=A?8:10,K=A?1:2,U=z.selectAll(".treemapLeafGroup").data(se).enter().append("g").attr("class",(e,c)=>`treemapNode treemapLeafGroup leaf${c}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);U.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("style",e=>B({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("stroke-width",3),U.append("clipPath").attr("id",(e,c)=>`clip-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),U.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const c=`text-anchor: middle; dominant-baseline: middle; font-size: ${ge}px;fill:`+$(e.data.name)+";",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,c)=>`url(#clip-${a}-${c})`).text(e=>e.data.name).each(function(e){const c=Z(this),m=e.x1-e.x0,w=e.y1-e.y0,L=c.node(),T=m-2*J,P=w-2*J;if(T<re||P<re){c.style("display","none");return}let y=parseInt(c.style("font-size"),10);const M=.6;for(;L.getComputedTextLength()>T&&y>D;)y--,c.style("font-size",`${y}px`);let F=Math.max(I,Math.min(j,Math.round(y*M))),k=y+K+F;for(;k>P&&y>D&&(y--,F=Math.max(I,Math.min(j,Math.round(y*M))),!(F<I&&y===D));)c.style("font-size",`${y}px`),k=y+K+F;c.style("font-size",`${y}px`),A?(y<D||P<D)&&c.style("display","none"):(L.getComputedTextLength()>T||y<D||P<y)&&c.style("display","none")}),r.showValues!==!1&&U.append("text").attr("class","treemapValue").attr("x",c=>(c.x1-c.x0)/2).attr("y",function(c){return(c.y1-c.y0)/2}).attr("style",c=>{const m=`text-anchor: middle; dominant-baseline: hanging; font-size: ${j}px;fill:`+$(c.data.name)+";",w=B({cssCompiledStyles:c.data.cssCompiledStyles});return m+w.labelStyles.replace("color:","fill:")}).attr("clip-path",(c,m)=>`url(#clip-${a}-${m})`).text(c=>c.value?p(c.value):"").each(function(c){const m=Z(this),w=this.parentNode;if(!w){m.style("display","none");return}const L=Z(w).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){m.style("display","none");return}const T=parseFloat(L.style("font-size")),y=Math.max(I,Math.min(j,Math.round(T*.6)));m.style("font-size",`${y}px`);const F=(c.y1-c.y0)/2+T/2+K;m.attr("y",F);const k=c.x1-c.x0,ie=c.y1-c.y0-4,ve=k-2*J;m.node().getComputedTextLength()>ve||F+y>ie||y<I?m.style("display","none"):m.style("display",null)});const ye=r.diagramPadding??8;xe(S,ye,"flowchart",r?.useMaxWidth||!1)},"draw"),ct=C(function(t,a){return a.db.getClasses()},"getClasses"),ht={draw:ot,getClasses:ct},dt={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ut=C(({treemap:t}={})=>{const a=Ce(),l=ae(),n=ee(a,l.themeVariables),s=ee(dt,t),r=s.titleColor??n.titleColor,h=s.labelColor??n.textColor,d=s.valueColor??n.textColor;return`
2
2
  .treemapNode.section {
3
3
  stroke: ${s.sectionStrokeColor};
4
4
  stroke-width: ${s.sectionStrokeWidth};
@@ -1 +1 @@
1
- import{t as le,bq as u,a_ as D,by as ce,b as de}from"./eK7OULll.js";import{bs as ve,ca as fe,aD as e,a5 as H,bS as ue,bA as L,bH as K,b_ as S,W as T,bn as ge,bV as P,c9 as x,aA as g,a7 as me,ay as he,bl as pe,bO as be,aB as F}from"./DYhIMPy1.js";import{k as X,s as c,h as _e,l as R}from"./DZtstCLQ.js";import{s as ke}from"./p5gLe3PS.js";import{b as we}from"./BaIAhI85.js";import{t as j}from"./DYfBNrOV.js";import{A as xe}from"./D2zJp5fS.js";import{y as ye}from"./BdWpSBC4.js";function We(y){const{itemCount:a,maxVisible:d,availableWidth:r,surface:s,overlap:b,overflowOverlap:v}=y;if(r<=0)return 0;const _=s-b,m=Math.min(a,Math.max(0,d)),I=i=>i===0?0:s+(i-1)*_;if(a<=m&&I(a)<=r)return a;for(let i=m;i>=0;i-=1){const A=a-i;if(I(i)+(A>0?y.measureOverflowText(A)-(i>0?v:0):0)<=r)return i}return 0}function Ie(y,a=r=>requestAnimationFrame(r),d=r=>cancelAnimationFrame(r)){let r,s;return{set(b){if(r=b,s!==void 0)return;let v=!1;const _=a(()=>{v=!0,s=void 0;const m=r;r=void 0,y(m)});v||(s=_)},cancel(){s!==void 0&&(d(s),s=void 0),r=void 0}}}const Ae=20,Ce=12;let O,J;const Q=new Map;var Te=F('<span data-agent-avatar-stack-item=""><!></span>'),Oe=F('<span class="agent-avatar-stack-track svelte-1nk9fhe"></span>'),Ve=F('<span class="agent-avatar-stack-overflow svelte-1nk9fhe" data-agent-avatar-overflow=""> </span>'),Me=F('<span data-agent-avatar-stack="" data-agent-avatar-stack-overlap="later-on-top"><!> <!></span>');function Se(y,a){if(new.target)return le({component:Se,...y});ve(a,!0);let d=u(a,"items",7),r=u(a,"maxVisible",7,3),s=u(a,"adaptive",7,!1),b=u(a,"align",7,"end"),v=u(a,"variant",7,"card-stack"),_=u(a,"interactive",7,!1),m=u(a,"overflowId",7),I=u(a,"overflowTestId",7),i=u(a,"itemContent",7),A=u(a,"class",7,""),W=P(void 0),z=P(void 0);const h=x(()=>ye[v()]),U=x(()=>s()&&e(z)!==void 0?We({itemCount:d().length,maxVisible:r(),availableWidth:e(z),surface:e(h).surface,overlap:e(h).overlap,overflowOverlap:e(h).overlap,measureOverflowText:t=>Math.max(e(h).surface,$(t)+Ce)}):void 0),Y=x(()=>Math.min(d().length,Math.max(0,s()?e(U)??r():r()))),k=x(()=>d().slice(0,e(Y))),E=x(()=>Math.max(0,d().length-e(k).length)),q=x(()=>e(h).surface-e(h).overlap),Z=x(()=>e(k).length===0?0:e(h).surface+(e(k).length-1)*e(q));function $(t){const n=`+${j(t)}`,o=Q.get(n);if(o!==void 0)return o;if(O===void 0&&(O=document.createElement("canvas").getContext("2d")),!O||!e(W))return Ae;J??=`500 12px ${getComputedStyle(e(W)).fontFamily}`,O.font=J;const l=O.measureText(n).width;return Q.set(n,l),l}fe(()=>{if(!s()||!e(W)||typeof ResizeObserver>"u")return;const t=Ie(o=>{K(z,o,!0)}),n=new ResizeObserver(o=>{const l=o[o.length-1];t.set(l.borderBoxSize?.[0]?.inlineSize??l.contentRect.width)});return n.observe(e(W)),()=>{n.disconnect(),t.cancel()}});var ee={get items(){return d()},set items(t){d(t),g()},get maxVisible(){return r()},set maxVisible(t=3){r(t),g()},get adaptive(){return s()},set adaptive(t=!1){s(t),g()},get align(){return b()},set align(t="end"){b(t),g()},get variant(){return v()},set variant(t="card-stack"){v(t),g()},get interactive(){return _()},set interactive(t=!1){_(t),g()},get overflowId(){return m()},set overflowId(t){m(t),g()},get overflowTestId(){return I()},set overflowTestId(t){I(t),g()},get itemContent(){return i()},set itemContent(t){i(t),g()},get class(){return A()},set class(t=""){A(t),g()},$set:ce,$on:(t,n)=>de(a,t,n)},p=Me();let N;var B=H(p);{var te=t=>{var n=Oe();let o;_e(n,23,()=>e(k),l=>l.key,(l,w,V)=>{var f=Te();let G;var re=H(f);{var se=C=>{var M=me(),oe=he(M);ke(oe,i,()=>e(w)),T(C,M)},ie=C=>{{let M=x(()=>e(w).state??"idle");xe(C,{get agentId(){return e(w).agentId},get specialist(){return e(w).specialist},get icon(){return e(w).icon},get state(){return e(M)},get variant(){return v()},class:"agent-avatar-stack-surface"})}};D(re,C=>{i()?C(se):C(ie,-1)})}L(f),S(()=>{G=X(f,1,"agent-avatar-stack-item svelte-1nk9fhe",null,G,{"agent-avatar-stack-item--before-overflow":e(E)>0&&e(V)===e(k).length-1}),R(f,`inset-inline-start: ${e(V)*e(q)}px; z-index: ${e(V)+1};`),c(f,"data-agent-avatar-stack-index",e(V)),c(f,"data-agent-avatar-stack-key",e(w).key),c(f,"data-agent-avatar-stack-agent-id",e(w).agentId),c(f,"data-agent-avatar-stack-specialist",e(w).specialist??void 0),c(f,"aria-hidden",_()?void 0:"true")}),T(l,f)}),L(n),S(()=>o=R(n,"",o,{width:`${e(Z)}px`})),T(t,n)};D(B,t=>{e(k).length>0&&t(te)})}var ae=ue(B,2);{var ne=t=>{var n=Ve(),o=pe(n);S(l=>{c(n,"id",m()),R(n,`margin-inline-start: ${e(k).length>0?-e(h).overlap:0}px; z-index: ${e(k).length+1};`),c(n,"data-testid",I()),be(o,`+${l??""}`)},[()=>j(e(E))]),T(t,n)};D(ae,t=>{e(E)>0&&t(ne)})}return L(p),we(p,t=>K(W,t),()=>e(W)),S(()=>{N=X(p,1,`agent-avatar-stack ${A()??""}`,"svelte-1nk9fhe",N,{"agent-avatar-stack--adaptive":s(),"agent-avatar-stack--start":b()==="start"}),c(p,"data-agent-avatar-stack-align",b()),c(p,"data-avatar-variant",v()),c(p,"data-agent-avatar-stack-clear-space",e(h).ring),c(p,"aria-hidden",!_()&&!m()?"true":void 0)}),T(y,p),ge(ee)}export{Se as A};
1
+ import{t as le,bq as u,a_ as D,by as ce,b as de}from"./BLK9_MXJ.js";import{bs as ve,ca as fe,aD as e,a5 as H,bS as ue,bA as L,bH as K,b_ as S,W as T,bn as ge,bV as P,c9 as x,aA as g,a7 as me,ay as he,bl as pe,bO as be,aB as F}from"./DYhIMPy1.js";import{k as X,s as c,h as _e,l as R}from"./9ZBkr0Qf.js";import{s as ke}from"./DSemZQdl.js";import{b as we}from"./BaIAhI85.js";import{t as j}from"./CFpa0qKK.js";import{A as xe}from"./BKGDTzxi.js";import{y as ye}from"./Jyvn4VFV.js";function We(y){const{itemCount:a,maxVisible:d,availableWidth:r,surface:s,overlap:b,overflowOverlap:v}=y;if(r<=0)return 0;const _=s-b,m=Math.min(a,Math.max(0,d)),I=i=>i===0?0:s+(i-1)*_;if(a<=m&&I(a)<=r)return a;for(let i=m;i>=0;i-=1){const A=a-i;if(I(i)+(A>0?y.measureOverflowText(A)-(i>0?v:0):0)<=r)return i}return 0}function Ie(y,a=r=>requestAnimationFrame(r),d=r=>cancelAnimationFrame(r)){let r,s;return{set(b){if(r=b,s!==void 0)return;let v=!1;const _=a(()=>{v=!0,s=void 0;const m=r;r=void 0,y(m)});v||(s=_)},cancel(){s!==void 0&&(d(s),s=void 0),r=void 0}}}const Ae=20,Ce=12;let O,J;const Q=new Map;var Te=F('<span data-agent-avatar-stack-item=""><!></span>'),Oe=F('<span class="agent-avatar-stack-track svelte-1nk9fhe"></span>'),Ve=F('<span class="agent-avatar-stack-overflow svelte-1nk9fhe" data-agent-avatar-overflow=""> </span>'),Me=F('<span data-agent-avatar-stack="" data-agent-avatar-stack-overlap="later-on-top"><!> <!></span>');function Se(y,a){if(new.target)return le({component:Se,...y});ve(a,!0);let d=u(a,"items",7),r=u(a,"maxVisible",7,3),s=u(a,"adaptive",7,!1),b=u(a,"align",7,"end"),v=u(a,"variant",7,"card-stack"),_=u(a,"interactive",7,!1),m=u(a,"overflowId",7),I=u(a,"overflowTestId",7),i=u(a,"itemContent",7),A=u(a,"class",7,""),W=P(void 0),z=P(void 0);const h=x(()=>ye[v()]),U=x(()=>s()&&e(z)!==void 0?We({itemCount:d().length,maxVisible:r(),availableWidth:e(z),surface:e(h).surface,overlap:e(h).overlap,overflowOverlap:e(h).overlap,measureOverflowText:t=>Math.max(e(h).surface,$(t)+Ce)}):void 0),Y=x(()=>Math.min(d().length,Math.max(0,s()?e(U)??r():r()))),k=x(()=>d().slice(0,e(Y))),E=x(()=>Math.max(0,d().length-e(k).length)),q=x(()=>e(h).surface-e(h).overlap),Z=x(()=>e(k).length===0?0:e(h).surface+(e(k).length-1)*e(q));function $(t){const n=`+${j(t)}`,o=Q.get(n);if(o!==void 0)return o;if(O===void 0&&(O=document.createElement("canvas").getContext("2d")),!O||!e(W))return Ae;J??=`500 12px ${getComputedStyle(e(W)).fontFamily}`,O.font=J;const l=O.measureText(n).width;return Q.set(n,l),l}fe(()=>{if(!s()||!e(W)||typeof ResizeObserver>"u")return;const t=Ie(o=>{K(z,o,!0)}),n=new ResizeObserver(o=>{const l=o[o.length-1];t.set(l.borderBoxSize?.[0]?.inlineSize??l.contentRect.width)});return n.observe(e(W)),()=>{n.disconnect(),t.cancel()}});var ee={get items(){return d()},set items(t){d(t),g()},get maxVisible(){return r()},set maxVisible(t=3){r(t),g()},get adaptive(){return s()},set adaptive(t=!1){s(t),g()},get align(){return b()},set align(t="end"){b(t),g()},get variant(){return v()},set variant(t="card-stack"){v(t),g()},get interactive(){return _()},set interactive(t=!1){_(t),g()},get overflowId(){return m()},set overflowId(t){m(t),g()},get overflowTestId(){return I()},set overflowTestId(t){I(t),g()},get itemContent(){return i()},set itemContent(t){i(t),g()},get class(){return A()},set class(t=""){A(t),g()},$set:ce,$on:(t,n)=>de(a,t,n)},p=Me();let N;var B=H(p);{var te=t=>{var n=Oe();let o;_e(n,23,()=>e(k),l=>l.key,(l,w,V)=>{var f=Te();let G;var re=H(f);{var se=C=>{var M=me(),oe=he(M);ke(oe,i,()=>e(w)),T(C,M)},ie=C=>{{let M=x(()=>e(w).state??"idle");xe(C,{get agentId(){return e(w).agentId},get specialist(){return e(w).specialist},get icon(){return e(w).icon},get state(){return e(M)},get variant(){return v()},class:"agent-avatar-stack-surface"})}};D(re,C=>{i()?C(se):C(ie,-1)})}L(f),S(()=>{G=X(f,1,"agent-avatar-stack-item svelte-1nk9fhe",null,G,{"agent-avatar-stack-item--before-overflow":e(E)>0&&e(V)===e(k).length-1}),R(f,`inset-inline-start: ${e(V)*e(q)}px; z-index: ${e(V)+1};`),c(f,"data-agent-avatar-stack-index",e(V)),c(f,"data-agent-avatar-stack-key",e(w).key),c(f,"data-agent-avatar-stack-agent-id",e(w).agentId),c(f,"data-agent-avatar-stack-specialist",e(w).specialist??void 0),c(f,"aria-hidden",_()?void 0:"true")}),T(l,f)}),L(n),S(()=>o=R(n,"",o,{width:`${e(Z)}px`})),T(t,n)};D(B,t=>{e(k).length>0&&t(te)})}var ae=ue(B,2);{var ne=t=>{var n=Ve(),o=pe(n);S(l=>{c(n,"id",m()),R(n,`margin-inline-start: ${e(k).length>0?-e(h).overlap:0}px; z-index: ${e(k).length+1};`),c(n,"data-testid",I()),be(o,`+${l??""}`)},[()=>j(e(E))]),T(t,n)};D(ae,t=>{e(E)>0&&t(ne)})}return L(p),we(p,t=>K(W,t),()=>e(W)),S(()=>{N=X(p,1,`agent-avatar-stack ${A()??""}`,"svelte-1nk9fhe",N,{"agent-avatar-stack--adaptive":s(),"agent-avatar-stack--start":b()==="start"}),c(p,"data-agent-avatar-stack-align",b()),c(p,"data-avatar-variant",v()),c(p,"data-agent-avatar-stack-clear-space",e(h).ring),c(p,"aria-hidden",!_()&&!m()?"true":void 0)}),T(y,p),ge(ee)}export{Se as A};
@@ -1 +1 @@
1
- import{n as t}from"./-x_SoK5J.js";import"./DYhIMPy1.js";import{bo as n}from"./eK7OULll.js";import"./DZtstCLQ.js";import"./p5gLe3PS.js";import"./CVjlpAWj.js";import"./ChTqQfQN.js";import"./dmSYAakE.js";import"./Bo4s1kgI.js";function L(e){try{const r=new URL(e).hostname.toLowerCase();return r==="daemon.localhost"||r==="client.localhost"}catch{return!1}}const s="browser:resolve-url";function a(e){return typeof e=="object"&&e!==null&&typeof e.url=="string"&&typeof e.rewritten=="boolean"}async function l(e,r){const o={url:e,rewritten:!1};if(!r)return o;try{const i=await r(s,{url:e});return a(i)?i:o}catch{return o}}async function g(e,r){if(!r)return e;try{const o=await r(s,{url:e,mode:"rewrite-only"});return a(o)?o.url:e}catch{return e}}async function c(e){const r=await l(e,typeof window<"u"?window.electronAPI?.invoke:void 0);return r.error&&r.rewritten?r.forbidden?t.error(n.browser_linkOpen_ownerOnlyForward_error()):t.error(n.browser_embedded_resolveFailed_error(),{description:r.error}):r.warning&&t.warning(n.browser_linkOpen_loopbackAmbiguity_warning(),{description:r.warning}),{url:r.url,...r.rewritten&&r.requestedUrl!==void 0?{requestedUrl:r.requestedUrl}:{}}}const h=Object.freeze(Object.defineProperty({__proto__:null,resolveBrowserLinkForOpen:c},Symbol.toStringTag,{value:"Module"}));export{l as a,h as b,g as c,L as i,c as r};
1
+ import{n as t}from"./B6l2HPmZ.js";import"./DYhIMPy1.js";import{bo as n}from"./BLK9_MXJ.js";import"./9ZBkr0Qf.js";import"./DSemZQdl.js";import"./CukTrqVi.js";import"./ChTqQfQN.js";import"./DNmwPq0o.js";import"./DSAz0okZ.js";function L(e){try{const r=new URL(e).hostname.toLowerCase();return r==="daemon.localhost"||r==="client.localhost"}catch{return!1}}const s="browser:resolve-url";function a(e){return typeof e=="object"&&e!==null&&typeof e.url=="string"&&typeof e.rewritten=="boolean"}async function l(e,r){const o={url:e,rewritten:!1};if(!r)return o;try{const i=await r(s,{url:e});return a(i)?i:o}catch{return o}}async function g(e,r){if(!r)return e;try{const o=await r(s,{url:e,mode:"rewrite-only"});return a(o)?o.url:e}catch{return e}}async function c(e){const r=await l(e,typeof window<"u"?window.electronAPI?.invoke:void 0);return r.error&&r.rewritten?r.forbidden?t.error(n.browser_linkOpen_ownerOnlyForward_error()):t.error(n.browser_embedded_resolveFailed_error(),{description:r.error}):r.warning&&t.warning(n.browser_linkOpen_loopbackAmbiguity_warning(),{description:r.warning}),{url:r.url,...r.rewritten&&r.requestedUrl!==void 0?{requestedUrl:r.requestedUrl}:{}}}const h=Object.freeze(Object.defineProperty({__proto__:null,resolveBrowserLinkForOpen:c},Symbol.toStringTag,{value:"Module"}));export{l as a,h as b,g as c,L as i,c as r};
@@ -1,4 +1,4 @@
1
- import{HD as V,HR as r,rj as Re,nl as p,AA as Oe,xo as A,q6 as Le,nk as v,Au as Ne,g as Q,qV as Y,Av as G,c as De,n7 as z,A as Te,r1 as E,hf as Be,D as xe}from"./Bo4s1kgI.js";import{k as He}from"./BlOn95cv.js";import{l as Fe,s as We}from"./BXean12D.js";import{b$ as w,cB as je,c8 as y,bY as I,cs as C,cK as J,cJ as qe,cA as Ke,bZ as $e,bt as Ue,l as Ve,F as Qe,dO as Ye,dy as X,aw as Ge,cj as ze,dm as Z,cH as Je,cI as Xe,cM as Ze}from"./C-RJDuZ9.js";import{P as et,c as tt}from"./BvFAWM27.js";import{bo as f}from"./eK7OULll.js";import{t as ot}from"./DYfBNrOV.js";import{p as nt}from"./DZtstCLQ.js";import{p as rt}from"./dmSYAakE.js";import{q as st,u as ct}from"./NeHKo0ZG.js";function at(e,t,o){if(!e||!o?.length)return null;const n=new Set(o);if(t!==null&&!n.has(t))return null;const s=e.lastIndexOf("/"),c=s>=0?e.slice(s+1):"",a=n.has(c)?e.slice(0,s):e;return t===null?a:`${a}/${t}`}const it={major:5,minor:2};function lt(e){const{major:t,minor:o}=it;return He(e,t,o)}function L(e,t,o){const n=V(e);return n.providerId&&o(n.providerId)===t?n.modelId:e}function O(e,t){const o=t(e);if(o)return o;const n=/\/(minimal|low|medium|high|xhigh|max|ultra|none)$/i.exec(e);if(!n||n.index===0)return;const s=t(e.slice(0,n.index)),c=n[1].toLowerCase();return s?`${s} (${c.charAt(0).toUpperCase()}${c.slice(1)})`:void 0}function dt(e,t){return JSON.stringify([t||null,e])}const ut=r.createSelector((e,t)=>(t?e.providerModels?.byWorkspaceId?.[t]:e.providerModels?.byProviderId)??{}),_o=r.createSelector((e,t,o)=>ut.select(e,o)[t]),Ro=r.createSelector(e=>e.providerModels?.clearEpoch??0),Oo=r.createSelector((e,t)=>(t?e.providerModels?.requestsByWorkspaceId?.[t]?.map:e.providerModels?.requests?.map)??{}),ft=r.createSelector(e=>Object.fromEntries(Object.values(e.providerModels?.observers?.map??{}).flatMap(({providerIds:t,workspaceId:o})=>t.map(n=>[dt(n,o),{providerId:n,workspaceId:o}])))),Lo=r.createSelector(e=>Object.keys(ft.select(e)).sort()),pt=r.createSelector((e,t,o)=>Re(e.providerModels?.learnedNames??{},t,o)),No=r.createSelector(e=>e.providerModels.learnedNames),mt={auggie:"auggie",claudeCode:"claude-code",codex:"codex",mock:"mock",opencode:"opencode",pi:"pi",cortex:"cortex",droid:"droid",grok:"grok",unsloth:"unsloth",antigravity:"antigravity",cursor:"cursor"},gt=new Map(Object.entries(mt).map(([e,t])=>[t,e]));function bt(e,t){const o=gt.get(t);return o===void 0?void 0:e?.providers[o]}function Do(e,t){const o=bt(e,t);return o?.available===!0&&ee(t,o.authenticated)}const To=new Set(["claude-code"]);function ee(e,t){return t!==!1}const te=r.createSelector(e=>e.agentAvailability.providerStatusMap),Bo=r.createSelector(e=>e.agentAvailability.providerLoadingMap),xo=r.createSelector(e=>e.agentAvailability.providerCheckEpochMap),vt=r.createSelector(e=>e.agentAvailability.hasCheckedOnce),Ho=r.createSelector(e=>Object.values(e.agentAvailability.providerLoadingMap).some(t=>t)),Fo=r.createSelector(e=>e.agentAvailability.npxStatus),Wo=r.createSelector(e=>e.agentAvailability.hiddenProviders),jo=r.createSelector(e=>e.agentAvailability.discoveryError),qo=r.createSelector(e=>e.agentAvailability.discoveryRevision),Ko=r.createSelector(e=>e.agentAvailability.refreshModelsPending),$o=r.createSelector(e=>e.agentAvailability.refreshModelsRevision),Uo=r.createSelector(e=>e.sidebarNav?.onboardingActive&&e.userPreferences.providerSetupHydratedBackendId===e.connections.windowBackendId&&!e.userPreferences.hasCompletedProviderSetup&&w.select(e)==="owner"?je.select(e):null),Vo=r.createSelector((e,t)=>p(e.providerSettings.requests).filter(o=>o.sessionId===t)),Qo=r.createSelector((e,t)=>e.providerSettings.sessions.includes(t)),Yo=r.createSelector((e,t)=>e.providerSettings.writeRevisions?.[t]??0),Go=r.createSelector(e=>e.providerSettings.paths),zo=r.createSelector(e=>e.providerSettings.pathsRevision),M=r.createSelector(e=>y.select(e)?I.select(e)?.defaultProviderId??"":e.model.defaultProviderId);r.createSelector((e,t)=>M.select(e)===t);const St=r.createSelector(e=>y.select(e)?Object.fromEntries((I.select(e)?.enabledProviderIds??[]).map(t=>[t,!0])):e.providerSettings.enabledProviders),oe=r.createSelector((e,t)=>{if(y.select(e))return I.select(e)?.enabledProviderIds?.includes(t)===!0;const o=e.providerSettings.nonDisableableProviderIds??[];return Oe(e.providerSettings.enabledProviders,t,{canBeDisabled:!o.includes(t)})}),ne=r.createSelector(e=>{if(y.select(e))return I.select(e)?.enabledProviderIds??[];const t=e.providerSettings.enabledProviders,o=e.providerCatalog?p(e.providerCatalog.providers):[],n=new Set(o.filter(a=>oe.select(e,a.id)).map(a=>a.id)),s=M.select(e),c=A(s);c&&t[c]!==!1&&n.add(c);for(const[a,i]of Object.entries(t))i&&n.add(a);return[...n]});function ht(e,t){const o=J.select(e,t);return y.select(e)?o?.visible!==!0:!!(o?.requiresEnvVar||o?.requiresFeatureCode)}const _=r.createSelector(e=>{const t=te.select(e);return ne.select(e).filter(o=>!ht(e,o)&&t[o]?.available===!0)}),Jo=r.createSelector((e,t)=>{const o=te.select(e),n=C.select(e,t);return _.select(e).filter(s=>C.select(e,s)!==n&&oe.select(e,s)&&ee(s,o[s]?.authenticated))}),Xo=r.createSelector(e=>vt.select(e)?_.select(e):ne.select(e)),Zo=r.createSelector(e=>{const t=A(M.select(e));return _.select(e).includes(t)}),en=r.createSelector(e=>e.providerSettings.fastMode),tn=r.createSelector(e=>{const t=e.providerSettings.fastMode,o={...t?.confirmed};for(const[n,s]of Object.entries(t?.pending??{}))o[n]=s.enabled;return o}),on=r.createSelector(e=>Object.values(g(e).defaults).some(t=>t.remoteLaunch!==void 0)),nn=r.createSelector(e=>e.providerSettings.fastMode?.supported?["claude-code","codex"].filter(t=>J.select(e,t)?.supportsFastMode===!0):[]),g=e=>e.providerSettings?.profiles??Le,rn=r.createSelector(e=>qe.select(e).filter(t=>t.supportsProfiles===!0).map(t=>t.id)),sn=r.createSelector((e,t)=>p(g(e).items).filter(o=>o.baseProviderId===t)),cn=r.createSelector(e=>[...new Set(p(g(e).items).map(t=>t.baseProviderId))]),an=r.createSelector(e=>g(e).defaults),ln=r.createSelector((e,t)=>g(e).defaults[t]),dn=r.createSelector((e,t)=>v(g(e).items,t)),un=r.createSelector(e=>g(e).revision),fn=r.createSelector(e=>g(e).loadStatus),pn=r.createSelector(e=>g(e).status),mn=r.createSelector(e=>g(e).activation),gn=r.createSelector(e=>Object.fromEntries(p(g(e).mutations).map(t=>[t.id,t]))),Pt={},bn=r.createSelector(e=>g(e).identity??Pt),yt={},vn=r.createSelector(e=>g(e).setups??yt),Sn=r.createSelector(e=>(e.providerSettings?.sessions.length??0)>0),hn=r.createSelector(e=>e.model),Pn=r.createSelector(e=>{const t=Ke.select(e),o=w.select(e);if(!t||o!=="owner"&&o!=="member")return null;const n=M.select(e);return o==="member"&&!n?null:JSON.stringify([t,n,o==="member"?$e.select(e):null])});function re(e,t){return t??M.select(e)}const x=r.createSelector((e,t)=>{const o=re(e,t),n=e.model.availableModelsProviderId===o?p(e.model.availableModels):[],s=I.select(e),c=y.select(e)?s?.defaultProviderId===o?s.defaultModelId:null:e.model.providerModels[o];return c||(_.select(e).includes(o)?Ne(n):"")}),Mt=r.createSelector((e,t)=>x.select(e,t)!==""),yn=r.createSelector(e=>M.select(e)!==""||Mt.select(e)),Ct=r.createSelector(e=>e.model.availableModels),Mn=r.createSelector(e=>p(Ct.select(e))),Cn=r.createSelector(e=>e.model.availableModelsProviderId),se=r.createSelector((e,t)=>{const o=re(e,t);return e.model.loadingState[o]??null}),In=r.createSelector((e,t)=>se.select(e,t)?.status==="loading"),kn=r.createSelector((e,t)=>{const o=se.select(e,t);return o?.status!=="error"?null:o.error??null}),An=r.createSelector(e=>{const t={};for(const[o,n]of Object.entries(e.model.loadingState))n.warning&&(t[o]=n.warning);return t}),En=r.createSelector(e=>{const t={};for(const[o,n]of Object.entries(e.model.loadingState))n.stale&&(t[o]=!0);return t}),wn=r.createSelector(e=>{const t={};for(const[o,n]of Object.entries(e.model.loadingState))n.warning&&n.warningKind&&(t[o]=n.warningKind);return t}),_n=r.createSelector(e=>e.model.providerModels),Rn=r.createSelector(e=>e.model.defaultReasoningEffort),On=r.createSelector(e=>e.model.modelPickerCollapsedGroups),Ln=r.createSelector((e,t)=>e.model.fallbackInfoByAgentId[t]??null),It=r.createSelector((e,t,o,n)=>{const s=l=>C.select(e,l,n),c=s(t),a=L(o,c,s),i=e.model?.availableModels;if(!n&&i&&(!c||c===e.model.availableModelsProviderId)){const l=v(i,o)??v(i,a);if(l)return l}const d=n?e.providerModels?.byWorkspaceId?.[n]?.[c]:e.providerModels?.byProviderId?.[c];return d?.models.find(l=>l.value===o)??d?.models.find(l=>L(l.value,c,s)===a)}),Nn=r.createSelector((e,t,o,n)=>{const s=l=>C.select(e,l,n),c=s(t),a=L(o,c,s),i=l=>It.select(e,c,l,n)?.label,d=l=>pt.select(e,c,l);return O(o,i)??(a!==o?O(a,i):void 0)??d(o)??O(a,d)}),kt=r.createSelector((e,t)=>{if(!t)return;const o=e.model?.availableModels;if(!o)return;const n=N(t);return v(o,n)?.effortLevels});function N(e){const t=V(e).modelId,o=t.indexOf("/");return o>0?t.slice(0,o):t}const At=r.createSelector((e,t,o,n)=>{if(o){if(!n&&(!t||t===e.model?.availableModelsProviderId)){const s=kt.select(e,o);if(s)return s}if(t){const s=N(o);return(n?e.providerModels?.byWorkspaceId?.[n]?.[t]:e.providerModels?.byProviderId[t])?.models.find(a=>N(a.value)===s)?.effortLevels}}}),Et=r.createSelector((e,t)=>{const o=e.agentSessions?.byAgentId[t];if(!o)return;if(Array.isArray(o.effortLevels)&&o.effortLevels.length>0)return o.effortLevels;const n=o.workspaceId?e.providerCatalog?.byWorkspaceId?.[o.workspaceId]?.settings??[]:void 0,s=n?.find(u=>u.path==="model.defaultProvider")?.value,c=n?typeof s=="string"?s:"":Ue.select(e),a=Ve(o,c),i=C.select(e,a??c,o.workspaceId),d=n?.find(u=>u.path==="model.providerDefaults")?.value,l=d&&typeof d=="object"?d[i]:void 0,S=o.model??(n?typeof l=="string"?l:"":x.select(e,i));return At.select(e,i,S,o.workspaceId)}),ce="application/vnd.intent.question+json";function wt(e){if(!e||typeof e!="object")return!1;const t=e;return typeof t.label=="string"&&t.label.length>0&&(t.description===void 0||typeof t.description=="string")}function _t(e){if(!e||typeof e!="object")return!1;const t=e;return typeof t.attachmentId=="string"&&typeof t.header=="string"&&t.header.length>0&&typeof t.question=="string"&&t.question.length>0&&(t.explanation===void 0||typeof t.explanation=="string")&&Array.isArray(t.options)&&t.options.length>=2&&t.options.every(wt)&&(t.multiSelect===void 0||typeof t.multiSelect=="boolean")}function Dn(e){if(!e||typeof e!="object")return!1;const t=e;if(t.type!=="resource")return!1;const o=t.resource;return typeof o=="object"&&o!==null&&o.mimeType===ce}function Rt(e){if(!e||typeof e!="object")return null;const t=e,o=t.resource??t.metadata?.resource??t;if(!o||typeof o!="object"||o.mimeType!==ce||typeof o.text!="string")return null;try{const n=JSON.parse(o.text);return _t(n)?n:null}catch{return null}}const Ot="attachmentId",Lt=/^tar-[0-9a-f]{12}$/;function ae(e){if(!e||typeof e!="object")return null;const t=e;if(t.type!=="resource")return null;const o=t.resource;return!o||typeof o!="object"||typeof o.uri!="string"||typeof o.mimeType!="string"||typeof o.text!="string"||o.name!==void 0&&typeof o.name!="string"?null:o}function ie(e){const t=ae(e);if(!t)return null;try{const o=JSON.parse(t.text);if(!o||typeof o!="object"||Array.isArray(o))return null;const n=o[Ot];return typeof n=="string"&&Lt.test(n)?n:null}catch{return null}}function D(e){return Array.isArray(e)?`[${e.map(D).join(",")}]`:e&&typeof e=="object"?`{${Object.entries(e).sort(([o],[n])=>o<n?-1:o>n?1:0).map(([o,n])=>`${JSON.stringify(o)}:${D(n)}`).join(",")}}`:JSON.stringify(e)??"undefined"}function Nt(e){const t=ae(e);if(!t)return null;if(t.mimeType===et)try{const n=JSON.parse(t.text);if(tt(n))return`proposal:${n.kind}:${n.applyToolCallId??n.preview.title}:${D(n.payload)}`}catch{}const o=ie(e);return o?`nonce:${o}`:t.uri.length>0?`uri:${t.uri}:${t.text}`:null}function H(e){return ie(e)!==null}function Dt(e){const t=new Map,o=[];for(const n of e){const s=Nt(n);if(s===null){o.push(n);continue}const c=t.get(s);if(c===void 0){t.set(s,o.length),o.push(n);continue}H(n)&&!H(o[c])&&(o[c]=n)}return o}function le(e,t){if(typeof t!="string"||t.length===0)return!1;const o=e?.dismissedQuestionsMessageId;return typeof o=="string"&&o===t}function Tt(e){if(e.skipped)return"(skipped)";const t=[...e.selectedLabels],o=e.imageBlocks?.length??0,n=o===0?"":o===1?f.chat_questionWizard_imagesAttached_label_one():f.chat_questionWizard_imagesAttached_label_many({count:ot(o)});return(e.freeText||o>0)&&t.push(`(Other) ${[e.freeText,n].filter(Boolean).join(" ")}`),t.length===0?"(skipped)":t.join(", ")}function Bt(e){return e.map(t=>`Q: ${t.question.question}
1
+ import{HD as V,HR as r,rj as Re,nl as p,AA as Oe,xo as A,q6 as Le,nk as v,Au as Ne,g as Q,qV as Y,Av as G,c as De,n7 as z,A as Te,r1 as E,hf as Be,D as xe}from"./DSAz0okZ.js";import{k as He}from"./BlOn95cv.js";import{l as Fe,s as We}from"./DgH1Kxzo.js";import{b$ as w,cB as je,c8 as y,bY as I,cs as C,cK as J,cJ as qe,cA as Ke,bZ as $e,bt as Ue,l as Ve,F as Qe,dO as Ye,dy as X,aw as Ge,cj as ze,dm as Z,cH as Je,cI as Xe,cM as Ze}from"./ClKXAKis.js";import{P as et,c as tt}from"./BvFAWM27.js";import{bo as f}from"./BLK9_MXJ.js";import{t as ot}from"./CFpa0qKK.js";import{p as nt}from"./9ZBkr0Qf.js";import{p as rt}from"./DNmwPq0o.js";import{q as st,u as ct}from"./D7gneRCc.js";function at(e,t,o){if(!e||!o?.length)return null;const n=new Set(o);if(t!==null&&!n.has(t))return null;const s=e.lastIndexOf("/"),c=s>=0?e.slice(s+1):"",a=n.has(c)?e.slice(0,s):e;return t===null?a:`${a}/${t}`}const it={major:5,minor:2};function lt(e){const{major:t,minor:o}=it;return He(e,t,o)}function L(e,t,o){const n=V(e);return n.providerId&&o(n.providerId)===t?n.modelId:e}function O(e,t){const o=t(e);if(o)return o;const n=/\/(minimal|low|medium|high|xhigh|max|ultra|none)$/i.exec(e);if(!n||n.index===0)return;const s=t(e.slice(0,n.index)),c=n[1].toLowerCase();return s?`${s} (${c.charAt(0).toUpperCase()}${c.slice(1)})`:void 0}function dt(e,t){return JSON.stringify([t||null,e])}const ut=r.createSelector((e,t)=>(t?e.providerModels?.byWorkspaceId?.[t]:e.providerModels?.byProviderId)??{}),_o=r.createSelector((e,t,o)=>ut.select(e,o)[t]),Ro=r.createSelector(e=>e.providerModels?.clearEpoch??0),Oo=r.createSelector((e,t)=>(t?e.providerModels?.requestsByWorkspaceId?.[t]?.map:e.providerModels?.requests?.map)??{}),ft=r.createSelector(e=>Object.fromEntries(Object.values(e.providerModels?.observers?.map??{}).flatMap(({providerIds:t,workspaceId:o})=>t.map(n=>[dt(n,o),{providerId:n,workspaceId:o}])))),Lo=r.createSelector(e=>Object.keys(ft.select(e)).sort()),pt=r.createSelector((e,t,o)=>Re(e.providerModels?.learnedNames??{},t,o)),No=r.createSelector(e=>e.providerModels.learnedNames),mt={auggie:"auggie",claudeCode:"claude-code",codex:"codex",mock:"mock",opencode:"opencode",pi:"pi",cortex:"cortex",droid:"droid",grok:"grok",unsloth:"unsloth",antigravity:"antigravity",cursor:"cursor"},gt=new Map(Object.entries(mt).map(([e,t])=>[t,e]));function bt(e,t){const o=gt.get(t);return o===void 0?void 0:e?.providers[o]}function Do(e,t){const o=bt(e,t);return o?.available===!0&&ee(t,o.authenticated)}const To=new Set(["claude-code"]);function ee(e,t){return t!==!1}const te=r.createSelector(e=>e.agentAvailability.providerStatusMap),Bo=r.createSelector(e=>e.agentAvailability.providerLoadingMap),xo=r.createSelector(e=>e.agentAvailability.providerCheckEpochMap),vt=r.createSelector(e=>e.agentAvailability.hasCheckedOnce),Ho=r.createSelector(e=>Object.values(e.agentAvailability.providerLoadingMap).some(t=>t)),Fo=r.createSelector(e=>e.agentAvailability.npxStatus),Wo=r.createSelector(e=>e.agentAvailability.hiddenProviders),jo=r.createSelector(e=>e.agentAvailability.discoveryError),qo=r.createSelector(e=>e.agentAvailability.discoveryRevision),Ko=r.createSelector(e=>e.agentAvailability.refreshModelsPending),$o=r.createSelector(e=>e.agentAvailability.refreshModelsRevision),Uo=r.createSelector(e=>e.sidebarNav?.onboardingActive&&e.userPreferences.providerSetupHydratedBackendId===e.connections.windowBackendId&&!e.userPreferences.hasCompletedProviderSetup&&w.select(e)==="owner"?je.select(e):null),Vo=r.createSelector((e,t)=>p(e.providerSettings.requests).filter(o=>o.sessionId===t)),Qo=r.createSelector((e,t)=>e.providerSettings.sessions.includes(t)),Yo=r.createSelector((e,t)=>e.providerSettings.writeRevisions?.[t]??0),Go=r.createSelector(e=>e.providerSettings.paths),zo=r.createSelector(e=>e.providerSettings.pathsRevision),M=r.createSelector(e=>y.select(e)?I.select(e)?.defaultProviderId??"":e.model.defaultProviderId);r.createSelector((e,t)=>M.select(e)===t);const St=r.createSelector(e=>y.select(e)?Object.fromEntries((I.select(e)?.enabledProviderIds??[]).map(t=>[t,!0])):e.providerSettings.enabledProviders),oe=r.createSelector((e,t)=>{if(y.select(e))return I.select(e)?.enabledProviderIds?.includes(t)===!0;const o=e.providerSettings.nonDisableableProviderIds??[];return Oe(e.providerSettings.enabledProviders,t,{canBeDisabled:!o.includes(t)})}),ne=r.createSelector(e=>{if(y.select(e))return I.select(e)?.enabledProviderIds??[];const t=e.providerSettings.enabledProviders,o=e.providerCatalog?p(e.providerCatalog.providers):[],n=new Set(o.filter(a=>oe.select(e,a.id)).map(a=>a.id)),s=M.select(e),c=A(s);c&&t[c]!==!1&&n.add(c);for(const[a,i]of Object.entries(t))i&&n.add(a);return[...n]});function ht(e,t){const o=J.select(e,t);return y.select(e)?o?.visible!==!0:!!(o?.requiresEnvVar||o?.requiresFeatureCode)}const _=r.createSelector(e=>{const t=te.select(e);return ne.select(e).filter(o=>!ht(e,o)&&t[o]?.available===!0)}),Jo=r.createSelector((e,t)=>{const o=te.select(e),n=C.select(e,t);return _.select(e).filter(s=>C.select(e,s)!==n&&oe.select(e,s)&&ee(s,o[s]?.authenticated))}),Xo=r.createSelector(e=>vt.select(e)?_.select(e):ne.select(e)),Zo=r.createSelector(e=>{const t=A(M.select(e));return _.select(e).includes(t)}),en=r.createSelector(e=>e.providerSettings.fastMode),tn=r.createSelector(e=>{const t=e.providerSettings.fastMode,o={...t?.confirmed};for(const[n,s]of Object.entries(t?.pending??{}))o[n]=s.enabled;return o}),on=r.createSelector(e=>Object.values(g(e).defaults).some(t=>t.remoteLaunch!==void 0)),nn=r.createSelector(e=>e.providerSettings.fastMode?.supported?["claude-code","codex"].filter(t=>J.select(e,t)?.supportsFastMode===!0):[]),g=e=>e.providerSettings?.profiles??Le,rn=r.createSelector(e=>qe.select(e).filter(t=>t.supportsProfiles===!0).map(t=>t.id)),sn=r.createSelector((e,t)=>p(g(e).items).filter(o=>o.baseProviderId===t)),cn=r.createSelector(e=>[...new Set(p(g(e).items).map(t=>t.baseProviderId))]),an=r.createSelector(e=>g(e).defaults),ln=r.createSelector((e,t)=>g(e).defaults[t]),dn=r.createSelector((e,t)=>v(g(e).items,t)),un=r.createSelector(e=>g(e).revision),fn=r.createSelector(e=>g(e).loadStatus),pn=r.createSelector(e=>g(e).status),mn=r.createSelector(e=>g(e).activation),gn=r.createSelector(e=>Object.fromEntries(p(g(e).mutations).map(t=>[t.id,t]))),Pt={},bn=r.createSelector(e=>g(e).identity??Pt),yt={},vn=r.createSelector(e=>g(e).setups??yt),Sn=r.createSelector(e=>(e.providerSettings?.sessions.length??0)>0),hn=r.createSelector(e=>e.model),Pn=r.createSelector(e=>{const t=Ke.select(e),o=w.select(e);if(!t||o!=="owner"&&o!=="member")return null;const n=M.select(e);return o==="member"&&!n?null:JSON.stringify([t,n,o==="member"?$e.select(e):null])});function re(e,t){return t??M.select(e)}const x=r.createSelector((e,t)=>{const o=re(e,t),n=e.model.availableModelsProviderId===o?p(e.model.availableModels):[],s=I.select(e),c=y.select(e)?s?.defaultProviderId===o?s.defaultModelId:null:e.model.providerModels[o];return c||(_.select(e).includes(o)?Ne(n):"")}),Mt=r.createSelector((e,t)=>x.select(e,t)!==""),yn=r.createSelector(e=>M.select(e)!==""||Mt.select(e)),Ct=r.createSelector(e=>e.model.availableModels),Mn=r.createSelector(e=>p(Ct.select(e))),Cn=r.createSelector(e=>e.model.availableModelsProviderId),se=r.createSelector((e,t)=>{const o=re(e,t);return e.model.loadingState[o]??null}),In=r.createSelector((e,t)=>se.select(e,t)?.status==="loading"),kn=r.createSelector((e,t)=>{const o=se.select(e,t);return o?.status!=="error"?null:o.error??null}),An=r.createSelector(e=>{const t={};for(const[o,n]of Object.entries(e.model.loadingState))n.warning&&(t[o]=n.warning);return t}),En=r.createSelector(e=>{const t={};for(const[o,n]of Object.entries(e.model.loadingState))n.stale&&(t[o]=!0);return t}),wn=r.createSelector(e=>{const t={};for(const[o,n]of Object.entries(e.model.loadingState))n.warning&&n.warningKind&&(t[o]=n.warningKind);return t}),_n=r.createSelector(e=>e.model.providerModels),Rn=r.createSelector(e=>e.model.defaultReasoningEffort),On=r.createSelector(e=>e.model.modelPickerCollapsedGroups),Ln=r.createSelector((e,t)=>e.model.fallbackInfoByAgentId[t]??null),It=r.createSelector((e,t,o,n)=>{const s=l=>C.select(e,l,n),c=s(t),a=L(o,c,s),i=e.model?.availableModels;if(!n&&i&&(!c||c===e.model.availableModelsProviderId)){const l=v(i,o)??v(i,a);if(l)return l}const d=n?e.providerModels?.byWorkspaceId?.[n]?.[c]:e.providerModels?.byProviderId?.[c];return d?.models.find(l=>l.value===o)??d?.models.find(l=>L(l.value,c,s)===a)}),Nn=r.createSelector((e,t,o,n)=>{const s=l=>C.select(e,l,n),c=s(t),a=L(o,c,s),i=l=>It.select(e,c,l,n)?.label,d=l=>pt.select(e,c,l);return O(o,i)??(a!==o?O(a,i):void 0)??d(o)??O(a,d)}),kt=r.createSelector((e,t)=>{if(!t)return;const o=e.model?.availableModels;if(!o)return;const n=N(t);return v(o,n)?.effortLevels});function N(e){const t=V(e).modelId,o=t.indexOf("/");return o>0?t.slice(0,o):t}const At=r.createSelector((e,t,o,n)=>{if(o){if(!n&&(!t||t===e.model?.availableModelsProviderId)){const s=kt.select(e,o);if(s)return s}if(t){const s=N(o);return(n?e.providerModels?.byWorkspaceId?.[n]?.[t]:e.providerModels?.byProviderId[t])?.models.find(a=>N(a.value)===s)?.effortLevels}}}),Et=r.createSelector((e,t)=>{const o=e.agentSessions?.byAgentId[t];if(!o)return;if(Array.isArray(o.effortLevels)&&o.effortLevels.length>0)return o.effortLevels;const n=o.workspaceId?e.providerCatalog?.byWorkspaceId?.[o.workspaceId]?.settings??[]:void 0,s=n?.find(u=>u.path==="model.defaultProvider")?.value,c=n?typeof s=="string"?s:"":Ue.select(e),a=Ve(o,c),i=C.select(e,a??c,o.workspaceId),d=n?.find(u=>u.path==="model.providerDefaults")?.value,l=d&&typeof d=="object"?d[i]:void 0,S=o.model??(n?typeof l=="string"?l:"":x.select(e,i));return At.select(e,i,S,o.workspaceId)}),ce="application/vnd.intent.question+json";function wt(e){if(!e||typeof e!="object")return!1;const t=e;return typeof t.label=="string"&&t.label.length>0&&(t.description===void 0||typeof t.description=="string")}function _t(e){if(!e||typeof e!="object")return!1;const t=e;return typeof t.attachmentId=="string"&&typeof t.header=="string"&&t.header.length>0&&typeof t.question=="string"&&t.question.length>0&&(t.explanation===void 0||typeof t.explanation=="string")&&Array.isArray(t.options)&&t.options.length>=2&&t.options.every(wt)&&(t.multiSelect===void 0||typeof t.multiSelect=="boolean")}function Dn(e){if(!e||typeof e!="object")return!1;const t=e;if(t.type!=="resource")return!1;const o=t.resource;return typeof o=="object"&&o!==null&&o.mimeType===ce}function Rt(e){if(!e||typeof e!="object")return null;const t=e,o=t.resource??t.metadata?.resource??t;if(!o||typeof o!="object"||o.mimeType!==ce||typeof o.text!="string")return null;try{const n=JSON.parse(o.text);return _t(n)?n:null}catch{return null}}const Ot="attachmentId",Lt=/^tar-[0-9a-f]{12}$/;function ae(e){if(!e||typeof e!="object")return null;const t=e;if(t.type!=="resource")return null;const o=t.resource;return!o||typeof o!="object"||typeof o.uri!="string"||typeof o.mimeType!="string"||typeof o.text!="string"||o.name!==void 0&&typeof o.name!="string"?null:o}function ie(e){const t=ae(e);if(!t)return null;try{const o=JSON.parse(t.text);if(!o||typeof o!="object"||Array.isArray(o))return null;const n=o[Ot];return typeof n=="string"&&Lt.test(n)?n:null}catch{return null}}function D(e){return Array.isArray(e)?`[${e.map(D).join(",")}]`:e&&typeof e=="object"?`{${Object.entries(e).sort(([o],[n])=>o<n?-1:o>n?1:0).map(([o,n])=>`${JSON.stringify(o)}:${D(n)}`).join(",")}}`:JSON.stringify(e)??"undefined"}function Nt(e){const t=ae(e);if(!t)return null;if(t.mimeType===et)try{const n=JSON.parse(t.text);if(tt(n))return`proposal:${n.kind}:${n.applyToolCallId??n.preview.title}:${D(n.payload)}`}catch{}const o=ie(e);return o?`nonce:${o}`:t.uri.length>0?`uri:${t.uri}:${t.text}`:null}function H(e){return ie(e)!==null}function Dt(e){const t=new Map,o=[];for(const n of e){const s=Nt(n);if(s===null){o.push(n);continue}const c=t.get(s);if(c===void 0){t.set(s,o.length),o.push(n);continue}H(n)&&!H(o[c])&&(o[c]=n)}return o}function le(e,t){if(typeof t!="string"||t.length===0)return!1;const o=e?.dismissedQuestionsMessageId;return typeof o=="string"&&o===t}function Tt(e){if(e.skipped)return"(skipped)";const t=[...e.selectedLabels],o=e.imageBlocks?.length??0,n=o===0?"":o===1?f.chat_questionWizard_imagesAttached_label_one():f.chat_questionWizard_imagesAttached_label_many({count:ot(o)});return(e.freeText||o>0)&&t.push(`(Other) ${[e.freeText,n].filter(Boolean).join(" ")}`),t.length===0?"(skipped)":t.join(", ")}function Bt(e){return e.map(t=>`Q: ${t.question.question}
2
2
  A: ${Tt(t)}`).join(`
3
3
 
4
4
  `)}const de="question_answers";function xt(e){return{type:de,answeredQuestionsMessageId:e}}function Tn(e,t){const o=e.flatMap(n=>n.skipped?[]:n.imageBlocks??[]);return{text:Bt(e),messageMetadata:xt(t),...o.length>0?{imageBlocks:o}:{}}}function F(e){if(!e||typeof e!="object")return null;const t=e;if(t.type!==de)return null;const o=t.answeredQuestionsMessageId;return typeof o=="string"&&o.length>0?o:null}function W(e){const t=F(e),o=t?[t]:[];if(e&&typeof e=="object"&&"mergedMessageMetadata"in e){const n=e.mergedMessageMetadata;if(Array.isArray(n))for(const s of n){const c=F(s);c&&!o.includes(c)&&o.push(c)}}return o}function ue(e){if(!e)return[];const t=W(e.metadata);if(t.length)return t;const o=Array.isArray(e.contentBlocks)?e.contentBlocks:[];return[...new Set(o.flatMap(n=>n.type==="text"?W(n.messageMetadata):[]))]}function fe(e){return e===void 0?{kind:"absent"}:e===""?{kind:"cleared"}:{kind:"set",messageId:e}}function j(e){return Dt(e.contentBlocks??[]).map(Rt).filter(t=>t!==null)}function pe(e,t){return e.some(o=>o.role==="user"&&ue(o).includes(t))}function q(e,t){return e.some(o=>ue({metadata:o.messageMetadata}).includes(t))}function Ht(e,t,o=!1,n,s=[]){if(o||e.length===0)return null;const c=fe(n);if(c.kind==="cleared")return null;if(c.kind==="set"){const a=e.find(d=>d.id===c.messageId);if(!a||a.role!=="assistant"||a.isStreaming||pe(e,c.messageId)||q(s,c.messageId))return null;const i=j(a);return i.length>0?{messageId:a.id,questions:i}:null}if(t)return null;for(let a=e.length-1;a>=0;a--){const i=e[a];if(i.role==="system")continue;if(i.role!=="assistant"||i.isStreaming||q(s,i.id))return null;const d=j(i);return d.length>0?{messageId:i.id,questions:d}:null}return null}function Ft(e){const t=Ht(e.messages??[],Qe(Ye(e)),!1,e.metadata?.pendingQuestionsMessageId);return!t||le(e.metadata,t.messageId)?null:t}function Wt(e){if(Ft(e)!==null)return!0;const t=fe(e.metadata?.pendingQuestionsMessageId);if(t.kind!=="set")return!1;const o=e.messages??[];return o.some(n=>n.id===t.messageId)||pe(o,t.messageId)?!1:!le(e.metadata,t.messageId)}const me=0,T=1,jt=2,b=4,ge=6,qt=[2,3,4,5,0,1],Kt=16777215,be=689407,ve=3199320,Se=16766474,he=16752394,B=16726832,Pe=6607615,$t=12540658,P=.9,Ut=.5,ye=.25,Vt=.25,Qt={unassigned:{c:0,b:0,e:me,s:0},idle:{c:Kt,b:.12,e:T,s:0},running:{c:be,b:.6,e:b,s:Ut},unread:{c:Pe,b:.4,e:b,s:ye},complete:{c:ve,b:.5,e:T,s:0},attention:{c:Se,b:.8,e:b,s:P},blocked:{c:he,b:.75,e:b,s:P},failed:{c:B,b:.7,e:b,s:P}},Yt={e:me,b:0,s:0,m:0,c:0},K=.35,Gt=.75,$=4;function zt(e){const o=(Math.min(Math.max(e,1),$)-1)/($-1);return K+o*(Gt-K)}const Jt={dark:Yt,complete:{e:T,b:.25,s:0,m:0,c:ve},unread:{e:b,b:.4,s:ye,m:0,c:Pe},question:{e:b,b:.8,s:P,m:0,c:Se},blocked:{e:b,b:.8,s:P,m:0,c:he},failed:{e:b,b:.8,s:P,m:0,c:B},recording:{e:b,b:.8,s:P,m:0,c:B},disconnected:{e:jt,b:.2,s:Vt,m:0,c:$t}};function Bn(e){const t=[];for(let o=0;o<ge;o+=1){const n=e[o]??"unassigned";t.push({id:qt[o],...Qt[n]})}return t.sort((o,n)=>o.id-n.id),t}function xn(e){const t=e.kind==="running"?{e:b,b:.5,s:zt(e.runningCount),m:0,c:be}:Jt[e.kind];return{keys:{...t},ambient:{...t}}}function Me(e){return z(e)?.kind==="blocker"}function Ce(e){return z(e)?.kind==="discussion"||Wt(e)}function Ie(e){return e.status===De.Error}function U(e,t){const o=e.workspaceAgents.byWorkspaceId[t]?.foregroundAgentIds??[],n=e.agentSessions?.byAgentId??{},s=[];for(const c of o){const a=n[String(c)];a&&s.push(a)}return s}const Xt=new Set(["complete","pr_queued","pr_ready","pr_open","pr_merged"]);function ke(e){return e.activity==="agent_running"||e.displayStatus==="in_progress"}function Ae(e){return e.displayStatus!==void 0&&Xt.has(e.displayStatus)}function Zt(e,t){return t.some(Ie)?"failed":t.some(Me)?"blocked":t.some(Ce)?"attention":ke(e)?"running":e.attention==="unread"?"unread":Ae(e)?"complete":"idle"}function eo(e){if(e.daemonHealth?.health==="down")return{keys:new Array(ge).fill("unassigned"),ambient:{kind:"disconnected"}};const t=p(e.workspace.workspaces).filter(m=>m.id!==Q&&Y(m)),o=new Map;for(const m of t)o.set(m.id,m);const s=G(e.hardwareConsole.keyPins,t,e.hardwareConsole.excludedWorkspaceIds??[]).map(m=>{const h=m===null?void 0:o.get(m);return h?Zt(h,U(e,h.id)):"unassigned"});let c=!1,a=!1,i=!1,d=0,l=!1,S=!1;for(const m of t){const h=U(e,m.id);h.some(Ie)&&(c=!0),h.some(Me)&&(a=!0),h.some(Ce)&&(i=!0),ke(m)&&(d+=1),m.attention==="unread"&&(l=!0),Ae(m)&&(S=!0)}let u;return e.hardwareConsole.pttRecording===!0?u={kind:"recording"}:c?u={kind:"failed"}:a?u={kind:"blocked"}:i?u={kind:"question"}:l?u={kind:"unread"}:d>0?u={kind:"running",runningCount:d}:S?u={kind:"complete"}:u={kind:"dark"},{keys:s,ambient:u}}const Hn=r.createSelector(e=>{const t=w.select(e);return t==="guest"||t==="member"}),Fn=r.createSelector(e=>{const t=e.hardwareConsole;if(w.select(e)!=="owner"||!t?.isConsoleOwner||!t.enabledHydrationSucceeded||!t.actionMappingHydrationSucceeded)return null;const o=n=>Te.filter((s,c)=>t.actionMappingByModel[n][c]==="cycle-open-windows");return JSON.stringify({enabled:t.enabled,keysByModel:{"creator-micro-2":o("creator-micro-2"),"codex-micro":o("codex-micro")}})}),Wn=r.createSelector(e=>e.hardwareConsole.enabled),jn=r.createSelector(e=>e.hardwareConsole.encoderBehavior),qn=r.createSelector(e=>e.hardwareConsole.encoderBehaviorSaveFailed),Kn=r.createSelector(e=>e.hardwareConsole.isConsoleOwner),$n=r.createSelector(e=>e.hardwareConsole.promptPickerLimit),Un=r.createSelector(e=>e.hardwareConsole.actionMappingByModel),Vn=r.createSelector(e=>e.hardwareConsole.cycleScopeByFamily),Qn=r.createSelector(e=>e.hardwareConsole.keyPins),Yn=r.createSelector(e=>e.hardwareConsole.excludedWorkspaceIds),Gn=r.createSelector(e=>e.hardwareConsole.promptUsage),to=r.createSelector(e=>{const t=X.select(e).filter(Y);return G(e.hardwareConsole.keyPins,t,e.hardwareConsole.excludedWorkspaceIds)}),zn=r.createSelector((e,t)=>{const o=e.hardwareConsole.keyPins.indexOf(t);return o===-1?null:o}),Jn=r.createSelector((e,t)=>{const o=to.select(e).indexOf(t);return o===-1?null:o}),Xn=r.createSelector(e=>e.hardwareConsole.radialPrompt),Zn=r.createSelector(e=>e.hardwareConsole.encoderHudWorkspaceId),er=r.createSelector(e=>{const t=e.hardwareConsole.encoderHudWorkspaceId;return t===null?null:X.select(e).find(o=>o.id===t)?.title??null}),tr=r.createSelector(e=>e.hardwareConsole.actionHudLabel),or=r.createSelector(e=>e.hardwareConsole.pttRecording),nr=r.createSelector(e=>e.hardwareConsole.voiceTranscribing),rr=r.createSelector(e=>eo(e)),oo=r.createSelector((e,t,o)=>{const n=e.agentSessions.byAgentId[o];if(!n||n.workspaceId!==t)return null;const s=Et.select(e,o);if(!s?.length)return null;const c=Ge.select(e,o),a=n.model??x.select(e,c),i=e.daemonHealth.stats?.protocolVersion,d=lt(i)?at(a,null,s):a;return{key:JSON.stringify([t,o,c,d,s]),workspaceId:t,agentId:o,levels:s}}),no=r.createSelector(e=>{const t=e.hardwareConsole;if(!t.enabled||!t.isConsoleOwner||!t.encoderBehaviorHydrated||t.encoderBehavior!=="agent-effort")return null;const o=Fe.select(e);if(!o||o===Q||ze.select(e,o))return null;const n=We.select(e,o);return n?.type!=="agent"||!n.agentId||n.workspaceId&&n.workspaceId!==o?null:oo.select(e,o,n.agentId)}),sr=r.createSelector(e=>{const t=e.hardwareConsole.encoderEffortFeedback;return!t||no.select(e)?.key!==t.target.key?null:(e.agentSessions.byAgentId[t.target.agentId]?.reasoningEffort??null)===t.effort?t:null}),ro=[],cr=r.createSelector((e,t)=>v(e.connections.workflows,t)),ar=r.createSelector(e=>({writing:e.connections.keychainWritesPending>0,loadFailed:e.connections.keychainLoadError,saveFailed:e.connections.keychainSaveError})),ir=r.createSelector(e=>e.connections.selfPublication),lr=r.createSelector(e=>e.connections.selfPublicationBusy),dr=r.createSelector((e,t)=>({guest:v(e.guestSessions.sessions,t),connection:v(e.connections.connections,t)})),ur=r.createSelector(e=>p(e.connections.connections)),fr=r.createSelector(e=>p(e.connections.connections).filter(t=>t.daemonMode!=="node")),pr=r.createSelector(e=>p(e.connections.connections).filter(t=>!t.isLocal)),mr=r.createSelector(e=>e.connections.hasReceivedList);r.createSelector((e,t)=>v(e.connections.connections,t)?.status??"not-open");const gr=r.createSelector(e=>e.connections.windowBackendId),br=r.createSelector(e=>{const{connections:t,windowBackendId:o}=e.connections;return v(t,o)??null}),vr=r.createSelector(e=>e.connections.pinnedVersion),Sr=r.createSelector(e=>e.connections.connectedIds);r.createSelector(e=>e.connections.status);const hr=r.createSelector(e=>e.connections.status==="connecting"||e.connections.openingIds.length>0);r.createSelector((e,t)=>e.connections.openingIds.includes(t));r.createSelector(e=>e.connections.error);const Pr=r.createSelector(e=>e.connections.certMismatch),yr=r.createSelector(e=>{const t={};for(const[o,n]of Object.entries(e.connections.certWarnings))t[o]=p(n);return t}),Mr=r.createSelector(e=>{const t=e.connections.certWarnings[e.connections.windowBackendId];return t?p(t):ro}),Cr=r.createSelector(e=>{const{authRejected:t,windowBackendId:o}=e.connections;return t&&t.id===o?t:null}),Ir=r.createSelector(e=>{const{protocolMismatch:t,windowBackendId:o}=e.connections;return t&&t.id===o?t:null}),kr=r.createSelector(e=>{const{protocolMismatch:t,windowBackendId:o,protocolMismatchModalDismissed:n}=e.connections;return!t||t.id!==o||n?null:t}),Ar=r.createSelector(e=>e.connections.keychainSync),Er=r.createSelector(e=>e.connections.browserHost?.manageConnections===!0),wr=r.createSelector(e=>e.connections.browserHost?.backendBound===!1),_r=r.createSelector(e=>{const t=e.connections.browserHost;return t?.manageConnections===!0&&!t.tailcatAvailable}),so=[{id:"label-state-matrix",title:"Label states",states:["default","rest","hover","focus","error","required","optional","disabled","long-content","compact","zoom-200","light","dark"],themes:["light","dark","high-contrast"],viewport:"both"}];nt({id:"label",source:"src/lib/components/ui/label/label.svelte",publicImport:"$lib/components/ui/label",legacyImports:[],exports:["Label","labelMetadata"],category:"primitive",owner:"007-B2",callers:["src/features/collaboration-auth/renderer/CollaborationSignInModal.svelte","src/features/host-membership/HostInvitationDialog.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte","src/lib/component-catalog/renderers/ModalCatalogPreview.svelte","src/lib/components/GitLabConnectForm.svelte","src/lib/components/chat/secrets/SecretRequestCard.svelte","src/lib/components/debug/DebugPanel.svelte","src/lib/components/modals/InputDialog.svelte","src/lib/components/modals/ShareWorkspaceDialog.svelte","src/lib/components/modals/modal-polish.preview.svelte","src/lib/components/patterns/confirm/ConfirmRequestView.svelte","src/lib/components/patterns/form/FormField.svelte","src/lib/components/patterns/settings/SettingsFieldRow.svelte","src/lib/components/patterns/settings/custom-controls.ts","src/lib/components/workspace/initializer/AddRemoteSetupModal.svelte","src/lib/components/workspace/initializer/SetupScriptTrigger.svelte","src/lib/components/workspace/sidebar/context-picker/BrowserUrlPicker.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/label/label.test.ts",removalGate:"Retain while exported and association and fixture tests pass.",dynamicImports:[],fixtures:so});const co=[{id:"content-dialog",title:"Content dialog",states:["reading","progress","error","long-content"],themes:["light","dark"],viewport:"both"},{id:"confirm-service",title:"Confirm service",states:["confirm","prompt","alert","queued","busy","reduced-motion"],themes:["light","dark","high-contrast"],viewport:"both",reducedMotion:!0},{id:"form-dialog",title:"Form dialog",states:["default","busy","invalid"],themes:["light","dark"],viewport:"both"},{id:"destructive-confirm",title:"Destructive confirm",states:["default","busy"],themes:["light","dark"],viewport:"both"}];rt({id:"confirm",source:"src/lib/components/patterns/confirm/index.ts",publicImport:"$lib/components/patterns/confirm",exports:["ConfirmHost","ConfirmRequestView","DestructiveConfirm","FormDialog","ContentDialog","alert","confirm","prompt"],owner:"design-system",fixtures:co,useWhen:["Blocking an action until the user confirms, enters one value, or acknowledges a message.","Building a dialog whose content is a form with standard actions.","Showing a selection, progress/result, or reading dialog with shared layout and focus ownership."],dontUseWhen:["Reporting non-blocking status; use the notification service instead.","Building a multi-step flow; use a dedicated screen or wizard composition."],replaces:["Browser confirm, prompt, and alert APIs.","InputDialog, MessageDialog, and one-off destructive confirmation markup."]});function Ee(e){const t=e.trim();if(!t.startsWith("tc"))return!1;const o=t.slice(2);if(o.length<50||o.length%4===1||!/^[A-Za-z0-9_-]+$/.test(o))return!1;const n=atob(o.slice(0,4).replace(/-/g,"+").replace(/_/g,"/")).charCodeAt(0);return n>=161&&n<=187||n===191}function Rr(e){if(!e||typeof e!="object")return null;const t=e;for(const o of[t.collaborationName,t.prettyHostname,t.hostname])if(typeof o=="string"&&k(o))return k(o);return null}function Or(e){return[...k(e)].length<=100&&!/\p{Cc}/u.test(e)}function k(e){return e.replace(/^\p{White_Space}+|\p{White_Space}+$/gu,"")}function ao(e){const t=e.label.trim(),o=e.host&&e.port!=null?`${e.host}:${e.port}`:"";return(t&&t!==o?t:"")||e.hostname?.trim()||t||o}function io(e){const t=e.machineName?.trim();return t?f.settings_devices_localMachine_label({name:t}):f.layout_daemonStatus_localConnection_label()}function Lr(e,t){if(e.isLocal)return io(e);const o=ao(e);return e.id===t?f.settings_devices_connectedBackend_label({name:o}):o}function lo(e){const t=k(e.hostname??"");return t||(Ee(e.label)?f.connection_unknownHost_label():e.label)}function Nr(e){const t=e.label.trim();return!t||Ee(t)?null:t!==lo(e)?t:null}function Dr(e){return e.catalogProfiles.some(t=>typeof t.remoteCompatible=="boolean")||e.defaultRemoteIncompatibility||e.defaultRemoteLaunch||e.profileDefaults.some(t=>typeof t.remoteCompatible=="boolean")?"supported":e.catalogProfiles.length>0?"unsupported":e.profilesLoadStatus==="idle"?"unknown":"unsupported"}function Tr(e,t,o){if(E(e)){const n=t.find(s=>s.providerRef===e);return n?.remoteCompatible!==!1?null:n.remoteIncompatibility??{reason:"unknown",keys:[]}}return null}const uo=1440*60*1e3;function Br(e,t){if(!e?.capabilities)return"missing";const o=e.observedAt?Date.parse(e.observedAt):Number.NaN;return Number.isFinite(o)&&t-o>uo?"stale":"fresh"}const xr=new Set(["cli-missing","prerequisite-missing"]),fo=new Set(["signed-out","auth-failed"]);function po(e){return fo.has(e)}function mo(e,t){if(E(t))return!1;const o=A(t),n=e?.capabilities?.providers.find(s=>s.id===o);return!!n&&po(n.status)}function we(e,t){return(t.defaultRemoteLaunch?t.defaultRemoteLaunch[e]==="send":!t.defaultRemoteIncompatibility?.[e])&&t.defaultHasOverrides?.[e]!==!1}function go(e,t,o){return o.defaultRemoteLaunch?.[t]==="refused"?!1:!e.cloud&&!mo(e,t)}function Hr(e){const{machine:t,providerRef:o}=e;return E(o)||go(t,o,e)||we(o,e)?null:e.catalogProfiles.find(n=>n.baseProviderId===o&&n.remoteCompatible===!0)??null}const bo=r.createSelector(e=>st.select(e)&&ct.select(e)&&e.remoteMachines?.supported===!0&&e.cloudMachines?.supported===!0),Fr=r.createSelector(e=>{const t=e.cloudMachines?.providerKinds??["e2b"];return e.cloudMachines?.entries===!0?t:t.filter(o=>o==="e2b")}),Wr=r.createSelector(e=>e.cloudMachines?.entries===!0);function _e(e){return Object.values(e.cloudMachines?.providers??{}).sort((t,o)=>t.configuredAt.localeCompare(o.configuredAt)||t.name.localeCompare(o.name))}const jr=r.createSelector(_e),qr=r.createSelector(e=>Object.values(e.cloudMachines?.machines??{}).sort((t,o)=>(t.cloud?.startedAt??"").localeCompare(o.cloud?.startedAt??""))),Kr=r.createSelector(e=>Object.values(e.cloudMachines?.machines??{}).filter(t=>t.cloud?.state==="paused").length);function vo(e,t){const o=t.cloud;return!o?.agentId||!o.workspaceId||!Z.select(e,o.workspaceId)?null:{workspaceId:o.workspaceId,agentId:o.agentId}}const $r=r.createSelector((e,t)=>{const o={},n={};for(const s of t){const c=s.cloud?.workspaceId;if(c&&!(c in o)){const a=Z.select(e,c);o[c]=a?.title||a?.name||null}n[s.id]=vo(e,s)}return{workspaceNames:o,agentLinks:n}}),Ur=r.createSelector(e=>e.cloudMachines?.readAt??{}),Vr=r.createSelector(e=>e.cloudMachines?.pending??{}),Qr=r.createSelector(e=>e.cloudMachines?.failures??{}),Yr=r.createSelector(e=>e.cloudMachines?.validated??null);function Gr(e){if(!bo.select(e))return null;const t=_e(e);if(t.length===0)return null;const o=e.cloudMachines?.entries===!0;return t.map(n=>({cloudMachineId:n.id,label:n.provider==="northflank"?n.name.trim().toLowerCase()==="northflank"?Be("northflank"):f.cloudMachines_startOn_northflank_label({name:n.name}):o&&(t.length>1||n.name.trim().toLowerCase()!=="e2b")?f.cloudMachines_startOn_entry_label({name:n.name}):f.cloudMachines_startOn_label(),unavailableReason:n.state!=="key-rejected"?null:n.provider==="northflank"?f.cloudMachines_northflank_state_tokenRejected_label():f.cloudMachines_state_keyRejected_label(),needsProfile:!So(e,n)}))}function So(e,t){const o=St.select(e),n=e.providerSettings?.profiles?.defaults??{},s={defaultRemoteLaunch:Xe.select(e),defaultRemoteIncompatibility:Je.select(e)},c=l=>o[l]!==!1&&(t.agentProviders.length===0||t.agentProviders.includes(l)),a=new Set([...t.agentProviders,...Object.keys(s.defaultRemoteLaunch??{})]);for(const l of a)if(c(l)&&(n[l]?.env.length??0)>0&&we(l,s))return!0;const i=e.providerSettings?.profiles?.items,d=i?p(i):[];return Ze.select(e).some(l=>{if(l.remoteCompatible!==!0||!c(l.baseProviderId))return!1;const S=d.find(u=>u.providerRef===l.providerRef);return!S||S.env.some(u=>u.kind==="set")})}function zr(e,t,o=e.cloudMachines?.providers[xe]??null){if(!t)return null;const n=o,s=A(t);if(n&&n.agentProviders.length>0&&!n.agentProviders.includes(s))return f.cloudMachines_startOn_providerMissing();const c=e.providerSettings?.profiles;if(E(t)){const i=c?p(c.items).find(d=>d.providerRef===t):void 0;return i?i.remoteCompatible===!1?f.cloudMachines_startOn_needsProfile():i.env.some(d=>d.kind==="set")?null:f.cloudMachines_startOn_needsProfile():null}const a=c?.defaults?.[s];return a?a.remoteCompatible===!1?f.cloudMachines_startOn_needsProfile():a.env.some(i=>i.kind==="set")?null:f.cloudMachines_startOn_needsProfile():c?.loadStatus==="success"?f.cloudMachines_startOn_needsProfile():null}const R=new Map;function Jr(e){return R.has(e)}function Xr(e){return R.get(e)}function Zr(e){R.set(e.agentId,e)}function es(e){R.delete(e)}export{Cn as $,ge as A,pe as B,q as C,mo as D,Ee as E,Br as F,L as G,k as H,dt as I,Hr as J,Tr as K,Dr as L,xr as M,To as N,es as O,mt as P,O as Q,tr as R,Cr as S,Ir as T,M as U,Et as V,En as W,wn as X,An as Y,_ as Z,Mn as _,eo as a,wr as a$,fr as a0,cn as a1,yr as a2,jr as a3,Wr as a4,Qr as a5,bo as a6,Vr as a7,Fr as a8,Ur as a9,to as aA,Gn as aB,Xn as aC,rr as aD,vt as aE,yn as aF,Er as aG,_r as aH,Zo as aI,Ho as aJ,hr as aK,Kn as aL,In as aM,oe as aN,ar as aO,Ar as aP,pt as aQ,No as aR,kn as aS,Pn as aT,It as aU,Nn as aV,kt as aW,Ln as aX,Xo as aY,On as aZ,hn as a_,qr as aa,Yr as ab,Sr as ac,Pr as ad,dr as ae,cr as af,ur as ag,mr as ah,br as ai,Mr as aj,gr as ak,Rn as al,St as am,oo as an,sr as ao,no as ap,Zn as aq,er as ar,nn as as,Un as at,Vn as au,Wn as av,jn as aw,qn as ax,Yn as ay,Qn as az,Tn as b,Fo as b0,Lo as b1,ft as b2,Uo as b3,Kr as b4,vr as b5,rn as b6,$n as b7,kr as b8,xo as b9,un as bA,Sn as bB,Qo as bC,Vo as bD,te as bE,Yo as bF,or as bG,Jo as bH,pr as bI,on as bJ,$r as bK,x as bL,ir as bM,lr as bN,Hn as bO,nr as bP,Fn as bQ,zn as bR,Jn as bS,Wt as bT,Ft as bU,Zr as bV,Gr as bW,lt as bX,Or as bY,ln as ba,an as bb,jo as bc,qo as bd,en as be,tn as bf,Wo as bg,Bo as bh,At as bi,_n as bj,_o as bk,ut as bl,Ro as bm,Ko as bn,$o as bo,Oo as bp,Go as bq,zo as br,dn as bs,mn as bt,bn as bu,gn as bv,vn as bw,pn as bx,sn as by,fn as bz,at as c,xn as d,Bn as e,fe as f,zr as g,Rr as h,Dt as i,go as j,we as k,Ht as l,ao as m,Nr as n,lo as o,io as p,Lr as q,ue as r,Xr as s,bt as t,Rt as u,Jr as v,ee as w,Do as x,le as y,Dn as z};
@@ -1 +1 @@
1
- import{_ as c}from"./eK7OULll.js";import{g as m,R as M,C as E,E as _,K as S,a as T,M as P,b as $,P as I,e as R,f as C,T as A,U as z,r as j,h as D,k as O,l as i,i as V,m as w,j as u,J as f,c as k,d as h,S as b,t as p}from"./C11XjPnf.js";import{l as t}from"./ChTqQfQN.js";const W=Object.freeze(Object.defineProperty({__proto__:null,CancellationTokenSource:E,Emitter:_,KeyCode:S,KeyMod:T,MarkerSeverity:P,MarkerTag:$,Position:I,Range:M,Selection:R,SelectionDirection:C,Token:A,Uri:z,css:j,editor:m,html:D,json:O,languages:i,lsp:V,typescript:w},Symbol.toStringTag,{value:"Module"}));let y=!1,g=null,v=!1,r=null;async function B(){if(!(typeof window>"u")&&!v)try{const[o,s,a,d,l]=await Promise.all([c(()=>import("./DvZ3DwdW.js"),[],import.meta.url),c(()=>import("./Cpgzc53H.js"),[],import.meta.url),c(()=>import("./CG-QPs-0.js"),[],import.meta.url),c(()=>import("./BluJBxCM.js"),[],import.meta.url),c(()=>import("./BW7ZDjCt.js"),[],import.meta.url)]);r={editor:o,json:s,css:a,html:d,ts:l},self.MonacoEnvironment={getWorker(n,e){if(!r)return t.error("[Monaco] Workers not loaded yet"),{postMessage:()=>{},terminate:()=>{}};try{return e==="json"?new r.json.default:e==="css"||e==="scss"||e==="less"?new r.css.default:e==="html"||e==="handlebars"||e==="razor"?new r.html.default:e==="typescript"||e==="javascript"?new r.ts.default:new r.editor.default}catch(x){return t.error("[Monaco] Failed to create worker for",e,x),{postMessage:()=>{},terminate:()=>{}}}},globalAPI:!1},v=!0,t.info("[Monaco] Workers configured successfully (lazy loaded)")}catch(o){throw t.error("[Monaco] Failed to configure Monaco workers",{error:o}),o}}async function J(){return y?Promise.resolve():g||(g=new Promise((o,s)=>{let a=0;const d=100,l=()=>{a++;try{if(W&&m&&i&&m.createModel&&typeof m.createModel=="function")m.createModel("test","plaintext").dispose(),y=!0,t.info("[Monaco] Monaco Editor initialized successfully"),o();else if(a>=d){const n=new Error("[Monaco] Monaco Editor failed to initialize after 5 seconds");t.error(n.message),s(n)}else setTimeout(l,50)}catch(n){a>=d?(t.error("[Monaco] Monaco Editor initialization error:",n),s(n)):setTimeout(l,50)}};l()}),g)}async function U(){try{if(await J(),!w){t.warn("[Monaco] TypeScript language service not available yet");return}u&&(u.setDiagnosticsOptions({noSemanticValidation:!1,noSyntaxValidation:!1}),u.setCompilerOptions({target:b.ES2020,allowNonTsExtensions:!0,moduleResolution:h.NodeJs,module:k.CommonJS,noEmit:!0,esModuleInterop:!0,jsx:f.React,reactNamespace:"React",allowJs:!0,typeRoots:["node_modules/@types"]}),u.setEagerModelSync(!0)),p&&(p.setDiagnosticsOptions({noSemanticValidation:!1,noSyntaxValidation:!1}),p.setCompilerOptions({target:b.ES2020,allowNonTsExtensions:!0,moduleResolution:h.NodeJs,module:k.CommonJS,noEmit:!0,esModuleInterop:!0,jsx:f.React,reactNamespace:"React",allowJs:!0,typeRoots:["node_modules/@types"]}),p.setEagerModelSync(!0)),L()}catch(o){t.warn("[Monaco] Error configuring Monaco languages:",o)}}function L(){i.getLanguages().some(s=>s.id==="svelte")||(i.register({id:"svelte",extensions:[".svelte"],aliases:["Svelte","svelte"],mimetypes:["text/x-svelte"]}),i.setLanguageConfiguration("svelte",{comments:{lineComment:"//",blockComment:["<!--","-->"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"<!--",close:"-->",notIn:["comment","string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'},{open:"`",close:"`"}],folding:{markers:{start:/^\s*<!--\s*#region\b.*-->/,end:/^\s*<!--\s*#endregion\b.*-->/}},wordPattern:/(-?\d*\.\d\w*)|([^`~!@#%^&*()\-=+[{\]}\\|;:'",.<>/?\s]+)/g,indentationRules:{increaseIndentPattern:/<(?!(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)\b)[a-zA-Z][^/>]*>|{[^}]*$/,decreaseIndentPattern:/^\s*(<\/|}<)/}}),i.setMonarchTokensProvider("svelte",{defaultToken:"",tokenPostfix:".svelte",svelteKeywords:["#if","/if",":else",":else if","#each","/each","#await","/await",":then",":catch","#key","/key","#snippet","/snippet","@render","@html","@debug","@const"],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","interface","let","new","null","return","set","static","super","switch","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of","as","type"],runes:["$state","$derived","$effect","$props","$bindable","$inspect","$host"],tagNames:["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<","</",">>",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@","..."],symbols:/[=><!~?:&|+\-*\/^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/(<)(script)(\s+)(lang)(=)("ts"|'ts')/,["delimiter.html","tag.html","","attribute.name.html","delimiter.html","attribute.value.html"]],[/<script/,{token:"tag.html",next:"@script"}],[/<style/,{token:"tag.html",next:"@style"}],[/{#/,{token:"keyword.svelte",next:"@svelteBlock"}],[/{:/,{token:"keyword.svelte",next:"@svelteBlock"}],[/{\//,{token:"keyword.svelte",next:"@svelteBlock"}],[/{@/,{token:"keyword.svelte",next:"@svelteExpression"}],[/{/,{token:"delimiter.bracket",next:"@svelteExpression"}],[/<!--/,{token:"comment.html",next:"@htmlComment"}],[/(<)(\w+)/,["delimiter.html",{token:"tag.html",next:"@tag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@tag"}]],[/[^<{]+/,"text.html"]],script:[[/<\/script>/,{token:"tag.html",next:"@pop"}],{include:"@typescript"}],style:[[/<\/style>/,{token:"tag.html",next:"@pop"}],[/./,"source.css"]],tag:[[/\s+/,""],[/(\w+)(=)/,["attribute.name.html",{token:"delimiter.html",next:"@attributeValue"}]],[/\w+/,"attribute.name.html"],[/on:\w+/,"attribute.name.event.svelte"],[/bind:\w+/,"attribute.name.binding.svelte"],[/class:\w+/,"attribute.name.class.svelte"],[/use:\w+/,"attribute.name.action.svelte"],[/transition:\w+/,"attribute.name.transition.svelte"],[/in:\w+/,"attribute.name.transition.svelte"],[/out:\w+/,"attribute.name.transition.svelte"],[/animate:\w+/,"attribute.name.animation.svelte"],[/\/>/,{token:"delimiter.html",next:"@pop"}],[/>/,{token:"delimiter.html",next:"@pop"}]],attributeValue:[[/"[^"]*"/,{token:"attribute.value.html",next:"@pop"}],[/'[^']*'/,{token:"attribute.value.html",next:"@pop"}],[/{/,{token:"delimiter.bracket",next:"@svelteExpressionInAttr"}],[/\w+/,{token:"attribute.value.html",next:"@pop"}]],svelteBlock:[[/}/,{token:"keyword.svelte",next:"@pop"}],[/\b(if|else|each|await|then|catch|key|snippet|as)\b/,"keyword.control.svelte"],{include:"@typescript"}],svelteExpression:[[/}/,{token:"delimiter.bracket",next:"@pop"}],[/@(html|debug|const|render)/,"keyword.svelte"],{include:"@typescript"}],svelteExpressionInAttr:[[/}/,{token:"delimiter.bracket",next:"@pop"}],{include:"@typescript"}],htmlComment:[[/-->/,{token:"comment.html",next:"@pop"}],[/./,"comment.html"]],typescript:[[/\$(?:state|derived|effect|props|bindable|inspect|host)\b/,"variable.language.svelte"],[/\/\/.*$/,"comment"],[/\/\*/,{token:"comment",next:"@tsComment"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@tsDoubleString"],[/'/,"string","@tsSingleString"],[/`/,"string","@tsTemplateString"],[/\d*\.\d+([eE][-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/\b(break|case|catch|class|continue|const|constructor|debugger|default|delete|do|else|export|extends|false|finally|for|from|function|get|if|import|in|instanceof|interface|let|new|null|return|set|static|super|switch|this|throw|true|try|typeof|undefined|var|void|while|with|yield|async|await|of|as|type)\b/,"keyword"],[/[a-zA-Z_$][\w$]*/,"identifier"],[/@symbols/,"operator"],[/[{}()[\]]/,"delimiter.bracket"],[/[;,.]/,"delimiter"]],tsComment:[[/\*\//,{token:"comment",next:"@pop"}],[/./,"comment"]],tsDoubleString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],tsSingleString:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],tsTemplateString:[[/\$\{/,{token:"delimiter.bracket",next:"@tsTemplateStringExpression"}],[/[^`$]+/,"string"],[/`/,"string","@pop"]],tsTemplateStringExpression:[[/}/,{token:"delimiter.bracket",next:"@pop"}],{include:"@typescript"}]}}),t.info("[Monaco] Svelte language registered"))}export{B as configureMonacoWorkers,J as ensureMonacoInitialized,U as initializeMonaco,W as monaco};
1
+ import{_ as c}from"./BLK9_MXJ.js";import{g as m,R as M,C as E,E as _,K as S,a as T,M as P,b as $,P as I,e as R,f as C,T as A,U as z,r as j,h as D,k as O,l as i,i as V,m as w,j as u,J as f,c as k,d as h,S as b,t as p}from"./DPbHVaEp.js";import{l as t}from"./ChTqQfQN.js";const W=Object.freeze(Object.defineProperty({__proto__:null,CancellationTokenSource:E,Emitter:_,KeyCode:S,KeyMod:T,MarkerSeverity:P,MarkerTag:$,Position:I,Range:M,Selection:R,SelectionDirection:C,Token:A,Uri:z,css:j,editor:m,html:D,json:O,languages:i,lsp:V,typescript:w},Symbol.toStringTag,{value:"Module"}));let y=!1,g=null,v=!1,r=null;async function B(){if(!(typeof window>"u")&&!v)try{const[o,s,a,d,l]=await Promise.all([c(()=>import("./DvZ3DwdW.js"),[],import.meta.url),c(()=>import("./Cpgzc53H.js"),[],import.meta.url),c(()=>import("./CG-QPs-0.js"),[],import.meta.url),c(()=>import("./BluJBxCM.js"),[],import.meta.url),c(()=>import("./BW7ZDjCt.js"),[],import.meta.url)]);r={editor:o,json:s,css:a,html:d,ts:l},self.MonacoEnvironment={getWorker(n,e){if(!r)return t.error("[Monaco] Workers not loaded yet"),{postMessage:()=>{},terminate:()=>{}};try{return e==="json"?new r.json.default:e==="css"||e==="scss"||e==="less"?new r.css.default:e==="html"||e==="handlebars"||e==="razor"?new r.html.default:e==="typescript"||e==="javascript"?new r.ts.default:new r.editor.default}catch(x){return t.error("[Monaco] Failed to create worker for",e,x),{postMessage:()=>{},terminate:()=>{}}}},globalAPI:!1},v=!0,t.info("[Monaco] Workers configured successfully (lazy loaded)")}catch(o){throw t.error("[Monaco] Failed to configure Monaco workers",{error:o}),o}}async function J(){return y?Promise.resolve():g||(g=new Promise((o,s)=>{let a=0;const d=100,l=()=>{a++;try{if(W&&m&&i&&m.createModel&&typeof m.createModel=="function")m.createModel("test","plaintext").dispose(),y=!0,t.info("[Monaco] Monaco Editor initialized successfully"),o();else if(a>=d){const n=new Error("[Monaco] Monaco Editor failed to initialize after 5 seconds");t.error(n.message),s(n)}else setTimeout(l,50)}catch(n){a>=d?(t.error("[Monaco] Monaco Editor initialization error:",n),s(n)):setTimeout(l,50)}};l()}),g)}async function U(){try{if(await J(),!w){t.warn("[Monaco] TypeScript language service not available yet");return}u&&(u.setDiagnosticsOptions({noSemanticValidation:!1,noSyntaxValidation:!1}),u.setCompilerOptions({target:b.ES2020,allowNonTsExtensions:!0,moduleResolution:h.NodeJs,module:k.CommonJS,noEmit:!0,esModuleInterop:!0,jsx:f.React,reactNamespace:"React",allowJs:!0,typeRoots:["node_modules/@types"]}),u.setEagerModelSync(!0)),p&&(p.setDiagnosticsOptions({noSemanticValidation:!1,noSyntaxValidation:!1}),p.setCompilerOptions({target:b.ES2020,allowNonTsExtensions:!0,moduleResolution:h.NodeJs,module:k.CommonJS,noEmit:!0,esModuleInterop:!0,jsx:f.React,reactNamespace:"React",allowJs:!0,typeRoots:["node_modules/@types"]}),p.setEagerModelSync(!0)),L()}catch(o){t.warn("[Monaco] Error configuring Monaco languages:",o)}}function L(){i.getLanguages().some(s=>s.id==="svelte")||(i.register({id:"svelte",extensions:[".svelte"],aliases:["Svelte","svelte"],mimetypes:["text/x-svelte"]}),i.setLanguageConfiguration("svelte",{comments:{lineComment:"//",blockComment:["<!--","-->"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"<!--",close:"-->",notIn:["comment","string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'},{open:"`",close:"`"}],folding:{markers:{start:/^\s*<!--\s*#region\b.*-->/,end:/^\s*<!--\s*#endregion\b.*-->/}},wordPattern:/(-?\d*\.\d\w*)|([^`~!@#%^&*()\-=+[{\]}\\|;:'",.<>/?\s]+)/g,indentationRules:{increaseIndentPattern:/<(?!(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)\b)[a-zA-Z][^/>]*>|{[^}]*$/,decreaseIndentPattern:/^\s*(<\/|}<)/}}),i.setMonarchTokensProvider("svelte",{defaultToken:"",tokenPostfix:".svelte",svelteKeywords:["#if","/if",":else",":else if","#each","/each","#await","/await",":then",":catch","#key","/key","#snippet","/snippet","@render","@html","@debug","@const"],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","interface","let","new","null","return","set","static","super","switch","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of","as","type"],runes:["$state","$derived","$effect","$props","$bindable","$inspect","$host"],tagNames:["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<","</",">>",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@","..."],symbols:/[=><!~?:&|+\-*\/^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/(<)(script)(\s+)(lang)(=)("ts"|'ts')/,["delimiter.html","tag.html","","attribute.name.html","delimiter.html","attribute.value.html"]],[/<script/,{token:"tag.html",next:"@script"}],[/<style/,{token:"tag.html",next:"@style"}],[/{#/,{token:"keyword.svelte",next:"@svelteBlock"}],[/{:/,{token:"keyword.svelte",next:"@svelteBlock"}],[/{\//,{token:"keyword.svelte",next:"@svelteBlock"}],[/{@/,{token:"keyword.svelte",next:"@svelteExpression"}],[/{/,{token:"delimiter.bracket",next:"@svelteExpression"}],[/<!--/,{token:"comment.html",next:"@htmlComment"}],[/(<)(\w+)/,["delimiter.html",{token:"tag.html",next:"@tag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@tag"}]],[/[^<{]+/,"text.html"]],script:[[/<\/script>/,{token:"tag.html",next:"@pop"}],{include:"@typescript"}],style:[[/<\/style>/,{token:"tag.html",next:"@pop"}],[/./,"source.css"]],tag:[[/\s+/,""],[/(\w+)(=)/,["attribute.name.html",{token:"delimiter.html",next:"@attributeValue"}]],[/\w+/,"attribute.name.html"],[/on:\w+/,"attribute.name.event.svelte"],[/bind:\w+/,"attribute.name.binding.svelte"],[/class:\w+/,"attribute.name.class.svelte"],[/use:\w+/,"attribute.name.action.svelte"],[/transition:\w+/,"attribute.name.transition.svelte"],[/in:\w+/,"attribute.name.transition.svelte"],[/out:\w+/,"attribute.name.transition.svelte"],[/animate:\w+/,"attribute.name.animation.svelte"],[/\/>/,{token:"delimiter.html",next:"@pop"}],[/>/,{token:"delimiter.html",next:"@pop"}]],attributeValue:[[/"[^"]*"/,{token:"attribute.value.html",next:"@pop"}],[/'[^']*'/,{token:"attribute.value.html",next:"@pop"}],[/{/,{token:"delimiter.bracket",next:"@svelteExpressionInAttr"}],[/\w+/,{token:"attribute.value.html",next:"@pop"}]],svelteBlock:[[/}/,{token:"keyword.svelte",next:"@pop"}],[/\b(if|else|each|await|then|catch|key|snippet|as)\b/,"keyword.control.svelte"],{include:"@typescript"}],svelteExpression:[[/}/,{token:"delimiter.bracket",next:"@pop"}],[/@(html|debug|const|render)/,"keyword.svelte"],{include:"@typescript"}],svelteExpressionInAttr:[[/}/,{token:"delimiter.bracket",next:"@pop"}],{include:"@typescript"}],htmlComment:[[/-->/,{token:"comment.html",next:"@pop"}],[/./,"comment.html"]],typescript:[[/\$(?:state|derived|effect|props|bindable|inspect|host)\b/,"variable.language.svelte"],[/\/\/.*$/,"comment"],[/\/\*/,{token:"comment",next:"@tsComment"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@tsDoubleString"],[/'/,"string","@tsSingleString"],[/`/,"string","@tsTemplateString"],[/\d*\.\d+([eE][-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/\b(break|case|catch|class|continue|const|constructor|debugger|default|delete|do|else|export|extends|false|finally|for|from|function|get|if|import|in|instanceof|interface|let|new|null|return|set|static|super|switch|this|throw|true|try|typeof|undefined|var|void|while|with|yield|async|await|of|as|type)\b/,"keyword"],[/[a-zA-Z_$][\w$]*/,"identifier"],[/@symbols/,"operator"],[/[{}()[\]]/,"delimiter.bracket"],[/[;,.]/,"delimiter"]],tsComment:[[/\*\//,{token:"comment",next:"@pop"}],[/./,"comment"]],tsDoubleString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],tsSingleString:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],tsTemplateString:[[/\$\{/,{token:"delimiter.bracket",next:"@tsTemplateStringExpression"}],[/[^`$]+/,"string"],[/`/,"string","@pop"]],tsTemplateStringExpression:[[/}/,{token:"delimiter.bracket",next:"@pop"}],{include:"@typescript"}]}}),t.info("[Monaco] Svelte language registered"))}export{B as configureMonacoWorkers,J as ensureMonacoInitialized,U as initializeMonaco,W as monaco};
@@ -1 +1 @@
1
- import{v as c}from"./WFvSJ9zU.js";import{a8 as t}from"./Bo4s1kgI.js";function a(n){return n.connections?.windowBackendId??t}function i(n,e){return e===t?n:`backend:${e}:${n}`}function*s(){return yield*c(a)}export{a as g,i as n,s};
1
+ import{v as c}from"./WFvSJ9zU.js";import{a8 as t}from"./DSAz0okZ.js";function a(n){return n.connections?.windowBackendId??t}function i(n,e){return e===t?n:`backend:${e}:${n}`}function*s(){return yield*c(a)}export{a as g,i as n,s};
@@ -1 +1 @@
1
- import{a as S}from"./BJzHxIyr.js";import{aE as g}from"./DYhIMPy1.js";import{g as c}from"./C3AKbypo.js";import{p as l}from"./Bcc7Bzbg.js";import{d as I}from"./B0Z-1lwJ.js";import{dy as w}from"./C-RJDuZ9.js";import{AZ as f,g as y,HR as o,gZ as A,ur as m,us as N,uu as b}from"./Bo4s1kgI.js";import{g as W,n as h}from"./B-WefpDP.js";import{S as D,a as R,n as E}from"./CHZAzCO9.js";import{n as O,o as v}from"./DNFHGDC9.js";const k="intent:onboarding-skip:v1";function P(e){return f.getItem(h(k,e))==="1"}function re(e){P(e)||f.setItem(h(k,e),"1")}function _(e){return e.connections?.hasReceivedList===!0&&P(W(e))}function F(e,a){return e.some(t=>t.id!==y&&t.id!==a&&t.status!=="Archived"&&t.status!=="Deleted")}function j(e,a,t=!1){return t||F(e,a)?"/":"/workspace/new"}function d(e,a){return j(w.select(e),a,_(e))}const se=Object.freeze(Object.defineProperty({__proto__:null,resolveWindowEmptyDestination:d},Symbol.toStringTag,{value:"Module"})),r=new S("WorkspaceNavigation");async function L(e){r.info(`[navigateToAgent] Navigating to agent: ${e}`);const t=g(l).params.id;if(!t){r.error("[navigateToAgent] No workspace ID found in current page params");return}const n=new URL(window.location.href);n.searchParams.set("drawerOpen","1"),n.searchParams.set("drawerType","agent"),n.searchParams.set("selectedAgent",e),n.searchParams.delete("selectedTerminal"),await c(n.toString(),{replaceState:!0}),o.dispatch(m(t,"agent",e))}async function $(e){r.info(`[navigateToTerminal] Navigating to terminal: ${e}`);const t=g(l).params.id;if(!t){r.error("[navigateToTerminal] No workspace ID found in current page params");return}const n=new URL(window.location.href),i=n.searchParams.get("drawerOpen")==="1",s=n.searchParams.get("drawerType")==="terminal";(!i||!s)&&n.searchParams.set("drawerOpen","1"),n.searchParams.set("drawerType","terminal"),n.searchParams.set("selectedTerminal",e),n.searchParams.delete("selectedAgent"),await c(n.toString(),{replaceState:!0}),o.dispatch(m(t,"terminal",e))}function C(e){return!e||!(e instanceof Element)?void 0:e.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0}async function p(e,a){r.info(`[navigateToNote] Navigating to note: ${e}`,a);const t=g(l),n=a?.workspaceId??t.params.id;if(!n){r.error("[navigateToNote] No workspace ID found in current page params");return}o.dispatch(b(n,e,{openInAdjacentPanel:a?.openInAdjacentPanel??!1,openInNewAdjacentPanel:a?.openInNewAdjacentPanel??!1,sourcePanelId:a?.sourcePanelId}))}async function U(e,a,t){r.info(`[navigateToFile] Navigating to file: ${e}${a?` (line ${a})`:""}`,t);const i=g(l).params.id;if(!i){r.error("[navigateToFile] No workspace ID found in current page params");return}o.dispatch(N(i,e,{line:a,openInAdjacentPanel:t?.openInAdjacentPanel??!1,sourcePanelId:t?.sourcePanelId}))}async function M(){r.info("[navigateToSpec] Navigating to workspace spec"),await p("spec")}async function B(){r.info("[closeDrawer] Closing drawer");const a=g(l).params.id;if(!a){r.error("[closeDrawer] No workspace ID found in current page params");return}const t=new URL(window.location.href);t.searchParams.set("drawerOpen","0"),t.searchParams.delete("selectedAgent"),t.searchParams.delete("selectedTerminal"),await c(t.toString(),{replaceState:!0}),o.dispatch(A(a))}async function K(){r.info("[clearMainContent] Clearing main content");const e=new URL(window.location.href);e.searchParams.set("mainContentType","empty"),e.searchParams.delete("selectedNoteId"),e.searchParams.delete("selectedFile"),e.searchParams.delete("line"),await c(e.toString(),{replaceState:!1})}async function H(e,a,t){r.info("[navigateToTask] Navigating to task",{noteId:e,taskPosition:a,taskText:t}),await p(e);const n=()=>{I("scroll-to-task",{noteId:e,taskPosition:a,taskText:t},{bubbles:!0}),r.debug("[navigateToTask] Dispatched scroll-to-task event",{noteId:e,taskPosition:a})},i=[100,300,600];for(const s of i)setTimeout(n,s)}async function G(e){r.info("[navigateToSettings] Navigating to settings",e);const a=new URL("/settings",window.location.origin),t=window.location.pathname.match(/^\/workspace\/([^/]+)/)?.[1],n=t==="new"?void 0:t,i=e?.workspaceId??n;if(e?.tab&&a.searchParams.set("tab",e.tab),e?.specialist&&a.searchParams.set("specialist",e.specialist),e?.view&&a.searchParams.set("view",e.view),i&&a.searchParams.set("workspaceId",i),e?.hash&&(a.hash=e.hash),typeof window<"u"&&window.location.pathname==="/settings"){if(e?.tab||e?.specialist||e?.view||e?.workspaceId){const s=new URL(window.location.href);e?.tab&&s.searchParams.set("tab",e.tab),e?.specialist&&s.searchParams.set("specialist",e.specialist),e?.view&&s.searchParams.set("view",e.view),e?.workspaceId&&s.searchParams.set("workspaceId",e.workspaceId),e?.hash&&(s.hash=e.hash),await c(s.toString(),{replaceState:!0});return}if(e?.hash){const s=`#${e.hash}`;window.location.hash===s&&(window.location.hash=""),window.location.hash=s;return}return}await E(a.pathname+a.search+a.hash)}function T(){const e=typeof sessionStorage>"u"?null:sessionStorage.getItem(D);if(e&&e!=="/"&&!R(e))return e;const a=u();return a?`/workspace/${a.id}`:d(o.state)}async function z(){const e=T();r.info("[navigateBackFromSettings] Navigating back to:",e),await O(e)}function u(e){return w.select(o.state).find(a=>a.id!==e&&a.status!=="Archived"&&a.status!=="Deleted")}async function Y(){const e=u();if(e){r.info("[navigateToFirstWorkspace] Showing workspace:",e.id),await v(e.id);return}const a=d(o.state);r.info("[navigateToFirstWorkspace] Navigating to:",a),await c(a)}async function Z(e){const a=u(e);if(a){r.info("[navigateAfterWorkspaceRemoval] Showing workspace:",a.id),await v(a.id);return}const t=d(o.state,e);r.info("[navigateAfterWorkspaceRemoval] Navigating to:",t),await c(t)}const ie=Object.freeze(Object.defineProperty({__proto__:null,clearMainContent:K,closeDrawer:B,findSourcePanelId:C,getSettingsPreviousPath:T,navigateAfterWorkspaceRemoval:Z,navigateBackFromSettings:z,navigateToAgent:L,navigateToFile:U,navigateToFirstWorkspace:Y,navigateToNote:p,navigateToSettings:G,navigateToSpec:M,navigateToTask:H,navigateToTerminal:$},Symbol.toStringTag,{value:"Module"}));export{U as a,Y as b,p as c,G as d,H as e,C as f,d as g,ie as h,_ as i,z as n,re as r,se as w};
1
+ import{a as S}from"./BJzHxIyr.js";import{aE as g}from"./DYhIMPy1.js";import{g as c}from"./DG59horb.js";import{p as l}from"./C8j9JMqo.js";import{d as I}from"./B0Z-1lwJ.js";import{dy as w}from"./ClKXAKis.js";import{AZ as f,g as y,HR as o,gZ as A,ur as m,us as N,uu as b}from"./DSAz0okZ.js";import{g as W,n as h}from"./CZHW0zTR.js";import{S as D,a as R,n as E}from"./cb3YK4cU.js";import{n as O,o as v}from"./Yemr8tAr.js";const k="intent:onboarding-skip:v1";function P(e){return f.getItem(h(k,e))==="1"}function re(e){P(e)||f.setItem(h(k,e),"1")}function _(e){return e.connections?.hasReceivedList===!0&&P(W(e))}function F(e,a){return e.some(t=>t.id!==y&&t.id!==a&&t.status!=="Archived"&&t.status!=="Deleted")}function j(e,a,t=!1){return t||F(e,a)?"/":"/workspace/new"}function d(e,a){return j(w.select(e),a,_(e))}const se=Object.freeze(Object.defineProperty({__proto__:null,resolveWindowEmptyDestination:d},Symbol.toStringTag,{value:"Module"})),r=new S("WorkspaceNavigation");async function L(e){r.info(`[navigateToAgent] Navigating to agent: ${e}`);const t=g(l).params.id;if(!t){r.error("[navigateToAgent] No workspace ID found in current page params");return}const n=new URL(window.location.href);n.searchParams.set("drawerOpen","1"),n.searchParams.set("drawerType","agent"),n.searchParams.set("selectedAgent",e),n.searchParams.delete("selectedTerminal"),await c(n.toString(),{replaceState:!0}),o.dispatch(m(t,"agent",e))}async function $(e){r.info(`[navigateToTerminal] Navigating to terminal: ${e}`);const t=g(l).params.id;if(!t){r.error("[navigateToTerminal] No workspace ID found in current page params");return}const n=new URL(window.location.href),i=n.searchParams.get("drawerOpen")==="1",s=n.searchParams.get("drawerType")==="terminal";(!i||!s)&&n.searchParams.set("drawerOpen","1"),n.searchParams.set("drawerType","terminal"),n.searchParams.set("selectedTerminal",e),n.searchParams.delete("selectedAgent"),await c(n.toString(),{replaceState:!0}),o.dispatch(m(t,"terminal",e))}function C(e){return!e||!(e instanceof Element)?void 0:e.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0}async function p(e,a){r.info(`[navigateToNote] Navigating to note: ${e}`,a);const t=g(l),n=a?.workspaceId??t.params.id;if(!n){r.error("[navigateToNote] No workspace ID found in current page params");return}o.dispatch(b(n,e,{openInAdjacentPanel:a?.openInAdjacentPanel??!1,openInNewAdjacentPanel:a?.openInNewAdjacentPanel??!1,sourcePanelId:a?.sourcePanelId}))}async function U(e,a,t){r.info(`[navigateToFile] Navigating to file: ${e}${a?` (line ${a})`:""}`,t);const i=g(l).params.id;if(!i){r.error("[navigateToFile] No workspace ID found in current page params");return}o.dispatch(N(i,e,{line:a,openInAdjacentPanel:t?.openInAdjacentPanel??!1,sourcePanelId:t?.sourcePanelId}))}async function M(){r.info("[navigateToSpec] Navigating to workspace spec"),await p("spec")}async function B(){r.info("[closeDrawer] Closing drawer");const a=g(l).params.id;if(!a){r.error("[closeDrawer] No workspace ID found in current page params");return}const t=new URL(window.location.href);t.searchParams.set("drawerOpen","0"),t.searchParams.delete("selectedAgent"),t.searchParams.delete("selectedTerminal"),await c(t.toString(),{replaceState:!0}),o.dispatch(A(a))}async function K(){r.info("[clearMainContent] Clearing main content");const e=new URL(window.location.href);e.searchParams.set("mainContentType","empty"),e.searchParams.delete("selectedNoteId"),e.searchParams.delete("selectedFile"),e.searchParams.delete("line"),await c(e.toString(),{replaceState:!1})}async function H(e,a,t){r.info("[navigateToTask] Navigating to task",{noteId:e,taskPosition:a,taskText:t}),await p(e);const n=()=>{I("scroll-to-task",{noteId:e,taskPosition:a,taskText:t},{bubbles:!0}),r.debug("[navigateToTask] Dispatched scroll-to-task event",{noteId:e,taskPosition:a})},i=[100,300,600];for(const s of i)setTimeout(n,s)}async function G(e){r.info("[navigateToSettings] Navigating to settings",e);const a=new URL("/settings",window.location.origin),t=window.location.pathname.match(/^\/workspace\/([^/]+)/)?.[1],n=t==="new"?void 0:t,i=e?.workspaceId??n;if(e?.tab&&a.searchParams.set("tab",e.tab),e?.specialist&&a.searchParams.set("specialist",e.specialist),e?.view&&a.searchParams.set("view",e.view),i&&a.searchParams.set("workspaceId",i),e?.hash&&(a.hash=e.hash),typeof window<"u"&&window.location.pathname==="/settings"){if(e?.tab||e?.specialist||e?.view||e?.workspaceId){const s=new URL(window.location.href);e?.tab&&s.searchParams.set("tab",e.tab),e?.specialist&&s.searchParams.set("specialist",e.specialist),e?.view&&s.searchParams.set("view",e.view),e?.workspaceId&&s.searchParams.set("workspaceId",e.workspaceId),e?.hash&&(s.hash=e.hash),await c(s.toString(),{replaceState:!0});return}if(e?.hash){const s=`#${e.hash}`;window.location.hash===s&&(window.location.hash=""),window.location.hash=s;return}return}await E(a.pathname+a.search+a.hash)}function T(){const e=typeof sessionStorage>"u"?null:sessionStorage.getItem(D);if(e&&e!=="/"&&!R(e))return e;const a=u();return a?`/workspace/${a.id}`:d(o.state)}async function z(){const e=T();r.info("[navigateBackFromSettings] Navigating back to:",e),await O(e)}function u(e){return w.select(o.state).find(a=>a.id!==e&&a.status!=="Archived"&&a.status!=="Deleted")}async function Y(){const e=u();if(e){r.info("[navigateToFirstWorkspace] Showing workspace:",e.id),await v(e.id);return}const a=d(o.state);r.info("[navigateToFirstWorkspace] Navigating to:",a),await c(a)}async function Z(e){const a=u(e);if(a){r.info("[navigateAfterWorkspaceRemoval] Showing workspace:",a.id),await v(a.id);return}const t=d(o.state,e);r.info("[navigateAfterWorkspaceRemoval] Navigating to:",t),await c(t)}const ie=Object.freeze(Object.defineProperty({__proto__:null,clearMainContent:K,closeDrawer:B,findSourcePanelId:C,getSettingsPreviousPath:T,navigateAfterWorkspaceRemoval:Z,navigateBackFromSettings:z,navigateToAgent:L,navigateToFile:U,navigateToFirstWorkspace:Y,navigateToNote:p,navigateToSettings:G,navigateToSpec:M,navigateToTask:H,navigateToTerminal:$},Symbol.toStringTag,{value:"Module"}));export{U as a,Y as b,p as c,G as d,H as e,C as f,d as g,ie as h,_ as i,z as n,re as r,se as w};