@intent-hq/web 2.300.1 → 2.301.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{D24Lh2xV.js → -1vWYJiy.js} +1 -1
- package/web/app/immutable/chunks/{Cz3L4t3K.js → 0_FDVEla.js} +1 -1
- package/web/app/immutable/chunks/{CeO1YObE.js → 42GHkgj6.js} +1 -1
- package/web/app/immutable/chunks/{CUPUpXuX.js → 4I8WRxn6.js} +1 -1
- package/web/app/immutable/chunks/{uuGBA4cr.js → 4byfznQh.js} +1 -1
- package/web/app/immutable/chunks/{5sBQ6rKD.js → 6Ql_vn7X.js} +1 -1
- package/web/app/immutable/chunks/{CoKvDYIY.js → 6hOEL6g0.js} +1 -1
- package/web/app/immutable/chunks/{Cl4oF0_T.js → 7O3nfCeH.js} +1 -1
- package/web/app/immutable/chunks/{DayXN3MG.js → 8EDHNAa0.js} +1 -1
- package/web/app/immutable/chunks/{BS-h7rm3.js → 8Q_Was_5.js} +1 -1
- package/web/app/immutable/chunks/{D_HBTAOp.js → 9k5bnL8-.js} +2 -2
- package/web/app/immutable/chunks/{DD1B8iWW.js → B-JIdXlm.js} +1 -1
- package/web/app/immutable/chunks/{C0yADNxK.js → B-OGKYEx.js} +2 -2
- package/web/app/immutable/chunks/{CLwukbv5.js → B220ai_K.js} +1 -1
- package/web/app/immutable/chunks/{D_fVcaam.js → B2jj_YAX.js} +1 -1
- package/web/app/immutable/chunks/{BWAM175S.js → B4Ys_Zqk.js} +1 -1
- package/web/app/immutable/chunks/{7lKdD900.js → B52XysAQ.js} +1 -1
- package/web/app/immutable/chunks/{Cr3qamxz.js → B6wnyXxa.js} +1 -1
- package/web/app/immutable/chunks/{qoEkEEyr.js → B7VWEjxq.js} +1 -1
- package/web/app/immutable/chunks/{B00a-E5y.js → B7zUuO00.js} +1 -1
- package/web/app/immutable/chunks/{ByOlSVuA.js → B8S_XDvA.js} +1 -1
- package/web/app/immutable/chunks/{BeXyu8S7.js → B9G1J12P.js} +2 -2
- package/web/app/immutable/chunks/{B2YeO1vq.js → BAXlZEur.js} +1 -1
- package/web/app/immutable/chunks/{BKoNmPdl.js → BAbzdNi8.js} +1 -1
- package/web/app/immutable/chunks/{-j8RilKC.js → BBNnH_sw.js} +2 -2
- package/web/app/immutable/chunks/{BOBlxuhv.js → BDHBtQ3l.js} +1 -1
- package/web/app/immutable/chunks/{BnoYK4Cg.js → BEgosT1d.js} +1 -1
- package/web/app/immutable/chunks/{DfZpv0e6.js → BEj-d9Cx.js} +1 -1
- package/web/app/immutable/chunks/{cF3AJqS4.js → BF75AbUh.js} +1 -1
- package/web/app/immutable/chunks/{Djo4Utna.js → BGv3Ttev.js} +1 -1
- package/web/app/immutable/chunks/{ClQcbOPg.js → BH5cuIQi.js} +1 -1
- package/web/app/immutable/chunks/BJn7bayT.js +1 -0
- package/web/app/immutable/chunks/{BVnCu4HK.js → BL-4c5eP.js} +1 -1
- package/web/app/immutable/chunks/BLn5rsUE.js +5 -0
- package/web/app/immutable/chunks/{C1ANrPzv.js → BNPFPBlO.js} +1 -1
- package/web/app/immutable/chunks/{EZewBOPv.js → BNrl_yXC.js} +1 -1
- package/web/app/immutable/chunks/{B6GFXjaE.js → BPzYYRAs.js} +4 -4
- package/web/app/immutable/chunks/{Cc7p6my_.js → BQY3g8uE.js} +6 -6
- package/web/app/immutable/chunks/{0nqxMME2.js → BR-wS1W8.js} +1 -1
- package/web/app/immutable/chunks/{KoGdyFdq.js → BRMj8a4h.js} +1 -1
- package/web/app/immutable/chunks/{Dp-w6U2a.js → BRwNKwD7.js} +1 -1
- package/web/app/immutable/chunks/{DW4Kmsyn.js → BU8fu6L_.js} +1 -1
- package/web/app/immutable/chunks/{CojjevwO.js → BVJeg9VF.js} +3 -3
- package/web/app/immutable/chunks/{BXDqRhfc.js → BWjmxT5D.js} +1 -1
- package/web/app/immutable/chunks/{DsUUGZq_.js → BWljXDfF.js} +1 -1
- package/web/app/immutable/chunks/{1-VabEZ0.js → BXDl97pl.js} +1 -1
- package/web/app/immutable/chunks/{B5FD8FRF.js → BXU_OYLJ.js} +1 -1
- package/web/app/immutable/chunks/{C_A8Orac.js → BYk_qw69.js} +1 -1
- package/web/app/immutable/chunks/{Bx4lXaHY.js → BYxkGGC-.js} +1 -1
- package/web/app/immutable/chunks/{D6tg0AFH.js → B_iqW4nZ.js} +1 -1
- package/web/app/immutable/chunks/{seZ3kiWB.js → BbJJ4Uie.js} +1 -1
- package/web/app/immutable/chunks/{DD_wk1WS.js → BcmjbiBm.js} +2 -2
- package/web/app/immutable/chunks/{CTb5E7ts.js → BcpdiGRR.js} +1 -1
- package/web/app/immutable/chunks/{COWTRkIf.js → Bd69ye4n.js} +1 -1
- package/web/app/immutable/chunks/{gM93sUNx.js → Bd9XSgIb.js} +1 -1
- package/web/app/immutable/chunks/{BFq_nebX.js → BeAhMSSb.js} +1 -1
- package/web/app/immutable/chunks/{dJdm8RiY.js → BeLl-r8h.js} +1 -1
- package/web/app/immutable/chunks/{3cdteGtc.js → BeRTGLrw.js} +1 -1
- package/web/app/immutable/chunks/{DPaNvpDi.js → BggwWRGf.js} +1 -1
- package/web/app/immutable/chunks/{zFZ2p9zT.js → BhkBe7Jc.js} +1 -1
- package/web/app/immutable/chunks/{vTk7TgiT.js → BlFUy1M_.js} +1 -1
- package/web/app/immutable/chunks/{MSSSP_6i.js → Bloa0suE.js} +1 -1
- package/web/app/immutable/chunks/{CYIyfTfT.js → BoaSTXep.js} +1 -1
- package/web/app/immutable/chunks/{DvuFiJGX.js → BrAaVsFz.js} +1 -1
- package/web/app/immutable/chunks/{DDs4Vg0U.js → BspPTfLp.js} +1 -1
- package/web/app/immutable/chunks/{9ZGNcJrk.js → BvUM18CV.js} +1 -1
- package/web/app/immutable/chunks/{BO3uDFyf.js → BwEpZ6hl.js} +3 -3
- package/web/app/immutable/chunks/{C6MidKO1.js → BwlxTP6m.js} +1 -1
- package/web/app/immutable/chunks/{BBKgmsAl.js → Bzu3FrPq.js} +1 -1
- package/web/app/immutable/chunks/{BRFS4VDU.js → C-VIKqni.js} +1 -1
- package/web/app/immutable/chunks/{x9rbYKj9.js → C4-u_VtZ.js} +1 -1
- package/web/app/immutable/chunks/C5MJ7BeC.js +227 -0
- package/web/app/immutable/chunks/{BPhCmCpT.js → C9PGJX9n.js} +1 -1
- package/web/app/immutable/chunks/{CqShCtgy.js → C9jifMvI.js} +1 -1
- package/web/app/immutable/chunks/{DOP6s1nq.js → C9k7mgs4.js} +4 -4
- package/web/app/immutable/chunks/{CjZ3vck_.js → CBDImldB.js} +1 -1
- package/web/app/immutable/chunks/{s1gAk8mT.js → CBYPZH-W.js} +1 -1
- package/web/app/immutable/chunks/{CJB0AMOQ.js → CC4WmnL6.js} +2 -2
- package/web/app/immutable/chunks/{C2RKkR8r.js → CEFx_w_J.js} +1 -1
- package/web/app/immutable/chunks/{DJPQ2gWl.js → CG9-31He.js} +1 -1
- package/web/app/immutable/chunks/{waEdGUDl.js → CHeQtCyR.js} +1 -1
- package/web/app/immutable/chunks/{3sRD2IoY.js → CItSvrO_.js} +1 -1
- package/web/app/immutable/chunks/{CcRQKkS2.js → CJzvjWBQ.js} +1 -1
- package/web/app/immutable/chunks/{CwSA3Dwr.js → CM8AwG-k.js} +3 -3
- package/web/app/immutable/chunks/{5GrgBznS.js → CMBaQAuw.js} +1 -1
- package/web/app/immutable/chunks/{BB2kR3UP.js → CNGkxhSe.js} +1 -1
- package/web/app/immutable/chunks/{BBi8ZQ4f.js → COMfKjnL.js} +1 -1
- package/web/app/immutable/chunks/{BVR4ypbe.js → CQMDPYtj.js} +1 -1
- package/web/app/immutable/chunks/{GgqVQsTS.js → CS5VoVeF.js} +1 -1
- package/web/app/immutable/chunks/{CZL3_4T_.js → CSdV5_bj.js} +1 -1
- package/web/app/immutable/chunks/{igt8MaJ4.js → CTmT5I7Z.js} +1 -1
- package/web/app/immutable/chunks/{BggFqLcQ.js → CUMro1vx.js} +1 -1
- package/web/app/immutable/chunks/{DB9IAENr.js → CUMzsmcb.js} +1 -1
- package/web/app/immutable/chunks/{CGXAF4r8.js → CVC-R1OI.js} +1 -1
- package/web/app/immutable/chunks/{B23FAgl4.js → CXdTWTzB.js} +1 -1
- package/web/app/immutable/chunks/{DOpzySCS.js → CXkYtIUm.js} +1 -1
- package/web/app/immutable/chunks/{IFT0w_rv.js → CXqGB8i2.js} +1 -1
- package/web/app/immutable/chunks/{C0sDoyzY.js → CXtOOnh0.js} +1 -1
- package/web/app/immutable/chunks/{BKBZBubB.js → CZE4HQ01.js} +1 -1
- package/web/app/immutable/chunks/{dAdxFhG6.js → CbF4ODHW.js} +1 -1
- package/web/app/immutable/chunks/{XRDpypMz.js → Ce-KYi-n.js} +1 -1
- package/web/app/immutable/chunks/{BsU6XLOF.js → Ce8PMxuE.js} +1 -1
- package/web/app/immutable/chunks/{DOlRZEzP.js → CeX5z_vs.js} +1 -1
- package/web/app/immutable/chunks/{DYFbONVh.js → CenrrJuj.js} +2 -2
- package/web/app/immutable/chunks/{B0WURFIt.js → Cf891EVZ.js} +1 -1
- package/web/app/immutable/chunks/{DczZ5XlV.js → CiBStNAr.js} +3 -3
- package/web/app/immutable/chunks/{yr_icLi6.js → Ciihhv86.js} +1 -1
- package/web/app/immutable/chunks/{C7jsu14h.js → Citu-dNT.js} +1 -1
- package/web/app/immutable/chunks/{5D7P8R1M.js → CixlkwsU.js} +1 -1
- package/web/app/immutable/chunks/{DSoSzq2S.js → CjhAOkhP.js} +1 -1
- package/web/app/immutable/chunks/{Dpront9T.js → ClJKqwKB.js} +1 -1
- package/web/app/immutable/chunks/{DfARSELN.js → ClOUpVZZ.js} +3 -3
- package/web/app/immutable/chunks/{D1YVXYbM.js → CnWtv34Y.js} +7 -7
- package/web/app/immutable/chunks/{BRX8YzX5.js → CoJOpuAN.js} +1 -1
- package/web/app/immutable/chunks/{BQ3lIAxU.js → Cr5KYQBW.js} +1 -1
- package/web/app/immutable/chunks/{DPODhnzy.js → CtcF6bbr.js} +2 -2
- package/web/app/immutable/chunks/{BzvRDF8m.js → Cu4QpKDr.js} +1 -1
- package/web/app/immutable/chunks/{TKDyISXm.js → Cu8J93FR.js} +3 -3
- package/web/app/immutable/chunks/{DDDplTKI.js → CunMRDJl.js} +1 -1
- package/web/app/immutable/chunks/{DEMyUrKD.js → CvgQ9EkY.js} +1 -1
- package/web/app/immutable/chunks/{f3mINTV_.js → Cw1gOOP4.js} +1 -1
- package/web/app/immutable/chunks/{DUb-Rw9h.js → CzVv3uRF.js} +1 -1
- package/web/app/immutable/chunks/{YJmoM74E.js → CzeYC5kK.js} +1 -1
- package/web/app/immutable/chunks/{CqbBHiiS.js → D1IlJCd0.js} +1 -1
- package/web/app/immutable/chunks/{CcJbNmRb.js → D54_bMKf.js} +1 -1
- package/web/app/immutable/chunks/{Ca7foKhO.js → D5_2GYC0.js} +1 -1
- package/web/app/immutable/chunks/{BoVqnGlE.js → DAjW_Z-R.js} +1 -1
- package/web/app/immutable/chunks/{4MuDb8sG.js → DBGO1w9a.js} +1 -1
- package/web/app/immutable/chunks/{CbSjEe9c.js → DBdfwYFa.js} +1 -1
- package/web/app/immutable/chunks/{CjJmucSj.js → DCv8NaxM.js} +1 -1
- package/web/app/immutable/chunks/{WAk1in99.js → DE5Vt-mk.js} +1 -1
- package/web/app/immutable/chunks/{CZ0U9o7-.js → DELLe_1a.js} +1 -1
- package/web/app/immutable/chunks/{D8RydOZp.js → DGW6wXEq.js} +1 -1
- package/web/app/immutable/chunks/{xnqT8zWA.js → DIceyoUA.js} +1 -1
- package/web/app/immutable/chunks/{l4QAkguk.js → DJ00LNUR.js} +1 -1
- package/web/app/immutable/chunks/DJ_9F2bm.js +1 -0
- package/web/app/immutable/chunks/{CtPUg4ad.js → DKolS8Ht.js} +1 -1
- package/web/app/immutable/chunks/{CNsCQ6no.js → DMaQDnJk.js} +1 -1
- package/web/app/immutable/chunks/{CbB5VTQO.js → DMnHL_j_.js} +1 -1
- package/web/app/immutable/chunks/{BpS2Zkky.js → DNKZQCox.js} +1 -1
- package/web/app/immutable/chunks/{lfN_4jdk.js → DNyxd11M.js} +1 -1
- package/web/app/immutable/chunks/{D7tJZDri.js → DU4GH855.js} +1 -1
- package/web/app/immutable/chunks/{DxZVPzM-.js → DVnNWj1L.js} +1 -1
- package/web/app/immutable/chunks/{BTiFAxnk.js → DWUInPKR.js} +1 -1
- package/web/app/immutable/chunks/{Cs8-gQAN.js → DYywvoax.js} +1 -1
- package/web/app/immutable/chunks/{D1mml-OO.js → DZCBh97_.js} +1 -1
- package/web/app/immutable/chunks/{CIhr4uzF.js → DZKVhZfO.js} +1 -1
- package/web/app/immutable/chunks/{BVLclYIV.js → DZwXyTtM.js} +1 -1
- package/web/app/immutable/chunks/{iYBu_bIg.js → D_Ou_6lS.js} +1 -1
- package/web/app/immutable/chunks/{DHUOIULZ.js → DaqPl4Tz.js} +1 -1
- package/web/app/immutable/chunks/{CyAayV8v.js → Dax20l9D.js} +2 -2
- package/web/app/immutable/chunks/{DR4IMcDF.js → Dcbdz0Jw.js} +1 -1
- package/web/app/immutable/chunks/{C9KORVFh.js → DdV_6_CH.js} +1 -1
- package/web/app/immutable/chunks/{BiyBBgWJ.js → DeBsmEqU.js} +1 -1
- package/web/app/immutable/chunks/{CViglT06.js → DeI8FMuz.js} +1 -1
- package/web/app/immutable/chunks/{xn0HgFL2.js → DediWp9-.js} +1 -1
- package/web/app/immutable/chunks/{BVT8FnwX.js → Denyu19x.js} +1 -1
- package/web/app/immutable/chunks/{BmZ0oFC-.js → DgBCXQ71.js} +1 -1
- package/web/app/immutable/chunks/{CHHzckiT.js → DhGPSsBf.js} +1 -1
- package/web/app/immutable/chunks/{BcN0a7iZ.js → Dj_FVUHS.js} +1 -1
- package/web/app/immutable/chunks/{BPC4bZ2e.js → DkibMP99.js} +1 -1
- package/web/app/immutable/chunks/{CMxICaSn.js → Dl3AQcJn.js} +1 -1
- package/web/app/immutable/chunks/{6bctAAQ4.js → DmJbtm9p.js} +2 -2
- package/web/app/immutable/chunks/{QvMOlSpE.js → DmUU4JxK.js} +1 -1
- package/web/app/immutable/chunks/{CI_dqO7A.js → Dma9ms7u.js} +1 -1
- package/web/app/immutable/chunks/{Bkny4U08.js → Dmf4WObG.js} +1 -1
- package/web/app/immutable/chunks/{CMT8W8d8.js → DnCf3QiL.js} +1 -1
- package/web/app/immutable/chunks/{B1BoYgO3.js → DoOAeI0m.js} +1 -1
- package/web/app/immutable/chunks/{AFSjjw3j.js → Do_TqlrK.js} +1 -1
- package/web/app/immutable/chunks/{DnSvdDJQ.js → DrHxWi1S.js} +1 -1
- package/web/app/immutable/chunks/{VIc8fDOK.js → DrNVHvhK.js} +1 -1
- package/web/app/immutable/chunks/{Ozne-tFy.js → Drgj5uDM.js} +41 -41
- package/web/app/immutable/chunks/{2ZXwYJuA.js → DsHbB0Gk.js} +1 -1
- package/web/app/immutable/chunks/{UiwXoSAw.js → DsrgAjSN.js} +1 -1
- package/web/app/immutable/chunks/{DOb83nqS.js → DtagNJGy.js} +1 -1
- package/web/app/immutable/chunks/{Dj9vAmvP.js → DuInbvT4.js} +1 -1
- package/web/app/immutable/chunks/{WhG7Bgtb.js → DvqgRsDd.js} +1 -1
- package/web/app/immutable/chunks/{BWaQmmKL.js → DvrTNX0e.js} +1 -1
- package/web/app/immutable/chunks/{2N3bEpgZ.js → DyVKK3zU.js} +1 -1
- package/web/app/immutable/chunks/{DjJQPfKI.js → Dzu7FPMr.js} +1 -1
- package/web/app/immutable/chunks/{CAdJgRT-.js → EzIyeu9q.js} +1 -1
- package/web/app/immutable/chunks/{BuBWlA2n.js → IISaQsK0.js} +1 -1
- package/web/app/immutable/chunks/IJYL54f1.js +1 -0
- package/web/app/immutable/chunks/{CLt_MpVR.js → Jf6CJclx.js} +1 -1
- package/web/app/immutable/chunks/{J1JvTxzS.js → KG68UpwU.js} +1 -1
- package/web/app/immutable/chunks/{DzxV-zrJ.js → M8sdbvOT.js} +1 -1
- package/web/app/immutable/chunks/{D31GMMqw.js → Mjh5v3L0.js} +1 -1
- package/web/app/immutable/chunks/{DW3NYbCg.js → NDnZ2f46.js} +1 -1
- package/web/app/immutable/chunks/{_wdKNOb8.js → NPItrD9R.js} +1 -1
- package/web/app/immutable/chunks/{qVOvfVaw.js → Pq3i4zFA.js} +1 -1
- package/web/app/immutable/chunks/{ConaHaDS.js → Q-IbWJI_.js} +1 -1
- package/web/app/immutable/chunks/{BL66wtH1.js → SNezQIpP.js} +1 -1
- package/web/app/immutable/chunks/{DBYwZc8q.js → T1WqHZLZ.js} +1 -1
- package/web/app/immutable/chunks/{Dy75eCEg.js → T995SloE.js} +1 -1
- package/web/app/immutable/chunks/{2DcZXs_F.js → UMA3RT0s.js} +1 -1
- package/web/app/immutable/chunks/{D_0pJDZv.js → UakvtOgc.js} +1 -1
- package/web/app/immutable/chunks/{CURgPz9A.js → Vx0IIPew.js} +1 -1
- package/web/app/immutable/chunks/{B648LYGe.js → bDcdMMyl.js} +1 -1
- package/web/app/immutable/chunks/{g8wzFaTr.js → eEZIbdzf.js} +1 -1
- package/web/app/immutable/chunks/{BKb2X4nY.js → ggRICgWE.js} +1 -1
- package/web/app/immutable/chunks/{CNcMC2eS.js → hOR9B4V4.js} +1 -1
- package/web/app/immutable/chunks/{B9UG1fIf.js → i9DVPIlR.js} +1 -1
- package/web/app/immutable/chunks/{Q0MFbJMW.js → k6s8dGrA.js} +1 -1
- package/web/app/immutable/chunks/{0-b4ZvTK.js → knnjLtf9.js} +1 -1
- package/web/app/immutable/chunks/{DHZp-IFS.js → mNkJFQiA.js} +1 -1
- package/web/app/immutable/chunks/{B08ZRfRe.js → mkPaye9m.js} +1 -1
- package/web/app/immutable/chunks/{WC951FwE.js → nz1YTpIq.js} +1 -1
- package/web/app/immutable/chunks/{CuGpCjd7.js → oqxFFnht.js} +1 -1
- package/web/app/immutable/chunks/{CCOyeB8l.js → p8msS16l.js} +1 -1
- package/web/app/immutable/chunks/{MkI4_nBU.js → qwx0AE4b.js} +1 -1
- package/web/app/immutable/chunks/{h-HGzFkJ.js → tkZmaR4M.js} +4 -4
- package/web/app/immutable/chunks/{CilxFmmt.js → tzy2FJ3p.js} +1 -1
- package/web/app/immutable/chunks/{7L5DlLPB.js → vt-D6r-U.js} +1 -1
- package/web/app/immutable/chunks/{CKXP5Dfl.js → w0VuoJIl.js} +1 -1
- package/web/app/immutable/chunks/{nn-FB5iu.js → w7xvX9oI.js} +1 -1
- package/web/app/immutable/chunks/{C7NJtCoD.js → y8su61xq.js} +2 -2
- package/web/app/immutable/chunks/{3pZ2C7Oz.js → yQ0Z1VHW.js} +1 -1
- package/web/app/immutable/chunks/{CkiTXhNV.js → ymVYL-2H.js} +3 -3
- package/web/app/immutable/chunks/{txAxF1ra.js → zl8SSmZq.js} +1 -1
- package/web/app/immutable/entry/{app.MRheiWYu.js → app.BgfLNpAH.js} +2 -2
- package/web/app/immutable/entry/start.DFg06W-g.js +1 -0
- package/web/app/immutable/nodes/{0.CtDeqO-b.js → 0.B3w9utn7.js} +1 -1
- package/web/app/immutable/nodes/{1.DkbI4cS2.js → 1.DaxXfawW.js} +1 -1
- package/web/app/immutable/nodes/{10.m8CCWmGC.js → 10.Ut2WO8-5.js} +1 -1
- package/web/app/immutable/nodes/{12.C6vEm_M7.js → 12.CEAVKYuu.js} +1 -1
- package/web/app/immutable/nodes/{13.DPA662Yd.js → 13.CJ1HRZcd.js} +1 -1
- package/web/app/immutable/nodes/{14.ByaMuLhR.js → 14.BS_itk_o.js} +1 -1
- package/web/app/immutable/nodes/{15.Byubc7Em.js → 15.CZGq0vsg.js} +1 -1
- package/web/app/immutable/nodes/{16.BmFYAQ9C.js → 16.DXjz2v3H.js} +2 -2
- package/web/app/immutable/nodes/{2.B4Inck9s.js → 2.CYzMuwKR.js} +4 -4
- package/web/app/immutable/nodes/{3.C3UUZ7iK.js → 3.63ZtoTSA.js} +1 -1
- package/web/app/immutable/nodes/{4.CtX4qgJE.js → 4.DDS6oK5o.js} +1 -1
- package/web/app/immutable/nodes/{5.yLkRrv3R.js → 5.DsTfq2mA.js} +1 -1
- package/web/app/immutable/nodes/6.BH8FJ3Wf.js +1 -0
- package/web/app/immutable/nodes/{7.DCFEio1e.js → 7.DW27zT40.js} +1 -1
- package/web/app/immutable/nodes/{8.CGM4vick.js → 8.B4CNA7De.js} +4 -4
- package/web/app/immutable/nodes/{9.V5qvVUf3.js → 9.Nt9iZ731.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/9A9__2dZ.js +0 -1
- package/web/app/immutable/chunks/BqQtQly_.js +0 -5
- package/web/app/immutable/chunks/D4Mfx79s.js +0 -227
- package/web/app/immutable/chunks/DGR4UUG4.js +0 -1
- package/web/app/immutable/chunks/W-gkWrYK.js +0 -1
- package/web/app/immutable/entry/start.CSXPreJt.js +0 -1
- package/web/app/immutable/nodes/6.CjUsIDeG.js +0 -1
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
import{t as Ge,bq as m,bo as d,a_ as me,by as qe,b as He,bt as Sr,bu as mt,bs as Fr}from"./yZ5s7S5S.js";import{bs as je,ay as q,be as dt,b$ as tt,b_ as W,bO as G,W as h,bS as g,aD as e,a7 as _t,bl as he,bn as Ze,c9 as b,aA as _,aB as Z,ca as Pe,c0 as ht,bH as i,a5 as Q,bA as ee,bV as M,br as xt,bk as Tr,bj as $r,bf as xo,c5 as Ct,aw as Jt,bz as Co,cd as Gt}from"./B8o4lNgr.js";import{c as Y}from"./CVjN4vxe.js";import{h as br,i as ko,k as Et,s as Je,l as Io,I as Eo,a as kt}from"./D46WSk8U.js";import{b as vt}from"./D2g8BuR1.js";import{d as mr}from"./DOP6s1nq.js";import{E as Po,D as Lo,I as Ro}from"./G0_EiVNo.js";import{c as or}from"./ChTqQfQN.js";import{b as So}from"./s1gAk8mT.js";import{f as Re,bc as Fo}from"./CyAayV8v.js";import{n as at}from"./3cdteGtc.js";import{s as To}from"./Cb1eroFO.js";import{ch as Nr,F as ve,a6 as $o,aU as No,ao as Uo,cB as Ao,aI as Bo,aV as Xt,$ as nr,a1 as ar,aY as Oo,at as Mo,cb as Ur,bM as Ar,b5 as Do,cJ as Br,cf as Or,av as Vo}from"./ah7LAYm4.js";import"./BIqUw3gi.js";import{Hb as Ee,fK as Wo,bu as Ko,ya as zo,xx as Go,Ja as _r,dO as qo,bN as Ho,J9 as jo,tk as Zo,J7 as hr,gq as Jo,sI as Xo,J8 as Yo,IP as yr,J6 as xr}from"./WOicJa2k.js";import{a as Mr,B as It}from"./Ck8ZjaJh.js";import{c7 as Qo}from"./DfARSELN.js";import{$ as en}from"./C0yADNxK.js";import{w as tn,K as rn}from"./CWKAugar.js";import{I as Tt}from"./Bx4lXaHY.js";import{d as on}from"./BO3uDFyf.js";import{a7 as nn}from"./h-HGzFkJ.js";import{i as Yt}from"./Da6QaYq0.js";import{i as an,a as sn}from"./0nqxMME2.js";import{R as ln,n as qt,o as lt,m as dn,l as ze,s as Dr,k as Vr,K as un,p as cn,r as fn,q as gn,M as Wr}from"./9ZGNcJrk.js";import{k as vn,B as pn}from"./CJB0AMOQ.js";import"./CoKvDYIY.js";import{t as Ue}from"./Dfbagr79.js";import{M as Kr}from"./BB2kR3UP.js";import"./CM5eCs6m.js";import"./CilxFmmt.js";import"./hEq6dFYU.js";import{o as Cr,s as it,n as St}from"./CpHIRYx9.js";import{g as wn}from"./CoSk1zgY.js";import{f as bn}from"./IFT0w_rv.js";import{az as mn,a1 as _n,Q as hn}from"./CojjevwO.js";import{aN as yn}from"./D24Lh2xV.js";function xn(o,r){return o.loadURL(r)}function Cn(o){return{previousUrlProp:o||null}}function kr(o,r){o.previousUrlProp=r}function kn(o,r,a){const v=a||r;return o.previousUrlProp===v?null:(o.previousUrlProp=v,v)}function In(o,r,a){return r?o.previousUrlProp===null?(o.previousUrlProp=r,{shouldLoad:!1,targetUrl:null}):r===o.previousUrlProp?{shouldLoad:!1,targetUrl:null}:a.webviewReady?(o.previousUrlProp=r,a.isValidBrowserUrl(r)?{shouldLoad:!0,targetUrl:r}:{shouldLoad:!1,targetUrl:null}):{shouldLoad:!1,targetUrl:null}:{shouldLoad:!1,targetUrl:null}}const zr=or("TabBoundsReporter"),En=150;function Ht(o,r,a){!(r>0)||!(a>0)||window.electronAPI?.invoke("browser:report-tab-bounds",{tabId:o,width:r,height:a}).catch(v=>{zr.debug("Failed to report tab bounds",{tabId:o,error:v})})}function Ir(o){window.electronAPI?.invoke("browser:report-tab-bounds",{tabId:o}).catch(r=>{zr.debug("Failed to clear tab bounds",{tabId:o,error:r})})}function Pn(o,r){let a=r,v;const P=typeof ResizeObserver>"u"?void 0:new ResizeObserver(L=>{if(!a)return;const E=L[L.length-1]?.contentRect;if(!E)return;const w=a;clearTimeout(v),v=setTimeout(()=>{Ht(w,E.width,E.height)},En)});if(P?.observe(o),a){const L=o.getBoundingClientRect();Ht(a,L.width,L.height)}return{update(L){if(L!==a&&(clearTimeout(v),a&&Ir(a),a=L,a)){const E=o.getBoundingClientRect();Ht(a,E.width,E.height)}},destroy(){clearTimeout(v),P?.disconnect(),a&&Ir(a)}}}function Gr(o){let r=o.trim();if(!r)return null;/^[a-z][a-z0-9+.-]*:\/\//i.test(r)||(r=(r.includes("localhost")||r.includes("127.0.0.1")||r.includes("0.0.0.0")?"http://":"https://")+r);try{return new URL(r),r}catch{return null}}function st(o,r=typeof window<"u"?window.location.origin:""){if(o==="about:blank")return!0;if(!o)return!1;try{const a=new URL(o);return Mr.NAVIGATION_ALLOWED.includes(a.protocol)&&a.origin!==r}catch{return!1}}const Qt="__INTENT_PANEL_BRACKET__:",Ln=`
|
|
2
|
-
(function() {
|
|
3
|
-
if (window.__augmentKeyboardInterceptorInstalled) return;
|
|
4
|
-
window.__augmentKeyboardInterceptorInstalled = true;
|
|
5
|
-
function forwardPanelShortcut(e) {
|
|
6
|
-
e.preventDefault();
|
|
7
|
-
e.stopPropagation();
|
|
8
|
-
console.log(
|
|
9
|
-
'${Qt}' +
|
|
10
|
-
[
|
|
11
|
-
e.key,
|
|
12
|
-
e.shiftKey ? '1' : '0',
|
|
13
|
-
e.metaKey ? '1' : '0',
|
|
14
|
-
e.ctrlKey ? '1' : '0',
|
|
15
|
-
e.altKey ? '1' : '0',
|
|
16
|
-
].join(':')
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
document.addEventListener('keydown', function(e) {
|
|
20
|
-
const isMod = e.metaKey || e.ctrlKey;
|
|
21
|
-
// Cmd+W / Ctrl+W - close tab
|
|
22
|
-
if (isMod && (e.key === 'w' || e.key === 'W')) {
|
|
23
|
-
e.preventDefault();
|
|
24
|
-
e.stopPropagation();
|
|
25
|
-
console.log('__INTENT_CLOSE_TAB__');
|
|
26
|
-
}
|
|
27
|
-
// Cmd+R / Ctrl+R / F5 - refresh browser
|
|
28
|
-
if (e.key === 'F5' || (isMod && (e.key === 'r' || e.key === 'R'))) {
|
|
29
|
-
e.preventDefault();
|
|
30
|
-
e.stopPropagation();
|
|
31
|
-
console.log('__INTENT_REFRESH__');
|
|
32
|
-
}
|
|
33
|
-
// Cmd+L / Ctrl+L - edit the current address
|
|
34
|
-
if (isMod && !e.shiftKey && !e.altKey && (e.key === 'l' || e.key === 'L')) {
|
|
35
|
-
e.preventDefault();
|
|
36
|
-
e.stopPropagation();
|
|
37
|
-
console.log('__INTENT_FOCUS_URL__');
|
|
38
|
-
}
|
|
39
|
-
// Forward pane (Mod+[ ]) and workspace-tab (Mod+Shift+[ ]) bracket shortcuts.
|
|
40
|
-
if (isMod && !e.altKey && ['[', ']', '{', '}'].includes(e.key)) {
|
|
41
|
-
forwardPanelShortcut(e);
|
|
42
|
-
}
|
|
43
|
-
// Forward column focus (Mod+Alt+Left/Right). Mod is Cmd on macOS and Ctrl elsewhere,
|
|
44
|
-
// so Ctrl+Opt+Arrow on a Mac stays with the page.
|
|
45
|
-
const isMac = /mac/i.test(navigator.platform);
|
|
46
|
-
const isPlatformMod = isMac ? e.metaKey && !e.ctrlKey : e.ctrlKey && !e.metaKey;
|
|
47
|
-
if (
|
|
48
|
-
isPlatformMod &&
|
|
49
|
-
e.altKey &&
|
|
50
|
-
!e.shiftKey &&
|
|
51
|
-
(e.key === 'ArrowLeft' || e.key === 'ArrowRight')
|
|
52
|
-
) {
|
|
53
|
-
forwardPanelShortcut(e);
|
|
54
|
-
}
|
|
55
|
-
// Cmd+Shift+C / Ctrl+Shift+C - copy current browser URL
|
|
56
|
-
if (isMod && e.shiftKey && !e.altKey && (e.key === 'c' || e.key === 'C')) {
|
|
57
|
-
e.preventDefault();
|
|
58
|
-
e.stopPropagation();
|
|
59
|
-
console.log('__INTENT_COPY_URL__');
|
|
60
|
-
}
|
|
61
|
-
// Cmd+Option+I / Ctrl+Shift+I - open devtools
|
|
62
|
-
if ((e.metaKey && e.altKey && (e.key === 'i' || e.key === 'I')) ||
|
|
63
|
-
(e.ctrlKey && e.shiftKey && (e.key === 'i' || e.key === 'I'))) {
|
|
64
|
-
e.preventDefault();
|
|
65
|
-
e.stopPropagation();
|
|
66
|
-
console.log('__INTENT_DEVTOOLS__');
|
|
67
|
-
}
|
|
68
|
-
}, true);
|
|
69
|
-
})();
|
|
70
|
-
`;function Rn(o){if(!o.startsWith(Qt))return null;const[r,a,v,P,L]=o.slice(Qt.length).split(":");return r?{key:r,shiftKey:a==="1",metaKey:v==="1",ctrlKey:P==="1",altKey:L==="1"}:null}function Sn(o){return!o.altKey||o.metaKey||o.ctrlKey?null:o.key==="ArrowLeft"?"back":o.key==="ArrowRight"?"forward":null}const $t=[{id:"iphone-se",name:"iPhone SE",category:"phone",width:375,height:667},{id:"iphone-15",name:"iPhone 15",category:"phone",width:393,height:852},{id:"pixel-8",name:"Pixel 8",category:"phone",width:412,height:915},{id:"ipad-mini",name:"iPad Mini",category:"tablet",width:768,height:1024},{id:"ipad-pro-11",name:"iPad Pro 11″",category:"tablet",width:834,height:1194},{id:"desktop-1280x800",name:"1280 × 800",category:"desktop",width:1280,height:800},{id:"desktop-1440x900",name:"1440 × 900",category:"desktop",width:1440,height:900}];function Fn(o){return{...o,width:o.height,height:o.width}}var Tn=Z('<span class="min-w-0 flex-1 truncate"> </span> <span class="type-caption ml-3 text-muted-foreground"> </span>',1),jt=Z("<!> <!> <!>",1),$n=Z('<span class="min-w-0 flex-1"> </span> <span class="type-caption text-muted-foreground"> </span>',1),Zt=Z("<!> <!>",1);function ir(o,r){if(new.target)return Ge({component:ir,...o});je(r,!0);let a=m(r,"viewport",7),v=m(r,"onViewportChange",7),P=m(r,"onCustom",7);const L=["phone","tablet","desktop"],E=b(()=>a().mode==="fit"?"fit":a().mode==="preset"?a().presetId:"custom");function w(k){if(k==="fit")return v()({mode:"fit"});const y=$t.find(H=>H.id===k);y&&v()({mode:"preset",presetId:y.id,width:y.width,height:y.height})}var D={get viewport(){return a()},set viewport(k){a(k),_()},get onViewportChange(){return v()},set onViewportChange(k){v(k),_()},get onCustom(){return P()},set onCustom(k){P(k),_()},$set:qe,$on:(k,y)=>He(r,k,y)},f=jt(),R=q(f);Y(R,()=>ln,(k,y)=>{y(k,{get value(){return e(E)},onValueChange:w,children:(H,J)=>{var K=jt(),T=q(K);Y(T,()=>qt,(z,s)=>{s(z,{value:"fit",children:(U,ie)=>{dt();var te=tt();W(oe=>G(te,oe),[()=>d.browser_viewport_fitPanel_label()]),h(U,te)},$$slots:{default:!0}})});var j=g(T,2);br(j,17,()=>L,ko,(z,s)=>{var U=jt(),ie=q(U);Y(ie,()=>lt,(A,c)=>{c(A,{})});var te=g(ie,2);Y(te,()=>dn,(A,c)=>{c(A,{children:(l,V)=>{dt();var de=tt();W(Ie=>G(de,Ie),[()=>e(s)==="phone"?d.browser_viewport_phoneGroup_label():e(s)==="tablet"?d.browser_viewport_tabletGroup_label():d.browser_viewport_desktopGroup_label()]),h(l,de)},$$slots:{default:!0}})});var oe=g(te,2);br(oe,17,()=>$t.filter(A=>A.category===e(s)),A=>A.id,(A,c)=>{var l=_t(),V=q(l);Y(V,()=>qt,(de,Ie)=>{Ie(de,{get value(){return e(c).id},children:(x,S)=>{var u=Tn(),I=q(u),ne=he(I,!0),O=g(I,2),X=he(O,!0);W(ae=>{G(ne,e(c).name),G(X,ae)},[()=>d.browser_viewport_dimensions_label({width:Ue(e(c).width),height:Ue(e(c).height)})]),h(x,u)},$$slots:{default:!0}})}),h(A,l)}),h(z,U)});var le=g(j,2);{var pe=z=>{var s=Zt(),U=q(s);Y(U,()=>lt,(te,oe)=>{oe(te,{})});var ie=g(U,2);Y(ie,()=>qt,(te,oe)=>{oe(te,{value:"custom",get onSelect(){return P()},children:(A,c)=>{var l=$n(),V=q(l),de=he(V,!0),Ie=g(V,2),x=he(Ie,!0);W((S,u)=>{G(de,S),G(x,u)},[()=>d.browser_viewport_custom_label(),()=>d.browser_viewport_dimensions_label({width:Ue(a().width),height:Ue(a().height)})]),h(A,l)},$$slots:{default:!0}})}),h(z,s)};me(le,z=>{a().mode==="custom"&&z(pe)})}h(H,K)},$$slots:{default:!0}})});var F=g(R,2);{var C=k=>{var y=Zt(),H=q(y);Y(H,()=>lt,(K,T)=>{T(K,{})});var J=g(H,2);Y(J,()=>ze,(K,T)=>{T(K,{get onSelect(){return P()},children:(j,le)=>{dt();var pe=tt();W(z=>G(pe,z),[()=>d.browser_viewport_custom_label()]),h(j,pe)},$$slots:{default:!0}})}),h(k,y)};me(F,k=>{a().mode!=="custom"&&k(C)})}var $=g(F,2);{var B=k=>{var y=Zt(),H=q(y);Y(H,()=>lt,(K,T)=>{T(K,{})});var J=g(H,2);{let K=b(()=>d.browser_viewport_rotate_label());Y(J,()=>Kr,(T,j)=>{j(T,{get icon(){return Nr},get label(){return e(K)},onSelect:()=>v()(Fn(a()))})})}h(k,y)};me($,k=>{a().mode!=="fit"&&k(B)})}return h(o,f),Ze(D)}var Nn=Z('<div class="grid grid-cols-2 gap-3"><label class="space-y-1 type-caption"><span> </span> <!></label> <label class="space-y-1 type-caption"><span> </span> <!></label></div>');function sr(o,r){if(new.target)return Ge({component:sr,...o});je(r,!0);let a=m(r,"open",15,!1),v=m(r,"viewport",7),P=m(r,"onViewportChange",7),L=m(r,"returnFocus",7);const E=320,w=3840;let D=M(1280),f=M(800),R=M(null);function F(k){return typeof k=="number"&&Number.isInteger(k)&&k>=E&&k<=w}const C=b(()=>F(e(D))&&F(e(f)));Pe(()=>{if(a())return()=>{ht().then(()=>{L()?.isConnected&&L().focus()})}}),Pe(()=>{a()||(i(D,v().mode==="fit"?1280:v().width,!0),i(f,v().mode==="fit"?800:v().height,!0))});function $(){!e(C)||e(D)===null||e(f)===null||(P()({mode:"custom",width:e(D),height:e(f)}),a(!1))}var B={get open(){return a()},set open(k=!1){a(k),_()},get viewport(){return v()},set viewport(k){v(k),_()},get onViewportChange(){return P()},set onViewportChange(k){P(k),_()},get returnFocus(){return L()},set returnFocus(k){L(k),_()},$set:qe,$on:(k,y)=>He(r,k,y)};{let k=b(()=>d.browser_viewport_custom_label()),y=b(()=>d.browser_viewport_sizeRange_description({min:Ue(E),max:Ue(w)})),H=b(()=>d.browser_viewport_apply_label());vn(o,{get title(){return e(k)},get description(){return e(y)},get submitLabel(){return e(H)},get canSubmit(){return e(C)},onSubmit:$,get initialFocus(){return e(R)},get open(){return a()},set open(J){a(J)},children:(J,K)=>{var T=Nn(),j=Q(T),le=Q(j),pe=he(le,!0),z=g(le,2);{let oe=b(()=>!F(e(D)));Tt(z,{type:"number",min:E,max:w,step:"1",get"aria-invalid"(){return e(oe)},get value(){return e(D)},set value(A){i(D,A,!0)},get ref(){return e(R)},set ref(A){i(R,A,!0)}})}ee(j);var s=g(j,2),U=Q(s),ie=he(U,!0),te=g(U,2);{let oe=b(()=>!F(e(f)));Tt(te,{type:"number",min:E,max:w,step:"1",get"aria-invalid"(){return e(oe)},get value(){return e(f)},set value(A){i(f,A,!0)}})}ee(s),ee(T),W((oe,A)=>{G(pe,oe),G(ie,A)},[()=>d.browser_viewport_width_label(),()=>d.browser_viewport_height_label()]),h(J,T)},$$slots:{default:!0}})}return Ze(B)}var Ft=Z("<!> <!>",1),et=Z("<!> ",1),Un=Z('<!> <span class="min-w-0 flex-1 truncate"> </span>',1),An=Z("<!> <!> <!> <!> <!>",1),Bn=Z('<!> <span class="min-w-0 flex-1"> </span> <kbd class="type-caption ml-5 text-muted-foreground" aria-hidden="true">⌘⌥I</kbd>',1),On=Z("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1);function qr(o,r){if(new.target)return Ge({component:qr,...o});je(r,!0);let a=m(r,"errorCount",7,0),v=m(r,"disabled",7,!1),P=m(r,"collapsed",7,!1),L=m(r,"canGoBack",7,!1),E=m(r,"canGoForward",7,!1),w=m(r,"canSelectElement",7,!1),D=m(r,"selectingElement",7,!1),f=m(r,"viewport",23,()=>({mode:"fit"})),R=m(r,"onGoBack",7),F=m(r,"onGoForward",7),C=m(r,"onToggleElementPicker",7),$=m(r,"onViewportChange",7),B=m(r,"onOpenExternal",7),k=m(r,"onCopyUrl",7),y=m(r,"onScreenshot",7),H=m(r,"onOpenConsole",7),J=m(r,"onOpenSource",7),K=m(r,"onOpenInspector",7),T=m(r,"onReloadWithoutCache",7);const j=b(()=>a()>0?d.browser_overflow_triggerWithErrors_ariaLabel({count:Ue(a())}):d.browser_overflow_trigger_ariaLabel()),le=b(()=>f().mode==="preset"?$t.find(l=>l.id===f().presetId):void 0),pe=b(()=>f().mode==="fit"?d.browser_viewport_fitPanel_label():e(le)?.name??d.browser_viewport_dimensions_label({width:Ue(f().width),height:Ue(f().height)}));let z=M(!1),s=M(null),U=M(!1);async function ie(){i(U,!1),await ht(),i(z,!0)}var te={get errorCount(){return a()},set errorCount(l=0){a(l),_()},get disabled(){return v()},set disabled(l=!1){v(l),_()},get collapsed(){return P()},set collapsed(l=!1){P(l),_()},get canGoBack(){return L()},set canGoBack(l=!1){L(l),_()},get canGoForward(){return E()},set canGoForward(l=!1){E(l),_()},get canSelectElement(){return w()},set canSelectElement(l=!1){w(l),_()},get selectingElement(){return D()},set selectingElement(l=!1){D(l),_()},get viewport(){return f()},set viewport(l={mode:"fit"}){f(l),_()},get onGoBack(){return R()},set onGoBack(l){R(l),_()},get onGoForward(){return F()},set onGoForward(l){F(l),_()},get onToggleElementPicker(){return C()},set onToggleElementPicker(l){C(l),_()},get onViewportChange(){return $()},set onViewportChange(l){$(l),_()},get onOpenExternal(){return B()},set onOpenExternal(l){B(l),_()},get onCopyUrl(){return k()},set onCopyUrl(l){k(l),_()},get onScreenshot(){return y()},set onScreenshot(l){y(l),_()},get onOpenConsole(){return H()},set onOpenConsole(l){H(l),_()},get onOpenSource(){return J()},set onOpenSource(l){J(l),_()},get onOpenInspector(){return K()},set onOpenInspector(l){K(l),_()},get onReloadWithoutCache(){return T()},set onReloadWithoutCache(l){T(l),_()},$set:qe,$on:(l,V)=>He(r,l,V)},oe=Ft(),A=q(oe);Y(A,()=>Wr,(l,V)=>{V(l,{get open(){return e(U)},set open(de){i(U,de,!0)},children:(de,Ie)=>{var x=Ft(),S=q(x);{const I=(ne,O)=>{let X=()=>(O?.()).props;{let ae=b(()=>d.browser_overflow_trigger_tooltip());Re(ne,Sr(X,{variant:"ghost-light",size:"icon-xs",class:"relative",get disabled(){return v()},get tooltip(){return e(ae)},tooltipSide:"bottom",get"aria-label"(){return e(j)},"data-testid":"browser-overflow-trigger",get ref(){return e(s)},set ref(ce){i(s,ce,!0)},children:(ce,De)=>{var Ae=Ft(),xe=q(Ae);un(xe,{class:"size-3.5"});var Le=g(xe,2);{var ye=Te=>{pn(Te,{variant:"destructive",class:"absolute -right-1.5 -top-1.5 h-4 min-w-4 px-1 text-xs leading-none","data-testid":"browser-console-error-badge",children:(ut,rt)=>{dt();var ct=tt();W(Xe=>G(ct,Xe),[()=>a()>9?"9+":Ue(a())]),h(ut,ct)},$$slots:{default:!0}})};me(Le,Te=>{a()>0&&Te(ye)})}h(ce,Ae)},$$slots:{default:!0}}))}};Y(S,()=>Dr,(ne,O)=>{O(ne,{child:I,$$slots:{child:!0}})})}var u=g(S,2);Y(u,()=>Vr,(I,ne)=>{ne(I,{align:"end",class:"w-56",onCloseAutoFocus:O=>e(z)&&O.preventDefault(),children:(O,X)=>{var ae=On(),ce=q(ae);{var De=we=>{var be=An(),_e=q(be);{let re=b(()=>!L());Y(_e,()=>ze,(Be,Ye)=>{Ye(Be,{get disabled(){return e(re)},get onSelect(){return R()},children:(We,ot)=>{var $e=et(),Fe=q($e);ve(Fe,{get icon(){return nr},size:"xs",class:"w-4 text-muted-foreground"});var Oe=g(Fe);W(Me=>G(Oe,` ${Me??""}`),[()=>d.browser_embedded_goBack_ariaLabel()]),h(We,$e)},$$slots:{default:!0}})})}var Se=g(_e,2);{let re=b(()=>!E());Y(Se,()=>ze,(Be,Ye)=>{Ye(Be,{get disabled(){return e(re)},get onSelect(){return F()},children:(We,ot)=>{var $e=et(),Fe=q($e);ve(Fe,{get icon(){return ar},size:"xs",class:"w-4 text-muted-foreground"});var Oe=g(Fe);W(Me=>G(Oe,` ${Me??""}`),[()=>d.browser_embedded_goForward_ariaLabel()]),h(We,$e)},$$slots:{default:!0}})})}var fe=g(Se,2);{let re=b(()=>!w());Y(fe,()=>ze,(Be,Ye)=>{Ye(Be,{get disabled(){return e(re)},onSelect:()=>void C()?.(),children:(We,ot)=>{var $e=et(),Fe=q($e);ve(Fe,{get icon(){return Xt},size:"xs",class:"w-4 text-muted-foreground"});var Oe=g(Fe);W(Me=>G(Oe,` ${Me??""}`),[()=>D()?d.browser_embedded_cancelElementSelection_ariaLabel():d.browser_embedded_selectElement_ariaLabel()]),h(We,$e)},$$slots:{default:!0}})})}var ue=g(fe,2);Y(ue,()=>cn,(re,Be)=>{Be(re,{children:(Ye,We)=>{var ot=Ft(),$e=q(ot);{let Oe=b(()=>!$());Y($e,()=>fn,(Me,ft)=>{ft(Me,{get disabled(){return e(Oe)},children:(wt,bt)=>{var Pt=Un(),yt=q(Pt);ve(yt,{get icon(){return Oo},size:"xs",class:"w-4 text-muted-foreground"});var Lt=g(yt,2),Nt=he(Lt,!0);W(Ut=>G(Nt,Ut),[()=>d.browser_viewport_trigger_ariaLabel({mode:e(pe)})]),h(wt,Pt)},$$slots:{default:!0}})})}var Fe=g($e,2);Y(Fe,()=>gn,(Oe,Me)=>{Me(Oe,{class:"w-64",children:(ft,wt)=>{ir(ft,{get viewport(){return f()},onViewportChange:bt=>$()?.(bt),onCustom:ie})},$$slots:{default:!0}})}),h(Ye,ot)},$$slots:{default:!0}})});var Ce=g(ue,2);Y(Ce,()=>lt,(re,Be)=>{Be(re,{})}),h(we,be)};me(ce,we=>{P()&&we(De)})}var Ae=g(ce,2);Y(Ae,()=>ze,(we,be)=>{be(we,{onSelect:()=>void B()(),children:(_e,Se)=>{var fe=et(),ue=q(fe);ve(ue,{get icon(){return $o},size:"xs",class:"w-4 text-muted-foreground"});var Ce=g(ue);W(re=>G(Ce,` ${re??""}`),[()=>d.browser_overflow_openExternal_label()]),h(_e,fe)},$$slots:{default:!0}})});var xe=g(Ae,2);Y(xe,()=>ze,(we,be)=>{be(we,{onSelect:()=>void k()(),children:(_e,Se)=>{var fe=et(),ue=q(fe);ve(ue,{get icon(){return No},size:"xs",class:"w-4 text-muted-foreground"});var Ce=g(ue);W(re=>G(Ce,` ${re??""}`),[()=>d.browser_overflow_copyUrl_label()]),h(_e,fe)},$$slots:{default:!0}})});var Le=g(xe,2);Y(Le,()=>lt,(we,be)=>{be(we,{})});var ye=g(Le,2);Y(ye,()=>ze,(we,be)=>{be(we,{onSelect:()=>void y()(),children:(_e,Se)=>{var fe=et(),ue=q(fe);ve(ue,{get icon(){return Uo},size:"xs",class:"w-4 text-muted-foreground"});var Ce=g(ue);W(re=>G(Ce,` ${re??""}`),[()=>d.browser_overflow_screenshot_label()]),h(_e,fe)},$$slots:{default:!0}})});var Te=g(ye,2);Y(Te,()=>lt,(we,be)=>{be(we,{})});var ut=g(Te,2);Y(ut,()=>ze,(we,be)=>{be(we,{onSelect:()=>void H()(),children:(_e,Se)=>{var fe=et(),ue=q(fe);ve(ue,{get icon(){return Ao},size:"xs",class:"w-4 text-muted-foreground"});var Ce=g(ue);W(re=>G(Ce,` ${re??""}`),[()=>d.browser_overflow_console_label()]),h(_e,fe)},$$slots:{default:!0}})});var rt=g(ut,2);Y(rt,()=>ze,(we,be)=>{be(we,{onSelect:()=>void J()(),children:(_e,Se)=>{var fe=et(),ue=q(fe);ve(ue,{get icon(){return Bo},size:"xs",class:"w-4 text-muted-foreground"});var Ce=g(ue);W(re=>G(Ce,` ${re??""}`),[()=>d.browser_overflow_source_label()]),h(_e,fe)},$$slots:{default:!0}})});var ct=g(rt,2);Y(ct,()=>ze,(we,be)=>{be(we,{onSelect:()=>void K()(),children:(_e,Se)=>{var fe=Bn(),ue=q(fe);ve(ue,{get icon(){return Xt},size:"xs",class:"w-4 text-muted-foreground"});var Ce=g(ue,2),re=he(Ce,!0);dt(2),W(Be=>G(re,Be),[()=>d.browser_overflow_inspector_label()]),h(_e,fe)},$$slots:{default:!0}})});var Xe=g(ct,2);Y(Xe,()=>lt,(we,be)=>{be(we,{})});var pt=g(Xe,2);Y(pt,()=>ze,(we,be)=>{be(we,{onSelect:()=>void T()(),children:(_e,Se)=>{var fe=et(),ue=q(fe);ve(ue,{get icon(){return Nr},size:"xs",class:"w-4 text-muted-foreground"});var Ce=g(ue);W(re=>G(Ce,` ${re??""}`),[()=>d.browser_overflow_reloadWithoutCache_label()]),h(_e,fe)},$$slots:{default:!0}})}),h(O,ae)},$$slots:{default:!0}})}),h(de,x)},$$slots:{default:!0}})});var c=g(A,2);return sr(c,{get viewport(){return f()},onViewportChange:l=>$()?.(l),get returnFocus(){return e(s)},get open(){return e(z)},set open(l){i(z,l,!0)}}),h(o,oe),Ze(te)}var Mn=Z('<span class="truncate"> </span> <!>',1),Er=Z("<!> <!>",1);function Hr(o,r){if(new.target)return Ge({component:Hr,...o});je(r,!0);let a=m(r,"viewport",7),v=m(r,"onViewportChange",7),P=M(!1),L=M(!1),E=M(null);const w=b(()=>a().mode==="preset"?$t.find(y=>y.id===a().presetId):void 0),D=b(()=>a().mode==="fit"?"":d.browser_viewport_dimensions_label({width:Ue(a().width),height:Ue(a().height)})),f=b(()=>a().mode==="fit"?d.browser_viewport_fit_short_label():a().mode==="preset"&&e(w)?e(w).name:e(D)),R=b(()=>a().mode==="fit"?d.browser_viewport_fitPanel_label():e(f));async function F(){i(P,!1),await ht(),i(L,!0)}var C={get viewport(){return a()},set viewport(y){a(y),_()},get onViewportChange(){return v()},set onViewportChange(y){v(y),_()},$set:qe,$on:(y,H)=>He(r,y,H)},$=Er(),B=q($);Y(B,()=>Wr,(y,H)=>{H(y,{get open(){return e(P)},set open(J){i(P,J,!0)},children:(J,K)=>{var T=Er(),j=q(T);{const pe=(z,s)=>{let U=()=>(s?.()).props;{let ie=b(()=>d.browser_viewport_trigger_ariaLabel({mode:e(R)}));Re(z,Sr(U,{variant:"ghost-light",size:"xs",class:"h-6 max-w-36 gap-1 rounded-full bg-muted px-2 text-xs hover:bg-muted/80",get"aria-label"(){return e(ie)},"data-testid":"browser-viewport-trigger",get ref(){return e(E)},set ref(te){i(E,te,!0)},children:(te,oe)=>{var A=Mn(),c=q(A),l=he(c,!0),V=g(c,2);ve(V,{get icon(){return Mo},size:"xs",class:"shrink-0"}),W(()=>G(l,e(f))),h(te,A)},$$slots:{default:!0}}))}};Y(j,()=>Dr,(z,s)=>{s(z,{child:pe,$$slots:{child:!0}})})}var le=g(j,2);Y(le,()=>Vr,(pe,z)=>{z(pe,{align:"end",class:"w-64",onCloseAutoFocus:s=>e(L)&&s.preventDefault(),children:(s,U)=>{ir(s,{get viewport(){return a()},get onViewportChange(){return v()},onCustom:F})},$$slots:{default:!0}})}),h(J,T)},$$slots:{default:!0}})});var k=g(B,2);return sr(k,{get viewport(){return a()},get onViewportChange(){return v()},get returnFocus(){return e(E)},get open(){return e(L)},set open(y){i(L,y,!0)}}),h(o,$),Ze(C)}var Dn=Z('<span class="pointer-events-none absolute bottom-1 left-1/2 z-10 -translate-x-1/2 rounded bg-background/90 px-1.5 py-0.5 text-xs text-muted-foreground shadow-sm backdrop-blur" data-browser-viewport-readout=""> </span> <!>',1),Vn=Z('<div data-browser-device-frame-container=""><div><!> <!></div></div>');function jr(o,r){if(new.target)return Ge({component:jr,...o});je(r,!0);const a=320,v=3840,P=150;let L=m(r,"viewport",7),E=m(r,"onViewportChange",7),w=m(r,"children",7),D=M(xt(L().mode==="fit"?a:L().width)),f=M(xt(L().mode==="fit"?a:L().height)),R,F=M(0),C=M(0),$=M(!1),B=null,k=0,y=0,H=0,J=0,K;const T=b(()=>L().mode==="fit"),j=b(()=>d.browser_viewport_dimensions_label({width:Ue(e(D)),height:Ue(e(f))})),le=b(()=>!e(T)&&e(F)>0&&e(C)>0?Math.min(1,e(F)/e(D),e(C)/e(f)):1),pe=b(()=>e(D)*e(le)),z=b(()=>e(f)*e(le));Pe(()=>{e($)||L().mode==="fit"||(i(D,L().width,!0),i(f,L().height,!0))});function s(u){return Math.min(v,Math.max(a,Math.round(u)))}function U(){E()({mode:"custom",width:e(D),height:e(f)})}function ie(){clearTimeout(K),K=setTimeout(U,P)}function te(u){e(T)||u.button!==0||(u.preventDefault(),i($,!0),B=u.pointerId,k=u.clientX,y=u.clientY,H=e(D),J=e(f),u.currentTarget instanceof HTMLElement&&u.currentTarget.setPointerCapture?.(u.pointerId))}function oe(u){!e($)||u.pointerId!==B||(i(D,s(H+u.clientX-k),!0),i(f,s(J+u.clientY-y),!0),ie())}function A(u){if(!e($)||u.pointerId!==B)return;clearTimeout(K),i($,!1),B=null;const I=u.currentTarget;I instanceof HTMLElement&&I.hasPointerCapture?.(u.pointerId)&&I.releasePointerCapture&&I.releasePointerCapture(u.pointerId),U()}Tr(()=>{const u=(ne,O)=>{i(F,ne,!0),i(C,O,!0)};u(R.clientWidth,R.clientHeight);const I=typeof ResizeObserver>"u"?void 0:new ResizeObserver(([ne])=>{u(ne?.contentRect.width??R.clientWidth,ne?.contentRect.height??R.clientHeight)});return I?.observe(R),()=>I?.disconnect()}),$r(()=>clearTimeout(K));var c={get viewport(){return L()},set viewport(u){L(u),_()},get onViewportChange(){return E()},set onViewportChange(u){E(u),_()},get children(){return w()},set children(u){w(u),_()},$set:qe,$on:(u,I)=>He(r,u,I)},l=Vn(),V=Q(l);let de;var Ie=Q(V);To(Ie,()=>w()??xo);var x=g(Ie,2);{var S=u=>{var I=Dn(),ne=q(I),O=he(ne,!0),X=g(ne,2);{let ae=b(()=>d.browser_viewport_resizeHandle_ariaLabel());Re(X,{type:"button",variant:"ghost",size:"icon-xs",iconOnly:!0,class:"absolute bottom-0 right-0 z-20 size-5 cursor-nwse-resize touch-none border-0 bg-transparent p-0 after:absolute after:bottom-1 after:right-1 after:size-2 after:border-b-2 after:border-r-2 after:border-muted-foreground",get"aria-label"(){return e(ae)},"data-testid":"browser-device-resize-handle",onpointerdown:te,onpointermove:oe,onpointerup:A,onpointercancel:A})}W(()=>G(O,e(j))),h(u,I)};me(x,u=>{e(T)||u(S)})}return ee(V),ee(l),vt(l,u=>R=u,()=>R),W(()=>{Et(l,1,`flex h-full w-full items-center justify-center overflow-hidden ${e(T)?"bg-background":"bg-muted/40"}`),Et(V,1,`relative overflow-hidden bg-background ${e(T)?"h-full w-full":e($)?"ring-2 ring-primary/30":""}`),Je(V,"data-browser-device-frame",e(T)?void 0:""),Je(V,"data-width",e(T)?void 0:e(D)),Je(V,"data-height",e(T)?void 0:e(f)),de=Io(V,"",de,{width:e(T)?void 0:`${e(pe)}px`,height:e(T)?void 0:`${e(z)}px`})}),h(o,l),Ze(c)}function Zr(o,r){if(new.target)return Ge({component:Zr,...o});je(r,!0);let a=m(r,"active",7),v=m(r,"disabled",7),P=m(r,"onToggle",7);var L={get active(){return a()},set active(E){a(E),_()},get disabled(){return v()},set disabled(E){v(E),_()},get onToggle(){return P()},set onToggle(E){P(E),_()},$set:qe,$on:(E,w)=>He(r,E,w)};{let E=b(()=>a()?"bg-muted text-foreground":""),w=b(()=>a()?d.browser_embedded_cancelElementSelection_tooltip():d.browser_embedded_selectElement_tooltip()),D=b(()=>a()?d.browser_embedded_cancelElementSelection_ariaLabel():d.browser_embedded_selectElement_ariaLabel());Re(o,{variant:"ghost-light",size:"icon-xs",get class(){return e(E)},get onclick(){return P()},get disabled(){return v()},get tooltip(){return e(w)},tooltipSide:"bottom",get"aria-label"(){return e(D)},get"aria-pressed"(){return a()},"data-testid":"browser-select-element",children:(f,R)=>{ve(f,{get icon(){return Xt},size:"xs"})},$$slots:{default:!0}})}return Ze(L)}function Wn(o,r,a){const v=a.width>0?r.width/a.width:1,P=a.height>0?r.height/a.height:1,L=Math.max(0,Math.floor(o.x*v)),E=Math.max(0,Math.floor(o.y*P)),w=Math.min(r.width,Math.ceil((o.x+o.width)*v)),D=Math.min(r.height,Math.ceil((o.y+o.height)*P));return{x:L,y:E,width:Math.max(0,w-L),height:Math.max(0,D-E)}}const Kn=Cr({selector:it().min(1),domPath:it().min(1),tagName:it().min(1),id:it(),className:it(),textSnippet:it().max(120),rect:Cr({x:St().finite(),y:St().finite(),width:St().finite().nonnegative(),height:St().finite().nonnegative()}).strict(),pageUrl:it().min(1),sourceRef:it().min(1).optional()}).strict(),Pr="__INTENT_ELEMENT_PICKED__:";function zn(o){if(o==="__INTENT_ELEMENT_PICK_CANCELLED__")return{type:"cancelled"};if(!o.startsWith(Pr))return null;let r;try{r=JSON.parse(o.slice(Pr.length))}catch{r=null}const a=Kn.safeParse(r);return a.success?{type:"picked",element:a.data}:{type:"malformed",issues:a.error.issues}}const Gn=String.raw`
|
|
71
|
-
(function() {
|
|
72
|
-
var PICKED_PREFIX = '__INTENT_ELEMENT_PICKED__:';
|
|
73
|
-
var CANCELLED = '__INTENT_ELEMENT_PICK_CANCELLED__';
|
|
74
|
-
var existingCleanup = window.__intentElementPickerCleanup;
|
|
75
|
-
if (typeof existingCleanup === 'function') existingCleanup();
|
|
76
|
-
|
|
77
|
-
var overlay = document.createElement('div');
|
|
78
|
-
var label = document.createElement('div');
|
|
79
|
-
overlay.setAttribute('data-intent-element-picker-overlay', '');
|
|
80
|
-
overlay.style.cssText = 'position:fixed;z-index:2147483647;pointer-events:none;border:2px solid #7c3aed;background:rgba(124,58,237,.12);box-sizing:border-box;display:none;';
|
|
81
|
-
label.style.cssText = 'position:absolute;left:-2px;bottom:100%;max-width:320px;padding:2px 5px;background:#7c3aed;color:#fff;font:11px/1.4 ui-monospace,monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;';
|
|
82
|
-
overlay.appendChild(label);
|
|
83
|
-
(document.documentElement || document.body).appendChild(overlay);
|
|
84
|
-
|
|
85
|
-
function escapeCss(value) {
|
|
86
|
-
if (window.CSS && typeof window.CSS.escape === 'function') return window.CSS.escape(value);
|
|
87
|
-
return value.replace(/[^a-zA-Z0-9_-]/g, function(character) {
|
|
88
|
-
return '\\' + character;
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
function segment(element) {
|
|
93
|
-
var value = element.tagName.toLowerCase();
|
|
94
|
-
if (element.id) return value + '#' + escapeCss(element.id);
|
|
95
|
-
var classValue = typeof element.className === 'string' ? element.className.trim() : '';
|
|
96
|
-
if (classValue) value += '.' + classValue.split(/\s+/).map(escapeCss).join('.');
|
|
97
|
-
return value;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
function uniqueSelector(element) {
|
|
101
|
-
if (element.id) {
|
|
102
|
-
var idSelector = '#' + escapeCss(element.id);
|
|
103
|
-
if (document.querySelectorAll(idSelector).length === 1) return idSelector;
|
|
104
|
-
}
|
|
105
|
-
var parts = [];
|
|
106
|
-
var current = element;
|
|
107
|
-
while (current && current.nodeType === 1) {
|
|
108
|
-
var part = segment(current);
|
|
109
|
-
var parent = current.parentElement;
|
|
110
|
-
if (parent) {
|
|
111
|
-
var siblings = Array.prototype.filter.call(parent.children, function(child) {
|
|
112
|
-
return child.tagName === current.tagName;
|
|
113
|
-
});
|
|
114
|
-
if (siblings.length > 1) part += ':nth-of-type(' + (siblings.indexOf(current) + 1) + ')';
|
|
115
|
-
}
|
|
116
|
-
parts.unshift(part);
|
|
117
|
-
var selector = parts.join(' > ');
|
|
118
|
-
try {
|
|
119
|
-
if (document.querySelectorAll(selector).length === 1) return selector;
|
|
120
|
-
} catch (_) {}
|
|
121
|
-
current = parent;
|
|
122
|
-
}
|
|
123
|
-
return parts.join(' > ');
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
function domPath(element) {
|
|
127
|
-
var parts = [];
|
|
128
|
-
var current = element;
|
|
129
|
-
while (current && current.nodeType === 1) {
|
|
130
|
-
parts.unshift(segment(current));
|
|
131
|
-
current = current.parentElement;
|
|
132
|
-
}
|
|
133
|
-
return parts.join('>');
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
function sourceReference(element) {
|
|
137
|
-
try {
|
|
138
|
-
var attribute = element.getAttribute('data-source') || element.getAttribute('data-loc');
|
|
139
|
-
if (attribute) return attribute;
|
|
140
|
-
var testId = element.getAttribute('data-testid');
|
|
141
|
-
if (testId) return 'data-testid=' + testId;
|
|
142
|
-
} catch (_) {}
|
|
143
|
-
try {
|
|
144
|
-
var svelteLoc = element.__svelte_meta && element.__svelte_meta.loc;
|
|
145
|
-
if (svelteLoc && svelteLoc.file) {
|
|
146
|
-
return svelteLoc.file + (svelteLoc.line == null ? '' : ':' + svelteLoc.line + ':' + (svelteLoc.column || 0));
|
|
147
|
-
}
|
|
148
|
-
} catch (_) {}
|
|
149
|
-
try {
|
|
150
|
-
var fiberKey = Object.keys(element).find(function(key) {
|
|
151
|
-
return key.indexOf('__reactFiber$') === 0 || key.indexOf('__reactInternalInstance$') === 0;
|
|
152
|
-
});
|
|
153
|
-
var fiber = fiberKey ? element[fiberKey] : null;
|
|
154
|
-
while (fiber) {
|
|
155
|
-
if (fiber._debugSource && fiber._debugSource.fileName) {
|
|
156
|
-
return fiber._debugSource.fileName + ':' + (fiber._debugSource.lineNumber || 0) + ':' + (fiber._debugSource.columnNumber || 0);
|
|
157
|
-
}
|
|
158
|
-
var ownerType = fiber._debugOwner && fiber._debugOwner.type;
|
|
159
|
-
var ownerName = ownerType && (ownerType.displayName || ownerType.name);
|
|
160
|
-
if (ownerName) return 'React:' + ownerName;
|
|
161
|
-
fiber = fiber.return;
|
|
162
|
-
}
|
|
163
|
-
} catch (_) {}
|
|
164
|
-
try {
|
|
165
|
-
var vueType = element.__vueParentComponent && element.__vueParentComponent.type;
|
|
166
|
-
if (vueType && vueType.__file) return vueType.__file;
|
|
167
|
-
} catch (_) {}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
function cleanup() {
|
|
171
|
-
document.removeEventListener('mousemove', onMove, true);
|
|
172
|
-
document.removeEventListener('click', onClick, true);
|
|
173
|
-
document.removeEventListener('keydown', onKeyDown, true);
|
|
174
|
-
overlay.remove();
|
|
175
|
-
if (window.__intentElementPickerCleanup === cleanup) delete window.__intentElementPickerCleanup;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
function onMove(event) {
|
|
179
|
-
var target = event.target;
|
|
180
|
-
if (!target || target === overlay || overlay.contains(target) || !target.getBoundingClientRect) return;
|
|
181
|
-
var rect = target.getBoundingClientRect();
|
|
182
|
-
overlay.style.display = 'block';
|
|
183
|
-
overlay.style.left = rect.left + 'px';
|
|
184
|
-
overlay.style.top = rect.top + 'px';
|
|
185
|
-
overlay.style.width = rect.width + 'px';
|
|
186
|
-
overlay.style.height = rect.height + 'px';
|
|
187
|
-
label.textContent = segment(target) + ' ' + Math.round(rect.width) + '×' + Math.round(rect.height);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
function onClick(event) {
|
|
191
|
-
var target = event.target;
|
|
192
|
-
if (!target || target === overlay || overlay.contains(target) || !target.getBoundingClientRect) return;
|
|
193
|
-
event.preventDefault();
|
|
194
|
-
event.stopPropagation();
|
|
195
|
-
event.stopImmediatePropagation();
|
|
196
|
-
var rect = target.getBoundingClientRect();
|
|
197
|
-
var text = (target.textContent || '').replace(/\s+/g, ' ').trim().slice(0, 120);
|
|
198
|
-
var payload = {
|
|
199
|
-
selector: uniqueSelector(target),
|
|
200
|
-
domPath: domPath(target),
|
|
201
|
-
tagName: target.tagName.toLowerCase(),
|
|
202
|
-
id: target.id || '',
|
|
203
|
-
className: typeof target.className === 'string' ? target.className : '',
|
|
204
|
-
textSnippet: text,
|
|
205
|
-
rect: { x: rect.x, y: rect.y, width: rect.width, height: rect.height },
|
|
206
|
-
pageUrl: window.location.href
|
|
207
|
-
};
|
|
208
|
-
var sourceRef = sourceReference(target);
|
|
209
|
-
if (sourceRef) payload.sourceRef = sourceRef;
|
|
210
|
-
cleanup();
|
|
211
|
-
console.log(PICKED_PREFIX + JSON.stringify(payload));
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
function onKeyDown(event) {
|
|
215
|
-
if (event.key !== 'Escape') return;
|
|
216
|
-
event.preventDefault();
|
|
217
|
-
event.stopPropagation();
|
|
218
|
-
cleanup();
|
|
219
|
-
console.log(CANCELLED);
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
window.__intentElementPickerCleanup = cleanup;
|
|
223
|
-
document.addEventListener('mousemove', onMove, true);
|
|
224
|
-
document.addEventListener('click', onClick, true);
|
|
225
|
-
document.addEventListener('keydown', onKeyDown, true);
|
|
226
|
-
})();
|
|
227
|
-
`;function qn(o){return o<400?"controls-collapsed":o<560?"hostname-hidden":"full"}function Hn(o,r){let a=r,v;const P=E=>{if(E<=0)return;const w=qn(E);w!==v&&(v=w,a(w))};P(o.getBoundingClientRect().width);const L=typeof ResizeObserver>"u"?void 0:new ResizeObserver(([E])=>P(E?.contentRect.width??o.clientWidth));return L?.observe(o),{update(E){a=E,v&&a(v)},destroy(){L?.disconnect()}}}var jn=Z('<webview class="w-full h-full border-none" allowpopups=""></webview>'),Zn=Z('<span class="size-5 shrink-0 rounded-full bg-muted" aria-hidden="true" data-browser-page-favicon-fallback=""></span>'),Jn=Z('<img alt="" class="size-5 shrink-0 rounded-sm" data-browser-page-favicon=""/>'),Xn=Z('<form class="relative z-10 flex h-full min-w-0 flex-1 items-center px-2"><!> <!></form>'),Yn=Z('<span class="browser-toolbar-hostname truncate text-xs text-muted-foreground svelte-n30m5t"> </span>'),Qn=Z('<!> <span class="min-w-0 flex-1 truncate text-sm font-medium text-foreground"> </span> <!>',1),ea=Z('<div class="flex items-center gap-2 px-3 py-2 bg-danger-background/10 text-danger text-sm border-b border-danger/20"><!> <span> </span></div>'),ta=Z('<div class="h-full bg-muted/30" data-browser-guest-destroyed=""></div>'),ra=Z('<div class="flex items-center justify-center h-full text-subtle"><div class="text-center"><div class="text-4xl mb-3 opacity-50">⚠️</div> <p class="text-lg font-medium mb-1"> </p> <p class="text-sm"><!></p> <p class="text-xs mt-2 max-w-md break-all text-muted-foreground"> </p></div></div>'),oa=Z('<div class="flex items-center justify-center h-full text-subtle"><div class="text-center"><div class="text-4xl mb-3 opacity-50">🌐</div> <p class="text-lg font-medium mb-1"> </p> <p class="text-sm"> </p></div></div>'),na=Z('<div class="flex flex-col h-full bg-background"><div class="browser-toolbar flex h-12 shrink-0 items-center gap-1 border-b border-border bg-muted/30 px-2 svelte-n30m5t" data-browser-toolbar=""><div class="flex gap-0.5"><div class="browser-toolbar-history flex gap-0.5 svelte-n30m5t"><!> <!></div> <!></div> <div class="flex min-w-0 flex-1 items-center gap-2"><!> <div class="relative flex h-8 min-w-0 flex-1 items-center rounded-md bg-background" data-browser-address-surface=""><!> <span aria-hidden="true"></span></div></div> <div class="browser-toolbar-picker h-7 w-7 shrink-0 svelte-n30m5t" data-browser-select-element-slot=""><!></div> <div class="browser-toolbar-viewport flex shrink-0 items-center svelte-n30m5t" data-browser-viewport-slot=""><!></div> <div class="flex h-7 w-7 shrink-0 items-center" data-browser-overflow-slot=""><!></div></div> <!> <div class="flex-1 relative overflow-hidden"><!></div></div>');function Jr(o,r){if(new.target)return Ge({component:Jr,...o});je(r,!0);const a=()=>mt(pe,"$pendingZoom$",P),v=()=>mt(D,"$copyBrowserUrlShortcut$",P),[P,L]=Fr(),E=t=>{var n=jn();vt(n,p=>i(s,p),()=>e(s)),kt(n,(p,N)=>Pn?.(p,N),C),W(p=>{Je(n,"src",p),Je(n,"partition",It)},[()=>Ct(()=>e(ye))]),h(t,n)},w=or("EmbeddedBrowser"),D=nn("panel.copy-browser-url"),f=Mr.NAVIGATION_ALLOWED;let R=m(r,"url",7),F=m(r,"workspaceId",7),C=m(r,"tabId",7),$=m(r,"onNavigate",7),B=m(r,"onTitleChange",7),k=m(r,"onFaviconChange",7),y=m(r,"onFocus",7),H=m(r,"focusUrlBarOnMount",7,!1),J=m(r,"isFocused",7,!1),K=m(r,"isActive",7,!0),T=m(r,"ownerAgentId",7),j=m(r,"viewport",23,()=>({mode:"fit"})),le=m(r,"onViewportChange",7);const pe=C()?en(F(),C()):null;Pe(()=>{w.info("EmbeddedBrowser URL prop",{url:R(),isValid:st(R()),appOrigin:typeof window<"u"?window.location.origin:"N/A",workspaceId:F()})}),Pe(()=>{if(!pe||!C())return;const t=a();if(!(!t||t.length===0)&&!(!e(s)||!e(S))){try{for(const n of t){const p=e(s).getZoomLevel?.()??0;n==="in"?e(s).setZoomLevel?.(p+.5):n==="out"?e(s).setZoomLevel?.(p-.5):n==="reset"&&e(s).setZoomLevel?.(0)}}catch{}Ee.dispatch(Wo(F(),C()))}});let z=M(null),s=M(null);Pe(()=>{if(!e(s)||!C())return;const t=C(),n=crypto.randomUUID();return Ct(()=>Ee.dispatch(Ko(t,n))),()=>{Ct(()=>Ee.dispatch(zo(t,n)))}});let U=M(xt(R()||"")),ie=M(""),te=M(!1),oe=M(""),A=M(""),c=M(!1),l=M(!1),V=M(!1),de=M(!1),Ie=M(xt(R()?.startsWith("https://")??!1)),x=M(""),S=M(!1),u=M(0),I=M(!1),ne=M("full");function O(t){i(ne,t,!0)}let X=M(!1),ae=0,ce="",De="",Ae="";function xe(){return ce="",De="",Ae="",++ae}let Le=M(!1),ye=M(xt(st(R())?R():"about:blank"));Pe(()=>{if(e(s))try{e(s).setAudioMuted?.(!K())}catch{}});const Te=Cn(R());function ut(t){if(!t||t==="about:blank")return"";try{return new URL(t).hostname}catch{return""}}const rt=b(()=>ut(e(U))),ct=b(()=>e(oe)||e(rt)||(e(U)&&e(U)!=="about:blank"?e(U):d.browser_embedded_url_placeholder()));async function Xe(){i(ie,e(U),!0),i(te,!0),await ht(),requestAnimationFrame(()=>{e(z)?.focus(),e(z)?.select()})}function pt(){i(te,!1),i(ie,"")}function we(t){if((t.metaKey||t.ctrlKey)&&!t.shiftKey&&!t.altKey&&t.key.toLowerCase()==="l"){t.preventDefault(),e(z)?.select();return}t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),pt())}let be=b(()=>st(e(ye)));Pe(()=>{const t=In(Te,R(),{webviewReady:e(S)||!e(s),isValidBrowserUrl:st});t.shouldLoad&&t.targetUrl&&(i(U,t.targetUrl,!0),Fe(t.targetUrl))});let _e=[],Se;function fe(){e(s)&&e(s).executeJavaScript(Ln).then(()=>{}).catch(t=>{w.debug("Failed to inject keyboard interceptor",{error:t.message})})}Pe(()=>{const t=e(s);if(t){t.getAttribute("partition")||(t.setAttribute("partition",It),w.debug("Set partition attribute on webview",{partition:It})),t.hasAttribute("allowpopups")||(t.setAttribute("allowpopups",""),w.debug("Set allowpopups attribute on webview")),Ye();const n=()=>{if(i(S,!0),w.debug("Webview ready",{url:e(ye)}),fe(),C())try{const N=t.getWebContentsId();N!==Se&&(Se=N,w.info("Registering browser tab for CDP",{tabId:C(),webContentsId:N}),window.electronAPI?.invoke("browser:register-tab",{tabId:C(),webContentsId:N}).catch(se=>{w.error("Failed to register browser tab for CDP",{tabId:C(),webContentsId:N,error:se}),Se===N&&(Se=void 0)}))}catch{w.debug("Failed to get webContentsId for CDP registration",{tabId:C()})}};t.addEventListener("dom-ready",n),_e.push({event:"dom-ready",handler:n});const p=()=>{fe()};return t.addEventListener("did-finish-load",p),_e.push({event:"did-finish-load",handler:p}),()=>{Ce(t)}}});const ue={current:!1};Pe(()=>{ue.current=J(),w.debug("isFocused changed",{isFocused:J(),url:R()})}),Tr(()=>{H()&&Xe();const t=n=>{const p=So(n.target),N=n.metaKey||n.ctrlKey,se=/Mac|iPhone|iPad|iPod/.test(navigator.userAgent);if(e(I)&&n.key==="Escape"){n.preventDefault(),n.stopPropagation(),dr();return}if(ue.current&&!p&&N&&!n.shiftKey&&!n.altKey&&n.key.toLowerCase()==="l"){n.preventDefault(),n.stopPropagation(),Xe();return}if(ue.current&&!p&&Po(n,v(),se)){n.preventDefault(),n.stopPropagation(),bt();return}const ge=Sn(n);ge==="back"&&!p?e(S)&&e(s)&&(n.preventDefault(),Oe()):ge==="forward"&&!p&&e(S)&&e(s)&&(n.preventDefault(),Me()),(n.key==="F5"||N&&n.key==="r")&&ue.current&&(n.preventDefault(),n.stopPropagation(),ft())};return window.addEventListener("keydown",t,!0),()=>{window.removeEventListener("keydown",t,!0),xe(),Ce()}});function Ce(t=e(s)){if(t)for(const{event:n,handler:p}of _e)try{t.removeEventListener?.(n,p)}catch{}_e=[]}function re(t,n){e(s)&&(e(s).addEventListener(t,n),_e.push({event:t,handler:n}))}function Be(t){try{t.getWebContentsId()}catch{return"none"}try{return t.getURL?.(),"live"}catch{return"dead"}}function Ye(){e(s)&&(re("did-start-loading",()=>{i(de,!0),i(I,!1)}),re("did-stop-loading",()=>{i(de,!1),i(S,!0),$e(e(U)),We()}),re("destroyed",()=>{const t=e(s),n=t?Be(t):"none";if(!t?.isConnected||n!=="dead"){w.debug("Ignoring destroyed event for a replaced guest",{tabId:C(),guest:n});return}w.warn("Webview guest was destroyed",{tabId:C(),url:on(e(ye))}),Ce(),i(S,!1),i(de,!1),i(I,!1),i(l,!1),i(V,!1),Se=void 0,i(x,d.browser_embedded_pageClosed_error(),!0),i(Le,!0)}),re("did-navigate",t=>{i(u,0),i(ye,t.url,!0),i(U,t.url,!0),i(oe,""),i(A,""),i(c,!1),i(Ie,t.url?.startsWith("https://"),!0),i(x,"");const n=Go(Ae||void 0,t.url,De||void 0);xe(),kr(Te,t.url),n?$()?.(t.url,n):$()?.(t.url),We()}),re("did-navigate-in-page",t=>{t.isMainFrame&&(i(ye,t.url,!0),i(U,t.url,!0),i(Ie,t.url?.startsWith("https://"),!0),xe(),kr(Te,t.url),$()?.(t.url),We())}),re("page-title-updated",t=>{i(oe,t.title??"",!0),Ee.dispatch(_r(F(),e(U),t.title,void 0)),B()?.(t.title)}),re("page-favicon-updated",t=>{t.favicons?.length>0&&(i(A,t.favicons[0],!0),i(c,!1),Ee.dispatch(_r(F(),e(U),void 0,t.favicons[0])),k()?.(t.favicons[0]))}),re("did-fail-load",t=>{if(t.errorCode!==-3){const n=t.validatedURL||e(ye),p=n?.includes("localhost")||n?.includes("127.0.0.1");if(ce)i(x,ce,!0),w.warn("Webview failed to load after a resolver error",{url:n,errorCode:t.errorCode,errorDescription:t.errorDescription});else if(t.errorCode===-102&&p){const N=n?.match(/:(\d+)/)?.[1];i(x,N?d.browser_embedded_localhostRefusedPort_error({port:N}):d.browser_embedded_localhostRefused_error(),!0),w.warn("Localhost connection refused",{url:n,errorCode:t.errorCode})}else i(x,t.errorDescription||d.browser_embedded_loadFailed_error(),!0),w.error("Webview failed to load",{errorCode:t.errorCode,errorDescription:t.errorDescription})}i(de,!1)}),re("focus",()=>{y()?.()}),re("console-message",t=>{t.level===3&&i(u,e(u)+1);const n=t.message;if(n==="__INTENT_CLOSE_TAB__"){const p=new KeyboardEvent("keydown",{key:"w",code:"KeyW",metaKey:!0,ctrlKey:!1,bubbles:!0,cancelable:!0});window.dispatchEvent(p)}else if(n==="__INTENT_REFRESH__")ft();else if(n==="__INTENT_FOCUS_URL__")Xe();else if(n.startsWith("__INTENT_PANEL_BRACKET__:")){const p=Rn(n);if(!p)return;window.dispatchEvent(new KeyboardEvent("keydown",{...p,bubbles:!0,cancelable:!0}))}else if(n==="__INTENT_COPY_URL__")bt();else if(n==="__INTENT_DEVTOOLS__")to();else{const p=zn(n);if(p&&!e(I)){w.debug("Ignored element picker message while picker was inactive");return}p?.type==="cancelled"&&i(I,!1),p?.type==="malformed"&&(i(I,!1),w.warn("Ignored malformed element picker payload",{issues:p.issues})),p?.type==="picked"&&(i(I,!1),Ut(p.element))}}))}function We(){if(e(s)&&e(S))try{i(l,e(s).canGoBack?.()??!1,!0),i(V,e(s).canGoForward?.()??!1,!0)}catch{i(l,!1),i(V,!1)}}function ot(){try{return e(s)?.getURL?.()}catch{return}}function $e(t){const n=kn(Te,t,ot());n&&(i(U,n,!0),i(Ie,n.startsWith("https://"),!0),$()?.(n))}async function Fe(t){if(t){if(xe(),!st(t)){try{const n=new URL(t);f.includes(n.protocol)?(i(x,d.browser_embedded_selfLoad_error(),!0),w.warn("Prevented loading app URL in webview",{url:t})):(i(x,d.browser_embedded_protocolNotAllowed_error({protocol:n.protocol,protocols:f.join(", ")}),!0),w.warn("Blocked disallowed protocol in webview",{url:t,protocol:n.protocol}))}catch{i(x,d.browser_embedded_invalidUrlFormat_error(),!0),w.warn("Invalid URL format",{url:t})}return}try{if(new URL(t),i(x,""),w.info("loadUrl: validated URL",{url:t,webviewRef:!!e(s),webviewReady:e(S)}),e(s)){w.info("loadUrl: calling webviewRef.loadURL",{targetUrl:t});const n=e(s);xn(n,t).then(()=>{$e(t),We()}).catch(p=>{w.warn("Webview navigation failed",{targetUrl:t,error:p})})}else w.info("loadUrl: recreating webview",{targetUrl:t}),i(X,!0),await ht(),i(ye,t,!0),i(Le,!1),i(X,!1),i(S,!1)}catch(n){i(x,d.browser_embedded_invalidUrl_error(),!0),w.error("Invalid URL",{url:t,error:n})}}}function Oe(){if(!(!e(S)||!e(s)))try{e(s).canGoBack?.()&&(xe(),e(s).goBack())}catch{}}function Me(){if(!(!e(S)||!e(s)))try{e(s).canGoForward?.()&&(xe(),e(s).goForward())}catch{}}function ft(){if(e(Le)){const t=e(ye)!=="about:blank"?e(ye):e(U);t&&Fe(t);return}if(!(!e(S)||!e(s)))try{xe(),e(s).reload?.(),e(s).focus?.()}catch{}}function wt(){const t=ot();return t&&t!=="about:blank"?t:e(ye)!=="about:blank"?e(ye):""}async function bt(){const t=wt();if(!t){at.error(d.browser_embedded_noUrlToCopy_error());return}try{await Qo(t),at.success(d.browser_embedded_urlCopied_label())}catch(n){w.error("Failed to copy browser URL",n,{url:t}),at.error(d.browser_embedded_copyFailed_error())}}async function Pt(){const t=wt();if(!t){at.error(d.browser_embedded_noUrlToOpen_error());return}try{await Yt("shell:openExternal",{url:t})}catch(n){w.error("Failed to open browser URL externally",n,{url:t}),at.error(d.browser_embedded_openExternalFailed_error())}}function yt(t){const n="data:",p=";base64,",N=t.indexOf(p,n.length),se=t.slice(n.length,N),ge=t.slice(N+p.length);if(!t.startsWith(n)||N<0||!se.startsWith("image/")||!ge)throw new Error("Captured image did not produce a valid base64 data URL");return{data:ge,mimeType:se}}function Lt(t,n){if(!C()||!e(s))return;const p=n?.pageUrl||wt(),N=tn.select(Ee.state,F())?.agentId??T();if(!N){at.error(d.browser_embedded_noTargetAgent_error());return}Ee.dispatch(qo(F(),{tabId:C(),ownerAgentId:T(),targetAgentId:N,pageUrl:p,title:e(oe)||ut(p)||p,viewport:j().mode==="fit"?{width:e(s).clientWidth,height:e(s).clientHeight}:{width:j().width,height:j().height},image:t,...n?{element:n}:{}}))}async function Nt(){if(!(!e(s)?.capturePage||!e(S)||!C()))try{const t=await e(s).capturePage();Lt(yt(t.toDataURL()))}catch(t){w.error("Failed to capture browser screenshot",t),at.error(d.browser_embedded_screenshotFailed_error())}}async function Ut(t){if(!e(s)?.capturePage||!e(S)||!C())return;const n={width:e(s).clientWidth,height:e(s).clientHeight},p=j().mode==="fit"?n:{width:j().width,height:j().height},N=Wn(t.rect,n,p);if(N.width<=0||N.height<=0){w.warn("Ignored offscreen element picker rectangle",{rect:t.rect});return}try{const se=await e(s).capturePage(N);Lt(yt(se.toDataURL()),t)}catch(se){w.error("Failed to capture selected browser element",se),at.error(d.browser_embedded_screenshotFailed_error())}}async function lr(){if(e(I)){dr();return}if(!(!e(s)||!e(S)||!C()))try{await e(s).executeJavaScript(Gn),i(I,!0),e(s).focus?.()}catch(t){w.debug("Failed to inject element picker",{error:t}),i(I,!1)}}function dr(){i(I,!1),e(s)?.executeJavaScript("typeof window.__intentElementPickerCleanup === 'function' && window.__intentElementPickerCleanup()").catch(t=>w.debug("Failed to clean up element picker",{error:t}))}async function At(t){if(!(!e(s)||!e(S))){if(!C()){e(s).openDevTools?.();return}try{await window.electronAPI?.invoke("browser:open-devtools-panel",{tabId:C(),panel:t})}catch(n){w.warn("Failed to select DevTools panel; opening plain DevTools",{panel:t,error:n}),e(s).openDevTools?.()}}}function eo(){if(!(!e(s)||!e(S)))try{xe(),e(s).reloadIgnoringCache?.(),e(s).focus?.()}catch{}}function to(){if(!(!e(s)||!e(S)))try{e(s).isDevToolsOpened?.()?e(s).closeDevTools?.():e(s).openDevTools?.()}catch{}}function ro(t){if(t.preventDefault(),w.info("Form submitted",{urlDraft:e(ie),currentWebviewUrl:e(ye),previousUrlProp:Te.previousUrlProp,webviewReady:e(S),webviewRef:!!e(s)}),e(ie)){const n=Gr(e(ie));if(n===null){i(x,d.browser_embedded_invalidUrlFormat_error(),!0),w.warn("Invalid URL format",{url:e(ie)}),pt();return}w.info("Loading URL from form",{urlToLoad:n}),an(n)?oo(n):Fe(n),Ee.dispatch(Ho(F(),n,void 0,void 0,new Date().toISOString())),pt()}}async function oo(t){const n=xe(),p=await sn(t,Yt);if(n!==ae){w.info("Dropping superseded address-bar alias resolution",{requestedUrl:t,url:p.url});return}w.info("Resolved address-bar loopback alias",{requestedUrl:t,url:p.url,rewritten:p.rewritten,tunneled:p.tunneled,reason:p.reason,error:p.error}),await Fe(p.url),p.rewritten&&(De=t,Ae=p.url),p.error&&p.rewritten&&(ce=p.forbidden?d.browser_linkOpen_ownerOnlyForward_error():d.browser_embedded_resolveFailed_error(),i(x,ce,!0))}var no={get url(){return R()},set url(t){R(t),_()},get workspaceId(){return F()},set workspaceId(t){F(t),_()},get tabId(){return C()},set tabId(t){C(t),_()},get onNavigate(){return $()},set onNavigate(t){$(t),_()},get onTitleChange(){return B()},set onTitleChange(t){B(t),_()},get onFaviconChange(){return k()},set onFaviconChange(t){k(t),_()},get onFocus(){return y()},set onFocus(t){y(t),_()},get focusUrlBarOnMount(){return H()},set focusUrlBarOnMount(t=!1){H(t),_()},get isFocused(){return J()},set isFocused(t=!1){J(t),_()},get isActive(){return K()},set isActive(t=!0){K(t),_()},get ownerAgentId(){return T()},set ownerAgentId(t){T(t),_()},get viewport(){return j()},set viewport(t={mode:"fit"}){j(t),_()},get onViewportChange(){return le()},set onViewportChange(t){le(t),_()},$set:qe,$on:(t,n)=>He(r,t,n)},Bt=na(),Rt=Q(Bt),Ot=Q(Rt),Mt=Q(Ot),ur=Q(Mt);{let t=b(()=>!e(l)),n=b(()=>d.browser_embedded_goBack_tooltip()),p=b(()=>d.browser_embedded_goBack_ariaLabel());Re(ur,{variant:"ghost-light",size:"icon-xs",onclick:Oe,get disabled(){return e(t)},get tooltip(){return e(n)},tooltipShortcut:"alt+←",tooltipSide:"bottom",get"aria-label"(){return e(p)},children:(N,se)=>{ve(N,{get icon(){return nr},size:"xs"})},$$slots:{default:!0}})}var ao=g(ur,2);{let t=b(()=>!e(V)),n=b(()=>d.browser_embedded_goForward_tooltip()),p=b(()=>d.browser_embedded_goForward_ariaLabel());Re(ao,{variant:"ghost-light",size:"icon-xs",onclick:Me,get disabled(){return e(t)},get tooltip(){return e(n)},tooltipShortcut:"alt+→",tooltipSide:"bottom",get"aria-label"(){return e(p)},children:(N,se)=>{ve(N,{get icon(){return ar},size:"xs"})},$$slots:{default:!0}})}ee(Mt);var io=g(Mt,2);{let t=b(()=>d.browser_embedded_refresh_tooltip()),n=b(()=>d.browser_embedded_refresh_ariaLabel());Re(io,{variant:"ghost-light",size:"icon-xs",onclick:ft,get disabled(){return e(de)},get tooltip(){return e(t)},tooltipShortcut:"mod+r",tooltipSide:"bottom",get"aria-label"(){return e(n)},children:(p,N)=>{var se=_t(),ge=q(se);{var ke=Ne=>{Eo(Ne,{size:12})},Ve=Ne=>{ve(Ne,{get icon(){return Ur},size:"xs"})};me(ge,Ne=>{e(de)?Ne(ke):Ne(Ve,-1)})}h(p,se)},$$slots:{default:!0}})}ee(Ot);var Dt=g(Ot,2),cr=Q(Dt);{var so=t=>{var n=_t(),p=q(n);{var N=ge=>{var ke=Zn();h(ge,ke)},se=ge=>{var ke=_t(),Ve=q(ke);Lo(Ve,()=>e(A),Ne=>{var nt=Jn();W(()=>Je(nt,"src",e(A))),Jt("error",nt,()=>i(c,!0)),Co(nt),h(Ne,nt)}),h(ge,ke)};me(p,ge=>{e(c)?ge(N):ge(se,-1)})}h(t,n)};me(cr,t=>{e(A)&&t(so)})}var fr=g(cr,2),gr=Q(fr);{var lo=t=>{var n=Xn(),p=Q(n);{let se=b(()=>d.browser_embedded_url_placeholder()),ge=b(()=>d.browser_embedded_addressInput_ariaLabel());vt(Tt(p,{type:"text",onkeydown:we,onblur:pt,noFocusStyle:!0,class:"inline-edit-input h-full flex-1 rounded-none border-0 bg-transparent px-0 hover:border-transparent",get placeholder(){return e(se)},get"aria-label"(){return e(ge)},get value(){return e(ie)},set value(ke){i(ie,ke,!0)}}),ke=>i(z,ke,!0),()=>e(z))}var N=g(p,2);Re(N,{type:"submit",variant:"ghost",size:"xs",class:"sr-only",children:(se,ge)=>{dt();var ke=tt();W(Ve=>G(ke,Ve),[()=>d.browser_embedded_go_label()]),h(se,ke)},$$slots:{default:!0}}),ee(n),Jt("submit",n,ro),h(t,n)},uo=t=>{{let n=b(()=>d.browser_embedded_editAddress_ariaLabel());Re(t,{type:"button",variant:"plain",size:"sm",class:"relative z-10 flex h-full min-w-0 flex-1 cursor-text items-center gap-1.5 rounded-md px-5 text-left outline-none hover:bg-hover active:bg-active focus-visible:ring-1 focus-visible:ring-focus-ring",onclick:()=>void Xe(),get"aria-label"(){return e(n)},children:(p,N)=>{var se=Qn(),ge=q(se);{var ke=Qe=>{ve(Qe,{get icon(){return Ar},class:"shrink-0 text-muted-foreground",size:"sm"})};me(ge,Qe=>{e(Ie)&&Qe(ke)})}var Ve=g(ge,2),Ne=he(Ve,!0),nt=g(Ve,2);{var Kt=Qe=>{var Ke=Yn(),gt=he(Ke,!0);W(()=>G(gt,e(rt))),h(Qe,Ke)};me(nt,Qe=>{e(oe)&&e(rt)&&e(rt)!==e(oe)&&Qe(Kt)})}W(()=>G(Ne,e(ct))),h(p,se)},$$slots:{default:!0}})}};me(gr,t=>{e(te)?t(lo):t(uo,-1)})}var co=g(gr,2);ee(fr),ee(Dt);var Vt=g(Dt,2),fo=Q(Vt);{let t=b(()=>!e(S)||!C());Zr(fo,{get active(){return e(I)},get disabled(){return e(t)},onToggle:()=>void lr()})}ee(Vt);var Wt=g(Vt,2),go=Q(Wt);Hr(go,{get viewport(){return j()},onViewportChange:t=>le()?.(t)}),ee(Wt);var vr=g(Wt,2),vo=Q(vr);{let t=b(()=>!e(S)),n=b(()=>e(ne)==="controls-collapsed"),p=b(()=>e(S)&&!!C());qr(vo,{get errorCount(){return e(u)},get disabled(){return e(t)},get collapsed(){return e(n)},get canGoBack(){return e(l)},get canGoForward(){return e(V)},get canSelectElement(){return e(p)},get selectingElement(){return e(I)},get viewport(){return j()},onGoBack:Oe,onGoForward:Me,onToggleElementPicker:()=>void lr(),onViewportChange:N=>le()?.(N),onOpenExternal:Pt,onCopyUrl:bt,onScreenshot:Nt,onOpenConsole:()=>At("console"),onOpenSource:()=>At("sources"),onOpenInspector:()=>At("elements"),onReloadWithoutCache:eo})}ee(vr),ee(Rt),kt(Rt,(t,n)=>Hn?.(t,n),()=>O);var pr=g(Rt,2);{var po=t=>{var n=ea(),p=Q(n);ve(p,{get icon(){return Do}});var N=g(p,2),se=he(N,!0);ee(n),W(()=>G(se,e(x))),h(t,n)};me(pr,t=>{e(x)&&t(po)})}var wr=g(pr,2),wo=Q(wr);{var bo=t=>{var n=ta();h(t,n)},mo=t=>{jr(t,{get viewport(){return j()},onViewportChange:n=>le()?.(n),children:(n,p)=>{E(n)},$$slots:{default:!0}})},_o=t=>{var n=ra(),p=Q(n),N=g(Q(p),2),se=he(N,!0),ge=g(N,2),ke=Q(ge);{var Ve=Ke=>{var gt=tt();W(zt=>G(gt,zt),[()=>d.browser_embedded_protocolBlocked_description()]),h(Ke,gt)},Ne=b(()=>R().startsWith("javascript:")||R().startsWith("data:")),nt=Ke=>{var gt=tt();W(zt=>G(gt,zt),[()=>d.browser_embedded_selfLoadBlocked_description()]),h(Ke,gt)};me(ke,Ke=>{e(Ne)?Ke(Ve):Ke(nt,-1)})}ee(ge);var Kt=g(ge,2),Qe=he(Kt,!0);ee(p),ee(n),W(Ke=>{G(se,Ke),G(Qe,R())},[()=>d.browser_embedded_cannotLoadUrl_label()]),h(t,n)},ho=t=>{var n=oa(),p=Q(n),N=g(Q(p),2),se=he(N,!0),ge=g(N,2),ke=he(ge,!0);ee(p),ee(n),W((Ve,Ne)=>{G(se,Ve),G(ke,Ne)},[()=>d.browser_embedded_noUrl_label(),()=>d.browser_embedded_noUrl_description()]),h(t,n)};me(wo,t=>{e(Le)?t(bo):e(be)&&!e(X)?t(mo,1):R()&&!e(X)?t(_o,2):t(ho,-1)})}ee(wr),ee(Bt),W(()=>Et(co,1,`pointer-events-none absolute z-0 rounded-(--radius-small) border transition-[inset,border-color,background-color] duration-(--motion-standard) ease-(--ease-standard) motion-reduce:transition-none ${e(te)?"-inset-x-2 -inset-y-1.5 border-ring/60 bg-background":"-inset-x-1 -inset-y-0.5 border-transparent bg-transparent"}`)),h(o,Bt);var yo=Ze(no);return L(),yo}var aa=Z('<form class="flex h-full min-w-0 flex-1 items-center px-2"><!> <!></form>'),ia=Z('<span class="browser-viewer-hostname truncate text-xs text-muted-foreground svelte-1jyro9v"> </span>'),sa=Z('<!> <span class="min-w-0 flex-1 truncate text-sm font-medium text-foreground"> </span> <!>',1),la=Z('<div class="flex items-center gap-2 border-b border-warning/20 bg-warning/10 px-3 py-2 text-sm text-warning-ink" data-browser-viewer-offline-banner="" role="status"><!> <span class="min-w-0 flex-1"> </span> <!></div>'),da=Z('<div class="flex flex-col"><div class="flex h-12 shrink-0 items-center gap-1 border-b border-border bg-muted/30 px-2" data-browser-toolbar=""><div class="flex gap-0.5"><!> <!> <!></div> <div data-browser-address-surface=""><!></div></div> <!></div>');function Xr(o,r){if(new.target)return Ge({component:Xr,...o});je(r,!0);let a=m(r,"url",7),v=m(r,"title",7),P=m(r,"host",7),L=m(r,"canGoBack",7,!0),E=m(r,"canGoForward",7,!0),w=m(r,"onNavigate",7),D=m(r,"onGoBack",7),f=m(r,"onGoForward",7),R=m(r,"onRefresh",7),F=m(r,"onClose",7),C=M(!1),$=M(""),B=M(!1),k=M(null);const y=b(()=>!P().connected),H=b(()=>a().startsWith("https://")),J=b(()=>{try{return new URL(a()).hostname}catch{return""}}),K=b(()=>v()?.trim()||e(J)||a());async function T(){e(y)||(i($,a(),!0),i(B,!1),i(C,!0),await ht(),e(k)?.focus(),e(k)?.select())}Pe(()=>{e(y)&&(i(C,!1),i(B,!1))});function j(x){if(x.preventDefault(),e(y)||!e($).trim()){i(C,!1);return}const S=Gr(e($));if(!S||!st(S)){i(B,!0);return}i(C,!1),S!==a()&&w()?.(S)}function le(x){x.key==="Escape"&&(x.preventDefault(),i(C,!1))}var pe={get url(){return a()},set url(x){a(x),_()},get title(){return v()},set title(x){v(x),_()},get host(){return P()},set host(x){P(x),_()},get canGoBack(){return L()},set canGoBack(x=!0){L(x),_()},get canGoForward(){return E()},set canGoForward(x=!0){E(x),_()},get onNavigate(){return w()},set onNavigate(x){w(x),_()},get onGoBack(){return D()},set onGoBack(x){D(x),_()},get onGoForward(){return f()},set onGoForward(x){f(x),_()},get onRefresh(){return R()},set onRefresh(x){R(x),_()},get onClose(){return F()},set onClose(x){F(x),_()},$set:qe,$on:(x,S)=>He(r,x,S)},z=da(),s=Q(z),U=Q(s),ie=Q(U);{let x=b(()=>e(y)||!L()),S=b(()=>d.browser_embedded_goBack_tooltip()),u=b(()=>d.browser_embedded_goBack_ariaLabel());Re(ie,{variant:"ghost-light",size:"icon-compact",onclick:()=>D()?.(),get disabled(){return e(x)},get tooltip(){return e(S)},tooltipSide:"bottom",get"aria-label"(){return e(u)},children:(I,ne)=>{ve(I,{get icon(){return nr},size:"xs"})},$$slots:{default:!0}})}var te=g(ie,2);{let x=b(()=>e(y)||!E()),S=b(()=>d.browser_embedded_goForward_tooltip()),u=b(()=>d.browser_embedded_goForward_ariaLabel());Re(te,{variant:"ghost-light",size:"icon-compact",onclick:()=>f()?.(),get disabled(){return e(x)},get tooltip(){return e(S)},tooltipSide:"bottom",get"aria-label"(){return e(u)},children:(I,ne)=>{ve(I,{get icon(){return ar},size:"xs"})},$$slots:{default:!0}})}var oe=g(te,2);{let x=b(()=>d.browser_embedded_refresh_tooltip()),S=b(()=>d.browser_embedded_refresh_ariaLabel());Re(oe,{variant:"ghost-light",size:"icon-compact",onclick:()=>R()?.(),get disabled(){return e(y)},get tooltip(){return e(x)},tooltipSide:"bottom",get"aria-label"(){return e(S)},children:(u,I)=>{ve(u,{get icon(){return Ur},size:"xs"})},$$slots:{default:!0}})}ee(U);var A=g(U,2),c=Q(A);{var l=x=>{var S=aa(),u=Q(S);{let ne=b(()=>d.browser_embedded_url_placeholder()),O=b(()=>d.browser_embedded_addressInput_ariaLabel()),X=b(()=>e(B)||void 0),ae=b(()=>e(B)?d.browser_panel_invalidUrl_error():void 0);vt(Tt(u,{type:"text",oninput:()=>i(B,!1),onkeydown:le,onblur:()=>i(C,!1),noFocusStyle:!0,get disabled(){return e(y)},class:"h-full flex-1 rounded-none border-0 bg-transparent px-0 hover:border-transparent",get placeholder(){return e(ne)},get"aria-label"(){return e(O)},get"aria-invalid"(){return e(X)},get title(){return e(ae)},get value(){return e($)},set value(ce){i($,ce,!0)}}),ce=>i(k,ce,!0),()=>e(k))}var I=g(u,2);Re(I,{type:"submit",variant:"ghost",size:"compact",class:"sr-only",children:(ne,O)=>{dt();var X=tt();W(ae=>G(X,ae),[()=>d.browser_embedded_go_label()]),h(ne,X)},$$slots:{default:!0}}),ee(S),Jt("submit",S,j),h(x,S)},V=x=>{{let S=b(()=>d.browser_embedded_editAddress_ariaLabel()),u=b(()=>e(y)?d.browser_viewer_navigationPaused_tooltip({host:P().name}):void 0);Re(x,{variant:"plain",type:"button",class:"flex h-full min-w-0 flex-1 items-center gap-1.5 rounded-md px-6 text-left outline-none hover:bg-hover active:bg-active focus-visible:ring-1 focus-visible:ring-focus-ring disabled:cursor-not-allowed disabled:hover:bg-transparent",onclick:()=>void T(),get disabled(){return e(y)},get"aria-label"(){return e(S)},get title(){return e(u)},children:(I,ne)=>{var O=sa(),X=q(O);{var ae=Le=>{ve(Le,{get icon(){return Ar},class:"shrink-0 text-muted-foreground",size:"sm"})};me(X,Le=>{e(H)&&Le(ae)})}var ce=g(X,2),De=he(ce,!0),Ae=g(ce,2);{var xe=Le=>{var ye=ia(),Te=he(ye,!0);W(()=>G(Te,e(J))),h(Le,ye)};me(Ae,Le=>{v()&&e(J)&&e(J)!==v()&&Le(xe)})}W(()=>G(De,e(K))),h(I,O)},$$slots:{default:!0}})}};me(c,x=>{e(C)?x(l):x(V,-1)})}ee(A),ee(s);var de=g(s,2);{var Ie=x=>{var S=la(),u=Q(S);ve(u,{get icon(){return Br},class:"shrink-0"});var I=g(u,2),ne=he(I,!0),O=g(I,2);Re(O,{variant:"outline",size:"compact",onclick:()=>F()?.({force:!0}),children:(X,ae)=>{dt();var ce=tt();W(De=>G(ce,De),[()=>d.browser_viewer_forceClose_label()]),h(X,ce)},$$slots:{default:!0}}),ee(S),W(X=>G(ne,X),[()=>d.browser_viewer_hostOffline_description({host:P().name})]),h(x,S)};me(de,x=>{e(y)&&x(Ie)})}return ee(z),W(()=>{Je(z,"data-browser-viewer-header",e(y)?"offline":"online"),Et(A,1,`flex h-8 min-w-0 flex-1 items-center rounded-md bg-background ${e(y)?"opacity-60":""}`)}),h(o,z),Ze(pe)}function ua(o){return{followSeq:0,activeFollowSeq:null,activeFollowCommitted:!1,forwardSeq:0,pendingForward:null,canonicalUrl:null,webviewReady:!1,targetUrl:null,mirrorUrl:null,isValidBrowserUrl:o.isValidBrowserUrl}}function er(o,r){return o.followSeq+=1,o.activeFollowSeq=o.followSeq,o.activeFollowCommitted=!1,o.targetUrl=r,{type:"load",seq:o.followSeq,url:r}}function Lr(o,r){return[er(o,r),tr(o,r)]}function tr(o,r,a={retarget:!0}){return o.forwardSeq+=1,o.pendingForward={seq:o.forwardSeq,followSeq:o.followSeq},a.retarget&&(o.targetUrl=r),{type:"forward",seq:o.forwardSeq,url:r}}function ca(o,r){switch(r.type){case"canonical":return o.webviewReady=r.webviewReady,r.url?(o.canonicalUrl=r.url,o.followSeq===0?(o.followSeq=1,o.activeFollowSeq=1,o.activeFollowCommitted=!1,o.targetUrl=r.url,[]):r.url===o.targetUrl?[]:r.webviewReady?o.isValidBrowserUrl(r.url)?o.activeFollowSeq===null&&r.url===o.mirrorUrl?(o.targetUrl=r.url,[]):[er(o,r.url)]:[]:[]):[];case"guest-navigated":{if(!r.isMainFrame||!r.url)return[];if(o.mirrorUrl=r.url,o.activeFollowSeq!==null){if(!r.inPage)return o.activeFollowCommitted=!0,[];if(!o.activeFollowCommitted||r.url===o.targetUrl)return[]}return[tr(o,r.url)]}case"follow-settled":return r.seq===o.activeFollowSeq&&(o.activeFollowSeq=null),[];case"forward-settled":{const a=o.pendingForward;if(!a||a.seq!==r.seq)return[];if(o.pendingForward=null,r.ok)return[];if(o.followSeq!==a.followSeq)return[];const v=o.canonicalUrl;if(!v||!o.isValidBrowserUrl(v))return[];if(!o.webviewReady)return[];const P=o.activeFollowSeq===null||o.targetUrl===v;return v===o.mirrorUrl&&P?(o.targetUrl=v,[]):[er(o,v)]}case"address":return!r.url||!o.isValidBrowserUrl(r.url)?[]:o.webviewReady?Lr(o,r.url):[tr(o,r.url,{retarget:!1})];case"refresh":{const a=o.canonicalUrl;return!a||!o.isValidBrowserUrl(a)||!o.webviewReady?[]:Lr(o,a)}}}var fa=Z('<div class="flex h-full flex-col bg-background" data-browser-viewer-tab=""><!> <div><webview class="h-full w-full border-none" allowpopups=""></webview></div></div>');function Yr(o,r){if(new.target)return Ge({component:Yr,...o});je(r,!0);let a=m(r,"url",7),v=m(r,"title",7),P=m(r,"host",7),L=m(r,"isActive",7,!0),E=m(r,"onNavigate",7),w=m(r,"onClose",7),D=m(r,"onFaviconChange",7),f=m(r,"onFocus",7);const R=st(a())?a():"about:blank",F=ua({isValidBrowserUrl:st}),C=1;let $=M(null),B=M(!1),k=M(!1),y=M(!1),H=[];function J(c){if(c.type==="load"){const V=e($),de=()=>K({type:"follow-settled",seq:c.seq});if(!V)return de();try{V.loadURL(c.url).then(de,de)}catch{de()}return}const l=V=>K({type:"forward-settled",seq:c.seq,ok:V});if(!P().connected){queueMicrotask(()=>l(!1));return}try{Promise.resolve(E()?.(c.url)).then(()=>l(!0),()=>l(!1))}catch{l(!1)}}function K(c){for(const l of ca(F,c))J(l)}function T(c,l,V){c.addEventListener(l,V),H.push({event:l,handler:V})}function j(c){if(c)for(const{event:l,handler:V}of H)try{c.removeEventListener?.(l,V)}catch{}H=[]}function le(c){try{i(k,c.canGoBack(),!0),i(y,c.canGoForward(),!0)}catch{}}function pe(c,l,V){K({type:"guest-navigated",url:l.url??"",isMainFrame:l.isMainFrame!==!1,inPage:V}),le(c)}function z(c){P().connected&&K({type:"address",url:c})}Pe(()=>{const c=e($);if(c)return c.getAttribute("partition")||c.setAttribute("partition",It),c.hasAttribute("allowpopups")||c.setAttribute("allowpopups",""),T(c,"dom-ready",()=>{i(B,!0),le(c)}),T(c,"did-stop-loading",()=>{i(B,!0),K({type:"follow-settled",seq:C}),le(c)}),T(c,"did-fail-load",l=>{l.isMainFrame!==!1&&K({type:"follow-settled",seq:C})}),T(c,"did-navigate",l=>pe(c,l,!1)),T(c,"did-navigate-in-page",l=>pe(c,l,!0)),T(c,"page-favicon-updated",l=>{l.favicons?.length>0&&D()?.(l.favicons[0])}),T(c,"focus",()=>f()?.()),()=>j(c)}),Pe(()=>{K({type:"canonical",url:a(),webviewReady:e(B)})}),Pe(()=>{const c=e($);if(!(!c||!e(B)))try{c.setAudioMuted?.(!L())}catch{}}),$r(()=>j(e($)));var s={get url(){return a()},set url(c){a(c),_()},get title(){return v()},set title(c){v(c),_()},get host(){return P()},set host(c){P(c),_()},get isActive(){return L()},set isActive(c=!0){L(c),_()},get onNavigate(){return E()},set onNavigate(c){E(c),_()},get onClose(){return w()},set onClose(c){w(c),_()},get onFaviconChange(){return D()},set onFaviconChange(c){D(c),_()},get onFocus(){return f()},set onFocus(c){f(c),_()},$set:qe,$on:(c,l)=>He(r,c,l)},U=fa(),ie=Q(U);Xr(ie,{get url(){return a()},get title(){return v()},get host(){return P()},get canGoBack(){return e(k)},get canGoForward(){return e(y)},onNavigate:z,onGoBack:()=>e(B)&&e($)?.goBack(),onGoForward:()=>e(B)&&e($)?.goForward(),onRefresh:()=>e(B)&&K({type:"refresh"}),get onClose(){return w()}});var te=g(ie,2);let oe;var A=Q(te);return vt(A,c=>i($,c),()=>e($)),ee(te),ee(U),W(()=>{oe=Et(te,1,"relative min-h-0 flex-1",null,oe,{"pointer-events-none":!P().connected}),Je(A,"src",R),Je(A,"partition",It)}),h(o,U),Ze(s)}var ga=Z('<div class="flex shrink-0 items-start gap-2 border-b border-warning/20 bg-warning/10 px-3 py-2 text-sm text-warning-ink" data-browser-tab-not-primary="" role="note"><!> <span class="min-w-0 flex-1"> </span></div>'),va=Z('<!> <span class="min-w-0 flex-1 truncate text-sm"> </span> <!>',1),pa=Z('<div class="shrink-0 border-b border-border bg-muted/30" data-browser-tab-agent-control=""><!></div>'),wa=Z("<!> <!>",1);function Qr(o,r){if(new.target)return Ge({component:Qr,...o});je(r,!0);let a=m(r,"mirrorHostName",7),v=m(r,"agentName",7),P=m(r,"onOpenAgent",7);var L={get mirrorHostName(){return a()},set mirrorHostName(F){a(F),_()},get agentName(){return v()},set agentName(F){v(F),_()},get onOpenAgent(){return P()},set onOpenAgent(F){P(F),_()},$set:qe,$on:(F,C)=>He(r,F,C)},E=wa(),w=q(E);{var D=F=>{var C=ga(),$=Q(C);ve($,{get icon(){return Br},class:"mt-0.5 shrink-0"});var B=g($,2),k=he(B,!0);ee(C),W(y=>G(k,y),[()=>d.browser_tabNotice_notPrimary_description({host:a()})]),h(F,C)};me(w,F=>{a()!==void 0&&v()!==void 0&&F(D)})}var f=g(w,2);{var R=F=>{var C=pa(),$=Q(C);{let B=b(()=>d.browser_embedded_ownerChip_tooltip({name:v()}));Re($,{variant:"plain",type:"button",class:"group flex h-auto w-full justify-start rounded-none items-center gap-2 px-3 py-1.5 text-left text-sm text-muted-foreground outline-none hover:bg-hover hover:text-foreground focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-focus-ring active:bg-active",onclick:k=>P()?.(k),get title(){return e(B)},children:(k,y)=>{var H=va(),J=q(H);ve(J,{get icon(){return Or},class:"shrink-0",size:"sm"});var K=g(J,2),T=he(K,!0),j=g(K,2);ve(j,{get icon(){return Vo},class:"shrink-0 opacity-60 transition-transform duration-spring-fast ease-spring-fast group-hover:translate-x-0.5 motion-reduce:transition-none",size:"xs"}),W(le=>G(T,le),[()=>d.browser_tabNotice_agentControl_label({name:v()})]),h(k,H)},$$slots:{default:!0}})}ee(C),h(F,C)};me(f,F=>{v()!==void 0&&F(R)})}return h(o,E),Ze(L)}const ba=or("BrowserViewport"),rr="browser-viewport-change";function ma(o,r,a){Ee.dispatch(jo(o,r,a)),Yt(Ro.BROWSER.SET_TAB_VIEWPORT,{tabId:r,viewport:a}).catch(v=>{ba.warn("Failed to apply browser viewport in the main process",{tabId:r,error:v})})}function _a(o,r){let a=r;const v=P=>{ma(a.layoutId,a.tabId,P.detail)};return o.addEventListener(rr,v),{update(P){a=P},destroy(){o.removeEventListener(rr,v)}}}var Rr=Z('<div class="min-h-0 flex-1"><!></div>'),ha=Z('<div class="flex h-full flex-col" data-browser-tab-frame=""><!> <!></div>');function ya(o,r){if(new.target)return Ge({component:ya,...o});je(r,!0);const a=()=>mt(J,"$pendingPanelReveal$",E),v=()=>mt(j,"$agents$",E),P=()=>mt(U,"$ownClientId$",E),L=()=>mt(oe,"$tabHost$",E),[E,w]=Fr(),D=u=>{var I=_t(),ne=q(I);{var O=X=>{var ae=_t(),ce=q(ae);{let De=b(()=>d.browser_embedded_ownerChip_ariaLabel({name:e(le)??f().ownerAgentId}));Y(ce,()=>Kr,(Ae,xe)=>{xe(Ae,{get icon(){return Or},get label(){return e(De)},onclick:pe,get"data-browser-owner-chip"(){return f().ownerAgentId}})})}h(X,ae)};me(ne,X=>{f().ownerAgentId&&X(O)})}h(u,I)};let f=m(r,"tab",7),R=m(r,"workspaceId",7),F=m(r,"layoutId",7),C=m(r,"isActive",7),$=m(r,"isPanelFocused",7),B=m(r,"onFocus",7);const k=b(()=>f().browserUrl??"about:blank"),y=b(()=>F()??R()),H=Gt(Ct(()=>e(y)));Pe(()=>H.set(e(y)));const J=rn(H),K=b(()=>a()?.tabId===f().id&&a().preserveFocus===!0),T=Gt(R());Pe(()=>T.set(R()));const j=yn(T),le=b(()=>f().ownerAgentId?hn(f().ownerAgentId,v(),f().ownerAgentName):void 0);function pe(u){f().ownerAgentId&&Ee.dispatch(Zo(R(),{agentId:f().ownerAgentId,sourcePanelId:bn(e(s)??u.target),openInAdjacentPanel:Fo({event:u})}))}const z=wn();Pe(()=>{if(!(!z||!C()||!f().ownerAgentId))return z.registerActions({actions:D})});let s=M(null);const U=mn(),ie=b(()=>f().hostClientId===void 0||f().hostClientId===P()),te=Gt(Ct(()=>f().hostClientId??""));Pe(()=>te.set(f().hostClientId??""));const oe=_n(te,T),A=b(()=>!e(ie)&&L().connected?L().name:void 0);var c={get tab(){return f()},set tab(u){f(u),_()},get workspaceId(){return R()},set workspaceId(u){R(u),_()},get layoutId(){return F()},set layoutId(u){F(u),_()},get isActive(){return C()},set isActive(u){C(u),_()},get isPanelFocused(){return $()},set isPanelFocused(u){$(u),_()},get onFocus(){return B()},set onFocus(u){B(u),_()},$set:qe,$on:(u,I)=>He(r,u,I)},l=ha(),V=Q(l);Qr(V,{get mirrorHostName(){return e(A)},get agentName(){return e(le)},onOpenAgent:pe});var de=g(V,2);{var Ie=u=>{var I=Rr(),ne=Q(I);Yr(ne,{get url(){return e(k)},get title(){return f().title},get host(){return L()},get isActive(){return C()},onNavigate:O=>Ee.dispatch(Xo(f().id,O)),onClose:({force:O})=>{Ee.dispatch(Jo(f().id,O))},onFaviconChange:O=>{Ee.dispatch(hr(e(y),f().id,O))},get onFocus(){return B()}}),ee(I),kt(I,(O,X)=>mr?.(O,X),R),vt(I,O=>i(s,O),()=>e(s)),W(()=>Je(I,"data-browser-tab-mirror",f().hostClientId)),h(u,I)},x=u=>{var I=Rr(),ne=Q(I);{let O=b(()=>C()&&$()&&!e(K)),X=b(()=>f().viewport??{mode:"fit"});Jr(ne,{get url(){return e(k)},get workspaceId(){return R()},get tabId(){return f().id},get isActive(){return C()},get focusUrlBarOnMount(){return e(O)},get isFocused(){return $()},get ownerAgentId(){return f().ownerAgentId},get viewport(){return e(X)},onViewportChange:ae=>{e(s)?.dispatchEvent(new CustomEvent(rr,{detail:ae}))},onNavigate:(ae,ce)=>{Ee.dispatch(ce===void 0?xr(e(y),f().id,ae):xr(e(y),f().id,ae,ce)),f().contextItemId&&Ee.dispatch(yr(R(),f().contextItemId,{url:ae}))},onTitleChange:ae=>{Ee.dispatch(Yo(e(y),f().id,ae)),f().contextItemId&&Ee.dispatch(yr(R(),f().contextItemId,{title:ae}))},onFaviconChange:ae=>{Ee.dispatch(hr(e(y),f().id,ae))},get onFocus(){return B()}})}ee(I),kt(I,(O,X)=>mr?.(O,X),R),vt(I,O=>i(s,O),()=>e(s)),kt(I,(O,X)=>_a?.(O,X),()=>({layoutId:e(y),tabId:f().id})),h(u,I)};me(de,u=>{e(ie)?e(k)&&u(x,1):u(Ie)})}ee(l),h(o,l);var S=Ze(c);return w(),S}export{ya as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as a,C as n}from"./Cc7p6my_.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o3 as o}from"./WOicJa2k.js";import{aB as r}from"./D24Lh2xV.js";function c(n,e){if(!e)return!0;const t=r.select(n,e);return!!t&&!o(t)}export{c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as o,s as r}from"../chunks/BeXyu8S7.js";export{o as load_css,r as start};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as Vt,bq as We,by as Gt,bs as fa,a_ as Y,b as Kt,bu as Ot,bo as H,bt as va,br as _a}from"../chunks/yZ5s7S5S.js";import{bo as ha,bs as Ut,a5 as y,bf as N,aD as e,bA as _,W as g,bn as qt,a7 as be,ay as ge,c9 as a,aA as Be,aB as ae,b_ as Z,am as ue,ax as ce,bl as xe,bS as Re,bO as Ie,bV as Se,br as ya,ca as zt,bH as C,c5 as wa,aC as ba}from"../chunks/B8o4lNgr.js";import{d as yt,k as Ae,s as X,l as Sa,h as sa,a as xa}from"../chunks/D46WSk8U.js";import{b as Ia}from"../chunks/D2g8BuR1.js";import{c1 as Ca,aB as Bt,aG as Ta,dk as ka}from"../chunks/D24Lh2xV.js";import{l as Je}from"../chunks/BJzHxIyr.js";import{p as Pa}from"../chunks/iYBu_bIg.js";import{g as Ra}from"../chunks/BeXyu8S7.js";import{$ as Aa}from"../chunks/DYFbONVh.js";import{a4 as Oa,O as Mt,j as Ma,o as it,s as $a,F as Da,L as $t,Q as wt,V as Fa,$ as La,p as Ea,J as Na,y as ja,K as Ha,M as Wa,N as Jt,_ as bt,c as Qt,m as Xt,E as Ba,x as Dt,B as Yt,z as Va,P as Zt,v as ea,G as ta,H as Ga,a1 as Ka,i as Ua,R as qa,T as za,A as Ja,b as Qa,e as Xa,a as Ya,C as Za,D as er,f as tr,g as ar,h as rr,k as nr}from"../chunks/TKDyISXm.js";import{H as lt,h as dt,y as sr}from"../chunks/Dfbagr79.js";import{Hb as T,o3 as or,sg as ir,mV as aa,t$ as lr,u1 as dr,A5 as ur}from"../chunks/WOicJa2k.js";import{i as cr}from"../chunks/C3YfsJGu.js";import{b as Ft}from"../chunks/Ck8ZjaJh.js";import{C as ra}from"../chunks/DOb83nqS.js";import{C as Lt,M as Et}from"../chunks/B6GFXjaE.js";import"../chunks/f3mINTV_.js";import{P as gr}from"../chunks/BpS2Zkky.js";import"../chunks/Cu31g7xE.js";import{c as mr}from"../chunks/ChTqQfQN.js";import"../chunks/Cb1eroFO.js";import{f as pr}from"../chunks/CyAayV8v.js";import{S as fr}from"../chunks/dJdm8RiY.js";import{D as na,M as vr}from"../chunks/Cc7p6my_.js";import{y as Nt,E as jt,B as Ht,N as _r,m as hr,l as yr,O as Wt}from"../chunks/MkI4_nBU.js";import{c as oe}from"../chunks/W-gkWrYK.js";import{a as wr,s as br}from"../chunks/J1JvTxzS.js";import{f as Sr,l as xr}from"../chunks/BKBZBubB.js";var ut=ae("<div><!></div>"),Ir=ae('<div class="commit-message-block p-3 my-2 rounded-md bg-background border border-border"><div class="type-caption mb-1.5 font-medium text-subtle"> </div> <div class="type-code whitespace-pre-wrap text-foreground"> </div></div>'),ct=ae('<div class="w-full"><!></div>'),Cr=ae("<div> </div>"),Tr=ae('<div class="border border-border rounded-md"><div class="px-3 py-2 bg-muted/50 border-b border-border"><span class="type-caption text-subtle"> </span></div> <div class="p-3" data-tool-result-payload=""><!></div></div>'),kr=ae('<div data-response-group-child=""><!></div>'),Pr=ae('<div class="flex flex-col gap-0" style="contain: layout style paint;" data-operational-stack=""><!></div>');function oa(Ce,D){const k=ha();if(new.target)return Vt({component:oa,...Ce});Ut(D,!0);const W=()=>Ot(e(mt),"$mediaAgent$",me),ie=()=>Ot(St,"$hydratedBlocks$",me),Oe=()=>Ot(S,"$collapseToolRuns$",me),[me,Me]=fa(),Te=(r,t=N,o,i,l)=>{let O=ue(()=>ce(o?.(),!1)),L=ue(()=>ce(i?.(),void 0)),B=ue(()=>ce(l?.(),""));var G=be(),_e=ge(G);{var h=b=>{var M=ut(),I=y(M);$e(I,t,()=>e(O),()=>e(L),()=>e(B)),_(M),Z(()=>Ae(M,1,yt(Wt))),g(b,M)},d=b=>{$e(b,t,()=>e(O),()=>e(L),()=>e(B))};Y(_e,b=>{e(O)?b(h):b(d,-1)})}g(r,G)},$e=(r,t=N,o=N,i=N,l=N)=>{var O=be(),L=ge(O);{var B=n=>{{let c=a(()=>t().metadata?.language),V=a(()=>t().metadata?.path),U=a(()=>t().metadata?.mode);Ja(n,{get code(){return t().content},get language(){return e(c)},get path(){return e(V)},get mode(){return e(U)},onOpenFile:ne})}},G=n=>{{let c=a(()=>t().metadata?.path);Qa(n,{get diff(){return t().content},get filePath(){return e(c)}})}},_e=n=>{var c=Ir(),V=y(c),U=xe(V,!0),ye=Re(V,2),Ne=xe(ye,!0);_(c),Z(st=>{Ie(U,st),Ie(Ne,t().content)},[()=>H.chat_messageContent_generatedCommitMessage_label()]),g(n,c)},h=n=>{na(n,{kind:"custom",children:(c,V)=>{{let U=a(()=>t().metadata?.diagramData??null),ye=a(()=>t().metadata?.isStreaming??!1),Ne=a(()=>t().metadata?.rawSource??t().content),st=a(()=>t().metadata?.diagramError),m=a(()=>String(t().metadata?.fenceStart??""));fr(c,{get diagram(){return e(U)},get isStreaming(){return e(ye)},get source(){return e(Ne)},get sourceError(){return e(st)},get viewResetKey(){return e(m)},onBindingClick:Le})}},$$slots:{default:!0}})},d=n=>{const c=a(()=>t().metadata.patchData);{let V=a(()=>[{filePath:e(c).filePath,diff:e(c).diff}]),U=a(()=>e(c).description||e(c).filePath);gr(n,{get patches(){return e(V)},get label(){return e(U)}})}},b=n=>{Xa(n,{get reference(){return t().metadata.referenceData},onOpenFile:ne})},M=n=>{Ya(n,{get command(){return t().metadata.cliData.command}})},I=n=>{Za(n,{get goal(){return t().metadata.agentActionData.goal}})},K=n=>{er(n,{get scripts(){return t().metadata.detectedScriptsData}})},he=n=>{tr(n,{get workspaceId(){return v()},get workspaceIds(){return t().metadata.workspaceCardData.workspaceIds}})},ze=n=>{Jt(n,{canOpenFile:()=>oe(T.state,f()),get target(){return t().metadata.navLinkData.target},get label(){return t().metadata.navLinkData.label},get workspaceId(){return v()}})},Ze=n=>{const c=a(()=>t().metadata.videoData);Lt(n,{get allowFileMedia(){return e(le)},canOpenFile:()=>oe(T.state,f()),get source(){return e(c).source},get name(){return e(c).name},get poster(){return e(c).poster}})},et=n=>{{let c=a(()=>t().content||"");ar(n,{get digest(){return e(c)}})}},tt=n=>{na(n,{kind:"mermaid",rendererOwnsActions:!0,children:(c,V)=>{{let U=a(()=>t().metadata?.rawSource??t().content??""),ye=a(()=>t().metadata?.isStreaming??!1);vr(c,{get code(){return e(U)},get isStreaming(){return e(ye)},showExportButton:!0})}},$$slots:{default:!0}})},at=n=>{rr(n,{get block(){return t()},get role(){return Ke()},get workspaceId(){return v()},get agentId(){return f()},get messageId(){return F()},get contentBlockKey(){return l()}})},rt=n=>{{let c=a(()=>t().content||""),V=a(()=>t().metadata?.language||"plaintext");ra(n,{get code(){return e(c)},get language(){return e(V)}})}},nt=n=>{var c=ut(),V=y(c);{let U=a(()=>t().content||"");Et(V,{get allowFileMedia(){return e(le)},canOpenFile:()=>oe(T.state,f()),get content(){return e(U)},get isStreaming(){return j()},get workspaceId(){return v()},taskBlockRenderMode:"content",chatImageThumbnails:!0,get media(){return i()},onFileClick:(ye,Ne)=>ne({path:ye,...Ne})})}_(c),Z(()=>X(c,"data-assistant-prose",o()?"static-markdown":void 0)),g(n,c)};Y(L,n=>{t().type==="augment_code_snippet"?n(B):t().type==="diff"?n(G,1):t().type==="commit_message"?n(_e,2):t().type==="diagram"?n(h,3):t().type==="patch"&&t().metadata?.patchData?n(d,4):t().type==="reference"&&t().metadata?.referenceData?n(b,5):t().type==="cli"&&t().metadata?.cliData?n(M,6):t().type==="agent_action"&&t().metadata?.agentActionData?n(I,7):t().type==="detected_scripts"&&t().metadata?.detectedScriptsData?n(K,8):t().type==="workspace_card"&&t().metadata?.workspaceCardData?n(he,9):t().type==="nav_link"&&t().metadata?.navLinkData?n(ze,10):t().type==="video"&&t().metadata?.videoData?n(Ze,11):t().type==="digest"?n(et,12):t().type==="mermaid"?n(tt,13):t().type==="html"?n(at,14):t().type==="code"?n(rt,15):n(nt,-1)})}g(r,O)},Ve=(r,t=N,o=N,i=N,l,O,L,B,G,_e)=>{let h=ue(()=>ce(l?.(),!1)),d=ue(()=>ce(O?.(),!1)),b=ue(()=>ce(L?.(),!1)),M=ue(()=>ce(B?.(),void 0)),I=ue(()=>ce(G?.(),o())),K=ue(()=>ce(_e?.(),void 0));const he=a(()=>Ft(t()));var ze=be(),Ze=ge(ze);{var et=m=>{var p=be(),R=ge(p);{var E=q=>{Ua(q,{get agentId(){return f()},get workspaceId(){return v()},get messageId(){return F()},get proposal(){return e(he)}})};Y(R,q=>{e(he)&&f()&&v()&&F()&&q(E)})}g(m,p)},tt=m=>{var p=ct(),R=y(p);Jt(R,{canOpenFile:()=>oe(T.state,f()),get target(){return t().target},get label(){return t().label},get workspaceId(){return v()}}),_(p),lt(1,p,()=>dt,()=>({axis:"y",distance:10,tier:"moderate"})),g(m,p)},at=a(()=>ft(t())),rt=m=>{const p=a(()=>bt(t())),R=a(()=>e(de).get(o())||[]);var E=ct(),q=y(E);{var $=J=>{var ee=Cr(),Pe=xe(ee,!0);Z(()=>{Ae(ee,1,`streaming-text whitespace-pre-wrap ${(e(h)?"":Wt)??""}`),X(ee,"data-assistant-prose",e(h)?void 0:"static-streaming"),Ie(Pe,e(p))}),g(J,ee)},z=J=>{var ee=be(),Pe=ge(ee);sa(Pe,19,()=>e(R),(Q,je)=>`${o()}-parsed-${je}`,(Q,je)=>{Te(Q,()=>e(je),()=>!e(h),()=>t().media,()=>t().id??o())}),g(J,ee)},we=J=>{const ee=a(()=>wt(e(p)).cleanedContent);var Pe=be(),Q=ge(Pe);{var je=ot=>{var He=ut(),_t=y(He);Et(_t,{get allowFileMedia(){return e(le)},canOpenFile:()=>oe(T.state,f()),get content(){return e(ee)},get isStreaming(){return j()},get workspaceId(){return v()},taskBlockRenderMode:"content",chatImageThumbnails:!0,get media(){return t().media},onFileClick:(A,ht)=>ne({path:A,...ht})}),_(He),Z(()=>{Ae(He,1,yt(e(h)?void 0:Wt)),X(He,"data-assistant-prose",e(h)?void 0:"static-fallback")}),g(ot,He)},kt=a(()=>e(ee).trim());Y(Q,ot=>{e(kt)&&ot(je)})}g(J,Pe)};Y(q,J=>{j()?J($):e(R).length>0?J(z,1):J(we,-1)})}_(E),lt(1,E,()=>dt,()=>({axis:"y",distance:10,tier:"moderate"})),g(m,E)},nt=a(()=>t().type==="text"&&bt(t())),n=m=>{var p=ct(),R=y(p);{let E=a(()=>t().dataTruncated===!0),q=a(()=>t().dataIsThumbnail===!0),$=a(()=>s(t().id)),z=a(()=>f()&&F()&&t().id?()=>xt(t().id):void 0),we=a(()=>t().servedTruncation!==void 0);Qt(R,{get data(){return t().data},get mimeType(){return t().mimeType},get width(){return t().width},get height(){return t().height},get dataTruncated(){return e(E)},get dataIsThumbnail(){return e(q)},get hydrationLoading(){return e($)},get onHydrate(){return e(z)},get tooLarge(){return e(we)}})}_(p),lt(1,p,()=>dt,()=>({axis:"y",distance:10,tier:"moderate"})),g(m,p)},c=m=>{{let p=a(()=>typeof t().metadata?.poster=="string"?t().metadata.poster:void 0);Lt(m,{get allowFileMedia(){return e(le)},canOpenFile:()=>oe(T.state,f()),get source(){return t().source},get name(){return t().fileName},get poster(){return e(p)}})}},V=m=>{const p=a(t),R=a(()=>Dt(e(Ye),e(p))),E=a(()=>e(x).get(e(p).id)||"completed"),q=a(()=>Yt(e(R)));var $=ct(),z=y($);{let we=a(()=>ke.state(e(I),()=>({})));Xt(z,{get saved(){return e(we)},get toolUse(){return e(p)},get toolState(){return e(E)},get result(){return e(q)},get resultBlock(){return e(R)},get workspaceId(){return v()},get adjacentOperationalRow(){return e(d)},get agentId(){return f()},get messageId(){return F()}})}_($),lt(1,$,()=>dt,()=>({axis:"y",distance:10,tier:"moderate"})),g(m,$)},U=m=>{const p=a(()=>Va(t()));var R=Tr(),E=y(R),q=y(E),$=xe(q,!0);_(E);var z=Re(E,2),we=y(z);{var J=Q=>{ra(Q,{get code(){return e(p).payload}})},ee=Q=>{{const je=(He,_t=N)=>{const A=a(()=>_t().block);var ht=be(),da=ge(ht);{var ua=te=>{var se=ct(),Pt=y(se);Et(Pt,{get allowFileMedia(){return e(le)},canOpenFile:()=>oe(T.state,f()),get content(){return e(A).text},get workspaceId(){return v()},taskBlockRenderMode:"content",chatImageThumbnails:!0,onFileClick:(Rt,At)=>ne({path:Rt,...At})}),_(se),g(te,se)},ca=te=>{{let se=a(()=>H.chat_messageContent_toolResultImage_alt());Qt(te,{get data(){return e(A).data},get mimeType(){return e(A).mimeType},get alt(){return e(se)}})}},ga=te=>{{let se=a(()=>typeof e(A).metadata?.poster=="string"?e(A).metadata.poster:void 0);Lt(te,{get allowFileMedia(){return e(le)},canOpenFile:()=>oe(T.state,f()),get source(){return e(A).source},get name(){return e(A).fileName},get poster(){return e(se)}})}},ma=te=>{const se=a(()=>e(A)),Pt=a(()=>Dt(e(Ye),e(se))),Rt=a(()=>e(x).get(e(se).id)||"completed"),At=a(()=>Yt(e(Pt)));{let pa=a(()=>ke.state(_t().key,()=>({})));Xt(te,{get agentId(){return f()},get saved(){return e(pa)},get toolUse(){return e(se)},get toolState(){return e(Rt)},get result(){return e(At)},get workspaceId(){return v()}})}};Y(da,te=>{e(A).type==="text"&&e(A).text?te(ua):e(A).type==="image"&&e(A).data&&e(A).mimeType?te(ca,1):e(A).type==="video"&&e(A).source?te(ga,2):e(A).type==="tool_use"&&te(ma,3)})}g(He,ht)};let kt=a(()=>`${e(pe)}:result:${e(I)}`),ot=a(()=>e(Ue)(e(p).payload,`${e(pe)}:result:${e(I)}`,()=>!0));Mt(Q,{get scope(){return e(kt)},get items(){return e(ot)},row:je,$$slots:{row:!0}})}},Pe=a(()=>Array.isArray(e(p).payload));Y(we,Q=>{typeof e(p).payload=="string"?Q(J):e(Pe)&&Q(ee,1)})}_(z),_(R),Z(Q=>{Ie($,Q),X(z,"data-chat-search-block-path",e(M))},[()=>H.chat_messageContent_toolResult_label()]),lt(1,R,()=>dt,()=>({axis:"y",distance:10,tier:"moderate"})),g(m,R)},ye=a(()=>t().type==="tool_result"&&$t(e(Fe),t())),Ne=m=>{Ba(m,{get entries(){return t().entries}})},st=m=>{var p=be(),R=ge(p);{var E=$=>{{let z=a(()=>aa(t())||H.chat_shared_processing_fallback());qa($,{get item(){return e(K)},get allowFileMedia(){return e(le)},canOpenFile:()=>oe(T.state,f()),get content(){return e(z)},get workspaceId(){return v()},get adjacentOperationalRow(){return e(d)}})}},q=$=>{{let z=a(()=>ke.state(e(I),()=>({}))),we=a(()=>aa(t())||H.chat_shared_processing_fallback()),J=a(()=>j()&&!e(h)&&i()===e(w).length-1);za($,{get searchPath(){return e(M)},get saved(){return e(z)},get allowFileMedia(){return e(le)},canOpenFile:()=>oe(T.state,f()),get content(){return e(we)},get isStreaming(){return e(J)},get workspaceId(){return v()},get adjacentOperationalRow(){return e(d)}})}};Y(R,$=>{e(b)?$(E):$(q,-1)})}g(m,p)};Y(Ze,m=>{e(he)!==null?m(et):e(at)?m(tt,1):e(nt)?m(rt,2):t().type==="image"&&(t().data||t().dataTruncated)&&t().mimeType?m(n,3):t().type==="video"&&t().source?m(c,4):t().type==="tool_use"?m(V,5):e(ye)?m(U,6):t().type==="plan"&&t().entries?m(Ne,7):t().type==="thinking"&&m(st,8)})}g(r,ze)},gt=(r,t=N,o=N,i=N,l=N,O,L=N)=>{let B=ue(()=>ce(O?.(),!0));const G=a(()=>ja(e(w),o(),l(),fe,re)),_e=a(()=>Ha(t(),l())),h=a(()=>Na(t(),l(),re));var d=kr();let b;var M=y(d);{let I=a(()=>L().fragment>0||Ht(t().children,l(),re)),K=a(()=>it(o(),l()));Ve(M,i,()=>`${o()}-${l()}`,o,()=>e(B),()=>e(I),()=>t().isReasoningPhase,()=>e(K),()=>L().key,()=>L().historyItem)}_(d),Z((I,K,he)=>{Ae(d,1,I),X(d,"data-message-content-block",i().type),X(d,"data-chat-search-block-path",K),X(d,"data-reasoning-section-start",e(_e)||void 0),X(d,"data-reasoning-section-boundary",e(h)||void 0),b=Sa(d,"",b,{"padding-left":he})},[()=>`${L().fragment>0?"":e(h)?_r:Nt(e(G),e(G).length-1,void 0,t().isReasoningPhase)} ${e(B)?jt(i())?hr:yr:""}`,()=>i().type==="tool_result"?void 0:it(o(),l()),()=>e(B)&&!jt(i())?"calc(var(--operational-row-inline-padding) + var(--operational-leading-slot-size) + var(--operational-leading-gap))":void 0]),g(r,d)},Qe=(r,t=N,o=N)=>{const i=a(()=>t().block),l=a(()=>t().blockIndex);var O=be(),L=ge(O);{var B=h=>{const d=a(()=>e(i));var b=ut(),M=y(b);{const I=at=>{{let rt=a(()=>`${e(pe)}:group:${t().key}`),nt=a(()=>e(Ue)(e(d).children,e(pe),n=>n.type==="content_group"||re(n),e(d),e(l)));Mt(at,{get scope(){return e(rt)},get items(){return e(nt)},get row(){return Qe}})}};let K=a(()=>ke.summaryHeight(t().key)),he=a(()=>ke.state(t().key,()=>({}))),ze=a(()=>e(l)===e(Ct)),Ze=a(()=>e(d).children.filter(re)),et=a(()=>it(e(l))),tt=a(()=>Ht(e(w),e(l),fe));Ma(M,{get headerAdmitted(){return o()},get headerHeight(){return e(K)},get saved(){return e(he)},get name(){return e(d).name},get isStreaming(){return e(d).isStreaming},get isTerminal(){return e(ze)},get isLastConversationMessage(){return De()},get blocks(){return e(Ze)},get searchPath(){return e(et)},get reasoningPhase(){return e(d).isReasoningPhase},get collapsedRun(){return e(d).collapsedRun},get adjacentOperationalRow(){return e(tt)},children:I,$$slots:{default:!0}})}_(b),Z(I=>{Ae(b,1,I),X(b,"data-operational-cluster-row",e(i).type),X(b,"data-message-content-block",e(i).type)},[()=>yt(Nt(e(w),e(l),fe))]),g(h,b)},G=h=>{gt(h,()=>t().group,()=>e(l),()=>e(i),()=>t().childIndex,()=>t().nested,t)},_e=h=>{var d=ut(),b=y(d);{let M=a(()=>String(e(l))),I=a(()=>t().fragment>0||Ht(e(w),e(l),fe)),K=a(()=>it(e(l)));Ve(b,()=>e(i),()=>e(M),()=>e(l),()=>!1,()=>e(I),()=>!1,()=>e(K),()=>t().key,()=>t().historyItem)}_(d),Z((M,I,K)=>{Ae(d,1,M),X(d,"data-operational-cluster-row",I),X(d,"data-message-content-block",e(i).type),X(d,"data-chat-search-block-path",K)},[()=>yt(t().fragment>0?"":Nt(e(w),e(l),fe)),()=>jt(e(i))?e(i).type:void 0,()=>e(i).type==="text"||e(i).type==="thinking"?it(e(l)):void 0]),g(h,d)};Y(L,h=>{e(i).type==="content_group"?h(B):t().group&&t().childIndex!==void 0?h(G,1):h(_e,-1)})}g(r,O)},Xe=mr("MessageContent");let Ge=We(D,"content",7),j=We(D,"isStreaming",7,!1),v=We(D,"workspaceId",7),Ke=We(D,"role",7,"assistant"),f=We(D,"agentId",7),F=We(D,"messageId",7),De=We(D,"isLastConversationMessage",7,!1);const mt=a(()=>Bt(f()??"")),le=a(()=>!f()||!!W()&&!or(W())),ke=Oa(),pe=a(()=>F()??k),Ue=a(()=>ke.state(`projection:${e(pe)}`,()=>({project:$a()})).project),St=Ca(f()??""),pt=a(()=>Wa(Ge()||[],F(),ie()));function xt(r){!f()||!F()||!r||T.dispatch(ir(f(),F(),r))}function s(r){return r?Ga(ie(),F(),[r]):!1}const u=a(()=>Fa(e(pt),{role:Ke(),workspaceId:v(),isStreaming:j(),reasoningAsText:La(W())})),S=cr(),w=a(()=>Da(e(u),j(),Oe()));function re(r){return r.type!=="tool_result"||$t(e(Fe),r)}const Fe=a(()=>Ea(e(w))),Ye=a(()=>e(Fe).resultsMap),x=a(()=>{const r=new Map;for(const t of e(u))if(t.type==="tool_use"){const o=t,i=Dt(e(Ye),o);r.set(o.id,Ka(o,i,j()))}return r}),P=a(()=>It(e(pt))),de=a(()=>{if(j())return new Map;const r=new Map;return e(w).forEach((t,o)=>{if(t.type==="text"){const i=bt(t);if(i){const{cleanedContent:l}=wt(i),O=Zt(l,v(),{isStreaming:j()});r.set(String(o),ea(ta(O),e(P)))}}else t.type==="content_group"&&t.children.forEach((l,O)=>{const L=l.type==="text"?bt(l):"";if(L){const{cleanedContent:B}=wt(L),G=Zt(B,v(),{isStreaming:j()});r.set(`${o}-${O}`,ea(ta(G),e(P)))}})}),r});function ne(r){Xe.info("Opening file from message content",r),!(!v()||!oe(T.state,f()))&&T.dispatch(lr(v(),r.path,{line:r.line,openInAdjacentPanel:r.openInAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}function Le(r,t){Xe.info("Diagram binding clicked",t);const o=r.metaKey||r.ctrlKey,l=r.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;if(t.type==="file")ne({path:t.target,openInAdjacentPanel:o,sourcePanelId:l});else if(t.type==="note"){if(!v())return;T.dispatch(dr(v(),t.target,{openInAdjacentPanel:o,sourcePanelId:l}))}}function ft(r){const t=r;return(t.kind==="nav-link"||t.type==="nav-link")&&typeof t.target=="string"}function vt(r,t){const o=Ft(r);o?.kind==="bulk-op"&&(o.payload.operation!=="workspace.bulkArchive"&&o.payload.operation!=="workspace.bulkDelete"||o.payload.ids.forEach(i=>t.add(i)))}function It(r){const t=new Set;return r.forEach(o=>{o.type==="content_group"?o.children.forEach(i=>vt(i,t)):vt(o,t)}),t}function fe(r){if(r.type==="content_group")return!0;const t=r;if(ft(t))return!0;if(t.type==="text"){const o=t.text||t.content||"";return wt(o).cleanedContent.trim().length>0}return t.type==="image"?!!((t.data||t.dataTruncated)&&t.mimeType):t.type==="video"?!!t.source:Ft(t)?!0:t.type==="tool_result"?$t(e(Fe),t):t.type==="tool_use"||t.type==="thinking"}const Ct=a(()=>{for(let r=e(w).length-1;r>=0;r--)if(fe(e(w)[r]))return r;return-1}),ve=a(()=>e(Ue)(e(w),e(pe),re));var qe={get content(){return Ge()},set content(r){Ge(r),Be()},get isStreaming(){return j()},set isStreaming(r=!1){j(r),Be()},get workspaceId(){return v()},set workspaceId(r){v(r),Be()},get role(){return Ke()},set role(r="assistant"){Ke(r),Be()},get agentId(){return f()},set agentId(r){f(r),Be()},get messageId(){return F()},set messageId(r){F(r),Be()},get isLastConversationMessage(){return De()},set isLastConversationMessage(r=!1){De(r),Be()},$set:Gt,$on:(r,t)=>Kt(D,r,t)},Ee=Pr(),Tt=y(Ee);Mt(Tt,{get items(){return e(ve)},get scope(){return e(pe)},get row(){return Qe}}),_(Ee),g(Ce,Ee);var la=qt(qe);return Me(),la}var Rr=ae('<div class="flex-1 flex items-center justify-center text-subtle"> </div>'),Ar=ae('<span class="text-xs text-subtle"> </span>'),Or=ae('<div><div class="flex justify-between items-center"><span> </span> <!></div> <div class="leading-relaxed text-foreground message-content-wrapper"><!></div></div>'),Mr=ba('<svg class="text-primary-ink" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 14l-7 7m0 0l-7-7m7 7V3"></path></svg>'),$r=ae('<div class="flex-1 overflow-y-auto p-6 flex flex-col gap-6 scrollbar-thin scrollbar-thumb-muted scrollbar-track-muted/20 will-change-scroll scroll-container svelte-d9gelb"></div> <!> <div class="p-4 border-t border-border bg-muted/30"><!></div>',1),Dr=ae('<div class="h-screen flex flex-col p-8 max-w-screen-xl mx-auto"><div class="flex justify-between items-center mb-8 pb-4 border-b border-border"><h1 class="text-2xl font-semibold text-foreground"> </h1> <span class="text-sm text-subtle font-mono"> </span></div> <div class="flex-1 flex flex-col bg-card border border-border rounded-lg overflow-hidden"><!></div></div>');function ia(Ce,D){if(new.target)return Vt({component:ia,...Ce});Ut(D,!0);let k=Se(""),W=Se(null),ie=Se(ya([])),Oe=Se(""),me=Se(!1),Me=null,Te=Se(!1),$e=Se(null),Ve=Se(!0),gt=Se(!1);function Qe(s){C(W,s,!0),C(ie,s.messages||[],!0),C(Te,!!s.isStreaming)}function Xe(s=e(k)){return(e(W)?.id===s?e(W):Bt.select(T.state,s))?.workspaceId??Ta.select(T.state,s)}function Ge(s=e(k)){const u=Xe(s);return u?ka.select(T.state,u):void 0}zt(()=>{const s=Pa.params.id;s&&s!==e(k)&&(C(k,s,!0),Me?Me.then(()=>{Me=j()}):Me=j())}),zt(()=>{const s=e(k);if(!s)return;const u=wa(()=>wr(s,S=>{e(k)!==s||!S||Qe(S)},Xe(s)));return()=>{u()}});async function j(){const s=e(k);if(!(!s||e(me))){Je.info("Loading agent:",s),C(me,!0);try{let u=Bt.select(T.state,s);if(!u){const S=Ge(s);S&&(Je.info("Session not in memory, restoring from disk",{agentId:s,workspaceId:S.id}),u=await T.dispatch(ur(S.id,s)))}if(e(k)!==s)return;u?(Je.info("Loaded session from agent service",{agentId:s,turnNumber:u.currentTurnNumber,messageCount:u.messages?.length}),Qe(u)):(C(W,{id:s,name:H.chat_agentThread_session_fallback(),messages:[]},!0),C(ie,[],!0),C(Te,!1))}catch(u){if(Aa(u)){Je.warn("Agent no longer exists on daemon; navigating home",{agentId:s}),e(k)===s&&await Ra("/");return}if(Je.error("Failed to load agent:",u),e(k)!==s)return;C(W,{id:s,name:H.chat_agentThread_session_fallback(),messages:[]},!0),C(ie,[],!0),C(Te,!1)}finally{C(me,!1),Me=null}}}async function v(s){const u=s.trim();if(!u)return;const S=e(k);C(Oe,""),C(Te,!0);try{const w=Ge(S);if(!w)throw new Error("No owning workspace");await br(S,u,w)}catch(w){if(Je.error("Failed to send message:",w),e(k)!==S)return;const re=H.chat_agentThread_error_label({error:String(w)});e(ie).push({role:"assistant",content:re,contentBlocks:[{type:"text",text:re}],timestamp:new Date().toISOString()}),C(Te,!1)}}function Ke(s){return sr(s)}var f={$set:Gt,$on:(s,u)=>Kt(D,s,u)},F=Dr(),De=y(F),mt=y(De),le=xe(mt,!0),ke=Re(mt,2),pe=xe(ke,!0);_(De);var Ue=Re(De,2),St=y(Ue);{var pt=s=>{var u=Rr(),S=xe(u,!0);Z(w=>Ie(S,w),[()=>H.chat_agentThread_loading_label()]),g(s,u)},xt=s=>{var u=$r(),S=ge(u);sa(S,21,()=>e(ie),x=>x.id||x.timestamp,(x,P)=>{var de=Or(),ne=y(de),Le=y(ne),ft=xe(Le,!0),vt=Re(Le,2);{var It=ve=>{var qe=Ar(),Ee=xe(qe,!0);Z(Tt=>Ie(Ee,Tt),[()=>Ke(e(P).timestamp)]),g(ve,qe)};Y(vt,ve=>{e(P).timestamp&&ve(It)})}_(ne);var fe=Re(ne,2),Ct=y(fe);{let ve=a(()=>e(P).contentBlocks||[]),qe=a(()=>!!e(P).isStreaming),Ee=a(()=>e(W)?.workspaceId?String(e(W).workspaceId):void 0);oa(Ct,{get content(){return e(ve)},get isStreaming(){return e(qe)},get role(){return e(P).role},get workspaceId(){return e(Ee)},get agentId(){return e(k)},get messageId(){return e(P).id}})}_(fe),_(de),Z(ve=>{Ae(de,1,`flex flex-col gap-2 message-container ${e(P).isStreaming?"streaming-message":""}`,"svelte-d9gelb"),Ae(Le,1,`font-semibold text-sm ${e(P).role==="user"?"text-primary-ink":"text-success"}`),Ie(ft,ve)},[()=>e(P).role==="user"?H.chat_agentThread_you_label():H.chat_agentThread_assistant_label()]),g(x,de)}),_(S),Ia(S,x=>C($e,x),()=>e($e)),xa(S,(x,P)=>Sr?.(x,P),()=>({follow:e(Ve),threshold:150,onFollowChange:x=>{C(Ve,x,!0),C(gt,!x)}}));var w=Re(S,2);{var re=x=>{{let P=a(()=>H.chat_agentThread_scrollToBottom_ariaLabel());pr(x,{onclick:()=>{e($e)&&(C(Ve,!0),xr(e($e)))},size:"icon-lg",iconOnly:!0,class:"absolute bottom-24 right-6 rounded-full bg-primary/10 hover:bg-primary/20 border border-primary/20 transition-all duration-spring-moderate ease-spring-moderate motion-reduce:transition-none shadow-lg",get"aria-label"(){return e(P)},children:(de,ne)=>{var Le=Mr();g(de,Le)},$$slots:{default:!0}})}};Y(w,x=>{e(gt)&&x(re)})}var Fe=Re(w,2),Ye=y(Fe);{let x=a(()=>H.chat_agentThread_message_placeholder()),P=a(()=>e(me)||e(Te));nr(Ye,{get placeholder(){return e(x)},onsubmit:v,get disabled(){return e(P)},workspace:null,get value(){return e(Oe)},set value(de){C(Oe,de,!0)}})}_(Fe),g(s,u)};Y(St,s=>{e(me)?s(pt):s(xt,-1)})}return _(Ue),_(F),Z((s,u)=>{Ie(le,s),Ie(pe,u)},[()=>e(W)?.agentInfo?.name||H.chat_agentThread_name_fallback(),()=>H.chat_agentThread_id_label({id:e(k)})]),g(Ce,F),qt(f)}var Fr=new Set(["$$slots","$$events","$$legacy"]);function Lr(Ce,D){if(new.target)return Vt({component:Lr,...Ce});Ut(D,!0);let k=_a(D,Fr);var W={$set:Gt,$on:(ie,Oe)=>Kt(D,ie,Oe)};return ia(Ce,va(()=>k)),qt(W)}export{Lr as component};
|