@intent-hq/web 2.385.1 → 2.386.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/assets/0.DSZNT9Vm.css +1 -0
- package/web/app/immutable/chunks/{CE70-gZI.js → -8AxW0IA.js} +3 -3
- package/web/app/immutable/chunks/{DOkArUrJ.js → -VR23WhZ.js} +1 -1
- package/web/app/immutable/chunks/{U7dpdlAf.js → 0b3rkAam.js} +1 -1
- package/web/app/immutable/chunks/{sSXTMg2P.js → 0y7aytZM.js} +1 -1
- package/web/app/immutable/chunks/{B6d1Nolc.js → 21kfe-mS.js} +1 -1
- package/web/app/immutable/chunks/{iPHmrqbo.js → 24f6N9l0.js} +1 -1
- package/web/app/immutable/chunks/{DcOkWaeN.js → 2aKRVAvL.js} +1 -1
- package/web/app/immutable/chunks/{e2ymG0j7.js → 3IpMTtMx.js} +1 -1
- package/web/app/immutable/chunks/{SbTG0nwQ.js → 3Kr2ijlK.js} +1 -1
- package/web/app/immutable/chunks/{CD-M_2xD.js → 3LCOBHm6.js} +1 -1
- package/web/app/immutable/chunks/{CTW83wJs.js → 3Qz3qAhk.js} +1 -1
- package/web/app/immutable/chunks/{KzySRhDw.js → 6SOEgr71.js} +3 -3
- package/web/app/immutable/chunks/{gU2qspu9.js → 77KTvr2w.js} +1 -1
- package/web/app/immutable/chunks/{DVwMeV9X.js → 7EQMYysM.js} +1 -1
- package/web/app/immutable/chunks/{DlU1rxYV.js → 7i0OJtNQ.js} +1 -1
- package/web/app/immutable/chunks/{B6FGs8l2.js → 8jO_MBKF.js} +1 -1
- package/web/app/immutable/chunks/{C50zlWbZ.js → 9AJtSub0.js} +1 -1
- package/web/app/immutable/chunks/{CUsqN2sK.js → 9R_52XLX.js} +1 -1
- package/web/app/immutable/chunks/{DGMrUmNq.js → A3z9XWMi.js} +1 -1
- package/web/app/immutable/chunks/{Dqd75Edx.js → B-4i031c.js} +1 -1
- package/web/app/immutable/chunks/{D7xjMCds.js → B-MjuJTx.js} +2 -2
- package/web/app/immutable/chunks/{BW1iql_y.js → B0kNPCxU.js} +1 -1
- package/web/app/immutable/chunks/{CYSndAne.js → B18ybwa0.js} +1 -1
- package/web/app/immutable/chunks/{Cj1KG0_l.js → B1xM1EBM.js} +1 -1
- package/web/app/immutable/chunks/B2LBPAIA.js +1 -0
- package/web/app/immutable/chunks/{DuAAGnM9.js → B2OS2WTh.js} +1 -1
- package/web/app/immutable/chunks/{BjlMkd10.js → B3JbrKDZ.js} +1 -1
- package/web/app/immutable/chunks/{C2F2Vd1P.js → B3OJ_2Dd.js} +1 -1
- package/web/app/immutable/chunks/{CuljOS_X.js → B4F7GG5Q.js} +1 -1
- package/web/app/immutable/chunks/{CrsbEWnE.js → B8foSZsl.js} +1 -1
- package/web/app/immutable/chunks/{deEweluJ.js → B9kUdNbG.js} +1 -1
- package/web/app/immutable/chunks/{D2hNxvgD.js → BB-hf8IY.js} +4 -4
- package/web/app/immutable/chunks/{CX4-Z2NI.js → BCFB88Wl.js} +1 -1
- package/web/app/immutable/chunks/{BVqF0sgN.js → BCVhFPNJ.js} +1 -1
- package/web/app/immutable/chunks/{CrbAS4DB.js → BCiWc-GH.js} +1 -1
- package/web/app/immutable/chunks/{BD9db4FR.js → BCuI_zgX.js} +1 -1
- package/web/app/immutable/chunks/{DVUFgbJK.js → BD7jFvJp.js} +1 -1
- package/web/app/immutable/chunks/{DxAjMnFs.js → BDbFQqI8.js} +3 -3
- package/web/app/immutable/chunks/{Che-KvdU.js → BE08e7Se.js} +1 -1
- package/web/app/immutable/chunks/{HU1Ksz8U.js → BGo6FK-0.js} +1 -1
- package/web/app/immutable/chunks/{DTwG0V2f.js → BHJpo3VA.js} +1 -1
- package/web/app/immutable/chunks/{DG0pBglL.js → BIcof04i.js} +1 -1
- package/web/app/immutable/chunks/{Clo7aK1n.js → BIkt0YE0.js} +1 -1
- package/web/app/immutable/chunks/{ada9rZfE.js → BKFxm3WK.js} +1 -1
- package/web/app/immutable/chunks/{94vL4WlW.js → BNFvOw36.js} +1 -1
- package/web/app/immutable/chunks/{DzG7lmwB.js → BNJkKc31.js} +1 -1
- package/web/app/immutable/chunks/{Cq_jjcoF.js → BOnTc4ny.js} +1 -1
- package/web/app/immutable/chunks/{BGReMCaT.js → BPDyvu9A.js} +1 -1
- package/web/app/immutable/chunks/{BWzMAxc1.js → BPpACIC2.js} +1 -1
- package/web/app/immutable/chunks/{zB9UbdEg.js → BRPJcG-m.js} +1 -1
- package/web/app/immutable/chunks/{C63WwVct.js → BRdQpeCl.js} +1 -1
- package/web/app/immutable/chunks/{DxC0zTSc.js → BUTuN2nE.js} +1 -1
- package/web/app/immutable/chunks/{CWOQ_pUA.js → BVcaPXq9.js} +1 -1
- package/web/app/immutable/chunks/{CoJyxFcH.js → BVyOECUU.js} +1 -1
- package/web/app/immutable/chunks/{DiURwJNX.js → BW2en5Js.js} +1 -1
- package/web/app/immutable/chunks/{BO8Bp7Ht.js → BWI85bGY.js} +1 -1
- package/web/app/immutable/chunks/{rXKOJqUt.js → BXHbm15d.js} +1 -1
- package/web/app/immutable/chunks/{CQMFoUkp.js → BYJh9adv.js} +1 -1
- package/web/app/immutable/chunks/{DW25Ls6A.js → BYYtBM5R.js} +1 -1
- package/web/app/immutable/chunks/{l1lBFBJz.js → Bax102l4.js} +1 -1
- package/web/app/immutable/chunks/{De0kCZ4v.js → Bb-hI5du.js} +2 -2
- package/web/app/immutable/chunks/{THqyVjkf.js → Bb8ARnaK.js} +1 -1
- package/web/app/immutable/chunks/{CJB-ebPL.js → BbWnSSTS.js} +1 -1
- package/web/app/immutable/chunks/{B0qb2Ymj.js → BbfEcBPg.js} +1 -1
- package/web/app/immutable/chunks/{CNSshwg_.js → BcYVm7io.js} +1 -1
- package/web/app/immutable/chunks/{VvLcPf2a.js → BdY8OnZP.js} +1 -1
- package/web/app/immutable/chunks/{C8qAflad.js → BdlYeRHB.js} +2 -2
- package/web/app/immutable/chunks/{CPO5_F83.js → BeUuk8D1.js} +1 -1
- package/web/app/immutable/chunks/{Da-Blgd9.js → Bf_4e4N2.js} +1 -1
- package/web/app/immutable/chunks/{BVkAOJlr.js → BhYFIrRM.js} +1 -1
- package/web/app/immutable/chunks/{CqVGtsXz.js → BhtJVlVx.js} +1 -1
- package/web/app/immutable/chunks/{Cv0wEzuo.js → Bj4j6g-o.js} +1 -1
- package/web/app/immutable/chunks/{BJO0de_7.js → BjdIR-od.js} +1 -1
- package/web/app/immutable/chunks/{CdSTecgc.js → Bk14_fvY.js} +1 -1
- package/web/app/immutable/chunks/{Bc1vJq_Z.js → BlRGZv8u.js} +1 -1
- package/web/app/immutable/chunks/{Bi_Yd73A.js → BmLlDCoW.js} +1 -1
- package/web/app/immutable/chunks/{Ex_x2wO5.js → Bn4F-JIh.js} +1 -1
- package/web/app/immutable/chunks/{Bu-RLSv9.js → BoEcbLG-.js} +1 -1
- package/web/app/immutable/chunks/{CC-IHSah.js → BolJpU8l.js} +4 -4
- package/web/app/immutable/chunks/{BwPwF85e.js → BpLxj3s3.js} +1 -1
- package/web/app/immutable/chunks/{D7Dfbf5g.js → BqCTtUhB.js} +1 -1
- package/web/app/immutable/chunks/{fVXs4sxg.js → BqrahRdk.js} +4 -4
- package/web/app/immutable/chunks/{Dval4sTX.js → BrDfJqC4.js} +1 -1
- package/web/app/immutable/chunks/{DiMo2JnB.js → BtMIAxno.js} +1 -1
- package/web/app/immutable/chunks/{Cy3lhXYa.js → BthojcF8.js} +6 -6
- package/web/app/immutable/chunks/{DtqPBHQj.js → Btst3lgy.js} +1 -1
- package/web/app/immutable/chunks/{D-rRuAXZ.js → Bu3PKqut.js} +1 -1
- package/web/app/immutable/chunks/{pomj9evG.js → Bv_0mmoe.js} +1 -1
- package/web/app/immutable/chunks/{By4iSN8L.js → BwVjpKmH.js} +1 -1
- package/web/app/immutable/chunks/{LI9J8Eor.js → BweHPPaS.js} +2 -2
- package/web/app/immutable/chunks/{418Agcsp.js → Bx7gCv2M.js} +1 -1
- package/web/app/immutable/chunks/{B8QvP_8b.js → BxU747mj.js} +1 -1
- package/web/app/immutable/chunks/{DhXcDqZX.js → ByZL9dMf.js} +1 -1
- package/web/app/immutable/chunks/{-9EwpXCb.js → C1La-Fme.js} +1 -1
- package/web/app/immutable/chunks/{CletI6Pa.js → C21Z9LLF.js} +1 -1
- package/web/app/immutable/chunks/{BgDnzAo4.js → C4M_mNFP.js} +1 -1
- package/web/app/immutable/chunks/{BXJzIaQM.js → C6Wi6O6n.js} +1 -1
- package/web/app/immutable/chunks/{L_sfch_N.js → C6afU4he.js} +1 -1
- package/web/app/immutable/chunks/{DMe_MB5T.js → C6rz0msZ.js} +1 -1
- package/web/app/immutable/chunks/{CPI5xBWX.js → C8TrySMt.js} +1 -1
- package/web/app/immutable/chunks/{DI71nFp4.js → C9ij7Z2h.js} +1 -1
- package/web/app/immutable/chunks/{D5Pfy-wQ.js → CB8gRmKb.js} +1 -1
- package/web/app/immutable/chunks/{BVl79jmM.js → CDxGu9F5.js} +1 -1
- package/web/app/immutable/chunks/{B3SHGkI_.js → CDxV78M0.js} +1 -1
- package/web/app/immutable/chunks/{DN-DN78v.js → CFB2mNds.js} +2 -2
- package/web/app/immutable/chunks/{CN-EAu8o.js → CF_a5Llj.js} +1 -1
- package/web/app/immutable/chunks/{OGqbAD_O.js → CFdI48b2.js} +1 -1
- package/web/app/immutable/chunks/{BQvwLP7I.js → CGHwi-2H.js} +1 -1
- package/web/app/immutable/chunks/{CI0C7_h-.js → CGUVvS8r.js} +1 -1
- package/web/app/immutable/chunks/CH-Qi35K.js +1 -0
- package/web/app/immutable/chunks/{BPuz5cN_.js → CIKXOyvw.js} +2 -2
- package/web/app/immutable/chunks/{4g_iHoQm.js → CIoJPvjg.js} +1 -1
- package/web/app/immutable/chunks/{qO0mYaJv.js → CJEwuNO9.js} +1 -1
- package/web/app/immutable/chunks/{Cy9hcA7q.js → CJke1tnU.js} +1 -1
- package/web/app/immutable/chunks/{XEsFBJqZ.js → CLqqc_hU.js} +1 -1
- package/web/app/immutable/chunks/{BTEoQf52.js → CM9GoLV5.js} +1 -1
- package/web/app/immutable/chunks/{C9ew0Hx2.js → COBhx_l-.js} +1 -1
- package/web/app/immutable/chunks/{DTMxJ5IC.js → COS4Sgoi.js} +2 -2
- package/web/app/immutable/chunks/{jH2J-9un.js → COSIRxZC.js} +1 -1
- package/web/app/immutable/chunks/{C6TTEdST.js → COlfJVPs.js} +4 -4
- package/web/app/immutable/chunks/{A0KsbysW.js → COsxNPUV.js} +1 -1
- package/web/app/immutable/chunks/{QRUY44Ff.js → CPWMushE.js} +1 -1
- package/web/app/immutable/chunks/{tLFaYuVN.js → CQ5BHnSj.js} +1 -1
- package/web/app/immutable/chunks/{B_75gRww.js → CRUcTVFP.js} +1 -1
- package/web/app/immutable/chunks/{C9p4fddz.js → CSb1CnpN.js} +1 -1
- package/web/app/immutable/chunks/{CzDPvHAo.js → CTTICX_5.js} +1 -1
- package/web/app/immutable/chunks/{jBG7W4tL.js → CTqRHXfu.js} +1 -1
- package/web/app/immutable/chunks/{h8JtxU_T.js → CUA9hM4m.js} +1 -1
- package/web/app/immutable/chunks/{Q2C1NT93.js → CUeOEnqq.js} +1 -1
- package/web/app/immutable/chunks/{D-KE4WZ3.js → CW979n9w.js} +1 -1
- package/web/app/immutable/chunks/{3xVgojWv.js → CY0EK8Cm.js} +3 -3
- package/web/app/immutable/chunks/{C1AUaRa8.js → CYq58ltZ.js} +1 -1
- package/web/app/immutable/chunks/{LQRHF1eM.js → CZ5zON0R.js} +1 -1
- package/web/app/immutable/chunks/{DQT1hnTe.js → C_wfHKmM.js} +1 -1
- package/web/app/immutable/chunks/{Cx0QXTIW.js → CaHWSiOY.js} +1 -1
- package/web/app/immutable/chunks/{iCWz6IE9.js → CaMRSd1-.js} +1 -1
- package/web/app/immutable/chunks/{DWa-2rkZ.js → CdGl_2eX.js} +1 -1
- package/web/app/immutable/chunks/{C8LrJXqa.js → Cerl373K.js} +1 -1
- package/web/app/immutable/chunks/{DjIQY_o5.js → CfnXjWQL.js} +1 -1
- package/web/app/immutable/chunks/ChKOG1mU.js +3 -0
- package/web/app/immutable/chunks/{CHto7_WH.js → ChOMtuod.js} +1 -1
- package/web/app/immutable/chunks/{CuPx_r7k.js → CjLfgoGI.js} +1 -1
- package/web/app/immutable/chunks/{BV4VuEnO.js → CnMzOGNL.js} +1 -1
- package/web/app/immutable/chunks/{C37ZqG4e.js → CnQVxh95.js} +1 -1
- package/web/app/immutable/chunks/{Dm-WfTCg.js → Cpgxz5sK.js} +1 -1
- package/web/app/immutable/chunks/{n5-dpvss.js → Cpw2gXhG.js} +1 -1
- package/web/app/immutable/chunks/{Do2KlQU0.js → CsilY7l9.js} +1 -1
- package/web/app/immutable/chunks/{C-zB-6G6.js → CueOVPTy.js} +1 -1
- package/web/app/immutable/chunks/{VeUh5OMZ.js → CvSLeFQo.js} +1 -1
- package/web/app/immutable/chunks/{COgn_CzG.js → CvusaaYc.js} +1 -1
- package/web/app/immutable/chunks/{BECK4OaG.js → Cwg3XF5F.js} +1 -1
- package/web/app/immutable/chunks/{CDAnHxmJ.js → CyHe7TdT.js} +1 -1
- package/web/app/immutable/chunks/{B2CniqS1.js → D22j4iWy.js} +1 -1
- package/web/app/immutable/chunks/{BSUnflvl.js → D2Tzo4Hp.js} +1 -1
- package/web/app/immutable/chunks/{ZR3wQ419.js → D5A9atQX.js} +2 -2
- package/web/app/immutable/chunks/{DNDlsdj4.js → D5evzUZd.js} +1 -1
- package/web/app/immutable/chunks/{DJPIUVkw.js → D5xlMOwU.js} +1 -1
- package/web/app/immutable/chunks/{e3_wv2e_.js → D6_ybykj.js} +1 -1
- package/web/app/immutable/chunks/{CGYPBD6G.js → D7yetF0v.js} +1 -1
- package/web/app/immutable/chunks/{D2kwjrZB.js → D9_wDL10.js} +1 -1
- package/web/app/immutable/chunks/{GP4LXuR4.js → DAI6QH7D.js} +1 -1
- package/web/app/immutable/chunks/{BLKFshyr.js → DAVG7sIL.js} +1 -1
- package/web/app/immutable/chunks/{C78AfvXn.js → DBwdk2-0.js} +1 -1
- package/web/app/immutable/chunks/{CXpEvkVR.js → DC1xYxUn.js} +1 -1
- package/web/app/immutable/chunks/{TT8yXpG-.js → DDdsJrHq.js} +1 -1
- package/web/app/immutable/chunks/{D_VvdZe2.js → DEKjIPd8.js} +1 -1
- package/web/app/immutable/chunks/{Dvi4g0xk.js → DFKO8V-Y.js} +1 -1
- package/web/app/immutable/chunks/{BSgFpkqa.js → DGdWzkgm.js} +1 -1
- package/web/app/immutable/chunks/{BVuLEX_p.js → DIQ-xR1q.js} +1 -1
- package/web/app/immutable/chunks/{DmCKwthV.js → DIWzdBfB.js} +1 -1
- package/web/app/immutable/chunks/{C5b7nimj.js → DIad5c9_.js} +1 -1
- package/web/app/immutable/chunks/{B6eTPmJH.js → DJJ2Xrlq.js} +1 -1
- package/web/app/immutable/chunks/{4PAYwk2I.js → DJb2lMGn.js} +1 -1
- package/web/app/immutable/chunks/{C2WwQCOk.js → DKupjKLn.js} +1 -1
- package/web/app/immutable/chunks/{RHSH5iZ7.js → DNDJdxKs.js} +1 -1
- package/web/app/immutable/chunks/{Dp8FVKoA.js → DOLX5oss.js} +1 -1
- package/web/app/immutable/chunks/{CmyBYYR3.js → DOZ82gYM.js} +1 -1
- package/web/app/immutable/chunks/{rcXEnwTB.js → DOir9M0E.js} +1 -1
- package/web/app/immutable/chunks/{BNV0s95-.js → DQBViT5w.js} +1 -1
- package/web/app/immutable/chunks/{Dxfvrgme.js → DQvAX2eX.js} +1 -1
- package/web/app/immutable/chunks/{CNE5cVvC.js → DSDM77x3.js} +1 -1
- package/web/app/immutable/chunks/{DZmGZ5am.js → DU1c0itA.js} +1 -1
- package/web/app/immutable/chunks/DWvCfaBg.js +1 -0
- package/web/app/immutable/chunks/{7y3Z0Q49.js → DX2U4Mz9.js} +3 -3
- package/web/app/immutable/chunks/{Cl_O0hHI.js → DXDbxM_W.js} +1 -1
- package/web/app/immutable/chunks/{CrvVM5aL.js → DY1YVoxv.js} +1 -1
- package/web/app/immutable/chunks/{8jMQM9h0.js → DY5rw8pn.js} +1 -1
- package/web/app/immutable/chunks/{DFGMgfIk.js → DZSbMOPJ.js} +2 -2
- package/web/app/immutable/chunks/{CpFDUMBH.js → DZjSAGjX.js} +1 -1
- package/web/app/immutable/chunks/Da8rtzmJ.js +1 -0
- package/web/app/immutable/chunks/{Cw-qJqDx.js → DaOKbar2.js} +2 -2
- package/web/app/immutable/chunks/{CNnF3Cms.js → DbUDL_oo.js} +1 -1
- package/web/app/immutable/chunks/{BvgjsneA.js → Dbr8gjWS.js} +1 -1
- package/web/app/immutable/chunks/{L-Sh3Ble.js → DbxqdYAO.js} +3 -3
- package/web/app/immutable/chunks/{pHBnQb5R.js → DcLVN86K.js} +1 -1
- package/web/app/immutable/chunks/{xGzY0FqC.js → DcMTwn77.js} +1 -1
- package/web/app/immutable/chunks/{DT5eV1e8.js → DdRupUfV.js} +2 -2
- package/web/app/immutable/chunks/{wiGlLVr-.js → Dde9Z_vp.js} +1 -1
- package/web/app/immutable/chunks/{BQ53265L.js → DdjeekcY.js} +1 -1
- package/web/app/immutable/chunks/{BJgwBOBz.js → Dduwpj0a.js} +1 -1
- package/web/app/immutable/chunks/{CV2tdNDf.js → De0cdeOU.js} +1 -1
- package/web/app/immutable/chunks/{CuWLpCl5.js → De2a277N.js} +1 -1
- package/web/app/immutable/chunks/{C_SKcJv7.js → DeY70dof.js} +1 -1
- package/web/app/immutable/chunks/{DSiGyv9Y.js → Df4a242o.js} +1 -1
- package/web/app/immutable/chunks/{M1XBe23f.js → DfgH7-YK.js} +1 -1
- package/web/app/immutable/chunks/{7OH6WUSt.js → DgjIVRdE.js} +1 -1
- package/web/app/immutable/chunks/{CfYZevDu.js → DgzMHcMD.js} +1 -1
- package/web/app/immutable/chunks/{DEs9kPtf.js → Dh-HeAnQ.js} +1 -1
- package/web/app/immutable/chunks/{C-L0-C2F.js → Dh438xC0.js} +2 -2
- package/web/app/immutable/chunks/{DgKpR9KC.js → DhaHSPPQ.js} +1 -1
- package/web/app/immutable/chunks/{B433f4mk.js → Di_ao8Rc.js} +1 -1
- package/web/app/immutable/chunks/{CIaruUrd.js → DjNuITHM.js} +1 -1
- package/web/app/immutable/chunks/{BSntxgH1.js → Djah0WfC.js} +1 -1
- package/web/app/immutable/chunks/{BbLh3POL.js → DlMrAlfA.js} +1 -1
- package/web/app/immutable/chunks/{C8zl7aIj.js → Dm3wAkDL.js} +1 -1
- package/web/app/immutable/chunks/{B5qiyEpH.js → DpESY8ko.js} +1 -1
- package/web/app/immutable/chunks/{B_4WsP9b.js → DpvQ3NRH.js} +1 -1
- package/web/app/immutable/chunks/{JM7CQkWC.js → Dpvv-9m3.js} +1 -1
- package/web/app/immutable/chunks/{nwO3KCpP.js → DpxbS0Pj.js} +1 -1
- package/web/app/immutable/chunks/{BIGqOuh0.js → Drf1gLyo.js} +1 -1
- package/web/app/immutable/chunks/{CxndkliV.js → DrkDJmY5.js} +1 -1
- package/web/app/immutable/chunks/{DxRojUvw.js → DsOS7N8Z.js} +1 -1
- package/web/app/immutable/chunks/{_i0M7_-r.js → Dt3xwKL6.js} +2 -2
- package/web/app/immutable/chunks/{CEEUgGO1.js → DtQHtXEW.js} +1 -1
- package/web/app/immutable/chunks/{DDb9H7X6.js → DvnO7gWT.js} +3 -3
- package/web/app/immutable/chunks/{BdEtT3Ti.js → DxWgWHgi.js} +1 -1
- package/web/app/immutable/chunks/{V6efYFFY.js → DxuwadpA.js} +1 -1
- package/web/app/immutable/chunks/{0Ipp5cFr.js → DyLERSuu.js} +1 -1
- package/web/app/immutable/chunks/{pMP23LzB.js → DyXOhKE5.js} +1 -1
- package/web/app/immutable/chunks/{BlIRL_82.js → Dyx6ysl7.js} +1 -1
- package/web/app/immutable/chunks/{CR-JVxLD.js → DzBJS0Lp.js} +1 -1
- package/web/app/immutable/chunks/{Bv_xG3nA.js → DzpuLv6U.js} +1 -1
- package/web/app/immutable/chunks/{BcKrkXju.js → E1uoF1cW.js} +1 -1
- package/web/app/immutable/chunks/{DsfORPYa.js → E8oicBhU.js} +1 -1
- package/web/app/immutable/chunks/{DV7x43jt.js → EQgYvydQ.js} +1 -1
- package/web/app/immutable/chunks/{9GO97JAL.js → FQkCsxt2.js} +1 -1
- package/web/app/immutable/chunks/{CGPajdHq.js → HcbkpXC1.js} +2 -2
- package/web/app/immutable/chunks/{BYl8t9od.js → HeVxSGdr.js} +1 -1
- package/web/app/immutable/chunks/{DRsDUO-4.js → IG43rVtJ.js} +1 -1
- package/web/app/immutable/chunks/{CAfPEsZt.js → Ksiiix3Q.js} +1 -1
- package/web/app/immutable/chunks/{DlUpt_0u.js → LdXAlc1O.js} +1 -1
- package/web/app/immutable/chunks/{44rP4fzJ.js → Ly7eBIj5.js} +1 -1
- package/web/app/immutable/chunks/{B72XM8Fm.js → MoxNukrR.js} +1 -1
- package/web/app/immutable/chunks/{C-PQQ8rb.js → Nrq0Uf9_.js} +1 -1
- package/web/app/immutable/chunks/{DPR_clFy.js → OMssb4xF.js} +1 -1
- package/web/app/immutable/chunks/{C0Zo7HuP.js → PkPZtGfM.js} +1 -1
- package/web/app/immutable/chunks/{CqUPwDgo.js → Pyf1FzKM.js} +1 -1
- package/web/app/immutable/chunks/{3qVSmuIV.js → QA00-uqv.js} +1 -1
- package/web/app/immutable/chunks/{Bs7M8kXA.js → QIFiwjW0.js} +3 -3
- package/web/app/immutable/chunks/{Dg0Tdf_A.js → TN7R9Ny0.js} +1 -1
- package/web/app/immutable/chunks/{waHi6l7h.js → TXPMw3n4.js} +1 -1
- package/web/app/immutable/chunks/{gZJn6Sk0.js → TyVpf8MX.js} +1 -1
- package/web/app/immutable/chunks/{fHygQTSC.js → UQ6MIVTw.js} +1 -1
- package/web/app/immutable/chunks/{yDmmPu6L.js → UnM4qztD.js} +1 -1
- package/web/app/immutable/chunks/{PhAbES0t.js → UqcU95a7.js} +1 -1
- package/web/app/immutable/chunks/{DLCFUd4s.js → VTJf_qPn.js} +1 -1
- package/web/app/immutable/chunks/{B8HnjSSF.js → W05hyx94.js} +1 -1
- package/web/app/immutable/chunks/{D1zX4MuR.js → XMluVOSf.js} +1 -1
- package/web/app/immutable/chunks/{BtBQ5qfh.js → Y4bYs1dr.js} +1 -1
- package/web/app/immutable/chunks/{B5tvpTFB.js → Y_tkjygB.js} +1 -1
- package/web/app/immutable/chunks/{DBH_GMOZ.js → YbqMJoDi.js} +1 -1
- package/web/app/immutable/chunks/{CRSY1kuo.js → Z8DHXl17.js} +1 -1
- package/web/app/immutable/chunks/{BZVhwNIm.js → _HPNXgkR.js} +3 -3
- package/web/app/immutable/chunks/{Bf_nrOhg.js → aixoUWDq.js} +1 -1
- package/web/app/immutable/chunks/{DtFzaymP.js → awY5HvZY.js} +1 -1
- package/web/app/immutable/chunks/{5-0LQoqd.js → bIL0xbKX.js} +1 -1
- package/web/app/immutable/chunks/{BByf3ILj.js → bojY7ttK.js} +1 -1
- package/web/app/immutable/chunks/{dmZv6JOg.js → cfiNEg68.js} +1 -1
- package/web/app/immutable/chunks/{DRqy_Wmb.js → dFhS46gw.js} +1 -1
- package/web/app/immutable/chunks/{DM1_VFfD.js → fC3yz20p.js} +1 -1
- package/web/app/immutable/chunks/{DYEwyuIx.js → h5ZeHogL.js} +1 -1
- package/web/app/immutable/chunks/{C429ZMSU.js → hRfDutUE.js} +1 -1
- package/web/app/immutable/chunks/{C-G2u0Oe.js → hstOawAs.js} +1 -1
- package/web/app/immutable/chunks/{BbuLzldI.js → i8jM24jD.js} +1 -1
- package/web/app/immutable/chunks/{DXRkYB1Y.js → ico0GHoP.js} +30 -30
- package/web/app/immutable/chunks/{Cp02CBjf.js → jyNUu-ZR.js} +1 -1
- package/web/app/immutable/chunks/{BDsciJGp.js → kAav5o2h.js} +1 -1
- package/web/app/immutable/chunks/{BV1ayWTC.js → lSLkjC_I.js} +1 -1
- package/web/app/immutable/chunks/{BuFDqZnJ.js → mRUS_S7Z.js} +1 -1
- package/web/app/immutable/chunks/{BHqp2vwo.js → maZzJmVw.js} +1 -1
- package/web/app/immutable/chunks/{BvbeTrka.js → r5JNAzEM.js} +1 -1
- package/web/app/immutable/chunks/{CXDUvPYf.js → rsUVVEzx.js} +1 -1
- package/web/app/immutable/chunks/{lTwh0Wzj.js → tHETzssD.js} +1 -1
- package/web/app/immutable/chunks/{BzSCTZkL.js → v7JbBbwR.js} +1 -1
- package/web/app/immutable/chunks/{Cp7Byf5d.js → wBNgrgMC.js} +1 -1
- package/web/app/immutable/chunks/{DX9N1RQz.js → x-RVzKqZ.js} +1 -1
- package/web/app/immutable/chunks/{BTLG1BY-.js → yMcNgg0D.js} +1 -1
- package/web/app/immutable/chunks/{BNa9zzEx.js → yqEyUNVG.js} +1 -1
- package/web/app/immutable/chunks/{LgyvMkc8.js → yy2JFRyT.js} +1 -1
- package/web/app/immutable/chunks/{7KxcPj98.js → zFAkpaJn.js} +1 -1
- package/web/app/immutable/entry/{app.BXfGjD4L.js → app.gkm8TnXW.js} +3 -3
- package/web/app/immutable/entry/start.CMMmzvCE.js +1 -0
- package/web/app/immutable/nodes/{0.CoxSTVXk.js → 0.xKtnYOA2.js} +1 -1
- package/web/app/immutable/nodes/{1.BbjU9IH_.js → 1.BMx4VsW1.js} +1 -1
- package/web/app/immutable/nodes/{10.D6wyP02T.js → 10.HyXPJR8g.js} +5 -5
- package/web/app/immutable/nodes/{11.ukc3KQLY.js → 11._cAIrch_.js} +1 -1
- package/web/app/immutable/nodes/{12.D6rxlIQy.js → 12.DOoAvwLA.js} +1 -1
- package/web/app/immutable/nodes/{13.CHYsmiD_.js → 13.Coj_sRB4.js} +1 -1
- package/web/app/immutable/nodes/{14.mG-YN9pn.js → 14.AVrz3ZLQ.js} +3 -3
- package/web/app/immutable/nodes/{15.CUWA_Nvq.js → 15.BGK-JRWm.js} +1 -1
- package/web/app/immutable/nodes/{16.BsFtzH0D.js → 16.CMkcwVoI.js} +1 -1
- package/web/app/immutable/nodes/{17.me_aOx8O.js → 17.BS5un5d0.js} +1 -1
- package/web/app/immutable/nodes/{18.BO1oZWgm.js → 18._hTG2-17.js} +1 -1
- package/web/app/immutable/nodes/{19.D9cBSCEY.js → 19.DuCFyr_N.js} +2 -2
- package/web/app/immutable/nodes/{2.pGtn3nxM.js → 2.uAqDAg4D.js} +4 -4
- package/web/app/immutable/nodes/{20.LbRPieV_.js → 20.C1pW6BvW.js} +1 -1
- package/web/app/immutable/nodes/{3.Bm-Ewkeu.js → 3.M-EbuqKW.js} +1 -1
- package/web/app/immutable/nodes/{4.bypHtb3m.js → 4.ByPZ1Nrn.js} +1 -1
- package/web/app/immutable/nodes/{5.YWphdJEW.js → 5.DKAjjuf7.js} +1 -1
- package/web/app/immutable/nodes/{6.DQRfO1Qb.js → 6.DOc_YxMK.js} +1 -1
- package/web/app/immutable/nodes/{7.b1goQuXf.js → 7.gFNAyoNX.js} +1 -1
- package/web/app/immutable/nodes/{8.BBgV9gU6.js → 8.C_Kp8pWz.js} +1 -1
- package/web/app/immutable/nodes/{9.BJdtENce.js → 9.C6HX35Sq.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +19 -19
- package/web/app/immutable/assets/0.BmwjvpSF.css +0 -1
- package/web/app/immutable/chunks/CCIZBeez.js +0 -1
- package/web/app/immutable/chunks/CNWb-jYE.js +0 -1
- package/web/app/immutable/chunks/Dws-34a7.js +0 -1
- package/web/app/immutable/chunks/DyXAZ9tr.js +0 -3
- package/web/app/immutable/chunks/Whej1Dge.js +0 -1
- package/web/app/immutable/entry/start.DRVSg-kr.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./
|
|
1
|
+
import{l as e}from"./DX2U4Mz9.js";const n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:e.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:e.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:e.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:e.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},o={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","satisfies","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<","</",">>",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/#?[a-z_$][\w$]*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[A-Z][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};export{n as conf,o as language};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{conf as t,language as e}from"./
|
|
1
|
+
import{conf as t,language as e}from"./E8oicBhU.js";const i=t,o={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","static","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer};export{i as conf,o as language};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w0 as W,v_ as E,hq as j,hr as H,i as K,Ja as z,Jx as i,ac as $,nY as P}from"./4g_iHoQm.js";import{bm as c}from"./Dws-34a7.js";import{aB as J,n as X,I as G,aD as k,g as Y}from"./PhAbES0t.js";import{w as Z}from"./Dval4sTX.js";import{cx as y,cZ as Q,cY as v,d1 as ee}from"./SbTG0nwQ.js";import{y as _}from"./Bqd7fdCF.js";const te=["connected","disconnected","unreachable","revoked","update-required"],f=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),d=e=>typeof e=="string"&&e.length>0,h=e=>typeof e=="string"&&e.length>0?e:void 0,L=e=>Number.isSafeInteger(e)&&e>=0?e:0;function ne(e){if(!f(e))return;const t=Array.isArray(e.providers)?e.providers.flatMap(a=>f(a)&&d(a.id)?[{id:a.id,...a.visible===!1?{visible:!1}:{},status:typeof a.status=="string"?a.status:"unknown",models:Array.isArray(a.models)?a.models.filter(s=>d(s)):[],...a.modelsStale===!0?{modelsStale:!0}:{}}]:[]):[],n=h(e.intentdVersion),r=oe(e.capacity),o=re(e.resources);return{...n?{intentdVersion:n}:{},providers:t,...r?{capacity:r}:{},...o?{resources:o}:{}}}function re(e){if(!f(e)||!g(e.memoryUsedBytes)||!g(e.memoryTotalBytes)||e.memoryTotalBytes===0)return;const t=e.cpuPercent;return{...g(t)&&t<=100?{cpuPercent:t}:{},memoryUsedBytes:Math.min(e.memoryUsedBytes,e.memoryTotalBytes),memoryTotalBytes:e.memoryTotalBytes}}const g=e=>Number.isSafeInteger(e)&&e>=0;function oe(e){if(!(!f(e)||!g(e.runningAgents)||!g(e.agentCap)))return{runningAgents:e.runningAgents,agentCap:e.agentCap}}function Fe(e){if(!f(e)||!d(e.id)||!d(e.name)||!d(e.fingerprint)||!te.includes(e.state)||!Number.isInteger(e.port)||!d(e.addedAt))return null;const t=f(e.platform)&&d(e.platform.os)&&d(e.platform.arch)?{os:e.platform.os,arch:e.platform.arch}:void 0,n=ne(e.capabilities),r=h(e.tcAddress),o=h(e.observedAt),a=h(e.lastConnectedAt),s=W(e.cloud),l=Number.isInteger(e.nodeProtocol)&&e.nodeProtocol>=0?e.nodeProtocol:void 0;return{id:e.id,name:e.name,...t?{platform:t}:{},hosts:Array.isArray(e.hosts)?e.hosts.filter(p=>d(p)):[],port:e.port,...r?{tcAddress:r}:{},fingerprint:e.fingerprint,state:e.state,runningAgents:L(e.runningAgents),...n?{capabilities:n}:{},...l!==void 0?{nodeProtocol:l}:{},...o?{observedAt:o}:{},addedAt:e.addedAt,...a?{lastConnectedAt:a}:{},...s?{cloud:s}:{}}}function Ue(e){if(!f(e)||!d(e.credentialId)||!d(e.backendId)||!d(e.backendName)||!d(e.createdAt))return null;const t=h(e.lastUsedAt);return{credentialId:e.credentialId,backendId:e.backendId,backendName:e.backendName,createdAt:e.createdAt,...t?{lastUsedAt:t}:{},connected:e.connected===!0,runningAgents:L(e.runningAgents)}}function qe(e){const t=(typeof e=="string"?e:"").trim().toUpperCase();return t===""?null:t}function ae(e){if(!f(e)||typeof e.name!="string")return null;const t=e.name;return e.kind==="local"?{kind:"local",name:t}:e.kind==="machine"&&d(e.nodeId)?{kind:"machine",nodeId:e.nodeId,name:t}:e.kind==="cloud"&&d(e.cloudMachineId)?{kind:"cloud",cloudMachineId:e.cloudMachineId,name:t}:null}function Ve(e){if(!Array.isArray(e))return null;const t=[];for(const n of e){const r=ae(n);if(!r)return null;t.push(r)}return t}function se(e){return e.kind==="local"?{kind:"local"}:e.kind==="machine"?{kind:"machine",nodeId:e.nodeId}:{kind:"cloud",cloudMachineId:e.cloudMachineId}}function b(e){return e.kind==="local"?"local":e.kind==="machine"?`machine:${e.nodeId}`:`cloud:${e.cloudMachineId}`}const ce={macos:"macOS",linux:"Linux",windows:"Windows"},ie={aarch64:"arm64",arm64:"arm64",x86_64:"x64",x64:"x64"};function m(e,t){const n=[e&&(ce[e]??e),t&&(ie[t]??t)].filter(r=>!!r);return n.length?n.join(" "):null}function le(e){return e?.placement?.target==="remote"||_(e?.placement?.target)}const de=new Set(["running","paused","resuming","pausing","stopping"]);function ue(e,t){if(e.placementError)return null;if(e.cloudStart)return"starting";if(!e.nodeId)return e.effectiveIsolation==="pending"?"starting":null;const n=t?.cloud?.state;return n&&de.has(n)?n:e.effectiveIsolation==="pending"?"starting":null}function N(e,t){if(!e||!le(e))return null;const n=e.nodeId??e.placement?.nodeId??"",r=t&&t.id===n?t:null;if(_(e.placement?.target))return{nodeId:n,name:e.nodeName?.trim()||j(r?.cloud?.provider??H(e.placement?.cloudMachineId)),platform:m(r?.platform?.os,r?.platform?.arch),state:"ready",cloud:{state:ue(e,r)}};const o=m(e.placement?.os,e.placement?.arch)??m(r?.platform?.os,r?.platform?.arch),a=r?.state==="revoked"?"revoked":r?.state==="unreachable"||e.nodeState==="offline"?"unreachable":"ready";return{nodeId:n,name:e.nodeName?.trim()||r?.name||c.remoteAgent_location_unknownMachine(),platform:o,state:a}}function We(e,t){if(!e)return null;const n=t&&t.id===e?t:null;return{nodeId:e,name:n?.name||c.remoteAgent_location_unknownMachine(),platform:m(n?.platform?.os,n?.platform?.arch),state:n?.state==="revoked"?"revoked":n?.state==="unreachable"?"unreachable":"ready"}}function B(e){switch(e){case"starting":return c.cloudMachines_agent_starting();case"running":return c.cloudMachines_agent_running();case"paused":return c.cloudMachines_agent_paused();case"resuming":return c.cloudMachines_agent_resuming();case"pausing":return c.cloudMachines_agent_pausing();case"stopping":return c.cloudMachines_agent_stopping();default:return null}}function je(e){const t=B(e.cloud?.state);return t?c.cloudMachines_agent_chip({machine:e.name,state:t}):e.name}function He(e){if(e.cloud){const n=B(e.cloud.state),r=c.remoteAgent_location_tooltipNoPlatform({machine:e.name});return n?c.remoteAgent_location_tooltipWithState({location:r,state:n}):r}const t=e.platform?c.remoteAgent_location_tooltip({machine:e.name,platform:e.platform}):c.remoteAgent_location_tooltipNoPlatform({machine:e.name});switch(e.state){case"unreachable":return c.remoteAgent_location_tooltipWithState({location:t,state:c.remoteMachines_state_unreachable_label()});case"revoked":return c.remoteAgent_location_tooltipWithState({location:t,state:c.remoteMachines_state_revoked_label()});default:return t}}function x(e,t){return!e||!t?null:e.placementError?"failed":t.state==="revoked"?"revoked":t.state==="unreachable"?"unreachable":e.effectiveIsolation==="pending"||e.cloudStart?"starting":e.setup?.state==="failed"?"setup-failed":e.setup?.state==="running"?"setup-running":null}function w(e){if(!e.endsWith("}"))return null;for(let t=e.indexOf(" {");t>=0;t=e.indexOf(" {",t+1))try{const n=JSON.parse(e.slice(t+1));if(n&&typeof n=="object"&&typeof n.code=="string")return{message:e.slice(0,t).trim(),data:n}}catch{}return null}function fe(e,t){const n=e.detail??"",r=w(n),o=e.code==="machine-update-required"||r?.data.code==="machine-update-required";if(o&&r?.data.reason==="prepared-checkout")return{updateRequired:o,message:c.remoteAgent_updateRequired_preparedCheckout({machine:t})};const a=E(r?.data),s=a??(e.code?E({code:e.code}):null);return s?{updateRequired:o,message:r?.message||n,cloud:s,cloudDetailKnown:!!a}:{updateRequired:o,message:r?.message||n}}function Ke(e){if(!_(e?.placement?.target)||!e.placementError||e.status!==K.Error)return null;const t=fe(e.placementError,"");return t.cloud?t:null}const me=["attachments-too-large-for-machine:","node-prompt-too-large:"],pe="remote-agent-unsupported:";function T(e){return new Intl.NumberFormat(void 0,{maximumFractionDigits:1}).format(e/1048576)}function ze(e){const t=w(e)?.message??e;for(const r of me){const o=t.indexOf(r);if(o<0)continue;const a=t.slice(o+r.length).trim().replace(/^[a-z][\w]*(?:\.[\w]+)+:\s*/i,""),s=/come to (\d+) bytes\b.*?over its (\d+)-byte limit/.exec(a);return s?c.remoteAgent_attachmentsTooLargeSized_error({size:T(Number(s[1])),limit:T(Number(s[2]))}):a?c.remoteAgent_attachmentsTooLarge_error({detail:a}):c.remoteAgent_attachmentsTooLargeNoDetail_error()}const n=t.indexOf(pe);return n>=0&&/attachment/i.test(t.slice(n))?c.remoteAgent_attachmentsUnsupported_error():null}function $e(e){return _(e?.placement?.target)&&x(e,N(e))==="starting"}function Je(e,t){if(!_(e?.placement?.target))return!1;const n=N(e,t);return n?.cloud?.state==="resuming"&&x(e,n)===null}const S="",u="host:",O="cloud:";function M(e){return`${O}${e}`}function A(e){return e?.startsWith(O)&&e.slice(O.length)||null}const Xe=M("e2b");function he(e,t){return e?.find(n=>M(n.cloudMachineId)===t&&n.unavailableReason===null)}const ge=new Set(["connected","disconnected"]);function be(e){switch(e){case"unreachable":return c.remoteMachines_state_unreachable_label();case"revoked":return c.remoteMachines_state_revoked_label();case"update-required":return c.remoteMachines_state_updateRequired_label();default:return}}function I(e){return ge.has(e.state)}function _e({backendLabel:e,backendPlatform:t,machines:n,cloud:r,orchestrator:o=!1}){const a=[...o?[]:[{id:u,label:e,platform:m(t?.os,t?.arch),disabled:!1}],...n.map(s=>{const l=m(s.platform?.os,s.platform?.arch);return I(s)?{id:s.id,label:s.name,platform:l,disabled:!1}:{id:s.id,label:s.name,platform:l,disabled:!0,reason:be(s.state)}})];for(const s of r??[])a.push({id:M(s.cloudMachineId),label:s.label,platform:null,kind:"cloud",disabled:s.unavailableReason!==null,...s.unavailableReason?{reason:s.unavailableReason}:s.needsProfile?{hint:c.cloudMachines_startOn_hint()}:{}});return a}function Ge(e,t=""){return e.find(n=>n.id===u)?.label??t}function Se(e){return(e.find(t=>!t.disabled)??e[0])?.id??S}function Ye(e,t,n){if(e!==u){if(e!==S)return A(e)?void 0:e;if(n)return t.find(r=>r.id!==u&&r.kind!=="cloud"&&!r.disabled)?.id}}function Me({remoteMachinesVisible:e,supported:t,machines:n,cloud:r}){return e&&t&&(n.some(I)||(r??[]).some(o=>o.unavailableReason===null))}function Ae(e,t){return e.map(n=>{if(n.kind!=="cloud")return n;const r=t?.find(o=>M(o.cloudMachineId)===n.id)?.unavailableReason;return r?{...n,disabled:!0,reason:r,hint:void 0}:n})}function Oe(e,t,n,r){const o=r?Se(r):S;if(!e)return o;if(e===u)return!r||r.some(s=>s.id===u)?u:o;if(A(e))return he(n,e)?e:o;const a=t.find(s=>s.id===e);return a&&I(a)?a.id:o}function Ze(e,t){return t===u&&e!==u?S:t}function Qe(e,{cloudEntries:t=!1,providerOf:n}={}){if(e===u)return{target:"local"};const r=A(e);if(r){const o=n?.(r);return t&&o&&o!=="e2b"?{target:"cloud",checkout:"isolated",cloudMachineId:r}:t?{target:"e2b",checkout:"isolated",cloudMachineId:r}:{target:"e2b",checkout:"isolated"}}return e?{target:"remote",checkout:"isolated",nodeId:e}:void 0}function ve({groups:e,providerRef:t,model:n}){const r=s=>s.options.filter(l=>!l.disabled),o=e.find(s=>s.key===t),a=o?r(o):[];if(n){const s=z(n).modelId;if(a.some(l=>l.value===s))return null}else if(a.length>0)return null;if(o&&a.length>0)return{providerId:o.key,modelId:a[0].value};for(const s of e){if(s.key==="default")continue;const l=r(s);if(l.length>0)return{providerId:s.key,modelId:l[0].value}}return null}function ke(e,t,n,r){const o=e.map(b),a=o.indexOf(t),s=o.indexOf(n);if(a<0||s<0||a===s)return null;let l=s+(r==="after"?1:0);if(a<l&&(l-=1),l===a)return null;const p=[...e],[V]=p.splice(a,1);return p.splice(l,0,V),p.map(se)}function et(e,t,n){const r=e.findIndex(a=>b(a)===t),o=e[r+n];return r<0||!o?null:ke(e,t,b(o),n===-1?"before":"after")}function ye(e,t){if(e===u)return"local";const n=t==="cloud"?A(e):null;return b(n?{kind:"cloud",cloudMachineId:n}:{kind:"machine",nodeId:e})}function Ie(e,t){const n=new Map(t.map((o,a)=>[b(o),a])),r=o=>n.get(ye(o.id,o.kind))??t.length;return e.map((o,a)=>({option:o,index:a})).sort((o,a)=>r(o.option)-r(a.option)||o.index-a.index).map(({option:o})=>o)}function tt(e,t){return t==="orchestrator"?e.filter(n=>n.kind!=="local"):[...e]}const Re=i.createSelector(e=>Z.select(e)||y.select(e)),R=i.createSelector(e=>Re.select(e)&&e.remoteMachines?.supported===!0),nt=i.createSelector(e=>R.select(e)&&J.select(e)&&!y.select(e)),D=i.createSelector(e=>R.select(e)&&e.remoteMachines.machineOrder===!0&&e.remoteMachines.order!==null),Ce=i.createSelector(e=>D.select(e)?e.remoteMachines.order??[]:[]),rt=i.createSelector(e=>e.remoteMachines.orderSaving!==null),C=i.createSelector(e=>Object.values(e.remoteMachines?.machines??{}).sort((t,n)=>t.name.localeCompare(n.name))),ot=i.createSelector(e=>e.remoteMachines.localFingerprint),at=i.createSelector(e=>e.remoteMachines.pending),st=i.createSelector(e=>e.remoteMachines.failures),ct=i.createSelector(e=>e.remoteMachines.executorBackends??[]),Ee=i.createSelector((e,t)=>{if(t===$)return c.layout_daemonStatus_localConnection_label();const n=P(e.connections.connections,t);return n?X(n):t}),Te=i.createSelector(e=>Ee.select(e,e.connections.windowBackendId)),it=i.createSelector((e,t)=>(t?e.remoteMachines.machines[t]??e.cloudMachines?.machines[t]:void 0)??null),lt=i.createSelector((e,t)=>{const n=e.providerSettings?.profiles;return G({catalogProfiles:ee.select(e,t),defaultRemoteIncompatibility:v.select(e,t),defaultRemoteLaunch:Q.select(e,t),profileDefaults:Object.values(n?.defaults??{}),profilesLoadStatus:n?.loadStatus??"idle"})}),dt=i.createSelector(e=>Object.fromEntries(Object.values(e.providerSettings?.profiles?.defaults??{}).map(t=>[t.baseProviderId,t.env.length>0]))),F=i.createSelector(e=>Me({remoteMachinesVisible:R.select(e),supported:e.remoteMachines?.initialAgentPlacement===!0,machines:C.select(e),cloud:k(e)}));function Pe(e){const t=P(e.connections.connections,e.connections.windowBackendId);return t?.hostOs?{os:t.hostOs,arch:t.hostArch}:void 0}const U=i.createSelector(e=>{const t=y.select(e),n=_e({backendLabel:Te.select(e),backendPlatform:Pe(e),machines:C.select(e),cloud:k(e),orchestrator:t});return D.select(e)?Ie(n,Ce.select(e)):n}),ut=i.createSelector(e=>F.select(e)?U.select(e):[]),ft=i.createSelector(e=>e.remoteMachines?.initialAgentPlacement===!0),mt=i.createSelector((e,t,n)=>{if(!F.select(e))return S;const r=q(e,n);return Oe(t,C.select(e),r,Ae(U.select(e),r))});function q(e,t){const n=k(e);if(!n||!t)return n;const r=e.cloudMachines?.providers??{};return n.map(o=>{if(o.unavailableReason)return o;const a=Y(e,t,r[o.cloudMachineId]??null);return a?{...o,unavailableReason:a}:o})}const pt=i.createSelector((e,t)=>q(e,t));export{et as $,mt as A,ct as B,ft as C,ot as D,Ce as E,rt as F,D as G,it as H,st as I,at as J,C as K,Re as L,R as M,lt as N,nt as O,pt as P,ut as Q,U as R,S,F as T,Ge as U,M as V,A as W,Se as X,Ye as Y,Ae as Z,Ze as _,Xe as a,u as b,Ke as c,$e as d,Je as e,je as f,N as g,He as h,x as i,qe as j,tt as k,Qe as l,We as m,ve as n,b as o,m as p,ke as q,Ue as r,Ve as s,Fe as t,fe as u,ze as v,Oe as w,Ee as x,Te as y,dt as z};
|
|
1
|
+
import{w0 as W,v_ as E,hq as j,hr as H,i as K,Ja as z,Jx as i,ac as $,nY as P}from"./CIoJPvjg.js";import{bm as c}from"./DWvCfaBg.js";import{aB as J,n as X,I as G,aD as k,g as Y}from"./UqcU95a7.js";import{w as Z}from"./BrDfJqC4.js";import{cx as y,cZ as Q,cY as v,d1 as ee}from"./3Kr2ijlK.js";import{y as _}from"./Bqd7fdCF.js";const te=["connected","disconnected","unreachable","revoked","update-required"],f=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),d=e=>typeof e=="string"&&e.length>0,h=e=>typeof e=="string"&&e.length>0?e:void 0,L=e=>Number.isSafeInteger(e)&&e>=0?e:0;function ne(e){if(!f(e))return;const t=Array.isArray(e.providers)?e.providers.flatMap(a=>f(a)&&d(a.id)?[{id:a.id,...a.visible===!1?{visible:!1}:{},status:typeof a.status=="string"?a.status:"unknown",models:Array.isArray(a.models)?a.models.filter(s=>d(s)):[],...a.modelsStale===!0?{modelsStale:!0}:{}}]:[]):[],n=h(e.intentdVersion),r=oe(e.capacity),o=re(e.resources);return{...n?{intentdVersion:n}:{},providers:t,...r?{capacity:r}:{},...o?{resources:o}:{}}}function re(e){if(!f(e)||!g(e.memoryUsedBytes)||!g(e.memoryTotalBytes)||e.memoryTotalBytes===0)return;const t=e.cpuPercent;return{...g(t)&&t<=100?{cpuPercent:t}:{},memoryUsedBytes:Math.min(e.memoryUsedBytes,e.memoryTotalBytes),memoryTotalBytes:e.memoryTotalBytes}}const g=e=>Number.isSafeInteger(e)&&e>=0;function oe(e){if(!(!f(e)||!g(e.runningAgents)||!g(e.agentCap)))return{runningAgents:e.runningAgents,agentCap:e.agentCap}}function Fe(e){if(!f(e)||!d(e.id)||!d(e.name)||!d(e.fingerprint)||!te.includes(e.state)||!Number.isInteger(e.port)||!d(e.addedAt))return null;const t=f(e.platform)&&d(e.platform.os)&&d(e.platform.arch)?{os:e.platform.os,arch:e.platform.arch}:void 0,n=ne(e.capabilities),r=h(e.tcAddress),o=h(e.observedAt),a=h(e.lastConnectedAt),s=W(e.cloud),l=Number.isInteger(e.nodeProtocol)&&e.nodeProtocol>=0?e.nodeProtocol:void 0;return{id:e.id,name:e.name,...t?{platform:t}:{},hosts:Array.isArray(e.hosts)?e.hosts.filter(p=>d(p)):[],port:e.port,...r?{tcAddress:r}:{},fingerprint:e.fingerprint,state:e.state,runningAgents:L(e.runningAgents),...n?{capabilities:n}:{},...l!==void 0?{nodeProtocol:l}:{},...o?{observedAt:o}:{},addedAt:e.addedAt,...a?{lastConnectedAt:a}:{},...s?{cloud:s}:{}}}function Ue(e){if(!f(e)||!d(e.credentialId)||!d(e.backendId)||!d(e.backendName)||!d(e.createdAt))return null;const t=h(e.lastUsedAt);return{credentialId:e.credentialId,backendId:e.backendId,backendName:e.backendName,createdAt:e.createdAt,...t?{lastUsedAt:t}:{},connected:e.connected===!0,runningAgents:L(e.runningAgents)}}function qe(e){const t=(typeof e=="string"?e:"").trim().toUpperCase();return t===""?null:t}function ae(e){if(!f(e)||typeof e.name!="string")return null;const t=e.name;return e.kind==="local"?{kind:"local",name:t}:e.kind==="machine"&&d(e.nodeId)?{kind:"machine",nodeId:e.nodeId,name:t}:e.kind==="cloud"&&d(e.cloudMachineId)?{kind:"cloud",cloudMachineId:e.cloudMachineId,name:t}:null}function Ve(e){if(!Array.isArray(e))return null;const t=[];for(const n of e){const r=ae(n);if(!r)return null;t.push(r)}return t}function se(e){return e.kind==="local"?{kind:"local"}:e.kind==="machine"?{kind:"machine",nodeId:e.nodeId}:{kind:"cloud",cloudMachineId:e.cloudMachineId}}function b(e){return e.kind==="local"?"local":e.kind==="machine"?`machine:${e.nodeId}`:`cloud:${e.cloudMachineId}`}const ce={macos:"macOS",linux:"Linux",windows:"Windows"},ie={aarch64:"arm64",arm64:"arm64",x86_64:"x64",x64:"x64"};function m(e,t){const n=[e&&(ce[e]??e),t&&(ie[t]??t)].filter(r=>!!r);return n.length?n.join(" "):null}function le(e){return e?.placement?.target==="remote"||_(e?.placement?.target)}const de=new Set(["running","paused","resuming","pausing","stopping"]);function ue(e,t){if(e.placementError)return null;if(e.cloudStart)return"starting";if(!e.nodeId)return e.effectiveIsolation==="pending"?"starting":null;const n=t?.cloud?.state;return n&&de.has(n)?n:e.effectiveIsolation==="pending"?"starting":null}function N(e,t){if(!e||!le(e))return null;const n=e.nodeId??e.placement?.nodeId??"",r=t&&t.id===n?t:null;if(_(e.placement?.target))return{nodeId:n,name:e.nodeName?.trim()||j(r?.cloud?.provider??H(e.placement?.cloudMachineId)),platform:m(r?.platform?.os,r?.platform?.arch),state:"ready",cloud:{state:ue(e,r)}};const o=m(e.placement?.os,e.placement?.arch)??m(r?.platform?.os,r?.platform?.arch),a=r?.state==="revoked"?"revoked":r?.state==="unreachable"||e.nodeState==="offline"?"unreachable":"ready";return{nodeId:n,name:e.nodeName?.trim()||r?.name||c.remoteAgent_location_unknownMachine(),platform:o,state:a}}function We(e,t){if(!e)return null;const n=t&&t.id===e?t:null;return{nodeId:e,name:n?.name||c.remoteAgent_location_unknownMachine(),platform:m(n?.platform?.os,n?.platform?.arch),state:n?.state==="revoked"?"revoked":n?.state==="unreachable"?"unreachable":"ready"}}function B(e){switch(e){case"starting":return c.cloudMachines_agent_starting();case"running":return c.cloudMachines_agent_running();case"paused":return c.cloudMachines_agent_paused();case"resuming":return c.cloudMachines_agent_resuming();case"pausing":return c.cloudMachines_agent_pausing();case"stopping":return c.cloudMachines_agent_stopping();default:return null}}function je(e){const t=B(e.cloud?.state);return t?c.cloudMachines_agent_chip({machine:e.name,state:t}):e.name}function He(e){if(e.cloud){const n=B(e.cloud.state),r=c.remoteAgent_location_tooltipNoPlatform({machine:e.name});return n?c.remoteAgent_location_tooltipWithState({location:r,state:n}):r}const t=e.platform?c.remoteAgent_location_tooltip({machine:e.name,platform:e.platform}):c.remoteAgent_location_tooltipNoPlatform({machine:e.name});switch(e.state){case"unreachable":return c.remoteAgent_location_tooltipWithState({location:t,state:c.remoteMachines_state_unreachable_label()});case"revoked":return c.remoteAgent_location_tooltipWithState({location:t,state:c.remoteMachines_state_revoked_label()});default:return t}}function x(e,t){return!e||!t?null:e.placementError?"failed":t.state==="revoked"?"revoked":t.state==="unreachable"?"unreachable":e.effectiveIsolation==="pending"||e.cloudStart?"starting":e.setup?.state==="failed"?"setup-failed":e.setup?.state==="running"?"setup-running":null}function w(e){if(!e.endsWith("}"))return null;for(let t=e.indexOf(" {");t>=0;t=e.indexOf(" {",t+1))try{const n=JSON.parse(e.slice(t+1));if(n&&typeof n=="object"&&typeof n.code=="string")return{message:e.slice(0,t).trim(),data:n}}catch{}return null}function fe(e,t){const n=e.detail??"",r=w(n),o=e.code==="machine-update-required"||r?.data.code==="machine-update-required";if(o&&r?.data.reason==="prepared-checkout")return{updateRequired:o,message:c.remoteAgent_updateRequired_preparedCheckout({machine:t})};const a=E(r?.data),s=a??(e.code?E({code:e.code}):null);return s?{updateRequired:o,message:r?.message||n,cloud:s,cloudDetailKnown:!!a}:{updateRequired:o,message:r?.message||n}}function Ke(e){if(!_(e?.placement?.target)||!e.placementError||e.status!==K.Error)return null;const t=fe(e.placementError,"");return t.cloud?t:null}const me=["attachments-too-large-for-machine:","node-prompt-too-large:"],pe="remote-agent-unsupported:";function T(e){return new Intl.NumberFormat(void 0,{maximumFractionDigits:1}).format(e/1048576)}function ze(e){const t=w(e)?.message??e;for(const r of me){const o=t.indexOf(r);if(o<0)continue;const a=t.slice(o+r.length).trim().replace(/^[a-z][\w]*(?:\.[\w]+)+:\s*/i,""),s=/come to (\d+) bytes\b.*?over its (\d+)-byte limit/.exec(a);return s?c.remoteAgent_attachmentsTooLargeSized_error({size:T(Number(s[1])),limit:T(Number(s[2]))}):a?c.remoteAgent_attachmentsTooLarge_error({detail:a}):c.remoteAgent_attachmentsTooLargeNoDetail_error()}const n=t.indexOf(pe);return n>=0&&/attachment/i.test(t.slice(n))?c.remoteAgent_attachmentsUnsupported_error():null}function $e(e){return _(e?.placement?.target)&&x(e,N(e))==="starting"}function Je(e,t){if(!_(e?.placement?.target))return!1;const n=N(e,t);return n?.cloud?.state==="resuming"&&x(e,n)===null}const S="",u="host:",O="cloud:";function M(e){return`${O}${e}`}function A(e){return e?.startsWith(O)&&e.slice(O.length)||null}const Xe=M("e2b");function he(e,t){return e?.find(n=>M(n.cloudMachineId)===t&&n.unavailableReason===null)}const ge=new Set(["connected","disconnected"]);function be(e){switch(e){case"unreachable":return c.remoteMachines_state_unreachable_label();case"revoked":return c.remoteMachines_state_revoked_label();case"update-required":return c.remoteMachines_state_updateRequired_label();default:return}}function I(e){return ge.has(e.state)}function _e({backendLabel:e,backendPlatform:t,machines:n,cloud:r,orchestrator:o=!1}){const a=[...o?[]:[{id:u,label:e,platform:m(t?.os,t?.arch),disabled:!1}],...n.map(s=>{const l=m(s.platform?.os,s.platform?.arch);return I(s)?{id:s.id,label:s.name,platform:l,disabled:!1}:{id:s.id,label:s.name,platform:l,disabled:!0,reason:be(s.state)}})];for(const s of r??[])a.push({id:M(s.cloudMachineId),label:s.label,platform:null,kind:"cloud",disabled:s.unavailableReason!==null,...s.unavailableReason?{reason:s.unavailableReason}:s.needsProfile?{hint:c.cloudMachines_startOn_hint()}:{}});return a}function Ge(e,t=""){return e.find(n=>n.id===u)?.label??t}function Se(e){return(e.find(t=>!t.disabled)??e[0])?.id??S}function Ye(e,t,n){if(e!==u){if(e!==S)return A(e)?void 0:e;if(n)return t.find(r=>r.id!==u&&r.kind!=="cloud"&&!r.disabled)?.id}}function Me({remoteMachinesVisible:e,supported:t,machines:n,cloud:r}){return e&&t&&(n.some(I)||(r??[]).some(o=>o.unavailableReason===null))}function Ae(e,t){return e.map(n=>{if(n.kind!=="cloud")return n;const r=t?.find(o=>M(o.cloudMachineId)===n.id)?.unavailableReason;return r?{...n,disabled:!0,reason:r,hint:void 0}:n})}function Oe(e,t,n,r){const o=r?Se(r):S;if(!e)return o;if(e===u)return!r||r.some(s=>s.id===u)?u:o;if(A(e))return he(n,e)?e:o;const a=t.find(s=>s.id===e);return a&&I(a)?a.id:o}function Ze(e,t){return t===u&&e!==u?S:t}function Qe(e,{cloudEntries:t=!1,providerOf:n}={}){if(e===u)return{target:"local"};const r=A(e);if(r){const o=n?.(r);return t&&o&&o!=="e2b"?{target:"cloud",checkout:"isolated",cloudMachineId:r}:t?{target:"e2b",checkout:"isolated",cloudMachineId:r}:{target:"e2b",checkout:"isolated"}}return e?{target:"remote",checkout:"isolated",nodeId:e}:void 0}function ve({groups:e,providerRef:t,model:n}){const r=s=>s.options.filter(l=>!l.disabled),o=e.find(s=>s.key===t),a=o?r(o):[];if(n){const s=z(n).modelId;if(a.some(l=>l.value===s))return null}else if(a.length>0)return null;if(o&&a.length>0)return{providerId:o.key,modelId:a[0].value};for(const s of e){if(s.key==="default")continue;const l=r(s);if(l.length>0)return{providerId:s.key,modelId:l[0].value}}return null}function ke(e,t,n,r){const o=e.map(b),a=o.indexOf(t),s=o.indexOf(n);if(a<0||s<0||a===s)return null;let l=s+(r==="after"?1:0);if(a<l&&(l-=1),l===a)return null;const p=[...e],[V]=p.splice(a,1);return p.splice(l,0,V),p.map(se)}function et(e,t,n){const r=e.findIndex(a=>b(a)===t),o=e[r+n];return r<0||!o?null:ke(e,t,b(o),n===-1?"before":"after")}function ye(e,t){if(e===u)return"local";const n=t==="cloud"?A(e):null;return b(n?{kind:"cloud",cloudMachineId:n}:{kind:"machine",nodeId:e})}function Ie(e,t){const n=new Map(t.map((o,a)=>[b(o),a])),r=o=>n.get(ye(o.id,o.kind))??t.length;return e.map((o,a)=>({option:o,index:a})).sort((o,a)=>r(o.option)-r(a.option)||o.index-a.index).map(({option:o})=>o)}function tt(e,t){return t==="orchestrator"?e.filter(n=>n.kind!=="local"):[...e]}const Re=i.createSelector(e=>Z.select(e)||y.select(e)),R=i.createSelector(e=>Re.select(e)&&e.remoteMachines?.supported===!0),nt=i.createSelector(e=>R.select(e)&&J.select(e)&&!y.select(e)),D=i.createSelector(e=>R.select(e)&&e.remoteMachines.machineOrder===!0&&e.remoteMachines.order!==null),Ce=i.createSelector(e=>D.select(e)?e.remoteMachines.order??[]:[]),rt=i.createSelector(e=>e.remoteMachines.orderSaving!==null),C=i.createSelector(e=>Object.values(e.remoteMachines?.machines??{}).sort((t,n)=>t.name.localeCompare(n.name))),ot=i.createSelector(e=>e.remoteMachines.localFingerprint),at=i.createSelector(e=>e.remoteMachines.pending),st=i.createSelector(e=>e.remoteMachines.failures),ct=i.createSelector(e=>e.remoteMachines.executorBackends??[]),Ee=i.createSelector((e,t)=>{if(t===$)return c.layout_daemonStatus_localConnection_label();const n=P(e.connections.connections,t);return n?X(n):t}),Te=i.createSelector(e=>Ee.select(e,e.connections.windowBackendId)),it=i.createSelector((e,t)=>(t?e.remoteMachines.machines[t]??e.cloudMachines?.machines[t]:void 0)??null),lt=i.createSelector((e,t)=>{const n=e.providerSettings?.profiles;return G({catalogProfiles:ee.select(e,t),defaultRemoteIncompatibility:v.select(e,t),defaultRemoteLaunch:Q.select(e,t),profileDefaults:Object.values(n?.defaults??{}),profilesLoadStatus:n?.loadStatus??"idle"})}),dt=i.createSelector(e=>Object.fromEntries(Object.values(e.providerSettings?.profiles?.defaults??{}).map(t=>[t.baseProviderId,t.env.length>0]))),F=i.createSelector(e=>Me({remoteMachinesVisible:R.select(e),supported:e.remoteMachines?.initialAgentPlacement===!0,machines:C.select(e),cloud:k(e)}));function Pe(e){const t=P(e.connections.connections,e.connections.windowBackendId);return t?.hostOs?{os:t.hostOs,arch:t.hostArch}:void 0}const U=i.createSelector(e=>{const t=y.select(e),n=_e({backendLabel:Te.select(e),backendPlatform:Pe(e),machines:C.select(e),cloud:k(e),orchestrator:t});return D.select(e)?Ie(n,Ce.select(e)):n}),ut=i.createSelector(e=>F.select(e)?U.select(e):[]),ft=i.createSelector(e=>e.remoteMachines?.initialAgentPlacement===!0),mt=i.createSelector((e,t,n)=>{if(!F.select(e))return S;const r=q(e,n);return Oe(t,C.select(e),r,Ae(U.select(e),r))});function q(e,t){const n=k(e);if(!n||!t)return n;const r=e.cloudMachines?.providers??{};return n.map(o=>{if(o.unavailableReason)return o;const a=Y(e,t,r[o.cloudMachineId]??null);return a?{...o,unavailableReason:a}:o})}const pt=i.createSelector((e,t)=>q(e,t));export{et as $,mt as A,ct as B,ft as C,ot as D,Ce as E,rt as F,D as G,it as H,st as I,at as J,C as K,Re as L,R as M,lt as N,nt as O,pt as P,ut as Q,U as R,S,F as T,Ge as U,M as V,A as W,Se as X,Ye as Y,Ae as Z,Ze as _,Xe as a,u as b,Ke as c,$e as d,Je as e,je as f,N as g,He as h,x as i,qe as j,tt as k,Qe as l,We as m,ve as n,b as o,m as p,ke as q,Ue as r,Ve as s,Fe as t,fe as u,ze as v,Oe as w,Ee as x,Te as y,dt as z};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{_ as Z}from"./Dws-34a7.js";import{b as u,ay as o,aD as I,ah as ee,s as te,t as ne,u as se,aL as L,ad as re,ae as ie,a9 as D,Q as S,af as R,X as ae,W as oe,a4 as ce,aR as le,ba as ue,at as de,bh as fe}from"./CC-IHSah.js";import{G as k}from"./-xK_vQQs.js";function P(e,{edgePathsClass:n="edges edgePaths"}={}){const t=e.insert("g").attr("class","root"),r=t.insert("g").attr("class","clusters"),s=t.insert("g").attr("class",n),i=t.insert("g").attr("class","edgeLabels"),c=t.insert("g").attr("class","nodes");return{clusters:r,edgePaths:s,edgeLabels:i,nodes:c,rootGroups:t}}u(P,"createLayoutElementGroups");async function T(e,n,t){if(n.label){const{shapeSvg:r,bbox:s}=await de(e,t===void 0?n:{...n,width:t});n.labelBBox={width:s.width,height:s.height},r.remove()}else n.labelBBox={width:0,height:0}}u(T,"measureGroupLabel");async function _(e,n,t){const r=await ee(e,n,t),s=r.node()?.getBBox()??{width:0,height:0};return n.width=s.width,n.height=s.height,r}u(_,"insertMeasuredNode");function B(e,n,t){let r=e;const s=new Set;for(;r;){if(r.dir)return r.dir;if(!r.parentId||s.has(r.parentId))break;s.add(r.parentId),r=n.get(r.parentId)}return t}u(B,"resolveNodeDir");async function M(e,n,t={}){const r=new k({multigraph:!0,compound:!0}),s=[...n.edges],i=ae(),c=P(e),{edgeLabels:f,nodes:a}=c,g=new Map,m=new Map(n.nodes.map(d=>[d.id,d])),C=n.direction,w=e.node()!=null;await Promise.all(n.nodes.map(async d=>{if(d.isGroup){if(w){const b=t.unwrapGroupLabels&&d.labelType!=="markdown";await T(a,d,b?Number.POSITIVE_INFINITY:void 0)}r.setNode(d.id,{...d})}else{if(w){const b=await _(a,d,{config:i,dir:B(d,m,C)});g.set(d.id,b)}r.setNode(d.id,{...d})}}));for(const d of s)w&&D(d)&&await R(f,d),r.setEdge(d.start,d.end,{...d},d.id),n.edges.some(E=>E.id===d.id)||n.edges.push(d);if(globalThis.mermaidCaptureSizes){const{captureNodeSizes:d}=await Z(async()=>{const{captureNodeSizes:b}=await import("./D1zX4MuR.js");return{captureNodeSizes:b}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]),import.meta.url);d(e,n)}return{graph:r,groups:c,nodeElements:g}}u(M,"createGraphWithElements");var l=new Map,h=new Map,A=new Map,ge=u(()=>{h.clear(),A.clear(),l.clear()},"clear"),v=u((e,n)=>{const t=h.get(n)||[];return o.trace("In isDescendant",n," ",e," = ",t.includes(e)),t.includes(e)},"isDescendant"),be=u((e,n)=>{const t=h.get(n)||[];return o.info("Descendants of ",n," is ",t),o.info("Edge is ",e),e.v===n||e.w===n?!1:t?t.includes(e.v)||v(e.v,n)||v(e.w,n)||t.includes(e.w):(o.debug("Tilt, ",n,",not in descendants"),!1)},"edgeInCluster"),X=u((e,n,t,r)=>{o.debug("Copying children of ",e,"root",r,"data",n.node(e),r);const s=n.children(e)||[];e!==r&&s.push(e),o.debug("Copying (nodes) clusterId",e,"nodes",s),s.forEach(i=>{if(n.children(i).length>0)X(i,n,t,r);else{const c=n.node(i);o.info("cp ",i," to ",r," with parent ",e),t.setNode(i,c),r!==n.parent(i)&&(o.debug("Setting parent",i,n.parent(i)),t.setParent(i,n.parent(i))),e!==r&&i!==e?(o.debug("Setting parent",i,e),t.setParent(i,e)):(o.info("In copy ",e,"root",r,"data",n.node(e),r),o.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==r,"node!==clusterId",i!==e));const f=n.edges(i);o.debug("Copying Edges",f),f.forEach(a=>{o.info("Edge",a);const g=n.edge(a.v,a.w,a.name);o.info("Edge data",g,r);try{be(a,r)?(o.info("Copying as ",a.v,a.w,g,a.name),t.setEdge(a.v,a.w,g,a.name),o.info("newGraph edges ",t.edges(),t.edge(t.edges()[0]))):o.info("Skipping copy of edge ",a.v,"-->",a.w," rootId: ",r," clusterId:",e)}catch(m){o.error(m)}})}o.debug("Removing node",i),n.removeNode(i)})},"copy"),G=u((e,n)=>{const t=n.children(e);let r=[...t];for(const s of t)A.set(s,e),r=[...r,...G(s,n)];return r},"extractDescendants"),he=u((e,n,t)=>{const r=e.edges().filter(a=>a.v===n||a.w===n),s=e.edges().filter(a=>a.v===t||a.w===t),i=r.map(a=>({v:a.v===n?t:a.v,w:a.w===n?n:a.w})),c=s.map(a=>({v:a.v,w:a.w}));return i.filter(a=>c.some(g=>a.v===g.v&&a.w===g.w))},"findCommonEdges"),p=u((e,n,t)=>{const r=n.children(e);if(o.trace("Searching children of id ",e,r),r.length<1)return e;let s;for(const i of r){const c=p(i,n,t),f=he(n,t,c);if(c)if(f.length>0)s=c;else return c}return s},"findNonClusterChild"),x=u(e=>!l.has(e)||!l.get(e).externalConnections?e:l.has(e)?l.get(e).id:e,"getAnchorId"),Ne=u((e,n)=>{if(!e||n>10){o.debug("Opting out, no graph ");return}else o.debug("Opting in, graph ");e.nodes().forEach(function(t){e.children(t).length>0&&(o.debug("Cluster identified",t," Replacement id in edges: ",p(t,e,t)),h.set(t,G(t,e)),l.set(t,{id:p(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){const r=e.children(t),s=e.edges();r.length>0?(o.debug("Cluster identified",t,h),s.forEach(i=>{const c=v(i.v,t),f=v(i.w,t);c^f&&(o.debug("Edge: ",i," leaves cluster ",t),o.debug("Descendants of XXX ",t,": ",h.get(t)),l.get(t).externalConnections=!0)})):o.debug("Not a cluster ",t,h)});for(let t of l.keys()){const r=l.get(t).id,s=e.parent(r);s!==t&&l.has(s)&&!l.get(s).externalConnections&&(l.get(t).id=s);const i=e.edges().some(c=>c.v===t);if(r&&l.get(t)?.externalConnections&&i&&$(e,r,t)){const c=me(e,t,e.parent(r));c&&(l.get(t).id=c)}}e.edges().forEach(function(t){const r=e.edge(t);o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let s=t.v,i=t.w;if(o.debug("Fix XXX",l,"ids:",t.v,t.w,"Translating: ",l.get(t.v)," --- ",l.get(t.w)),l.get(t.v)||l.get(t.w)){if(o.debug("Fixing and trying - removing XXX",t.v,t.w,t.name),s=x(t.v),i=x(t.w),e.removeEdge(t.v,t.w,t.name),s!==t.v){const c=e.parent(s);l.get(c).externalConnections=!0,r.fromCluster=t.v}if(i!==t.w){const c=e.parent(i);l.get(c).externalConnections=!0,r.toCluster=t.w}o.debug("Fix Replacing with XXX",s,i,t.name),e.setEdge(s,i,r,t.name)}}),O(e,0),o.trace(l)},"adjustClustersAndEdges"),O=u((e,n)=>{if(n>10){o.error("Bailing out");return}let t=e.nodes(),r=!1;for(const s of t){const i=e.children(s);r=r||i.length>0}if(!r){o.debug("Done, no node has children",e.nodes());return}o.debug("Nodes = ",t,n);for(const s of t)if(o.debug("Extracting node",s,l,l.has(s)&&!l.get(s).externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",n),!l.has(s))o.debug("Not a cluster",s,n);else if(!l.get(s).externalConnections&&e.children(s)&&e.children(s).length>0){o.debug("Cluster without external connections, without a parent and with children",s,n);let c=e.graph().rankdir==="TB"?"LR":"TB";l.get(s)?.clusterData?.dir&&(c=l.get(s).clusterData.dir,o.debug("Fixing dir",l.get(s).clusterData.dir,c));const f=new k({multigraph:!0,compound:!0}).setGraph({rankdir:c,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});X(s,e,f,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:l.get(s).clusterData,label:l.get(s).label,graph:f})}else o.debug("Cluster ** ",s," **not meeting the criteria !externalConnections:",!l.get(s).externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),n),o.debug(l);t=e.nodes(),o.debug("New list of nodes",t);for(const s of t){const i=e.node(s);o.debug(" Now next level",s,i),i?.clusterNode&&O(i.graph,n+1)}},"extractor"),F=u((e,n)=>{if(n.length===0)return[];let t=Object.assign([],n);return n.forEach(r=>{const s=e.children(r),i=F(e,s);t=[...t,...i]}),t},"sorter"),ye=u(e=>F(e,e.children()),"sortNodesByHierarchy"),$=u((e,n,t)=>{let r=e.parent(n);for(;r&&r!==t;){const s=l.get(r);if(s&&!s.externalConnections)return!0;r=e.parent(r)}return!1},"isNodeInExtractableCluster"),me=u((e,n,t)=>{const r=e.children(n)??[];for(const s of r){if(s===t||v(s,t))continue;const i=p(s,e,n);if(i&&!$(e,i,n))return i}return null},"findSafeAnchorNode");function we({prepareLayout:e,measureLayout:n,runLayoutCore:t,paintLayout:r,afterPaint:s,paintOptions:i}){const c=n??z;return u(async function(a,g,m,C){const w=g.select("g");(m?.insertMarkers??I)(w,a.markers,a.type,a.diagramId),j();const d={element:w,helpers:m,options:C};d.preparedLayout=await e?.(a,d);const b=await c(a,d),E=await t(a,d),N={...d,measure:b};r?await r(a,N,E):await H(a,N,i),await s?.(a,N,E)},"render")}u(we,"createCommonLayoutRenderer");function j(){te(),ne(),se(),ge()}u(j,"clearLayoutRenderState");async function z(e,{element:n},t){return await M(n,e,t)}u(z,"defaultMeasureLayout");async function H(e,n,t={}){const{measure:r}=n,{groups:s}=r;for(const c of t.getNodes?.(e,n)??e.nodes)t.skipNode?.(c,n)||await W(s,c,n,t);const i=V(e.nodes);for(const c of e.edges)Q(c,t)||await Y(s,c,i,e,t,n)}u(H,"paintLayoutData");async function W(e,n,t,r){n.clusterNode?L(n):J(n,t,r)?await re(e.clusters,n):L(n)}u(W,"paintLayoutNode");function J(e,n,t){return e.isGroup===!0&&(t.isCluster?.(e,n)??!0)}u(J,"shouldPaintAsCluster");function V(e){const n=new Map;for(const t of e)t?.id&&n.set(t.id,t);return n}u(V,"buildNodeLookup");function Q(e,n){return e.isLayoutOnly||!!n.skipEdge?.(e)}u(Q,"shouldSkipPaintEdge");async function Y(e,n,t,r,s,i){const c=ie(e.edgePaths,{...n},s.clusterDb??new Map,r.type,y(n.start,n,t,i,s),y(n.end,n,t,i,s),r.diagramId,q(n,s),r.layoutAlgorithm);D(n)&&(S.has(n.id)||await R(e.edgeLabels,n),K(n,c))}u(Y,"paintLayoutEdge");function y(e,n,t,r,s){return s.getEdgeNode?.(e,n,r)??(e?t.get(e)??{}:{})}u(y,"getRenderedNode");function q(e,n){return typeof n.skipIntersect=="function"?n.skipIntersect(e):n.skipIntersect??!1}u(q,"shouldSkipIntersect");function K(e,n){const t=n?.updatedPath??n?.originalPath,r=oe(),{subGraphTitleTotalMargin:s}=ce({flowchart:r.flowchart??{}});if(e.label){const i=S.get(e.id),{x:c,y:f}=le(e,n);i.attr("transform",`translate(${c}, ${f+s/2})`)}for(const[i,c]of[["startLeft",e.startLabelLeft],["startRight",e.startLabelRight],["endLeft",e.endLabelLeft],["endRight",e.endLabelRight]])if(c){const{x:f,y:a}=U(e,i,t);ue.get(e.id)[i].attr("transform",`translate(${f}, ${a})`)}}u(K,"positionRenderedEdgeLabel");var ve={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function U(e,n,t){const r=e.terminalLabelCenters?.[n];if(r)return{...r};if(!t)return{x:e.x,y:e.y};const s=n.startsWith("start")?e.arrowTypeStart:e.arrowTypeEnd;return fe.calcTerminalLabelPosition(s?10:0,ve[n],t)}u(U,"terminalLabelTranslate");export{Ne as a,we as b,l as c,P as d,z as e,p as f,_ as i,ye as s};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/XMluVOSf.js","/app/immutable/chunks/BolJpU8l.js","/app/immutable/chunks/DWvCfaBg.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/awY5HvZY.js","/app/immutable/chunks/3Kr2ijlK.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CIoJPvjg.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/DY5rw8pn.js","/app/immutable/chunks/Bu3PKqut.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/D7yetF0v.js","/app/immutable/chunks/Y_tkjygB.js","/app/immutable/chunks/VTJf_qPn.js","/app/immutable/chunks/BCuI_zgX.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CueOVPTy.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/CIKXOyvw.js","/app/immutable/chunks/zFAkpaJn.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BrDfJqC4.js","/app/immutable/chunks/W05hyx94.js","/app/immutable/chunks/CFB2mNds.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/Bb-hI5du.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/DpvQ3NRH.js","/app/immutable/chunks/Btst3lgy.js","/app/immutable/chunks/CQ5BHnSj.js","/app/immutable/chunks/DJJ2Xrlq.js","/app/immutable/chunks/UqcU95a7.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/D5xlMOwU.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/BKD7o1lQ.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/Drf1gLyo.js","/app/immutable/chunks/bIL0xbKX.js","/app/immutable/chunks/BOnTc4ny.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/CTqRHXfu.js","/app/immutable/chunks/DEKjIPd8.js","/app/immutable/chunks/BRdQpeCl.js","/app/immutable/chunks/BlRGZv8u.js","/app/immutable/chunks/B3OJ_2Dd.js","/app/immutable/chunks/B8foSZsl.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/CdGl_2eX.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/77KTvr2w.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/B0kNPCxU.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/Df4a242o.js","/app/immutable/chunks/DeY70dof.js","/app/immutable/chunks/yqEyUNVG.js","/app/immutable/chunks/2aKRVAvL.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/BXHbm15d.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/CsilY7l9.js","/app/immutable/assets/slider.kL-wkHnx.css","/app/immutable/chunks/DAVG7sIL.js","/app/immutable/chunks/BweHPPaS.js","/app/immutable/chunks/DAsc1V4f.js","/app/immutable/chunks/BsieX9dN.js","/app/immutable/chunks/BbIcudMY.js","/app/immutable/chunks/CUA9hM4m.js","/app/immutable/chunks/CRUcTVFP.js","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as Z}from"./DWvCfaBg.js";import{b as u,ay as o,aD as I,ah as ee,s as te,t as ne,u as se,aL as L,ad as re,ae as ie,a9 as D,Q as S,af as R,X as ae,W as oe,a4 as ce,aR as le,ba as ue,at as de,bh as fe}from"./BolJpU8l.js";import{G as k}from"./-xK_vQQs.js";function P(e,{edgePathsClass:n="edges edgePaths"}={}){const t=e.insert("g").attr("class","root"),r=t.insert("g").attr("class","clusters"),s=t.insert("g").attr("class",n),i=t.insert("g").attr("class","edgeLabels"),c=t.insert("g").attr("class","nodes");return{clusters:r,edgePaths:s,edgeLabels:i,nodes:c,rootGroups:t}}u(P,"createLayoutElementGroups");async function T(e,n,t){if(n.label){const{shapeSvg:r,bbox:s}=await de(e,t===void 0?n:{...n,width:t});n.labelBBox={width:s.width,height:s.height},r.remove()}else n.labelBBox={width:0,height:0}}u(T,"measureGroupLabel");async function _(e,n,t){const r=await ee(e,n,t),s=r.node()?.getBBox()??{width:0,height:0};return n.width=s.width,n.height=s.height,r}u(_,"insertMeasuredNode");function B(e,n,t){let r=e;const s=new Set;for(;r;){if(r.dir)return r.dir;if(!r.parentId||s.has(r.parentId))break;s.add(r.parentId),r=n.get(r.parentId)}return t}u(B,"resolveNodeDir");async function M(e,n,t={}){const r=new k({multigraph:!0,compound:!0}),s=[...n.edges],i=ae(),c=P(e),{edgeLabels:f,nodes:a}=c,g=new Map,m=new Map(n.nodes.map(d=>[d.id,d])),C=n.direction,w=e.node()!=null;await Promise.all(n.nodes.map(async d=>{if(d.isGroup){if(w){const b=t.unwrapGroupLabels&&d.labelType!=="markdown";await T(a,d,b?Number.POSITIVE_INFINITY:void 0)}r.setNode(d.id,{...d})}else{if(w){const b=await _(a,d,{config:i,dir:B(d,m,C)});g.set(d.id,b)}r.setNode(d.id,{...d})}}));for(const d of s)w&&D(d)&&await R(f,d),r.setEdge(d.start,d.end,{...d},d.id),n.edges.some(E=>E.id===d.id)||n.edges.push(d);if(globalThis.mermaidCaptureSizes){const{captureNodeSizes:d}=await Z(async()=>{const{captureNodeSizes:b}=await import("./XMluVOSf.js");return{captureNodeSizes:b}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]),import.meta.url);d(e,n)}return{graph:r,groups:c,nodeElements:g}}u(M,"createGraphWithElements");var l=new Map,h=new Map,A=new Map,ge=u(()=>{h.clear(),A.clear(),l.clear()},"clear"),v=u((e,n)=>{const t=h.get(n)||[];return o.trace("In isDescendant",n," ",e," = ",t.includes(e)),t.includes(e)},"isDescendant"),be=u((e,n)=>{const t=h.get(n)||[];return o.info("Descendants of ",n," is ",t),o.info("Edge is ",e),e.v===n||e.w===n?!1:t?t.includes(e.v)||v(e.v,n)||v(e.w,n)||t.includes(e.w):(o.debug("Tilt, ",n,",not in descendants"),!1)},"edgeInCluster"),X=u((e,n,t,r)=>{o.debug("Copying children of ",e,"root",r,"data",n.node(e),r);const s=n.children(e)||[];e!==r&&s.push(e),o.debug("Copying (nodes) clusterId",e,"nodes",s),s.forEach(i=>{if(n.children(i).length>0)X(i,n,t,r);else{const c=n.node(i);o.info("cp ",i," to ",r," with parent ",e),t.setNode(i,c),r!==n.parent(i)&&(o.debug("Setting parent",i,n.parent(i)),t.setParent(i,n.parent(i))),e!==r&&i!==e?(o.debug("Setting parent",i,e),t.setParent(i,e)):(o.info("In copy ",e,"root",r,"data",n.node(e),r),o.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==r,"node!==clusterId",i!==e));const f=n.edges(i);o.debug("Copying Edges",f),f.forEach(a=>{o.info("Edge",a);const g=n.edge(a.v,a.w,a.name);o.info("Edge data",g,r);try{be(a,r)?(o.info("Copying as ",a.v,a.w,g,a.name),t.setEdge(a.v,a.w,g,a.name),o.info("newGraph edges ",t.edges(),t.edge(t.edges()[0]))):o.info("Skipping copy of edge ",a.v,"-->",a.w," rootId: ",r," clusterId:",e)}catch(m){o.error(m)}})}o.debug("Removing node",i),n.removeNode(i)})},"copy"),G=u((e,n)=>{const t=n.children(e);let r=[...t];for(const s of t)A.set(s,e),r=[...r,...G(s,n)];return r},"extractDescendants"),he=u((e,n,t)=>{const r=e.edges().filter(a=>a.v===n||a.w===n),s=e.edges().filter(a=>a.v===t||a.w===t),i=r.map(a=>({v:a.v===n?t:a.v,w:a.w===n?n:a.w})),c=s.map(a=>({v:a.v,w:a.w}));return i.filter(a=>c.some(g=>a.v===g.v&&a.w===g.w))},"findCommonEdges"),p=u((e,n,t)=>{const r=n.children(e);if(o.trace("Searching children of id ",e,r),r.length<1)return e;let s;for(const i of r){const c=p(i,n,t),f=he(n,t,c);if(c)if(f.length>0)s=c;else return c}return s},"findNonClusterChild"),x=u(e=>!l.has(e)||!l.get(e).externalConnections?e:l.has(e)?l.get(e).id:e,"getAnchorId"),Ne=u((e,n)=>{if(!e||n>10){o.debug("Opting out, no graph ");return}else o.debug("Opting in, graph ");e.nodes().forEach(function(t){e.children(t).length>0&&(o.debug("Cluster identified",t," Replacement id in edges: ",p(t,e,t)),h.set(t,G(t,e)),l.set(t,{id:p(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){const r=e.children(t),s=e.edges();r.length>0?(o.debug("Cluster identified",t,h),s.forEach(i=>{const c=v(i.v,t),f=v(i.w,t);c^f&&(o.debug("Edge: ",i," leaves cluster ",t),o.debug("Descendants of XXX ",t,": ",h.get(t)),l.get(t).externalConnections=!0)})):o.debug("Not a cluster ",t,h)});for(let t of l.keys()){const r=l.get(t).id,s=e.parent(r);s!==t&&l.has(s)&&!l.get(s).externalConnections&&(l.get(t).id=s);const i=e.edges().some(c=>c.v===t);if(r&&l.get(t)?.externalConnections&&i&&$(e,r,t)){const c=me(e,t,e.parent(r));c&&(l.get(t).id=c)}}e.edges().forEach(function(t){const r=e.edge(t);o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let s=t.v,i=t.w;if(o.debug("Fix XXX",l,"ids:",t.v,t.w,"Translating: ",l.get(t.v)," --- ",l.get(t.w)),l.get(t.v)||l.get(t.w)){if(o.debug("Fixing and trying - removing XXX",t.v,t.w,t.name),s=x(t.v),i=x(t.w),e.removeEdge(t.v,t.w,t.name),s!==t.v){const c=e.parent(s);l.get(c).externalConnections=!0,r.fromCluster=t.v}if(i!==t.w){const c=e.parent(i);l.get(c).externalConnections=!0,r.toCluster=t.w}o.debug("Fix Replacing with XXX",s,i,t.name),e.setEdge(s,i,r,t.name)}}),O(e,0),o.trace(l)},"adjustClustersAndEdges"),O=u((e,n)=>{if(n>10){o.error("Bailing out");return}let t=e.nodes(),r=!1;for(const s of t){const i=e.children(s);r=r||i.length>0}if(!r){o.debug("Done, no node has children",e.nodes());return}o.debug("Nodes = ",t,n);for(const s of t)if(o.debug("Extracting node",s,l,l.has(s)&&!l.get(s).externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",n),!l.has(s))o.debug("Not a cluster",s,n);else if(!l.get(s).externalConnections&&e.children(s)&&e.children(s).length>0){o.debug("Cluster without external connections, without a parent and with children",s,n);let c=e.graph().rankdir==="TB"?"LR":"TB";l.get(s)?.clusterData?.dir&&(c=l.get(s).clusterData.dir,o.debug("Fixing dir",l.get(s).clusterData.dir,c));const f=new k({multigraph:!0,compound:!0}).setGraph({rankdir:c,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});X(s,e,f,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:l.get(s).clusterData,label:l.get(s).label,graph:f})}else o.debug("Cluster ** ",s," **not meeting the criteria !externalConnections:",!l.get(s).externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),n),o.debug(l);t=e.nodes(),o.debug("New list of nodes",t);for(const s of t){const i=e.node(s);o.debug(" Now next level",s,i),i?.clusterNode&&O(i.graph,n+1)}},"extractor"),F=u((e,n)=>{if(n.length===0)return[];let t=Object.assign([],n);return n.forEach(r=>{const s=e.children(r),i=F(e,s);t=[...t,...i]}),t},"sorter"),ye=u(e=>F(e,e.children()),"sortNodesByHierarchy"),$=u((e,n,t)=>{let r=e.parent(n);for(;r&&r!==t;){const s=l.get(r);if(s&&!s.externalConnections)return!0;r=e.parent(r)}return!1},"isNodeInExtractableCluster"),me=u((e,n,t)=>{const r=e.children(n)??[];for(const s of r){if(s===t||v(s,t))continue;const i=p(s,e,n);if(i&&!$(e,i,n))return i}return null},"findSafeAnchorNode");function we({prepareLayout:e,measureLayout:n,runLayoutCore:t,paintLayout:r,afterPaint:s,paintOptions:i}){const c=n??z;return u(async function(a,g,m,C){const w=g.select("g");(m?.insertMarkers??I)(w,a.markers,a.type,a.diagramId),j();const d={element:w,helpers:m,options:C};d.preparedLayout=await e?.(a,d);const b=await c(a,d),E=await t(a,d),N={...d,measure:b};r?await r(a,N,E):await H(a,N,i),await s?.(a,N,E)},"render")}u(we,"createCommonLayoutRenderer");function j(){te(),ne(),se(),ge()}u(j,"clearLayoutRenderState");async function z(e,{element:n},t){return await M(n,e,t)}u(z,"defaultMeasureLayout");async function H(e,n,t={}){const{measure:r}=n,{groups:s}=r;for(const c of t.getNodes?.(e,n)??e.nodes)t.skipNode?.(c,n)||await W(s,c,n,t);const i=V(e.nodes);for(const c of e.edges)Q(c,t)||await Y(s,c,i,e,t,n)}u(H,"paintLayoutData");async function W(e,n,t,r){n.clusterNode?L(n):J(n,t,r)?await re(e.clusters,n):L(n)}u(W,"paintLayoutNode");function J(e,n,t){return e.isGroup===!0&&(t.isCluster?.(e,n)??!0)}u(J,"shouldPaintAsCluster");function V(e){const n=new Map;for(const t of e)t?.id&&n.set(t.id,t);return n}u(V,"buildNodeLookup");function Q(e,n){return e.isLayoutOnly||!!n.skipEdge?.(e)}u(Q,"shouldSkipPaintEdge");async function Y(e,n,t,r,s,i){const c=ie(e.edgePaths,{...n},s.clusterDb??new Map,r.type,y(n.start,n,t,i,s),y(n.end,n,t,i,s),r.diagramId,q(n,s),r.layoutAlgorithm);D(n)&&(S.has(n.id)||await R(e.edgeLabels,n),K(n,c))}u(Y,"paintLayoutEdge");function y(e,n,t,r,s){return s.getEdgeNode?.(e,n,r)??(e?t.get(e)??{}:{})}u(y,"getRenderedNode");function q(e,n){return typeof n.skipIntersect=="function"?n.skipIntersect(e):n.skipIntersect??!1}u(q,"shouldSkipIntersect");function K(e,n){const t=n?.updatedPath??n?.originalPath,r=oe(),{subGraphTitleTotalMargin:s}=ce({flowchart:r.flowchart??{}});if(e.label){const i=S.get(e.id),{x:c,y:f}=le(e,n);i.attr("transform",`translate(${c}, ${f+s/2})`)}for(const[i,c]of[["startLeft",e.startLabelLeft],["startRight",e.startLabelRight],["endLeft",e.endLabelLeft],["endRight",e.endLabelRight]])if(c){const{x:f,y:a}=U(e,i,t);ue.get(e.id)[i].attr("transform",`translate(${f}, ${a})`)}}u(K,"positionRenderedEdgeLabel");var ve={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function U(e,n,t){const r=e.terminalLabelCenters?.[n];if(r)return{...r};if(!t)return{x:e.x,y:e.y};const s=n.startsWith("start")?e.arrowTypeStart:e.arrowTypeEnd;return fe.calcTerminalLabelPosition(s?10:0,ve[n],t)}u(U,"terminalLabelTranslate");export{Ne as a,we as b,l as c,P as d,z as e,p as f,_ as i,ye as s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as gt}from"./
|
|
1
|
+
import{g as gt}from"./CGHwi-2H.js";import{d as mt,g as lt,f as xt,e as kt}from"./D9_wDL10.js";import{U as _t,aZ as vt,V as bt,a_ as wt,Y as Tt,b0 as St,b as s,X as R,aW as H,B as $t,r as Mt,d as it}from"./BolJpU8l.js";var U=(function(){var t=s(function(h,r,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=r);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],g={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(r,n,l,y,d,c,v){var k=c.length-1;switch(d){case 1:return c[k-1];case 2:this.$=[];break;case 3:c[k-1].push(c[k]),this.$=c[k-1];break;case 4:case 5:this.$=c[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 9:this.$=c[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 13:y.addTask(c[k-1],c[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:s(function(r){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,k="",C=0,Q=0,yt=2,D=1,dt=c.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(r,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;c.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}s(pt,"popStack");function tt(){var w;return w=y.pop()||_.lex()||D,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=n.symbols_[w]||w),w}s(tt,"lex");for(var b,A,T,q,F={},N,M,et,W;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((b===null||typeof b>"u")&&(b=tt()),T=v[A]&&v[A][b]),typeof T>"u"||!T.length||!T[0]){var X="";W=[];for(N in v[A])this.terminals_[N]&&N>yt&&W.push("'"+this.terminals_[N]+"'");_.showPosition?X="Parse error on line "+(C+1)+`:
|
|
2
2
|
`+_.showPosition()+`
|
|
3
3
|
Expecting `+W.join(", ")+", got '"+(this.terminals_[b]||b)+"'":X="Parse error on line "+(C+1)+": Unexpected "+(b==D?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(X,{text:_.match,token:this.terminals_[b]||b,line:_.yylineno,loc:Y,expected:W})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+b);switch(T[0]){case 1:l.push(b),d.push(_.yytext),c.push(_.yylloc),l.push(T[1]),b=null,Q=_.yyleng,k=_.yytext,C=_.yylineno,Y=_.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=d[d.length-M],F._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},ft&&(F._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),q=this.performAction.apply(F,[k,Q,C,I.yy,T[1],d,c].concat(dt)),typeof q<"u")return q;M&&(l=l.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),d.push(F.$),c.push(F._$),et=v[l[l.length-2]][l[l.length-1]],l.push(et);break;case 3:return!0}}return!0},"parse")},m=(function(){var h={EOF:1,parseError:s(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:s(function(r,n){return this.yy=n||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:s(function(r){var n=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Jt}from"./
|
|
1
|
+
import{g as Jt}from"./CGHwi-2H.js";import{g as Zt}from"./yMcNgg0D.js";import{s as $t}from"./B4F7GG5Q.js";import{b as C,a$ as e1,ay as Z,X as Ae,a1 as t1,aP as s1,bh as at,a_ as i1,aZ as r1,b0 as a1,V as n1,U as u1,Y as o1,z as l1,ax as c1,J as h1,aq as st,as as d1,$ as it,aW as rt,r as p1,a2 as f1,N as g1,am as b1,aU as k1,ab as A1,x as m1,aT as C1,p as S1}from"./BolJpU8l.js";import{c as D1}from"./D9_wDL10.js";import{aR as T1}from"./awY5HvZY.js";var E1="flowchart-",y1=["laneRole","laneIndex","drawnExtent"];function Wt(s){if(!s||typeof s!="object")return s;const i={...s};for(const a of y1)Reflect.deleteProperty(i,a);return i}C(Wt,"withoutInternalKeys");var Pe,x1=(Pe=class{constructor(){this.vertexCounter=0,this.config=Ae(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.droppedSubGraphMembers=[],this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=i1,this.setAccDescription=r1,this.setDiagramTitle=a1,this.getAccTitle=n1,this.getAccDescription=u1,this.getDiagramTitle=o1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return l1.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const a of this.vertices.values())if(a.id===i)return this.diagramId?`${this.diagramId}-${a.domId}`:a.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,a,n,r,l,g,o={},m){if(!i||i.trim().length===0)return;let d;if(m!==void 0){let f;m.includes(`
|
|
2
2
|
`)?f=m+`
|
|
3
3
|
`:f=`{
|
|
4
4
|
`+m+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aR as Q,e as ke,aK as oe,bM as ie,bL as le,ad as Ie,a0 as Ce,a2 as Te,H as Ae,aQ as Me,aJ as Pe,bs as pe,cd as $e,c5 as ae,ca as me,bV as O,br as Fe,cb as He,aD as r,bH as y,a5 as L,a7 as Y,ay as ee,W as w,bA as D,bS as V,b_ as N,bn as _e,c9 as J,aA as A,aB as B,bl as U,be as de,b$ as ce,bO as R}from"./3SdAC2_C.js";import{t as ge,bo as M,bw as be,bs as X,bq as Ee,b as ye,bm as z}from"./
|
|
1
|
+
import{aR as Q,e as ke,aK as oe,bM as ie,bL as le,ad as Ie,a0 as Ce,a2 as Te,H as Ae,aQ as Me,aJ as Pe,bs as pe,cd as $e,c5 as ae,ca as me,bV as O,br as Fe,cb as He,aD as r,bH as y,a5 as L,a7 as Y,ay as ee,W as w,bA as D,bS as V,b_ as N,bn as _e,c9 as J,aA as A,aB as B,bl as U,be as de,b$ as ce,bO as R}from"./3SdAC2_C.js";import{t as ge,bo as M,bw as be,bs as X,bq as Ee,b as ye,bm as z}from"./DWvCfaBg.js";import{i as re}from"./VTJf_qPn.js";import{c as ue}from"./Y_tkjygB.js";import{s as Le}from"./BCuI_zgX.js";import{t as Z}from"./ChOMtuod.js";import{f as fe}from"./Drf1gLyo.js";import"./CIKXOyvw.js";import{k as De}from"./bIL0xbKX.js";import{t as We}from"./Bu3PKqut.js";import{Jx as ve,tZ as Se,pi as Re}from"./CIoJPvjg.js";import{s as ze,W as Ne}from"./7i0OJtNQ.js";import{i as Oe,n as Be,d as je}from"./BUTuN2nE.js";import{t as qe,s as Ve,l as Je,u as Ge}from"./wBNgrgMC.js";function yt(i,n){let e=null,u=Q;var v;if(Q){e=Me;for(var s=Pe(document.head);s!==null&&(s.nodeType!==ke||s.data!==i);)s=oe(s);if(s===null)ie(!1);else{var p=oe(s);s.remove(),le(p)}}Q||(v=document.head.appendChild(Ie()));try{Ce(()=>{var l=Te(()=>n(v));l.f|=Ae,Q||(l.nodes===null?l.nodes={start:v,end:v,a:null,t:null}:l.nodes.end=v)})}finally{u&&(ie(!0),le(e))}}const we=3e4,Ke=3;function G(i){return i.type==="browser"&&typeof i.ownerAgentId=="string"&&i.ownerAgentId.length>0}function wt(i,n,e,u,v){return i?Xe(new Map,n,e,u,v):new Map}const Qe={ttlMs:we,maxInactiveTabs:Ke};function Ue(i={}){return{...Qe,...i}}function ht(i,n){if(i.size!==n.size)return!1;for(const[e,u]of i)if(n.get(e)!==u)return!1;return!0}function Xe(i,n,e,u,v){const{ttlMs:s,maxInactiveTabs:p}=Ue(v),l=new Set(n.map(a=>a.id)),d=new Set(n.filter(a=>a.type==="browser").map(a=>a.id)),m=new Set(n.filter(G).map(a=>a.id)),c=new Map;for(const[a,k]of i)l.has(a)&&c.set(a,k);e&&l.has(e)&&c.set(e,u);for(const a of m)c.has(a)||c.set(a,u);for(const[a,k]of c)a!==e&&!d.has(a)&&u-k>=s&&c.delete(a);const g=Array.from(c.entries()).filter(([a])=>a!==e&&!d.has(a)).sort(([,a],[,k])=>a-k);for(;g.length>p;){const a=g.shift();a&&c.delete(a[0])}return c}function xt(i,n,e,u=we,v=[]){const s=new Set(v.filter(l=>l.type==="browser").map(l=>l.id));let p=null;for(const[l,d]of i){if(l===n||s.has(l))continue;const m=Math.max(0,u-(e-d));p=p===null?m:Math.min(p,m)}return p}var Ze=B('<div class="absolute inset-0 z-10 overflow-hidden bg-background"><!></div>'),Ye=B('<div class="relative flex h-full min-h-0 w-full flex-col" data-workspace-home-panel-gate=""><div class="flex min-h-0 w-full flex-1 flex-col"><!></div> <!></div>');function he(i,n){if(new.target)return ge({component:he,...i});pe(n,!0);const e=()=>X(a,"$view$",p),u=()=>X(K,"$loaded$",p),v=()=>X(k,"$canMove$",p),s=()=>X(W,"$waiting$",p),[p,l]=Ee();let d=M(n,"workspaceId",7),m=M(n,"children",7),c=M(n,"clock",23,()=>Date.now);const g=$e(ae(()=>d()));me(()=>{g.set(d())});const a=qe(g),k=Ve(g),W=Je(g),K=Ge(g),S=J(e);let P=O(Fe(Oe)),j=O(!1);ze({markContentLoaded:()=>{y(j,!0)}}),He(()=>{const o={workspaceId:d(),loaded:u(),unavailable:r(S)?.unavailable===!0,contentLoaded:r(j),now:c()()},f=Be(ae(()=>r(P)),o);f.generation!==ae(()=>r(P)).generation&&y(j,!1),y(P,f,!0)});var te={get workspaceId(){return d()},set workspaceId(o){d(o),A()},get children(){return m()},set children(o){m(o),A()},get clock(){return c()},set clock(o=Date.now){c(o),A()},$set:be,$on:(o,f)=>ye(n,o,f)},q=Ye(),t=L(q),h=L(t);De(h,()=>r(P).generation,o=>{var f=Y(),I=ee(f);We(I,m),w(o,f)}),D(t);var $=V(t,2);{var C=o=>{var f=Ze(),I=L(f);Ne(I,{get view(){return r(S)},get canMove(){return v()},get waiting(){return s()},onWait:()=>ve.dispatch(Re(d())),onMove:()=>ve.dispatch(Se(d()))}),D(f),w(o,f)};re($,o=>{r(S)?.unavailable&&o(C)})}D(q),N(()=>t.inert=r(S)?.unavailable?!0:void 0),w(i,q);var F=_e(te);return l(),F}var et=B('<div class="flex h-full flex-col items-center justify-center gap-3 text-subtle"><p> </p> <!></div>'),tt=B('<div class="flex h-full w-full items-center justify-center" role="status"><div class="size-5 animate-pulse rounded-full bg-muted motion-reduce:animate-none"></div></div>'),at=B('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><div class="text-center"><p class="text-lg font-medium text-foreground"> </p> <p class="text-sm"> </p> <p class="text-xs mt-4 text-subtle"> </p> <!></div></div>'),rt=B('<div class="panel-content-renderer h-full w-full overflow-hidden svelte-1ed760w"><!></div>');function nt(i,n){if(new.target)return ge({component:nt,...i});pe(n,!0);let e=M(n,"tab",7),u=M(n,"workspaceId",7),v=M(n,"layoutId",7),s=M(n,"isActive",7,!0),p=M(n,"isPanelFocused",7,!1),l=M(n,"onFocus",7),d=O(0),m=O(null),c=O(void 0),g=O(!1);const a=J(()=>(r(d),Z.get(e().type))),k=J(()=>(r(d),Z.getLoadedComponent(e().type))),W=J(()=>r(m)===e().type&&r(c)?r(c):s()||G(e())?r(k):void 0);me(()=>{const t=e().type,$=s()||G(e()),C=r(d),F=r(a),o=r(k);let f=!1;if((!F||r(m)!==t)&&(y(m,null),y(c,void 0),y(g,!1)),!(!F||!$)){if(o){y(m,t,!0),y(c,o,!0);return}if(!(r(m)===t&&r(c)))return y(g,!1),Z.loadComponent(t).then(I=>{f||!s()&&!G(e())||e().type!==t||r(d)!==C||(y(m,t,!0),y(c,I,!0))},()=>{f||!s()&&!G(e())||e().type!==t||r(d)!==C||y(g,!0)}),()=>{f=!0}}});function K(){Z.resetComponentLoad(e().type),y(d,r(d)+1)}var S={get tab(){return e()},set tab(t){e(t),A()},get workspaceId(){return u()},set workspaceId(t){u(t),A()},get layoutId(){return v()},set layoutId(t){v(t),A()},get isActive(){return s()},set isActive(t=!0){s(t),A()},get isPanelFocused(){return p()},set isPanelFocused(t=!1){p(t),A()},get onFocus(){return l()},set onFocus(t){l(t),A()},$set:be,$on:(t,h)=>ye(n,t,h)},P=rt(),j=L(P);{var te=t=>{var h=Y(),$=ee(h);{var C=_=>{he(_,{get workspaceId(){return u()},children:(b,x)=>{var T=Y(),H=ee(T);ue(H,()=>r(W),(E,ne)=>{ne(E,{get tab(){return e()},get workspaceId(){return u()},get layoutId(){return v()},get isActive(){return s()},get isPanelFocused(){return p()},get onFocus(){return l()}})}),w(b,T)},$$slots:{default:!0}})},F=J(()=>r(W)&&je(e())),o=_=>{var b=Y(),x=ee(b);ue(x,()=>r(W),(T,H)=>{H(T,{get tab(){return e()},get workspaceId(){return u()},get layoutId(){return v()},get isActive(){return s()},get isPanelFocused(){return p()},get onFocus(){return l()}})}),w(_,b)},f=_=>{var b=et(),x=L(b),T=U(x,!0),H=V(x,2);fe(H,{variant:"outline",size:"sm",onclick:K,children:(E,ne)=>{de();var se=ce();N(xe=>R(se,xe),[()=>z.ui_errorToast_retry_label()]),w(E,se)},$$slots:{default:!0}}),D(b),N(E=>R(T,E),[()=>z.error_boundary_title()]),w(_,b)},I=_=>{var b=tt();N(x=>Le(b,"aria-label",x),[()=>z.workspace_hoverCard_loading_label()]),w(_,b)};re($,_=>{r(F)?_(C):r(W)?_(o,1):s()&&r(g)?_(f,2):s()&&_(I,3)})}w(t,h)},q=t=>{var h=at(),$=L(h),C=L($),F=U(C,!0),o=V(C,2),f=U(o,!0),I=V(o,2),_=U(I,!0),b=V(I,2);fe(b,{class:"mt-4",variant:"outline",size:"sm",onclick:K,children:(x,T)=>{de();var H=ce();N(E=>R(H,E),[()=>z.ui_errorToast_retry_label()]),w(x,H)},$$slots:{default:!0}}),D($),D(h),N((x,T)=>{R(F,e().title),R(f,x),R(_,T)},[()=>z.layout_panelContent_typeLabel({type:e().type}),()=>z.layout_panelContent_notImplemented_label()]),w(t,h)};re(j,t=>{r(a)?t(te):t(q,-1)})}return D(P),w(i,P),_e(S)}export{Ke as M,we as P,he as W,nt as a,ht as b,xt as g,yt as h,wt as i,Xe as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Jx as S,Cq as o,aX as d,aY as l,aZ as a}from"./
|
|
1
|
+
import{Jx as S,Cq as o,aX as d,aY as l,aZ as a}from"./CIoJPvjg.js";import{i as x,c}from"./CMiilI_P.js";import{w as f}from"./B_QPRXJ5.js";const C=t=>{if(typeof window>"u")return;const e=window;e.intent?.reduxContext&&(e.intent.reduxContext===t&&(e.intent.reduxContext=void 0),Array.isArray(e.intent.reduxContext)&&(e.intent.reduxContext=e.intent.reduxContext.filter(i=>i!==t)))},p=t=>{if(typeof window>"u")return;const e=window;if(e.intent=e.intent||{},e.intent.reduxContext===t)console.log("Context is exposed already");else if(!e.intent.reduxContext)e.intent.reduxContext=t;else{const n=[];e.intent.reduxContext=n.concat(e.intent.reduxContext).concat(t),e.isStorybook?console.log("Multiple Redux stores initialized:",e.intent.reduxContext):console.error("Multiple Redux stores initialized:",e.intent.reduxContext)}e.intent.debug||(e.intent.debug={});const i=n=>{if(n==="true")return!0;if(n==="false")return!1},r=n=>{const g=i(o.getItem(n))??!1;o.setItem(n,String(!g))},u=n=>{o.getItem(n)?o.removeItem(n):o.setItem(n,"true")},s=()=>{console.log("Redux logging preference updated. Reload to take effect.")};e.intent.enableReduxLogging=()=>{o.setItem(d,"true"),s()},e.intent.disableReduxLogging=()=>{o.setItem(d,"false"),s()},e.intent.debug.toggleReduxLogs=()=>{r(d),s()},e.intent.debug.toggleStateReferenceChecks=()=>{u(l)},e.intent.debug.toggleStructuredCloneChecks=()=>{u(a)}},m=(t,e)=>{const i=t.init(f(e)),r={store:t,dispose:()=>{C(r);try{i()}finally{c(t)}}};return p(r),x(t),r};export{m as initAppStore,S as store};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as p,r as u,d as n}from"./
|
|
1
|
+
import{g as p,r as u,d as n}from"./BtMIAxno.js";import{p as f}from"./CaHWSiOY.js";import{b as a,ay as o}from"./BolJpU8l.js";import{M as c,c as d}from"./C4M_mNFP.js";var v=d().RailroadAbnf.parser.LangiumParser,i=a(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=a(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=a(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=a(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=a(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=a(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=a(e=>{f(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(P(r)))},"populateDb"),R={parse:a(e=>{n.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:n}},w={parser:R,db:n,renderer:u,styles:p};export{w as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Ul=Object.defineProperty;var jl=(r,t,a)=>t in r?Ul(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a;var pa=(r,t,a)=>jl(r,typeof t!="symbol"?t+"":t,a);import{t as pt,bo as g,bw as vt,b as ht,bm as d,bq as Ea,bs as tr,br as Vl,bp as vn}from"./Dws-34a7.js";import{ai as Ga,bs as _t,ca as Xt,aD as e,bH as D,ay as fe,bS as A,a7 as St,W as c,a5 as V,bA as F,bn as bt,c9 as n,bV as ue,aA as m,b_ as $,aj as xr,aB as I,be as Cr,b$ as Pr,bO as Q,bf as rr,c0 as Ia,bl as oe,bj as ja,c6 as Gl,bo as nn,br as Zr,am as Da,ax as Ba,bk as as,aw as pn,bz as ns,cb as Fn,c5 as Mn,aC as Ir,cd as vo,bv as Kl}from"./3SdAC2_C.js";import{i as O}from"./DLCFUd4s.js";import{g as kr,e as sa,p as ms,i as Ha,I as Zl,h as eo,X as pi,o as Ql}from"./C-zB-6G6.js";import{n as Kt,l as On,c as Ya,g as rn,s as ks,k as ss,S as Xl}from"./Bc1vJq_Z.js";import{s as J,f as Fe,g as hn,c as It,e as Qt,b as _n,p as Yl,S as Jl,C as ed}from"./BD9db4FR.js";import{b as ea}from"./Dn334wJv.js";import{f as st,ae as to,a_ as td}from"./BIGqOuh0.js";import{J as rd,O as ad,Q as Is}from"./BPuz5cN_.js";import"./C2F2Vd1P.js";import"./BW1iql_y.js";import"./gU2qspu9.js";import{t as Ma,k as vi}from"./D-rRuAXZ.js";import{F as Bt,a4 as zs,bg as ka,cK as ps,au as hi,aZ as _i,aK as nd,c9 as sd,a6 as os,aN as od,cN as id,cM as ld,a3 as vs,aC as is,aw as hs,I as ho,aj as dd,bu as cd,aS as ud,aX as fd,bJ as gd,ao as md,bk as bi,cC as pd,aP as _o,c0 as Ss,aI as Hn,cW as vd,cb as hd,bn as _d,b as bd,cp as yd,ag as wd,ba as Ts,cr as wn,cF as xd,az as kd,c6 as Id,d3 as Sd}from"./CGYPBD6G.js";import{C as yi,A as Td,o as Cd}from"./jBG7W4tL.js";import{b as Cs,V as bo}from"./yDmmPu6L.js";import{A as wi}from"./DW25Ls6A.js";import{bZ as xi,aj as Md,j as Kn,a4 as Ws,al as ls,E as Ad,au as Zn,aP as Pd,aS as yo}from"./DtFzaymP.js";import{t as an,o as Rd}from"./DAsc1V4f.js";import{ch as Qn,aO as qn,d2 as ki,d4 as Va,c6 as _s,q as Nd,cX as Ii,d1 as bs,d0 as Si,c_ as Ti,n as Ca,al as Ed,am as $d,aJ as Ld,z as Od,V as qd,a3 as wo,D as Ci,e4 as Dd,aF as Bd,ak as Fd,r as zd,C as Ms,ag as Wd,U as xn,e2 as Hd,ab as Ud,k as xo,u as jd,Z as Vd,v as Gd,i as Kd,g as As,f as ko,a0 as Zd,$ as Qd,a9 as Xd,x as Mi,y as Ai,l as Pi,j as Yd,s as Jd,a as ec,d5 as tc,ae as rc,e3 as ac,L as nc,F as sc,a2 as Io,bq as oc,av as ic}from"./SbTG0nwQ.js";import{Jx as mt,o$ as lc,tQ as Xn,nQ as So,vJ as Ri,vL as Ni,s1 as dc,yI as ds,v0 as Ei,nL as $i,br as En,nY as cc,nZ as uc,yJ as fc,qz as gc,tk as mc,vC as Li,nK as pc,mP as vc,m as hc,za as _c,z7 as bc,z9 as yc}from"./4g_iHoQm.js";import{a3 as wc,y as Ps,a1 as xc,O as Rs,W as kc,$ as Ic,k as Sc,p as kn,P as un,q as Tc,G as Cc,v as Mc,t as Ac,M as Ns,K as Pc,z as Rc,L as Nc,_ as An,U as Un,N as To,n as Co,E as Ec,c as Es,F as Mo,B as $c,w as Ao,J as Pn,Q as Lc,H as Oc,j as qc,R as Dc,T as Bc,A as Fc,g as zc,b as Wc,D as Hc,f as Uc,e as jc,a as Vc,C as Gc,i as Kc,d as Hs,V as Oi,a4 as Zc,u as Qc,l as Xc}from"./L-Sh3Ble.js";import{i as Yc,e as Jc}from"./Dval4sTX.js";import{g as $s}from"./B5aYN90J.js";import{M as In,C as Rn}from"./DxAjMnFs.js";import{C as Po}from"./B0qb2Ymj.js";import"./CPO5_F83.js";import{P as eu}from"./C8zl7aIj.js";import"./BlIRL_82.js";import{c as qi}from"./ChTqQfQN.js";import{S as tu}from"./DxRojUvw.js";import{D as Ro,M as ru}from"./CC-IHSah.js";import{b as au,s as en,c as cs}from"./C2WwQCOk.js";import{O as Yn,y as Ls,E as Os,B as qs,N as nu,m as su,l as ou,k as iu,d as Dn,C as No,f as lu,e as du,g as cu}from"./BVqF0sgN.js";import{a as Di,s as Eo}from"./BsieX9dN.js";import{f as uu}from"./BdWqymET.js";import{c as na}from"./Whej1Dge.js";import{a as fu,k as Bi,h as ro,q as Fi,l as wr}from"./B8HnjSSF.js";import{P as gu}from"./DWa-2rkZ.js";import{r as Ds,q as Bs,B as $o,i as mu}from"./C-L0-C2F.js";import{R as zi,C as ys,m as pu,h as vu,g as hu,i as Lo,P as _u}from"./rXKOJqUt.js";import"./DcOkWaeN.js";import{c as bu,s as yu}from"./Bs7M8kXA.js";import{h as gn}from"./LI9J8Eor.js";import{b as wu,a as Wi}from"./Cq_jjcoF.js";import{P as Hi}from"./CoJyxFcH.js";import{B as xu}from"./DM1_VFfD.js";import{o as Ui,r as ku,e as Iu}from"./By4iSN8L.js";import{o as ji}from"./DT5eV1e8.js";import{A as Jn,b as Vi}from"./VeUh5OMZ.js";import{g as ao}from"./Da-Blgd9.js";import{a as Su,M as Tu}from"./7KxcPj98.js";import{a as Gi}from"./DGMrUmNq.js";import{E as Cu,n as Mu}from"./DJPIUVkw.js";import{t as Tr}from"./C-BsEdGZ.js";import{c as Sn}from"./B5tvpTFB.js";import{A as Au}from"./BXJzIaQM.js";import{f as Pu,d as Ru}from"./CrbAS4DB.js";import{ad as Nu,P as Eu,Z as $u,L as Oo,Y as Lu,w as Ou,a0 as Ki,$ as Zi}from"./D2hNxvgD.js";import{a as qu}from"./CC7to1B5.js";import{k as Du}from"./5-0LQoqd.js";import{S as Bu}from"./Bu-RLSv9.js";import{u as Fu,a as zu,c as qo,S as Wu}from"./D9tVylVS.js";import{T as us}from"./Bi_Yd73A.js";import"./C50zlWbZ.js";import{g as Hu,a as Uu}from"./C63WwVct.js";import{I as ju,R as Vu,q as Gu}from"./BZVhwNIm.js";import{b as Qi}from"./B6d1Nolc.js";import{b as Do}from"./goTpbPhD.js";import{ah as Ua,n as Ku}from"./B_4WsP9b.js";import{c as Zu}from"./Cy3lhXYa.js";import{r as Bo}from"./DyXAZ9tr.js";function Qu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:a,scriptId:s,runId:o,monitorId:i,workspaceId:l,reason:u}=t;if(typeof a!="string"||typeof s!="string"||!s||typeof o!="string"||!o||typeof i!="string"||!i||typeof l!="string"||!l||u!=="finished"&&u!=="ttl-expired"&&u!=="output-match"&&u!=="line-count")return null;const h=t.trigger;return{scriptName:a,scriptId:s,runId:o,monitorId:i,workspaceId:l,reason:u,...u==="output-match"&&typeof h?.matchedLine=="string"?{matchedLine:h.matchedLine}:{}}}function Xu(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function Yu(r,t,a,s=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const o=r.messageMetadata?.fromPrincipalId??r.author?.principalId,i=Nu(r)&&r.author?.principalId!==null&&o===t;return{edit:i,remove:i||t===a||s,sendNow:(i||s)&&!Xi(r)}}function Tn(r,t){if(t)return r.find(a=>a.editing&&a.editingMessageId?a.editingMessageId===t:a.id===t)}function Xi(r){return Xu(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function Fo(r,t=Date.now()){const a=r.messageMetadata,s=a?.fromPrincipalId,o=a&&Object.hasOwn(a,"humanAuthor")&&!(typeof s=="string"&&s.length>0),i=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!i&&!o&&!Xi(r)}const Cb="pl-3.5! pr-2!";var Ju=I('<span class="tile-remove-slot svelte-d8pwpf"><!></span>'),zo=I('<span class="attachment-status svelte-d8pwpf"> </span>'),ef=I('<div class="file-image tile svelte-d8pwpf" data-kind="file"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),tf=I("<!><span> </span>",1),rf=I('<img alt="" draggable="false"/>'),af=I('<span class="summary svelte-d8pwpf" data-clip-summary=""> </span>'),nf=I('<span class="clip svelte-d8pwpf"><span class="record-dot svelte-d8pwpf" aria-hidden="true"></span><span class="duration svelte-d8pwpf"> </span><!></span>'),sf=I('<div class="tile svelte-d8pwpf"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),of=I('<div class="attachment-row svelte-d8pwpf" role="group" data-dock-media-attachments=""></div>'),lf=I("<!> <!> <!>",1),df=I('<img draggable="false" class="svelte-d8pwpf"/>'),cf=I('<video controls="" playsinline="" class="svelte-d8pwpf"></video>',2),uf=I('<div class="media-viewer svelte-d8pwpf"><!></div>'),ff=I("<!> <!>",1);function gf(r,t){if(new.target)return pt({component:gf,...r});_t(t,!0);const a=(T,me=rr,le=rr)=>{var N=Ju(),ve=V(N);st(ve,{variant:"secondary",size:"icon-sm",class:"tile-action tile-remove",get disabled(){return i()},get"aria-label"(){return le()},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return le()},onclick:()=>z(me()),children:(Le,Ae)=>{Cs(Le,{glyph:"x"})},$$slots:{default:!0}}),F(N),c(T,N)};let s=g(t,"items",7),o=g(t,"labels",7),i=g(t,"disabled",7,!1),l=g(t,"onMarkUp",7),u=g(t,"onEdit",7),h=g(t,"onRemove",7),v=g(t,"onRetry",7),x=g(t,"onCopy",7),M=g(t,"onMenu",7);const B=T=>T.owner==="attachment"?2:{image:0,clip:1,file:2}[T.kind],U=n(()=>[...s()].sort((T,me)=>B(T)-B(me)));let w=ue(null),C=ue(!1),re=ue(null),G=null;const S=n(()=>s().find(T=>T.id===e(re)));Xt(()=>{(!e(S)||e(S).kind==="image"&&!j(e(S)))&&D(C,!1)});function j(T){return T.kind==="image"&&T.status!=="placing"&&T.status!=="failed"&&T.url.trim().length>0}function L(T){return T.kind==="image"?o().image(T.markCount):T.kind==="clip"?T.summary?`${o().clip(T.duration)} ${T.summary}`:o().clip(T.duration):T.name}function ne(T,me){if(!(i()||T.kind==="file"||T.kind==="image"&&!j(T)||T.kind==="clip"&&(!T.url||T.recording))){if((T.kind==="clip"||T.kind==="image")&&u()){u()(T.id);return}G=me,D(re,T.id,!0),D(C,!0)}}async function z(T){i()||(e(re)===T&&D(C,!1),h()(T),await Ia(),(!document.activeElement||document.activeElement===document.body)&&e(w)?.querySelector("button:not(:disabled)")?.focus())}function q(T){const me=s().find(le=>le.id===T);i()||!me||!j(me)||(D(C,!1),u()?u()(T):l()(T))}function ee(T,me){T.key!=="Delete"||i()||(T.preventDefault(),T.stopPropagation(),z(me))}function R(T){return T.status==="placing"||T.status==="failed"?!1:T.kind==="image"?!!T.file||j(T):T.kind==="clip"&&!T.recording&&!!T.url}function X(T,me){const le=rd()?T.metaKey:T.ctrlKey,N=T.key.toLowerCase();if(le&&!T.shiftKey&&!T.altKey&&(N==="c"||N==="x")){if(!x()||!R(me)||(T.preventDefault(),T.stopPropagation(),N==="x"&&i()))return;x()(me.id,N==="x");return}ee(T,me.id)}function te(T,me){!M()||!R(me)||(T.preventDefault(),M()(me.id))}var _e={get items(){return s()},set items(T){s(T),m()},get labels(){return o()},set labels(T){o(T),m()},get disabled(){return i()},set disabled(T=!1){i(T),m()},get onMarkUp(){return l()},set onMarkUp(T){l(T),m()},get onEdit(){return u()},set onEdit(T){u(T),m()},get onRemove(){return h()},set onRemove(T){h(T),m()},get onRetry(){return v()},set onRetry(T){v(T),m()},get onCopy(){return x()},set onCopy(T){x(T),m()},get onMenu(){return M()},set onMenu(T){M(T),m()},$set:vt,$on:(T,me)=>ht(t,T,me)},de=ff(),ge=fe(de);{var Pe=T=>{var me=of();kr(me,21,()=>e(U),le=>le.id,(le,N)=>{var ve=St(),Le=fe(ve);{var Ae=xe=>{var P=ef(),Y=V(P);{let W=n(()=>i()||e(N).status==="placing");wi(Y,{get id(){return e(N).id},get name(){return e(N).file.name},get type(){return e(N).file.imageMimeType},get imageData(){return e(N).file.imageData},get imageMimeType(){return e(N).file.imageMimeType},variant:"thumbnail",thumbnailClass:"size-full",class:"size-full",get disabled(){return e(W)},get placementStatus(){return e(N).status},get placementError(){return e(N).error}})}var ae=A(Y,2);{var we=W=>{var be=zo(),Re=oe(be,!0);$(()=>{J(be,"data-failed",e(N).status==="failed"||void 0),J(be,"role",e(N).status==="failed"?"alert":"status"),J(be,"title",e(N).error),Q(Re,e(N).status==="failed"?e(N).error??o().attachmentFailed:o().attachmentPending)}),c(W,be)};O(ae,W=>{e(N).status&&W(we)})}var _=A(ae,2),Se=V(_);{var Ce=W=>{st(W,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(N).id),children:(be,Re)=>{Bt(be,{get icon(){return zs},size:16})},$$slots:{default:!0}})};O(Se,W=>{e(N).status==="failed"&&v()&&W(Ce)})}var E=A(Se,2);{let W=n(()=>d.chat_attachmentPreview_remove_ariaLabel({name:e(N).file.name}));a(E,()=>e(N).id,()=>e(W))}F(_),F(P),$(()=>J(P,"data-attachment-id",e(N).id)),xr("keydown",P,W=>X(W,e(N))),xr("contextmenu",P,W=>te(W,e(N))),Kt(1,P,()=>On,()=>({tier:"fast",y:3,scale:.98})),Kt(2,P,()=>Ya,()=>({tier:"fast"})),c(xe,P)},Ee=xe=>{const P=n(()=>e(N).kind==="image"&&!j(e(N))&&e(N).status!=="failed");var Y=sf(),ae=V(Y);{var we=ke=>{st(ke,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile file",get"aria-label"(){return e(N).name},get disabled(){return i()},onkeydown:$e=>ee($e,e(N).id),children:($e,Oe)=>{var Ue=tf(),se=fe(Ue);Bt(se,{get icon(){return ka},size:20});var Ge=A(se),yt=oe(Ge,!0);$(()=>Q(yt,e(N).name)),c($e,Ue)},$$slots:{default:!0}})},_=ke=>{{let $e=n(()=>L(e(N))),Oe=n(()=>i()||e(N).kind==="clip"&&(e(N).recording||!e(N).url));st(ke,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile",get"aria-label"(){return e($e)},get disabled(){return e(Oe)},onkeydown:Ue=>X(Ue,e(N)),onclick:Ue=>{Ue.currentTarget instanceof HTMLElement&&ne(e(N),Ue.currentTarget)},children:(Ue,se)=>{var Ge=St(),yt=fe(Ge);{var Ft=et=>{var Ke=rf();$(()=>J(Ke,"src",e(N).url)),c(et,Ke)},er=et=>{var Ke=nf(),$t=A(V(Ke)),Tt=oe($t,!0),ut=A($t);{var ze=K=>{var y=af(),pe=oe(y,!0);$(()=>Q(pe,e(N).summary)),c(K,y)};O(ut,K=>{e(N).summary&&K(ze)})}F(Ke),$(()=>Q(Tt,e(N).duration)),c(et,Ke)};O(yt,et=>{e(N).kind==="image"?et(Ft):et(er,-1)})}c(Ue,Ge)},$$slots:{default:!0}})}},Se=n(()=>e(N).kind!=="image"||j(e(N)));O(ae,ke=>{e(N).kind==="file"?ke(we):e(Se)&&ke(_,1)})}var Ce=A(ae,2);{var E=ke=>{var $e=zo(),Oe=oe($e,!0);$(()=>{J($e,"data-failed",e(N).status==="failed"||void 0),J($e,"role",e(N).status==="failed"?"alert":"status"),J($e,"title",e(N).error),Q(Oe,e(N).status==="failed"?e(N).error??o().attachmentFailed:o().attachmentPending)}),c(ke,$e)};O(Ce,ke=>{(e(N).status||e(P))&&ke(E)})}var W=A(Ce,2),be=V(W);{var Re=ke=>{st(ke,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(N).id),children:($e,Oe)=>{Bt($e,{get icon(){return zs},size:16})},$$slots:{default:!0}})},Ve=ke=>{{let $e=n(()=>u()?o().edit:o().markUp),Oe=n(()=>u()?o().edit:o().markUp);st(ke,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e($e)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(Oe)},onclick:()=>q(e(N).id),children:(Ue,se)=>{Cs(Ue,{glyph:"pencil"})},$$slots:{default:!0}})}},De=n(()=>j(e(N))),Et=ke=>{{let $e=n(()=>u()?o().edit:o().play),Oe=n(()=>u()?o().edit:o().play);st(ke,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e($e)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(Oe)},onclick:Ue=>{Ue.currentTarget instanceof HTMLElement&&ne(e(N),Ue.currentTarget)},children:(Ue,se)=>{{let Ge=n(()=>u()?"pencil":"play");Cs(Ue,{get glyph(){return e(Ge)}})}},$$slots:{default:!0}})}};O(be,ke=>{e(N).status==="failed"&&v()?ke(Re):e(De)?ke(Ve,1):e(N).kind==="clip"&&!e(N).recording&&e(N).url&&ke(Et,2)})}var ye=A(be,2);a(ye,()=>e(N).id,()=>o().remove),F(W),F(Y),$(()=>{J(Y,"data-kind",e(N).kind),J(Y,"data-attachment-id",e(N).id),J(Y,"aria-busy",e(P)||void 0)}),xr("contextmenu",Y,ke=>te(ke,e(N))),Kt(1,Y,()=>On,()=>({tier:"fast",y:3,scale:.98})),Kt(2,Y,()=>Ya,()=>({tier:"fast"})),c(xe,Y)};O(Le,xe=>{e(N).kind==="image"&&e(N).file?xe(Ae):xe(Ee,-1)})}c(le,ve)}),F(me),ea(me,le=>D(w,le),()=>e(w)),$(()=>J(me,"aria-label",o().attachments)),c(T,me)};O(ge,T=>{e(U).length&&T(Pe)})}var Ie=A(ge,2);{const T=le=>{var N=St(),ve=fe(N);{var Le=Ae=>{var Ee=lf(),xe=fe(Ee);{var P=_=>{st(_,{variant:"primary",get disabled(){return i()},onclick:()=>e(S)&&q(e(S).id),children:(Se,Ce)=>{Cr();var E=Pr();$(()=>Q(E,o().markUp)),c(Se,E)},$$slots:{default:!0}})},Y=n(()=>j(e(S)));O(xe,_=>{e(Y)&&_(P)})}var ae=A(xe,2);st(ae,{variant:"secondary",get disabled(){return i()},onclick:()=>e(S)&&z(e(S).id),children:(_,Se)=>{Cr();var Ce=Pr();$(()=>Q(Ce,o().remove)),c(_,Ce)},$$slots:{default:!0}});var we=A(ae,2);st(we,{variant:"ghost-light",onclick:()=>{D(C,!1)},children:(_,Se)=>{Cr();var Ce=Pr();$(()=>Q(Ce,o().done)),c(_,Ce)},$$slots:{default:!0}}),c(Ae,Ee)};O(ve,Ae=>{e(S)&&e(S).kind!=="file"&&Ae(Le)})}c(le,N)};let me=n(()=>e(S)?L(e(S)):o().attachments);yi(Ie,{get title(){return e(me)},size:"wide",showCloseButton:!1,onCloseAutoFocus:le=>{le.preventDefault(),G?.isConnected?G.focus():e(w)?.querySelector("button:not(:disabled)")?.focus()},get open(){return e(C)},set open(le){D(C,le,!0)},footer:T,children:(le,N)=>{var ve=St(),Le=fe(ve);{var Ae=Ee=>{var xe=uf(),P=V(xe);{var Y=_=>{var Se=df();$(Ce=>{J(Se,"src",e(S).url),J(Se,"alt",Ce)},[()=>L(e(S))]),c(_,Se)},ae=n(()=>e(S).kind==="image"&&j(e(S))),we=_=>{var Se=cf();$(Ce=>{J(Se,"src",e(S).url),J(Se,"aria-label",Ce)},[()=>L(e(S))]),c(_,Se)};O(P,_=>{e(ae)?_(Y):e(S).kind==="clip"&&e(S).url&&_(we,1)})}F(xe),c(Ee,xe)};O(Le,Ee=>{e(S)&&e(S).kind!=="file"&&Ee(Ae)})}c(le,ve)},$$slots:{footer:!0,default:!0}})}return c(r,de),bt(_e)}Ga(["keydown","contextmenu"]);var mf=I("<!> ",1),pf=I('<div class="flex flex-col gap-2 px-4 py-3 bg-muted/30 border border-border rounded-lg my-4"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="shrink-0 text-subtle"><!></div> <div class="font-medium text-sm"> </div></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="text-xs text-subtle"> </div> <pre class="text-xs bg-background/50 rounded p-2 overflow-x-auto max-h-40 overflow-y-auto font-mono"> </pre></div>');function Yi(r,t){if(new.target)return pt({component:Yi,...r});_t(t,!0);let a=g(t,"name",7),s=g(t,"description",7),o=g(t,"content",7),i=g(t,"onUseScript",7),l=ue(!1);function u(){navigator.clipboard.writeText(o()),D(l,!0),setTimeout(()=>{D(l,!1)},2e3)}function h(){i()?.({name:a(),description:s(),content:o()})}var v={get name(){return a()},set name(R){a(R),m()},get description(){return s()},set description(R){s(R),m()},get content(){return o()},set content(R){o(R),m()},get onUseScript(){return i()},set onUseScript(R){i(R),m()},$set:vt,$on:(R,X)=>ht(t,R,X)},x=pf(),M=V(x),B=V(M),U=V(B),w=V(U);Bt(w,{get icon(){return ps},size:"sm"}),F(U);var C=A(U,2),re=oe(C,!0);F(B);var G=A(B,2),S=V(G);st(S,{variant:"ghost-light",size:"sm",onclick:u,class:"h-7 px-2",children:(R,X)=>{var te=mf(),_e=fe(te);{let ge=n(()=>e(l)?hi:_i);Bt(_e,{get icon(){return e(ge)},class:"mr-1"})}var de=A(_e);$(ge=>Q(de,` ${ge??""}`),[()=>e(l)?d.chat_shared_copied_label():d.chat_shared_copy_label()]),c(R,te)},$$slots:{default:!0}});var j=A(S,2);{var L=R=>{st(R,{variant:"ghost-light",size:"sm",onclick:h,class:"h-7 px-2",children:(X,te)=>{Cr();var _e=Pr();$(de=>Q(_e,de),[()=>d.chat_setupScriptCard_useScript_label()]),c(X,_e)},$$slots:{default:!0}})};O(j,R=>{i()&&R(L)})}F(G),F(M);var ne=A(M,2),z=oe(ne,!0),q=A(ne,2),ee=oe(q,!0);return F(x),$(()=>{Q(re,a()),Q(z,s()),Q(ee,o())}),c(r,x),bt(v)}const yr={toolStart:/(?:\x1B\[\d+m)?🔧\s+(?:Tool call:\s+)?(.+?)(?:\x1B\[0m)?$/,toolDetail:/(?:[└├]─\s+(.+)$|^\s{3,}(.+)$)/,toolResult:/(?:\x1B\[\d+m)?📋\s+Tool result:\s+(.+?)(?:\x1B\[0m)?$/,toolSuccess:/[✓✔✅]\s+(.+)$/,toolError:/[❌✗❎]\s+(.+)$/,sessionInfo:/[Ss]ession:\s*([a-f0-9-]+)/,resumedSession:/📂?\s*Resumed session/i,assistantMarker:/🤖/,systemMarker:/💻/,userMarker:/👤/,thinkingMarker:/🤔\s*Thinking/i,waitingMarker:/^⏳\s+Running/i,indexingProgress:/^Indexing:\s*\[.*\]\s*\d+%/,agentDigest:/<agent_digest>([\s\S]*?)<\/agent_digest>/,setupScript:/<setup_script\s+name="([^"]+)"\s+description="([^"]+)">([\s\S]*?)<\/setup_script>/};class vf{constructor(){pa(this,"buffer","");pa(this,"currentToolName",null);pa(this,"currentToolId",null);pa(this,"lastToolId",null);pa(this,"currentToolParams",[]);pa(this,"currentToolResultContent",[]);pa(this,"inToolResult",!1);pa(this,"inCodeBlock",!1);pa(this,"codeBlockLanguage","");pa(this,"codeBlockContent","");pa(this,"characterBuffer","");pa(this,"inCharacterMode",!1);pa(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const o=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const u=this.currentToolResultContent.some(v=>v.startsWith("❌")||v.startsWith("Error:")),h=this.currentToolResultContent.map(v=>v.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
|
|
1
|
+
var Ul=Object.defineProperty;var jl=(r,t,a)=>t in r?Ul(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a;var pa=(r,t,a)=>jl(r,typeof t!="symbol"?t+"":t,a);import{t as pt,bo as g,bw as vt,b as ht,bm as d,bq as Ea,bs as tr,br as Vl,bp as vn}from"./DWvCfaBg.js";import{ai as Ga,bs as _t,ca as Xt,aD as e,bH as D,ay as fe,bS as A,a7 as St,W as c,a5 as V,bA as F,bn as bt,c9 as n,bV as ue,aA as m,b_ as $,aj as xr,aB as I,be as Cr,b$ as Pr,bO as Q,bf as rr,c0 as Ia,bl as oe,bj as ja,c6 as Gl,bo as nn,br as Zr,am as Da,ax as Ba,bk as as,aw as pn,bz as ns,cb as Fn,c5 as Mn,aC as Ir,cd as vo,bv as Kl}from"./3SdAC2_C.js";import{i as O}from"./VTJf_qPn.js";import{g as kr,e as sa,p as ms,i as Ha,I as Zl,h as eo,X as pi,o as Ql}from"./CueOVPTy.js";import{n as Kt,l as On,c as Ya,g as rn,s as ks,k as ss,S as Xl}from"./BlRGZv8u.js";import{s as J,f as Fe,g as hn,c as It,e as Qt,b as _n,p as Yl,S as Jl,C as ed}from"./BCuI_zgX.js";import{b as ea}from"./Dn334wJv.js";import{f as st,ae as to,a_ as td}from"./Drf1gLyo.js";import{J as rd,O as ad,Q as Is}from"./CIKXOyvw.js";import"./B3OJ_2Dd.js";import"./B0kNPCxU.js";import"./77KTvr2w.js";import{t as Ma,k as vi}from"./Bu3PKqut.js";import{F as Bt,a4 as zs,bg as ka,cK as ps,au as hi,aZ as _i,aK as nd,c9 as sd,a6 as os,aN as od,cN as id,cM as ld,a3 as vs,aC as is,aw as hs,I as ho,aj as dd,bu as cd,aS as ud,aX as fd,bJ as gd,ao as md,bk as bi,cC as pd,aP as _o,c0 as Ss,aI as Hn,cW as vd,cb as hd,bn as _d,b as bd,cp as yd,ag as wd,ba as Ts,cr as wn,cF as xd,az as kd,c6 as Id,d3 as Sd}from"./D7yetF0v.js";import{C as yi,A as Td,o as Cd}from"./CTqRHXfu.js";import{b as Cs,V as bo}from"./UnM4qztD.js";import{A as wi}from"./BYYtBM5R.js";import{bZ as xi,aj as Md,j as Kn,a4 as Ws,al as ls,E as Ad,au as Zn,aP as Pd,aS as yo}from"./awY5HvZY.js";import{t as an,o as Rd}from"./DAsc1V4f.js";import{ch as Qn,aO as qn,d2 as ki,d4 as Va,c6 as _s,q as Nd,cX as Ii,d1 as bs,d0 as Si,c_ as Ti,n as Ca,al as Ed,am as $d,aJ as Ld,z as Od,V as qd,a3 as wo,D as Ci,e4 as Dd,aF as Bd,ak as Fd,r as zd,C as Ms,ag as Wd,U as xn,e2 as Hd,ab as Ud,k as xo,u as jd,Z as Vd,v as Gd,i as Kd,g as As,f as ko,a0 as Zd,$ as Qd,a9 as Xd,x as Mi,y as Ai,l as Pi,j as Yd,s as Jd,a as ec,d5 as tc,ae as rc,e3 as ac,L as nc,F as sc,a2 as Io,bq as oc,av as ic}from"./3Kr2ijlK.js";import{Jx as mt,o$ as lc,tQ as Xn,nQ as So,vJ as Ri,vL as Ni,s1 as dc,yI as ds,v0 as Ei,nL as $i,br as En,nY as cc,nZ as uc,yJ as fc,qz as gc,tk as mc,vC as Li,nK as pc,mP as vc,m as hc,za as _c,z7 as bc,z9 as yc}from"./CIoJPvjg.js";import{a3 as wc,y as Ps,a1 as xc,O as Rs,W as kc,$ as Ic,k as Sc,p as kn,P as un,q as Tc,G as Cc,v as Mc,t as Ac,M as Ns,K as Pc,z as Rc,L as Nc,_ as An,U as Un,N as To,n as Co,E as Ec,c as Es,F as Mo,B as $c,w as Ao,J as Pn,Q as Lc,H as Oc,j as qc,R as Dc,T as Bc,A as Fc,g as zc,b as Wc,D as Hc,f as Uc,e as jc,a as Vc,C as Gc,i as Kc,d as Hs,V as Oi,a4 as Zc,u as Qc,l as Xc}from"./DbxqdYAO.js";import{i as Yc,e as Jc}from"./BrDfJqC4.js";import{g as $s}from"./B5aYN90J.js";import{M as In,C as Rn}from"./BDbFQqI8.js";import{C as Po}from"./BbfEcBPg.js";import"./BeUuk8D1.js";import{P as eu}from"./Dm3wAkDL.js";import"./Dyx6ysl7.js";import{c as qi}from"./ChTqQfQN.js";import{S as tu}from"./DsOS7N8Z.js";import{D as Ro,M as ru}from"./BolJpU8l.js";import{b as au,s as en,c as cs}from"./DKupjKLn.js";import{O as Yn,y as Ls,E as Os,B as qs,N as nu,m as su,l as ou,k as iu,d as Dn,C as No,f as lu,e as du,g as cu}from"./BCVhFPNJ.js";import{a as Di,s as Eo}from"./BsieX9dN.js";import{f as uu}from"./BdWqymET.js";import{c as na}from"./Da8rtzmJ.js";import{a as fu,k as Bi,h as ro,q as Fi,l as wr}from"./W05hyx94.js";import{P as gu}from"./CdGl_2eX.js";import{r as Ds,q as Bs,B as $o,i as mu}from"./Dh438xC0.js";import{R as zi,C as ys,m as pu,h as vu,g as hu,i as Lo,P as _u}from"./BXHbm15d.js";import"./2aKRVAvL.js";import{c as bu,s as yu}from"./QIFiwjW0.js";import{h as gn}from"./BweHPPaS.js";import{b as wu,a as Wi}from"./BOnTc4ny.js";import{P as Hi}from"./BVyOECUU.js";import{B as xu}from"./fC3yz20p.js";import{o as Ui,r as ku,e as Iu}from"./BwVjpKmH.js";import{o as ji}from"./DdRupUfV.js";import{A as Jn,b as Vi}from"./CvSLeFQo.js";import{g as ao}from"./Bf_4e4N2.js";import{a as Su,M as Tu}from"./zFAkpaJn.js";import{a as Gi}from"./A3z9XWMi.js";import{E as Cu,n as Mu}from"./D5xlMOwU.js";import{t as Tr}from"./C-BsEdGZ.js";import{c as Sn}from"./Y_tkjygB.js";import{A as Au}from"./C6Wi6O6n.js";import{f as Pu,d as Ru}from"./BCiWc-GH.js";import{ad as Nu,P as Eu,Z as $u,L as Oo,Y as Lu,w as Ou,a0 as Ki,$ as Zi}from"./BB-hf8IY.js";import{a as qu}from"./CC7to1B5.js";import{k as Du}from"./bIL0xbKX.js";import{S as Bu}from"./BoEcbLG-.js";import{u as Fu,a as zu,c as qo,S as Wu}from"./D9tVylVS.js";import{T as us}from"./BmLlDCoW.js";import"./9AJtSub0.js";import{g as Hu,a as Uu}from"./BRdQpeCl.js";import{I as ju,R as Vu,q as Gu}from"./_HPNXgkR.js";import{b as Qi}from"./21kfe-mS.js";import{b as Do}from"./goTpbPhD.js";import{ah as Ua,n as Ku}from"./DpvQ3NRH.js";import{c as Zu}from"./BthojcF8.js";import{r as Bo}from"./ChKOG1mU.js";function Qu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:a,scriptId:s,runId:o,monitorId:i,workspaceId:l,reason:u}=t;if(typeof a!="string"||typeof s!="string"||!s||typeof o!="string"||!o||typeof i!="string"||!i||typeof l!="string"||!l||u!=="finished"&&u!=="ttl-expired"&&u!=="output-match"&&u!=="line-count")return null;const h=t.trigger;return{scriptName:a,scriptId:s,runId:o,monitorId:i,workspaceId:l,reason:u,...u==="output-match"&&typeof h?.matchedLine=="string"?{matchedLine:h.matchedLine}:{}}}function Xu(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function Yu(r,t,a,s=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const o=r.messageMetadata?.fromPrincipalId??r.author?.principalId,i=Nu(r)&&r.author?.principalId!==null&&o===t;return{edit:i,remove:i||t===a||s,sendNow:(i||s)&&!Xi(r)}}function Tn(r,t){if(t)return r.find(a=>a.editing&&a.editingMessageId?a.editingMessageId===t:a.id===t)}function Xi(r){return Xu(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function Fo(r,t=Date.now()){const a=r.messageMetadata,s=a?.fromPrincipalId,o=a&&Object.hasOwn(a,"humanAuthor")&&!(typeof s=="string"&&s.length>0),i=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!i&&!o&&!Xi(r)}const Cb="pl-3.5! pr-2!";var Ju=I('<span class="tile-remove-slot svelte-d8pwpf"><!></span>'),zo=I('<span class="attachment-status svelte-d8pwpf"> </span>'),ef=I('<div class="file-image tile svelte-d8pwpf" data-kind="file"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),tf=I("<!><span> </span>",1),rf=I('<img alt="" draggable="false"/>'),af=I('<span class="summary svelte-d8pwpf" data-clip-summary=""> </span>'),nf=I('<span class="clip svelte-d8pwpf"><span class="record-dot svelte-d8pwpf" aria-hidden="true"></span><span class="duration svelte-d8pwpf"> </span><!></span>'),sf=I('<div class="tile svelte-d8pwpf"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),of=I('<div class="attachment-row svelte-d8pwpf" role="group" data-dock-media-attachments=""></div>'),lf=I("<!> <!> <!>",1),df=I('<img draggable="false" class="svelte-d8pwpf"/>'),cf=I('<video controls="" playsinline="" class="svelte-d8pwpf"></video>',2),uf=I('<div class="media-viewer svelte-d8pwpf"><!></div>'),ff=I("<!> <!>",1);function gf(r,t){if(new.target)return pt({component:gf,...r});_t(t,!0);const a=(T,me=rr,le=rr)=>{var N=Ju(),ve=V(N);st(ve,{variant:"secondary",size:"icon-sm",class:"tile-action tile-remove",get disabled(){return i()},get"aria-label"(){return le()},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return le()},onclick:()=>z(me()),children:(Le,Ae)=>{Cs(Le,{glyph:"x"})},$$slots:{default:!0}}),F(N),c(T,N)};let s=g(t,"items",7),o=g(t,"labels",7),i=g(t,"disabled",7,!1),l=g(t,"onMarkUp",7),u=g(t,"onEdit",7),h=g(t,"onRemove",7),v=g(t,"onRetry",7),x=g(t,"onCopy",7),M=g(t,"onMenu",7);const B=T=>T.owner==="attachment"?2:{image:0,clip:1,file:2}[T.kind],U=n(()=>[...s()].sort((T,me)=>B(T)-B(me)));let w=ue(null),C=ue(!1),re=ue(null),G=null;const S=n(()=>s().find(T=>T.id===e(re)));Xt(()=>{(!e(S)||e(S).kind==="image"&&!j(e(S)))&&D(C,!1)});function j(T){return T.kind==="image"&&T.status!=="placing"&&T.status!=="failed"&&T.url.trim().length>0}function L(T){return T.kind==="image"?o().image(T.markCount):T.kind==="clip"?T.summary?`${o().clip(T.duration)} ${T.summary}`:o().clip(T.duration):T.name}function ne(T,me){if(!(i()||T.kind==="file"||T.kind==="image"&&!j(T)||T.kind==="clip"&&(!T.url||T.recording))){if((T.kind==="clip"||T.kind==="image")&&u()){u()(T.id);return}G=me,D(re,T.id,!0),D(C,!0)}}async function z(T){i()||(e(re)===T&&D(C,!1),h()(T),await Ia(),(!document.activeElement||document.activeElement===document.body)&&e(w)?.querySelector("button:not(:disabled)")?.focus())}function q(T){const me=s().find(le=>le.id===T);i()||!me||!j(me)||(D(C,!1),u()?u()(T):l()(T))}function ee(T,me){T.key!=="Delete"||i()||(T.preventDefault(),T.stopPropagation(),z(me))}function R(T){return T.status==="placing"||T.status==="failed"?!1:T.kind==="image"?!!T.file||j(T):T.kind==="clip"&&!T.recording&&!!T.url}function X(T,me){const le=rd()?T.metaKey:T.ctrlKey,N=T.key.toLowerCase();if(le&&!T.shiftKey&&!T.altKey&&(N==="c"||N==="x")){if(!x()||!R(me)||(T.preventDefault(),T.stopPropagation(),N==="x"&&i()))return;x()(me.id,N==="x");return}ee(T,me.id)}function te(T,me){!M()||!R(me)||(T.preventDefault(),M()(me.id))}var _e={get items(){return s()},set items(T){s(T),m()},get labels(){return o()},set labels(T){o(T),m()},get disabled(){return i()},set disabled(T=!1){i(T),m()},get onMarkUp(){return l()},set onMarkUp(T){l(T),m()},get onEdit(){return u()},set onEdit(T){u(T),m()},get onRemove(){return h()},set onRemove(T){h(T),m()},get onRetry(){return v()},set onRetry(T){v(T),m()},get onCopy(){return x()},set onCopy(T){x(T),m()},get onMenu(){return M()},set onMenu(T){M(T),m()},$set:vt,$on:(T,me)=>ht(t,T,me)},de=ff(),ge=fe(de);{var Pe=T=>{var me=of();kr(me,21,()=>e(U),le=>le.id,(le,N)=>{var ve=St(),Le=fe(ve);{var Ae=xe=>{var P=ef(),Y=V(P);{let W=n(()=>i()||e(N).status==="placing");wi(Y,{get id(){return e(N).id},get name(){return e(N).file.name},get type(){return e(N).file.imageMimeType},get imageData(){return e(N).file.imageData},get imageMimeType(){return e(N).file.imageMimeType},variant:"thumbnail",thumbnailClass:"size-full",class:"size-full",get disabled(){return e(W)},get placementStatus(){return e(N).status},get placementError(){return e(N).error}})}var ae=A(Y,2);{var we=W=>{var be=zo(),Re=oe(be,!0);$(()=>{J(be,"data-failed",e(N).status==="failed"||void 0),J(be,"role",e(N).status==="failed"?"alert":"status"),J(be,"title",e(N).error),Q(Re,e(N).status==="failed"?e(N).error??o().attachmentFailed:o().attachmentPending)}),c(W,be)};O(ae,W=>{e(N).status&&W(we)})}var _=A(ae,2),Se=V(_);{var Ce=W=>{st(W,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(N).id),children:(be,Re)=>{Bt(be,{get icon(){return zs},size:16})},$$slots:{default:!0}})};O(Se,W=>{e(N).status==="failed"&&v()&&W(Ce)})}var E=A(Se,2);{let W=n(()=>d.chat_attachmentPreview_remove_ariaLabel({name:e(N).file.name}));a(E,()=>e(N).id,()=>e(W))}F(_),F(P),$(()=>J(P,"data-attachment-id",e(N).id)),xr("keydown",P,W=>X(W,e(N))),xr("contextmenu",P,W=>te(W,e(N))),Kt(1,P,()=>On,()=>({tier:"fast",y:3,scale:.98})),Kt(2,P,()=>Ya,()=>({tier:"fast"})),c(xe,P)},Ee=xe=>{const P=n(()=>e(N).kind==="image"&&!j(e(N))&&e(N).status!=="failed");var Y=sf(),ae=V(Y);{var we=ke=>{st(ke,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile file",get"aria-label"(){return e(N).name},get disabled(){return i()},onkeydown:$e=>ee($e,e(N).id),children:($e,Oe)=>{var Ue=tf(),se=fe(Ue);Bt(se,{get icon(){return ka},size:20});var Ge=A(se),yt=oe(Ge,!0);$(()=>Q(yt,e(N).name)),c($e,Ue)},$$slots:{default:!0}})},_=ke=>{{let $e=n(()=>L(e(N))),Oe=n(()=>i()||e(N).kind==="clip"&&(e(N).recording||!e(N).url));st(ke,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile",get"aria-label"(){return e($e)},get disabled(){return e(Oe)},onkeydown:Ue=>X(Ue,e(N)),onclick:Ue=>{Ue.currentTarget instanceof HTMLElement&&ne(e(N),Ue.currentTarget)},children:(Ue,se)=>{var Ge=St(),yt=fe(Ge);{var Ft=et=>{var Ke=rf();$(()=>J(Ke,"src",e(N).url)),c(et,Ke)},er=et=>{var Ke=nf(),$t=A(V(Ke)),Tt=oe($t,!0),ut=A($t);{var ze=K=>{var y=af(),pe=oe(y,!0);$(()=>Q(pe,e(N).summary)),c(K,y)};O(ut,K=>{e(N).summary&&K(ze)})}F(Ke),$(()=>Q(Tt,e(N).duration)),c(et,Ke)};O(yt,et=>{e(N).kind==="image"?et(Ft):et(er,-1)})}c(Ue,Ge)},$$slots:{default:!0}})}},Se=n(()=>e(N).kind!=="image"||j(e(N)));O(ae,ke=>{e(N).kind==="file"?ke(we):e(Se)&&ke(_,1)})}var Ce=A(ae,2);{var E=ke=>{var $e=zo(),Oe=oe($e,!0);$(()=>{J($e,"data-failed",e(N).status==="failed"||void 0),J($e,"role",e(N).status==="failed"?"alert":"status"),J($e,"title",e(N).error),Q(Oe,e(N).status==="failed"?e(N).error??o().attachmentFailed:o().attachmentPending)}),c(ke,$e)};O(Ce,ke=>{(e(N).status||e(P))&&ke(E)})}var W=A(Ce,2),be=V(W);{var Re=ke=>{st(ke,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(N).id),children:($e,Oe)=>{Bt($e,{get icon(){return zs},size:16})},$$slots:{default:!0}})},Ve=ke=>{{let $e=n(()=>u()?o().edit:o().markUp),Oe=n(()=>u()?o().edit:o().markUp);st(ke,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e($e)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(Oe)},onclick:()=>q(e(N).id),children:(Ue,se)=>{Cs(Ue,{glyph:"pencil"})},$$slots:{default:!0}})}},De=n(()=>j(e(N))),Et=ke=>{{let $e=n(()=>u()?o().edit:o().play),Oe=n(()=>u()?o().edit:o().play);st(ke,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e($e)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(Oe)},onclick:Ue=>{Ue.currentTarget instanceof HTMLElement&&ne(e(N),Ue.currentTarget)},children:(Ue,se)=>{{let Ge=n(()=>u()?"pencil":"play");Cs(Ue,{get glyph(){return e(Ge)}})}},$$slots:{default:!0}})}};O(be,ke=>{e(N).status==="failed"&&v()?ke(Re):e(De)?ke(Ve,1):e(N).kind==="clip"&&!e(N).recording&&e(N).url&&ke(Et,2)})}var ye=A(be,2);a(ye,()=>e(N).id,()=>o().remove),F(W),F(Y),$(()=>{J(Y,"data-kind",e(N).kind),J(Y,"data-attachment-id",e(N).id),J(Y,"aria-busy",e(P)||void 0)}),xr("contextmenu",Y,ke=>te(ke,e(N))),Kt(1,Y,()=>On,()=>({tier:"fast",y:3,scale:.98})),Kt(2,Y,()=>Ya,()=>({tier:"fast"})),c(xe,Y)};O(Le,xe=>{e(N).kind==="image"&&e(N).file?xe(Ae):xe(Ee,-1)})}c(le,ve)}),F(me),ea(me,le=>D(w,le),()=>e(w)),$(()=>J(me,"aria-label",o().attachments)),c(T,me)};O(ge,T=>{e(U).length&&T(Pe)})}var Ie=A(ge,2);{const T=le=>{var N=St(),ve=fe(N);{var Le=Ae=>{var Ee=lf(),xe=fe(Ee);{var P=_=>{st(_,{variant:"primary",get disabled(){return i()},onclick:()=>e(S)&&q(e(S).id),children:(Se,Ce)=>{Cr();var E=Pr();$(()=>Q(E,o().markUp)),c(Se,E)},$$slots:{default:!0}})},Y=n(()=>j(e(S)));O(xe,_=>{e(Y)&&_(P)})}var ae=A(xe,2);st(ae,{variant:"secondary",get disabled(){return i()},onclick:()=>e(S)&&z(e(S).id),children:(_,Se)=>{Cr();var Ce=Pr();$(()=>Q(Ce,o().remove)),c(_,Ce)},$$slots:{default:!0}});var we=A(ae,2);st(we,{variant:"ghost-light",onclick:()=>{D(C,!1)},children:(_,Se)=>{Cr();var Ce=Pr();$(()=>Q(Ce,o().done)),c(_,Ce)},$$slots:{default:!0}}),c(Ae,Ee)};O(ve,Ae=>{e(S)&&e(S).kind!=="file"&&Ae(Le)})}c(le,N)};let me=n(()=>e(S)?L(e(S)):o().attachments);yi(Ie,{get title(){return e(me)},size:"wide",showCloseButton:!1,onCloseAutoFocus:le=>{le.preventDefault(),G?.isConnected?G.focus():e(w)?.querySelector("button:not(:disabled)")?.focus()},get open(){return e(C)},set open(le){D(C,le,!0)},footer:T,children:(le,N)=>{var ve=St(),Le=fe(ve);{var Ae=Ee=>{var xe=uf(),P=V(xe);{var Y=_=>{var Se=df();$(Ce=>{J(Se,"src",e(S).url),J(Se,"alt",Ce)},[()=>L(e(S))]),c(_,Se)},ae=n(()=>e(S).kind==="image"&&j(e(S))),we=_=>{var Se=cf();$(Ce=>{J(Se,"src",e(S).url),J(Se,"aria-label",Ce)},[()=>L(e(S))]),c(_,Se)};O(P,_=>{e(ae)?_(Y):e(S).kind==="clip"&&e(S).url&&_(we,1)})}F(xe),c(Ee,xe)};O(Le,Ee=>{e(S)&&e(S).kind!=="file"&&Ee(Ae)})}c(le,ve)},$$slots:{footer:!0,default:!0}})}return c(r,de),bt(_e)}Ga(["keydown","contextmenu"]);var mf=I("<!> ",1),pf=I('<div class="flex flex-col gap-2 px-4 py-3 bg-muted/30 border border-border rounded-lg my-4"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="shrink-0 text-subtle"><!></div> <div class="font-medium text-sm"> </div></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="text-xs text-subtle"> </div> <pre class="text-xs bg-background/50 rounded p-2 overflow-x-auto max-h-40 overflow-y-auto font-mono"> </pre></div>');function Yi(r,t){if(new.target)return pt({component:Yi,...r});_t(t,!0);let a=g(t,"name",7),s=g(t,"description",7),o=g(t,"content",7),i=g(t,"onUseScript",7),l=ue(!1);function u(){navigator.clipboard.writeText(o()),D(l,!0),setTimeout(()=>{D(l,!1)},2e3)}function h(){i()?.({name:a(),description:s(),content:o()})}var v={get name(){return a()},set name(R){a(R),m()},get description(){return s()},set description(R){s(R),m()},get content(){return o()},set content(R){o(R),m()},get onUseScript(){return i()},set onUseScript(R){i(R),m()},$set:vt,$on:(R,X)=>ht(t,R,X)},x=pf(),M=V(x),B=V(M),U=V(B),w=V(U);Bt(w,{get icon(){return ps},size:"sm"}),F(U);var C=A(U,2),re=oe(C,!0);F(B);var G=A(B,2),S=V(G);st(S,{variant:"ghost-light",size:"sm",onclick:u,class:"h-7 px-2",children:(R,X)=>{var te=mf(),_e=fe(te);{let ge=n(()=>e(l)?hi:_i);Bt(_e,{get icon(){return e(ge)},class:"mr-1"})}var de=A(_e);$(ge=>Q(de,` ${ge??""}`),[()=>e(l)?d.chat_shared_copied_label():d.chat_shared_copy_label()]),c(R,te)},$$slots:{default:!0}});var j=A(S,2);{var L=R=>{st(R,{variant:"ghost-light",size:"sm",onclick:h,class:"h-7 px-2",children:(X,te)=>{Cr();var _e=Pr();$(de=>Q(_e,de),[()=>d.chat_setupScriptCard_useScript_label()]),c(X,_e)},$$slots:{default:!0}})};O(j,R=>{i()&&R(L)})}F(G),F(M);var ne=A(M,2),z=oe(ne,!0),q=A(ne,2),ee=oe(q,!0);return F(x),$(()=>{Q(re,a()),Q(z,s()),Q(ee,o())}),c(r,x),bt(v)}const yr={toolStart:/(?:\x1B\[\d+m)?🔧\s+(?:Tool call:\s+)?(.+?)(?:\x1B\[0m)?$/,toolDetail:/(?:[└├]─\s+(.+)$|^\s{3,}(.+)$)/,toolResult:/(?:\x1B\[\d+m)?📋\s+Tool result:\s+(.+?)(?:\x1B\[0m)?$/,toolSuccess:/[✓✔✅]\s+(.+)$/,toolError:/[❌✗❎]\s+(.+)$/,sessionInfo:/[Ss]ession:\s*([a-f0-9-]+)/,resumedSession:/📂?\s*Resumed session/i,assistantMarker:/🤖/,systemMarker:/💻/,userMarker:/👤/,thinkingMarker:/🤔\s*Thinking/i,waitingMarker:/^⏳\s+Running/i,indexingProgress:/^Indexing:\s*\[.*\]\s*\d+%/,agentDigest:/<agent_digest>([\s\S]*?)<\/agent_digest>/,setupScript:/<setup_script\s+name="([^"]+)"\s+description="([^"]+)">([\s\S]*?)<\/setup_script>/};class vf{constructor(){pa(this,"buffer","");pa(this,"currentToolName",null);pa(this,"currentToolId",null);pa(this,"lastToolId",null);pa(this,"currentToolParams",[]);pa(this,"currentToolResultContent",[]);pa(this,"inToolResult",!1);pa(this,"inCodeBlock",!1);pa(this,"codeBlockLanguage","");pa(this,"codeBlockContent","");pa(this,"characterBuffer","");pa(this,"inCharacterMode",!1);pa(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const o=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const u=this.currentToolResultContent.some(v=>v.startsWith("❌")||v.startsWith("Error:")),h=this.currentToolResultContent.map(v=>v.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
|
|
2
2
|
`);o.push({type:"tool_result",content:h,metadata:{toolId:this.currentToolId,isError:u}}),this.lastToolId=this.currentToolId,this.currentToolId=null,this.inToolResult=!1,this.currentToolResultContent=[]}const i=t.indexOf("🤖"),l=t.substring(i+2);if(this.inCharacterMode=!0,this.characterBuffer="",l&&l.trim()&&l!==`
|
|
3
3
|
`){const u=l.replace(/^\n/,"");u&&(this.characterBuffer=u)}return o}if(this.inCharacterMode){if(t.trim()===""&&this.characterBuffer==="")return[];if(t.includes(`
|
|
4
4
|
`)&&this.characterBuffer.length>0){const o=t.substring(0,t.indexOf(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./
|
|
1
|
+
import{l as e}from"./DX2U4Mz9.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],a={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}]},m={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{a as conf,m as language};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as P}from"./
|
|
1
|
+
import{c as P}from"./DgjIVRdE.js";import{c as J,f as Q,C as Y,H as y,g as G,b as X,F as Z,S as $,a as K}from"./DQvAX2eX.js";import{D as Oe,d as Ie,e as Le,R as Ne,h as Ee,i as Ue,j as De,t as Be,k as Re}from"./DQvAX2eX.js";import{l as _,g as B}from"./DX2U4Mz9.js";const x=120*1e3;class C{constructor(i){this._defaults=i,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>x&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=P({moduleId:"vs/language/json/jsonWorker",createWorker:()=>new Worker(new URL("/app/immutable/workers/json.worker-Cgaz53LV.js",import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...i){let t;return this._getClient().then(n=>{t=n}).then(n=>{if(this._worker)return this._worker.withSyncedResources(i)}).then(n=>t)}}function ee(e,i=!1){const t=e.length;let n=0,o="",p=0,l=16,u=0,g=0,w=0,v=0,c=0;function O(s,m){let a=0,r=0;for(;a<s;){let f=e.charCodeAt(n);if(f>=48&&f<=57)r=r*16+f-48;else if(f>=65&&f<=70)r=r*16+f-65+10;else if(f>=97&&f<=102)r=r*16+f-97+10;else break;n++,a++}return a<s&&(r=-1),r}function U(s){n=s,o="",p=0,l=16,c=0}function N(){let s=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&T(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&T(e.charCodeAt(n)))for(n++;n<e.length&&T(e.charCodeAt(n));)n++;else return c=3,e.substring(s,n);let m=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&T(e.charCodeAt(n))){for(n++;n<e.length&&T(e.charCodeAt(n));)n++;m=n}else c=3;return e.substring(s,m)}function q(){let s="",m=n;for(;;){if(n>=t){s+=e.substring(m,n),c=2;break}const a=e.charCodeAt(n);if(a===34){s+=e.substring(m,n),n++;break}if(a===92){if(s+=e.substring(m,n),n++,n>=t){c=2;break}switch(e.charCodeAt(n++)){case 34:s+='"';break;case 92:s+="\\";break;case 47:s+="/";break;case 98:s+="\b";break;case 102:s+="\f";break;case 110:s+=`
|
|
2
2
|
`;break;case 114:s+="\r";break;case 116:s+=" ";break;case 117:const f=O(4);f>=0?s+=String.fromCharCode(f):c=4;break;default:c=5}m=n;continue}if(a>=0&&a<=31)if(I(a)){s+=e.substring(m,n),c=2;break}else c=6;n++}return s}function D(){if(o="",c=0,p=n,g=u,v=w,n>=t)return p=t,l=17;let s=e.charCodeAt(n);if(E(s)){do n++,o+=String.fromCharCode(s),s=e.charCodeAt(n);while(E(s));return l=15}if(I(s))return n++,o+=String.fromCharCode(s),s===13&&e.charCodeAt(n)===10&&(n++,o+=`
|
|
3
3
|
`),u++,w=n,l=14;switch(s){case 123:return n++,l=1;case 125:return n++,l=2;case 91:return n++,l=3;case 93:return n++,l=4;case 58:return n++,l=6;case 44:return n++,l=5;case 34:return n++,o=q(),l=10;case 47:const m=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<t&&!I(e.charCodeAt(n));)n++;return o=e.substring(m,n),l=12}if(e.charCodeAt(n+1)===42){n+=2;const a=t-1;let r=!1;for(;n<a;){const f=e.charCodeAt(n);if(f===42&&e.charCodeAt(n+1)===47){n+=2,r=!0;break}n++,I(f)&&(f===13&&e.charCodeAt(n)===10&&n++,u++,w=n)}return r||(n++,c=1),o=e.substring(m,n),l=13}return o+=String.fromCharCode(s),n++,l=16;case 45:if(o+=String.fromCharCode(s),n++,n===t||!T(e.charCodeAt(n)))return l=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return o+=N(),l=11;default:for(;n<t&&z(s);)n++,s=e.charCodeAt(n);if(p!==n){switch(o=e.substring(p,n),o){case"true":return l=8;case"false":return l=9;case"null":return l=7}return l=16}return o+=String.fromCharCode(s),n++,l=16}}function z(s){if(E(s)||I(s))return!1;switch(s){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function d(){let s;do s=D();while(s>=12&&s<=15);return s}return{setPosition:U,getPosition:()=>n,scan:i?d:D,getToken:()=>l,getTokenValue:()=>o,getTokenOffset:()=>p,getTokenLength:()=>n-p,getTokenStartLine:()=>g,getTokenStartCharacter:()=>p-v,getTokenError:()=>c}}function E(e){return e===32||e===9}function I(e){return e===10||e===13}function T(e){return e>=48&&e<=57}var R;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(R||(R={}));new Array(20).fill(0).map((e,i)=>" ".repeat(i));const A=200;new Array(A).fill(0).map((e,i)=>`
|
|
4
4
|
`+" ".repeat(i)),new Array(A).fill(0).map((e,i)=>"\r"+" ".repeat(i)),new Array(A).fill(0).map((e,i)=>`\r
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as V,bo as q,bm as H,bw as F,bq as dt,b as G,bs as nt}from"./
|
|
1
|
+
import{t as V,bo as q,bm as H,bw as F,bq as dt,b as G,bs as nt}from"./DWvCfaBg.js";import{bs as K,cd as lt,ca as j,c5 as ct,a5 as C,be as z,b$ as J,b_ as x,bO as _,W as l,bH as M,aD as e,bS as B,bA as T,bn as N,bV as it,aA as R,c9 as u,aB as b,bl as S,ay as pt}from"./3SdAC2_C.js";import{i as L}from"./VTJf_qPn.js";import{C as ut}from"./BbfEcBPg.js";import{f as U}from"./Drf1gLyo.js";import"./CIKXOyvw.js";import{l as bt}from"./CGUVvS8r.js";import{Jx as P,dC as vt,dA as kt,dD as _t}from"./CIoJPvjg.js";var gt=b('<p class="p-2 text-xs text-subtle" data-testid="hook-script-content-too-large"> </p>'),mt=b('<div class="min-h-0 min-w-0 flex-1 overflow-auto" data-testid="hook-script-content-script"><!></div>'),ft=b('<span class="text-xs font-medium text-danger"> </span> <pre class="whitespace-pre-wrap break-all rounded bg-danger-background/10 p-2 font-mono text-xs text-danger"> </pre>',1),xt=b('<pre class="whitespace-pre-wrap break-all rounded bg-muted/40 p-2 font-mono text-xs text-subtle"> </pre>'),ht=b('<p class="text-xs text-subtle"> </p>'),wt=b('<div class="flex min-h-0 min-w-0 flex-1 flex-col gap-2 overflow-auto" data-testid="hook-script-content-logs"><!> <!></div>'),It=b('<div class="flex h-full min-h-0 min-w-0 flex-col gap-3 overflow-hidden" data-testid="hook-script-content"><div class="flex shrink-0 border-b border-border" role="tablist"><!> <!></div> <!></div>');function Q(h,c){if(new.target)return V({component:Q,...h});K(c,!0);const g=()=>nt($,"$hooks$",w),[w,A]=dt();let s=q(c,"workspaceId",7),I=q(c,"hookId",7);const d=lt(s());j(()=>d.set(s()));const $=bt(d),v=u(()=>g().find(t=>t.hookId===I()));j(()=>{if(!s())return;const t=s();return ct(()=>{P.dispatch(vt(t)),P.dispatch(kt(t))}),()=>P.dispatch(_t(t))});let k=it("script");var X={get workspaceId(){return s()},set workspaceId(t){s(t),R()},get hookId(){return I()},set hookId(t){I(t),R()},$set:F,$on:(t,r)=>G(c,t,r)},E=It(),D=C(E),W=C(D);{let t=u(()=>e(k)==="script"),r=u(()=>e(k)==="script"?"border-primary-ink text-primary-ink":"border-transparent text-subtle");U(W,{variant:"ghost",role:"tab",get"aria-selected"(){return e(t)},get class(){return`border-b-2 px-3 py-1.5 text-sm ${e(r)??""}`},onclick:()=>M(k,"script"),children:(p,y)=>{z();var i=J();x(a=>_(i,a),[()=>H.chat_backgroundHooks_modal_scriptTab_label()]),l(p,i)},$$slots:{default:!0}})}var Y=B(W,2);{let t=u(()=>e(k)==="logs"),r=u(()=>e(k)==="logs"?"border-primary-ink text-primary-ink":"border-transparent text-subtle");U(Y,{variant:"ghost",role:"tab",get"aria-selected"(){return e(t)},get class(){return`border-b-2 px-3 py-1.5 text-sm ${e(r)??""}`},onclick:()=>M(k,"logs"),children:(p,y)=>{z();var i=J();x(a=>_(i,a),[()=>H.chat_backgroundHooks_modal_logsTab_label()]),l(p,i)},$$slots:{default:!0}})}T(D);var Z=B(D,2);{var tt=t=>{var r=mt(),p=C(r);{var y=a=>{var m=gt(),o=S(m,!0);x(n=>_(o,n),[()=>H.chat_backgroundHooks_modal_codeTooLarge_description({size:(e(v).codeBytes??0).toLocaleString()})]),l(a,m)},i=a=>{{let m=u(()=>e(v)?.code??"");ut(a,{get code(){return e(m)},language:"javascript",noMargin:!0})}};L(p,a=>{e(v)?.codeOmitted?a(y):a(i,-1)})}T(r),l(t,r)},et=t=>{var r=wt(),p=C(r);{var y=o=>{var n=ft(),f=pt(n),O=S(f,!0),at=B(f,2),ot=S(at,!0);x(st=>{_(O,st),_(ot,e(v).lastError)},[()=>H.chat_backgroundHooks_modal_lastError_label()]),l(o,n)};L(p,o=>{e(v)?.lastError&&o(y)})}var i=B(p,2);{var a=o=>{var n=xt(),f=S(n,!0);x(()=>_(f,e(v).lastLogs)),l(o,n)},m=o=>{var n=ht(),f=S(n,!0);x(O=>_(f,O),[()=>H.chat_backgroundHooks_modal_noLogs_description()]),l(o,n)};L(i,o=>{e(v)?.lastLogs?o(a):o(m,-1)})}T(r),l(t,r)};L(Z,t=>{e(k)==="script"?t(tt):t(et,-1)})}T(E),l(h,E);var rt=N(X);return A(),rt}var $t=b('<div class="h-full min-h-0 min-w-0 max-w-full overflow-hidden p-4" data-testid="hook-script-panel"><!></div>');function yt(h,c){if(new.target)return V({component:yt,...h});K(c,!0);let g=q(c,"tab",7),w=q(c,"workspaceId",7);var A={get tab(){return g()},set tab(d){g(d),R()},get workspaceId(){return w()},set workspaceId(d){w(d),R()},$set:F,$on:(d,$)=>G(c,d,$)},s=$t(),I=C(s);{let d=u(()=>g().workspaceId??w()),$=u(()=>g().hookId??"");Q(I,{get workspaceId(){return e(d)},get hookId(){return e($)}})}return T(s),l(h,s),N(A)}export{yt as default};
|