@intent-hq/web 2.327.2 → 2.327.3
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/bin/intent-web.mjs +2 -0
- package/package.json +1 -1
- package/web/app/immutable/assets/{14.HorMMNG4.css → 14.CU62PBbE.css} +1 -1
- package/web/app/immutable/assets/16.DdJIHg9f.css +1 -0
- package/web/app/immutable/assets/ChatPanel.B73KM22O.css +1 -0
- package/web/app/immutable/assets/{16.CQiMfhJh.css → DockRecordingEditor.Cpd07eyT.css} +1 -1
- package/web/app/immutable/assets/conversation-turns.BHHyRLdd.css +1 -0
- package/web/app/immutable/chunks/{7k5ozo9c.js → -DqWFMjY.js} +1 -1
- package/web/app/immutable/chunks/{DeQzn7pT.js → -nlL-11J.js} +7 -7
- package/web/app/immutable/chunks/{BV4AHhCq.js → 13JKYtK_.js} +1 -1
- package/web/app/immutable/chunks/{BclymnXe.js → 35D9vOc6.js} +1 -1
- package/web/app/immutable/chunks/{Ca3Yads8.js → 3JpWDI-M.js} +4 -4
- package/web/app/immutable/chunks/{_tv07_-D.js → 3MiSzwO_.js} +1 -1
- package/web/app/immutable/chunks/{2bCqOBlF.js → 3t4RuxC6.js} +2 -2
- package/web/app/immutable/chunks/{CAL5qbag.js → 4IYHA49l.js} +1 -1
- package/web/app/immutable/chunks/{C1TwLTiC.js → 4Zskc9_e.js} +1 -1
- package/web/app/immutable/chunks/{BK3YE2GB.js → 5fWnBOdu.js} +1 -1
- package/web/app/immutable/chunks/{BYCQnKWG.js → 7ZTbeFDr.js} +1 -1
- package/web/app/immutable/chunks/{fSndiqme.js → 9jHc2HrQ.js} +1 -1
- package/web/app/immutable/chunks/{CKjldRop.js → 9o72bVmU.js} +1 -1
- package/web/app/immutable/chunks/{Ou2B083h.js → 9xAB6iEw.js} +3 -3
- package/web/app/immutable/chunks/{C_4hXDel.js → AfJdOpGJ.js} +1 -1
- package/web/app/immutable/chunks/{RgXiUiyX.js → AjPbGUJ_.js} +1 -1
- package/web/app/immutable/chunks/{B4Qf0RS5.js → B-lZ23N5.js} +1 -1
- package/web/app/immutable/chunks/{Ph7T0qF8.js → B01nzMRs.js} +1 -1
- package/web/app/immutable/chunks/B08wwvKU.js +5 -0
- package/web/app/immutable/chunks/{7rjdCDDK.js → B0J8YEPJ.js} +1 -1
- package/web/app/immutable/chunks/{C9-oKvmU.js → B4Un96Br.js} +1 -1
- package/web/app/immutable/chunks/{BbEZgkca.js → B6EWkrDE.js} +2 -2
- package/web/app/immutable/chunks/{C-am1GTe.js → B6X5Wi93.js} +1 -1
- package/web/app/immutable/chunks/{D1ynivqZ.js → B798GHK3.js} +1 -1
- package/web/app/immutable/chunks/{DkPB5Gyi.js → B7Mop_jC.js} +1 -1
- package/web/app/immutable/chunks/B7dOkBeu.js +1 -0
- package/web/app/immutable/chunks/{DkcUxSHK.js → B7gQ_nlj.js} +1 -1
- package/web/app/immutable/chunks/{D4fSLYwV.js → B8AHyIcJ.js} +1 -1
- package/web/app/immutable/chunks/{CTMsT2IU.js → B9dGZuHJ.js} +3 -3
- package/web/app/immutable/chunks/{Bhff3giG.js → B9k9ipWN.js} +1 -1
- package/web/app/immutable/chunks/{HpcR9-ZP.js → B9xeURWe.js} +1 -1
- package/web/app/immutable/chunks/{DAXKoZjm.js → BAcNJnHM.js} +1 -1
- package/web/app/immutable/chunks/{Gh0Bk6WC.js → BBy57-xG.js} +1 -1
- package/web/app/immutable/chunks/{CLDLGPLG.js → BDj_hFdE.js} +1 -1
- package/web/app/immutable/chunks/{CypQ6Hrf.js → BEOwcfbQ.js} +1 -1
- package/web/app/immutable/chunks/{CpPVAOg5.js → BFK7BFQt.js} +1 -1
- package/web/app/immutable/chunks/{2Yr7qZy-.js → BJptJeKO.js} +1 -1
- package/web/app/immutable/chunks/{BxRFeUGV.js → BJyBc51V.js} +1 -1
- package/web/app/immutable/chunks/{B6ZEHAgn.js → BLqcY2WP.js} +1 -1
- package/web/app/immutable/chunks/{CqnfptVg.js → BOR1_TRO.js} +1 -1
- package/web/app/immutable/chunks/{BBYPPwon.js → BOvycfTx.js} +1 -1
- package/web/app/immutable/chunks/{XKfxOi0c.js → BRpgL-_J.js} +1 -1
- package/web/app/immutable/chunks/{DTOenBGo.js → BY3-E0yy.js} +1 -1
- package/web/app/immutable/chunks/{DZzTUgIA.js → BY8Jls8O.js} +1 -1
- package/web/app/immutable/chunks/{jgNaB-mi.js → BZ9svoQk.js} +1 -1
- package/web/app/immutable/chunks/{DvnDAxdo.js → BZprW35U.js} +1 -1
- package/web/app/immutable/chunks/{DGuIJztL.js → BcyJoTHB.js} +1 -1
- package/web/app/immutable/chunks/{M0UFWl_S.js → BdQCA_Nv.js} +1 -1
- package/web/app/immutable/chunks/BdWqymET.js +1 -0
- package/web/app/immutable/chunks/{CIno4eJd.js → Bf7TqJG_.js} +1 -1
- package/web/app/immutable/chunks/{Bq9BF2kT.js → BfIdeT8L.js} +1 -1
- package/web/app/immutable/chunks/{Dd-c6aT7.js → BfWiwhpc.js} +1 -1
- package/web/app/immutable/chunks/{wOsjtdPJ.js → Bg-m0Nfi.js} +1 -1
- package/web/app/immutable/chunks/{B4Rscrf6.js → BgfnWFwk.js} +1 -1
- package/web/app/immutable/chunks/{Dp0wSsDS.js → Bggzn0XP.js} +2 -2
- package/web/app/immutable/chunks/{BerYBtY0.js → BgxXTSJ6.js} +1 -1
- package/web/app/immutable/chunks/{D7NWkz7l.js → BhbOznM0.js} +1 -1
- package/web/app/immutable/chunks/{BTxVcBTE.js → BjtjqFpR.js} +1 -1
- package/web/app/immutable/chunks/{B_oexMWu.js → Bm0frbxK.js} +1 -1
- package/web/app/immutable/chunks/{CuimWTUN.js → BneSomYW.js} +1 -1
- package/web/app/immutable/chunks/{BJpbRkma.js → BoIGV7s7.js} +1 -1
- package/web/app/immutable/chunks/{D-YrUZis.js → Br_KUH7F.js} +1 -1
- package/web/app/immutable/chunks/{DoV4Ngwf.js → BtY5FIF5.js} +1 -1
- package/web/app/immutable/chunks/{C6LN2Lq-.js → Bv_0taxh.js} +1 -1
- package/web/app/immutable/chunks/{C5bHHEee.js → BveUtPGK.js} +1 -1
- package/web/app/immutable/chunks/{D9E32u14.js → Bx_Kd6Zj.js} +1 -1
- package/web/app/immutable/chunks/BzV5CowC.js +1 -0
- package/web/app/immutable/chunks/{gnxdhh79.js → C0k-qPFA.js} +1 -1
- package/web/app/immutable/chunks/{DQfuBwT8.js → C1_2Nvwd.js} +1 -1
- package/web/app/immutable/chunks/{Q-FVgluz.js → C1pMbnE7.js} +1 -1
- package/web/app/immutable/chunks/{dinOFH6z.js → C4Tw7-py.js} +1 -1
- package/web/app/immutable/chunks/{CPzusSaQ.js → C58HgKcj.js} +1 -1
- package/web/app/immutable/chunks/{BbiJIN_E.js → C6DXM5lO.js} +1 -1
- package/web/app/immutable/chunks/{qB-JaQGy.js → C6tQk-Lg.js} +1 -1
- package/web/app/immutable/chunks/{uxNvmxnz.js → C9Oy0LtB.js} +1 -1
- package/web/app/immutable/chunks/{DhJNH_hq.js → C9ruBEtx.js} +1 -1
- package/web/app/immutable/chunks/C9vpFXDp.js +190 -0
- package/web/app/immutable/chunks/{BgiA9PsC.js → CDQiwfpS.js} +2 -2
- package/web/app/immutable/chunks/{ffjPpoAP.js → CGpqxwcV.js} +1 -1
- package/web/app/immutable/chunks/{CpOX1cm0.js → CI3k0XZh.js} +4 -4
- package/web/app/immutable/chunks/{BaUvfuFA.js → CKGr2YTz.js} +1 -1
- package/web/app/immutable/chunks/{CW9PUdij.js → CKlsIlGI.js} +1 -1
- package/web/app/immutable/chunks/{C7eFRIGF.js → CMmbfhfC.js} +1 -1
- package/web/app/immutable/chunks/{CLbcqiJX.js → CNynWE_u.js} +1 -1
- package/web/app/immutable/chunks/{D4wVqBkS.js → COsr-D4q.js} +1 -1
- package/web/app/immutable/chunks/{D_kdhP8o.js → CP38gzl0.js} +1 -1
- package/web/app/immutable/chunks/{BwVx_Xm9.js → CR1VVB-y.js} +1 -1
- package/web/app/immutable/chunks/{marbulK7.js → CRWxVPtt.js} +1 -1
- package/web/app/immutable/chunks/{D8dE5NKO.js → CSiaiLHL.js} +1 -1
- package/web/app/immutable/chunks/{CNZwPZBB.js → CViHflT5.js} +1 -1
- package/web/app/immutable/chunks/{C1vc2ZF2.js → CYjbCKOB.js} +1 -1
- package/web/app/immutable/chunks/{Dr-K85Pz.js → CZe-BIqB.js} +1 -1
- package/web/app/immutable/chunks/C_fXhDsq.js +408 -0
- package/web/app/immutable/chunks/{BGUHg5o_.js → Cb0R6qJM.js} +1 -1
- package/web/app/immutable/chunks/{CoZ28bOB.js → CcNhqKh5.js} +1 -1
- package/web/app/immutable/chunks/{Cwdoe-yo.js → CcurICQ5.js} +1 -1
- package/web/app/immutable/chunks/CdVR7Ll7.js +1 -0
- package/web/app/immutable/chunks/{COyObFie.js → Cds8-CeJ.js} +1 -1
- package/web/app/immutable/chunks/CjREz2UM.js +1 -0
- package/web/app/immutable/chunks/{Dmq2MLxr.js → CjjnLU79.js} +1 -1
- package/web/app/immutable/chunks/{DeB-Py0k.js → CjqwEdIV.js} +1 -1
- package/web/app/immutable/chunks/{Cy1SRgRj.js → CqajeRKF.js} +1 -1
- package/web/app/immutable/chunks/{C7VjZ5I1.js → Cr2ds2GX.js} +1 -1
- package/web/app/immutable/chunks/{DCo2M5nt.js → CrKwVRvT.js} +1 -1
- package/web/app/immutable/chunks/{95PmebfY.js → CroauewU.js} +1 -1
- package/web/app/immutable/chunks/{-ntpqjUQ.js → Cs3K9au3.js} +1 -1
- package/web/app/immutable/chunks/{D4wUHJ-V.js → CuacBn4U.js} +1 -1
- package/web/app/immutable/chunks/{l7AMrk83.js → Cue9ti62.js} +1 -1
- package/web/app/immutable/chunks/{B-LxAE4l.js → CwBEqZZ_.js} +1 -1
- package/web/app/immutable/chunks/{b8_D7H9k.js → CwBXGgp6.js} +1 -1
- package/web/app/immutable/chunks/{ColHxoku.js → CyLGGlF1.js} +4 -4
- package/web/app/immutable/chunks/CziMjc6R.js +11 -0
- package/web/app/immutable/chunks/D1Wd8yWC.js +12 -0
- package/web/app/immutable/chunks/{C5SMJxa0.js → D1zY3q4_.js} +2 -2
- package/web/app/immutable/chunks/{ClBnJ15C.js → D2bUbzxj.js} +1 -1
- package/web/app/immutable/chunks/{BvULLTwA.js → D39ODeMy.js} +2 -2
- package/web/app/immutable/chunks/{DwkxcWNI.js → D3glRUn0.js} +2 -2
- package/web/app/immutable/chunks/{B1nmZwVF.js → D3kn1fgc.js} +1 -1
- package/web/app/immutable/chunks/{Do9PiZ5P.js → D3pYGmsv.js} +2 -2
- package/web/app/immutable/chunks/{Cw26kBCe.js → D6G_--ry.js} +1 -1
- package/web/app/immutable/chunks/{HdOtmFfs.js → DAB4KDZf.js} +1 -1
- package/web/app/immutable/chunks/{Byv1V5rF.js → DBMurqmQ.js} +1 -1
- package/web/app/immutable/chunks/{BUU84hQY.js → DFXVbPZk.js} +1 -1
- package/web/app/immutable/chunks/{ChyK3c5O.js → DLFNuh8k.js} +1 -1
- package/web/app/immutable/chunks/{C5mH9Vrl.js → DLgg2y1C.js} +1 -1
- package/web/app/immutable/chunks/DLrur9eT.js +271 -0
- package/web/app/immutable/chunks/{CYgFtonv.js → DOuKhcDi.js} +1 -1
- package/web/app/immutable/chunks/{BOod2-vo.js → DPWvmlFQ.js} +1 -1
- package/web/app/immutable/chunks/{D7jA8MQK.js → DPXmbcdl.js} +1 -1
- package/web/app/immutable/chunks/{Bw8BPAST.js → DSjgIWnH.js} +1 -1
- package/web/app/immutable/chunks/{BJFbczXI.js → DTKsxP_g.js} +1 -1
- package/web/app/immutable/chunks/{DVnJa0eT.js → DVAV2MG2.js} +1 -1
- package/web/app/immutable/chunks/{Fb6bTqJy.js → DVEpt846.js} +1 -1
- package/web/app/immutable/chunks/{Ciht8P3-.js → DXmYCfpj.js} +1 -1
- package/web/app/immutable/chunks/{ClHpwdNk.js → DZt8Gjbk.js} +1 -1
- package/web/app/immutable/chunks/{jxb5pgpW.js → D_YJY_Ty.js} +1 -1
- package/web/app/immutable/chunks/{CBEZBV7x.js → DagQHAoe.js} +1 -1
- package/web/app/immutable/chunks/{DFxg8FPE.js → Dc2Hdtlu.js} +1 -1
- package/web/app/immutable/chunks/{D19QPbvx.js → DcQP1f_r.js} +3 -3
- package/web/app/immutable/chunks/{BsesepNZ.js → De3HYtL6.js} +1 -1
- package/web/app/immutable/chunks/{DgtgAyRj.js → DeH8i2FV.js} +1 -1
- package/web/app/immutable/chunks/{C2vxCrLD.js → DfURqgI9.js} +1 -1
- package/web/app/immutable/chunks/{7nLxl2IJ.js → DfxmKh09.js} +1 -1
- package/web/app/immutable/chunks/{BwY7DKzU.js → DgFSF7Q3.js} +1 -1
- package/web/app/immutable/chunks/{YcWsBw0J.js → DhFS-yhc.js} +1 -1
- package/web/app/immutable/chunks/{BmnlV2jU.js → Dhbliv-K.js} +1 -1
- package/web/app/immutable/chunks/{CdhZKdub.js → DkVStA3d.js} +1 -1
- package/web/app/immutable/chunks/{C4ih-xND.js → DkZU9zgp.js} +2 -2
- package/web/app/immutable/chunks/{CvG8wNT6.js → DlL4i-_c.js} +1 -1
- package/web/app/immutable/chunks/{DFghII67.js → Dmz-4iVB.js} +1 -1
- package/web/app/immutable/chunks/{9taqgPH1.js → DnkVLfZ3.js} +1 -1
- package/web/app/immutable/chunks/DreRgY6W.js +1 -0
- package/web/app/immutable/chunks/{C0AexULD.js → DvJIE9F0.js} +1 -1
- package/web/app/immutable/chunks/{DF5OSHTI.js → E96eL6xW.js} +1 -1
- package/web/app/immutable/chunks/{CcSZNfbk.js → EotFP58O.js} +1 -1
- package/web/app/immutable/chunks/{CB-J-0bJ.js → FrlwlE8V.js} +1 -1
- package/web/app/immutable/chunks/{BFQmpH-Y.js → GbJiak62.js} +1 -1
- package/web/app/immutable/chunks/{DqLpc8uk.js → KOIbPY1T.js} +1 -1
- package/web/app/immutable/chunks/PpSNoAPM.js +1 -0
- package/web/app/immutable/chunks/{COPJQClu.js → Q9zhiNlv.js} +1 -1
- package/web/app/immutable/chunks/{CDFRtA1F.js → TP_FEuf4.js} +1 -1
- package/web/app/immutable/chunks/{D_TIL4Xc.js → TWLYZedM.js} +1 -1
- package/web/app/immutable/chunks/{n9Db8fQb.js → U3vyCaVU.js} +1 -1
- package/web/app/immutable/chunks/{Bil-5-Mv.js → UeWiMZOF.js} +1 -1
- package/web/app/immutable/chunks/VCguIe99.js +1 -0
- package/web/app/immutable/chunks/{IsBHRTqp.js → VxpSEzE0.js} +1 -1
- package/web/app/immutable/chunks/{Aw3-65IC.js → WCqnCI0Y.js} +1 -1
- package/web/app/immutable/chunks/{B-B22ZmQ.js → X9_JIY5I.js} +1 -1
- package/web/app/immutable/chunks/{CpW6JN4X.js → YqTahsxp.js} +1 -1
- package/web/app/immutable/chunks/{BDUVRWqe.js → ZNzwzylD.js} +3 -3
- package/web/app/immutable/chunks/{CaaDYQm4.js → ZOCUfPRu.js} +6 -6
- package/web/app/immutable/chunks/{DoKuqfYA.js → ZWp2d2r6.js} +1 -1
- package/web/app/immutable/chunks/{X6OEIYik.js → cSZBj2H1.js} +1 -1
- package/web/app/immutable/chunks/{DguixOqZ.js → ckA-QIlc.js} +1 -1
- package/web/app/immutable/chunks/{DbYMKWAI.js → dD52HyjL.js} +2 -2
- package/web/app/immutable/chunks/{BOY33UBS.js → eq-q_IQg.js} +4 -4
- package/web/app/immutable/chunks/{1JDc8gDP.js → evMM8bqV.js} +1 -1
- package/web/app/immutable/chunks/{CdlZ8r5v.js → fDvN4TBM.js} +1 -1
- package/web/app/immutable/chunks/{B-mVY4KG.js → hwMB9Jx_.js} +1 -1
- package/web/app/immutable/chunks/{D6NxvjAo.js → iFTOUkOI.js} +2 -2
- package/web/app/immutable/chunks/{DT-w4ZA3.js → iXIypZcP.js} +1 -1
- package/web/app/immutable/chunks/{ewlOsRgS.js → k0Eu5yMT.js} +1 -1
- package/web/app/immutable/chunks/{CXCbFJ1d.js → mo2YzLEW.js} +1 -1
- package/web/app/immutable/chunks/{DacYbmEF.js → myjILdXe.js} +1 -1
- package/web/app/immutable/chunks/{DhAAH4rU.js → r2-n1eEu.js} +1 -1
- package/web/app/immutable/chunks/{Es_LZ_6E.js → r_aV6a4U.js} +1 -1
- package/web/app/immutable/chunks/{BXo80d0I.js → rr-r2USw.js} +1 -1
- package/web/app/immutable/chunks/{DpJ6ItFS.js → rz5fXBI2.js} +1 -1
- package/web/app/immutable/chunks/{BedviAdk.js → s4jPNyw8.js} +1 -1
- package/web/app/immutable/chunks/{CzSCQAr8.js → sAd9qIlC.js} +1 -1
- package/web/app/immutable/chunks/{LknVBIaq.js → tNRnW6ie.js} +1 -1
- package/web/app/immutable/chunks/{CTc1mqQ1.js → uZRrd2pm.js} +1 -1
- package/web/app/immutable/chunks/{MgRcWC-F.js → zWlUYLxQ.js} +1 -1
- package/web/app/immutable/entry/app.DoEJogUG.js +4 -0
- package/web/app/immutable/entry/start.C_iz1en-.js +1 -0
- package/web/app/immutable/nodes/{0.D4UmpUyl.js → 0.BtuyckLI.js} +1 -1
- package/web/app/immutable/nodes/{1.DTuLvyGe.js → 1.BlE22l2r.js} +1 -1
- package/web/app/immutable/nodes/{10.yW5YYZcV.js → 10.BZLSu1t9.js} +1 -1
- package/web/app/immutable/nodes/{12.B-WFagfi.js → 12.CZF6J8V0.js} +1 -1
- package/web/app/immutable/nodes/{13.knDmuG_H.js → 13.CmgBwUCN.js} +1 -1
- package/web/app/immutable/nodes/14.CP4eEnwP.js +3 -0
- package/web/app/immutable/nodes/{15.5d-87wXx.js → 15.D8X9TwUZ.js} +1 -1
- package/web/app/immutable/nodes/16.DDUlFhjD.js +2 -0
- package/web/app/immutable/nodes/{17.S_DWC10F.js → 17.DtGxkuYO.js} +2 -2
- package/web/app/immutable/nodes/{2.D-iQ8fmd.js → 2.C6nyC7hb.js} +4 -4
- package/web/app/immutable/nodes/{3.CQKvVdrW.js → 3.1uPqjsRC.js} +1 -1
- package/web/app/immutable/nodes/{4.Dq9WSzj3.js → 4.BjOowzuW.js} +1 -1
- package/web/app/immutable/nodes/{5.C2b8MeJP.js → 5.Dy-YkbU6.js} +1 -1
- package/web/app/immutable/nodes/{6.DZyVWynY.js → 6.DR9-o0Dc.js} +1 -1
- package/web/app/immutable/nodes/{7.BNPj2Hjb.js → 7.BR2qXozN.js} +1 -1
- package/web/app/immutable/nodes/{8.CYaF3iZ7.js → 8.DxHPj0Oq.js} +4 -4
- package/web/app/immutable/nodes/{9.D9yeuWg6.js → 9.BHHxehGk.js} +5 -5
- package/web/app/version.json +1 -1
- package/web/index.html +14 -14
- package/web/app/immutable/assets/ChatPanel.CbI83JII.css +0 -1
- package/web/app/immutable/assets/conversation-turns.uwdl8ht7.css +0 -1
- package/web/app/immutable/chunks/BJzHxIyr.js +0 -1
- package/web/app/immutable/chunks/BQKilZql.js +0 -190
- package/web/app/immutable/chunks/Bdee7uP3.js +0 -1
- package/web/app/immutable/chunks/C3g8Ux-E.js +0 -408
- package/web/app/immutable/chunks/CJvik4ry.js +0 -1
- package/web/app/immutable/chunks/D0OfnhNR.js +0 -11
- package/web/app/immutable/chunks/D3NOBSUZ.js +0 -271
- package/web/app/immutable/chunks/DLrZLCmS.js +0 -1
- package/web/app/immutable/chunks/DSwaqM2D.js +0 -1
- package/web/app/immutable/chunks/Debl1LJu.js +0 -1
- package/web/app/immutable/chunks/DqIdPWw6.js +0 -1
- package/web/app/immutable/chunks/DsvlGcLM.js +0 -9
- package/web/app/immutable/chunks/DuXpPbhO.js +0 -5
- package/web/app/immutable/chunks/tVWh__3e.js +0 -1
- package/web/app/immutable/chunks/xNaKu_mj.js +0 -1
- package/web/app/immutable/entry/app.CUk63TN3.js +0 -4
- package/web/app/immutable/entry/start.ByRHyT3-.js +0 -1
- package/web/app/immutable/nodes/14.CtAbrlVb.js +0 -3
- package/web/app/immutable/nodes/16.BcAEiIYy.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as l,v as h,t as T}from"./WFvSJ9zU.js";import{Ig as c,uU as w}from"./
|
|
1
|
+
import{d as l,v as h,t as T}from"./WFvSJ9zU.js";import{Ig as c,uU as w}from"./BoIGV7s7.js";import{i as W,c as s,n as u,b as m}from"./DkZU9zgp.js";const E=new Set(["new","creating"]);function g(n){let t;try{t=decodeURIComponent(n)}catch{return null}return t.length===0||E.has(t)?null:t}function f(n){const t=/^\/workspace\/([^/?#]+)\/?(?:[?#].*)?$/.exec(n);return t?g(t[1]):null}function A(n){const t=/^\/workspace\/([^/?#]+)(?:[/?#].*)?$/.exec(n);return t?g(t[1]):null}function C(n,t){return t.length>0&&A(n)===t}function p(){return typeof window>"u"?null:window.location?.pathname??null}function d(n,t){const e=`/workspace/${encodeURIComponent(n)}`,a=t?new URLSearchParams(t).toString():"";return a?`${e}?${a}`:e}function R(n,t){const e=t?.presenceFollowRequestId;return e?w(n,e):w(n)}function I(n,t){return t?u(n,{state:t}):u(n)}function o(n){return n?.tabState?.currentTabId??null}async function S(n,t,e,a){m();const i=I(t,e),r={workspaceId:n,epoch:s(),startTabId:a};return await i,r}function y(n){return!n||W()}function b(n,t){if(s()!==n.epoch||t!==n.startTabId&&t!==n.workspaceId)return!1;const e=p();return e===null||f(e)===n.workspaceId}async function v(n,t,e){if(y(n))return!1;const a=await S(n,t,e,o(c.state));return b(a,o(c.state))?(c.dispatch(R(n,e)),!0):!1}function*k(n,t,e){if(y(n))return!1;const a=o(yield*h(r=>r)),i=yield*l(S,n,t,e,a);return b(i,o(yield*h(r=>r)))?(yield*T(R(n,e)),!0):!1}function P(){m();const n=s(),t=o(c.state),e=p();return()=>s()===n&&o(c.state)===t&&p()===e}function _(n,t={}){return v(n,d(n,t.query),t.state)}function O(n,t={}){return k(n,d(n,t.query),t.state)}async function $(n){const t=f(n);t?await v(t,n,void 0):await u(n)}function*U(n){const t=f(n);t?yield*l(k,t,n,void 0):yield*l(u,n)}const N=Object.freeze(Object.defineProperty({__proto__:null,claimNavigation:P,navigateToAppRoute:$,navigateToAppRouteSaga:U,openAndShowWorkspace:_,showWorkspaceSaga:O,workspaceRoute:d},Symbol.toStringTag,{value:"Module"}));export{p as a,U as b,P as c,O as d,d as e,C as i,$ as n,_ as o,f as p,N as s,A as w};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{bo as c,_ as p}from"./CNdlzZOD.js";import{k as I}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/E96eL6xW.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/Br_KUH7F.js","/app/immutable/chunks/CNdlzZOD.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/BoIGV7s7.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D1Wd8yWC.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/DIh4SQwA.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/DrH3w3jB.js","/app/immutable/chunks/D3glRUn0.js","/app/immutable/chunks/9iFKJfkz.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/b0njYmMP.js","/app/immutable/chunks/CrN8CpnY.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BBy57-xG.js","/app/immutable/chunks/DVe2mCXY.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/Bv_0taxh.js","/app/immutable/chunks/De3HYtL6.js","/app/immutable/chunks/BIfN-lxi.js","/app/immutable/chunks/C9ruBEtx.js","/app/immutable/chunks/HVSUZ4Kq.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/DkZU9zgp.js","/app/immutable/chunks/D3kn1fgc.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bo as c,_ as p}from"./CNdlzZOD.js";import{k as I}from"./DhFS-yhc.js";import"./DYhIMPy1.js";import"./9iFKJfkz.js";import"./DIh4SQwA.js";import{bx as A}from"./D3glRUn0.js";import"./ChTqQfQN.js";import"./BOR1_TRO.js";import{g as R,Ig as d,uR as g,uT as y}from"./BoIGV7s7.js";import{a0 as L}from"./De3HYtL6.js";import{l as v}from"./evMM8bqV.js";const F="intent://local/note/{note-id}",S="intent://local/{workspace-id}/note/{note-id}";function f(){return c.ui_linkHandler_invalidFormat_error({shortFormat:F,longFormat:S})}class u extends Error{constructor(r){super(r),this.name="NotFoundError"}}function W(e){try{const r=new URL(e.replace("intent://","http://")),t=r.hostname,n=r.pathname.replace(/^\/+/,"").split("/").filter(l=>l.length>0),a=e.replace("intent://","").split(/[?#]/)[0].split("/").slice(1);if(!t||n.length<2)return{type:"unknown",orgId:t||"",resourceId:"",valid:!1,error:f()};let o,s,i,_,w;if(a[0]==="workspace"&&(a.length===2||a.length===3&&a[2]==="")){const l=T(a[1]);if(!l)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};o=l,s="workspace",i=l}else if(a[0]==="file")s="file",i=h(a.slice(1));else if(a.length>=3&&k(a[0])&&a[1]==="file")o=a[0],s="file",i=h(a.slice(2));else if(a.length===5&&a[1]==="agent"&&a[3]==="message"&&k(a[0])&&k(a[2])&&k(a[4])&&n.length===5&&n[1]==="agent"&&n[3]==="message")o=n[0],s="message",_=n[2],i=n[4];else if(n[0]==="note"||n[0]==="task")s=n[0],i=n[1];else if(n.length>=3&&(n[1]==="note"||n[1]==="task"))o=n[0],s=n[1],i=n[2];else return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};if(!i||i.trim().length===0)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:c.ui_linkHandler_emptyResourceId_error()};if(s==="note"||s==="task")return{type:s,orgId:t,workspaceId:o,resourceId:i,valid:!0};if(s==="file"){const l=/^#L\d+(?:-\d+|C\d+)?$/.test(r.hash)?r.hash:"",E=a.slice(o?2:1).join("/"),m=A(E+l);return i=h(m.path.split("/")),w=m.line,H(i)?{type:"file",orgId:t,workspaceId:o,resourceId:i,...w!==void 0?{line:w}:{},valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:"",valid:!1,error:c.ui_linkHandler_invalidFilePath_error()}}return s==="workspace"&&o?{type:"workspace",orgId:t,workspaceId:o,resourceId:i,valid:!0}:s==="message"&&o&&_?{type:"message",orgId:t,workspaceId:o,resourceId:i,agentId:_,valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:i,valid:!1,error:c.ui_linkHandler_unknownResourceType_error({type:s})}}catch(r){return{type:"unknown",orgId:"",resourceId:"",valid:!1,error:r instanceof Error?r.message:c.ui_linkHandler_parseFailed_error()}}}function h(e){return e.map(r=>decodeURIComponent(r)).join("/")}function H(e){return/^[A-Za-z]:/.test(e)?!1:e.split(/[\\/]/).every(t=>t.length>0&&t!=="."&&t!=="..")}const j=new Set([R,"new"]);function T(e){if(e===void 0||!k(e))return null;const r=decodeURIComponent(e);return j.has(r)?null:r}function k(e){let r;try{r=decodeURIComponent(e)}catch{return!1}return r.length>0&&r!=="."&&r!==".."&&!/[\\/]/.test(r)}async function O(e,r={}){if(!e.startsWith("intent://"))return!1;const t=W(e);if(!t.valid)return I.error(c.ui_linkHandler_invalidLink_title(),{description:t.error||c.ui_linkHandler_invalidLink_description()}),!0;try{switch(t.type){case"note":case"task":await N(t,r);break;case"file":await b(t,r);break;case"workspace":await C(t.resourceId);break;case"message":{const{openMessage:n}=await p(async()=>{const{openMessage:a}=await import("./E96eL6xW.js");return{openMessage:a}},__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]),import.meta.url);await n({workspaceId:t.workspaceId,agentId:t.agentId,messageId:t.resourceId});break}default:I.error(c.ui_linkHandler_unsupportedLink_title(),{description:c.ui_linkHandler_unsupportedLink_description({type:t.type})})}}catch(n){n instanceof u?I.error(c.ui_linkHandler_notFound_title(),{description:n.message}):I.error(c.ui_linkHandler_navigationFailed_title(),{description:n instanceof Error?n.message:c.ui_linkHandler_unknownError_label()})}return!0}function $(e,r){return L(e,r)}function B(){return async(e,r,t)=>{const a=t.target.closest("a");return a?.href?.startsWith("intent://")?(t.preventDefault(),await O(a.href)):!1}}async function C(e){const{appClient:r}=await p(async()=>{const{appClient:a}=await import("./Br_KUH7F.js").then(o=>o.p);return{appClient:a}},__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,2,22,23,24,25]),import.meta.url);if(!await r.workspaces.get(e).catch(()=>null))throw new u(c.workspace_loader_notFound_title());const{openAndShowWorkspace:n}=await p(async()=>{const{openAndShowWorkspace:a}=await import("./D3kn1fgc.js").then(o=>o.s);return{openAndShowWorkspace:a}},__vite__mapDeps([32,7,5,6,8,9,10,11,4,12,13,14,31]),import.meta.url);await n(e)}async function N(e,r){const t=r.workspaceId??v.select(d.state)??void 0;if(e.workspaceId){const a=!t||e.workspaceId!==t;if(!await P(e.workspaceId,e.resourceId))throw new u(c.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:e.workspaceId}));if(a){const{openAndShowWorkspace:s}=await p(async()=>{const{openAndShowWorkspace:i}=await import("./D3kn1fgc.js").then(_=>_.s);return{openAndShowWorkspace:i}},__vite__mapDeps([32,7,5,6,8,9,10,11,4,12,13,14,31]),import.meta.url);await s(e.workspaceId,{query:{note:e.resourceId}})}else d.dispatch(y(e.workspaceId,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());if(!await P(t,e.resourceId))throw new u(c.ui_linkHandler_noteNotFoundCurrent_error({noteId:e.resourceId}));d.dispatch(y(t,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function b(e,r){const t=r.workspaceId??v.select(d.state)??void 0;if(e.workspaceId){const n=!t||e.workspaceId!==t;if(n){const{openAndShowWorkspace:a}=await p(async()=>{const{openAndShowWorkspace:o}=await import("./D3kn1fgc.js").then(s=>s.s);return{openAndShowWorkspace:o}},__vite__mapDeps([32,7,5,6,8,9,10,11,4,12,13,14,31]),import.meta.url);if(!await a(e.workspaceId))return}d.dispatch(g(e.workspaceId,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:n?!1:r.openInAdjacentPanel??!1,sourcePanelId:n?void 0:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());d.dispatch(g(t,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:r.openInAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function P(e,r){try{const{backendRequest:t}=await p(async()=>{const{backendRequest:o}=await import("./D3glRUn0.js").then(s=>s.az);return{backendRequest:o}},__vite__mapDeps([15,4,5,11,16,10,17,18,19,14,20,13,21]),import.meta.url),n=await t("note.get",{workspaceId:e,noteId:r}),a=n&&typeof n=="object"&&"note"in n?n.note:n;return a!=null&&typeof a=="object"}catch{return!1}}export{u as NotFoundError,B as createIntentLinkClickHandler,$ as generateNoteLink,O as handleIntentLink,W as parseIntentLink};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as s}from"./
|
|
1
|
+
import{b as s}from"./eq-q_IQg.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 +1 @@
|
|
|
1
|
-
import{t as _t,bq as _,a_ as L,by as mt,bs as gt,b as vt,bo as x,bu as be,bt as Te}from"./CNdlzZOD.js";import{bs as ht,cd as yt,ca as wt,bk as xt,a7 as N,ay as m,W as r,bn as It,aA as g,aD as t,bS as z,a5 as _e,bH as De,bA as me,b_ as M,aB as E,c9 as o,bf as kt,bl as oe,bO as ae,bV as Ct}from"./DYhIMPy1.js";import{v as $t,n as Pt,u as Be,i as At}from"./9iFKJfkz.js";import{s as Me}from"./DIh4SQwA.js";import{c as S}from"./b0njYmMP.js";import{cD as Et,bj as Ot,aI as Ft,F as ne,aV as Tt,aJ as Dt,bk as Bt,a4 as Ve,as as Lt}from"./BIfN-lxi.js";import{W as Nt,T as zt,G as St,C as Rt,X as Ht,J as Wt,V as Mt}from"./jD6u_pUu.js";import{f as ge}from"./DwkxcWNI.js";import{h as Vt}from"./D6NxvjAo.js";import{k as jt,R as Gt,o as Jt,n as Ut,m as Yt,l as je}from"./BwVx_Xm9.js";import{k as ve}from"./YcWsBw0J.js";import{c as qt}from"./ChTqQfQN.js";import"./CqnfptVg.js";import{Ig as Ge,mU as Kt,EY as Xt}from"./BJpbRkma.js";import{w as Qt}from"./DrH3w3jB.js";import{i as q}from"./M0UFWl_S.js";import{bu as Zt,b8 as er,b5 as tr}from"./D7NWkz7l.js";import{cl as rr}from"./BsesepNZ.js";import{t as or}from"./H2jLkRRS.js";const ar={cursor:Rt,ghostty:St,terminal:zt,warp:Nt},nr={vscode:Mt,jetbrains:Wt,xcode:Ht};function sr(O){return ar[O.id]??nr[O.handlerType]??null}function Je(O){return O==="terminal"?Et:O==="finder"?Ot:Ft}const ir="shrink-0 text-muted-foreground hover:text-foreground focus-visible:text-foreground [&_svg]:size-4",Le="finder",lr={id:Le,name:"Finder",shortLabel:"Finder",appName:"Finder",category:"finder",handlerType:"finder",installed:!0,priority:0};function cr(O,s=[]){const se=new Set(s),K=O.filter(({installed:X,id:ye})=>X&&!se.has(ye));return K.some(({id:X})=>X===Le)||se.has(Le)?K:[...K,lr]}var dr=E('<img alt="" class="size-4"/>'),ur=E('<kbd class="type-caption ml-4 text-muted-foreground" aria-hidden="true"> </kbd>'),pr=E('<span class="min-w-0 flex-1 truncate"> </span> <!>',1),fr=E("<span> </span>"),he=E("<!> <!>",1),br=E("<span><!></span>"),_r=E('<img class="w-4 h-4"/>'),mr=E('<!> <span class="text-muted-foreground"> </span>',1),gr=E('<div class="inline-flex items-stretch rounded-md border border-border" data-open-combo-control=""><!> <!></div>'),vr=E('<div class="type-caption px-2 py-1.5 text-subtle"> </div>'),hr=E('<div class="w-60 max-w-full"><!> <!> <!></div>'),yr=E("<div><!></div>");function wr(O,s){if(new.target)return _t({component:wr,...O});ht(s,!0);const se=()=>be(qe,"$installedEditors$",ie),K=()=>be(Ke,"$hiddenEditorIds$",ie),X=()=>be(Xe,"$isWorkspaceHostLocal$",ie),ye=()=>be(Ye,"$openAction",ie),[ie,Ue]=gt(),le=(e,d=kt)=>{var u=N(),p=m(u);S(p,()=>Gt,(te,G)=>{G(te,{get value(){return t(v).id},children:(F,B)=>{var k=N(),T=m(k);Pt(T,17,d,C=>C.id,(C,c)=>{var J=N(),h=m(J);{const $=a=>{var i=N(),y=m(i);{var H=l=>{var A=dr();M(()=>Be(A,"src",`data:image/png;base64,${t(c).iconBase64??""}`)),r(l,A)},b=l=>{const A=o(()=>t(c).icon);var W=N(),D=m(W);S(D,()=>t(A),(U,re)=>{re(U,{size:16})}),r(l,W)},P=l=>{{let A=o(()=>t(c).faIcon??Je(t(c).category));ne(l,{get icon(){return t(A)},class:"size-4 text-muted-foreground"})}};L(y,l=>{t(c).iconBase64?l(H):t(c).icon?l(b,1):l(P,-1)})}r(a,i)};let n=o(()=>!I());S(h,()=>jt,(a,i)=>{i(a,{get value(){return t(c).id},closeOnSelect:!0,get disabled(){return t(n)},onSelect:()=>tt(t(c).id),get textValue(){return t(c).label},leading:$,children:(y,H)=>{var b=pr(),P=m(b),l=oe(P,!0),A=z(P,2);{var W=D=>{var U=ur(),re=oe(U,!0);M(()=>ae(re,t(c).shortcut)),r(D,U)};L(A,D=>{t(c).shortcut&&D(W)})}M(()=>ae(l,t(c).label)),r(y,b)},$$slots:{leading:!0,default:!0}})})}r(C,J)}),r(F,k)},$$slots:{default:!0}})}),r(e,u)},Ne=qt("OpenComboButton");let I=_(s,"filePath",7),ce=_(s,"workspaceId",7,""),de=_(s,"isDirectory",7,!0),we=_(s,"workspaceFolderPath",7),xe=_(s,"class",7,""),ue=_(s,"headerText",7),Ie=_(s,"usePortal",7,!0),ke=_(s,"side",7,"bottom"),V=_(s,"variant",7,"default"),Q=_(s,"branchName",7),Ce=_(s,"compact",7,!1),$e=_(s,"embedded",7,!1),Z=_(s,"inline",7,!1),j=_(s,"iconOnly",7,!1),R=_(s,"children",7,void 0);const ze=o(()=>V()==="sidebar"?"bg-sidebar hover:bg-sidebar/80":"bg-background hover:bg-muted"),Pe=yt(ce());wt(()=>{Pe.set(ce())});const Ye=Zt(),qe=er(Pe),Ke=tr(),Xe=rr(Pe);let ee=Ct(!1);xt(()=>{Ge.dispatch(Kt())});function Qe(e){return{id:e.id,label:e.name,shortLabel:e.shortLabel,icon:sr(e),shortcut:e.shortcut,handlerType:e.handlerType,appName:e.appName,category:e.category,iconBase64:e.iconBase64}}const Ze=Qt("externalEditors");let f=o(()=>{const e=se(),d=cr(e,K()).map(Qe),u={id:"other",label:x.ui_openCombo_other_label(),shortLabel:x.ui_openCombo_other_label(),icon:null,faIcon:Bt,handlerType:"generic"},p=[{id:"copy",label:x.ui_openCombo_copyPath_label(),shortLabel:x.ui_openCombo_copy_shortLabel(),icon:null,faIcon:Tt},...Q()?[{id:"copy-branch",label:x.ui_openCombo_copyBranch_label(),shortLabel:x.ui_openCombo_copyBranch_shortLabel(),icon:null,faIcon:Dt}]:[]];return!Ze||!X()?p:[...d,u,...p]});const pe=o(()=>t(f).some(e=>e.id!=="copy"&&e.id!=="copy-branch")),fe=o(()=>t(f).filter(e=>e.id!=="copy"&&e.id!=="copy-branch")),Se=o(()=>t(f).filter(e=>e.id==="copy"||e.id==="copy-branch")),v=o(()=>t(pe)?t(f).find(e=>e.id===ye())||t(f)[0]:t(f).find(e=>e.id==="copy")||t(f)[0]),Ae=o(()=>t(pe)?x.ui_openCombo_openIn_tooltip({name:t(v).label}):t(v).label);function Ee(){if(de())return I();const e=we()||I().substring(0,I().lastIndexOf("/"));return e?{folder:e,file:I()}:I()}async function Oe(e){if(!I())return;const d=de()?I():I().substring(0,I().lastIndexOf("/"));try{if(e==="copy"){await navigator.clipboard.writeText(or(I())),ve.success(x.ui_openCombo_pathCopied_label());return}if(e==="copy-branch"){Q()&&(await navigator.clipboard.writeText(Q()),ve.success(x.ui_openCombo_branchCopied_label()));return}if(e==="other"){const p=await q("external-editors:open-with-other",{path:d});p?.success?De(ee,!1):p?.error&&p.error!=="No application selected"&&ve.error(p.error);return}const u=t(f).find(p=>p.id===e);if(!u){Ne.warn(`Unknown action: ${e}`);return}switch(u.handlerType){case"finder":await q("shell:showItemInFolder",{path:d});break;case"vscode":await q("vscode:open",Ee());break;case"jetbrains":await q("jetbrains:open",Ee());break;case"xcode":await q("xcode:open",Ee());break;case"generic":default:{await q("external-editors:open",{editorId:u.id,path:d});break}}}catch(u){Ne.error(`Failed to execute action ${e}:`,u),ve.error(u instanceof Error?u.message:x.ui_openCombo_openFailed_error({name:e}))}}function Fe(e){e.stopPropagation(),Oe(t(v).id)}function et(e){e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),e.stopPropagation(),Oe(t(v).id))}function Re(e){e.stopPropagation()}function tt(e){Ge.dispatch(Xt(e)),Oe(e),De(ee,!1)}var rt={get filePath(){return I()},set filePath(e){I(e),g()},get workspaceId(){return ce()},set workspaceId(e=""){ce(e),g()},get isDirectory(){return de()},set isDirectory(e=!0){de(e),g()},get workspaceFolderPath(){return we()},set workspaceFolderPath(e){we(e),g()},get class(){return xe()},set class(e=""){xe(e),g()},get headerText(){return ue()},set headerText(e){ue(e),g()},get usePortal(){return Ie()},set usePortal(e=!0){Ie(e),g()},get side(){return ke()},set side(e="bottom"){ke(e),g()},get variant(){return V()},set variant(e="default"){V(e),g()},get branchName(){return Q()},set branchName(e){Q(e),g()},get compact(){return Ce()},set compact(e=!1){Ce(e),g()},get embedded(){return $e()},set embedded(e=!1){$e(e),g()},get inline(){return Z()},set inline(e=!1){Z(e),g()},get iconOnly(){return j()},set iconOnly(e=!1){j(e),g()},get children(){return R()},set children(e=void 0){R(e),g()},$set:mt,$on:(e,d)=>vt(s,e,d)},He=N(),ot=m(He);{var at=e=>{var d=he(),u=m(d);{var p=G=>{var F=he(),B=m(F);S(B,()=>Yt,(T,C)=>{C(T,{children:(c,J)=>{var h=he(),$=m(h);S($,()=>Jt,(a,i)=>{i(a,{get icon(){return Ve},children:(y,H)=>{var b=fr(),P=oe(b,!0);M(l=>ae(P,l),[()=>x.ui_openCombo_openInApp_tooltip()]),r(y,b)},$$slots:{default:!0}})});var n=z($,2);S(n,()=>Ut,(a,i)=>{i(a,{class:"w-60",children:(y,H)=>{le(y,()=>t(fe))},$$slots:{default:!0}})}),r(c,h)},$$slots:{default:!0}})});var k=z(B,2);S(k,()=>je,(T,C)=>{C(T,{})}),r(G,F)};L(u,G=>{t(fe).length&&G(p)})}var te=z(u,2);le(te,()=>t(Se)),r(e,d)},nt=e=>{var d=yr(),u=_e(d);{const p=(F,B)=>{let k=()=>(B?.()).props;var T=N(),C=m(T);{var c=n=>{var a=br();At(a,()=>({role:"button",tabindex:"0",onclick:t(f).length>1?void 0:Fe,onkeydown:t(f).length>1?void 0:et,...t(f).length>1?k():{},class:"cursor-pointer break-words rounded-sm text-inherit underline decoration-muted-foreground/20 underline-offset-2 hover:decoration-current focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",title:t(Ae)}));var i=_e(a);Me(i,R),me(a),r(n,a)},J=n=>{{let a=o(()=>t(f).length>1?void 0:Fe),i=o(()=>j()&&V()!=="sidebar"?"plain":"ghost"),y=o(()=>j()?V()==="sidebar"?"icon-compact":"icon-sm":void 0),H=o(()=>j()&&V()==="sidebar"&&t(ee)),b=o(()=>!j()),P=o(()=>j()?V()==="sidebar"?ir:"cursor-pointer text-muted-foreground hover:text-foreground focus-visible:text-foreground":"cursor-pointer");ge(n,Te({type:"button",get onclick(){return t(a)}},()=>t(f).length>1?k():{},{get variant(){return t(i)},get size(){return t(y)},get active(){return t(H)},get wrapContent(){return t(b)},get class(){return t(P)},get title(){return t(Ae)},children:(l,A)=>{var W=N(),D=m(W);Me(D,R),r(l,W)},$$slots:{default:!0}}))}},h=n=>{{let a=o(()=>x.ui_openCombo_openInApp_tooltip());ge(n,Te(k,{variant:"ghost-light",size:"icon-xs",get tooltip(){return t(a)},tooltipSide:"bottom",children:(i,y)=>{ne(i,{get icon(){return Ve},size:"xs"})},$$slots:{default:!0}}))}},$=n=>{var a=gr(),i=_e(a);{let b=o(()=>t(f).length>1?"rounded-r-none":""),P=o(()=>t(ze)),l=o(()=>t(pe)?t(Ae):void 0);ge(i,{type:"button",variant:"ghost",size:"sm",get class(){return`gap-1.5 px-2 ${t(b)??""} ${t(P)??""}`},onpointerdown:Re,onkeydown:Re,onclick:Fe,get title(){return t(l)},children:(A,W)=>{var D=mr(),U=m(D);{var re=w=>{var Y=_r();M(()=>{Be(Y,"src",`data:image/png;base64,${t(v).iconBase64??""}`),Be(Y,"alt",t(v).label)}),r(w,Y)},it=w=>{const Y=o(()=>t(v).icon);var We=N(),pt=m(We);S(pt,()=>t(Y),(ft,bt)=>{bt(ft,{size:14})}),r(w,We)},lt=w=>{ne(w,{get icon(){return t(v).faIcon},class:"w-3.5 h-3.5 opacity-60"})},ct=w=>{{let Y=o(()=>Je(t(v).category));ne(w,{get icon(){return t(Y)},class:"w-3.5 h-3.5 opacity-60"})}};L(U,w=>{t(v).iconBase64?w(re):t(v).icon?w(it,1):t(v).faIcon?w(lt,2):w(ct,-1)})}var dt=z(U,2),ut=oe(dt,!0);M(w=>ae(ut,w),[()=>t(pe)?x.ui_openCombo_open_label():t(v).label]),r(A,D)},$$slots:{default:!0}})}var y=z(i,2);{var H=b=>{{let P=o(()=>x.ui_openCombo_openInApp_tooltip());ge(b,Te(k,{type:"button",variant:"ghost",size:"icon-sm",get"aria-label"(){return t(P)},get class(){return`rounded-l-none border-l border-border ${t(ze)??""}`},children:(l,A)=>{ne(l,{get icon(){return Lt},class:"size-3! text-muted-foreground"})},$$slots:{default:!0}}))}};L(y,b=>{t(f).length>1&&b(H)})}me(a),r(n,a)};L(C,n=>{Z()&&R()?n(c):R()?n(J,1):Ce()?n(h,2):n($,-1)})}r(F,T)},te=F=>{var B=hr(),k=_e(B);{var T=h=>{var $=vr(),n=oe($,!0);M(()=>ae(n,ue())),r(h,$)};L(k,h=>{ue()&&h(T)})}var C=z(k,2);{var c=h=>{var $=he(),n=m($);le(n,()=>t(fe));var a=z(n,2);S(a,()=>je,(i,y)=>{y(i,{})}),r(h,$)};L(C,h=>{t(fe).length&&h(c)})}var J=z(C,2);le(J,()=>t(Se)),me(B),r(F,B)};let G=o(()=>Z()&&R()?"contents!":"");Vt(u,{align:"end",get portal(){return Ie()},get side(){return ke()},get class(){return t(G)},get open(){return t(ee)},set open(F){De(ee,F,!0)},trigger:p,content:te,$$slots:{trigger:!0,content:!0}})}me(d),M(()=>$t(d,1,`${Z()&&R()?"contents":"inline-flex items-center"} ${xe()??""}`)),r(e,d)};L(ot,e=>{$e()?e(at):e(nt,-1)})}r(O,He);var st=It(rt);return Ue(),st}export{wr as O,sr as a,Je as r,ir as s};
|
|
1
|
+
import{t as _t,bq as _,a_ as L,by as mt,bs as gt,b as vt,bo as x,bu as be,bt as Te}from"./CNdlzZOD.js";import{bs as ht,cd as yt,ca as wt,bk as xt,a7 as N,ay as m,W as r,bn as It,aA as g,aD as t,bS as z,a5 as _e,bH as De,bA as me,b_ as M,aB as E,c9 as o,bf as kt,bl as oe,bO as ae,bV as Ct}from"./DYhIMPy1.js";import{v as $t,n as Pt,u as Be,i as At}from"./9iFKJfkz.js";import{s as Me}from"./DIh4SQwA.js";import{c as S}from"./b0njYmMP.js";import{cD as Et,bj as Ot,aI as Ft,F as ne,aV as Tt,aJ as Dt,bk as Bt,a4 as Ve,as as Lt}from"./BIfN-lxi.js";import{W as Nt,T as zt,G as St,C as Rt,X as Ht,J as Wt,V as Mt}from"./jD6u_pUu.js";import{f as ge}from"./D3glRUn0.js";import{h as Vt}from"./iFTOUkOI.js";import{k as jt,R as Gt,o as Jt,n as Ut,m as Yt,l as je}from"./CR1VVB-y.js";import{k as ve}from"./DhFS-yhc.js";import{c as qt}from"./ChTqQfQN.js";import"./BOR1_TRO.js";import{Ig as Ge,mU as Kt,EY as Xt}from"./BoIGV7s7.js";import{w as Qt}from"./DrH3w3jB.js";import{i as q}from"./BdQCA_Nv.js";import{bu as Zt,b8 as er,b5 as tr}from"./BhbOznM0.js";import{cl as rr}from"./De3HYtL6.js";import{t as or}from"./H2jLkRRS.js";const ar={cursor:Rt,ghostty:St,terminal:zt,warp:Nt},nr={vscode:Mt,jetbrains:Wt,xcode:Ht};function sr(O){return ar[O.id]??nr[O.handlerType]??null}function Je(O){return O==="terminal"?Et:O==="finder"?Ot:Ft}const ir="shrink-0 text-muted-foreground hover:text-foreground focus-visible:text-foreground [&_svg]:size-4",Le="finder",lr={id:Le,name:"Finder",shortLabel:"Finder",appName:"Finder",category:"finder",handlerType:"finder",installed:!0,priority:0};function cr(O,s=[]){const se=new Set(s),K=O.filter(({installed:X,id:ye})=>X&&!se.has(ye));return K.some(({id:X})=>X===Le)||se.has(Le)?K:[...K,lr]}var dr=E('<img alt="" class="size-4"/>'),ur=E('<kbd class="type-caption ml-4 text-muted-foreground" aria-hidden="true"> </kbd>'),pr=E('<span class="min-w-0 flex-1 truncate"> </span> <!>',1),fr=E("<span> </span>"),he=E("<!> <!>",1),br=E("<span><!></span>"),_r=E('<img class="w-4 h-4"/>'),mr=E('<!> <span class="text-muted-foreground"> </span>',1),gr=E('<div class="inline-flex items-stretch rounded-md border border-border" data-open-combo-control=""><!> <!></div>'),vr=E('<div class="type-caption px-2 py-1.5 text-subtle"> </div>'),hr=E('<div class="w-60 max-w-full"><!> <!> <!></div>'),yr=E("<div><!></div>");function wr(O,s){if(new.target)return _t({component:wr,...O});ht(s,!0);const se=()=>be(qe,"$installedEditors$",ie),K=()=>be(Ke,"$hiddenEditorIds$",ie),X=()=>be(Xe,"$isWorkspaceHostLocal$",ie),ye=()=>be(Ye,"$openAction",ie),[ie,Ue]=gt(),le=(e,d=kt)=>{var u=N(),p=m(u);S(p,()=>Gt,(te,G)=>{G(te,{get value(){return t(v).id},children:(F,B)=>{var k=N(),T=m(k);Pt(T,17,d,C=>C.id,(C,c)=>{var J=N(),h=m(J);{const $=a=>{var i=N(),y=m(i);{var H=l=>{var A=dr();M(()=>Be(A,"src",`data:image/png;base64,${t(c).iconBase64??""}`)),r(l,A)},b=l=>{const A=o(()=>t(c).icon);var W=N(),D=m(W);S(D,()=>t(A),(U,re)=>{re(U,{size:16})}),r(l,W)},P=l=>{{let A=o(()=>t(c).faIcon??Je(t(c).category));ne(l,{get icon(){return t(A)},class:"size-4 text-muted-foreground"})}};L(y,l=>{t(c).iconBase64?l(H):t(c).icon?l(b,1):l(P,-1)})}r(a,i)};let n=o(()=>!I());S(h,()=>jt,(a,i)=>{i(a,{get value(){return t(c).id},closeOnSelect:!0,get disabled(){return t(n)},onSelect:()=>tt(t(c).id),get textValue(){return t(c).label},leading:$,children:(y,H)=>{var b=pr(),P=m(b),l=oe(P,!0),A=z(P,2);{var W=D=>{var U=ur(),re=oe(U,!0);M(()=>ae(re,t(c).shortcut)),r(D,U)};L(A,D=>{t(c).shortcut&&D(W)})}M(()=>ae(l,t(c).label)),r(y,b)},$$slots:{leading:!0,default:!0}})})}r(C,J)}),r(F,k)},$$slots:{default:!0}})}),r(e,u)},Ne=qt("OpenComboButton");let I=_(s,"filePath",7),ce=_(s,"workspaceId",7,""),de=_(s,"isDirectory",7,!0),we=_(s,"workspaceFolderPath",7),xe=_(s,"class",7,""),ue=_(s,"headerText",7),Ie=_(s,"usePortal",7,!0),ke=_(s,"side",7,"bottom"),V=_(s,"variant",7,"default"),Q=_(s,"branchName",7),Ce=_(s,"compact",7,!1),$e=_(s,"embedded",7,!1),Z=_(s,"inline",7,!1),j=_(s,"iconOnly",7,!1),R=_(s,"children",7,void 0);const ze=o(()=>V()==="sidebar"?"bg-sidebar hover:bg-sidebar/80":"bg-background hover:bg-muted"),Pe=yt(ce());wt(()=>{Pe.set(ce())});const Ye=Zt(),qe=er(Pe),Ke=tr(),Xe=rr(Pe);let ee=Ct(!1);xt(()=>{Ge.dispatch(Kt())});function Qe(e){return{id:e.id,label:e.name,shortLabel:e.shortLabel,icon:sr(e),shortcut:e.shortcut,handlerType:e.handlerType,appName:e.appName,category:e.category,iconBase64:e.iconBase64}}const Ze=Qt("externalEditors");let f=o(()=>{const e=se(),d=cr(e,K()).map(Qe),u={id:"other",label:x.ui_openCombo_other_label(),shortLabel:x.ui_openCombo_other_label(),icon:null,faIcon:Bt,handlerType:"generic"},p=[{id:"copy",label:x.ui_openCombo_copyPath_label(),shortLabel:x.ui_openCombo_copy_shortLabel(),icon:null,faIcon:Tt},...Q()?[{id:"copy-branch",label:x.ui_openCombo_copyBranch_label(),shortLabel:x.ui_openCombo_copyBranch_shortLabel(),icon:null,faIcon:Dt}]:[]];return!Ze||!X()?p:[...d,u,...p]});const pe=o(()=>t(f).some(e=>e.id!=="copy"&&e.id!=="copy-branch")),fe=o(()=>t(f).filter(e=>e.id!=="copy"&&e.id!=="copy-branch")),Se=o(()=>t(f).filter(e=>e.id==="copy"||e.id==="copy-branch")),v=o(()=>t(pe)?t(f).find(e=>e.id===ye())||t(f)[0]:t(f).find(e=>e.id==="copy")||t(f)[0]),Ae=o(()=>t(pe)?x.ui_openCombo_openIn_tooltip({name:t(v).label}):t(v).label);function Ee(){if(de())return I();const e=we()||I().substring(0,I().lastIndexOf("/"));return e?{folder:e,file:I()}:I()}async function Oe(e){if(!I())return;const d=de()?I():I().substring(0,I().lastIndexOf("/"));try{if(e==="copy"){await navigator.clipboard.writeText(or(I())),ve.success(x.ui_openCombo_pathCopied_label());return}if(e==="copy-branch"){Q()&&(await navigator.clipboard.writeText(Q()),ve.success(x.ui_openCombo_branchCopied_label()));return}if(e==="other"){const p=await q("external-editors:open-with-other",{path:d});p?.success?De(ee,!1):p?.error&&p.error!=="No application selected"&&ve.error(p.error);return}const u=t(f).find(p=>p.id===e);if(!u){Ne.warn(`Unknown action: ${e}`);return}switch(u.handlerType){case"finder":await q("shell:showItemInFolder",{path:d});break;case"vscode":await q("vscode:open",Ee());break;case"jetbrains":await q("jetbrains:open",Ee());break;case"xcode":await q("xcode:open",Ee());break;case"generic":default:{await q("external-editors:open",{editorId:u.id,path:d});break}}}catch(u){Ne.error(`Failed to execute action ${e}:`,u),ve.error(u instanceof Error?u.message:x.ui_openCombo_openFailed_error({name:e}))}}function Fe(e){e.stopPropagation(),Oe(t(v).id)}function et(e){e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),e.stopPropagation(),Oe(t(v).id))}function Re(e){e.stopPropagation()}function tt(e){Ge.dispatch(Xt(e)),Oe(e),De(ee,!1)}var rt={get filePath(){return I()},set filePath(e){I(e),g()},get workspaceId(){return ce()},set workspaceId(e=""){ce(e),g()},get isDirectory(){return de()},set isDirectory(e=!0){de(e),g()},get workspaceFolderPath(){return we()},set workspaceFolderPath(e){we(e),g()},get class(){return xe()},set class(e=""){xe(e),g()},get headerText(){return ue()},set headerText(e){ue(e),g()},get usePortal(){return Ie()},set usePortal(e=!0){Ie(e),g()},get side(){return ke()},set side(e="bottom"){ke(e),g()},get variant(){return V()},set variant(e="default"){V(e),g()},get branchName(){return Q()},set branchName(e){Q(e),g()},get compact(){return Ce()},set compact(e=!1){Ce(e),g()},get embedded(){return $e()},set embedded(e=!1){$e(e),g()},get inline(){return Z()},set inline(e=!1){Z(e),g()},get iconOnly(){return j()},set iconOnly(e=!1){j(e),g()},get children(){return R()},set children(e=void 0){R(e),g()},$set:mt,$on:(e,d)=>vt(s,e,d)},He=N(),ot=m(He);{var at=e=>{var d=he(),u=m(d);{var p=G=>{var F=he(),B=m(F);S(B,()=>Yt,(T,C)=>{C(T,{children:(c,J)=>{var h=he(),$=m(h);S($,()=>Jt,(a,i)=>{i(a,{get icon(){return Ve},children:(y,H)=>{var b=fr(),P=oe(b,!0);M(l=>ae(P,l),[()=>x.ui_openCombo_openInApp_tooltip()]),r(y,b)},$$slots:{default:!0}})});var n=z($,2);S(n,()=>Ut,(a,i)=>{i(a,{class:"w-60",children:(y,H)=>{le(y,()=>t(fe))},$$slots:{default:!0}})}),r(c,h)},$$slots:{default:!0}})});var k=z(B,2);S(k,()=>je,(T,C)=>{C(T,{})}),r(G,F)};L(u,G=>{t(fe).length&&G(p)})}var te=z(u,2);le(te,()=>t(Se)),r(e,d)},nt=e=>{var d=yr(),u=_e(d);{const p=(F,B)=>{let k=()=>(B?.()).props;var T=N(),C=m(T);{var c=n=>{var a=br();At(a,()=>({role:"button",tabindex:"0",onclick:t(f).length>1?void 0:Fe,onkeydown:t(f).length>1?void 0:et,...t(f).length>1?k():{},class:"cursor-pointer break-words rounded-sm text-inherit underline decoration-muted-foreground/20 underline-offset-2 hover:decoration-current focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",title:t(Ae)}));var i=_e(a);Me(i,R),me(a),r(n,a)},J=n=>{{let a=o(()=>t(f).length>1?void 0:Fe),i=o(()=>j()&&V()!=="sidebar"?"plain":"ghost"),y=o(()=>j()?V()==="sidebar"?"icon-compact":"icon-sm":void 0),H=o(()=>j()&&V()==="sidebar"&&t(ee)),b=o(()=>!j()),P=o(()=>j()?V()==="sidebar"?ir:"cursor-pointer text-muted-foreground hover:text-foreground focus-visible:text-foreground":"cursor-pointer");ge(n,Te({type:"button",get onclick(){return t(a)}},()=>t(f).length>1?k():{},{get variant(){return t(i)},get size(){return t(y)},get active(){return t(H)},get wrapContent(){return t(b)},get class(){return t(P)},get title(){return t(Ae)},children:(l,A)=>{var W=N(),D=m(W);Me(D,R),r(l,W)},$$slots:{default:!0}}))}},h=n=>{{let a=o(()=>x.ui_openCombo_openInApp_tooltip());ge(n,Te(k,{variant:"ghost-light",size:"icon-xs",get tooltip(){return t(a)},tooltipSide:"bottom",children:(i,y)=>{ne(i,{get icon(){return Ve},size:"xs"})},$$slots:{default:!0}}))}},$=n=>{var a=gr(),i=_e(a);{let b=o(()=>t(f).length>1?"rounded-r-none":""),P=o(()=>t(ze)),l=o(()=>t(pe)?t(Ae):void 0);ge(i,{type:"button",variant:"ghost",size:"sm",get class(){return`gap-1.5 px-2 ${t(b)??""} ${t(P)??""}`},onpointerdown:Re,onkeydown:Re,onclick:Fe,get title(){return t(l)},children:(A,W)=>{var D=mr(),U=m(D);{var re=w=>{var Y=_r();M(()=>{Be(Y,"src",`data:image/png;base64,${t(v).iconBase64??""}`),Be(Y,"alt",t(v).label)}),r(w,Y)},it=w=>{const Y=o(()=>t(v).icon);var We=N(),pt=m(We);S(pt,()=>t(Y),(ft,bt)=>{bt(ft,{size:14})}),r(w,We)},lt=w=>{ne(w,{get icon(){return t(v).faIcon},class:"w-3.5 h-3.5 opacity-60"})},ct=w=>{{let Y=o(()=>Je(t(v).category));ne(w,{get icon(){return t(Y)},class:"w-3.5 h-3.5 opacity-60"})}};L(U,w=>{t(v).iconBase64?w(re):t(v).icon?w(it,1):t(v).faIcon?w(lt,2):w(ct,-1)})}var dt=z(U,2),ut=oe(dt,!0);M(w=>ae(ut,w),[()=>t(pe)?x.ui_openCombo_open_label():t(v).label]),r(A,D)},$$slots:{default:!0}})}var y=z(i,2);{var H=b=>{{let P=o(()=>x.ui_openCombo_openInApp_tooltip());ge(b,Te(k,{type:"button",variant:"ghost",size:"icon-sm",get"aria-label"(){return t(P)},get class(){return`rounded-l-none border-l border-border ${t(ze)??""}`},children:(l,A)=>{ne(l,{get icon(){return Lt},class:"size-3! text-muted-foreground"})},$$slots:{default:!0}}))}};L(y,b=>{t(f).length>1&&b(H)})}me(a),r(n,a)};L(C,n=>{Z()&&R()?n(c):R()?n(J,1):Ce()?n(h,2):n($,-1)})}r(F,T)},te=F=>{var B=hr(),k=_e(B);{var T=h=>{var $=vr(),n=oe($,!0);M(()=>ae(n,ue())),r(h,$)};L(k,h=>{ue()&&h(T)})}var C=z(k,2);{var c=h=>{var $=he(),n=m($);le(n,()=>t(fe));var a=z(n,2);S(a,()=>je,(i,y)=>{y(i,{})}),r(h,$)};L(C,h=>{t(fe).length&&h(c)})}var J=z(C,2);le(J,()=>t(Se)),me(B),r(F,B)};let G=o(()=>Z()&&R()?"contents!":"");Vt(u,{align:"end",get portal(){return Ie()},get side(){return ke()},get class(){return t(G)},get open(){return t(ee)},set open(F){De(ee,F,!0)},trigger:p,content:te,$$slots:{trigger:!0,content:!0}})}me(d),M(()=>$t(d,1,`${Z()&&R()?"contents":"inline-flex items-center"} ${xe()??""}`)),r(e,d)};L(ot,e=>{$e()?e(at):e(nt,-1)})}r(O,He);var st=It(rt);return Ue(),st}export{wr as O,sr as a,Je as r,ir as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as l,r as m,d as a}from"./
|
|
1
|
+
import{g as l,r as m,d as a}from"./ZWp2d2r6.js";import{p}from"./myjILdXe.js";import{b as t,ay as o}from"./eq-q_IQg.js";import{M as u,b as c}from"./CFXA-WTd.js";var f=c().RailroadPeg.parser.LangiumParser,i=t(e=>{const r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{const r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{const r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${s(r)}`:`!${s(r)}`}:r},"transformPrefix"),s=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{const r=y(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),y=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return i(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),v=t(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=t(e=>{p(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(v(r)))},"populateDb"),b={parse:t(e=>{a.clear(),o.debug("[PEG Parser] Starting Langium parse");const r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const n=r.value;o.debug("[PEG Parser] Parsed rules:",n.rules.length),h(n),o.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},$={parser:b,db:a,renderer:m,styles:l};export{$ as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as Xt,bq as v,bo as F,a_ as me,by as Zt,bu as Ye,bs as Jt,b as Qt}from"./CNdlzZOD.js";import{bs as en,c5 as Xe,ca as xe,aD as t,bH as H,a5 as M,bA as R,W as L,bn as tn,c9 as d,bV as ae,cd as pt,c6 as nn,aA as m,bS as O,b_ as K,bl as Ze,bO as X,aB as T,b$ as Pe,be as sn,a7 as an,ay as Je}from"./DYhIMPy1.js";import{n as on,v as rn,p as ln}from"./9iFKJfkz.js";import{f as cn}from"./
|
|
1
|
+
import{t as Xt,bq as v,bo as F,a_ as me,by as Zt,bu as Ye,bs as Jt,b as Qt}from"./CNdlzZOD.js";import{bs as en,c5 as Xe,ca as xe,aD as t,bH as H,a5 as M,bA as R,W as L,bn as tn,c9 as d,bV as ae,cd as pt,c6 as nn,aA as m,bS as O,b_ as K,bl as Ze,bO as X,aB as T,b$ as Pe,be as sn,a7 as an,ay as Je}from"./DYhIMPy1.js";import{n as on,v as rn,p as ln}from"./9iFKJfkz.js";import{f as cn}from"./evMM8bqV.js";import{j as dn}from"./4IYHA49l.js";import{Ig as Se,nW as fn,y$ as un,rX as bt,nY as hn,a5 as kt}from"./BoIGV7s7.js";import{bM as gn,dp as vn}from"./De3HYtL6.js";import{c as mn}from"./ChTqQfQN.js";import{c as Lt,h as He,D as pn}from"./BtY5FIF5.js";import{F as _t,b6 as wt}from"./BIfN-lxi.js";import{f as Qe}from"./D3glRUn0.js";import{t as Re}from"./CR1VVB-y.js";import{t as bn}from"./HVSUZ4Kq.js";import{g as kn}from"./EotFP58O.js";function _n(q,c,oe,Ie=1){const We=Lt(q,c,oe,"","",{context:3}),re=new Set,pe=new Set,Z=wn(Ie)-1,De=We.split(`
|
|
2
2
|
`);let s=0,I=0,le=!1;for(const $ of De)if($.startsWith("@@")){le=!0;const J=$.match(/@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);J&&(I=parseInt(J[1],10),s=parseInt(J[2],10))}else le&&($.startsWith("+")?(re.add(s+Z),s++):$.startsWith("-")?(pe.add(I+Z),I++):$.startsWith(" ")&&(s++,I++));return{additions:re,deletions:pe}}function wn(q){return Number.isFinite(q)&&q>1?Math.floor(q):1}var Ln=T("<div><!> <!></div>"),yn=T('<div class="diff-skeleton svelte-1f4chm"><div class="diff-skeleton-header svelte-1f4chm"><!> <!></div> <div class="diff-skeleton-content svelte-1f4chm"></div></div>'),Cn=T('<div class="error-state svelte-1f4chm"><!> <span class="text-danger text-sm ml-2"> </span></div>'),xn=T('<div class="error-state svelte-1f4chm"><!> <span class="text-subtle text-sm ml-2"> </span></div>'),Pn=T('<div class="empty-state svelte-1f4chm"><span class="text-subtle text-sm"><!></span></div>'),Sn=T('<span class="icon">+</span> ',1),Hn=T('<span class="icon">−</span> ',1),Rn=T('<div class="selection-action-bar svelte-1f4chm"><span class="selection-info"> </span> <!> <!></div>'),In=T('<div class="diff-wrapper svelte-1f4chm"><!> <div class="diff-content svelte-1f4chm"><!></div></div>'),Wn=T('<div class="tracked-change-diff-viewer svelte-1f4chm"><!></div>');function Dn(q,c){if(new.target)return Xt({component:Dn,...q});en(c,!0);const oe=()=>Ye(Ct,"$read$",re),Ie=()=>Ye(Rt,"$workspace$",re),We=()=>Ye(It,"$workingTreeFileContentStore",re),[re,pe]=Jt(),Z=mn("TrackedChangeDiffViewer"),De=2*1024*1024;let s=v(c,"change",7),I=v(c,"active",7,!0),le=v(c,"workspaceId",7),$=v(c,"viewMode",7,"unified"),J=v(c,"showHeader",7,!1),Ne=v(c,"foldUnchanged",7,!0),Me=v(c,"lineWrapping",7,!1),U=v(c,"onStageHunk",7),A=v(c,"onUnstageHunk",7),et=v(c,"onOpenCommit",7),Ue=v(c,"refreshKey",7),Ae=v(c,"branchBaseRef",7),Ee=v(c,"branchBaseCommitSha",7),ge=v(c,"useProvidedContent",7,!1),ce=v(c,"allowHeadReads",7,!0),Fe=v(c,"canReadHeadFiles",7),W=v(c,"lineOffset",7,1),tt=v(c,"lineStageIndicators",7),Oe=v(c,"annotations",23,()=>[]),Te=v(c,"renderAnnotation",7),$e=v(c,"virtualizer",7),G=v(c,"gitRootId",7,void 0),be=v(c,"gitRootPath",7,void 0);const de=Xe(()=>le())??kn()?.workspaceId??"",yt=Math.random().toString(36).substring(2,8),Be=`tracked-diff:${crypto.randomUUID()}`,Ct=gn(de,Be),Q=d(()=>oe()?.result?.kind==="trackedDiff"?oe().result:void 0),ke=d(()=>oe()?.loading??!0),nt=d(()=>oe()?.error??null),ze=d(()=>(t(Q)?.oldContent.length??0)+(t(Q)?.newContent.length??0)>De),B=d(()=>t(ze)?"":t(Q)?.oldContent??""),V=d(()=>t(ze)?"":t(Q)?.newContent??""),ee=d(()=>ct(s()?.relativePath||s()?.file||"")),it=d(()=>t(Q)?.chunk?.chunks.length?At(t(Q).chunk,t(ee)):""),xt=d(()=>!t(B)&&!t(V)&&!t(it)),Pt=d(()=>!!s()?.gitlink||!!t(Q)?.gitlink),st=d(()=>W()>1?`
|
|
3
3
|
`.repeat(W()-1):""),St=d(()=>t(st)+t(B)),Ht=d(()=>t(st)+t(V));let _=ae(null),je=ae(null),_e=null,we=ae(!1);const Rt=vn(de),at=pt(void 0),ot=pt(""),It=dn(ot,at),rt=d(Ie),te=d(()=>be()||t(rt)?.worktreePath||t(rt)?.repositoryPath||""),Le=d(()=>s()?.relativePath||s()?.file||"file"),Wt=d(()=>Ut(t(Le)));let ye=ae(null),lt=ae("");function ct(e){if(!e.startsWith("/")||!t(te))return e;const i=t(te).endsWith("/")?t(te).slice(0,-1):t(te);if(e.startsWith(i+"/"))return e.slice(i.length+1);if(e.startsWith(i)){const a=e.slice(i.length);return a.startsWith("/")?a.slice(1):a}return e}function Dt(e){return e?e.startsWith("/")?e:t(te)?`${t(te)}/${e}`:null:null}const dt=d(()=>W()>1),Nt=d(()=>t(dt)?`${t(Le)}:${He(t(B))}:off${W()}`:void 0),Mt=d(()=>t(dt)?`${t(Le)}:${He(t(V))}:off${W()}`:void 0);function Ut(e){const i=e.split(".").pop()?.toLowerCase();return i?{ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",py:"python",rs:"rust",go:"go",rb:"ruby",java:"java",kt:"kotlin",swift:"swift",cs:"csharp",cpp:"cpp",c:"c",h:"c",hpp:"cpp",json:"json",yaml:"yaml",yml:"yaml",toml:"toml",md:"markdown",html:"html",css:"css",scss:"scss",sql:"sql",sh:"bash",bash:"bash",zsh:"bash",svelte:"svelte",vue:"vue"}[i]:void 0}function At(e,i){const a=`a/${i}`,o=`b/${i}`,u=[`diff --git ${a} ${o}`,`--- ${a}`,`+++ ${o}`];for(const r of e.chunks){u.push(`@@ -${r.oldStart},${r.oldLines} +${r.newStart},${r.newLines} @@`);for(const h of r.lines){const l=h.type===kt.Addition?"+":h.type===kt.Deletion?"-":" ",g=h.content.endsWith(`
|
|
4
4
|
`)?h.content.slice(0,-1):h.content;u.push(`${l}${g}`)}}return u.join(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./DYhIMPy1.js";import{s as Be}from"./9iFKJfkz.js";import{D as be,E as pe,c as Me,F as Ee}from"./HVSUZ4Kq.js";import{s as Re}from"./CdlZ8r5v.js";function Pe(t,r={}){const l=(r.axis??"y")==="y"?"height":"width",o=parseFloat(getComputedStyle(t)[l]);if(!Number.isFinite(o))return{duration:0};const p=r.duration??160,v=p<=80?"fast":p<=160?"moderate":"slow";return be(t,{axis:r.axis,tier:v},{direction:"in"})}function Ce(){return Re.get("enableComponentTransitions")}const ve={request(){},settle(){}},k=new WeakMap,Ne=2,ke=2e3;function Ve(t,r){let l=r.enabled??!0,o=r.follow,p=r.onFollowChange,v=r.onScrollStateChange,g=r.threshold??100,d=!1,m=0,s=0,c=!1,w=null,F,y=null,E=null,L=null,T=null,A=null,O=null,R=null,C=null,M=0,N=null,h=!1,P=null;const S=new Set,q=new Map,V=new WeakSet,B=new Map,u=document.createElement("div");u.dataset.followBottomAnchor="",u.setAttribute("aria-hidden","true"),u.style.cssText=`height:1px;${r.layoutNeutralBottomAnchor?"margin-top:-1px;":""}overflow-anchor:auto;pointer-events:none;flex:0 0 auto;`;function I(e){e===u||B.has(e)||(B.set(e,e.style.overflowAnchor),e.style.overflowAnchor="none")}function Y(e){const n=B.get(e);n!==void 0&&(e.style.overflowAnchor=n,B.delete(e))}function a(e){if(e)for(const i of t.children)i instanceof HTMLElement&&I(i);else for(const i of B.keys())Y(i);const n=e?"auto":"none";u.style.overflowAnchor!==n&&(u.style.overflowAnchor=n),e?(u.parentElement!==t||u.nextSibling)&&t.append(u):u.remove()}function $(){a(o)}function ye(){u.remove();for(const e of B.keys())Y(e)}function K(e){V.add(e),T?.observe(e)}function ne(){A!==null&&cancelAnimationFrame(A),C!==null&&cancelAnimationFrame(C),A=null,C=null,M=0,N=null}function J(){return Math.max(0,t.scrollHeight-t.clientHeight)}function X(){return P??=getComputedStyle(t).overflowAnchor!=="none",P}function H(){return{maximum:J(),scrollTop:t.scrollTop}}function _(e=H()){return e.scrollTop!==e.maximum&&(t.scrollTop=e.maximum),{maximum:e.maximum,scrollTop:e.maximum}}function G(e=H()){return e.maximum-e.scrollTop<=g}function x(e=H()){const n=Math.max(0,e.maximum-e.scrollTop),i=n<=g;E?.distanceFromBottom===n&&E.isAtBottom===i&&E.isFollowing===o||(E={distanceFromBottom:n,isAtBottom:i,isFollowing:o},v?.({distanceFromBottom:n,isAtBottom:i,isFollowing:o}))}function Q(e){F=e,w===null&&(w=requestAnimationFrame(()=>{w=null;const n=F;F=void 0,!(h||!l)&&(n&&(y?.event!==n||n.defaultPrevented||performance.now()>=y.expiresAt)||(G()?z.followAndScroll():x()))}))}function D(e,n=!0){if(y=null,!l){o=e;return}const i=o!==e;i&&(o=e,a(e)),i&&n&&p?.(e),e||ne(),x()}function Z(e,n=!0){if(!S.delete(e))return;const i=(q.get(e.element)??1)-1;i>0?q.set(e.element,i):(q.delete(e.element),V.has(e.element)||T?.unobserve?.(e.element)),M=0,n&&U()}function ee(e=!0){if(S.size===0)return;const n=performance.now();for(const i of S)(!t.contains(i.element)||n>=i.expiresAt)&&Z(i,e)}function te(){if(A=null,h||!l||!o)return;if(ee(!1),S.size>0){A=requestAnimationFrame(te);return}const e=_(),{maximum:n}=e;x(e),n===N?M+=1:(M=0,N=n),M<Ne&&(A=requestAnimationFrame(te))}function U(){h||!l||!o||A!==null||(A=requestAnimationFrame(te))}function W(e=!0){if(h||!l||!o)return;const n=_(),{maximum:i}=n;x(n),M=0,N=i,e&&U()}function oe(){R===null&&(R=requestAnimationFrame(()=>{R=null,!(h||!l)&&x()}))}function Ae(){if(C=null,h||!l)return;let e=H();const n=e.scrollTop!==e.maximum;e=_(e),(n||e.maximum!==N||S.size>0)&&(M=0,N=e.maximum,U()),x(e)}function xe(){if(!(h||!l)){if(o){if(A!==null||C!==null)return;C=requestAnimationFrame(Ae);return}oe()}}function Fe(){if(!(h||!l)){if(o){W(C===null);return}oe()}}const z={followAndScroll(){D(!0),W()},isFollowing:()=>o,isNativeScrollAnchoringActive:()=>!o&&getComputedStyle(t).overflowAnchor!=="none",hasActiveMutation:()=>o?(ee(),S.size>0):!1,beforeMutation(e,n){if(h||!l||!o)return ve;const i={element:e,expiresAt:performance.now()+(n.maxHoldMs??ke)};S.add(i);const f=q.get(e)??0;return q.set(e,f+1),f===0&&!V.has(e)&&T?.observe(e),M=0,U(),{request(){!S.has(i)||h||(X()?U():W())},settle(){if(!(h||!S.has(i))){if(X()){Z(i);return}Z(i,!1),W()}}}}};function re(e){e.deltaY<0?D(!1):e.deltaY>0&&(y={event:e,expiresAt:performance.now()+1e3},Q(e))}function le(e){const n=y;y=null,e.target===t&&n&&!n.event.defaultPrevented&&performance.now()<n.expiresAt&&G()&&z.followAndScroll()}let ie=0;function se(e){y=null,ie=e.touches[0]?.clientY??0}function ae(e){const n=e.touches[0]?.clientY??0;ie-n<0&&D(!1)}function ue(){Q()}function ce(e){y=null,["ArrowUp","PageUp","Home"].includes(e.key)?D(!1):["ArrowDown","PageDown","End"].includes(e.key)&&Q()}function Se(e){if(e.button!==0||e.target!==t)return!1;const n=Math.max(0,t.offsetWidth-t.clientWidth);if(n===0)return!1;const i=t.getBoundingClientRect(),f=t.offsetWidth>0?n*(i.width/t.offsetWidth):n;return getComputedStyle(t).direction==="rtl"?e.clientX<=i.left+f:e.clientX>=i.right-f}function fe(){if(!d){if(o&&A!==null)return;let f=H();o&&(f=_(f)),x(f);return}const e=J(),n=Math.max(0,e-t.scrollTop);if(e!==m){m=e,s=n,c=!1,x();return}const i=n-s;s=n,i>0?(c=!1,D(!1)):i<0?(c=!0,G()?z.followAndScroll():x()):x()}function me(e){y=null,d=Se(e),m=J(),s=Math.max(0,m-t.scrollTop),c=!1}function j(){d&&(d=!1,c&&G()?z.followAndScroll():x())}function Le(){if(!L){L=new MutationObserver(e=>{let n=!1;for(const i of e)if(i.type==="childList"){for(const f of i.removedNodes)n=!0,f instanceof HTMLElement&&Y(f);for(const f of i.addedNodes)f instanceof HTMLElement&&f!==u&&T&&(K(f),o&&f.parentElement===t&&I(f))}n&&ee(),a(o),xe()}),L.observe(t,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),T=new ResizeObserver(Fe),K(t);for(const e of t.children)e instanceof HTMLElement&&e!==u&&K(e)}}function Te(){L?.disconnect(),L=null,T?.disconnect(),T=null}function de(e=!1){if(!l||h)return;if(k.set(t,z),t.addEventListener("scroll",fe,{passive:!0}),t.addEventListener("scrollend",le,{passive:!0,capture:!0}),t.addEventListener("wheel",re,{passive:!0}),t.addEventListener("touchstart",se,{passive:!0}),t.addEventListener("touchmove",ae,{passive:!0}),t.addEventListener("touchend",ue,{passive:!0}),t.addEventListener("keydown",ce),t.addEventListener("pointerdown",me,{passive:!0}),window.addEventListener("pointerup",j,{passive:!0}),window.addEventListener("pointercancel",j,{passive:!0}),$(),Le(),e){O=requestAnimationFrame(()=>{O=null,!(h||!l)&&(X(),o?W():x())});return}X();let n=H();o&&(n=_(n),N=n.maximum),x(n)}function he(){y=null,F=void 0,S.clear(),q.clear(),d=!1,ne(),w!==null&&cancelAnimationFrame(w),w=null,O!==null&&cancelAnimationFrame(O),O=null,R!==null&&cancelAnimationFrame(R),R=null,E=null,P=null,k.get(t)===z&&k.delete(t),Te(),ye(),t.removeEventListener("scroll",fe),t.removeEventListener("scrollend",le,!0),t.removeEventListener("wheel",re),t.removeEventListener("touchstart",se),t.removeEventListener("touchmove",ae),t.removeEventListener("touchend",ue),t.removeEventListener("keydown",ce),t.removeEventListener("pointerdown",me),window.removeEventListener("pointerup",j),window.removeEventListener("pointercancel",j)}return de(!0),{update(e){p=e.onFollowChange,v=e.onScrollStateChange,g=e.threshold??100;const n=e.enabled??!0;if(l!==n&&(n||he(),l=n,l)){o=e.follow,de(!0);return}l?e.follow&&!o?(D(!0,!1),W()):!e.follow&&o?D(!1,!1):O===null&&oe():o=e.follow},destroy(){h=!0,he()}}}function Ye(t){return k.get(t)?.isFollowing()??!1}function _e(t){return k.get(t)?.isNativeScrollAnchoringActive()??!1}function Ue(t){return k.get(t)?.hasActiveMutation()??!1}function ge(t,r={}){let l=t;for(;l;){const o=k.get(l);if(o)return o.beforeMutation(t,r);l=l.parentElement}return ve}function Oe(t){const{scrollTop:r,scrollHeight:l,clientHeight:o}=t;return l-r-o}function qe(t,r=100){return Oe(t)<=r}function De(t,r=!1){t.scrollTo({top:t.scrollHeight,behavior:r?"smooth":"auto"})}function Ie(t){const r=k.get(t);if(r){r.followAndScroll();return}De(t)}function Xe(t,r,l=150,o){const p=t();if(!p)return;const v=p.scrollTop,g=performance.now();function d(s){return 1-Math.pow(1-s,3)}function m(s){const c=t();if(!c)return;const w=s-g,F=Math.min(w/l,1),y=typeof r=="function"?r(c):r;c.scrollTop=v+(y-v)*d(F),F<1?requestAnimationFrame(m):o?.(c)}requestAnimationFrame(m)}function Ge(t,r="[data-message-id], [data-lazy-turn-key]"){const l=t.scrollTop,o=t.getBoundingClientRect(),p=qe(t,100);if(p&&k.get(t)?.isFollowing()!==!1)return{element:null,offsetFromViewport:0,scrollTop:l,isNearBottom:p};const v=t.querySelectorAll(r);let g=null,d=0,m;for(const s of v){const c=s.getBoundingClientRect();if(c.top>=o.bottom)break;if(c.top>=o.top){g||(g=s,d=c.top-o.top);const w=s.getAttribute("data-message-id");if(w){m={id:w,offsetFromViewport:c.top-o.top};break}}}return{element:g,offsetFromViewport:d,scrollTop:l,isNearBottom:p,...m?{message:m}:{}}}function we(t,r){if(r.message){const l=t.querySelector(`[data-message-id="${CSS.escape(r.message.id)}"]`);if(l)return{element:l,offsetFromViewport:r.message.offsetFromViewport}}return r.element?.isConnected?{element:r.element,offsetFromViewport:r.offsetFromViewport}:null}function je(t,r){return we(t,r)!==null}function Ke(t,r){const l=we(t,r);if(l){const{element:o,offsetFromViewport:p}=l,v=t.getBoundingClientRect(),m=o.getBoundingClientRect().top-v.top-p;Math.abs(m)>5&&(t.scrollTop+=m)}}function b(t,r){const l=Number.parseFloat(String(t[r]));return Number.isFinite(l)?l:0}function Je(t,r={},l={}){const o=t,v={maxHoldMs:pe[r.tier??"moderate"].settleMs*2+500};let g=ge(o,v);const d=()=>{g?.settle(),g=null},m=()=>{g??=ge(o,v)};if(!Ce()||Be())return d(),{duration:0};const s=getComputedStyle(o),c=r.axis??"y",w=o.getBoundingClientRect(),F=c==="y"?b(s,"height")||w.height:b(s,"width")||w.width;if(!Number.isFinite(F)||F<=0)return d(),{duration:0};const y=b(s,"opacity")||1,E=r.tier??"moderate",L=pe[E],T=l.direction==="out",A=typeof s.getPropertyValue=="function"?T?Me(o,{tier:E}):Ee(o,{tier:E}):{duration:T?L.exit.duration:L.settleMs,easing:L.exit.easing},O=A.duration??(T?L.exit.duration:L.settleMs),R=r.y??-4,C=b(s,"paddingTop"),M=b(s,"paddingBottom"),N=b(s,"marginTop"),h=b(s,"marginBottom"),P=b(s,"paddingLeft"),S=b(s,"paddingRight"),q=b(s,"marginLeft"),V=b(s,"marginRight");let B=null,u=l.direction==="out"?"outro":l.direction==="in"?"intro":"idle";const I=(a,$)=>{o.style.overflow="hidden",c==="y"?(o.style.height=`${a*F}px`,o.style.paddingTop=`${a*C}px`,o.style.paddingBottom=`${a*M}px`,o.style.marginTop=`${a*N}px`,o.style.marginBottom=`${a*h}px`):(o.style.width=`${a*F}px`,o.style.paddingLeft=`${a*P}px`,o.style.paddingRight=`${a*S}px`,o.style.marginLeft=`${a*q}px`,o.style.marginRight=`${a*V}px`),o.style.opacity=`${a*y}`,o.style.transform=c==="y"?`translateY(${R*$}px)`:`translateX(${R*$}px)`},Y=()=>{o.style.overflow="",o.style.height="",o.style.width="",o.style.paddingTop="",o.style.paddingBottom="",o.style.marginTop="",o.style.marginBottom="",o.style.paddingLeft="",o.style.paddingRight="",o.style.marginLeft="",o.style.marginRight="",o.style.opacity="",o.style.transform=""};return{duration:O,easing:A.easing,tick:(a,$)=>{if(l.direction==="both"&&(B===null?a<1&&(u="outro"):a<B?(m(),u="outro"):a>B&&(m(),u="intro")),B=a,a===1&&u!=="outro"){Y(),d(),u="idle";return}I(a,$),g?.request(),a===0&&u==="outro"&&(d(),u="idle")}}}export{Xe as a,Ce as b,ge as c,je as d,Ge as e,Ve as f,Ie as g,Ue as h,Ye as i,_e as j,Pe as k,De as l,Ke as r,Je as s};
|
|
1
|
+
import"./DYhIMPy1.js";import{s as Be}from"./9iFKJfkz.js";import{D as be,E as pe,c as Me,F as Ee}from"./HVSUZ4Kq.js";import{s as Re}from"./fDvN4TBM.js";function Pe(t,r={}){const l=(r.axis??"y")==="y"?"height":"width",o=parseFloat(getComputedStyle(t)[l]);if(!Number.isFinite(o))return{duration:0};const p=r.duration??160,v=p<=80?"fast":p<=160?"moderate":"slow";return be(t,{axis:r.axis,tier:v},{direction:"in"})}function Ce(){return Re.get("enableComponentTransitions")}const ve={request(){},settle(){}},k=new WeakMap,Ne=2,ke=2e3;function Ve(t,r){let l=r.enabled??!0,o=r.follow,p=r.onFollowChange,v=r.onScrollStateChange,g=r.threshold??100,d=!1,m=0,s=0,c=!1,w=null,F,y=null,E=null,L=null,T=null,A=null,O=null,R=null,C=null,M=0,N=null,h=!1,P=null;const S=new Set,q=new Map,V=new WeakSet,B=new Map,u=document.createElement("div");u.dataset.followBottomAnchor="",u.setAttribute("aria-hidden","true"),u.style.cssText=`height:1px;${r.layoutNeutralBottomAnchor?"margin-top:-1px;":""}overflow-anchor:auto;pointer-events:none;flex:0 0 auto;`;function I(e){e===u||B.has(e)||(B.set(e,e.style.overflowAnchor),e.style.overflowAnchor="none")}function Y(e){const n=B.get(e);n!==void 0&&(e.style.overflowAnchor=n,B.delete(e))}function a(e){if(e)for(const i of t.children)i instanceof HTMLElement&&I(i);else for(const i of B.keys())Y(i);const n=e?"auto":"none";u.style.overflowAnchor!==n&&(u.style.overflowAnchor=n),e?(u.parentElement!==t||u.nextSibling)&&t.append(u):u.remove()}function $(){a(o)}function ye(){u.remove();for(const e of B.keys())Y(e)}function K(e){V.add(e),T?.observe(e)}function ne(){A!==null&&cancelAnimationFrame(A),C!==null&&cancelAnimationFrame(C),A=null,C=null,M=0,N=null}function J(){return Math.max(0,t.scrollHeight-t.clientHeight)}function X(){return P??=getComputedStyle(t).overflowAnchor!=="none",P}function H(){return{maximum:J(),scrollTop:t.scrollTop}}function _(e=H()){return e.scrollTop!==e.maximum&&(t.scrollTop=e.maximum),{maximum:e.maximum,scrollTop:e.maximum}}function G(e=H()){return e.maximum-e.scrollTop<=g}function x(e=H()){const n=Math.max(0,e.maximum-e.scrollTop),i=n<=g;E?.distanceFromBottom===n&&E.isAtBottom===i&&E.isFollowing===o||(E={distanceFromBottom:n,isAtBottom:i,isFollowing:o},v?.({distanceFromBottom:n,isAtBottom:i,isFollowing:o}))}function Q(e){F=e,w===null&&(w=requestAnimationFrame(()=>{w=null;const n=F;F=void 0,!(h||!l)&&(n&&(y?.event!==n||n.defaultPrevented||performance.now()>=y.expiresAt)||(G()?z.followAndScroll():x()))}))}function D(e,n=!0){if(y=null,!l){o=e;return}const i=o!==e;i&&(o=e,a(e)),i&&n&&p?.(e),e||ne(),x()}function Z(e,n=!0){if(!S.delete(e))return;const i=(q.get(e.element)??1)-1;i>0?q.set(e.element,i):(q.delete(e.element),V.has(e.element)||T?.unobserve?.(e.element)),M=0,n&&U()}function ee(e=!0){if(S.size===0)return;const n=performance.now();for(const i of S)(!t.contains(i.element)||n>=i.expiresAt)&&Z(i,e)}function te(){if(A=null,h||!l||!o)return;if(ee(!1),S.size>0){A=requestAnimationFrame(te);return}const e=_(),{maximum:n}=e;x(e),n===N?M+=1:(M=0,N=n),M<Ne&&(A=requestAnimationFrame(te))}function U(){h||!l||!o||A!==null||(A=requestAnimationFrame(te))}function W(e=!0){if(h||!l||!o)return;const n=_(),{maximum:i}=n;x(n),M=0,N=i,e&&U()}function oe(){R===null&&(R=requestAnimationFrame(()=>{R=null,!(h||!l)&&x()}))}function Ae(){if(C=null,h||!l)return;let e=H();const n=e.scrollTop!==e.maximum;e=_(e),(n||e.maximum!==N||S.size>0)&&(M=0,N=e.maximum,U()),x(e)}function xe(){if(!(h||!l)){if(o){if(A!==null||C!==null)return;C=requestAnimationFrame(Ae);return}oe()}}function Fe(){if(!(h||!l)){if(o){W(C===null);return}oe()}}const z={followAndScroll(){D(!0),W()},isFollowing:()=>o,isNativeScrollAnchoringActive:()=>!o&&getComputedStyle(t).overflowAnchor!=="none",hasActiveMutation:()=>o?(ee(),S.size>0):!1,beforeMutation(e,n){if(h||!l||!o)return ve;const i={element:e,expiresAt:performance.now()+(n.maxHoldMs??ke)};S.add(i);const f=q.get(e)??0;return q.set(e,f+1),f===0&&!V.has(e)&&T?.observe(e),M=0,U(),{request(){!S.has(i)||h||(X()?U():W())},settle(){if(!(h||!S.has(i))){if(X()){Z(i);return}Z(i,!1),W()}}}}};function re(e){e.deltaY<0?D(!1):e.deltaY>0&&(y={event:e,expiresAt:performance.now()+1e3},Q(e))}function le(e){const n=y;y=null,e.target===t&&n&&!n.event.defaultPrevented&&performance.now()<n.expiresAt&&G()&&z.followAndScroll()}let ie=0;function se(e){y=null,ie=e.touches[0]?.clientY??0}function ae(e){const n=e.touches[0]?.clientY??0;ie-n<0&&D(!1)}function ue(){Q()}function ce(e){y=null,["ArrowUp","PageUp","Home"].includes(e.key)?D(!1):["ArrowDown","PageDown","End"].includes(e.key)&&Q()}function Se(e){if(e.button!==0||e.target!==t)return!1;const n=Math.max(0,t.offsetWidth-t.clientWidth);if(n===0)return!1;const i=t.getBoundingClientRect(),f=t.offsetWidth>0?n*(i.width/t.offsetWidth):n;return getComputedStyle(t).direction==="rtl"?e.clientX<=i.left+f:e.clientX>=i.right-f}function fe(){if(!d){if(o&&A!==null)return;let f=H();o&&(f=_(f)),x(f);return}const e=J(),n=Math.max(0,e-t.scrollTop);if(e!==m){m=e,s=n,c=!1,x();return}const i=n-s;s=n,i>0?(c=!1,D(!1)):i<0?(c=!0,G()?z.followAndScroll():x()):x()}function me(e){y=null,d=Se(e),m=J(),s=Math.max(0,m-t.scrollTop),c=!1}function j(){d&&(d=!1,c&&G()?z.followAndScroll():x())}function Le(){if(!L){L=new MutationObserver(e=>{let n=!1;for(const i of e)if(i.type==="childList"){for(const f of i.removedNodes)n=!0,f instanceof HTMLElement&&Y(f);for(const f of i.addedNodes)f instanceof HTMLElement&&f!==u&&T&&(K(f),o&&f.parentElement===t&&I(f))}n&&ee(),a(o),xe()}),L.observe(t,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),T=new ResizeObserver(Fe),K(t);for(const e of t.children)e instanceof HTMLElement&&e!==u&&K(e)}}function Te(){L?.disconnect(),L=null,T?.disconnect(),T=null}function de(e=!1){if(!l||h)return;if(k.set(t,z),t.addEventListener("scroll",fe,{passive:!0}),t.addEventListener("scrollend",le,{passive:!0,capture:!0}),t.addEventListener("wheel",re,{passive:!0}),t.addEventListener("touchstart",se,{passive:!0}),t.addEventListener("touchmove",ae,{passive:!0}),t.addEventListener("touchend",ue,{passive:!0}),t.addEventListener("keydown",ce),t.addEventListener("pointerdown",me,{passive:!0}),window.addEventListener("pointerup",j,{passive:!0}),window.addEventListener("pointercancel",j,{passive:!0}),$(),Le(),e){O=requestAnimationFrame(()=>{O=null,!(h||!l)&&(X(),o?W():x())});return}X();let n=H();o&&(n=_(n),N=n.maximum),x(n)}function he(){y=null,F=void 0,S.clear(),q.clear(),d=!1,ne(),w!==null&&cancelAnimationFrame(w),w=null,O!==null&&cancelAnimationFrame(O),O=null,R!==null&&cancelAnimationFrame(R),R=null,E=null,P=null,k.get(t)===z&&k.delete(t),Te(),ye(),t.removeEventListener("scroll",fe),t.removeEventListener("scrollend",le,!0),t.removeEventListener("wheel",re),t.removeEventListener("touchstart",se),t.removeEventListener("touchmove",ae),t.removeEventListener("touchend",ue),t.removeEventListener("keydown",ce),t.removeEventListener("pointerdown",me),window.removeEventListener("pointerup",j),window.removeEventListener("pointercancel",j)}return de(!0),{update(e){p=e.onFollowChange,v=e.onScrollStateChange,g=e.threshold??100;const n=e.enabled??!0;if(l!==n&&(n||he(),l=n,l)){o=e.follow,de(!0);return}l?e.follow&&!o?(D(!0,!1),W()):!e.follow&&o?D(!1,!1):O===null&&oe():o=e.follow},destroy(){h=!0,he()}}}function Ye(t){return k.get(t)?.isFollowing()??!1}function _e(t){return k.get(t)?.isNativeScrollAnchoringActive()??!1}function Ue(t){return k.get(t)?.hasActiveMutation()??!1}function ge(t,r={}){let l=t;for(;l;){const o=k.get(l);if(o)return o.beforeMutation(t,r);l=l.parentElement}return ve}function Oe(t){const{scrollTop:r,scrollHeight:l,clientHeight:o}=t;return l-r-o}function qe(t,r=100){return Oe(t)<=r}function De(t,r=!1){t.scrollTo({top:t.scrollHeight,behavior:r?"smooth":"auto"})}function Ie(t){const r=k.get(t);if(r){r.followAndScroll();return}De(t)}function Xe(t,r,l=150,o){const p=t();if(!p)return;const v=p.scrollTop,g=performance.now();function d(s){return 1-Math.pow(1-s,3)}function m(s){const c=t();if(!c)return;const w=s-g,F=Math.min(w/l,1),y=typeof r=="function"?r(c):r;c.scrollTop=v+(y-v)*d(F),F<1?requestAnimationFrame(m):o?.(c)}requestAnimationFrame(m)}function Ge(t,r="[data-message-id], [data-lazy-turn-key]"){const l=t.scrollTop,o=t.getBoundingClientRect(),p=qe(t,100);if(p&&k.get(t)?.isFollowing()!==!1)return{element:null,offsetFromViewport:0,scrollTop:l,isNearBottom:p};const v=t.querySelectorAll(r);let g=null,d=0,m;for(const s of v){const c=s.getBoundingClientRect();if(c.top>=o.bottom)break;if(c.top>=o.top){g||(g=s,d=c.top-o.top);const w=s.getAttribute("data-message-id");if(w){m={id:w,offsetFromViewport:c.top-o.top};break}}}return{element:g,offsetFromViewport:d,scrollTop:l,isNearBottom:p,...m?{message:m}:{}}}function we(t,r){if(r.message){const l=t.querySelector(`[data-message-id="${CSS.escape(r.message.id)}"]`);if(l)return{element:l,offsetFromViewport:r.message.offsetFromViewport}}return r.element?.isConnected?{element:r.element,offsetFromViewport:r.offsetFromViewport}:null}function je(t,r){return we(t,r)!==null}function Ke(t,r){const l=we(t,r);if(l){const{element:o,offsetFromViewport:p}=l,v=t.getBoundingClientRect(),m=o.getBoundingClientRect().top-v.top-p;Math.abs(m)>5&&(t.scrollTop+=m)}}function b(t,r){const l=Number.parseFloat(String(t[r]));return Number.isFinite(l)?l:0}function Je(t,r={},l={}){const o=t,v={maxHoldMs:pe[r.tier??"moderate"].settleMs*2+500};let g=ge(o,v);const d=()=>{g?.settle(),g=null},m=()=>{g??=ge(o,v)};if(!Ce()||Be())return d(),{duration:0};const s=getComputedStyle(o),c=r.axis??"y",w=o.getBoundingClientRect(),F=c==="y"?b(s,"height")||w.height:b(s,"width")||w.width;if(!Number.isFinite(F)||F<=0)return d(),{duration:0};const y=b(s,"opacity")||1,E=r.tier??"moderate",L=pe[E],T=l.direction==="out",A=typeof s.getPropertyValue=="function"?T?Me(o,{tier:E}):Ee(o,{tier:E}):{duration:T?L.exit.duration:L.settleMs,easing:L.exit.easing},O=A.duration??(T?L.exit.duration:L.settleMs),R=r.y??-4,C=b(s,"paddingTop"),M=b(s,"paddingBottom"),N=b(s,"marginTop"),h=b(s,"marginBottom"),P=b(s,"paddingLeft"),S=b(s,"paddingRight"),q=b(s,"marginLeft"),V=b(s,"marginRight");let B=null,u=l.direction==="out"?"outro":l.direction==="in"?"intro":"idle";const I=(a,$)=>{o.style.overflow="hidden",c==="y"?(o.style.height=`${a*F}px`,o.style.paddingTop=`${a*C}px`,o.style.paddingBottom=`${a*M}px`,o.style.marginTop=`${a*N}px`,o.style.marginBottom=`${a*h}px`):(o.style.width=`${a*F}px`,o.style.paddingLeft=`${a*P}px`,o.style.paddingRight=`${a*S}px`,o.style.marginLeft=`${a*q}px`,o.style.marginRight=`${a*V}px`),o.style.opacity=`${a*y}`,o.style.transform=c==="y"?`translateY(${R*$}px)`:`translateX(${R*$}px)`},Y=()=>{o.style.overflow="",o.style.height="",o.style.width="",o.style.paddingTop="",o.style.paddingBottom="",o.style.marginTop="",o.style.marginBottom="",o.style.paddingLeft="",o.style.paddingRight="",o.style.marginLeft="",o.style.marginRight="",o.style.opacity="",o.style.transform=""};return{duration:O,easing:A.easing,tick:(a,$)=>{if(l.direction==="both"&&(B===null?a<1&&(u="outro"):a<B?(m(),u="outro"):a>B&&(m(),u="intro")),B=a,a===1&&u!=="outro"){Y(),d(),u="idle";return}I(a,$),g?.request(),a===0&&u==="outro"&&(d(),u="idle")}}}export{Xe as a,Ce as b,ge as c,je as d,Ge as e,Ve as f,Ie as g,Ue as h,Ye as i,_e as j,Pe as k,De as l,Ke as r,Je as s};
|