@intent-hq/web 2.289.0 → 2.290.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/{BiN4BvQG.js → 1RFrLNza.js} +1 -1
- package/web/app/immutable/chunks/{BCvaSKdY.js → 1yYrVIcH.js} +1 -1
- package/web/app/immutable/chunks/{13AmrEpa.js → 2Zse_zlb.js} +1 -1
- package/web/app/immutable/chunks/{DjyFgI1x.js → 2p97_N8F.js} +1 -1
- package/web/app/immutable/chunks/{CM-42I4J.js → 3Hx-xwhh.js} +1 -1
- package/web/app/immutable/chunks/{Bs0OTveI.js → 4YAlYQZK.js} +1 -1
- package/web/app/immutable/chunks/{DLOCpz5P.js → 7-JV_YuQ.js} +1 -1
- package/web/app/immutable/chunks/{CLqc4Ghh.js → 7bnNetCh.js} +4 -4
- package/web/app/immutable/chunks/{DwxN7Wdi.js → 8pTk55sx.js} +1 -1
- package/web/app/immutable/chunks/{h6LfsnBK.js → 9mpJnkDG.js} +1 -1
- package/web/app/immutable/chunks/{DuMYTc8Y.js → AZdZd6y3.js} +1 -1
- package/web/app/immutable/chunks/{KrEm5AbS.js → B-CzqeN8.js} +1 -1
- package/web/app/immutable/chunks/{CaHA2ESe.js → B-vv1agI.js} +1 -1
- package/web/app/immutable/chunks/{BSmsRx9G.js → B0Prdf3M.js} +1 -1
- package/web/app/immutable/chunks/{Z-nmDTPH.js → B10IM79i.js} +1 -1
- package/web/app/immutable/chunks/{CUTHTUjs.js → B2D_mcko.js} +1 -1
- package/web/app/immutable/chunks/{DGPqSlym.js → B7NNbItI.js} +1 -1
- package/web/app/immutable/chunks/{CVwFZDMQ.js → BA5dsrgI.js} +1 -1
- package/web/app/immutable/chunks/{C3XlBsuD.js → BA6v9DYL.js} +1 -1
- package/web/app/immutable/chunks/{CWwfm7Sc.js → BBBIudrX.js} +1 -1
- package/web/app/immutable/chunks/{BlUnlsOK.js → BDn01g3q.js} +51 -51
- package/web/app/immutable/chunks/{DzpyprB1.js → BEN2zFww.js} +1 -1
- package/web/app/immutable/chunks/{COYb5Q2j.js → BEOSERRe.js} +1 -1
- package/web/app/immutable/chunks/{CRPPupd6.js → BFY95MZy.js} +1 -1
- package/web/app/immutable/chunks/{Da9J2JX1.js → BG92xiA-.js} +1 -1
- package/web/app/immutable/chunks/{l18fXbdG.js → BGG3Zscy.js} +2 -2
- package/web/app/immutable/chunks/{CkLmMloL.js → BIRD3ESe.js} +1 -1
- package/web/app/immutable/chunks/{CBLL08sm.js → BJClJd-t.js} +1 -1
- package/web/app/immutable/chunks/{bJKJaeMz.js → BJarmryO.js} +1 -1
- package/web/app/immutable/chunks/{CF6Nr1sW.js → BKANDKfj.js} +1 -1
- package/web/app/immutable/chunks/{FBhib8LQ.js → BL_sVoge.js} +1 -1
- package/web/app/immutable/chunks/{CF8O1pc4.js → BLfTJyKw.js} +1 -1
- package/web/app/immutable/chunks/{B-CmW-Rt.js → BMAdQvY4.js} +1 -1
- package/web/app/immutable/chunks/{DfacsTaO.js → BORhTadA.js} +1 -1
- package/web/app/immutable/chunks/{BuNDx2oQ.js → BOV2yVmE.js} +1 -1
- package/web/app/immutable/chunks/{Cgu6cLKT.js → BRqvd9LR.js} +1 -1
- package/web/app/immutable/chunks/{BgLK_ncR.js → BSg7eLHt.js} +1 -1
- package/web/app/immutable/chunks/{DmeSNHl2.js → BSqZ5g0_.js} +1 -1
- package/web/app/immutable/chunks/{gbA3Idh4.js → BUGkkCym.js} +6 -6
- package/web/app/immutable/chunks/{BppZZR6X.js → BU_GHz5Q.js} +1 -1
- package/web/app/immutable/chunks/{a305huOc.js → BVxQ-eUq.js} +1 -1
- package/web/app/immutable/chunks/{BR8wCCqs.js → BX_hW0qI.js} +1 -1
- package/web/app/immutable/chunks/{C2WwiwWs.js → BXzaNdSF.js} +1 -1
- package/web/app/immutable/chunks/{CArnO8CD.js → BYCiS1o9.js} +3 -3
- package/web/app/immutable/chunks/{B5xbJc9W.js → BZrxWDyC.js} +1 -1
- package/web/app/immutable/chunks/{OJ1L_5qb.js → B_tLm3FX.js} +1 -1
- package/web/app/immutable/chunks/{Db3BHa7z.js → BaL0o0Td.js} +1 -1
- package/web/app/immutable/chunks/{1KqMO8DA.js → BbTuJlco.js} +1 -1
- package/web/app/immutable/chunks/{D1zpsxCF.js → Bbg7YJDS.js} +1 -1
- package/web/app/immutable/chunks/{CW9o0MGu.js → Bc1TTOKX.js} +1 -1
- package/web/app/immutable/chunks/{-Vbe26cE.js → BcidqQDh.js} +1 -1
- package/web/app/immutable/chunks/{BAhFveyJ.js → BeUBep3b.js} +1 -1
- package/web/app/immutable/chunks/{rJ19sxRo.js → BeZSE8qD.js} +1 -1
- package/web/app/immutable/chunks/{BulSFF-a.js → BeteiAtg.js} +1 -1
- package/web/app/immutable/chunks/{rZp3PWdq.js → Bg4Uz_3j.js} +1 -1
- package/web/app/immutable/chunks/{DswUZY33.js → BiFqz5BS.js} +1 -1
- package/web/app/immutable/chunks/{DFAvh56i.js → Bjha4wuc.js} +1 -1
- package/web/app/immutable/chunks/{IjnClLwt.js → Bk3MUF5Z.js} +1 -1
- package/web/app/immutable/chunks/{DVs38eSu.js → Bm0FPS2G.js} +4 -4
- package/web/app/immutable/chunks/{CGkp_Cwy.js → BmUlDo2H.js} +1 -1
- package/web/app/immutable/chunks/{DTbYuW0t.js → BmiNxvpC.js} +1 -1
- package/web/app/immutable/chunks/{jS3iGRMB.js → Bmk9ow9D.js} +1 -1
- package/web/app/immutable/chunks/{BnSQjI9U.js → Bn3UQ-Cp.js} +1 -1
- package/web/app/immutable/chunks/{CaJKv7d6.js → Bo4f3vLH.js} +1 -1
- package/web/app/immutable/chunks/{2R1NzPTD.js → BqoQHFLV.js} +1 -1
- package/web/app/immutable/chunks/Bs9Hbccv.js +1 -0
- package/web/app/immutable/chunks/{DYZQjWbl.js → Bsgnuc3k.js} +1 -1
- package/web/app/immutable/chunks/{BMtE4svi.js → BuPFKHtN.js} +1 -1
- package/web/app/immutable/chunks/{Dy2xsFvf.js → BuUX281b.js} +1 -1
- package/web/app/immutable/chunks/{B3II5C5l.js → BvWLkg--.js} +1 -1
- package/web/app/immutable/chunks/{ClIwbXJq.js → BwTgppku.js} +1 -1
- package/web/app/immutable/chunks/{CtGY50_e.js → Bx7BNLnp.js} +1 -1
- package/web/app/immutable/chunks/{1kMmRwXf.js → BxiHCJA9.js} +1 -1
- package/web/app/immutable/chunks/{CamLX2Sb.js → C17qLLZy.js} +1 -1
- package/web/app/immutable/chunks/{BelvDbq4.js → C1oWz50Y.js} +3 -3
- package/web/app/immutable/chunks/C1pLdIna.js +1 -0
- package/web/app/immutable/chunks/{Dmq8N6LI.js → C1r6VU8i.js} +2 -2
- package/web/app/immutable/chunks/{BpZ--9ga.js → C1vv_LrD.js} +1 -1
- package/web/app/immutable/chunks/{V68rWC50.js → C28hhXd4.js} +1 -1
- package/web/app/immutable/chunks/{Bg4MuTWX.js → C2VPDjeo.js} +1 -1
- package/web/app/immutable/chunks/{CylTfPZk.js → C5qvCE4M.js} +1 -1
- package/web/app/immutable/chunks/{DmLTqLLV.js → C6dKjZk_.js} +1 -1
- package/web/app/immutable/chunks/{C5paQyk5.js → C6rJFcL9.js} +1 -1
- package/web/app/immutable/chunks/{Q09YKVwy.js → C94wEIre.js} +1 -1
- package/web/app/immutable/chunks/{cv4xg7k0.js → C9hosAov.js} +1 -1
- package/web/app/immutable/chunks/{CUpXgpcF.js → C9tAiYT0.js} +1 -1
- package/web/app/immutable/chunks/{B7y27fC-.js → CAoXCf6s.js} +1 -1
- package/web/app/immutable/chunks/{y_-PH3Cn.js → CB3E3AyJ.js} +1 -1
- package/web/app/immutable/chunks/{D1yGasR4.js → CB5rZSQk.js} +1 -1
- package/web/app/immutable/chunks/{DZC7segB.js → CBQ9Dj27.js} +1 -1
- package/web/app/immutable/chunks/{CvHIPf4O.js → CBeBcrFe.js} +1 -1
- package/web/app/immutable/chunks/{Ev7NI-4B.js → CC2jdDPt.js} +1 -1
- package/web/app/immutable/chunks/{Cm72nCq-.js → CD6znF_9.js} +1 -1
- package/web/app/immutable/chunks/{CG_nXeYa.js → CDc4alpJ.js} +1 -1
- package/web/app/immutable/chunks/{gdAnsrdj.js → CE7ZtQHh.js} +1 -1
- package/web/app/immutable/chunks/{DXRlnb97.js → CFBH989r.js} +1 -1
- package/web/app/immutable/chunks/{Co-DDbT2.js → CFHzcj7N.js} +1 -1
- package/web/app/immutable/chunks/{CHwD9QHP.js → CLCbFeGH.js} +1 -1
- package/web/app/immutable/chunks/{CVYI64VR.js → CNP_2GEv.js} +1 -1
- package/web/app/immutable/chunks/{rN1DOgEJ.js → CPezNx23.js} +1 -1
- package/web/app/immutable/chunks/{e4k4F_fF.js → CR_QOSeH.js} +1 -1
- package/web/app/immutable/chunks/{CvUXvU-2.js → CRmUlrc9.js} +1 -1
- package/web/app/immutable/chunks/{C-jH8s9r.js → CSYt80U-.js} +2 -2
- package/web/app/immutable/chunks/{JWXbB6B6.js → CT1fMnWm.js} +1 -1
- package/web/app/immutable/chunks/{DmRzBB2M.js → CTNvudJn.js} +1 -1
- package/web/app/immutable/chunks/{CnypGHrl.js → CT_RWC-b.js} +1 -1
- package/web/app/immutable/chunks/{BzBOPxuP.js → CTm1UFNm.js} +1 -1
- package/web/app/immutable/chunks/{DYrNCBqG.js → CU1drimT.js} +1 -1
- package/web/app/immutable/chunks/{BETowprU.js → CVQnuBUY.js} +1 -1
- package/web/app/immutable/chunks/{iaCxlE6C.js → CVoR5NDH.js} +1 -1
- package/web/app/immutable/chunks/{DkiAPJ2W.js → CXwlKBiL.js} +1 -1
- package/web/app/immutable/chunks/{D8u-TTw-.js → CYK_6j38.js} +1 -1
- package/web/app/immutable/chunks/{D1dtTkDE.js → C_T_V_cz.js} +1 -1
- package/web/app/immutable/chunks/{BzBHISyY.js → C_Xkhy7Z.js} +1 -1
- package/web/app/immutable/chunks/{BTurlMFD.js → CbcJLLbX.js} +1 -1
- package/web/app/immutable/chunks/{D3Xty9Im.js → Ce9YhY2C.js} +1 -1
- package/web/app/immutable/chunks/{CN0OjCVu.js → CeJvKYEf.js} +1 -1
- package/web/app/immutable/chunks/{B2-XfPcN.js → Cf5LD9TB.js} +1 -1
- package/web/app/immutable/chunks/CgPr4hs2.js +1 -0
- package/web/app/immutable/chunks/{BdqSZQx_.js → CivlAwc7.js} +1 -1
- package/web/app/immutable/chunks/{CfeU66Hz.js → CjK0D9QS.js} +1 -1
- package/web/app/immutable/chunks/CjrYYJVA.js +1 -0
- package/web/app/immutable/chunks/{D1LasNTA.js → Clusycua.js} +1 -1
- package/web/app/immutable/chunks/{C0MRkgn4.js → CnRB4N94.js} +1 -1
- package/web/app/immutable/chunks/{C13MrFSw.js → CntEBInL.js} +1 -1
- package/web/app/immutable/chunks/{CfM0pCZF.js → Co_Aa6ij.js} +1 -1
- package/web/app/immutable/chunks/{BejAw64w.js → CobcHKt3.js} +6 -6
- package/web/app/immutable/chunks/{NUHg8tud.js → CokCeQxx.js} +1 -1
- package/web/app/immutable/chunks/{Db1mweH6.js → Cou180Vm.js} +1 -1
- package/web/app/immutable/chunks/{O81B-H5P.js → Cq8w3ES-.js} +1 -1
- package/web/app/immutable/chunks/{D2zf67XA.js → CqiIZBSl.js} +7 -7
- package/web/app/immutable/chunks/{BlBEj3oF.js → CsBmR9QJ.js} +2 -2
- package/web/app/immutable/chunks/{DaiMZHlt.js → CsHZlnUj.js} +1 -1
- package/web/app/immutable/chunks/{DpawEIzT.js → CskCO23D.js} +3 -3
- package/web/app/immutable/chunks/{CsvDcicf.js → CsstSIr0.js} +1 -1
- package/web/app/immutable/chunks/{DktdylrS.js → CtBQs9aW.js} +1 -1
- package/web/app/immutable/chunks/{CemNgvNI.js → Cv0HcHak.js} +1 -1
- package/web/app/immutable/chunks/{Cb7Fwhyl.js → CvXnZ-8G.js} +1 -1
- package/web/app/immutable/chunks/{iF8lSM38.js → Cw7IfVO4.js} +1 -1
- package/web/app/immutable/chunks/{BNAxChIn.js → Cx7iLEYy.js} +3 -3
- package/web/app/immutable/chunks/{T4V8F4hM.js → Cyjl25fy.js} +1 -1
- package/web/app/immutable/chunks/{CIkVHIT3.js → D-YtOwPX.js} +1 -1
- package/web/app/immutable/chunks/{DqaJW-PO.js → D-Zd1oaK.js} +1 -1
- package/web/app/immutable/chunks/{DhizMGiT.js → D-y9m6ao.js} +1 -1
- package/web/app/immutable/chunks/{kmgcRpkz.js → D0SLupV7.js} +1 -1
- package/web/app/immutable/chunks/{CyLm5JOs.js → D0xGfXvZ.js} +1 -1
- package/web/app/immutable/chunks/{C26KoPDI.js → D2HP95As.js} +1 -1
- package/web/app/immutable/chunks/{C_lRd9OO.js → D2WFqoJa.js} +1 -1
- package/web/app/immutable/chunks/{B25t-e4E.js → D32qvOGn.js} +1 -1
- package/web/app/immutable/chunks/{HqhytM4z.js → D3ROSEe0.js} +1 -1
- package/web/app/immutable/chunks/{B7g53bMx.js → D3Vc9t57.js} +1 -1
- package/web/app/immutable/chunks/{CpyyZUC4.js → D56Oo2O2.js} +1 -1
- package/web/app/immutable/chunks/{YQRvuTGW.js → D5jBmJQo.js} +1 -1
- package/web/app/immutable/chunks/{Diyq2-7-.js → D6XmzNBT.js} +1 -1
- package/web/app/immutable/chunks/{BcXGciCG.js → D7Efqf9l.js} +1 -1
- package/web/app/immutable/chunks/{COR1ZgMB.js → D7KQ-C2a.js} +1 -1
- package/web/app/immutable/chunks/{DBaQx-Pk.js → D8m7soiy.js} +1 -1
- package/web/app/immutable/chunks/{DBH00hnQ.js → D9ikaMyr.js} +1 -1
- package/web/app/immutable/chunks/{Dtny-3OT.js → DFhWc3Xl.js} +1 -1
- package/web/app/immutable/chunks/{Daq0t0IO.js → DHVVvfGv.js} +1 -1
- package/web/app/immutable/chunks/{C_drUQi2.js → DHyS0o2Q.js} +1 -1
- package/web/app/immutable/chunks/{DZ1zC9TP.js → DI6oKJrr.js} +1 -1
- package/web/app/immutable/chunks/{3oF_cfgL.js → DIbPNVg7.js} +1 -1
- package/web/app/immutable/chunks/{3-iWM9xO.js → DJB1T3Sf.js} +1 -1
- package/web/app/immutable/chunks/{ClGi_L6l.js → DJk4n_RN.js} +1 -1
- package/web/app/immutable/chunks/{Bk3O9qYH.js → DJuSbP_R.js} +1 -1
- package/web/app/immutable/chunks/{CsgZCzi1.js → DKCiaCAE.js} +3 -3
- package/web/app/immutable/chunks/{C7FfDPRZ.js → DLg9iehs.js} +1 -1
- package/web/app/immutable/chunks/{CHLJ-3Q1.js → DMAAeEjh.js} +1 -1
- package/web/app/immutable/chunks/{DVFKqUgb.js → DMEnrA6r.js} +1 -1
- package/web/app/immutable/chunks/{Bb6J6sjQ.js → DNPPDjbf.js} +1 -1
- package/web/app/immutable/chunks/{BGCd17XA.js → DNUaZj8_.js} +1 -1
- package/web/app/immutable/chunks/{BDZGpmAg.js → DOd666za.js} +1 -1
- package/web/app/immutable/chunks/{CbsrOoqP.js → DOzFltDq.js} +1 -1
- package/web/app/immutable/chunks/{RKSEQ7So.js → DQXapDyu.js} +1 -1
- package/web/app/immutable/chunks/{Cno21Zxg.js → DRmM5gTo.js} +1 -1
- package/web/app/immutable/chunks/{D3NFuU4L.js → DTh2IQKZ.js} +1 -1
- package/web/app/immutable/chunks/{Mw1KbVyQ.js → DUMeb8Tg.js} +1 -1
- package/web/app/immutable/chunks/{C7cZaxG3.js → DUwPI6pr.js} +1 -1
- package/web/app/immutable/chunks/{CNySgneH.js → DV5DGvsr.js} +1 -1
- package/web/app/immutable/chunks/{DerqLelD.js → DVGE4E_C.js} +1 -1
- package/web/app/immutable/chunks/{DTjIXONR.js → DVa-kQtc.js} +4 -4
- package/web/app/immutable/chunks/{CEuCjemc.js → DVeZQ6um.js} +1 -1
- package/web/app/immutable/chunks/{0n1_sqb5.js → DWH0KAf0.js} +1 -1
- package/web/app/immutable/chunks/{Bqfueq_D.js → DWLJSPfW.js} +1 -1
- package/web/app/immutable/chunks/{CwzDLq3o.js → DWVb7mpY.js} +1 -1
- package/web/app/immutable/chunks/{BZsM0M0Q.js → DXiP5t0I.js} +1 -1
- package/web/app/immutable/chunks/{BW5wGxdP.js → DY2nfza0.js} +1 -1
- package/web/app/immutable/chunks/{D6cxqzoz.js → DYlMDxfy.js} +1 -1
- package/web/app/immutable/chunks/{DsoGIaMF.js → D_TiJ_fE.js} +1 -1
- package/web/app/immutable/chunks/{CDbeyeCP.js → D_uZvS29.js} +2 -2
- package/web/app/immutable/chunks/{YSaBP0Ch.js → DaJsXhcE.js} +1 -1
- package/web/app/immutable/chunks/{CSSOys25.js → DaNfseRw.js} +1 -1
- package/web/app/immutable/chunks/{CK6izZOP.js → DaXfyPpV.js} +2 -2
- package/web/app/immutable/chunks/DbNaInRh.js +4 -0
- package/web/app/immutable/chunks/{u8zBWO7U.js → DdTOR-fK.js} +1 -1
- package/web/app/immutable/chunks/{PZzdtHEH.js → DeXgzEXt.js} +1 -1
- package/web/app/immutable/chunks/{iy9r6eBz.js → DeywGElR.js} +1 -1
- package/web/app/immutable/chunks/{Dbhxem_q.js → Df1mOKLZ.js} +1 -1
- package/web/app/immutable/chunks/{bHtn9InS.js → Df2ohObb.js} +1 -1
- package/web/app/immutable/chunks/{12UHR0Xn.js → DfKemw6I.js} +1 -1
- package/web/app/immutable/chunks/{DVuTL7Ze.js → DgO-InVL.js} +1 -1
- package/web/app/immutable/chunks/{CBolvbXG.js → DhkrcYPH.js} +1 -1
- package/web/app/immutable/chunks/{zIOd8jG8.js → Dj0Fo3FR.js} +1 -1
- package/web/app/immutable/chunks/{DZFxh2Hz.js → DlqxHCQ7.js} +1 -1
- package/web/app/immutable/chunks/{D6QA9x6A.js → DoRZvIjE.js} +1 -1
- package/web/app/immutable/chunks/{CS4ChtR_.js → DoSGU0je.js} +1 -1
- package/web/app/immutable/chunks/{DFhTl2LJ.js → DqYyUQgu.js} +1 -1
- package/web/app/immutable/chunks/{D2ImsQzb.js → DrDFJIB-.js} +1 -1
- package/web/app/immutable/chunks/{C6HNr-1J.js → DualWjmg.js} +1 -1
- package/web/app/immutable/chunks/{D91osLQe.js → DvM0Oc_2.js} +1 -1
- package/web/app/immutable/chunks/{YvM9JcXX.js → Dw68b__v.js} +1 -1
- package/web/app/immutable/chunks/{BYk1ULDt.js → DwKgqaL_.js} +3 -3
- package/web/app/immutable/chunks/{DFm7ZzVD.js → DyTkTh0C.js} +1 -1
- package/web/app/immutable/chunks/{DpDRAdy2.js → DywBWiWr.js} +2 -2
- package/web/app/immutable/chunks/{iNzcdJYX.js → FQxEz28M.js} +1 -1
- package/web/app/immutable/chunks/{lM1_eh6C.js → FvORToMl.js} +1 -1
- package/web/app/immutable/chunks/{BiMGq9Z7.js → FxlwG_cR.js} +1 -1
- package/web/app/immutable/chunks/{C2eeslGl.js → GIAV4N10.js} +1 -1
- package/web/app/immutable/chunks/{DBAVKOs3.js → HWRbLPjE.js} +1 -1
- package/web/app/immutable/chunks/{5bL3DJj7.js → Ico6LbU5.js} +1 -1
- package/web/app/immutable/chunks/{glfri7wL.js → KjSY_6tg.js} +1 -1
- package/web/app/immutable/chunks/{Bg5ADDrW.js → LIohq1To.js} +1 -1
- package/web/app/immutable/chunks/{DchjGXey.js → LZ5jXWXv.js} +1 -1
- package/web/app/immutable/chunks/{DyyrFzIP.js → LgC5iPo9.js} +1 -1
- package/web/app/immutable/chunks/{B1rvRaDg.js → MR-g1_iF.js} +1 -1
- package/web/app/immutable/chunks/{Hai9JAty.js → Mb97pGy9.js} +1 -1
- package/web/app/immutable/chunks/{CBiBtnBM.js → NnQLq3da.js} +1 -1
- package/web/app/immutable/chunks/{hcRUxON5.js → O7VU9svd.js} +1 -1
- package/web/app/immutable/chunks/{DFBRG5f3.js → O7y8odEy.js} +1 -1
- package/web/app/immutable/chunks/{BDldvohw.js → P80hEEPK.js} +1 -1
- package/web/app/immutable/chunks/{3FJRVBU-.js → PJ-tEAYj.js} +1 -1
- package/web/app/immutable/chunks/{D8C52zH9.js → PnAug6me.js} +1 -1
- package/web/app/immutable/chunks/{P-01BLZ6.js → Ps9iRbKd.js} +3 -3
- package/web/app/immutable/chunks/{C3U610Va.js → QuwJBwI-.js} +1 -1
- package/web/app/immutable/chunks/{B0vB3nPK.js → R4VbyJYi.js} +1 -1
- package/web/app/immutable/chunks/{LzhxhM8_.js → R9tUAGJO.js} +1 -1
- package/web/app/immutable/chunks/{D6Y18pu-.js → RDBJJxOY.js} +1 -1
- package/web/app/immutable/chunks/{BzLM7oPX.js → TPpS6DWt.js} +1 -1
- package/web/app/immutable/chunks/{D30--6jq.js → UMrFWomj.js} +1 -1
- package/web/app/immutable/chunks/{CxWK8xnP.js → VI8s0N-a.js} +1 -1
- package/web/app/immutable/chunks/{p29Y4Sx3.js → WD5eiIht.js} +1 -1
- package/web/app/immutable/chunks/{B5NmEYUa.js → XG9LuART.js} +1 -1
- package/web/app/immutable/chunks/{DIiXUVIr.js → YnEJ07_G.js} +3 -3
- package/web/app/immutable/chunks/{n0AniKod.js → ZahkIG5A.js} +1 -1
- package/web/app/immutable/chunks/{Df7C6745.js → _0mq0vvG.js} +1 -1
- package/web/app/immutable/chunks/{CI4bdaNh.js → _o85nBWH.js} +1 -1
- package/web/app/immutable/chunks/{DShhv9Lh.js → _u30tumF.js} +1 -1
- package/web/app/immutable/chunks/{CdtTvwl3.js → a4fF0apV.js} +1 -1
- package/web/app/immutable/chunks/{3CggOKng.js → aeIQN6XF.js} +1 -1
- package/web/app/immutable/chunks/{BFapXlF9.js → bGIBa4-r.js} +1 -1
- package/web/app/immutable/chunks/{wI7zMgx-.js → bOHL4iEd.js} +1 -1
- package/web/app/immutable/chunks/{BNOUHNLe.js → cPzpQFEA.js} +1 -1
- package/web/app/immutable/chunks/{Cd0IJoag.js → cUFAcBAC.js} +1 -1
- package/web/app/immutable/chunks/{CjPlYTON.js → cfooBVHs.js} +1 -1
- package/web/app/immutable/chunks/{CKeHkFGu.js → czyBPXbO.js} +1 -1
- package/web/app/immutable/chunks/{TjYngI-X.js → d5zYr7fC.js} +1 -1
- package/web/app/immutable/chunks/{Bxucs2aA.js → dkojwLk2.js} +1 -1
- package/web/app/immutable/chunks/{CFmU7Xxn.js → fXrcgNtr.js} +1 -1
- package/web/app/immutable/chunks/{D-k0eOJ6.js → fdlSdJMU.js} +1 -1
- package/web/app/immutable/chunks/{D4kGqGBk.js → gywQvRwA.js} +1 -1
- package/web/app/immutable/chunks/{DFQ2LZfw.js → hBdy3DXS.js} +1 -1
- package/web/app/immutable/chunks/{Bz2j5nDH.js → iCHr0TgO.js} +1 -1
- package/web/app/immutable/chunks/iaaN5aeR.js +1 -0
- package/web/app/immutable/chunks/{DE17eju9.js → jRjYIDnt.js} +1 -1
- package/web/app/immutable/chunks/{DxrXzX_M.js → l8G_rqMf.js} +3 -3
- package/web/app/immutable/chunks/{BupZf9R2.js → mR2QgOoI.js} +1 -1
- package/web/app/immutable/chunks/{D3sL2PPU.js → mp47640j.js} +1 -1
- package/web/app/immutable/chunks/{f34gPxAx.js → pCx1Hl6T.js} +1 -1
- package/web/app/immutable/chunks/{DxRCuR64.js → q4FIdUSc.js} +1 -1
- package/web/app/immutable/chunks/{CAh6WYw0.js → rpeM9FmT.js} +1 -1
- package/web/app/immutable/chunks/{D_OjFNQH.js → sUO-mR-D.js} +1 -1
- package/web/app/immutable/chunks/{Cs8DWwEN.js → txAmNNfN.js} +2 -2
- package/web/app/immutable/chunks/{CJT0k-x3.js → u43L-bVE.js} +1 -1
- package/web/app/immutable/chunks/{DjXUNnle.js → uPJwsXgL.js} +1 -1
- package/web/app/immutable/chunks/{rjfpoS8M.js → uw9q9ubw.js} +1 -1
- package/web/app/immutable/chunks/{BtuvHYz8.js → v6SgbwXH.js} +1 -1
- package/web/app/immutable/chunks/{Drwt7aYJ.js → v6v2loc1.js} +1 -1
- package/web/app/immutable/chunks/{CDT1G70y.js → w9Jeqnt9.js} +1 -1
- package/web/app/immutable/chunks/{CWELhcXR.js → wSFhIxGo.js} +1 -1
- package/web/app/immutable/chunks/{CzoFKpHV.js → xF2i73WW.js} +1 -1
- package/web/app/immutable/chunks/{CVAEsdqc.js → xFioAb_b.js} +1 -1
- package/web/app/immutable/chunks/{BraZvQcb.js → zCZWMH02.js} +1 -1
- package/web/app/immutable/chunks/{4WPqCRAv.js → zxmCuTa7.js} +1 -1
- package/web/app/immutable/entry/{app.Bf_OSyrf.js → app.DwRPZdEe.js} +3 -3
- package/web/app/immutable/entry/start.ksbZjpza.js +1 -0
- package/web/app/immutable/nodes/{0.B5ZNWVMC.js → 0.Opr0LpNR.js} +1 -1
- package/web/app/immutable/nodes/{1.SeMykOqr.js → 1.DxR1peSG.js} +1 -1
- package/web/app/immutable/nodes/{10.BZ6kBK3P.js → 10.BMejDu10.js} +1 -1
- package/web/app/immutable/nodes/{11.DdNqWjT1.js → 11.K4X9py2s.js} +1 -1
- package/web/app/immutable/nodes/{12.sEYH_Pmu.js → 12.CV0D62ho.js} +1 -1
- package/web/app/immutable/nodes/{13.B0uhCaJY.js → 13.B-lV8z59.js} +3 -3
- package/web/app/immutable/nodes/{14.C3Ch8LVG.js → 14.C8M6elt-.js} +1 -1
- package/web/app/immutable/nodes/{15.B6xmqReh.js → 15.CKURddgk.js} +1 -1
- package/web/app/immutable/nodes/{16.k3HHr2yy.js → 16.Buvqlzgi.js} +2 -2
- package/web/app/immutable/nodes/{2.CdR_R7AF.js → 2.DGI0QMTl.js} +4 -4
- package/web/app/immutable/nodes/{3.C81CEmtR.js → 3.CDWebO9a.js} +1 -1
- package/web/app/immutable/nodes/{4.F_Gi0JxR.js → 4.Dxmt1auu.js} +1 -1
- package/web/app/immutable/nodes/{5.CtBTp1Hg.js → 5.CSz7wDme.js} +1 -1
- package/web/app/immutable/nodes/{6.CYnJfc7G.js → 6.C8qeE1kc.js} +1 -1
- package/web/app/immutable/nodes/{7.CHPJsLkB.js → 7.BicRzjRG.js} +1 -1
- package/web/app/immutable/nodes/8.BB2n9bBQ.js +14 -0
- package/web/app/immutable/nodes/{9.VslqwEvr.js → 9.B1_vasqC.js} +6 -6
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +48 -48
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/BCVnawos.js +0 -1
- package/web/app/immutable/chunks/BQS0XfBK.js +0 -1
- package/web/app/immutable/chunks/CjKcpWyx.js +0 -4
- package/web/app/immutable/chunks/D9I3JJnE.js +0 -1
- package/web/app/immutable/chunks/lvIYiyhL.js +0 -1
- package/web/app/immutable/chunks/sMg7Lxjd.js +0 -1
- package/web/app/immutable/entry/start.IOR_3Iyx.js +0 -1
- package/web/app/immutable/nodes/8.Dc-nd7pr.js +0 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as he}from"./CtGY50_e.js";import{p as me}from"./CEuCjemc.js";import{a as m,U as ue,M as Y,j as O,aE as fe,r as ye,ad as X,aQ as F,aG as ge,L as Se,aI as xe,O as be,K as ve,aF as Ce,y as we,a5 as Te,k as $e}from"./D2zf67XA.js";import{s as Le}from"./wI7zMgx-.js";import{c3 as H,g as ae}from"./BejAw64w.js";import{f as P}from"./CrowFXzY.js";import{o as G}from"./CmKTTxBW.js";import{h as Fe,t as Ne}from"./CvYzv8kf.js";var T,le=(T=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=ge,this.getAccTitle=Se,this.setDiagramTitle=xe,this.getDiagramTitle=be,this.getAccDescription=ve,this.setAccDescription=Ce}getNodes(){return this.nodes}getConfig(){const l=we,i=Y();return O({...l.treemap,...i.treemap??{}})}addNode(l,i){this.nodes.push(l),this.levels.set(l,i),i===0&&(this.outerNodes.push(l),this.root??=l)}getRoot(){return{name:"",children:this.outerNodes}}addClass(l,i){const r=this.classes.get(l)??{id:l,styles:[],textStyles:[]},n=i.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");n&&n.forEach(s=>{Te(s)&&(r?.textStyles?r.textStyles.push(s):r.textStyles=[s]),r?.styles?r.styles.push(s):r.styles=[s]}),this.classes.set(l,r)}getClasses(){return this.classes}getStylesForClass(l){return this.classes.get(l)?.styles??[]}clear(){$e(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},ae(T,"TreeMapDB"),m(T,"TreeMapDB"),T);function j(p){if(!p.length)return[];const l=[],i=[];return p.forEach(r=>{const n={name:r.name,children:r.type==="Leaf"?void 0:[]};for(n.classSelector=r?.classSelector,r?.cssCompiledStyles&&(n.cssCompiledStyles=r.cssCompiledStyles),r.type==="Leaf"&&r.value!==void 0&&(n.value=r.value);i.length>0&&i[i.length-1].level>=r.level;)i.pop();if(i.length===0)l.push(n);else{const s=i[i.length-1].node;s.children?s.children.push(n):s.children=[n]}r.type!=="Leaf"&&i.push({node:n,level:r.level})}),l}ae(j,"buildHierarchy");m(j,"buildHierarchy");var ze=m((p,l)=>{he(p,l);const i=[];for(const s of p.TreemapRows??[])s.$type==="ClassDefStatement"&&l.addClass(s.className??"",s.styleText??"");for(const s of p.TreemapRows??[]){const d=s.item;if(!d)continue;const h=s.indent?parseInt(s.indent):0,k=Ae(d),a=d.classSelector?l.getStylesForClass(d.classSelector):[],z=a.length>0?a:void 0,x={level:h,name:k,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:z};i.push(x)}const r=j(i),n=m((s,d)=>{for(const h of s)l.addNode(h,d),h.children&&h.children.length>0&&n(h.children,d+1)},"addNodesRecursively");n(r,0)},"populate"),Ae=m(p=>p.name?String(p.name):"","getItemName"),se={parser:{yy:void 0},parse:m(async p=>{try{const i=await me("treemap",p);X.debug("Treemap AST:",i);const r=se.parser?.yy;if(!(r instanceof le))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");ze(i,r)}catch(l){throw X.error("Error parsing treemap:",l),l}},"parse")},De=10,N=10,V=25,Me=m((p,l,i,r)=>{const n=r.db,s=n.getConfig(),d=s.padding??De,h=n.getDiagramTitle(),k=n.getRoot(),{themeVariables:a}=Y();if(!k)return;const z=h?30:0,x=fe(l),U=s.nodeWidth?s.nodeWidth*N:960,K=s.nodeHeight?s.nodeHeight*N:500,R=U,Q=K+z;x.attr("viewBox",`0 0 ${R} ${Q}`),ye(x,Q,R,s.useMaxWidth);let b;try{const e=s.valueFormat||",";if(e==="$0,0")b=m(t=>"$"+P(",")(t),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const t=/\.\d+/.exec(e),o=t?t[0]:"";b=m(u=>"$"+P(","+o)(u),"valueFormat")}else if(e.startsWith("$")){const t=e.substring(1);b=m(o=>"$"+P(t||"")(o),"valueFormat")}else b=P(e)}catch(e){X.error("Error creating format function:",e),b=P(",")}const A=G().range(["transparent",a.cScale0,a.cScale1,a.cScale2,a.cScale3,a.cScale4,a.cScale5,a.cScale6,a.cScale7,a.cScale8,a.cScale9,a.cScale10,a.cScale11]),re=G().range(["transparent",a.cScalePeer0,a.cScalePeer1,a.cScalePeer2,a.cScalePeer3,a.cScalePeer4,a.cScalePeer5,a.cScalePeer6,a.cScalePeer7,a.cScalePeer8,a.cScalePeer9,a.cScalePeer10,a.cScalePeer11]),E=G().range([a.cScaleLabel0,a.cScaleLabel1,a.cScaleLabel2,a.cScaleLabel3,a.cScaleLabel4,a.cScaleLabel5,a.cScaleLabel6,a.cScaleLabel7,a.cScaleLabel8,a.cScaleLabel9,a.cScaleLabel10,a.cScaleLabel11]);h&&x.append("text").attr("x",R/2).attr("y",z/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const q=x.append("g").attr("transform",`translate(0, ${z})`).attr("class","treemapContainer"),ne=Fe(k).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),J=Ne().size([U,K]).paddingTop(e=>e.children&&e.children.length>0?V+N:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?N:0).paddingRight(e=>e.children&&e.children.length>0?N:0).paddingBottom(e=>e.children&&e.children.length>0?N:0).round(!0)(ne),oe=J.descendants().filter(e=>e.children&&e.children.length>0),D=q.selectAll(".treemapSection").data(oe).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);D.append("rect").attr("width",e=>e.x1-e.x0).attr("height",V).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),D.append("clipPath").attr("id",(e,t)=>`clip-section-${l}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",V),D.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>A(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>re(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const t=F({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),D.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",V/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,t)=>`url(#clip-section-${l}-${t})`).attr("style",e=>{if(e.depth===0)return"display: none;";const t="dominant-baseline: middle; font-size: 12px; fill:"+E(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",o=F({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const t=H(this),o=e.data.name;t.text(o);const u=e.x1-e.x0,y=6;let f;s.showValues!==!1&&e.value?f=u-10-30-10-y:f=u-y-6;const c=Math.max(15,f),v=t.node();if(v.getComputedTextLength()>c){let w=o;for(;w.length>0;){if(w=o.substring(0,w.length-1),w.length===0){t.text("..."),v.getComputedTextLength()>c&&t.text("");break}if(t.text(w+"..."),v.getComputedTextLength()<=c)break}}}),s.showValues!==!1&&D.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",V/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?b(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+E(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",o=F({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")});const Z=J.leaves(),g=Z.length>20,ie=g?16:38,W=g?14:28,$=g?4:8,M=g?4:6,B=g?2:4,ee=g?8:10,I=g?1:2,_=q.selectAll(".treemapLeafGroup").data(Z).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);_.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("style",e=>F({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("stroke-width",3),_.append("clipPath").attr("id",(e,t)=>`clip-${l}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),_.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const t=`text-anchor: middle; dominant-baseline: middle; font-size: ${ie}px;fill:`+E(e.data.name)+";",o=F({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${l}-${t})`).text(e=>e.data.name).each(function(e){const t=H(this),o=e.x1-e.x0,u=e.y1-e.y0,y=t.node(),f=o-2*B,L=u-2*B;if(f<ee||L<ee){t.style("display","none");return}let c=parseInt(t.style("font-size"),10);const v=.6;for(;y.getComputedTextLength()>f&&c>$;)c--,t.style("font-size",`${c}px`);let S=Math.max(M,Math.min(W,Math.round(c*v))),C=c+I+S;for(;C>L&&c>$&&(c--,S=Math.max(M,Math.min(W,Math.round(c*v))),!(S<M&&c===$));)t.style("font-size",`${c}px`),C=c+I+S;t.style("font-size",`${c}px`),g?(c<$||L<$)&&t.style("display","none"):(y.getComputedTextLength()>f||c<$||L<c)&&t.style("display","none")}),s.showValues!==!1&&_.append("text").attr("class","treemapValue").attr("x",t=>(t.x1-t.x0)/2).attr("y",function(t){return(t.y1-t.y0)/2}).attr("style",t=>{const o=`text-anchor: middle; dominant-baseline: hanging; font-size: ${W}px;fill:`+E(t.data.name)+";",u=F({cssCompiledStyles:t.data.cssCompiledStyles});return o+u.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,o)=>`url(#clip-${l}-${o})`).text(t=>t.value?b(t.value):"").each(function(t){const o=H(this),u=this.parentNode;if(!u){o.style("display","none");return}const y=H(u).select(".treemapLabel");if(y.empty()||y.style("display")==="none"){o.style("display","none");return}const f=parseFloat(y.style("font-size")),c=Math.max(M,Math.min(W,Math.round(f*.6)));o.style("font-size",`${c}px`);const S=(t.y1-t.y0)/2+f/2+I;o.attr("y",S);const C=t.x1-t.x0,te=t.y1-t.y0-4,de=C-2*B;o.node().getComputedTextLength()>de||S+c>te||c<M?o.style("display","none"):o.style("display",null)});const ce=s.diagramPadding??8;Le(x,ce,"flowchart",s?.useMaxWidth||!1)},"draw"),Pe=m(function(p,l){return l.db.getClasses()},"getClasses"),Ve={draw:Me,getClasses:Pe},ke={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},Ee=m(({treemap:p}={})=>{const l=ue(),i=Y(),r=O(l,i.themeVariables),n=O(ke,p),s=n.titleColor??r.titleColor,d=n.labelColor??r.textColor,h=n.valueColor??r.textColor;return`
|
|
1
|
+
import{p as he}from"./Bx7BNLnp.js";import{p as me}from"./DVeZQ6um.js";import{a as m,U as ue,M as Y,j as O,aE as fe,r as ye,ad as X,aQ as F,aG as ge,L as Se,aI as xe,O as be,K as ve,aF as Ce,y as we,a5 as Te,k as $e}from"./CqiIZBSl.js";import{s as Le}from"./bOHL4iEd.js";import{c3 as H,g as ae}from"./CobcHKt3.js";import{f as P}from"./CrowFXzY.js";import{o as G}from"./CmKTTxBW.js";import{h as Fe,t as Ne}from"./CvYzv8kf.js";var T,le=(T=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=ge,this.getAccTitle=Se,this.setDiagramTitle=xe,this.getDiagramTitle=be,this.getAccDescription=ve,this.setAccDescription=Ce}getNodes(){return this.nodes}getConfig(){const l=we,i=Y();return O({...l.treemap,...i.treemap??{}})}addNode(l,i){this.nodes.push(l),this.levels.set(l,i),i===0&&(this.outerNodes.push(l),this.root??=l)}getRoot(){return{name:"",children:this.outerNodes}}addClass(l,i){const r=this.classes.get(l)??{id:l,styles:[],textStyles:[]},n=i.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");n&&n.forEach(s=>{Te(s)&&(r?.textStyles?r.textStyles.push(s):r.textStyles=[s]),r?.styles?r.styles.push(s):r.styles=[s]}),this.classes.set(l,r)}getClasses(){return this.classes}getStylesForClass(l){return this.classes.get(l)?.styles??[]}clear(){$e(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},ae(T,"TreeMapDB"),m(T,"TreeMapDB"),T);function j(p){if(!p.length)return[];const l=[],i=[];return p.forEach(r=>{const n={name:r.name,children:r.type==="Leaf"?void 0:[]};for(n.classSelector=r?.classSelector,r?.cssCompiledStyles&&(n.cssCompiledStyles=r.cssCompiledStyles),r.type==="Leaf"&&r.value!==void 0&&(n.value=r.value);i.length>0&&i[i.length-1].level>=r.level;)i.pop();if(i.length===0)l.push(n);else{const s=i[i.length-1].node;s.children?s.children.push(n):s.children=[n]}r.type!=="Leaf"&&i.push({node:n,level:r.level})}),l}ae(j,"buildHierarchy");m(j,"buildHierarchy");var ze=m((p,l)=>{he(p,l);const i=[];for(const s of p.TreemapRows??[])s.$type==="ClassDefStatement"&&l.addClass(s.className??"",s.styleText??"");for(const s of p.TreemapRows??[]){const d=s.item;if(!d)continue;const h=s.indent?parseInt(s.indent):0,k=Ae(d),a=d.classSelector?l.getStylesForClass(d.classSelector):[],z=a.length>0?a:void 0,x={level:h,name:k,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:z};i.push(x)}const r=j(i),n=m((s,d)=>{for(const h of s)l.addNode(h,d),h.children&&h.children.length>0&&n(h.children,d+1)},"addNodesRecursively");n(r,0)},"populate"),Ae=m(p=>p.name?String(p.name):"","getItemName"),se={parser:{yy:void 0},parse:m(async p=>{try{const i=await me("treemap",p);X.debug("Treemap AST:",i);const r=se.parser?.yy;if(!(r instanceof le))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");ze(i,r)}catch(l){throw X.error("Error parsing treemap:",l),l}},"parse")},De=10,N=10,V=25,Me=m((p,l,i,r)=>{const n=r.db,s=n.getConfig(),d=s.padding??De,h=n.getDiagramTitle(),k=n.getRoot(),{themeVariables:a}=Y();if(!k)return;const z=h?30:0,x=fe(l),U=s.nodeWidth?s.nodeWidth*N:960,K=s.nodeHeight?s.nodeHeight*N:500,R=U,Q=K+z;x.attr("viewBox",`0 0 ${R} ${Q}`),ye(x,Q,R,s.useMaxWidth);let b;try{const e=s.valueFormat||",";if(e==="$0,0")b=m(t=>"$"+P(",")(t),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const t=/\.\d+/.exec(e),o=t?t[0]:"";b=m(u=>"$"+P(","+o)(u),"valueFormat")}else if(e.startsWith("$")){const t=e.substring(1);b=m(o=>"$"+P(t||"")(o),"valueFormat")}else b=P(e)}catch(e){X.error("Error creating format function:",e),b=P(",")}const A=G().range(["transparent",a.cScale0,a.cScale1,a.cScale2,a.cScale3,a.cScale4,a.cScale5,a.cScale6,a.cScale7,a.cScale8,a.cScale9,a.cScale10,a.cScale11]),re=G().range(["transparent",a.cScalePeer0,a.cScalePeer1,a.cScalePeer2,a.cScalePeer3,a.cScalePeer4,a.cScalePeer5,a.cScalePeer6,a.cScalePeer7,a.cScalePeer8,a.cScalePeer9,a.cScalePeer10,a.cScalePeer11]),E=G().range([a.cScaleLabel0,a.cScaleLabel1,a.cScaleLabel2,a.cScaleLabel3,a.cScaleLabel4,a.cScaleLabel5,a.cScaleLabel6,a.cScaleLabel7,a.cScaleLabel8,a.cScaleLabel9,a.cScaleLabel10,a.cScaleLabel11]);h&&x.append("text").attr("x",R/2).attr("y",z/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const q=x.append("g").attr("transform",`translate(0, ${z})`).attr("class","treemapContainer"),ne=Fe(k).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),J=Ne().size([U,K]).paddingTop(e=>e.children&&e.children.length>0?V+N:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?N:0).paddingRight(e=>e.children&&e.children.length>0?N:0).paddingBottom(e=>e.children&&e.children.length>0?N:0).round(!0)(ne),oe=J.descendants().filter(e=>e.children&&e.children.length>0),D=q.selectAll(".treemapSection").data(oe).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);D.append("rect").attr("width",e=>e.x1-e.x0).attr("height",V).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),D.append("clipPath").attr("id",(e,t)=>`clip-section-${l}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",V),D.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>A(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>re(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const t=F({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),D.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",V/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,t)=>`url(#clip-section-${l}-${t})`).attr("style",e=>{if(e.depth===0)return"display: none;";const t="dominant-baseline: middle; font-size: 12px; fill:"+E(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",o=F({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const t=H(this),o=e.data.name;t.text(o);const u=e.x1-e.x0,y=6;let f;s.showValues!==!1&&e.value?f=u-10-30-10-y:f=u-y-6;const c=Math.max(15,f),v=t.node();if(v.getComputedTextLength()>c){let w=o;for(;w.length>0;){if(w=o.substring(0,w.length-1),w.length===0){t.text("..."),v.getComputedTextLength()>c&&t.text("");break}if(t.text(w+"..."),v.getComputedTextLength()<=c)break}}}),s.showValues!==!1&&D.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",V/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?b(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+E(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",o=F({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")});const Z=J.leaves(),g=Z.length>20,ie=g?16:38,W=g?14:28,$=g?4:8,M=g?4:6,B=g?2:4,ee=g?8:10,I=g?1:2,_=q.selectAll(".treemapLeafGroup").data(Z).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);_.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("style",e=>F({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("stroke-width",3),_.append("clipPath").attr("id",(e,t)=>`clip-${l}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),_.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const t=`text-anchor: middle; dominant-baseline: middle; font-size: ${ie}px;fill:`+E(e.data.name)+";",o=F({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${l}-${t})`).text(e=>e.data.name).each(function(e){const t=H(this),o=e.x1-e.x0,u=e.y1-e.y0,y=t.node(),f=o-2*B,L=u-2*B;if(f<ee||L<ee){t.style("display","none");return}let c=parseInt(t.style("font-size"),10);const v=.6;for(;y.getComputedTextLength()>f&&c>$;)c--,t.style("font-size",`${c}px`);let S=Math.max(M,Math.min(W,Math.round(c*v))),C=c+I+S;for(;C>L&&c>$&&(c--,S=Math.max(M,Math.min(W,Math.round(c*v))),!(S<M&&c===$));)t.style("font-size",`${c}px`),C=c+I+S;t.style("font-size",`${c}px`),g?(c<$||L<$)&&t.style("display","none"):(y.getComputedTextLength()>f||c<$||L<c)&&t.style("display","none")}),s.showValues!==!1&&_.append("text").attr("class","treemapValue").attr("x",t=>(t.x1-t.x0)/2).attr("y",function(t){return(t.y1-t.y0)/2}).attr("style",t=>{const o=`text-anchor: middle; dominant-baseline: hanging; font-size: ${W}px;fill:`+E(t.data.name)+";",u=F({cssCompiledStyles:t.data.cssCompiledStyles});return o+u.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,o)=>`url(#clip-${l}-${o})`).text(t=>t.value?b(t.value):"").each(function(t){const o=H(this),u=this.parentNode;if(!u){o.style("display","none");return}const y=H(u).select(".treemapLabel");if(y.empty()||y.style("display")==="none"){o.style("display","none");return}const f=parseFloat(y.style("font-size")),c=Math.max(M,Math.min(W,Math.round(f*.6)));o.style("font-size",`${c}px`);const S=(t.y1-t.y0)/2+f/2+I;o.attr("y",S);const C=t.x1-t.x0,te=t.y1-t.y0-4,de=C-2*B;o.node().getComputedTextLength()>de||S+c>te||c<M?o.style("display","none"):o.style("display",null)});const ce=s.diagramPadding??8;Le(x,ce,"flowchart",s?.useMaxWidth||!1)},"draw"),Pe=m(function(p,l){return l.db.getClasses()},"getClasses"),Ve={draw:Me,getClasses:Pe},ke={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},Ee=m(({treemap:p}={})=>{const l=ue(),i=Y(),r=O(l,i.themeVariables),n=O(ke,p),s=n.titleColor??r.titleColor,d=n.labelColor??r.textColor,h=n.valueColor??r.textColor;return`
|
|
2
2
|
.treemapNode.section {
|
|
3
3
|
stroke: ${n.sectionStrokeColor};
|
|
4
4
|
stroke-width: ${n.sectionStrokeWidth};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as c}from"./
|
|
1
|
+
import{a as c}from"./D-Zd1oaK.js";async function h(t){if(!t)throw new Error("Missing required parameter: url");let n;try{n=new URL(t)}catch{throw new Error(`Invalid external URL: ${t}`)}if(!c.EXTERNAL.includes(n.protocol)&&!c.EXTERNAL_EXACT.includes(t))throw new Error(`Refusing to open URL externally (scheme not allowed): ${n.protocol}`);if(typeof window>"u")throw new Error("Unable to open external URL outside a window context");const e=window.electronAPI;if(e&&typeof e.invoke=="function")try{const i=await e.invoke("shell:openExternal",{url:t});if(i&&i.success===!0)return}catch{}const r=window.open(t,"_blank");if(r){r.opener=null;return}const o=document.createElement("a");o.href=t,o.target="_blank",o.rel="noopener noreferrer",document.body.appendChild(o),o.click(),o.remove()}const l="intent://pair";function m(t){const n=t.trim().toLowerCase();if(!n.startsWith(l))return!1;const e=n.charAt(l.length);return e===""||e==="?"||e==="/"||e==="#"}function g(t){const n=t.trim();if(!m(n))return null;let e;try{e=new URL(n.replace(/^intent:\/\//i,"http://"))}catch{return null}const r=e.searchParams,o=(r.get("host")??"").split(",").map(a=>a.trim()).filter(a=>a.length>0),i=r.get("port")?.trim()??"",s=/^\d+$/.test(i)?Number(i):NaN,p=Number.isInteger(s)&&s>0&&s<=65535?s:null,u=(r.get("fp")??r.get("certFingerprint"))?.trim()||null,d=r.get("token")?.trim()||null,f=r.get("tc")?.trim()||null;return{hosts:o,port:p,fingerprint:u,token:d,tcAddress:f}}export{m as i,h as o,g as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as Qe,bq as h,a_ as D,by as Ye,b as Ze,bs as ot,bo as k,bu as je}from"./sMg7Lxjd.js";import{bo as nt,bs as $e,a7 as J,ay as y,aD as e,bS as L,W as c,a5 as Ie,bA as Pe,bH as z,bl as _e,b_ as oe,bO as de,bn as et,bf as ze,bV as Me,aA as v,c9 as w,aB as X,be as st,b$ as it,bj as lt,cd as dt,ca as Ue,bk as ct}from"./B8o4lNgr.js";import{i as G}from"./Cb7Fwhyl.js";import{G9 as Ve,lS as ut,sT as pt}from"./FBhib8LQ.js";import{aO as ft}from"./DIiXUVIr.js";import{cj as ht}from"./bHtn9InS.js";import{c as vt}from"./ChTqQfQN.js";import{i as Je,t as Le}from"./H2jLkRRS.js";import{v as gt}from"./BDldvohw.js";import{d as _t}from"./B0Z-1lwJ.js";import{F as Se,at as mt,au as bt,cJ as Xe,aU as He,bb as kt,al as wt,ak as yt,cG as qe}from"./DGPqSlym.js";import{n as K,w as At}from"./CaJKv7d6.js";import{h as Ft,s as Re,a as Ne,k as Te,d as Wt}from"./CsvDcicf.js";import{s as xt}from"./HqhytM4z.js";import{f as Ct,ai as It,aW as Pt}from"./P-01BLZ6.js";import"./B25t-e4E.js";import{c as Q}from"./CfM0pCZF.js";import{a as Dt,r as Mt}from"./Da9J2JX1.js";import{M as Ot,t as Be}from"./CylTfPZk.js";import{o as Ge,r as Et,q as St,R as Rt,p as Nt,n as Tt,j as Bt,l as jt}from"./CUpXgpcF.js";var zt=X('<img alt="" class="size-4"/>'),Ut=X('<span class="min-w-0 flex-1 text-left"><span class="block truncate"> </span> <span class="block text-muted-foreground" aria-hidden="true" data-menu-action-reason=""> </span></span>'),Vt=X("<span> </span>"),Jt=X('<span data-menu-action-detail=""> </span>'),Lt=X('<span aria-hidden="true"><!></span>'),Ke=X("<!> <!> <!>",1),Xt=X('<div class="my-1 h-px bg-border" role="separator"></div>'),De=X("<!> <!>",1),Ht=X('<!> <p class="type-caption px-2 py-1 text-muted-foreground" data-menu-action-note=""> </p>',1),qt=X('<span class="flex size-4 shrink-0 items-center justify-center" aria-hidden="true"><!></span> <!> <!>',1),Gt=X('<p class="type-caption px-2 py-1 text-muted-foreground" data-menu-action-note=""> </p>'),Kt=X('<div class="pl-4"><!> <!></div>'),Qt=X('<span class="sr-only"> </span>');function me(be,d){const ke=nt();if(new.target)return Qe({component:me,...be});$e(d,!0);const xe=(p,r=ze)=>{var O=J(),E=y(O);{var U=W=>{const C=w(()=>Dt(r().editor));var V=J(),m=y(V);{var f=s=>{var i=zt();oe(()=>Re(i,"src",`data:image/png;base64,${r().editor.iconBase64??""}`)),c(s,i)},o=s=>{var i=J(),b=y(i);Q(b,()=>e(C),(N,ae)=>{ae(N,{size:16})}),c(s,i)},R=s=>{{let i=w(()=>Mt(r().editor.category));Se(s,{get icon(){return e(i)},size:16})}};D(m,s=>{r().editor.iconBase64?s(f):e(C)?s(o,1):s(R,-1)})}c(W,V)},S=W=>{var C=J(),V=y(C);xt(V,()=>r().iconSnippet),c(W,C)},q=W=>{{let C=w(()=>r().variant==="destructive"?"text-current":"text-muted-foreground");Se(W,{get icon(){return r().icon},get weight(){return H()},size:16,get class(){return e(C)}})}};D(E,W=>{r().editor?W(U):r().iconSnippet?W(S,1):r().icon&&W(q,2)})}c(p,O)},ne=(p,r=ze)=>{var O=Ke(),E=y(O);{var U=m=>{var f=Ut(),o=Ie(f),R=_e(o,!0);Ne(o,(b,N)=>Be?.(b,N),()=>r().label);var s=L(o,2),i=_e(s,!0);Pe(f),oe(()=>{de(R,r().label),de(i,r().disabledReason)}),c(m,f)},S=m=>{var f=Vt(),o=_e(f,!0);Ne(f,(R,s)=>Be?.(R,s),()=>r().label),oe(()=>{Te(f,1,`min-w-0 truncate text-left ${r().detail?"flex-[1_0_auto]":"flex-1"}`),de(o,r().label)}),c(m,f)};D(E,m=>{r().disabledReason?m(U):m(S,-1)})}var q=L(E,2);{var W=m=>{var f=Jt(),o=_e(f,!0);Ne(f,(R,s)=>Be?.(R,s),()=>r().detail),oe(()=>{Te(f,1,`ml-4 min-w-0 truncate ${r().detailTone==="danger"?"text-danger":"text-muted-foreground"}`),de(o,r().detail)}),c(m,f)};D(q,m=>{r().detail&&m(W)})}var C=L(q,2);{var V=m=>{var f=Lt(),o=Ie(f);It(o,{children:(R,s)=>{st();var i=it();oe(b=>de(i,b),[()=>Pt(r().shortcut)]),c(R,i)},$$slots:{default:!0}}),Pe(f),oe(()=>Te(f,1,Wt(M()?"ml-4 flex h-lh shrink-0 items-center":"ml-4"))),c(m,f)};D(C,m=>{r().shortcut&&m(V)})}c(p,O)};let we=h(d,"actions",7),M=h(d,"menu",7),H=h(d,"iconWeight",7),u=h(d,"onClose",7),A=h(d,"selection",7),F=Me(null);function Y(p){p.disabled||p.disabledReason!==void 0||(p.onClick(),u()?.())}var ce={get actions(){return we()},set actions(p){we(p),v()},get menu(){return M()},set menu(p){M(p),v()},get iconWeight(){return H()},set iconWeight(p){H(p),v()},get onClose(){return u()},set onClose(p){u(p),v()},get selection(){return A()},set selection(p){A(p),v()},$set:Ye,$on:(p,r)=>Ze(d,p,r)},se=J(),ie=y(se);return Ft(ie,17,we,p=>p.id,(p,r)=>{const O=i=>{xe(i,()=>e(r))},E=w(()=>!!(e(r).editor||e(r).iconSnippet||e(r).icon)),U=w(()=>e(r).disabled||e(r).disabledReason!==void 0),S=w(()=>e(r).disabledReason?`${ke}-${e(r).id}-reason`:void 0);var q=Ke(),W=y(q);{var C=i=>{var b=J(),N=y(b);{var ae=a=>{var n=J(),g=y(n);Q(g,()=>Ge,(x,P)=>{P(x,{})}),c(a,n)},ue=a=>{var n=Xt();c(a,n)};D(N,a=>{M()?a(ae):a(ue,-1)})}c(i,b)};D(W,i=>{e(r).dividerBefore&&i(C)})}var V=L(W,2);{var m=i=>{var b=J(),N=y(b);{var ae=g=>{var x=J(),P=y(x);Q(P,()=>Nt,(I,T)=>{T(I,{children:(B,Z)=>{var $=De(),pe=y($);{let te=w(()=>e(E)?O:void 0);Q(pe,()=>Et,(fe,he)=>{he(fe,{get leading(){return e(te)},get disabled(){return e(U)},get"aria-describedby"(){return e(S)},get"data-action-id"(){return e(r).id},children:(ve,ye)=>{ne(ve,()=>e(r))},$$slots:{default:!0}})})}var ee=L(pe,2);{let te=w(()=>e(r).note?`${ke}-${e(r).id}-note`:void 0);Q(ee,()=>St,(fe,he)=>{he(fe,{class:"w-60",get"aria-describedby"(){return e(te)},children:(ve,ye)=>{var t=De(),l=y(t);{var _=re=>{var Ae=De(),Fe=y(Ae);{let We=w(()=>e(r).submenu.find(ge=>ge.checked)?.id??"");Q(Fe,()=>Rt,(ge,Ee)=>{Ee(ge,{get value(){return e(We)},get"aria-label"(){return e(r).label},children:(tt,Zt)=>{{let rt=w(()=>e(r).submenu.filter(at=>at.checked!==void 0));me(tt,{get actions(){return e(rt)},selection:"single",get menu(){return M()},get iconWeight(){return H()},get onClose(){return u()}})}},$$slots:{default:!0}})})}var Ce=L(Fe,2);{let We=w(()=>e(r).submenu.filter(ge=>ge.checked===void 0));me(Ce,{get actions(){return e(We)},get menu(){return M()},get iconWeight(){return H()},get onClose(){return u()}})}c(re,Ae)},j=re=>{me(re,{get actions(){return e(r).submenu},get menu(){return M()},get iconWeight(){return H()},get onClose(){return u()}})};D(l,re=>{e(r).selection==="single"?re(_):re(j,-1)})}var le=L(l,2);{var Oe=re=>{var Ae=Ht(),Fe=y(Ae);Q(Fe,()=>Ge,(ge,Ee)=>{Ee(ge,{})});var Ce=L(Fe,2),We=_e(Ce,!0);oe(()=>{Re(Ce,"id",`${ke}-${e(r).id}-note`),de(We,e(r).note)}),c(re,Ae)};D(le,re=>{e(r).note&&re(Oe)})}c(ve,t)},$$slots:{default:!0}})})}c(B,$)},$$slots:{default:!0}})}),c(g,x)},ue=g=>{var x=J(),P=y(x);{let I=w(()=>e(E)?O:void 0);Q(P,()=>Tt,(T,B)=>{B(T,{get leading(){return e(I)},get value(){return e(r).id},get disabled(){return e(U)},get"aria-describedby"(){return e(S)},closeOnSelect:!0,onSelect:()=>Y(e(r)),get"data-action-id"(){return e(r).id},children:(Z,$)=>{ne(Z,()=>e(r))},$$slots:{default:!0}})})}c(g,x)},a=g=>{var x=J(),P=y(x);{let I=w(()=>e(E)?O:void 0);Q(P,()=>Bt,(T,B)=>{B(T,{get leading(){return e(I)},get checked(){return e(r).checked},get disabled(){return e(U)},get"aria-describedby"(){return e(S)},closeOnSelect:!0,onSelect:()=>Y(e(r)),get"data-action-id"(){return e(r).id},children:(Z,$)=>{ne(Z,()=>e(r))},$$slots:{default:!0}})})}c(g,x)},n=g=>{var x=J(),P=y(x);{let I=w(()=>e(E)?O:void 0),T=w(()=>e(r).variant==="destructive");Q(P,()=>jt,(B,Z)=>{Z(B,{get leading(){return e(I)},get destructive(){return e(T)},get disabled(){return e(U)},get"aria-describedby"(){return e(S)},onSelect:()=>Y(e(r)),get"data-action-id"(){return e(r).id},children:($,pe)=>{ne($,()=>e(r))},$$slots:{default:!0}})})}c(g,x)};D(N,g=>{e(r).submenu?g(ae):A()==="single"&&e(r).checked!==void 0?g(ue,1):e(r).checked!==void 0?g(a,2):g(n,-1)})}c(i,b)},f=i=>{me(i,{get actions(){return e(r).submenu},get menu(){return M()},get iconWeight(){return H()},get onClose(){return u()}})},o=i=>{var b=De(),N=y(b);{let a=w(()=>e(r).variant==="destructive"?"text-danger hover:text-danger":""),n=w(()=>e(r).submenu?e(F)===e(r).id:void 0);Ct(N,{variant:"ghost",size:"sm",get class(){return`w-full justify-start gap-2 ${e(a)??""}`},get disabled(){return e(U)},get"aria-describedby"(){return e(S)},get"aria-expanded"(){return e(n)},onclick:()=>e(r).submenu?z(F,e(F)===e(r).id?null:e(r).id,!0):Y(e(r)),children:(g,x)=>{var P=qt(),I=y(P),T=Ie(I);xe(T,()=>e(r)),Pe(I);var B=L(I,2);ne(B,()=>e(r));var Z=L(B,2);{var $=ee=>{{let te=w(()=>e(F)===e(r).id?mt:bt);Se(ee,{get icon(){return e(te)},size:12})}},pe=ee=>{var te=J(),fe=y(te);{let he=w(()=>e(r).checked?"checked":"empty");Q(fe,()=>Ot,(ve,ye)=>{ye(ve,{get state(){return e(he)}})})}c(ee,te)};D(Z,ee=>{e(r).submenu?ee($):e(r).checked!==void 0&&ee(pe,1)})}c(g,P)},$$slots:{default:!0}})}var ae=L(N,2);{var ue=a=>{var n=Kt(),g=Ie(n);me(g,{get actions(){return e(r).submenu},get menu(){return M()},get iconWeight(){return H()},get onClose(){return u()}});var x=L(g,2);{var P=I=>{var T=Gt(),B=_e(T,!0);oe(()=>de(B,e(r).note)),c(I,T)};D(x,I=>{e(r).note&&I(P)})}Pe(n),c(a,n)};D(ae,a=>{e(r).submenu&&e(F)===e(r).id&&a(ue)})}c(i,b)};D(V,i=>{M()?i(m):e(r).id==="open-in"&&e(r).submenu?i(f,1):i(o,-1)})}var R=L(V,2);{var s=i=>{var b=Qt(),N=_e(b,!0);oe(()=>{Re(b,"id",e(S)),de(N,e(r).disabledReason)}),c(i,b)};D(R,i=>{e(r).disabledReason&&i(s)})}c(p,q)}),c(be,se),et(ce)}function Yt(be,d){if(new.target)return Qe({component:Yt,...be});$e(d,!0);const ke=()=>je(N,"$installedEditors$",ne),xe=()=>je(ue,"$isWorkspaceHostLocal$",ne),[ne,we]=ot();let M=h(d,"layout",7,"list"),H=h(d,"iconWeight",7),u=h(d,"filePath",7,""),A=h(d,"workspaceId",7,""),F=h(d,"isDirectory",7,!0),Y=h(d,"onDelete",7,void 0),ce=h(d,"onArchive",7,void 0),se=h(d,"onUnarchive",7,void 0),ie=h(d,"isArchived",7,!1),p=h(d,"onClose",7,void 0),r=h(d,"showDeleteOption",7,!0),O=h(d,"showArchiveOption",7,!1),E=h(d,"showPathCopy",7,!0),U=h(d,"showFileNameCopy",7,!1),S=h(d,"showFileActions",7,!0),q=h(d,"workspaceFolderPath",7,""),W=h(d,"isDiff",7,!1),C=h(d,"isWorkspaceRoot",7,!1),V=h(d,"additionalActions",23,()=>[]),m=h(d,"showDeleteFileOption",7,!1),f=h(d,"onFileDeleted",7,void 0);const o=vt("WorkspaceActionsMenu");let R=!1;lt(()=>{R=!0});function s(){R||p()?.()}const i=gt("externalEditors"),b=dt(A());Ue(()=>{b.set(A())});const N=ft(b),ae=w(ke),ue=ht(b);let a=Me(""),n=Me(""),g=Me(!1);ct(()=>{Ve.dispatch(ut())}),Ue(()=>{u()&&A()?G("workspace:get",{id:A()}).then(t=>{if(t&&t.success&&t.data){const l=t.data,_=l.worktreePath||l.repositoryPath||l.path,j=q()==="__WORKSPACE_ROOT__"?_:q()||_;if(j){const le=j.replace(/\\/g,"/");C()?z(a,le,!0):Je(u())?z(a,u().replace(/\\/g,"/"),!0):z(a,`${le}/${u()}`.replace(/\/+/g,"/"),!0),z(n,le,!0),o.info("[WorkspaceActionsMenu] Resolved file path:",{filePath:u(),workspacePath:j,resolvedPath:e(a)})}else z(a,u()),z(n,""),l.status!=="archived"&&l.status!=="deleted"&&o.warn("[WorkspaceActionsMenu] No workspace path found:",l)}else z(a,u()),z(n,""),t?.error&&!t.error.includes("not found")&&o.warn("[WorkspaceActionsMenu] Workspace not available:",t)}).catch(t=>{z(a,u()),z(n,""),t?.message?.includes("not found")||o.error("[WorkspaceActionsMenu] Failed to resolve path:",t)}):(z(a,u()),o.info("[WorkspaceActionsMenu] Using filePath directly:",{filePath:u(),workspaceId:A()}))});async function x(){if(!e(a)){o.warn("[WorkspaceActionsMenu] No resolved path for VSCode");return}try{if(W()&&!F()){o.info("[WorkspaceActionsMenu] Opening diff in VSCode:",{resolvedPath:e(a)}),await G("vscode:open-git-diff",{filePath:e(a),workspacePath:e(n)||void 0}),s();return}let t=e(a);if(e(n))!F()&&!C()?t={folder:e(n),file:e(a)}:t=e(n);else if(!F()){const l=e(a).includes("\\")?"\\":"/",_=e(a).split(l);_.length>1&&(t={folder:_.slice(0,-1).join(l),file:e(a)})}await G("vscode:open",t),s()}catch(t){o.error("Failed to open in VSCode:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openFailed_error({name:"VS Code"}))}}async function P(){if(!e(a)){o.warn("[WorkspaceActionsMenu] No resolved path for JetBrains");return}try{let t=e(a);e(n)&&!F()?t={folder:e(n),file:e(a)}:e(n)&&(t=e(n)),await G("jetbrains:open",t),s()}catch(t){o.error("Failed to open in JetBrains:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openFailed_error({name:"JetBrains"}))}}async function I(){if(!e(a)){o.warn("[WorkspaceActionsMenu] No resolved path for Xcode");return}try{if(A()&&e(n)){Ve.dispatch(pt(A(),e(n),F()?void 0:e(a))),s();return}let t=e(a);e(n)&&!F()?t={folder:e(n),file:e(a)}:e(n)&&(t={folder:e(n)}),await G("xcode:open",t),s()}catch(t){o.error("Failed to open in Xcode:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openFailed_error({name:"Xcode"}))}}async function T(t){if(o.info("[WorkspaceActionsMenu] openInEditor called",{editorId:t.id,appName:t.appName,handlerType:t.handlerType,resolvedPath:e(a),isDirectory:F()}),!e(a)){o.warn("[WorkspaceActionsMenu] openInEditor: No resolved path, aborting");return}const l=F()?e(a):e(a).substring(0,e(a).lastIndexOf("/"));o.info(`[WorkspaceActionsMenu] openInEditor: targetPath=${l}, handlerType=${t.handlerType}`);try{switch(t.handlerType){case"finder":o.info("[WorkspaceActionsMenu] openInEditor: Invoking shell:showItemInFolder"),await G("shell:showItemInFolder",{path:l});break;case"vscode":o.info("[WorkspaceActionsMenu] openInEditor: Delegating to openInVSCode"),await x();return;case"jetbrains":o.info("[WorkspaceActionsMenu] openInEditor: Delegating to openInJetBrains"),await P();return;case"xcode":o.info("[WorkspaceActionsMenu] openInEditor: Delegating to openInXcode"),await I();return;case"generic":default:{o.info(`[WorkspaceActionsMenu] openInEditor: Invoking external-editors:open for ${t.id}`);const _=await G("external-editors:open",{editorId:t.id,path:l});o.info("[WorkspaceActionsMenu] openInEditor: external-editors:open result",_);break}}s()}catch(_){o.error(`[WorkspaceActionsMenu] Failed to open in ${t.appName}:`,_),K.error(_ instanceof Error?_.message:k.ui_workspaceActions_openFailed_error({name:t.appName}))}}async function B(){if(!e(a)){o.warn("No resolved path for openWithOther");return}try{let t=e(a);F()&&e(n)&&(t=e(n));const l=await G("external-editors:open-with-other",{path:t});if(!l?.success){l?.error!=="No application selected"&&(o.error("Failed to open with other app:",l?.error),K.error(l?.error||k.ui_workspaceActions_openOtherFailed_error()));return}s()}catch(t){o.error("Failed to open with other app:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openOtherFailed_error())}}async function Z(){if(e(a))try{await navigator.clipboard.writeText(Le(e(a))),s()}catch(t){o.error("Failed to copy path:",t)}}async function $(){if(u())try{let t=u().replace(/\\/g,"/");if(Je(u())&&e(n)){const l=e(n).endsWith("/")?e(n):e(n)+"/";t.startsWith(l)&&(t=t.slice(l.length))}await navigator.clipboard.writeText(Le(t)),s()}catch(t){o.error("Failed to copy workspace path:",t)}}async function pe(){if(u())try{const t=u().split(/[/\\]/).pop()||"";await navigator.clipboard.writeText(t),s()}catch(t){o.error("Failed to copy file name:",t)}}function ee(){Y()&&(Y()(),s())}async function te(){if(!(!A()||!e(a)||e(g))){z(g,!0);try{const t=u().split(/[/\\]/).pop()||"file",l=e(a);let _="";try{_=(await G("file:read",{path:l,workspaceId:A()}))?.data?.content??""}catch{}const j=await G("file:delete",{path:l,workspaceId:A()});if(j?.success){f()?.(),s();const le=K.warning(k.ui_workspaceActions_deletedFile_label({name:t}),At({duration:15e3,action:{label:k.ui_workspaceActions_undo_label(),onClick:async()=>{try{await G("file:write",{path:l,content:_,workspaceId:A()}),_t("file:changed",{workspaceId:A(),type:"create",filePath:l}),K.dismiss(le)}catch(Oe){o.error("[WorkspaceActionsMenu] Failed to restore file",Oe),K.error(k.ui_workspaceActions_restoreFileFailed_error())}}}}))}else K.error(k.ui_workspaceActions_deleteFileFailedDetail_error({error:j?.error||k.ui_workspaceActions_unknown_error()}))}catch(t){o.error("[WorkspaceActionsMenu] Error deleting file",t),K.error(k.ui_workspaceActions_deleteFileFailed_error())}finally{z(g,!1)}}}function fe(){ie()&&se()?(se()(),s()):!ie()&&ce()&&(ce()(),s())}const he=w(()=>{const t=[];S()&&(i&&xe()&&t.push({id:"open-in",label:k.ui_openCombo_openInApp_tooltip(),icon:Xe,onClick:()=>{},submenu:[...e(ae).map(_=>({id:`editor:${_.id}`,label:k.ui_workspaceActions_openIn_label({name:_.name}),editor:_,onClick:()=>{T(_)}})),{id:"choose-app",label:k.ui_workspaceActions_chooseApp_label(),icon:Xe,onClick:()=>{B()}}]}),E()&&t.push({id:"copy-absolute-path",label:k.ui_workspaceActions_copyAbsolutePath_label(),icon:He,disabled:!e(a),dividerBefore:t.length>0,onClick:()=>{Z()}}),E()&&!C()&&t.push({id:"copy-relative-path",label:k.ui_workspaceActions_copyRelativePath_label(),icon:He,disabled:!u(),onClick:()=>{$()}}),U()&&!F()&&t.push({id:"copy-file-name",label:k.ui_workspaceActions_copyFileName_label(),icon:kt,disabled:!u(),onClick:()=>{pe()}}));const l=_=>_.map(j=>({...j,submenu:j.submenu?l(j.submenu):void 0,onClick:()=>{j.onClick(),s()}}));return t.push(...l(V())),O()&&(ce()||se())&&t.push({id:"archive-workspace",label:ie()?k.ui_workspaceActions_unarchiveSpace_label():k.ui_workspaceActions_archiveSpace_label(),icon:ie()?wt:yt,dividerBefore:t.length>0,onClick:fe}),r()&&Y()&&t.push({id:"delete-workspace",label:k.ui_workspaceActions_deleteSpace_label(),icon:qe,variant:"destructive",dividerBefore:t.length>0,onClick:ee}),m()&&!F()&&t.push({id:"delete-file",label:k.ui_workspaceActions_deleteFile_label(),icon:qe,variant:"destructive",disabled:e(g)||!e(a)||!A(),dividerBefore:t.length>0,onClick:()=>{te()}}),t});var ve={get layout(){return M()},set layout(t="list"){M(t),v()},get iconWeight(){return H()},set iconWeight(t){H(t),v()},get filePath(){return u()},set filePath(t=""){u(t),v()},get workspaceId(){return A()},set workspaceId(t=""){A(t),v()},get isDirectory(){return F()},set isDirectory(t=!0){F(t),v()},get onDelete(){return Y()},set onDelete(t=void 0){Y(t),v()},get onArchive(){return ce()},set onArchive(t=void 0){ce(t),v()},get onUnarchive(){return se()},set onUnarchive(t=void 0){se(t),v()},get isArchived(){return ie()},set isArchived(t=!1){ie(t),v()},get onClose(){return p()},set onClose(t=void 0){p(t),v()},get showDeleteOption(){return r()},set showDeleteOption(t=!0){r(t),v()},get showArchiveOption(){return O()},set showArchiveOption(t=!1){O(t),v()},get showPathCopy(){return E()},set showPathCopy(t=!0){E(t),v()},get showFileNameCopy(){return U()},set showFileNameCopy(t=!1){U(t),v()},get showFileActions(){return S()},set showFileActions(t=!0){S(t),v()},get workspaceFolderPath(){return q()},set workspaceFolderPath(t=""){q(t),v()},get isDiff(){return W()},set isDiff(t=!1){W(t),v()},get isWorkspaceRoot(){return C()},set isWorkspaceRoot(t=!1){C(t),v()},get additionalActions(){return V()},set additionalActions(t=[]){V(t),v()},get showDeleteFileOption(){return m()},set showDeleteFileOption(t=!1){m(t),v()},get onFileDeleted(){return f()},set onFileDeleted(t=void 0){f(t),v()},$set:Ye,$on:(t,l)=>Ze(d,t,l)};{let t=w(()=>M()!=="list");me(be,{get actions(){return e(he)},get menu(){return e(t)},get iconWeight(){return H()}})}var ye=et(ve);return we(),ye}export{Yt as default};
|
|
1
|
+
import{t as Qe,bq as h,a_ as D,by as Ye,b as Ze,bs as ot,bo as k,bu as je}from"./CgPr4hs2.js";import{bo as nt,bs as $e,a7 as J,ay as y,aD as e,bS as L,W as c,a5 as Ie,bA as Pe,bH as z,bl as _e,b_ as oe,bO as de,bn as et,bf as ze,bV as Me,aA as v,c9 as w,aB as X,be as st,b$ as it,bj as lt,cd as dt,ca as Ue,bk as ct}from"./B8o4lNgr.js";import{i as G}from"./CvXnZ-8G.js";import{G9 as Ve,lS as ut,sT as pt}from"./BL_sVoge.js";import{aO as ft}from"./YnEJ07_G.js";import{cj as ht}from"./Df2ohObb.js";import{c as vt}from"./ChTqQfQN.js";import{i as Je,t as Le}from"./H2jLkRRS.js";import{v as gt}from"./P80hEEPK.js";import{d as _t}from"./B0Z-1lwJ.js";import{F as Se,at as mt,au as bt,cJ as Xe,aU as He,bb as kt,al as wt,ak as yt,cG as qe}from"./B7NNbItI.js";import{n as K,w as At}from"./Bo4f3vLH.js";import{h as Ft,s as Re,a as Ne,k as Te,d as Wt}from"./CsstSIr0.js";import{s as xt}from"./D3ROSEe0.js";import{f as Ct,ai as It,aW as Pt}from"./Ps9iRbKd.js";import"./D32qvOGn.js";import{c as Q}from"./Co_Aa6ij.js";import{a as Dt,r as Mt}from"./BG92xiA-.js";import{M as Ot,t as Be}from"./C5qvCE4M.js";import{o as Ge,r as Et,q as St,R as Rt,p as Nt,n as Tt,j as Bt,l as jt}from"./C9tAiYT0.js";var zt=X('<img alt="" class="size-4"/>'),Ut=X('<span class="min-w-0 flex-1 text-left"><span class="block truncate"> </span> <span class="block text-muted-foreground" aria-hidden="true" data-menu-action-reason=""> </span></span>'),Vt=X("<span> </span>"),Jt=X('<span data-menu-action-detail=""> </span>'),Lt=X('<span aria-hidden="true"><!></span>'),Ke=X("<!> <!> <!>",1),Xt=X('<div class="my-1 h-px bg-border" role="separator"></div>'),De=X("<!> <!>",1),Ht=X('<!> <p class="type-caption px-2 py-1 text-muted-foreground" data-menu-action-note=""> </p>',1),qt=X('<span class="flex size-4 shrink-0 items-center justify-center" aria-hidden="true"><!></span> <!> <!>',1),Gt=X('<p class="type-caption px-2 py-1 text-muted-foreground" data-menu-action-note=""> </p>'),Kt=X('<div class="pl-4"><!> <!></div>'),Qt=X('<span class="sr-only"> </span>');function me(be,d){const ke=nt();if(new.target)return Qe({component:me,...be});$e(d,!0);const xe=(p,r=ze)=>{var O=J(),E=y(O);{var U=W=>{const C=w(()=>Dt(r().editor));var V=J(),m=y(V);{var f=s=>{var i=zt();oe(()=>Re(i,"src",`data:image/png;base64,${r().editor.iconBase64??""}`)),c(s,i)},o=s=>{var i=J(),b=y(i);Q(b,()=>e(C),(N,ae)=>{ae(N,{size:16})}),c(s,i)},R=s=>{{let i=w(()=>Mt(r().editor.category));Se(s,{get icon(){return e(i)},size:16})}};D(m,s=>{r().editor.iconBase64?s(f):e(C)?s(o,1):s(R,-1)})}c(W,V)},S=W=>{var C=J(),V=y(C);xt(V,()=>r().iconSnippet),c(W,C)},q=W=>{{let C=w(()=>r().variant==="destructive"?"text-current":"text-muted-foreground");Se(W,{get icon(){return r().icon},get weight(){return H()},size:16,get class(){return e(C)}})}};D(E,W=>{r().editor?W(U):r().iconSnippet?W(S,1):r().icon&&W(q,2)})}c(p,O)},ne=(p,r=ze)=>{var O=Ke(),E=y(O);{var U=m=>{var f=Ut(),o=Ie(f),R=_e(o,!0);Ne(o,(b,N)=>Be?.(b,N),()=>r().label);var s=L(o,2),i=_e(s,!0);Pe(f),oe(()=>{de(R,r().label),de(i,r().disabledReason)}),c(m,f)},S=m=>{var f=Vt(),o=_e(f,!0);Ne(f,(R,s)=>Be?.(R,s),()=>r().label),oe(()=>{Te(f,1,`min-w-0 truncate text-left ${r().detail?"flex-[1_0_auto]":"flex-1"}`),de(o,r().label)}),c(m,f)};D(E,m=>{r().disabledReason?m(U):m(S,-1)})}var q=L(E,2);{var W=m=>{var f=Jt(),o=_e(f,!0);Ne(f,(R,s)=>Be?.(R,s),()=>r().detail),oe(()=>{Te(f,1,`ml-4 min-w-0 truncate ${r().detailTone==="danger"?"text-danger":"text-muted-foreground"}`),de(o,r().detail)}),c(m,f)};D(q,m=>{r().detail&&m(W)})}var C=L(q,2);{var V=m=>{var f=Lt(),o=Ie(f);It(o,{children:(R,s)=>{st();var i=it();oe(b=>de(i,b),[()=>Pt(r().shortcut)]),c(R,i)},$$slots:{default:!0}}),Pe(f),oe(()=>Te(f,1,Wt(M()?"ml-4 flex h-lh shrink-0 items-center":"ml-4"))),c(m,f)};D(C,m=>{r().shortcut&&m(V)})}c(p,O)};let we=h(d,"actions",7),M=h(d,"menu",7),H=h(d,"iconWeight",7),u=h(d,"onClose",7),A=h(d,"selection",7),F=Me(null);function Y(p){p.disabled||p.disabledReason!==void 0||(p.onClick(),u()?.())}var ce={get actions(){return we()},set actions(p){we(p),v()},get menu(){return M()},set menu(p){M(p),v()},get iconWeight(){return H()},set iconWeight(p){H(p),v()},get onClose(){return u()},set onClose(p){u(p),v()},get selection(){return A()},set selection(p){A(p),v()},$set:Ye,$on:(p,r)=>Ze(d,p,r)},se=J(),ie=y(se);return Ft(ie,17,we,p=>p.id,(p,r)=>{const O=i=>{xe(i,()=>e(r))},E=w(()=>!!(e(r).editor||e(r).iconSnippet||e(r).icon)),U=w(()=>e(r).disabled||e(r).disabledReason!==void 0),S=w(()=>e(r).disabledReason?`${ke}-${e(r).id}-reason`:void 0);var q=Ke(),W=y(q);{var C=i=>{var b=J(),N=y(b);{var ae=a=>{var n=J(),g=y(n);Q(g,()=>Ge,(x,P)=>{P(x,{})}),c(a,n)},ue=a=>{var n=Xt();c(a,n)};D(N,a=>{M()?a(ae):a(ue,-1)})}c(i,b)};D(W,i=>{e(r).dividerBefore&&i(C)})}var V=L(W,2);{var m=i=>{var b=J(),N=y(b);{var ae=g=>{var x=J(),P=y(x);Q(P,()=>Nt,(I,T)=>{T(I,{children:(B,Z)=>{var $=De(),pe=y($);{let te=w(()=>e(E)?O:void 0);Q(pe,()=>Et,(fe,he)=>{he(fe,{get leading(){return e(te)},get disabled(){return e(U)},get"aria-describedby"(){return e(S)},get"data-action-id"(){return e(r).id},children:(ve,ye)=>{ne(ve,()=>e(r))},$$slots:{default:!0}})})}var ee=L(pe,2);{let te=w(()=>e(r).note?`${ke}-${e(r).id}-note`:void 0);Q(ee,()=>St,(fe,he)=>{he(fe,{class:"w-60",get"aria-describedby"(){return e(te)},children:(ve,ye)=>{var t=De(),l=y(t);{var _=re=>{var Ae=De(),Fe=y(Ae);{let We=w(()=>e(r).submenu.find(ge=>ge.checked)?.id??"");Q(Fe,()=>Rt,(ge,Ee)=>{Ee(ge,{get value(){return e(We)},get"aria-label"(){return e(r).label},children:(tt,Zt)=>{{let rt=w(()=>e(r).submenu.filter(at=>at.checked!==void 0));me(tt,{get actions(){return e(rt)},selection:"single",get menu(){return M()},get iconWeight(){return H()},get onClose(){return u()}})}},$$slots:{default:!0}})})}var Ce=L(Fe,2);{let We=w(()=>e(r).submenu.filter(ge=>ge.checked===void 0));me(Ce,{get actions(){return e(We)},get menu(){return M()},get iconWeight(){return H()},get onClose(){return u()}})}c(re,Ae)},j=re=>{me(re,{get actions(){return e(r).submenu},get menu(){return M()},get iconWeight(){return H()},get onClose(){return u()}})};D(l,re=>{e(r).selection==="single"?re(_):re(j,-1)})}var le=L(l,2);{var Oe=re=>{var Ae=Ht(),Fe=y(Ae);Q(Fe,()=>Ge,(ge,Ee)=>{Ee(ge,{})});var Ce=L(Fe,2),We=_e(Ce,!0);oe(()=>{Re(Ce,"id",`${ke}-${e(r).id}-note`),de(We,e(r).note)}),c(re,Ae)};D(le,re=>{e(r).note&&re(Oe)})}c(ve,t)},$$slots:{default:!0}})})}c(B,$)},$$slots:{default:!0}})}),c(g,x)},ue=g=>{var x=J(),P=y(x);{let I=w(()=>e(E)?O:void 0);Q(P,()=>Tt,(T,B)=>{B(T,{get leading(){return e(I)},get value(){return e(r).id},get disabled(){return e(U)},get"aria-describedby"(){return e(S)},closeOnSelect:!0,onSelect:()=>Y(e(r)),get"data-action-id"(){return e(r).id},children:(Z,$)=>{ne(Z,()=>e(r))},$$slots:{default:!0}})})}c(g,x)},a=g=>{var x=J(),P=y(x);{let I=w(()=>e(E)?O:void 0);Q(P,()=>Bt,(T,B)=>{B(T,{get leading(){return e(I)},get checked(){return e(r).checked},get disabled(){return e(U)},get"aria-describedby"(){return e(S)},closeOnSelect:!0,onSelect:()=>Y(e(r)),get"data-action-id"(){return e(r).id},children:(Z,$)=>{ne(Z,()=>e(r))},$$slots:{default:!0}})})}c(g,x)},n=g=>{var x=J(),P=y(x);{let I=w(()=>e(E)?O:void 0),T=w(()=>e(r).variant==="destructive");Q(P,()=>jt,(B,Z)=>{Z(B,{get leading(){return e(I)},get destructive(){return e(T)},get disabled(){return e(U)},get"aria-describedby"(){return e(S)},onSelect:()=>Y(e(r)),get"data-action-id"(){return e(r).id},children:($,pe)=>{ne($,()=>e(r))},$$slots:{default:!0}})})}c(g,x)};D(N,g=>{e(r).submenu?g(ae):A()==="single"&&e(r).checked!==void 0?g(ue,1):e(r).checked!==void 0?g(a,2):g(n,-1)})}c(i,b)},f=i=>{me(i,{get actions(){return e(r).submenu},get menu(){return M()},get iconWeight(){return H()},get onClose(){return u()}})},o=i=>{var b=De(),N=y(b);{let a=w(()=>e(r).variant==="destructive"?"text-danger hover:text-danger":""),n=w(()=>e(r).submenu?e(F)===e(r).id:void 0);Ct(N,{variant:"ghost",size:"sm",get class(){return`w-full justify-start gap-2 ${e(a)??""}`},get disabled(){return e(U)},get"aria-describedby"(){return e(S)},get"aria-expanded"(){return e(n)},onclick:()=>e(r).submenu?z(F,e(F)===e(r).id?null:e(r).id,!0):Y(e(r)),children:(g,x)=>{var P=qt(),I=y(P),T=Ie(I);xe(T,()=>e(r)),Pe(I);var B=L(I,2);ne(B,()=>e(r));var Z=L(B,2);{var $=ee=>{{let te=w(()=>e(F)===e(r).id?mt:bt);Se(ee,{get icon(){return e(te)},size:12})}},pe=ee=>{var te=J(),fe=y(te);{let he=w(()=>e(r).checked?"checked":"empty");Q(fe,()=>Ot,(ve,ye)=>{ye(ve,{get state(){return e(he)}})})}c(ee,te)};D(Z,ee=>{e(r).submenu?ee($):e(r).checked!==void 0&&ee(pe,1)})}c(g,P)},$$slots:{default:!0}})}var ae=L(N,2);{var ue=a=>{var n=Kt(),g=Ie(n);me(g,{get actions(){return e(r).submenu},get menu(){return M()},get iconWeight(){return H()},get onClose(){return u()}});var x=L(g,2);{var P=I=>{var T=Gt(),B=_e(T,!0);oe(()=>de(B,e(r).note)),c(I,T)};D(x,I=>{e(r).note&&I(P)})}Pe(n),c(a,n)};D(ae,a=>{e(r).submenu&&e(F)===e(r).id&&a(ue)})}c(i,b)};D(V,i=>{M()?i(m):e(r).id==="open-in"&&e(r).submenu?i(f,1):i(o,-1)})}var R=L(V,2);{var s=i=>{var b=Qt(),N=_e(b,!0);oe(()=>{Re(b,"id",e(S)),de(N,e(r).disabledReason)}),c(i,b)};D(R,i=>{e(r).disabledReason&&i(s)})}c(p,q)}),c(be,se),et(ce)}function Yt(be,d){if(new.target)return Qe({component:Yt,...be});$e(d,!0);const ke=()=>je(N,"$installedEditors$",ne),xe=()=>je(ue,"$isWorkspaceHostLocal$",ne),[ne,we]=ot();let M=h(d,"layout",7,"list"),H=h(d,"iconWeight",7),u=h(d,"filePath",7,""),A=h(d,"workspaceId",7,""),F=h(d,"isDirectory",7,!0),Y=h(d,"onDelete",7,void 0),ce=h(d,"onArchive",7,void 0),se=h(d,"onUnarchive",7,void 0),ie=h(d,"isArchived",7,!1),p=h(d,"onClose",7,void 0),r=h(d,"showDeleteOption",7,!0),O=h(d,"showArchiveOption",7,!1),E=h(d,"showPathCopy",7,!0),U=h(d,"showFileNameCopy",7,!1),S=h(d,"showFileActions",7,!0),q=h(d,"workspaceFolderPath",7,""),W=h(d,"isDiff",7,!1),C=h(d,"isWorkspaceRoot",7,!1),V=h(d,"additionalActions",23,()=>[]),m=h(d,"showDeleteFileOption",7,!1),f=h(d,"onFileDeleted",7,void 0);const o=vt("WorkspaceActionsMenu");let R=!1;lt(()=>{R=!0});function s(){R||p()?.()}const i=gt("externalEditors"),b=dt(A());Ue(()=>{b.set(A())});const N=ft(b),ae=w(ke),ue=ht(b);let a=Me(""),n=Me(""),g=Me(!1);ct(()=>{Ve.dispatch(ut())}),Ue(()=>{u()&&A()?G("workspace:get",{id:A()}).then(t=>{if(t&&t.success&&t.data){const l=t.data,_=l.worktreePath||l.repositoryPath||l.path,j=q()==="__WORKSPACE_ROOT__"?_:q()||_;if(j){const le=j.replace(/\\/g,"/");C()?z(a,le,!0):Je(u())?z(a,u().replace(/\\/g,"/"),!0):z(a,`${le}/${u()}`.replace(/\/+/g,"/"),!0),z(n,le,!0),o.info("[WorkspaceActionsMenu] Resolved file path:",{filePath:u(),workspacePath:j,resolvedPath:e(a)})}else z(a,u()),z(n,""),l.status!=="archived"&&l.status!=="deleted"&&o.warn("[WorkspaceActionsMenu] No workspace path found:",l)}else z(a,u()),z(n,""),t?.error&&!t.error.includes("not found")&&o.warn("[WorkspaceActionsMenu] Workspace not available:",t)}).catch(t=>{z(a,u()),z(n,""),t?.message?.includes("not found")||o.error("[WorkspaceActionsMenu] Failed to resolve path:",t)}):(z(a,u()),o.info("[WorkspaceActionsMenu] Using filePath directly:",{filePath:u(),workspaceId:A()}))});async function x(){if(!e(a)){o.warn("[WorkspaceActionsMenu] No resolved path for VSCode");return}try{if(W()&&!F()){o.info("[WorkspaceActionsMenu] Opening diff in VSCode:",{resolvedPath:e(a)}),await G("vscode:open-git-diff",{filePath:e(a),workspacePath:e(n)||void 0}),s();return}let t=e(a);if(e(n))!F()&&!C()?t={folder:e(n),file:e(a)}:t=e(n);else if(!F()){const l=e(a).includes("\\")?"\\":"/",_=e(a).split(l);_.length>1&&(t={folder:_.slice(0,-1).join(l),file:e(a)})}await G("vscode:open",t),s()}catch(t){o.error("Failed to open in VSCode:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openFailed_error({name:"VS Code"}))}}async function P(){if(!e(a)){o.warn("[WorkspaceActionsMenu] No resolved path for JetBrains");return}try{let t=e(a);e(n)&&!F()?t={folder:e(n),file:e(a)}:e(n)&&(t=e(n)),await G("jetbrains:open",t),s()}catch(t){o.error("Failed to open in JetBrains:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openFailed_error({name:"JetBrains"}))}}async function I(){if(!e(a)){o.warn("[WorkspaceActionsMenu] No resolved path for Xcode");return}try{if(A()&&e(n)){Ve.dispatch(pt(A(),e(n),F()?void 0:e(a))),s();return}let t=e(a);e(n)&&!F()?t={folder:e(n),file:e(a)}:e(n)&&(t={folder:e(n)}),await G("xcode:open",t),s()}catch(t){o.error("Failed to open in Xcode:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openFailed_error({name:"Xcode"}))}}async function T(t){if(o.info("[WorkspaceActionsMenu] openInEditor called",{editorId:t.id,appName:t.appName,handlerType:t.handlerType,resolvedPath:e(a),isDirectory:F()}),!e(a)){o.warn("[WorkspaceActionsMenu] openInEditor: No resolved path, aborting");return}const l=F()?e(a):e(a).substring(0,e(a).lastIndexOf("/"));o.info(`[WorkspaceActionsMenu] openInEditor: targetPath=${l}, handlerType=${t.handlerType}`);try{switch(t.handlerType){case"finder":o.info("[WorkspaceActionsMenu] openInEditor: Invoking shell:showItemInFolder"),await G("shell:showItemInFolder",{path:l});break;case"vscode":o.info("[WorkspaceActionsMenu] openInEditor: Delegating to openInVSCode"),await x();return;case"jetbrains":o.info("[WorkspaceActionsMenu] openInEditor: Delegating to openInJetBrains"),await P();return;case"xcode":o.info("[WorkspaceActionsMenu] openInEditor: Delegating to openInXcode"),await I();return;case"generic":default:{o.info(`[WorkspaceActionsMenu] openInEditor: Invoking external-editors:open for ${t.id}`);const _=await G("external-editors:open",{editorId:t.id,path:l});o.info("[WorkspaceActionsMenu] openInEditor: external-editors:open result",_);break}}s()}catch(_){o.error(`[WorkspaceActionsMenu] Failed to open in ${t.appName}:`,_),K.error(_ instanceof Error?_.message:k.ui_workspaceActions_openFailed_error({name:t.appName}))}}async function B(){if(!e(a)){o.warn("No resolved path for openWithOther");return}try{let t=e(a);F()&&e(n)&&(t=e(n));const l=await G("external-editors:open-with-other",{path:t});if(!l?.success){l?.error!=="No application selected"&&(o.error("Failed to open with other app:",l?.error),K.error(l?.error||k.ui_workspaceActions_openOtherFailed_error()));return}s()}catch(t){o.error("Failed to open with other app:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openOtherFailed_error())}}async function Z(){if(e(a))try{await navigator.clipboard.writeText(Le(e(a))),s()}catch(t){o.error("Failed to copy path:",t)}}async function $(){if(u())try{let t=u().replace(/\\/g,"/");if(Je(u())&&e(n)){const l=e(n).endsWith("/")?e(n):e(n)+"/";t.startsWith(l)&&(t=t.slice(l.length))}await navigator.clipboard.writeText(Le(t)),s()}catch(t){o.error("Failed to copy workspace path:",t)}}async function pe(){if(u())try{const t=u().split(/[/\\]/).pop()||"";await navigator.clipboard.writeText(t),s()}catch(t){o.error("Failed to copy file name:",t)}}function ee(){Y()&&(Y()(),s())}async function te(){if(!(!A()||!e(a)||e(g))){z(g,!0);try{const t=u().split(/[/\\]/).pop()||"file",l=e(a);let _="";try{_=(await G("file:read",{path:l,workspaceId:A()}))?.data?.content??""}catch{}const j=await G("file:delete",{path:l,workspaceId:A()});if(j?.success){f()?.(),s();const le=K.warning(k.ui_workspaceActions_deletedFile_label({name:t}),At({duration:15e3,action:{label:k.ui_workspaceActions_undo_label(),onClick:async()=>{try{await G("file:write",{path:l,content:_,workspaceId:A()}),_t("file:changed",{workspaceId:A(),type:"create",filePath:l}),K.dismiss(le)}catch(Oe){o.error("[WorkspaceActionsMenu] Failed to restore file",Oe),K.error(k.ui_workspaceActions_restoreFileFailed_error())}}}}))}else K.error(k.ui_workspaceActions_deleteFileFailedDetail_error({error:j?.error||k.ui_workspaceActions_unknown_error()}))}catch(t){o.error("[WorkspaceActionsMenu] Error deleting file",t),K.error(k.ui_workspaceActions_deleteFileFailed_error())}finally{z(g,!1)}}}function fe(){ie()&&se()?(se()(),s()):!ie()&&ce()&&(ce()(),s())}const he=w(()=>{const t=[];S()&&(i&&xe()&&t.push({id:"open-in",label:k.ui_openCombo_openInApp_tooltip(),icon:Xe,onClick:()=>{},submenu:[...e(ae).map(_=>({id:`editor:${_.id}`,label:k.ui_workspaceActions_openIn_label({name:_.name}),editor:_,onClick:()=>{T(_)}})),{id:"choose-app",label:k.ui_workspaceActions_chooseApp_label(),icon:Xe,onClick:()=>{B()}}]}),E()&&t.push({id:"copy-absolute-path",label:k.ui_workspaceActions_copyAbsolutePath_label(),icon:He,disabled:!e(a),dividerBefore:t.length>0,onClick:()=>{Z()}}),E()&&!C()&&t.push({id:"copy-relative-path",label:k.ui_workspaceActions_copyRelativePath_label(),icon:He,disabled:!u(),onClick:()=>{$()}}),U()&&!F()&&t.push({id:"copy-file-name",label:k.ui_workspaceActions_copyFileName_label(),icon:kt,disabled:!u(),onClick:()=>{pe()}}));const l=_=>_.map(j=>({...j,submenu:j.submenu?l(j.submenu):void 0,onClick:()=>{j.onClick(),s()}}));return t.push(...l(V())),O()&&(ce()||se())&&t.push({id:"archive-workspace",label:ie()?k.ui_workspaceActions_unarchiveSpace_label():k.ui_workspaceActions_archiveSpace_label(),icon:ie()?wt:yt,dividerBefore:t.length>0,onClick:fe}),r()&&Y()&&t.push({id:"delete-workspace",label:k.ui_workspaceActions_deleteSpace_label(),icon:qe,variant:"destructive",dividerBefore:t.length>0,onClick:ee}),m()&&!F()&&t.push({id:"delete-file",label:k.ui_workspaceActions_deleteFile_label(),icon:qe,variant:"destructive",disabled:e(g)||!e(a)||!A(),dividerBefore:t.length>0,onClick:()=>{te()}}),t});var ve={get layout(){return M()},set layout(t="list"){M(t),v()},get iconWeight(){return H()},set iconWeight(t){H(t),v()},get filePath(){return u()},set filePath(t=""){u(t),v()},get workspaceId(){return A()},set workspaceId(t=""){A(t),v()},get isDirectory(){return F()},set isDirectory(t=!0){F(t),v()},get onDelete(){return Y()},set onDelete(t=void 0){Y(t),v()},get onArchive(){return ce()},set onArchive(t=void 0){ce(t),v()},get onUnarchive(){return se()},set onUnarchive(t=void 0){se(t),v()},get isArchived(){return ie()},set isArchived(t=!1){ie(t),v()},get onClose(){return p()},set onClose(t=void 0){p(t),v()},get showDeleteOption(){return r()},set showDeleteOption(t=!0){r(t),v()},get showArchiveOption(){return O()},set showArchiveOption(t=!1){O(t),v()},get showPathCopy(){return E()},set showPathCopy(t=!0){E(t),v()},get showFileNameCopy(){return U()},set showFileNameCopy(t=!1){U(t),v()},get showFileActions(){return S()},set showFileActions(t=!0){S(t),v()},get workspaceFolderPath(){return q()},set workspaceFolderPath(t=""){q(t),v()},get isDiff(){return W()},set isDiff(t=!1){W(t),v()},get isWorkspaceRoot(){return C()},set isWorkspaceRoot(t=!1){C(t),v()},get additionalActions(){return V()},set additionalActions(t=[]){V(t),v()},get showDeleteFileOption(){return m()},set showDeleteFileOption(t=!1){m(t),v()},get onFileDeleted(){return f()},set onFileDeleted(t=void 0){f(t),v()},$set:Ye,$on:(t,l)=>Ze(d,t,l)};{let t=w(()=>M()!=="list");me(be,{get actions(){return e(he)},get menu(){return e(t)},get iconWeight(){return H()}})}var ye=et(ve);return we(),ye}export{Yt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as p,ad as C,aE as q,M as W,k as G,U,r as j,aD as K,N as J}from"./
|
|
1
|
+
import{a as p,ad as C,aE as q,M as W,k as G,U,r as j,aD as K,N as J}from"./CqiIZBSl.js";import{g as Y}from"./CobcHKt3.js";var M="",A="",O="",D=[],b=new Map,v=p(e=>K(e,J()),"sanitizeText"),$=p(e=>{switch(e.type){case"terminal":return{...e,value:v(e.value)};case"nonterminal":return{...e,name:v(e.name)};case"sequence":return{...e,elements:e.elements.map($)};case"choice":return{...e,alternatives:e.alternatives.map($)};case"optional":return{...e,element:$(e.element)};case"repetition":return{...e,element:$(e.element),separator:e.separator?$(e.separator):void 0};case"special":return{...e,text:v(e.text)}}},"sanitizeAstNode"),Q=p(()=>{M="",A="",O="",D.length=0,b.clear(),G(),C.debug("[Railroad] Database cleared")},"clear"),P=p(e=>{M=v(e),C.debug("[Railroad] Title set:",e)},"setTitle"),L=p(()=>M,"getTitle"),Z=p(e=>{const i={...e,name:v(e.name),definition:$(e.definition),comment:e.comment?v(e.comment):void 0};C.debug("[Railroad] Adding rule:",i.name),b.has(i.name)&&C.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),D.push(i),b.set(i.name,i)},"addRule"),V=p(()=>D,"getRules"),ee=p(e=>b.get(e),"getRule"),te=p(e=>{A=v(e).replace(/^\s+/g,""),C.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),re=p(()=>A,"getAccTitle"),ie=p(e=>{O=v(e).replace(/\n\s+/g,`
|
|
2
2
|
`),C.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),ae=p(()=>O,"getAccDescription"),ne=P,oe=L,le={clear:Q,setTitle:P,getTitle:L,addRule:Z,getRules:V,getRule:ee,setAccTitle:te,getAccTitle:re,setAccDescription:ie,getAccDescription:ae,setDiagramTitle:ne,getDiagramTitle:oe},f={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},se=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,de=/^[\w "',.-]+$/,ce=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),I=p(e=>e?Object.keys(e).every(i=>i==="railroad"||ce.has(i)):!1,"isRailroadStyleOptions"),me=p(e=>e?"railroad"in e&&e.railroad?e.railroad:I(e)?e:{}:{},"extractRailroadOverrides"),he=p(e=>{if(!e||I(e))return{};const{railroad:i,svgId:n,theme:a,look:t,...r}=e;return r},"extractThemeOverrides"),m=p((e,i)=>{if(typeof e!="string")return i;const n=e.trim();return se.test(n)?n:i},"sanitizeColorValue"),X=p((e,i)=>{if(typeof e!="string")return i;const n=e.trim();return de.test(n)?n:i},"sanitizeFontFamilyValue"),F=p((e,i)=>{const n=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(n)&&n>=0?n:i},"sanitizeNumberValue"),pe=p(e=>{const i=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(i)&&i>0?i:void 0},"parseThemeFontSize"),ue=p(e=>{const i=X(e.fontFamily,f.fontFamily),n=pe(e.fontSize)??f.fontSize;return{...f,fontFamily:i,fontSize:n,terminalFill:m(e.secondBkg??e.secondaryColor,f.terminalFill),terminalStroke:m(e.secondaryBorderColor??e.lineColor,f.terminalStroke),terminalTextColor:m(e.secondaryTextColor??e.textColor,f.terminalTextColor),nonTerminalFill:m(e.mainBkg??e.background,f.nonTerminalFill),nonTerminalStroke:m(e.primaryBorderColor??e.lineColor,f.nonTerminalStroke),nonTerminalTextColor:m(e.primaryTextColor??e.textColor,f.nonTerminalTextColor),lineColor:m(e.lineColor,f.lineColor),markerFill:m(e.lineColor,f.markerFill),commentFill:m(e.labelBackground??e.tertiaryColor,f.commentFill),commentStroke:m(e.tertiaryBorderColor??e.lineColor,f.commentStroke),commentTextColor:m(e.tertiaryTextColor??e.textColor,f.commentTextColor),specialFill:m(e.tertiaryColor??e.secondaryColor,f.specialFill),specialStroke:m(e.tertiaryBorderColor??e.secondaryBorderColor,f.specialStroke),ruleNameColor:m(e.titleColor??e.textColor,f.ruleNameColor)}},"buildThemeDefaults"),E=p(e=>{const i=W(),n={...U(),...i.themeVariables??{},...he(e)},a=ue(n),t={...i.railroad??{},...me(e)};return{compactMode:t.compactMode??a.compactMode,padding:F(t.padding,a.padding),verticalSeparation:F(t.verticalSeparation,a.verticalSeparation),horizontalSeparation:F(t.horizontalSeparation,a.horizontalSeparation),arcRadius:F(t.arcRadius,a.arcRadius),fontSize:F(t.fontSize,a.fontSize),fontFamily:X(t.fontFamily,a.fontFamily),terminalFill:m(t.terminalFill,a.terminalFill),terminalStroke:m(t.terminalStroke,a.terminalStroke),terminalTextColor:m(t.terminalTextColor,a.terminalTextColor),nonTerminalFill:m(t.nonTerminalFill,a.nonTerminalFill),nonTerminalStroke:m(t.nonTerminalStroke,a.nonTerminalStroke),nonTerminalTextColor:m(t.nonTerminalTextColor,a.nonTerminalTextColor),lineColor:m(t.lineColor,a.lineColor),strokeWidth:F(t.strokeWidth,a.strokeWidth),markerFill:m(t.markerFill,a.markerFill),commentFill:m(t.commentFill,a.commentFill),commentStroke:m(t.commentStroke,a.commentStroke),commentTextColor:m(t.commentTextColor,a.commentTextColor),specialFill:m(t.specialFill,a.specialFill),specialStroke:m(t.specialStroke,a.specialStroke),ruleNameColor:m(t.ruleNameColor,a.ruleNameColor),showMarkers:t.showMarkers??a.showMarkers,markerRadius:F(t.markerRadius,a.markerRadius)}},"buildRailroadStyleOptions"),we=p(e=>{const{fontFamily:i,fontSize:n,terminalFill:a,terminalStroke:t,terminalTextColor:r,nonTerminalFill:o,nonTerminalStroke:g,nonTerminalTextColor:l,lineColor:s,strokeWidth:h,markerFill:u,commentFill:c,commentStroke:w,commentTextColor:d,specialFill:T,specialStroke:z,ruleNameColor:S}=E(e);return`
|
|
3
3
|
.railroad-diagram {
|
|
4
4
|
font-family: ${i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as r,a as s,c as e,C as t}from"./
|
|
1
|
+
import{s as r,a as s,c as e,C as t}from"./CB3E3AyJ.js";import{a as i}from"./CqiIZBSl.js";import"./CobcHKt3.js";import"./C28hhXd4.js";var u={parser:e,get db(){return new t},renderer:s,styles:r,init:i(a=>{a.class||(a.class={}),a.class.arrowMarkerAbsolute=a.arrowMarkerAbsolute},"init")};export{u as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aI as $t,O as jt,aF as Rt,K as Ft,aG as Vt,L as Wt,a as g,N as gt,x as Gt,aK as Ht,k as Ut,p as Yt}from"./D2zf67XA.js";import{c3 as Q,g as a}from"./BejAw64w.js";import{o as qt}from"./CmKTTxBW.js";import{d as Kt}from"./CvOaoHrI.js";function ot(t,i){let s;if(i===void 0)for(const c of t)c!=null&&(s<c||s===void 0&&c>=c)&&(s=c);else{let c=-1;for(let h of t)(h=i(h,++c,t))!=null&&(s<h||s===void 0&&h>=h)&&(s=h)}return s}a(ot,"max");function pt(t,i){let s;if(i===void 0)for(const c of t)c!=null&&(s>c||s===void 0&&c>=c)&&(s=c);else{let c=-1;for(let h of t)(h=i(h,++c,t))!=null&&(s>h||s===void 0&&h>=h)&&(s=h)}return s}a(pt,"min");function Z(t,i){let s=0;if(i===void 0)for(let c of t)(c=+c)&&(s+=c);else{let c=-1;for(let h of t)(h=+i(h,++c,t))&&(s+=h)}return s}a(Z,"sum");function _t(t){return t.target.depth}a(_t,"targetDepth");function vt(t){return t.depth}a(vt,"left");function bt(t,i){return i-1-t.height}a(bt,"right");function kt(t,i){return t.sourceLinks.length?t.depth:i-1}a(kt,"justify");function St(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?pt(t.sourceLinks,_t)-1:0}a(St,"center");function K(t){return function(){return t}}a(K,"constant");function at(t,i){return X(t.source,i.source)||t.index-i.index}a(at,"ascendingSourceBreadth");function lt(t,i){return X(t.target,i.target)||t.index-i.index}a(lt,"ascendingTargetBreadth");function X(t,i){return t.y0-i.y0}a(X,"ascendingBreadth");function J(t){return t.value}a(J,"value");function Lt(t){return t.index}a(Lt,"defaultId");function wt(t){return t.nodes}a(wt,"defaultNodes");function Tt(t){return t.links}a(Tt,"defaultLinks");function ct(t,i){const s=t.get(i);if(!s)throw new Error("missing: "+i);return s}a(ct,"find");function ut({nodes:t}){for(const i of t){let s=i.y0,c=s;for(const h of i.sourceLinks)h.y0=s+h.width/2,s+=h.width;for(const h of i.targetLinks)h.y1=c+h.width/2,c+=h.width}}a(ut,"computeLinkBreadths");function Et(){let t=0,i=0,s=1,c=1,h=24,v=8,d,m=Lt,o=kt,l,f,x=wt,b=Tt,p=6;function _(){const n={nodes:x.apply(null,arguments),links:b.apply(null,arguments)};return N(n),A(n),M(n),z(n),L(n),ut(n),n}a(_,"sankey"),_.update=function(n){return ut(n),n},_.nodeId=function(n){return arguments.length?(m=typeof n=="function"?n:K(n),_):m},_.nodeAlign=function(n){return arguments.length?(o=typeof n=="function"?n:K(n),_):o},_.nodeSort=function(n){return arguments.length?(l=n,_):l},_.nodeWidth=function(n){return arguments.length?(h=+n,_):h},_.nodePadding=function(n){return arguments.length?(v=d=+n,_):v},_.nodes=function(n){return arguments.length?(x=typeof n=="function"?n:K(n),_):x},_.links=function(n){return arguments.length?(b=typeof n=="function"?n:K(n),_):b},_.linkSort=function(n){return arguments.length?(f=n,_):f},_.size=function(n){return arguments.length?(t=i=0,s=+n[0],c=+n[1],_):[s-t,c-i]},_.extent=function(n){return arguments.length?(t=+n[0][0],s=+n[1][0],i=+n[0][1],c=+n[1][1],_):[[t,i],[s,c]]},_.iterations=function(n){return arguments.length?(p=+n,_):p};function N({nodes:n,links:y}){for(const[e,r]of n.entries())r.index=e,r.sourceLinks=[],r.targetLinks=[];const u=new Map(n.map((e,r)=>[m(e,r,n),e]));for(const[e,r]of y.entries()){r.index=e;let{source:k,target:S}=r;typeof k!="object"&&(k=r.source=ct(u,k)),typeof S!="object"&&(S=r.target=ct(u,S)),k.sourceLinks.push(r),S.targetLinks.push(r)}if(f!=null)for(const{sourceLinks:e,targetLinks:r}of n)e.sort(f),r.sort(f)}a(N,"computeNodeLinks");function A({nodes:n}){for(const y of n)y.value=y.fixedValue===void 0?Math.max(Z(y.sourceLinks,J),Z(y.targetLinks,J)):y.fixedValue}a(A,"computeNodeValues");function M({nodes:n}){const y=n.length;let u=new Set(n),e=new Set,r=0;for(;u.size;){for(const k of u){k.depth=r;for(const{target:S}of k.sourceLinks)e.add(S)}if(++r>y)throw new Error("circular link");u=e,e=new Set}}a(M,"computeNodeDepths");function z({nodes:n}){const y=n.length;let u=new Set(n),e=new Set,r=0;for(;u.size;){for(const k of u){k.height=r;for(const{source:S}of k.targetLinks)e.add(S)}if(++r>y)throw new Error("circular link");u=e,e=new Set}}a(z,"computeNodeHeights");function C({nodes:n}){const y=ot(n,r=>r.depth)+1,u=(s-t-h)/(y-1),e=new Array(y);for(const r of n){const k=Math.max(0,Math.min(y-1,Math.floor(o.call(null,r,y))));r.layer=k,r.x0=t+k*u,r.x1=r.x0+h,e[k]?e[k].push(r):e[k]=[r]}if(l)for(const r of e)r.sort(l);return e}a(C,"computeNodeLayers");function D(n){const y=pt(n,u=>(c-i-(u.length-1)*d)/Z(u,J));for(const u of n){let e=i;for(const r of u){r.y0=e,r.y1=e+r.value*y,e=r.y1+d;for(const k of r.sourceLinks)k.width=k.value*y}e=(c-e+d)/(u.length+1);for(let r=0;r<u.length;++r){const k=u[r];k.y0+=e*(r+1),k.y1+=e*(r+1)}w(u)}}a(D,"initializeNodeBreadths");function L(n){const y=C(n);d=Math.min(v,(c-i)/(ot(y,u=>u.length)-1)),D(y);for(let u=0;u<p;++u){const e=Math.pow(.99,u),r=Math.max(1-e,(u+1)/p);R(y,e,r),P(y,e,r)}}a(L,"computeNodeBreadths");function P(n,y,u){for(let e=1,r=n.length;e<r;++e){const k=n[e];for(const S of k){let E=0,V=0;for(const{source:Y,value:st}of S.targetLinks){let q=st*(S.layer-Y.layer);E+=O(Y,S)*q,V+=q}if(!(V>0))continue;let U=(E/V-S.y0)*y;S.y0+=U,S.y1+=U,j(S)}l===void 0&&k.sort(X),$(k,u)}}a(P,"relaxLeftToRight");function R(n,y,u){for(let e=n.length,r=e-2;r>=0;--r){const k=n[r];for(const S of k){let E=0,V=0;for(const{target:Y,value:st}of S.sourceLinks){let q=st*(Y.layer-S.layer);E+=T(S,Y)*q,V+=q}if(!(V>0))continue;let U=(E/V-S.y0)*y;S.y0+=U,S.y1+=U,j(S)}l===void 0&&k.sort(X),$(k,u)}}a(R,"relaxRightToLeft");function $(n,y){const u=n.length>>1,e=n[u];I(n,e.y0-d,u-1,y),F(n,e.y1+d,u+1,y),I(n,c,n.length-1,y),F(n,i,0,y)}a($,"resolveCollisions");function F(n,y,u,e){for(;u<n.length;++u){const r=n[u],k=(y-r.y0)*e;k>1e-6&&(r.y0+=k,r.y1+=k),y=r.y1+d}}a(F,"resolveCollisionsTopToBottom");function I(n,y,u,e){for(;u>=0;--u){const r=n[u],k=(r.y1-y)*e;k>1e-6&&(r.y0-=k,r.y1-=k),y=r.y0-d}}a(I,"resolveCollisionsBottomToTop");function j({sourceLinks:n,targetLinks:y}){if(f===void 0){for(const{source:{sourceLinks:u}}of y)u.sort(lt);for(const{target:{targetLinks:u}}of n)u.sort(at)}}a(j,"reorderNodeLinks");function w(n){if(f===void 0)for(const{sourceLinks:y,targetLinks:u}of n)y.sort(lt),u.sort(at)}a(w,"reorderLinks");function O(n,y){let u=n.y0-(n.sourceLinks.length-1)*d/2;for(const{target:e,width:r}of n.sourceLinks){if(e===y)break;u+=r+d}for(const{source:e,width:r}of y.targetLinks){if(e===n)break;u-=r}return u}a(O,"targetTop");function T(n,y){let u=y.y0-(y.targetLinks.length-1)*d/2;for(const{source:e,width:r}of y.targetLinks){if(e===n)break;u+=r+d}for(const{target:e,width:r}of n.sourceLinks){if(e===y)break;u-=r}return u}return a(T,"sourceTop"),_}a(Et,"Sankey");var ht=Math.PI,ft=2*ht,W=1e-6,Xt=ft-W;function tt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}a(tt,"Path");function mt(){return new tt}a(mt,"path");tt.prototype=mt.prototype={constructor:tt,moveTo:a(function(t,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)},"moveTo"),closePath:a(function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},"closePath"),lineTo:a(function(t,i){this._+="L"+(this._x1=+t)+","+(this._y1=+i)},"lineTo"),quadraticCurveTo:a(function(t,i,s,c){this._+="Q"+ +t+","+ +i+","+(this._x1=+s)+","+(this._y1=+c)},"quadraticCurveTo"),bezierCurveTo:a(function(t,i,s,c,h,v){this._+="C"+ +t+","+ +i+","+ +s+","+ +c+","+(this._x1=+h)+","+(this._y1=+v)},"bezierCurveTo"),arcTo:a(function(t,i,s,c,h){t=+t,i=+i,s=+s,c=+c,h=+h;var v=this._x1,d=this._y1,m=s-t,o=c-i,l=v-t,f=d-i,x=l*l+f*f;if(h<0)throw new Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=i);else if(x>W)if(!(Math.abs(f*m-o*l)>W)||!h)this._+="L"+(this._x1=t)+","+(this._y1=i);else{var b=s-v,p=c-d,_=m*m+o*o,N=b*b+p*p,A=Math.sqrt(_),M=Math.sqrt(x),z=h*Math.tan((ht-Math.acos((_+x-N)/(2*A*M)))/2),C=z/M,D=z/A;Math.abs(C-1)>W&&(this._+="L"+(t+C*l)+","+(i+C*f)),this._+="A"+h+","+h+",0,0,"+ +(f*b>l*p)+","+(this._x1=t+D*m)+","+(this._y1=i+D*o)}},"arcTo"),arc:a(function(t,i,s,c,h,v){t=+t,i=+i,s=+s,v=!!v;var d=s*Math.cos(c),m=s*Math.sin(c),o=t+d,l=i+m,f=1^v,x=v?c-h:h-c;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+o+","+l:(Math.abs(this._x1-o)>W||Math.abs(this._y1-l)>W)&&(this._+="L"+o+","+l),s&&(x<0&&(x=x%ft+ft),x>Xt?this._+="A"+s+","+s+",0,1,"+f+","+(t-d)+","+(i-m)+"A"+s+","+s+",0,1,"+f+","+(this._x1=o)+","+(this._y1=l):x>W&&(this._+="A"+s+","+s+",0,"+ +(x>=ht)+","+f+","+(this._x1=t+s*Math.cos(h))+","+(this._y1=i+s*Math.sin(h))))},"arc"),rect:a(function(t,i,s,c){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)+"h"+ +s+"v"+ +c+"h"+-s+"Z"},"rect"),toString:a(function(){return this._},"toString")};var Qt=mt;function yt(t){return a(function(){return t},"constant")}a(yt,"default");function At(t){return t[0]}a(At,"x");function Nt(t){return t[1]}a(Nt,"y");var Zt=Array.prototype.slice;function Mt(t){return t.source}a(Mt,"linkSource");function Ct(t){return t.target}a(Ct,"linkTarget");function Pt(t){var i=Mt,s=Ct,c=At,h=Nt,v=null;function d(){var m,o=Zt.call(arguments),l=i.apply(this,o),f=s.apply(this,o);if(v||(v=m=Qt()),t(v,+c.apply(this,(o[0]=l,o)),+h.apply(this,o),+c.apply(this,(o[0]=f,o)),+h.apply(this,o)),m)return v=null,m+""||null}return a(d,"link"),d.source=function(m){return arguments.length?(i=m,d):i},d.target=function(m){return arguments.length?(s=m,d):s},d.x=function(m){return arguments.length?(c=typeof m=="function"?m:yt(+m),d):c},d.y=function(m){return arguments.length?(h=typeof m=="function"?m:yt(+m),d):h},d.context=function(m){return arguments.length?(v=m??null,d):v},d}a(Pt,"link");function It(t,i,s,c,h){t.moveTo(i,s),t.bezierCurveTo(i=(i+c)/2,s,i,h,c,h)}a(It,"curveHorizontal");function Ot(){return Pt(It)}a(Ot,"linkHorizontal");function zt(t){return[t.source.x1,t.y0]}a(zt,"horizontalSource");function Bt(t){return[t.target.x0,t.y1]}a(Bt,"horizontalTarget");function Dt(){return Ot().source(zt).target(Bt)}a(Dt,"default");var dt=(function(){var t=g(function(m,o,l,f){for(l=l||{},f=m.length;f--;l[m[f]]=o);return l},"o"),i=[1,9],s=[1,10],c=[1,5,10,12],h={trace:g(a(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:g(a(function(o,l,f,x,b,p,_){var N=p.length-1;switch(b){case 7:const A=x.findOrCreateNode(p[N-4].trim().replaceAll('""','"')),M=x.findOrCreateNode(p[N-2].trim().replaceAll('""','"')),z=parseFloat(p[N].trim());x.addLink(A,M,z);break;case 8:case 9:case 11:this.$=p[N];break;case 10:this.$=p[N-1];break}},"anonymous"),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:i,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(c,[2,8]),t(c,[2,9]),{19:[1,16]},t(c,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:i,20:s},{15:18,16:7,17:8,18:i,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(c,[2,10]),{15:21,16:7,17:8,18:i,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:g(a(function(o,l){if(l.recoverable)this.trace(o);else{var f=new Error(o);throw f.hash=l,f}},"parseError"),"parseError"),parse:g(a(function(o){var l=this,f=[0],x=[],b=[null],p=[],_=this.table,N="",A=0,M=0,z=2,C=1,D=p.slice.call(arguments,1),L=Object.create(this.lexer),P={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(P.yy[R]=this.yy[R]);L.setInput(o,P.yy),P.yy.lexer=L,P.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var $=L.yylloc;p.push($);var F=L.options&&L.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function I(E){f.length=f.length-2*E,b.length=b.length-E,p.length=p.length-E}a(I,"popStack"),g(I,"popStack");function j(){var E;return E=x.pop()||L.lex()||C,typeof E!="number"&&(E instanceof Array&&(x=E,E=x.pop()),E=l.symbols_[E]||E),E}a(j,"lex"),g(j,"lex");for(var w,O,T,n,y={},u,e,r,k;;){if(O=f[f.length-1],this.defaultActions[O]?T=this.defaultActions[O]:((w===null||typeof w>"u")&&(w=j()),T=_[O]&&_[O][w]),typeof T>"u"||!T.length||!T[0]){var S="";k=[];for(u in _[O])this.terminals_[u]&&u>z&&k.push("'"+this.terminals_[u]+"'");L.showPosition?S="Parse error on line "+(A+1)+`:
|
|
1
|
+
import{aI as $t,O as jt,aF as Rt,K as Ft,aG as Vt,L as Wt,a as g,N as gt,x as Gt,aK as Ht,k as Ut,p as Yt}from"./CqiIZBSl.js";import{c3 as Q,g as a}from"./CobcHKt3.js";import{o as qt}from"./CmKTTxBW.js";import{d as Kt}from"./CvOaoHrI.js";function ot(t,i){let s;if(i===void 0)for(const c of t)c!=null&&(s<c||s===void 0&&c>=c)&&(s=c);else{let c=-1;for(let h of t)(h=i(h,++c,t))!=null&&(s<h||s===void 0&&h>=h)&&(s=h)}return s}a(ot,"max");function pt(t,i){let s;if(i===void 0)for(const c of t)c!=null&&(s>c||s===void 0&&c>=c)&&(s=c);else{let c=-1;for(let h of t)(h=i(h,++c,t))!=null&&(s>h||s===void 0&&h>=h)&&(s=h)}return s}a(pt,"min");function Z(t,i){let s=0;if(i===void 0)for(let c of t)(c=+c)&&(s+=c);else{let c=-1;for(let h of t)(h=+i(h,++c,t))&&(s+=h)}return s}a(Z,"sum");function _t(t){return t.target.depth}a(_t,"targetDepth");function vt(t){return t.depth}a(vt,"left");function bt(t,i){return i-1-t.height}a(bt,"right");function kt(t,i){return t.sourceLinks.length?t.depth:i-1}a(kt,"justify");function St(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?pt(t.sourceLinks,_t)-1:0}a(St,"center");function K(t){return function(){return t}}a(K,"constant");function at(t,i){return X(t.source,i.source)||t.index-i.index}a(at,"ascendingSourceBreadth");function lt(t,i){return X(t.target,i.target)||t.index-i.index}a(lt,"ascendingTargetBreadth");function X(t,i){return t.y0-i.y0}a(X,"ascendingBreadth");function J(t){return t.value}a(J,"value");function Lt(t){return t.index}a(Lt,"defaultId");function wt(t){return t.nodes}a(wt,"defaultNodes");function Tt(t){return t.links}a(Tt,"defaultLinks");function ct(t,i){const s=t.get(i);if(!s)throw new Error("missing: "+i);return s}a(ct,"find");function ut({nodes:t}){for(const i of t){let s=i.y0,c=s;for(const h of i.sourceLinks)h.y0=s+h.width/2,s+=h.width;for(const h of i.targetLinks)h.y1=c+h.width/2,c+=h.width}}a(ut,"computeLinkBreadths");function Et(){let t=0,i=0,s=1,c=1,h=24,v=8,d,m=Lt,o=kt,l,f,x=wt,b=Tt,p=6;function _(){const n={nodes:x.apply(null,arguments),links:b.apply(null,arguments)};return N(n),A(n),M(n),z(n),L(n),ut(n),n}a(_,"sankey"),_.update=function(n){return ut(n),n},_.nodeId=function(n){return arguments.length?(m=typeof n=="function"?n:K(n),_):m},_.nodeAlign=function(n){return arguments.length?(o=typeof n=="function"?n:K(n),_):o},_.nodeSort=function(n){return arguments.length?(l=n,_):l},_.nodeWidth=function(n){return arguments.length?(h=+n,_):h},_.nodePadding=function(n){return arguments.length?(v=d=+n,_):v},_.nodes=function(n){return arguments.length?(x=typeof n=="function"?n:K(n),_):x},_.links=function(n){return arguments.length?(b=typeof n=="function"?n:K(n),_):b},_.linkSort=function(n){return arguments.length?(f=n,_):f},_.size=function(n){return arguments.length?(t=i=0,s=+n[0],c=+n[1],_):[s-t,c-i]},_.extent=function(n){return arguments.length?(t=+n[0][0],s=+n[1][0],i=+n[0][1],c=+n[1][1],_):[[t,i],[s,c]]},_.iterations=function(n){return arguments.length?(p=+n,_):p};function N({nodes:n,links:y}){for(const[e,r]of n.entries())r.index=e,r.sourceLinks=[],r.targetLinks=[];const u=new Map(n.map((e,r)=>[m(e,r,n),e]));for(const[e,r]of y.entries()){r.index=e;let{source:k,target:S}=r;typeof k!="object"&&(k=r.source=ct(u,k)),typeof S!="object"&&(S=r.target=ct(u,S)),k.sourceLinks.push(r),S.targetLinks.push(r)}if(f!=null)for(const{sourceLinks:e,targetLinks:r}of n)e.sort(f),r.sort(f)}a(N,"computeNodeLinks");function A({nodes:n}){for(const y of n)y.value=y.fixedValue===void 0?Math.max(Z(y.sourceLinks,J),Z(y.targetLinks,J)):y.fixedValue}a(A,"computeNodeValues");function M({nodes:n}){const y=n.length;let u=new Set(n),e=new Set,r=0;for(;u.size;){for(const k of u){k.depth=r;for(const{target:S}of k.sourceLinks)e.add(S)}if(++r>y)throw new Error("circular link");u=e,e=new Set}}a(M,"computeNodeDepths");function z({nodes:n}){const y=n.length;let u=new Set(n),e=new Set,r=0;for(;u.size;){for(const k of u){k.height=r;for(const{source:S}of k.targetLinks)e.add(S)}if(++r>y)throw new Error("circular link");u=e,e=new Set}}a(z,"computeNodeHeights");function C({nodes:n}){const y=ot(n,r=>r.depth)+1,u=(s-t-h)/(y-1),e=new Array(y);for(const r of n){const k=Math.max(0,Math.min(y-1,Math.floor(o.call(null,r,y))));r.layer=k,r.x0=t+k*u,r.x1=r.x0+h,e[k]?e[k].push(r):e[k]=[r]}if(l)for(const r of e)r.sort(l);return e}a(C,"computeNodeLayers");function D(n){const y=pt(n,u=>(c-i-(u.length-1)*d)/Z(u,J));for(const u of n){let e=i;for(const r of u){r.y0=e,r.y1=e+r.value*y,e=r.y1+d;for(const k of r.sourceLinks)k.width=k.value*y}e=(c-e+d)/(u.length+1);for(let r=0;r<u.length;++r){const k=u[r];k.y0+=e*(r+1),k.y1+=e*(r+1)}w(u)}}a(D,"initializeNodeBreadths");function L(n){const y=C(n);d=Math.min(v,(c-i)/(ot(y,u=>u.length)-1)),D(y);for(let u=0;u<p;++u){const e=Math.pow(.99,u),r=Math.max(1-e,(u+1)/p);R(y,e,r),P(y,e,r)}}a(L,"computeNodeBreadths");function P(n,y,u){for(let e=1,r=n.length;e<r;++e){const k=n[e];for(const S of k){let E=0,V=0;for(const{source:Y,value:st}of S.targetLinks){let q=st*(S.layer-Y.layer);E+=O(Y,S)*q,V+=q}if(!(V>0))continue;let U=(E/V-S.y0)*y;S.y0+=U,S.y1+=U,j(S)}l===void 0&&k.sort(X),$(k,u)}}a(P,"relaxLeftToRight");function R(n,y,u){for(let e=n.length,r=e-2;r>=0;--r){const k=n[r];for(const S of k){let E=0,V=0;for(const{target:Y,value:st}of S.sourceLinks){let q=st*(Y.layer-S.layer);E+=T(S,Y)*q,V+=q}if(!(V>0))continue;let U=(E/V-S.y0)*y;S.y0+=U,S.y1+=U,j(S)}l===void 0&&k.sort(X),$(k,u)}}a(R,"relaxRightToLeft");function $(n,y){const u=n.length>>1,e=n[u];I(n,e.y0-d,u-1,y),F(n,e.y1+d,u+1,y),I(n,c,n.length-1,y),F(n,i,0,y)}a($,"resolveCollisions");function F(n,y,u,e){for(;u<n.length;++u){const r=n[u],k=(y-r.y0)*e;k>1e-6&&(r.y0+=k,r.y1+=k),y=r.y1+d}}a(F,"resolveCollisionsTopToBottom");function I(n,y,u,e){for(;u>=0;--u){const r=n[u],k=(r.y1-y)*e;k>1e-6&&(r.y0-=k,r.y1-=k),y=r.y0-d}}a(I,"resolveCollisionsBottomToTop");function j({sourceLinks:n,targetLinks:y}){if(f===void 0){for(const{source:{sourceLinks:u}}of y)u.sort(lt);for(const{target:{targetLinks:u}}of n)u.sort(at)}}a(j,"reorderNodeLinks");function w(n){if(f===void 0)for(const{sourceLinks:y,targetLinks:u}of n)y.sort(lt),u.sort(at)}a(w,"reorderLinks");function O(n,y){let u=n.y0-(n.sourceLinks.length-1)*d/2;for(const{target:e,width:r}of n.sourceLinks){if(e===y)break;u+=r+d}for(const{source:e,width:r}of y.targetLinks){if(e===n)break;u-=r}return u}a(O,"targetTop");function T(n,y){let u=y.y0-(y.targetLinks.length-1)*d/2;for(const{source:e,width:r}of y.targetLinks){if(e===n)break;u+=r+d}for(const{target:e,width:r}of n.sourceLinks){if(e===y)break;u-=r}return u}return a(T,"sourceTop"),_}a(Et,"Sankey");var ht=Math.PI,ft=2*ht,W=1e-6,Xt=ft-W;function tt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}a(tt,"Path");function mt(){return new tt}a(mt,"path");tt.prototype=mt.prototype={constructor:tt,moveTo:a(function(t,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)},"moveTo"),closePath:a(function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},"closePath"),lineTo:a(function(t,i){this._+="L"+(this._x1=+t)+","+(this._y1=+i)},"lineTo"),quadraticCurveTo:a(function(t,i,s,c){this._+="Q"+ +t+","+ +i+","+(this._x1=+s)+","+(this._y1=+c)},"quadraticCurveTo"),bezierCurveTo:a(function(t,i,s,c,h,v){this._+="C"+ +t+","+ +i+","+ +s+","+ +c+","+(this._x1=+h)+","+(this._y1=+v)},"bezierCurveTo"),arcTo:a(function(t,i,s,c,h){t=+t,i=+i,s=+s,c=+c,h=+h;var v=this._x1,d=this._y1,m=s-t,o=c-i,l=v-t,f=d-i,x=l*l+f*f;if(h<0)throw new Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=i);else if(x>W)if(!(Math.abs(f*m-o*l)>W)||!h)this._+="L"+(this._x1=t)+","+(this._y1=i);else{var b=s-v,p=c-d,_=m*m+o*o,N=b*b+p*p,A=Math.sqrt(_),M=Math.sqrt(x),z=h*Math.tan((ht-Math.acos((_+x-N)/(2*A*M)))/2),C=z/M,D=z/A;Math.abs(C-1)>W&&(this._+="L"+(t+C*l)+","+(i+C*f)),this._+="A"+h+","+h+",0,0,"+ +(f*b>l*p)+","+(this._x1=t+D*m)+","+(this._y1=i+D*o)}},"arcTo"),arc:a(function(t,i,s,c,h,v){t=+t,i=+i,s=+s,v=!!v;var d=s*Math.cos(c),m=s*Math.sin(c),o=t+d,l=i+m,f=1^v,x=v?c-h:h-c;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+o+","+l:(Math.abs(this._x1-o)>W||Math.abs(this._y1-l)>W)&&(this._+="L"+o+","+l),s&&(x<0&&(x=x%ft+ft),x>Xt?this._+="A"+s+","+s+",0,1,"+f+","+(t-d)+","+(i-m)+"A"+s+","+s+",0,1,"+f+","+(this._x1=o)+","+(this._y1=l):x>W&&(this._+="A"+s+","+s+",0,"+ +(x>=ht)+","+f+","+(this._x1=t+s*Math.cos(h))+","+(this._y1=i+s*Math.sin(h))))},"arc"),rect:a(function(t,i,s,c){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)+"h"+ +s+"v"+ +c+"h"+-s+"Z"},"rect"),toString:a(function(){return this._},"toString")};var Qt=mt;function yt(t){return a(function(){return t},"constant")}a(yt,"default");function At(t){return t[0]}a(At,"x");function Nt(t){return t[1]}a(Nt,"y");var Zt=Array.prototype.slice;function Mt(t){return t.source}a(Mt,"linkSource");function Ct(t){return t.target}a(Ct,"linkTarget");function Pt(t){var i=Mt,s=Ct,c=At,h=Nt,v=null;function d(){var m,o=Zt.call(arguments),l=i.apply(this,o),f=s.apply(this,o);if(v||(v=m=Qt()),t(v,+c.apply(this,(o[0]=l,o)),+h.apply(this,o),+c.apply(this,(o[0]=f,o)),+h.apply(this,o)),m)return v=null,m+""||null}return a(d,"link"),d.source=function(m){return arguments.length?(i=m,d):i},d.target=function(m){return arguments.length?(s=m,d):s},d.x=function(m){return arguments.length?(c=typeof m=="function"?m:yt(+m),d):c},d.y=function(m){return arguments.length?(h=typeof m=="function"?m:yt(+m),d):h},d.context=function(m){return arguments.length?(v=m??null,d):v},d}a(Pt,"link");function It(t,i,s,c,h){t.moveTo(i,s),t.bezierCurveTo(i=(i+c)/2,s,i,h,c,h)}a(It,"curveHorizontal");function Ot(){return Pt(It)}a(Ot,"linkHorizontal");function zt(t){return[t.source.x1,t.y0]}a(zt,"horizontalSource");function Bt(t){return[t.target.x0,t.y1]}a(Bt,"horizontalTarget");function Dt(){return Ot().source(zt).target(Bt)}a(Dt,"default");var dt=(function(){var t=g(function(m,o,l,f){for(l=l||{},f=m.length;f--;l[m[f]]=o);return l},"o"),i=[1,9],s=[1,10],c=[1,5,10,12],h={trace:g(a(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:g(a(function(o,l,f,x,b,p,_){var N=p.length-1;switch(b){case 7:const A=x.findOrCreateNode(p[N-4].trim().replaceAll('""','"')),M=x.findOrCreateNode(p[N-2].trim().replaceAll('""','"')),z=parseFloat(p[N].trim());x.addLink(A,M,z);break;case 8:case 9:case 11:this.$=p[N];break;case 10:this.$=p[N-1];break}},"anonymous"),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:i,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(c,[2,8]),t(c,[2,9]),{19:[1,16]},t(c,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:i,20:s},{15:18,16:7,17:8,18:i,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(c,[2,10]),{15:21,16:7,17:8,18:i,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:g(a(function(o,l){if(l.recoverable)this.trace(o);else{var f=new Error(o);throw f.hash=l,f}},"parseError"),"parseError"),parse:g(a(function(o){var l=this,f=[0],x=[],b=[null],p=[],_=this.table,N="",A=0,M=0,z=2,C=1,D=p.slice.call(arguments,1),L=Object.create(this.lexer),P={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(P.yy[R]=this.yy[R]);L.setInput(o,P.yy),P.yy.lexer=L,P.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var $=L.yylloc;p.push($);var F=L.options&&L.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function I(E){f.length=f.length-2*E,b.length=b.length-E,p.length=p.length-E}a(I,"popStack"),g(I,"popStack");function j(){var E;return E=x.pop()||L.lex()||C,typeof E!="number"&&(E instanceof Array&&(x=E,E=x.pop()),E=l.symbols_[E]||E),E}a(j,"lex"),g(j,"lex");for(var w,O,T,n,y={},u,e,r,k;;){if(O=f[f.length-1],this.defaultActions[O]?T=this.defaultActions[O]:((w===null||typeof w>"u")&&(w=j()),T=_[O]&&_[O][w]),typeof T>"u"||!T.length||!T[0]){var S="";k=[];for(u in _[O])this.terminals_[u]&&u>z&&k.push("'"+this.terminals_[u]+"'");L.showPosition?S="Parse error on line "+(A+1)+`:
|
|
2
2
|
`+L.showPosition()+`
|
|
3
3
|
Expecting `+k.join(", ")+", got '"+(this.terminals_[w]||w)+"'":S="Parse error on line "+(A+1)+": Unexpected "+(w==C?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(S,{text:L.match,token:this.terminals_[w]||w,line:L.yylineno,loc:$,expected:k})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+w);switch(T[0]){case 1:f.push(w),b.push(L.yytext),p.push(L.yylloc),f.push(T[1]),w=null,M=L.yyleng,N=L.yytext,A=L.yylineno,$=L.yylloc;break;case 2:if(e=this.productions_[T[1]][1],y.$=b[b.length-e],y._$={first_line:p[p.length-(e||1)].first_line,last_line:p[p.length-1].last_line,first_column:p[p.length-(e||1)].first_column,last_column:p[p.length-1].last_column},F&&(y._$.range=[p[p.length-(e||1)].range[0],p[p.length-1].range[1]]),n=this.performAction.apply(y,[N,M,A,P.yy,T[1],b,p].concat(D)),typeof n<"u")return n;e&&(f=f.slice(0,-1*e*2),b=b.slice(0,-1*e),p=p.slice(0,-1*e)),f.push(this.productions_[T[1]][0]),b.push(y.$),p.push(y._$),r=_[f[f.length-2]][f[f.length-1]],f.push(r);break;case 3:return!0}}return!0},"parse"),"parse")},v=(function(){var m={EOF:1,parseError:g(a(function(l,f){if(this.yy.parser)this.yy.parser.parseError(l,f);else throw new Error(l)},"parseError"),"parseError"),setInput:g(function(o,l){return this.yy=l||this.yy||{},this._input=o,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:g(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var l=o.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:g(function(o){var l=o.length,f=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var x=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),f.length-1&&(this.yylineno-=f.length-1);var b=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:f?(f.length===x.length?this.yylloc.first_column:0)+x[x.length-f.length].length-f[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:g(function(){return this._more=!0,this},"more"),reject:g(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:g(function(o){this.unput(this.match.slice(o))},"less"),pastInput:g(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:g(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:g(function(){var o=this.pastInput(),l=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as b}from"./
|
|
1
|
+
import{x as b}from"./P80hEEPK.js";const u=/^[A-Za-z0-9._:-]{1,128}$/,C="connections.manage",l="";class f extends Error{constructor(t,e){super(t),this.status=e,this.name="HostRequestError"}}function d(n){return typeof n=="string"&&n.startsWith("/")&&!n.startsWith("//")}function h(){const n=globalThis.__INTENT_RUNTIME_CONFIG__;if(!n)return null;const{backendId:t,connectionsUrl:e,eventsUrl:o,hostCapabilities:s}=n,r=Array.isArray(s)&&s.includes(C),a=t===null&&r;return!a&&(typeof t!="string"||!u.test(t))||!d(e)?null:{backendId:a?null:t,connectionsUrl:e,eventsUrl:d(o)?o:null,canManageConnections:r,tailcatAvailable:n.tailcatAvailable===!0}}function g(){return b()?null:h()}function E(){const n=g();return n?.canManageConnections?n:null}function w(n,t){const e=n.backendId??l;return{...t,activeId:t.activeId??l,windowBackendId:e}}async function H(n,t=fetch){const e=n.backendId===null?n.connectionsUrl:`${n.connectionsUrl}?backend=${encodeURIComponent(n.backendId)}`,o=await t(e,{credentials:"same-origin",cache:"no-store"});if(!o.ok)throw new f(`connections list failed: HTTP ${o.status}`,o.status);return w(n,await o.json())}function I(n,t=(s,r,a)=>globalThis.open?.(s,r,a),e=s=>globalThis.location?.assign(s),o=!1){if(!u.test(n))throw new Error(`invalid connection id: ${n}`);const s=`/?backend=${encodeURIComponent(n)}`;return o?e(s):t(s,"_blank","noopener"),{status:"opened",id:n}}function i(n,t,e){if(!u.test(t))throw new Error(`invalid connection id: ${t}`);return`${n.connectionsUrl}/${encodeURIComponent(t)}${e?`/${e}`:""}`}async function c(n,t,e,o){const s=await n(e,{method:t,credentials:"same-origin",cache:"no-store",...o===void 0?{}:{headers:{"Content-Type":"application/json"},body:JSON.stringify(o)}});if(!s.ok)throw new f(`connections request failed: HTTP ${s.status}`,s.status);return await s.json()}async function k(n,t,e=fetch){const o=await c(e,"POST",`${n.connectionsUrl}/capture-fingerprint`,{host:t.host,port:t.port,...t.token?{token:t.token}:{}});if(!o.ok)throw new Error(o.error??"fingerprint capture failed");return{fingerprint:o.fingerprint,tokenValid:o.tokenValid,...o.statusCode!==void 0?{statusCode:o.statusCode}:{}}}function y(n,t,e=fetch){const{syncExcluded:o,...s}=t;return c(e,"POST",n.connectionsUrl,s)}function A(n,t,e=fetch){const{id:o,syncExcluded:s,...r}=t;return c(e,"PATCH",i(n,o),r)}function _(n,t,e=fetch){const{id:o,...s}=t;return c(e,"POST",i(n,o,"test"),s)}function N(n,t,e=fetch){const{id:o,...s}=t;return c(e,"POST",i(n,o,"rotate-secret"),s)}function P(n,t,e=fetch){return c(e,"GET",i(n,t,"tunnel"))}function U(n,t,e=fetch){return c(e,"PUT",i(n,t.id,"tunnel"),{enabled:t.enabled})}async function $(n,t,e=fetch){return await c(e,"DELETE",i(n,t),{}),{id:t}}function T(n){return{manageConnections:n.canManageConnections,backendBound:n.backendId!==null,tailcatAvailable:n.tailcatAvailable}}function O(n){const t=g(),e=n?.connections;if(!t||e&&"browserHost"in e)return n;const o={...e,browserHost:T(t)};return{...n,connections:o}}export{f as H,y as a,w as b,k as c,$ as d,P as e,H as f,h as g,E as h,g as i,T as j,I as o,N as r,U as s,_ as t,A as u,O as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h}from"./
|
|
1
|
+
import{c as h}from"./DgO-InVL.js";import{C as c,H as u,d as p,D as m,R as f,g as _,h as w,b as k,F as v,a as D,S as P,c as R,f as I}from"./iCHr0TgO.js";import{e as H,i as U,j as y,t as T,k as x}from"./iCHr0TgO.js";import{l as s}from"./BYCiS1o9.js";const C=120*1e3;class A{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>C&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=h({moduleId:"vs/language/css/cssWorker",createWorker:()=>new Worker(new URL("/app/immutable/workers/css.worker-08QwUeFR.js",import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(a=>{e=a}).then(a=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(a=>e)}}function E(o){const n=[],e=[],a=new A(o);n.push(a);const r=(...t)=>a.getLanguageServiceWorker(...t);function l(){const{languageId:t,modeConfiguration:i}=o;g(e),i.completionItems&&e.push(s.registerCompletionItemProvider(t,new c(r,["/","-",":"]))),i.hovers&&e.push(s.registerHoverProvider(t,new u(r))),i.documentHighlights&&e.push(s.registerDocumentHighlightProvider(t,new p(r))),i.definitions&&e.push(s.registerDefinitionProvider(t,new m(r))),i.references&&e.push(s.registerReferenceProvider(t,new f(r))),i.documentSymbols&&e.push(s.registerDocumentSymbolProvider(t,new _(r))),i.rename&&e.push(s.registerRenameProvider(t,new w(r))),i.colors&&e.push(s.registerColorProvider(t,new k(r))),i.foldingRanges&&e.push(s.registerFoldingRangeProvider(t,new v(r))),i.diagnostics&&e.push(new D(t,r,o.onDidChange)),i.selectionRanges&&e.push(s.registerSelectionRangeProvider(t,new P(r))),i.documentFormattingEdits&&e.push(s.registerDocumentFormattingEditProvider(t,new R(r))),i.documentRangeFormattingEdits&&e.push(s.registerDocumentRangeFormattingEditProvider(t,new I(r)))}return l(),n.push(d(e)),d(n)}function d(o){return{dispose:()=>g(o)}}function g(o){for(;o.length;)o.pop().dispose()}export{c as CompletionAdapter,m as DefinitionAdapter,D as DiagnosticsAdapter,k as DocumentColorAdapter,R as DocumentFormattingEditProvider,p as DocumentHighlightAdapter,H as DocumentLinkAdapter,I as DocumentRangeFormattingEditProvider,_ as DocumentSymbolAdapter,v as FoldingRangeAdapter,u as HoverAdapter,f as ReferenceAdapter,w as RenameAdapter,P as SelectionRangeAdapter,A as WorkerManager,U as fromPosition,y as fromRange,E as setupMode,T as toRange,x as toTextEdit};
|
|
@@ -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"./C9hosAov.js";import{p}from"./CLCbFeGH.js";import{f as t,bC as o}from"./CobcHKt3.js";import{M as u,b as c}from"./CBeBcrFe.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=v(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"),v=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"),y=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(y(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};
|