@intent-hq/web 2.384.1 → 2.385.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{BiM95_Ol.js → 0RCk28l5.js} +1 -1
- package/web/app/immutable/chunks/{DQdjZnba.js → 0oyPeRI9.js} +1 -1
- package/web/app/immutable/chunks/{Tk34IzPH.js → 2zSj5_GV.js} +1 -1
- package/web/app/immutable/chunks/{gZ0nGq7V.js → 3VhO4Wn2.js} +1 -1
- package/web/app/immutable/chunks/{6n7e2aNB.js → 3qVSmuIV.js} +1 -1
- package/web/app/immutable/chunks/{D59epBkG.js → 40W1U6K5.js} +1 -1
- package/web/app/immutable/chunks/{BZidc-yX.js → 418Agcsp.js} +1 -1
- package/web/app/immutable/chunks/{BTtAt-Pu.js → 4PAYwk2I.js} +1 -1
- package/web/app/immutable/chunks/{DXdFemRu.js → 4g_iHoQm.js} +1 -1
- package/web/app/immutable/chunks/{B7eTEd5f.js → 4poQ2xKW.js} +1 -1
- package/web/app/immutable/chunks/{CXul4WJt.js → 5-0LQoqd.js} +1 -1
- package/web/app/immutable/chunks/{BTc_j7Dt.js → 7KxcPj98.js} +1 -1
- package/web/app/immutable/chunks/{CpMQqUEz.js → 7OH6WUSt.js} +1 -1
- package/web/app/immutable/chunks/{BwLxx4IG.js → 7y3Z0Q49.js} +3 -3
- package/web/app/immutable/chunks/{B4mHWFlW.js → 8jMQM9h0.js} +1 -1
- package/web/app/immutable/chunks/{xmnalplU.js → 94vL4WlW.js} +1 -1
- package/web/app/immutable/chunks/{BVlMQ1xQ.js → 9GO97JAL.js} +1 -1
- package/web/app/immutable/chunks/{CpimfPxg.js → A0KsbysW.js} +1 -1
- package/web/app/immutable/chunks/{wsPxCWV4.js → B-E_4dSm.js} +2 -2
- package/web/app/immutable/chunks/{DaXosNFA.js → B0qb2Ymj.js} +1 -1
- package/web/app/immutable/chunks/{BFBQinse.js → B22zVGFP.js} +1 -1
- package/web/app/immutable/chunks/{k863GLf6.js → B2CniqS1.js} +1 -1
- package/web/app/immutable/chunks/{CQ9fljqW.js → B2XeuV1l.js} +1 -1
- package/web/app/immutable/chunks/{CmImGhNY.js → B433f4mk.js} +1 -1
- package/web/app/immutable/chunks/{BJ1Bk8co.js → B5pL-E-o.js} +1 -1
- package/web/app/immutable/chunks/{55FYKQCf.js → B5qiyEpH.js} +1 -1
- package/web/app/immutable/chunks/{BNN0vAFF.js → B5tvpTFB.js} +1 -1
- package/web/app/immutable/chunks/{CE0jr9sE.js → B6FGs8l2.js} +1 -1
- package/web/app/immutable/chunks/{CdhlQsS3.js → B6QnBRPC.js} +1 -1
- package/web/app/immutable/chunks/{Di3TE7pQ.js → B6d1Nolc.js} +1 -1
- package/web/app/immutable/chunks/{B4PfEXaO.js → B6eTPmJH.js} +1 -1
- package/web/app/immutable/chunks/{B7JHU89G.js → B8HnjSSF.js} +1 -1
- package/web/app/immutable/chunks/{xeMXLCBg.js → B8QvP_8b.js} +1 -1
- package/web/app/immutable/chunks/{eZPmVSmq.js → B9ka1bX8.js} +2 -2
- package/web/app/immutable/chunks/{CDVdEpeY.js → BBYtaKSX.js} +1 -1
- package/web/app/immutable/chunks/{I8XhKsSY.js → BByf3ILj.js} +1 -1
- package/web/app/immutable/chunks/{BMPSP6zy.js → BCLFORRd.js} +1 -1
- package/web/app/immutable/chunks/{leDczq9h.js → BD9db4FR.js} +1 -1
- package/web/app/immutable/chunks/{DLvrhtSt.js → BDsciJGp.js} +1 -1
- package/web/app/immutable/chunks/{X-wIiWCo.js → BECK4OaG.js} +1 -1
- package/web/app/immutable/chunks/{HP51nVq8.js → BGspyNwk.js} +1 -1
- package/web/app/immutable/chunks/{Cr6ukNck.js → BHEogMS0.js} +2 -2
- package/web/app/immutable/chunks/{BAdVoGAI.js → BHqp2vwo.js} +1 -1
- package/web/app/immutable/chunks/{CIU_APaR.js → BIGqOuh0.js} +1 -1
- package/web/app/immutable/chunks/{DilOhRAO.js → BJO0de_7.js} +1 -1
- package/web/app/immutable/chunks/{BDPP0w0q.js → BJgwBOBz.js} +1 -1
- package/web/app/immutable/chunks/{DxDZbRkP.js → BLKFshyr.js} +1 -1
- package/web/app/immutable/chunks/{XzLIP4y8.js → BNX4ri6c.js} +3 -3
- package/web/app/immutable/chunks/{D2Rapl2X.js → BNa9zzEx.js} +1 -1
- package/web/app/immutable/chunks/{C1GvdDuD.js → BO4b6Ny-.js} +2 -2
- package/web/app/immutable/chunks/{CVoQx6Vw.js → BO8Bp7Ht.js} +1 -1
- package/web/app/immutable/chunks/{DUhda8VE.js → BORk03Sd.js} +1 -1
- package/web/app/immutable/chunks/{B4T9RExk.js → BP1fPIN6.js} +1 -1
- package/web/app/immutable/chunks/{rNjiZ_3W.js → BPuz5cN_.js} +2 -2
- package/web/app/immutable/chunks/{Bygp72Wl.js → BSUnflvl.js} +1 -1
- package/web/app/immutable/chunks/{CQhRmQZt.js → BSWVBeG0.js} +1 -1
- package/web/app/immutable/chunks/{Df4fyHSB.js → BSgFpkqa.js} +1 -1
- package/web/app/immutable/chunks/{BOpszErG.js → BSntxgH1.js} +1 -1
- package/web/app/immutable/chunks/{4Pag07jF.js → BT8hDSo1.js} +1 -1
- package/web/app/immutable/chunks/{BX_Jr21Z.js → BU1Gcrkq.js} +1 -1
- package/web/app/immutable/chunks/{Cb6nJOfB.js → BV1ayWTC.js} +1 -1
- package/web/app/immutable/chunks/{DA6dl8M4.js → BV47Ledo.js} +1 -1
- package/web/app/immutable/chunks/{CGmFuvv3.js → BVctKbNy.js} +1 -1
- package/web/app/immutable/chunks/{CIzFSDuO.js → BVkAOJlr.js} +1 -1
- package/web/app/immutable/chunks/{Bosi029J.js → BVl79jmM.js} +1 -1
- package/web/app/immutable/chunks/{iVHs_bWz.js → BVuLEX_p.js} +1 -1
- package/web/app/immutable/chunks/{uAXEbxa8.js → BW1iql_y.js} +1 -1
- package/web/app/immutable/chunks/{DDnDtSlm.js → BXJzIaQM.js} +1 -1
- package/web/app/immutable/chunks/{C41iTvQS.js → BYLCAn5f.js} +1 -1
- package/web/app/immutable/chunks/{Mh0PqgbP.js → B_4WsP9b.js} +1 -1
- package/web/app/immutable/chunks/{D5-RCLzi.js → B_75gRww.js} +1 -1
- package/web/app/immutable/chunks/{CQZUFyS7.js → BbLh3POL.js} +1 -1
- package/web/app/immutable/chunks/{D5q2XDzo.js → BbuLzldI.js} +1 -1
- package/web/app/immutable/chunks/{72S4_8Fo.js → Bc1vJq_Z.js} +1 -1
- package/web/app/immutable/chunks/{KmGBeLVg.js → BcEkxi5l.js} +1 -1
- package/web/app/immutable/chunks/{BTtqZJEI.js → BcKrkXju.js} +1 -1
- package/web/app/immutable/chunks/{DTdAlnvg.js → Bd1Doib5.js} +5 -5
- package/web/app/immutable/chunks/{6kZoubzS.js → BdEtT3Ti.js} +1 -1
- package/web/app/immutable/chunks/{MEhQGTPs.js → BeJRU38G.js} +3 -3
- package/web/app/immutable/chunks/{ClyQ7g2p.js → BeU-lAdJ.js} +1 -1
- package/web/app/immutable/chunks/{BXE_7Biv.js → Bf_nrOhg.js} +1 -1
- package/web/app/immutable/chunks/{CwHPdS9l.js → BgDnzAo4.js} +1 -1
- package/web/app/immutable/chunks/{CfE9G-Vk.js → BhD_8q1J.js} +1 -1
- package/web/app/immutable/chunks/{Cm60YBNN.js → Bhb3isek.js} +4 -4
- package/web/app/immutable/chunks/{CjsT6P1W.js → Bi-y50ry.js} +1 -1
- package/web/app/immutable/chunks/{0tWsVa0y.js → Bi_Yd73A.js} +1 -1
- package/web/app/immutable/chunks/{CEjK2ich.js → BjlMkd10.js} +1 -1
- package/web/app/immutable/chunks/{BxiKdHSR.js → BlDwsvYd.js} +1 -1
- package/web/app/immutable/chunks/{RWWlGLMu.js → BlIRL_82.js} +1 -1
- package/web/app/immutable/chunks/{BbV6R15i.js → BmF8Qq3w.js} +1 -1
- package/web/app/immutable/chunks/{Bmn4uqsd.js → BoIbJp9v.js} +1 -1
- package/web/app/immutable/chunks/{D5reO2Y0.js → BpYEdDT4.js} +1 -1
- package/web/app/immutable/chunks/BsdyWfPQ.js +2 -0
- package/web/app/immutable/chunks/{CMbvNZma.js → BtBQ5qfh.js} +1 -1
- package/web/app/immutable/chunks/{CZDat5YW.js → Bt_vaAcw.js} +1 -1
- package/web/app/immutable/chunks/{CcmN1reb.js → Bu-RLSv9.js} +1 -1
- package/web/app/immutable/chunks/{CXrVII1G.js → BuFDqZnJ.js} +1 -1
- package/web/app/immutable/chunks/{DSTc-o8X.js → BuPmvT2w.js} +1 -1
- package/web/app/immutable/chunks/{-31r5MID.js → BupDQr_B.js} +2 -2
- package/web/app/immutable/chunks/{CJoPlWyA.js → Bv_xG3nA.js} +1 -1
- package/web/app/immutable/chunks/{eTRx_lEs.js → BvbZcfOT.js} +1 -1
- package/web/app/immutable/chunks/{Djz9uuuA.js → BvbeTrka.js} +1 -1
- package/web/app/immutable/chunks/{JD0Hsmjx.js → BvzO6hxM.js} +1 -1
- package/web/app/immutable/chunks/{BACpI8G6.js → BwC--T1G.js} +1 -1
- package/web/app/immutable/chunks/{4jB5IsVV.js → BwPwF85e.js} +1 -1
- package/web/app/immutable/chunks/{BMW8QkkW.js → Bwx5QwNp.js} +1 -1
- package/web/app/immutable/chunks/{B1DQbauY.js → BxU4EAMe.js} +1 -1
- package/web/app/immutable/chunks/{E92QiCEr.js → ByZMA8RF.js} +1 -1
- package/web/app/immutable/chunks/{IxfPVMNO.js → C-G2u0Oe.js} +1 -1
- package/web/app/immutable/chunks/{0v4yIgtg.js → C-PQQ8rb.js} +1 -1
- package/web/app/immutable/chunks/{D400ElMz.js → C-zB-6G6.js} +1 -1
- package/web/app/immutable/chunks/{YtoDeXhM.js → C0Zo7HuP.js} +1 -1
- package/web/app/immutable/chunks/{ump_SWLl.js → C1AUaRa8.js} +1 -1
- package/web/app/immutable/chunks/{COB2k0Aa.js → C2F2Vd1P.js} +1 -1
- package/web/app/immutable/chunks/{Rz920YbF.js → C2Hs8n0u.js} +1 -1
- package/web/app/immutable/chunks/{Dkgk_rvZ.js → C3-81PRC.js} +4 -4
- package/web/app/immutable/chunks/{8eQog6L5.js → C3gIkQxX.js} +1 -1
- package/web/app/immutable/chunks/{BltFs6ST.js → C412Y6ti.js} +2 -2
- package/web/app/immutable/chunks/{BgPJ_lbZ.js → C4Py2-C-.js} +1 -1
- package/web/app/immutable/chunks/{CCej7AMq.js → C4UnZ5aI.js} +1 -1
- package/web/app/immutable/chunks/{C6g7LzDB.js → C50zlWbZ.js} +1 -1
- package/web/app/immutable/chunks/{CmbheRhJ.js → C63WwVct.js} +1 -1
- package/web/app/immutable/chunks/{CJW4jhjq.js → C8LrJXqa.js} +1 -1
- package/web/app/immutable/chunks/{Bb9tq6rt.js → C9ew0Hx2.js} +1 -1
- package/web/app/immutable/chunks/{DpChblex.js → C9p4fddz.js} +1 -1
- package/web/app/immutable/chunks/{3BCyU2N-.js → CA8JHp72.js} +1 -1
- package/web/app/immutable/chunks/{C0fFeGdB.js → CAfPEsZt.js} +1 -1
- package/web/app/immutable/chunks/CAtVH-rJ.js +158 -0
- package/web/app/immutable/chunks/CCIZBeez.js +1 -0
- package/web/app/immutable/chunks/{BhVPbMnV.js → CD-M_2xD.js} +1 -1
- package/web/app/immutable/chunks/{cKonll34.js → CDAnHxmJ.js} +1 -1
- package/web/app/immutable/chunks/{DJEkkAqR.js → CDBHtmaA.js} +1 -1
- package/web/app/immutable/chunks/{CzG_0Mji.js → CE9_m5Rd.js} +1 -1
- package/web/app/immutable/chunks/{AYsHMWH3.js → CEEUgGO1.js} +1 -1
- package/web/app/immutable/chunks/{DvjmmZhh.js → CEfkJpk7.js} +1 -1
- package/web/app/immutable/chunks/{DETS1-K4.js → CGYPBD6G.js} +1 -1
- package/web/app/immutable/chunks/{C0CrTfQC.js → CHto7_WH.js} +1 -1
- package/web/app/immutable/chunks/{KMO8sO00.js → CI0C7_h-.js} +1 -1
- package/web/app/immutable/chunks/{DnQOpOtg.js → CIWky03S.js} +3 -3
- package/web/app/immutable/chunks/{CHMwcoWM.js → CIaruUrd.js} +1 -1
- package/web/app/immutable/chunks/{BzqJYEOZ.js → CJB-ebPL.js} +1 -1
- package/web/app/immutable/chunks/{DtO9zNSi.js → CJNNcGWg.js} +1 -1
- package/web/app/immutable/chunks/{rjhGooNa.js → CLlFdy2p.js} +1 -1
- package/web/app/immutable/chunks/{BWM_jjc6.js → CLo9TzNK.js} +1 -1
- package/web/app/immutable/chunks/{CegXgKbh.js → CNSshwg_.js} +1 -1
- package/web/app/immutable/chunks/{BvGyYsBI.js → COflq_3N.js} +3 -3
- package/web/app/immutable/chunks/{O63l2zGE.js → COgn_CzG.js} +1 -1
- package/web/app/immutable/chunks/{BWtgRgi0.js → CPI5xBWX.js} +1 -1
- package/web/app/immutable/chunks/{BswbJQ0U.js → CPaH4fRt.js} +1 -1
- package/web/app/immutable/chunks/{ByYwSpDO.js → CQMFoUkp.js} +1 -1
- package/web/app/immutable/chunks/{BmALJKBY.js → CR-JVxLD.js} +1 -1
- package/web/app/immutable/chunks/CT9qg5pc.js +1 -0
- package/web/app/immutable/chunks/{DpmMYKqt.js → CTW83wJs.js} +1 -1
- package/web/app/immutable/chunks/{DMrypNw-.js → CV2tdNDf.js} +1 -1
- package/web/app/immutable/chunks/{CFjwzuFW.js → CVU_1O7c.js} +1 -1
- package/web/app/immutable/chunks/{C2jf24pz.js → CVs9CHtI.js} +1 -1
- package/web/app/immutable/chunks/{C9fPgzDG.js → CWOQ_pUA.js} +1 -1
- package/web/app/immutable/chunks/{Di0D97hw.js → CWTUGfLW.js} +1 -1
- package/web/app/immutable/chunks/{CWwAStwx.js → CXDUvPYf.js} +1 -1
- package/web/app/immutable/chunks/{_Tye__BB.js → CYSndAne.js} +1 -1
- package/web/app/immutable/chunks/{DnHJL326.js → C_SKcJv7.js} +1 -1
- package/web/app/immutable/chunks/{d7CFoqrB.js → Cbb4o3qj.js} +1 -1
- package/web/app/immutable/chunks/{esAd2hCU.js → CbxBZqC_.js} +1 -1
- package/web/app/immutable/chunks/{C-srtNB0.js → CdbRvoG6.js} +1 -1
- package/web/app/immutable/chunks/{BGN2EuCq.js → ClNMpui4.js} +1 -1
- package/web/app/immutable/chunks/{edw8TVSr.js → CletI6Pa.js} +1 -1
- package/web/app/immutable/chunks/{CcNZQwT1.js → Clez3uTU.js} +3 -3
- package/web/app/immutable/chunks/{CwTWayd0.js → Clo7aK1n.js} +1 -1
- package/web/app/immutable/chunks/{B57eLsJv.js → Cnl_O3ZO.js} +1 -1
- package/web/app/immutable/chunks/{CWezNj5-.js → CoJyxFcH.js} +1 -1
- package/web/app/immutable/chunks/{DCP9TL-A.js → Cp02CBjf.js} +1 -1
- package/web/app/immutable/chunks/{BaJfBXet.js → Cp7Byf5d.js} +1 -1
- package/web/app/immutable/chunks/{C7OV0KqB.js → CqrCSb8W.js} +1 -1
- package/web/app/immutable/chunks/{DRg21hWl.js → Cr2Op5yp.js} +2 -2
- package/web/app/immutable/chunks/{DvdS-8it.js → Cr5QjekU.js} +1 -1
- package/web/app/immutable/chunks/{lDDdxVqt.js → CrEMns9K.js} +1 -1
- package/web/app/immutable/chunks/{DXB4L22V.js → CrsbEWnE.js} +1 -1
- package/web/app/immutable/chunks/{BYIgLpGQ.js → Csh6XB2J.js} +1 -1
- package/web/app/immutable/chunks/{ZAUoxjxb.js → CsyhqW-P.js} +1 -1
- package/web/app/immutable/chunks/{DOuyIvfN.js → CuPx_r7k.js} +1 -1
- package/web/app/immutable/chunks/{BD47nZkr.js → Cy9hcA7q.js} +1 -1
- package/web/app/immutable/chunks/{CjZEyjv4.js → D-rRuAXZ.js} +1 -1
- package/web/app/immutable/chunks/{D5i4Tktw.js → D0R3sca1.js} +1 -1
- package/web/app/immutable/chunks/{Dc7e-OgI.js → D20kqX2U.js} +2 -2
- package/web/app/immutable/chunks/{CKc3ivIh.js → D2mnZ9kC.js} +2 -2
- package/web/app/immutable/chunks/{DAUcVagO.js → D5Tu5Sg8.js} +1 -1
- package/web/app/immutable/chunks/{DTU57FsX.js → D7Dfbf5g.js} +1 -1
- package/web/app/immutable/chunks/{C8veqOP9.js → D8XzixBC.js} +1 -1
- package/web/app/immutable/chunks/{CPel99qV.js → DDb9H7X6.js} +3 -3
- package/web/app/immutable/chunks/{DUkL2vjQ.js → DDrpCbke.js} +1 -1
- package/web/app/immutable/chunks/{BQXu3XXC.js → DEDo4DeD.js} +4 -4
- package/web/app/immutable/chunks/{CEaHYCM5.js → DErxk4N4.js} +1 -1
- package/web/app/immutable/chunks/{DfOxl3xY.js → DEs9kPtf.js} +1 -1
- package/web/app/immutable/chunks/{DhHLTWgE.js → DGMrUmNq.js} +1 -1
- package/web/app/immutable/chunks/{5ibcqblv.js → DGVdJiQ7.js} +1 -1
- package/web/app/immutable/chunks/{CTKlTmjI.js → DHf7N1bI.js} +1 -1
- package/web/app/immutable/chunks/{CvxVjZLu.js → DI71nFp4.js} +1 -1
- package/web/app/immutable/chunks/{AXE1aiRo.js → DJPIUVkw.js} +1 -1
- package/web/app/immutable/chunks/{BWmYJDmC.js → DLCFUd4s.js} +1 -1
- package/web/app/immutable/chunks/{2V6-Yhg-.js → DM1_VFfD.js} +1 -1
- package/web/app/immutable/chunks/{Dh_uOrf0.js → DMeCi1eF.js} +1 -1
- package/web/app/immutable/chunks/{Bs8vOu-_.js → DPR_clFy.js} +1 -1
- package/web/app/immutable/chunks/{ClNWpSoj.js → DPY-p9P3.js} +2 -2
- package/web/app/immutable/chunks/{7Em2EC6e.js → DQT1hnTe.js} +1 -1
- package/web/app/immutable/chunks/{CMn1nNPl.js → DR6M_MBd.js} +1 -1
- package/web/app/immutable/chunks/{D0I7VQ8a.js → DSiGyv9Y.js} +1 -1
- package/web/app/immutable/chunks/{B80lqB7E.js → DTDtxEAk.js} +1 -1
- package/web/app/immutable/chunks/{CvCS8OAf.js → DUAtqTLU.js} +1 -1
- package/web/app/immutable/chunks/{CU89eAKc.js → DV7x43jt.js} +1 -1
- package/web/app/immutable/chunks/{BEvFtidS.js → DWa-2rkZ.js} +1 -1
- package/web/app/immutable/chunks/{CRFehAxF.js → DX9N1RQz.js} +1 -1
- package/web/app/immutable/chunks/{DB4f78Ip.js → D_VvdZe2.js} +1 -1
- package/web/app/immutable/chunks/{BNm3whw0.js → Da-Blgd9.js} +1 -1
- package/web/app/immutable/chunks/{BXT21uPn.js → DcOkWaeN.js} +1 -1
- package/web/app/immutable/chunks/{8uGKFevW.js → DgJnzjEh.js} +1 -1
- package/web/app/immutable/chunks/{Jh2BVut2.js → DiURwJNX.js} +1 -1
- package/web/app/immutable/chunks/{C5tAJtyd.js → DlU1rxYV.js} +1 -1
- package/web/app/immutable/chunks/{BQ1b28aV.js → DlUpt_0u.js} +1 -1
- package/web/app/immutable/chunks/{DneGzq7o.js → DlWS0XX3.js} +1 -1
- package/web/app/immutable/chunks/{CRGZeiHP.js → DmhHa5tp.js} +1 -1
- package/web/app/immutable/chunks/{CeOHBQlu.js → Dmn1abz2.js} +1 -1
- package/web/app/immutable/chunks/{BXClhyCJ.js → DnLmeVJZ.js} +1 -1
- package/web/app/immutable/chunks/{1MN-thc1.js → Do2KlQU0.js} +1 -1
- package/web/app/immutable/chunks/DoOue2dc.js +2 -0
- package/web/app/immutable/chunks/{2ndYjFQq.js → Dp8FVKoA.js} +1 -1
- package/web/app/immutable/chunks/{CrjK8LH9.js → DqAYkzSz.js} +1 -1
- package/web/app/immutable/chunks/{D2rdAIDv.js → DrTTxENT.js} +1 -1
- package/web/app/immutable/chunks/{BqCuw50f.js → DsfORPYa.js} +1 -1
- package/web/app/immutable/chunks/{CcSZrbR4.js → DtqPBHQj.js} +1 -1
- package/web/app/immutable/chunks/{jzrltQdi.js → DtyEiVnc.js} +1 -1
- package/web/app/immutable/chunks/{CXCw-Jw-.js → DuAAGnM9.js} +1 -1
- package/web/app/immutable/chunks/{CAmQkXZq.js → Dval4sTX.js} +1 -1
- package/web/app/immutable/chunks/{CJtFSxbf.js → Dvi4g0xk.js} +1 -1
- package/web/app/immutable/chunks/Dws-34a7.js +1 -0
- package/web/app/immutable/chunks/{qAXb8ucI.js → Dx3P5K2z.js} +1 -1
- package/web/app/immutable/chunks/{BdnR40vX.js → DxC0zTSc.js} +1 -1
- package/web/app/immutable/chunks/{Cxz7a3ln.js → DxPvfI2H.js} +4 -4
- package/web/app/immutable/chunks/{DbDI5c8r.js → Dxfvrgme.js} +1 -1
- package/web/app/immutable/chunks/{Cj5p8V3Z.js → DyZa5hX5.js} +1 -1
- package/web/app/immutable/chunks/{Bc3o0U_Z.js → Ex_x2wO5.js} +1 -1
- package/web/app/immutable/chunks/{0_OkSok2.js → GIVowYni.js} +1 -1
- package/web/app/immutable/chunks/{DM_kAcca.js → Gt7Fxn5w.js} +1 -1
- package/web/app/immutable/chunks/{C0A3yiL9.js → HU1Ksz8U.js} +1 -1
- package/web/app/immutable/chunks/{zJz5NUAZ.js → IIW6JGdD.js} +1 -1
- package/web/app/immutable/chunks/{BvFRd1je.js → JM7CQkWC.js} +1 -1
- package/web/app/immutable/chunks/{lma_Aa_Q.js → K8u-JjT9.js} +1 -1
- package/web/app/immutable/chunks/{D8mJ0i4V.js → L7Esr5Id.js} +1 -1
- package/web/app/immutable/chunks/{CGaMCAik.js → LQRHF1eM.js} +1 -1
- package/web/app/immutable/chunks/{x019Lcmv.js → OGqbAD_O.js} +1 -1
- package/web/app/immutable/chunks/{DnkGrT83.js → OrN9D77d.js} +3 -3
- package/web/app/immutable/chunks/{DZEg_JlV.js → PhAbES0t.js} +1 -1
- package/web/app/immutable/chunks/{BaJMqkSd.js → QRUY44Ff.js} +1 -1
- package/web/app/immutable/chunks/{9Bk8hwX5.js → RHSH5iZ7.js} +1 -1
- package/web/app/immutable/chunks/{C9aF-Sor.js → SbTG0nwQ.js} +1 -1
- package/web/app/immutable/chunks/{CyYfX9fz.js → TT8yXpG-.js} +1 -1
- package/web/app/immutable/chunks/{C4VXXfVL.js → U7dpdlAf.js} +1 -1
- package/web/app/immutable/chunks/{Bcb1iqQJ.js → VeUh5OMZ.js} +1 -1
- package/web/app/immutable/chunks/Whej1Dge.js +1 -0
- package/web/app/immutable/chunks/{P9PnSQNh.js → Z9NyJp9w.js} +3 -3
- package/web/app/immutable/chunks/{D_DdTIu0.js → ZRNKCUqe.js} +47 -47
- package/web/app/immutable/chunks/{IjcPbG76.js → _2VCBG9z.js} +1 -1
- package/web/app/immutable/chunks/{DZAKdz0-.js → ada9rZfE.js} +1 -1
- package/web/app/immutable/chunks/{BtBv0U_D.js → d8NijX_Z.js} +2 -2
- package/web/app/immutable/chunks/{BLZhAOLT.js → deEweluJ.js} +1 -1
- package/web/app/immutable/chunks/{Do6vtrQf.js → dmZv6JOg.js} +1 -1
- package/web/app/immutable/chunks/{ByNdLM3c.js → e9nNeD_8.js} +1 -1
- package/web/app/immutable/chunks/{BJHkJxQ6.js → fHygQTSC.js} +1 -1
- package/web/app/immutable/chunks/{CbqBbwIN.js → gU2qspu9.js} +1 -1
- package/web/app/immutable/chunks/{-J-Hmuck.js → h8JtxU_T.js} +1 -1
- package/web/app/immutable/chunks/{Bk1CZ_aH.js → hNQ1u1TD.js} +1 -1
- package/web/app/immutable/chunks/{BegKMnH4.js → hYcAQyax.js} +1 -1
- package/web/app/immutable/chunks/{gIt--5se.js → i0UHQwRY.js} +1 -1
- package/web/app/immutable/chunks/{HQDMr2H7.js → iCWz6IE9.js} +1 -1
- package/web/app/immutable/chunks/{CbaFGz2w.js → jBG7W4tL.js} +1 -1
- package/web/app/immutable/chunks/{oRcurxpq.js → lTwh0Wzj.js} +1 -1
- package/web/app/immutable/chunks/{DyHx5QFY.js → nwO3KCpP.js} +1 -1
- package/web/app/immutable/chunks/{05jEdw2V.js → pMP23LzB.js} +1 -1
- package/web/app/immutable/chunks/{BJTYazIn.js → pomj9evG.js} +1 -1
- package/web/app/immutable/chunks/{evy8DaDH.js → rEslErv9.js} +1 -1
- package/web/app/immutable/chunks/{x_GKKTQV.js → rXKOJqUt.js} +1 -1
- package/web/app/immutable/chunks/{Ue4xifLs.js → sOF-qTei.js} +1 -1
- package/web/app/immutable/chunks/{BXyd6A9p.js → sSXTMg2P.js} +1 -1
- package/web/app/immutable/chunks/{B0fUscDD.js → tLFaYuVN.js} +1 -1
- package/web/app/immutable/chunks/{BkUPUOzV.js → tuKjkgzS.js} +1 -1
- package/web/app/immutable/chunks/{CZ56JG-R.js → v3_7O0A0.js} +1 -1
- package/web/app/immutable/chunks/{DVuQpyKc.js → vdylZNCS.js} +1 -1
- package/web/app/immutable/chunks/{BHXs-6um.js → vyUklWDK.js} +1 -1
- package/web/app/immutable/chunks/{DU4sJYad.js → wiGlLVr-.js} +1 -1
- package/web/app/immutable/chunks/{CCPr9hs_.js → yDmmPu6L.js} +1 -1
- package/web/app/immutable/chunks/{Dv-bjgEk.js → zB9UbdEg.js} +1 -1
- package/web/app/immutable/entry/{app.BN9LppoE.js → app.DEnhhDc1.js} +3 -3
- package/web/app/immutable/entry/start.Cmawmwgw.js +1 -0
- package/web/app/immutable/nodes/{0.DuuUT7lf.js → 0.DLkagS9u.js} +1 -1
- package/web/app/immutable/nodes/{1.CuKU_s85.js → 1.ChB9puqR.js} +1 -1
- package/web/app/immutable/nodes/10.B3YEuSxS.js +39 -0
- package/web/app/immutable/nodes/{11.DswJjpxi.js → 11.rgOqEz2U.js} +1 -1
- package/web/app/immutable/nodes/{12.iQywXLwT.js → 12.D6rxlIQy.js} +1 -1
- package/web/app/immutable/nodes/{13.m6xe0bMv.js → 13.CHYsmiD_.js} +1 -1
- package/web/app/immutable/nodes/{14.CyaNpqAL.js → 14.mG-YN9pn.js} +3 -3
- package/web/app/immutable/nodes/{15.CDuV6cP7.js → 15.CgSxPoXZ.js} +1 -1
- package/web/app/immutable/nodes/{16.MUmBS-bv.js → 16.BsFtzH0D.js} +1 -1
- package/web/app/immutable/nodes/{17.C_k1qpf6.js → 17.me_aOx8O.js} +1 -1
- package/web/app/immutable/nodes/{18.BjTfofOz.js → 18.BO1oZWgm.js} +1 -1
- package/web/app/immutable/nodes/{19.DvjAcoWG.js → 19.DS0Anfm0.js} +2 -2
- package/web/app/immutable/nodes/{2.r_yCTdWa.js → 2.BB55cMHs.js} +4 -4
- package/web/app/immutable/nodes/{20.DuDV-BZU.js → 20.LbRPieV_.js} +1 -1
- package/web/app/immutable/nodes/{3.BzmP3XDj.js → 3.B1suR6zI.js} +1 -1
- package/web/app/immutable/nodes/{4.BPX7a1xw.js → 4.BdkLcCps.js} +1 -1
- package/web/app/immutable/nodes/{5.CbH1sau-.js → 5.DlFTrLdG.js} +1 -1
- package/web/app/immutable/nodes/{6.DXN3u4yU.js → 6.EdJoOCRv.js} +1 -1
- package/web/app/immutable/nodes/{7.BAFpN-hf.js → 7.iPBOmxFo.js} +1 -1
- package/web/app/immutable/nodes/{8.COZNLTaW.js → 8.BRpg5Nn-.js} +1 -1
- package/web/app/immutable/nodes/9.CeyWcdBf.js +14 -0
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/0vzGySSF.js +0 -1
- package/web/app/immutable/chunks/4rRlR2tp.js +0 -2
- package/web/app/immutable/chunks/BV8D9pH6.js +0 -158
- package/web/app/immutable/chunks/C0P2MUJp.js +0 -1
- package/web/app/immutable/chunks/KU76P7cR.js +0 -1
- package/web/app/immutable/chunks/XS67_4Nj.js +0 -2
- package/web/app/immutable/chunks/hY0rMePc.js +0 -1
- package/web/app/immutable/entry/start.Dyk9KswN.js +0 -1
- package/web/app/immutable/nodes/10.DkGJji_v.js +0 -39
- package/web/app/immutable/nodes/9.VZM4RxD5.js +0 -14
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as l,v as h,t as k}from"./Dms_DO28.js";import{Jx as s,vM as w}from"./
|
|
1
|
+
import{d as l,v as h,t as k}from"./Dms_DO28.js";import{Jx as s,vM as w}from"./4g_iHoQm.js";import{i as W,d as E,e as c,n as i,b as m}from"./B-E_4dSm.js";const A=new Set(["new","creating"]);function g(n){let t;try{t=decodeURIComponent(n)}catch{return null}return t.length===0||A.has(t)?null:t}function f(n){const t=/^\/workspace\/([^/?#]+)\/?(?:[?#].*)?$/.exec(n);return t?g(t[1]):null}function I(n){const t=/^\/workspace\/([^/?#]+)(?:[/?#].*)?$/.exec(n);return t?g(t[1]):null}function M(n,t){return t.length>0&&I(n)===t}function p(){return typeof window>"u"?null:window.location?.pathname??null}function d(n,t){const e=`/workspace/${encodeURIComponent(n)}`,a=t?new URLSearchParams(t).toString():"";return a?`${e}?${a}`:e}function R(n,t){const e=t?.presenceFollowRequestId;return e?w(n,e):w(n)}function P(n,t){return t?i(n,{state:t}):i(n)}function o(n){return n?.tabState?.currentTabId??null}async function S(n,t,e,a){m();const u=P(t,e),r={workspaceId:n,epoch:c(),startTabId:a};return await u,r}function b(n){return!n||W()||E()}function y(n,t){if(c()!==n.epoch||t!==n.startTabId&&t!==n.workspaceId)return!1;const e=p();return e===null||f(e)===n.workspaceId}async function v(n,t,e){if(b(n))return!1;const a=await S(n,t,e,o(s.state));return y(a,o(s.state))?(s.dispatch(R(n,e)),!0):!1}function*T(n,t,e){if(b(n))return!1;const a=o(yield*h(r=>r)),u=yield*l(S,n,t,e,a);return y(u,o(yield*h(r=>r)))?(yield*k(R(n,e)),!0):!1}function _(){m();const n=c(),t=o(s.state),e=p();return()=>c()===n&&o(s.state)===t&&p()===e}function O(n,t={}){return v(n,d(n,t.query),t.state)}function $(n,t={}){return T(n,d(n,t.query),t.state)}async function x(n){const t=f(n);t?await v(t,n,void 0):await i(n)}function*j(n){const t=f(n);t?yield*l(T,t,n,void 0):yield*l(i,n)}const N=Object.freeze(Object.defineProperty({__proto__:null,claimNavigation:_,navigateToAppRoute:x,navigateToAppRouteSaga:j,openAndShowWorkspace:O,showWorkspaceSaga:$,workspaceRoute:d},Symbol.toStringTag,{value:"Module"}));export{p as a,j as b,_ as c,$ as d,d as e,M as i,x as n,O as o,f as p,N as s,I as w};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var G_=Object.defineProperty;var Ng=n=>{throw TypeError(n)};var V_=(n,r,a)=>r in n?G_(n,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[r]=a;var Js=(n,r,a)=>V_(n,typeof r!="symbol"?r+"":r,a),K_=(n,r,a)=>r.has(n)||Ng("Cannot "+a);var Ao=(n,r,a)=>(K_(n,r,"read from private field"),a?a.call(n):r.get(n)),Bg=(n,r,a)=>r.has(n)?Ng("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(n):r.set(n,a);import{t as fn,bo as X,bw as vn,bp as pf,b as hn,bm as u,bq as Nr,bs as ge,br as Li}from"./hY0rMePc.js";import{bs as mn,a5 as I,bf as fs,bA as b,W as p,bn as _n,aA as Z,aB as E,ca as ae,a7 as Wt,ay as ye,aD as e,cd as Bn,c9 as o,bS as m,bl as de,be as pn,b_ as L,bO as j,c5 as ot,bH as w,bV as _e,bj as qs,bk as ro,b$ as dn,ai as Ud,aj as ps,bo as Vl,br as Tr,c0 as Ot,cb as ql,ak as Q_,aw as bi,a as J_}from"./3SdAC2_C.js";import{i as B}from"./BWmYJDmC.js";import{k as Ci}from"./CXul4WJt.js";import{g as On,i as Y_,I as eo,p as Lo,e as Eo}from"./D400ElMz.js";import{n as Bt,l as ma,c as to,j as Wg,k as Do,h as X_}from"./72S4_8Fo.js";import{b as ff,e as zd,f as xe,s as Ue,c as jt,g as gs}from"./leDczq9h.js";import{b as Z_}from"./goTpbPhD.js";import{b as _r}from"./Dn334wJv.js";import{m as ew,U as tw,Z as nw,X as rw,Y as aw,I as Ug,o as sw,l as ow,a2 as iw,x as zg,$ as lw,a0 as jg,r as cw,s as dw}from"./MEhQGTPs.js";import{Jx as F,fp as uw,eX as gw,f4 as pw,eY as fw,f2 as vw,f1 as hw,e_ as mw,f0 as _w,eZ as ww,rv as bw,c7 as yw,i as ki,J6 as Iw,Dd as vf,Di as Sw,Dk as Gg,Dh as $w,Dj as kw,vE as xw,vG as Cw,Cq as hf,cq as Pw,co as Rw,Bz as Aw,bF as Tw,A4 as Mw,Cf as id,v0 as Ew,cr as Vg,dC as qw,dD as Lw,Cp as Hw,em as Ow,CJ as Dw,CI as Fw,CN as Nw,CM as Bw,cR as Ww,cU as Uw,nD as zw,es as jw,wS as Gw,CO as Vw,wU as Kw,CP as Qw,cV as Jw,cW as Yw,nL as Xw,Ai as Zw,Is as eb,Ah as tb,Du as nb,wn as rb,wo as ab,z0 as sb,z4 as ld,wj as ob,wk as ib,rT as lb,rg as cb,re as db,f$ as ub,HQ as gb,Ll as pb,GN as fb,go as vb,p3 as hb,Jl as mb,ok as _b,A3 as wb,fu as Kg,r3 as Qg,fn as bb,fm as yb,tC as Ib,g4 as Jg,rf as Sb,ff as $b,Ca as kb,m as xb,nM as Cb,zI as Pb,y_ as Rb,EA as Ab,Ep as Yg,xi as Tb,xj as Xg,u$ as Zg,p4 as Mb,DG as Eb,gk as qb,g2 as Lb,eV as Hb,cN as Ob,A7 as Db,Lq as Fb,Cv as Nb,LI as Bb,y3 as Wb,gb as Ub,fe as zb,cM as jb,cJ as Gb,cI as Vb,vs as Kb,xp as Qb,xn as Jb,cG as Yb,cF as Xb,z6 as Zb,z1 as ey,xo as ty}from"./DXdFemRu.js";import{a as jd}from"./CC7to1B5.js";import{aM as ny,aL as ry,bg as ay,a7 as sy,aD as oy,aO as iy,M as mf,a0 as _f,b8 as ly,b2 as cy,as as ep,P as yl,b0 as tp,a$ as np,a_ as rp}from"./Dkgk_rvZ.js";import{l as wf,G as dy,I as Rd,at as uy,b1 as Ll,a9 as bf,S as gy,aW as cd,aq as py,aJ as fy,C as vy,z as yf,s as hy,A as my,v as _y,a$ as wy,aH as If,aG as Sf,aI as by,j as ap,aM as dd,aT as sp,aS as Il,aU as op,Q as ip,d as yy,e as Iy,ax as Sy,V as lp,aE as $y,c as ky,m as xy,aV as cp,ap as Cy,aw as dp,a as Py,aA as Ry,ad as up,aD as Ay,aX as gp,a_ as pp,n as fp,ae as Ty,R as My,ay as vp,am as Ey,O as qy,as as Ly,h as Hy,q as Oy,$ as ud,_ as Dy,aC as hp,a8 as Fy,f as Ny,i as By,a6 as Wy,ac as Uy}from"./BQXu3XXC.js";import{f as zy,o as jy,E as Gy,C as Vy,m as Ky,a2 as mp,aa as Qy,K as Jy,e as Yy,y as Xy}from"./AXE1aiRo.js";import{g as Ri}from"./DypB-Dwi.js";import{dW as Bl,cU as $f,O as kf,W as Zy,bv as eI,aF as xf,dH as Cf,aU as qo,e8 as tI,dw as Pf,aw as Gd,dV as Vd,aN as Rf,cP as nI,V as ha,a3 as Xs,B as rI,a7 as aI,a4 as sI,M as oI,a6 as iI,ar as lI,aG as Af,aO as Hl,b6 as cI,ay as Tf,r as dI,n as Ad,H as uI,dY as gI,aQ as pI,aK as fI,c9 as vI,aW as hI,bM as mI,bK as _I,bL as wI,c8 as bI,c7 as yI,cN as II,cM as SI,aS as $I,bb as kI,bd as xI,bg as CI,bc as PI,bl as RI,bf as AI,be as TI,bh as MI,bi as EI,bk as qI,bj as LI,ax as HI,cj as OI,ck as DI,dv as FI,du as NI,a$ as BI,G as WI,b3 as UI,cf as zI,C as _p,d0 as jI,ba as ds,b$ as GI,X as VI,bq as KI,E as QI,ad as JI,t as YI,cW as XI,d3 as wp,Q as bp,dt as ZI,cQ as gd}from"./C9aF-Sor.js";import{u as Mf,a as Sl,ag as eS,x as tS,ad as Ef,af as nS,ac as qf,a4 as rS,F as yp,D as aS,e as sS,n as oS,s as iS,m as lS,Y as cS,k as dS}from"./Cr6ukNck.js";import{a2 as uS,b5 as gS,cM as pS,a_ as fS,b4 as vS,c2 as hS,c9 as mS,w as _S,x as wS,cd as bS}from"./3BCyU2N-.js";import{n as yS,P as Lf,F as IS,ai as SS,r as $S,ac as kS}from"./B4mHWFlW.js";import{I as xS,s as CS,H as Ip}from"./Bqd7fdCF.js";import{e as PS}from"./CL3a4Hm1.js";import{e as RS,f as AS}from"./BXyd6A9p.js";import{s as TS,o as Zs,b as MS,g as Wl,d as ES,l as yi}from"./CIyUrgF0.js";import{a5 as qS,a7 as LS,D as HS,N as OS,ac as Sp,X as Hf,i as DS,r as ur,v as Ai,u as ea,p as xi,x as wr,S as Kd,m as Kl,s as Ho,y as Ti,o as ao,n as so,t as $p,aa as oo,w as io,a9 as Qd,q as _a,z as Oo,J as Td,_ as kp,g as FS,F as NS,U as Of,I as Df,a8 as Ff,a6 as Ol,O as BS,E as Nf,V as WS,A as US,b as zS,ab as jS,ad as $l,G as GS,e as pd,l as VS,C as KS,f as Ys,j as xp,H as us,Q as QS,d as kl,c as JS,a as Cp,h as YS,L as XS,Y as Pp,a4 as fd,a1 as Rp,a0 as ZS,a3 as Ap,$ as Tp,T as e$,B as t$,k as n$,a2 as r$,K as a$,R as s$,P as o$,W as i$}from"./CZ56JG-R.js";import{m as l$}from"./Dms_DO28.js";import{g as Bf}from"./CwTWayd0.js";import{b as c$}from"./B4PfEXaO.js";import{g as d$}from"./05jEdw2V.js";import{a as u$}from"./BTtAt-Pu.js";import{q as Wf,d as gr,r as g$,e as Ul,j as p$,g as Md,i as f$,f as Ed,c as v$,A as h$,O as Mp,k as m$}from"./BGN2EuCq.js";import{P as _$}from"./6kZoubzS.js";import{e as w$}from"./BLZhAOLT.js";import{b as b$,a as y$,g as I$,c as S$,i as $$}from"./BvFRd1je.js";import{R as k$,g as x$,W as xl,c as C$}from"./CrjK8LH9.js";import"./COB2k0Aa.js";import"./uAXEbxa8.js";import{t as Mi}from"./CjZEyjv4.js";import{F as P$,h as R$}from"./rNjiZ_3W.js";import"./CbqBbwIN.js";import{C as A$,e as Dr,L as T$,l as Ql,d as Jl,K as Yl,h as Jd,M as Xl,S as Fa}from"./CbaFGz2w.js";import{D as M$}from"./DTU57FsX.js";import{f as Ep}from"./edw8TVSr.js";import"./DU3vNstz.js";import{i as Uf}from"./BjLb7AHW.js";import{h as qp,i as Lp,g as Hp,P as Op,C as E$,m as Dl,R as q$}from"./x_GKKTQV.js";import{f as $t,ae as L$}from"./CIU_APaR.js";import{F as gt,bs as H$,cd as O$,aw as Na,a2 as zf,c9 as D$,bf as F$,be as N$,bg as B$,aO as Dp,aj as vd,aB as hd,bB as jf,d3 as zl,cF as W$,aM as Fp,cb as Np,cK as jl,bu as U$,aS as z$,d0 as j$,a8 as Gf,ac as G$,ag as V$,cr as K$,ba as Q$,aC as Vf,cT as Bp,cz as J$,ax as Y$,cD as X$,c3 as Z$}from"./DETS1-K4.js";import{c as Kf}from"./ChTqQfQN.js";import"./BXT21uPn.js";import{c as Tt}from"./BNN0vAFF.js";import{a4 as Qf,bf as ek,aq as tk,k as nk,X as rk,V as ak,a1 as sk,Y as ok,bv as ik,U as lk,a0 as ck,ag as dk}from"./-31r5MID.js";import{d as Gl,f as uk,e as gk}from"./HP51nVq8.js";import{A as pk}from"./Djz9uuuA.js";import{D as fk}from"./CJtFSxbf.js";import"./BEvFtidS.js";import{a as vk,C as hk}from"./DpChblex.js";import"./DnHJL326.js";import{C as mk}from"./D0I7VQ8a.js";import{h as qd,r as _k,a as wk}from"./CKc3ivIh.js";import{s as bk}from"./IxfPVMNO.js";import{I as yk,a as Jf}from"./CmbheRhJ.js";import{L as Ik}from"./O63l2zGE.js";import{g as Sk,f as $k,b as kk}from"./Mh0PqgbP.js";import{s as Ei,g as Yn,i as xk,j as Ck,e as Wp,r as Up,f as Pk,d as Rk,a as md,h as Ak}from"./CQhRmQZt.js";import{i as zp,a as Tk}from"./Bu13V5mO.js";import{seekConversationToMessage as jp}from"./DvjmmZhh.js";import{l as Xt,o as _d,h as Yd,n as Ld,q as Mk}from"./B7JHU89G.js";import{o as Ek}from"./BtBv0U_D.js";import{A as Yf}from"./DDnDtSlm.js";import{b as Xf}from"./Bcb1iqQJ.js";import{h as qk,f as Zf,w as Lk,g as Hk,Q as Ok,O as Dk,M as Fk,l as ev,m as Nk,J as tv,s as nv}from"./KMO8sO00.js";import{selectCurrentWorkspaceTabId as wd}from"./CcSZrbR4.js";import{o as Bk}from"./BiM95_Ol.js";import{d as Wk}from"./B0Z-1lwJ.js";import{P as Uk}from"./DMrypNw-.js";import{g as zk}from"./Ue4xifLs.js";import{H as rv,M as jk,y as Gk,J as Vk,g as Kk,i as Qk,u as Jk,e as av,c as sv,d as Yk}from"./BVlMQ1xQ.js";import{c as Xk,h as Xd,f as ov,Q as Zk}from"./DZEg_JlV.js";import{t as ex}from"./DAsc1V4f.js";import{s as tx}from"./BsieX9dN.js";import{i as iv}from"./CegXgKbh.js";import{d as nx,i as rx,r as ax}from"./CAmQkXZq.js";import{g as sx}from"./k863GLf6.js";var ox=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),ix=E("<div><!></div>");function lv(n,r){if(new.target)return fn({component:lv,...n});mn(r,!0);let a=X(r,"ref",15,null),i=X(r,"class",7),c=X(r,"children",7),l=pf(r,ox);var v={get ref(){return a()},set ref(f=null){a(f),Z()},get class(){return i()},set class(f){i(f),Z()},get children(){return c()},set children(f){c(f),Z()},$set:vn,$on:(f,P)=>hn(r,f,P)},g=ix();ff(g,f=>({"data-slot":"card-header",class:f,...l}),[()=>zd("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-x-4 gap-y-1.5 pt-4 pb-2 has-data-[slot=card-action]:grid-cols-[minmax(0,1fr)_auto]",mk,i())]);var _=I(g);return Mi(_,()=>c()??fs),b(g),_r(g,f=>a(f),()=>a()),p(n,g),_n(v)}var lx=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),cx=E("<div><!></div>");function cv(n,r){if(new.target)return fn({component:cv,...n});mn(r,!0);let a=X(r,"ref",15,null),i=X(r,"class",7),c=X(r,"children",7),l=pf(r,lx);var v={get ref(){return a()},set ref(f=null){a(f),Z()},get class(){return i()},set class(f){i(f),Z()},get children(){return c()},set children(f){c(f),Z()},$set:vn,$on:(f,P)=>hn(r,f,P)},g=cx();ff(g,f=>({"data-slot":"card-title",class:f,...l}),[()=>zd("type-title min-w-0 break-words font-semibold leading-tight text-foreground",i())]);var _=I(g);return Mi(_,()=>c()??fs),b(g),_r(g,f=>a(f),()=>a()),p(n,g),_n(v)}const Cl=xS.CHAT_MEDIA,bd=TS().min(1).max(512);Zs({workspaceId:bd,agentId:bd,draftId:Wl(),principalId:bd,media:MS(yS).min(1).max(20)}).strict();const dx=Zs({sessionId:Wl()}).strict();dx.extend({control:ES("action",[Zs({action:yi("readiness")}).strict(),Zs({action:yi("export"),request:RS}).strict(),Zs({action:yi("transcribe"),request:AS}).strict(),Zs({action:yi("release"),jobId:Wl()}).strict(),Zs({action:yi("adopt"),jobId:Wl()}).strict()])}).strict();function Zd(n,r,a,i=async(c,l)=>typeof window>"u"||CS(window)!=="electron"?{ok:!1,error:"unavailable"}:PS().invoke(c,l)){let c=null,l=null,v=!1;async function g(){v=!0,a.removeEventListener("abort",_);const k=c;c=null,k&&await i(Cl.CLOSE,{sessionId:k}).catch(()=>{})}const _=()=>{g()};a.addEventListener("abort",_,{once:!0});const f=()=>{if(v||a.aborted||!r())throw new Error("media-send-retired")};async function P(){if(f(),c)return c;if(l)return l;l=(async()=>{const k=await i(Cl.BEGIN,n);if(!k.ok)throw new Error("media-export-unavailable");c=k.value.sessionId;try{return f(),c}catch(W){throw await g(),W}})();try{return await l}finally{l=null}}async function S(k){const W=await P();f();const O=await i(Cl.CONTROL,{sessionId:W,control:k});return f(),O}return{service:{exportMedia:k=>S({action:"export",request:k}),adoptMediaJob:k=>S({action:"adopt",jobId:k}),transcribeMedia:k=>S({action:"transcribe",request:k}),releaseMediaJob:async k=>c?await i(Cl.CONTROL,{sessionId:c,control:{action:"release",jobId:k}}):{ok:!0,value:void 0}},dispose:g,readiness:()=>S({action:"readiness"})}}const yd=new Set;async function ux(n){const{drafts:r,signal:a}=n,i=structuredClone(n.capture),c=structuredClone(n.items),l=structuredClone(n.payload),{workspaceId:v,agentId:g}=i,_=Ri(F.state),f=Bl.select(F.state,v),P=$f.select(F.state),S=wf(),q=JSON.stringify([_,v,g]);if(!_||!f||!P||l.wsId!==v||yd.has(q))return!1;yd.add(q);const k=new AbortController,W=()=>k.abort();a.addEventListener("abort",W,{once:!0});const O=()=>!a.aborted&&!k.signal.aborted&&Ri(F.state)===_&&Bl.select(F.state,v)===f&&bf(S)&&r.isCurrentDraft(i),T=F.getReadableState().subscribe(()=>{O()||k.abort()});let D=null;try{if(!O()||uS(c))return!1;const K=Mf(i.attachments),se=Lf(IS(v,g),K,c.map(fe=>({contextItemId:fe.id,attachmentId:fe.attachmentId,path:fe.path}))),C=new Set([...se.images,...se.clips].map(fe=>fe.contextItemId));if(K.some(([fe])=>!C.has(fe))||se.images.some(fe=>fe.mediaError)||se.clips.some(fe=>fe.mediaError)||!SS(l.text,se))throw new Error("invalid-evidence");if(D=n.warm?.take(i,k.signal)??null,!await r.flushDraft(i)||!O())return!1;const x=await zy.agents.get(g,v);if(!O())return!1;if(!x||x.workspaceId!==v||x.retiredAt||x.pendingDeleteAt||x.status==="deleted")throw new Error("unavailable");const Q=se.clips.flatMap(fe=>fe.media?[fe.media]:[]);Q.length&&!D&&(D=Zd({workspaceId:v,agentId:g,draftId:crypto.randomUUID(),principalId:P.principal.id,media:Q},O,k.signal));const pe=dy(c,se),Te=Rd(pe),he=await uy({workspaceId:v,agentId:g,evidence:se,clickedItems:c,sendItems:pe,clickedPayload:{...l,contextItems:pe,imageBlocks:Te.imageBlocks,fileBlocks:Te.fileBlocks},binding:S,service:D?.service??null,current:O,onRecord:()=>{}});return!he||!O()?!1:Ll(F,g,he)}catch{return O()&&F.dispatch(uw(g,u.dock_conversation_sendFailed_error())),!1}finally{T(),a.removeEventListener("abort",W),await D?.dispose(),yd.delete(q)}}const dv=1e4,Gp={wasBusy:!1,busySince:null,preempted:!1,prediction:null};function Vp(n){return qS(n.messageMetadata)}function gx(n,r){if(n.some(Vp)){const a=n[0];return a&&!Vp(a)&&Kp(a,r)?[a.id]:[]}return n.filter(a=>Kp(a,r)).map(a=>a.id)}function px(n){let r=null;for(const a of n)(a.status==="preparing"||a.status==="sending")&&a.createdAt>(r??-1/0)&&(r=a.createdAt);return r}function Kp(n,r){return!n.requeuedAfterFailure&&LS(n,r)}function fx(n,r){const{busy:a,queue:i,delivered:c,now:l}=r,v=r.blocked||r.interrupted,g=r.timeoutMs??dv;let _=n.prediction;if(_){const k=new Set(i.map(D=>D.id)),W=_.ids.filter(D=>k.has(D)&&!c.has(D)),O=l-_.startedAt>=g,T=n.wasBusy&&!a;!W.length||O||v&&!a||T?_=null:W.length!==_.ids.length&&(_={..._,ids:W})}const f=n.wasBusy&&!a,P=n.wasBusy?n.busySince:a?l:null,S=n.wasBusy&&n.preempted||P!==null&&r.directSendAt!==null&&r.directSendAt>P;if(!_&&f&&!v&&!S){const k=gx(i,l).filter(W=>!c.has(W));k.length&&(_={ids:k,startedAt:l})}const q={wasBusy:a,busySince:a?P:null,preempted:a&&S,prediction:_};return n.wasBusy===q.wasBusy&&n.busySince===q.busySince&&n.preempted===q.preempted&&n.prediction===q.prediction?n:q}class vx{constructor(){Js(this,"previousWorkspaceId",null);Js(this,"_isRebinding",!1);Js(this,"_generation",0);Js(this,"_rebindPromise",null);Js(this,"_rebindResolve",null)}recordMount(r){return this.previousWorkspaceId=r,r}wasWorkspaceChangedDuringMount(r){return this.previousWorkspaceId!==r}shouldRebind(r){return!r||this.previousWorkspaceId===null?!1:r!==this.previousWorkspaceId}recordRebind(r){this.previousWorkspaceId=r}hasWorkspaceChanged(r){return r!==this.previousWorkspaceId}get trackedWorkspaceId(){return this.previousWorkspaceId}get isRebinding(){return this._isRebinding}startRebind(){return this._generation++,this._isRebinding=!0,this._rebindResolve?.(),this._rebindPromise=new Promise(r=>{this._rebindResolve=r}),this._generation}endRebind(r){r!==void 0&&r!==this._generation||(this._isRebinding=!1,this._rebindResolve?.(),this._rebindPromise=null,this._rebindResolve=null)}async waitForRebind(r=5e3){if(!this._isRebinding||!this._rebindPromise)return!1;const a=Date.now()+r;for(;this._isRebinding&&this._rebindPromise;){const i=a-Date.now();if(i<=0)return!1;let c;const l=await Promise.race([this._rebindPromise.then(()=>!1),new Promise(v=>{c=setTimeout(()=>v(!0),i)})]);if(clearTimeout(c),l)return!1}return!0}}function hx(n,r){return!(n?.tabType!=="agent"||n.agentId!==r.agentId||!r.isActive||n.workspaceId&&n.workspaceId!==r.workspaceId||r.panelId&&(n.source!=="dictation"&&!r.isPanelFocused||n.panelId&&n.panelId!==r.panelId))}function Qp(n){const r=typeof n=="string"?n:n&&typeof n=="object"&&typeof n.script=="string"?n.script:void 0;return r||void 0}var mx=E('<div role="status" aria-live="polite" data-presence-typing-indicator=""><span class="inline-flex min-w-[var(--operational-leading-slot-size)] shrink-0 items-center justify-center svelte-lm4khl"><!></span> <span class="min-w-0 truncate svelte-lm4khl"> </span> <span class="inline-flex shrink-0 items-center gap-0.5 svelte-lm4khl" aria-hidden="true"><span class="typing-dot size-1 rounded-full bg-current svelte-lm4khl"></span> <span class="typing-dot size-1 rounded-full bg-current svelte-lm4khl" style="animation-delay: 0.2s"></span> <span class="typing-dot size-1 rounded-full bg-current svelte-lm4khl" style="animation-delay: 0.4s"></span></span></div>');function uv(n,r){if(new.target)return fn({component:uv,...n});mn(r,!0);const a=()=>ge(P,"$typing$",i),[i,c]=Nr();let l=X(r,"workspaceId",7),v=X(r,"agentId",7),g=X(r,"class",7,"");const _=Bn(""),f=Bn("");ae(()=>{_.set(l())}),ae(()=>{f.set(v())});const P=gS(_,f),S=o(()=>w$(a()));var q={get workspaceId(){return l()},set workspaceId(D){l(D),Z()},get agentId(){return v()},set agentId(D){v(D),Z()},get class(){return g()},set class(D=""){g(D),Z()},$set:vn,$on:(D,K)=>hn(r,D,K)},k=Wt(),W=ye(k);{var O=D=>{var K=mx(),se=I(K),C=I(se);_$(C,{get people(){return a()},size:12,decorative:!0}),b(se);var x=m(se,2),Q=de(x,!0);pn(2),b(K),L(()=>{xe(K,1,`${Wf} flex h-4 min-w-0 items-center gap-[var(--operational-leading-gap)] px-[var(--operational-row-inline-padding)] font-family-child font-normal text-muted-foreground text-[11px] leading-4 ${g()??""} /* a11y-ignore: user-requested compact typing status in the composer gap */`,"svelte-lm4khl"),j(Q,e(S))}),p(D,K)};B(W,D=>{e(S)&&D(O)})}p(n,k);var T=_n(q);return c(),T}const _x=50,wx=5e3,bx=500,yx=()=>({authority:()=>Ri(F.state),persistSnapshot:py,dispatch:n=>F.dispatch(n),ownerView:n=>fy.withStore(F)(n)});function Ix(n){const r=n.store??yx(),a=crypto.randomUUID();let i=_e(!1),c=_e(!1),l=_e(!1),v=null,g=null,_=0,f=!1,P=null,S=null,q=null,k=0,W=null,O=null;const T={};let D,K=_e([]),se=null,C=0,x="",Q=0,pe="";const Te=()=>{const N=n.workspaceId(),R=n.agentId();if(!N||!R||!(n.active?.()??!0))return null;const re=r.authority?.();if(!re||f)return null;const qe=n.inputValue(),H=fe(),Y=D?.shared,J=Y?.workspaceId===N&&Y.agentId===R?Y.lifetime:null,Se=JSON.stringify([re,N,R,k,J,H.map(z=>[z.id,z.attachmentId,z.path])]);Se!==pe&&(pe=Se,Q+=1);const He=JSON.stringify([re,N,R,qe,H,k]);return He!==x&&(x=He,C+=1),{authority:re,ownerId:a,workspaceId:N,agentId:R,text:qe,attachments:JSON.parse(JSON.stringify(H)),generation:C,attachmentEpoch:Q}};let he=null;const fe=()=>eS(n.contextItems(),tS(n.contextItems(),e(K))),Le=N=>{if(D=N,!N||f)return;const R=N.restore;if(O&&R?.requestId===O.requestId&&R.status!=="pending"){const{apply:H}=O;O=null,w(c,!1),R.status==="restored"&&w(K,R.draft?.attachments??[]),H(R)}const re=N.shared;if(re&&!e(c)&&g===`${re.workspaceId}\0${re.agentId}`){const H=JSON.stringify([re.provenance,re.workspaceId,re.agentId,re.lifetime,re.revision]);if(se!==H){se=H;const Y=he??v,J=Y&&n.inputValue()===Y.text&&JSON.stringify(fe())===Y.attachmentsJson;re.origin===a?he={text:re.snapshot.text,attachmentsJson:JSON.stringify(re.snapshot.attachments)}:J&&(_+=1,q&&clearTimeout(q),w(K,re.snapshot.attachments),he=v={text:re.snapshot.text,attachmentsJson:JSON.stringify(e(K))},n.setInputValue(re.snapshot.text),n.setContextItems(Sl(e(K))),n.applyEditorContent(re.snapshot.text))}}ot(Te);const qe=[];for(const H of N.saves){if(H.status==="pending")continue;qe.push(H.id);const Y=T[H.id];delete T[H.id],Y?.(H)}qe.length>0&&queueMicrotask(()=>r.dispatch(vw(a,qe)))},ue=(N,R,re)=>{const qe=crypto.randomUUID();O={requestId:qe,apply:re},w(c,!0),r.dispatch(mw(a,qe,N,R))},oe=()=>{O&&(O=null,w(c,!1),r.dispatch(ww(a)))},Me=()=>{const N=W;N&&(W=null,r.dispatch(_w(a)),D?.saves.some(R=>R.id===N)||delete T[N])};r.dispatch(gw(a));const ie=r.ownerView(a).subscribe(N=>ot(()=>Le(N))),ee=()=>{S&&(clearTimeout(S),S=null),w(l,!1)},Ae=()=>{W&&(W=null,r.dispatch(hw(a)))};ae(()=>{const N=n.active?.()??!0,R=n.workspaceId(),re=n.agentId();if(!N){ot(()=>{_+=1,g=null,oe(),P&&clearTimeout(P),P=null,ee(),q&&clearTimeout(q),q=null,w(i,!1),Ae()});return}if(!R||!re)return;const qe=`${R}\0${re}`;if(g===qe)return;const H=g!==null;g=qe;const Y=++_;ot(()=>{v=null,he=null,se=null,w(K,[]),P&&clearTimeout(P),ee(),q&&(clearTimeout(q),q=null),H&&(Ae(),n.setInputValue(""),n.contextItemsAreScoped||n.setContextItems([]),n.applyEditorContent(""));const J=gy(R,re);if(J){w(K,J.attachments),w(i,!1);const He=n.contextItems().length>0,z=J.text,Ie=JSON.stringify(J.attachments);n.setInputValue(J.text),He||n.setContextItems(Sl(J.attachments)),n.applyEditorContent(J.text),v={text:J.text,attachmentsJson:Ie},ue(R,re,Ce=>{if(Ce.status!=="restored")return;const De=Ce.draft;if(f||!(n.active?.()??!0)||g!==qe||_!==Y)return;const at=De?.text??"",lt=De?.attachments??[],Oe=JSON.stringify(lt);cd(R,re,{text:at,attachments:lt});const $e=n.inputValue()===z&&JSON.stringify(fe())===Ie;He||!$e||(at!==z&&(n.setInputValue(at),n.applyEditorContent(at)),Oe!==Ie&&n.setContextItems(Sl(lt)),v={text:at,attachmentsJson:Oe})});return}w(i,!0),S=setTimeout(()=>{S=null,(n.active?.()??!0)&&w(l,!0)},bx),P=setTimeout(()=>{(n.active?.()??!0)&&(w(i,!1),ee())},wx);const Se=()=>{!(n.active?.()??!0)||g!==qe||_!==Y||(P&&clearTimeout(P),w(i,!1),ee())};ue(R,re,He=>{if(He.status!=="restored"){Se();return}const z=He.draft;if(f||!(n.active?.()??!0)||g!==qe||_!==Y)return;const Ie=!!n.inputValue();if(!Ie&&z?.attachments?.length&&n.contextItems().length===0&&n.setContextItems(Sl(z.attachments)),!Ie&&z?.text&&(n.setInputValue(z.text),q=setTimeout(()=>{(n.active?.()??!0)&&n.inputValue()===z.text&&n.applyEditorContent(z.text)},_x)),v===null){const Ce=z?.text??"",De=z?.attachments??[];v={text:Ce,attachmentsJson:JSON.stringify(De)},cd(R,re,{text:Ce,attachments:De})}Se()})})}),ae(()=>{const N=n.active?.()??!0,R=n.workspaceId(),re=n.agentId(),qe=e(i);if(!N){ot(Me);return}if(!R||!re)return;const H=n.inputValue(),Y=fe();if(ot(Te),ot(Me),qe||v===null&&!H&&Y.length===0)return;const J=JSON.stringify(Y);if(v!==null&&v.text===H&&v.attachmentsJson===J)return;JSON.stringify(e(K))!==J&&w(K,Y);const Se=`${R}\0${re}`,He=k,z=crypto.randomUUID();T[z]=Ie=>{if(n.active?.()??!0){if(Ie.status==="saved"){g===Se&&k===He&&(v={text:H,attachmentsJson:J});return}n.onSaveError?.(new Error(Ie.error))}},ot(()=>{W=z,r.dispatch(pw(a,z,{authority:r.authority?.()??void 0,workspaceId:R,agentId:re,text:H,attachments:Y,rollback:v?{text:v.text,attachments:JSON.parse(v.attachmentsJson)}:null}))})}),ae(()=>()=>{f=!0,P&&clearTimeout(P),S&&clearTimeout(S),q&&clearTimeout(q),Ae(),ie(),r.dispatch(fw(a))});const Ee=N=>{const R=Te();return R!==null&&R.authority===N.authority&&R.ownerId===N.ownerId&&R.workspaceId===N.workspaceId&&R.agentId===N.agentId&&R.generation===N.generation&&R.text===N.text&&JSON.stringify(R.attachments)===JSON.stringify(N.attachments)};return{captureDraft:Te,isCurrentDraft:Ee,updateAttachmentScreen(N,R,re){return!Ee(N)||!N.attachments.some(qe=>qe.id===R)?null:(w(K,N.attachments.map(qe=>qe.id===R?{...qe,screen:structuredClone(re)}:qe)),Te())},async flushDraft(N){if(!Ee(N))return!1;if(!r.persistSnapshot)throw new Error("draft-shared-transport-unavailable");return await r.persistSnapshot(a,N.workspaceId,N.agentId,N,N.authority),Ee(N)},get restorePending(){return e(c)},get gateActive(){return e(i)},get gateVisible(){return e(l)},invalidatePendingRestore(){if(_+=1,k+=1,oe(),P&&(clearTimeout(P),P=null),q&&(clearTimeout(q),q=null),w(i,!1),ee(),Me(),g!==null){const[N,R]=g.split("\0");cd(N,R,{text:"",attachments:[]}),he=null,w(K,[]),v={text:"",attachmentsJson:"[]"}}}}}function qi(n){if(!n)return null;const r=Lf(JSON.stringify([n.workspaceId,n.agentId]),Mf(n.attachments),n.attachments.map(a=>({contextItemId:a.id,attachmentId:a.attachmentId,path:a.path})));return{...r,clips:r.clips.filter(a=>{const i=n.attachments.find(c=>c.id===a.contextItemId);return!!a.media&&!a.mediaError&&!!i&&a.path===i.path})}}async function Sx(n,r,a){const i=F.state.principal.snapshot,c=()=>Ri(F.state)===n.authority&&a.isCurrentDraft(n);if(!i||!c()||!await a.flushDraft(n)||!c())return{ready:!1};const l=new AbortController,v=Zd({workspaceId:n.workspaceId,agentId:n.agentId,principalId:i.principal.id,draftId:crypto.randomUUID(),media:[r]},c,l.signal);try{const g=await v.readiness();return!c()||!g.ok?{ready:!1}:g.value.find(_=>_.sourceId===r.source.id)??{ready:!1}}finally{await v.dispose()}}function Jp(n){let r=_e(null),a=_e(!1),i=_e(!1),c=null,l=!0,v=0,g=null;qs(()=>{l=!1,v++}),ae(()=>{const S=n.capture();e(r)&&(!S||S.authority!==e(r).capture.authority||S.ownerId!==e(r).capture.ownerId||S.workspaceId!==e(r).capture.workspaceId||S.agentId!==e(r).capture.agentId||S.attachmentEpoch!==e(r).capture.attachmentEpoch)&&w(r,null)});async function _(S){if(n.disabled()||e(a))return;const q=n.drafts.captureDraft(),k=qi(q),W=k?.clips.find(K=>K.contextItemId===S);if(!q||!W?.media||!k)return;const O=vy({workspaceId:q.workspaceId,agentId:q.agentId,clip:W,evidence:k,marks:k.marks}),T=yf(q.workspaceId,W.path);if(!O||!T)return;const D=++v;c=document.activeElement instanceof HTMLElement?document.activeElement:null,w(a,!0),w(i,!1);try{if(await n.beforeOpen?.(),!l||v!==D||!n.drafts.isCurrentDraft(q))return;const K=await(n.prepareOutput??Sx)(q,W.media,n.drafts);if(!l||v!==D||!n.drafts.isCurrentDraft(q))return;const{attachmentPath:se,...C}=O;w(r,{capture:q,contextItemId:S,snapshot:{...C,openId:crypto.randomUUID(),mediaUrl:T,output:K,deleteReady:!0}})}catch{l&&v===D&&w(i,!0)}finally{l&&v===D&&w(a,!1)}}async function f(S){const q=crypto.randomUUID(),k=e(r),W=n.drafts.captureDraft();if(!k||!W||W.authority!==k.capture.authority||W.ownerId!==k.capture.ownerId||W.workspaceId!==k.capture.workspaceId||W.agentId!==k.capture.agentId||W.attachmentEpoch!==k.capture.attachmentEpoch)return{requestId:q,result:"stale-source"};const O=qi(W),T=O?.clips.find(Q=>Q.contextItemId===k.contextItemId);if(!O||!T?.media)return{requestId:q,result:"stale-source"};const K=g?.openId===k.snapshot.openId&&g.inputRevision===S.revision&&JSON.stringify(g.media)===JSON.stringify(T.media)?{...S,revision:T.media.saved?.revision??0}:S,se=$S(T.media,{openId:k.snapshot.openId,...k.snapshot.output?.version===2?{outputVersion:2}:{},pair:{workspaceId:W.workspaceId,agentId:W.agentId},sourceId:S.sourceId,sourceRevision:S.sourceRevision,expectedEditRevision:K.revision,edit:K});if(se.status!=="saved")return{requestId:q,result:se.status==="invalid-edit"?"failed":se.status};const C=kS({...O,clips:O.clips.map(Q=>Q.id===T.id?{...Q,media:se.media}:Q)})[k.contextItemId],x=n.drafts.updateAttachmentScreen(W,k.contextItemId,C);if(!x)return{requestId:q,result:"stale-source"};g={openId:k.snapshot.openId,media:se.media,inputRevision:S.revision};try{if(!n.drafts.isCurrentDraft(x))return{requestId:q,result:"stale-source"};await n.drafts.flushDraft(x);const Q=n.drafts.captureDraft();return!l||e(r)?.snapshot.openId!==k.snapshot.openId||!Q||Q.attachmentEpoch!==k.capture.attachmentEpoch||Q.authority!==x.authority||Q.ownerId!==x.ownerId||Q.workspaceId!==x.workspaceId||Q.agentId!==x.agentId||JSON.stringify(Q.attachments.find(pe=>pe.id===k.contextItemId)?.screen)!==JSON.stringify(C)?{requestId:q,result:"stale-source"}:(g=null,{requestId:q,result:"saved",saved:se.media.saved??void 0})}catch{return{requestId:q,result:"failed"}}}function P(S){return n.disabled()||!n.onRemove(S)?!1:(e(r)?.contextItemId===S&&w(r,null),!0)}return{get session(){return e(r)},get opening(){return e(a)},get problem(){return e(i)},open:_,save:f,remove:P,close(){w(r,null)},restoreFocus(){c?.isConnected&&c.focus()}}}var $x=E('<p role="alert"> </p>'),kx=E('<div class="recording-editor-surface svelte-cdb16"><!></div>'),xx=E("<!> <!> <!>",1);function gv(n,r){if(new.target)return fn({component:gv,...n});mn(r,!0);let a=X(r,"capture",7),i=X(r,"drafts",7),c=X(r,"disabled",7,!1),l=X(r,"onRemove",7),v=X(r,"controllerFactory",7,Jp),g=X(r,"beforeOpen",7),_=X(r,"onReviewChange",7);const f=ot(()=>v()({drafts:i(),capture:()=>a(),disabled:()=>c(),onRemove:C=>l()(C),beforeOpen:()=>g()?.()??Promise.resolve()}));ae(()=>{const C=f.opening,x=f.session;ot(()=>_()?.(C,x?.snapshot.output?.ready?{openId:x.snapshot.openId,capture:x.capture}:null))});const P=o(hy),S=o(()=>qi(a())),q=o(()=>e(S)?.clips.map(C=>({id:C.contextItemId,kind:"clip",owner:"evidence",duration:Ep(C.durationMs),recording:!1,url:a()?yf(a().workspaceId,C.path):void 0,...C.media?.saved?{summary:my(C.media.saved)}:{}}))??[]);let k=_e(null);var W={get capture(){return a()},set capture(C){a(C),Z()},get drafts(){return i()},set drafts(C){i(C),Z()},get disabled(){return c()},set disabled(C=!1){c(C),Z()},get onRemove(){return l()},set onRemove(C){l(C),Z()},get controllerFactory(){return v()},set controllerFactory(C=Jp){v(C),Z()},get beforeOpen(){return g()},set beforeOpen(C){g(C),Z()},get onReviewChange(){return _()},set onReviewChange(C){_(C),Z()},$set:vn,$on:(C,x)=>hn(r,C,x)},O=xx(),T=ye(O);{let C=o(()=>c()||f.opening);HS(T,{get items(){return e(q)},get labels(){return e(P)},get disabled(){return e(C)},onEdit:x=>void f.open(x),onMarkUp:x=>void f.open(x),get onRemove(){return f.remove}})}var D=m(T,2);{var K=C=>{var x=$x(),Q=de(x,!0);L(pe=>j(Q,pe),[()=>u.dock_captureEditor_saveFailed_label()]),p(C,x)};B(D,C=>{f.problem&&C(K)})}var se=m(D,2);{let C=o(()=>!!f.session),x=o(()=>u.dock_captureEditor_recording_title({duration:f.session?Ep(f.session.snapshot.durationMs??0):""}));A$(se,{get open(){return e(C)},size:"editor",showCloseButton:!1,get title(){return e(x)},escapeKeydownBehavior:"ignore",dismissOnInteractOutside:!1,onClose:()=>f.close(),onCloseAutoFocus:Q=>{Q.preventDefault(),f.restoreFocus()},get contentRef(){return e(k)},set contentRef(Q){w(k,Q,!0)},children:(Q,pe)=>{var Te=Wt(),he=ye(Te);{var fe=Le=>{var ue=Wt(),oe=ye(ue);Ci(oe,()=>f.session.snapshot.openId,Me=>{var ie=kx(),ee=I(ie);M$(ee,{get snapshot(){return f.session.snapshot},get shortcutDialog(){return e(k)},onClose:()=>f.close(),get onSave(){return f.save},onDelete:async()=>!!f.session&&f.remove(f.session.contextItemId)}),b(ie),p(Me,ie)}),p(Le,ue)};B(he,Le=>{f.session&&Le(fe)})}p(Q,Te)},$$slots:{default:!0}})}return p(n,O),_n(W)}const Pl=n=>JSON.stringify([n.authority,n.ownerId,n.workspaceId,n.agentId,n.attachmentEpoch,n.attachments]);function Cx(n){let r=_e(!1),a=_e(!1),i=_e(null),c=!1,l=0,v=null,g=null;async function _(S){S.abort.abort(),S.slot?.cancel(),await S.native?.dispose()}async function f(){l++;const S=g;g=null,S&&await _(S)}ro(()=>{const S=()=>{w(r,document.hasFocus(),!0)};return S(),window.addEventListener("focus",S),window.addEventListener("blur",S),()=>{window.removeEventListener("focus",S),window.removeEventListener("blur",S)}});const P=F.getReadableState().subscribe(()=>{g&&!g.current()&&f()});return qs(()=>{c=!0,P(),f()}),ae(()=>{const S=n.capture(),q=S?Pl(S):"",k=e(r)&&!e(a)&&(n.active()||e(i)?.key===q);ot(()=>{if(!k||!S){f();return}if(g?.key===q)return;if(v===q){f();return}f();const O=qi(S)?.clips.flatMap(Te=>!Te.mediaError&&Te.media?[Te.media]:[])??[],T=O[0],D=F.state.principal.snapshot,K=Bl.select(F.state,S.workspaceId);if(!T||!D||!K||n.drafts.gateActive)return;const se=wf(),C=new AbortController,x=()=>!c&&!C.signal.aborted&&Ri(F.state)===S.authority&&Bl.select(F.state,S.workspaceId)===K&&bf(se)&&!!n.capture()&&Pl(n.capture())===q,Q={key:q,capture:S,abort:C,native:null,slot:null,current:x};g=Q;const pe=l;n.drafts.flushDraft(S).then(async Te=>{if(!(g!==Q||pe!==l||!x())){if(!Te){v=q,await f();return}Q.native=Zd({workspaceId:S.workspaceId,agentId:S.agentId,draftId:crypto.randomUUID(),principalId:D.principal.id,media:structuredClone(O)},x,C.signal),Q.slot=_y(Q.native.service),v=q,Q.slot.warm(q,T,x)}}).catch(()=>{g===Q&&f()})})}),{cancel:f,async beforeEditorOpen(){w(a,!0),v=null,await f()},editorState(S,q){w(a,S,!0);const k=q?Pl(q.capture):null;q&&e(i)?.openId!==q.openId&&(v=null),w(i,q&&k?{openId:q.openId,key:k}:null)},take(S,q){const k=g;if(!k?.native||!k.slot||k.key!==Pl(S)||!k.current())return f(),null;g=null,l++;const W=k.native,O=k.slot,T=()=>k.abort.abort();return q.addEventListener("abort",T,{once:!0}),q.aborted&&T(),{service:{...W.service,takePreparedRecording:D=>O.take(k.key,D,()=>!q.aborted&&k.current())},async dispose(){q.removeEventListener("abort",T),await _(k)}}}}}var Px=E('<div role="status" class="px-3 py-1.5 text-xs text-muted-foreground" data-testid="chat-draft-loading-gate"><span> </span></div>');function pv(n,r){if(new.target)return fn({component:pv,...n});mn(r,!1);var a={$set:vn,$on:(v,g)=>hn(r,v,g)};Uf();var i=Px(),c=I(i),l=de(c,!0);return b(i),L(v=>j(l,v),[()=>u.chat_draftGate_loading_label()]),p(n,i),_n(a)}var Rx=E('<div data-new-messages-divider="" class="type-caption font-family-child my-6 flex items-center gap-2 px-2" role="separator"><div class="h-px flex-1 bg-border"></div> <span class="whitespace-nowrap px-1 font-medium text-foreground"> </span> <div class="h-px flex-1 bg-border"></div></div>');function Hd(n,r){if(new.target)return fn({component:Hd,...n});mn(r,!1);var a={$set:vn,$on:(v,g)=>hn(r,v,g)};Uf();var i=Rx(),c=m(I(i),2),l=de(c,!0);return pn(2),b(i),L((v,g)=>{Ue(i,"aria-label",v),j(l,g)},[()=>u.chat_newMessagesDivider_label(),()=>u.chat_newMessagesDivider_label()]),p(n,i),_n(a)}function Ax(n,r){if(!r||n.length===0)return null;const a=n.indexOf(r);return a===-1||a===n.length-1?null:r}function Tx(n,r,a){if(!r||n.length===0)return"none";const i=n.indexOf(r);return i===n.length-1?"none":i!==-1?"marker-loaded":a.complete?a.truncated?"marker-beyond-window":"none":"marker-pending"}function Mx(n,r){return r&&n.includes(r)?r:null}function Yp(n,r,a){return r-n<=a}const Ex=.2;function Xp(n,r,a){const i=Math.max(0,a-r),c=n-Ex*r;return Math.min(Math.max(0,c),i)}function qx(n,r,a){return n!==null&&a&&n===r}function Lx(n){return n?bw(n)&&yw(n)!==null&&typeof n.metadata?.taskNoteId=="string":!1}function Hx(n){const r=[],a=new Set;let i,c;for(const D of n.messages){if(D.agentId&&D.agentId!==n.agentId){i=void 0,c=void 0;continue}if(a.has(D.id))continue;a.add(D.id),n.breakBeforeMessageIds?.has(D.id)&&(i=void 0,c=void 0);const K=OS(D);if(K?.kind!=="turn-failure")c=void 0;else{const se=i?.seq!==void 0&&D.seq!==void 0&&Number.isSafeInteger(i.seq)&&Number.isSafeInteger(D.seq)&&D.seq===i.seq+1;(!c||!se)&&(c={key:JSON.stringify([n.agentId,"notice",D.id]),anchorMessageId:D.id,correlation:"unavailable",records:[],recordedFailureCount:0},r.push(c)),c.records.push({messageId:D.id,reason:K.reason,timestamp:D.timestamp}),c.recordedFailureCount+=1}i=D}const l=new Map;for(const D of n.queue){if(!D.requeuedAfterFailure)continue;const K=D.turnId||void 0,se=JSON.stringify([n.agentId,K?"turn":"queue",K??D.id]);let C=l.get(se);C||(C={key:se,correlation:K?"turn":"queue-entry",turnId:K,queueIds:[],state:"queued"},l.set(se,C)),C.queueIds.includes(D.id)||C.queueIds.push(D.id)}const v=[...l.values()],g=n.session?.id===n.agentId?n.session:void 0,_=g?.status===ki.Error,f=n.transientError||_&&g.stopReason||null,P=_&&!f,S=_&&(!n.transientError||n.transientError===g.stopReason)?g.stopReasonTimestamp:void 0,q=S?Sp(S):null,k=q&&f&&f===g?.stopReason?r.flatMap(D=>D.records).filter(D=>D.reason===f&&Sp(D.timestamp)===q):[],W=k.length===1?k[0].messageId:void 0,T=(g?kf(g):!1)?"attempting":v.length?"queued":f||P?"action-needed":"inactive";return{history:r,queueRecovery:v,current:{state:T,error:f,needsFallbackReason:P,timestamp:S,noticeId:W}}}function Ox(n,r){const a=n.hiddenTail[0]?.id,i=Hx({...r,messages:[...n.groups.flatMap(g=>g.messages),...n.hiddenTail],breakBeforeMessageIds:new Set(a?[a]:[])}),c=i.current.noticeId,l=i.history.map(g=>({...g,records:g.records.filter(_=>_.messageId!==c)})).filter(g=>g.records.length>0),v=new Set(l.map(g=>g.records[0].messageId));return{...i,runsByAnchor:new Map(l.map(g=>[g.records[0].messageId,g])),collapsedMessageIds:new Set(i.history.flatMap(g=>g.records.map(_=>_.messageId).filter(_=>!v.has(_))))}}var Dx=E('<div class="flex size-10 shrink-0 items-center justify-center rounded-md bg-muted/50"><!></div> <div class="min-w-0 flex-1"><div class="type-body truncate font-medium text-foreground"> </div> <div class="type-caption mt-0.5 line-clamp-2 text-muted-foreground"> </div></div> <div class="flex size-7 shrink-0 items-center justify-center rounded-md bg-muted/50 text-muted-foreground transition-colors group-hover:bg-muted"><!></div>',1),Fx=E('<div class="flex size-9 shrink-0 items-center justify-center rounded-md bg-muted/50"><!></div> <span class="type-body font-medium"> </span>',1),Nx=E('<div><div class="border-b border-border bg-muted/20 px-4 py-3"><p class="type-body font-medium text-foreground"> </p> <p class="type-caption mt-0.5 text-muted-foreground"> </p></div> <div class="max-h-[21rem] overflow-y-auto p-2"><!></div> <div class="border-t border-border bg-popover p-2"><!></div></div>'),Bx=E('<div class="mb-5"><!></div>'),Wx=E('<p data-testid="agent-welcome-description"> </p> <!>',1),Ux=E("<!> <!>",1),zx=E('<p class="mb-3 px-4 text-sm text-subtle leading-relaxed whitespace-pre-wrap" data-testid="agent-welcome-description"> </p>'),jx=E("<!> <span> </span>",1),Gx=E('<div class="mx-auto flex w-full max-w-[40rem] flex-1 flex-col px-4 pb-6 pt-4 text-subtle"><!> <!> <!></div>');function fv(n,r){if(new.target)return fn({component:fv,...n});mn(r,!0);const a=()=>ge(k,"$userOverrides$",v),i=()=>ge(q,"$specialists$",v),c=()=>ge(D,"$isGitHubAuth$",v),l=()=>ge(K,"$recentSpecialistIds$",v),[v,g]=Nr();let _=X(r,"onSpecialistChange",7),f=X(r,"session",7),P=X(r,"workspaceId",7);const S=Bn(P()??"");ae(()=>S.set(P()??""));const q=Qf(S),k=ek();ae(()=>{a()});const W=o(()=>{if(!f()||Zy(f()))return null;const N=f().metadata?.specialist||f().agentMetadata?.specialist;return N&&i().find(R=>R.id===N)||null});async function O(N){N?await Gl({specialist:N,hash:"specialists"}):await Gl({view:"create-specialist"})}let T=_e(!1);const D=tk(),K=pS(),se=o(()=>Iw(nk(i(),c()),l()));let C=_e(!1);const x=o(()=>u.chat_regularAgentWelcome_generalDescription_label()),Q=o(()=>e(W)?.name??u.chat_shared_general_fallback()),pe=o(()=>e(W)?.description??u.chat_shared_noSpecializedBehavior_label()),Te=o(()=>e(W)?e(W).defaultBehaviorPrompt||"":e(x));var he={get onSpecialistChange(){return _()},set onSpecialistChange(N){_(N),Z()},get session(){return f()},set session(N){f(N),Z()},get workspaceId(){return P()},set workspaceId(N){P(N),Z()},$set:vn,$on:(N,R)=>hn(r,N,R)},fe=Gx(),Le=I(fe);{var ue=N=>{var R=Bx(),re=I(R);fk(re,{class:"block w-full",align:"start",side:"bottom",contentClass:"w-[min(28rem,calc(100vw-2rem))]",get open(){return e(C)},set open(Y){w(C,Y,!0)},trigger:(Y,J)=>{let Se=()=>(J?.()).props;{let He=o(()=>zd("group flex h-auto min-h-(--control-height-medium) w-full cursor-pointer items-center gap-3 whitespace-normal rounded-lg border border-border bg-card px-4 py-3 text-left shadow-xs transition-colors","hover:border-input hover:bg-accent/30 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"));$t(Y,Li(Se,{type:"button",variant:"plain",wrapContent:!1,get class(){return e(He)},"data-testid":"specialist-picker-trigger",children:(z,Ie)=>{var Ce=Dx(),De=ye(Ce),at=I(De);{let ze=o(()=>e(W)?.id??null),Ze=o(()=>e(W)?.icon??null);pk(at,{agentId:"blank",variant:"emphasized",get specialist(){return e(ze)},get icon(){return e(Ze)}})}b(De);var lt=m(De,2),Oe=I(lt),$e=de(Oe,!0),V=m(Oe,2),ne=de(V,!0);b(lt);var Fe=m(lt,2),me=I(Fe);gt(me,{get icon(){return Na},size:10}),b(Fe),L(()=>{j($e,e(Q)),j(ne,e(pe))}),p(z,Ce)},$$slots:{default:!0}}))}},content:Y=>{var J=Nx(),Se=I(J),He=I(Se),z=de(He,!0),Ie=m(He,2),Ce=de(Ie,!0);b(Se);var De=m(Se,2),at=I(De);{let $e=o(()=>e(W)?.id??null);ew(at,{get specialists(){return e(se)},get value(){return e($e)},onchange:V=>{w(C,!1),_()?.(V)}})}b(De);var lt=m(De,2),Oe=I(lt);Tt(Oe,()=>Dr,($e,V)=>{V($e,{class:"flex h-auto w-full cursor-pointer items-center gap-3 whitespace-normal rounded-md px-3 py-2 text-left text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",onSelect:()=>{w(C,!1),O()},children:(ne,Fe)=>{var me=Fx(),ze=ye(me),Ze=I(ze);gt(Ze,{get icon(){return O$},size:12}),b(ze);var ut=m(ze,2),mt=de(ut,!0);L(dt=>j(mt,dt),[()=>u.chat_regularAgentWelcome_createSpecialist_label()]),p(ne,me)},$$slots:{default:!0}})}),b(lt),b(J),L(($e,V)=>{j(z,$e),j(Ce,V)},[()=>u.workspace_createAgentSection_specialists_label(),()=>u.workspace_createAgentSection_specialists_description()]),p(Y,J)},$$slots:{trigger:!0,content:!0}}),b(R),p(N,R)};B(Le,N=>{_()&&N(ue)})}var oe=m(Le,2);{var Me=N=>{var R=Wt(),re=ye(R);{let qe=o(()=>u.chat_specialistSelector_prompt_label());Tt(re,()=>hk,(H,Y)=>{Y(H,{class:"mb-3",role:"region",get"aria-label"(){return e(qe)},children:(J,Se)=>{var He=Ux(),z=ye(He);Tt(z,()=>lv,(Ce,De)=>{De(Ce,{children:(at,lt)=>{var Oe=Wt(),$e=ye(Oe);Tt($e,()=>cv,(V,ne)=>{ne(V,{class:"type-caption font-medium",children:(Fe,me)=>{pn();var ze=dn();L(Ze=>j(ze,Ze),[()=>u.chat_specialistSelector_prompt_label()]),p(Fe,ze)},$$slots:{default:!0}})}),p(at,Oe)},$$slots:{default:!0}})});var Ie=m(z,2);Tt(Ie,()=>vk,(Ce,De)=>{De(Ce,{children:(at,lt)=>{var Oe=Wx(),$e=ye(Oe),V=de($e,!0),ne=m($e,2);$t(ne,{type:"button",variant:"link",get"aria-expanded"(){return e(T)},onclick:()=>w(T,!e(T)),class:"text-xs text-muted-foreground hover:text-foreground transition-colors mt-2 cursor-pointer",children:(Fe,me)=>{pn();var ze=dn();L(Ze=>j(ze,Ze),[()=>e(T)?u.chat_regularAgentWelcome_showLess_label():u.chat_regularAgentWelcome_showMore_label()]),p(Fe,ze)},$$slots:{default:!0}}),L(()=>{xe($e,1,`text-sm text-subtle leading-relaxed whitespace-pre-wrap break-words ${e(T)?"":"line-clamp-6"}`),j(V,e(Te))}),p(at,Oe)},$$slots:{default:!0}})}),p(J,He)},$$slots:{default:!0}})})}p(N,R)},ie=N=>{var R=zx(),re=de(R,!0);L(()=>j(re,e(Te))),p(N,R)};B(oe,N=>{e(W)?N(Me):N(ie,-1)})}var ee=m(oe,2);{var Ae=N=>{$t(N,{variant:"ghost-light",size:"sm",onclick:()=>O(e(W).id),class:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors cursor-pointer pl-1.5 mr-auto",children:(R,re)=>{var qe=jx(),H=ye(qe);gt(H,{get icon(){return H$},size:12,class:"opacity-60"});var Y=m(H,2),J=de(Y,!0);L(Se=>j(J,Se),[()=>u.chat_regularAgentWelcome_customize_label()]),p(R,qe)},$$slots:{default:!0}})};B(ee,N=>{e(W)&&N(Ae)})}b(fe),p(n,fe);var Ee=_n(he);return g(),Ee}var Vx=E('<a class="cursor-pointer underline underline-offset-2 hover:opacity-80" data-suggested-prompt-link=""> </a>'),Kx=E('<kbd data-suggested-prompt-hint=""> </kbd>'),Qx=E('<span class="type-caption"> </span>'),Jx=E('<div role="presentation" data-typography-role="body" data-suggested-prompt-row=""><span data-suggested-prompt-icon=""><!></span> <span class="min-w-0 flex-1 text-pretty" data-suggested-prompt-label=""><span role="button" tabindex="0" class="focus-visible:outline-none" data-suggested-prompt-text=""> </span><!></span> <!> <!></div>'),Yx=E('<div class="flex flex-col" data-testid="suggested-prompts-surface"><!></div>');function eu(n,r){if(new.target)return fn({component:eu,...n});mn(r,!0);let a=X(r,"prompts",7),i=X(r,"onSelect",7),c=X(r,"onEdit",7),l=X(r,"compact",7,!1),v=X(r,"showShortcutHints",7,!1),g=X(r,"reserveShortcutHintSpace",7,!1),_=X(r,"workspaceId",7);const P=typeof navigator<"u"&&navigator.platform.toUpperCase().includes("MAC")?"⌃":"Alt+",S=p$.replace("text-ui","type-caption");function q(x){i()(x)}function k(x,Q){x.key!=="Enter"&&x.key!==" "||(x.preventDefault(),q(Q))}function W(x,Q){x.preventDefault(),x.stopPropagation(),qd(Q,{workspaceId:_(),event:x})}function O(x,Q){(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),x.stopPropagation(),qd(Q,{workspaceId:_(),event:x}))}function T(x){return x<3}var D={get prompts(){return a()},set prompts(x){a(x),Z()},get onSelect(){return i()},set onSelect(x){i(x),Z()},get onEdit(){return c()},set onEdit(x){c(x),Z()},get compact(){return l()},set compact(x=!1){l(x),Z()},get showShortcutHints(){return v()},set showShortcutHints(x=!1){v(x),Z()},get reserveShortcutHintSpace(){return g()},set reserveShortcutHintSpace(x=!1){g(x),Z()},get workspaceId(){return _()},set workspaceId(x){_(x),Z()},$set:vn,$on:(x,Q)=>hn(r,x,Q)},K=Wt(),se=ye(K);{var C=x=>{var Q=Yx(),pe=I(Q);{const Te=(fe,Le)=>{let ue=()=>(Le?.()).item,oe=()=>(Le?.()).index;const Me=o(()=>ay(ue())),ie=o(()=>e(Me)[0]?.type==="text"?e(Me)[0].content:"");var ee=Jx(),Ae=I(ee),Ee=I(Ae);gt(Ee,{get icon(){return zf},size:16,get class(){return gr}}),b(Ae);var N=m(Ae,2),R=I(N),re=de(R,!0),qe=m(R);On(qe,17,()=>e(Me).slice(e(ie)?1:0),Y_,(z,Ie)=>{var Ce=Wt(),De=ye(Ce);{var at=Oe=>{const $e=o(()=>ry(e(Ie).url));var V=Vx(),ne=de(V,!0);L(()=>{Ue(V,"href",e($e)),Ue(V,"title",e($e)),j(ne,e(Ie).label)}),ps("click",V,Fe=>W(Fe,e($e))),ps("keydown",V,Fe=>O(Fe,e($e))),p(Oe,V)},lt=Oe=>{var $e=dn();L(()=>j($e,e(Ie).content)),p(Oe,$e)};B(De,Oe=>{e(Ie).type==="link"?Oe(at):Oe(lt,-1)})}p(z,Ce)}),b(N);var H=m(N,2);{var Y=z=>{var Ie=Kx();let Ce;var De=de(Ie);L(()=>{Ce=xe(Ie,1,`${S??""} mt-px inline-flex h-5 items-center self-start border-0 bg-transparent p-0 font-sans font-normal text-muted-foreground! opacity-100`,null,Ce,{invisible:!v()}),Ue(Ie,"aria-hidden",v()?void 0:"true"),Ue(Ie,"data-hint-visible",v()),j(De,`${P}${oe()+1}`)}),p(z,Ie)},J=o(()=>T(oe())&&(v()||g()));B(H,z=>{e(J)&&z(Y)})}var Se=m(H,2);{var He=z=>{L$(z,{side:"top",delayDuration:300,trigger:De=>{{let at=o(()=>u.chat_suggestedPrompts_editInInput_ariaLabel());$t(De,{type:"button",variant:"ghost-light",size:"icon-xs",iconOnly:!0,class:"absolute right-0.5 top-[calc(var(--operational-leading-half-slot-size)+var(--space-1)*0.5+1px)] shrink-0 -translate-y-1/2 rounded opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 focus-visible:opacity-100",onclick:lt=>{lt.stopPropagation(),c()(ue())},get"aria-label"(){return e(at)},children:(lt,Oe)=>{gt(lt,{get icon(){return D$},size:"xs"})},$$slots:{default:!0}})}},content:De=>{var at=Qx(),lt=de(at,!0);L(Oe=>j(lt,Oe),[()=>u.chat_suggestedPrompts_edit_tooltip()]),p(De,at)},$$slots:{trigger:!0,content:!0}})};B(Se,z=>{c()&&z(He)})}b(ee),L(z=>{xe(ee,1,`${Wf} ${g$} group relative flex cursor-pointer items-center gap-[var(--operational-leading-gap)] rounded-sm border border-transparent bg-transparent px-1.5 py-0.5 text-left opacity-100 pr-9 transition-colors hover:text-foreground has-[[data-suggested-prompt-text]:focus-visible]:outline-2 has-[[data-suggested-prompt-text]:focus-visible]:outline-offset-2 has-[[data-suggested-prompt-text]:focus-visible]:outline-ring`),xe(Ae,1,`${Ul??""} mt-px self-start`),Ue(R,"aria-label",z),j(re,e(ie))},[()=>ny(ue())]),ps("click",R,z=>{z.stopPropagation(),q(ue())}),ps("keydown",R,z=>k(z,ue())),p(fe,ee)};let he=o(()=>l()?"[&>div>div:last-child]:gap-0":"[&>div>div:last-child]:gap-0.5");T$(pe,{get items(){return a()},virtualize:!1,onActivate:q,get class(){return`overflow-visible! [&>div>div:last-child]:flex [&>div>div:last-child]:flex-col ${e(he)??""}`},"data-testid":"suggested-prompts-list",get"data-compact"(){return l()},row:Te,$$slots:{row:!0}})}b(Q),Bt(1,Q,()=>ma,()=>({tier:"fast",y:0,scale:1})),Bt(2,Q,()=>to,()=>({tier:"fast"})),p(x,Q)};B(se,x=>{a().length>0&&x(C)})}return p(n,K),_n(D)}Ud(["click","keydown"]);var Xx=E('<section class="pb-6 pt-6"><p class="type-body mb-5 max-w-[36rem] px-1.5 text-pretty text-muted-foreground"> </p> <!></section>');function vv(n,r){if(new.target)return fn({component:vv,...n});mn(r,!0);let a=X(r,"onSelect",7),i=X(r,"compact",7,!1);const c=o(()=>[{label:u.chat_chiefEmptyState_assignedPrs_label(),prompt:u.chat_chiefEmptyState_assignedPrs_prompt()},{label:u.chat_chiefEmptyState_staleWorkspaces_label(),prompt:u.chat_chiefEmptyState_staleWorkspaces_prompt()},{label:u.chat_chiefEmptyState_agentPerformance_label(),prompt:u.chat_chiefEmptyState_agentPerformance_prompt()},{label:u.chat_chiefEmptyState_morningBrief_label(),prompt:u.chat_chiefEmptyState_morningBrief_prompt()},{label:u.chat_chiefEmptyState_randomTheme_label(),prompt:u.chat_chiefEmptyState_randomTheme_prompt()}]),l=o(()=>e(c).map(q=>q.label));function v(q){const k=e(c).find(W=>W.label===q);k&&a()(k.prompt)}var g={get onSelect(){return a()},set onSelect(q){a(q),Z()},get compact(){return i()},set compact(q=!1){i(q),Z()},$set:vn,$on:(q,k)=>hn(r,q,k)},_=Xx(),f=I(_),P=de(f,!0),S=m(f,2);return eu(S,{get prompts(){return e(l)},onSelect:v,get compact(){return i()}}),b(_),L(q=>j(P,q),[()=>u.chat_chiefEmptyState_intro_label()]),p(n,_),_n(g)}const tu=2e3,Zx=4e3,e1=Zx-tu-2;function t1(n,r=tu){const a=[];let i=0;for(let c=n.length-1;c>=0&&i<r;c-=1){const l=n[c];if(l.role!=="user"&&l.role!=="assistant")continue;const v=(l.contentBlocks??[]).filter(_=>_.type==="text").map(_=>_.text||_.content||"").join(""),g=(l.role==="assistant"?tw(v).cleanedContent:v).trim();g&&(a.unshift({role:l.role,text:g}),i+=g.length)}return a}function n1(n,r){const a=n.map(l=>`${l.role==="user"?"User":"Assistant"}: ${l.text}`).join(`
|
|
1
|
+
var G_=Object.defineProperty;var Ng=n=>{throw TypeError(n)};var V_=(n,r,a)=>r in n?G_(n,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[r]=a;var Js=(n,r,a)=>V_(n,typeof r!="symbol"?r+"":r,a),K_=(n,r,a)=>r.has(n)||Ng("Cannot "+a);var Ao=(n,r,a)=>(K_(n,r,"read from private field"),a?a.call(n):r.get(n)),Bg=(n,r,a)=>r.has(n)?Ng("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(n):r.set(n,a);import{t as fn,bo as X,bw as vn,bp as pf,b as hn,bm as u,bq as Nr,bs as ge,br as Li}from"./Dws-34a7.js";import{bs as mn,a5 as I,bf as fs,bA as b,W as p,bn as _n,aA as Z,aB as E,ca as ae,a7 as Wt,ay as ye,aD as e,cd as Bn,c9 as o,bS as m,bl as de,be as pn,b_ as L,bO as j,c5 as ot,bH as w,bV as _e,bj as qs,bk as ro,b$ as dn,ai as Ud,aj as ps,bo as Vl,br as Tr,c0 as Ot,cb as ql,ak as Q_,aw as bi,a as J_}from"./3SdAC2_C.js";import{i as B}from"./DLCFUd4s.js";import{k as Ci}from"./5-0LQoqd.js";import{g as On,i as Y_,I as eo,p as Lo,e as Eo}from"./C-zB-6G6.js";import{n as Bt,l as ma,c as to,j as Wg,k as Do,h as X_}from"./Bc1vJq_Z.js";import{b as ff,e as zd,f as xe,s as Ue,c as jt,g as gs}from"./BD9db4FR.js";import{b as Z_}from"./goTpbPhD.js";import{b as _r}from"./Dn334wJv.js";import{m as ew,U as tw,Z as nw,X as rw,Y as aw,I as Ug,o as sw,l as ow,a2 as iw,x as zg,$ as lw,a0 as jg,r as cw,s as dw}from"./BeJRU38G.js";import{Jx as F,fp as uw,eX as gw,f4 as pw,eY as fw,f2 as vw,f1 as hw,e_ as mw,f0 as _w,eZ as ww,rv as bw,c7 as yw,i as ki,J6 as Iw,Dd as vf,Di as Sw,Dk as Gg,Dh as $w,Dj as kw,vE as xw,vG as Cw,Cq as hf,cq as Pw,co as Rw,Bz as Aw,bF as Tw,A4 as Mw,Cf as id,v0 as Ew,cr as Vg,dC as qw,dD as Lw,Cp as Hw,em as Ow,CJ as Dw,CI as Fw,CN as Nw,CM as Bw,cR as Ww,cU as Uw,nD as zw,es as jw,wS as Gw,CO as Vw,wU as Kw,CP as Qw,cV as Jw,cW as Yw,nL as Xw,Ai as Zw,Is as eb,Ah as tb,Du as nb,wn as rb,wo as ab,z0 as sb,z4 as ld,wj as ob,wk as ib,rT as lb,rg as cb,re as db,f$ as ub,HQ as gb,Ll as pb,GN as fb,go as vb,p3 as hb,Jl as mb,ok as _b,A3 as wb,fu as Kg,r3 as Qg,fn as bb,fm as yb,tC as Ib,g4 as Jg,rf as Sb,ff as $b,Ca as kb,m as xb,nM as Cb,zI as Pb,y_ as Rb,EA as Ab,Ep as Yg,xi as Tb,xj as Xg,u$ as Zg,p4 as Mb,DG as Eb,gk as qb,g2 as Lb,eV as Hb,cN as Ob,A7 as Db,Lq as Fb,Cv as Nb,LI as Bb,y3 as Wb,gb as Ub,fe as zb,cM as jb,cJ as Gb,cI as Vb,vs as Kb,xp as Qb,xn as Jb,cG as Yb,cF as Xb,z6 as Zb,z1 as ey,xo as ty}from"./4g_iHoQm.js";import{a as jd}from"./CC7to1B5.js";import{aM as ny,aL as ry,bg as ay,a7 as sy,aD as oy,aO as iy,M as mf,a0 as _f,b8 as ly,b2 as cy,as as ep,P as yl,b0 as tp,a$ as np,a_ as rp}from"./C3-81PRC.js";import{l as wf,G as dy,I as Rd,at as uy,b1 as Ll,a9 as bf,S as gy,aW as cd,aq as py,aJ as fy,C as vy,z as yf,s as hy,A as my,v as _y,a$ as wy,aH as If,aG as Sf,aI as by,j as ap,aM as dd,aT as sp,aS as Il,aU as op,Q as ip,d as yy,e as Iy,ax as Sy,V as lp,aE as $y,c as ky,m as xy,aV as cp,ap as Cy,aw as dp,a as Py,aA as Ry,ad as up,aD as Ay,aX as gp,a_ as pp,n as fp,ae as Ty,R as My,ay as vp,am as Ey,O as qy,as as Ly,h as Hy,q as Oy,$ as ud,_ as Dy,aC as hp,a8 as Fy,f as Ny,i as By,a6 as Wy,ac as Uy}from"./DEDo4DeD.js";import{f as zy,o as jy,E as Gy,C as Vy,m as Ky,a2 as mp,aa as Qy,K as Jy,e as Yy,y as Xy}from"./DJPIUVkw.js";import{g as Ri}from"./DypB-Dwi.js";import{dW as Bl,cU as $f,O as kf,W as Zy,bv as eI,aF as xf,dH as Cf,aU as qo,e8 as tI,dw as Pf,aw as Gd,dV as Vd,aN as Rf,cP as nI,V as ha,a3 as Xs,B as rI,a7 as aI,a4 as sI,M as oI,a6 as iI,ar as lI,aG as Af,aO as Hl,b6 as cI,ay as Tf,r as dI,n as Ad,H as uI,dY as gI,aQ as pI,aK as fI,c9 as vI,aW as hI,bM as mI,bK as _I,bL as wI,c8 as bI,c7 as yI,cN as II,cM as SI,aS as $I,bb as kI,bd as xI,bg as CI,bc as PI,bl as RI,bf as AI,be as TI,bh as MI,bi as EI,bk as qI,bj as LI,ax as HI,cj as OI,ck as DI,dv as FI,du as NI,a$ as BI,G as WI,b3 as UI,cf as zI,C as _p,d0 as jI,ba as ds,b$ as GI,X as VI,bq as KI,E as QI,ad as JI,t as YI,cW as XI,d3 as wp,Q as bp,dt as ZI,cQ as gd}from"./SbTG0nwQ.js";import{u as Mf,a as Sl,ag as eS,x as tS,ad as Ef,af as nS,ac as qf,a4 as rS,F as yp,D as aS,e as sS,n as oS,s as iS,m as lS,Y as cS,k as dS}from"./BHEogMS0.js";import{a2 as uS,b5 as gS,cM as pS,a_ as fS,b4 as vS,c2 as hS,c9 as mS,w as _S,x as wS,cd as bS}from"./CA8JHp72.js";import{n as yS,P as Lf,F as IS,ai as SS,r as $S,ac as kS}from"./8jMQM9h0.js";import{I as xS,s as CS,H as Ip}from"./Bqd7fdCF.js";import{e as PS}from"./CL3a4Hm1.js";import{e as RS,f as AS}from"./sSXTMg2P.js";import{s as TS,o as Zs,b as MS,g as Wl,d as ES,l as yi}from"./CIyUrgF0.js";import{a5 as qS,a7 as LS,D as HS,N as OS,ac as Sp,X as Hf,i as DS,r as ur,v as Ai,u as ea,p as xi,x as wr,S as Kd,m as Kl,s as Ho,y as Ti,o as ao,n as so,t as $p,aa as oo,w as io,a9 as Qd,q as _a,z as Oo,J as Td,_ as kp,g as FS,F as NS,U as Of,I as Df,a8 as Ff,a6 as Ol,O as BS,E as Nf,V as WS,A as US,b as zS,ab as jS,ad as $l,G as GS,e as pd,l as VS,C as KS,f as Ys,j as xp,H as us,Q as QS,d as kl,c as JS,a as Cp,h as YS,L as XS,Y as Pp,a4 as fd,a1 as Rp,a0 as ZS,a3 as Ap,$ as Tp,T as e$,B as t$,k as n$,a2 as r$,K as a$,R as s$,P as o$,W as i$}from"./v3_7O0A0.js";import{m as l$}from"./Dms_DO28.js";import{g as Bf}from"./Clo7aK1n.js";import{b as c$}from"./B6eTPmJH.js";import{g as d$}from"./pMP23LzB.js";import{a as u$}from"./4PAYwk2I.js";import{q as Wf,d as gr,r as g$,e as Ul,j as p$,g as Md,i as f$,f as Ed,c as v$,A as h$,O as Mp,k as m$}from"./ClNMpui4.js";import{P as _$}from"./BdEtT3Ti.js";import{e as w$}from"./deEweluJ.js";import{b as b$,a as y$,g as I$,c as S$,i as $$}from"./JM7CQkWC.js";import{R as k$,g as x$,W as xl,c as C$}from"./DqAYkzSz.js";import"./C2F2Vd1P.js";import"./BW1iql_y.js";import{t as Mi}from"./D-rRuAXZ.js";import{F as P$,h as R$}from"./BPuz5cN_.js";import"./gU2qspu9.js";import{C as A$,e as Dr,L as T$,l as Ql,d as Jl,K as Yl,h as Jd,M as Xl,S as Fa}from"./jBG7W4tL.js";import{D as M$}from"./D7Dfbf5g.js";import{f as Ep}from"./CletI6Pa.js";import"./DU3vNstz.js";import{i as Uf}from"./BjLb7AHW.js";import{h as qp,i as Lp,g as Hp,P as Op,C as E$,m as Dl,R as q$}from"./rXKOJqUt.js";import{f as $t,ae as L$}from"./BIGqOuh0.js";import{F as gt,bs as H$,cd as O$,aw as Na,a2 as zf,c9 as D$,bf as F$,be as N$,bg as B$,aO as Dp,aj as vd,aB as hd,bB as jf,d3 as zl,cF as W$,aM as Fp,cb as Np,cK as jl,bu as U$,aS as z$,d0 as j$,a8 as Gf,ac as G$,ag as V$,cr as K$,ba as Q$,aC as Vf,cT as Bp,cz as J$,ax as Y$,cD as X$,c3 as Z$}from"./CGYPBD6G.js";import{c as Kf}from"./ChTqQfQN.js";import"./DcOkWaeN.js";import{c as Tt}from"./B5tvpTFB.js";import{a4 as Qf,bf as ek,aq as tk,k as nk,X as rk,V as ak,a1 as sk,Y as ok,bv as ik,U as lk,a0 as ck,ag as dk}from"./BupDQr_B.js";import{d as Gl,f as uk,e as gk}from"./BGspyNwk.js";import{A as pk}from"./BvbeTrka.js";import{D as fk}from"./Dvi4g0xk.js";import"./DWa-2rkZ.js";import{a as vk,C as hk}from"./C9p4fddz.js";import"./C_SKcJv7.js";import{C as mk}from"./DSiGyv9Y.js";import{h as qd,r as _k,a as wk}from"./D2mnZ9kC.js";import{s as bk}from"./C-G2u0Oe.js";import{I as yk,a as Jf}from"./C63WwVct.js";import{L as Ik}from"./COgn_CzG.js";import{g as Sk,f as $k,b as kk}from"./B_4WsP9b.js";import{s as Ei,g as Yn,i as xk,j as Ck,e as Wp,r as Up,f as Pk,d as Rk,a as md,h as Ak}from"./BSWVBeG0.js";import{i as zp,a as Tk}from"./Bu13V5mO.js";import{seekConversationToMessage as jp}from"./CEfkJpk7.js";import{l as Xt,o as _d,h as Yd,n as Ld,q as Mk}from"./B8HnjSSF.js";import{o as Ek}from"./d8NijX_Z.js";import{A as Yf}from"./BXJzIaQM.js";import{b as Xf}from"./VeUh5OMZ.js";import{h as qk,f as Zf,w as Lk,g as Hk,Q as Ok,O as Dk,M as Fk,l as ev,m as Nk,J as tv,s as nv}from"./CI0C7_h-.js";import{selectCurrentWorkspaceTabId as wd}from"./DtqPBHQj.js";import{o as Bk}from"./0RCk28l5.js";import{d as Wk}from"./B0Z-1lwJ.js";import{P as Uk}from"./CV2tdNDf.js";import{g as zk}from"./sOF-qTei.js";import{H as rv,M as jk,y as Gk,J as Vk,g as Kk,i as Qk,u as Jk,e as av,c as sv,d as Yk}from"./9GO97JAL.js";import{c as Xk,h as Xd,f as ov,Q as Zk}from"./PhAbES0t.js";import{t as ex}from"./DAsc1V4f.js";import{s as tx}from"./BsieX9dN.js";import{i as iv}from"./CNSshwg_.js";import{d as nx,i as rx,r as ax}from"./Dval4sTX.js";import{g as sx}from"./B2CniqS1.js";var ox=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),ix=E("<div><!></div>");function lv(n,r){if(new.target)return fn({component:lv,...n});mn(r,!0);let a=X(r,"ref",15,null),i=X(r,"class",7),c=X(r,"children",7),l=pf(r,ox);var v={get ref(){return a()},set ref(f=null){a(f),Z()},get class(){return i()},set class(f){i(f),Z()},get children(){return c()},set children(f){c(f),Z()},$set:vn,$on:(f,P)=>hn(r,f,P)},g=ix();ff(g,f=>({"data-slot":"card-header",class:f,...l}),[()=>zd("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-x-4 gap-y-1.5 pt-4 pb-2 has-data-[slot=card-action]:grid-cols-[minmax(0,1fr)_auto]",mk,i())]);var _=I(g);return Mi(_,()=>c()??fs),b(g),_r(g,f=>a(f),()=>a()),p(n,g),_n(v)}var lx=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),cx=E("<div><!></div>");function cv(n,r){if(new.target)return fn({component:cv,...n});mn(r,!0);let a=X(r,"ref",15,null),i=X(r,"class",7),c=X(r,"children",7),l=pf(r,lx);var v={get ref(){return a()},set ref(f=null){a(f),Z()},get class(){return i()},set class(f){i(f),Z()},get children(){return c()},set children(f){c(f),Z()},$set:vn,$on:(f,P)=>hn(r,f,P)},g=cx();ff(g,f=>({"data-slot":"card-title",class:f,...l}),[()=>zd("type-title min-w-0 break-words font-semibold leading-tight text-foreground",i())]);var _=I(g);return Mi(_,()=>c()??fs),b(g),_r(g,f=>a(f),()=>a()),p(n,g),_n(v)}const Cl=xS.CHAT_MEDIA,bd=TS().min(1).max(512);Zs({workspaceId:bd,agentId:bd,draftId:Wl(),principalId:bd,media:MS(yS).min(1).max(20)}).strict();const dx=Zs({sessionId:Wl()}).strict();dx.extend({control:ES("action",[Zs({action:yi("readiness")}).strict(),Zs({action:yi("export"),request:RS}).strict(),Zs({action:yi("transcribe"),request:AS}).strict(),Zs({action:yi("release"),jobId:Wl()}).strict(),Zs({action:yi("adopt"),jobId:Wl()}).strict()])}).strict();function Zd(n,r,a,i=async(c,l)=>typeof window>"u"||CS(window)!=="electron"?{ok:!1,error:"unavailable"}:PS().invoke(c,l)){let c=null,l=null,v=!1;async function g(){v=!0,a.removeEventListener("abort",_);const k=c;c=null,k&&await i(Cl.CLOSE,{sessionId:k}).catch(()=>{})}const _=()=>{g()};a.addEventListener("abort",_,{once:!0});const f=()=>{if(v||a.aborted||!r())throw new Error("media-send-retired")};async function P(){if(f(),c)return c;if(l)return l;l=(async()=>{const k=await i(Cl.BEGIN,n);if(!k.ok)throw new Error("media-export-unavailable");c=k.value.sessionId;try{return f(),c}catch(W){throw await g(),W}})();try{return await l}finally{l=null}}async function S(k){const W=await P();f();const O=await i(Cl.CONTROL,{sessionId:W,control:k});return f(),O}return{service:{exportMedia:k=>S({action:"export",request:k}),adoptMediaJob:k=>S({action:"adopt",jobId:k}),transcribeMedia:k=>S({action:"transcribe",request:k}),releaseMediaJob:async k=>c?await i(Cl.CONTROL,{sessionId:c,control:{action:"release",jobId:k}}):{ok:!0,value:void 0}},dispose:g,readiness:()=>S({action:"readiness"})}}const yd=new Set;async function ux(n){const{drafts:r,signal:a}=n,i=structuredClone(n.capture),c=structuredClone(n.items),l=structuredClone(n.payload),{workspaceId:v,agentId:g}=i,_=Ri(F.state),f=Bl.select(F.state,v),P=$f.select(F.state),S=wf(),q=JSON.stringify([_,v,g]);if(!_||!f||!P||l.wsId!==v||yd.has(q))return!1;yd.add(q);const k=new AbortController,W=()=>k.abort();a.addEventListener("abort",W,{once:!0});const O=()=>!a.aborted&&!k.signal.aborted&&Ri(F.state)===_&&Bl.select(F.state,v)===f&&bf(S)&&r.isCurrentDraft(i),T=F.getReadableState().subscribe(()=>{O()||k.abort()});let D=null;try{if(!O()||uS(c))return!1;const K=Mf(i.attachments),se=Lf(IS(v,g),K,c.map(fe=>({contextItemId:fe.id,attachmentId:fe.attachmentId,path:fe.path}))),C=new Set([...se.images,...se.clips].map(fe=>fe.contextItemId));if(K.some(([fe])=>!C.has(fe))||se.images.some(fe=>fe.mediaError)||se.clips.some(fe=>fe.mediaError)||!SS(l.text,se))throw new Error("invalid-evidence");if(D=n.warm?.take(i,k.signal)??null,!await r.flushDraft(i)||!O())return!1;const x=await zy.agents.get(g,v);if(!O())return!1;if(!x||x.workspaceId!==v||x.retiredAt||x.pendingDeleteAt||x.status==="deleted")throw new Error("unavailable");const Q=se.clips.flatMap(fe=>fe.media?[fe.media]:[]);Q.length&&!D&&(D=Zd({workspaceId:v,agentId:g,draftId:crypto.randomUUID(),principalId:P.principal.id,media:Q},O,k.signal));const pe=dy(c,se),Te=Rd(pe),he=await uy({workspaceId:v,agentId:g,evidence:se,clickedItems:c,sendItems:pe,clickedPayload:{...l,contextItems:pe,imageBlocks:Te.imageBlocks,fileBlocks:Te.fileBlocks},binding:S,service:D?.service??null,current:O,onRecord:()=>{}});return!he||!O()?!1:Ll(F,g,he)}catch{return O()&&F.dispatch(uw(g,u.dock_conversation_sendFailed_error())),!1}finally{T(),a.removeEventListener("abort",W),await D?.dispose(),yd.delete(q)}}const dv=1e4,Gp={wasBusy:!1,busySince:null,preempted:!1,prediction:null};function Vp(n){return qS(n.messageMetadata)}function gx(n,r){if(n.some(Vp)){const a=n[0];return a&&!Vp(a)&&Kp(a,r)?[a.id]:[]}return n.filter(a=>Kp(a,r)).map(a=>a.id)}function px(n){let r=null;for(const a of n)(a.status==="preparing"||a.status==="sending")&&a.createdAt>(r??-1/0)&&(r=a.createdAt);return r}function Kp(n,r){return!n.requeuedAfterFailure&&LS(n,r)}function fx(n,r){const{busy:a,queue:i,delivered:c,now:l}=r,v=r.blocked||r.interrupted,g=r.timeoutMs??dv;let _=n.prediction;if(_){const k=new Set(i.map(D=>D.id)),W=_.ids.filter(D=>k.has(D)&&!c.has(D)),O=l-_.startedAt>=g,T=n.wasBusy&&!a;!W.length||O||v&&!a||T?_=null:W.length!==_.ids.length&&(_={..._,ids:W})}const f=n.wasBusy&&!a,P=n.wasBusy?n.busySince:a?l:null,S=n.wasBusy&&n.preempted||P!==null&&r.directSendAt!==null&&r.directSendAt>P;if(!_&&f&&!v&&!S){const k=gx(i,l).filter(W=>!c.has(W));k.length&&(_={ids:k,startedAt:l})}const q={wasBusy:a,busySince:a?P:null,preempted:a&&S,prediction:_};return n.wasBusy===q.wasBusy&&n.busySince===q.busySince&&n.preempted===q.preempted&&n.prediction===q.prediction?n:q}class vx{constructor(){Js(this,"previousWorkspaceId",null);Js(this,"_isRebinding",!1);Js(this,"_generation",0);Js(this,"_rebindPromise",null);Js(this,"_rebindResolve",null)}recordMount(r){return this.previousWorkspaceId=r,r}wasWorkspaceChangedDuringMount(r){return this.previousWorkspaceId!==r}shouldRebind(r){return!r||this.previousWorkspaceId===null?!1:r!==this.previousWorkspaceId}recordRebind(r){this.previousWorkspaceId=r}hasWorkspaceChanged(r){return r!==this.previousWorkspaceId}get trackedWorkspaceId(){return this.previousWorkspaceId}get isRebinding(){return this._isRebinding}startRebind(){return this._generation++,this._isRebinding=!0,this._rebindResolve?.(),this._rebindPromise=new Promise(r=>{this._rebindResolve=r}),this._generation}endRebind(r){r!==void 0&&r!==this._generation||(this._isRebinding=!1,this._rebindResolve?.(),this._rebindPromise=null,this._rebindResolve=null)}async waitForRebind(r=5e3){if(!this._isRebinding||!this._rebindPromise)return!1;const a=Date.now()+r;for(;this._isRebinding&&this._rebindPromise;){const i=a-Date.now();if(i<=0)return!1;let c;const l=await Promise.race([this._rebindPromise.then(()=>!1),new Promise(v=>{c=setTimeout(()=>v(!0),i)})]);if(clearTimeout(c),l)return!1}return!0}}function hx(n,r){return!(n?.tabType!=="agent"||n.agentId!==r.agentId||!r.isActive||n.workspaceId&&n.workspaceId!==r.workspaceId||r.panelId&&(n.source!=="dictation"&&!r.isPanelFocused||n.panelId&&n.panelId!==r.panelId))}function Qp(n){const r=typeof n=="string"?n:n&&typeof n=="object"&&typeof n.script=="string"?n.script:void 0;return r||void 0}var mx=E('<div role="status" aria-live="polite" data-presence-typing-indicator=""><span class="inline-flex min-w-[var(--operational-leading-slot-size)] shrink-0 items-center justify-center svelte-lm4khl"><!></span> <span class="min-w-0 truncate svelte-lm4khl"> </span> <span class="inline-flex shrink-0 items-center gap-0.5 svelte-lm4khl" aria-hidden="true"><span class="typing-dot size-1 rounded-full bg-current svelte-lm4khl"></span> <span class="typing-dot size-1 rounded-full bg-current svelte-lm4khl" style="animation-delay: 0.2s"></span> <span class="typing-dot size-1 rounded-full bg-current svelte-lm4khl" style="animation-delay: 0.4s"></span></span></div>');function uv(n,r){if(new.target)return fn({component:uv,...n});mn(r,!0);const a=()=>ge(P,"$typing$",i),[i,c]=Nr();let l=X(r,"workspaceId",7),v=X(r,"agentId",7),g=X(r,"class",7,"");const _=Bn(""),f=Bn("");ae(()=>{_.set(l())}),ae(()=>{f.set(v())});const P=gS(_,f),S=o(()=>w$(a()));var q={get workspaceId(){return l()},set workspaceId(D){l(D),Z()},get agentId(){return v()},set agentId(D){v(D),Z()},get class(){return g()},set class(D=""){g(D),Z()},$set:vn,$on:(D,K)=>hn(r,D,K)},k=Wt(),W=ye(k);{var O=D=>{var K=mx(),se=I(K),C=I(se);_$(C,{get people(){return a()},size:12,decorative:!0}),b(se);var x=m(se,2),Q=de(x,!0);pn(2),b(K),L(()=>{xe(K,1,`${Wf} flex h-4 min-w-0 items-center gap-[var(--operational-leading-gap)] px-[var(--operational-row-inline-padding)] font-family-child font-normal text-muted-foreground text-[11px] leading-4 ${g()??""} /* a11y-ignore: user-requested compact typing status in the composer gap */`,"svelte-lm4khl"),j(Q,e(S))}),p(D,K)};B(W,D=>{e(S)&&D(O)})}p(n,k);var T=_n(q);return c(),T}const _x=50,wx=5e3,bx=500,yx=()=>({authority:()=>Ri(F.state),persistSnapshot:py,dispatch:n=>F.dispatch(n),ownerView:n=>fy.withStore(F)(n)});function Ix(n){const r=n.store??yx(),a=crypto.randomUUID();let i=_e(!1),c=_e(!1),l=_e(!1),v=null,g=null,_=0,f=!1,P=null,S=null,q=null,k=0,W=null,O=null;const T={};let D,K=_e([]),se=null,C=0,x="",Q=0,pe="";const Te=()=>{const N=n.workspaceId(),R=n.agentId();if(!N||!R||!(n.active?.()??!0))return null;const re=r.authority?.();if(!re||f)return null;const qe=n.inputValue(),H=fe(),Y=D?.shared,J=Y?.workspaceId===N&&Y.agentId===R?Y.lifetime:null,Se=JSON.stringify([re,N,R,k,J,H.map(z=>[z.id,z.attachmentId,z.path])]);Se!==pe&&(pe=Se,Q+=1);const He=JSON.stringify([re,N,R,qe,H,k]);return He!==x&&(x=He,C+=1),{authority:re,ownerId:a,workspaceId:N,agentId:R,text:qe,attachments:JSON.parse(JSON.stringify(H)),generation:C,attachmentEpoch:Q}};let he=null;const fe=()=>eS(n.contextItems(),tS(n.contextItems(),e(K))),Le=N=>{if(D=N,!N||f)return;const R=N.restore;if(O&&R?.requestId===O.requestId&&R.status!=="pending"){const{apply:H}=O;O=null,w(c,!1),R.status==="restored"&&w(K,R.draft?.attachments??[]),H(R)}const re=N.shared;if(re&&!e(c)&&g===`${re.workspaceId}\0${re.agentId}`){const H=JSON.stringify([re.provenance,re.workspaceId,re.agentId,re.lifetime,re.revision]);if(se!==H){se=H;const Y=he??v,J=Y&&n.inputValue()===Y.text&&JSON.stringify(fe())===Y.attachmentsJson;re.origin===a?he={text:re.snapshot.text,attachmentsJson:JSON.stringify(re.snapshot.attachments)}:J&&(_+=1,q&&clearTimeout(q),w(K,re.snapshot.attachments),he=v={text:re.snapshot.text,attachmentsJson:JSON.stringify(e(K))},n.setInputValue(re.snapshot.text),n.setContextItems(Sl(e(K))),n.applyEditorContent(re.snapshot.text))}}ot(Te);const qe=[];for(const H of N.saves){if(H.status==="pending")continue;qe.push(H.id);const Y=T[H.id];delete T[H.id],Y?.(H)}qe.length>0&&queueMicrotask(()=>r.dispatch(vw(a,qe)))},ue=(N,R,re)=>{const qe=crypto.randomUUID();O={requestId:qe,apply:re},w(c,!0),r.dispatch(mw(a,qe,N,R))},oe=()=>{O&&(O=null,w(c,!1),r.dispatch(ww(a)))},Me=()=>{const N=W;N&&(W=null,r.dispatch(_w(a)),D?.saves.some(R=>R.id===N)||delete T[N])};r.dispatch(gw(a));const ie=r.ownerView(a).subscribe(N=>ot(()=>Le(N))),ee=()=>{S&&(clearTimeout(S),S=null),w(l,!1)},Ae=()=>{W&&(W=null,r.dispatch(hw(a)))};ae(()=>{const N=n.active?.()??!0,R=n.workspaceId(),re=n.agentId();if(!N){ot(()=>{_+=1,g=null,oe(),P&&clearTimeout(P),P=null,ee(),q&&clearTimeout(q),q=null,w(i,!1),Ae()});return}if(!R||!re)return;const qe=`${R}\0${re}`;if(g===qe)return;const H=g!==null;g=qe;const Y=++_;ot(()=>{v=null,he=null,se=null,w(K,[]),P&&clearTimeout(P),ee(),q&&(clearTimeout(q),q=null),H&&(Ae(),n.setInputValue(""),n.contextItemsAreScoped||n.setContextItems([]),n.applyEditorContent(""));const J=gy(R,re);if(J){w(K,J.attachments),w(i,!1);const He=n.contextItems().length>0,z=J.text,Ie=JSON.stringify(J.attachments);n.setInputValue(J.text),He||n.setContextItems(Sl(J.attachments)),n.applyEditorContent(J.text),v={text:J.text,attachmentsJson:Ie},ue(R,re,Ce=>{if(Ce.status!=="restored")return;const De=Ce.draft;if(f||!(n.active?.()??!0)||g!==qe||_!==Y)return;const at=De?.text??"",lt=De?.attachments??[],Oe=JSON.stringify(lt);cd(R,re,{text:at,attachments:lt});const $e=n.inputValue()===z&&JSON.stringify(fe())===Ie;He||!$e||(at!==z&&(n.setInputValue(at),n.applyEditorContent(at)),Oe!==Ie&&n.setContextItems(Sl(lt)),v={text:at,attachmentsJson:Oe})});return}w(i,!0),S=setTimeout(()=>{S=null,(n.active?.()??!0)&&w(l,!0)},bx),P=setTimeout(()=>{(n.active?.()??!0)&&(w(i,!1),ee())},wx);const Se=()=>{!(n.active?.()??!0)||g!==qe||_!==Y||(P&&clearTimeout(P),w(i,!1),ee())};ue(R,re,He=>{if(He.status!=="restored"){Se();return}const z=He.draft;if(f||!(n.active?.()??!0)||g!==qe||_!==Y)return;const Ie=!!n.inputValue();if(!Ie&&z?.attachments?.length&&n.contextItems().length===0&&n.setContextItems(Sl(z.attachments)),!Ie&&z?.text&&(n.setInputValue(z.text),q=setTimeout(()=>{(n.active?.()??!0)&&n.inputValue()===z.text&&n.applyEditorContent(z.text)},_x)),v===null){const Ce=z?.text??"",De=z?.attachments??[];v={text:Ce,attachmentsJson:JSON.stringify(De)},cd(R,re,{text:Ce,attachments:De})}Se()})})}),ae(()=>{const N=n.active?.()??!0,R=n.workspaceId(),re=n.agentId(),qe=e(i);if(!N){ot(Me);return}if(!R||!re)return;const H=n.inputValue(),Y=fe();if(ot(Te),ot(Me),qe||v===null&&!H&&Y.length===0)return;const J=JSON.stringify(Y);if(v!==null&&v.text===H&&v.attachmentsJson===J)return;JSON.stringify(e(K))!==J&&w(K,Y);const Se=`${R}\0${re}`,He=k,z=crypto.randomUUID();T[z]=Ie=>{if(n.active?.()??!0){if(Ie.status==="saved"){g===Se&&k===He&&(v={text:H,attachmentsJson:J});return}n.onSaveError?.(new Error(Ie.error))}},ot(()=>{W=z,r.dispatch(pw(a,z,{authority:r.authority?.()??void 0,workspaceId:R,agentId:re,text:H,attachments:Y,rollback:v?{text:v.text,attachments:JSON.parse(v.attachmentsJson)}:null}))})}),ae(()=>()=>{f=!0,P&&clearTimeout(P),S&&clearTimeout(S),q&&clearTimeout(q),Ae(),ie(),r.dispatch(fw(a))});const Ee=N=>{const R=Te();return R!==null&&R.authority===N.authority&&R.ownerId===N.ownerId&&R.workspaceId===N.workspaceId&&R.agentId===N.agentId&&R.generation===N.generation&&R.text===N.text&&JSON.stringify(R.attachments)===JSON.stringify(N.attachments)};return{captureDraft:Te,isCurrentDraft:Ee,updateAttachmentScreen(N,R,re){return!Ee(N)||!N.attachments.some(qe=>qe.id===R)?null:(w(K,N.attachments.map(qe=>qe.id===R?{...qe,screen:structuredClone(re)}:qe)),Te())},async flushDraft(N){if(!Ee(N))return!1;if(!r.persistSnapshot)throw new Error("draft-shared-transport-unavailable");return await r.persistSnapshot(a,N.workspaceId,N.agentId,N,N.authority),Ee(N)},get restorePending(){return e(c)},get gateActive(){return e(i)},get gateVisible(){return e(l)},invalidatePendingRestore(){if(_+=1,k+=1,oe(),P&&(clearTimeout(P),P=null),q&&(clearTimeout(q),q=null),w(i,!1),ee(),Me(),g!==null){const[N,R]=g.split("\0");cd(N,R,{text:"",attachments:[]}),he=null,w(K,[]),v={text:"",attachmentsJson:"[]"}}}}}function qi(n){if(!n)return null;const r=Lf(JSON.stringify([n.workspaceId,n.agentId]),Mf(n.attachments),n.attachments.map(a=>({contextItemId:a.id,attachmentId:a.attachmentId,path:a.path})));return{...r,clips:r.clips.filter(a=>{const i=n.attachments.find(c=>c.id===a.contextItemId);return!!a.media&&!a.mediaError&&!!i&&a.path===i.path})}}async function Sx(n,r,a){const i=F.state.principal.snapshot,c=()=>Ri(F.state)===n.authority&&a.isCurrentDraft(n);if(!i||!c()||!await a.flushDraft(n)||!c())return{ready:!1};const l=new AbortController,v=Zd({workspaceId:n.workspaceId,agentId:n.agentId,principalId:i.principal.id,draftId:crypto.randomUUID(),media:[r]},c,l.signal);try{const g=await v.readiness();return!c()||!g.ok?{ready:!1}:g.value.find(_=>_.sourceId===r.source.id)??{ready:!1}}finally{await v.dispose()}}function Jp(n){let r=_e(null),a=_e(!1),i=_e(!1),c=null,l=!0,v=0,g=null;qs(()=>{l=!1,v++}),ae(()=>{const S=n.capture();e(r)&&(!S||S.authority!==e(r).capture.authority||S.ownerId!==e(r).capture.ownerId||S.workspaceId!==e(r).capture.workspaceId||S.agentId!==e(r).capture.agentId||S.attachmentEpoch!==e(r).capture.attachmentEpoch)&&w(r,null)});async function _(S){if(n.disabled()||e(a))return;const q=n.drafts.captureDraft(),k=qi(q),W=k?.clips.find(K=>K.contextItemId===S);if(!q||!W?.media||!k)return;const O=vy({workspaceId:q.workspaceId,agentId:q.agentId,clip:W,evidence:k,marks:k.marks}),T=yf(q.workspaceId,W.path);if(!O||!T)return;const D=++v;c=document.activeElement instanceof HTMLElement?document.activeElement:null,w(a,!0),w(i,!1);try{if(await n.beforeOpen?.(),!l||v!==D||!n.drafts.isCurrentDraft(q))return;const K=await(n.prepareOutput??Sx)(q,W.media,n.drafts);if(!l||v!==D||!n.drafts.isCurrentDraft(q))return;const{attachmentPath:se,...C}=O;w(r,{capture:q,contextItemId:S,snapshot:{...C,openId:crypto.randomUUID(),mediaUrl:T,output:K,deleteReady:!0}})}catch{l&&v===D&&w(i,!0)}finally{l&&v===D&&w(a,!1)}}async function f(S){const q=crypto.randomUUID(),k=e(r),W=n.drafts.captureDraft();if(!k||!W||W.authority!==k.capture.authority||W.ownerId!==k.capture.ownerId||W.workspaceId!==k.capture.workspaceId||W.agentId!==k.capture.agentId||W.attachmentEpoch!==k.capture.attachmentEpoch)return{requestId:q,result:"stale-source"};const O=qi(W),T=O?.clips.find(Q=>Q.contextItemId===k.contextItemId);if(!O||!T?.media)return{requestId:q,result:"stale-source"};const K=g?.openId===k.snapshot.openId&&g.inputRevision===S.revision&&JSON.stringify(g.media)===JSON.stringify(T.media)?{...S,revision:T.media.saved?.revision??0}:S,se=$S(T.media,{openId:k.snapshot.openId,...k.snapshot.output?.version===2?{outputVersion:2}:{},pair:{workspaceId:W.workspaceId,agentId:W.agentId},sourceId:S.sourceId,sourceRevision:S.sourceRevision,expectedEditRevision:K.revision,edit:K});if(se.status!=="saved")return{requestId:q,result:se.status==="invalid-edit"?"failed":se.status};const C=kS({...O,clips:O.clips.map(Q=>Q.id===T.id?{...Q,media:se.media}:Q)})[k.contextItemId],x=n.drafts.updateAttachmentScreen(W,k.contextItemId,C);if(!x)return{requestId:q,result:"stale-source"};g={openId:k.snapshot.openId,media:se.media,inputRevision:S.revision};try{if(!n.drafts.isCurrentDraft(x))return{requestId:q,result:"stale-source"};await n.drafts.flushDraft(x);const Q=n.drafts.captureDraft();return!l||e(r)?.snapshot.openId!==k.snapshot.openId||!Q||Q.attachmentEpoch!==k.capture.attachmentEpoch||Q.authority!==x.authority||Q.ownerId!==x.ownerId||Q.workspaceId!==x.workspaceId||Q.agentId!==x.agentId||JSON.stringify(Q.attachments.find(pe=>pe.id===k.contextItemId)?.screen)!==JSON.stringify(C)?{requestId:q,result:"stale-source"}:(g=null,{requestId:q,result:"saved",saved:se.media.saved??void 0})}catch{return{requestId:q,result:"failed"}}}function P(S){return n.disabled()||!n.onRemove(S)?!1:(e(r)?.contextItemId===S&&w(r,null),!0)}return{get session(){return e(r)},get opening(){return e(a)},get problem(){return e(i)},open:_,save:f,remove:P,close(){w(r,null)},restoreFocus(){c?.isConnected&&c.focus()}}}var $x=E('<p role="alert"> </p>'),kx=E('<div class="recording-editor-surface svelte-cdb16"><!></div>'),xx=E("<!> <!> <!>",1);function gv(n,r){if(new.target)return fn({component:gv,...n});mn(r,!0);let a=X(r,"capture",7),i=X(r,"drafts",7),c=X(r,"disabled",7,!1),l=X(r,"onRemove",7),v=X(r,"controllerFactory",7,Jp),g=X(r,"beforeOpen",7),_=X(r,"onReviewChange",7);const f=ot(()=>v()({drafts:i(),capture:()=>a(),disabled:()=>c(),onRemove:C=>l()(C),beforeOpen:()=>g()?.()??Promise.resolve()}));ae(()=>{const C=f.opening,x=f.session;ot(()=>_()?.(C,x?.snapshot.output?.ready?{openId:x.snapshot.openId,capture:x.capture}:null))});const P=o(hy),S=o(()=>qi(a())),q=o(()=>e(S)?.clips.map(C=>({id:C.contextItemId,kind:"clip",owner:"evidence",duration:Ep(C.durationMs),recording:!1,url:a()?yf(a().workspaceId,C.path):void 0,...C.media?.saved?{summary:my(C.media.saved)}:{}}))??[]);let k=_e(null);var W={get capture(){return a()},set capture(C){a(C),Z()},get drafts(){return i()},set drafts(C){i(C),Z()},get disabled(){return c()},set disabled(C=!1){c(C),Z()},get onRemove(){return l()},set onRemove(C){l(C),Z()},get controllerFactory(){return v()},set controllerFactory(C=Jp){v(C),Z()},get beforeOpen(){return g()},set beforeOpen(C){g(C),Z()},get onReviewChange(){return _()},set onReviewChange(C){_(C),Z()},$set:vn,$on:(C,x)=>hn(r,C,x)},O=xx(),T=ye(O);{let C=o(()=>c()||f.opening);HS(T,{get items(){return e(q)},get labels(){return e(P)},get disabled(){return e(C)},onEdit:x=>void f.open(x),onMarkUp:x=>void f.open(x),get onRemove(){return f.remove}})}var D=m(T,2);{var K=C=>{var x=$x(),Q=de(x,!0);L(pe=>j(Q,pe),[()=>u.dock_captureEditor_saveFailed_label()]),p(C,x)};B(D,C=>{f.problem&&C(K)})}var se=m(D,2);{let C=o(()=>!!f.session),x=o(()=>u.dock_captureEditor_recording_title({duration:f.session?Ep(f.session.snapshot.durationMs??0):""}));A$(se,{get open(){return e(C)},size:"editor",showCloseButton:!1,get title(){return e(x)},escapeKeydownBehavior:"ignore",dismissOnInteractOutside:!1,onClose:()=>f.close(),onCloseAutoFocus:Q=>{Q.preventDefault(),f.restoreFocus()},get contentRef(){return e(k)},set contentRef(Q){w(k,Q,!0)},children:(Q,pe)=>{var Te=Wt(),he=ye(Te);{var fe=Le=>{var ue=Wt(),oe=ye(ue);Ci(oe,()=>f.session.snapshot.openId,Me=>{var ie=kx(),ee=I(ie);M$(ee,{get snapshot(){return f.session.snapshot},get shortcutDialog(){return e(k)},onClose:()=>f.close(),get onSave(){return f.save},onDelete:async()=>!!f.session&&f.remove(f.session.contextItemId)}),b(ie),p(Me,ie)}),p(Le,ue)};B(he,Le=>{f.session&&Le(fe)})}p(Q,Te)},$$slots:{default:!0}})}return p(n,O),_n(W)}const Pl=n=>JSON.stringify([n.authority,n.ownerId,n.workspaceId,n.agentId,n.attachmentEpoch,n.attachments]);function Cx(n){let r=_e(!1),a=_e(!1),i=_e(null),c=!1,l=0,v=null,g=null;async function _(S){S.abort.abort(),S.slot?.cancel(),await S.native?.dispose()}async function f(){l++;const S=g;g=null,S&&await _(S)}ro(()=>{const S=()=>{w(r,document.hasFocus(),!0)};return S(),window.addEventListener("focus",S),window.addEventListener("blur",S),()=>{window.removeEventListener("focus",S),window.removeEventListener("blur",S)}});const P=F.getReadableState().subscribe(()=>{g&&!g.current()&&f()});return qs(()=>{c=!0,P(),f()}),ae(()=>{const S=n.capture(),q=S?Pl(S):"",k=e(r)&&!e(a)&&(n.active()||e(i)?.key===q);ot(()=>{if(!k||!S){f();return}if(g?.key===q)return;if(v===q){f();return}f();const O=qi(S)?.clips.flatMap(Te=>!Te.mediaError&&Te.media?[Te.media]:[])??[],T=O[0],D=F.state.principal.snapshot,K=Bl.select(F.state,S.workspaceId);if(!T||!D||!K||n.drafts.gateActive)return;const se=wf(),C=new AbortController,x=()=>!c&&!C.signal.aborted&&Ri(F.state)===S.authority&&Bl.select(F.state,S.workspaceId)===K&&bf(se)&&!!n.capture()&&Pl(n.capture())===q,Q={key:q,capture:S,abort:C,native:null,slot:null,current:x};g=Q;const pe=l;n.drafts.flushDraft(S).then(async Te=>{if(!(g!==Q||pe!==l||!x())){if(!Te){v=q,await f();return}Q.native=Zd({workspaceId:S.workspaceId,agentId:S.agentId,draftId:crypto.randomUUID(),principalId:D.principal.id,media:structuredClone(O)},x,C.signal),Q.slot=_y(Q.native.service),v=q,Q.slot.warm(q,T,x)}}).catch(()=>{g===Q&&f()})})}),{cancel:f,async beforeEditorOpen(){w(a,!0),v=null,await f()},editorState(S,q){w(a,S,!0);const k=q?Pl(q.capture):null;q&&e(i)?.openId!==q.openId&&(v=null),w(i,q&&k?{openId:q.openId,key:k}:null)},take(S,q){const k=g;if(!k?.native||!k.slot||k.key!==Pl(S)||!k.current())return f(),null;g=null,l++;const W=k.native,O=k.slot,T=()=>k.abort.abort();return q.addEventListener("abort",T,{once:!0}),q.aborted&&T(),{service:{...W.service,takePreparedRecording:D=>O.take(k.key,D,()=>!q.aborted&&k.current())},async dispose(){q.removeEventListener("abort",T),await _(k)}}}}}var Px=E('<div role="status" class="px-3 py-1.5 text-xs text-muted-foreground" data-testid="chat-draft-loading-gate"><span> </span></div>');function pv(n,r){if(new.target)return fn({component:pv,...n});mn(r,!1);var a={$set:vn,$on:(v,g)=>hn(r,v,g)};Uf();var i=Px(),c=I(i),l=de(c,!0);return b(i),L(v=>j(l,v),[()=>u.chat_draftGate_loading_label()]),p(n,i),_n(a)}var Rx=E('<div data-new-messages-divider="" class="type-caption font-family-child my-6 flex items-center gap-2 px-2" role="separator"><div class="h-px flex-1 bg-border"></div> <span class="whitespace-nowrap px-1 font-medium text-foreground"> </span> <div class="h-px flex-1 bg-border"></div></div>');function Hd(n,r){if(new.target)return fn({component:Hd,...n});mn(r,!1);var a={$set:vn,$on:(v,g)=>hn(r,v,g)};Uf();var i=Rx(),c=m(I(i),2),l=de(c,!0);return pn(2),b(i),L((v,g)=>{Ue(i,"aria-label",v),j(l,g)},[()=>u.chat_newMessagesDivider_label(),()=>u.chat_newMessagesDivider_label()]),p(n,i),_n(a)}function Ax(n,r){if(!r||n.length===0)return null;const a=n.indexOf(r);return a===-1||a===n.length-1?null:r}function Tx(n,r,a){if(!r||n.length===0)return"none";const i=n.indexOf(r);return i===n.length-1?"none":i!==-1?"marker-loaded":a.complete?a.truncated?"marker-beyond-window":"none":"marker-pending"}function Mx(n,r){return r&&n.includes(r)?r:null}function Yp(n,r,a){return r-n<=a}const Ex=.2;function Xp(n,r,a){const i=Math.max(0,a-r),c=n-Ex*r;return Math.min(Math.max(0,c),i)}function qx(n,r,a){return n!==null&&a&&n===r}function Lx(n){return n?bw(n)&&yw(n)!==null&&typeof n.metadata?.taskNoteId=="string":!1}function Hx(n){const r=[],a=new Set;let i,c;for(const D of n.messages){if(D.agentId&&D.agentId!==n.agentId){i=void 0,c=void 0;continue}if(a.has(D.id))continue;a.add(D.id),n.breakBeforeMessageIds?.has(D.id)&&(i=void 0,c=void 0);const K=OS(D);if(K?.kind!=="turn-failure")c=void 0;else{const se=i?.seq!==void 0&&D.seq!==void 0&&Number.isSafeInteger(i.seq)&&Number.isSafeInteger(D.seq)&&D.seq===i.seq+1;(!c||!se)&&(c={key:JSON.stringify([n.agentId,"notice",D.id]),anchorMessageId:D.id,correlation:"unavailable",records:[],recordedFailureCount:0},r.push(c)),c.records.push({messageId:D.id,reason:K.reason,timestamp:D.timestamp}),c.recordedFailureCount+=1}i=D}const l=new Map;for(const D of n.queue){if(!D.requeuedAfterFailure)continue;const K=D.turnId||void 0,se=JSON.stringify([n.agentId,K?"turn":"queue",K??D.id]);let C=l.get(se);C||(C={key:se,correlation:K?"turn":"queue-entry",turnId:K,queueIds:[],state:"queued"},l.set(se,C)),C.queueIds.includes(D.id)||C.queueIds.push(D.id)}const v=[...l.values()],g=n.session?.id===n.agentId?n.session:void 0,_=g?.status===ki.Error,f=n.transientError||_&&g.stopReason||null,P=_&&!f,S=_&&(!n.transientError||n.transientError===g.stopReason)?g.stopReasonTimestamp:void 0,q=S?Sp(S):null,k=q&&f&&f===g?.stopReason?r.flatMap(D=>D.records).filter(D=>D.reason===f&&Sp(D.timestamp)===q):[],W=k.length===1?k[0].messageId:void 0,T=(g?kf(g):!1)?"attempting":v.length?"queued":f||P?"action-needed":"inactive";return{history:r,queueRecovery:v,current:{state:T,error:f,needsFallbackReason:P,timestamp:S,noticeId:W}}}function Ox(n,r){const a=n.hiddenTail[0]?.id,i=Hx({...r,messages:[...n.groups.flatMap(g=>g.messages),...n.hiddenTail],breakBeforeMessageIds:new Set(a?[a]:[])}),c=i.current.noticeId,l=i.history.map(g=>({...g,records:g.records.filter(_=>_.messageId!==c)})).filter(g=>g.records.length>0),v=new Set(l.map(g=>g.records[0].messageId));return{...i,runsByAnchor:new Map(l.map(g=>[g.records[0].messageId,g])),collapsedMessageIds:new Set(i.history.flatMap(g=>g.records.map(_=>_.messageId).filter(_=>!v.has(_))))}}var Dx=E('<div class="flex size-10 shrink-0 items-center justify-center rounded-md bg-muted/50"><!></div> <div class="min-w-0 flex-1"><div class="type-body truncate font-medium text-foreground"> </div> <div class="type-caption mt-0.5 line-clamp-2 text-muted-foreground"> </div></div> <div class="flex size-7 shrink-0 items-center justify-center rounded-md bg-muted/50 text-muted-foreground transition-colors group-hover:bg-muted"><!></div>',1),Fx=E('<div class="flex size-9 shrink-0 items-center justify-center rounded-md bg-muted/50"><!></div> <span class="type-body font-medium"> </span>',1),Nx=E('<div><div class="border-b border-border bg-muted/20 px-4 py-3"><p class="type-body font-medium text-foreground"> </p> <p class="type-caption mt-0.5 text-muted-foreground"> </p></div> <div class="max-h-[21rem] overflow-y-auto p-2"><!></div> <div class="border-t border-border bg-popover p-2"><!></div></div>'),Bx=E('<div class="mb-5"><!></div>'),Wx=E('<p data-testid="agent-welcome-description"> </p> <!>',1),Ux=E("<!> <!>",1),zx=E('<p class="mb-3 px-4 text-sm text-subtle leading-relaxed whitespace-pre-wrap" data-testid="agent-welcome-description"> </p>'),jx=E("<!> <span> </span>",1),Gx=E('<div class="mx-auto flex w-full max-w-[40rem] flex-1 flex-col px-4 pb-6 pt-4 text-subtle"><!> <!> <!></div>');function fv(n,r){if(new.target)return fn({component:fv,...n});mn(r,!0);const a=()=>ge(k,"$userOverrides$",v),i=()=>ge(q,"$specialists$",v),c=()=>ge(D,"$isGitHubAuth$",v),l=()=>ge(K,"$recentSpecialistIds$",v),[v,g]=Nr();let _=X(r,"onSpecialistChange",7),f=X(r,"session",7),P=X(r,"workspaceId",7);const S=Bn(P()??"");ae(()=>S.set(P()??""));const q=Qf(S),k=ek();ae(()=>{a()});const W=o(()=>{if(!f()||Zy(f()))return null;const N=f().metadata?.specialist||f().agentMetadata?.specialist;return N&&i().find(R=>R.id===N)||null});async function O(N){N?await Gl({specialist:N,hash:"specialists"}):await Gl({view:"create-specialist"})}let T=_e(!1);const D=tk(),K=pS(),se=o(()=>Iw(nk(i(),c()),l()));let C=_e(!1);const x=o(()=>u.chat_regularAgentWelcome_generalDescription_label()),Q=o(()=>e(W)?.name??u.chat_shared_general_fallback()),pe=o(()=>e(W)?.description??u.chat_shared_noSpecializedBehavior_label()),Te=o(()=>e(W)?e(W).defaultBehaviorPrompt||"":e(x));var he={get onSpecialistChange(){return _()},set onSpecialistChange(N){_(N),Z()},get session(){return f()},set session(N){f(N),Z()},get workspaceId(){return P()},set workspaceId(N){P(N),Z()},$set:vn,$on:(N,R)=>hn(r,N,R)},fe=Gx(),Le=I(fe);{var ue=N=>{var R=Bx(),re=I(R);fk(re,{class:"block w-full",align:"start",side:"bottom",contentClass:"w-[min(28rem,calc(100vw-2rem))]",get open(){return e(C)},set open(Y){w(C,Y,!0)},trigger:(Y,J)=>{let Se=()=>(J?.()).props;{let He=o(()=>zd("group flex h-auto min-h-(--control-height-medium) w-full cursor-pointer items-center gap-3 whitespace-normal rounded-lg border border-border bg-card px-4 py-3 text-left shadow-xs transition-colors","hover:border-input hover:bg-accent/30 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"));$t(Y,Li(Se,{type:"button",variant:"plain",wrapContent:!1,get class(){return e(He)},"data-testid":"specialist-picker-trigger",children:(z,Ie)=>{var Ce=Dx(),De=ye(Ce),at=I(De);{let ze=o(()=>e(W)?.id??null),Ze=o(()=>e(W)?.icon??null);pk(at,{agentId:"blank",variant:"emphasized",get specialist(){return e(ze)},get icon(){return e(Ze)}})}b(De);var lt=m(De,2),Oe=I(lt),$e=de(Oe,!0),V=m(Oe,2),ne=de(V,!0);b(lt);var Fe=m(lt,2),me=I(Fe);gt(me,{get icon(){return Na},size:10}),b(Fe),L(()=>{j($e,e(Q)),j(ne,e(pe))}),p(z,Ce)},$$slots:{default:!0}}))}},content:Y=>{var J=Nx(),Se=I(J),He=I(Se),z=de(He,!0),Ie=m(He,2),Ce=de(Ie,!0);b(Se);var De=m(Se,2),at=I(De);{let $e=o(()=>e(W)?.id??null);ew(at,{get specialists(){return e(se)},get value(){return e($e)},onchange:V=>{w(C,!1),_()?.(V)}})}b(De);var lt=m(De,2),Oe=I(lt);Tt(Oe,()=>Dr,($e,V)=>{V($e,{class:"flex h-auto w-full cursor-pointer items-center gap-3 whitespace-normal rounded-md px-3 py-2 text-left text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",onSelect:()=>{w(C,!1),O()},children:(ne,Fe)=>{var me=Fx(),ze=ye(me),Ze=I(ze);gt(Ze,{get icon(){return O$},size:12}),b(ze);var ut=m(ze,2),mt=de(ut,!0);L(dt=>j(mt,dt),[()=>u.chat_regularAgentWelcome_createSpecialist_label()]),p(ne,me)},$$slots:{default:!0}})}),b(lt),b(J),L(($e,V)=>{j(z,$e),j(Ce,V)},[()=>u.workspace_createAgentSection_specialists_label(),()=>u.workspace_createAgentSection_specialists_description()]),p(Y,J)},$$slots:{trigger:!0,content:!0}}),b(R),p(N,R)};B(Le,N=>{_()&&N(ue)})}var oe=m(Le,2);{var Me=N=>{var R=Wt(),re=ye(R);{let qe=o(()=>u.chat_specialistSelector_prompt_label());Tt(re,()=>hk,(H,Y)=>{Y(H,{class:"mb-3",role:"region",get"aria-label"(){return e(qe)},children:(J,Se)=>{var He=Ux(),z=ye(He);Tt(z,()=>lv,(Ce,De)=>{De(Ce,{children:(at,lt)=>{var Oe=Wt(),$e=ye(Oe);Tt($e,()=>cv,(V,ne)=>{ne(V,{class:"type-caption font-medium",children:(Fe,me)=>{pn();var ze=dn();L(Ze=>j(ze,Ze),[()=>u.chat_specialistSelector_prompt_label()]),p(Fe,ze)},$$slots:{default:!0}})}),p(at,Oe)},$$slots:{default:!0}})});var Ie=m(z,2);Tt(Ie,()=>vk,(Ce,De)=>{De(Ce,{children:(at,lt)=>{var Oe=Wx(),$e=ye(Oe),V=de($e,!0),ne=m($e,2);$t(ne,{type:"button",variant:"link",get"aria-expanded"(){return e(T)},onclick:()=>w(T,!e(T)),class:"text-xs text-muted-foreground hover:text-foreground transition-colors mt-2 cursor-pointer",children:(Fe,me)=>{pn();var ze=dn();L(Ze=>j(ze,Ze),[()=>e(T)?u.chat_regularAgentWelcome_showLess_label():u.chat_regularAgentWelcome_showMore_label()]),p(Fe,ze)},$$slots:{default:!0}}),L(()=>{xe($e,1,`text-sm text-subtle leading-relaxed whitespace-pre-wrap break-words ${e(T)?"":"line-clamp-6"}`),j(V,e(Te))}),p(at,Oe)},$$slots:{default:!0}})}),p(J,He)},$$slots:{default:!0}})})}p(N,R)},ie=N=>{var R=zx(),re=de(R,!0);L(()=>j(re,e(Te))),p(N,R)};B(oe,N=>{e(W)?N(Me):N(ie,-1)})}var ee=m(oe,2);{var Ae=N=>{$t(N,{variant:"ghost-light",size:"sm",onclick:()=>O(e(W).id),class:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors cursor-pointer pl-1.5 mr-auto",children:(R,re)=>{var qe=jx(),H=ye(qe);gt(H,{get icon(){return H$},size:12,class:"opacity-60"});var Y=m(H,2),J=de(Y,!0);L(Se=>j(J,Se),[()=>u.chat_regularAgentWelcome_customize_label()]),p(R,qe)},$$slots:{default:!0}})};B(ee,N=>{e(W)&&N(Ae)})}b(fe),p(n,fe);var Ee=_n(he);return g(),Ee}var Vx=E('<a class="cursor-pointer underline underline-offset-2 hover:opacity-80" data-suggested-prompt-link=""> </a>'),Kx=E('<kbd data-suggested-prompt-hint=""> </kbd>'),Qx=E('<span class="type-caption"> </span>'),Jx=E('<div role="presentation" data-typography-role="body" data-suggested-prompt-row=""><span data-suggested-prompt-icon=""><!></span> <span class="min-w-0 flex-1 text-pretty" data-suggested-prompt-label=""><span role="button" tabindex="0" class="focus-visible:outline-none" data-suggested-prompt-text=""> </span><!></span> <!> <!></div>'),Yx=E('<div class="flex flex-col" data-testid="suggested-prompts-surface"><!></div>');function eu(n,r){if(new.target)return fn({component:eu,...n});mn(r,!0);let a=X(r,"prompts",7),i=X(r,"onSelect",7),c=X(r,"onEdit",7),l=X(r,"compact",7,!1),v=X(r,"showShortcutHints",7,!1),g=X(r,"reserveShortcutHintSpace",7,!1),_=X(r,"workspaceId",7);const P=typeof navigator<"u"&&navigator.platform.toUpperCase().includes("MAC")?"⌃":"Alt+",S=p$.replace("text-ui","type-caption");function q(x){i()(x)}function k(x,Q){x.key!=="Enter"&&x.key!==" "||(x.preventDefault(),q(Q))}function W(x,Q){x.preventDefault(),x.stopPropagation(),qd(Q,{workspaceId:_(),event:x})}function O(x,Q){(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),x.stopPropagation(),qd(Q,{workspaceId:_(),event:x}))}function T(x){return x<3}var D={get prompts(){return a()},set prompts(x){a(x),Z()},get onSelect(){return i()},set onSelect(x){i(x),Z()},get onEdit(){return c()},set onEdit(x){c(x),Z()},get compact(){return l()},set compact(x=!1){l(x),Z()},get showShortcutHints(){return v()},set showShortcutHints(x=!1){v(x),Z()},get reserveShortcutHintSpace(){return g()},set reserveShortcutHintSpace(x=!1){g(x),Z()},get workspaceId(){return _()},set workspaceId(x){_(x),Z()},$set:vn,$on:(x,Q)=>hn(r,x,Q)},K=Wt(),se=ye(K);{var C=x=>{var Q=Yx(),pe=I(Q);{const Te=(fe,Le)=>{let ue=()=>(Le?.()).item,oe=()=>(Le?.()).index;const Me=o(()=>ay(ue())),ie=o(()=>e(Me)[0]?.type==="text"?e(Me)[0].content:"");var ee=Jx(),Ae=I(ee),Ee=I(Ae);gt(Ee,{get icon(){return zf},size:16,get class(){return gr}}),b(Ae);var N=m(Ae,2),R=I(N),re=de(R,!0),qe=m(R);On(qe,17,()=>e(Me).slice(e(ie)?1:0),Y_,(z,Ie)=>{var Ce=Wt(),De=ye(Ce);{var at=Oe=>{const $e=o(()=>ry(e(Ie).url));var V=Vx(),ne=de(V,!0);L(()=>{Ue(V,"href",e($e)),Ue(V,"title",e($e)),j(ne,e(Ie).label)}),ps("click",V,Fe=>W(Fe,e($e))),ps("keydown",V,Fe=>O(Fe,e($e))),p(Oe,V)},lt=Oe=>{var $e=dn();L(()=>j($e,e(Ie).content)),p(Oe,$e)};B(De,Oe=>{e(Ie).type==="link"?Oe(at):Oe(lt,-1)})}p(z,Ce)}),b(N);var H=m(N,2);{var Y=z=>{var Ie=Kx();let Ce;var De=de(Ie);L(()=>{Ce=xe(Ie,1,`${S??""} mt-px inline-flex h-5 items-center self-start border-0 bg-transparent p-0 font-sans font-normal text-muted-foreground! opacity-100`,null,Ce,{invisible:!v()}),Ue(Ie,"aria-hidden",v()?void 0:"true"),Ue(Ie,"data-hint-visible",v()),j(De,`${P}${oe()+1}`)}),p(z,Ie)},J=o(()=>T(oe())&&(v()||g()));B(H,z=>{e(J)&&z(Y)})}var Se=m(H,2);{var He=z=>{L$(z,{side:"top",delayDuration:300,trigger:De=>{{let at=o(()=>u.chat_suggestedPrompts_editInInput_ariaLabel());$t(De,{type:"button",variant:"ghost-light",size:"icon-xs",iconOnly:!0,class:"absolute right-0.5 top-[calc(var(--operational-leading-half-slot-size)+var(--space-1)*0.5+1px)] shrink-0 -translate-y-1/2 rounded opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 focus-visible:opacity-100",onclick:lt=>{lt.stopPropagation(),c()(ue())},get"aria-label"(){return e(at)},children:(lt,Oe)=>{gt(lt,{get icon(){return D$},size:"xs"})},$$slots:{default:!0}})}},content:De=>{var at=Qx(),lt=de(at,!0);L(Oe=>j(lt,Oe),[()=>u.chat_suggestedPrompts_edit_tooltip()]),p(De,at)},$$slots:{trigger:!0,content:!0}})};B(Se,z=>{c()&&z(He)})}b(ee),L(z=>{xe(ee,1,`${Wf} ${g$} group relative flex cursor-pointer items-center gap-[var(--operational-leading-gap)] rounded-sm border border-transparent bg-transparent px-1.5 py-0.5 text-left opacity-100 pr-9 transition-colors hover:text-foreground has-[[data-suggested-prompt-text]:focus-visible]:outline-2 has-[[data-suggested-prompt-text]:focus-visible]:outline-offset-2 has-[[data-suggested-prompt-text]:focus-visible]:outline-ring`),xe(Ae,1,`${Ul??""} mt-px self-start`),Ue(R,"aria-label",z),j(re,e(ie))},[()=>ny(ue())]),ps("click",R,z=>{z.stopPropagation(),q(ue())}),ps("keydown",R,z=>k(z,ue())),p(fe,ee)};let he=o(()=>l()?"[&>div>div:last-child]:gap-0":"[&>div>div:last-child]:gap-0.5");T$(pe,{get items(){return a()},virtualize:!1,onActivate:q,get class(){return`overflow-visible! [&>div>div:last-child]:flex [&>div>div:last-child]:flex-col ${e(he)??""}`},"data-testid":"suggested-prompts-list",get"data-compact"(){return l()},row:Te,$$slots:{row:!0}})}b(Q),Bt(1,Q,()=>ma,()=>({tier:"fast",y:0,scale:1})),Bt(2,Q,()=>to,()=>({tier:"fast"})),p(x,Q)};B(se,x=>{a().length>0&&x(C)})}return p(n,K),_n(D)}Ud(["click","keydown"]);var Xx=E('<section class="pb-6 pt-6"><p class="type-body mb-5 max-w-[36rem] px-1.5 text-pretty text-muted-foreground"> </p> <!></section>');function vv(n,r){if(new.target)return fn({component:vv,...n});mn(r,!0);let a=X(r,"onSelect",7),i=X(r,"compact",7,!1);const c=o(()=>[{label:u.chat_chiefEmptyState_assignedPrs_label(),prompt:u.chat_chiefEmptyState_assignedPrs_prompt()},{label:u.chat_chiefEmptyState_staleWorkspaces_label(),prompt:u.chat_chiefEmptyState_staleWorkspaces_prompt()},{label:u.chat_chiefEmptyState_agentPerformance_label(),prompt:u.chat_chiefEmptyState_agentPerformance_prompt()},{label:u.chat_chiefEmptyState_morningBrief_label(),prompt:u.chat_chiefEmptyState_morningBrief_prompt()},{label:u.chat_chiefEmptyState_randomTheme_label(),prompt:u.chat_chiefEmptyState_randomTheme_prompt()}]),l=o(()=>e(c).map(q=>q.label));function v(q){const k=e(c).find(W=>W.label===q);k&&a()(k.prompt)}var g={get onSelect(){return a()},set onSelect(q){a(q),Z()},get compact(){return i()},set compact(q=!1){i(q),Z()},$set:vn,$on:(q,k)=>hn(r,q,k)},_=Xx(),f=I(_),P=de(f,!0),S=m(f,2);return eu(S,{get prompts(){return e(l)},onSelect:v,get compact(){return i()}}),b(_),L(q=>j(P,q),[()=>u.chat_chiefEmptyState_intro_label()]),p(n,_),_n(g)}const tu=2e3,Zx=4e3,e1=Zx-tu-2;function t1(n,r=tu){const a=[];let i=0;for(let c=n.length-1;c>=0&&i<r;c-=1){const l=n[c];if(l.role!=="user"&&l.role!=="assistant")continue;const v=(l.contentBlocks??[]).filter(_=>_.type==="text").map(_=>_.text||_.content||"").join(""),g=(l.role==="assistant"?tw(v).cleanedContent:v).trim();g&&(a.unshift({role:l.role,text:g}),i+=g.length)}return a}function n1(n,r){const a=n.map(l=>`${l.role==="user"?"User":"Assistant"}: ${l.text}`).join(`
|
|
2
2
|
|
|
3
3
|
`).slice(-tu),i=r.map(l=>l.trim()).filter(Boolean);if(i.length===0)return a;const c=`Suggested prompts:
|
|
4
4
|
${i.map(l=>`- ${l}`).join(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Ni}from"./
|
|
1
|
+
import{g as Ni}from"./i0UHQwRY.js";import{s as Ci}from"./CqrCSb8W.js";import{U as Zs,aZ as jt,V as Qs,a_ as Gt,Y as bi,b0 as vi,b as h,aU as je,ay as _i,X as en,a1 as xi,aP as Mi,bh as wi,aV as Ui,r as Pi,O as Di,am as Fi,W as Bi,ab as $i,aG as ji,aA as Gi,aW as Wi}from"./DxPvfI2H.js";function Wt(s){console&&console.error&&console.error(`Error: ${s}`)}function tn(s){console&&console.warn&&console.warn(`Warning: ${s}`)}function sn(s){const e=new Date().getTime(),t=s();return{time:new Date().getTime()-e,value:t}}function nn(s){function e(){}e.prototype=s;const t=new e;function n(){return typeof t.bar}return n(),n(),s}function Ki(s){return Vi(s)?s.LABEL:s.name}function Vi(s){return typeof s.LABEL=="string"&&s.LABEL!==""}class te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),this.definition.forEach(t=>{t.accept(e)})}}class K extends te{constructor(e){super([]),this.idx=1,Object.assign(this,ie(e))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}}class _e extends te{constructor(e){super(e.definition),this.orgText="",Object.assign(this,ie(e))}}class W extends te{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Object.assign(this,ie(e))}}class G extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class se extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class ne extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class M extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class q extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class Z extends te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Object.assign(this,ie(e))}}class k{constructor(e){this.idx=1,Object.assign(this,ie(e))}accept(e){e.visit(this)}}function zi(s){return s.map(at)}function at(s){function e(t){return t.map(at)}if(s instanceof K){const t={type:"NonTerminal",name:s.nonTerminalName,idx:s.idx};return typeof s.label=="string"&&(t.label=s.label),t}else{if(s instanceof W)return{type:"Alternative",definition:e(s.definition)};if(s instanceof G)return{type:"Option",idx:s.idx,definition:e(s.definition)};if(s instanceof se)return{type:"RepetitionMandatory",idx:s.idx,definition:e(s.definition)};if(s instanceof ne)return{type:"RepetitionMandatoryWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof q)return{type:"RepetitionWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof M)return{type:"Repetition",idx:s.idx,definition:e(s.definition)};if(s instanceof Z)return{type:"Alternation",idx:s.idx,definition:e(s.definition)};if(s instanceof k){const t={type:"Terminal",name:s.terminalType.name,label:Ki(s.terminalType),idx:s.idx};typeof s.label=="string"&&(t.terminalLabel=s.label);const n=s.terminalType.PATTERN;return s.terminalType.PATTERN&&(t.pattern=n instanceof RegExp?n.source:n),t}else{if(s instanceof _e)return{type:"Rule",name:s.name,orgText:s.orgText,definition:e(s.definition)};throw Error("non exhaustive match")}}}function ie(s){return Object.fromEntries(Object.entries(s).filter(([,e])=>e!==void 0))}class xe{visit(e){const t=e;switch(t.constructor){case K:return this.visitNonTerminal(t);case W:return this.visitAlternative(t);case G:return this.visitOption(t);case se:return this.visitRepetitionMandatory(t);case ne:return this.visitRepetitionMandatoryWithSeparator(t);case q:return this.visitRepetitionWithSeparator(t);case M:return this.visitRepetition(t);case Z:return this.visitAlternation(t);case k:return this.visitTerminal(t);case _e:return this.visitRule(t);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}function Hi(s){return s instanceof W||s instanceof G||s instanceof M||s instanceof se||s instanceof ne||s instanceof q||s instanceof k||s instanceof _e}function Tt(s,e=[]){return s instanceof G||s instanceof M||s instanceof q?!0:s instanceof Z?s.definition.some(n=>Tt(n,e)):s instanceof K&&e.includes(s)?!1:s instanceof te?(s instanceof K&&e.push(s),s.definition.every(n=>Tt(n,e))):!1}function Xi(s){return s instanceof Z}function ee(s){if(s instanceof K)return"SUBRULE";if(s instanceof G)return"OPTION";if(s instanceof Z)return"OR";if(s instanceof se)return"AT_LEAST_ONE";if(s instanceof ne)return"AT_LEAST_ONE_SEP";if(s instanceof q)return"MANY_SEP";if(s instanceof M)return"MANY";if(s instanceof k)return"CONSUME";throw Error("non exhaustive match")}class kt{walk(e,t=[]){e.definition.forEach((n,i)=>{const a=e.definition.slice(i+1);if(n instanceof K)this.walkProdRef(n,a,t);else if(n instanceof k)this.walkTerminal(n,a,t);else if(n instanceof W)this.walkFlat(n,a,t);else if(n instanceof G)this.walkOption(n,a,t);else if(n instanceof se)this.walkAtLeastOne(n,a,t);else if(n instanceof ne)this.walkAtLeastOneSep(n,a,t);else if(n instanceof q)this.walkManySep(n,a,t);else if(n instanceof M)this.walkMany(n,a,t);else if(n instanceof Z)this.walkOr(n,a,t);else throw Error("non exhaustive match")})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){const i=t.concat(n);this.walk(e,i)}walkOption(e,t,n){const i=t.concat(n);this.walk(e,i)}walkAtLeastOne(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkAtLeastOneSep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkMany(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkManySep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkOr(e,t,n){const i=t.concat(n);e.definition.forEach(a=>{const r=new W({definition:[a]});this.walk(r,i)})}}function ys(s,e,t){return[new G({definition:[new k({terminalType:s.separator})].concat(s.definition)})].concat(e,t)}function Je(s){if(s instanceof K)return Je(s.referencedRule);if(s instanceof k)return qi(s);if(Hi(s))return Yi(s);if(Xi(s))return Ji(s);throw Error("non exhaustive match")}function Yi(s){let e=[];const t=s.definition;let n=0,i=t.length>n,a,r=!0;for(;i&&r;)a=t[n],r=Tt(a),e=e.concat(Je(a)),n=n+1,i=t.length>n;return[...new Set(e)]}function Ji(s){const e=s.definition.map(t=>Je(t));return[...new Set(e.flat())]}function qi(s){return[s.terminalType]}const an="_~IN~_";class Zi extends kt{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){const i=ea(e.referencedRule,e.idx)+this.topProd.name,a=t.concat(n),r=new W({definition:a}),l=Je(r);this.follows[i]=l}}function Qi(s){const e={};return s.forEach(t=>{const n=new Zi(t).startWalking();Object.assign(e,n)}),e}function ea(s,e){return s.name+e+an}function S(s){return s.charCodeAt(0)}function Pt(s,e){Array.isArray(s)?s.forEach(function(t){e.push(t)}):e.push(s)}function Fe(s,e){if(s[e]===!0)throw"duplicate flag "+e;s[e],s[e]=!0}function Se(s){if(s===void 0)throw Error("Internal Error - Should never get here!");return!0}function ta(){throw Error("Internal Error - Should never get here!")}function Rs(s){return s.type==="Character"}const gt=[];for(let s=S("0");s<=S("9");s++)gt.push(s);const At=[S("_")].concat(gt);for(let s=S("a");s<=S("z");s++)At.push(s);for(let s=S("A");s<=S("Z");s++)At.push(s);const Os=[S(" "),S("\f"),S(`
|
|
2
2
|
`),S("\r"),S(" "),S("\v"),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S("\u2028"),S("\u2029"),S(" "),S(" "),S(" "),S("\uFEFF")],sa=/[0-9a-fA-F]/,tt=/[0-9]/,na=/[1-9]/;class ia{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");const t=this.disjunction();this.consumeChar("/");const n={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":Fe(n,"global");break;case"i":Fe(n,"ignoreCase");break;case"m":Fe(n,"multiLine");break;case"u":Fe(n,"unicode");break;case"y":Fe(n,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:t,loc:this.loc(0)}}disjunction(){const e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){const e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let t;switch(this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":t="Lookbehind";break;case"!":t="NegativeLookbehind"}break}}Se(t);const n=this.disjunction();return this.consumeChar(")"),{type:t,value:n,loc:this.loc(e)}}return ta()}quantifier(e=!1){let t;const n=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":const i=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:i,atMost:i};break;case",":let a;this.isDigit()?(a=this.integerIncludingZero(),t={atLeast:i,atMost:a}):t={atLeast:i,atMost:1/0},this.consumeChar("}");break}if(e===!0&&t===void 0)return;Se(t);break}if(!(e===!0&&t===void 0)&&Se(t))return this.peekChar(0)==="?"?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(n),t}atom(){let e;const t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}if(e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),Se(e))return e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[S(`
|
|
3
3
|
`),S("\r"),S("\u2028"),S("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case"d":e=gt;break;case"D":e=gt,t=!0;break;case"s":e=Os;break;case"S":e=Os,t=!0;break;case"w":e=At;break;case"W":e=At,t=!0;break}if(Se(e))return{type:"Set",value:e,complement:t}}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=S("\f");break;case"n":e=S(`
|
|
4
4
|
`);break;case"r":e=S("\r");break;case"t":e=S(" ");break;case"v":e=S("\v");break}if(Se(e))return{type:"Character",value:e}}controlLetterEscapeAtom(){this.consumeChar("c");const e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:S("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){const e=this.popChar();return{type:"Character",value:S(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var $s=Object.defineProperty;var Fs=(f,r,l)=>r in f?$s(f,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):f[r]=l;var q=(f,r,l)=>Fs(f,typeof r!="symbol"?r+"":r,l);import{t as dn,bo as y,bm as P,bw as un,bq as On,b as hn,bs as je}from"./hY0rMePc.js";import{ai as Cr,bs as gn,ca as Be,aD as e,bH as m,a5 as N,bA as L,b_ as z,aw as sn,aj as ln,W as w,bn as fn,bV as Y,aA as C,ay as ne,bS as x,bl as de,bO as K,aB as T,c9 as u,a7 as nt,br as tt,bj as sr,c5 as gt,c0 as Hn,a as Us,be as Tt,b$ as ft,bf as or}from"./3SdAC2_C.js";import{i as M}from"./BWmYJDmC.js";import{g as Pt,i as Ln,I as ir,e as ar}from"./D400ElMz.js";import{n as cn,l as Ws,c as Bs}from"./72S4_8Fo.js";import{f as En,s as Ve,g as lr}from"./leDczq9h.js";import{b as on}from"./Dn334wJv.js";import{Jx as Me,eT as Vs,eK as Ks,eL as js,o$ as qs,nP as Vt,nT as cr,nS as In,eN as Gs,vG as Qs,vH as Xs,vJ as Ys,HA as Js,JC as Zs,rY as eo,eS as to}from"./DXdFemRu.js";import{c as no}from"./KU76P7cR.js";import{F as Ne,a1 as ro,a8 as An,aw as dr,ax as ur,bS as so,aP as oo,cd as hr,bZ as gr,cq as fr}from"./DETS1-K4.js";import{dH as io,bs as ao,X as lo,aO as mr,p as co}from"./C9aF-Sor.js";import{L as pr}from"./CHMwcoWM.js";import{C as an}from"./DypB-Dwi.js";import{b8 as kr,bN as uo,bT as ho}from"./3BCyU2N-.js";import{q as $e,d as go,g as fo}from"./Ue4xifLs.js";import"./CjZEyjv4.js";import"./rNjiZ_3W.js";/* empty css */import{T as Pr}from"./zJz5NUAZ.js";import{g as Nn}from"./BNm3whw0.js";import{A as mo}from"./Djz9uuuA.js";import{f as ke}from"./CIU_APaR.js";import{C as po}from"./BDPP0w0q.js";import{C as vo}from"./x_GKKTQV.js";import{s as vr}from"./CQhRmQZt.js";import{S as Dt}from"./CbaFGz2w.js";import{l as Rt}from"./B7JHU89G.js";import{G as _r}from"./BmALJKBY.js";import{P as _o}from"./DMrypNw-.js";import{g as wo}from"./CwTWayd0.js";import{a8 as bo,Y as So}from"./Cr6ukNck.js";import{ap as xo}from"./DnkGrT83.js";import{N as wr}from"./BQXu3XXC.js";import{ae as yo,ad as Co,af as ko}from"./D_DdTIu0.js";function br({scrollTop:f,scrollHeight:r,height:l,fitPerfectly:a=!1,fitPerfectlyOverscroll:c=0,overscrollSize:p}){const b=l+p*2,S=a?l+c*2:b;if(r=Math.max(r,S),b>=r||a){const G=Math.max(f-c,0),h=Math.min(f+S,r);return{top:G,bottom:Math.max(h,G)}}let A=f+l/2-b/2,F=A+b;return A<0&&(A=0),F>r&&(F=r),A=Math.floor(Math.max(A,0)),{top:A,bottom:Math.ceil(Math.max(Math.min(F,r),A))}}function Po(f,r){return f==null||r==null?f===r:f.top===r.top&&f.bottom===r.bottom}const Rr=1e3,Ro=Rr*4,Ho=[0,1e-6,.99999,1],Lo={overscrollSize:Rr,intersectionObserverMargin:Ro,resizeDebugging:!1};let rn=0,Io=-1;var Pe,Ao=(Pe=class{constructor(r){q(this,"__id",`virtualizer-${++Io}`);q(this,"config");q(this,"type","simple");q(this,"intersectionObserver");q(this,"scrollTop",0);q(this,"height",0);q(this,"scrollHeight",0);q(this,"windowSpecs",{top:0,bottom:0});q(this,"root");q(this,"contentContainer");q(this,"resizeObserver");q(this,"observers",new Map);q(this,"visibleInstances",new Map);q(this,"visibleInstancesDirty",!1);q(this,"instancesChanged",new Set);q(this,"reconcileQueue",new Set);q(this,"scrollDirty",!0);q(this,"heightDirty",!0);q(this,"scrollHeightDirty",!0);q(this,"renderedObservers",0);q(this,"connectQueue",new Map);q(this,"handleContainerResize",r=>{if(this.root==null)return;let l=!1;for(const a of r){const c=a.borderBoxSize[0].blockSize;this.root instanceof Document?c!==this.scrollHeight&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: content size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c)):a.target===this.root?c!==this.height&&(this.heightDirty=!0,l=!0):a.target===this.contentContainer&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: scroller size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c))}l&&$e(this.computeRenderRangeAndEmit)});q(this,"handleWindowResize",()=>{Pe.__STOP||window.innerHeight===this.height||(this.heightDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleWindowScroll",()=>{Pe.__STOP||this.root==null||!(this.root instanceof Document)||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleElementScroll",()=>{Pe.__STOP||this.root==null||this.root instanceof Document||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"computeRenderRangeAndEmit",()=>{if(Pe.__STOP)return;const r=this.heightDirty||this.scrollHeightDirty;let l=this.instancesChanged.size>0;if(this.instancesChanged.size===0){const p=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize});if(!r&&Po(this.windowSpecs,p)&&this.renderedObservers===this.observers.size&&!this.visibleInstancesDirty&&this.reconcileQueue.size===0)return;this.windowSpecs=p}this.visibleInstancesDirty=!1,this.renderedObservers=this.observers.size;const a=this.getScrollAnchor(this.height),c=new Set;for(const p of r?this.observers.values():this.visibleInstances.values())p.onRender(r)&&c.add(p);for(const p of this.instancesChanged)c.has(p)||p.onRender(r)&&c.add(p);this.scrollFix(a);for(const p of c)this.reconcileQueue.delete(p),p.reconcileHeights();for(const p of this.reconcileQueue)p.reconcileHeights()&&(l=!0);this.reconcileQueue.clear(),l||=this.instancesChanged.size>0,l&&this.markDOMDirty(),(l||r)&&$e(this.computeRenderRangeAndEmit),c.clear(),this.instancesChanged.clear()});q(this,"handleIntersectionChange",r=>{this.scrollDirty=!0;for(const{target:l,isIntersecting:a}of r){if(!(l instanceof HTMLElement))throw new Error("Virtualizer.handleIntersectionChange: target not an HTMLElement");const c=this.observers.get(l);c!=null&&(a&&!this.visibleInstances.has(l)?(c.setVisibility(!0),this.visibleInstances.set(l,c),this.visibleInstancesDirty=!0):!a&&this.visibleInstances.has(l)&&(c.setVisibility(!1),this.visibleInstances.delete(l),this.visibleInstancesDirty=!0))}this.visibleInstancesDirty&&$e(this.computeRenderRangeAndEmit)});this.config={...Lo,...r}}setup(r,l){if(this.root==null){this.root=r,this.resizeObserver=new ResizeObserver(this.handleContainerResize),this.intersectionObserver=new IntersectionObserver(this.handleIntersectionChange,{root:this.root,threshold:Ho,rootMargin:`${this.config.intersectionObserverMargin}px 0px ${this.config.intersectionObserverMargin}px 0px`}),r instanceof Document?this.setupWindow():this.setupElement(l),window.__INSTANCE=this,window.__TOGGLE=()=>{Pe.__STOP?(Pe.__STOP=!1,(this.getScrollContainerElement()??window).scrollTo({top:Pe.__lastScrollPosition}),$e(this.computeRenderRangeAndEmit)):(Pe.__lastScrollPosition=this.getScrollTop(),Pe.__STOP=!0)};for(const[a,c]of this.connectQueue.entries())this.connect(a,c);this.connectQueue.clear(),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}}instanceChanged(r,l){this.instancesChanged.add(r),l&&this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}requestHeightReconcile(r){this.reconcileQueue.add(r),$e(this.computeRenderRangeAndEmit)}getWindowSpecs(){return this.windowSpecs.top===0&&this.windowSpecs.bottom===0&&(this.windowSpecs=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize})),this.windowSpecs}getRoot(){return this.root}isInstanceVisible(r,l){const a=this.getScrollTop(),c=this.getHeight(),p=this.config.intersectionObserverMargin,b=a-p,S=a+c+p;return!(r<b-l||r>S)}setupWindow(){if(this.root==null||!(this.root instanceof Document))throw new Error("Virtualizer.setupWindow: Invalid setup method");window.addEventListener("scroll",this.handleWindowScroll,{passive:!0}),window.addEventListener("resize",this.handleWindowResize,{passive:!0}),this.resizeObserver?.observe(this.root.documentElement)}setupElement(r){if(this.root==null||this.root instanceof Document)throw new Error("Virtualizer.setupElement: Invalid setup method");this.root.addEventListener("scroll",this.handleElementScroll,{passive:!0}),this.resizeObserver?.observe(this.root),r??=this.root.firstElementChild??void 0,r instanceof HTMLElement&&(this.contentContainer=r,this.resizeObserver?.observe(r))}cleanUp(){go(this.computeRenderRangeAndEmit),this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0,this.root?.removeEventListener("scroll",this.handleElementScroll),window.removeEventListener("scroll",this.handleWindowScroll),window.removeEventListener("resize",this.handleWindowResize),this.root=void 0,this.contentContainer=void 0,this.observers.clear(),this.visibleInstances.clear(),this.instancesChanged.clear(),this.reconcileQueue.clear(),this.connectQueue.clear(),this.visibleInstancesDirty=!1,this.windowSpecs={top:0,bottom:0},this.scrollTop=0,this.height=0,this.scrollHeight=0,this.scrollDirty=!0,this.heightDirty=!0,this.scrollHeightDirty=!0}getOffsetInScrollContainer(r){return this.getScrollTop()+Kt(r,this.getScrollContainerElement())}connect(r,l){if(this.observers.has(r))throw new Error("Virtualizer.connect: instance is already connected...");return this.intersectionObserver==null?this.connectQueue.set(r,l):(this.intersectionObserver.observe(r),this.observers.set(r,l),this.instancesChanged.add(l),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)),()=>this.disconnect(r)}disconnect(r){const l=this.observers.get(r);this.connectQueue.delete(r),l!=null&&(this.intersectionObserver?.unobserve(r),this.observers.delete(r),this.instancesChanged.delete(l),this.reconcileQueue.delete(l),this.visibleInstances.delete(r)&&(this.visibleInstancesDirty=!0),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit))}scrollFix(r){if(r==null)return;const l=this.getScrollContainerElement(),{lineIndex:a,lineOffset:c,fileElement:p,fileOffset:b,fileTypeOffset:S}=r;if(a!=null&&c!=null){const F=p.shadowRoot?.querySelector(`[data-line][data-line-index="${a}"]`);if(F instanceof HTMLElement){const G=Kt(F,l);if(G!==c){const h=G-c;this.applyScrollFix(h)}return}}const A=Kt(p,l);if(S==="top")A!==b&&this.applyScrollFix(A-b);else{const F=A+p.getBoundingClientRect().height;F!==b&&this.applyScrollFix(F-b)}}applyScrollFix(r){this.root==null||this.root instanceof Document?window.scrollTo({top:window.scrollY+r,behavior:"instant"}):this.root.scrollTo({top:this.root.scrollTop+r,behavior:"instant"}),this.markDOMDirty()}getScrollAnchor(r){const l=this.getScrollContainerElement();let a;for(const[c]of this.visibleInstances.entries()){const p=Kt(c,l),b=p+c.offsetHeight;let S,A;b<=0?(S=b,A="bottom"):(S=p,A="top");let F,G;if(b>0&&p<r)for(const oe of c.shadowRoot?.querySelectorAll("[data-line][data-line-index]")??[]){if(!(oe instanceof HTMLElement))continue;const Te=oe.dataset.lineIndex;if(Te==null)continue;const ue=Kt(oe,l);if(!(ue<0)){F=Te,G=ue;break}}if(a?.lineOffset!=null&&G==null)continue;let h=!1;(a==null||G!=null&&(a.lineOffset==null||G<a.lineOffset)||G==null&&a.lineOffset==null&&(S>=0&&(a.fileOffset<0||S<a.fileOffset)||S<0&&a.fileOffset<0&&S>a.fileOffset))&&(h=!0),h&&(a={fileElement:c,fileTypeOffset:A,fileOffset:S,lineIndex:F,lineOffset:G})}return a}getScrollTop(){if(!this.scrollDirty)return this.scrollTop;this.scrollDirty=!1;let r=this.root==null?0:this.root instanceof Document?window.scrollY:this.root.scrollTop;return r=this.clampScrollTop(r),this.scrollTop=r,r}scrollTo({top:r,behavior:l="auto"}){const{root:a}=this;if(a==null)return;const c=this.clampScrollTop(r);a instanceof Document?window.scrollTo({top:c,behavior:l}):a.scrollTo({top:c,behavior:l}),this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit)}clampScrollTop(r){return Math.max(0,Math.min(r,this.getScrollHeight()-this.getHeight()))}getScrollHeight(){return this.scrollHeightDirty?(this.scrollHeightDirty=!1,this.scrollHeight=this.root==null?0:this.root instanceof Document?this.root.documentElement.scrollHeight:this.root.scrollHeight,this.scrollHeight):this.scrollHeight}getHeight(){return this.heightDirty?(this.heightDirty=!1,this.height=this.root==null?0:this.root instanceof Document?globalThis.innerHeight:this.root.getBoundingClientRect().height,this.height):this.height}markDOMDirty(){this.scrollDirty=!0,this.scrollHeightDirty=!0,this.heightDirty=!0}getScrollContainerElement(){return this.root==null||this.root instanceof Document?void 0:this.root}},q(Pe,"__STOP",!1),q(Pe,"__lastScrollPosition",0),Pe);function Kt(f,r){const l=f.getBoundingClientRect(),a=r?.getBoundingClientRect().top??0;return l.top-a}var Eo=T('<div class="absolute inset-0 flex items-center justify-center rounded-lg bg-background/60 backdrop-blur-[2px] transition-opacity duration-spring-moderate ease-spring-moderate motion-reduce:transition-none z-10 pointer-events-none"><div class="flex items-center gap-2 rounded-lg border border-border bg-card px-3 py-2 text-xs font-medium text-subtle shadow-lg"><!> </div></div>'),Oo=T("<!> <!>",1),No=T('<div class="flex h-24 items-center justify-start text-left text-subtle"> </div>'),To=T('<div role="region"><!></div>');function Hr(f,r){if(new.target)return dn({component:Hr,...f});gn(r,!0);const l=()=>je(ve,"$sideBySide",a),[a,c]=On(),p=Nn()?.workspaceId??void 0;let b=y(r,"change",7),S=y(r,"foldUnchanged",7,!0),A=y(r,"allowHeadReads",7,!0),F=y(r,"canReadHeadFiles",7),G=y(r,"lineWrapping",7,!1),h=y(r,"scrollToLine",7),oe=y(r,"isAggregate",7,!1),Te=y(r,"showScrollHint",7,!1),ue=y(r,"onStageHunk",7),Q=y(r,"onUnstageHunk",7),at=y(r,"onOpenCommit",7),pt=y(r,"virtualizer",7),vt=y(r,"gitRootId",7,void 0),_t=y(r,"gitRootPath",7,void 0);const ve=kr();let Re=Y(!1),Se=Y(!1),Fe=Y(!1),Ue=Y(0),qe=Y(void 0);const $=80;function ie(){m(Se,!0)}function De(){m(Se,!1),m(Fe,!1),m(Ue,0)}function He(v){!e(Se)||e(Re)||(m(Ue,e(Ue)+Math.abs(v.deltaY)),e(Ue)>=$&&!e(Fe)&&m(Fe,!0))}function jt(){m(Re,!0),m(Fe,!1),m(Ue,0)}function qt(v){e(qe)&&!e(qe).contains(v.relatedTarget)&&m(Re,!1)}Be(()=>{(e(Re)||!e(Se))&&(m(Fe,!1),m(Ue,0))});let Ht=u(()=>{const{toolCallId:v,filePath:_e,additions:Qe,deletions:St,oldContent:re,newContent:Xe}=b(),rt="staged"in b()&&b().staged===!0,Ke="category"in b()?b().category:void 0,At="commitHash"in b()?b().commitHash:void 0,zt="gitlink"in b()?b().gitlink:void 0,Mt="isFullFileContent"in b()?b().isFullFileContent:!1;let xt;return Ke==="committed"?xt=an.Committed:rt?xt=an.Staged:xt=an.Unstaged,{id:v,file:_e,relativePath:_e,stage:xt,commitHash:At,gitlink:zt,stats:{additions:Qe,deletions:St},attribution:{timestamp:0},content:re!==void 0||Xe!==void 0?{oldContent:re??"",newContent:Xe??"",isFullFileContent:Mt}:void 0}});const D=u(()=>b().isFullFileContent?1:("chunks"in b()?b().chunks?.[0]?.newStart:void 0)??b().startLineNumber??1);var Lt={get change(){return b()},set change(v){b(v),C()},get foldUnchanged(){return S()},set foldUnchanged(v=!0){S(v),C()},get allowHeadReads(){return A()},set allowHeadReads(v=!0){A(v),C()},get canReadHeadFiles(){return F()},set canReadHeadFiles(v){F(v),C()},get lineWrapping(){return G()},set lineWrapping(v=!1){G(v),C()},get scrollToLine(){return h()},set scrollToLine(v){h(v),C()},get isAggregate(){return oe()},set isAggregate(v=!1){oe(v),C()},get showScrollHint(){return Te()},set showScrollHint(v=!1){Te(v),C()},get onStageHunk(){return ue()},set onStageHunk(v){ue(v),C()},get onUnstageHunk(){return Q()},set onUnstageHunk(v){Q(v),C()},get onOpenCommit(){return at()},set onOpenCommit(v){at(v),C()},get virtualizer(){return pt()},set virtualizer(v){pt(v),C()},get gitRootId(){return vt()},set gitRootId(v=void 0){vt(v),C()},get gitRootPath(){return _t()},set gitRootPath(v=void 0){_t(v),C()},$set:un,$on:(v,_e)=>hn(r,v,_e)},Le=To();let wt;var It=N(Le);{var Ge=v=>{var _e=Oo(),Qe=ne(_e);{let Xe=u(()=>l()?"split":"unified");Pr(Qe,{get change(){return e(Ht)},get workspaceId(){return p},get viewMode(){return e(Xe)},get foldUnchanged(){return S()},get lineWrapping(){return G()},get onStageHunk(){return ue()},get onUnstageHunk(){return Q()},useProvidedContent:!0,get allowHeadReads(){return A()},get canReadHeadFiles(){return F()},get lineOffset(){return e(D)},get virtualizer(){return pt()},get gitRootId(){return vt()},get gitRootPath(){return _t()}})}var St=x(Qe,2);{var re=Xe=>{var rt=Eo(),Ke=N(rt),At=N(Ke);Ne(At,{get icon(){return ro},class:"w-3 h-3"});var zt=x(At);L(Ke),L(rt),z(Mt=>K(zt,` ${Mt??""}`),[()=>P.chat_inlineDiffItem_clickToScroll_label()]),cn(1,rt,()=>Ws,()=>({tier:"fast",y:0,scale:1})),cn(2,rt,()=>Bs,()=>({tier:"fast"})),w(Xe,rt)};M(St,Xe=>{Te()&&e(Fe)&&Xe(re)})}w(v,_e)},bt=v=>{var _e=No(),Qe=de(_e,!0);z(St=>K(Qe,St),[()=>P.chat_inlineDiffItem_noWorkspace_label()]),w(v,_e)};M(It,v=>{p?v(Ge):v(bt,-1)})}L(Le),on(Le,v=>m(qe,v),()=>e(qe)),z(v=>{wt=En(Le,1,"inline-diff-container relative",null,wt,{focused:e(Re)}),Ve(Le,"aria-label",v)},[()=>P.chat_inlineDiffItem_viewer_ariaLabel()]),sn("mouseenter",Le,ie),sn("mouseleave",Le,De),sn("wheel",Le,He),ln("focusin",Le,jt),ln("focusout",Le,qt),w(f,Le);var mn=fn(Lt);return c(),mn}Cr(["focusin","focusout"]);function Sr(f){return[f.stage,f.type,f.oldLineNumber??"",f.newLineNumber??"",f.content].join("\0")}function Do(f){let r=f.oldStart,l=f.newStart;return f.lines.map(a=>{const c={...a,oldLineNumber:a.oldLineNumber??a.oldNumber,newLineNumber:a.newLineNumber??a.newNumber};return c.oldLineNumber===void 0&&c.newLineNumber===void 0?a.type==="Context"?(c.oldLineNumber=r++,c.newLineNumber=l++):a.type==="Deletion"?c.oldLineNumber=r++:a.type==="Addition"&&(c.newLineNumber=l++):a.type==="Context"?(r=(c.oldLineNumber??r)+1,l=(c.newLineNumber??l)+1):a.type==="Deletion"?r=(c.oldLineNumber??r)+1:a.type==="Addition"&&(l=(c.newLineNumber??l)+1),c})}function zo(f,r){const l=f?f.split(`
|
|
1
|
+
var $s=Object.defineProperty;var Fs=(f,r,l)=>r in f?$s(f,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):f[r]=l;var q=(f,r,l)=>Fs(f,typeof r!="symbol"?r+"":r,l);import{t as dn,bo as y,bm as P,bw as un,bq as On,b as hn,bs as je}from"./Dws-34a7.js";import{ai as Cr,bs as gn,ca as Be,aD as e,bH as m,a5 as N,bA as L,b_ as z,aw as sn,aj as ln,W as w,bn as fn,bV as Y,aA as C,ay as ne,bS as x,bl as de,bO as K,aB as T,c9 as u,a7 as nt,br as tt,bj as sr,c5 as gt,c0 as Hn,a as Us,be as Tt,b$ as ft,bf as or}from"./3SdAC2_C.js";import{i as M}from"./DLCFUd4s.js";import{g as Pt,i as Ln,I as ir,e as ar}from"./C-zB-6G6.js";import{n as cn,l as Ws,c as Bs}from"./Bc1vJq_Z.js";import{f as En,s as Ve,g as lr}from"./BD9db4FR.js";import{b as on}from"./Dn334wJv.js";import{Jx as Me,eT as Vs,eK as Ks,eL as js,o$ as qs,nP as Vt,nT as cr,nS as In,eN as Gs,vG as Qs,vH as Xs,vJ as Ys,HA as Js,JC as Zs,rY as eo,eS as to}from"./4g_iHoQm.js";import{c as no}from"./Whej1Dge.js";import{F as Ne,a1 as ro,a8 as An,aw as dr,ax as ur,bS as so,aP as oo,cd as hr,bZ as gr,cq as fr}from"./CGYPBD6G.js";import{dH as io,bs as ao,X as lo,aO as mr,p as co}from"./SbTG0nwQ.js";import{L as pr}from"./CIaruUrd.js";import{C as an}from"./DypB-Dwi.js";import{b8 as kr,bN as uo,bT as ho}from"./CA8JHp72.js";import{q as $e,d as go,g as fo}from"./sOF-qTei.js";import"./D-rRuAXZ.js";import"./BPuz5cN_.js";/* empty css */import{T as Pr}from"./IIW6JGdD.js";import{g as Nn}from"./Da-Blgd9.js";import{A as mo}from"./BvbeTrka.js";import{f as ke}from"./BIGqOuh0.js";import{C as po}from"./BJgwBOBz.js";import{C as vo}from"./rXKOJqUt.js";import{s as vr}from"./BSWVBeG0.js";import{S as Dt}from"./jBG7W4tL.js";import{l as Rt}from"./B8HnjSSF.js";import{G as _r}from"./CR-JVxLD.js";import{P as _o}from"./CV2tdNDf.js";import{g as wo}from"./Clo7aK1n.js";import{a8 as bo,Y as So}from"./BHEogMS0.js";import{ap as xo}from"./OrN9D77d.js";import{N as wr}from"./DEDo4DeD.js";import{ae as yo,ad as Co,af as ko}from"./ZRNKCUqe.js";function br({scrollTop:f,scrollHeight:r,height:l,fitPerfectly:a=!1,fitPerfectlyOverscroll:c=0,overscrollSize:p}){const b=l+p*2,S=a?l+c*2:b;if(r=Math.max(r,S),b>=r||a){const G=Math.max(f-c,0),h=Math.min(f+S,r);return{top:G,bottom:Math.max(h,G)}}let A=f+l/2-b/2,F=A+b;return A<0&&(A=0),F>r&&(F=r),A=Math.floor(Math.max(A,0)),{top:A,bottom:Math.ceil(Math.max(Math.min(F,r),A))}}function Po(f,r){return f==null||r==null?f===r:f.top===r.top&&f.bottom===r.bottom}const Rr=1e3,Ro=Rr*4,Ho=[0,1e-6,.99999,1],Lo={overscrollSize:Rr,intersectionObserverMargin:Ro,resizeDebugging:!1};let rn=0,Io=-1;var Pe,Ao=(Pe=class{constructor(r){q(this,"__id",`virtualizer-${++Io}`);q(this,"config");q(this,"type","simple");q(this,"intersectionObserver");q(this,"scrollTop",0);q(this,"height",0);q(this,"scrollHeight",0);q(this,"windowSpecs",{top:0,bottom:0});q(this,"root");q(this,"contentContainer");q(this,"resizeObserver");q(this,"observers",new Map);q(this,"visibleInstances",new Map);q(this,"visibleInstancesDirty",!1);q(this,"instancesChanged",new Set);q(this,"reconcileQueue",new Set);q(this,"scrollDirty",!0);q(this,"heightDirty",!0);q(this,"scrollHeightDirty",!0);q(this,"renderedObservers",0);q(this,"connectQueue",new Map);q(this,"handleContainerResize",r=>{if(this.root==null)return;let l=!1;for(const a of r){const c=a.borderBoxSize[0].blockSize;this.root instanceof Document?c!==this.scrollHeight&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: content size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c)):a.target===this.root?c!==this.height&&(this.heightDirty=!0,l=!0):a.target===this.contentContainer&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: scroller size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c))}l&&$e(this.computeRenderRangeAndEmit)});q(this,"handleWindowResize",()=>{Pe.__STOP||window.innerHeight===this.height||(this.heightDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleWindowScroll",()=>{Pe.__STOP||this.root==null||!(this.root instanceof Document)||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleElementScroll",()=>{Pe.__STOP||this.root==null||this.root instanceof Document||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"computeRenderRangeAndEmit",()=>{if(Pe.__STOP)return;const r=this.heightDirty||this.scrollHeightDirty;let l=this.instancesChanged.size>0;if(this.instancesChanged.size===0){const p=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize});if(!r&&Po(this.windowSpecs,p)&&this.renderedObservers===this.observers.size&&!this.visibleInstancesDirty&&this.reconcileQueue.size===0)return;this.windowSpecs=p}this.visibleInstancesDirty=!1,this.renderedObservers=this.observers.size;const a=this.getScrollAnchor(this.height),c=new Set;for(const p of r?this.observers.values():this.visibleInstances.values())p.onRender(r)&&c.add(p);for(const p of this.instancesChanged)c.has(p)||p.onRender(r)&&c.add(p);this.scrollFix(a);for(const p of c)this.reconcileQueue.delete(p),p.reconcileHeights();for(const p of this.reconcileQueue)p.reconcileHeights()&&(l=!0);this.reconcileQueue.clear(),l||=this.instancesChanged.size>0,l&&this.markDOMDirty(),(l||r)&&$e(this.computeRenderRangeAndEmit),c.clear(),this.instancesChanged.clear()});q(this,"handleIntersectionChange",r=>{this.scrollDirty=!0;for(const{target:l,isIntersecting:a}of r){if(!(l instanceof HTMLElement))throw new Error("Virtualizer.handleIntersectionChange: target not an HTMLElement");const c=this.observers.get(l);c!=null&&(a&&!this.visibleInstances.has(l)?(c.setVisibility(!0),this.visibleInstances.set(l,c),this.visibleInstancesDirty=!0):!a&&this.visibleInstances.has(l)&&(c.setVisibility(!1),this.visibleInstances.delete(l),this.visibleInstancesDirty=!0))}this.visibleInstancesDirty&&$e(this.computeRenderRangeAndEmit)});this.config={...Lo,...r}}setup(r,l){if(this.root==null){this.root=r,this.resizeObserver=new ResizeObserver(this.handleContainerResize),this.intersectionObserver=new IntersectionObserver(this.handleIntersectionChange,{root:this.root,threshold:Ho,rootMargin:`${this.config.intersectionObserverMargin}px 0px ${this.config.intersectionObserverMargin}px 0px`}),r instanceof Document?this.setupWindow():this.setupElement(l),window.__INSTANCE=this,window.__TOGGLE=()=>{Pe.__STOP?(Pe.__STOP=!1,(this.getScrollContainerElement()??window).scrollTo({top:Pe.__lastScrollPosition}),$e(this.computeRenderRangeAndEmit)):(Pe.__lastScrollPosition=this.getScrollTop(),Pe.__STOP=!0)};for(const[a,c]of this.connectQueue.entries())this.connect(a,c);this.connectQueue.clear(),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}}instanceChanged(r,l){this.instancesChanged.add(r),l&&this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}requestHeightReconcile(r){this.reconcileQueue.add(r),$e(this.computeRenderRangeAndEmit)}getWindowSpecs(){return this.windowSpecs.top===0&&this.windowSpecs.bottom===0&&(this.windowSpecs=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize})),this.windowSpecs}getRoot(){return this.root}isInstanceVisible(r,l){const a=this.getScrollTop(),c=this.getHeight(),p=this.config.intersectionObserverMargin,b=a-p,S=a+c+p;return!(r<b-l||r>S)}setupWindow(){if(this.root==null||!(this.root instanceof Document))throw new Error("Virtualizer.setupWindow: Invalid setup method");window.addEventListener("scroll",this.handleWindowScroll,{passive:!0}),window.addEventListener("resize",this.handleWindowResize,{passive:!0}),this.resizeObserver?.observe(this.root.documentElement)}setupElement(r){if(this.root==null||this.root instanceof Document)throw new Error("Virtualizer.setupElement: Invalid setup method");this.root.addEventListener("scroll",this.handleElementScroll,{passive:!0}),this.resizeObserver?.observe(this.root),r??=this.root.firstElementChild??void 0,r instanceof HTMLElement&&(this.contentContainer=r,this.resizeObserver?.observe(r))}cleanUp(){go(this.computeRenderRangeAndEmit),this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0,this.root?.removeEventListener("scroll",this.handleElementScroll),window.removeEventListener("scroll",this.handleWindowScroll),window.removeEventListener("resize",this.handleWindowResize),this.root=void 0,this.contentContainer=void 0,this.observers.clear(),this.visibleInstances.clear(),this.instancesChanged.clear(),this.reconcileQueue.clear(),this.connectQueue.clear(),this.visibleInstancesDirty=!1,this.windowSpecs={top:0,bottom:0},this.scrollTop=0,this.height=0,this.scrollHeight=0,this.scrollDirty=!0,this.heightDirty=!0,this.scrollHeightDirty=!0}getOffsetInScrollContainer(r){return this.getScrollTop()+Kt(r,this.getScrollContainerElement())}connect(r,l){if(this.observers.has(r))throw new Error("Virtualizer.connect: instance is already connected...");return this.intersectionObserver==null?this.connectQueue.set(r,l):(this.intersectionObserver.observe(r),this.observers.set(r,l),this.instancesChanged.add(l),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)),()=>this.disconnect(r)}disconnect(r){const l=this.observers.get(r);this.connectQueue.delete(r),l!=null&&(this.intersectionObserver?.unobserve(r),this.observers.delete(r),this.instancesChanged.delete(l),this.reconcileQueue.delete(l),this.visibleInstances.delete(r)&&(this.visibleInstancesDirty=!0),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit))}scrollFix(r){if(r==null)return;const l=this.getScrollContainerElement(),{lineIndex:a,lineOffset:c,fileElement:p,fileOffset:b,fileTypeOffset:S}=r;if(a!=null&&c!=null){const F=p.shadowRoot?.querySelector(`[data-line][data-line-index="${a}"]`);if(F instanceof HTMLElement){const G=Kt(F,l);if(G!==c){const h=G-c;this.applyScrollFix(h)}return}}const A=Kt(p,l);if(S==="top")A!==b&&this.applyScrollFix(A-b);else{const F=A+p.getBoundingClientRect().height;F!==b&&this.applyScrollFix(F-b)}}applyScrollFix(r){this.root==null||this.root instanceof Document?window.scrollTo({top:window.scrollY+r,behavior:"instant"}):this.root.scrollTo({top:this.root.scrollTop+r,behavior:"instant"}),this.markDOMDirty()}getScrollAnchor(r){const l=this.getScrollContainerElement();let a;for(const[c]of this.visibleInstances.entries()){const p=Kt(c,l),b=p+c.offsetHeight;let S,A;b<=0?(S=b,A="bottom"):(S=p,A="top");let F,G;if(b>0&&p<r)for(const oe of c.shadowRoot?.querySelectorAll("[data-line][data-line-index]")??[]){if(!(oe instanceof HTMLElement))continue;const Te=oe.dataset.lineIndex;if(Te==null)continue;const ue=Kt(oe,l);if(!(ue<0)){F=Te,G=ue;break}}if(a?.lineOffset!=null&&G==null)continue;let h=!1;(a==null||G!=null&&(a.lineOffset==null||G<a.lineOffset)||G==null&&a.lineOffset==null&&(S>=0&&(a.fileOffset<0||S<a.fileOffset)||S<0&&a.fileOffset<0&&S>a.fileOffset))&&(h=!0),h&&(a={fileElement:c,fileTypeOffset:A,fileOffset:S,lineIndex:F,lineOffset:G})}return a}getScrollTop(){if(!this.scrollDirty)return this.scrollTop;this.scrollDirty=!1;let r=this.root==null?0:this.root instanceof Document?window.scrollY:this.root.scrollTop;return r=this.clampScrollTop(r),this.scrollTop=r,r}scrollTo({top:r,behavior:l="auto"}){const{root:a}=this;if(a==null)return;const c=this.clampScrollTop(r);a instanceof Document?window.scrollTo({top:c,behavior:l}):a.scrollTo({top:c,behavior:l}),this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit)}clampScrollTop(r){return Math.max(0,Math.min(r,this.getScrollHeight()-this.getHeight()))}getScrollHeight(){return this.scrollHeightDirty?(this.scrollHeightDirty=!1,this.scrollHeight=this.root==null?0:this.root instanceof Document?this.root.documentElement.scrollHeight:this.root.scrollHeight,this.scrollHeight):this.scrollHeight}getHeight(){return this.heightDirty?(this.heightDirty=!1,this.height=this.root==null?0:this.root instanceof Document?globalThis.innerHeight:this.root.getBoundingClientRect().height,this.height):this.height}markDOMDirty(){this.scrollDirty=!0,this.scrollHeightDirty=!0,this.heightDirty=!0}getScrollContainerElement(){return this.root==null||this.root instanceof Document?void 0:this.root}},q(Pe,"__STOP",!1),q(Pe,"__lastScrollPosition",0),Pe);function Kt(f,r){const l=f.getBoundingClientRect(),a=r?.getBoundingClientRect().top??0;return l.top-a}var Eo=T('<div class="absolute inset-0 flex items-center justify-center rounded-lg bg-background/60 backdrop-blur-[2px] transition-opacity duration-spring-moderate ease-spring-moderate motion-reduce:transition-none z-10 pointer-events-none"><div class="flex items-center gap-2 rounded-lg border border-border bg-card px-3 py-2 text-xs font-medium text-subtle shadow-lg"><!> </div></div>'),Oo=T("<!> <!>",1),No=T('<div class="flex h-24 items-center justify-start text-left text-subtle"> </div>'),To=T('<div role="region"><!></div>');function Hr(f,r){if(new.target)return dn({component:Hr,...f});gn(r,!0);const l=()=>je(ve,"$sideBySide",a),[a,c]=On(),p=Nn()?.workspaceId??void 0;let b=y(r,"change",7),S=y(r,"foldUnchanged",7,!0),A=y(r,"allowHeadReads",7,!0),F=y(r,"canReadHeadFiles",7),G=y(r,"lineWrapping",7,!1),h=y(r,"scrollToLine",7),oe=y(r,"isAggregate",7,!1),Te=y(r,"showScrollHint",7,!1),ue=y(r,"onStageHunk",7),Q=y(r,"onUnstageHunk",7),at=y(r,"onOpenCommit",7),pt=y(r,"virtualizer",7),vt=y(r,"gitRootId",7,void 0),_t=y(r,"gitRootPath",7,void 0);const ve=kr();let Re=Y(!1),Se=Y(!1),Fe=Y(!1),Ue=Y(0),qe=Y(void 0);const $=80;function ie(){m(Se,!0)}function De(){m(Se,!1),m(Fe,!1),m(Ue,0)}function He(v){!e(Se)||e(Re)||(m(Ue,e(Ue)+Math.abs(v.deltaY)),e(Ue)>=$&&!e(Fe)&&m(Fe,!0))}function jt(){m(Re,!0),m(Fe,!1),m(Ue,0)}function qt(v){e(qe)&&!e(qe).contains(v.relatedTarget)&&m(Re,!1)}Be(()=>{(e(Re)||!e(Se))&&(m(Fe,!1),m(Ue,0))});let Ht=u(()=>{const{toolCallId:v,filePath:_e,additions:Qe,deletions:St,oldContent:re,newContent:Xe}=b(),rt="staged"in b()&&b().staged===!0,Ke="category"in b()?b().category:void 0,At="commitHash"in b()?b().commitHash:void 0,zt="gitlink"in b()?b().gitlink:void 0,Mt="isFullFileContent"in b()?b().isFullFileContent:!1;let xt;return Ke==="committed"?xt=an.Committed:rt?xt=an.Staged:xt=an.Unstaged,{id:v,file:_e,relativePath:_e,stage:xt,commitHash:At,gitlink:zt,stats:{additions:Qe,deletions:St},attribution:{timestamp:0},content:re!==void 0||Xe!==void 0?{oldContent:re??"",newContent:Xe??"",isFullFileContent:Mt}:void 0}});const D=u(()=>b().isFullFileContent?1:("chunks"in b()?b().chunks?.[0]?.newStart:void 0)??b().startLineNumber??1);var Lt={get change(){return b()},set change(v){b(v),C()},get foldUnchanged(){return S()},set foldUnchanged(v=!0){S(v),C()},get allowHeadReads(){return A()},set allowHeadReads(v=!0){A(v),C()},get canReadHeadFiles(){return F()},set canReadHeadFiles(v){F(v),C()},get lineWrapping(){return G()},set lineWrapping(v=!1){G(v),C()},get scrollToLine(){return h()},set scrollToLine(v){h(v),C()},get isAggregate(){return oe()},set isAggregate(v=!1){oe(v),C()},get showScrollHint(){return Te()},set showScrollHint(v=!1){Te(v),C()},get onStageHunk(){return ue()},set onStageHunk(v){ue(v),C()},get onUnstageHunk(){return Q()},set onUnstageHunk(v){Q(v),C()},get onOpenCommit(){return at()},set onOpenCommit(v){at(v),C()},get virtualizer(){return pt()},set virtualizer(v){pt(v),C()},get gitRootId(){return vt()},set gitRootId(v=void 0){vt(v),C()},get gitRootPath(){return _t()},set gitRootPath(v=void 0){_t(v),C()},$set:un,$on:(v,_e)=>hn(r,v,_e)},Le=To();let wt;var It=N(Le);{var Ge=v=>{var _e=Oo(),Qe=ne(_e);{let Xe=u(()=>l()?"split":"unified");Pr(Qe,{get change(){return e(Ht)},get workspaceId(){return p},get viewMode(){return e(Xe)},get foldUnchanged(){return S()},get lineWrapping(){return G()},get onStageHunk(){return ue()},get onUnstageHunk(){return Q()},useProvidedContent:!0,get allowHeadReads(){return A()},get canReadHeadFiles(){return F()},get lineOffset(){return e(D)},get virtualizer(){return pt()},get gitRootId(){return vt()},get gitRootPath(){return _t()}})}var St=x(Qe,2);{var re=Xe=>{var rt=Eo(),Ke=N(rt),At=N(Ke);Ne(At,{get icon(){return ro},class:"w-3 h-3"});var zt=x(At);L(Ke),L(rt),z(Mt=>K(zt,` ${Mt??""}`),[()=>P.chat_inlineDiffItem_clickToScroll_label()]),cn(1,rt,()=>Ws,()=>({tier:"fast",y:0,scale:1})),cn(2,rt,()=>Bs,()=>({tier:"fast"})),w(Xe,rt)};M(St,Xe=>{Te()&&e(Fe)&&Xe(re)})}w(v,_e)},bt=v=>{var _e=No(),Qe=de(_e,!0);z(St=>K(Qe,St),[()=>P.chat_inlineDiffItem_noWorkspace_label()]),w(v,_e)};M(It,v=>{p?v(Ge):v(bt,-1)})}L(Le),on(Le,v=>m(qe,v),()=>e(qe)),z(v=>{wt=En(Le,1,"inline-diff-container relative",null,wt,{focused:e(Re)}),Ve(Le,"aria-label",v)},[()=>P.chat_inlineDiffItem_viewer_ariaLabel()]),sn("mouseenter",Le,ie),sn("mouseleave",Le,De),sn("wheel",Le,He),ln("focusin",Le,jt),ln("focusout",Le,qt),w(f,Le);var mn=fn(Lt);return c(),mn}Cr(["focusin","focusout"]);function Sr(f){return[f.stage,f.type,f.oldLineNumber??"",f.newLineNumber??"",f.content].join("\0")}function Do(f){let r=f.oldStart,l=f.newStart;return f.lines.map(a=>{const c={...a,oldLineNumber:a.oldLineNumber??a.oldNumber,newLineNumber:a.newLineNumber??a.newNumber};return c.oldLineNumber===void 0&&c.newLineNumber===void 0?a.type==="Context"?(c.oldLineNumber=r++,c.newLineNumber=l++):a.type==="Deletion"?c.oldLineNumber=r++:a.type==="Addition"&&(c.newLineNumber=l++):a.type==="Context"?(r=(c.oldLineNumber??r)+1,l=(c.newLineNumber??l)+1):a.type==="Deletion"?r=(c.oldLineNumber??r)+1:a.type==="Addition"&&(l=(c.newLineNumber??l)+1),c})}function zo(f,r){const l=f?f.split(`
|
|
2
2
|
`):[],a=r?r.split(`
|
|
3
3
|
`):[];if(l.length===0&&a.length===0)return[];const c=[];for(const p of l)c.push({type:"Deletion",content:p});for(const p of a)c.push({type:"Addition",content:p});return[{oldStart:1,oldLines:l.length,newStart:1,newLines:a.length,lines:c}]}function Mo(f){if(!f||f.length===0)return[];const r=[];for(const a of f){let c=a.change.chunks||[];c.length===0&&(a.change.oldContent!=null||a.change.newContent!=null)&&(c=zo(a.change.oldContent??"",a.change.newContent??"")),c.forEach((p,b)=>{r.push({hunk:p,stage:a.category,part:a,hunkIndex:b})})}if(r.length===0)return[];r.sort((a,c)=>a.hunk.newStart-c.hunk.newStart);const l=[];for(const{hunk:a,stage:c,hunkIndex:p}of r){const S=Do(a).map(A=>({type:A.type,content:A.content,oldLineNumber:A.oldLineNumber,newLineNumber:A.newLineNumber,stage:c,hunkIndex:p}));l.push({headStart:a.oldStart,headLines:a.oldLines,wtStart:a.newStart,wtLines:a.newLines,lines:S,stages:new Set([c])})}return $o(l)}function $o(f){if(f.length<=1)return f;const r=[];let l=f[0];for(let a=1;a<f.length;a++){const c=f[a],p=l.wtStart+l.wtLines;c.wtStart<=p+3?l=Fo(l,c):(r.push(l),l=c)}return r.push(l),r}function Fo(f,r){const l=new Map,a=new Map,c=new Set;for(const h of f.lines)c.add(Sr(h)),h.newLineNumber!==void 0&&l.set(h.newLineNumber,h),h.oldLineNumber!==void 0&&h.type!=="Addition"&&a.set(h.oldLineNumber,h);const p=[...f.lines];for(const h of r.lines){const oe=Sr(h);if(!c.has(oe)){if(h.type==="Context"){const Te=h.newLineNumber!==void 0?l.get(h.newLineNumber):void 0,ue=h.oldLineNumber!==void 0?a.get(h.oldLineNumber):void 0;if(Te?.type==="Context"||ue?.type==="Context"){c.add(oe);continue}}p.push(h),c.add(oe),h.newLineNumber!==void 0&&l.set(h.newLineNumber,h),h.oldLineNumber!==void 0&&h.type!=="Addition"&&a.set(h.oldLineNumber,h)}}p.sort((h,oe)=>{const Te=h.newLineNumber??h.oldLineNumber??0,ue=oe.newLineNumber??oe.oldLineNumber??0;return Te-ue});const b=new Set([...f.stages,...r.stages]),S=Math.min(f.headStart,r.headStart),A=Math.min(f.wtStart,r.wtStart),F=Math.max(f.headStart+f.headLines,r.headStart+r.headLines),G=Math.max(f.wtStart+f.wtLines,r.wtStart+r.wtLines);return{headStart:S,headLines:F-S,wtStart:A,wtLines:G-A,lines:p,stages:b}}function Uo(f){const r=[],l=[];let a=f[0]?.headStart??1,c=f[0]?.wtStart??1;const p=(b,S,A)=>{let F=S;for(;F<A;)b.push(""),F++;return F};for(const b of f){a=p(r,a,b.headStart),c=p(l,c,b.wtStart);for(const S of b.lines)S.type==="Context"?(S.oldLineNumber!==void 0&&(a=p(r,a,S.oldLineNumber)),S.newLineNumber!==void 0&&(c=p(l,c,S.newLineNumber)),r.push(S.content),l.push(S.content),a++,c++):S.type==="Deletion"?(S.oldLineNumber!==void 0&&(a=p(r,a,S.oldLineNumber)),r.push(S.content),a++):S.type==="Addition"&&(S.newLineNumber!==void 0&&(c=p(l,c,S.newLineNumber)),l.push(S.content),c++)}return{oldContent:r.join(`
|
|
4
4
|
`),newContent:l.join(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as D}from"./
|
|
1
|
+
import{c as D}from"./7OH6WUSt.js";import{H as d,d as l,e as u,F as c,g as h,S as m,h as p,c as w,f as _,C as R}from"./Dxfvrgme.js";import{D as H,a as b,b as y,R as T,i as U,j as x,t as M,k as j}from"./Dxfvrgme.js";import{l as t}from"./7y3Z0Q49.js";const I=120*1e3;class f{constructor(n){this._defaults=n,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>I&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=D({moduleId:"vs/language/html/htmlWorker",createWorker:()=>new Worker(new URL("/app/immutable/workers/html.worker-QVzu2jYR.js",import.meta.url),{type:"module"}),createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(r=>{e=r}).then(r=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(r=>e)}}class v extends R{constructor(n){super(n,[".",":","<",'"',"=","/"])}}function W(i){const n=new f(i),e=(...o)=>n.getLanguageServiceWorker(...o);let r=i.languageId;t.registerCompletionItemProvider(r,new v(e)),t.registerHoverProvider(r,new d(e)),t.registerDocumentHighlightProvider(r,new l(e)),t.registerLinkProvider(r,new u(e)),t.registerFoldingRangeProvider(r,new c(e)),t.registerDocumentSymbolProvider(r,new h(e)),t.registerSelectionRangeProvider(r,new m(e)),t.registerRenameProvider(r,new p(e)),r==="html"&&(t.registerDocumentFormattingEditProvider(r,new w(e)),t.registerDocumentRangeFormattingEditProvider(r,new _(e)))}function F(i){const n=[],e=[],r=new f(i);n.push(r);const o=(...s)=>r.getLanguageServiceWorker(...s);function P(){const{languageId:s,modeConfiguration:a}=i;k(e),a.completionItems&&e.push(t.registerCompletionItemProvider(s,new v(o))),a.hovers&&e.push(t.registerHoverProvider(s,new d(o))),a.documentHighlights&&e.push(t.registerDocumentHighlightProvider(s,new l(o))),a.links&&e.push(t.registerLinkProvider(s,new u(o))),a.documentSymbols&&e.push(t.registerDocumentSymbolProvider(s,new h(o))),a.rename&&e.push(t.registerRenameProvider(s,new p(o))),a.foldingRanges&&e.push(t.registerFoldingRangeProvider(s,new c(o))),a.selectionRanges&&e.push(t.registerSelectionRangeProvider(s,new m(o))),a.documentFormattingEdits&&e.push(t.registerDocumentFormattingEditProvider(s,new w(o))),a.documentRangeFormattingEdits&&e.push(t.registerDocumentRangeFormattingEditProvider(s,new _(o)))}return P(),n.push(g(e)),g(n)}function g(i){return{dispose:()=>k(i)}}function k(i){for(;i.length;)i.pop().dispose()}export{R as CompletionAdapter,H as DefinitionAdapter,b as DiagnosticsAdapter,y as DocumentColorAdapter,w as DocumentFormattingEditProvider,l as DocumentHighlightAdapter,u as DocumentLinkAdapter,_ as DocumentRangeFormattingEditProvider,h as DocumentSymbolAdapter,c as FoldingRangeAdapter,d as HoverAdapter,T as ReferenceAdapter,p as RenameAdapter,m as SelectionRangeAdapter,f as WorkerManager,U as fromPosition,x as fromRange,F as setupMode,W as setupMode1,M as toRange,j as toTextEdit};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aZ as Ae,U as ke,Y as ae,b0 as Fe,V as Pe,a_ as ve,b as o,X as Vt,ay as bt,aW as Lt,B as Ce,r as Le,O as V,aV as Ee,a6 as De}from"./
|
|
1
|
+
import{aZ as Ae,U as ke,Y as ae,b0 as Fe,V as Pe,a_ as ve,b as o,X as Vt,ay as bt,aW as Lt,B as Ce,r as Le,O as V,aV as Ee,a6 as De}from"./DxPvfI2H.js";import{l as ie}from"./BuPmvT2w.js";var Et=(function(){var t=o(function(Y,r,l,x){for(l=l||{},x=Y.length;x--;l[Y[x]]=r);return l},"o"),n=[1,3],f=[1,4],d=[1,5],h=[1,6],p=[1,7],y=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],_=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],a=[55,56,57],k=[2,36],u=[1,37],T=[1,36],q=[1,38],m=[1,35],b=[1,43],g=[1,41],A=[1,45],ht=[1,14],xt=[1,23],ft=[1,18],gt=[1,19],ct=[1,20],_t=[1,21],dt=[1,22],i=[1,24],zt=[1,25],It=[1,26],wt=[1,27],Bt=[1,28],Rt=[1,29],U=[1,32],Q=[1,33],F=[1,34],P=[1,39],v=[1,40],C=[1,42],L=[1,44],X=[1,63],H=[1,62],E=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],Nt=[1,66],Wt=[1,67],Ut=[1,68],Qt=[1,69],Ot=[1,70],Xt=[1,71],Ht=[1,72],Mt=[1,73],Yt=[1,74],jt=[1,75],Gt=[1,76],Kt=[1,77],w=[4,5,6,7,8,9,10,11,12,13,14,15,18],K=[1,91],Z=[1,92],J=[1,93],$=[1,100],tt=[1,94],et=[1,97],it=[1,95],at=[1,96],nt=[1,98],st=[1,99],At=[1,103],Zt=[10,55,56,57],N=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],kt={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:o(function(r,l,x,c,S,e,ut){var s=e.length-1;switch(S){case 23:this.$=e[s];break;case 24:this.$=e[s-1]+""+e[s];break;case 26:this.$=e[s-1]+e[s];break;case 27:this.$=[e[s].trim()];break;case 28:e[s-2].push(e[s].trim()),this.$=e[s-2];break;case 29:this.$=e[s-4],c.addClass(e[s-2],e[s]);break;case 37:this.$=[];break;case 42:this.$=e[s].trim(),c.setDiagramTitle(this.$);break;case 43:this.$=e[s].trim(),c.setAccTitle(this.$);break;case 44:case 45:this.$=e[s].trim(),c.setAccDescription(this.$);break;case 46:c.addSection(e[s].substr(8)),this.$=e[s].substr(8);break;case 47:c.addPoint(e[s-3],"",e[s-1],e[s],[]);break;case 48:c.addPoint(e[s-4],e[s-3],e[s-1],e[s],[]);break;case 49:c.addPoint(e[s-4],"",e[s-2],e[s-1],e[s]);break;case 50:c.addPoint(e[s-5],e[s-4],e[s-2],e[s-1],e[s]);break;case 51:c.setXAxisLeftText(e[s-2]),c.setXAxisRightText(e[s]);break;case 52:e[s-1].text+=" ⟶ ",c.setXAxisLeftText(e[s-1]);break;case 53:c.setXAxisLeftText(e[s]);break;case 54:c.setYAxisBottomText(e[s-2]),c.setYAxisTopText(e[s]);break;case 55:e[s-1].text+=" ⟶ ",c.setYAxisBottomText(e[s-1]);break;case 56:c.setYAxisBottomText(e[s]);break;case 57:c.setQuadrant1Text(e[s]);break;case 58:c.setQuadrant2Text(e[s]);break;case 59:c.setQuadrant3Text(e[s]);break;case 60:c.setQuadrant4Text(e[s]);break;case 64:this.$={text:e[s],type:"text"};break;case 65:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 66:this.$={text:e[s],type:"text"};break;case 67:this.$={text:e[s],type:"markdown"};break;case 68:this.$=e[s];break;case 69:this.$=e[s-1]+""+e[s];break}},"anonymous"),table:[{18:n,26:1,27:2,28:f,55:d,56:h,57:p},{1:[3]},{18:n,26:8,27:2,28:f,55:d,56:h,57:p},{18:n,26:9,27:2,28:f,55:d,56:h,57:p},t(y,[2,33],{29:10}),t(_,[2,61]),t(_,[2,62]),t(_,[2,63]),{1:[2,30]},{1:[2,31]},t(a,k,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:u,5:T,10:q,12:m,13:b,14:g,15:A,18:ht,25:xt,35:ft,37:gt,39:ct,41:_t,42:dt,48:i,50:zt,51:It,52:wt,53:Bt,54:Rt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(y,[2,34]),{27:46,55:d,56:h,57:p},t(a,[2,37]),t(a,k,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:u,5:T,10:q,12:m,13:b,14:g,15:A,18:ht,25:xt,35:ft,37:gt,39:ct,41:_t,42:dt,48:i,50:zt,51:It,52:wt,53:Bt,54:Rt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(a,[2,39]),t(a,[2,40]),t(a,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(a,[2,45]),t(a,[2,46]),{18:[1,51]},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:52,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:53,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:54,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:55,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:56,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:57,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,44:[1,58],47:[1,59],58:61,59:60,63:F,64:P,65:v,66:C,67:L},t(E,[2,64]),t(E,[2,66]),t(E,[2,67]),t(E,[2,70]),t(E,[2,71]),t(E,[2,72]),t(E,[2,73]),t(E,[2,74]),t(E,[2,75]),t(E,[2,76]),t(E,[2,77]),t(E,[2,78]),t(E,[2,79]),t(E,[2,80]),t(E,[2,81]),t(y,[2,35]),t(a,[2,38]),t(a,[2,42]),t(a,[2,43]),t(a,[2,44]),{3:65,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Xt,10:Ht,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,21:64},t(a,[2,53],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,49:[1,78],63:F,64:P,65:v,66:C,67:L}),t(a,[2,56],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,49:[1,79],63:F,64:P,65:v,66:C,67:L}),t(a,[2,57],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,58],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,59],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,60],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),{45:[1,80]},{44:[1,81]},t(E,[2,65]),t(E,[2,82]),t(E,[2,83]),t(E,[2,84]),{3:83,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Xt,10:Ht,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,18:[1,82]},t(w,[2,23]),t(w,[2,1]),t(w,[2,2]),t(w,[2,3]),t(w,[2,4]),t(w,[2,5]),t(w,[2,6]),t(w,[2,7]),t(w,[2,8]),t(w,[2,9]),t(w,[2,10]),t(w,[2,11]),t(w,[2,12]),t(a,[2,52],{58:31,43:84,4:u,5:T,10:q,12:m,13:b,14:g,15:A,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(a,[2,55],{58:31,43:85,4:u,5:T,10:q,12:m,13:b,14:g,15:A,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),{46:[1,86]},{45:[1,87]},{4:K,5:Z,6:J,8:$,11:tt,13:et,16:90,17:it,18:at,19:nt,20:st,22:89,23:88},t(w,[2,24]),t(a,[2,51],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,54],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,47],{22:89,16:90,23:101,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),{46:[1,102]},t(a,[2,29],{10:At}),t(Zt,[2,27],{16:104,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),t(N,[2,25]),t(N,[2,13]),t(N,[2,14]),t(N,[2,15]),t(N,[2,16]),t(N,[2,17]),t(N,[2,18]),t(N,[2,19]),t(N,[2,20]),t(N,[2,21]),t(N,[2,22]),t(a,[2,49],{10:At}),t(a,[2,48],{22:89,16:90,23:105,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),{4:K,5:Z,6:J,8:$,11:tt,13:et,16:90,17:it,18:at,19:nt,20:st,22:106},t(N,[2,26]),t(a,[2,50],{10:At}),t(Zt,[2,28],{16:104,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st})],defaultActions:{8:[2,30],9:[2,31]},parseError:o(function(r,l){if(l.recoverable)this.trace(r);else{var x=new Error(r);throw x.hash=l,x}},"parseError"),parse:o(function(r){var l=this,x=[0],c=[],S=[null],e=[],ut=this.table,s="",yt=0,Jt=0,me=2,$t=1,be=e.slice.call(arguments,1),D=Object.create(this.lexer),j={yy:{}};for(var Ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ft)&&(j.yy[Ft]=this.yy[Ft]);D.setInput(r,j.yy),j.yy.lexer=D,j.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Pt=D.yylloc;e.push(Pt);var Se=D.options&&D.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _e(R){x.length=x.length-2*R,S.length=S.length-R,e.length=e.length-R}o(_e,"popStack");function te(){var R;return R=c.pop()||D.lex()||$t,typeof R!="number"&&(R instanceof Array&&(c=R,R=c.pop()),R=l.symbols_[R]||R),R}o(te,"lex");for(var B,G,W,vt,rt={},Tt,M,ee,qt;;){if(G=x[x.length-1],this.defaultActions[G]?W=this.defaultActions[G]:((B===null||typeof B>"u")&&(B=te()),W=ut[G]&&ut[G][B]),typeof W>"u"||!W.length||!W[0]){var Ct="";qt=[];for(Tt in ut[G])this.terminals_[Tt]&&Tt>me&&qt.push("'"+this.terminals_[Tt]+"'");D.showPosition?Ct="Parse error on line "+(yt+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+qt.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Ct="Parse error on line "+(yt+1)+": Unexpected "+(B==$t?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Ct,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:Pt,expected:qt})}if(W[0]instanceof Array&&W.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+B);switch(W[0]){case 1:x.push(B),S.push(D.yytext),e.push(D.yylloc),x.push(W[1]),B=null,Jt=D.yyleng,s=D.yytext,yt=D.yylineno,Pt=D.yylloc;break;case 2:if(M=this.productions_[W[1]][1],rt.$=S[S.length-M],rt._$={first_line:e[e.length-(M||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(M||1)].first_column,last_column:e[e.length-1].last_column},Se&&(rt._$.range=[e[e.length-(M||1)].range[0],e[e.length-1].range[1]]),vt=this.performAction.apply(rt,[s,Jt,yt,j.yy,W[1],S,e].concat(be)),typeof vt<"u")return vt;M&&(x=x.slice(0,-1*M*2),S=S.slice(0,-1*M),e=e.slice(0,-1*M)),x.push(this.productions_[W[1]][0]),S.push(rt.$),e.push(rt._$),ee=ut[x[x.length-2]][x[x.length-1]],x.push(ee);break;case 3:return!0}}return!0},"parse")},qe=(function(){var Y={EOF:1,parseError:o(function(l,x){if(this.yy.parser)this.yy.parser.parseError(l,x);else throw new Error(l)},"parseError"),setInput:o(function(r,l){return this.yy=l||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:o(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.match(/(?:\r\n?|\n).*/g);return l?(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:o(function(r){var l=r.length,x=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var c=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),x.length-1&&(this.yylineno-=x.length-1);var S=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:x?(x.length===c.length?this.yylloc.first_column:0)+c[c.length-x.length].length-x[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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:o(function(r){this.unput(this.match.slice(r))},"less"),pastInput:o(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:o(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:o(function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{l as c}from"./
|
|
1
|
+
import{l as c}from"./7y3Z0Q49.js";const s=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],d=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],a={close:">",id:"angle",open:"<"},r={close:"\\]",id:"bracket",open:"\\["},F={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:`
|
|
2
2
|
\r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${t.open}#(?:${d.join("|")})([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),end:new RegExp(`${t.open}/#(?:${d.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${t.open}#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),afterText:new RegExp(`^${t.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${t.close}$`),action:{indentAction:c.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${t.open}#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),action:{indentAction:c.IndentAction.Indent}}]}}function g(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:`
|
|
3
3
|
\r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${d.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${d.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:c.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:c.IndentAction.Indent}}]}}function _(t,n){const i=`_${t.id}_${n.id}`,e=u=>u.replace(/__id__/g,i),o=u=>{const m=u.source.replace(/__id__/g,i);return new RegExp(m,u.flags)};return{unicode:!0,includeLF:!1,start:e("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[e("open__id__")]:new RegExp(t.open),[e("close__id__")]:new RegExp(t.close),[e("iOpen1__id__")]:new RegExp(n.open1),[e("iOpen2__id__")]:new RegExp(n.open2),[e("iClose__id__")]:new RegExp(n.close),[e("startTag__id__")]:o(/(@open__id__)(#)/),[e("endTag__id__")]:o(/(@open__id__)(\/#)/),[e("startOrEndTag__id__")]:o(/(@open__id__)(\/?#)/),[e("closeTag1__id__")]:o(/((?:@blank)*)(@close__id__)/),[e("closeTag2__id__")]:o(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/<=|>=|\\lte|\\lt|<|\\gte|\\gt|>|&&|\\and|->|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","->"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[e("default__id__")]:[{include:e("@directive_token__id__")},{include:e("@interpolation_and_text_token__id__")}],[e("fmExpression__id__.directive")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("fmExpression__id__.interpolation")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("inParen__id__.plain")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("inParen__id__.gt")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("noSpaceExpression__id__")]:[{include:e("@no_space_expression_end_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("unifiedCall__id__")]:[{include:e("@unified_call_token__id__")}],[e("singleString__id__")]:[{include:e("@string_single_token__id__")}],[e("doubleString__id__")]:[{include:e("@string_double_token__id__")}],[e("rawSingleString__id__")]:[{include:e("@string_single_raw_token__id__")}],[e("rawDoubleString__id__")]:[{include:e("@string_double_raw_token__id__")}],[e("expressionComment__id__")]:[{include:e("@expression_comment_token__id__")}],[e("noParse__id__")]:[{include:e("@no_parse_token__id__")}],[e("terseComment__id__")]:[{include:e("@terse_comment_token__id__")}],[e("directive_token__id__")]:[[o(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:e("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)(@)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:e("@unifiedCall__id__")}]],[o(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)#--/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:{token:"comment",next:e("@terseComment__id__")}],[o(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:e("@fmExpression__id__.directive")}]]],[e("interpolation_and_text_token__id__")]:[[o(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:n.id==="bracket"?"@brackets.interpolation":"delimiter.interpolation"},{token:n.id==="bracket"?"delimiter.interpolation":"@brackets.interpolation",next:e("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[e("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[e("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[e("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[e("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[e("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:e("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:e("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:e("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:e("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\]":{cases:{...n.id==="bracket"?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},...t.id==="bracket"?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:e("@inParen__id__.gt")},"\\)":{cases:{[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\}":{cases:{...n.id==="bracket"?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[e("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:e("@expressionComment__id__")}]],[e("directive_end_token__id__")]:[[/>/,t.id==="bracket"?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[o(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[e("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[e("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:e("@fmExpression__id__.directive")}]],[e("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:e("@noSpaceExpression__id__")}]],[e("no_parse_token__id__")]:[[o(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[e("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[e("terse_comment_token__id__")]:[[o(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function A(t){const n=_(a,t),i=_(r,t),e=_(F,t);return{...n,...i,...e,unicode:!0,includeLF:!1,start:`default_auto_${t.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...n.tokenizer,...i.tokenizer,...e.tokenizer}}}const b={conf:l(a),language:_(a,k)},x={conf:l(r),language:_(r,k)},$={conf:l(a),language:_(a,p)},E={conf:l(r),language:_(r,p)},B={conf:g(),language:A(k)},D={conf:g(),language:A(p)};export{$ as TagAngleInterpolationBracket,b as TagAngleInterpolationDollar,D as TagAutoInterpolationBracket,B as TagAutoInterpolationDollar,E as TagBracketInterpolationBracket,x as TagBracketInterpolationDollar};
|