@intent-hq/web 2.289.0 → 2.290.1
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/{PZzdtHEH.js → -8bl9H3j.js} +1 -1
- package/web/app/immutable/chunks/{OJ1L_5qb.js → 1H7i14Jq.js} +1 -1
- package/web/app/immutable/chunks/{iaCxlE6C.js → 1NjHIsWL.js} +1 -1
- package/web/app/immutable/chunks/{BCvaSKdY.js → 1yYrVIcH.js} +1 -1
- package/web/app/immutable/chunks/{BMtE4svi.js → 2zyiBICC.js} +1 -1
- package/web/app/immutable/chunks/{CLqc4Ghh.js → 4cIwmSuD.js} +4 -4
- package/web/app/immutable/chunks/{DLOCpz5P.js → 7-JV_YuQ.js} +1 -1
- package/web/app/immutable/chunks/{CbsrOoqP.js → 86pQg5ba.js} +1 -1
- package/web/app/immutable/chunks/{h6LfsnBK.js → 8DpW-FUQ.js} +1 -1
- package/web/app/immutable/chunks/{Dtny-3OT.js → 8ZymRjAb.js} +1 -1
- package/web/app/immutable/chunks/{D3NFuU4L.js → B05yODFj.js} +1 -1
- package/web/app/immutable/chunks/{BSmsRx9G.js → B0Prdf3M.js} +1 -1
- package/web/app/immutable/chunks/{CVAEsdqc.js → B1uw4k3u.js} +1 -1
- package/web/app/immutable/chunks/{CM-42I4J.js → B4ARXgVr.js} +1 -1
- package/web/app/immutable/chunks/{DGPqSlym.js → B7NNbItI.js} +1 -1
- package/web/app/immutable/chunks/{gbA3Idh4.js → B7WsW6mB.js} +6 -6
- 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/{BFapXlF9.js → BB-rM-bv.js} +1 -1
- package/web/app/immutable/chunks/{CWwfm7Sc.js → BBBIudrX.js} +1 -1
- package/web/app/immutable/chunks/{BraZvQcb.js → BCqLW1sk.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/{BNAxChIn.js → BFxAoZrN.js} +3 -3
- package/web/app/immutable/chunks/{CkLmMloL.js → BIRD3ESe.js} +1 -1
- package/web/app/immutable/chunks/{bJKJaeMz.js → BJarmryO.js} +1 -1
- package/web/app/immutable/chunks/{3oF_cfgL.js → BJiYgQMg.js} +1 -1
- package/web/app/immutable/chunks/{CF6Nr1sW.js → BKANDKfj.js} +1 -1
- package/web/app/immutable/chunks/{DmLTqLLV.js → BLV57oiS.js} +1 -1
- package/web/app/immutable/chunks/{FBhib8LQ.js → BL_sVoge.js} +1 -1
- package/web/app/immutable/chunks/{CxWK8xnP.js → BLwubCUL.js} +1 -1
- package/web/app/immutable/chunks/{CBLL08sm.js → BME2e0zx.js} +1 -1
- package/web/app/immutable/chunks/{CF8O1pc4.js → BMI9BPVJ.js} +1 -1
- package/web/app/immutable/chunks/{l18fXbdG.js → BOrf8iaF.js} +2 -2
- package/web/app/immutable/chunks/{BlUnlsOK.js → BPomlxD-.js} +51 -51
- package/web/app/immutable/chunks/{CSSOys25.js → BQAjYSZn.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/{B5NmEYUa.js → BUfDnmlv.js} +1 -1
- package/web/app/immutable/chunks/{BulSFF-a.js → BVf1OKWM.js} +1 -1
- package/web/app/immutable/chunks/{DFm7ZzVD.js → BVkABTn_.js} +1 -1
- package/web/app/immutable/chunks/{a305huOc.js → BVxQ-eUq.js} +1 -1
- package/web/app/immutable/chunks/{CArnO8CD.js → BYCiS1o9.js} +3 -3
- package/web/app/immutable/chunks/{DXRlnb97.js → BZML3c09.js} +1 -1
- package/web/app/immutable/chunks/{DVs38eSu.js → BZrGNaMY.js} +4 -4
- package/web/app/immutable/chunks/{Hai9JAty.js → B_ZXH4Bf.js} +1 -1
- package/web/app/immutable/chunks/{Df7C6745.js → Ba-TS5vR.js} +1 -1
- package/web/app/immutable/chunks/{-Vbe26cE.js → BcidqQDh.js} +1 -1
- package/web/app/immutable/chunks/{DZ1zC9TP.js → BffyNBKQ.js} +1 -1
- package/web/app/immutable/chunks/{C2WwiwWs.js → Bfq2PcjA.js} +1 -1
- package/web/app/immutable/chunks/{BzLM7oPX.js → BgerNePf.js} +1 -1
- package/web/app/immutable/chunks/{Mw1KbVyQ.js → BiCS5wL3.js} +1 -1
- package/web/app/immutable/chunks/{DswUZY33.js → BiFqz5BS.js} +1 -1
- package/web/app/immutable/chunks/{CKeHkFGu.js → BjBW4i6w.js} +1 -1
- package/web/app/immutable/chunks/{13AmrEpa.js → BjJW_Stw.js} +1 -1
- package/web/app/immutable/chunks/{DFAvh56i.js → Bjha4wuc.js} +1 -1
- 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/{DpDRAdy2.js → BmwLKx4A.js} +2 -2
- 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/{BYk1ULDt.js → BoHfk-5t.js} +3 -3
- package/web/app/immutable/chunks/{CDT1G70y.js → BpOXeNkx.js} +1 -1
- package/web/app/immutable/chunks/{Cs8DWwEN.js → BpxCnE9X.js} +2 -2
- 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/{BR8wCCqs.js → BsqGui1M.js} +1 -1
- package/web/app/immutable/chunks/{C6HNr-1J.js → BssOKdq0.js} +1 -1
- package/web/app/immutable/chunks/{DBAVKOs3.js → BtVjR42p.js} +1 -1
- package/web/app/immutable/chunks/{rJ19sxRo.js → BvtLLvEi.js} +1 -1
- package/web/app/immutable/chunks/{DmRzBB2M.js → BvypOCfp.js} +1 -1
- package/web/app/immutable/chunks/{BuNDx2oQ.js → BwDb1jNr.js} +1 -1
- package/web/app/immutable/chunks/{n0AniKod.js → BxE5JflA.js} +1 -1
- package/web/app/immutable/chunks/{DyyrFzIP.js → Byu82QgX.js} +1 -1
- package/web/app/immutable/chunks/{BlBEj3oF.js → C-BS-coA.js} +2 -2
- package/web/app/immutable/chunks/{D1yGasR4.js → C0fOehTZ.js} +1 -1
- package/web/app/immutable/chunks/{CHwD9QHP.js → C1H4_ssx.js} +1 -1
- package/web/app/immutable/chunks/{BpZ--9ga.js → C1vv_LrD.js} +1 -1
- package/web/app/immutable/chunks/{B-CmW-Rt.js → C4hboqwm.js} +1 -1
- package/web/app/immutable/chunks/{CylTfPZk.js → C5qvCE4M.js} +1 -1
- package/web/app/immutable/chunks/{C5paQyk5.js → C6rJFcL9.js} +1 -1
- package/web/app/immutable/chunks/{DxrXzX_M.js → C7KdCylX.js} +3 -3
- package/web/app/immutable/chunks/{B2-XfPcN.js → C7mmIZCH.js} +1 -1
- package/web/app/immutable/chunks/{Q09YKVwy.js → C94wEIre.js} +1 -1
- package/web/app/immutable/chunks/{DZC7segB.js → C9AcsTi0.js} +1 -1
- package/web/app/immutable/chunks/{CUpXgpcF.js → C9tAiYT0.js} +1 -1
- package/web/app/immutable/chunks/{CwzDLq3o.js → CAaAIfXJ.js} +1 -1
- package/web/app/immutable/chunks/{CvHIPf4O.js → CBeBcrFe.js} +1 -1
- package/web/app/immutable/chunks/{gdAnsrdj.js → CE7ZtQHh.js} +1 -1
- package/web/app/immutable/chunks/{DjyFgI1x.js → CEAZJuV2.js} +1 -1
- package/web/app/immutable/chunks/{C_drUQi2.js → CECSRFPp.js} +1 -1
- package/web/app/immutable/chunks/{CnypGHrl.js → CETsvapu.js} +1 -1
- package/web/app/immutable/chunks/{Co-DDbT2.js → CFHzcj7N.js} +1 -1
- package/web/app/immutable/chunks/{Db3BHa7z.js → CG-2eU4S.js} +1 -1
- package/web/app/immutable/chunks/{CN0OjCVu.js → CJcw2WA-.js} +1 -1
- package/web/app/immutable/chunks/{ClIwbXJq.js → CKuYPUu0.js} +1 -1
- package/web/app/immutable/chunks/{C0MRkgn4.js → CN15iJiw.js} +1 -1
- package/web/app/immutable/chunks/{Ev7NI-4B.js → CNWeExHy.js} +1 -1
- package/web/app/immutable/chunks/{rN1DOgEJ.js → CPezNx23.js} +1 -1
- package/web/app/immutable/chunks/{DFBRG5f3.js → CQk4XJFx.js} +1 -1
- package/web/app/immutable/chunks/{CvUXvU-2.js → CRmUlrc9.js} +1 -1
- package/web/app/immutable/chunks/{Diyq2-7-.js → CSJ0J5sC.js} +1 -1
- package/web/app/immutable/chunks/{BiN4BvQG.js → CT1GHsTn.js} +1 -1
- package/web/app/immutable/chunks/{JWXbB6B6.js → CT1fMnWm.js} +1 -1
- package/web/app/immutable/chunks/{DYrNCBqG.js → CU1drimT.js} +1 -1
- package/web/app/immutable/chunks/{DVFKqUgb.js → CU1rgNTy.js} +1 -1
- package/web/app/immutable/chunks/{BETowprU.js → CVQnuBUY.js} +1 -1
- package/web/app/immutable/chunks/{DsoGIaMF.js → CW92V9X1.js} +1 -1
- package/web/app/immutable/chunks/{DkiAPJ2W.js → CXwlKBiL.js} +1 -1
- package/web/app/immutable/chunks/{iNzcdJYX.js → CYEJX57C.js} +1 -1
- package/web/app/immutable/chunks/{B0vB3nPK.js → CYH5KIcO.js} +1 -1
- package/web/app/immutable/chunks/{y_-PH3Cn.js → CZiA6iY8.js} +1 -1
- package/web/app/immutable/chunks/{CjPlYTON.js → C_dZqjuM.js} +1 -1
- package/web/app/immutable/chunks/{D3Xty9Im.js → Car8OZH2.js} +1 -1
- package/web/app/immutable/chunks/{5bL3DJj7.js → CaxwpItd.js} +1 -1
- package/web/app/immutable/chunks/{rZp3PWdq.js → CbVYqaBE.js} +1 -1
- package/web/app/immutable/chunks/{CtGY50_e.js → Ccxm74iK.js} +1 -1
- package/web/app/immutable/chunks/CfV9aH5z.js +4 -0
- package/web/app/immutable/chunks/CgPr4hs2.js +1 -0
- package/web/app/immutable/chunks/{DktdylrS.js → Ch36jfts.js} +1 -1
- package/web/app/immutable/chunks/{T4V8F4hM.js → ChRkiYOJ.js} +1 -1
- package/web/app/immutable/chunks/{BdqSZQx_.js → CivlAwc7.js} +1 -1
- package/web/app/immutable/chunks/CiyXcVwM.js +1 -0
- package/web/app/immutable/chunks/{YvM9JcXX.js → CjUzEyu9.js} +1 -1
- package/web/app/immutable/chunks/{D2ImsQzb.js → CkmJMnjs.js} +1 -1
- package/web/app/immutable/chunks/{Da9J2JX1.js → ClHM0gRH.js} +1 -1
- package/web/app/immutable/chunks/{B5xbJc9W.js → Clm-X79i.js} +1 -1
- package/web/app/immutable/chunks/{D1LasNTA.js → Clusycua.js} +1 -1
- package/web/app/immutable/chunks/{CBolvbXG.js → Cm8yeV3M.js} +1 -1
- package/web/app/immutable/chunks/{CDbeyeCP.js → Cmd7Q9e2.js} +2 -2
- 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/{NUHg8tud.js → CokCeQxx.js} +1 -1
- package/web/app/immutable/chunks/{rjfpoS8M.js → CpWIfz5C.js} +1 -1
- package/web/app/immutable/chunks/{D4kGqGBk.js → CpZlxc5c.js} +1 -1
- package/web/app/immutable/chunks/{O81B-H5P.js → Cq8w3ES-.js} +1 -1
- package/web/app/immutable/chunks/{CJT0k-x3.js → Cqsec-yx.js} +1 -1
- package/web/app/immutable/chunks/{DIiXUVIr.js → Cro1ceUg.js} +3 -3
- package/web/app/immutable/chunks/{3CggOKng.js → Cs1191LV.js} +1 -1
- 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/{CemNgvNI.js → Cv0HcHak.js} +1 -1
- package/web/app/immutable/chunks/{DmeSNHl2.js → CvNRUlp4.js} +1 -1
- package/web/app/immutable/chunks/{Cb7Fwhyl.js → CvXnZ-8G.js} +1 -1
- package/web/app/immutable/chunks/{Bs0OTveI.js → CvlQZpOV.js} +1 -1
- package/web/app/immutable/chunks/{u8zBWO7U.js → Cx9nrScM.js} +1 -1
- package/web/app/immutable/chunks/{0n1_sqb5.js → CzeJNa_N.js} +1 -1
- package/web/app/immutable/chunks/{C3U610Va.js → D-USmFEk.js} +1 -1
- package/web/app/immutable/chunks/{DqaJW-PO.js → D-Zd1oaK.js} +1 -1
- package/web/app/immutable/chunks/{e4k4F_fF.js → D-nuXMbz.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/{1kMmRwXf.js → D226daYk.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/{BDZGpmAg.js → D4KaTH-V.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/{KrEm5AbS.js → D6rPVTS4.js} +1 -1
- package/web/app/immutable/chunks/{BcXGciCG.js → D7Efqf9l.js} +1 -1
- package/web/app/immutable/chunks/{C7cZaxG3.js → D7RRnWwO.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/{CamLX2Sb.js → DC4NL8YS.js} +1 -1
- package/web/app/immutable/chunks/{f34gPxAx.js → DCpi1ytG.js} +1 -1
- package/web/app/immutable/chunks/{CG_nXeYa.js → DD8c9eUJ.js} +1 -1
- package/web/app/immutable/chunks/{C7FfDPRZ.js → DFT4lZL_.js} +1 -1
- package/web/app/immutable/chunks/{Bb6J6sjQ.js → DG2MKLyJ.js} +1 -1
- package/web/app/immutable/chunks/{BTurlMFD.js → DG9YtBZO.js} +1 -1
- package/web/app/immutable/chunks/{Daq0t0IO.js → DHVVvfGv.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/{BzBOPxuP.js → DK1Nq2tK.js} +1 -1
- package/web/app/immutable/chunks/{CBiBtnBM.js → DKDZTli0.js} +1 -1
- package/web/app/immutable/chunks/{C26KoPDI.js → DKs113YH.js} +1 -1
- package/web/app/immutable/chunks/{DfacsTaO.js → DNWjwuC6.js} +1 -1
- package/web/app/immutable/chunks/{hcRUxON5.js → DPRoG8qR.js} +1 -1
- package/web/app/immutable/chunks/{RKSEQ7So.js → DQXapDyu.js} +1 -1
- package/web/app/immutable/chunks/{COR1ZgMB.js → DQcbLXPp.js} +1 -1
- package/web/app/immutable/chunks/{CW9o0MGu.js → DR8eV9N8.js} +1 -1
- package/web/app/immutable/chunks/{iF8lSM38.js → DTTAQR6U.js} +1 -1
- package/web/app/immutable/chunks/{D1dtTkDE.js → DUEahgsi.js} +1 -1
- package/web/app/immutable/chunks/{CNySgneH.js → DV1BB3if.js} +1 -1
- package/web/app/immutable/chunks/{DerqLelD.js → DVGE4E_C.js} +1 -1
- package/web/app/immutable/chunks/{CK6izZOP.js → DVOiawfp.js} +2 -2
- package/web/app/immutable/chunks/{Bg4MuTWX.js → DVbZ5oZ8.js} +1 -1
- package/web/app/immutable/chunks/{Bqfueq_D.js → DWLJSPfW.js} +1 -1
- package/web/app/immutable/chunks/{BGCd17XA.js → DX09WtDr.js} +1 -1
- package/web/app/immutable/chunks/{Bg5ADDrW.js → DX8x4w_C.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/{CEuCjemc.js → DZyz0CaB.js} +1 -1
- package/web/app/immutable/chunks/{YSaBP0Ch.js → DaJsXhcE.js} +1 -1
- package/web/app/immutable/chunks/{BAhFveyJ.js → Darv-bZj.js} +1 -1
- package/web/app/immutable/chunks/{Db1mweH6.js → DbD4A30t.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/{CIkVHIT3.js → Df8Itx2l.js} +1 -1
- package/web/app/immutable/chunks/{12UHR0Xn.js → DfKemw6I.js} +1 -1
- package/web/app/immutable/chunks/{1KqMO8DA.js → Dfw44tJF.js} +1 -1
- package/web/app/immutable/chunks/{DVuTL7Ze.js → DgO-InVL.js} +1 -1
- package/web/app/immutable/chunks/{zIOd8jG8.js → Dj0Fo3FR.js} +1 -1
- package/web/app/immutable/chunks/{D_OjFNQH.js → DknXCwG-.js} +1 -1
- package/web/app/immutable/chunks/{TjYngI-X.js → Dl6wwL68.js} +1 -1
- package/web/app/immutable/chunks/{D8u-TTw-.js → DlcwslMx.js} +1 -1
- package/web/app/immutable/chunks/{IjnClLwt.js → Dlfu53Jt.js} +1 -1
- package/web/app/immutable/chunks/{DZFxh2Hz.js → DlqxHCQ7.js} +1 -1
- package/web/app/immutable/chunks/{CS4ChtR_.js → DoSGU0je.js} +1 -1
- package/web/app/immutable/chunks/{D91osLQe.js → DpDR6yW3.js} +1 -1
- package/web/app/immutable/chunks/{V68rWC50.js → DqNPF1Kv.js} +1 -1
- package/web/app/immutable/chunks/{BppZZR6X.js → DsEt8_PJ.js} +1 -1
- package/web/app/immutable/chunks/{Dy2xsFvf.js → Dt4GGs4d.js} +1 -1
- package/web/app/immutable/chunks/{D8C52zH9.js → Dug6137y.js} +1 -1
- package/web/app/immutable/chunks/{Cd0IJoag.js → DxGgdCHB.js} +1 -1
- package/web/app/immutable/chunks/{B7y27fC-.js → Dynz04e1.js} +1 -1
- package/web/app/immutable/chunks/{DwxN7Wdi.js → DzbhMJUu.js} +1 -1
- package/web/app/immutable/chunks/{lM1_eh6C.js → FvORToMl.js} +1 -1
- package/web/app/immutable/chunks/{C2eeslGl.js → GIAV4N10.js} +1 -1
- package/web/app/immutable/chunks/{cv4xg7k0.js → HK2fZqOM.js} +1 -1
- package/web/app/immutable/chunks/{D6QA9x6A.js → IorbBySt.js} +1 -1
- package/web/app/immutable/chunks/{BiMGq9Z7.js → IuNsAsbW.js} +1 -1
- package/web/app/immutable/chunks/{wI7zMgx-.js → Kr-Hl0sp.js} +1 -1
- package/web/app/immutable/chunks/{DchjGXey.js → LZ5jXWXv.js} +1 -1
- package/web/app/immutable/chunks/{BejAw64w.js → LhLTjc8B.js} +6 -6
- package/web/app/immutable/chunks/{D1zpsxCF.js → LwsqbQ0C.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/{P-01BLZ6.js → Ps9iRbKd.js} +3 -3
- package/web/app/immutable/chunks/{BelvDbq4.js → Q0BLEqss.js} +3 -3
- package/web/app/immutable/chunks/{B7g53bMx.js → Qe1_731c.js} +1 -1
- package/web/app/immutable/chunks/{CsgZCzi1.js → RiB0F36z.js} +3 -3
- package/web/app/immutable/chunks/RmgPTyFU.js +1 -0
- package/web/app/immutable/chunks/{CyLm5JOs.js → SEnfPRC9.js} +1 -1
- package/web/app/immutable/chunks/{C-jH8s9r.js → S_AAYsIr.js} +2 -2
- package/web/app/immutable/chunks/{CVYI64VR.js → SpDQ1yhe.js} +1 -1
- package/web/app/immutable/chunks/{glfri7wL.js → Wtp4gWgF.js} +1 -1
- package/web/app/immutable/chunks/{Drwt7aYJ.js → Xz2JgrtK.js} +1 -1
- package/web/app/immutable/chunks/{Cm72nCq-.js → ZBCGBGeT.js} +1 -1
- package/web/app/immutable/chunks/{C_lRd9OO.js → ZsIzkx4b.js} +1 -1
- package/web/app/immutable/chunks/{D6cxqzoz.js → _es_q85K.js} +1 -1
- package/web/app/immutable/chunks/{CI4bdaNh.js → _o85nBWH.js} +1 -1
- package/web/app/immutable/chunks/{D2zf67XA.js → bAWH0D1a.js} +7 -7
- package/web/app/immutable/chunks/{BNOUHNLe.js → cPzpQFEA.js} +1 -1
- package/web/app/immutable/chunks/{Bxucs2aA.js → dkojwLk2.js} +1 -1
- package/web/app/immutable/chunks/{DFhTl2LJ.js → dpToMVNV.js} +1 -1
- package/web/app/immutable/chunks/{CFmU7Xxn.js → fXrcgNtr.js} +1 -1
- package/web/app/immutable/chunks/{CUTHTUjs.js → fciB9y8B.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/{B1rvRaDg.js → ihEwdinj.js} +1 -1
- package/web/app/immutable/chunks/{CfeU66Hz.js → jsY6ocH0.js} +1 -1
- package/web/app/immutable/chunks/{DShhv9Lh.js → kIb2FXed.js} +1 -1
- package/web/app/immutable/chunks/{p29Y4Sx3.js → kXKukUHU.js} +1 -1
- package/web/app/immutable/chunks/{DuMYTc8Y.js → kza5UJ4U.js} +1 -1
- package/web/app/immutable/chunks/{D30--6jq.js → mMBlGZk9.js} +1 -1
- 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/{B3II5C5l.js → n-WVnUeH.js} +1 -1
- package/web/app/immutable/chunks/{DFQ2LZfw.js → nR6RXxA9.js} +1 -1
- package/web/app/immutable/chunks/{BzBHISyY.js → pBEY1Dg2.js} +1 -1
- package/web/app/immutable/chunks/{D6Y18pu-.js → pEUfw1x0.js} +1 -1
- package/web/app/immutable/chunks/{DYZQjWbl.js → prrfQq6f.js} +1 -1
- package/web/app/immutable/chunks/{DTjIXONR.js → puEh5oJr.js} +4 -4
- package/web/app/immutable/chunks/{DxRCuR64.js → q4FIdUSc.js} +1 -1
- package/web/app/immutable/chunks/{Cno21Zxg.js → q6-D_vn6.js} +1 -1
- package/web/app/immutable/chunks/{CaHA2ESe.js → qshqk_Zv.js} +1 -1
- package/web/app/immutable/chunks/{Dmq8N6LI.js → qvHk51jx.js} +2 -2
- package/web/app/immutable/chunks/{CdtTvwl3.js → r8ylcc1d.js} +1 -1
- package/web/app/immutable/chunks/{CAh6WYw0.js → rpeM9FmT.js} +1 -1
- package/web/app/immutable/chunks/{LzhxhM8_.js → u8Ybsqvl.js} +1 -1
- package/web/app/immutable/chunks/{DjXUNnle.js → uPJwsXgL.js} +1 -1
- package/web/app/immutable/chunks/{BtuvHYz8.js → v6SgbwXH.js} +1 -1
- package/web/app/immutable/chunks/{CWELhcXR.js → wSFhIxGo.js} +1 -1
- package/web/app/immutable/chunks/{CHLJ-3Q1.js → wk8l4Vfb.js} +1 -1
- package/web/app/immutable/chunks/{Z-nmDTPH.js → wz1UgZlY.js} +1 -1
- package/web/app/immutable/chunks/{CzoFKpHV.js → xF2i73WW.js} +1 -1
- package/web/app/immutable/chunks/{D-k0eOJ6.js → yW5sglFu.js} +1 -1
- package/web/app/immutable/chunks/{DzpyprB1.js → ydrF5SOC.js} +1 -1
- package/web/app/immutable/chunks/{DE17eju9.js → zgX_Rwbq.js} +1 -1
- package/web/app/immutable/chunks/{4WPqCRAv.js → zxmCuTa7.js} +1 -1
- package/web/app/immutable/entry/{app.Bf_OSyrf.js → app.DF_Qftdw.js} +3 -3
- package/web/app/immutable/entry/start.DzVa4jHd.js +1 -0
- package/web/app/immutable/nodes/{0.B5ZNWVMC.js → 0.KW34tjG8.js} +1 -1
- package/web/app/immutable/nodes/{1.SeMykOqr.js → 1.CHhQxwtD.js} +1 -1
- package/web/app/immutable/nodes/{10.BZ6kBK3P.js → 10.CGdaTN_a.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.BTTvfbc0.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.DD-jxx3d.js} +2 -2
- package/web/app/immutable/nodes/{2.CdR_R7AF.js → 2.CTO1JTL7.js} +4 -4
- package/web/app/immutable/nodes/{3.C81CEmtR.js → 3.BE75vqzp.js} +1 -1
- package/web/app/immutable/nodes/{4.F_Gi0JxR.js → 4.BUm0nN8e.js} +1 -1
- package/web/app/immutable/nodes/{5.CtBTp1Hg.js → 5.BRXD3vaZ.js} +1 -1
- package/web/app/immutable/nodes/{6.CYnJfc7G.js → 6.CWxGKv_E.js} +1 -1
- package/web/app/immutable/nodes/{7.CHPJsLkB.js → 7.DI6-BnKI.js} +1 -1
- package/web/app/immutable/nodes/8.5BsghwEn.js +14 -0
- package/web/app/immutable/nodes/{9.VslqwEvr.js → 9.-PRJswf6.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 +1 @@
|
|
|
1
|
-
import{t as pt,bq as S,a_ as q,by as bt,bs as Pt,b as Ct,bo as $t,bu as h}from"./
|
|
1
|
+
import{t as pt,bq as S,a_ as q,by as bt,bs as Pt,b as Ct,bo as $t,bu as h}from"./CgPr4hs2.js";import{bs as vt,ca as E,aD as n,c9 as i,a7 as L,ay as _,W as w,bn as kt,bS as yt,aA as B,aB as St}from"./B8o4lNgr.js";import{D as _t}from"./P80hEEPK.js";import{c as wt}from"./Co_Aa6ij.js";import{aU as Bt}from"./4cIwmSuD.js";import{G9 as u,ej as It,ek as Ut,GG as Wt,GU as Dt,GL as Rt,t8 as Tt,m$ as V}from"./BL_sVoge.js";import{g as At}from"./CoSk1zgY.js";import{bx as Ft,bz as Ht,dj as Gt}from"./Df2ohObb.js";import{C as f}from"./DypB-Dwi.js";import"./DX8x4w_C.js";import"./CsstSIr0.js";import"./D3ROSEe0.js";import{bb as xt}from"./B7NNbItI.js";import"./Ps9iRbKd.js";import"./CfV9aH5z.js";import{T as Mt}from"./Cs1191LV.js";import"./C5qvCE4M.js";import{M as Nt}from"./BmiNxvpC.js";import{V as qt}from"./v6SgbwXH.js";import{O as Et}from"./ClHM0gRH.js";import{bG as Lt,bE as Vt,a$ as jt}from"./86pQg5ba.js";import{i as Kt}from"./H2jLkRRS.js";var Ot=St("<!> <!>",1);function zt(I,p){if(new.target)return pt({component:zt,...I});vt(p,!0);const U=()=>h(et,"$workspace",l),P=()=>h(Y,"$ftChanges$",l),j=()=>h(Z,"$ftCommits$",l),W=()=>h(Q,"$foldUnchanged",l),D=()=>h(J,"$lineWrapping",l),R=()=>h(X,"$diffSideBySide",l),[l,K]=Pt(),O=t=>{qt(t,{embedded:!0,get foldEnabled(){return W()},onToggleFold:()=>u.dispatch(Rt()),get wrapEnabled(){return D()},onToggleWrap:()=>u.dispatch(Dt()),get splitEnabled(){return R()},onToggleSplit:()=>u.dispatch(Wt())})},z=t=>{var e=Ot(),r=_(e);{let m=i(()=>$t.layout_diffHeader_goToFile_tooltip());wt(r,()=>Nt,(y,ht)=>{ht(y,{get icon(){return xt},get label(){return n(m)},onclick:Jt=>ft()})})}var s=yt(r,2);{var d=m=>{Et(m,{get filePath(){return n(v)},get workspaceId(){return o()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return n($)}})};q(s,m=>{n(v)&&m(d)})}w(t,e)},J=Lt(),Q=Vt(),X=jt();let a=S(p,"tab",7),o=S(p,"workspaceId",7),b=S(p,"isActive",7);const C=Bt(()=>o()),Y=Ft(C),Z=Ht(C),tt=new Set([f.Committed,f.Pushed,f.PullRequest,f.Merged,f.Trunk]),T=At(),et=Gt(C),nt=i(()=>U()?.worktreePath||U()?.repositoryPath||void 0);E(()=>{const t=o();if(!(!b()||!t||n(c)))return u.dispatch(It(t,"all")),()=>u.dispatch(Ut(t,"all"))});const c=i(()=>a().data?.gitRootId),A=i(()=>a().data?.gitRootPath),$=i(()=>n(A)||n(nt)),v=i(()=>a().diffPath&&n($)?Kt(a().diffPath)?a().diffPath:`${n($)}/${a().diffPath}`:null);function F(t,e){return!!(t.file===e||t.relativePath===e||t.relativePath&&e.endsWith("/"+t.relativePath)||t.file&&e.endsWith("/"+t.file)||t.relativePath&&t.relativePath.endsWith("/"+e)||t.file&&t.file.endsWith("/"+e))}function H(t){return!t||n(c)?null:P().find(e=>F(e,t)&&(e.stage==="staged"||e.stage==="unstaged"))??null}function at(t){if(!t||n(c))return null;let e=null,r=-1/0;for(const s of P()){if(!F(s,t)||!tt.has(s.stage)||!s.commitHash)continue;const d=s.attribution?.timestamp??0;d>=r&&(e=s,r=d)}return e}function it(t,e){return!!(t===e||e.endsWith("/"+t)||t.endsWith("/"+e))}function rt(t){if(!t||n(c))return null;for(const e of j())if(e?.hash&&e.files?.some(r=>r?.path&&it(r.path,t)))return{id:`diff-${t}-${e.hash}`,file:t,relativePath:t,status:"modified",stage:f.Committed,commitHash:e.hash,stats:{additions:0,deletions:0},attribution:{timestamp:e.timestamp??Date.now()}};return null}const G=i(()=>a().diffPath?H(a().diffPath):null),st=i(()=>{if(!a().diffPath)return 0;const t=H(a().diffPath),e=P().length;if(t){const r=t.stage==="staged"?1:t.stage==="unstaged"?2:3,s=(t.stats?.additions||0)+(t.stats?.deletions||0),d=t.attribution?.timestamp?t.attribution.timestamp%1e5:0;return r*1e6+s*1e3+d+e}return e}),g=i(()=>a().data?.change),x=i(()=>a().data?.branchBaseRef),M=i(()=>a().data?.branchBaseCommitSha),ot=i(()=>!!(n(x)||n(M))),k=i(()=>{if(n(g)?.commitHash)return n(g);if(n(G))return n(G);if(n(ot)&&n(g))return n(g);const t=at(a().diffPath??null);if(t)return t;const e=rt(a().diffPath??null);return e||(n(g)?n(g):{id:`diff-${a().diffPath}`,file:a().diffPath||"",relativePath:a().diffPath||"",status:"modified",stage:f.Unstaged,stats:{additions:0,deletions:0},attribution:{timestamp:Date.now()}})});function ft(t){if(!a().diffPath)return;const r={type:"file",title:a().diffPath.split("/").pop()||a().diffPath,closable:!0,filePath:n(v)||a().diffPath,workspaceId:o()};u.dispatch(Tt(o(),r))}E(()=>{!T||!b()||T.registerActions({display:O,actions:z})});function dt(t,e){u.dispatch(V(o(),crypto.randomUUID(),{kind:"stageHunk",filePath:t,hunkPatch:e,source:"diff"}))}function ut(t,e){u.dispatch(V(o(),crypto.randomUUID(),{kind:"unstageHunk",filePath:t,hunkPatch:e,source:"diff"}))}var ct={get tab(){return a()},set tab(t){a(t),B()},get workspaceId(){return o()},set workspaceId(t){o(t),B()},get isActive(){return b()},set isActive(t){b(t),B()},$set:bt,$on:(t,e)=>Ct(p,t,e)},N=L(),mt=_(N);{var lt=t=>{var e=L(),r=_(e);_t(r,()=>a().diffPath,s=>{{let d=i(()=>R()?"split":"unified"),m=i(()=>!n(c)&&n(k).stage===f.Unstaged?dt:void 0),y=i(()=>!n(c)&&n(k).stage===f.Staged?ut:void 0);Mt(s,{get active(){return b()},get change(){return n(k)},get workspaceId(){return o()},get viewMode(){return n(d)},get foldUnchanged(){return W()},get lineWrapping(){return D()},get refreshKey(){return n(st)},get branchBaseRef(){return n(x)},get branchBaseCommitSha(){return n(M)},get gitRootId(){return n(c)},get gitRootPath(){return n(A)},get onStageHunk(){return n(m)},get onUnstageHunk(){return n(y)}})}}),w(t,e)};q(mt,t=>{a().diffPath&&t(lt)})}w(I,N);var gt=kt(ct);return K(),gt}export{zt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{G9 as N}from"./
|
|
1
|
+
import{G9 as N}from"./BL_sVoge.js";const z=N.createSelector((t,e,o)=>Object.values(t.taskAgentAssociations?.byWorkspaceId[e]?.byNoteId[o]??{})),D=N.createSelector((t,e,o)=>{const n=t.taskAgentAssociations?.byWorkspaceId[e]?.byNoteId??{};return Object.values(n).flatMap(s=>Object.values(s)).filter(s=>s.agentId===o)});let b=1;const I=new WeakMap;function $(t){let e=I.get(t);return e||(e=b++,I.set(t,e)),e}function m(t){if(t==null)return"";if(typeof t=="string")return`s:${t.length}:${t.slice(0,16)}:${t.slice(-16)}`;if(typeof t!="object")return`${typeof t}:${String(t)}`;if(Array.isArray(t))return`a:${$(t)}:${t.length}`;const e=Object.keys(t).sort();return`o:${$(t)}:${e.map(o=>`${o}=${m(t[o])}`).join(",")}`}function K(t){const e=[`message:${t.id||""}:${t.appMessageId||""}:${t.role}`];for(const o of t.toolCalls||[])e.push(`call:${o.id}:${o.status||""}:${o.error||""}`);for(const o of t.toolResults||[])e.push(`result:${o.toolCallId}:${o.isError?"1":"0"}:${m(o.content)}`);for(const[o,n]of(t.contentBlocks||[]).entries())if(n.type==="tool_use"){const s=n.metadata;e.push(`use:${o}:${n.id||""}:${n.tool_use_id||""}:${n.toolCallId||""}:${s?.toolId||""}:${n.name||""}:${n.toolName||""}:${m(n.input)}:${m(s?.toolInput)}`)}else n.type==="tool_result"&&e.push(`result-block:${o}:${n.id||""}:${n.tool_use_id||""}:${n.toolCallId||""}:${n.is_error?"1":"0"}:${n.isError?"1":"0"}:${m(n.content||n.text)}`);return e.join("|")}function y(t){if(!t)return!1;const e=typeof t=="string"?t:JSON.stringify(t);return[/tool .* not found/i,/tool .* not available/i,/unknown tool/i,/invalid tool/i,/tool execution failed/i,/failed to execute tool/i,/tool error:/i].some(n=>n.test(e))}const S=new WeakMap;function k(t){const e=S.get(t);if(e)return e;const o=new Set;if(t.toolResults)for(const n of t.toolResults)(n.isError||y(n.content))&&n.toolCallId&&o.add(n.toolCallId);if(t.toolCalls)for(const n of t.toolCalls)(n.status==="failed"||n.error)&&n.id&&o.add(n.id);if(t.contentBlocks){const n=t.contentBlocks;for(let s=0;s<n.length;s++){const i=n[s];if(i.type==="tool_result"){const r=i.is_error||i.isError,l=y(i.content||i.text);if(r||l){let a=i.tool_use_id||i.toolCallId||i.id;if(!a&&s>0){const f=n[s-1];f.type==="tool_use"&&(a=f.id||f.tool_use_id||f.toolCallId)}a&&o.add(a)}}}}return S.set(t,o),o}function U(t){const e=new Map;if(t.role!=="assistant"||!t.contentBlocks)return{changes:[],totalFiles:0,totalAdditions:0,totalDeletions:0};const o=k(t);for(const s of t.contentBlocks){if(s.type!=="tool_use")continue;const i=s.id||s.tool_use_id||s.toolCallId;if(i&&o.has(i))continue;const r=A(s);if(r){const l=e.get(r.filePath);l?(l.additions+=r.additions,l.deletions+=r.deletions,l.action=r.action,l.newContent=r.newContent,l.toolCallId=r.toolCallId,l.toolName=r.toolName):e.set(r.filePath,{...r})}}const n=Array.from(e.values()).filter(s=>!(s.oldContent!==void 0&&s.newContent!==void 0&&s.oldContent===s.newContent));return{changes:n,totalFiles:n.length,totalAdditions:n.reduce((s,i)=>s+i.additions,0),totalDeletions:n.reduce((s,i)=>s+i.deletions,0)}}function F(t){const e=new Map,o=new Set;for(const s of t){const i=k(s);for(const r of i)o.add(r)}for(const s of t)if(!(s.role!=="assistant"||!s.contentBlocks))for(const i of s.contentBlocks){if(i.type!=="tool_use")continue;const r=i.id||i.tool_use_id||i.toolCallId;if(r&&o.has(r))continue;const l=A(i);if(l){const a=e.get(l.filePath);a?(a.additions+=l.additions,a.deletions+=l.deletions,a.action=l.action,a.newContent=l.newContent,a.toolCallId=l.toolCallId,a.toolName=l.toolName):e.set(l.filePath,{...l})}}const n=Array.from(e.values()).filter(s=>!(s.oldContent!==void 0&&s.newContent!==void 0&&s.oldContent===s.newContent));return{changes:n,totalFiles:n.length,totalAdditions:n.reduce((s,i)=>s+i.additions,0),totalDeletions:n.reduce((s,i)=>s+i.deletions,0)}}function M(t){const e=[];for(let o=t.length-1;o>=0;o--){const n=t[o];if(n.role==="user")break;n.role==="assistant"&&e.unshift(n)}return e}function V(t){const e=F(t).changes.map(n=>n.filePath),o=new Set(F(M(t)).changes.map(n=>n.filePath));return e.length===o.size&&e.every(n=>o.has(n))}const T=new Set(["spec","notes","tasks","readme","todo","changelog"]),O=new Set(["workspace_api","get_note","create_note","update_note","add_to_note","edit_note","delegate_task","create_agent"]);function E(t){let e=t.toLowerCase();const o=e.match(/\/\/local\/mcp\/(.+)$/);for(o&&(e=o[1]),e=e.replace(/^mcp__[^_]+__/,""),e=e.replace(/^workspace[-_]mcp[-_]/,"");/[-_]workspace-mcp$/.test(e);)e=e.replace(/[-_]workspace-mcp$/,"");return e}function L(t){const e=t.metadata;return[t.name,t.toolName,e?.toolName].some(n=>typeof n=="string"&&O.has(E(n)))}function x(t){if(/\s/.test(t))return!1;const e=t.includes("."),o=t.includes("/")||t.includes("\\");return e||o}function C(t){if(!t)return!1;const e=t.toLowerCase().trim();if(T.has(e)||e.includes(".workspace/notes/"))return!0;const o=e.includes("."),n=e.includes("/")||e.includes("\\");return!!(!o&&!n&&/^[a-z][a-z0-9-_]*$/.test(e))}function A(t){if(L(t))return null;if(t.inputTruncated===!0){const e=P(t);return e?{...e,additions:0,deletions:0,oldContent:void 0,newContent:void 0,startLineNumber:void 0}:null}return P(t)}function P(t){const e=typeof t.name=="string"&&t.name?t.name:typeof t.toolName=="string"?t.toolName:"",o=t.input||t.metadata?.toolInput||{},n=t.id||t.tool_use_id||t.metadata?.toolId||"",s=e.toLowerCase();if(s==="str_replace_editor"||s==="str-replace-editor"||s.startsWith("edit ")){const r=j(n,e,o);return r&&C(r.filePath)?null:r}const i=s==="save_file"||s==="save-file"||s==="write_file"||s==="write-file"||s==="create_file"||s==="create-file";if(i||s.startsWith("save ")||s.startsWith("create ")){const r=W(n,e,o,i);return r&&C(r.filePath)?null:r}if(s==="remove_files"||s==="remove-files"){const r=B(n,e,o);return r&&C(r.filePath)?null:r}return null}function p(t){if(t==null||typeof t=="object")return"";const e=typeof t=="string"?t:String(t);return e&&e.replace(/\\n/g,`
|
|
2
2
|
`).replace(/\\t/g," ").replace(/\\r/g,"\r")}function _(t){return typeof t!="string"?null:t.trim()||null}function v(t){if(Array.isArray(t)){for(const e of t){const o=_(e);if(o)return o}return null}return _(t)}function j(t,e,o){let n=_(o.path);if(!n&&typeof e=="string"&&e.toLowerCase().startsWith("edit ")){const c=_(e.substring(5));n=c&&x(c)?c:null}if(!n)return null;if(o.command==="create"){const c=o.file_text??"",d=p(c),u=d?d.split(`
|
|
3
3
|
`):[];return{filePath:n,action:"create",additions:u.length,deletions:0,toolName:e,toolCallId:t,oldContent:"",newContent:d}}let s=0,i=0;const r=[],l=[];let a;if(Array.isArray(o.str_replace_entries))for(const c of o.str_replace_entries){const d=c.old_str,u=c.new_str,h=c.old_str_start_line_number;if(d!==void 0&&u!==void 0){const g=p(d),w=p(u);i+=g?g.split(`
|
|
4
4
|
`).length:0,s+=w?w.split(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as R,s as W,S as N}from"./DmLTqLLV.js";import{l as P}from"./DZ1zC9TP.js";import{a as f,N as t,ad as S,r as U,G as _,p as z,V as C,aV as F}from"./D2zf67XA.js";import{c3 as H,bz as O,ae as J}from"./BejAw64w.js";import"./V68rWC50.js";var X=f(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),D=f(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),Y=f((e,i)=>{const d=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),c=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),d},"drawSimpleState"),I=f((e,i)=>{const d=f(function(o,B,y){const v=o.append("tspan").attr("x",2*t().state.padding).text(B);y||v.attr("dy",t().state.textHeight)},"addTspan"),n=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),l=n.height,p=e.append("text").attr("x",t().state.padding).attr("y",l+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,s=!0;i.descriptions.forEach(function(o){a||(d(p,o,s),s=!1),a=!1});const m=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+l+t().state.dividerMargin/2).attr("y2",t().state.padding+l+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),g=Math.max(x.width,n.width);return m.attr("x2",g+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",g+2*t().state.padding).attr("height",x.height+l+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),$=f((e,i,d)=>{const c=t().state.padding,n=2*t().state.padding,l=e.node().getBBox(),p=l.width,a=l.x,s=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=s.node().getBBox().width+n;let g=Math.max(x,p);g===p&&(g=g+n);let o;const B=e.node().getBBox();i.doc,o=a-c,x>p&&(o=(p-g)/2+c),Math.abs(a-B.x)<c&&x>p&&(o=a-(x-p)/2);const y=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",o).attr("y",y).attr("class",d?"alt-composit":"composit").attr("width",g).attr("height",B.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),s.attr("x",o+c),x<=p&&s.attr("x",a+(g-n)/2-x/2+c),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",g).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",g).attr("height",B.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),V=f(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),q=f((e,i)=>{let d=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let n=d;d=c,c=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),Z=f((e,i,d,c)=>{let n=0;const l=c.append("text");l.style("text-anchor","start"),l.attr("class","noteText");let p=e.replace(/\r\n/g,"<br/>");p=p.replace(/\n/g,"<br/>");const a=p.split(z.lineBreakRegex);let s=1.25*t().state.noteMargin;for(const m of a){const x=m.trim();if(x.length>0){const g=l.append("tspan");if(g.text(x),s===0){const o=g.node().getBBox();s+=o.height}n+=s,g.attr("x",i+t().state.noteMargin),g.attr("y",d+n+1.25*t().state.noteMargin)}}return{textWidth:l.node().getBBox().width,textHeight:n}},"_drawLongText"),j=f((e,i)=>{i.attr("class","state-note");const d=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:n,textHeight:l}=Z(e,0,0,c);return d.attr("height",l+2*t().state.noteMargin),d.attr("width",n+t().state.noteMargin*2),d},"drawNote"),L=f(function(e,i){const d=i.id,c={id:d,label:i.id,width:0,height:0},n=e.append("g").attr("id",d).attr("class","stateGroup");i.type==="start"&&X(n),i.type==="end"&&V(n),(i.type==="fork"||i.type==="join")&&q(n,i),i.type==="note"&&j(i.note.text,n),i.type==="divider"&&D(n),i.type==="default"&&i.descriptions.length===0&&Y(n,i),i.type==="default"&&i.descriptions.length>0&&I(n,i);const l=n.node().getBBox();return c.width=l.width+2*t().state.padding,c.height=l.height+2*t().state.padding,c},"drawState"),G=0,K=f(function(e,i,d){const c=f(function(s){switch(s){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}},"getRelationType");i.points=i.points.filter(s=>!Number.isNaN(s.y));const n=i.points,l=O().x(function(s){return s.x}).y(function(s){return s.y}).curve(J),p=e.append("path").attr("d",l(n)).attr("id","edge"+G).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=C(!0)),p.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const s=e.append("g").attr("class","stateLabel"),{x:m,y:x}=F.calcLabelPosition(i.points),g=z.getRows(d.title);let o=0;const B=[];let y=0,v=0;for(let u=0;u<=g.length;u++){const h=s.append("text").attr("text-anchor","middle").text(g[u]).attr("x",m).attr("y",x+o),w=h.node().getBBox();y=Math.max(y,w.width),v=Math.min(v,w.x),S.info(w.x,m,x+o),o===0&&(o=h.node().getBBox().height,S.info("Title height",o,x)),B.push(h)}let k=o*g.length;if(g.length>1){const u=(g.length-1)*o*.5;B.forEach((h,w)=>h.attr("y",x+w*o-u)),k=o*g.length}const r=s.node().getBBox();s.insert("rect",":first-child").attr("class","box").attr("x",m-y/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",y+t().state.padding).attr("height",k+t().state.padding),S.info(r)}G++},"drawEdge"),b,T={},Q=f(function(){},"setConf"),tt=f(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),et=f(function(e,i,d,c){b=t().state;const n=t().securityLevel;let l;n==="sandbox"&&(l=H("#i"+i));const p=n==="sandbox"?H(l.nodes()[0].contentDocument.body):H("body"),a=n==="sandbox"?l.nodes()[0].contentDocument:document;S.debug("Rendering diagram "+e);const s=p.select(`[id='${i}']`);tt(s);const m=c.db.getRootDoc(),x=s.append("g").attr("id",i+"-root");A(m,x,void 0,!1,p,a,c);const g=b.padding,o=s.node().getBBox(),B=o.width+g*2,y=o.height+g*2,v=B*1.75;U(s,y,v,b.useMaxWidth),s.attr("viewBox",`${o.x-b.padding} ${o.y-b.padding} `+B+" "+y)},"draw"),at=f(e=>e?e.length*b.fontSizeFactor:1,"getLabelWidth"),A=f((e,i,d,c,n,l,p)=>{const a=new _({compound:!0,multigraph:!0});let s,m=!0;for(s=0;s<e.length;s++)if(e[s].stmt==="relation"){m=!1;break}d?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:m?1:b.edgeLengthFactor,nodeSep:m?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:m?1:b.edgeLengthFactor,nodeSep:m?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});const x=p.db.getStates(),g=p.db.getRelations(),o=Object.keys(x);for(const r of o){const u=x[r];d&&(u.parentId=d);let h;if(u.doc){let w=i.append("g").attr("id",u.id).attr("class","stateGroup");h=A(u.doc,w,u.id,!c,n,l,p);{w=$(w,u,c);let E=w.node().getBBox();h.width=E.width,h.height=E.height+b.padding/2,T[u.id]={y:b.compositTitleSize}}}else h=L(i,u,a);if(u.note){const w={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},E=L(i,w,a);u.note.position==="left of"?(a.setNode(h.id+"-note",E),a.setNode(h.id,h)):(a.setNode(h.id,h),a.setNode(h.id+"-note",E)),a.setParent(h.id,h.id+"-group"),a.setParent(h.id+"-note",h.id+"-group")}else a.setNode(h.id,h)}S.debug("Count=",a.nodeCount(),a);let B=0;g.forEach(function(r){B++,S.debug("Setting edge",r),a.setEdge(r.id1,r.id2,{relation:r,width:at(r.title),height:b.labelHeight*z.getRows(r.title).length,labelpos:"c"},"id"+B)}),P(a),S.debug("Graph after layout",a.nodes());const y=i.node();a.nodes().forEach(function(r){r!==void 0&&a.node(r)!==void 0?(S.warn("Node "+r+": "+JSON.stringify(a.node(r))),n.select("#"+y.id+" #"+r).attr("transform","translate("+(a.node(r).x-a.node(r).width/2)+","+(a.node(r).y+(T[r]?T[r].y:0)-a.node(r).height/2)+" )"),n.select("#"+y.id+" #"+r).attr("data-x-shift",a.node(r).x-a.node(r).width/2),l.querySelectorAll("#"+y.id+" #"+r+" .divider").forEach(h=>{const w=h.parentElement;let E=0,M=0;w&&(w.parentElement&&(E=w.parentElement.getBBox().width),M=parseInt(w.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",E-M-8)})):S.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let v=y.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(S.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),K(i,a.edge(r),a.edge(r).relation))}),v=y.getBBox();const k={id:d||"root",label:d||"root",width:0,height:0};return k.width=v.width+2*b.padding,k.height=v.height+2*b.padding,S.debug("Doc rendered",k,a),k},"renderDoc"),it={setConf:Q,draw:et},ct={parser:W,get db(){return new N(1)},renderer:it,styles:R,init:f(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{ct as diagram};
|
|
1
|
+
import{b as R,s as W,S as N}from"./BLV57oiS.js";import{l as P}from"./BffyNBKQ.js";import{a as f,N as t,ad as S,r as U,G as _,p as z,V as C,aV as F}from"./bAWH0D1a.js";import{c3 as H,bz as O,ae as J}from"./LhLTjc8B.js";import"./DqNPF1Kv.js";var X=f(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),D=f(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),Y=f((e,i)=>{const d=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),c=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),d},"drawSimpleState"),I=f((e,i)=>{const d=f(function(o,B,y){const v=o.append("tspan").attr("x",2*t().state.padding).text(B);y||v.attr("dy",t().state.textHeight)},"addTspan"),n=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),l=n.height,p=e.append("text").attr("x",t().state.padding).attr("y",l+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,s=!0;i.descriptions.forEach(function(o){a||(d(p,o,s),s=!1),a=!1});const m=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+l+t().state.dividerMargin/2).attr("y2",t().state.padding+l+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),g=Math.max(x.width,n.width);return m.attr("x2",g+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",g+2*t().state.padding).attr("height",x.height+l+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),$=f((e,i,d)=>{const c=t().state.padding,n=2*t().state.padding,l=e.node().getBBox(),p=l.width,a=l.x,s=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=s.node().getBBox().width+n;let g=Math.max(x,p);g===p&&(g=g+n);let o;const B=e.node().getBBox();i.doc,o=a-c,x>p&&(o=(p-g)/2+c),Math.abs(a-B.x)<c&&x>p&&(o=a-(x-p)/2);const y=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",o).attr("y",y).attr("class",d?"alt-composit":"composit").attr("width",g).attr("height",B.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),s.attr("x",o+c),x<=p&&s.attr("x",a+(g-n)/2-x/2+c),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",g).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",g).attr("height",B.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),V=f(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),q=f((e,i)=>{let d=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let n=d;d=c,c=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),Z=f((e,i,d,c)=>{let n=0;const l=c.append("text");l.style("text-anchor","start"),l.attr("class","noteText");let p=e.replace(/\r\n/g,"<br/>");p=p.replace(/\n/g,"<br/>");const a=p.split(z.lineBreakRegex);let s=1.25*t().state.noteMargin;for(const m of a){const x=m.trim();if(x.length>0){const g=l.append("tspan");if(g.text(x),s===0){const o=g.node().getBBox();s+=o.height}n+=s,g.attr("x",i+t().state.noteMargin),g.attr("y",d+n+1.25*t().state.noteMargin)}}return{textWidth:l.node().getBBox().width,textHeight:n}},"_drawLongText"),j=f((e,i)=>{i.attr("class","state-note");const d=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:n,textHeight:l}=Z(e,0,0,c);return d.attr("height",l+2*t().state.noteMargin),d.attr("width",n+t().state.noteMargin*2),d},"drawNote"),L=f(function(e,i){const d=i.id,c={id:d,label:i.id,width:0,height:0},n=e.append("g").attr("id",d).attr("class","stateGroup");i.type==="start"&&X(n),i.type==="end"&&V(n),(i.type==="fork"||i.type==="join")&&q(n,i),i.type==="note"&&j(i.note.text,n),i.type==="divider"&&D(n),i.type==="default"&&i.descriptions.length===0&&Y(n,i),i.type==="default"&&i.descriptions.length>0&&I(n,i);const l=n.node().getBBox();return c.width=l.width+2*t().state.padding,c.height=l.height+2*t().state.padding,c},"drawState"),G=0,K=f(function(e,i,d){const c=f(function(s){switch(s){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}},"getRelationType");i.points=i.points.filter(s=>!Number.isNaN(s.y));const n=i.points,l=O().x(function(s){return s.x}).y(function(s){return s.y}).curve(J),p=e.append("path").attr("d",l(n)).attr("id","edge"+G).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=C(!0)),p.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const s=e.append("g").attr("class","stateLabel"),{x:m,y:x}=F.calcLabelPosition(i.points),g=z.getRows(d.title);let o=0;const B=[];let y=0,v=0;for(let u=0;u<=g.length;u++){const h=s.append("text").attr("text-anchor","middle").text(g[u]).attr("x",m).attr("y",x+o),w=h.node().getBBox();y=Math.max(y,w.width),v=Math.min(v,w.x),S.info(w.x,m,x+o),o===0&&(o=h.node().getBBox().height,S.info("Title height",o,x)),B.push(h)}let k=o*g.length;if(g.length>1){const u=(g.length-1)*o*.5;B.forEach((h,w)=>h.attr("y",x+w*o-u)),k=o*g.length}const r=s.node().getBBox();s.insert("rect",":first-child").attr("class","box").attr("x",m-y/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",y+t().state.padding).attr("height",k+t().state.padding),S.info(r)}G++},"drawEdge"),b,T={},Q=f(function(){},"setConf"),tt=f(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),et=f(function(e,i,d,c){b=t().state;const n=t().securityLevel;let l;n==="sandbox"&&(l=H("#i"+i));const p=n==="sandbox"?H(l.nodes()[0].contentDocument.body):H("body"),a=n==="sandbox"?l.nodes()[0].contentDocument:document;S.debug("Rendering diagram "+e);const s=p.select(`[id='${i}']`);tt(s);const m=c.db.getRootDoc(),x=s.append("g").attr("id",i+"-root");A(m,x,void 0,!1,p,a,c);const g=b.padding,o=s.node().getBBox(),B=o.width+g*2,y=o.height+g*2,v=B*1.75;U(s,y,v,b.useMaxWidth),s.attr("viewBox",`${o.x-b.padding} ${o.y-b.padding} `+B+" "+y)},"draw"),at=f(e=>e?e.length*b.fontSizeFactor:1,"getLabelWidth"),A=f((e,i,d,c,n,l,p)=>{const a=new _({compound:!0,multigraph:!0});let s,m=!0;for(s=0;s<e.length;s++)if(e[s].stmt==="relation"){m=!1;break}d?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:m?1:b.edgeLengthFactor,nodeSep:m?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:m?1:b.edgeLengthFactor,nodeSep:m?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});const x=p.db.getStates(),g=p.db.getRelations(),o=Object.keys(x);for(const r of o){const u=x[r];d&&(u.parentId=d);let h;if(u.doc){let w=i.append("g").attr("id",u.id).attr("class","stateGroup");h=A(u.doc,w,u.id,!c,n,l,p);{w=$(w,u,c);let E=w.node().getBBox();h.width=E.width,h.height=E.height+b.padding/2,T[u.id]={y:b.compositTitleSize}}}else h=L(i,u,a);if(u.note){const w={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},E=L(i,w,a);u.note.position==="left of"?(a.setNode(h.id+"-note",E),a.setNode(h.id,h)):(a.setNode(h.id,h),a.setNode(h.id+"-note",E)),a.setParent(h.id,h.id+"-group"),a.setParent(h.id+"-note",h.id+"-group")}else a.setNode(h.id,h)}S.debug("Count=",a.nodeCount(),a);let B=0;g.forEach(function(r){B++,S.debug("Setting edge",r),a.setEdge(r.id1,r.id2,{relation:r,width:at(r.title),height:b.labelHeight*z.getRows(r.title).length,labelpos:"c"},"id"+B)}),P(a),S.debug("Graph after layout",a.nodes());const y=i.node();a.nodes().forEach(function(r){r!==void 0&&a.node(r)!==void 0?(S.warn("Node "+r+": "+JSON.stringify(a.node(r))),n.select("#"+y.id+" #"+r).attr("transform","translate("+(a.node(r).x-a.node(r).width/2)+","+(a.node(r).y+(T[r]?T[r].y:0)-a.node(r).height/2)+" )"),n.select("#"+y.id+" #"+r).attr("data-x-shift",a.node(r).x-a.node(r).width/2),l.querySelectorAll("#"+y.id+" #"+r+" .divider").forEach(h=>{const w=h.parentElement;let E=0,M=0;w&&(w.parentElement&&(E=w.parentElement.getBBox().width),M=parseInt(w.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",E-M-8)})):S.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let v=y.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(S.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),K(i,a.edge(r),a.edge(r).relation))}),v=y.getBBox();const k={id:d||"root",label:d||"root",width:0,height:0};return k.width=v.width+2*b.padding,k.height=v.height+2*b.padding,S.debug("Doc rendered",k,a),k},"renderDoc"),it={setConf:Q,draw:et},ct={parser:W,get db(){return new N(1)},renderer:it,styles:R,init:f(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{ct as diagram};
|
|
@@ -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"./Ccxm74iK.js";import{p as me}from"./DZyz0CaB.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"./bAWH0D1a.js";import{s as Le}from"./Kr-Hl0sp.js";import{c3 as H,g as ae}from"./LhLTjc8B.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,4 +1,4 @@
|
|
|
1
|
-
import{g as ee}from"./
|
|
1
|
+
import{g as ee}from"./CSJ0J5sC.js";import{s as se}from"./DbD4A30t.js";import{f as p,bC as b,aO as $,bZ as ie,cx as re,aL as ae,c7 as ne,aK as oe,c6 as le,c9 as ce,aP as he,aJ as ue,a4 as j,a0 as de,c3 as kt}from"./LhLTjc8B.js";import{c as fe}from"./wk8l4Vfb.js";import{aI as pe}from"./86pQg5ba.js";var Ct=(function(){var t=p(function(V,o,h,a){for(h=h||{},a=V.length;a--;h[V[a]]=o);return h},"o"),e=[1,2],s=[1,3],n=[1,4],r=[2,4],c=[1,9],u=[1,11],S=[1,16],d=[1,17],T=[1,18],E=[1,19],m=[1,33],L=[1,20],D=[1,21],f=[1,22],I=[1,23],R=[1,24],C=[1,26],F=[1,27],A=[1,28],P=[1,29],w=[1,30],z=[1,31],rt=[1,32],at=[1,35],nt=[1,36],ot=[1,37],lt=[1,38],K=[1,34],y=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],ct=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],Lt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],gt={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:p(function(o,h,a,g,_,i,B){var l=i.length-1;switch(_){case 3:return g.setRootDoc(i[l]),i[l];case 4:this.$=[];break;case 5:i[l]!="nl"&&(i[l-1].push(i[l]),this.$=i[l-1]);break;case 6:case 7:this.$=i[l];break;case 8:this.$="nl";break;case 12:this.$=i[l];break;case 13:const Q=i[l-1];Q.description=g.trimColon(i[l]),this.$=Q;break;case 14:this.$={stmt:"relation",state1:i[l-2],state2:i[l]};break;case 15:const Tt=g.trimColon(i[l]);this.$={stmt:"relation",state1:i[l-3],state2:i[l-1],description:Tt};break;case 19:this.$={stmt:"state",id:i[l-3],type:"default",description:"",doc:i[l-1]};break;case 20:var Y=i[l],X=i[l-2].trim();if(i[l].match(":")){var ut=i[l].split(":");Y=ut[0],X=[X,ut[1]]}this.$={stmt:"state",id:Y,type:"default",description:X};break;case 21:this.$={stmt:"state",id:i[l-3],type:"default",description:i[l-5],doc:i[l-1]};break;case 22:this.$={stmt:"state",id:i[l],type:"fork"};break;case 23:this.$={stmt:"state",id:i[l],type:"join"};break;case 24:this.$={stmt:"state",id:i[l],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[l-1].trim(),note:{position:i[l-2].trim(),text:i[l].trim()}};break;case 29:this.$=i[l].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=i[l].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[l-3],url:i[l-2],tooltip:i[l-1]};break;case 33:this.$={stmt:"click",id:i[l-3],url:i[l-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[l-1].trim(),classes:i[l].trim()};break;case 36:this.$={stmt:"style",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 37:this.$={stmt:"applyClass",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[l].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:s,6:n},{1:[3]},{3:5,4:e,5:s,6:n},{3:6,4:e,5:s,6:n},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,22:E,24:m,25:L,26:D,27:f,28:I,29:R,32:25,33:C,35:F,37:A,38:P,41:w,45:z,48:rt,51:at,52:nt,53:ot,54:lt,57:K},t(y,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:d,19:T,22:E,24:m,25:L,26:D,27:f,28:I,29:R,32:25,33:C,35:F,37:A,38:P,41:w,45:z,48:rt,51:at,52:nt,53:ot,54:lt,57:K},t(y,[2,7]),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(y,[2,11]),t(y,[2,12],{14:[1,40],15:[1,41]}),t(y,[2,16]),{18:[1,42]},t(y,[2,18],{20:[1,43]}),{23:[1,44]},t(y,[2,22]),t(y,[2,23]),t(y,[2,24]),t(y,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(y,[2,28]),{34:[1,49]},{36:[1,50]},t(y,[2,31]),{13:51,24:m,57:K},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(ct,[2,44],{58:[1,56]}),t(ct,[2,45],{58:[1,57]}),t(y,[2,38]),t(y,[2,39]),t(y,[2,40]),t(y,[2,41]),t(y,[2,6]),t(y,[2,13]),{13:58,24:m,57:K},t(y,[2,17]),t(Lt,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(y,[2,29]),t(y,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(y,[2,14],{14:[1,71]}),{4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,21:[1,72],22:E,24:m,25:L,26:D,27:f,28:I,29:R,32:25,33:C,35:F,37:A,38:P,41:w,45:z,48:rt,51:at,52:nt,53:ot,54:lt,57:K},t(y,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),t(ct,[2,46]),t(ct,[2,47]),t(y,[2,15]),t(y,[2,19]),t(Lt,r,{7:78}),t(y,[2,26]),t(y,[2,27]),{5:[1,79]},{5:[1,80]},{4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,21:[1,81],22:E,24:m,25:L,26:D,27:f,28:I,29:R,32:25,33:C,35:F,37:A,38:P,41:w,45:z,48:rt,51:at,52:nt,53:ot,54:lt,57:K},t(y,[2,32]),t(y,[2,33]),t(y,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:p(function(o,h){if(h.recoverable)this.trace(o);else{var a=new Error(o);throw a.hash=h,a}},"parseError"),parse:p(function(o){var h=this,a=[0],g=[],_=[null],i=[],B=this.table,l="",Y=0,X=0,ut=2,Q=1,Tt=i.slice.call(arguments,1),k=Object.create(this.lexer),U={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(U.yy[Et]=this.yy[Et]);k.setInput(o,U.yy),U.yy.lexer=k,U.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var _t=k.yylloc;i.push(_t);var Qt=k.options&&k.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function te(O){a.length=a.length-2*O,_.length=_.length-O,i.length=i.length-O}p(te,"popStack");function It(){var O;return O=g.pop()||k.lex()||Q,typeof O!="number"&&(O instanceof Array&&(g=O,O=g.pop()),O=h.symbols_[O]||O),O}p(It,"lex");for(var x,W,N,mt,J={},dt,G,wt,ft;;){if(W=a[a.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((x===null||typeof x>"u")&&(x=It()),N=B[W]&&B[W][x]),typeof N>"u"||!N.length||!N[0]){var bt="";ft=[];for(dt in B[W])this.terminals_[dt]&&dt>ut&&ft.push("'"+this.terminals_[dt]+"'");k.showPosition?bt="Parse error on line "+(Y+1)+`:
|
|
2
2
|
`+k.showPosition()+`
|
|
3
3
|
Expecting `+ft.join(", ")+", got '"+(this.terminals_[x]||x)+"'":bt="Parse error on line "+(Y+1)+": Unexpected "+(x==Q?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(bt,{text:k.match,token:this.terminals_[x]||x,line:k.yylineno,loc:_t,expected:ft})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+x);switch(N[0]){case 1:a.push(x),_.push(k.yytext),i.push(k.yylloc),a.push(N[1]),x=null,X=k.yyleng,l=k.yytext,Y=k.yylineno,_t=k.yylloc;break;case 2:if(G=this.productions_[N[1]][1],J.$=_[_.length-G],J._$={first_line:i[i.length-(G||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(G||1)].first_column,last_column:i[i.length-1].last_column},Qt&&(J._$.range=[i[i.length-(G||1)].range[0],i[i.length-1].range[1]]),mt=this.performAction.apply(J,[l,X,Y,U.yy,N[1],_,i].concat(Tt)),typeof mt<"u")return mt;G&&(a=a.slice(0,-1*G*2),_=_.slice(0,-1*G),i=i.slice(0,-1*G)),a.push(this.productions_[N[1]][0]),_.push(J.$),i.push(J._$),wt=B[a[a.length-2]][a[a.length-1]],a.push(wt);break;case 3:return!0}}return!0},"parse")},Zt=(function(){var V={EOF:1,parseError:p(function(h,a){if(this.yy.parser)this.yy.parser.parseError(h,a);else throw new Error(h)},"parseError"),setInput:p(function(o,h){return this.yy=h||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:p(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);return h?(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:p(function(o){var h=o.length,a=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var g=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),a.length-1&&(this.yylineno-=a.length-1);var _=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:a?(a.length===g.length?this.yylloc.first_column:0)+g[g.length-a.length].length-a[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:p(function(){return this._more=!0,this},"more"),reject:p(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:p(function(o){this.unput(this.match.slice(o))},"less"),pastInput:p(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:p(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:p(function(){var o=this.pastInput(),h=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as ae}from"./
|
|
1
|
+
import{g as ae}from"./CSJ0J5sC.js";import{s as oe}from"./DbD4A30t.js";import{f as l,bC as C,aS as ce,bZ as le,aN as he,ax as G,aO as B,c2 as F,aZ as de,bk as ge,by as ue,as as pe}from"./LhLTjc8B.js";import{cK as fe}from"./86pQg5ba.js";var Y=(function(){var i=l(function(D,s,n,a){for(n=n||{},a=D.length;a--;n[D[a]]=s);return n},"o"),e=[1,4],o=[1,13],g=[1,12],t=[1,15],h=[1,16],f=[1,20],y=[1,19],E=[6,7,8],_=[1,26],L=[1,24],w=[1,25],d=[6,7,11],R=[1,6,13,15,16,19,22],Z=[1,33],K=[1,34],A=[1,6,7,11,13,15,16,19,22],j={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:l(function(s,n,a,c,p,r,$){var u=r.length-1;switch(p){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[u].id),c.addNode(r[u-1].length,r[u].id,r[u].descr,r[u].type);break;case 16:c.getLogger().trace("Icon: ",r[u]),c.decorateNode({icon:r[u]});break;case 17:case 21:c.decorateNode({class:r[u]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[u].id),c.addNode(0,r[u].id,r[u].descr,r[u].type);break;case 20:c.decorateNode({icon:r[u]});break;case 25:c.getLogger().trace("node found ..",r[u-2]),this.$={id:r[u-1],descr:r[u-1],type:c.getType(r[u-2],r[u])};break;case 26:this.$={id:r[u],descr:r[u],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[u-3]),this.$={id:r[u-3],descr:r[u-1],type:c.getType(r[u-2],r[u])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:o,7:[1,10],9:9,12:11,13:g,14:14,15:t,16:h,17:17,18:18,19:f,22:y},i(E,[2,3]),{1:[2,2]},i(E,[2,4]),i(E,[2,5]),{1:[2,6],6:o,12:21,13:g,14:14,15:t,16:h,17:17,18:18,19:f,22:y},{6:o,9:22,12:11,13:g,14:14,15:t,16:h,17:17,18:18,19:f,22:y},{6:_,7:L,10:23,11:w},i(d,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:f,22:y}),i(d,[2,18]),i(d,[2,19]),i(d,[2,20]),i(d,[2,21]),i(d,[2,23]),i(d,[2,24]),i(d,[2,26],{19:[1,30]}),{20:[1,31]},{6:_,7:L,10:32,11:w},{1:[2,7],6:o,12:21,13:g,14:14,15:t,16:h,17:17,18:18,19:f,22:y},i(R,[2,14],{7:Z,11:K}),i(A,[2,8]),i(A,[2,9]),i(A,[2,10]),i(d,[2,15]),i(d,[2,16]),i(d,[2,17]),{20:[1,35]},{21:[1,36]},i(R,[2,13],{7:Z,11:K}),i(A,[2,11]),i(A,[2,12]),{21:[1,37]},i(d,[2,25]),i(d,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(s,n){if(n.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=n,a}},"parseError"),parse:l(function(s){var n=this,a=[0],c=[],p=[null],r=[],$=this.table,u="",M=0,q=0,ie=2,J=1,ne=r.slice.call(arguments,1),m=Object.create(this.lexer),v={yy:{}};for(var H in this.yy)Object.prototype.hasOwnProperty.call(this.yy,H)&&(v.yy[H]=this.yy[H]);m.setInput(s,v.yy),v.yy.lexer=m,v.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var W=m.yylloc;r.push(W);var se=m.options&&m.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function re(b){a.length=a.length-2*b,p.length=p.length-b,r.length=r.length-b}l(re,"popStack");function Q(){var b;return b=c.pop()||m.lex()||J,typeof b!="number"&&(b instanceof Array&&(c=b,b=c.pop()),b=n.symbols_[b]||b),b}l(Q,"lex");for(var k,T,S,z,O={},U,N,ee,V;;){if(T=a[a.length-1],this.defaultActions[T]?S=this.defaultActions[T]:((k===null||typeof k>"u")&&(k=Q()),S=$[T]&&$[T][k]),typeof S>"u"||!S.length||!S[0]){var X="";V=[];for(U in $[T])this.terminals_[U]&&U>ie&&V.push("'"+this.terminals_[U]+"'");m.showPosition?X="Parse error on line "+(M+1)+`:
|
|
2
2
|
`+m.showPosition()+`
|
|
3
3
|
Expecting `+V.join(", ")+", got '"+(this.terminals_[k]||k)+"'":X="Parse error on line "+(M+1)+": Unexpected "+(k==J?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(X,{text:m.match,token:this.terminals_[k]||k,line:m.yylineno,loc:W,expected:V})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+k);switch(S[0]){case 1:a.push(k),p.push(m.yytext),r.push(m.yylloc),a.push(S[1]),k=null,q=m.yyleng,u=m.yytext,M=m.yylineno,W=m.yylloc;break;case 2:if(N=this.productions_[S[1]][1],O.$=p[p.length-N],O._$={first_line:r[r.length-(N||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(N||1)].first_column,last_column:r[r.length-1].last_column},se&&(O._$.range=[r[r.length-(N||1)].range[0],r[r.length-1].range[1]]),z=this.performAction.apply(O,[u,q,M,v.yy,S[1],p,r].concat(ne)),typeof z<"u")return z;N&&(a=a.slice(0,-1*N*2),p=p.slice(0,-1*N),r=r.slice(0,-1*N)),a.push(this.productions_[S[1]][0]),p.push(O.$),r.push(O._$),ee=$[a[a.length-2]][a[a.length-1]],a.push(ee);break;case 3:return!0}}return!0},"parse")},te=(function(){var D={EOF:1,parseError:l(function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},"parseError"),setInput:l(function(s,n){return this.yy=n||this.yy||{},this._input=s,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:l(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:l(function(s){var n=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var p=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:a?(a.length===c.length?this.yylloc.first_column:0)+c[c.length-a.length].length-a[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(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:l(function(s){this.unput(this.match.slice(s))},"less"),pastInput:l(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as tt}from"./
|
|
1
|
+
import{p as tt}from"./Ccxm74iK.js";import{p as et}from"./DZyz0CaB.js";import{K as at,aF as rt,L as it,aG as nt,O as ot,aI as st,a as l,ad as z,N as lt,j as ct,aE as dt,an as gt,r as pt,k as ht,y as ft}from"./bAWH0D1a.js";import"./LhLTjc8B.js";import{d as I}from"./DVbZ5oZ8.js";import{o as ut}from"./CmKTTxBW.js";import{d as mt}from"./Xz2JgrtK.js";var vt=ft.pie,L={sections:new Map,showData:!1},T=L.sections,R=L.showData,St=structuredClone(vt),xt=l(()=>structuredClone(St),"getConfig"),wt=l(()=>{T=new Map,R=L.showData,ht()},"clear"),Ct=l(({label:t,value:a})=>{if(a<0)throw new Error(`"${t}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);T.has(t)||(T.set(t,a),z.debug(`added new section: ${t}, with value: ${a}`))},"addSection"),$t=l(()=>T,"getSections"),yt=l(t=>{R=t},"setShowData"),Dt=l(()=>R,"getShowData"),U={getConfig:xt,clear:wt,setDiagramTitle:st,getDiagramTitle:ot,setAccTitle:nt,getAccTitle:it,setAccDescription:rt,getAccDescription:at,addSection:Ct,getSections:$t,setShowData:yt,getShowData:Dt},Tt=l((t,a)=>{tt(t,a),a.setShowData(t.showData),t.sections.map(a.addSection)},"populateDb"),bt={parse:l(async t=>{const a=await et("pie",t);z.debug(a),Tt(a,U)},"parse")},At=l(t=>`
|
|
2
2
|
.pieCircle{
|
|
3
3
|
stroke: ${t.pieStrokeColor};
|
|
4
4
|
stroke-width : ${t.pieStrokeWidth};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./
|
|
1
|
+
import{l as e}from"./BYCiS1o9.js";const t={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:e.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},s={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","type","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/f'{1,3}/,"string.escape","@fStringBody"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/f"{1,3}/,"string.escape","@fDblStringBody"],[/"/,"string.escape","@dblStringBody"]],fStringBody:[[/[^\\'\{\}]+$/,"string","@popall"],[/[^\\'\{\}]+/,"string"],[/\{[^\}':!=]+/,"identifier","@fStringDetail"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],fDblStringBody:[[/[^\\"\{\}]+$/,"string","@popall"],[/[^\\"\{\}]+/,"string"],[/\{[^\}':!=]+/,"identifier","@fStringDetail"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]],fStringDetail:[[/[:][^}]+/,"string"],[/[!][ars]/,"string"],[/=/,"string"],[/\}/,"identifier","@pop"]]}};export{t as conf,s as language};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{t as Xt,bq as Y,a_ as z,by as Kt,bu as D,bs as Gt,b as Jt,bo as o,_ as Nt}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/mp47640j.js","/app/immutable/chunks/BL_sVoge.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/chunks/D3ROSEe0.js","/app/immutable/chunks/CgPr4hs2.js","/app/immutable/chunks/P80hEEPK.js","/app/immutable/chunks/wSFhIxGo.js","/app/immutable/chunks/D-Zd1oaK.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{t as Xt,bq as Y,a_ as z,by as Kt,bu as D,bs as Gt,b as Jt,bo as o,_ as Nt}from"./CgPr4hs2.js";import{bs as Qt,ca as S,bH as U,c5 as ft,aD as Z,bj as Yt,a5 as A,bS as p,bA as F,b_ as b,W as h,bn as Zt,cd as tt,bV as _t,c9 as te,aA as et,bl as E,bO as y,ay as vt,aB as k}from"./B8o4lNgr.js";import{k as xt,l as ee}from"./CsstSIr0.js";import{b as re}from"./D2g8BuR1.js";import{b as se}from"./Bsxt04FP.js";import{G9 as u,A4 as ae,zW as ne,zV as oe,G3 as ie,zH as le,hJ as ce,i4 as ue}from"./BL_sVoge.js";import{a as de,T as pe,D as me,L as fe,o as _e}from"./CskCO23D.js";import{F as rt,cT as ve,c2 as xe,cP as he}from"./B7NNbItI.js";import{f as ht}from"./Ps9iRbKd.js";import{n as G}from"./Bo4f3vLH.js";import"./D3ROSEe0.js";import"./ChTqQfQN.js";import"./D32qvOGn.js";import{r as ge}from"./D9ikaMyr.js";import{selectScriptById as st,selectScriptRuntime as be,selectScriptOutput as gt,selectScriptRetainedOutput as ye,selectCanDeleteScript as bt}from"./pEUfw1x0.js";import{g as ke}from"./rpeM9FmT.js";import{bP as we,dE as $e,df as yt}from"./Df2ohObb.js";import"./q4FIdUSc.js";import"./CE7ZtQHh.js";import"./Bn3UQ-Cp.js";import{c as Se}from"./BEOSERRe.js";var kt=k("<!> ",1),Ae=k('<div class="bg-danger-background/20 border-y border-danger/20 px-3 py-1.5 flex items-center justify-between"><div class="flex items-center gap-2 text-sm text-danger font-medium"><div class="w-4 h-4 rounded-full bg-danger-background flex items-center justify-center"><!></div> <span> </span></div> <!></div>'),Fe=k('<pre class="retained-text px-3 pb-3 text-xs svelte-115p4sl"> </pre>'),Ce=k('<p class="px-3 pb-3 text-xs text-muted-foreground" role="status"> </p>'),Oe=k('<details class="retained-output border-b border-border svelte-115p4sl"><summary class="cursor-pointer px-3 py-2 text-xs text-muted-foreground"> </summary> <p class="px-3 pb-2 text-xs text-muted-foreground"> </p> <!></details>'),Re=k('<div class="px-3 py-1 text-xs text-muted-foreground"> </div>'),Ie=k('<code class="text-muted-foreground font-mono text-xs"> </code>'),Le=k('<div class="flex-1 flex items-center justify-center px-4 py-8"><div class="flex items-center gap-3 text-sm"><span class="text-subtle font-mono">$</span> <!> <!></div></div>'),Te=k('<div><!> <!> <!> <!> <div><div class="xterm-output svelte-115p4sl"></div></div></div>');function ze(f,m){if(new.target)return Xt({component:ze,...f});Qt(m,!0);const H=()=>D(It,"$outputAuthority",O),i=()=>D(At,"$runtime$",O),_=()=>D(Ft,"$output$",O),C=()=>D(Rt,"$codeFontFamilyCSS",O),P=()=>D(Ct,"$retainedOutput$",O),wt=()=>D(Ot,"$hidesAgentLifecycleActions$",O),at=()=>D(St,"$script$",O),[O,$t]=Gt();let w=Y(m,"scriptId",7),v=Y(m,"workspaceId",7),J=Y(m,"class",7,"");const R=tt(""),B=tt(""),nt=tt("");let N=_t(!1);S(()=>R.set(v())),S(()=>B.set(w()));let I,n=null,W=null,V=null,M=null,L=null,j=null;const St=st(R,B),At=be(R,B),Ft=gt(R,B),Ct=ye(R,B,nt),Ot=we(R),Rt=ke(),It=$e(R),ot=crypto.randomUUID();S(()=>{const t=v();return w(),()=>{t&&u.dispatch(ae(t,ot))}}),S(()=>{const t=v(),e=w(),s=H(),r=i();if(!s||!t||!e)return;r.status,r.startedAt;const l=crypto.randomUUID();return nt.set(l),U(N,ft(()=>_().chunks.length===0),!0),u.dispatch(ne(t,e,l)),()=>u.dispatch(oe(t,e,l))});let X=_t(0);const Lt=te(()=>i().status==="exited"&&i().exitCode!=null&&i().exitCode!==0&&i().exitCode<128);function Tt(){if(!I||n)return;M=new pe(I);const t=M.getCurrentTheme();n=new me({allowProposedApi:!0,fontFamily:C(),fontSize:13,lineHeight:1.2,letterSpacing:0,cursorBlink:!1,cursorStyle:"underline",cursorWidth:1,scrollback:1e4,allowTransparency:!0,convertEol:!0,disableStdin:!0,drawBoldTextInBrightColors:!0,theme:t}),n.attachCustomKeyEventHandler(s=>{const r=s.metaKey||s.ctrlKey;return!(r&&s.key==="`"||r&&s.key==="j"||r&&s.key==="k")}),W=new _e,n.loadAddon(W);const e=new fe((s,r)=>{try{const l=new URL(r);l.hostname==="localhost"||l.hostname==="127.0.0.1"?ge(r).then(g=>{Nt(async()=>{const{getPanelLayoutManager:c}=await import("./mp47640j.js").then(x=>x.p);return{getPanelLayoutManager:c}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url).then(({getPanelLayoutManager:c})=>{c(v()).openBrowserPanel(g.url,void 0,void 0,g.requestedUrl)}).catch(()=>{window.open(g.url,"_blank")})}):window.open(r,"_blank")}catch{window.open(r,"_blank")}});n.loadAddon(e),n.open(I),M.applyTheme(n),j=requestAnimationFrame(()=>{j=null,W?.fit()}),V=new ResizeObserver(()=>{W?.fit()}),V.observe(I),zt()}function zt(){if(!n)return;const t=gt.select(u.state,v(),w());t.chunks.length>0&&n.write(t.chunks.map(e=>e.text).join("")),U(X,t.dropped+t.chunks.length)}function it(){L!==null&&(cancelAnimationFrame(L),L=null),j!==null&&(cancelAnimationFrame(j),j=null),V?.disconnect(),V=null,M?.dispose(),M=null;const t=n;n=null,W=null,U(X,0),t&&de(t)}S(()=>{const t=_(),e=ft(()=>Z(X)),s=t.dropped+t.chunks.length;if(!n||s<=e)return;const r=Math.max(e-t.dropped,0);n.write(t.chunks.slice(r).map(l=>l.text).join("")),U(X,s)}),S(()=>{const t=C();n&&n.options.fontFamily!==t&&(n.options.fontFamily=t)});function Dt(){u.dispatch(ie(v(),w()))}function Et(){if(!v()){G.error(o.terminal_scriptOutput_noWorkspace_error());return}u.dispatch(ce(v(),w(),P()?.text,ot))}S(()=>{i().status==="idle"&&_().chunks.length===0&&it()}),S(()=>{!(i().status==="idle"&&_().chunks.length===0)&&I&&!n&&(L!==null&&cancelAnimationFrame(L),L=requestAnimationFrame(()=>{L=null,Tt()}))}),Yt(()=>{it()});var Pt={get scriptId(){return w()},set scriptId(t){w(t),et()},get workspaceId(){return v()},set workspaceId(t){v(t),et()},get class(){return J()},set class(t=""){J(t),et()},$set:Kt,$on:(t,e)=>Jt(m,t,e)},K=Te(),lt=A(K);{var qt=t=>{var e=Ae(),s=A(e),r=A(s),l=A(r);rt(l,{get icon(){return ve},size:"xs"}),F(r);var g=p(r,2),c=E(g,!0);F(s);var x=p(s,2);{var $=a=>{ht(a,{variant:"outline",size:"sm",class:"h-7 text-xs bg-background border border-border text-danger",onclick:Et,children:(d,T)=>{var q=kt(),mt=vt(q);rt(mt,{get icon(){return he},size:"sm",class:"mr-1.5"});var Ht=p(mt);b(Vt=>y(Ht,` ${Vt??""}`),[()=>o.terminal_scriptOutput_askAiToFix_label()]),h(d,q)},$$slots:{default:!0}})};z(x,a=>{wt()||a($)})}F(e),b(a=>y(c,a),[()=>o.terminal_scriptOutput_buildFailed_label({exitCode:i().exitCode??0})]),h(t,e)};z(lt,t=>{Z(Lt)&&t(qt)})}var ct=p(lt,2);{var Bt=t=>{var e=Oe(),s=A(e),r=E(s,!0),l=p(s,2),g=E(l,!0),c=p(l,2);{var x=a=>{var d=Fe();let T;var q=E(d,!0);b(()=>{T=ee(d,"",T,{"font-family":C()}),y(q,P().text)}),h(a,d)},$=a=>{var d=Ce(),T=E(d,!0);b(q=>y(T,q),[()=>P().status==="loading"?o.terminal_scriptOutput_retainedLoading_label():o.terminal_scriptOutput_retainedUnavailable_label()]),h(a,d)};z(c,a=>{P().status==="available"?a(x):a($,-1)})}F(e),b((a,d)=>{y(r,a),y(g,d)},[()=>o.terminal_scriptOutput_retained_label(),()=>o.terminal_scriptOutput_retained_description()]),se("open","toggle",e,a=>U(N,a),()=>Z(N)),h(t,e)};z(ct,t=>{P()&&t(Bt)})}var ut=p(ct,2);{var Wt=t=>{var e=Re(),s=E(e,!0);b(r=>y(s,r),[()=>o.terminal_scriptOutput_live_label()]),h(t,e)};z(ut,t=>{_().chunks.length>0&&P()&&t(Wt)})}var dt=p(ut,2);{var Mt=t=>{var e=Le(),s=A(e),r=p(A(s),2);{var l=c=>{var x=Ie(),$=E(x,!0);b(a=>y($,a),[()=>le(at())]),h(c,x)};z(r,c=>{at()&&c(l)})}var g=p(r,2);ht(g,{variant:"ghost",size:"xs",onclick:Dt,class:"text-muted-foreground hover:text-foreground",children:(c,x)=>{var $=kt(),a=vt($);rt(a,{get icon(){return xe},class:"h-3 w-3 mr-1"});var d=p(a);b(T=>y(d,` ${T??""}`),[()=>o.terminal_scriptOutput_run_label()]),h(c,$)},$$slots:{default:!0}}),F(s),F(e),h(t,e)};z(dt,t=>{i().status==="idle"&&_().chunks.length===0&&t(Mt)})}var Q=p(dt,2);let pt;var jt=A(Q);re(jt,t=>I=t,()=>I),F(Q),F(K),b(()=>{xt(K,1,`script-output-viewer ${J()??""}`,"svelte-115p4sl"),pt=xt(Q,1,"flex-1 relative overflow-hidden",null,pt,{hidden:i().status==="idle"&&_().chunks.length===0})}),h(f,K);var Ut=Zt(Pt);return $t(),Ut}async function rr(f,m,H){const i=st.select(u.state,f,m);if(!i||!H()||!bt.select(u.state,f,m))return;const _=yt.select(u.state,f);if(!_){G.error(o.workspace_client_accessChanged_error());return}if(!await Se({title:o.scripts_delete_title({name:i.name}),description:o.scripts_delete_description(),confirmLabel:o.scripts_delete_label(),destructive:!0}))return;if(_!==yt.select(u.state,f)){G.error(o.workspace_client_accessChanged_error());return}const C=st.select(u.state,f,m);if(!H()||!C||C.createdAt!==i.createdAt||C.name!==i.name||!bt.select(u.state,f,m)){G.error(o.scripts_delete_changed_error());return}u.dispatch(ue(f,m,o.terminal_quakeOverlay_deleteScriptFailed_error()))}export{ze as S,rr as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cz as ln,a_ as an,aB as g,co as tn,aa as C,cg as S,bH as _,i as un,bS as rn,ci as K,w as o,a7 as G,t as sn,j as on,bG as cn}from"./
|
|
1
|
+
import{cz as ln,a_ as an,aB as g,co as tn,aa as C,cg as S,bH as _,i as un,bS as rn,ci as K,w as o,a7 as G,t as sn,j as on,bG as cn}from"./LhLTjc8B.js";function fn(l){return l.innerRadius}function gn(l){return l.outerRadius}function yn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,q,b,v,A,H,a){var z=q-l,i=b-h,n=H-v,d=a-A,u=d*z-n*i;if(!(u*u<g))return u=(n*(h-A)-d*(l-v))/u,[l+u*z,h+u*i]}function V(l,h,q,b,v,A,H){var a=l-q,z=h-b,i=(H?A:-A)/K(a*a+z*z),n=i*z,d=-i*a,u=l+n,s=h+d,c=q+n,f=b+d,I=(u+c)/2,t=(s+f)/2,m=c-u,y=f-s,R=m*m+y*y,T=v-A,P=u*f-c*s,B=(y<0?-1:1)*K(cn(0,T*T*R-P*P)),D=(P*y-m*B)/R,E=(-P*m-y*B)/R,w=(P*y+m*B)/R,p=(-P*m+y*B)/R,x=D-I,e=E-t,r=w-I,O=p-t;return x*x+e*e>r*r+O*O&&(D=w,E=p),{cx:D,cy:E,x01:-n,y01:-d,x11:D*(v/T-1),y11:E*(v/T-1)}}function hn(){var l=fn,h=gn,q=G(0),b=null,v=yn,A=dn,H=mn,a=null,z=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),c=v.apply(this,arguments)-an,f=A.apply(this,arguments)-an,I=un(f-c),t=f>c;if(a||(a=n=z()),s<u&&(d=s,s=u,u=d),!(s>g))a.moveTo(0,0);else if(I>tn-g)a.moveTo(s*C(c),s*S(c)),a.arc(0,0,s,c,f,!t),u>g&&(a.moveTo(u*C(f),u*S(f)),a.arc(0,0,u,f,c,t));else{var m=c,y=f,R=c,T=f,P=I,B=I,D=H.apply(this,arguments)/2,E=D>g&&(b?+b.apply(this,arguments):K(u*u+s*s)),w=_(un(s-u)/2,+q.apply(this,arguments)),p=w,x=w,e,r;if(E>g){var O=sn(E/u*S(D)),L=sn(E/s*S(D));(P-=O*2)>g?(O*=t?1:-1,R+=O,T-=O):(P=0,R=T=(c+f)/2),(B-=L*2)>g?(L*=t?1:-1,m+=L,y-=L):(B=0,m=y=(c+f)/2)}var F=s*C(m),J=s*S(m),M=u*C(T),N=u*S(T);if(w>g){var Q=s*C(y),U=s*S(y),W=u*C(R),X=u*S(R),j;if(I<rn)if(j=pn(F,J,W,X,Q,U,M,N)){var Y=F-j[0],Z=J-j[1],$=Q-j[0],k=U-j[1],nn=1/S(on((Y*$+Z*k)/(K(Y*Y+Z*Z)*K($*$+k*k)))/2),en=K(j[0]*j[0]+j[1]*j[1]);p=_(w,(u-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else p=x=0}B>g?x>g?(e=V(W,X,F,J,s,x,t),r=V(Q,U,M,N,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,s,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),!t),a.arc(r.cx,r.cy,x,o(r.y11,r.x11),o(r.y01,r.x01),!t))):(a.moveTo(F,J),a.arc(0,0,s,m,y,!t)):a.moveTo(F,J),!(u>g)||!(P>g)?a.lineTo(M,N):p>g?(e=V(M,N,Q,U,u,-p,t),r=V(F,J,W,X,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),p<w?a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,u,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),t),a.arc(r.cx,r.cy,p,o(r.y11,r.x11),o(r.y01,r.x01),!t))):a.arc(0,0,u,T,R,t)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,d=(+v.apply(this,arguments)+ +A.apply(this,arguments))/2-rn/2;return[C(d)*n,S(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:G(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:G(+n),i):h},i.cornerRadius=function(n){return arguments.length?(q=typeof n=="function"?n:G(+n),i):q},i.padRadius=function(n){return arguments.length?(b=n==null?null:typeof n=="function"?n:G(+n),i):b},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:G(+n),i):v},i.endAngle=function(n){return arguments.length?(A=typeof n=="function"?n:G(+n),i):A},i.padAngle=function(n){return arguments.length?(H=typeof n=="function"?n:G(+n),i):H},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{hn as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./
|
|
1
|
+
import{l as e}from"./BYCiS1o9.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}]},o={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=><!]+/,identifier:/[a-zA-Z_][\w]*/,tokenizer:{root:[[/\{\%\s*comment\s*\%\}/,"comment.start.liquid","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@liquidState.root"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.root"}],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],comment:[[/\{\%\s*endcomment\s*\%\}/,"comment.end.liquid","@pop"],[/./,"comment.content.liquid"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}};export{n as conf,o as language};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as B,bq as m,a_ as P,bo as a,by as $,b as E,bu as oe,bs as ie}from"./
|
|
1
|
+
import{t as B,bq as m,a_ as P,bo as a,by as $,b as E,bu as oe,bs as ie}from"./CgPr4hs2.js";import{bs as G,a5 as S,aD as q,bS as g,bl as D,bA as O,b_ as x,bO as v,W as k,bn as M,c9 as V,aA as f,aB as R,be as W,b$ as j,c5 as L,a7 as ce,ay as le}from"./B8o4lNgr.js";import{h as de,s as N}from"./CsstSIr0.js";import{f as A}from"./Ps9iRbKd.js";import{h as ue,W as _e,i as pe}from"./B7NNbItI.js";import{a3 as ge}from"./BPomlxD-.js";import{G9 as ve,i7 as ke}from"./BL_sVoge.js";var me=R('<li class="flex items-center gap-2"><!> <span class="min-w-0 flex-1 break-words"> </span> <span class="shrink-0 text-muted-foreground"> </span></li>'),fe=R('<ul class="space-y-1 text-sm"></ul>');function X(y,n){if(new.target)return B({component:X,...y});G(n,!0);let t=m(n,"checklist",7);const p=V(()=>{const s=_=>({state:_?"done":"waiting",status:_?a.desktop_os_checklist_allowed():a.desktop_os_checklist_missing()}),r=()=>!t().accessibility||!t().screenRecording?{state:"waiting",status:a.desktop_os_checklist_blocked()}:t().screenCapture==="ready"?{state:"done",status:a.desktop_os_checklist_ready()}:t().screenCapture==="pending"?{state:"waiting",status:a.desktop_os_checklist_checking()}:{state:"failed",status:a.desktop_os_checklist_unconfirmed()};return[{label:a.desktop_os_checklist_accessibility(),...s(t().accessibility)},{label:a.desktop_os_checklist_screenRecording(),...s(t().screenRecording)},{label:a.desktop_os_checklist_screenCapture(),...r()}]});var w={get checklist(){return t()},set checklist(s){t(s),f()},$set:$,$on:(s,r)=>E(n,s,r)},c=fe();return de(c,21,()=>q(p),s=>s.label,(s,r)=>{var _=me(),h=S(_);{var b=d=>{ue(d,{class:"size-4 shrink-0 text-success","aria-hidden":"true"})},z=d=>{_e(d,{class:"size-4 shrink-0 text-danger","aria-hidden":"true"})},U=d=>{pe(d,{class:"size-4 shrink-0 text-muted-foreground","aria-hidden":"true"})};P(h,d=>{q(r).state==="done"?d(b):q(r).state==="failed"?d(z,1):d(U,-1)})}var C=g(h,2),i=D(C,!0),I=g(C,2),T=D(I,!0);O(_),x(()=>{N(_,"data-state",q(r).state),v(i,q(r).label),v(T,q(r).status)}),k(s,_)}),O(c),x(s=>N(c,"aria-label",s),[()=>a.desktop_os_checklist_title()]),k(y,c),M(w)}var he=R('<p class="text-sm text-muted-foreground"> </p>'),Q=R('<p role="status" class="text-sm"> </p>'),be=R('<div class="flex max-h-[min(calc(100dvh-8rem),calc(var(--toast-max-height,100dvh)-2rem))] min-h-0 min-w-0 flex-col gap-3" role="group"><div class="min-h-0 space-y-3 overflow-y-auto break-words" role="region" tabindex="0"><p class="font-medium break-words"> </p> <p class="text-sm text-muted-foreground"> </p> <!> <!> <!> <!></div> <div class="flex shrink-0 flex-wrap gap-2"><!> <!> <!></div></div>');function Y(y,n){if(new.target)return B({component:Y,...y});G(n,!0);let t=m(n,"request",7),p=m(n,"pending",7,!1),w=m(n,"settingUp",7,!1),c=m(n,"guidance",7),s=m(n,"checklist",7),r=m(n,"onDecision",7);var _={get request(){return t()},set request(e){t(e),f()},get pending(){return p()},set pending(e=!1){p(e),f()},get settingUp(){return w()},set settingUp(e=!1){w(e),f()},get guidance(){return c()},set guidance(e){c(e),f()},get checklist(){return s()},set checklist(e){s(e),f()},get onDecision(){return r()},set onDecision(e){r(e),f()},$set:$,$on:(e,o)=>E(n,e,o)},h=be(),b=S(h),z=S(b),U=D(z,!0),C=g(z,2),i=D(C,!0),I=g(C,2);{var T=e=>{var o=he(),l=D(o,!0);x(u=>v(l,u),[()=>a.desktop_consent_claimPrimary({computer:t().computerName})]),k(e,o)};P(I,e=>{t().claimsPrimary&&e(T)})}var d=g(I,2);{var ee=e=>{X(e,{get checklist(){return s()}})};P(d,e=>{s()&&e(ee)})}var F=g(d,2);{var te=e=>{var o=Q(),l=D(o,!0);x(()=>v(l,c())),k(e,o)};P(F,e=>{c()&&e(te)})}var se=g(F,2);{var re=e=>{var o=Q(),l=D(o,!0);x(u=>v(l,u),[()=>a.desktop_consent_pending()]),k(e,o)};P(se,e=>{p()&&!w()&&e(re)})}O(b);var H=g(b,2),J=S(H);A(J,{size:"compact",variant:"primary",get disabled(){return p()},onclick:()=>r()("allow_once"),children:(e,o)=>{W();var l=j();x(u=>v(l,u),[()=>a.desktop_consent_once()]),k(e,l)},$$slots:{default:!0}});var K=g(J,2);A(K,{size:"compact",variant:"outline",get disabled(){return p()},onclick:()=>r()("allow_future"),children:(e,o)=>{W();var l=j();x(u=>v(l,u),[()=>a.desktop_consent_future()]),k(e,l)},$$slots:{default:!0}});var ae=g(K,2);{let e=V(()=>p()&&!w());A(ae,{size:"compact",variant:"ghost",get disabled(){return q(e)},onclick:()=>r()("deny"),children:(o,l)=>{W();var u=j();x(ne=>v(u,ne),[()=>a.desktop_consent_deny()]),k(o,u)},$$slots:{default:!0}})}return O(H),O(h),x((e,o,l,u)=>{N(h,"aria-label",e),N(b,"aria-label",o),v(U,l),v(i,u)},[()=>a.desktop_consent_title(),()=>a.desktop_consent_title(),()=>a.desktop_consent_request({agent:t().agentName,computer:t().computerName}),()=>a.desktop_consent_description()]),k(y,h),M(_)}function Z(y,n){if(new.target)return B({component:Z,...y});G(n,!0);const t=()=>oe(_,"$entry",p),[p,w]=ie();let c=m(n,"workspaceId",7),s=m(n,"agentId",7),r=m(n,"requestId",7);const _=ge(L(()=>c()),L(()=>s()));var h={get workspaceId(){return c()},set workspaceId(i){c(i),f()},get agentId(){return s()},set agentId(i){s(i),f()},get requestId(){return r()},set requestId(i){r(i),f()},$set:$,$on:(i,I)=>E(n,i,I)},b=ce(),z=le(b);{var U=i=>{Y(i,{get request(){return t().pending},get pending(){return t().submitting},get settingUp(){return t().settingUp},get guidance(){return t().error},get checklist(){return t().osChecklist},onDecision:I=>ve.dispatch(ke(c(),s(),r(),I))})};P(z,i=>{t()?.pending?.requestId===r()&&i(U)})}k(y,b);var C=M(h);return w(),C}const ze=Object.freeze(Object.defineProperty({__proto__:null,default:Z},Symbol.toStringTag,{value:"Module"}));export{Z as D,ze as a,X as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var vo=Object.defineProperty;var bo=(e,t,i)=>t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var v=(e,t,i)=>bo(e,typeof t!="symbol"?t+"":t,i);import{t as ir,bq as M,a_ as we,by as nr,b as rr,bu as dn,bs as So,bo as je}from"./
|
|
1
|
+
var vo=Object.defineProperty;var bo=(e,t,i)=>t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var v=(e,t,i)=>bo(e,typeof t!="symbol"?t+"":t,i);import{t as ir,bq as M,a_ as we,by as nr,b as rr,bu as dn,bs as So,bo as je}from"./CgPr4hs2.js";import{bs as or,a5 as De,ay as hn,bS as Xe,aD as C,bA as ke,b_ as Me,bO as rt,W as le,bl as Xt,be as Hi,bn as sr,c9 as ne,aA as I,b$ as ar,aB as ge,ai as yo,bV as Te,br as Co,ca as $e,bH as Y,c5 as dt,bk as xo,bj as Lo,aj as wo,c0 as fn}from"./B8o4lNgr.js";import{h as ko,i as Eo,k as un,l as pi,s as cn}from"./CsstSIr0.js";import{b as Ro}from"./C3hWtekV.js";import{b as pn}from"./D2g8BuR1.js";import{h as Ao,c as Ye,w as lr,N as O,O as Jt,aX as Qe,a as dr,j as hr,P as Je,H as fr,i as ur,a9 as cr,U as Ho,f as To,e as pr,T as Do,g as Mo,S as Io,a3 as Ze,a2 as Ve,C as Fo,G as gr,F as No,I as Po,A as At,af as zo,_ as Ht,ab as Tt,v as St,a0 as Ti,s as J,r as Ue,al as wt,D as Uo,d as _o,a8 as mr,b as gn,u as mn,aC as Oo,am as ct,aa as Bo,K as Le,M as Ut,L as Vo,$ as Dt,E as Wo,aj as vr,a5 as Go,a1 as vn,t as br,ad as ft,a4 as kt,ac as ot,ae as Sr,B as gi,a7 as mi,k as jo,aB as bn}from"./C7KdCylX.js";import{F as vi,c0 as $o,bd as qo,au as Ko,at as Xo}from"./B7NNbItI.js";import{f as Di}from"./Ps9iRbKd.js";import{g as Yo}from"./rpeM9FmT.js";import{d as Qo}from"./D32qvOGn.js";import{P as Jo}from"./4cIwmSuD.js";import{t as Sn}from"./CFHzcj7N.js";class Zo extends Ao{constructor(){super(...arguments),this.tokenize=ts}equals(t,i,n){return n.ignoreWhitespace?((!n.newlineIsToken||!t.includes(`
|
|
2
2
|
`))&&(t=t.trim()),(!n.newlineIsToken||!i.includes(`
|
|
3
3
|
`))&&(i=i.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(t.endsWith(`
|
|
4
4
|
`)&&(t=t.slice(0,-1)),i.endsWith(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as D}from"./
|
|
1
|
+
import{c as D}from"./DgO-InVL.js";import{H as d,d as l,e as u,F as c,g as h,S as m,h as p,c as w,f as _,C as R}from"./iCHr0TgO.js";import{D as H,a as b,b as y,R as T,i as U,j as x,t as M,k as j}from"./iCHr0TgO.js";import{l as t}from"./BYCiS1o9.js";const I=120*1e3;class f{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>I&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=D({moduleId:"vs/language/html/htmlWorker",createWorker:()=>new Worker(new URL("/app/immutable/workers/html.worker-QVzu2jYR.js",import.meta.url),{type:"module"}),createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(r=>{e=r}).then(r=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(r=>e)}}class v extends R{constructor(n){super(n,[".",":","<",'"',"=","/"])}}function W(i){const n=new f(i),e=(...o)=>n.getLanguageServiceWorker(...o);let r=i.languageId;t.registerCompletionItemProvider(r,new v(e)),t.registerHoverProvider(r,new d(e)),t.registerDocumentHighlightProvider(r,new l(e)),t.registerLinkProvider(r,new u(e)),t.registerFoldingRangeProvider(r,new c(e)),t.registerDocumentSymbolProvider(r,new h(e)),t.registerSelectionRangeProvider(r,new m(e)),t.registerRenameProvider(r,new p(e)),r==="html"&&(t.registerDocumentFormattingEditProvider(r,new w(e)),t.registerDocumentRangeFormattingEditProvider(r,new _(e)))}function F(i){const n=[],e=[],r=new f(i);n.push(r);const o=(...s)=>r.getLanguageServiceWorker(...s);function P(){const{languageId:s,modeConfiguration:a}=i;k(e),a.completionItems&&e.push(t.registerCompletionItemProvider(s,new v(o))),a.hovers&&e.push(t.registerHoverProvider(s,new d(o))),a.documentHighlights&&e.push(t.registerDocumentHighlightProvider(s,new l(o))),a.links&&e.push(t.registerLinkProvider(s,new u(o))),a.documentSymbols&&e.push(t.registerDocumentSymbolProvider(s,new h(o))),a.rename&&e.push(t.registerRenameProvider(s,new p(o))),a.foldingRanges&&e.push(t.registerFoldingRangeProvider(s,new c(o))),a.selectionRanges&&e.push(t.registerSelectionRangeProvider(s,new m(o))),a.documentFormattingEdits&&e.push(t.registerDocumentFormattingEditProvider(s,new w(o))),a.documentRangeFormattingEdits&&e.push(t.registerDocumentRangeFormattingEditProvider(s,new _(o)))}return P(),n.push(g(e)),g(n)}function g(i){return{dispose:()=>k(i)}}function k(i){for(;i.length;)i.pop().dispose()}export{R as CompletionAdapter,H as DefinitionAdapter,b as DiagnosticsAdapter,y as DocumentColorAdapter,w as DocumentFormattingEditProvider,l as DocumentHighlightAdapter,u as DocumentLinkAdapter,_ as DocumentRangeFormattingEditProvider,h as DocumentSymbolAdapter,c as FoldingRangeAdapter,d as HoverAdapter,T as ReferenceAdapter,p as RenameAdapter,m as SelectionRangeAdapter,f as WorkerManager,U as fromPosition,x as fromRange,F as setupMode,W as setupMode1,M as toRange,j as toTextEdit};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as s,N as u,T as c,a as f,g as d,w as T}from"./
|
|
1
|
+
import{n as s,N as u,T as c,a as f,g as d,w as T}from"./Bo4f3vLH.js";import"./B8o4lNgr.js";import"./CgPr4hs2.js";import"./CsstSIr0.js";import"./D3ROSEe0.js";import"./Ps9iRbKd.js";import"./ChTqQfQN.js";import"./D32qvOGn.js";import"./BL_sVoge.js";const b="input, textarea, select";function o(t){return"editContext"in t&&t.editContext!=null}function a(t){return t instanceof HTMLElement?t.isContentEditable===!0||t.contentEditable==="true"||t.contentEditable==="plaintext-only":!1}function l(t){return!t||typeof Element>"u"||!(t instanceof Element)?null:t}function y(t){const e=l(t);if(!e)return!1;if(a(e)||o(e)||e.closest(b))return!0;const n=e.closest('[contenteditable="false"]'),i=e.closest('[role="textbox"]');if(i&&(!n||n.contains(i)))return!0;const r=e.closest("[contenteditable]");return r!==null&&r.getAttribute("contenteditable")!=="false"}function S(t){const e=l(t);return e?e instanceof HTMLTextAreaElement||a(e)||o(e)||e.getAttribute("role")==="textbox"&&e.getAttribute("aria-multiline")==="true"&&e.getAttribute("aria-readonly")!=="true":!1}const g=Object.freeze(Object.defineProperty({__proto__:null,NOTIFY_DURATION:u,TOAST_COUNTDOWN_CLASS:c,TOAST_COUNTDOWN_NO_HOVER_PAUSE_CLASS:f,notify:s,notifyMetadata:d,withToastCountdown:T},Symbol.toStringTag,{value:"Module"}));export{S as a,y as b,g as i};
|