@intent-hq/web 2.368.0 → 2.369.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/{LWpzAIb1.js → -QpfKAxD.js} +1 -1
- package/web/app/immutable/chunks/{CuGp4iiZ.js → -cLO88ax.js} +1 -1
- package/web/app/immutable/chunks/{Dv8qmtiG.js → 0NGflniG.js} +1 -1
- package/web/app/immutable/chunks/{D3-X6DuB.js → 0jRiL-di.js} +2 -2
- package/web/app/immutable/chunks/{DuH3Z8Tj.js → 3IxT-Mrl.js} +1 -1
- package/web/app/immutable/chunks/{WpDLfp8g.js → 3_UV1UgL.js} +1 -1
- package/web/app/immutable/chunks/{DV8MrQzP.js → 4pFiTcXi.js} +1 -1
- package/web/app/immutable/chunks/51_h0jm2.js +1 -0
- package/web/app/immutable/chunks/{D_4E2Vkl.js → 5E3JQYey.js} +1 -1
- package/web/app/immutable/chunks/{BqnLfjrK.js → 5NOp7PNZ.js} +1 -1
- package/web/app/immutable/chunks/{BM7pSBH1.js → 6GNWsakm.js} +1 -1
- package/web/app/immutable/chunks/{C-WGoO9q.js → 6i_wfV3v.js} +1 -1
- package/web/app/immutable/chunks/{DZs8iANO.js → 7Uk2VvOl.js} +1 -1
- package/web/app/immutable/chunks/{CX6lA3D1.js → 8TQkfju3.js} +1 -1
- package/web/app/immutable/chunks/{DSxt_T6i.js → 93RUSyHg.js} +1 -1
- package/web/app/immutable/chunks/{Dag-yjBl.js → 9wk-Hes5.js} +1 -1
- package/web/app/immutable/chunks/{H5EFGbef.js → AIQuxhpV.js} +1 -1
- package/web/app/immutable/chunks/{Ct-FgWRq.js → B0v5Qiob.js} +1 -1
- package/web/app/immutable/chunks/{qHf9sK0w.js → B2CG0f08.js} +1 -1
- package/web/app/immutable/chunks/{Cx_kU_DV.js → B3Zt92Gh.js} +1 -1
- package/web/app/immutable/chunks/{yKB3We_R.js → B3rtR-T9.js} +1 -1
- package/web/app/immutable/chunks/{CWlx9AQE.js → B5L5kFMu.js} +1 -1
- package/web/app/immutable/chunks/{ByCbrCKe.js → B5ht1e3g.js} +1 -1
- package/web/app/immutable/chunks/{DVE3gCYm.js → B6P0nIFd.js} +1 -1
- package/web/app/immutable/chunks/{BCr3FDPI.js → B9XvejAu.js} +1 -1
- package/web/app/immutable/chunks/{BRMZvcr_.js → BBRNc6Tk.js} +1 -1
- package/web/app/immutable/chunks/{BrzSX242.js → BCBNqT5t.js} +1 -1
- package/web/app/immutable/chunks/{BA1W84cz.js → BDbtK9be.js} +1 -1
- package/web/app/immutable/chunks/{B4XVQGzR.js → BE2y8JEQ.js} +1 -1
- package/web/app/immutable/chunks/{Dn9uXxwQ.js → BEjEPSxp.js} +1 -1
- package/web/app/immutable/chunks/{_Lq6xDqz.js → BEklUrxK.js} +1 -1
- package/web/app/immutable/chunks/{DdXuLwef.js → BGP1lrgu.js} +1 -1
- package/web/app/immutable/chunks/{DbTuLky4.js → BJPhI2lA.js} +1 -1
- package/web/app/immutable/chunks/{CVkfqdxF.js → BJTl-SyI.js} +1 -1
- package/web/app/immutable/chunks/{Bjdl3Bcn.js → BLzqYDED.js} +1 -1
- package/web/app/immutable/chunks/{3uTmxU9o.js → BQDGTBxC.js} +1 -1
- package/web/app/immutable/chunks/{C-Avcz-L.js → BQGSaBlM.js} +1 -1
- package/web/app/immutable/chunks/{BvM1EUuh.js → BR5vKj6f.js} +1 -1
- package/web/app/immutable/chunks/{ChB1u5oS.js → BR9s3igW.js} +1 -1
- package/web/app/immutable/chunks/{CL7J7j2D.js → BTIkMWVv.js} +1 -1
- package/web/app/immutable/chunks/{DwPVMoTd.js → BTYfh5fW.js} +1 -1
- package/web/app/immutable/chunks/{La7uvQeM.js → BUHAwVs7.js} +1 -1
- package/web/app/immutable/chunks/{OnFCkRZq.js → BUNNt_Jr.js} +1 -1
- package/web/app/immutable/chunks/{CYYIfm0c.js → BUtBz-tz.js} +1 -1
- package/web/app/immutable/chunks/BVUXyHGH.js +4 -0
- package/web/app/immutable/chunks/{DzoN41_6.js → BVVyDeyd.js} +1 -1
- package/web/app/immutable/chunks/{Dqg0f2LJ.js → BW6PhteS.js} +1 -1
- package/web/app/immutable/chunks/{C5lXC3sE.js → BW94gUhQ.js} +1 -1
- package/web/app/immutable/chunks/{-S-Y5qpw.js → BX9VoS92.js} +1 -1
- package/web/app/immutable/chunks/{DWo9ssuo.js → BXHaIh_f.js} +1 -1
- package/web/app/immutable/chunks/{BFg7EHUJ.js → BZpSGd8O.js} +1 -1
- package/web/app/immutable/chunks/{CdT83fDm.js → B_QtiZYt.js} +1 -1
- package/web/app/immutable/chunks/{C_xbtvYu.js → BbugAQ9t.js} +1 -1
- package/web/app/immutable/chunks/{DX7k4FhP.js → Bf02lG8Y.js} +1 -1
- package/web/app/immutable/chunks/{uz9wJ9h7.js → BgDYQZ_0.js} +1 -1
- package/web/app/immutable/chunks/{CgszRxao.js → BgJ-6yg0.js} +1 -1
- package/web/app/immutable/chunks/{BAZnizpv.js → BgLPrJ77.js} +1 -1
- package/web/app/immutable/chunks/{CJZrFy0z.js → BgVn7-pK.js} +1 -1
- package/web/app/immutable/chunks/{DdgRFvxI.js → Bi5_2qbB.js} +2 -2
- package/web/app/immutable/chunks/{BYQyF1EV.js → BipEZFvA.js} +1 -1
- package/web/app/immutable/chunks/{DEaLADF0.js → Bjy4ygfJ.js} +1 -1
- package/web/app/immutable/chunks/{C6baGIHW.js → BkrPhcBU.js} +1 -1
- package/web/app/immutable/chunks/{Bhf5PYkX.js → Bn5goMn4.js} +2 -2
- package/web/app/immutable/chunks/{CN68o0Xe.js → BnRltR11.js} +1 -1
- package/web/app/immutable/chunks/{4ZHcc7E6.js → BoAG71Ap.js} +1 -1
- package/web/app/immutable/chunks/{9uaxSDjR.js → BpKFGHfS.js} +1 -1
- package/web/app/immutable/chunks/{CVuIJUI6.js → Bq_CYpxm.js} +1 -1
- package/web/app/immutable/chunks/{BmBBmxeN.js → BqkCNgyL.js} +1 -1
- package/web/app/immutable/chunks/{qkupoeeB.js → Bs9TCQJX.js} +1 -1
- package/web/app/immutable/chunks/{Cg_iMZyA.js → BsE4jMhr.js} +1 -1
- package/web/app/immutable/chunks/{tKPL2CZA.js → BsKhFZ0Q.js} +1 -1
- package/web/app/immutable/chunks/{C7p6fkNW.js → BsjFeGOg.js} +1 -1
- package/web/app/immutable/chunks/{UdBW3xHf.js → BswUVSRu.js} +1 -1
- package/web/app/immutable/chunks/{sRuST45k.js → BuLzqNKd.js} +1 -1
- package/web/app/immutable/chunks/{DjtlNmSp.js → BuveYyQe.js} +1 -1
- package/web/app/immutable/chunks/{BIuwYO0J.js → BxOfEPjL.js} +1 -1
- package/web/app/immutable/chunks/BxTyo7yU.js +1 -0
- package/web/app/immutable/chunks/{Bpab3i1i.js → BxvIWx6J.js} +1 -1
- package/web/app/immutable/chunks/{CoC9Ux29.js → BxwkoIbZ.js} +1 -1
- package/web/app/immutable/chunks/{DehqEruM.js → ByCxDC-R.js} +1 -1
- package/web/app/immutable/chunks/{D3f6Bdno.js → ByfLGh4b.js} +1 -1
- package/web/app/immutable/chunks/{DVqASrmW.js → Bz9mgUtY.js} +1 -1
- package/web/app/immutable/chunks/{D3NQrju5.js → BzlXwMsq.js} +1 -1
- package/web/app/immutable/chunks/{CwpJKby0.js → C-dUgTvj.js} +1 -1
- package/web/app/immutable/chunks/{9L9c83oG.js → C0gEyGJV.js} +1 -1
- package/web/app/immutable/chunks/{CT1kjHng.js → C1FbWx7h.js} +1 -1
- package/web/app/immutable/chunks/{C-3HGS81.js → C1McR-sz.js} +1 -1
- package/web/app/immutable/chunks/{DH9Hqtuz.js → C2jA6pM8.js} +1 -1
- package/web/app/immutable/chunks/{DqvOMJZD.js → C3-0e__R.js} +1 -1
- package/web/app/immutable/chunks/{wlvXh-zp.js → C3CJZFT3.js} +1 -1
- package/web/app/immutable/chunks/{BFNcUqqi.js → C3SM2b7L.js} +2 -2
- package/web/app/immutable/chunks/{CrfRec8x.js → C3YB0zcV.js} +1 -1
- package/web/app/immutable/chunks/{BeSpo5mj.js → C5Tw8y-2.js} +1 -1
- package/web/app/immutable/chunks/{BS7XLnm3.js → C5rcw_c7.js} +1 -1
- package/web/app/immutable/chunks/{fu-5SwkC.js → C6vnD-WG.js} +1 -1
- package/web/app/immutable/chunks/{DzuDuJfn.js → C6yPb5D8.js} +1 -1
- package/web/app/immutable/chunks/{DtKQhjG0.js → C7H74phM.js} +1 -1
- package/web/app/immutable/chunks/{BpCl78z6.js → C7RXZVwZ.js} +3 -3
- package/web/app/immutable/chunks/{ag06q4LL.js → C9UsZ4re.js} +1 -1
- package/web/app/immutable/chunks/{C4IUEZO8.js → C9r0mVfa.js} +1 -1
- package/web/app/immutable/chunks/{BNXfTFgg.js → CASKMy_V.js} +1 -1
- package/web/app/immutable/chunks/{CddeEUaW.js → CC08YY4X.js} +2 -2
- package/web/app/immutable/chunks/{DMXV603W.js → CCYJSy4Y.js} +1 -1
- package/web/app/immutable/chunks/{ChcqjzlK.js → CDqnAH9U.js} +2 -2
- package/web/app/immutable/chunks/{BguHhtk8.js → CF1Tu_8c.js} +2 -2
- package/web/app/immutable/chunks/{DyTX_flC.js → CF2xUnmW.js} +1 -1
- package/web/app/immutable/chunks/{DTmuScj1.js → CFvGekuw.js} +1 -1
- package/web/app/immutable/chunks/{CgoEfH57.js → CFybzafc.js} +1 -1
- package/web/app/immutable/chunks/{CIg56hlz.js → CJCoBdox.js} +1 -1
- package/web/app/immutable/chunks/{B5xVgX0B.js → CJb9CQqu.js} +1 -1
- package/web/app/immutable/chunks/{DCaHyJVf.js → CJj_lU-4.js} +1 -1
- package/web/app/immutable/chunks/{mA-tbLJW.js → CLZkKjaI.js} +1 -1
- package/web/app/immutable/chunks/{Cl19iNDm.js → CLalkdxk.js} +1 -1
- package/web/app/immutable/chunks/{z7hpXipJ.js → CLg2G62j.js} +3 -3
- package/web/app/immutable/chunks/{Dbb9v9Pu.js → CMMep18j.js} +1 -1
- package/web/app/immutable/chunks/{ydU_XNBS.js → CMRXUPn9.js} +1 -1
- package/web/app/immutable/chunks/{Dkb27FfT.js → CMZHakZZ.js} +1 -1
- package/web/app/immutable/chunks/{BXFt_M3j.js → CMh2xRIF.js} +1 -1
- package/web/app/immutable/chunks/{a78XW9b7.js → CMqhKAKf.js} +1 -1
- package/web/app/immutable/chunks/{CB3yJRaj.js → CN-6Tr26.js} +1 -1
- package/web/app/immutable/chunks/{CIxVnrKO.js → CNAilJvj.js} +1 -1
- package/web/app/immutable/chunks/{XOY5jtOQ.js → COmDhl6S.js} +1 -1
- package/web/app/immutable/chunks/{BjNVk8U6.js → CQkTODWA.js} +1 -1
- package/web/app/immutable/chunks/{Q6h5kaDA.js → CQt5NIo9.js} +1 -1
- package/web/app/immutable/chunks/{DOgidnWF.js → CQw_RyF_.js} +1 -1
- package/web/app/immutable/chunks/{AnCzW8pd.js → CRJc1pCT.js} +1 -1
- package/web/app/immutable/chunks/{CJbKgJCP.js → CS3R6Yuh.js} +1 -1
- package/web/app/immutable/chunks/{C8EYdSF9.js → CSFyiYHp.js} +1 -1
- package/web/app/immutable/chunks/{CuaxAbnk.js → CV10cSI4.js} +1 -1
- package/web/app/immutable/chunks/{IOCQV0lc.js → CWc2lAUi.js} +1 -1
- package/web/app/immutable/chunks/{CD0f9RqX.js → CXXbDkir.js} +1 -1
- package/web/app/immutable/chunks/{DxC9rNFj.js → CYgFnKoL.js} +1 -1
- package/web/app/immutable/chunks/{BvvwHzHR.js → CZTVb5IB.js} +1 -1
- package/web/app/immutable/chunks/{DQKQnxx2.js → CZ_Dk1nz.js} +1 -1
- package/web/app/immutable/chunks/{Cdgpg8n7.js → C_qOm4aX.js} +49 -49
- package/web/app/immutable/chunks/{CLSuLceq.js → CatLGfTW.js} +1 -1
- package/web/app/immutable/chunks/{BSaMlrt7.js → Cc2FSrQK.js} +1 -1
- package/web/app/immutable/chunks/CcNIw4Px.js +1 -0
- package/web/app/immutable/chunks/{ClSKdYXV.js → Cdhrdfve.js} +1 -1
- package/web/app/immutable/chunks/{CszTaYPw.js → Cdw_CIdg.js} +1 -1
- package/web/app/immutable/chunks/{BfV-m33h.js → CeBDdapO.js} +1 -1
- package/web/app/immutable/chunks/{qN9kzcwL.js → CgXGPBF5.js} +1 -1
- package/web/app/immutable/chunks/{8xzOjoUV.js → CgeBiXYG.js} +1 -1
- package/web/app/immutable/chunks/{KJbU5Jwf.js → Ch30XVIS.js} +1 -1
- package/web/app/immutable/chunks/{DZtsu62T.js → CiyIhnuP.js} +3 -3
- package/web/app/immutable/chunks/{DDgv92vT.js → CjswKKTa.js} +1 -1
- package/web/app/immutable/chunks/{6gX3p-t6.js → Ck5xuk0H.js} +1 -1
- package/web/app/immutable/chunks/{CdO0EKIb.js → Ckp5O1pb.js} +1 -1
- package/web/app/immutable/chunks/{BG9eCPIt.js → Cl7NoY6M.js} +1 -1
- package/web/app/immutable/chunks/{DB4BdY3-.js → ClSUFCtq.js} +1 -1
- package/web/app/immutable/chunks/{DdswlFJs.js → Cmm2Uwq6.js} +1 -1
- package/web/app/immutable/chunks/{Bx5mj_-o.js → CnM1-KSC.js} +1 -1
- package/web/app/immutable/chunks/{LjCq2zYR.js → Cp81xhuN.js} +1 -1
- package/web/app/immutable/chunks/{C6Mf7wiS.js → CpL3Nqus.js} +1 -1
- package/web/app/immutable/chunks/{ysr2ZeEL.js → CpPNoOk-.js} +1 -1
- package/web/app/immutable/chunks/{CeVUwFpS.js → CqesqBNM.js} +1 -1
- package/web/app/immutable/chunks/{Bnfzeolk.js → Cs_DX3BC.js} +1 -1
- package/web/app/immutable/chunks/{DiyE6ez1.js → Cstrfm23.js} +4 -4
- package/web/app/immutable/chunks/{BG_ZjTnQ.js → Csxq8_TN.js} +1 -1
- package/web/app/immutable/chunks/{Bzw5kiqv.js → CtFSFfLz.js} +1 -1
- package/web/app/immutable/chunks/{cNJtArdZ.js → Ct_Zx4ru.js} +1 -1
- package/web/app/immutable/chunks/{BpmaKyHV.js → Cu0mADIg.js} +1 -1
- package/web/app/immutable/chunks/{fhbq8NBN.js → Cu91VTQn.js} +1 -1
- package/web/app/immutable/chunks/{BGhL-M7S.js → CuHlAB4d.js} +2 -2
- package/web/app/immutable/chunks/{DcyITQk4.js → CvC_PTf7.js} +1 -1
- package/web/app/immutable/chunks/{CHo30JVh.js → CxF8L5mw.js} +1 -1
- package/web/app/immutable/chunks/{XokPPDRt.js → CxVedbHg.js} +2 -2
- package/web/app/immutable/chunks/{aFmAoxnK.js → CxmJEenA.js} +1 -1
- package/web/app/immutable/chunks/{Da6oWcTC.js → D0Z6csIX.js} +1 -1
- package/web/app/immutable/chunks/{BBrZXpSP.js → D1FzC71c.js} +1 -1
- package/web/app/immutable/chunks/{CTrJXNY9.js → D1cY0pVs.js} +1 -1
- package/web/app/immutable/chunks/{C3o6TrCe.js → D1rvT9Od.js} +1 -1
- package/web/app/immutable/chunks/{BWCENrjZ.js → D3SYIfTl.js} +4 -4
- package/web/app/immutable/chunks/{BAua3HYa.js → D4q8ggLU.js} +2 -2
- package/web/app/immutable/chunks/{CPjshegW.js → D5sw7nR1.js} +1 -1
- package/web/app/immutable/chunks/{CAA5Pjlt.js → D8BdISor.js} +1 -1
- package/web/app/immutable/chunks/{UfQa_CM-.js → D9d8HfDB.js} +1 -1
- package/web/app/immutable/chunks/{BmZ-YX2h.js → DA4getmI.js} +1 -1
- package/web/app/immutable/chunks/{fh3WedHa.js → DCrqv4Go.js} +1 -1
- package/web/app/immutable/chunks/{CEODt5qB.js → DCv0ZqUq.js} +1 -1
- package/web/app/immutable/chunks/{my3EnaTa.js → DF0Pm5yp.js} +2 -2
- package/web/app/immutable/chunks/{B5t5yFV1.js → DGmOjLYi.js} +1 -1
- package/web/app/immutable/chunks/{BtNhR2qx.js → DKn1sQ32.js} +1 -1
- package/web/app/immutable/chunks/{CFUCukqN.js → DLEm9Cyg.js} +1 -1
- package/web/app/immutable/chunks/{uCE5nFj2.js → DMjF7NYG.js} +2 -2
- package/web/app/immutable/chunks/{BE8dgLGn.js → DNieQhK8.js} +3 -3
- package/web/app/immutable/chunks/{DPMWmOe5.js → DOi8NPXE.js} +1 -1
- package/web/app/immutable/chunks/{BU4XngZf.js → DPLuga0X.js} +3 -3
- package/web/app/immutable/chunks/{DwOsWxyQ.js → DPPtpHwn.js} +1 -1
- package/web/app/immutable/chunks/{DGt036ot.js → DQUvqa9o.js} +1 -1
- package/web/app/immutable/chunks/{Bo79geKp.js → DRLOB6Gw.js} +2 -2
- package/web/app/immutable/chunks/{prHJOEnU.js → DSQT151l.js} +1 -1
- package/web/app/immutable/chunks/{B3nJy--T.js → DUItrdZb.js} +1 -1
- package/web/app/immutable/chunks/{Bg5Fp4BA.js → DUctnn_k.js} +1 -1
- package/web/app/immutable/chunks/DVy6H5Ng.js +1 -0
- package/web/app/immutable/chunks/DW3gkA_F.js +1 -0
- package/web/app/immutable/chunks/{CDKjl22x.js → DWLnWMNZ.js} +1 -1
- package/web/app/immutable/chunks/{BWWmYtvo.js → DWjKA8Pm.js} +1 -1
- package/web/app/immutable/chunks/{nIerXkD8.js → DWsHBNeU.js} +1 -1
- package/web/app/immutable/chunks/{CW0tWbke.js → DYmzWBEk.js} +1 -1
- package/web/app/immutable/chunks/{Nbro-b-6.js → DZCGZjzG.js} +1 -1
- package/web/app/immutable/chunks/{DSBtJS15.js → DZTT1V6G.js} +1 -1
- package/web/app/immutable/chunks/{Cu63TBX_.js → D_MzuSit.js} +1 -1
- package/web/app/immutable/chunks/{CoxEQ1x9.js → DaXgwzm7.js} +1 -1
- package/web/app/immutable/chunks/{D-W7KYqw.js → Dbpb1w7S.js} +4 -4
- package/web/app/immutable/chunks/{Ce7ti2I7.js → DcmaumPg.js} +1 -1
- package/web/app/immutable/chunks/{CIasIl91.js → DcvxsgOZ.js} +1 -1
- package/web/app/immutable/chunks/{D5sOpT26.js → DdkBNH3W.js} +1 -1
- package/web/app/immutable/chunks/{v9gH-HNO.js → DdkDv5Sd.js} +1 -1
- package/web/app/immutable/chunks/{CXaxJbgG.js → DeVwq4Xj.js} +1 -1
- package/web/app/immutable/chunks/{DEJSVazL.js → Deg_SlHr.js} +2 -2
- package/web/app/immutable/chunks/{VvgtSbK2.js → DfSzfqox.js} +1 -1
- package/web/app/immutable/chunks/{DYOMUc5B.js → DlqetqWw.js} +1 -1
- package/web/app/immutable/chunks/{DOdlo-4T.js → DmhHEMPi.js} +1 -1
- package/web/app/immutable/chunks/{PRAJ9M9Y.js → DodshHwq.js} +1 -1
- package/web/app/immutable/chunks/{y_07dpNl.js → DpSi4PLY.js} +1 -1
- package/web/app/immutable/chunks/{Cg6uFDit.js → DqFWZ_g1.js} +1 -1
- package/web/app/immutable/chunks/{CB1L2aum.js → DqgCp5ae.js} +1 -1
- package/web/app/immutable/chunks/{Bu3w6q3q.js → DrBi0w5G.js} +4 -4
- package/web/app/immutable/chunks/{CSd0whCN.js → Druyrynh.js} +1 -1
- package/web/app/immutable/chunks/{Dyrz4mgu.js → DtnAdLQg.js} +1 -1
- package/web/app/immutable/chunks/{D2dQD04-.js → Dukt1CUc.js} +1 -1
- package/web/app/immutable/chunks/{9RBVjd2X.js → DumeSIrz.js} +1 -1
- package/web/app/immutable/chunks/{DfmIEc34.js → DupNtpYi.js} +1 -1
- package/web/app/immutable/chunks/{D9DtZ5bO.js → DxvSggY5.js} +1 -1
- package/web/app/immutable/chunks/{9XOJk36Z.js → DyBkeTEM.js} +1 -1
- package/web/app/immutable/chunks/{CIHmUaya.js → DyHCBf0T.js} +3 -3
- package/web/app/immutable/chunks/{D_84YASo.js → Dy_4BU07.js} +3 -3
- package/web/app/immutable/chunks/{DmLYqjCG.js → Dz5-AChV.js} +1 -1
- package/web/app/immutable/chunks/{CZmtskyb.js → DzFkUqsC.js} +1 -1
- package/web/app/immutable/chunks/{WbKTM-AY.js → DzMdBKPh.js} +1 -1
- package/web/app/immutable/chunks/{nR9NDXxc.js → E_jRuW-b.js} +2 -2
- package/web/app/immutable/chunks/{lnjs8g9M.js → FLNU8xuu.js} +1 -1
- package/web/app/immutable/chunks/{D635gi5P.js → FmBB5PWm.js} +1 -1
- package/web/app/immutable/chunks/{CbcqSAiT.js → Gr7b8MIr.js} +1 -1
- package/web/app/immutable/chunks/{DUk9Psab.js → JKboQXkL.js} +1 -1
- package/web/app/immutable/chunks/{BBuuu82x.js → KAO5AtPr.js} +1 -1
- package/web/app/immutable/chunks/{DFAg4YQw.js → KykWEhyB.js} +1 -1
- package/web/app/immutable/chunks/{Ch__d3EK.js → L3AlUw84.js} +1 -1
- package/web/app/immutable/chunks/{CFWjNNDI.js → LKW_Bid7.js} +1 -1
- package/web/app/immutable/chunks/{bMVl-_uo.js → M18r7swD.js} +1 -1
- package/web/app/immutable/chunks/{BJbXiNfd.js → P4OctF9m.js} +1 -1
- package/web/app/immutable/chunks/{Dr-hGtz9.js → PXCFrn2V.js} +1 -1
- package/web/app/immutable/chunks/{yyKL9m5q.js → Q8rtHwbz.js} +1 -1
- package/web/app/immutable/chunks/{DmaI9gJG.js → Qnx8Hmfg.js} +1 -1
- package/web/app/immutable/chunks/{OC9upl2Z.js → RsJMsDHX.js} +1 -1
- package/web/app/immutable/chunks/{2LHboW99.js → S5vPfW1A.js} +1 -1
- package/web/app/immutable/chunks/{PJHVK1jp.js → SX1khnGy.js} +1 -1
- package/web/app/immutable/chunks/{Bl1aiNRC.js → TrRXD94r.js} +1 -1
- package/web/app/immutable/chunks/{D6WnG3O5.js → U3137Ii1.js} +1 -1
- package/web/app/immutable/chunks/{DaX_ruGd.js → V6SVTu37.js} +1 -1
- package/web/app/immutable/chunks/{Dr2MCeHs.js → WABToc6b.js} +1 -1
- package/web/app/immutable/chunks/{DLpH_zOx.js → WHfdsTrE.js} +1 -1
- package/web/app/immutable/chunks/{DVXtNvCM.js → XJqoy2ap.js} +1 -1
- package/web/app/immutable/chunks/{CoKTpqDU.js → XPs8BW44.js} +1 -1
- package/web/app/immutable/chunks/{DIz708WA.js → Zldsekdv.js} +4 -4
- package/web/app/immutable/chunks/{DmPmT0eG.js → _UNYBFXm.js} +1 -1
- package/web/app/immutable/chunks/{BUc9vg7U.js → a34jwGLW.js} +1 -1
- package/web/app/immutable/chunks/{DCkjGG3P.js → aHO4L7kg.js} +1 -1
- package/web/app/immutable/chunks/{DjoTibfo.js → b-bXytVF.js} +1 -1
- package/web/app/immutable/chunks/{Bf_VKlmw.js → dP7u_sPF.js} +1 -1
- package/web/app/immutable/chunks/{BagTxwLt.js → dSvJdwG_.js} +3 -3
- package/web/app/immutable/chunks/{DTNUR8M2.js → dx9b_0TP.js} +2 -2
- package/web/app/immutable/chunks/{CPjCX26i.js → eln8hjjQ.js} +1 -1
- package/web/app/immutable/chunks/{CufGMblq.js → gcij4Gee.js} +1 -1
- package/web/app/immutable/chunks/{CFWrNsuZ.js → ge7HDe-3.js} +1 -1
- package/web/app/immutable/chunks/{ByhyupnT.js → hHeBjODU.js} +1 -1
- package/web/app/immutable/chunks/{M4mXlBrP.js → iI6LFAGI.js} +1 -1
- package/web/app/immutable/chunks/{PMgbVYrU.js → k3tEZZCe.js} +1 -1
- package/web/app/immutable/chunks/{BWlKpZE8.js → lVHjTAAb.js} +1 -1
- package/web/app/immutable/chunks/{Bm7IJJUE.js → nRmTo2Eh.js} +1 -1
- package/web/app/immutable/chunks/{rJd0G3JA.js → oOuL5l8A.js} +1 -1
- package/web/app/immutable/chunks/{BQEAmAsx.js → oSmiRYki.js} +1 -1
- package/web/app/immutable/chunks/{BWk-f4jj.js → oZkhvgMl.js} +1 -1
- package/web/app/immutable/chunks/{rvFYnBJj.js → p8jwzOYN.js} +1 -1
- package/web/app/immutable/chunks/{BGccgsYG.js → plFW1-kq.js} +1 -1
- package/web/app/immutable/chunks/{DrUo0N9I.js → s1m3ujOc.js} +1 -1
- package/web/app/immutable/chunks/{Dji1u83Z.js → sG8VksRm.js} +1 -1
- package/web/app/immutable/chunks/{3VXSKzWd.js → tVHyNPqL.js} +1 -1
- package/web/app/immutable/chunks/{BdvDDr3c.js → uWDJKH9B.js} +1 -1
- package/web/app/immutable/chunks/{DDhwf79f.js → v2EYTTpI.js} +3 -3
- package/web/app/immutable/chunks/{DSibel_X.js → ykNMRL6H.js} +1 -1
- package/web/app/immutable/chunks/{Ca9VfQ3Z.js → zhSFUcJz.js} +1 -1
- package/web/app/immutable/entry/{app.g9i4Hhee.js → app.AtsW0EhM.js} +3 -3
- package/web/app/immutable/entry/start.DHsRk6-P.js +1 -0
- package/web/app/immutable/nodes/{0.CDHHvjqw.js → 0.CegL6Bfc.js} +1 -1
- package/web/app/immutable/nodes/{1.D5xy2MCO.js → 1.B6-BTMS1.js} +1 -1
- package/web/app/immutable/nodes/{10.1IhdAEgn.js → 10.qlZM4NPl.js} +5 -5
- package/web/app/immutable/nodes/{11.BW_yfjel.js → 11.BR5ZtLjn.js} +1 -1
- package/web/app/immutable/nodes/{12.QDjrsyFI.js → 12.31R3OdO3.js} +1 -1
- package/web/app/immutable/nodes/{13.6cP3XOKB.js → 13.DYH2a5Wx.js} +1 -1
- package/web/app/immutable/nodes/{14.Bb8pZCFr.js → 14.B6MrEg8x.js} +3 -3
- package/web/app/immutable/nodes/{15.DTRK9Vyb.js → 15.Bitx8r2v.js} +1 -1
- package/web/app/immutable/nodes/{16.pYdajVyy.js → 16.CKbY5VRM.js} +1 -1
- package/web/app/immutable/nodes/{17.C6_qDHdP.js → 17.DPSU7Eqq.js} +1 -1
- package/web/app/immutable/nodes/{18.p2wClcpG.js → 18.BlD6ustd.js} +1 -1
- package/web/app/immutable/nodes/{19.DQGgWYsX.js → 19.BRj21xes.js} +2 -2
- package/web/app/immutable/nodes/{2.DLEjVhJq.js → 2.BBHXaN8p.js} +4 -4
- package/web/app/immutable/nodes/{20.Dzdd3lna.js → 20.Cj4TGw20.js} +1 -1
- package/web/app/immutable/nodes/{3.Do589hpw.js → 3.JJmMGjhS.js} +1 -1
- package/web/app/immutable/nodes/{4.BW-YS0Mv.js → 4.C3VD-4KP.js} +1 -1
- package/web/app/immutable/nodes/{5.0hjt7wvZ.js → 5.DIJ6nzqY.js} +1 -1
- package/web/app/immutable/nodes/{6.C6f4TtQ8.js → 6.DIzZZwt4.js} +1 -1
- package/web/app/immutable/nodes/{7.C1c9oJF2.js → 7.Xo0EbJUd.js} +1 -1
- package/web/app/immutable/nodes/{8.B6Vwx2Ni.js → 8.xZANL-qg.js} +1 -1
- package/web/app/immutable/nodes/9.BVBQgdJj.js +12 -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/3TUSwkgT.js +0 -1
- package/web/app/immutable/chunks/7f-RK74P.js +0 -4
- package/web/app/immutable/chunks/BN8kP7XZ.js +0 -1
- package/web/app/immutable/chunks/BZhnh0KQ.js +0 -1
- package/web/app/immutable/chunks/CPDeRaia.js +0 -1
- package/web/app/immutable/chunks/a1kG0lDg.js +0 -1
- package/web/app/immutable/entry/start.DJAvowHl.js +0 -1
- package/web/app/immutable/nodes/9.BhguuCYy.js +0 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as d,bo as r,bw as n,b as h}from"./
|
|
1
|
+
import{t as d,bo as r,bw as n,b as h}from"./51_h0jm2.js";import{bs as x,b_ as u,W as C,bn as g,aA as p,aC as y}from"./CJxGDkBm.js";import{s as i,f as G,c as M}from"./CpPNoOk-.js";var U=y(`<svg id="Ebene_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 466.73 533.32"><defs><style>.st0 {
|
|
2
2
|
fill: #72716d;
|
|
3
3
|
}
|
|
4
4
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{fM as x,J4 as o,nM as B,md as F,m4 as K,tk as q}from"./
|
|
1
|
+
import{fM as x,J4 as o,nM as B,md as F,m4 as K,tk as q}from"./Zldsekdv.js";import{H as G,n as j,O as V,e4 as Y,cR as M,dE as w,dP as N,d_ as E,cM as $,aM as J}from"./XJqoy2ap.js";import{selectCurrentWorkspaceTabId as z,selectWorkspaceTabsHydrated as Q}from"./BuveYyQe.js";import{t as X}from"./DUItrdZb.js";function Z(e){return!e.retiredAt&&!e.pendingDeleteAt&&e.status!=="deleted"}function k(e){const t=new Date(e.lastActivity??e.updatedAt??e.createdAt).getTime()||0,s=e.messages.at(-1)?.timestamp,r=s&&new Date(s).getTime()||0;return Math.max(t,r)}function Ae(e){const t=e.filter(Z).map(s=>({agent:s,activity:k(s),created:new Date(s.createdAt).getTime()||0})).sort((s,r)=>r.activity-s.activity||r.created-s.created||String(s.agent.id).localeCompare(String(r.agent.id)));return t.find(({agent:s})=>x(s)==="topLevel")?.agent??t[0]?.agent??null}const p="__chief__",L="New chat";function ee(e){const t=e?.trim();return!t||t===L||t==="New chat with Assistant"||t==="New chat with Intent"||t==="Chief of Staff"||t.startsWith("New thread ")}function te(e){const t=e.name?.trim();if(e.nameExplicitlySet&&t)return t;const r=e.messages.find(l=>l.role==="user")??e.messages[0],c=r?(r.role==="user"?G(r):j(r)).trim():"";return!t||ee(t)?c||L:c||t}const se="chief-of-staff",re=6,T="## Assistant Runtime Identity\n\nYou are Intent's built-in Assistant. Operate at the app level with `ws.app.*` tools: manage workspaces, settings, specialists, navigation, and cross-workspace agents. You are not a repository coding agent. Treat generic coding-agent, workspace, spec, task, and delegation instructions as subordinate to this role.\n\nWhen the user requests repository work, create or open the appropriate workspace and hand the work to the appropriate specialist. Once you have enough repository or PR information, act through the app-level proposal flow instead of merely promising to verify, prepare, or hand off the work.\n\nShow workspaces, notes, files, agent conversations and repository links beside your conversation when they help the user. Share ordinary Markdown links to notes (intent://local/note/<noteId> or intent://local/<workspaceId>/note/<noteId>) workspace links (intent://local/workspace/<workspaceId>), workspace file and agent links, and HTTPS repository URLs; clicking opens a closable content panel while keeping chat visible. To show content automatically, call `ws.app.ui.navigate` with the same link or /workspace/<workspaceId>. Calling `ws.app.workspaces.open` also shows that workspace beside chat unless the user requests a new window. Each conversation has its own panel history. Workspaces show the same detail and agent chat as Home’s Workspaces tab. Earlier content remains available in that conversation’s panel header picker. Creating a note alone does not open it: explicitly navigate when you want to show it.\n\nWhen the user asks to transfer a project between devices, find the source workspace with `ws.app.workspaces.list` and call `ws.app.workspaces.transfer(id, { destination })`. Pass the user's destination name as the hint, or omit it so they can choose a saved device in the inline card. The source is the device serving this assistant conversation. The tool only proposes the transfer: wait for approval or cancellation in the card, and report completion only after the proposal is applied.";function ve(e){const t=e?.trim();return t?`${T}
|
|
2
2
|
|
|
3
3
|
${t}`:T}const oe=o.createSelector((e,t)=>{const s=e.backgroundHooks?.byWorkspaceId?.[t];return s?B(s.hooks):[]}),ne=o.createSelector((e,t)=>e.backgroundHooks?.byWorkspaceId?.[t]?.snapshotStatus??"loading"),O=o.createSelector((e,t)=>e.scriptMonitor?.byWorkspaceId[t]??F),ye=o.createSelector((e,t,s)=>{const r=O.select(e,t);return r.status==="unsupported"?[]:r.monitors.filter(c=>c.agentId===s)}),u=o.createSelector((e,t,s)=>{const r=q(t,s);return e.agentSubscriptionUI.entries[r]??K}),ae=o.createSelector((e,t,s)=>u.select(e,t,s).subscriptions),ce=o.createSelector((e,t,s)=>u.select(e,t,s).eventSubscriptions??[]),ie=o.createSelector((e,t,s)=>u.select(e,t,s).delegationGroups),Ce=o.createSelector((e,t,s)=>u.select(e,t,s).agentStatuses),We=o.createSelector((e,t,s)=>u.select(e,t,s).waitingState),Te=o.createSelector((e,t,s)=>u.select(e,t,s).wokenUpInfo);function le(e){return[...new Set(e.filter(Boolean))]}const Me=o.createSelector((e,t,s)=>{const r=u.select(e,t,s),c=[],l=new Set,i=n=>{for(const a of le(n))l.has(a)||(l.add(a),c.push(a))},h=[...r.subscriptions].sort((n,a)=>n.createdAt.localeCompare(a.createdAt)||n.id.localeCompare(a.id));for(const n of h)n.delegationGroup?.awaitMode!=="all"&&i(n.actorIds);const g=new Map;for(const n of r.delegationGroups)n.awaitMode==="all"&&g.set(n.groupId,n);for(const n of g.values())i(n.expectedAgentIds);for(const n of h){const a=n.delegationGroup;a?.awaitMode==="all"&&!g.has(a.groupId)&&i(a.expectedAgentIds)}const d=new Set;for(const n of r.delegationGroups){for(const a of n.completedAgentIds)d.add(a);for(const a of n.deletedAgentIds)d.add(a);for(const[a,f]of Object.entries(n.agentStatuses))f==="completed"&&d.add(a)}for(const[n,a]of Object.entries(r.agentStatuses))a==="completed"&&d.add(n);const A=e.agentSessions?.byAgentId??{},v=new Set([...d].filter(n=>{const a=A[n];return!a||!V(Y(a))})),y=new Map(c.map((n,a)=>[n,a])),C=n=>{const a=A[n];if(!a)return 2;if(a.attentionRequestKind==="blocker")return 0;if(a.attentionRequestKind==="discussion")return 1;if(v.has(n))return 4;const f=String(a.status).toLowerCase();return f==="responding"||f==="active"||f==="processing"?2:3},W=c.filter(n=>!v.has(n)).sort((n,a)=>C(n)-C(a)||(y.get(n)??0)-(y.get(a)??0));return{visible:r.snapshotStatus==="failed"||r.waitingState==="completed"||c.length>0||r.wokenUpInfo!==null,count:W.length,participantAgentIds:W}}),Ne=o.createSelector((e,t,s)=>u.select(e,t,s).snapshotStatus),Ee=o.createSelector((e,t)=>{const s=`${t}:`,r=[];for(const c of Object.keys(e.agentSubscriptionUI.entries))c.startsWith(s)&&r.push(c.slice(s.length));return r});o.createSelector((e,t,s)=>{const r=ie.select(e,t,s);let c=0,l=0;for(const i of r)c+=i.expectedAgentIds.length,l+=i.completedAgentIds.length+i.deletedAgentIds.length;return{total:c,completed:l}});const Le=o.createSelector(e=>{const t=z.select(e);if(!t||!Q.select(e))return[];const s=new Set;for(const r of X.select(e,t)){const c=r.panes.find(l=>l.id===r.activePaneId);c?.type==="agent"&&c.agentId&&s.add(c.agentId)}return[...s].map(r=>({wsId:t,agentId:r}))}),P="pinned",de=64;function I(e){return e.trim().toLocaleLowerCase()}function R(e){return e===P}function Oe(e,t){const s=e.trim();if(s.length===0)return{ok:!1,error:"empty"};if([...s].length>de)return{ok:!1,error:"tooLong"};const r=I(s);return r===P?{ok:!1,error:"reserved"}:t.some(c=>I(c)===r)?{ok:!1,error:"duplicate"}:{ok:!0,label:s}}function pe(e){const t=new Map;for(const s of e){if(typeof s!="string"||R(s))continue;const r=s.trim();if(r.length===0)continue;const c=I(r);t.has(c)||t.set(c,s)}return[...t.values()].sort((s,r)=>s.localeCompare(r,void 0,{sensitivity:"base"}))}function _(e){const s=e.workspaceAgents?.byWorkspaceId?.[p]?.agentIds,r=s&&s.length>0?new Set(s.map(i=>String(i))):null,c=e.agentSessions?.agentIdsByWorkspace?.[p]??[],l=c.length>0?c.map(i=>e.agentSessions?.byAgentId?.[i]).filter(i=>!!i):Object.values(e.agentSessions?.byAgentId??{}).filter(i=>i.workspaceId===p);return r?l.filter(i=>r.has(String(i.id))):l}function D(e){return e.metadata?.specialist===se&&e.metadata?.chiefPromptVersion===re}function H(e){return Math.max(e.messages.length,e.messageCount??0)}function S(e){return{agentId:e.id,title:te(e),isActive:e.isStreaming===!0||e.isProcessing===!0||e.isResponding===!0,messageCount:H(e),pinned:e.pinned===!0,retired:!!e.retiredAt}}function b(e){return _(e).filter(t=>!t.retiredAt)}function m(e,t){return k(t)-k(e)}const Pe=o.createSelector(e=>e.sidebarNav.panelItem),Re=o.createSelector(e=>e.sidebarNav.onboardingActive),_e=o.createSelector(e=>e.sidebarNav.showCreateModal),De=o.createSelector(e=>e.sidebarNav.createModalUsesHomeRepository),He=o.createSelector(e=>e.sidebarNav.createModalPrefillRequest),U=o.createSelector(e=>M.select(e)?.capabilities.workspaceLabels===1),Ue=o.createSelector((e,t)=>w.select(e,t)?.label??null),xe=o.createSelector(e=>pe(N.select(e).map(t=>t.label))),ue=["id","label"],Be=o.createSelector((e,t)=>U.select(e)&&E.select(e,t,ue)!==null),ge=o.createSelector(e=>M.select(e)?.capabilities.workspaceAutoArchiveOptOut===1),fe=o.createSelector(e=>(e.sidebarNav.autoArchiveIdleAfterDays??0)>0),Fe=o.createSelector((e,t)=>w.select(e,t)?.autoArchiveDisabled===!0),he=["id","autoArchiveDisabled"],Ke=o.createSelector((e,t)=>{if(!ge.select(e)||!fe.select(e))return!1;const s=w.select(e,t);return!s||s.isRemote===!0||s.environmentConfig?.type==="remote"?!1:E.select(e,t,he)!==null}),qe=o.createSelector(e=>e.sidebarNav.pinnedWorkspaceIds),Ge=o.createSelector(e=>U.select(e)?N.select(e).filter(t=>R(t.label)).map(t=>t.id):e.sidebarNav.pinnedWorkspaceIds),je=o.createSelector((e,t)=>e.sidebarNav.multiSelectSelectedTabIdsByWorkspaceId[t]??["overview"]),Ve=o.createSelector((e,t)=>e.sidebarNav.noteOrderByWorkspaceId[t]??[]),Ye=o.createSelector((e,t)=>e.sidebarNav.collapsedNoteIdsByWorkspaceId[t]??[]),$e=o.createSelector((e,t)=>e.sidebarNav.expandedNoteIdsByWorkspaceId?.[t]??[]),Je=o.createSelector(e=>e.sidebarNav.chiefActiveAgentId),ze=o.createSelector((e,t)=>{const s=e.agentSessions.byAgentId[t];if(s?.workspaceId!==p)return{hooks:0,monitors:0,subscriptions:0};const r=ne.select(e,p)==="ready"?oe.select(e,p).filter(d=>d.agentId===t&&(d.state==="scheduled"||d.state==="running")).length:s.waitingOnHooks?.length??0,c=$.select(e,p)==="ready"?J.select(e,p,t).filter(d=>d.state==="active").length:s.waitingOnPrMonitors?.length??0,l=O.select(e,p),i=l.status==="unsupported"?0:l.status==="ready"?l.monitors.filter(d=>d.agentId===t&&d.state==="active").length:s.waitingOnScriptMonitors?.length??0,h=s.isWaitingForOtherAgents===!1?0:s.waitingForAgentIds?.length??(ae.select(e,p,t).length||(s.isWaitingForOtherAgents?1:0)),g=ce.select(e,p,t).filter(d=>d.subscriberAgentId===t).length;return{hooks:r,monitors:c+i,subscriptions:h+g}}),Qe=o.createSelector(e=>e.sidebarNav.statsOverlayOpen),Se=o.createSelector(e=>b(e).sort((t,s)=>+(s.pinned===!0)-+(t.pinned===!0)||m(t,s)).map(S)),me=o.createSelector(e=>_(e).filter(t=>!!t.retiredAt).sort(m).map(S)),Xe=o.createSelector(e=>[...Se.select(e),...me.select(e)]),Ze=o.createSelector(e=>{const t=b(e).filter(D).sort(m)[0];return t?S(t):null}),et=o.createSelector(e=>{const t=b(e).filter(s=>H(s)===0&&!s.lastMessageId&&D(s)).sort(m)[0];return t?S(t):null});export{Re as A,Pe as B,re as C,L as D,Ge as E,me as F,et as G,O as H,_e as I,Qe as J,Ne as K,Ee as L,We as M,Te as N,Fe as O,P,Ye as Q,$e as R,Ue as S,xe as T,Ve as U,Oe as V,de as W,se as a,p as b,ve as c,Z as d,Me as e,Ce as f,ae as g,Xe as h,R as i,ze as j,oe as k,ne as l,Ke as m,Be as n,Je as o,Se as p,He as q,Ae as r,ye as s,De as t,Ze as u,ie as v,Le as w,U as x,qe as y,je as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as i}from"./Bi5_2qbB.js";import{o as n}from"./CxmJEenA.js";import{i as o,J4 as a,E0 as s,v9 as r,uL as f}from"./Zldsekdv.js";async function m(t,e){if(!(!t||!e)){if(t===o){await i("/"),a.dispatch(s(e)),a.dispatch(r("chief"));return}await n(t)&&a.dispatch(f(t,{agentId:e}))}}export{m as n};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var dt=Object.defineProperty;var qe=n=>{throw TypeError(n)};var ct=(n,e,r)=>e in n?dt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r;var y=(n,e,r)=>ct(n,typeof e!="symbol"?e+"":e,r),ut=(n,e,r)=>e.has(n)||qe("Cannot "+r);var l=(n,e,r)=>(ut(n,e,"read from private field"),r?r.call(n):e.get(n)),O=(n,e,r)=>e.has(n)?qe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,r);import{t as W,bo as i,bw as X,b as j,bp as L,br as Ne}from"./a1kG0lDg.js";import{bV as M,aD as c,bH as b,c9 as N,bo as be,bs as q,a7 as A,ay as x,W as C,bn as H,aA as a,a5 as Ce,bf as Q,bA as Oe,aB as Y,bS as He,aG as Ye,br as ht,ca as pt,bI as Ze}from"./CJxGDkBm.js";import{i as z}from"./Dr-hGtz9.js";import{s as E}from"./D9DtZ5bO.js";import{b as Pe}from"./ysr2ZeEL.js";import{h as gt,a2 as Qe,av as _,a$ as Te,aU as ft,aF as vt,an as _e,ay as mt,aG as $e,aq as Ie,a6 as yt,l as bt,az as R,aQ as B,aS as k,I as Ct,n as Ot,j as Pt,ad as _t,a9 as Ve}from"./CszTaYPw.js";import{c as wt}from"./B5t5yFV1.js";import{s as St}from"./uz9wJ9h7.js";import{f as xt,k as Nt}from"./CoC9Ux29.js";const It=mt({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),U=new gt("Dialog.Root | AlertDialog.Root");var te,re,ne,oe,se,ie,ae,le,de,ce,ue;const Be=class Be{constructor(e,r){y(this,"opts");O(this,te,M(null));O(this,re,M(null));O(this,ne,M(null));O(this,oe,M(null));O(this,se,M(void 0));O(this,ie,M(void 0));O(this,ae,M(void 0));O(this,le,M(void 0));O(this,de,M(null));O(this,ce,M(0));y(this,"depth");y(this,"parent");y(this,"contentPresence");y(this,"overlayPresence");y(this,"getBitsAttr",e=>It.getAttr(e,this.opts.variant.current));O(this,ue,N(()=>({"data-state":vt(this.opts.open.current)})));this.opts=e,this.parent=r,this.depth=r?r.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Qe({ref:_(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Qe({ref:_(()=>this.overlayNode),open:this.opts.open,enabled:!0}),Te(()=>this.opts.open.current,s=>{this.parent&&(s?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),ft(()=>{this.opts.open.current&&this.parent?.decrementNested()})}static create(e){const r=U.getOr(null);return U.set(new Be(e,r))}get triggerNode(){return c(l(this,te))}set triggerNode(e){b(l(this,te),e,!0)}get contentNode(){return c(l(this,re))}set contentNode(e){b(l(this,re),e,!0)}get overlayNode(){return c(l(this,ne))}set overlayNode(e){b(l(this,ne),e,!0)}get descriptionNode(){return c(l(this,oe))}set descriptionNode(e){b(l(this,oe),e,!0)}get contentId(){return c(l(this,se))}set contentId(e){b(l(this,se),e,!0)}get titleId(){return c(l(this,ie))}set titleId(e){b(l(this,ie),e,!0)}get triggerId(){return c(l(this,ae))}set triggerId(e){b(l(this,ae),e,!0)}get descriptionId(){return c(l(this,le))}set descriptionId(e){b(l(this,le),e,!0)}get cancelNode(){return c(l(this,de))}set cancelNode(e){b(l(this,de),e,!0)}get nestedOpenCount(){return c(l(this,ce))}set nestedOpenCount(e){b(l(this,ce),e,!0)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}get sharedProps(){return c(l(this,ue))}set sharedProps(e){b(l(this,ue),e)}};te=new WeakMap,re=new WeakMap,ne=new WeakMap,oe=new WeakMap,se=new WeakMap,ie=new WeakMap,ae=new WeakMap,le=new WeakMap,de=new WeakMap,ce=new WeakMap,ue=new WeakMap;let Fe=Be;var he;const Ke=class Ke{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,he,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(e){return new Ke(e,U.get())}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===yt||e.key===bt)&&(e.preventDefault(),this.root.handleClose())}get props(){return c(l(this,he))}set props(e){b(l(this,he),e)}};he=new WeakMap;let ke=Ke;var pe;const ze=class ze{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,pe,N(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.root.titleId=this.opts.id.current,this.attachment=_e(this.opts.ref),Te.pre(()=>this.opts.id.current,s=>{this.root.titleId=s})}static create(e){return new ze(e,U.get())}get props(){return c(l(this,pe))}set props(e){b(l(this,pe),e)}};pe=new WeakMap;let Ee=ze;var ge;const Ge=class Ge{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,ge,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.root.descriptionId=this.opts.id.current,this.attachment=_e(this.opts.ref,s=>{this.root.descriptionNode=s}),Te.pre(()=>this.opts.id.current,s=>{this.root.descriptionId=s})}static create(e){return new Ge(e,U.get())}get props(){return c(l(this,ge))}set props(e){b(l(this,ge),e)}};ge=new WeakMap;let De=Ge;var fe,ve;const Ue=class Ue{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,fe,N(()=>({open:this.root.opts.open.current})));O(this,ve,N(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...$e(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref,s=>{this.root.contentNode=s,this.root.contentId=s?.id})}static create(e){return new Ue(e,U.get())}get snippetProps(){return c(l(this,fe))}set snippetProps(e){b(l(this,fe),e)}get props(){return c(l(this,ve))}set props(e){b(l(this,ve),e)}get shouldRender(){return this.root.contentPresence.shouldRender}};fe=new WeakMap,ve=new WeakMap;let Me=Ue;var me,ye;const We=class We{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,me,N(()=>({open:this.root.opts.open.current})));O(this,ye,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...$e(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref,s=>this.root.overlayNode=s)}static create(e){return new We(e,U.get())}get snippetProps(){return c(l(this,me))}set snippetProps(e){b(l(this,me),e)}get props(){return c(l(this,ye))}set props(e){b(l(this,ye),e)}get shouldRender(){return this.root.overlayPresence.shouldRender}};me=new WeakMap,ye=new WeakMap;let Re=We;var At=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","level"]),Ft=Y("<div><!></div>");function kt(n,e){const r=be();if(new.target)return W({component:kt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"ref",15,null),u=i(e,"child",7),v=i(e,"children",7),m=i(e,"level",7,2),w=L(e,At);const p=Ee.create({id:_(()=>s()),level:_(()=>m()),ref:_(()=>g(),t=>g(t))}),f=N(()=>B(w,p.props));var S={get id(){return s()},set id(t=R(r)){s(t),a()},get ref(){return g()},set ref(t=null){g(t),a()},get child(){return u()},set child(t){u(t),a()},get children(){return v()},set children(t){v(t),a()},get level(){return m()},set level(t=2){m(t),a()},$set:X,$on:(t,h)=>j(e,t,h)},P=A(),F=x(P);{var I=t=>{var h=A(),D=x(h);E(D,u,()=>({props:c(f)})),C(t,h)},o=t=>{var h=Ft();Pe(h,()=>({...c(f)}));var D=Ce(h);E(D,()=>v()??Q),Oe(h),C(t,h)};z(F,t=>{u()?t(I):t(o,-1)})}return C(n,P),H(S)}var Et=new Set(["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]),Dt=Y("<div><!></div>");function Mt(n,e){const r=be();if(new.target)return W({component:Mt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"forceMount",7,!1),u=i(e,"child",7),v=i(e,"children",7),m=i(e,"ref",15,null),w=L(e,Et);const p=Re.create({id:_(()=>s()),ref:_(()=>m(),o=>m(o))}),f=N(()=>B(w,p.props));var S={get id(){return s()},set id(o=R(r)){s(o),a()},get forceMount(){return g()},set forceMount(o=!1){g(o),a()},get child(){return u()},set child(o){u(o),a()},get children(){return v()},set children(o){v(o),a()},get ref(){return m()},set ref(o=null){m(o),a()},$set:X,$on:(o,t)=>j(e,o,t)},P=A(),F=x(P);{var I=o=>{var t=A(),h=x(t);{var D=K=>{var T=A(),d=x(T);{let V=N(()=>({props:B(c(f)),...p.snippetProps}));E(d,u,()=>c(V))}C(K,T)},we=K=>{var T=Dt();Pe(T,V=>({...V}),[()=>B(c(f))]);var d=Ce(T);E(d,()=>v()??Q,()=>p.snippetProps),Oe(T),C(K,T)};z(h,K=>{u()?K(D):K(we,-1)})}C(o,t)};z(F,o=>{(p.shouldRender||g())&&o(I)})}return C(n,P),H(S)}var Rt=new Set(["$$slots","$$events","$$legacy","id","children","child","ref"]),Tt=Y("<div><!></div>");function Bt(n,e){const r=be();if(new.target)return W({component:Bt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"children",7),u=i(e,"child",7),v=i(e,"ref",15,null),m=L(e,Rt);const w=De.create({id:_(()=>s()),ref:_(()=>v(),o=>v(o))}),p=N(()=>B(m,w.props));var f={get id(){return s()},set id(o=R(r)){s(o),a()},get children(){return g()},set children(o){g(o),a()},get child(){return u()},set child(o){u(o),a()},get ref(){return v()},set ref(o=null){v(o),a()},$set:X,$on:(o,t)=>j(e,o,t)},S=A(),P=x(S);{var F=o=>{var t=A(),h=x(t);E(h,u,()=>({props:c(p)})),C(o,t)},I=o=>{var t=Tt();Pe(t,()=>({...c(p)}));var h=Ce(t);E(h,()=>g()??Q),Oe(t),C(o,t)};z(P,o=>{u()?o(F):o(I,-1)})}return C(n,S),H(f)}function et(n,e){if(new.target)return W({component:et,...n});q(e,!0);let r=i(e,"open",15,!1),s=i(e,"onOpenChange",7,k),g=i(e,"onOpenChangeComplete",7,k),u=i(e,"children",7);Fe.create({variant:_(()=>"dialog"),open:_(()=>r(),p=>{r(p),s()(p)}),onOpenChangeComplete:_(()=>g())});var v={get open(){return r()},set open(p=!1){r(p),a()},get onOpenChange(){return s()},set onOpenChange(p=k){s(p),a()},get onOpenChangeComplete(){return g()},set onOpenChangeComplete(p=k){g(p),a()},get children(){return u()},set children(p){u(p),a()},$set:X,$on:(p,f)=>j(e,p,f)},m=A(),w=x(m);return E(w,()=>u()??Q),C(n,m),H(v)}var Kt=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]),zt=Y("<button><!></button>");function Gt(n,e){const r=be();if(new.target)return W({component:Gt,...n});q(e,!0);let s=i(e,"children",7),g=i(e,"child",7),u=i(e,"id",23,()=>R(r)),v=i(e,"ref",15,null),m=i(e,"disabled",7,!1),w=L(e,Kt);const p=ke.create({variant:_(()=>"close"),id:_(()=>u()),ref:_(()=>v(),t=>v(t)),disabled:_(()=>!!m())}),f=N(()=>B(w,p.props));var S={get children(){return s()},set children(t){s(t),a()},get child(){return g()},set child(t){g(t),a()},get id(){return u()},set id(t=R(r)){u(t),a()},get ref(){return v()},set ref(t=null){v(t),a()},get disabled(){return m()},set disabled(t=!1){m(t),a()},$set:X,$on:(t,h)=>j(e,t,h)},P=A(),F=x(P);{var I=t=>{var h=A(),D=x(h);E(D,g,()=>({props:c(f)})),C(t,h)},o=t=>{var h=zt();Pe(h,()=>({...c(f)}));var D=Ce(h);E(D,()=>s()??Q),Oe(h),C(t,h)};z(F,t=>{g()?t(I):t(o,-1)})}return C(n,P),H(S)}var Ut=new Set(["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]),Wt=Y("<!> <!>",1),Xt=Y("<!> <div><!></div>",1);function jt(n,e){const r=be();if(new.target)return W({component:jt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"children",7),u=i(e,"child",7),v=i(e,"ref",15,null),m=i(e,"forceMount",7,!1),w=i(e,"onCloseAutoFocus",7,k),p=i(e,"onOpenAutoFocus",7,k),f=i(e,"onEscapeKeydown",7,k),S=i(e,"onInteractOutside",7,k),P=i(e,"trapFocus",7,!0),F=i(e,"preventScroll",7,!0),I=i(e,"restoreScrollDelay",7,null),o=L(e,Ut);const t=Me.create({id:_(()=>s()),ref:_(()=>v(),d=>v(d))}),h=N(()=>B(o,t.props));var D={get id(){return s()},set id(d=R(r)){s(d),a()},get children(){return g()},set children(d){g(d),a()},get child(){return u()},set child(d){u(d),a()},get ref(){return v()},set ref(d=null){v(d),a()},get forceMount(){return m()},set forceMount(d=!1){m(d),a()},get onCloseAutoFocus(){return w()},set onCloseAutoFocus(d=k){w(d),a()},get onOpenAutoFocus(){return p()},set onOpenAutoFocus(d=k){p(d),a()},get onEscapeKeydown(){return f()},set onEscapeKeydown(d=k){f(d),a()},get onInteractOutside(){return S()},set onInteractOutside(d=k){S(d),a()},get trapFocus(){return P()},set trapFocus(d=!0){P(d),a()},get preventScroll(){return F()},set preventScroll(d=!0){F(d),a()},get restoreScrollDelay(){return I()},set restoreScrollDelay(d=null){I(d),a()},$set:X,$on:(d,V)=>j(e,d,V)},we=A(),K=x(we);{var T=d=>{Ct(d,{get ref(){return t.opts.ref},loop:!0,get trapFocus(){return P()},get enabled(){return t.root.opts.open.current},get onOpenAutoFocus(){return p()},get onCloseAutoFocus(){return w()},focusScope:(nt,ot)=>{let Xe=()=>(ot?.()).props;Ot(nt,Ne(()=>c(h),{get enabled(){return t.root.opts.open.current},get ref(){return t.opts.ref},onEscapeKeydown:Se=>{f()(Se),!Se.defaultPrevented&&t.root.handleClose()},children:(Se,Lt)=>{Pt(Se,Ne(()=>c(h),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},onInteractOutside:xe=>{S()(xe),!xe.defaultPrevented&&t.root.handleClose()},children:(xe,Yt)=>{_t(xe,Ne(()=>c(h),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},children:(st,Zt)=>{var je=A(),it=x(je);{var at=J=>{var Z=Wt(),$=x(Z);{var ee=G=>{Ve(G,{get preventScroll(){return F()},get restoreScrollDelay(){return I()}})};z($,G=>{t.root.opts.open.current&&G(ee)})}var Ae=He($,2);{let G=N(()=>({props:B(c(h),Xe()),...t.snippetProps}));E(Ae,u,()=>c(G))}C(J,Z)},lt=J=>{var Z=Xt(),$=x(Z);Ve($,{get preventScroll(){return F()}});var ee=He($,2);Pe(ee,G=>({...G}),[()=>B(c(h),Xe())]);var Ae=Ce(ee);E(Ae,()=>g()??Q),Oe(ee),C(J,Z)};z(it,J=>{u()?J(at):J(lt,-1)})}C(st,je)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};z(K,d=>{(t.shouldRender||m())&&d(T)})}return C(n,we),H(D)}const tt=Symbol("overlay-open"),rt=Symbol("overlay-static"),Je={tier:"moderate",x:0,y:0,scale:1,opacity:0},Le={tier:"slow",x:0,y:8,scale:.97,opacity:0},qt={top:{x:0,y:"-100%"},right:{x:"100%",y:0},bottom:{x:0,y:"100%"},left:{x:"-100%",y:0}},dr={backdrop:{enter:Je,exit:Je},dialog:{enter:Le,exit:Le},sheet(n){const e={tier:"slow",scale:1,opacity:1,...qt[n]};return{enter:e,exit:e}}};function Ht(n){Ze(tt,n)}function cr(){const n=Ye(tt);if(!n)throw new Error("Dialog or Sheet Content must be nested inside its Root.");return n}function Qt(n){Ze(rt,n)}function ur(){return Ye(rt)??(()=>!1)}function hr(n){let e=M(ht(n()));return pt(()=>{if(n()){b(e,!0);return}if(!c(e))return;const r=window.setTimeout(()=>b(e,!1),xt(Nt.slow));return()=>window.clearTimeout(r)}),{get mounted(){return c(e)},finishExit(){n()||b(e,!1)}}}var Vt=new Set(["$$slots","$$events","$$legacy","open","staticPosition","children","onOpenChange"]);function Jt(n,e){if(new.target)return W({component:Jt,...n});q(e,!0);let r=i(e,"open",15,!1),s=i(e,"staticPosition",7,!1),g=i(e,"children",7),u=i(e,"onOpenChange",7),v=L(e,Vt);Ht(()=>r()),Qt(()=>s()),St(()=>{r(!1),u()?.(!1)});var m={get open(){return r()},set open(f=!1){r(f),a()},get staticPosition(){return s()},set staticPosition(f=!1){s(f),a()},get children(){return g()},set children(f){g(f),a()},get onOpenChange(){return u()},set onOpenChange(f){u(f),a()},$set:X,$on:(f,S)=>j(e,f,S)},w=A(),p=x(w);return wt(p,()=>et,(f,S)=>{S(f,Ne({get onOpenChange(){return u()}},()=>v,{get open(){return r()},set open(P){r(P)},children:(P,F)=>{var I=A(),o=x(I);E(o,()=>g()??Q),C(P,I)},$$slots:{default:!0}}))}),C(n,w),H(m)}export{Gt as D,Jt as O,jt as a,Bt as b,Mt as c,kt as d,hr as e,ur as f,dr as o,cr as u};
|
|
1
|
+
var dt=Object.defineProperty;var qe=n=>{throw TypeError(n)};var ct=(n,e,r)=>e in n?dt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r;var y=(n,e,r)=>ct(n,typeof e!="symbol"?e+"":e,r),ut=(n,e,r)=>e.has(n)||qe("Cannot "+r);var l=(n,e,r)=>(ut(n,e,"read from private field"),r?r.call(n):e.get(n)),O=(n,e,r)=>e.has(n)?qe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,r);import{t as W,bo as i,bw as X,b as j,bp as L,br as Ne}from"./51_h0jm2.js";import{bV as M,aD as c,bH as b,c9 as N,bo as be,bs as q,a7 as A,ay as x,W as C,bn as H,aA as a,a5 as Ce,bf as Q,bA as Oe,aB as Y,bS as He,aG as Ye,br as ht,ca as pt,bI as Ze}from"./CJxGDkBm.js";import{i as z}from"./PXCFrn2V.js";import{s as E}from"./DxvSggY5.js";import{b as Pe}from"./CpPNoOk-.js";import{h as gt,a2 as Qe,av as _,a$ as Te,aU as ft,aF as vt,an as _e,ay as mt,aG as $e,aq as Ie,a6 as yt,l as bt,az as R,aQ as B,aS as k,I as Ct,n as Ot,j as Pt,ad as _t,a9 as Ve}from"./Cdw_CIdg.js";import{c as wt}from"./DGmOjLYi.js";import{s as St}from"./BgDYQZ_0.js";import{f as xt,k as Nt}from"./BxwkoIbZ.js";const It=mt({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),U=new gt("Dialog.Root | AlertDialog.Root");var te,re,ne,oe,se,ie,ae,le,de,ce,ue;const Be=class Be{constructor(e,r){y(this,"opts");O(this,te,M(null));O(this,re,M(null));O(this,ne,M(null));O(this,oe,M(null));O(this,se,M(void 0));O(this,ie,M(void 0));O(this,ae,M(void 0));O(this,le,M(void 0));O(this,de,M(null));O(this,ce,M(0));y(this,"depth");y(this,"parent");y(this,"contentPresence");y(this,"overlayPresence");y(this,"getBitsAttr",e=>It.getAttr(e,this.opts.variant.current));O(this,ue,N(()=>({"data-state":vt(this.opts.open.current)})));this.opts=e,this.parent=r,this.depth=r?r.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Qe({ref:_(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Qe({ref:_(()=>this.overlayNode),open:this.opts.open,enabled:!0}),Te(()=>this.opts.open.current,s=>{this.parent&&(s?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),ft(()=>{this.opts.open.current&&this.parent?.decrementNested()})}static create(e){const r=U.getOr(null);return U.set(new Be(e,r))}get triggerNode(){return c(l(this,te))}set triggerNode(e){b(l(this,te),e,!0)}get contentNode(){return c(l(this,re))}set contentNode(e){b(l(this,re),e,!0)}get overlayNode(){return c(l(this,ne))}set overlayNode(e){b(l(this,ne),e,!0)}get descriptionNode(){return c(l(this,oe))}set descriptionNode(e){b(l(this,oe),e,!0)}get contentId(){return c(l(this,se))}set contentId(e){b(l(this,se),e,!0)}get titleId(){return c(l(this,ie))}set titleId(e){b(l(this,ie),e,!0)}get triggerId(){return c(l(this,ae))}set triggerId(e){b(l(this,ae),e,!0)}get descriptionId(){return c(l(this,le))}set descriptionId(e){b(l(this,le),e,!0)}get cancelNode(){return c(l(this,de))}set cancelNode(e){b(l(this,de),e,!0)}get nestedOpenCount(){return c(l(this,ce))}set nestedOpenCount(e){b(l(this,ce),e,!0)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}get sharedProps(){return c(l(this,ue))}set sharedProps(e){b(l(this,ue),e)}};te=new WeakMap,re=new WeakMap,ne=new WeakMap,oe=new WeakMap,se=new WeakMap,ie=new WeakMap,ae=new WeakMap,le=new WeakMap,de=new WeakMap,ce=new WeakMap,ue=new WeakMap;let Fe=Be;var he;const Ke=class Ke{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,he,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(e){return new Ke(e,U.get())}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===yt||e.key===bt)&&(e.preventDefault(),this.root.handleClose())}get props(){return c(l(this,he))}set props(e){b(l(this,he),e)}};he=new WeakMap;let ke=Ke;var pe;const ze=class ze{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,pe,N(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.root.titleId=this.opts.id.current,this.attachment=_e(this.opts.ref),Te.pre(()=>this.opts.id.current,s=>{this.root.titleId=s})}static create(e){return new ze(e,U.get())}get props(){return c(l(this,pe))}set props(e){b(l(this,pe),e)}};pe=new WeakMap;let Ee=ze;var ge;const Ge=class Ge{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,ge,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.root.descriptionId=this.opts.id.current,this.attachment=_e(this.opts.ref,s=>{this.root.descriptionNode=s}),Te.pre(()=>this.opts.id.current,s=>{this.root.descriptionId=s})}static create(e){return new Ge(e,U.get())}get props(){return c(l(this,ge))}set props(e){b(l(this,ge),e)}};ge=new WeakMap;let De=Ge;var fe,ve;const Ue=class Ue{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,fe,N(()=>({open:this.root.opts.open.current})));O(this,ve,N(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...$e(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref,s=>{this.root.contentNode=s,this.root.contentId=s?.id})}static create(e){return new Ue(e,U.get())}get snippetProps(){return c(l(this,fe))}set snippetProps(e){b(l(this,fe),e)}get props(){return c(l(this,ve))}set props(e){b(l(this,ve),e)}get shouldRender(){return this.root.contentPresence.shouldRender}};fe=new WeakMap,ve=new WeakMap;let Me=Ue;var me,ye;const We=class We{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,me,N(()=>({open:this.root.opts.open.current})));O(this,ye,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...$e(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref,s=>this.root.overlayNode=s)}static create(e){return new We(e,U.get())}get snippetProps(){return c(l(this,me))}set snippetProps(e){b(l(this,me),e)}get props(){return c(l(this,ye))}set props(e){b(l(this,ye),e)}get shouldRender(){return this.root.overlayPresence.shouldRender}};me=new WeakMap,ye=new WeakMap;let Re=We;var At=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","level"]),Ft=Y("<div><!></div>");function kt(n,e){const r=be();if(new.target)return W({component:kt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"ref",15,null),u=i(e,"child",7),v=i(e,"children",7),m=i(e,"level",7,2),w=L(e,At);const p=Ee.create({id:_(()=>s()),level:_(()=>m()),ref:_(()=>g(),t=>g(t))}),f=N(()=>B(w,p.props));var S={get id(){return s()},set id(t=R(r)){s(t),a()},get ref(){return g()},set ref(t=null){g(t),a()},get child(){return u()},set child(t){u(t),a()},get children(){return v()},set children(t){v(t),a()},get level(){return m()},set level(t=2){m(t),a()},$set:X,$on:(t,h)=>j(e,t,h)},P=A(),F=x(P);{var I=t=>{var h=A(),D=x(h);E(D,u,()=>({props:c(f)})),C(t,h)},o=t=>{var h=Ft();Pe(h,()=>({...c(f)}));var D=Ce(h);E(D,()=>v()??Q),Oe(h),C(t,h)};z(F,t=>{u()?t(I):t(o,-1)})}return C(n,P),H(S)}var Et=new Set(["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]),Dt=Y("<div><!></div>");function Mt(n,e){const r=be();if(new.target)return W({component:Mt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"forceMount",7,!1),u=i(e,"child",7),v=i(e,"children",7),m=i(e,"ref",15,null),w=L(e,Et);const p=Re.create({id:_(()=>s()),ref:_(()=>m(),o=>m(o))}),f=N(()=>B(w,p.props));var S={get id(){return s()},set id(o=R(r)){s(o),a()},get forceMount(){return g()},set forceMount(o=!1){g(o),a()},get child(){return u()},set child(o){u(o),a()},get children(){return v()},set children(o){v(o),a()},get ref(){return m()},set ref(o=null){m(o),a()},$set:X,$on:(o,t)=>j(e,o,t)},P=A(),F=x(P);{var I=o=>{var t=A(),h=x(t);{var D=K=>{var T=A(),d=x(T);{let V=N(()=>({props:B(c(f)),...p.snippetProps}));E(d,u,()=>c(V))}C(K,T)},we=K=>{var T=Dt();Pe(T,V=>({...V}),[()=>B(c(f))]);var d=Ce(T);E(d,()=>v()??Q,()=>p.snippetProps),Oe(T),C(K,T)};z(h,K=>{u()?K(D):K(we,-1)})}C(o,t)};z(F,o=>{(p.shouldRender||g())&&o(I)})}return C(n,P),H(S)}var Rt=new Set(["$$slots","$$events","$$legacy","id","children","child","ref"]),Tt=Y("<div><!></div>");function Bt(n,e){const r=be();if(new.target)return W({component:Bt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"children",7),u=i(e,"child",7),v=i(e,"ref",15,null),m=L(e,Rt);const w=De.create({id:_(()=>s()),ref:_(()=>v(),o=>v(o))}),p=N(()=>B(m,w.props));var f={get id(){return s()},set id(o=R(r)){s(o),a()},get children(){return g()},set children(o){g(o),a()},get child(){return u()},set child(o){u(o),a()},get ref(){return v()},set ref(o=null){v(o),a()},$set:X,$on:(o,t)=>j(e,o,t)},S=A(),P=x(S);{var F=o=>{var t=A(),h=x(t);E(h,u,()=>({props:c(p)})),C(o,t)},I=o=>{var t=Tt();Pe(t,()=>({...c(p)}));var h=Ce(t);E(h,()=>g()??Q),Oe(t),C(o,t)};z(P,o=>{u()?o(F):o(I,-1)})}return C(n,S),H(f)}function et(n,e){if(new.target)return W({component:et,...n});q(e,!0);let r=i(e,"open",15,!1),s=i(e,"onOpenChange",7,k),g=i(e,"onOpenChangeComplete",7,k),u=i(e,"children",7);Fe.create({variant:_(()=>"dialog"),open:_(()=>r(),p=>{r(p),s()(p)}),onOpenChangeComplete:_(()=>g())});var v={get open(){return r()},set open(p=!1){r(p),a()},get onOpenChange(){return s()},set onOpenChange(p=k){s(p),a()},get onOpenChangeComplete(){return g()},set onOpenChangeComplete(p=k){g(p),a()},get children(){return u()},set children(p){u(p),a()},$set:X,$on:(p,f)=>j(e,p,f)},m=A(),w=x(m);return E(w,()=>u()??Q),C(n,m),H(v)}var Kt=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]),zt=Y("<button><!></button>");function Gt(n,e){const r=be();if(new.target)return W({component:Gt,...n});q(e,!0);let s=i(e,"children",7),g=i(e,"child",7),u=i(e,"id",23,()=>R(r)),v=i(e,"ref",15,null),m=i(e,"disabled",7,!1),w=L(e,Kt);const p=ke.create({variant:_(()=>"close"),id:_(()=>u()),ref:_(()=>v(),t=>v(t)),disabled:_(()=>!!m())}),f=N(()=>B(w,p.props));var S={get children(){return s()},set children(t){s(t),a()},get child(){return g()},set child(t){g(t),a()},get id(){return u()},set id(t=R(r)){u(t),a()},get ref(){return v()},set ref(t=null){v(t),a()},get disabled(){return m()},set disabled(t=!1){m(t),a()},$set:X,$on:(t,h)=>j(e,t,h)},P=A(),F=x(P);{var I=t=>{var h=A(),D=x(h);E(D,g,()=>({props:c(f)})),C(t,h)},o=t=>{var h=zt();Pe(h,()=>({...c(f)}));var D=Ce(h);E(D,()=>s()??Q),Oe(h),C(t,h)};z(F,t=>{g()?t(I):t(o,-1)})}return C(n,P),H(S)}var Ut=new Set(["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]),Wt=Y("<!> <!>",1),Xt=Y("<!> <div><!></div>",1);function jt(n,e){const r=be();if(new.target)return W({component:jt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"children",7),u=i(e,"child",7),v=i(e,"ref",15,null),m=i(e,"forceMount",7,!1),w=i(e,"onCloseAutoFocus",7,k),p=i(e,"onOpenAutoFocus",7,k),f=i(e,"onEscapeKeydown",7,k),S=i(e,"onInteractOutside",7,k),P=i(e,"trapFocus",7,!0),F=i(e,"preventScroll",7,!0),I=i(e,"restoreScrollDelay",7,null),o=L(e,Ut);const t=Me.create({id:_(()=>s()),ref:_(()=>v(),d=>v(d))}),h=N(()=>B(o,t.props));var D={get id(){return s()},set id(d=R(r)){s(d),a()},get children(){return g()},set children(d){g(d),a()},get child(){return u()},set child(d){u(d),a()},get ref(){return v()},set ref(d=null){v(d),a()},get forceMount(){return m()},set forceMount(d=!1){m(d),a()},get onCloseAutoFocus(){return w()},set onCloseAutoFocus(d=k){w(d),a()},get onOpenAutoFocus(){return p()},set onOpenAutoFocus(d=k){p(d),a()},get onEscapeKeydown(){return f()},set onEscapeKeydown(d=k){f(d),a()},get onInteractOutside(){return S()},set onInteractOutside(d=k){S(d),a()},get trapFocus(){return P()},set trapFocus(d=!0){P(d),a()},get preventScroll(){return F()},set preventScroll(d=!0){F(d),a()},get restoreScrollDelay(){return I()},set restoreScrollDelay(d=null){I(d),a()},$set:X,$on:(d,V)=>j(e,d,V)},we=A(),K=x(we);{var T=d=>{Ct(d,{get ref(){return t.opts.ref},loop:!0,get trapFocus(){return P()},get enabled(){return t.root.opts.open.current},get onOpenAutoFocus(){return p()},get onCloseAutoFocus(){return w()},focusScope:(nt,ot)=>{let Xe=()=>(ot?.()).props;Ot(nt,Ne(()=>c(h),{get enabled(){return t.root.opts.open.current},get ref(){return t.opts.ref},onEscapeKeydown:Se=>{f()(Se),!Se.defaultPrevented&&t.root.handleClose()},children:(Se,Lt)=>{Pt(Se,Ne(()=>c(h),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},onInteractOutside:xe=>{S()(xe),!xe.defaultPrevented&&t.root.handleClose()},children:(xe,Yt)=>{_t(xe,Ne(()=>c(h),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},children:(st,Zt)=>{var je=A(),it=x(je);{var at=J=>{var Z=Wt(),$=x(Z);{var ee=G=>{Ve(G,{get preventScroll(){return F()},get restoreScrollDelay(){return I()}})};z($,G=>{t.root.opts.open.current&&G(ee)})}var Ae=He($,2);{let G=N(()=>({props:B(c(h),Xe()),...t.snippetProps}));E(Ae,u,()=>c(G))}C(J,Z)},lt=J=>{var Z=Xt(),$=x(Z);Ve($,{get preventScroll(){return F()}});var ee=He($,2);Pe(ee,G=>({...G}),[()=>B(c(h),Xe())]);var Ae=Ce(ee);E(Ae,()=>g()??Q),Oe(ee),C(J,Z)};z(it,J=>{u()?J(at):J(lt,-1)})}C(st,je)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};z(K,d=>{(t.shouldRender||m())&&d(T)})}return C(n,we),H(D)}const tt=Symbol("overlay-open"),rt=Symbol("overlay-static"),Je={tier:"moderate",x:0,y:0,scale:1,opacity:0},Le={tier:"slow",x:0,y:8,scale:.97,opacity:0},qt={top:{x:0,y:"-100%"},right:{x:"100%",y:0},bottom:{x:0,y:"100%"},left:{x:"-100%",y:0}},dr={backdrop:{enter:Je,exit:Je},dialog:{enter:Le,exit:Le},sheet(n){const e={tier:"slow",scale:1,opacity:1,...qt[n]};return{enter:e,exit:e}}};function Ht(n){Ze(tt,n)}function cr(){const n=Ye(tt);if(!n)throw new Error("Dialog or Sheet Content must be nested inside its Root.");return n}function Qt(n){Ze(rt,n)}function ur(){return Ye(rt)??(()=>!1)}function hr(n){let e=M(ht(n()));return pt(()=>{if(n()){b(e,!0);return}if(!c(e))return;const r=window.setTimeout(()=>b(e,!1),xt(Nt.slow));return()=>window.clearTimeout(r)}),{get mounted(){return c(e)},finishExit(){n()||b(e,!1)}}}var Vt=new Set(["$$slots","$$events","$$legacy","open","staticPosition","children","onOpenChange"]);function Jt(n,e){if(new.target)return W({component:Jt,...n});q(e,!0);let r=i(e,"open",15,!1),s=i(e,"staticPosition",7,!1),g=i(e,"children",7),u=i(e,"onOpenChange",7),v=L(e,Vt);Ht(()=>r()),Qt(()=>s()),St(()=>{r(!1),u()?.(!1)});var m={get open(){return r()},set open(f=!1){r(f),a()},get staticPosition(){return s()},set staticPosition(f=!1){s(f),a()},get children(){return g()},set children(f){g(f),a()},get onOpenChange(){return u()},set onOpenChange(f){u(f),a()},$set:X,$on:(f,S)=>j(e,f,S)},w=A(),p=x(w);return wt(p,()=>et,(f,S)=>{S(f,Ne({get onOpenChange(){return u()}},()=>v,{get open(){return r()},set open(P){r(P)},children:(P,F)=>{var I=A(),o=x(I);E(o,()=>g()??Q),C(P,I)},$$slots:{default:!0}}))}),C(n,w),H(m)}export{Gt as D,Jt as O,jt as a,Bt as b,Mt as c,kt as d,hr as e,ur as f,dr as o,cr as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var $c=Object.defineProperty;var td=Object.getPrototypeOf;var ed=Reflect.get;var Au=n=>{throw TypeError(n)};var nd=(n,t,e)=>t in n?$c(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var C=(n,t,e)=>nd(n,typeof t!="symbol"?t+"":t,e),Xs=(n,t,e)=>t.has(n)||Au("Cannot "+e);var o=(n,t,e)=>(Xs(n,t,"read from private field"),e?e.call(n):t.get(n)),p=(n,t,e)=>t.has(n)?Au("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),S=(n,t,e,r)=>(Xs(n,t,"write to private field"),r?r.call(n,e):t.set(n,e),e),E=(n,t,e)=>(Xs(n,t,"access private method"),e);var Pu=(n,t,e,r)=>({set _(i){S(n,t,i,e)},get _(){return o(n,t,r)}}),Eu=(n,t,e)=>ed(td(n),e,t);import{t as ct,bo as l,bw as dt,b as ht,br as Nr,bp as Rn}from"./
|
|
1
|
+
var $c=Object.defineProperty;var td=Object.getPrototypeOf;var ed=Reflect.get;var Au=n=>{throw TypeError(n)};var nd=(n,t,e)=>t in n?$c(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var C=(n,t,e)=>nd(n,typeof t!="symbol"?t+"":t,e),Xs=(n,t,e)=>t.has(n)||Au("Cannot "+e);var o=(n,t,e)=>(Xs(n,t,"read from private field"),e?e.call(n):t.get(n)),p=(n,t,e)=>t.has(n)?Au("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),S=(n,t,e,r)=>(Xs(n,t,"write to private field"),r?r.call(n,e):t.set(n,e),e),E=(n,t,e)=>(Xs(n,t,"access private method"),e);var Pu=(n,t,e,r)=>({set _(i){S(n,t,i,e)},get _(){return o(n,t,r)}}),Eu=(n,t,e)=>ed(td(n),e,t);import{t as ct,bo as l,bw as dt,b as ht,br as Nr,bp as Rn}from"./51_h0jm2.js";import{A as rd,bV as Y,c8 as Iu,ao as Cn,bY as Un,bU as id,b5 as Oo,aD as f,bH as P,aV as Cr,c9 as M,br as Ln,aa as pl,bi as mt,aM as od,aG as na,bI as sd,cb as ad,ca as xt,c5 as _r,c0 as ud,bs as ft,a7 as tt,ay as J,bf as at,W as R,bn as gt,aA as c,aF as ld,bb as cd,c3 as dd,at as ml,bk as hd,bS as Re,aB as At,bo as Ha,a5 as St,bA as wt,b$ as vl,b_ as Wn,bO as ra,bl as fd,be as gd}from"./CJxGDkBm.js";import{i as bt}from"./PXCFrn2V.js";import{s as ot}from"./DxvSggY5.js";import{d as Gs,b as Se,e as mn,c as Wo,f as Dr}from"./CpPNoOk-.js";import{b as bl}from"./NtFyWdpR.js";import{g as pd,I as md}from"./Bjy4ygfJ.js";import{J as vd,f as bd,o as yd,g as wd,n as xd}from"./CF1Tu_8c.js";import{c as Or}from"./DGmOjLYi.js";import{k as Cd}from"./C9UsZ4re.js";function Od(){return Symbol(rd)}var ve,re,be,Qo,de,Pr,Po;const su=class su extends Map{constructor(e){super();p(this,de);p(this,ve,new Map);p(this,re,Y(0));p(this,be,Y(0));p(this,Qo,Iu||-1);if(Cn&&(e=new Map(e),Un(o(this,re),"SvelteMap version"),Un(o(this,be),"SvelteMap.size")),e){for(var[r,i]of e)super.set(r,i);o(this,be).v=super.size}}has(e){var r=o(this,ve),i=r.get(e);if(i===void 0)if(super.has(e))i=E(this,de,Pr).call(this,0),Cn&&Un(i,`SvelteMap get(${Oo(e)})`),r.set(e,i);else return f(o(this,re)),!1;return f(i),!0}forEach(e,r){E(this,de,Po).call(this),super.forEach(e,r)}get(e){var r=o(this,ve),i=r.get(e);if(i===void 0)if(super.has(e))i=E(this,de,Pr).call(this,0),Cn&&Un(i,`SvelteMap get(${Oo(e)})`),r.set(e,i);else{f(o(this,re));return}return f(i),super.get(e)}getOrInsert(e,r){return super.has(e)||this.set(e,r),this.get(e)}getOrInsertComputed(e,r){return super.has(e)||this.set(e,r(e)),this.get(e)}set(e,r){var i=o(this,ve),s=i.get(e),a=super.get(e),u=super.set(e,r),d=o(this,re);if(s===void 0)s=E(this,de,Pr).call(this,0),Cn&&Un(s,`SvelteMap get(${Oo(e)})`),i.set(e,s),P(o(this,be),super.size),Cr(d);else if(a!==r){Cr(s);var g=d.reactions===null?null:new Set(d.reactions),m=g===null||!s.reactions?.every(h=>g.has(h));m&&Cr(d)}return u}delete(e){var r=o(this,ve),i=r.get(e),s=super.delete(e);return i!==void 0&&(r.delete(e),P(i,-1)),s&&(P(o(this,be),super.size),Cr(o(this,re))),s}clear(){if(super.size!==0){super.clear();var e=o(this,ve);P(o(this,be),0);for(var r of e.values())P(r,-1);Cr(o(this,re)),e.clear()}}keys(){return f(o(this,re)),super.keys()}values(){return E(this,de,Po).call(this),super.values()}entries(){return E(this,de,Po).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return f(o(this,be)),super.size}};ve=new WeakMap,re=new WeakMap,be=new WeakMap,Qo=new WeakMap,de=new WeakSet,Pr=function(e){return Iu===o(this,Qo)?Y(e):id(e)},Po=function(){f(o(this,re));var e=o(this,ve);if(o(this,be).v!==e.size){for(var r of Eu(su.prototype,this,"keys").call(this))if(!e.has(r)){var i=E(this,de,Pr).call(this,0);Cn&&Un(i,`SvelteMap get(${Oo(r)})`),e.set(r,i)}}for([,i]of o(this,ve))f(i)};let ia=su;function Td(n){return typeof n=="function"}function vo(n){return n!==null&&typeof n=="object"}const Sd=["string","number","bigint","boolean"];function oa(n){return n==null||Sd.includes(typeof n)?!0:Array.isArray(n)?n.every(t=>oa(t)):typeof n=="object"?Object.getPrototypeOf(n)===Object.prototype:!1}const pr=Symbol("box"),_s=Symbol("is-writable");function W(n,t){const e=M(n);return t?{[pr]:!0,[_s]:!0,get current(){return f(e)},set current(r){t(r)}}:{[pr]:!0,get current(){return n()}}}function bo(n){return vo(n)&&pr in n}function Ra(n){return bo(n)&&_s in n}function yl(n){return bo(n)?n:Td(n)?W(n):Zt(n)}function Ad(n){return Object.entries(n).reduce((t,[e,r])=>bo(r)?(Ra(r)?Object.defineProperty(t,e,{get(){return r.current},set(i){r.current=i}}):Object.defineProperty(t,e,{get(){return r.current}}),t):Object.assign(t,{[e]:r}),{})}function Pd(n){return Ra(n)?{[pr]:!0,get current(){return n.current}}:n}function Zt(n){let t=Y(Ln(n));return{[pr]:!0,[_s]:!0,get current(){return f(t)},set current(e){P(t,e,!0)}}}function Vn(n){let t=Y(Ln(n));return{[pr]:!0,[_s]:!0,get current(){return f(t)},set current(e){P(t,e,!0)}}}Vn.from=yl;Vn.with=W;Vn.flatten=Ad;Vn.readonly=Pd;Vn.isBox=bo;Vn.isWritableBox=Ra;function wl(...n){return function(t){for(const e of n)if(e){if(t.defaultPrevented)return;typeof e=="function"?e.call(this,t):e.current?.call(this,t)}}}var Fu=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Ed=/\n/g,Id=/^\s*/,Fd=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Dd=/^:\s*/,Md=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,kd=/^[;\s]*/,Nd=/^\s+|\s+$/g,_d=`
|
|
2
2
|
`,Du="/",Mu="*",On="",Bd="comment",Ld="declaration";function Wd(n,t){if(typeof n!="string")throw new TypeError("First argument must be a string");if(!n)return[];t=t||{};var e=1,r=1;function i(x){var b=x.match(Ed);b&&(e+=b.length);var A=x.lastIndexOf(_d);r=~A?x.length-A:r+x.length}function s(){var x={line:e,column:r};return function(b){return b.position=new a(x),g(),b}}function a(x){this.start=x,this.end={line:e,column:r},this.source=t.source}a.prototype.content=n;function u(x){var b=new Error(t.source+":"+e+":"+r+": "+x);if(b.reason=x,b.filename=t.source,b.line=e,b.column=r,b.source=n,!t.silent)throw b}function d(x){var b=x.exec(n);if(b){var A=b[0];return i(A),n=n.slice(A.length),b}}function g(){d(Id)}function m(x){var b;for(x=x||[];b=h();)b!==!1&&x.push(b);return x}function h(){var x=s();if(!(Du!=n.charAt(0)||Mu!=n.charAt(1))){for(var b=2;On!=n.charAt(b)&&(Mu!=n.charAt(b)||Du!=n.charAt(b+1));)++b;if(b+=2,On===n.charAt(b-1))return u("End of comment missing");var A=n.slice(2,b-2);return r+=2,i(A),n=n.slice(b),r+=2,x({type:Bd,comment:A})}}function v(){var x=s(),b=d(Fd);if(b){if(h(),!d(Dd))return u("property missing ':'");var A=d(Md),D=x({type:Ld,property:ku(b[0].replace(Fu,On)),value:A?ku(A[0].replace(Fu,On)):On});return d(kd),D}}function y(){var x=[];m(x);for(var b;b=v();)b!==!1&&(x.push(b),m(x));return x}return g(),y()}function ku(n){return n?n.replace(Nd,On):On}function Kd(n,t){let e=null;if(!n||typeof n!="string")return e;const r=Wd(n),i=typeof t=="function";return r.forEach(s=>{if(s.type!=="declaration")return;const{property:a,value:u}=s;i?t(a,u,s):u&&(e=e||{},e[a]=u)}),e}const Hd=/\d/,Rd=["-","_","/","."];function Vd(n=""){if(!Hd.test(n))return n!==n.toLowerCase()}function zd(n){const t=[];let e="",r,i;for(const s of n){const a=Rd.includes(s);if(a===!0){t.push(e),e="",r=void 0;continue}const u=Vd(s);if(i===!1){if(r===!1&&u===!0){t.push(e),e=s,r=u;continue}if(r===!0&&u===!1&&e.length>1){const d=e.at(-1);t.push(e.slice(0,Math.max(0,e.length-1))),e=d+s,r=u;continue}}e+=s,r=u,i=a}return t.push(e),t}function xl(n){return n?zd(n).map(t=>jd(t)).join(""):""}function Ud(n){return Yd(xl(n||""))}function jd(n){return n?n[0].toUpperCase()+n.slice(1):""}function Yd(n){return n?n[0].toLowerCase()+n.slice(1):""}function Er(n){if(!n)return{};const t={};function e(r,i){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){t[xl(r)]=i;return}if(r.startsWith("--")){t[r]=i;return}t[Ud(r)]=i}return Kd(n,e),t}function Xn(...n){return(...t)=>{for(const e of n)typeof e=="function"&&e(...t)}}function Xd(n,t){const e=RegExp(n,"g");return r=>{if(typeof r!="string")throw new TypeError(`expected an argument of type string, but got ${typeof r}`);return r.match(e)?r.replace(e,t):r}}const Gd=Xd(/[A-Z]/,n=>`-${n.toLowerCase()}`);function qd(n){if(!n||typeof n!="object"||Array.isArray(n))throw new TypeError(`expected an argument of type object, but got ${typeof n}`);return Object.keys(n).map(t=>`${Gd(t)}: ${n[t]};`).join(`
|
|
3
3
|
`)}function Cl(n={}){return qd(n).replace(`
|
|
4
4
|
`," ")}const Zd=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],Jd=new Set(Zd);function Qd(n){return Jd.has(n)}function Te(...n){const t={...n[0]};for(let e=1;e<n.length;e++){const r=n[e];if(r){for(const i of Object.keys(r)){const s=t[i],a=r[i],u=typeof s=="function",d=typeof a=="function";if(u&&Qd(i)){const g=s,m=a;t[i]=wl(g,m)}else if(u&&d)t[i]=Xn(s,a);else if(i==="class"){const g=oa(s),m=oa(a);g&&m?t[i]=Gs(s,a):g?t[i]=Gs(s):m&&(t[i]=Gs(a))}else if(i==="style"){const g=typeof s=="object",m=typeof a=="object",h=typeof s=="string",v=typeof a=="string";if(g&&m)t[i]={...s,...a};else if(g&&v){const y=Er(a);t[i]={...s,...y}}else if(h&&m){const y=Er(s);t[i]={...y,...a}}else if(h&&v){const y=Er(s),x=Er(a);t[i]={...y,...x}}else g?t[i]=s:m?t[i]=a:h?t[i]=s:v&&(t[i]=a)}else t[i]=a!==void 0?a:s}for(const i of Object.getOwnPropertySymbols(r)){const s=t[i],a=r[i];t[i]=a!==void 0?a:s}}}return typeof t.style=="object"&&(t.style=Cl(t.style).replaceAll(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as Ie}from"./qHf9sK0w.js";import{aZ as Me,U as Be,V as Ve,a_ as Ye,b as d,X as Ot,ay as de,B as Fe,h as Ue,al as je,o as Nt,b5 as ze,aV as me,aW as Jt,bi as We,z as te,n as pe}from"./Bu3w6q3q.js";var jt=(function(){var t=d(function(_t,m,x,E){for(x=x||{},E=_t.length;E--;x[_t[E]]=m);return x},"o"),e=[1,24],a=[1,25],i=[1,26],u=[1,27],r=[1,28],n=[1,63],l=[1,64],s=[1,65],h=[1,66],y=[1,67],p=[1,68],g=[1,69],v=[1,29],w=[1,30],N=[1,31],O=[1,32],P=[1,33],I=[1,34],X=[1,35],q=[1,36],H=[1,37],Q=[1,38],K=[1,39],G=[1,40],Z=[1,41],J=[1,42],$=[1,43],tt=[1,44],et=[1,45],nt=[1,46],st=[1,47],at=[1,48],rt=[1,50],it=[1,51],ot=[1,52],lt=[1,53],ct=[1,54],ut=[1,55],ht=[1,56],dt=[1,57],pt=[1,58],ft=[1,59],yt=[1,60],kt=[14,42],Xt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Pt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],S=[1,82],T=[1,83],k=[1,84],C=[1,85],R=[12,14,42],oe=[12,14,33,42],Bt=[12,14,33,42,76,77,79,80],xt=[12,33],qt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ht={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:d(function(m,x,E,_,D,o,Dt){var f=o.length-1;switch(D){case 3:_.setDirection("TB");break;case 4:_.setDirection("BT");break;case 5:_.setDirection("RL");break;case 6:_.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:_.setC4Type(o[f-3]);break;case 19:_.setTitle(o[f].substring(6)),this.$=o[f].substring(6);break;case 20:_.setAccDescription(o[f].substring(15)),this.$=o[f].substring(15);break;case 21:this.$=o[f].trim(),_.setTitle(this.$);break;case 22:case 23:this.$=o[f].trim(),_.setAccDescription(this.$);break;case 28:o[f].splice(2,0,"ENTERPRISE"),_.addPersonOrSystemBoundary(...o[f]),this.$=o[f];break;case 29:o[f].splice(2,0,"SYSTEM"),_.addPersonOrSystemBoundary(...o[f]),this.$=o[f];break;case 30:_.addPersonOrSystemBoundary(...o[f]),this.$=o[f];break;case 31:o[f].splice(2,0,"CONTAINER"),_.addContainerBoundary(...o[f]),this.$=o[f];break;case 32:_.addDeploymentNode("node",...o[f]),this.$=o[f];break;case 33:_.addDeploymentNode("nodeL",...o[f]),this.$=o[f];break;case 34:_.addDeploymentNode("nodeR",...o[f]),this.$=o[f];break;case 35:_.popBoundaryParseStack();break;case 39:_.addPersonOrSystem("person",...o[f]),this.$=o[f];break;case 40:_.addPersonOrSystem("external_person",...o[f]),this.$=o[f];break;case 41:_.addPersonOrSystem("system",...o[f]),this.$=o[f];break;case 42:_.addPersonOrSystem("system_db",...o[f]),this.$=o[f];break;case 43:_.addPersonOrSystem("system_queue",...o[f]),this.$=o[f];break;case 44:_.addPersonOrSystem("external_system",...o[f]),this.$=o[f];break;case 45:_.addPersonOrSystem("external_system_db",...o[f]),this.$=o[f];break;case 46:_.addPersonOrSystem("external_system_queue",...o[f]),this.$=o[f];break;case 47:_.addContainer("container",...o[f]),this.$=o[f];break;case 48:_.addContainer("container_db",...o[f]),this.$=o[f];break;case 49:_.addContainer("container_queue",...o[f]),this.$=o[f];break;case 50:_.addContainer("external_container",...o[f]),this.$=o[f];break;case 51:_.addContainer("external_container_db",...o[f]),this.$=o[f];break;case 52:_.addContainer("external_container_queue",...o[f]),this.$=o[f];break;case 53:_.addComponent("component",...o[f]),this.$=o[f];break;case 54:_.addComponent("component_db",...o[f]),this.$=o[f];break;case 55:_.addComponent("component_queue",...o[f]),this.$=o[f];break;case 56:_.addComponent("external_component",...o[f]),this.$=o[f];break;case 57:_.addComponent("external_component_db",...o[f]),this.$=o[f];break;case 58:_.addComponent("external_component_queue",...o[f]),this.$=o[f];break;case 60:_.addRel("rel",...o[f]),this.$=o[f];break;case 61:_.addRel("birel",...o[f]),this.$=o[f];break;case 62:_.addRel("rel_u",...o[f]),this.$=o[f];break;case 63:_.addRel("rel_d",...o[f]),this.$=o[f];break;case 64:_.addRel("rel_l",...o[f]),this.$=o[f];break;case 65:_.addRel("rel_r",...o[f]),this.$=o[f];break;case 66:_.addRel("rel_b",...o[f]),this.$=o[f];break;case 67:o[f].splice(0,1),_.addRel("rel",...o[f]),this.$=o[f];break;case 68:_.updateElStyle("update_el_style",...o[f]),this.$=o[f];break;case 69:_.updateRelStyle("update_rel_style",...o[f]),this.$=o[f];break;case 70:_.updateLayoutConfig("update_layout_config",...o[f]),this.$=o[f];break;case 71:this.$=[o[f]];break;case 72:o[f].unshift(o[f-1]),this.$=o[f];break;case 73:case 75:this.$=o[f].trim();break;case 74:let vt={};vt[o[f-1].trim()]=o[f].trim(),this.$=vt;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:70,19:20,20:21,21:22,22:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:71,19:20,20:21,21:22,22:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:72,19:20,20:21,21:22,22:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:73,19:20,20:21,21:22,22:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{14:[1,74]},t(kt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:n,36:l,37:s,38:h,39:y,40:p,41:g,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt}),t(kt,[2,14]),t(Xt,[2,16],{12:[1,76]}),t(kt,[2,36],{12:[1,77]}),t(Pt,[2,19]),t(Pt,[2,20]),{25:[1,78]},{27:[1,79]},t(Pt,[2,23]),{35:80,75:81,76:S,77:T,79:k,80:C},{35:86,75:81,76:S,77:T,79:k,80:C},{35:87,75:81,76:S,77:T,79:k,80:C},{35:88,75:81,76:S,77:T,79:k,80:C},{35:89,75:81,76:S,77:T,79:k,80:C},{35:90,75:81,76:S,77:T,79:k,80:C},{35:91,75:81,76:S,77:T,79:k,80:C},{35:92,75:81,76:S,77:T,79:k,80:C},{35:93,75:81,76:S,77:T,79:k,80:C},{35:94,75:81,76:S,77:T,79:k,80:C},{35:95,75:81,76:S,77:T,79:k,80:C},{35:96,75:81,76:S,77:T,79:k,80:C},{35:97,75:81,76:S,77:T,79:k,80:C},{35:98,75:81,76:S,77:T,79:k,80:C},{35:99,75:81,76:S,77:T,79:k,80:C},{35:100,75:81,76:S,77:T,79:k,80:C},{35:101,75:81,76:S,77:T,79:k,80:C},{35:102,75:81,76:S,77:T,79:k,80:C},{35:103,75:81,76:S,77:T,79:k,80:C},{35:104,75:81,76:S,77:T,79:k,80:C},t(R,[2,59]),{35:105,75:81,76:S,77:T,79:k,80:C},{35:106,75:81,76:S,77:T,79:k,80:C},{35:107,75:81,76:S,77:T,79:k,80:C},{35:108,75:81,76:S,77:T,79:k,80:C},{35:109,75:81,76:S,77:T,79:k,80:C},{35:110,75:81,76:S,77:T,79:k,80:C},{35:111,75:81,76:S,77:T,79:k,80:C},{35:112,75:81,76:S,77:T,79:k,80:C},{35:113,75:81,76:S,77:T,79:k,80:C},{35:114,75:81,76:S,77:T,79:k,80:C},{35:115,75:81,76:S,77:T,79:k,80:C},{20:116,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{12:[1,118],33:[1,117]},{35:119,75:81,76:S,77:T,79:k,80:C},{35:120,75:81,76:S,77:T,79:k,80:C},{35:121,75:81,76:S,77:T,79:k,80:C},{35:122,75:81,76:S,77:T,79:k,80:C},{35:123,75:81,76:S,77:T,79:k,80:C},{35:124,75:81,76:S,77:T,79:k,80:C},{35:125,75:81,76:S,77:T,79:k,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(kt,[2,15]),t(Xt,[2,17],{21:22,19:130,22:e,23:a,24:i,26:u,28:r}),t(kt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:a,24:i,26:u,28:r,34:n,36:l,37:s,38:h,39:y,40:p,41:g,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt}),t(Pt,[2,21]),t(Pt,[2,22]),t(R,[2,39]),t(oe,[2,71],{75:81,35:132,76:S,77:T,79:k,80:C}),t(Bt,[2,73]),{78:[1,133]},t(Bt,[2,75]),t(Bt,[2,76]),t(R,[2,40]),t(R,[2,41]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(R,[2,52]),t(R,[2,53]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),t(R,[2,57]),t(R,[2,58]),t(R,[2,60]),t(R,[2,61]),t(R,[2,62]),t(R,[2,63]),t(R,[2,64]),t(R,[2,65]),t(R,[2,66]),t(R,[2,67]),t(R,[2,68]),t(R,[2,69]),t(R,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(xt,[2,28]),t(xt,[2,29]),t(xt,[2,30]),t(xt,[2,31]),t(xt,[2,32]),t(xt,[2,33]),t(xt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(Xt,[2,18]),t(kt,[2,38]),t(oe,[2,72]),t(Bt,[2,74]),t(R,[2,24]),t(R,[2,35]),t(qt,[2,25]),t(qt,[2,26],{12:[1,138]}),t(qt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:d(function(m,x){if(x.recoverable)this.trace(m);else{var E=new Error(m);throw E.hash=x,E}},"parseError"),parse:d(function(m){var x=this,E=[0],_=[],D=[null],o=[],Dt=this.table,f="",vt=0,le=0,De=2,ce=1,Ne=o.slice.call(arguments,1),A=Object.create(this.lexer),Et={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(Et.yy[Qt]=this.yy[Qt]);A.setInput(m,Et.yy),Et.yy.lexer=A,Et.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var Kt=A.yylloc;o.push(Kt);var Ae=A.options&&A.options.ranges;typeof Et.yy.parseError=="function"?this.parseError=Et.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(B){E.length=E.length-2*B,D.length=D.length-B,o.length=o.length-B}d(Le,"popStack");function ue(){var B;return B=_.pop()||A.lex()||ce,typeof B!="number"&&(B instanceof Array&&(_=B,B=_.pop()),B=x.symbols_[B]||B),B}d(ue,"lex");for(var M,St,V,Gt,Ct={},Yt,z,he,Ft;;){if(St=E[E.length-1],this.defaultActions[St]?V=this.defaultActions[St]:((M===null||typeof M>"u")&&(M=ue()),V=Dt[St]&&Dt[St][M]),typeof V>"u"||!V.length||!V[0]){var Zt="";Ft=[];for(Yt in Dt[St])this.terminals_[Yt]&&Yt>De&&Ft.push("'"+this.terminals_[Yt]+"'");A.showPosition?Zt="Parse error on line "+(vt+1)+`:
|
|
1
|
+
import{e as Ie}from"./B2CG0f08.js";import{aZ as Me,U as Be,V as Ve,a_ as Ye,b as d,X as Ot,ay as de,B as Fe,h as Ue,al as je,o as Nt,b5 as ze,aV as me,aW as Jt,bi as We,z as te,n as pe}from"./DrBi0w5G.js";var jt=(function(){var t=d(function(_t,m,x,E){for(x=x||{},E=_t.length;E--;x[_t[E]]=m);return x},"o"),e=[1,24],a=[1,25],i=[1,26],u=[1,27],r=[1,28],n=[1,63],l=[1,64],s=[1,65],h=[1,66],y=[1,67],p=[1,68],g=[1,69],v=[1,29],w=[1,30],N=[1,31],O=[1,32],P=[1,33],I=[1,34],X=[1,35],q=[1,36],H=[1,37],Q=[1,38],K=[1,39],G=[1,40],Z=[1,41],J=[1,42],$=[1,43],tt=[1,44],et=[1,45],nt=[1,46],st=[1,47],at=[1,48],rt=[1,50],it=[1,51],ot=[1,52],lt=[1,53],ct=[1,54],ut=[1,55],ht=[1,56],dt=[1,57],pt=[1,58],ft=[1,59],yt=[1,60],kt=[14,42],Xt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Pt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],S=[1,82],T=[1,83],k=[1,84],C=[1,85],R=[12,14,42],oe=[12,14,33,42],Bt=[12,14,33,42,76,77,79,80],xt=[12,33],qt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ht={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:d(function(m,x,E,_,D,o,Dt){var f=o.length-1;switch(D){case 3:_.setDirection("TB");break;case 4:_.setDirection("BT");break;case 5:_.setDirection("RL");break;case 6:_.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:_.setC4Type(o[f-3]);break;case 19:_.setTitle(o[f].substring(6)),this.$=o[f].substring(6);break;case 20:_.setAccDescription(o[f].substring(15)),this.$=o[f].substring(15);break;case 21:this.$=o[f].trim(),_.setTitle(this.$);break;case 22:case 23:this.$=o[f].trim(),_.setAccDescription(this.$);break;case 28:o[f].splice(2,0,"ENTERPRISE"),_.addPersonOrSystemBoundary(...o[f]),this.$=o[f];break;case 29:o[f].splice(2,0,"SYSTEM"),_.addPersonOrSystemBoundary(...o[f]),this.$=o[f];break;case 30:_.addPersonOrSystemBoundary(...o[f]),this.$=o[f];break;case 31:o[f].splice(2,0,"CONTAINER"),_.addContainerBoundary(...o[f]),this.$=o[f];break;case 32:_.addDeploymentNode("node",...o[f]),this.$=o[f];break;case 33:_.addDeploymentNode("nodeL",...o[f]),this.$=o[f];break;case 34:_.addDeploymentNode("nodeR",...o[f]),this.$=o[f];break;case 35:_.popBoundaryParseStack();break;case 39:_.addPersonOrSystem("person",...o[f]),this.$=o[f];break;case 40:_.addPersonOrSystem("external_person",...o[f]),this.$=o[f];break;case 41:_.addPersonOrSystem("system",...o[f]),this.$=o[f];break;case 42:_.addPersonOrSystem("system_db",...o[f]),this.$=o[f];break;case 43:_.addPersonOrSystem("system_queue",...o[f]),this.$=o[f];break;case 44:_.addPersonOrSystem("external_system",...o[f]),this.$=o[f];break;case 45:_.addPersonOrSystem("external_system_db",...o[f]),this.$=o[f];break;case 46:_.addPersonOrSystem("external_system_queue",...o[f]),this.$=o[f];break;case 47:_.addContainer("container",...o[f]),this.$=o[f];break;case 48:_.addContainer("container_db",...o[f]),this.$=o[f];break;case 49:_.addContainer("container_queue",...o[f]),this.$=o[f];break;case 50:_.addContainer("external_container",...o[f]),this.$=o[f];break;case 51:_.addContainer("external_container_db",...o[f]),this.$=o[f];break;case 52:_.addContainer("external_container_queue",...o[f]),this.$=o[f];break;case 53:_.addComponent("component",...o[f]),this.$=o[f];break;case 54:_.addComponent("component_db",...o[f]),this.$=o[f];break;case 55:_.addComponent("component_queue",...o[f]),this.$=o[f];break;case 56:_.addComponent("external_component",...o[f]),this.$=o[f];break;case 57:_.addComponent("external_component_db",...o[f]),this.$=o[f];break;case 58:_.addComponent("external_component_queue",...o[f]),this.$=o[f];break;case 60:_.addRel("rel",...o[f]),this.$=o[f];break;case 61:_.addRel("birel",...o[f]),this.$=o[f];break;case 62:_.addRel("rel_u",...o[f]),this.$=o[f];break;case 63:_.addRel("rel_d",...o[f]),this.$=o[f];break;case 64:_.addRel("rel_l",...o[f]),this.$=o[f];break;case 65:_.addRel("rel_r",...o[f]),this.$=o[f];break;case 66:_.addRel("rel_b",...o[f]),this.$=o[f];break;case 67:o[f].splice(0,1),_.addRel("rel",...o[f]),this.$=o[f];break;case 68:_.updateElStyle("update_el_style",...o[f]),this.$=o[f];break;case 69:_.updateRelStyle("update_rel_style",...o[f]),this.$=o[f];break;case 70:_.updateLayoutConfig("update_layout_config",...o[f]),this.$=o[f];break;case 71:this.$=[o[f]];break;case 72:o[f].unshift(o[f-1]),this.$=o[f];break;case 73:case 75:this.$=o[f].trim();break;case 74:let vt={};vt[o[f-1].trim()]=o[f].trim(),this.$=vt;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:70,19:20,20:21,21:22,22:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:71,19:20,20:21,21:22,22:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:72,19:20,20:21,21:22,22:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:73,19:20,20:21,21:22,22:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{14:[1,74]},t(kt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:n,36:l,37:s,38:h,39:y,40:p,41:g,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt}),t(kt,[2,14]),t(Xt,[2,16],{12:[1,76]}),t(kt,[2,36],{12:[1,77]}),t(Pt,[2,19]),t(Pt,[2,20]),{25:[1,78]},{27:[1,79]},t(Pt,[2,23]),{35:80,75:81,76:S,77:T,79:k,80:C},{35:86,75:81,76:S,77:T,79:k,80:C},{35:87,75:81,76:S,77:T,79:k,80:C},{35:88,75:81,76:S,77:T,79:k,80:C},{35:89,75:81,76:S,77:T,79:k,80:C},{35:90,75:81,76:S,77:T,79:k,80:C},{35:91,75:81,76:S,77:T,79:k,80:C},{35:92,75:81,76:S,77:T,79:k,80:C},{35:93,75:81,76:S,77:T,79:k,80:C},{35:94,75:81,76:S,77:T,79:k,80:C},{35:95,75:81,76:S,77:T,79:k,80:C},{35:96,75:81,76:S,77:T,79:k,80:C},{35:97,75:81,76:S,77:T,79:k,80:C},{35:98,75:81,76:S,77:T,79:k,80:C},{35:99,75:81,76:S,77:T,79:k,80:C},{35:100,75:81,76:S,77:T,79:k,80:C},{35:101,75:81,76:S,77:T,79:k,80:C},{35:102,75:81,76:S,77:T,79:k,80:C},{35:103,75:81,76:S,77:T,79:k,80:C},{35:104,75:81,76:S,77:T,79:k,80:C},t(R,[2,59]),{35:105,75:81,76:S,77:T,79:k,80:C},{35:106,75:81,76:S,77:T,79:k,80:C},{35:107,75:81,76:S,77:T,79:k,80:C},{35:108,75:81,76:S,77:T,79:k,80:C},{35:109,75:81,76:S,77:T,79:k,80:C},{35:110,75:81,76:S,77:T,79:k,80:C},{35:111,75:81,76:S,77:T,79:k,80:C},{35:112,75:81,76:S,77:T,79:k,80:C},{35:113,75:81,76:S,77:T,79:k,80:C},{35:114,75:81,76:S,77:T,79:k,80:C},{35:115,75:81,76:S,77:T,79:k,80:C},{20:116,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{12:[1,118],33:[1,117]},{35:119,75:81,76:S,77:T,79:k,80:C},{35:120,75:81,76:S,77:T,79:k,80:C},{35:121,75:81,76:S,77:T,79:k,80:C},{35:122,75:81,76:S,77:T,79:k,80:C},{35:123,75:81,76:S,77:T,79:k,80:C},{35:124,75:81,76:S,77:T,79:k,80:C},{35:125,75:81,76:S,77:T,79:k,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(kt,[2,15]),t(Xt,[2,17],{21:22,19:130,22:e,23:a,24:i,26:u,28:r}),t(kt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:a,24:i,26:u,28:r,34:n,36:l,37:s,38:h,39:y,40:p,41:g,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt}),t(Pt,[2,21]),t(Pt,[2,22]),t(R,[2,39]),t(oe,[2,71],{75:81,35:132,76:S,77:T,79:k,80:C}),t(Bt,[2,73]),{78:[1,133]},t(Bt,[2,75]),t(Bt,[2,76]),t(R,[2,40]),t(R,[2,41]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(R,[2,52]),t(R,[2,53]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),t(R,[2,57]),t(R,[2,58]),t(R,[2,60]),t(R,[2,61]),t(R,[2,62]),t(R,[2,63]),t(R,[2,64]),t(R,[2,65]),t(R,[2,66]),t(R,[2,67]),t(R,[2,68]),t(R,[2,69]),t(R,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(xt,[2,28]),t(xt,[2,29]),t(xt,[2,30]),t(xt,[2,31]),t(xt,[2,32]),t(xt,[2,33]),t(xt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(Xt,[2,18]),t(kt,[2,38]),t(oe,[2,72]),t(Bt,[2,74]),t(R,[2,24]),t(R,[2,35]),t(qt,[2,25]),t(qt,[2,26],{12:[1,138]}),t(qt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:d(function(m,x){if(x.recoverable)this.trace(m);else{var E=new Error(m);throw E.hash=x,E}},"parseError"),parse:d(function(m){var x=this,E=[0],_=[],D=[null],o=[],Dt=this.table,f="",vt=0,le=0,De=2,ce=1,Ne=o.slice.call(arguments,1),A=Object.create(this.lexer),Et={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(Et.yy[Qt]=this.yy[Qt]);A.setInput(m,Et.yy),Et.yy.lexer=A,Et.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var Kt=A.yylloc;o.push(Kt);var Ae=A.options&&A.options.ranges;typeof Et.yy.parseError=="function"?this.parseError=Et.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(B){E.length=E.length-2*B,D.length=D.length-B,o.length=o.length-B}d(Le,"popStack");function ue(){var B;return B=_.pop()||A.lex()||ce,typeof B!="number"&&(B instanceof Array&&(_=B,B=_.pop()),B=x.symbols_[B]||B),B}d(ue,"lex");for(var M,St,V,Gt,Ct={},Yt,z,he,Ft;;){if(St=E[E.length-1],this.defaultActions[St]?V=this.defaultActions[St]:((M===null||typeof M>"u")&&(M=ue()),V=Dt[St]&&Dt[St][M]),typeof V>"u"||!V.length||!V[0]){var Zt="";Ft=[];for(Yt in Dt[St])this.terminals_[Yt]&&Yt>De&&Ft.push("'"+this.terminals_[Yt]+"'");A.showPosition?Zt="Parse error on line "+(vt+1)+`:
|
|
2
2
|
`+A.showPosition()+`
|
|
3
3
|
Expecting `+Ft.join(", ")+", got '"+(this.terminals_[M]||M)+"'":Zt="Parse error on line "+(vt+1)+": Unexpected "+(M==ce?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(Zt,{text:A.match,token:this.terminals_[M]||M,line:A.yylineno,loc:Kt,expected:Ft})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+St+", token: "+M);switch(V[0]){case 1:E.push(M),D.push(A.yytext),o.push(A.yylloc),E.push(V[1]),M=null,le=A.yyleng,f=A.yytext,vt=A.yylineno,Kt=A.yylloc;break;case 2:if(z=this.productions_[V[1]][1],Ct.$=D[D.length-z],Ct._$={first_line:o[o.length-(z||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(z||1)].first_column,last_column:o[o.length-1].last_column},Ae&&(Ct._$.range=[o[o.length-(z||1)].range[0],o[o.length-1].range[1]]),Gt=this.performAction.apply(Ct,[f,le,vt,Et.yy,V[1],D,o].concat(Ne)),typeof Gt<"u")return Gt;z&&(E=E.slice(0,-1*z*2),D=D.slice(0,-1*z),o=o.slice(0,-1*z)),E.push(this.productions_[V[1]][0]),D.push(Ct.$),o.push(Ct._$),he=Dt[E[E.length-2]][E[E.length-1]],E.push(he);break;case 3:return!0}}return!0},"parse")},Pe=(function(){var _t={EOF:1,parseError:d(function(x,E){if(this.yy.parser)this.yy.parser.parseError(x,E);else throw new Error(x)},"parseError"),setInput:d(function(m,x){return this.yy=x||this.yy||{},this._input=m,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:d(function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var x=m.match(/(?:\r\n?|\n).*/g);return x?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},"input"),unput:d(function(m){var x=m.length,E=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var _=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),E.length-1&&(this.yylineno-=E.length-1);var D=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:E?(E.length===_.length?this.yylloc.first_column:0)+_[_.length-E.length].length-E[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[D[0],D[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(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:d(function(m){this.unput(this.match.slice(m))},"less"),pastInput:d(function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var m=this.pastInput(),x=new Array(m.length+1).join("-");return m+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{nJ as P,nU as g,J4 as h,vb as d,vg as p,vd as y,gS as v,gt as f,gU as m,gT as A,AJ as u,AI as L,Dy as S,D8 as F,Db as B,AM as z,tN as O,BK as C,tG as M,tO as x,tP as _,gK as D,gV as R,gw as j,gv as V,L3 as H,L1 as U,L2 as E,KM as K,ns as J,IK as G,gM as N,tL as q,K_ as W,L0 as Z,BA as Q,JH as X,Bs as Y,d6 as $,os as ss,ou as es,ot as ts,ov as as,Eg as is,hZ as os,ze as rs,g6 as T,ic as cs,i6 as hs,qV as ls}from"./
|
|
1
|
+
import{nJ as P,nU as g,J4 as h,vb as d,vg as p,vd as y,gS as v,gt as f,gU as m,gT as A,AJ as u,AI as L,Dy as S,D8 as F,Db as B,AM as z,tN as O,BK as C,tG as M,tO as x,tP as _,gK as D,gV as R,gw as j,gv as V,L3 as H,L1 as U,L2 as E,KM as K,ns as J,IK as G,gM as N,tL as q,K_ as W,L0 as Z,BA as Q,JH as X,Bs as Y,d6 as $,os as ss,ou as es,ot as ts,ov as as,Eg as is,hZ as os,ze as rs,g6 as T,ic as cs,i6 as hs,qV as ls}from"./Zldsekdv.js";import{bm as ns}from"./51_h0jm2.js";import{u as ds,b as ps,n as us,j as b,l as bs,v as I,y as Is}from"./DUItrdZb.js";function ws(i,s,e,t){const a=s?.activeTabId;if(!s||!a||!s.tabs.some(r=>r.id===a))return null;const o=t?P(t).map(g):i.map(r=>[r]),c=o.findIndex(r=>r.includes(s.id));if(c<0)return null;const n=o[c+(e==="next"?1:-1)]?.[0];return n?{kind:"neighbor",tabId:a,targetPanelId:n}:o.length>=4||s.tabs.length<2&&o[c].length<2?null:{kind:"edge",tabId:a,position:e==="next"?"after":"before"}}class k{constructor(s){this.workspaceId=s}get state(){return h.state}dispatch(s){h.dispatch(s)}getPanelIds(){return ds.select(this.state,this.workspaceId)}getAllTabs(){return ps.select(this.state,this.workspaceId)}getPanel(s){return us.select(this.state,this.workspaceId,s)??null}getOtherPanelId(){const s=this.getPanelIds();if(s.length<2)return null;const e=b.select(this.state,this.workspaceId);return s.find(t=>t!==e)??null}openTab(s,e){if(e){this.dispatch(d(this.workspaceId,s,e));return}this.dispatch(p(this.workspaceId,s))}openUserTab(s,e){const t=e??b.select(this.state,this.workspaceId)??void 0;if(t){this.dispatch(d(this.workspaceId,s,t,void 0,!0));return}this.dispatch(p(this.workspaceId,s,{force:!0}))}openTabInAdjacentOrSplit(s,e,t){this.dispatch(y(this.workspaceId,s,e,t))}openBrowserPanel(s,e,t,a){const o={type:"browser",title:ns.layout_tabTypes_browser_title(),browserUrl:s??"about:blank",...a===void 0?{}:{browserRequestedUrl:a},contextItemId:e,closable:!0};this.openTabInAdjacentOrSplit(o,t)}closeTab(s,e){this.dispatch(v(this.workspaceId,s,e))}closeActiveTab(s){this.dispatch(f(this.workspaceId,s))}closeTabsByType(s,e,t){this.dispatch(m(this.workspaceId,s,e,t))}closeTabsByAgentId(s){this.dispatch(A(this.workspaceId,s))}reopenClosedTab(s,e){this.dispatch(u(this.workspaceId,void 0,s,e))}reopenLastClosed(){const s=bs.select(this.state,this.workspaceId);s?.kind==="column"?this.dispatch(L(this.workspaceId)):s?.kind==="tab"&&this.dispatch(u(this.workspaceId))}setActiveTab(s,e){this.dispatch(S(this.workspaceId,s,e))}selectNextTab(s){this.dispatch(F(this.workspaceId,s))}selectPreviousTab(s){this.dispatch(B(this.workspaceId,s))}reorderTabs(s,e,t){this.dispatch(z(this.workspaceId,s,e,t))}moveTabToPanel(s,e,t,a){this.dispatch(O(this.workspaceId,s,e,t,a))}moveActivePaneToColumn(s,e){const t=ws(this.getPanelIds(),this.getPanel(s),e,I.select(this.state,this.workspaceId));return t?(t.kind==="neighbor"?this.moveTabToPanel(t.tabId,s,t.targetPanelId):this.moveTabToSplitLevel(t.tabId,s,[],t.position,"horizontal"),!0):!1}canMoveActivePaneVertically(s,e){return C(I.select(this.state,this.workspaceId),this.getPanel(s),e)!==null}moveActivePaneVertically(s,e){return this.canMoveActivePaneVertically(s,e)?(this.dispatch(M(this.workspaceId,s,e)),!0):!1}moveTabToSplit(s,e,t,a){this.dispatch(x(this.workspaceId,s,e,t,a))}moveTabToSplitLevel(s,e,t,a,o){this.dispatch(_(this.workspaceId,s,e,t,a,o))}closeOtherTabs(s,e){this.dispatch(D(this.workspaceId,s,e))}closeTabsToRight(s,e){this.dispatch(R(this.workspaceId,s,e))}closeAllTabs(s){this.dispatch(j(this.workspaceId,s))}closeAllOthersEverywhere(s,e){this.dispatch(V(this.workspaceId,s,e))}updateTabTitle(s,e){this.dispatch(H(this.workspaceId,s,e))}updateTabBrowserUrl(s,e){this.dispatch(U(this.workspaceId,s,e))}updateTabFavicon(s,e){this.dispatch(E(this.workspaceId,s,e))}updateFileTabPath(s,e){this.dispatch(K(this.workspaceId,s,e))}focusPanel(s){this.dispatch(J(this.workspaceId,s))}splitPanel(s,e,t){this.dispatch(G(this.workspaceId,s,e,t))}closePanel(s){this.dispatch(N(this.workspaceId,s))}movePanel(s,e,t){this.dispatch(q(this.workspaceId,s,e,t))}updateSizes(s,e){this.dispatch(W(this.workspaceId,s,e))}updateSplitSizes(s,e){this.dispatch(Z(this.workspaceId,s,e))}resizeRootDivider(s,e){this.dispatch(Q(this.workspaceId,s,e))}toggleExpandPanel(s){this.dispatch(X(this.workspaceId,s))}resetLayout(){this.dispatch(Y(this.workspaceId))}applyPreset(s){this.dispatch($(this.workspaceId,s))}goBack(){this.dispatch(ss(this.workspaceId))}goForward(){this.dispatch(es(this.workspaceId))}goBackInFocusHistory(){this.dispatch(ts(this.workspaceId))}goForwardInFocusHistory(){this.dispatch(as(this.workspaceId))}setDeferSpecTab(s){this.dispatch(is(this.workspaceId,s))}consumePendingFocus(s){this.dispatch(os(this.workspaceId,s))}reconcileStaleAgentTabs(s,e,t){const a=Array.isArray(s)?s:Array.from(s);this.dispatch(rs(this.workspaceId,a,e,t))}clearLayout(){this.dispatch(T(this.workspaceId))}createGridLayout(s){return this.dispatch(cs(this.workspaceId,s)),this.getPanelIds()}batchMutations(s){return s()}initializeLayout(s){const e=s??hs();this.dispatch(ls(this.workspaceId,e))}cyclePresets(){const s=Is.select(this.state,this.workspaceId),e=Object.keys(s).length;e<=1?this.applyPreset("split-horizontal"):e===2?this.applyPreset("three-column"):this.applyPreset("single")}}const l=new Map;function Ts(i){let s=l.get(i);return s||(s=new k(i),l.set(i,s)),s}function ks(i){return!0}function Ps(i){l.delete(i)}function w(i){h.dispatch(T(i))}const fs=Object.freeze(Object.defineProperty({__proto__:null,PanelLayoutAdapter:k,clearPanelLayoutAdapter:Ps,clearPanelLayoutFn:w,clearPanelLayoutForWorkspace:w,getPanelLayoutManager:Ts,hasPanelLayoutManager:ks},Symbol.toStringTag,{value:"Module"}));export{Ps as c,Ts as g,ks as h,fs as p,ws as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as s}from"./
|
|
1
|
+
import{b as s}from"./DrBi0w5G.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as z}from"./
|
|
1
|
+
import{p as z}from"./BXHaIh_f.js";import{b as f,q as B,aX as E,B as F,ay as $,a_ as P,V as A,b0 as W,Y as _,U as N,aZ as Y,W as L,O as M,r as O}from"./DrBi0w5G.js";import{p as I}from"./C0gEyGJV.js";var U=M.packet,u,C=(u=class{constructor(){this.packet=[],this.setAccTitle=P,this.getAccTitle=A,this.setDiagramTitle=W,this.getDiagramTitle=_,this.getAccDescription=N,this.setAccDescription=Y}getConfig(){const t=B({...U,...L().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){O(),this.packet=[]}},f(u,"PacketDB"),u),X=1e4,j=f((e,t)=>{z(e,t);let r=-1,s=[],i=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:o,bits:d,label:g}of e.blocks){if(a!==void 0&&o!==void 0&&o<a)throw new Error(`Packet block ${a} - ${o} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${o??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(o??=a+(d??1)-1,d??=o-a+1,r=o,$.debug(`Packet block ${a} - ${r} with label ${g}`);s.length<=l+1&&t.getPacket().length<X;){const[c,p]=q({start:a,end:o,bits:d,label:g},i,l);if(s.push(c),c.end+1===i*l&&(t.pushWord(s),s=[],i++),!p)break;({start:a,end:o,bits:d,label:g}=p)}}t.pushWord(s)},"populate"),q=f((e,t,r)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];const s=t*r-1,i=t*r;return[{start:e.start,end:s,label:e.label,bits:s-e.start},{start:i,end:e.end,label:e.label,bits:e.end-i}]},"getNextFittingBlock"),S={parser:{yy:void 0},parse:f(async e=>{const t=await I("packet",e),r=S.parser?.yy;if(!(r instanceof C))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");$.debug(t),j(t,r)},"parse")},G=f((e,t,r,s)=>{const i=s.db,l=i.getConfig(),{rowHeight:a,paddingY:o,bitWidth:d,bitsPerRow:g}=l,c=i.getPacket(),p=i.getDiagramTitle(),m=a+o,n=m*(c.length+1)-(p?0:a),h=d*g+2,k=E(t);k.attr("viewBox",`0 0 ${h} ${n}`),F(k,n,h,l.useMaxWidth);for(const[x,b]of c.entries())H(k,b,x,l);k.append("text").text(p).attr("x",h/2).attr("y",n-m/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),H=f((e,t,r,{rowHeight:s,paddingX:i,paddingY:l,bitWidth:a,bitsPerRow:o,showBits:d,bitOrder:g})=>{const c=e.append("g"),p=r*(s+l)+l,m=g==="descending";for(const n of t){const h=n.end-n.start+1,k=n.start%o,b=(m?o-k-h:k)*a+1,w=h*a-i;if(c.append("rect").attr("x",b).attr("y",p).attr("width",w).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",b+w/2).attr("y",p+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(n.label),!d)continue;const[D,T]=m?[n.end,n.start]:[n.start,n.end],v=h===1,y=p-2;c.append("text").attr("x",b+(v?w/2:0)).attr("y",y).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",v?"middle":"start").text(D),v||c.append("text").attr("x",b+w).attr("y",y).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(T)}},"drawWord"),K={draw:G},V={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},Z=f(({packet:e}={})=>{const t=B(V,e);return`
|
|
2
2
|
.packetByte {
|
|
3
3
|
font-size: ${t.byteFontSize};
|
|
4
4
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{t as Ue,bo as x,bw as ze,b as Be,bm as Le,_ as Et}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/oZkhvgMl.js","/app/immutable/chunks/51_h0jm2.js","/app/immutable/chunks/CJxGDkBm.js","/app/immutable/chunks/PXCFrn2V.js","/app/immutable/chunks/DrBi0w5G.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/uWDJKH9B.js","/app/immutable/chunks/XJqoy2ap.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/Zldsekdv.js","/app/immutable/chunks/PVXvIyE8.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BEklUrxK.js","/app/immutable/chunks/DxvSggY5.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/CqJQ3ikU.js","/app/immutable/chunks/DSQT151l.js","/app/immutable/chunks/DGmOjLYi.js","/app/immutable/chunks/CpPNoOk-.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/Bjy4ygfJ.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/CF1Tu_8c.js","/app/immutable/chunks/BQDGTBxC.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/LKW_Bid7.js","/app/immutable/chunks/DqFWZ_g1.js","/app/immutable/chunks/DWLnWMNZ.js","/app/immutable/chunks/SX1khnGy.js","/app/immutable/chunks/Cdw_CIdg.js","/app/immutable/chunks/NtFyWdpR.js","/app/immutable/chunks/C9UsZ4re.js","/app/immutable/chunks/JKboQXkL.js","/app/immutable/chunks/DJfJ5NWH.js","/app/immutable/chunks/BxwkoIbZ.js","/app/immutable/chunks/BoIfXiRv.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/DCOxMTSf.js","/app/immutable/chunks/DMl4Z5o_.js","/app/immutable/chunks/Bi5_2qbB.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/Bs9TCQJX.js","/app/immutable/chunks/BuveYyQe.js","/app/immutable/chunks/oOuL5l8A.js","/app/immutable/chunks/DUItrdZb.js","/app/immutable/chunks/DVy6H5Ng.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/Cs_DX3BC.js","/app/immutable/chunks/D-2bQKif.js","/app/immutable/chunks/BigcqNWS.js","/app/immutable/chunks/CnM1-KSC.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/M18r7swD.js","/app/immutable/chunks/Cdhrdfve.js","/app/immutable/chunks/BgDYQZ_0.js","/app/immutable/chunks/DKn1sQ32.js","/app/immutable/chunks/BLzqYDED.js","/app/immutable/chunks/DmhHEMPi.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/CN-6Tr26.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BGP1lrgu.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/B_QtiZYt.js","/app/immutable/chunks/BCBNqT5t.js","/app/immutable/chunks/C1McR-sz.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/BgLPrJ77.js","/app/immutable/assets/slider.kL-wkHnx.css","/app/immutable/chunks/KAO5AtPr.js","/app/immutable/chunks/CC08YY4X.js","/app/immutable/chunks/DAsc1V4f.js","/app/immutable/chunks/BsieX9dN.js","/app/immutable/chunks/BbIcudMY.js","/app/immutable/chunks/Dukt1CUc.js","/app/immutable/chunks/B0v5Qiob.js","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css","/app/immutable/chunks/Qnx8Hmfg.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{t as Ue,bo as x,bw as ze,b as Be,bm as Le,_ as Et}from"./51_h0jm2.js";import{bs as Ne,ca as vt,aD as a,bH as y,ay as ie,bS as Z,W,bn as Oe,bV as z,aA as F,c9 as R,aB as j,a5 as q,bA as V,b_ as te,a7 as Re,bl as He,aw as ke,aC as Lt,c3 as be,bb as Pe,bO as Ze,ai as Pt,aF as St,br as Rt,bj as Ht,aj as ee}from"./CJxGDkBm.js";import{i as X}from"./PXCFrn2V.js";import{e as _e,g as Wt,i as Ut}from"./Bjy4ygfJ.js";import{h as tt}from"./BigcqNWS.js";import{g as Xe,s as rt,f as le}from"./CpPNoOk-.js";import{b as Ee}from"./NtFyWdpR.js";import{d1 as Me,d0 as nt,ap as zt,d3 as ht,a9 as We,aF as kt,aX as Bt,ax as Nt,a7 as at,r as Ot,aO as Vt,aT as Dt,F as qt}from"./uWDJKH9B.js";import{i as jt,bl as ot,J4 as Ke,vs as Kt,t3 as Gt,vu as Jt}from"./Zldsekdv.js";import{K as Zt,a9 as Xt}from"./XJqoy2ap.js";import{l as Se}from"./ChTqQfQN.js";import{h as st}from"./CC08YY4X.js";import{a as Qt,c as bt,b as Qe,V as Ye,p as Fe,f as wt,I as Yt,r as $t,s as er}from"./CnM1-KSC.js";import{g as it}from"./D0Z6csIX.js";import{s as tr}from"./DxvSggY5.js";import{f as rr}from"./Cdw_CIdg.js";import{F as Ge}from"./CF1Tu_8c.js";import{m as lt}from"./Cs_DX3BC.js";import{F as nr,bF as ar}from"./DSQT151l.js";import{t as or}from"./DAsc1V4f.js";function xe(r,o){return o||/^(?:https?:|data:|blob:|workspace-asset:)/i.test(r.trim())}function sr(r,o){if(o||!r)return r;const n=document.createElement("template");n.innerHTML=r;for(const l of n.content.querySelectorAll("img, video")){const c=l.getAttribute("src")||l.getAttribute("data-media-src")||"",u=[...l.querySelectorAll("source")];if(!xe(c,!1)||u.some(f=>!xe(f.getAttribute("src")||"",!1))){const f=document.createElement("img");f.setAttribute("alt",l.getAttribute("alt")||l.getAttribute("data-name")||""),f.setAttribute("data-media-unavailable","node-owned"),l.replaceWith(f);continue}l.removeAttribute("srcset");const s=l.getAttribute("poster");s&&!xe(s,!1)&&l.removeAttribute("poster")}return n.innerHTML}const ir=[/(^|[^\\])\$(?!\$)(?=\S)(?:\\.|[^\\$\n])+?\$(?!\$)/,/(^|[^\\])\\\((?:\\.|[^\\\n])*?\\\)/,/^(?: {0,3})(?:\$\$|\\\[)/m,/^\s*[-*]\s*\[[ x]\]/m,/```/,/`[^`]+`/,/\|.*\|/,/\[.*\]\(.*\)/,/!\[.*\]\(.*\)/,/<[a-z][\s\S]*>/i,/^#{1,6}\s/m,/^\s*>\s/m,/\*\*[^*]+\*\*/,/\*[^*]+\*/,/_[^_]+_/,/~~[^~]+~~/,/^[-*_]{3,}\s*$/m,/^\s*[-*+]\s/m,/^\s*\d+\.\s/m];function lr(r){return r&&(ir.some(o=>o.test(r))||Zt(r,"markdown"))?"static":"simple"}var cr=j("<!> <!>",1);function It(r,o){if(new.target)return Ue({component:It,...r});Ne(o,!0);let n=x(o,"workspaceId",7),l=x(o,"canUseMedia",7),c=z(null),u=z(null),s=z(!1),f=z(!1);function _(m){y(c,{url:m.getAttribute("src")||"",name:m.getAttribute("alt")||void 0,opener:m},!0),y(s,!0)}function I(m){const h=nt(m.getAttribute("href")||"",n());return h&&l()(h)?(y(c,{url:h,name:m.textContent?.trim()||void 0,opener:m,assetLink:!0},!0),y(s,!0),!0):p(m)}function p(m){const h=Me(m.getAttribute("href")||"",n());return!h||!l()(h.url)?!1:(y(u,{url:h.url,mimeType:h.mimeType,name:m.textContent?.trim()||void 0,opener:m},!0),y(f,!0),!0)}vt(()=>{a(u)&&!Me(a(u).url,n())&&(y(f,!1),y(u,null)),a(c)?.assetLink&&!nt(a(c).url,n())&&(y(s,!1),y(c,null))});var k={openImage:_,openAsset:I,get workspaceId(){return n()},set workspaceId(m){n(m),F()},get canUseMedia(){return l()},set canUseMedia(m){l(m),F()},$set:ze,$on:(m,h)=>Be(o,m,h)},v=cr(),w=ie(v);{var M=m=>{Qt(m,{get imageUrl(){return a(c).url},get imageName(){return a(c).name},get openerElement(){return a(c).opener},showActionsMenu:!0,get open(){return a(s)},set open(h){y(s,h,!0)}})},E=R(()=>a(c)&&l()(a(c).url));X(w,m=>{a(E)&&m(M)})}var C=Z(w,2);{var t=m=>{bt(m,{get videoUrl(){return a(u).url},get videoName(){return a(u).name},get mimeType(){return a(u).mimeType},sourceKind:"workspace",get openerElement(){return a(u).opener},get open(){return a(f)},set open(h){y(f,h,!0)}})},d=R(()=>a(u)&&Me(a(u).url,n())&&l()(a(u).url));X(C,m=>{a(d)&&m(t)})}return W(r,v),Oe(k)}var dr=j('<div class="flex items-center gap-2"><!> <!></div>'),ur=Lt('<svg viewBox="0 0 24 24" class="size-10" fill="none"><rect x="3" y="5" width="18" height="14" rx="2" stroke="currentColor"></rect><path d="m10 9 5 3-5 3V9Z" fill="currentColor"></path></svg>'),fr=j('<div class="absolute inset-0 flex items-center justify-center bg-muted text-muted-foreground" aria-hidden="true"><!></div> <video preload="metadata" playsinline="" tabindex="-1" aria-hidden="true"></video> <span class="absolute inset-0 flex items-center justify-center bg-black/10 transition-colors group-hover:bg-black/20 motion-reduce:transition-none forced-colors:bg-transparent" aria-hidden="true"><span><svg viewBox="0 0 20 20" fill="currentColor"><path d="m7 5 7 5-7 5V5Z"></path></svg></span></span>',3),mr=j("<div><!> <!></div>"),pr=j('<div class="my-2 min-w-0 max-w-2xl" data-chat-video=""><!></div> <!>',1);function yt(r,o){if(new.target)return Ue({component:yt,...r});Ne(o,!0);let n=x(o,"source",7),l=x(o,"name",23,()=>Le.chat_videoBlock_fromAgent_label()),c=x(o,"poster",7),u=x(o,"allowFileMedia",7,!0),s=x(o,"canOpenFile",7),f=x(o,"fluid",7,!1),_=x(o,"compact",7,!1),I=x(o,"compactPreview",7),p=z(!1),k=z(!1),v=z(!1),w=z(null);const M=R(()=>n().kind==="inline"?`data:${n().mimeType};base64,${n().data}`:n().url);function E(g){return xe(g,u()&&s()?.()!==!1)}const C=R(()=>!E(a(M))),t=R(()=>Fe(a(M))),d=R(()=>{if(!(!c()||!E(c()))){if(/^data:image\/(?:gif|jpeg|png|webp);base64,[a-z0-9+/=]+$/i.test(c()))return c();try{const g=new URL(c());return(g.protocol==="https:"||g.protocol==="workspace-file:")&&!g.username&&!g.password?c():void 0}catch{return}}});function m(){y(k,!0),y(v,!1)}var h={get source(){return n()},set source(g){n(g),F()},get name(){return l()},set name(g=Le.chat_videoBlock_fromAgent_label()){l(g),F()},get poster(){return c()},set poster(g){c(g),F()},get allowFileMedia(){return u()},set allowFileMedia(g=!0){u(g),F()},get canOpenFile(){return s()},set canOpenFile(g){s(g),F()},get fluid(){return f()},set fluid(g=!1){f(g),F()},get compact(){return _()},set compact(g=!1){_(g),F()},get compactPreview(){return I()},set compactPreview(g){I(g),F()},$set:ze,$on:(g,H)=>Be(o,g,H)},T=pr(),U=ie(T);let O;var ve=q(U);{var D=g=>{Qe(g,{get name(){return l()},reason:"load-failed"})},ae=g=>{var H=dr(),ce=q(H);{let Q=R(()=>a(t)?.path),re=R(()=>a(t)?.workspaceId);Qe(ce,{get name(){return l()},reason:"load-failed",get path(){return a(Q)},get workspaceId(){return a(re)}})}var se=Z(ce,2);Ye(se,{get videoUrl(){return a(M)},get videoName(){return l()},get sourceKind(){return n().kind},get mimeType(){return n().mimeType}}),V(H),W(g,H)},K=g=>{var H=mr();let ce;var se=q(H);{let de=R(()=>Le.chat_videoBlock_play_ariaLabel({name:l()}));rr(se,{wrapContent:!1,type:"button",variant:"ghost",size:"default",class:"relative block size-full cursor-pointer overflow-hidden rounded-lg border border-border bg-muted/40 p-0 shadow-(--elevation-raised) focus-visible:border-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50 forced-colors:border",get"aria-label"(){return a(de)},"data-testid":"chat-video-snapshot",onclick:()=>{E(a(M))&&y(p,!0)},get ref(){return a(w)},set ref(he){y(w,he,!0)},children:(he,De)=>{var ue=Re(),B=ie(ue);{var we=Y=>{var G=Re(),J=ie(G);tr(J,I),W(Y,G)},fe=Y=>{var G=fr(),J=ie(G),Ce=q(J);{var Te=pe=>{var qe=ur();W(pe,qe)};X(Ce,pe=>{f()||pe(Te)})}V(J);var $=Z(J,2);$.muted=!0;var me=Z($,2),Ie=q(me),ye=He(Ie);V(me),te(()=>{rt($,"src",a(M)),rt($,"poster",a(d)),le($,1,`pointer-events-none absolute inset-0 size-full object-contain transition-opacity motion-reduce:transition-none ${a(d)||a(k)&&!a(v)?"opacity-100":"opacity-0"}`),le(Ie,1,`flex ${_()?"size-6":"size-11"} shrink-0 aspect-square items-center justify-center rounded-full border border-white/70 bg-black/60 text-white shadow-(--elevation-raised) forced-colors:border forced-colors:bg-[Canvas] forced-colors:text-[CanvasText]`),le(ye,0,`ml-0.5 ${_()?"size-3":"size-5"}`)}),ke("loadeddata",$,m),ke("error",$,()=>y(v,!0)),W(Y,G)};X(B,Y=>{I()?Y(we):Y(fe,-1)})}W(he,ue)},$$slots:{default:!0}})}var Q=Z(se,2);{var re=de=>{Ye(de,{get videoUrl(){return a(M)},get videoName(){return l()},get sourceKind(){return n().kind},get mimeType(){return n().mimeType},triggerClass:"absolute right-1.5 top-1.5 opacity-0 transition-opacity focus-visible:opacity-100 group-focus-within:opacity-100 group-hover:opacity-100 data-[state=open]:opacity-100"})};X(Q,de=>{I()||de(re)})}V(H),te(()=>{le(H,1,`group relative aspect-video w-full max-w-2xl ${f()?"max-h-72":"max-h-40"}`),ce=Xe(H,"",ce,{height:I()?"100%":void 0,width:f()?"min(100%, calc(18rem * 16 / 9))":"min(100%, calc(10rem * 16 / 9))"})}),W(g,H)};X(ve,g=>{a(C)?g(D):a(v)?g(ae,1):g(K,-1)})}V(U);var oe=Z(U,2);{var Ve=g=>{bt(g,{get videoUrl(){return a(M)},get videoName(){return l()},get poster(){return a(d)},get sourceKind(){return n().kind},get mimeType(){return n().mimeType},get openerElement(){return a(w)},get open(){return a(p)},set open(H){y(p,H,!0)}})};X(oe,g=>{!a(v)&&!a(C)&&g(Ve)})}return te(()=>O=Xe(U,"",O,{height:I()?"100%":void 0})),W(r,T),Oe(h)}const gr=/^\s*!\[([^\]\n]*)\]\((?:<)?((?:intent:\/\/local\/|workspace-file:\/\/|workspace-asset:\/\/)[^)\s>]+)(?:>)?\)\s*$/,vr=/^ {0,3}(`{3,}|~{3,})(.*)$/;function ct(r,o){if(typeof r!="string"||!r||r!==r.trim())return null;if(r.startsWith("workspace-asset://"))return Me(r,o);if(r.startsWith("workspace-file://")){const l=Fe(r);if(!l||l.workspaceId!==o)return null;const c=ht(r);return c?lt(c,o):null}const n=r.startsWith("intent://")?r:`intent://local/file/${r}`;return lt(n,o)}function hr(r,o){if(r.startsWith("workspace-file://")){const n=Fe(r);if(!n||n.workspaceId!==o)return!1;const l=ht(r);return!!l&&!!We(l,o)}return!!We(r,o,{readOnly:!0})}function kr(r,o){return(o===0||!r[o-1].trim())&&(o===r.length-1||!r[o+1].trim())}function br(r,o,n){const l=n[0];return r.findIndex((c,u)=>{if(u<=o)return!1;const s=c.trim();return s.length>=n.length&&s.split("").every(f=>f===l)})}function wr(r,o){const n=r.split(`
|
|
3
3
|
`),l=[];let c=[];const u=()=>{const s=c.join(`
|
|
4
4
|
`);s.trim()&&l.push({type:"markdown",content:s}),c=[]};for(let s=0;s<n.length;s+=1){const f=n[s].match(vr);if(f){const w=br(n,s,f[1]);if(w>s){const M=n.slice(s,w+1);if(f[2].trim()==="ws-block:video")try{const E=JSON.parse(n.slice(s+1,w).join(`
|
|
5
|
-
`)),C=ct(E?.path,o);if(C){u(),l.push({type:"video",source:C,name:typeof E.path=="string"?E.path:void 0,poster:typeof E.poster=="string"?E.poster:void 0}),s=w;continue}}catch{}c.push(...M),s=w;continue}c.push(...n.slice(s));break}const I=!/^(?: {4}|\t)/.test(n[s])&&kr(n,s)?n[s].match(gr):null;if(!I){c.push(n[s]);continue}const[,p,k]=I,v=ct(k,o);v?(u(),l.push({type:"video",source:v,name:p||void 0})):k.startsWith("workspace-asset://")&&!zt(k)||hr(k,o)?c.push(n[s]):c.push(`[${p}](${k})`)}return u(),l}function Ae(r){return wt(r.getAttribute("src")||"")}function Je(r){return r instanceof HTMLImageElement?r:r instanceof HTMLAnchorElement?r.querySelector("img"):null}function Ir(r,o){const n=r.getBoundingClientRect(),l=o.getBoundingClientRect();return{top:n.top-l.top+6,right:l.right-n.right+6}}function dt(r,o){const n=document.activeElement;return!!(n&&(n===r||n===r?.closest("a")||o?.contains(n)))}function yr(r,o){const n=r.getAttribute("src")||"",l=Fe(n)?.path??kt(n,o)?.path;if(l)return l;if(n.startsWith("workspace-asset://")){const c=n.split(/[?#]/)[0].split("/").pop();if(c)return c}if(n&&!/^[a-z][a-z0-9+.-]*:/i.test(n)&&!n.startsWith("//"))try{return decodeURI(n)}catch{return n}return r.getAttribute("alt")||void 0}const _t="data-image-sized",ut=r=>typeof r=="number"&&Number.isInteger(r)&&r>0;function _r(r){try{return encodeURI(r).replace(/%25/g,"%")}catch{return null}}function Ar(r){return r.startsWith("workspace-file://")?r.split(/[?#]/)[0]:r}function Mr(r,o,n){const l=new Map;for(const[c,u]of Object.entries(r)){if(!u||!ut(u.width)||!ut(u.height))continue;const s={width:u.width,height:u.height},f=new Set([c]),_=_r(c);_&&f.add(_);for(const I of[...f]){const p=We(I,o);if(p&&f.add(p),n!==void 0){const k=Bt(I,n);if(k){const v=We(`intent://local/file/${k.split("/").map(encodeURIComponent).join("/")}`,o);v&&f.add(v)}}}for(const I of f)l.has(I)||l.set(I,s)}return l}function xr(r,o,n,l){if(!o||!r.includes("<img"))return r;const c=Mr(o,n,l);return c.size===0?r:r.replace(/<img\b(?:[^>"']|"[^"]*"|'[^']*')*>/gi,u=>{if(/\s(?:width|height)="/i.test(u))return u;const s=/\ssrc="([^"]*)"/i.exec(u);if(!s)return u;const f=Ar(s[1].replace(/&/g,"&")),_=c.get(f);return _?u.replace(/\s*\/?>$/,` width="${_.width}" height="${_.height}" ${_t}="">`):u})}function ft(r,o){let n=o,l,c=!1,u=!1;const s=new Map;function f(){for(const[p,{component:k,source:v}]of s)be(k),r.contains(p)&&p.replaceWith(v);s.clear()}function _(){if(!u){for(const[p,{component:k}]of s)r.contains(p)||(be(k),s.delete(p));if(n.enabled)for(const p of r.querySelectorAll("pre > code")){if(p.closest("[data-markdown-diagram]"))continue;const k=[...p.classList].find(C=>C.startsWith("language-"))?.slice(9);let v;if(k==="mermaid")v="mermaid";else if(k==="diagram"||k==="ws-block:diagram")v="diagram";else if(k==="ws-block")try{if(JSON.parse(p.textContent??"").type!=="diagram")continue;v="diagram"}catch{continue}else continue;const w=p.parentElement;if(!w)continue;if(!l){c||(c=!0,Et(()=>import("./BWk-f4jj.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]),import.meta.url).then(C=>{l=C.default,c=!1,_()}).catch(C=>{c=!1,Se.error("Failed to load the Markdown diagram renderer",{error:C})}));return}const M=document.createElement("div");M.dataset.markdownDiagram=v,w.replaceWith(M);const E=Pe(l,{target:M,context:n.context,props:{kind:v,source:p.textContent??"",workspaceId:n.workspaceId}});s.set(M,{component:E,source:w})}}}const I=new MutationObserver(_);return I.observe(r,{childList:!0,subtree:!0}),queueMicrotask(_),{update(p){(n.enabled!==p.enabled||n.workspaceId!==p.workspaceId)&&f(),n=p,_()},destroy(){u=!0,I.disconnect(),f()}}}var Fr=j('<span class="min-w-0 max-w-full truncate"> </span>'),Cr=j('<span class="type-caption flex min-w-0 max-w-full items-start gap-2 whitespace-normal py-1 text-muted-foreground" role="status" data-testid="media-loading-placeholder"><span class="first-line-icon" aria-hidden="true"><!></span> <span class="flex min-w-0 flex-wrap items-baseline gap-x-1.5"><span> </span> <!></span></span>');function At(r,o){if(new.target)return Ue({component:At,...r});Ne(o,!0);let n=x(o,"name",7);var l={get name(){return n()},set name(v){n(v),F()},$set:ze,$on:(v,w)=>Be(o,v,w)},c=Cr(),u=q(c),s=q(u);nr(s,{get icon(){return ar},class:"size-3.5"}),V(u);var f=Z(u,2),_=q(f),I=He(_,!0),p=Z(_,2);{var k=v=>{var w=Fr(),M=He(w,!0);_e(w,(E,C)=>or?.(E,C),n),te(()=>Ze(M,n())),W(v,w)};X(p,v=>{n()&&v(k)})}return V(f),V(c),te(v=>Ze(I,v),[()=>Le.ui_mediaLoadingPlaceholder_title_label()]),W(r,c),Oe(l)}const mt="markdown-image-frame";function Tr(r,o){const n=new Map,l=new Map,c=new Map,u=[300,1e3];let s=!1;function f(t){let d=l.get(t);return d||(d={source:t.getAttribute("src")||"",workspaceId:o.getWorkspaceId(),retries:0,failureHandled:!1},l.set(t,d)),d}function _(t){const d=f(t);return!s&&r.contains(d.fallbackHost??t)&&d.workspaceId===o.getWorkspaceId()&&o.canUseMedia(d.source)&&!t.hasAttribute("data-media-unavailable")&&!t.hasAttribute("data-media-unsupported")&&at(d.source)!==null}function I(t,d=!1){if(!_(t))return;const m=f(t),h=at(m.source);if(!h)return;const T=m.fallbackHost,U=T?.contains(document.activeElement)??!1;if(m.failureHandled=!1,m.fallbackHost=void 0,d&&(m.retries=0),t.removeAttribute("src"),t.setAttribute("src",h),T){const O=n.get(T);O&&be(O),n.delete(T),T.replaceWith(t),M(),U&&r.contains(t)&&t.focus()}}function p(t){const d=f(t);s||!r.contains(t)||d.failureHandled||(d.failureHandled=!0,_(t)&&d.retries<u.length?d.timer=setTimeout(()=>{d.timer=void 0,I(t)},u[d.retries++]):w(t,"load-failed"))}function k(t){const d=t.parentElement;return d?.classList.contains(mt)?d:null}function v(t){const d=Number(t.getAttribute("width")),m=Number(t.getAttribute("height"));if(!(d>0&&m>0))return;const h=document.createElement("span");h.className=mt,h.style.aspectRatio=`${d} / ${m}`,h.style.setProperty("--image-aspect-ratio",`${d} / ${m}`),h.style.setProperty("--image-width",`${d}px`),h.dataset.loaded="false",t.replaceWith(h),h.appendChild(t);const T=h.appendChild(document.createElement("span"));T.className="markdown-image-frame-placeholder",n.set(T,Pe(At,{target:T,props:{name:yr(t,o.getWorkspaceId())}}));const U=()=>{if(c.delete(t),s||!r.contains(h))return;h.dataset.loaded="true";const O=n.get(T);O&&(be(O),n.delete(T)),T.remove()};t.complete&&t.naturalWidth>0?U():(c.set(t,U),t.addEventListener("load",U,{once:!0}))}function w(t,d){const m=t.getAttribute("src")||t.getAttribute("data-media-src")||"",h=Fe(m),T=kt(m,o.getWorkspaceId()),U=h?.path??T?.path,O=h?.workspaceId??T?.workspaceId,ve=t.getAttribute("data-name")||t.getAttribute("alt")||U?.split("/").pop()||void 0,D=document.createElement(t instanceof HTMLVideoElement?"div":"span");D.className="media-unavailable-host",(k(t)??t).replaceWith(D),o.onMediaRemoved(t);let ae;if(t instanceof HTMLImageElement&&d==="load-failed"){const oe=f(t);oe.fallbackHost=D,_(t)&&(ae=()=>I(t,!0))}const K=Pe(Qe,{target:D,props:{name:ve,reason:d,path:U,workspaceId:O,onRetry:ae}});if(n.set(D,K),t instanceof HTMLVideoElement){D.classList.add("flex","items-center","gap-2");const oe=D.appendChild(document.createElement("span"));n.set(oe,Pe(Ye,{target:oe,props:{videoUrl:m,videoName:ve,sourceKind:"workspace",mimeType:Me(m,o.getWorkspaceId())?.mimeType}}))}}function M(){if(!s){for(const t of r.querySelectorAll("img"))Ae(t)&&!t.closest("a")&&(t.tabIndex=0,t.setAttribute("role","button")),!(t.hasAttribute("data-media-unsupported")||t.hasAttribute("data-media-unavailable"))&&(f(t),t.hasAttribute(_t)&&!k(t)&&v(t),t.getAttribute("src")&&t.complete&&t.naturalWidth===0&&p(t));for(const t of r.querySelectorAll("[data-media-unsupported]"))w(t,"unsupported");for(const t of r.querySelectorAll("[data-media-unavailable]"))w(t,Nt(t));for(const[t,d]of l)r.contains(d.fallbackHost??t)||(d.timer!==void 0&&clearTimeout(d.timer),l.delete(t));for(const[t,d]of c)r.contains(t)||(t.removeEventListener("load",d),c.delete(t));for(const[t,d]of n)r.contains(t)||(be(d),n.delete(t))}}function E(t){const d=t.target;(d instanceof HTMLImageElement||d instanceof HTMLVideoElement)&&(d instanceof HTMLImageElement?p(d):w(d,"load-failed"))}const C=new MutationObserver(M);return C.observe(r,{childList:!0,subtree:!0}),r.addEventListener("error",E,!0),queueMicrotask(M),{destroy(){s=!0,C.disconnect();for(const t of l.values())t.timer!==void 0&&clearTimeout(t.timer);l.clear();for(const[t,d]of c)t.removeEventListener("load",d);c.clear(),r.removeEventListener("error",E,!0);for(const t of n.values())be(t);n.clear()}}}var Er=j('<div class="image-actions-overlay absolute z-10 svelte-nzvuq5" data-testid="markdown-image-actions-overlay"><!></div>'),Lr=j("<div></div>"),pt=j('<div role="group"><!> <!></div>'),Pr=j('<div><p class="whitespace-pre-wrap svelte-nzvuq5"> </p></div>'),Sr=j("<!> <!>",1);function gt(r,o){if(new.target)return Ue({component:gt,...r});Ne(o,!0);const n=e=>{var i=Re(),A=ie(i);{var b=P=>{var S=Er(),ne=q(S);{let N=R(()=>a(B).getAttribute("src")||""),ge=R(()=>a(B).getAttribute("alt")||void 0);Ee(Yt(ne,{get imageUrl(){return a(N)},get imageName(){return a(ge)},get open(){return a(fe)},set open(je){y(fe,je,!0)}}),je=>y(Y,je,!0),()=>a(Y))}V(S),Ee(S,N=>y(G,N),()=>a(G)),te(()=>Xe(S,`top: ${a(we).top??""}px; right: ${a(we).right??""}px;`)),W(P,S)},L=R(()=>a(B)&&K(a(B).getAttribute("src")||""));X(A,P=>{a(L)&&P(b)})}W(e,i)};let l=x(o,"content",7),c=x(o,"isStreaming",7,!1),u=x(o,"className",7,""),s=x(o,"workspaceId",23,()=>it()?.workspaceId??void 0),f=x(o,"relativeMediaBase",7),_=x(o,"onCodeBlockAction",7),I=x(o,"onFileClick",7),p=x(o,"canOpenFile",7),k=x(o,"allowFileMedia",7,!0),v=x(o,"taskBlockRenderMode",7,"placeholder"),w=x(o,"chatImageThumbnails",7,!1),M=x(o,"forceExternalLinks",7,!1),E=x(o,"renderRichFencesAsCode",7,!1),C=x(o,"renderDiagrams",7,!1),t=x(o,"allowSanitizedHtml",7,!1),d=x(o,"media",7);const m=Ot(),h=St(),T=R(()=>wr(l(),s())),U=R(()=>a(T).some(e=>e.type==="video")),O=R(()=>!a(U)&&a(T).length===1&&a(T)[0].type==="markdown"?a(T)[0].content:l()),ve=R(()=>lr(a(O)));let D=z(null),ae=z("");function K(e){return xe(e,k()&&p()?.()!==!1)}const oe=R(()=>sr(a(ae),k()&&p()?.()!==!1)),Ve=R(()=>$t(a(oe),s(),er)),g=R(()=>`<div class="markdown-content">${a(Ve)}</div>`);let H=0;const ce=150;let se=-1/0,Q=null,re=null;async function de(e,i,A,b){try{const L=await Vt(e,{...i,readOnly:!0});if(b!==H)return;y(ae,xr(L,A,i?.workspaceId,i?.relativeMediaBase),!0)}catch(L){if(b!==H)return;Se.error("Failed to process markdown:",L);const P=e.replace(/[&<>"']/g,S=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[S]||S);y(ae,`<p>${P}</p>`)}}function he(){if(!re)return;const e=ce-(performance.now()-se);if(e>0){Q=setTimeout(()=>{Q=null,he()},e);return}const i=re;re=null,se=performance.now(),i()}function De(){Q!==null&&(clearTimeout(Q),Q=null),re=null,se=-1/0}vt(()=>{const e=a(O),i={allowEmpty:!0,skipIfHTML:!1,preserveAnchors:!0,taskBlockRenderMode:v(),workspaceId:s(),relativeMediaBase:f()??(s()&&s()!==jt?"":void 0),renderRichFencesAsCode:E()||C(),processPrimitives:!C(),allowSanitizedHtml:t(),renderMath:!c(),workspaceFileVersion:m},A=d(),b=++H,L=()=>void de(e,i,A,b);c()?(re=L,Q===null&&he()):(De(),L())});let ue=z(void 0),B=z(null),we=z(Rt({top:0,right:0})),fe=z(!1),Y=z(void 0),G=z(null);function J(e){if(e.type==="mouseover"&&dt(a(B),a(G)))return;const i=e.target,A=Je(i);if(A&&Ae(A)&&K(A.getAttribute("src")||"")){if(a(B)===A)return;y(B,A,!0),y(we,Ir(A,e.currentTarget),!0)}else if(a(B)&&!a(fe)){if(i instanceof Node&&a(G)?.contains(i))return;y(B,null)}}function Ce(){!a(fe)&&!dt(a(B),a(G))&&y(B,null)}function Te(e){const i=Je(e.target);!i||!Ae(i)||!K(i.getAttribute("src")||"")||(e.preventDefault(),e.stopPropagation(),J(e),y(fe,!0))}function $(e){return Tr(e,{getWorkspaceId:()=>s(),canUseMedia:K,onMediaRemoved:i=>{a(B)===i&&y(B,null)}})}function me(e){const i=e.target,A=i.closest("a");if(!A&&i instanceof HTMLImageElement){const L=i.getAttribute("src")||"";if(wt(L)&&K(L)){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),a(ue)?.openImage(i);return}}if(A?.href){if(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),a(ue)?.openAsset(A))return;const L=pe(e),P=s()?ot(s()):void 0;st(A.href,{workspaceId:P,canOpenFile:p(),sourcePanelId:L,event:e,rawHref:A.getAttribute("href")??void 0,...M()?{forceExternal:!0}:{}});return}const b=Dt(i.closest("[data-mention]"));if(b){const{type:L,meta:P}=b;if(L==="file"&&b.filePath){if(p()?.()===!1)return;e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();const S=b.filePath;Se.debug("[MarkdownViewer] File mention clicked",{filePath:S,meta:P});const ne=pe(e),N=Ge({event:e});if(I())I()(S,{line:b.line,openInAdjacentPanel:N,sourcePanelId:ne});else{const ge=s();ge&&Ke.dispatch(Kt(ge,S,{line:b.line,openInAdjacentPanel:N,sourcePanelId:ne}))}}else if(b.folderPath!==void 0){if(p()?.()===!1||!s())return;e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),Ke.dispatch(Gt(s(),qt(b.folderPath)))}else if(L==="note"&&b.note){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();const S=b.note.id;Se.debug("[MarkdownViewer] Note mention clicked",{noteId:S,meta:P});const ne=pe(e),N=Ge({event:e});if(b.note.workspaceId&&b.note.workspaceId!==s()){st(Xt(S,b.note.workspaceId),{workspaceId:s()?ot(s()):void 0,sourcePanelId:ne,event:e});return}const ge=s();ge&&Ke.dispatch(Jt(ge,S,{openInAdjacentPanel:N,sourcePanelId:ne}))}}}function Ie(e){if(ye(e),!e.defaultPrevented){if(e.target instanceof HTMLImageElement&&Ae(e.target)&&(e.key==="Enter"||e.key===" ")){me(e);return}e.key!=="Enter"||!Ge({event:e})||me(e)}}function ye(e){const i=Je(e.target);!i||!Ae(i)||!K(i.getAttribute("src")||"")||a(Y)?.handleCopy(e,i.getAttribute("src")||"")}function pe(e){const i=e.target;if(i instanceof HTMLElement)return i.closest("[data-panel-id]")?.dataset.panelId}Ht(()=>{H+=1,De()});var qe={get content(){return l()},set content(e){l(e),F()},get isStreaming(){return c()},set isStreaming(e=!1){c(e),F()},get className(){return u()},set className(e=""){u(e),F()},get workspaceId(){return s()},set workspaceId(e=it()?.workspaceId??void 0){s(e),F()},get relativeMediaBase(){return f()},set relativeMediaBase(e){f(e),F()},get onCodeBlockAction(){return _()},set onCodeBlockAction(e){_(e),F()},get onFileClick(){return I()},set onFileClick(e){I(e),F()},get canOpenFile(){return p()},set canOpenFile(e){p(e),F()},get allowFileMedia(){return k()},set allowFileMedia(e=!0){k(e),F()},get taskBlockRenderMode(){return v()},set taskBlockRenderMode(e="placeholder"){v(e),F()},get chatImageThumbnails(){return w()},set chatImageThumbnails(e=!1){w(e),F()},get forceExternalLinks(){return M()},set forceExternalLinks(e=!1){M(e),F()},get renderRichFencesAsCode(){return E()},set renderRichFencesAsCode(e=!1){E(e),F()},get renderDiagrams(){return C()},set renderDiagrams(e=!1){C(e),F()},get allowSanitizedHtml(){return t()},set allowSanitizedHtml(e=!1){t(e),F()},get media(){return d()},set media(e){d(e),F()},$set:ze,$on:(e,i)=>Be(o,e,i)},$e=Sr(),et=ie($e);{var Mt=e=>{var i=Lr();Wt(i,21,()=>a(T),Ut,(A,b)=>{var L=Re(),P=ie(L);{var S=N=>{yt(N,{get allowFileMedia(){return k()},get canOpenFile(){return p()},get source(){return a(b).source},get name(){return a(b).name},get poster(){return a(b).poster}})},ne=N=>{gt(N,{get content(){return a(b).content},get isStreaming(){return c()},get workspaceId(){return s()},get relativeMediaBase(){return f()},get onCodeBlockAction(){return _()},get onFileClick(){return I()},get canOpenFile(){return p()},get allowFileMedia(){return k()},get taskBlockRenderMode(){return v()},get chatImageThumbnails(){return w()},get forceExternalLinks(){return M()},get renderRichFencesAsCode(){return E()},get renderDiagrams(){return C()},get allowSanitizedHtml(){return t()},get media(){return d()}})};X(P,N=>{a(b).type==="video"?N(S):N(ne,-1)})}W(A,L)}),V(i),te(()=>le(i,1,`markdown-video-segments ${u()??""}`,"svelte-nzvuq5")),W(e,i)},xt=e=>{var i=pt();let A;var b=q(i);tt(b,()=>a(g));var L=Z(b,2);n(L),V(i),_e(i,P=>$?.(P)),_e(i,(P,S)=>ft?.(P,S),()=>({enabled:C(),workspaceId:s(),context:h})),te(()=>A=le(i,1,`markdown-viewer streaming-content ${u()??""}`,"svelte-nzvuq5",A,{"chat-image-thumbnails":w()})),ee("click",i,me),ee("keydown",i,Ie),ke("copy",i,ye),ee("contextmenu",i,Te),ee("mouseover",i,J),ee("focusin",i,J),ke("mouseleave",i,Ce),W(e,i)},Ft=e=>{var i=Pr(),A=q(i),b=He(A,!0);V(i),te(()=>{le(i,1,`markdown-viewer simple-content ${u()??""}`,"svelte-nzvuq5"),Ze(b,a(O))}),W(e,i)},Ct=e=>{var i=pt();let A;var b=q(i);tt(b,()=>a(g));var L=Z(b,2);n(L),V(i),Ee(i,P=>y(D,P),()=>a(D)),_e(i,P=>$?.(P)),_e(i,(P,S)=>ft?.(P,S),()=>({enabled:C(),workspaceId:s(),context:h})),te(()=>A=le(i,1,`markdown-viewer static-content ${u()??""}`,"svelte-nzvuq5",A,{"chat-image-thumbnails":w()})),ee("click",i,me),ee("keydown",i,Ie),ke("copy",i,ye),ee("contextmenu",i,Te),ee("mouseover",i,J),ee("focusin",i,J),ke("mouseleave",i,Ce),W(e,i)};X(et,e=>{a(U)?e(Mt):c()?e(xt,1):a(ve)==="simple"&&!t()?e(Ft,2):e(Ct,-1)})}var Tt=Z(et,2);return Ee(It(Tt,{get workspaceId(){return s()},canUseMedia:K}),e=>y(ue,e,!0),()=>a(ue)),W(r,$e),Oe(qe)}Pt(["click","keydown","contextmenu","mouseover","focusin"]);export{yt as C,gt as M,At as a,wr as s};
|
|
5
|
+
`)),C=ct(E?.path,o);if(C){u(),l.push({type:"video",source:C,name:typeof E.path=="string"?E.path:void 0,poster:typeof E.poster=="string"?E.poster:void 0}),s=w;continue}}catch{}c.push(...M),s=w;continue}c.push(...n.slice(s));break}const I=!/^(?: {4}|\t)/.test(n[s])&&kr(n,s)?n[s].match(gr):null;if(!I){c.push(n[s]);continue}const[,p,k]=I,v=ct(k,o);v?(u(),l.push({type:"video",source:v,name:p||void 0})):k.startsWith("workspace-asset://")&&!zt(k)||hr(k,o)?c.push(n[s]):c.push(`[${p}](${k})`)}return u(),l}function Ae(r){return wt(r.getAttribute("src")||"")}function Je(r){return r instanceof HTMLImageElement?r:r instanceof HTMLAnchorElement?r.querySelector("img"):null}function Ir(r,o){const n=r.getBoundingClientRect(),l=o.getBoundingClientRect();return{top:n.top-l.top+6,right:l.right-n.right+6}}function dt(r,o){const n=document.activeElement;return!!(n&&(n===r||n===r?.closest("a")||o?.contains(n)))}function yr(r,o){const n=r.getAttribute("src")||"",l=Fe(n)?.path??kt(n,o)?.path;if(l)return l;if(n.startsWith("workspace-asset://")){const c=n.split(/[?#]/)[0].split("/").pop();if(c)return c}if(n&&!/^[a-z][a-z0-9+.-]*:/i.test(n)&&!n.startsWith("//"))try{return decodeURI(n)}catch{return n}return r.getAttribute("alt")||void 0}const _t="data-image-sized",ut=r=>typeof r=="number"&&Number.isInteger(r)&&r>0;function _r(r){try{return encodeURI(r).replace(/%25/g,"%")}catch{return null}}function Ar(r){return r.startsWith("workspace-file://")?r.split(/[?#]/)[0]:r}function Mr(r,o,n){const l=new Map;for(const[c,u]of Object.entries(r)){if(!u||!ut(u.width)||!ut(u.height))continue;const s={width:u.width,height:u.height},f=new Set([c]),_=_r(c);_&&f.add(_);for(const I of[...f]){const p=We(I,o);if(p&&f.add(p),n!==void 0){const k=Bt(I,n);if(k){const v=We(`intent://local/file/${k.split("/").map(encodeURIComponent).join("/")}`,o);v&&f.add(v)}}}for(const I of f)l.has(I)||l.set(I,s)}return l}function xr(r,o,n,l){if(!o||!r.includes("<img"))return r;const c=Mr(o,n,l);return c.size===0?r:r.replace(/<img\b(?:[^>"']|"[^"]*"|'[^']*')*>/gi,u=>{if(/\s(?:width|height)="/i.test(u))return u;const s=/\ssrc="([^"]*)"/i.exec(u);if(!s)return u;const f=Ar(s[1].replace(/&/g,"&")),_=c.get(f);return _?u.replace(/\s*\/?>$/,` width="${_.width}" height="${_.height}" ${_t}="">`):u})}function ft(r,o){let n=o,l,c=!1,u=!1;const s=new Map;function f(){for(const[p,{component:k,source:v}]of s)be(k),r.contains(p)&&p.replaceWith(v);s.clear()}function _(){if(!u){for(const[p,{component:k}]of s)r.contains(p)||(be(k),s.delete(p));if(n.enabled)for(const p of r.querySelectorAll("pre > code")){if(p.closest("[data-markdown-diagram]"))continue;const k=[...p.classList].find(C=>C.startsWith("language-"))?.slice(9);let v;if(k==="mermaid")v="mermaid";else if(k==="diagram"||k==="ws-block:diagram")v="diagram";else if(k==="ws-block")try{if(JSON.parse(p.textContent??"").type!=="diagram")continue;v="diagram"}catch{continue}else continue;const w=p.parentElement;if(!w)continue;if(!l){c||(c=!0,Et(()=>import("./oZkhvgMl.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]),import.meta.url).then(C=>{l=C.default,c=!1,_()}).catch(C=>{c=!1,Se.error("Failed to load the Markdown diagram renderer",{error:C})}));return}const M=document.createElement("div");M.dataset.markdownDiagram=v,w.replaceWith(M);const E=Pe(l,{target:M,context:n.context,props:{kind:v,source:p.textContent??"",workspaceId:n.workspaceId}});s.set(M,{component:E,source:w})}}}const I=new MutationObserver(_);return I.observe(r,{childList:!0,subtree:!0}),queueMicrotask(_),{update(p){(n.enabled!==p.enabled||n.workspaceId!==p.workspaceId)&&f(),n=p,_()},destroy(){u=!0,I.disconnect(),f()}}}var Fr=j('<span class="min-w-0 max-w-full truncate"> </span>'),Cr=j('<span class="type-caption flex min-w-0 max-w-full items-start gap-2 whitespace-normal py-1 text-muted-foreground" role="status" data-testid="media-loading-placeholder"><span class="first-line-icon" aria-hidden="true"><!></span> <span class="flex min-w-0 flex-wrap items-baseline gap-x-1.5"><span> </span> <!></span></span>');function At(r,o){if(new.target)return Ue({component:At,...r});Ne(o,!0);let n=x(o,"name",7);var l={get name(){return n()},set name(v){n(v),F()},$set:ze,$on:(v,w)=>Be(o,v,w)},c=Cr(),u=q(c),s=q(u);nr(s,{get icon(){return ar},class:"size-3.5"}),V(u);var f=Z(u,2),_=q(f),I=He(_,!0),p=Z(_,2);{var k=v=>{var w=Fr(),M=He(w,!0);_e(w,(E,C)=>or?.(E,C),n),te(()=>Ze(M,n())),W(v,w)};X(p,v=>{n()&&v(k)})}return V(f),V(c),te(v=>Ze(I,v),[()=>Le.ui_mediaLoadingPlaceholder_title_label()]),W(r,c),Oe(l)}const mt="markdown-image-frame";function Tr(r,o){const n=new Map,l=new Map,c=new Map,u=[300,1e3];let s=!1;function f(t){let d=l.get(t);return d||(d={source:t.getAttribute("src")||"",workspaceId:o.getWorkspaceId(),retries:0,failureHandled:!1},l.set(t,d)),d}function _(t){const d=f(t);return!s&&r.contains(d.fallbackHost??t)&&d.workspaceId===o.getWorkspaceId()&&o.canUseMedia(d.source)&&!t.hasAttribute("data-media-unavailable")&&!t.hasAttribute("data-media-unsupported")&&at(d.source)!==null}function I(t,d=!1){if(!_(t))return;const m=f(t),h=at(m.source);if(!h)return;const T=m.fallbackHost,U=T?.contains(document.activeElement)??!1;if(m.failureHandled=!1,m.fallbackHost=void 0,d&&(m.retries=0),t.removeAttribute("src"),t.setAttribute("src",h),T){const O=n.get(T);O&&be(O),n.delete(T),T.replaceWith(t),M(),U&&r.contains(t)&&t.focus()}}function p(t){const d=f(t);s||!r.contains(t)||d.failureHandled||(d.failureHandled=!0,_(t)&&d.retries<u.length?d.timer=setTimeout(()=>{d.timer=void 0,I(t)},u[d.retries++]):w(t,"load-failed"))}function k(t){const d=t.parentElement;return d?.classList.contains(mt)?d:null}function v(t){const d=Number(t.getAttribute("width")),m=Number(t.getAttribute("height"));if(!(d>0&&m>0))return;const h=document.createElement("span");h.className=mt,h.style.aspectRatio=`${d} / ${m}`,h.style.setProperty("--image-aspect-ratio",`${d} / ${m}`),h.style.setProperty("--image-width",`${d}px`),h.dataset.loaded="false",t.replaceWith(h),h.appendChild(t);const T=h.appendChild(document.createElement("span"));T.className="markdown-image-frame-placeholder",n.set(T,Pe(At,{target:T,props:{name:yr(t,o.getWorkspaceId())}}));const U=()=>{if(c.delete(t),s||!r.contains(h))return;h.dataset.loaded="true";const O=n.get(T);O&&(be(O),n.delete(T)),T.remove()};t.complete&&t.naturalWidth>0?U():(c.set(t,U),t.addEventListener("load",U,{once:!0}))}function w(t,d){const m=t.getAttribute("src")||t.getAttribute("data-media-src")||"",h=Fe(m),T=kt(m,o.getWorkspaceId()),U=h?.path??T?.path,O=h?.workspaceId??T?.workspaceId,ve=t.getAttribute("data-name")||t.getAttribute("alt")||U?.split("/").pop()||void 0,D=document.createElement(t instanceof HTMLVideoElement?"div":"span");D.className="media-unavailable-host",(k(t)??t).replaceWith(D),o.onMediaRemoved(t);let ae;if(t instanceof HTMLImageElement&&d==="load-failed"){const oe=f(t);oe.fallbackHost=D,_(t)&&(ae=()=>I(t,!0))}const K=Pe(Qe,{target:D,props:{name:ve,reason:d,path:U,workspaceId:O,onRetry:ae}});if(n.set(D,K),t instanceof HTMLVideoElement){D.classList.add("flex","items-center","gap-2");const oe=D.appendChild(document.createElement("span"));n.set(oe,Pe(Ye,{target:oe,props:{videoUrl:m,videoName:ve,sourceKind:"workspace",mimeType:Me(m,o.getWorkspaceId())?.mimeType}}))}}function M(){if(!s){for(const t of r.querySelectorAll("img"))Ae(t)&&!t.closest("a")&&(t.tabIndex=0,t.setAttribute("role","button")),!(t.hasAttribute("data-media-unsupported")||t.hasAttribute("data-media-unavailable"))&&(f(t),t.hasAttribute(_t)&&!k(t)&&v(t),t.getAttribute("src")&&t.complete&&t.naturalWidth===0&&p(t));for(const t of r.querySelectorAll("[data-media-unsupported]"))w(t,"unsupported");for(const t of r.querySelectorAll("[data-media-unavailable]"))w(t,Nt(t));for(const[t,d]of l)r.contains(d.fallbackHost??t)||(d.timer!==void 0&&clearTimeout(d.timer),l.delete(t));for(const[t,d]of c)r.contains(t)||(t.removeEventListener("load",d),c.delete(t));for(const[t,d]of n)r.contains(t)||(be(d),n.delete(t))}}function E(t){const d=t.target;(d instanceof HTMLImageElement||d instanceof HTMLVideoElement)&&(d instanceof HTMLImageElement?p(d):w(d,"load-failed"))}const C=new MutationObserver(M);return C.observe(r,{childList:!0,subtree:!0}),r.addEventListener("error",E,!0),queueMicrotask(M),{destroy(){s=!0,C.disconnect();for(const t of l.values())t.timer!==void 0&&clearTimeout(t.timer);l.clear();for(const[t,d]of c)t.removeEventListener("load",d);c.clear(),r.removeEventListener("error",E,!0);for(const t of n.values())be(t);n.clear()}}}var Er=j('<div class="image-actions-overlay absolute z-10 svelte-nzvuq5" data-testid="markdown-image-actions-overlay"><!></div>'),Lr=j("<div></div>"),pt=j('<div role="group"><!> <!></div>'),Pr=j('<div><p class="whitespace-pre-wrap svelte-nzvuq5"> </p></div>'),Sr=j("<!> <!>",1);function gt(r,o){if(new.target)return Ue({component:gt,...r});Ne(o,!0);const n=e=>{var i=Re(),A=ie(i);{var b=P=>{var S=Er(),ne=q(S);{let N=R(()=>a(B).getAttribute("src")||""),ge=R(()=>a(B).getAttribute("alt")||void 0);Ee(Yt(ne,{get imageUrl(){return a(N)},get imageName(){return a(ge)},get open(){return a(fe)},set open(je){y(fe,je,!0)}}),je=>y(Y,je,!0),()=>a(Y))}V(S),Ee(S,N=>y(G,N),()=>a(G)),te(()=>Xe(S,`top: ${a(we).top??""}px; right: ${a(we).right??""}px;`)),W(P,S)},L=R(()=>a(B)&&K(a(B).getAttribute("src")||""));X(A,P=>{a(L)&&P(b)})}W(e,i)};let l=x(o,"content",7),c=x(o,"isStreaming",7,!1),u=x(o,"className",7,""),s=x(o,"workspaceId",23,()=>it()?.workspaceId??void 0),f=x(o,"relativeMediaBase",7),_=x(o,"onCodeBlockAction",7),I=x(o,"onFileClick",7),p=x(o,"canOpenFile",7),k=x(o,"allowFileMedia",7,!0),v=x(o,"taskBlockRenderMode",7,"placeholder"),w=x(o,"chatImageThumbnails",7,!1),M=x(o,"forceExternalLinks",7,!1),E=x(o,"renderRichFencesAsCode",7,!1),C=x(o,"renderDiagrams",7,!1),t=x(o,"allowSanitizedHtml",7,!1),d=x(o,"media",7);const m=Ot(),h=St(),T=R(()=>wr(l(),s())),U=R(()=>a(T).some(e=>e.type==="video")),O=R(()=>!a(U)&&a(T).length===1&&a(T)[0].type==="markdown"?a(T)[0].content:l()),ve=R(()=>lr(a(O)));let D=z(null),ae=z("");function K(e){return xe(e,k()&&p()?.()!==!1)}const oe=R(()=>sr(a(ae),k()&&p()?.()!==!1)),Ve=R(()=>$t(a(oe),s(),er)),g=R(()=>`<div class="markdown-content">${a(Ve)}</div>`);let H=0;const ce=150;let se=-1/0,Q=null,re=null;async function de(e,i,A,b){try{const L=await Vt(e,{...i,readOnly:!0});if(b!==H)return;y(ae,xr(L,A,i?.workspaceId,i?.relativeMediaBase),!0)}catch(L){if(b!==H)return;Se.error("Failed to process markdown:",L);const P=e.replace(/[&<>"']/g,S=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[S]||S);y(ae,`<p>${P}</p>`)}}function he(){if(!re)return;const e=ce-(performance.now()-se);if(e>0){Q=setTimeout(()=>{Q=null,he()},e);return}const i=re;re=null,se=performance.now(),i()}function De(){Q!==null&&(clearTimeout(Q),Q=null),re=null,se=-1/0}vt(()=>{const e=a(O),i={allowEmpty:!0,skipIfHTML:!1,preserveAnchors:!0,taskBlockRenderMode:v(),workspaceId:s(),relativeMediaBase:f()??(s()&&s()!==jt?"":void 0),renderRichFencesAsCode:E()||C(),processPrimitives:!C(),allowSanitizedHtml:t(),renderMath:!c(),workspaceFileVersion:m},A=d(),b=++H,L=()=>void de(e,i,A,b);c()?(re=L,Q===null&&he()):(De(),L())});let ue=z(void 0),B=z(null),we=z(Rt({top:0,right:0})),fe=z(!1),Y=z(void 0),G=z(null);function J(e){if(e.type==="mouseover"&&dt(a(B),a(G)))return;const i=e.target,A=Je(i);if(A&&Ae(A)&&K(A.getAttribute("src")||"")){if(a(B)===A)return;y(B,A,!0),y(we,Ir(A,e.currentTarget),!0)}else if(a(B)&&!a(fe)){if(i instanceof Node&&a(G)?.contains(i))return;y(B,null)}}function Ce(){!a(fe)&&!dt(a(B),a(G))&&y(B,null)}function Te(e){const i=Je(e.target);!i||!Ae(i)||!K(i.getAttribute("src")||"")||(e.preventDefault(),e.stopPropagation(),J(e),y(fe,!0))}function $(e){return Tr(e,{getWorkspaceId:()=>s(),canUseMedia:K,onMediaRemoved:i=>{a(B)===i&&y(B,null)}})}function me(e){const i=e.target,A=i.closest("a");if(!A&&i instanceof HTMLImageElement){const L=i.getAttribute("src")||"";if(wt(L)&&K(L)){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),a(ue)?.openImage(i);return}}if(A?.href){if(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),a(ue)?.openAsset(A))return;const L=pe(e),P=s()?ot(s()):void 0;st(A.href,{workspaceId:P,canOpenFile:p(),sourcePanelId:L,event:e,rawHref:A.getAttribute("href")??void 0,...M()?{forceExternal:!0}:{}});return}const b=Dt(i.closest("[data-mention]"));if(b){const{type:L,meta:P}=b;if(L==="file"&&b.filePath){if(p()?.()===!1)return;e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();const S=b.filePath;Se.debug("[MarkdownViewer] File mention clicked",{filePath:S,meta:P});const ne=pe(e),N=Ge({event:e});if(I())I()(S,{line:b.line,openInAdjacentPanel:N,sourcePanelId:ne});else{const ge=s();ge&&Ke.dispatch(Kt(ge,S,{line:b.line,openInAdjacentPanel:N,sourcePanelId:ne}))}}else if(b.folderPath!==void 0){if(p()?.()===!1||!s())return;e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),Ke.dispatch(Gt(s(),qt(b.folderPath)))}else if(L==="note"&&b.note){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();const S=b.note.id;Se.debug("[MarkdownViewer] Note mention clicked",{noteId:S,meta:P});const ne=pe(e),N=Ge({event:e});if(b.note.workspaceId&&b.note.workspaceId!==s()){st(Xt(S,b.note.workspaceId),{workspaceId:s()?ot(s()):void 0,sourcePanelId:ne,event:e});return}const ge=s();ge&&Ke.dispatch(Jt(ge,S,{openInAdjacentPanel:N,sourcePanelId:ne}))}}}function Ie(e){if(ye(e),!e.defaultPrevented){if(e.target instanceof HTMLImageElement&&Ae(e.target)&&(e.key==="Enter"||e.key===" ")){me(e);return}e.key!=="Enter"||!Ge({event:e})||me(e)}}function ye(e){const i=Je(e.target);!i||!Ae(i)||!K(i.getAttribute("src")||"")||a(Y)?.handleCopy(e,i.getAttribute("src")||"")}function pe(e){const i=e.target;if(i instanceof HTMLElement)return i.closest("[data-panel-id]")?.dataset.panelId}Ht(()=>{H+=1,De()});var qe={get content(){return l()},set content(e){l(e),F()},get isStreaming(){return c()},set isStreaming(e=!1){c(e),F()},get className(){return u()},set className(e=""){u(e),F()},get workspaceId(){return s()},set workspaceId(e=it()?.workspaceId??void 0){s(e),F()},get relativeMediaBase(){return f()},set relativeMediaBase(e){f(e),F()},get onCodeBlockAction(){return _()},set onCodeBlockAction(e){_(e),F()},get onFileClick(){return I()},set onFileClick(e){I(e),F()},get canOpenFile(){return p()},set canOpenFile(e){p(e),F()},get allowFileMedia(){return k()},set allowFileMedia(e=!0){k(e),F()},get taskBlockRenderMode(){return v()},set taskBlockRenderMode(e="placeholder"){v(e),F()},get chatImageThumbnails(){return w()},set chatImageThumbnails(e=!1){w(e),F()},get forceExternalLinks(){return M()},set forceExternalLinks(e=!1){M(e),F()},get renderRichFencesAsCode(){return E()},set renderRichFencesAsCode(e=!1){E(e),F()},get renderDiagrams(){return C()},set renderDiagrams(e=!1){C(e),F()},get allowSanitizedHtml(){return t()},set allowSanitizedHtml(e=!1){t(e),F()},get media(){return d()},set media(e){d(e),F()},$set:ze,$on:(e,i)=>Be(o,e,i)},$e=Sr(),et=ie($e);{var Mt=e=>{var i=Lr();Wt(i,21,()=>a(T),Ut,(A,b)=>{var L=Re(),P=ie(L);{var S=N=>{yt(N,{get allowFileMedia(){return k()},get canOpenFile(){return p()},get source(){return a(b).source},get name(){return a(b).name},get poster(){return a(b).poster}})},ne=N=>{gt(N,{get content(){return a(b).content},get isStreaming(){return c()},get workspaceId(){return s()},get relativeMediaBase(){return f()},get onCodeBlockAction(){return _()},get onFileClick(){return I()},get canOpenFile(){return p()},get allowFileMedia(){return k()},get taskBlockRenderMode(){return v()},get chatImageThumbnails(){return w()},get forceExternalLinks(){return M()},get renderRichFencesAsCode(){return E()},get renderDiagrams(){return C()},get allowSanitizedHtml(){return t()},get media(){return d()}})};X(P,N=>{a(b).type==="video"?N(S):N(ne,-1)})}W(A,L)}),V(i),te(()=>le(i,1,`markdown-video-segments ${u()??""}`,"svelte-nzvuq5")),W(e,i)},xt=e=>{var i=pt();let A;var b=q(i);tt(b,()=>a(g));var L=Z(b,2);n(L),V(i),_e(i,P=>$?.(P)),_e(i,(P,S)=>ft?.(P,S),()=>({enabled:C(),workspaceId:s(),context:h})),te(()=>A=le(i,1,`markdown-viewer streaming-content ${u()??""}`,"svelte-nzvuq5",A,{"chat-image-thumbnails":w()})),ee("click",i,me),ee("keydown",i,Ie),ke("copy",i,ye),ee("contextmenu",i,Te),ee("mouseover",i,J),ee("focusin",i,J),ke("mouseleave",i,Ce),W(e,i)},Ft=e=>{var i=Pr(),A=q(i),b=He(A,!0);V(i),te(()=>{le(i,1,`markdown-viewer simple-content ${u()??""}`,"svelte-nzvuq5"),Ze(b,a(O))}),W(e,i)},Ct=e=>{var i=pt();let A;var b=q(i);tt(b,()=>a(g));var L=Z(b,2);n(L),V(i),Ee(i,P=>y(D,P),()=>a(D)),_e(i,P=>$?.(P)),_e(i,(P,S)=>ft?.(P,S),()=>({enabled:C(),workspaceId:s(),context:h})),te(()=>A=le(i,1,`markdown-viewer static-content ${u()??""}`,"svelte-nzvuq5",A,{"chat-image-thumbnails":w()})),ee("click",i,me),ee("keydown",i,Ie),ke("copy",i,ye),ee("contextmenu",i,Te),ee("mouseover",i,J),ee("focusin",i,J),ke("mouseleave",i,Ce),W(e,i)};X(et,e=>{a(U)?e(Mt):c()?e(xt,1):a(ve)==="simple"&&!t()?e(Ft,2):e(Ct,-1)})}var Tt=Z(et,2);return Ee(It(Tt,{get workspaceId(){return s()},canUseMedia:K}),e=>y(ue,e,!0),()=>a(ue)),W(r,$e),Oe(qe)}Pt(["click","keydown","contextmenu","mouseover","focusin"]);export{yt as C,gt as M,At as a,wr as s};
|