@intent-hq/web 2.386.0 → 2.387.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 (325) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{DfgH7-YK.js → -hGB5JIm.js} +1 -1
  3. package/web/app/immutable/chunks/{D5xlMOwU.js → 0Kw0mmSW.js} +1 -1
  4. package/web/app/immutable/chunks/{Pyf1FzKM.js → 2S2jdRaL.js} +1 -1
  5. package/web/app/immutable/chunks/{BCFB88Wl.js → 4EMyw6Bc.js} +1 -1
  6. package/web/app/immutable/chunks/{DIWzdBfB.js → 4T0RCl9z.js} +1 -1
  7. package/web/app/immutable/chunks/{CJEwuNO9.js → 5j6plyZH.js} +1 -1
  8. package/web/app/immutable/chunks/{B9kUdNbG.js → 6NStP9u7.js} +1 -1
  9. package/web/app/immutable/chunks/{DbxqdYAO.js → 7lcZWflB.js} +3 -3
  10. package/web/app/immutable/chunks/{CUeOEnqq.js → 84z5wXrw.js} +1 -1
  11. package/web/app/immutable/chunks/{COBhx_l-.js → AXzVloaq.js} +1 -1
  12. package/web/app/immutable/chunks/{DDdsJrHq.js → AfZNmzF0.js} +1 -1
  13. package/web/app/immutable/chunks/{Dbr8gjWS.js → B-9zOddN.js} +1 -1
  14. package/web/app/immutable/chunks/{D2Tzo4Hp.js → B-bGycam.js} +1 -1
  15. package/web/app/immutable/chunks/{Bf_4e4N2.js → B0RPkrmZ.js} +1 -1
  16. package/web/app/immutable/chunks/{TXPMw3n4.js → B0tiGTFc.js} +1 -1
  17. package/web/app/immutable/chunks/{Bv_0mmoe.js → B1TtNV9x.js} +1 -1
  18. package/web/app/immutable/chunks/{BolJpU8l.js → B1lrKll_.js} +4 -4
  19. package/web/app/immutable/chunks/{DZjSAGjX.js → B2Bshsum.js} +1 -1
  20. package/web/app/immutable/chunks/{Di_ao8Rc.js → B7esq_NU.js} +1 -1
  21. package/web/app/immutable/chunks/{bojY7ttK.js → B9BALnhr.js} +1 -1
  22. package/web/app/immutable/chunks/{DxuwadpA.js → B9guVudk.js} +1 -1
  23. package/web/app/immutable/chunks/{BNJkKc31.js → B9iclnD1.js} +1 -1
  24. package/web/app/immutable/chunks/{ByZL9dMf.js → BAVqPace.js} +1 -1
  25. package/web/app/immutable/chunks/BC6tIXxU.js +1 -0
  26. package/web/app/immutable/chunks/{CfnXjWQL.js → BDSbC3H_.js} +1 -1
  27. package/web/app/immutable/chunks/{hRfDutUE.js → BEuhalzY.js} +1 -1
  28. package/web/app/immutable/chunks/{ico0GHoP.js → BGh7-lCM.js} +13 -13
  29. package/web/app/immutable/chunks/{fC3yz20p.js → BH3eRhvI.js} +1 -1
  30. package/web/app/immutable/chunks/{DOZ82gYM.js → BHqyzGtP.js} +1 -1
  31. package/web/app/immutable/chunks/{Dyx6ysl7.js → BIfjK4Wy.js} +1 -1
  32. package/web/app/immutable/chunks/{3Kr2ijlK.js → BJbm_MWC.js} +1 -1
  33. package/web/app/immutable/chunks/{BCiWc-GH.js → BJfXDnA-.js} +1 -1
  34. package/web/app/immutable/chunks/{3IpMTtMx.js → BKpfaDrr.js} +1 -1
  35. package/web/app/immutable/chunks/{CY0EK8Cm.js → BKqd3SpJ.js} +3 -3
  36. package/web/app/immutable/chunks/{BqCTtUhB.js → BLMhg4vm.js} +1 -1
  37. package/web/app/immutable/chunks/{DFKO8V-Y.js → BLhJfI63.js} +1 -1
  38. package/web/app/immutable/chunks/{9AJtSub0.js → BNDTLRE1.js} +1 -1
  39. package/web/app/immutable/chunks/{COsxNPUV.js → BOyRg328.js} +1 -1
  40. package/web/app/immutable/chunks/{BbWnSSTS.js → BP-cDE7g.js} +1 -1
  41. package/web/app/immutable/chunks/{CF_a5Llj.js → BP6IQXl5.js} +1 -1
  42. package/web/app/immutable/chunks/{DtQHtXEW.js → BQ8hOnRo.js} +1 -1
  43. package/web/app/immutable/chunks/{BCuI_zgX.js → BQhBnAuP.js} +1 -1
  44. package/web/app/immutable/chunks/{COSIRxZC.js → BQmS_6pd.js} +1 -1
  45. package/web/app/immutable/chunks/{Dpvv-9m3.js → BRRnx9NG.js} +1 -1
  46. package/web/app/immutable/chunks/{C8TrySMt.js → BSt1DBgt.js} +1 -1
  47. package/web/app/immutable/chunks/{DY5rw8pn.js → BUsnh1ZW.js} +1 -1
  48. package/web/app/immutable/chunks/{DNDJdxKs.js → BVYisuIY.js} +1 -1
  49. package/web/app/immutable/chunks/{DQvAX2eX.js → BWJopR_X.js} +1 -1
  50. package/web/app/immutable/chunks/{DXDbxM_W.js → BWmQYGJo.js} +1 -1
  51. package/web/app/immutable/chunks/{DhaHSPPQ.js → BWq8kRZa.js} +1 -1
  52. package/web/app/immutable/chunks/{C1La-Fme.js → B_5X6pL_.js} +1 -1
  53. package/web/app/immutable/chunks/{C6Wi6O6n.js → BaOiWDrc.js} +1 -1
  54. package/web/app/immutable/chunks/{Nrq0Uf9_.js → Bajx4HLb.js} +1 -1
  55. package/web/app/immutable/chunks/{i8jM24jD.js → Bbs1UlDC.js} +1 -1
  56. package/web/app/immutable/chunks/{TyVpf8MX.js → Bd8IVx5H.js} +1 -1
  57. package/web/app/immutable/chunks/{DAI6QH7D.js → Be5fV6fq.js} +1 -1
  58. package/web/app/immutable/chunks/{MoxNukrR.js → BevVqXi3.js} +1 -1
  59. package/web/app/immutable/chunks/{BYYtBM5R.js → Bf-yBg_f.js} +1 -1
  60. package/web/app/immutable/chunks/{0y7aytZM.js → BfQFKWzJ.js} +1 -1
  61. package/web/app/immutable/chunks/{BtMIAxno.js → BfhnpOE4.js} +1 -1
  62. package/web/app/immutable/chunks/{DU1c0itA.js → BgKaGgl0.js} +1 -1
  63. package/web/app/immutable/chunks/{D5A9atQX.js → BgV6mURq.js} +2 -2
  64. package/web/app/immutable/chunks/{DY1YVoxv.js → BhFMyG47.js} +1 -1
  65. package/web/app/immutable/chunks/{Df4a242o.js → Bj4IsLvN.js} +1 -1
  66. package/web/app/immutable/chunks/{DZSbMOPJ.js → BlaJXdkI.js} +2 -2
  67. package/web/app/immutable/chunks/{CFdI48b2.js → BmM9C7Gu.js} +1 -1
  68. package/web/app/immutable/chunks/{CGHwi-2H.js → BoGNoNFW.js} +1 -1
  69. package/web/app/immutable/chunks/{3LCOBHm6.js → BoUQWR1c.js} +1 -1
  70. package/web/app/immutable/chunks/{Cwg3XF5F.js → BoZ2kJyE.js} +1 -1
  71. package/web/app/immutable/chunks/{DBwdk2-0.js → BpNCDrL-.js} +1 -1
  72. package/web/app/immutable/chunks/{B1xM1EBM.js → BpPZlehu.js} +1 -1
  73. package/web/app/immutable/chunks/{Dde9Z_vp.js → BpXDXz8J.js} +1 -1
  74. package/web/app/immutable/chunks/{BPDyvu9A.js → BpiO5nnh.js} +1 -1
  75. package/web/app/immutable/chunks/{DX2U4Mz9.js → BpwKnO7b.js} +3 -3
  76. package/web/app/immutable/chunks/{CQ5BHnSj.js → Bq7euxCs.js} +1 -1
  77. package/web/app/immutable/chunks/{Bk14_fvY.js → BsCPiCkz.js} +1 -1
  78. package/web/app/immutable/chunks/{CGUVvS8r.js → Bsdq-idi.js} +1 -1
  79. package/web/app/immutable/chunks/{DEKjIPd8.js → Bstq-Mm1.js} +1 -1
  80. package/web/app/immutable/chunks/{DcMTwn77.js → Bt9izmhQ.js} +1 -1
  81. package/web/app/immutable/chunks/BtUFJg3H.js +1 -0
  82. package/web/app/immutable/chunks/{DxWgWHgi.js → BtchneSc.js} +1 -1
  83. package/web/app/immutable/chunks/{6SOEgr71.js → BteojGYq.js} +3 -3
  84. package/web/app/immutable/chunks/{DOir9M0E.js → Btsk8yXd.js} +1 -1
  85. package/web/app/immutable/chunks/{QA00-uqv.js → Bu67WlMm.js} +1 -1
  86. package/web/app/immutable/chunks/{aixoUWDq.js → BuXXIZt7.js} +1 -1
  87. package/web/app/immutable/chunks/{E8oicBhU.js → BudPFdIj.js} +1 -1
  88. package/web/app/immutable/chunks/{DJb2lMGn.js → BvjgIPau.js} +1 -1
  89. package/web/app/immutable/chunks/{Dh-HeAnQ.js → BxTCsbTV.js} +1 -1
  90. package/web/app/immutable/chunks/{maZzJmVw.js → C2zt__Wj.js} +1 -1
  91. package/web/app/immutable/chunks/{BdY8OnZP.js → C4JyfUH_.js} +1 -1
  92. package/web/app/immutable/chunks/{v7JbBbwR.js → C4S7j2UJ.js} +1 -1
  93. package/web/app/immutable/chunks/{DcLVN86K.js → C64UuXDx.js} +1 -1
  94. package/web/app/immutable/chunks/{h5ZeHogL.js → C7JeHEH2.js} +1 -1
  95. package/web/app/immutable/chunks/{Ksiiix3Q.js → C7ajdkO4.js} +1 -1
  96. package/web/app/immutable/chunks/{CM9GoLV5.js → C7dAe4yg.js} +1 -1
  97. package/web/app/immutable/chunks/{IG43rVtJ.js → C8guha5a.js} +1 -1
  98. package/web/app/immutable/chunks/{Bb8ARnaK.js → C9wBKZsV.js} +1 -1
  99. package/web/app/immutable/chunks/{BCVhFPNJ.js → CA_3gGLy.js} +1 -1
  100. package/web/app/immutable/chunks/{DaOKbar2.js → CB-znH8P.js} +2 -2
  101. package/web/app/immutable/chunks/{BIcof04i.js → CB2VKTMK.js} +1 -1
  102. package/web/app/immutable/chunks/{bIL0xbKX.js → CBbdbU2x.js} +1 -1
  103. package/web/app/immutable/chunks/{EQgYvydQ.js → CEap7Fwz.js} +1 -1
  104. package/web/app/immutable/chunks/{lSLkjC_I.js → CG28d89U.js} +1 -1
  105. package/web/app/immutable/chunks/{DgzMHcMD.js → CGPxDdZI.js} +1 -1
  106. package/web/app/immutable/chunks/{DeY70dof.js → CGdXewiA.js} +1 -1
  107. package/web/app/immutable/chunks/{C6afU4he.js → CHKOALDI.js} +1 -1
  108. package/web/app/immutable/chunks/{CdGl_2eX.js → CIWQMI37.js} +1 -1
  109. package/web/app/immutable/chunks/{BRPJcG-m.js → CIlqcFRn.js} +1 -1
  110. package/web/app/immutable/chunks/{DvnO7gWT.js → CKcb8dge.js} +3 -3
  111. package/web/app/immutable/chunks/{D9_wDL10.js → CLvqNeoi.js} +1 -1
  112. package/web/app/immutable/chunks/{DJJ2Xrlq.js → COVS9Crf.js} +1 -1
  113. package/web/app/immutable/chunks/{COS4Sgoi.js → CP7zJE2f.js} +2 -2
  114. package/web/app/immutable/chunks/{CaMRSd1-.js → CPdyCf2B.js} +1 -1
  115. package/web/app/immutable/chunks/{Cpgxz5sK.js → CQU55hIk.js} +1 -1
  116. package/web/app/immutable/chunks/{Dh438xC0.js → CSdAdmLZ.js} +2 -2
  117. package/web/app/immutable/chunks/{zFAkpaJn.js → CTowDLQa.js} +1 -1
  118. package/web/app/immutable/chunks/{BVyOECUU.js → CV5qbjYN.js} +1 -1
  119. package/web/app/immutable/chunks/{CFB2mNds.js → CV7mOfKN.js} +2 -2
  120. package/web/app/immutable/chunks/{-8AxW0IA.js → CXCilPkm.js} +3 -3
  121. package/web/app/immutable/chunks/{HcbkpXC1.js → CXkLsKgj.js} +2 -2
  122. package/web/app/immutable/chunks/{BXHbm15d.js → CZB2ndi9.js} +1 -1
  123. package/web/app/immutable/chunks/{CjLfgoGI.js → CZex5Cac.js} +1 -1
  124. package/web/app/immutable/chunks/{7EQMYysM.js → C_-0Y1ed.js} +1 -1
  125. package/web/app/immutable/chunks/{D5evzUZd.js → Caqb9E2M.js} +1 -1
  126. package/web/app/immutable/chunks/{CTTICX_5.js → Ccr7s0GQ.js} +1 -1
  127. package/web/app/immutable/chunks/CeeeYtIE.js +1 -0
  128. package/web/app/immutable/chunks/{De0cdeOU.js → CfIVswBm.js} +1 -1
  129. package/web/app/immutable/chunks/{DQBViT5w.js → CfK5RUHZ.js} +1 -1
  130. package/web/app/immutable/chunks/{CvSLeFQo.js → CfaCrhAh.js} +1 -1
  131. package/web/app/immutable/chunks/{Dm3wAkDL.js → CffZor2V.js} +1 -1
  132. package/web/app/immutable/chunks/{CSb1CnpN.js → CggFXl4B.js} +1 -1
  133. package/web/app/immutable/chunks/{3Qz3qAhk.js → Ci75CkmK.js} +1 -1
  134. package/web/app/immutable/chunks/{BVcaPXq9.js → CisSEUth.js} +1 -1
  135. package/web/app/immutable/chunks/{BHJpo3VA.js → Ck3g194G.js} +1 -1
  136. package/web/app/immutable/chunks/{BPpACIC2.js → CkXORNl2.js} +1 -1
  137. package/web/app/immutable/chunks/{DAVG7sIL.js → CmhKJ6Ie.js} +1 -1
  138. package/web/app/immutable/chunks/{CnQVxh95.js → Cn034oEm.js} +1 -1
  139. package/web/app/immutable/chunks/{tHETzssD.js → CndJcn8K.js} +1 -1
  140. package/web/app/immutable/chunks/{DdjeekcY.js → CnqyGFOt.js} +1 -1
  141. package/web/app/immutable/chunks/{BIkt0YE0.js → Co9CFvqw.js} +1 -1
  142. package/web/app/immutable/chunks/{BYJh9adv.js → Cq8MD_3v.js} +1 -1
  143. package/web/app/immutable/chunks/{BmLlDCoW.js → CrL2Nk6a.js} +1 -1
  144. package/web/app/immutable/chunks/{Bu3PKqut.js → CrpUtGFn.js} +1 -1
  145. package/web/app/immutable/chunks/{BNFvOw36.js → CrwLq8nY.js} +1 -1
  146. package/web/app/immutable/chunks/{Drf1gLyo.js → Cw2fqKk9.js} +1 -1
  147. package/web/app/immutable/chunks/{FQkCsxt2.js → CwCTYQp7.js} +1 -1
  148. package/web/app/immutable/chunks/{24f6N9l0.js → CwGPCWH6.js} +1 -1
  149. package/web/app/immutable/chunks/{awY5HvZY.js → CxCmx5S0.js} +1 -1
  150. package/web/app/immutable/chunks/{CaHWSiOY.js → CzFfpwQB.js} +1 -1
  151. package/web/app/immutable/chunks/{HeVxSGdr.js → CzRhnymD.js} +1 -1
  152. package/web/app/immutable/chunks/{mRUS_S7Z.js → CzTSi5lc.js} +1 -1
  153. package/web/app/immutable/chunks/{BGo6FK-0.js → CzjElr82.js} +1 -1
  154. package/web/app/immutable/chunks/{DSDM77x3.js → D-6Jv2pD.js} +1 -1
  155. package/web/app/immutable/chunks/{BKFxm3WK.js → D-DyBHf9.js} +1 -1
  156. package/web/app/immutable/chunks/{Z8DHXl17.js → D0hLqQX-.js} +1 -1
  157. package/web/app/immutable/chunks/{B18ybwa0.js → D1YPh_5n.js} +1 -1
  158. package/web/app/immutable/chunks/{PkPZtGfM.js → D25lWS8Q.js} +1 -1
  159. package/web/app/immutable/chunks/{yqEyUNVG.js → D2kIeaeO.js} +1 -1
  160. package/web/app/immutable/chunks/{C4M_mNFP.js → D2y-zN_4.js} +1 -1
  161. package/web/app/immutable/chunks/{UQ6MIVTw.js → D3waRWO1.js} +1 -1
  162. package/web/app/immutable/chunks/{2aKRVAvL.js → D48_y-cl.js} +1 -1
  163. package/web/app/immutable/chunks/{x-RVzKqZ.js → D49zWKPf.js} +1 -1
  164. package/web/app/immutable/chunks/{dFhS46gw.js → D55LTeKe.js} +1 -1
  165. package/web/app/immutable/chunks/{DbUDL_oo.js → D57Jyp6W.js} +1 -1
  166. package/web/app/immutable/chunks/{CIoJPvjg.js → D5wnbxHp.js} +1 -1
  167. package/web/app/immutable/chunks/{BhtJVlVx.js → D67AA9yd.js} +1 -1
  168. package/web/app/immutable/chunks/{B-MjuJTx.js → D6Q-N0-R.js} +2 -2
  169. package/web/app/immutable/chunks/{C21Z9LLF.js → D7AX9X0W.js} +1 -1
  170. package/web/app/immutable/chunks/{XMluVOSf.js → D83yV23-.js} +1 -1
  171. package/web/app/immutable/chunks/{BE08e7Se.js → D8BzOeFD.js} +1 -1
  172. package/web/app/immutable/chunks/{BqrahRdk.js → D8bY4ERR.js} +4 -4
  173. package/web/app/immutable/chunks/{BDbFQqI8.js → D9Hjcszu.js} +3 -3
  174. package/web/app/immutable/chunks/{DC1xYxUn.js → D9M659lc.js} +1 -1
  175. package/web/app/immutable/chunks/{Ly7eBIj5.js → D9MZU0Xg.js} +1 -1
  176. package/web/app/immutable/chunks/{CW979n9w.js → DC1CSztK.js} +1 -1
  177. package/web/app/immutable/chunks/{BeUuk8D1.js → DCkRL43S.js} +1 -1
  178. package/web/app/immutable/chunks/{0b3rkAam.js → DEQDOTA1.js} +1 -1
  179. package/web/app/immutable/chunks/{W05hyx94.js → DIEHuZ8f.js} +1 -1
  180. package/web/app/immutable/chunks/{DIad5c9_.js → DINctf8I.js} +1 -1
  181. package/web/app/immutable/chunks/{DsOS7N8Z.js → DIcuhccs.js} +1 -1
  182. package/web/app/immutable/chunks/{CJke1tnU.js → DIoT8eB4.js} +1 -1
  183. package/web/app/immutable/chunks/{Bb-hI5du.js → DJKfrY8C.js} +2 -2
  184. package/web/app/immutable/chunks/{CIKXOyvw.js → DJivXy66.js} +2 -2
  185. package/web/app/immutable/chunks/{BthojcF8.js → DL95yZo7.js} +6 -6
  186. package/web/app/immutable/chunks/DLO_0egf.js +1 -0
  187. package/web/app/immutable/chunks/{CnMzOGNL.js → DLs3P_Wt.js} +1 -1
  188. package/web/app/immutable/chunks/{UnM4qztD.js → DLttsd3i.js} +1 -1
  189. package/web/app/immutable/chunks/{DGdWzkgm.js → DMV5KQix.js} +1 -1
  190. package/web/app/immutable/chunks/{yy2JFRyT.js → DMlhLPB0.js} +1 -1
  191. package/web/app/immutable/chunks/DP0K41jk.js +1 -0
  192. package/web/app/immutable/chunks/{21kfe-mS.js → DPG1HUgG.js} +1 -1
  193. package/web/app/immutable/chunks/{r5JNAzEM.js → DPjr22dV.js} +1 -1
  194. package/web/app/immutable/chunks/{CZ5zON0R.js → DPmNtGFj.js} +1 -1
  195. package/web/app/immutable/chunks/{ChKOG1mU.js → DQZhKtkC.js} +1 -1
  196. package/web/app/immutable/chunks/{B8foSZsl.js → DRLJuUwT.js} +1 -1
  197. package/web/app/immutable/chunks/{COlfJVPs.js → DTtB67Qo.js} +4 -4
  198. package/web/app/immutable/chunks/{Bn4F-JIh.js → DU1ubslo.js} +1 -1
  199. package/web/app/immutable/chunks/{BB-hf8IY.js → DW_seDlm.js} +4 -4
  200. package/web/app/immutable/chunks/{BcYVm7io.js → DWqaYE81.js} +1 -1
  201. package/web/app/immutable/chunks/{C9ij7Z2h.js → D_5u7gP_.js} +1 -1
  202. package/web/app/immutable/chunks/{_HPNXgkR.js → D_j4wRX_.js} +3 -3
  203. package/web/app/immutable/chunks/{CB8gRmKb.js → Da6yJ5JS.js} +1 -1
  204. package/web/app/immutable/chunks/{BOnTc4ny.js → Dcnwzgw6.js} +1 -1
  205. package/web/app/immutable/chunks/{BWI85bGY.js → Dd3UnPYB.js} +1 -1
  206. package/web/app/immutable/chunks/{CYq58ltZ.js → DdLy5J3P.js} +1 -1
  207. package/web/app/immutable/chunks/{BD7jFvJp.js → Ddc7chXR.js} +1 -1
  208. package/web/app/immutable/chunks/{DdRupUfV.js → Dde5tnWd.js} +2 -2
  209. package/web/app/immutable/chunks/{CRUcTVFP.js → DezlVQ1h.js} +1 -1
  210. package/web/app/immutable/chunks/{OMssb4xF.js → Dga6E45c.js} +1 -1
  211. package/web/app/immutable/chunks/{CLqqc_hU.js → Dgmou2n8.js} +1 -1
  212. package/web/app/immutable/chunks/{BoEcbLG-.js → DgtVALrr.js} +1 -1
  213. package/web/app/immutable/chunks/{BRdQpeCl.js → DkERMj5B.js} +1 -1
  214. package/web/app/immutable/chunks/{A3z9XWMi.js → DkJYBjJg.js} +1 -1
  215. package/web/app/immutable/chunks/{Djah0WfC.js → DkOk28fz.js} +1 -1
  216. package/web/app/immutable/chunks/{kAav5o2h.js → Dk_Hc5oq.js} +1 -1
  217. package/web/app/immutable/chunks/{CyHe7TdT.js → DmpdpJAo.js} +1 -1
  218. package/web/app/immutable/chunks/{DIQ-xR1q.js → Do-SaITx.js} +1 -1
  219. package/web/app/immutable/chunks/{DyLERSuu.js → DqfdHjn7.js} +1 -1
  220. package/web/app/immutable/chunks/{YbqMJoDi.js → DrStWuxU.js} +1 -1
  221. package/web/app/immutable/chunks/{CsilY7l9.js → DtkIwON_.js} +1 -1
  222. package/web/app/immutable/chunks/{-VR23WhZ.js → DujtjgwV.js} +1 -1
  223. package/web/app/immutable/chunks/{Y_tkjygB.js → DwGyIIXK.js} +1 -1
  224. package/web/app/immutable/chunks/{LdXAlc1O.js → DwbEs_9r.js} +1 -1
  225. package/web/app/immutable/chunks/{CvusaaYc.js → DwiE5WsI.js} +1 -1
  226. package/web/app/immutable/chunks/{Cpw2gXhG.js → Dx1ZiLP_.js} +1 -1
  227. package/web/app/immutable/chunks/{BW2en5Js.js → DxSE2XEK.js} +1 -1
  228. package/web/app/immutable/chunks/{jyNUu-ZR.js → DxnZvDv0.js} +1 -1
  229. package/web/app/immutable/chunks/{Bx7gCv2M.js → Dy9FYRX8.js} +1 -1
  230. package/web/app/immutable/chunks/{C6rz0msZ.js → DzI8RUwZ.js} +1 -1
  231. package/web/app/immutable/chunks/{rsUVVEzx.js → ELYZilX0.js} +1 -1
  232. package/web/app/immutable/chunks/{BlRGZv8u.js → FLpsgWeB.js} +1 -1
  233. package/web/app/immutable/chunks/{BweHPPaS.js → FhJRiT1S.js} +2 -2
  234. package/web/app/immutable/chunks/{BpLxj3s3.js → HLNbJ-7M.js} +1 -1
  235. package/web/app/immutable/chunks/{D22j4iWy.js → Hi2H4bj8.js} +1 -1
  236. package/web/app/immutable/chunks/{UqcU95a7.js → Idk978zJ.js} +1 -1
  237. package/web/app/immutable/chunks/{C_wfHKmM.js → Ii0VTY5h.js} +1 -1
  238. package/web/app/immutable/chunks/{CTqRHXfu.js → ItBm4ElA.js} +1 -1
  239. package/web/app/immutable/chunks/{Dduwpj0a.js → Jk9a4xPx.js} +1 -1
  240. package/web/app/immutable/chunks/{yMcNgg0D.js → KlNP4OZJ.js} +1 -1
  241. package/web/app/immutable/chunks/{B0kNPCxU.js → KtEuoG00.js} +1 -1
  242. package/web/app/immutable/chunks/{Btst3lgy.js → L3K71tUU.js} +1 -1
  243. package/web/app/immutable/chunks/{DzpuLv6U.js → Lk7a_7W9.js} +1 -1
  244. package/web/app/immutable/chunks/{DpxbS0Pj.js → Mmc_61iE.js} +1 -1
  245. package/web/app/immutable/chunks/{DrkDJmY5.js → NpwlBTfT.js} +1 -1
  246. package/web/app/immutable/chunks/{7i0OJtNQ.js → R5lmOJFS.js} +1 -1
  247. package/web/app/immutable/chunks/{8jO_MBKF.js → RTRAqswA.js} +1 -1
  248. package/web/app/immutable/chunks/{DpESY8ko.js → UYAhegVx.js} +1 -1
  249. package/web/app/immutable/chunks/{CUA9hM4m.js → UsbmbYa0.js} +1 -1
  250. package/web/app/immutable/chunks/{DyXOhKE5.js → VcnbZvDh.js} +1 -1
  251. package/web/app/immutable/chunks/{TN7R9Ny0.js → WoPFTWyQ.js} +1 -1
  252. package/web/app/immutable/chunks/{77KTvr2w.js → WvHbj6rB.js} +1 -1
  253. package/web/app/immutable/chunks/{BbfEcBPg.js → Y2a1lhL9.js} +1 -1
  254. package/web/app/immutable/chunks/{D6_ybykj.js → YFBzMq6w.js} +1 -1
  255. package/web/app/immutable/chunks/YLhFQnIu.js +1 -0
  256. package/web/app/immutable/chunks/{VTJf_qPn.js → YeOAvjnW.js} +1 -1
  257. package/web/app/immutable/chunks/{BwVjpKmH.js → Yz7dkp3Z.js} +1 -1
  258. package/web/app/immutable/chunks/{BrDfJqC4.js → _3Ca9E4W.js} +1 -1
  259. package/web/app/immutable/chunks/{BdlYeRHB.js → aoPstOyp.js} +2 -2
  260. package/web/app/immutable/chunks/{B4F7GG5Q.js → bs-TVtqR.js} +1 -1
  261. package/web/app/immutable/chunks/{DjNuITHM.js → cEIzYo-d.js} +1 -1
  262. package/web/app/immutable/chunks/{QIFiwjW0.js → cHm1EnSF.js} +3 -3
  263. package/web/app/immutable/chunks/{B-4i031c.js → cKeJwK9J.js} +1 -1
  264. package/web/app/immutable/chunks/{cfiNEg68.js → cPsAlOmH.js} +1 -1
  265. package/web/app/immutable/chunks/{CPWMushE.js → d028N8d2.js} +1 -1
  266. package/web/app/immutable/chunks/{CDxV78M0.js → eJwA1uvO.js} +1 -1
  267. package/web/app/immutable/chunks/{DlMrAlfA.js → g08hegP2.js} +1 -1
  268. package/web/app/immutable/chunks/{D7yetF0v.js → gwv5JQYH.js} +1 -1
  269. package/web/app/immutable/chunks/{Cerl373K.js → iAKTK0Nq.js} +1 -1
  270. package/web/app/immutable/chunks/{BxU747mj.js → j5ppcWWU.js} +1 -1
  271. package/web/app/immutable/chunks/{E1uoF1cW.js → jAIXVFR4.js} +1 -1
  272. package/web/app/immutable/chunks/{B3OJ_2Dd.js → kvtKUeBe.js} +1 -1
  273. package/web/app/immutable/chunks/{B3JbrKDZ.js → lZ7zkdkp.js} +1 -1
  274. package/web/app/immutable/chunks/{DpvQ3NRH.js → mUNs8NSR.js} +1 -1
  275. package/web/app/immutable/chunks/{Bax102l4.js → nOvpikoA.js} +1 -1
  276. package/web/app/immutable/chunks/{CueOVPTy.js → oBIu7LTI.js} +1 -1
  277. package/web/app/immutable/chunks/{DKupjKLn.js → oVV8Q_Hb.js} +1 -1
  278. package/web/app/immutable/chunks/{BhYFIrRM.js → pHYq50Ny.js} +1 -1
  279. package/web/app/immutable/chunks/{De2a277N.js → ptqq1hqu.js} +1 -1
  280. package/web/app/immutable/chunks/{BjdIR-od.js → qoDJOBiM.js} +1 -1
  281. package/web/app/immutable/chunks/{DzBJS0Lp.js → scTXKJzg.js} +1 -1
  282. package/web/app/immutable/chunks/{Bj4j6g-o.js → tU2KtqMG.js} +1 -1
  283. package/web/app/immutable/chunks/{CDxGu9F5.js → tVmNccZ-.js} +1 -1
  284. package/web/app/immutable/chunks/{9R_52XLX.js → whliLT1v.js} +1 -1
  285. package/web/app/immutable/chunks/{ChOMtuod.js → x2AHvZeQ.js} +1 -1
  286. package/web/app/immutable/chunks/{B2OS2WTh.js → xPYDsdm4.js} +1 -1
  287. package/web/app/immutable/chunks/{DOLX5oss.js → xzksWQ-h.js} +1 -1
  288. package/web/app/immutable/chunks/{Dt3xwKL6.js → yMNZVIZN.js} +2 -2
  289. package/web/app/immutable/chunks/{DgjIVRdE.js → z91bgOZ6.js} +1 -1
  290. package/web/app/immutable/chunks/{Y4bYs1dr.js → z_SeEaJQ.js} +1 -1
  291. package/web/app/immutable/chunks/{hstOawAs.js → zxxqPN9_.js} +1 -1
  292. package/web/app/immutable/entry/{app.gkm8TnXW.js → app.TFdw1N9t.js} +3 -3
  293. package/web/app/immutable/entry/start.CSPHmABT.js +1 -0
  294. package/web/app/immutable/nodes/{0.xKtnYOA2.js → 0.D7LoWNFt.js} +1 -1
  295. package/web/app/immutable/nodes/{1.BMx4VsW1.js → 1.T820Pcdi.js} +1 -1
  296. package/web/app/immutable/nodes/10.TooAJmth.js +39 -0
  297. package/web/app/immutable/nodes/{11._cAIrch_.js → 11.YCt8uKtA.js} +1 -1
  298. package/web/app/immutable/nodes/{12.DOoAvwLA.js → 12.C5GV0W_U.js} +1 -1
  299. package/web/app/immutable/nodes/{13.Coj_sRB4.js → 13.BpCKbOND.js} +1 -1
  300. package/web/app/immutable/nodes/{14.AVrz3ZLQ.js → 14.DomreN-2.js} +3 -3
  301. package/web/app/immutable/nodes/{15.BGK-JRWm.js → 15.BaajVSfs.js} +1 -1
  302. package/web/app/immutable/nodes/{16.CMkcwVoI.js → 16.BcdRdVBS.js} +1 -1
  303. package/web/app/immutable/nodes/{17.BS5un5d0.js → 17.C5h-oNNo.js} +1 -1
  304. package/web/app/immutable/nodes/{18._hTG2-17.js → 18.vgJOUK1N.js} +1 -1
  305. package/web/app/immutable/nodes/{19.DuCFyr_N.js → 19.BBw49idM.js} +2 -2
  306. package/web/app/immutable/nodes/{2.uAqDAg4D.js → 2.CXHTT9vG.js} +4 -4
  307. package/web/app/immutable/nodes/{20.C1pW6BvW.js → 20.CuOgTm-x.js} +1 -1
  308. package/web/app/immutable/nodes/{3.M-EbuqKW.js → 3.CafUSpEU.js} +1 -1
  309. package/web/app/immutable/nodes/{4.ByPZ1Nrn.js → 4.wtpkgmx_.js} +1 -1
  310. package/web/app/immutable/nodes/{5.DKAjjuf7.js → 5.D26Atcdx.js} +1 -1
  311. package/web/app/immutable/nodes/{6.DOc_YxMK.js → 6.uEepPxKF.js} +1 -1
  312. package/web/app/immutable/nodes/{7.gFNAyoNX.js → 7.D-r8R1wS.js} +1 -1
  313. package/web/app/immutable/nodes/{8.C_Kp8pWz.js → 8.ELuFvMEz.js} +1 -1
  314. package/web/app/immutable/nodes/{9.C6HX35Sq.js → 9.tuk9n1NJ.js} +4 -4
  315. package/web/app/version.json +1 -1
  316. package/web/generated/paraglide.js +44 -44
  317. package/web/index.html +18 -18
  318. package/web/app/immutable/chunks/B2LBPAIA.js +0 -1
  319. package/web/app/immutable/chunks/BUTuN2nE.js +0 -1
  320. package/web/app/immutable/chunks/CH-Qi35K.js +0 -1
  321. package/web/app/immutable/chunks/DWvCfaBg.js +0 -1
  322. package/web/app/immutable/chunks/Da8rtzmJ.js +0 -1
  323. package/web/app/immutable/chunks/wBNgrgMC.js +0 -1
  324. package/web/app/immutable/entry/start.CMMmzvCE.js +0 -1
  325. package/web/app/immutable/nodes/10.HyXPJR8g.js +0 -39
@@ -1 +1 @@
1
- import{bm as l}from"./DWvCfaBg.js";import{Jx as a}from"./CIoJPvjg.js";let D=1,d=null;const y=[],m=new Set;function K(){for(const e of m)e(d)}function v(){return typeof document<"u"&&document.activeElement instanceof HTMLElement?document.activeElement:null}function N(e){y.push({...e,id:D++,returnFocus:v()}),d||(d=y.shift()??null,K())}function ee(e){return new Promise(t=>N({kind:"confirm",options:e,resolve:t}))}function te(e){return new Promise(t=>N({kind:"prompt",options:e,resolve:t}))}function ne(e){return m.add(e),e(d),()=>m.delete(e)}function re(e,t){if(!d||d.id!==e)return;const n=d;d=y.shift()??null,n.resolve(t),n.returnFocus?.focus(),K()}const se={IS_AUTHENTICATED:"linear-auth:is-authenticated",START_AUTH:"linear-auth:start-auth",CANCEL_AUTH:"linear-auth:cancel-auth",LOGOUT:"linear-auth:logout",GET_AUTH_STATE:"linear-auth:get-auth-state",GET_STATUS:"linear-auth:get-status",FETCH_MY_ISSUES:"linear-auth:fetch-my-issues",SEARCH_ISSUES:"linear-auth:search-issues"},oe=[{value:"assigned",get label(){return l.linearAuth_filter_assigned_label()},get description(){return l.linearAuth_filter_assigned_description()}},{value:"created",get label(){return l.linearAuth_filter_created_label()},get description(){return l.linearAuth_filter_created_description()}},{value:"subscribed",get label(){return l.linearAuth_filter_subscribed_label()},get description(){return l.linearAuth_filter_subscribed_description()}},{value:"team",get label(){return l.linearAuth_filter_team_label()},get description(){return l.linearAuth_filter_team_description()}},{value:"all",get label(){return l.linearAuth_filter_all_label()},get description(){return l.linearAuth_filter_all_description()}}],ie=a.createSelector(e=>e.linearAuth.operation),ae=a.createSelector((e,t)=>e.linearAuth.operation?.consumerId===t?e.linearAuth.operation:null),ue=a.createSelector(e=>e.linearAuth.operation?.kind==="logout"&&e.linearAuth.operation.status==="pending"),ce=a.createSelector(e=>e.linearAuth.isAuthenticated),le=a.createSelector(e=>e.linearAuth.requiresDaemonAuth),fe=a.createSelector(e=>e.linearAuth.isAuthenticating),de=a.createSelector(e=>e.linearAuth.error),Ae=a.createSelector(e=>e.sentryAuth.operation),_e=a.createSelector((e,t)=>e.sentryAuth.operation?.consumerId===t?e.sentryAuth.operation:null),Ee=a.createSelector(e=>e.sentryAuth.operation?.kind==="logout"&&e.sentryAuth.operation.status==="pending"),he=a.createSelector(e=>e.sentryAuth.isAuthenticated),pe=a.createSelector(e=>e.sentryAuth.organization),Se=a.createSelector(e=>e.sentryAuth.isConnecting),ge=a.createSelector(e=>e.sentryAuth.error),ye="npx not found — install Node.js (with npm) to use Claude Code",H="********",I={claude:"claude-code",codex:"codex",grok:"grok",droid:"droid",auggie:"auggie",cursor:"cursor"},h={claude:"CLAUDE_CONFIG_DIR",codex:"CODEX_HOME"},C={claude:{differentLogin:{set:["CLAUDE_CONFIG_DIR"],optionalSet:[],unset:["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN"]},apiKey:{set:["ANTHROPIC_API_KEY"],optionalSet:["ANTHROPIC_BASE_URL"],unset:["ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN"]},token:{set:["CLAUDE_CODE_OAUTH_TOKEN"],optionalSet:[],unset:["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN"]}},codex:{differentLogin:{set:["CODEX_HOME"],optionalSet:[],unset:["CODEX_ACCESS_TOKEN","CODEX_API_KEY","OPENAI_API_KEY"]},apiKey:{set:["CODEX_API_KEY"],optionalSet:[],unset:["CODEX_ACCESS_TOKEN","OPENAI_API_KEY"]},token:{set:["CODEX_ACCESS_TOKEN"],optionalSet:[],unset:["CODEX_API_KEY","OPENAI_API_KEY"]}},grok:{apiKey:{set:["XAI_API_KEY"],optionalSet:[],unset:[]}},droid:{apiKey:{set:["FACTORY_API_KEY"],optionalSet:[],unset:[]}},auggie:{token:{set:["AUGMENT_SESSION_AUTH"],optionalSet:[],unset:[]}},cursor:{apiKey:{set:["CURSOR_API_KEY"],optionalSet:[],unset:["CURSOR_AUTH_TOKEN"]}}},w=["differentLogin","apiKey","token"];function p(e,t){const n=C[e][t];if(!n)throw new Error(`${e} has no ${t} profile kind`);return n}function U(e){return w.filter(t=>C[e][t]!==void 0)}function me(e){const t=U(e);return t.length===1?t[0]:void 0}function Ie(e,t){return C[e][t]!==void 0}const O="ANTHROPIC_BASE_URL";function F(e){return I[e]}function $(e){return Object.keys(I).find(t=>I[t]===e)}function Oe(e){return e.supportsProfiles===!0&&e.id!==void 0&&$(e.id)!==void 0}function Te(e,t){return p(t,e).set[0]}function Ce(e){return h[e]!==void 0}function L(e){const t=h[e];if(!t)throw new Error(`${e} has no account folder`);return t}function x(e){return`~/intent/profiles/${e}`}const A=e=>e.toUpperCase();function ke(e,t){if(t.length===0)return"advanced";const n=new Set,s=new Set;for(const r of t){const o=A(r.key);if(n.has(o)||s.has(o))return"advanced";(r.kind==="set"?n:s).add(o)}for(const r of U(e))if(M(p(e,r),n,s))return r==="differentLogin"&&!X(e,t)?"advanced":r;return"advanced"}function M(e,t,n){const s=e.set.map(A),r=new Set([...s,...e.optionalSet.map(A)]);if(!s.every(i=>t.has(i))||![...t].every(i=>r.has(i)))return!1;const o=new Set(e.unset.map(A));return[...n].every(i=>o.has(i))}function X(e,t){if(!h[e])return!1;const n=Y(e,t);return n!==void 0&&n!==""&&n!==H}function Y(e,t){const n=h[e];if(!n)return;const s=A(n),r=t.find(o=>o.kind==="set"&&A(o.key)===s);return r?.kind==="set"?r.value:void 0}const z=32;function G(e){return e.normalize("NFKD").replace(/\p{M}/gu,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,z).replace(/-+$/g,"")||"profile"}const S="abcdefghijklmnopqrstuvwxyz0123456789",B=4;function P(){const e=new Uint32Array(1);return globalThis.crypto.getRandomValues(e),e[0]/2**32}function q(e=P){let t="";for(let n=0;n<B;n++){const s=Math.min(S.length-1,Math.floor(e()*S.length));t+=S[s]}return t}const V=64;function Ke(e,t,n,s=P){const r=new Set([...n].map(i=>i.toLowerCase())),o=G(t);for(let i=0;i<V;i++){const c=`${o}-${q(s)}`;if(!r.has(c))return`${x(e)}/${c}`}throw new Error(`No unused profile folder found for "${o}"`)}function J(e){return e.map(t=>({key:t,kind:"unset"}))}function E(e,t){const n=e?.trim()??"";if(!n)throw new Error(`Missing ${t}`);return n}function Ne(e,t,n){const s=p(t,e),r=[];if(e==="differentLogin")r.push({key:L(t),kind:"set",value:E(n.folder,"folder")});else if(e==="apiKey"){r.push({key:s.set[0],kind:"set",value:T(t,e,E(n.apiKey,"API key"))});const o=n.baseUrl?.trim();o&&t==="claude"&&r.push({key:O,kind:"set",value:o})}else r.push({key:s.set[0],kind:"set",value:T(t,e,E(n.token,"token"))});return{baseProviderId:F(t),name:n.name.trim(),backup:n.backup??!1,env:[...r,...J(s.unset)]}}function Ue(e,t,n,s={}){const r=p(t,e),o=(u,f)=>n.find(_=>_.kind===f&&A(_.key)===A(u))?.key,i=(u,f)=>{const _=o(u,"set");if(f!==void 0){const k=E(f,u);return{key:_??u,kind:"set",value:e==="differentLogin"?k:T(t,e,k)}}if(!_)throw new Error(`Missing ${u}`);return{key:_,kind:"keep"}},c=[];if(e==="differentLogin")c.push(i(L(t),void 0));else if(e==="apiKey"){c.push(i(r.set[0],s.apiKey));const u=t==="claude"?o(O,"set"):void 0,f=t==="claude"?s.baseUrl:void 0;typeof f=="string"&&f.trim()?c.push({key:u??O,kind:"set",value:f.trim()}):f===void 0&&u&&c.push({key:u,kind:"keep"})}else c.push(i(r.set[0],s.token));for(const u of r.unset)c.push({key:o(u,"unset")??u,kind:"unset"});return c}const g="[A-Za-z0-9_-]+",R=new RegExp(`^${g}\\.${g}\\.${g}$`);function Le(e){return R.test(e.trim())}function Z(e){let t;try{t=JSON.parse(b(e))}catch{return!1}if(typeof t!="object"||t===null||Array.isArray(t))return!1;const n=t;return typeof n.accessToken=="string"&&n.accessToken.trim()!==""&&typeof n.tenantURL=="string"&&/^https:\/\/\S+$/.test(n.tenantURL)&&Array.isArray(n.scopes)}function b(e){const t=e.trim(),n=t.split(/\r?\n/).find(o=>o.trim().startsWith("SESSION="));if(n)return n.trim().slice(8).trim();const s=t.indexOf("{"),r=t.lastIndexOf("}");return s>=0&&r>s?t.slice(s,r+1):t}function T(e,t,n){return e==="auggie"&&t==="token"?b(n):n.trim()}const j={claude:{apiKey:/^sk-ant-api\d*-[A-Za-z0-9_-]{16,}$/,token:/^sk-ant-oat\d*-[A-Za-z0-9_-]{16,}$/},codex:{apiKey:/^sk-(?!ant-)[A-Za-z0-9_-]{20,}$/,token:R},grok:{apiKey:/^xai-[A-Za-z0-9]{20,}$/},droid:{apiKey:/^fk-[A-Za-z0-9_-]{20,}$/},auggie:{token:Z},cursor:{apiKey:/^\S{32,}$/}};function Pe(e,t,n,s={}){const r=n.trim();if(e==="claude"&&t==="apiKey"&&s.customEndpoint)return/^\S+$/.test(r);const o=j[e][t];return o?typeof o=="function"?o(r):o.test(r):!1}function Re(e){if(e==="claude")return"claude auth login";if(e==="codex")return"codex login --device-auth";throw new Error(`${e} has no Different login sign-in`)}export{ue as A,le as B,ye as C,_e as D,Ae as E,ge as F,he as G,Se as H,Ee as I,pe as J,re as K,se as L,H as M,me as N,G as O,ne as P,oe as a,F as b,Ne as c,Ue as d,ee as e,ke as f,L as g,Ce as h,Ie as i,Oe as j,Le as k,Pe as l,Re as m,x as n,U as o,Ke as p,$ as q,te as r,q as s,Y as t,Te as u,ae as v,ie as w,de as x,ce as y,fe as z};
1
+ import{bm as l}from"./YLhFQnIu.js";import{Jx as a}from"./D5wnbxHp.js";let D=1,d=null;const y=[],m=new Set;function K(){for(const e of m)e(d)}function v(){return typeof document<"u"&&document.activeElement instanceof HTMLElement?document.activeElement:null}function N(e){y.push({...e,id:D++,returnFocus:v()}),d||(d=y.shift()??null,K())}function ee(e){return new Promise(t=>N({kind:"confirm",options:e,resolve:t}))}function te(e){return new Promise(t=>N({kind:"prompt",options:e,resolve:t}))}function ne(e){return m.add(e),e(d),()=>m.delete(e)}function re(e,t){if(!d||d.id!==e)return;const n=d;d=y.shift()??null,n.resolve(t),n.returnFocus?.focus(),K()}const se={IS_AUTHENTICATED:"linear-auth:is-authenticated",START_AUTH:"linear-auth:start-auth",CANCEL_AUTH:"linear-auth:cancel-auth",LOGOUT:"linear-auth:logout",GET_AUTH_STATE:"linear-auth:get-auth-state",GET_STATUS:"linear-auth:get-status",FETCH_MY_ISSUES:"linear-auth:fetch-my-issues",SEARCH_ISSUES:"linear-auth:search-issues"},oe=[{value:"assigned",get label(){return l.linearAuth_filter_assigned_label()},get description(){return l.linearAuth_filter_assigned_description()}},{value:"created",get label(){return l.linearAuth_filter_created_label()},get description(){return l.linearAuth_filter_created_description()}},{value:"subscribed",get label(){return l.linearAuth_filter_subscribed_label()},get description(){return l.linearAuth_filter_subscribed_description()}},{value:"team",get label(){return l.linearAuth_filter_team_label()},get description(){return l.linearAuth_filter_team_description()}},{value:"all",get label(){return l.linearAuth_filter_all_label()},get description(){return l.linearAuth_filter_all_description()}}],ie=a.createSelector(e=>e.linearAuth.operation),ae=a.createSelector((e,t)=>e.linearAuth.operation?.consumerId===t?e.linearAuth.operation:null),ue=a.createSelector(e=>e.linearAuth.operation?.kind==="logout"&&e.linearAuth.operation.status==="pending"),ce=a.createSelector(e=>e.linearAuth.isAuthenticated),le=a.createSelector(e=>e.linearAuth.requiresDaemonAuth),fe=a.createSelector(e=>e.linearAuth.isAuthenticating),de=a.createSelector(e=>e.linearAuth.error),Ae=a.createSelector(e=>e.sentryAuth.operation),_e=a.createSelector((e,t)=>e.sentryAuth.operation?.consumerId===t?e.sentryAuth.operation:null),Ee=a.createSelector(e=>e.sentryAuth.operation?.kind==="logout"&&e.sentryAuth.operation.status==="pending"),he=a.createSelector(e=>e.sentryAuth.isAuthenticated),pe=a.createSelector(e=>e.sentryAuth.organization),Se=a.createSelector(e=>e.sentryAuth.isConnecting),ge=a.createSelector(e=>e.sentryAuth.error),ye="npx not found — install Node.js (with npm) to use Claude Code",H="********",I={claude:"claude-code",codex:"codex",grok:"grok",droid:"droid",auggie:"auggie",cursor:"cursor"},h={claude:"CLAUDE_CONFIG_DIR",codex:"CODEX_HOME"},C={claude:{differentLogin:{set:["CLAUDE_CONFIG_DIR"],optionalSet:[],unset:["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN"]},apiKey:{set:["ANTHROPIC_API_KEY"],optionalSet:["ANTHROPIC_BASE_URL"],unset:["ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN"]},token:{set:["CLAUDE_CODE_OAUTH_TOKEN"],optionalSet:[],unset:["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN"]}},codex:{differentLogin:{set:["CODEX_HOME"],optionalSet:[],unset:["CODEX_ACCESS_TOKEN","CODEX_API_KEY","OPENAI_API_KEY"]},apiKey:{set:["CODEX_API_KEY"],optionalSet:[],unset:["CODEX_ACCESS_TOKEN","OPENAI_API_KEY"]},token:{set:["CODEX_ACCESS_TOKEN"],optionalSet:[],unset:["CODEX_API_KEY","OPENAI_API_KEY"]}},grok:{apiKey:{set:["XAI_API_KEY"],optionalSet:[],unset:[]}},droid:{apiKey:{set:["FACTORY_API_KEY"],optionalSet:[],unset:[]}},auggie:{token:{set:["AUGMENT_SESSION_AUTH"],optionalSet:[],unset:[]}},cursor:{apiKey:{set:["CURSOR_API_KEY"],optionalSet:[],unset:["CURSOR_AUTH_TOKEN"]}}},w=["differentLogin","apiKey","token"];function p(e,t){const n=C[e][t];if(!n)throw new Error(`${e} has no ${t} profile kind`);return n}function U(e){return w.filter(t=>C[e][t]!==void 0)}function me(e){const t=U(e);return t.length===1?t[0]:void 0}function Ie(e,t){return C[e][t]!==void 0}const O="ANTHROPIC_BASE_URL";function F(e){return I[e]}function $(e){return Object.keys(I).find(t=>I[t]===e)}function Oe(e){return e.supportsProfiles===!0&&e.id!==void 0&&$(e.id)!==void 0}function Te(e,t){return p(t,e).set[0]}function Ce(e){return h[e]!==void 0}function L(e){const t=h[e];if(!t)throw new Error(`${e} has no account folder`);return t}function x(e){return`~/intent/profiles/${e}`}const A=e=>e.toUpperCase();function ke(e,t){if(t.length===0)return"advanced";const n=new Set,s=new Set;for(const r of t){const o=A(r.key);if(n.has(o)||s.has(o))return"advanced";(r.kind==="set"?n:s).add(o)}for(const r of U(e))if(M(p(e,r),n,s))return r==="differentLogin"&&!X(e,t)?"advanced":r;return"advanced"}function M(e,t,n){const s=e.set.map(A),r=new Set([...s,...e.optionalSet.map(A)]);if(!s.every(i=>t.has(i))||![...t].every(i=>r.has(i)))return!1;const o=new Set(e.unset.map(A));return[...n].every(i=>o.has(i))}function X(e,t){if(!h[e])return!1;const n=Y(e,t);return n!==void 0&&n!==""&&n!==H}function Y(e,t){const n=h[e];if(!n)return;const s=A(n),r=t.find(o=>o.kind==="set"&&A(o.key)===s);return r?.kind==="set"?r.value:void 0}const z=32;function G(e){return e.normalize("NFKD").replace(/\p{M}/gu,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,z).replace(/-+$/g,"")||"profile"}const S="abcdefghijklmnopqrstuvwxyz0123456789",B=4;function P(){const e=new Uint32Array(1);return globalThis.crypto.getRandomValues(e),e[0]/2**32}function q(e=P){let t="";for(let n=0;n<B;n++){const s=Math.min(S.length-1,Math.floor(e()*S.length));t+=S[s]}return t}const V=64;function Ke(e,t,n,s=P){const r=new Set([...n].map(i=>i.toLowerCase())),o=G(t);for(let i=0;i<V;i++){const c=`${o}-${q(s)}`;if(!r.has(c))return`${x(e)}/${c}`}throw new Error(`No unused profile folder found for "${o}"`)}function J(e){return e.map(t=>({key:t,kind:"unset"}))}function E(e,t){const n=e?.trim()??"";if(!n)throw new Error(`Missing ${t}`);return n}function Ne(e,t,n){const s=p(t,e),r=[];if(e==="differentLogin")r.push({key:L(t),kind:"set",value:E(n.folder,"folder")});else if(e==="apiKey"){r.push({key:s.set[0],kind:"set",value:T(t,e,E(n.apiKey,"API key"))});const o=n.baseUrl?.trim();o&&t==="claude"&&r.push({key:O,kind:"set",value:o})}else r.push({key:s.set[0],kind:"set",value:T(t,e,E(n.token,"token"))});return{baseProviderId:F(t),name:n.name.trim(),backup:n.backup??!1,env:[...r,...J(s.unset)]}}function Ue(e,t,n,s={}){const r=p(t,e),o=(u,f)=>n.find(_=>_.kind===f&&A(_.key)===A(u))?.key,i=(u,f)=>{const _=o(u,"set");if(f!==void 0){const k=E(f,u);return{key:_??u,kind:"set",value:e==="differentLogin"?k:T(t,e,k)}}if(!_)throw new Error(`Missing ${u}`);return{key:_,kind:"keep"}},c=[];if(e==="differentLogin")c.push(i(L(t),void 0));else if(e==="apiKey"){c.push(i(r.set[0],s.apiKey));const u=t==="claude"?o(O,"set"):void 0,f=t==="claude"?s.baseUrl:void 0;typeof f=="string"&&f.trim()?c.push({key:u??O,kind:"set",value:f.trim()}):f===void 0&&u&&c.push({key:u,kind:"keep"})}else c.push(i(r.set[0],s.token));for(const u of r.unset)c.push({key:o(u,"unset")??u,kind:"unset"});return c}const g="[A-Za-z0-9_-]+",R=new RegExp(`^${g}\\.${g}\\.${g}$`);function Le(e){return R.test(e.trim())}function Z(e){let t;try{t=JSON.parse(b(e))}catch{return!1}if(typeof t!="object"||t===null||Array.isArray(t))return!1;const n=t;return typeof n.accessToken=="string"&&n.accessToken.trim()!==""&&typeof n.tenantURL=="string"&&/^https:\/\/\S+$/.test(n.tenantURL)&&Array.isArray(n.scopes)}function b(e){const t=e.trim(),n=t.split(/\r?\n/).find(o=>o.trim().startsWith("SESSION="));if(n)return n.trim().slice(8).trim();const s=t.indexOf("{"),r=t.lastIndexOf("}");return s>=0&&r>s?t.slice(s,r+1):t}function T(e,t,n){return e==="auggie"&&t==="token"?b(n):n.trim()}const j={claude:{apiKey:/^sk-ant-api\d*-[A-Za-z0-9_-]{16,}$/,token:/^sk-ant-oat\d*-[A-Za-z0-9_-]{16,}$/},codex:{apiKey:/^sk-(?!ant-)[A-Za-z0-9_-]{20,}$/,token:R},grok:{apiKey:/^xai-[A-Za-z0-9]{20,}$/},droid:{apiKey:/^fk-[A-Za-z0-9_-]{20,}$/},auggie:{token:Z},cursor:{apiKey:/^\S{32,}$/}};function Pe(e,t,n,s={}){const r=n.trim();if(e==="claude"&&t==="apiKey"&&s.customEndpoint)return/^\S+$/.test(r);const o=j[e][t];return o?typeof o=="function"?o(r):o.test(r):!1}function Re(e){if(e==="claude")return"claude auth login";if(e==="codex")return"codex login --device-auth";throw new Error(`${e} has no Different login sign-in`)}export{ue as A,le as B,ye as C,_e as D,Ae as E,ge as F,he as G,Se as H,Ee as I,pe as J,re as K,se as L,H as M,me as N,G as O,ne as P,oe as a,F as b,Ne as c,Ue as d,ee as e,ke as f,L as g,Ce as h,Ie as i,Oe as j,Le as k,Pe as l,Re as m,x as n,U as o,Ke as p,$ as q,te as r,q as s,Y as t,Te as u,ae as v,ie as w,de as x,ce as y,fe as z};
@@ -1 +1 @@
1
- import{Jx as o,mi as C,nY as E,nB as L,JC as W}from"./CIoJPvjg.js";import{w as z}from"./Dms_DO28.js";import{dH as H,dL as f}from"./3Kr2ijlK.js";const a=o.createSelector((t,e)=>t.fileExplorer.byWorkspaceId[e]??C),D=o.createSelector((t,e,s)=>{const n=E(t.fileExplorer.searches,s);return n?.workspaceId===e?n:void 0}),G=o.createSelector((t,e)=>{const s=a.select(t,e);return s.rootPath?E(s.nodes,s.rootPath)??null:null}),J=o.createSelector((t,e)=>a.select(t,e).nodes.map),M=o.createSelector((t,e)=>a.select(t,e).isLoading),R=o.createSelector((t,e)=>a.select(t,e).isInitialized),q=o.createSelector((t,e)=>a.select(t,e).error),K=o.createSelector((t,e)=>a.select(t,e).fileCount),O=o.createSelector((t,e)=>a.select(t,e).gitStatus),g=o.createSelector((t,e)=>{const s=H.select(t,e);return s?.worktreePath||s?.repositoryPath||s?.path||""}),V=o.createSelector((t,e)=>{const s=a.select(t,e);return{workspacePath:g.select(t,e),currentWorkspacePath:s.workspacePath,isLoading:s.isLoading,isInitialized:s.isInitialized}});o.createSelector((t,e)=>e?{wsId:e,workspacePath:g.select(t,e),workspaceEnvironmentConfig:f.select(t,e)}:{wsId:null,workspacePath:"",workspaceEnvironmentConfig:void 0});const Y=o.createSelector((t,e,s)=>a.select(t,e).expandedPaths.includes(s)),A=o.createSelector((t,e,s)=>a.select(t,e).loadingPaths.includes(s)),Q=o.createSelector((t,e)=>{const s=a.select(t,e);return s.expandedPaths.some(n=>n!==s.workspacePath)}),T=o.createSelector((t,e)=>{const s=g.select(t,e);if(!s)return!1;const n=a.select(t,e),p=f.select(t,e);return n.workspacePath!==s?!0:n.isLoading?!1:n.isInitialized?p?.type==="remote"&&!n.isRemoteInitialized:!0}),F=new WeakMap,U=o.createSelector((t,e)=>{const s=a.select(t,e);if(!s.rootPath)return[];const n=E(s.nodes,s.rootPath);if(!n)return[];const p=new Set(s.expandedPaths),y=new Set(s.loadingPaths),I=L(s.nodes,n.children,p,y),{agentFileEdits:v,workspacePath:P,gitStatus:x}=s,S=new Set;for(const r of Object.keys(x)){const i=r.split("/");for(let l=1;l<i.length;l++)S.add(i.slice(0,l).join("/"))}return I.map(r=>{let i=r.node.path;if(P){const w=W(r.node.path,P);w!==r.node.path&&(i=w)}const l=r.node.type==="file",c=v[i],d=l?x[i]:void 0,h=!l&&S.has(i),k={isExpanded:r.isExpanded,isLoading:r.isLoading,agentEdits:c&&c.length>0?c:void 0,gitStatus:d,directoryHasChanges:h,displayPath:r.displayPath,compactedExpandedPathsKey:r.compactedExpandedPaths?.join("\0"),depth:r.depth},u=F.get(r.node);if(u&&z(u.inputs,k))return u.result;const m=c&&c.length>0||d!==void 0||h?{node:r.node,depth:r.depth,displayPath:r.displayPath,...r.compactedExpandedPaths?{compactedExpandedPaths:r.compactedExpandedPaths}:{},isExpanded:r.isExpanded,isLoading:r.isLoading,...c&&c.length>0?{agentEdits:c}:{},...d!==void 0?{gitStatus:d}:{},...h?{directoryHasChanges:!0}:{}}:r;return F.set(r.node,{inputs:k,result:m}),m})});export{q as a,K as b,O as c,V as d,R as e,M as f,J as g,G as h,D as i,a as j,U as k,Q as l,Y as m,A as n,T as o,g as s};
1
+ import{Jx as o,mi as C,nY as E,nB as L,JC as W}from"./D5wnbxHp.js";import{w as z}from"./Dms_DO28.js";import{dH as H,dL as f}from"./BJbm_MWC.js";const a=o.createSelector((t,e)=>t.fileExplorer.byWorkspaceId[e]??C),D=o.createSelector((t,e,s)=>{const n=E(t.fileExplorer.searches,s);return n?.workspaceId===e?n:void 0}),G=o.createSelector((t,e)=>{const s=a.select(t,e);return s.rootPath?E(s.nodes,s.rootPath)??null:null}),J=o.createSelector((t,e)=>a.select(t,e).nodes.map),M=o.createSelector((t,e)=>a.select(t,e).isLoading),R=o.createSelector((t,e)=>a.select(t,e).isInitialized),q=o.createSelector((t,e)=>a.select(t,e).error),K=o.createSelector((t,e)=>a.select(t,e).fileCount),O=o.createSelector((t,e)=>a.select(t,e).gitStatus),g=o.createSelector((t,e)=>{const s=H.select(t,e);return s?.worktreePath||s?.repositoryPath||s?.path||""}),V=o.createSelector((t,e)=>{const s=a.select(t,e);return{workspacePath:g.select(t,e),currentWorkspacePath:s.workspacePath,isLoading:s.isLoading,isInitialized:s.isInitialized}});o.createSelector((t,e)=>e?{wsId:e,workspacePath:g.select(t,e),workspaceEnvironmentConfig:f.select(t,e)}:{wsId:null,workspacePath:"",workspaceEnvironmentConfig:void 0});const Y=o.createSelector((t,e,s)=>a.select(t,e).expandedPaths.includes(s)),A=o.createSelector((t,e,s)=>a.select(t,e).loadingPaths.includes(s)),Q=o.createSelector((t,e)=>{const s=a.select(t,e);return s.expandedPaths.some(n=>n!==s.workspacePath)}),T=o.createSelector((t,e)=>{const s=g.select(t,e);if(!s)return!1;const n=a.select(t,e),p=f.select(t,e);return n.workspacePath!==s?!0:n.isLoading?!1:n.isInitialized?p?.type==="remote"&&!n.isRemoteInitialized:!0}),F=new WeakMap,U=o.createSelector((t,e)=>{const s=a.select(t,e);if(!s.rootPath)return[];const n=E(s.nodes,s.rootPath);if(!n)return[];const p=new Set(s.expandedPaths),y=new Set(s.loadingPaths),I=L(s.nodes,n.children,p,y),{agentFileEdits:v,workspacePath:P,gitStatus:x}=s,S=new Set;for(const r of Object.keys(x)){const i=r.split("/");for(let l=1;l<i.length;l++)S.add(i.slice(0,l).join("/"))}return I.map(r=>{let i=r.node.path;if(P){const w=W(r.node.path,P);w!==r.node.path&&(i=w)}const l=r.node.type==="file",c=v[i],d=l?x[i]:void 0,h=!l&&S.has(i),k={isExpanded:r.isExpanded,isLoading:r.isLoading,agentEdits:c&&c.length>0?c:void 0,gitStatus:d,directoryHasChanges:h,displayPath:r.displayPath,compactedExpandedPathsKey:r.compactedExpandedPaths?.join("\0"),depth:r.depth},u=F.get(r.node);if(u&&z(u.inputs,k))return u.result;const m=c&&c.length>0||d!==void 0||h?{node:r.node,depth:r.depth,displayPath:r.displayPath,...r.compactedExpandedPaths?{compactedExpandedPaths:r.compactedExpandedPaths}:{},isExpanded:r.isExpanded,isLoading:r.isLoading,...c&&c.length>0?{agentEdits:c}:{},...d!==void 0?{gitStatus:d}:{},...h?{directoryHasChanges:!0}:{}}:r;return F.set(r.node,{inputs:k,result:m}),m})});export{q as a,K as b,O as c,V as d,R as e,M as f,J as g,G as h,D as i,a as j,U as k,Q as l,Y as m,A as n,T as o,g as s};
@@ -1 +1 @@
1
- import{t as u,bo as o,bw as p,bp as b,b as g}from"./DWvCfaBg.js";import{bs as h,a5 as _,bA as v,W as x,bn as w,aA as l,aB as y}from"./3SdAC2_C.js";import{t as S}from"./Bu3PKqut.js";import{b as A,e as C}from"./BCuI_zgX.js";import{b as k}from"./Dn334wJv.js";var B=new Set(["$$slots","$$events","$$legacy","ref","children","class"]),N=y("<section><!></section>");function P(c,t){if(new.target)return u({component:P,...c});h(t,!0);let r=o(t,"ref",15,null),a=o(t,"children",7),n=o(t,"class",7),i=b(t,B);var f={get ref(){return r()},set ref(e=null){r(e),l()},get children(){return a()},set children(e){a(e),l()},get class(){return n()},set class(e){n(e),l()},$set:p,$on:(e,d)=>g(t,e,d)},s=N();A(s,e=>({"data-slot":"screen",class:e,...i}),[()=>C("flex min-h-0 min-w-0 flex-col bg-background text-foreground",n())]);var m=_(s);return S(m,a),v(s),k(s,e=>r(e),()=>r()),x(c,s),w(f)}export{P as S};
1
+ import{t as u,bo as o,bw as p,bp as b,b as g}from"./YLhFQnIu.js";import{bs as h,a5 as _,bA as v,W as x,bn as w,aA as l,aB as y}from"./3SdAC2_C.js";import{t as S}from"./CrpUtGFn.js";import{b as A,e as C}from"./BQhBnAuP.js";import{b as k}from"./Dn334wJv.js";var B=new Set(["$$slots","$$events","$$legacy","ref","children","class"]),N=y("<section><!></section>");function P(c,t){if(new.target)return u({component:P,...c});h(t,!0);let r=o(t,"ref",15,null),a=o(t,"children",7),n=o(t,"class",7),i=b(t,B);var f={get ref(){return r()},set ref(e=null){r(e),l()},get children(){return a()},set children(e){a(e),l()},get class(){return n()},set class(e){n(e),l()},$set:p,$on:(e,d)=>g(t,e,d)},s=N();A(s,e=>({"data-slot":"screen",class:e,...i}),[()=>C("flex min-h-0 min-w-0 flex-col bg-background text-foreground",n())]);var m=_(s);return S(m,a),v(s),k(s,e=>r(e),()=>r()),x(c,s),w(f)}export{P as S};
@@ -1 +1 @@
1
- import{p as e}from"./BCuI_zgX.js";const s=[{id:"input-message-state-matrix",title:"Input message states",states:["helper","error","success","light","dark","reduced-motion"],themes:["light","dark","high-contrast"],viewport:"both",reducedMotion:!0}];e({id:"input-message",source:"src/lib/components/ui/input-message/input-message.svelte",publicImport:"$lib/components/ui/input-message",legacyImports:[],exports:["InputMessage","inputMessageMetadata"],category:"pattern",owner:"design-system",callers:["src/features/hud/components/DockConversationPanel.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte","src/lib/component-catalog/renderers/ScreenStatesCatalogPreview.svelte","src/lib/components/ui/file-input/file-input.svelte","src/lib/components/ui/input-group/input-group.svelte","src/lib/components/ui/input/input.svelte","src/lib/components/ui/textarea/textarea.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/input-message/input-message.test.ts",removalGate:"Retain while helper and error semantics use fast-tier motion.",dynamicImports:[],fixtures:s,useWhen:["Explain a field or announce a validation error directly below its input."]});const t=[{id:"input-state-matrix",title:"Input states",states:["default","rest","hover","focus","empty","placeholder","disabled","read-only","invalid","error","described","keyboard-focus","long-content","light","dark","zoom-200","file","compact-28","medium-32","large-36","reduced-motion"],themes:["light","dark","high-contrast"],viewport:"both",reducedMotion:!0}];e({id:"input",source:"src/lib/components/ui/input/input.svelte",publicImport:"$lib/components/ui/input",legacyImports:["$lib/components/ui/input/index.js","$lib/components/ui/input/input.svelte"],exports:["Input","inputMetadata"],category:"primitive",owner:"007-B2",callers:["src/features/accept-changes/components/NativeReviewAttempt.svelte","src/features/accept-changes/components/NativeSidebarReview.svelte","src/features/accept-changes/components/RepositorySelectionEditor.svelte","src/features/collaboration-auth/renderer/CollaborationSignInModal.svelte","src/features/dev-console/DaemonLinksView.svelte","src/features/dev-console/TrafficInspector.svelte","src/features/discussions/components/DiscussionImagePicker.svelte","src/features/home/HomeNewLabelDialog.svelte","src/features/home/HomeSearch.svelte","src/features/home/assistant-panels.preview.svelte","src/features/host-membership/HostInvitationDialog.svelte","src/features/hud/components/DockOverview.svelte","src/features/hud/media-editor/recording/DockRecordingFrameMarks.svelte","src/features/inline-html/InlineHtmlPreview.svelte","src/features/layout/components/content-header/ContentHeader.svelte","src/features/onboarding/messages/DirectoryPickerView.svelte","src/features/onboarding/messages/GitHubRepoTab.svelte","src/features/onboarding/messages/LocalRepoTab.svelte","src/features/onboarding/messages/NewProjectTab.svelte","src/features/passkeys/PasskeyDialog.svelte","src/features/settings/search/SettingsSearchField.svelte","src/lib/component-catalog/CatalogShell.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte","src/lib/component-catalog/renderers/ModalCatalogPreview.svelte","src/lib/component-catalog/renderers/OverlayCatalogPreview.svelte","src/lib/component-catalog/renderers/PopoversCatalogPreview.svelte","src/lib/component-catalog/renderers/ProposalCatalogPreview.svelte","src/lib/components/CommandPalette.svelte","src/lib/components/GitLabConnectForm.svelte","src/lib/components/browser/BrowserViewerTabHeader.svelte","src/lib/components/browser/BrowserViewportDialog.svelte","src/lib/components/browser/EmbeddedBrowser.svelte","src/lib/components/chat/AgentCard.svelte","src/lib/components/chat/AssistantThreadTitle.svelte","src/lib/components/chat/ChatMessageNavigator.svelte","src/lib/components/chat/TaskProgressControl.svelte","src/lib/components/chat/input/ContextPickerButton.svelte","src/lib/components/chat/input/SimpleRichInput.svelte","src/lib/components/chat/input/mention-results.preview.svelte","src/lib/components/chat/proposals/ProposalCard.svelte","src/lib/components/chat/secrets/SecretRequestCard.svelte","src/lib/components/code-review/walkthrough/WalkthroughCommentThread.svelte","src/lib/components/code-review/walkthrough/WalkthroughInlineComment.svelte","src/lib/components/debug/DebugPanel.svelte","src/lib/components/file-explorer/VirtualizedFileTree.svelte","src/lib/components/file-explorer/file-explorer-sidebar.svelte","src/lib/components/layout/ConnectBackendForm.svelte","src/lib/components/layout/WorkspaceTabGroupChip.svelte","src/lib/components/layout/panel-system/PanelTabBar.svelte","src/lib/components/modals/FeatureCodeDialog.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/confirm/modal-heading-spacing.preview.svelte","src/lib/components/patterns/settings/SettingsControl.svelte","src/lib/components/patterns/settings/custom-controls.ts","src/lib/components/terminal/QuakeTerminalOverlay.svelte","src/lib/components/terminal/RootQuakeTerminalOverlay.svelte","src/lib/components/terminal/SetupScriptBanner.svelte","src/lib/components/terminal/TerminalSidebar.svelte","src/lib/components/tiptap/BubbleMenu.svelte","src/lib/components/ui/EditableName.svelte","src/lib/components/ui/dropdown/Dropdown.svelte","src/lib/components/ui/menu-search.preview.svelte","src/lib/components/ui/message-composer/message-composer.svelte","src/lib/components/ui/panel-find-bar/PanelFindBar.svelte","src/lib/components/ui/searchable-combobox/searchable-combobox.svelte","src/lib/components/ui/select/select.test-harness.svelte","src/lib/components/ui/sidebar/sidebar-input.svelte","src/lib/components/ui/text-entry-focus.preview.svelte","src/lib/components/ui/tooltip/tooltip-audit.preview.svelte","src/lib/components/workspace/CompactWorkspaceInitializer.svelte","src/lib/components/workspace/PullRequestCreator.svelte","src/lib/components/workspace/WorkspaceSidebarHeader.svelte","src/lib/components/workspace/initializer/AddRemoteSetupModal.svelte","src/lib/components/workspace/initializer/GitLabPickerList.svelte","src/lib/components/workspace/initializer/GitLabProjectPicker.svelte","src/lib/components/workspace/initializer/IssueSuggestions.svelte","src/lib/components/workspace/initializer/RepoSelector.svelte","src/lib/components/workspace/sidebar/BranchDisplay.svelte","src/lib/components/workspace/sidebar/CommitsTimeline.svelte","src/lib/components/workspace/sidebar/NotesPanel.svelte","src/lib/components/workspace/sidebar/PRSection.svelte","src/lib/components/workspace/sidebar/SidebarExpandableSearch.svelte","src/lib/components/workspace/sidebar/WorkspaceProgressCard.svelte","src/lib/components/workspace/sidebar/context-picker/BrowserUrlPicker.svelte","src/lib/components/workspace/sidebar/context-picker/LinearPicker.svelte","src/lib/components/workspace/sidebar/context-picker/SentryPicker.svelte","src/routes/sandbox/recipes/+page.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/input/input.test.ts",removalGate:"Retain while exported and binding, focus, validation, and fixture tests pass.",dynamicImports:[],fixtures:t});
1
+ import{p as e}from"./BQhBnAuP.js";const s=[{id:"input-message-state-matrix",title:"Input message states",states:["helper","error","success","light","dark","reduced-motion"],themes:["light","dark","high-contrast"],viewport:"both",reducedMotion:!0}];e({id:"input-message",source:"src/lib/components/ui/input-message/input-message.svelte",publicImport:"$lib/components/ui/input-message",legacyImports:[],exports:["InputMessage","inputMessageMetadata"],category:"pattern",owner:"design-system",callers:["src/features/hud/components/DockConversationPanel.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte","src/lib/component-catalog/renderers/ScreenStatesCatalogPreview.svelte","src/lib/components/ui/file-input/file-input.svelte","src/lib/components/ui/input-group/input-group.svelte","src/lib/components/ui/input/input.svelte","src/lib/components/ui/textarea/textarea.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/input-message/input-message.test.ts",removalGate:"Retain while helper and error semantics use fast-tier motion.",dynamicImports:[],fixtures:s,useWhen:["Explain a field or announce a validation error directly below its input."]});const t=[{id:"input-state-matrix",title:"Input states",states:["default","rest","hover","focus","empty","placeholder","disabled","read-only","invalid","error","described","keyboard-focus","long-content","light","dark","zoom-200","file","compact-28","medium-32","large-36","reduced-motion"],themes:["light","dark","high-contrast"],viewport:"both",reducedMotion:!0}];e({id:"input",source:"src/lib/components/ui/input/input.svelte",publicImport:"$lib/components/ui/input",legacyImports:["$lib/components/ui/input/index.js","$lib/components/ui/input/input.svelte"],exports:["Input","inputMetadata"],category:"primitive",owner:"007-B2",callers:["src/features/accept-changes/components/NativeReviewAttempt.svelte","src/features/accept-changes/components/NativeSidebarReview.svelte","src/features/accept-changes/components/RepositorySelectionEditor.svelte","src/features/collaboration-auth/renderer/CollaborationSignInModal.svelte","src/features/dev-console/DaemonLinksView.svelte","src/features/dev-console/TrafficInspector.svelte","src/features/discussions/components/DiscussionImagePicker.svelte","src/features/home/HomeNewLabelDialog.svelte","src/features/home/HomeSearch.svelte","src/features/home/assistant-panels.preview.svelte","src/features/host-membership/HostInvitationDialog.svelte","src/features/hud/components/DockOverview.svelte","src/features/hud/media-editor/recording/DockRecordingFrameMarks.svelte","src/features/inline-html/InlineHtmlPreview.svelte","src/features/layout/components/content-header/ContentHeader.svelte","src/features/onboarding/messages/DirectoryPickerView.svelte","src/features/onboarding/messages/GitHubRepoTab.svelte","src/features/onboarding/messages/LocalRepoTab.svelte","src/features/onboarding/messages/NewProjectTab.svelte","src/features/passkeys/PasskeyDialog.svelte","src/features/settings/search/SettingsSearchField.svelte","src/lib/component-catalog/CatalogShell.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte","src/lib/component-catalog/renderers/ModalCatalogPreview.svelte","src/lib/component-catalog/renderers/OverlayCatalogPreview.svelte","src/lib/component-catalog/renderers/PopoversCatalogPreview.svelte","src/lib/component-catalog/renderers/ProposalCatalogPreview.svelte","src/lib/components/CommandPalette.svelte","src/lib/components/GitLabConnectForm.svelte","src/lib/components/browser/BrowserViewerTabHeader.svelte","src/lib/components/browser/BrowserViewportDialog.svelte","src/lib/components/browser/EmbeddedBrowser.svelte","src/lib/components/chat/AgentCard.svelte","src/lib/components/chat/AssistantThreadTitle.svelte","src/lib/components/chat/ChatMessageNavigator.svelte","src/lib/components/chat/TaskProgressControl.svelte","src/lib/components/chat/input/ContextPickerButton.svelte","src/lib/components/chat/input/SimpleRichInput.svelte","src/lib/components/chat/input/mention-results.preview.svelte","src/lib/components/chat/proposals/ProposalCard.svelte","src/lib/components/chat/secrets/SecretRequestCard.svelte","src/lib/components/code-review/walkthrough/WalkthroughCommentThread.svelte","src/lib/components/code-review/walkthrough/WalkthroughInlineComment.svelte","src/lib/components/debug/DebugPanel.svelte","src/lib/components/file-explorer/VirtualizedFileTree.svelte","src/lib/components/file-explorer/file-explorer-sidebar.svelte","src/lib/components/layout/ConnectBackendForm.svelte","src/lib/components/layout/WorkspaceTabGroupChip.svelte","src/lib/components/layout/panel-system/PanelTabBar.svelte","src/lib/components/modals/FeatureCodeDialog.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/confirm/modal-heading-spacing.preview.svelte","src/lib/components/patterns/settings/SettingsControl.svelte","src/lib/components/patterns/settings/custom-controls.ts","src/lib/components/terminal/QuakeTerminalOverlay.svelte","src/lib/components/terminal/RootQuakeTerminalOverlay.svelte","src/lib/components/terminal/SetupScriptBanner.svelte","src/lib/components/terminal/TerminalSidebar.svelte","src/lib/components/tiptap/BubbleMenu.svelte","src/lib/components/ui/EditableName.svelte","src/lib/components/ui/dropdown/Dropdown.svelte","src/lib/components/ui/menu-search.preview.svelte","src/lib/components/ui/message-composer/message-composer.svelte","src/lib/components/ui/panel-find-bar/PanelFindBar.svelte","src/lib/components/ui/searchable-combobox/searchable-combobox.svelte","src/lib/components/ui/select/select.test-harness.svelte","src/lib/components/ui/sidebar/sidebar-input.svelte","src/lib/components/ui/text-entry-focus.preview.svelte","src/lib/components/ui/tooltip/tooltip-audit.preview.svelte","src/lib/components/workspace/CompactWorkspaceInitializer.svelte","src/lib/components/workspace/PullRequestCreator.svelte","src/lib/components/workspace/WorkspaceSidebarHeader.svelte","src/lib/components/workspace/initializer/AddRemoteSetupModal.svelte","src/lib/components/workspace/initializer/GitLabPickerList.svelte","src/lib/components/workspace/initializer/GitLabProjectPicker.svelte","src/lib/components/workspace/initializer/IssueSuggestions.svelte","src/lib/components/workspace/initializer/RepoSelector.svelte","src/lib/components/workspace/sidebar/BranchDisplay.svelte","src/lib/components/workspace/sidebar/CommitsTimeline.svelte","src/lib/components/workspace/sidebar/NotesPanel.svelte","src/lib/components/workspace/sidebar/PRSection.svelte","src/lib/components/workspace/sidebar/SidebarExpandableSearch.svelte","src/lib/components/workspace/sidebar/WorkspaceProgressCard.svelte","src/lib/components/workspace/sidebar/context-picker/BrowserUrlPicker.svelte","src/lib/components/workspace/sidebar/context-picker/LinearPicker.svelte","src/lib/components/workspace/sidebar/context-picker/SentryPicker.svelte","src/routes/sandbox/recipes/+page.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/input/input.test.ts",removalGate:"Retain while exported and binding, focus, validation, and fixture tests pass.",dynamicImports:[],fixtures:t});
@@ -1,2 +1,2 @@
1
- import{bm as x}from"./DWvCfaBg.js";function m(e){const n=e.replace(/^#/,"");let r,o,a;if(n.length===3||n.length===4)r=parseInt(n[0]+n[0],16)/255,o=parseInt(n[1]+n[1],16)/255,a=parseInt(n[2]+n[2],16)/255;else if(n.length===6||n.length===8)r=parseInt(n.slice(0,2),16)/255,o=parseInt(n.slice(2,4),16)/255,a=parseInt(n.slice(4,6),16)/255;else return"0 0% 0%";const t=Math.max(r,o,a),s=Math.min(r,o,a),c=(t+s)/2;let u=0,g=0;if(t!==s){const p=t-s;switch(g=c>.5?p/(2-t-s):p/(t+s),t){case r:u=((o-a)/p+(o<a?6:0))/6;break;case o:u=((a-r)/p+2)/6;break;case a:u=((r-o)/p+4)/6;break}}const f=Math.round(u*360),d=Math.round(g*100),l=Math.round(c*100);return`${f} ${d}% ${l}%`}function N(e){const n=e.replace(/^#/,"");let r,o,a;if(n.length>=6)r=parseInt(n.slice(0,2),16),o=parseInt(n.slice(2,4),16),a=parseInt(n.slice(4,6),16);else if(n.length>=3)r=parseInt(n[0]+n[0],16),o=parseInt(n[1]+n[1],16),a=parseInt(n[2]+n[2],16);else return!0;return(.299*r+.587*o+.114*a)/255<.5}const X=[["editor.background","--background"],["editor.foreground","--foreground"],["sideBar.background","--sidebar"],["sideBar.foreground","--sidebar-foreground"],["sideBar.border","--sidebar-border"],["editorWidget.background","--card"],["editorWidget.foreground","--card-foreground"],["dropdown.background","--popover"],["dropdown.foreground","--popover-foreground"],["focusBorder","--ring"],["input.background","--input"],["panel.border","--border"],["editorGroup.border","--border"],["button.background","--primary"],["button.foreground","--primary-foreground"],["list.activeSelectionBackground","--secondary"],["list.activeSelectionForeground","--secondary-foreground"],["errorForeground","--danger"],["inputValidation.errorBackground","--danger-background"]];function B(e){const n=e.replace(/^#/,"");return n.length>=6?[parseInt(n.slice(0,2),16),parseInt(n.slice(2,4),16),parseInt(n.slice(4,6),16)]:n.length>=3?[parseInt(n[0]+n[0],16),parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16)]:[0,0,0]}function M(e,n,r){const o=a=>Math.max(0,Math.min(255,Math.round(a)));return`#${o(e).toString(16).padStart(2,"0")}${o(n).toString(16).padStart(2,"0")}${o(r).toString(16).padStart(2,"0")}`}function G(e,n,r){const[o,a,t]=[e,n,r].map(s=>{const c=s/255;return c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4)});return .2126*o+.7152*a+.0722*t}function k(e,n){const r=G(...e),o=G(...n),a=Math.max(r,o),t=Math.min(r,o);return(a+.05)/(t+.05)}function F(e){const n=e.match(/^([\d.]+)\s+([\d.]+)%\s+([\d.]+)%$/);if(!n)return[0,0,0];const r=Number(n[1]),o=Number(n[2])/100,a=Number(n[3])/100,t=(1-Math.abs(2*a-1))*o,s=t*(1-Math.abs(r/60%2-1)),c=a-t/2;return(r<60?[t,s,0]:r<120?[s,t,0]:r<180?[0,t,s]:r<240?[0,s,t]:r<300?[s,0,t]:[t,0,s]).map(g=>Math.round((g+c)*255))}function V(e,n,r){const o=F(e),t=F(n).map((s,c)=>s*(1-r)+o[c]*r);return m(M(...t))}function H(e,n){const r=F(e),o=F(n);if(k(r,o)>=4.55)return e;const a=[0,0,0],t=[255,255,255],s=k(a,o)>k(t,o)?a:t;for(let c=1;c<=20;c++){const u=c/20,g=r.map((f,d)=>f*(1-u)+s[d]*u);if(k(g,o)>=4.55)return m(M(...g))}return m(M(...s))}function _(e,n){const r=F(e),o=n.map(F),a=f=>Math.min(...o.map(d=>k(f,d))),t=4.55;if(a(r)>=t)return e;const s=e.match(/^([\d.]+)\s+([\d.]+)%\s+([\d.]+)%$/);if(!s)return e;const c=Number(s[1]);let u,g={value:e,ratio:a(r),distance:0};for(let f=0;f<=100;f++)for(let d=0;d<=100;d++){const l=`${c} ${f}% ${d}%`,p=F(l),b=a(p),i=p.reduce((R,I,A)=>R+(I-r[A])**2,0);b>=t?(!u||i<u.distance)&&(u={value:l,distance:i}):(b>g.ratio||b===g.ratio&&i<g.distance)&&(g={value:l,ratio:b,distance:i})}return u?.value??g.value}function K({fgHex:e,bgHexes:n,descriptionHex:r}){const o=B(e),a=n.map(B);let t;if(r)t=B(r);else{const[f,d,l]=a[0];t=[o[0]*.6+f*.4,o[1]*.6+d*.4,o[2]*.6+l*.4]}const s=4.5,c=20,u=f=>a.every(d=>k(f,d)>=s),g=[...t];for(let f=0;f<c&&!u(t);f++){const d=(f+1)/c;t=[g[0]*(1-d)+o[0]*d,g[1]*(1-d)+o[1]*d,g[2]*(1-d)+o[2]*d]}return m(M(...t))}function Y(e,n,r){const o=B(e),a=B(n),t=G(...o),s=G(...a),c=1.12;if((Math.max(t,s)+.05)/(Math.min(t,s)+.05)>=c)return m(e);const f=t>s||t===s&&!r?[255,255,255]:[0,0,0],d=20;let l=[...o];for(let p=1;p<=d;p++){const b=p/d;l=[o[0]*(1-b)+f[0]*b,o[1]*(1-b)+f[1]*b,o[2]*(1-b)+f[2]*b];const i=G(...l);if((Math.max(i,s)+.05)/(Math.min(i,s)+.05)>=c)break}return m(M(...l))}function O(e){const n=B(e),r=N(e)?[255,255,255]:[0,0,0],o=1.2,a=20;let t=[...n];for(let s=1;s<=a;s++){const c=s/a;if(t=[n[0]*(1-c)+r[0]*c,n[1]*(1-c)+r[1]*c,n[2]*(1-c)+r[2]*c],k(t,n)>=o)break}return m(M(...t))}function $(e,n,r){const o=B(e),a=n.map(B),t=3.1,s=d=>Math.min(...a.map(l=>k(d,l)));if(s(o)>=t)return m(e);const u=r?[255,255,255]:[0,0,0],g=20;let f=[...o];for(let d=1;d<=g;d++){const l=d/g;if(f=[o[0]*(1-l)+u[0]*l,o[1]*(1-l)+u[1]*l,o[2]*(1-l)+u[2]*l],s(f)>=t)break}return m(M(...f))}function j(e){const n=e["editor.background"];if(!n)return null;const r=e.focusBorder??e["button.background"]??e["badge.background"];if(!r)return null;const o=B(n),a=B(r),t=N(n),s=t?.12:.08,c=[o[0]*(1-s)+a[0]*s,o[1]*(1-s)+a[1]*s,o[2]*(1-s)+a[2]*s],u=B(e["editor.foreground"]??(t?"#ffffff":"#000000"));let g=[...a];const f=4.5,d=20,l=b=>k(b,o)>=f&&k(b,c)>=3,p=[...g];for(let b=0;b<d&&!l(g);b++){const i=(b+1)/d;g=[p[0]*(1-i)+u[0]*i,p[1]*(1-i)+u[1]*i,p[2]*(1-i)+u[2]*i]}return{accent:m(M(...c)),accentForeground:m(M(...g))}}function q(e,n){const r={};for(const[i,R]of X){if(r[R])continue;const I=e[i];I&&(r[R]=m(I))}const o=j(e);o&&(r["--accent"]=o.accent,r["--accent-foreground"]=o.accentForeground);const a=e["editor.foreground"],t=e["editor.background"];if(a&&t){const i=[t];e["sideBar.background"]&&i.push(e["sideBar.background"]),e["editorWidget.background"]&&i.push(e["editorWidget.background"]),r["--muted-foreground"]=K({fgHex:a,bgHexes:i,descriptionHex:e.descriptionForeground});const R=e["tab.inactiveBackground"]??e["sideBar.background"]??t,I=N(t);r["--muted"]=Y(R,t,I);const A=[t,e["editorWidget.background"],e["dropdown.background"],e["sideBar.background"]].filter(S=>!!S),P=e["panel.border"]??e["editorGroup.border"],D=e["input.border"]??e["input.background"]??P??t;r["--input"]=$(D,A,I);const W=e.focusBorder??e["button.background"]??P??t;r["--ring"]=$(W,A,I);const y=B(a),w=B(t);{const S=[y[0]*.6+w[0]*.4,y[1]*.6+w[1]*.4,y[2]*.6+w[2]*.4];let C=[...S];const L=4.5,T=20;for(let v=0;v<T&&!(k(C,w)>=L);v++){const h=(v+1)/T;C=[S[0]*(1-h)+y[0]*h,S[1]*(1-h)+y[1]*h,S[2]*(1-h)+y[2]*h]}r["--text-subtle"]=m(M(...C))}{const S=[w[0]*.65+y[0]*.35,w[1]*.65+y[1]*.35,w[2]*.65+y[2]*.35];let C=[...S];const L=2,T=15;for(let v=0;v<T&&!(k(C,w)>=L);v++){const h=(v+1)/T;C=[S[0]*(1-h)+y[0]*h,S[1]*(1-h)+y[1]*h,S[2]*(1-h)+y[2]*h]}r["--text-ghost"]=m(M(...C))}}else e.descriptionForeground&&(r["--muted-foreground"]=m(e.descriptionForeground));t&&(r["--border"]??=O(t),r["--sidebar-border"]??=O(e["sideBar.background"]??t));const s=n?{background:"#1f1f24",foreground:"#f7f7f7",primary:"#009966",primaryForeground:"#171717",secondary:"#1c1c1c",secondaryForeground:"#f7f7f7",muted:"#121217",mutedForeground:"#b8b5c2",accent:"#182c25",accentForeground:"#7de3bd",danger:"#f38b8b",dangerBackground:"#361010",border:"#4d4a52",input:"#121217",ring:"#6eddb4",info:"#72d2fa",infoForeground:"#171717",success:"#22c55e",successForeground:"#171717",warning:"#facc15",warningForeground:"#171717",sidebar:"#0d0d10",sidebarForeground:"#f7f7f7",sidebarAccent:"#242424",sidebarBorder:"#4d4a52"}:{background:"#ffffff",foreground:"#171717",primary:"#007a4d",primaryForeground:"#ffffff",secondary:"#f5f5f5",secondaryForeground:"#171717",muted:"#e8e8e8",mutedForeground:"#474747",accent:"#e7f3ee",accentForeground:"#00663f",danger:"#930b0b",dangerBackground:"#fde7e7",border:"#d9d9d9",input:"#e6e6e6",ring:"#006ac2",info:"#006ac2",infoForeground:"#ffffff",success:"#117a37",successForeground:"#ffffff",warning:"#dc9400",warningForeground:"#171717",sidebar:"#f7f7f8",sidebarForeground:"#171717",sidebarAccent:"#e8e8e8",sidebarBorder:"#d9d9d9"},c=i=>m(s[i]);r["--background"]??=c("background"),r["--foreground"]??=c("foreground"),r["--card"]??=r["--background"],r["--card-foreground"]??=r["--foreground"],r["--popover"]??=r["--card"],r["--popover-foreground"]??=r["--card-foreground"],r["--primary"]??=c("primary"),r["--primary-foreground"]??=c("primaryForeground"),r["--secondary"]??=c("secondary"),r["--secondary-foreground"]??=c("secondaryForeground"),r["--muted"]??=c("muted"),r["--muted-foreground"]??=c("mutedForeground"),r["--accent"]??=c("accent"),r["--accent-foreground"]??=c("accentForeground"),r["--danger"]??=c("danger"),r["--danger-background"]??=c("dangerBackground"),r["--border"]??=c("border"),r["--input"]??=c("input"),r["--ring"]??=c("ring"),r["--info"]=m(e["editorInfo.foreground"]??s.info),r["--info-foreground"]=c("infoForeground"),r["--success"]=m(e["testing.iconPassed"]??e["gitDecoration.addedResourceForeground"]??s.success),r["--success-foreground"]=c("successForeground"),r["--warning"]=m(e["editorWarning.foreground"]??s.warning),r["--warning-foreground"]=c("warningForeground"),r["--sidebar"]??=c("sidebar"),r["--sidebar-foreground"]??=c("sidebarForeground"),r["--sidebar-accent"]=r["--secondary"]??c("sidebarAccent"),r["--sidebar-accent-foreground"]=r["--sidebar-foreground"],r["--sidebar-border"]??=c("sidebarBorder");const u=[["--foreground","--background"],["--card-foreground","--card"],["--popover-foreground","--popover"],["--primary-foreground","--primary"],["--secondary-foreground","--secondary"],["--accent-foreground","--accent"],["--muted-foreground","--muted"],["--info-foreground","--info"],["--success-foreground","--success"],["--warning-foreground","--warning"],["--sidebar-foreground","--sidebar"],["--sidebar-accent-foreground","--sidebar-accent"]];for(const[i,R]of u)r[i]=H(r[i],r[R]);const g=["--danger-background","--background","--card","--popover","--muted","--sidebar"],f=r["--danger"];r["--danger"]=_(f,g.map(i=>r[i]));const d=F(r["--danger"]);g.every(i=>k(d,F(r[i]))>=4.55)||(r["--danger-background"]=r["--background"],r["--danger"]=_(f,g.map(i=>r[i]))),r["--primary-ink"]=_(r["--primary"],[r["--background"],r["--card"]]);const p=r["--warning"],b=[r["--background"],r["--card"]];return r["--warning-ink"]=_(p,[...b,...b.map(i=>V(p,i,.1))]),r}const z=[["terminal.background","background"],["terminal.foreground","foreground"],["terminal.selectionBackground","selectionBackground"],["terminal.selectionForeground","selectionForeground"],["terminalCursor.foreground","cursor"],["terminalCursor.background","cursorAccent"],["terminal.ansiBlack","black"],["terminal.ansiRed","red"],["terminal.ansiGreen","green"],["terminal.ansiYellow","yellow"],["terminal.ansiBlue","blue"],["terminal.ansiMagenta","magenta"],["terminal.ansiCyan","cyan"],["terminal.ansiWhite","white"],["terminal.ansiBrightBlack","brightBlack"],["terminal.ansiBrightRed","brightRed"],["terminal.ansiBrightGreen","brightGreen"],["terminal.ansiBrightYellow","brightYellow"],["terminal.ansiBrightBlue","brightBlue"],["terminal.ansiBrightMagenta","brightMagenta"],["terminal.ansiBrightCyan","brightCyan"],["terminal.ansiBrightWhite","brightWhite"]];function Q(e){const n={};for(const[r,o]of z){const a=e[r];a&&(n[o]=a)}return n}function E(e){return e.replace(/^#/,"")}function U(e,n){const r=n?"vs-dark":"vs",o=[];if(e.tokenColors)for(const t of e.tokenColors){const s=Array.isArray(t.scope)?t.scope:t.scope?[t.scope]:[""];for(const c of s){const u={token:c};t.settings.foreground&&(u.foreground=E(t.settings.foreground)),t.settings.background&&(u.background=E(t.settings.background)),t.settings.fontStyle&&(u.fontStyle=t.settings.fontStyle),o.push(u)}}const a={};if(e.colors)for(const[t,s]of Object.entries(e.colors))a[t]=s;return{base:r,inherit:!0,rules:o,colors:a}}function J(e){let n="",r=0,o=!1;for(;r<e.length;){const a=e[r];if(o){if(a==="\\"){n+=a+(e[r+1]??""),r+=2;continue}a==='"'&&(o=!1),n+=a,r++;continue}if(a==='"'){o=!0,n+=a,r++;continue}if(a==="/"&&e[r+1]==="/"){for(r+=2;r<e.length&&e[r]!==`
1
+ import{bm as x}from"./YLhFQnIu.js";function m(e){const n=e.replace(/^#/,"");let r,o,a;if(n.length===3||n.length===4)r=parseInt(n[0]+n[0],16)/255,o=parseInt(n[1]+n[1],16)/255,a=parseInt(n[2]+n[2],16)/255;else if(n.length===6||n.length===8)r=parseInt(n.slice(0,2),16)/255,o=parseInt(n.slice(2,4),16)/255,a=parseInt(n.slice(4,6),16)/255;else return"0 0% 0%";const t=Math.max(r,o,a),s=Math.min(r,o,a),c=(t+s)/2;let u=0,g=0;if(t!==s){const p=t-s;switch(g=c>.5?p/(2-t-s):p/(t+s),t){case r:u=((o-a)/p+(o<a?6:0))/6;break;case o:u=((a-r)/p+2)/6;break;case a:u=((r-o)/p+4)/6;break}}const f=Math.round(u*360),d=Math.round(g*100),l=Math.round(c*100);return`${f} ${d}% ${l}%`}function N(e){const n=e.replace(/^#/,"");let r,o,a;if(n.length>=6)r=parseInt(n.slice(0,2),16),o=parseInt(n.slice(2,4),16),a=parseInt(n.slice(4,6),16);else if(n.length>=3)r=parseInt(n[0]+n[0],16),o=parseInt(n[1]+n[1],16),a=parseInt(n[2]+n[2],16);else return!0;return(.299*r+.587*o+.114*a)/255<.5}const X=[["editor.background","--background"],["editor.foreground","--foreground"],["sideBar.background","--sidebar"],["sideBar.foreground","--sidebar-foreground"],["sideBar.border","--sidebar-border"],["editorWidget.background","--card"],["editorWidget.foreground","--card-foreground"],["dropdown.background","--popover"],["dropdown.foreground","--popover-foreground"],["focusBorder","--ring"],["input.background","--input"],["panel.border","--border"],["editorGroup.border","--border"],["button.background","--primary"],["button.foreground","--primary-foreground"],["list.activeSelectionBackground","--secondary"],["list.activeSelectionForeground","--secondary-foreground"],["errorForeground","--danger"],["inputValidation.errorBackground","--danger-background"]];function B(e){const n=e.replace(/^#/,"");return n.length>=6?[parseInt(n.slice(0,2),16),parseInt(n.slice(2,4),16),parseInt(n.slice(4,6),16)]:n.length>=3?[parseInt(n[0]+n[0],16),parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16)]:[0,0,0]}function M(e,n,r){const o=a=>Math.max(0,Math.min(255,Math.round(a)));return`#${o(e).toString(16).padStart(2,"0")}${o(n).toString(16).padStart(2,"0")}${o(r).toString(16).padStart(2,"0")}`}function G(e,n,r){const[o,a,t]=[e,n,r].map(s=>{const c=s/255;return c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4)});return .2126*o+.7152*a+.0722*t}function k(e,n){const r=G(...e),o=G(...n),a=Math.max(r,o),t=Math.min(r,o);return(a+.05)/(t+.05)}function F(e){const n=e.match(/^([\d.]+)\s+([\d.]+)%\s+([\d.]+)%$/);if(!n)return[0,0,0];const r=Number(n[1]),o=Number(n[2])/100,a=Number(n[3])/100,t=(1-Math.abs(2*a-1))*o,s=t*(1-Math.abs(r/60%2-1)),c=a-t/2;return(r<60?[t,s,0]:r<120?[s,t,0]:r<180?[0,t,s]:r<240?[0,s,t]:r<300?[s,0,t]:[t,0,s]).map(g=>Math.round((g+c)*255))}function V(e,n,r){const o=F(e),t=F(n).map((s,c)=>s*(1-r)+o[c]*r);return m(M(...t))}function H(e,n){const r=F(e),o=F(n);if(k(r,o)>=4.55)return e;const a=[0,0,0],t=[255,255,255],s=k(a,o)>k(t,o)?a:t;for(let c=1;c<=20;c++){const u=c/20,g=r.map((f,d)=>f*(1-u)+s[d]*u);if(k(g,o)>=4.55)return m(M(...g))}return m(M(...s))}function _(e,n){const r=F(e),o=n.map(F),a=f=>Math.min(...o.map(d=>k(f,d))),t=4.55;if(a(r)>=t)return e;const s=e.match(/^([\d.]+)\s+([\d.]+)%\s+([\d.]+)%$/);if(!s)return e;const c=Number(s[1]);let u,g={value:e,ratio:a(r),distance:0};for(let f=0;f<=100;f++)for(let d=0;d<=100;d++){const l=`${c} ${f}% ${d}%`,p=F(l),b=a(p),i=p.reduce((R,I,A)=>R+(I-r[A])**2,0);b>=t?(!u||i<u.distance)&&(u={value:l,distance:i}):(b>g.ratio||b===g.ratio&&i<g.distance)&&(g={value:l,ratio:b,distance:i})}return u?.value??g.value}function K({fgHex:e,bgHexes:n,descriptionHex:r}){const o=B(e),a=n.map(B);let t;if(r)t=B(r);else{const[f,d,l]=a[0];t=[o[0]*.6+f*.4,o[1]*.6+d*.4,o[2]*.6+l*.4]}const s=4.5,c=20,u=f=>a.every(d=>k(f,d)>=s),g=[...t];for(let f=0;f<c&&!u(t);f++){const d=(f+1)/c;t=[g[0]*(1-d)+o[0]*d,g[1]*(1-d)+o[1]*d,g[2]*(1-d)+o[2]*d]}return m(M(...t))}function Y(e,n,r){const o=B(e),a=B(n),t=G(...o),s=G(...a),c=1.12;if((Math.max(t,s)+.05)/(Math.min(t,s)+.05)>=c)return m(e);const f=t>s||t===s&&!r?[255,255,255]:[0,0,0],d=20;let l=[...o];for(let p=1;p<=d;p++){const b=p/d;l=[o[0]*(1-b)+f[0]*b,o[1]*(1-b)+f[1]*b,o[2]*(1-b)+f[2]*b];const i=G(...l);if((Math.max(i,s)+.05)/(Math.min(i,s)+.05)>=c)break}return m(M(...l))}function O(e){const n=B(e),r=N(e)?[255,255,255]:[0,0,0],o=1.2,a=20;let t=[...n];for(let s=1;s<=a;s++){const c=s/a;if(t=[n[0]*(1-c)+r[0]*c,n[1]*(1-c)+r[1]*c,n[2]*(1-c)+r[2]*c],k(t,n)>=o)break}return m(M(...t))}function $(e,n,r){const o=B(e),a=n.map(B),t=3.1,s=d=>Math.min(...a.map(l=>k(d,l)));if(s(o)>=t)return m(e);const u=r?[255,255,255]:[0,0,0],g=20;let f=[...o];for(let d=1;d<=g;d++){const l=d/g;if(f=[o[0]*(1-l)+u[0]*l,o[1]*(1-l)+u[1]*l,o[2]*(1-l)+u[2]*l],s(f)>=t)break}return m(M(...f))}function j(e){const n=e["editor.background"];if(!n)return null;const r=e.focusBorder??e["button.background"]??e["badge.background"];if(!r)return null;const o=B(n),a=B(r),t=N(n),s=t?.12:.08,c=[o[0]*(1-s)+a[0]*s,o[1]*(1-s)+a[1]*s,o[2]*(1-s)+a[2]*s],u=B(e["editor.foreground"]??(t?"#ffffff":"#000000"));let g=[...a];const f=4.5,d=20,l=b=>k(b,o)>=f&&k(b,c)>=3,p=[...g];for(let b=0;b<d&&!l(g);b++){const i=(b+1)/d;g=[p[0]*(1-i)+u[0]*i,p[1]*(1-i)+u[1]*i,p[2]*(1-i)+u[2]*i]}return{accent:m(M(...c)),accentForeground:m(M(...g))}}function q(e,n){const r={};for(const[i,R]of X){if(r[R])continue;const I=e[i];I&&(r[R]=m(I))}const o=j(e);o&&(r["--accent"]=o.accent,r["--accent-foreground"]=o.accentForeground);const a=e["editor.foreground"],t=e["editor.background"];if(a&&t){const i=[t];e["sideBar.background"]&&i.push(e["sideBar.background"]),e["editorWidget.background"]&&i.push(e["editorWidget.background"]),r["--muted-foreground"]=K({fgHex:a,bgHexes:i,descriptionHex:e.descriptionForeground});const R=e["tab.inactiveBackground"]??e["sideBar.background"]??t,I=N(t);r["--muted"]=Y(R,t,I);const A=[t,e["editorWidget.background"],e["dropdown.background"],e["sideBar.background"]].filter(S=>!!S),P=e["panel.border"]??e["editorGroup.border"],D=e["input.border"]??e["input.background"]??P??t;r["--input"]=$(D,A,I);const W=e.focusBorder??e["button.background"]??P??t;r["--ring"]=$(W,A,I);const y=B(a),w=B(t);{const S=[y[0]*.6+w[0]*.4,y[1]*.6+w[1]*.4,y[2]*.6+w[2]*.4];let C=[...S];const L=4.5,T=20;for(let v=0;v<T&&!(k(C,w)>=L);v++){const h=(v+1)/T;C=[S[0]*(1-h)+y[0]*h,S[1]*(1-h)+y[1]*h,S[2]*(1-h)+y[2]*h]}r["--text-subtle"]=m(M(...C))}{const S=[w[0]*.65+y[0]*.35,w[1]*.65+y[1]*.35,w[2]*.65+y[2]*.35];let C=[...S];const L=2,T=15;for(let v=0;v<T&&!(k(C,w)>=L);v++){const h=(v+1)/T;C=[S[0]*(1-h)+y[0]*h,S[1]*(1-h)+y[1]*h,S[2]*(1-h)+y[2]*h]}r["--text-ghost"]=m(M(...C))}}else e.descriptionForeground&&(r["--muted-foreground"]=m(e.descriptionForeground));t&&(r["--border"]??=O(t),r["--sidebar-border"]??=O(e["sideBar.background"]??t));const s=n?{background:"#1f1f24",foreground:"#f7f7f7",primary:"#009966",primaryForeground:"#171717",secondary:"#1c1c1c",secondaryForeground:"#f7f7f7",muted:"#121217",mutedForeground:"#b8b5c2",accent:"#182c25",accentForeground:"#7de3bd",danger:"#f38b8b",dangerBackground:"#361010",border:"#4d4a52",input:"#121217",ring:"#6eddb4",info:"#72d2fa",infoForeground:"#171717",success:"#22c55e",successForeground:"#171717",warning:"#facc15",warningForeground:"#171717",sidebar:"#0d0d10",sidebarForeground:"#f7f7f7",sidebarAccent:"#242424",sidebarBorder:"#4d4a52"}:{background:"#ffffff",foreground:"#171717",primary:"#007a4d",primaryForeground:"#ffffff",secondary:"#f5f5f5",secondaryForeground:"#171717",muted:"#e8e8e8",mutedForeground:"#474747",accent:"#e7f3ee",accentForeground:"#00663f",danger:"#930b0b",dangerBackground:"#fde7e7",border:"#d9d9d9",input:"#e6e6e6",ring:"#006ac2",info:"#006ac2",infoForeground:"#ffffff",success:"#117a37",successForeground:"#ffffff",warning:"#dc9400",warningForeground:"#171717",sidebar:"#f7f7f8",sidebarForeground:"#171717",sidebarAccent:"#e8e8e8",sidebarBorder:"#d9d9d9"},c=i=>m(s[i]);r["--background"]??=c("background"),r["--foreground"]??=c("foreground"),r["--card"]??=r["--background"],r["--card-foreground"]??=r["--foreground"],r["--popover"]??=r["--card"],r["--popover-foreground"]??=r["--card-foreground"],r["--primary"]??=c("primary"),r["--primary-foreground"]??=c("primaryForeground"),r["--secondary"]??=c("secondary"),r["--secondary-foreground"]??=c("secondaryForeground"),r["--muted"]??=c("muted"),r["--muted-foreground"]??=c("mutedForeground"),r["--accent"]??=c("accent"),r["--accent-foreground"]??=c("accentForeground"),r["--danger"]??=c("danger"),r["--danger-background"]??=c("dangerBackground"),r["--border"]??=c("border"),r["--input"]??=c("input"),r["--ring"]??=c("ring"),r["--info"]=m(e["editorInfo.foreground"]??s.info),r["--info-foreground"]=c("infoForeground"),r["--success"]=m(e["testing.iconPassed"]??e["gitDecoration.addedResourceForeground"]??s.success),r["--success-foreground"]=c("successForeground"),r["--warning"]=m(e["editorWarning.foreground"]??s.warning),r["--warning-foreground"]=c("warningForeground"),r["--sidebar"]??=c("sidebar"),r["--sidebar-foreground"]??=c("sidebarForeground"),r["--sidebar-accent"]=r["--secondary"]??c("sidebarAccent"),r["--sidebar-accent-foreground"]=r["--sidebar-foreground"],r["--sidebar-border"]??=c("sidebarBorder");const u=[["--foreground","--background"],["--card-foreground","--card"],["--popover-foreground","--popover"],["--primary-foreground","--primary"],["--secondary-foreground","--secondary"],["--accent-foreground","--accent"],["--muted-foreground","--muted"],["--info-foreground","--info"],["--success-foreground","--success"],["--warning-foreground","--warning"],["--sidebar-foreground","--sidebar"],["--sidebar-accent-foreground","--sidebar-accent"]];for(const[i,R]of u)r[i]=H(r[i],r[R]);const g=["--danger-background","--background","--card","--popover","--muted","--sidebar"],f=r["--danger"];r["--danger"]=_(f,g.map(i=>r[i]));const d=F(r["--danger"]);g.every(i=>k(d,F(r[i]))>=4.55)||(r["--danger-background"]=r["--background"],r["--danger"]=_(f,g.map(i=>r[i]))),r["--primary-ink"]=_(r["--primary"],[r["--background"],r["--card"]]);const p=r["--warning"],b=[r["--background"],r["--card"]];return r["--warning-ink"]=_(p,[...b,...b.map(i=>V(p,i,.1))]),r}const z=[["terminal.background","background"],["terminal.foreground","foreground"],["terminal.selectionBackground","selectionBackground"],["terminal.selectionForeground","selectionForeground"],["terminalCursor.foreground","cursor"],["terminalCursor.background","cursorAccent"],["terminal.ansiBlack","black"],["terminal.ansiRed","red"],["terminal.ansiGreen","green"],["terminal.ansiYellow","yellow"],["terminal.ansiBlue","blue"],["terminal.ansiMagenta","magenta"],["terminal.ansiCyan","cyan"],["terminal.ansiWhite","white"],["terminal.ansiBrightBlack","brightBlack"],["terminal.ansiBrightRed","brightRed"],["terminal.ansiBrightGreen","brightGreen"],["terminal.ansiBrightYellow","brightYellow"],["terminal.ansiBrightBlue","brightBlue"],["terminal.ansiBrightMagenta","brightMagenta"],["terminal.ansiBrightCyan","brightCyan"],["terminal.ansiBrightWhite","brightWhite"]];function Q(e){const n={};for(const[r,o]of z){const a=e[r];a&&(n[o]=a)}return n}function E(e){return e.replace(/^#/,"")}function U(e,n){const r=n?"vs-dark":"vs",o=[];if(e.tokenColors)for(const t of e.tokenColors){const s=Array.isArray(t.scope)?t.scope:t.scope?[t.scope]:[""];for(const c of s){const u={token:c};t.settings.foreground&&(u.foreground=E(t.settings.foreground)),t.settings.background&&(u.background=E(t.settings.background)),t.settings.fontStyle&&(u.fontStyle=t.settings.fontStyle),o.push(u)}}const a={};if(e.colors)for(const[t,s]of Object.entries(e.colors))a[t]=s;return{base:r,inherit:!0,rules:o,colors:a}}function J(e){let n="",r=0,o=!1;for(;r<e.length;){const a=e[r];if(o){if(a==="\\"){n+=a+(e[r+1]??""),r+=2;continue}a==='"'&&(o=!1),n+=a,r++;continue}if(a==='"'){o=!0,n+=a,r++;continue}if(a==="/"&&e[r+1]==="/"){for(r+=2;r<e.length&&e[r]!==`
2
2
  `;)r++;continue}if(a==="/"&&e[r+1]==="*"){for(r+=2;r<e.length&&!(e[r]==="*"&&e[r+1]==="/");)r++;r+=2;continue}n+=a,r++}return n=n.replace(/,(\s*[}\]])/g,"$1"),n}function rr(e){if(!e||typeof e!="object")throw new Error("Invalid theme: expected an object");const n=e;if(!n.colors&&!n.tokenColors)throw new Error('Invalid theme: must contain "colors" or "tokenColors"');const r=n.colors??{};let o;return n.type==="light"||n.type==="hc-light"?o=!1:n.type==="dark"||n.type==="hc-black"?o=!0:r["editor.background"]?o=N(r["editor.background"]):o=!0,{name:n.name??x.settings_themeImport_fallbackName_label(),type:o?"dark":"light",cssVariables:q(r,o),monacoTheme:U(n,o),terminalColors:Q(r),rawColors:{...r}}}export{rr as p,J as s};
@@ -1,4 +1,4 @@
1
- import{Ja as j,Jx as r,sn as me,nZ as m,BY as Se,nY as g,m as F,rV as K,BZ as q,i as ye,nL as $,A as be}from"./CIoJPvjg.js";import{k as ve}from"./uXuxG9cN.js";import{selectCurrentWorkspaceTabId as he}from"./Btst3lgy.js";import{s as Ce}from"./DJJ2Xrlq.js";import{cR as Ee,cf as w,cd as Me,cc as Ie,co as Ae,bJ as ke,t as we,cJ as P,O as Pe,e8 as _e,dS as Q,aJ as Oe,cA as Re}from"./3Kr2ijlK.js";import{K as _,L as Le}from"./UqcU95a7.js";import{P as Te,c as Ne}from"./B5aYN90J.js";import{bm as R}from"./DWvCfaBg.js";import{l as Be}from"./W05hyx94.js";function He(e,t,n){if(!e||!n?.length)return null;const o=new Set(n);if(t!==null&&!o.has(t))return null;const c=e.lastIndexOf("/"),s=c>=0?e.slice(c+1):"",a=o.has(s)?e.slice(0,c):e;return t===null?a:`${a}/${t}`}const xe={major:5,minor:2};function De(e){const{major:t,minor:n}=xe;return ve(e,t,n)}function E(e,t,n){const o=j(e);return o.providerId&&n(o.providerId)===t?o.modelId:e}function C(e,t){const n=t(e);if(n)return n;const o=/\/(minimal|low|medium|high|xhigh|max|ultra|none)$/i.exec(e);if(!o||o.index===0)return;const c=t(e.slice(0,o.index)),s=o[1].toLowerCase();return c?`${c} (${s.charAt(0).toUpperCase()}${s.slice(1)})`:void 0}function We(e,t){return JSON.stringify([t||null,e])}const je=r.createSelector((e,t)=>(t?e.providerModels?.byWorkspaceId?.[t]:e.providerModels?.byProviderId)??{}),Bt=r.createSelector((e,t,n)=>je.select(e,n)[t]),Ht=r.createSelector(e=>e.providerModels?.clearEpoch??0),xt=r.createSelector((e,t)=>(t?e.providerModels?.requestsByWorkspaceId?.[t]?.map:e.providerModels?.requests?.map)??{}),Fe=r.createSelector(e=>Object.fromEntries(Object.values(e.providerModels?.observers?.map??{}).flatMap(({providerIds:t,workspaceId:n})=>t.map(o=>[We(o,n),{providerId:o,workspaceId:n}])))),Dt=r.createSelector(e=>Object.keys(Fe.select(e)).sort()),Ke=r.createSelector((e,t,n)=>me(e.providerModels?.learnedNames??{},t,n)),Wt=r.createSelector(e=>e.providerModels.learnedNames),jt=r.createSelector(e=>e.model),Ft=r.createSelector(e=>{const t=Ee.select(e),n=w.select(e);if(!t||n!=="owner"&&n!=="member")return null;const o=_.select(e);return n==="member"&&!o?null:JSON.stringify([t,o,n==="member"?Me.select(e):null])});function U(e,t){return t??_.select(e)}const O=r.createSelector((e,t)=>{const n=U(e,t),o=e.model.availableModelsProviderId===n?m(e.model.availableModels):[],c=Ie.select(e),s=Ae.select(e)?c?.defaultProviderId===n?c.defaultModelId:null:e.model.providerModels[n];return s||(Le.select(e).includes(n)?Se(o):"")}),qe=r.createSelector((e,t)=>O.select(e,t)!==""),Kt=r.createSelector(e=>_.select(e)!==""||qe.select(e)),$e=r.createSelector(e=>e.model.availableModels),qt=r.createSelector(e=>m($e.select(e))),$t=r.createSelector(e=>e.model.availableModelsProviderId),J=r.createSelector((e,t)=>{const n=U(e,t);return e.model.loadingState[n]??null}),Qt=r.createSelector((e,t)=>J.select(e,t)?.status==="loading"),Ut=r.createSelector((e,t)=>{const n=J.select(e,t);return n?.status!=="error"?null:n.error??null}),Jt=r.createSelector(e=>{const t={};for(const[n,o]of Object.entries(e.model.loadingState))o.warning&&(t[n]=o.warning);return t}),Gt=r.createSelector(e=>{const t={};for(const[n,o]of Object.entries(e.model.loadingState))o.stale&&(t[n]=!0);return t}),Yt=r.createSelector(e=>{const t={};for(const[n,o]of Object.entries(e.model.loadingState))o.warning&&o.warningKind&&(t[n]=o.warningKind);return t}),zt=r.createSelector(e=>e.model.providerModels),Vt=r.createSelector(e=>e.model.defaultReasoningEffort),Zt=r.createSelector(e=>e.model.modelPickerCollapsedGroups),Xt=r.createSelector((e,t)=>e.model.fallbackInfoByAgentId[t]??null),Qe=r.createSelector((e,t,n,o)=>{const c=d=>P.select(e,d,o),s=c(t),a=E(n,s,c),l=e.model?.availableModels;if(!o&&l&&(!s||s===e.model.availableModelsProviderId)){const d=g(l,n)??g(l,a);if(d)return d}const i=o?e.providerModels?.byWorkspaceId?.[o]?.[s]:e.providerModels?.byProviderId?.[s];return i?.models.find(d=>d.value===n)??i?.models.find(d=>E(d.value,s,c)===a)}),en=r.createSelector((e,t,n,o)=>{const c=d=>P.select(e,d,o),s=c(t),a=E(n,s,c),l=d=>Qe.select(e,s,d,o)?.label,i=d=>Ke.select(e,s,d);return C(n,l)??(a!==n?C(a,l):void 0)??i(n)??C(a,i)}),Ue=r.createSelector((e,t)=>{if(!t)return;const n=e.model?.availableModels;if(!n)return;const o=M(t);return g(n,o)?.effortLevels});function M(e){const t=j(e).modelId,n=t.indexOf("/");return n>0?t.slice(0,n):t}const Je=r.createSelector((e,t,n,o)=>{if(n){if(!o&&(!t||t===e.model?.availableModelsProviderId)){const c=Ue.select(e,n);if(c)return c}if(t){const c=M(n);return(o?e.providerModels?.byWorkspaceId?.[o]?.[t]:e.providerModels?.byProviderId[t])?.models.find(a=>M(a.value)===c)?.effortLevels}}}),Ge=r.createSelector((e,t)=>{const n=e.agentSessions?.byAgentId[t];if(!n)return;if(Array.isArray(n.effortLevels)&&n.effortLevels.length>0)return n.effortLevels;const o=n.workspaceId?e.providerCatalog?.byWorkspaceId?.[n.workspaceId]?.settings??[]:void 0,c=o?.find(b=>b.path==="model.defaultProvider")?.value,s=o?typeof c=="string"?c:"":ke.select(e),a=we(n,s),l=P.select(e,a??s,n.workspaceId),i=o?.find(b=>b.path==="model.providerDefaults")?.value,d=i&&typeof i=="object"?i[l]:void 0,v=n.model??(o?typeof d=="string"?d:"":O.select(e,l));return Je.select(e,l,v,n.workspaceId)}),G="application/vnd.intent.question+json";function Ye(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 ze(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(Ye)&&(t.multiSelect===void 0||typeof t.multiSelect=="boolean")}function tn(e){if(!e||typeof e!="object")return!1;const t=e;if(t.type!=="resource")return!1;const n=t.resource;return typeof n=="object"&&n!==null&&n.mimeType===G}function Ve(e){if(!e||typeof e!="object")return null;const t=e,n=t.resource??t.metadata?.resource??t;if(!n||typeof n!="object"||n.mimeType!==G||typeof n.text!="string")return null;try{const o=JSON.parse(n.text);return ze(o)?o:null}catch{return null}}const Ze="attachmentId",Xe=/^tar-[0-9a-f]{12}$/;function Y(e){if(!e||typeof e!="object")return null;const t=e;if(t.type!=="resource")return null;const n=t.resource;return!n||typeof n!="object"||typeof n.uri!="string"||typeof n.mimeType!="string"||typeof n.text!="string"||n.name!==void 0&&typeof n.name!="string"?null:n}function z(e){const t=Y(e);if(!t)return null;try{const n=JSON.parse(t.text);if(!n||typeof n!="object"||Array.isArray(n))return null;const o=n[Ze];return typeof o=="string"&&Xe.test(o)?o:null}catch{return null}}function I(e){return Array.isArray(e)?`[${e.map(I).join(",")}]`:e&&typeof e=="object"?`{${Object.entries(e).sort(([n],[o])=>n<o?-1:n>o?1:0).map(([n,o])=>`${JSON.stringify(n)}:${I(o)}`).join(",")}}`:JSON.stringify(e)??"undefined"}function et(e){const t=Y(e);if(!t)return null;if(t.mimeType===Te)try{const o=JSON.parse(t.text);if(Ne(o))return`proposal:${o.kind}:${o.applyToolCallId??o.preview.title}:${I(o.payload)}`}catch{}const n=z(e);return n?`nonce:${n}`:t.uri.length>0?`uri:${t.uri}:${t.text}`:null}function L(e){return z(e)!==null}function tt(e){const t=new Map,n=[];for(const o of e){const c=et(o);if(c===null){n.push(o);continue}const s=t.get(c);if(s===void 0){t.set(c,n.length),n.push(o);continue}L(o)&&!L(n[s])&&(n[s]=o)}return n}function V(e,t){if(typeof t!="string"||t.length===0)return!1;const n=e?.dismissedQuestionsMessageId;return typeof n=="string"&&n===t}function nt(e){if(e.skipped)return"(skipped)";const t=[...e.selectedLabels],n=e.imageBlocks?.length??0,o=n===0?"":n===1?R.chat_questionWizard_imagesAttached_label_one():R.chat_questionWizard_imagesAttached_label_many({count:Be(n)});return(e.freeText||n>0)&&t.push(`(Other) ${[e.freeText,o].filter(Boolean).join(" ")}`),t.length===0?"(skipped)":t.join(", ")}function ot(e){return e.map(t=>`Q: ${t.question.question}
1
+ import{Ja as j,Jx as r,sn as me,nZ as m,BY as Se,nY as g,m as F,rV as K,BZ as q,i as ye,nL as $,A as be}from"./D5wnbxHp.js";import{k as ve}from"./uXuxG9cN.js";import{selectCurrentWorkspaceTabId as he}from"./L3K71tUU.js";import{s as Ce}from"./COVS9Crf.js";import{cR as Ee,cf as w,cd as Me,cc as Ie,co as Ae,bJ as ke,t as we,cJ as P,O as Pe,e8 as _e,dS as Q,aJ as Oe,cA as Re}from"./BJbm_MWC.js";import{K as _,L as Le}from"./Idk978zJ.js";import{P as Te,c as Ne}from"./B5aYN90J.js";import{bm as R}from"./YLhFQnIu.js";import{l as Be}from"./DIEHuZ8f.js";function He(e,t,n){if(!e||!n?.length)return null;const o=new Set(n);if(t!==null&&!o.has(t))return null;const c=e.lastIndexOf("/"),s=c>=0?e.slice(c+1):"",a=o.has(s)?e.slice(0,c):e;return t===null?a:`${a}/${t}`}const xe={major:5,minor:2};function De(e){const{major:t,minor:n}=xe;return ve(e,t,n)}function E(e,t,n){const o=j(e);return o.providerId&&n(o.providerId)===t?o.modelId:e}function C(e,t){const n=t(e);if(n)return n;const o=/\/(minimal|low|medium|high|xhigh|max|ultra|none)$/i.exec(e);if(!o||o.index===0)return;const c=t(e.slice(0,o.index)),s=o[1].toLowerCase();return c?`${c} (${s.charAt(0).toUpperCase()}${s.slice(1)})`:void 0}function We(e,t){return JSON.stringify([t||null,e])}const je=r.createSelector((e,t)=>(t?e.providerModels?.byWorkspaceId?.[t]:e.providerModels?.byProviderId)??{}),Bt=r.createSelector((e,t,n)=>je.select(e,n)[t]),Ht=r.createSelector(e=>e.providerModels?.clearEpoch??0),xt=r.createSelector((e,t)=>(t?e.providerModels?.requestsByWorkspaceId?.[t]?.map:e.providerModels?.requests?.map)??{}),Fe=r.createSelector(e=>Object.fromEntries(Object.values(e.providerModels?.observers?.map??{}).flatMap(({providerIds:t,workspaceId:n})=>t.map(o=>[We(o,n),{providerId:o,workspaceId:n}])))),Dt=r.createSelector(e=>Object.keys(Fe.select(e)).sort()),Ke=r.createSelector((e,t,n)=>me(e.providerModels?.learnedNames??{},t,n)),Wt=r.createSelector(e=>e.providerModels.learnedNames),jt=r.createSelector(e=>e.model),Ft=r.createSelector(e=>{const t=Ee.select(e),n=w.select(e);if(!t||n!=="owner"&&n!=="member")return null;const o=_.select(e);return n==="member"&&!o?null:JSON.stringify([t,o,n==="member"?Me.select(e):null])});function U(e,t){return t??_.select(e)}const O=r.createSelector((e,t)=>{const n=U(e,t),o=e.model.availableModelsProviderId===n?m(e.model.availableModels):[],c=Ie.select(e),s=Ae.select(e)?c?.defaultProviderId===n?c.defaultModelId:null:e.model.providerModels[n];return s||(Le.select(e).includes(n)?Se(o):"")}),qe=r.createSelector((e,t)=>O.select(e,t)!==""),Kt=r.createSelector(e=>_.select(e)!==""||qe.select(e)),$e=r.createSelector(e=>e.model.availableModels),qt=r.createSelector(e=>m($e.select(e))),$t=r.createSelector(e=>e.model.availableModelsProviderId),J=r.createSelector((e,t)=>{const n=U(e,t);return e.model.loadingState[n]??null}),Qt=r.createSelector((e,t)=>J.select(e,t)?.status==="loading"),Ut=r.createSelector((e,t)=>{const n=J.select(e,t);return n?.status!=="error"?null:n.error??null}),Jt=r.createSelector(e=>{const t={};for(const[n,o]of Object.entries(e.model.loadingState))o.warning&&(t[n]=o.warning);return t}),Gt=r.createSelector(e=>{const t={};for(const[n,o]of Object.entries(e.model.loadingState))o.stale&&(t[n]=!0);return t}),Yt=r.createSelector(e=>{const t={};for(const[n,o]of Object.entries(e.model.loadingState))o.warning&&o.warningKind&&(t[n]=o.warningKind);return t}),zt=r.createSelector(e=>e.model.providerModels),Vt=r.createSelector(e=>e.model.defaultReasoningEffort),Zt=r.createSelector(e=>e.model.modelPickerCollapsedGroups),Xt=r.createSelector((e,t)=>e.model.fallbackInfoByAgentId[t]??null),Qe=r.createSelector((e,t,n,o)=>{const c=d=>P.select(e,d,o),s=c(t),a=E(n,s,c),l=e.model?.availableModels;if(!o&&l&&(!s||s===e.model.availableModelsProviderId)){const d=g(l,n)??g(l,a);if(d)return d}const i=o?e.providerModels?.byWorkspaceId?.[o]?.[s]:e.providerModels?.byProviderId?.[s];return i?.models.find(d=>d.value===n)??i?.models.find(d=>E(d.value,s,c)===a)}),en=r.createSelector((e,t,n,o)=>{const c=d=>P.select(e,d,o),s=c(t),a=E(n,s,c),l=d=>Qe.select(e,s,d,o)?.label,i=d=>Ke.select(e,s,d);return C(n,l)??(a!==n?C(a,l):void 0)??i(n)??C(a,i)}),Ue=r.createSelector((e,t)=>{if(!t)return;const n=e.model?.availableModels;if(!n)return;const o=M(t);return g(n,o)?.effortLevels});function M(e){const t=j(e).modelId,n=t.indexOf("/");return n>0?t.slice(0,n):t}const Je=r.createSelector((e,t,n,o)=>{if(n){if(!o&&(!t||t===e.model?.availableModelsProviderId)){const c=Ue.select(e,n);if(c)return c}if(t){const c=M(n);return(o?e.providerModels?.byWorkspaceId?.[o]?.[t]:e.providerModels?.byProviderId[t])?.models.find(a=>M(a.value)===c)?.effortLevels}}}),Ge=r.createSelector((e,t)=>{const n=e.agentSessions?.byAgentId[t];if(!n)return;if(Array.isArray(n.effortLevels)&&n.effortLevels.length>0)return n.effortLevels;const o=n.workspaceId?e.providerCatalog?.byWorkspaceId?.[n.workspaceId]?.settings??[]:void 0,c=o?.find(b=>b.path==="model.defaultProvider")?.value,s=o?typeof c=="string"?c:"":ke.select(e),a=we(n,s),l=P.select(e,a??s,n.workspaceId),i=o?.find(b=>b.path==="model.providerDefaults")?.value,d=i&&typeof i=="object"?i[l]:void 0,v=n.model??(o?typeof d=="string"?d:"":O.select(e,l));return Je.select(e,l,v,n.workspaceId)}),G="application/vnd.intent.question+json";function Ye(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 ze(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(Ye)&&(t.multiSelect===void 0||typeof t.multiSelect=="boolean")}function tn(e){if(!e||typeof e!="object")return!1;const t=e;if(t.type!=="resource")return!1;const n=t.resource;return typeof n=="object"&&n!==null&&n.mimeType===G}function Ve(e){if(!e||typeof e!="object")return null;const t=e,n=t.resource??t.metadata?.resource??t;if(!n||typeof n!="object"||n.mimeType!==G||typeof n.text!="string")return null;try{const o=JSON.parse(n.text);return ze(o)?o:null}catch{return null}}const Ze="attachmentId",Xe=/^tar-[0-9a-f]{12}$/;function Y(e){if(!e||typeof e!="object")return null;const t=e;if(t.type!=="resource")return null;const n=t.resource;return!n||typeof n!="object"||typeof n.uri!="string"||typeof n.mimeType!="string"||typeof n.text!="string"||n.name!==void 0&&typeof n.name!="string"?null:n}function z(e){const t=Y(e);if(!t)return null;try{const n=JSON.parse(t.text);if(!n||typeof n!="object"||Array.isArray(n))return null;const o=n[Ze];return typeof o=="string"&&Xe.test(o)?o:null}catch{return null}}function I(e){return Array.isArray(e)?`[${e.map(I).join(",")}]`:e&&typeof e=="object"?`{${Object.entries(e).sort(([n],[o])=>n<o?-1:n>o?1:0).map(([n,o])=>`${JSON.stringify(n)}:${I(o)}`).join(",")}}`:JSON.stringify(e)??"undefined"}function et(e){const t=Y(e);if(!t)return null;if(t.mimeType===Te)try{const o=JSON.parse(t.text);if(Ne(o))return`proposal:${o.kind}:${o.applyToolCallId??o.preview.title}:${I(o.payload)}`}catch{}const n=z(e);return n?`nonce:${n}`:t.uri.length>0?`uri:${t.uri}:${t.text}`:null}function L(e){return z(e)!==null}function tt(e){const t=new Map,n=[];for(const o of e){const c=et(o);if(c===null){n.push(o);continue}const s=t.get(c);if(s===void 0){t.set(c,n.length),n.push(o);continue}L(o)&&!L(n[s])&&(n[s]=o)}return n}function V(e,t){if(typeof t!="string"||t.length===0)return!1;const n=e?.dismissedQuestionsMessageId;return typeof n=="string"&&n===t}function nt(e){if(e.skipped)return"(skipped)";const t=[...e.selectedLabels],n=e.imageBlocks?.length??0,o=n===0?"":n===1?R.chat_questionWizard_imagesAttached_label_one():R.chat_questionWizard_imagesAttached_label_many({count:Be(n)});return(e.freeText||n>0)&&t.push(`(Other) ${[e.freeText,o].filter(Boolean).join(" ")}`),t.length===0?"(skipped)":t.join(", ")}function ot(e){return e.map(t=>`Q: ${t.question.question}
2
2
  A: ${nt(t)}`).join(`
3
3
 
4
4
  `)}const Z="question_answers";function rt(e){return{type:Z,answeredQuestionsMessageId:e}}function nn(e,t){const n=e.flatMap(o=>o.skipped?[]:o.imageBlocks??[]);return{text:ot(e),messageMetadata:rt(t),...n.length>0?{imageBlocks:n}:{}}}function T(e){if(!e||typeof e!="object")return null;const t=e;if(t.type!==Z)return null;const n=t.answeredQuestionsMessageId;return typeof n=="string"&&n.length>0?n:null}function N(e){const t=T(e),n=t?[t]:[];if(e&&typeof e=="object"&&"mergedMessageMetadata"in e){const o=e.mergedMessageMetadata;if(Array.isArray(o))for(const c of o){const s=T(c);s&&!n.includes(s)&&n.push(s)}}return n}function X(e){if(!e)return[];const t=N(e.metadata);if(t.length)return t;const n=Array.isArray(e.contentBlocks)?e.contentBlocks:[];return[...new Set(n.flatMap(o=>o.type==="text"?N(o.messageMetadata):[]))]}function ee(e){return e===void 0?{kind:"absent"}:e===""?{kind:"cleared"}:{kind:"set",messageId:e}}function B(e){return tt(e.contentBlocks??[]).map(Ve).filter(t=>t!==null)}function te(e,t){return e.some(n=>n.role==="user"&&X(n).includes(t))}function H(e,t){return e.some(n=>X({metadata:n.messageMetadata}).includes(t))}function st(e,t,n=!1,o,c=[]){if(n||e.length===0)return null;const s=ee(o);if(s.kind==="cleared")return null;if(s.kind==="set"){const a=e.find(i=>i.id===s.messageId);if(!a||a.role!=="assistant"||a.isStreaming||te(e,s.messageId)||H(c,s.messageId))return null;const l=B(a);return l.length>0?{messageId:a.id,questions:l}:null}if(t)return null;for(let a=e.length-1;a>=0;a--){const l=e[a];if(l.role==="system")continue;if(l.role!=="assistant"||l.isStreaming||H(c,l.id))return null;const i=B(l);return i.length>0?{messageId:l.id,questions:i}:null}return null}function ct(e){const t=st(e.messages??[],Pe(_e(e)),!1,e.metadata?.pendingQuestionsMessageId);return!t||V(e.metadata,t.messageId)?null:t}function at(e){if(ct(e)!==null)return!0;const t=ee(e.metadata?.pendingQuestionsMessageId);if(t.kind!=="set")return!1;const n=e.messages??[];return n.some(o=>o.id===t.messageId)||te(n,t.messageId)?!1:!V(e.metadata,t.messageId)}const ne=0,A=1,lt=2,f=4,oe=6,it=[2,3,4,5,0,1],dt=16777215,re=689407,se=3199320,ce=16766474,ae=16752394,k=16726832,le=6607615,ut=12540658,y=.9,ft=.5,ie=.25,pt=.25,gt={unassigned:{c:0,b:0,e:ne,s:0},idle:{c:dt,b:.12,e:A,s:0},running:{c:re,b:.6,e:f,s:ft},unread:{c:le,b:.4,e:f,s:ie},complete:{c:se,b:.5,e:A,s:0},attention:{c:ce,b:.8,e:f,s:y},blocked:{c:ae,b:.75,e:f,s:y},failed:{c:k,b:.7,e:f,s:y}},mt={e:ne,b:0,s:0,m:0,c:0},x=.35,St=.75,D=4;function yt(e){const n=(Math.min(Math.max(e,1),D)-1)/(D-1);return x+n*(St-x)}const bt={dark:mt,complete:{e:A,b:.25,s:0,m:0,c:se},unread:{e:f,b:.4,s:ie,m:0,c:le},question:{e:f,b:.8,s:y,m:0,c:ce},blocked:{e:f,b:.8,s:y,m:0,c:ae},failed:{e:f,b:.8,s:y,m:0,c:k},recording:{e:f,b:.8,s:y,m:0,c:k},disconnected:{e:lt,b:.2,s:pt,m:0,c:ut}};function on(e){const t=[];for(let n=0;n<oe;n+=1){const o=e[n]??"unassigned";t.push({id:it[n],...gt[o]})}return t.sort((n,o)=>n.id-o.id),t}function rn(e){const t=e.kind==="running"?{e:f,b:.5,s:yt(e.runningCount),m:0,c:re}:bt[e.kind];return{keys:{...t},ambient:{...t}}}function de(e){return $(e)?.kind==="blocker"}function ue(e){return $(e)?.kind==="discussion"||at(e)}function fe(e){return e.status===ye.Error}function W(e,t){const n=e.workspaceAgents.byWorkspaceId[t]?.foregroundAgentIds??[],o=e.agentSessions?.byAgentId??{},c=[];for(const s of n){const a=o[String(s)];a&&c.push(a)}return c}const vt=new Set(["complete","pr_queued","pr_ready","pr_open","pr_merged"]);function pe(e){return e.activity==="agent_running"||e.displayStatus==="in_progress"}function ge(e){return e.displayStatus!==void 0&&vt.has(e.displayStatus)}function ht(e,t){return t.some(fe)?"failed":t.some(de)?"blocked":t.some(ue)?"attention":pe(e)?"running":e.attention==="unread"?"unread":ge(e)?"complete":"idle"}function Ct(e){if(e.daemonHealth?.health==="down")return{keys:new Array(oe).fill("unassigned"),ambient:{kind:"disconnected"}};const t=m(e.workspace.workspaces).filter(u=>u.id!==F&&K(u)),n=new Map;for(const u of t)n.set(u.id,u);const c=q(e.hardwareConsole.keyPins,t,e.hardwareConsole.excludedWorkspaceIds??[]).map(u=>{const S=u===null?void 0:n.get(u);return S?ht(S,W(e,S.id)):"unassigned"});let s=!1,a=!1,l=!1,i=0,d=!1,v=!1;const b=new Set(e.tabState.workspaceStacks.flat());for(const u of t){if(!b.has(u.id))continue;const S=W(e,u.id);S.some(fe)&&(s=!0),S.some(de)&&(a=!0),S.some(ue)&&(l=!0),pe(u)&&(i+=1),u.attention==="unread"&&(d=!0),ge(u)&&(v=!0)}let p;return e.hardwareConsole.pttRecording===!0?p={kind:"recording"}:s?p={kind:"failed"}:a?p={kind:"blocked"}:l?p={kind:"question"}:d?p={kind:"unread"}:i>0?p={kind:"running",runningCount:i}:v?p={kind:"complete"}:p={kind:"dark"},{keys:c,ambient:p}}const sn=r.createSelector(e=>{const t=w.select(e);return t==="guest"||t==="member"}),cn=r.createSelector(e=>{const t=e.hardwareConsole;if(w.select(e)!=="owner"||!t?.isConsoleOwner||!t.enabledHydrationSucceeded||!t.actionMappingHydrationSucceeded)return null;const n=o=>be.filter((c,s)=>t.actionMappingByModel[o][s]==="cycle-open-windows");return JSON.stringify({enabled:t.enabled,keysByModel:{"creator-micro-2":n("creator-micro-2"),"codex-micro":n("codex-micro")}})}),an=r.createSelector(e=>e.hardwareConsole.enabled),ln=r.createSelector(e=>e.hardwareConsole.encoderBehavior),dn=r.createSelector(e=>e.hardwareConsole.encoderBehaviorSaveFailed),un=r.createSelector(e=>e.hardwareConsole.isConsoleOwner),fn=r.createSelector(e=>e.hardwareConsole.promptPickerLimit),pn=r.createSelector(e=>e.hardwareConsole.actionMappingByModel),gn=r.createSelector(e=>e.hardwareConsole.cycleScopeByFamily),mn=r.createSelector(e=>e.hardwareConsole.keyPins),Sn=r.createSelector(e=>e.hardwareConsole.excludedWorkspaceIds),yn=r.createSelector(e=>e.hardwareConsole.promptUsage),Et=r.createSelector(e=>{const t=Q.select(e).filter(K);return q(e.hardwareConsole.keyPins,t,e.hardwareConsole.excludedWorkspaceIds)}),bn=r.createSelector((e,t)=>{const n=e.hardwareConsole.keyPins.indexOf(t);return n===-1?null:n}),vn=r.createSelector((e,t)=>{const n=Et.select(e).indexOf(t);return n===-1?null:n}),hn=r.createSelector(e=>e.hardwareConsole.radialPrompt),Cn=r.createSelector(e=>e.hardwareConsole.encoderHudWorkspaceId),En=r.createSelector(e=>{const t=e.hardwareConsole.encoderHudWorkspaceId;return t===null?null:Q.select(e).find(n=>n.id===t)?.title??null}),Mn=r.createSelector(e=>e.hardwareConsole.actionHudLabel),In=r.createSelector(e=>e.hardwareConsole.pttRecording),An=r.createSelector(e=>e.hardwareConsole.pttRecording&&e.hardwareConsole.pttRecordingSource==="key"),kn=r.createSelector(e=>e.hardwareConsole.pttRecordingStartedAt),wn=r.createSelector(e=>e.hardwareConsole.pttInputLevels),Pn=r.createSelector(e=>e.hardwareConsole.voiceTranscribing),_n=r.createSelector(e=>Ct(e)),Mt=r.createSelector((e,t,n)=>{const o=e.agentSessions.byAgentId[n];if(!o||o.workspaceId!==t)return null;const c=Ge.select(e,n);if(!c?.length)return null;const s=Oe.select(e,n),a=o.model??O.select(e,s),l=e.daemonHealth.stats?.protocolVersion,i=De(l)?He(a,null,c):a;return{key:JSON.stringify([t,n,s,i,c]),workspaceId:t,agentId:n,levels:c}}),It=r.createSelector(e=>{const t=e.hardwareConsole;if(!t.enabled||!t.isConsoleOwner||!t.encoderBehaviorHydrated||t.encoderBehavior!=="agent-effort")return null;const n=he.select(e);if(!n||n===F||Re.select(e,n))return null;const o=Ce.select(e,n);return o?.type!=="agent"||!o.agentId||o.workspaceId&&o.workspaceId!==n?null:Mt.select(e,n,o.agentId)}),On=r.createSelector(e=>{const t=e.hardwareConsole.encoderEffortFeedback;return!t||It.select(e)?.key!==t.target.key?null:(e.agentSessions.byAgentId[t.target.agentId]?.reasoningEffort??null)===t.effort?t:null}),At=[],Rn=r.createSelector((e,t)=>g(e.connections.workflows,t)),Ln=r.createSelector(e=>({writing:e.connections.keychainWritesPending>0,loadFailed:e.connections.keychainLoadError,saveFailed:e.connections.keychainSaveError})),Tn=r.createSelector(e=>e.connections.selfPublication),Nn=r.createSelector(e=>e.connections.selfPublicationBusy),Bn=r.createSelector((e,t)=>({guest:g(e.guestSessions.sessions,t),connection:g(e.connections.connections,t)})),Hn=r.createSelector(e=>m(e.connections.connections).filter(t=>!t.displayOnly)),xn=r.createSelector(e=>m(e.connections.connections).filter(t=>!t.displayOnly&&t.daemonMode!=="node")),Dn=r.createSelector(e=>m(e.connections.connections).filter(t=>!t.displayOnly&&!t.isLocal)),Wn=r.createSelector(e=>e.connections.hasReceivedList);r.createSelector((e,t)=>g(e.connections.connections,t)?.status??"not-open");const jn=r.createSelector(e=>e.connections.windowBackendId),Fn=r.createSelector(e=>{const{connections:t,windowBackendId:n}=e.connections;return g(t,n)??null}),Kn=r.createSelector(e=>e.connections.pinnedVersion),qn=r.createSelector(e=>e.connections.connectedIds);r.createSelector(e=>e.connections.status);const $n=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 Qn=r.createSelector(e=>e.connections.certMismatch),Un=r.createSelector(e=>{const t={};for(const[n,o]of Object.entries(e.connections.certWarnings))t[n]=m(o);return t}),Jn=r.createSelector(e=>{const t=e.connections.certWarnings[e.connections.windowBackendId];return t?m(t):At}),Gn=r.createSelector(e=>{const{authRejected:t,windowBackendId:n}=e.connections;return t&&t.id===n?t:null}),Yn=r.createSelector(e=>{const{protocolMismatch:t,windowBackendId:n}=e.connections;return t&&t.id===n?t:null}),zn=r.createSelector(e=>{const{protocolMismatch:t,windowBackendId:n,protocolMismatchModalDismissed:o}=e.connections;return!t||t.id!==n||o?null:t}),Vn=r.createSelector(e=>e.connections.keychainSync),Zn=r.createSelector(e=>e.connections.browserHost?.manageConnections===!0),Xn=r.createSelector(e=>e.connections.browserHost?.backendBound===!1),eo=r.createSelector(e=>{const t=e.connections.browserHost;return t?.manageConnections===!0&&!t.tailcatAvailable}),h=new Map;function to(e){return h.has(e)}function no(e){return h.get(e)}function oo(e){h.set(e.agentId,e)}function ro(e){h.delete(e)}export{mn as $,oe as A,Jt as B,qt as C,$t as D,xn as E,Un as F,qn as G,Qn as H,Bn as I,Rn as J,Hn as K,Wn as L,Fn as M,Jn as N,jn as O,Vt as P,Mt as Q,On as R,It as S,Cn as T,En as U,pn as V,gn as W,an as X,ln as Y,dn as Z,Sn as _,Ct as a,Et as a0,yn as a1,hn as a2,_n as a3,Kt as a4,Zn as a5,eo as a6,$n as a7,un as a8,Qt as a9,In as aA,kn as aB,Dn as aC,O as aD,Tn as aE,Nn as aF,sn as aG,Pn as aH,cn as aI,bn as aJ,vn as aK,at as aL,ct as aM,oo as aN,De as aO,Ln as aa,Vn as ab,Ke as ac,Wt as ad,Ut as ae,Ft as af,Qe as ag,en as ah,Ue as ai,Xt as aj,Zt as ak,jt as al,Xn as am,Dt as an,Fe as ao,Kn as ap,fn as aq,zn as ar,Je as as,zt as at,Bt as au,je as av,Ht as aw,xt as ax,wn as ay,An as az,nn as b,He as c,rn as d,on as e,ee as f,tt as g,st as h,X as i,no as j,Ve as k,to as l,V as m,tn as n,te as o,H as p,E as q,We as r,ro as s,C as t,Mn as u,Gn as v,Yn as w,Ge as x,Gt as y,Yt as z};
@@ -1,4 +1,4 @@
1
- import{s as xe}from"./B4F7GG5Q.js";import{p as be}from"./CaHWSiOY.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"./BolJpU8l.js";import{p as ze}from"./C4M_mNFP.js";import{f as O,o as Q}from"./hRfDutUE.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"./bs-TVtqR.js";import{p as be}from"./CzFfpwQB.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"./B1lrKll_.js";import{p as ze}from"./D2y-zN_4.js";import{f as O,o as Q}from"./BEuhalzY.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};