@intent-hq/web 2.380.1 → 2.380.2
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/{CeRXl9-a.js → -JLE-MH3.js} +4 -4
- package/web/app/immutable/chunks/{CP6uC9cs.js → -dKAv9Ms.js} +1 -1
- package/web/app/immutable/chunks/{BT-SBMwG.js → 1dbDRyGN.js} +1 -1
- package/web/app/immutable/chunks/{CC0zIW-Q.js → 2puxKgt3.js} +1 -1
- package/web/app/immutable/chunks/{Qq8kw_LR.js → 5c5u2wp9.js} +1 -1
- package/web/app/immutable/chunks/{DXlnaAqr.js → 74m07TNS.js} +1 -1
- package/web/app/immutable/chunks/{D4xidzA_.js → AOoEROCP.js} +1 -1
- package/web/app/immutable/chunks/{B4vl19YV.js → B1xNXUaS.js} +1 -1
- package/web/app/immutable/chunks/{C7tMlsfz.js → B21voolw.js} +1 -1
- package/web/app/immutable/chunks/{euj4yvIS.js → B2g3PsnP.js} +1 -1
- package/web/app/immutable/chunks/{Bd-3nxyB.js → BB3cWwFJ.js} +1 -1
- package/web/app/immutable/chunks/{CeyWhdyo.js → BBHD_Lm3.js} +3 -3
- package/web/app/immutable/chunks/{CpggW3GS.js → BCSu8Kae.js} +1 -1
- package/web/app/immutable/chunks/{DcVQUcOT.js → BDaC_cR9.js} +1 -1
- package/web/app/immutable/chunks/{BCME5FCI.js → BEdb_kJ1.js} +2 -2
- package/web/app/immutable/chunks/{CT1DR1ub.js → BEgw9GnT.js} +1 -1
- package/web/app/immutable/chunks/{BHQUrNk1.js → BJTlNgwB.js} +3 -3
- package/web/app/immutable/chunks/{BvjokUWx.js → BJWNbP1T.js} +1 -1
- package/web/app/immutable/chunks/{DP1oZD4h.js → BKwFxzi5.js} +1 -1
- package/web/app/immutable/chunks/{8yY720EA.js → BMEo-arP.js} +1 -1
- package/web/app/immutable/chunks/{XnLS-7bS.js → BMSrYzQd.js} +1 -1
- package/web/app/immutable/chunks/{DU4vrWyh.js → BOxy6wNc.js} +13 -13
- package/web/app/immutable/chunks/{B6kWt-NF.js → BP7v0M1i.js} +1 -1
- package/web/app/immutable/chunks/{CszQUuHS.js → BRNp63JV.js} +1 -1
- package/web/app/immutable/chunks/{_xgByTRL.js → BRUpZQr7.js} +1 -1
- package/web/app/immutable/chunks/{BVZYGKUs.js → BRXgjmuv.js} +1 -1
- package/web/app/immutable/chunks/{ClRyc1RP.js → BTN1jPM5.js} +3 -3
- package/web/app/immutable/chunks/{Cw8_SJ4E.js → BW35iDB6.js} +1 -1
- package/web/app/immutable/chunks/{DH97ZRMJ.js → BXTghY6K.js} +2 -2
- package/web/app/immutable/chunks/{D5xVaXHm.js → BXkxa9RR.js} +1 -1
- package/web/app/immutable/chunks/{DwHA7V2D.js → Bb-q19YK.js} +1 -1
- package/web/app/immutable/chunks/{DBfX4Zz1.js → Bb83sLx1.js} +1 -1
- package/web/app/immutable/chunks/{CK0iX2TE.js → BbC_KIeA.js} +1 -1
- package/web/app/immutable/chunks/{BUs9PHLx.js → BbV3pyKB.js} +1 -1
- package/web/app/immutable/chunks/Bbw2E1FT.js +10 -0
- package/web/app/immutable/chunks/{Dpx4iP0s.js → BciuDshC.js} +1 -1
- package/web/app/immutable/chunks/{DDZsOuFy.js → Be-Jb4_f.js} +1 -1
- package/web/app/immutable/chunks/{Cd3YgLQX.js → BjkQhjI5.js} +1 -1
- package/web/app/immutable/chunks/{ofygnKUk.js → BjwLNefz.js} +1 -1
- package/web/app/immutable/chunks/{CABtGAhT.js → BmJfqz2T.js} +1 -1
- package/web/app/immutable/chunks/{Dlr9TJoI.js → Bof17S2S.js} +1 -1
- package/web/app/immutable/chunks/{DlzMT6wV.js → Bp4qWaFc.js} +1 -1
- package/web/app/immutable/chunks/{aci0ifiz.js → BulGva3_.js} +1 -1
- package/web/app/immutable/chunks/{ChbSsiLP.js → BvV0Fq2a.js} +1 -1
- package/web/app/immutable/chunks/{UEAQx6Yh.js → BznVu-hG.js} +2 -2
- package/web/app/immutable/chunks/{DuXKOgBL.js → C5SxsH1c.js} +1 -1
- package/web/app/immutable/chunks/{BYW8f2oV.js → C9EDY57G.js} +2 -2
- package/web/app/immutable/chunks/{Cvu5TPZ8.js → CBFoHUVg.js} +1 -1
- package/web/app/immutable/chunks/{BVVQo5Xu.js → CBPShe5G.js} +1 -1
- package/web/app/immutable/chunks/{vtO9QTmA.js → CCkaODYb.js} +1 -1
- package/web/app/immutable/chunks/{HW5J3T7a.js → CGEVLJ_A.js} +28 -28
- package/web/app/immutable/chunks/{BHM1cyPv.js → CK4oXURc.js} +1 -1
- package/web/app/immutable/chunks/{BO6AmRhX.js → CRXks0_1.js} +1 -1
- package/web/app/immutable/chunks/{Dm-G_mI5.js → CRfwZ8f3.js} +1 -1
- package/web/app/immutable/chunks/{CMYiw90g.js → CS54ialF.js} +1 -1
- package/web/app/immutable/chunks/{DmRVnIPJ.js → CV_AJeel.js} +1 -1
- package/web/app/immutable/chunks/{MUcwQb8t.js → C_6rv-qY.js} +2 -2
- package/web/app/immutable/chunks/{BGIIIhAt.js → CcqCUp8i.js} +3 -3
- package/web/app/immutable/chunks/{D5caROAF.js → CdCKSAgV.js} +4 -4
- package/web/app/immutable/chunks/{BYeqTXC2.js → CkO2g1VP.js} +1 -1
- package/web/app/immutable/chunks/{BPsBKYg_.js → CmqZ_uDU.js} +1 -1
- package/web/app/immutable/chunks/{CM22-mrT.js → CojUJLjr.js} +1 -1
- package/web/app/immutable/chunks/{9kN-cZth.js → CotGE-m-.js} +1 -1
- package/web/app/immutable/chunks/{Bs12y6Hh.js → CpZNLuHP.js} +3 -3
- package/web/app/immutable/chunks/{2tIg3zRC.js → CrQr5_YW.js} +1 -1
- package/web/app/immutable/chunks/{COAAEUqs.js → CrdcZu11.js} +1 -1
- package/web/app/immutable/chunks/{S_Knf_qw.js → Cucvgq1K.js} +1 -1
- package/web/app/immutable/chunks/{CXHQfPPq.js → CwVJyoHD.js} +1 -1
- package/web/app/immutable/chunks/{JPasKHb8.js → Cy2m2CfS.js} +2 -2
- package/web/app/immutable/chunks/{Drd1b60V.js → Cz5Hv9sn.js} +1 -1
- package/web/app/immutable/chunks/{Bondcgar.js → CzIv7WqU.js} +1 -1
- package/web/app/immutable/chunks/{DXxcUvjl.js → D-Skc-gA.js} +1 -1
- package/web/app/immutable/chunks/{nTzhI5F1.js → D2PGZRb2.js} +1 -1
- package/web/app/immutable/chunks/{DKEI0MVx.js → D3Wg0gqD.js} +1 -1
- package/web/app/immutable/chunks/{D9uTgrXZ.js → D5ayvLGk.js} +1 -1
- package/web/app/immutable/chunks/{C5UZ-z7q.js → D7Tb-oBi.js} +2 -2
- package/web/app/immutable/chunks/{BVls_E6i.js → DAHoZmt8.js} +1 -1
- package/web/app/immutable/chunks/{BvGA2PYn.js → DB1h2uGU.js} +1 -1
- package/web/app/immutable/chunks/{B2KdznJa.js → DBJbYfc6.js} +1 -1
- package/web/app/immutable/chunks/{CjVluV7J.js → DBtIzklc.js} +1 -1
- package/web/app/immutable/chunks/{CdaU-PJY.js → DCZ7ZeSa.js} +1 -1
- package/web/app/immutable/chunks/{DX_XAJ78.js → DDOOK5tK.js} +2 -2
- package/web/app/immutable/chunks/{BYm3oGAs.js → DDclEwl2.js} +1 -1
- package/web/app/immutable/chunks/{4TQ-wOQj.js → DFipwLBj.js} +1 -1
- package/web/app/immutable/chunks/{DgHQu-vA.js → DGHKoUB4.js} +1 -1
- package/web/app/immutable/chunks/{Bwkbh1IC.js → DN-88F5G.js} +1 -1
- package/web/app/immutable/chunks/{H8SQAotj.js → DOqmXX9e.js} +3 -3
- package/web/app/immutable/chunks/{C7vUMkVq.js → DVyf0Z1m.js} +1 -1
- package/web/app/immutable/chunks/{C3btDKsC.js → DW4YQKLG.js} +2 -2
- package/web/app/immutable/chunks/{CYkq1Sp7.js → DXfaRo39.js} +1 -1
- package/web/app/immutable/chunks/{CBpGFpXN.js → DZHxRiqY.js} +1 -1
- package/web/app/immutable/chunks/{BpY_21Cw.js → D_JABMnu.js} +4 -4
- package/web/app/immutable/chunks/{BUrKWYyT.js → DatjVtLS.js} +1 -1
- package/web/app/immutable/chunks/{BNq2Q1Ih.js → DcBIF7Rq.js} +1 -1
- package/web/app/immutable/chunks/{BEWzvyPM.js → Di7v0QY-.js} +1 -1
- package/web/app/immutable/chunks/{Uqxgj6Y3.js → Dl20kVCh.js} +1 -1
- package/web/app/immutable/chunks/{D1bYGUz7.js → Dovx3rUr.js} +1 -1
- package/web/app/immutable/chunks/{P555Pw2w.js → Dp1OfebQ.js} +2 -2
- package/web/app/immutable/chunks/{CN4T3mPu.js → DqfD4gd3.js} +4 -4
- package/web/app/immutable/chunks/{BOzhtrmb.js → Ds5Q8uKz.js} +1 -1
- package/web/app/immutable/chunks/DtNZdcoN.js +1 -0
- package/web/app/immutable/chunks/{D7DlvngK.js → Dvke1Kfe.js} +1 -1
- package/web/app/immutable/chunks/{D_kqKAPb.js → DzP46o7x.js} +1 -1
- package/web/app/immutable/chunks/{BZUgE8w7.js → E9tAcwfB.js} +1 -1
- package/web/app/immutable/chunks/{9Z-CGmW0.js → F2lFeQhm.js} +1 -1
- package/web/app/immutable/chunks/{B6aNgl-u.js → Gapwl2d0.js} +6 -6
- package/web/app/immutable/chunks/{Dzs4VSAo.js → J2YQRl3p.js} +1 -1
- package/web/app/immutable/chunks/{Erflp_L7.js → PwFcPK-k.js} +1 -1
- package/web/app/immutable/chunks/{ChsjUXyy.js → RBzVbLNL.js} +1 -1
- package/web/app/immutable/chunks/{Btjc8Ky7.js → S0MU43YC.js} +1 -1
- package/web/app/immutable/chunks/{CY6yMXcg.js → UXMpUTdi.js} +1 -1
- package/web/app/immutable/chunks/{CpkJczBg.js → V42EPAbc.js} +1 -1
- package/web/app/immutable/chunks/{Cz2wArhm.js → WHFRbKWV.js} +1 -1
- package/web/app/immutable/chunks/{CU8fY_M-.js → ZxQTgC4o.js} +1 -1
- package/web/app/immutable/chunks/{CgfPG4f5.js → ahEX06ui.js} +1 -1
- package/web/app/immutable/chunks/{hyWBwv6O.js → bIHkNqS6.js} +3 -3
- package/web/app/immutable/chunks/{aUozHpqP.js → f-VzLeOW.js} +1 -1
- package/web/app/immutable/chunks/{Q4J_06hE.js → fCrfqr5K.js} +1 -1
- package/web/app/immutable/chunks/{DKushSGX.js → h9cL4yIW.js} +1 -1
- package/web/app/immutable/chunks/{4IwpvVwZ.js → iNcjHTTN.js} +1 -1
- package/web/app/immutable/chunks/{3XDqrO07.js → nMInHUhg.js} +1 -1
- package/web/app/immutable/chunks/{DGsSBTnE.js → nb5JVkH_.js} +1 -1
- package/web/app/immutable/chunks/{4dEsEkEW.js → obpnHgR7.js} +1 -1
- package/web/app/immutable/chunks/{BbCHGRAU.js → r6nQQkL6.js} +1 -1
- package/web/app/immutable/chunks/{DLNiSKjY.js → shKa9J46.js} +1 -1
- package/web/app/immutable/chunks/{YloBm2cw.js → tRGBGobh.js} +1 -1
- package/web/app/immutable/chunks/{Df0tkK9d.js → u4a_zFqR.js} +1 -1
- package/web/app/immutable/entry/{app.BdrQALQh.js → app.Drisb67n.js} +2 -2
- package/web/app/immutable/entry/start.CXDBgd5a.js +1 -0
- package/web/app/immutable/nodes/{0.DBZauBI2.js → 0.DM2FjZs8.js} +1 -1
- package/web/app/immutable/nodes/{1.CPgNb4Lf.js → 1.CPbnMoYn.js} +1 -1
- package/web/app/immutable/nodes/{10.DZuMROM9.js → 10.3aiT0H1q.js} +4 -4
- package/web/app/immutable/nodes/{11.DPsQWzO9.js → 11.IKNWM7uE.js} +1 -1
- package/web/app/immutable/nodes/{15.BThkGFQN.js → 15.BdrlcTYz.js} +1 -1
- package/web/app/immutable/nodes/{19.CnfYy9JE.js → 19.xzNsaGtg.js} +2 -2
- package/web/app/immutable/nodes/{2.BU41VxwM.js → 2.C07p07DF.js} +4 -4
- package/web/app/immutable/nodes/{3.BlGAsrV5.js → 3.C1LwF6Gn.js} +1 -1
- package/web/app/immutable/nodes/{4.C9rwZlbu.js → 4.7eQ5PHHx.js} +1 -1
- package/web/app/immutable/nodes/{5.B9pXjqPK.js → 5.DlTo-RR7.js} +1 -1
- package/web/app/immutable/nodes/{6.5nx1seqd.js → 6.aleW2ztl.js} +1 -1
- package/web/app/immutable/nodes/{7.DaUM6jFq.js → 7.kl3M0mO2.js} +1 -1
- package/web/app/immutable/nodes/{8.BHoZX-hs.js → 8.CASFO6_p.js} +1 -1
- package/web/app/immutable/nodes/{9.E1SwTSp3.js → 9.Bt5uNnEK.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/2V-FT4ZN.js +0 -1
- package/web/app/immutable/chunks/DfaT6T2d.js +0 -10
- package/web/app/immutable/entry/start.BqlnF3U7.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
var lC=Object.defineProperty;var cC=(e,t,r)=>t in e?lC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var xr=(e,t,r)=>cC(e,typeof t!="symbol"?t+"":t,r);import{_ as Ve,t as Oo,bo as He,bm as je,bw as Do,b as Ro,bp as hC}from"./Dv_tIgjy.js";import{g as dC}from"./BdWqymET.js";import{aR as bs}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/iNcjHTTN.js","/app/immutable/chunks/tRGBGobh.js","/app/immutable/chunks/C_6rv-qY.js","/app/immutable/chunks/Dv_tIgjy.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/-xK_vQQs.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/DZHxRiqY.js","/app/immutable/chunks/BciuDshC.js","/app/immutable/chunks/BKwFxzi5.js","/app/immutable/chunks/lAmQKSWr.js","/app/immutable/chunks/BCSu8Kae.js","/app/immutable/chunks/B2g3PsnP.js","/app/immutable/chunks/BjkQhjI5.js","/app/immutable/chunks/CCkaODYb.js","/app/immutable/chunks/BDaC_cR9.js","/app/immutable/chunks/CK4oXURc.js","/app/immutable/chunks/BvV0Fq2a.js","/app/immutable/chunks/BqA-3o9l.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CWhRK5Rp.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CXuejdJ2.js","/app/immutable/chunks/BPxuNmyn.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/B80pUkKE.js","/app/immutable/chunks/DpKzpN4e.js","/app/immutable/chunks/D7nvPiBp.js","/app/immutable/chunks/DLx1kqr5.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/52P8Bm3E.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/D7fB2Oi-.js","/app/immutable/chunks/BsmBUb2A.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/CTbHaK7N.js","/app/immutable/chunks/JGtSKGY1.js","/app/immutable/chunks/Ds5Q8uKz.js","/app/immutable/chunks/I4WMrmBa.js","/app/immutable/chunks/Z_oRTxSz.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/D6gLzTDC.js","/app/immutable/chunks/KS3jDVZW.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/CaXlovz7.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/BEdb_kJ1.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/Bsz2ybz8.js","/app/immutable/chunks/3W8n_N-7.js","/app/immutable/chunks/CIlKWLok.js","/app/immutable/chunks/CxTWC0xh.js","/app/immutable/chunks/BivYofy-.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/ChmjyeX7.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/DGHKoUB4.js","/app/immutable/chunks/CrQr5_YW.js","/app/immutable/chunks/F2lFeQhm.js","/app/immutable/chunks/BP7v0M1i.js","/app/immutable/chunks/BulGva3_.js","/app/immutable/chunks/BEgw9GnT.js","/app/immutable/chunks/ef8UrOvU.js","/app/immutable/chunks/CzIv7WqU.js","/app/immutable/chunks/BRXgjmuv.js","/app/immutable/chunks/2puxKgt3.js","/app/immutable/chunks/DDclEwl2.js","/app/immutable/chunks/nb5JVkH_.js","/app/immutable/chunks/DAHoZmt8.js","/app/immutable/chunks/DBJbYfc6.js","/app/immutable/chunks/UXMpUTdi.js","/app/immutable/chunks/shKa9J46.js","/app/immutable/chunks/BB3cWwFJ.js","/app/immutable/chunks/CmqZ_uDU.js","/app/immutable/chunks/BMEo-arP.js","/app/immutable/chunks/DzP46o7x.js","/app/immutable/chunks/DFipwLBj.js","/app/immutable/chunks/CrdcZu11.js","/app/immutable/chunks/Di7v0QY-.js","/app/immutable/chunks/5c5u2wp9.js","/app/immutable/chunks/Dovx3rUr.js","/app/immutable/chunks/BmJfqz2T.js","/app/immutable/chunks/CojUJLjr.js","/app/immutable/chunks/DN-88F5G.js","/app/immutable/chunks/D-Skc-gA.js","/app/immutable/chunks/Bb-q19YK.js","/app/immutable/chunks/r6nQQkL6.js","/app/immutable/chunks/Dl20kVCh.js","/app/immutable/chunks/74m07TNS.js","/app/immutable/chunks/ahEX06ui.js","/app/immutable/chunks/CwVJyoHD.js","/app/immutable/chunks/DCZ7ZeSa.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var lC=Object.defineProperty;var cC=(e,t,r)=>t in e?lC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var xr=(e,t,r)=>cC(e,typeof t!="symbol"?t+"":t,r);import{_ as Ve,t as Oo,bo as He,bm as je,bw as Do,b as Ro,bp as hC}from"./Dv_tIgjy.js";import{g as dC}from"./BdWqymET.js";import{aR as bs}from"./BvV0Fq2a.js";import{b7 as uC,cc as fC,bs as No,a7 as Ko,ay as ui,aD as L,bS as We,be as en,b$ as rl,b_ as cr,bO as br,W as ge,c9 as Dt,bn as qo,aA as Be,aB as ar,bk as hd,bH as gt,ca as Bo,c5 as pl,a5 as qe,bA as $e,bV as ce,bl as Tr,c0 as Th,aC as pi,aw as ml,a as Wu,bj as Np,br as wi,cb as gC,bf as pC}from"./3SdAC2_C.js";import{i as yr}from"./D7nvPiBp.js";import{h as zu}from"./BKD7o1lQ.js";import{f as co,s as fe,b as qp,c as Wp,g as Xa}from"./DLx1kqr5.js";import{b as no}from"./Dn334wJv.js";import{c as mC}from"./ChTqQfQN.js";import{d4 as yC,cW as xC,F as dn,aM as bC,bb as zp,m as CC,n as wC,f as kC,j as SC,y as Hu,v as Yu,h as vC,u as MC,P as TC,s as BC,O as _C,r as LC,k as AC,D as Xu,H as FC,U as $C,ax as EC,ay as PC,aY as IC}from"./B80pUkKE.js";import{f as Ja,ae as OC}from"./Z_oRTxSz.js";import"./D7fB2Oi-.js";import{M as DC,Z as RC}from"./DtNZdcoN.js";import{p as rn,h as NC,d as qC,S as WC,e as zC,g as ya,i as ju}from"./52P8Bm3E.js";import{c as HC}from"./BbIcudMY.js";import{k as Hp}from"./D6gLzTDC.js";import{n as To,h as Gu,t as Is,d as Uu}from"./CaXlovz7.js";import{c as fa}from"./DpKzpN4e.js";import{e as YC}from"./CFinm7cT.js";import{t as XC}from"./DAsc1V4f.js";import{s as il}from"./BPxuNmyn.js";import{H as jC}from"./sir56Y6s.js";import{s as Vu,a as GC}from"./BsieX9dN.js";import{l as UC,K as VC,d as ZC,e as Cc,M as KC}from"./Cv8U-Bhv.js";import"./Cm6Te9Vq.js";import{u as wo}from"./I4WMrmBa.js";import"./KS3jDVZW.js";import"./CWhRK5Rp.js";import{bL as QC}from"./Ds5Q8uKz.js";function JC(e,t){uC(window,["resize"],()=>fC(()=>t(window[e])))}var Yp=Object.defineProperty,C=(e,t)=>Yp(e,"name",{value:t,configurable:!0}),t2=(e,t)=>{for(var r in t)Yp(e,r,{get:t[r],enumerable:!0})};function Xp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}C(Xp,"getDefaultExportFromCjs");var ei={},Pn={},Xo={},Zu;function Ts(){if(Zu)return Xo;Zu=1;function e(s){return typeof s>"u"||s===null}C(e,"isNothing");function t(s){return typeof s=="object"&&s!==null}C(t,"isObject");function r(s){return Array.isArray(s)?s:e(s)?[]:[s]}C(r,"toArray");function i(s,n){if(n){const l=Object.keys(n);for(let c=0,h=l.length;c<h;c+=1){const d=l[c];s[d]=n[d]}}return s}C(i,"extend");function o(s,n){let l="";for(let c=0;c<n;c+=1)l+=s;return l}C(o,"repeat");function a(s){return s===0&&Number.NEGATIVE_INFINITY===1/s}return C(a,"isNegativeZero"),Xo.isNothing=e,Xo.isObject=t,Xo.toArray=r,Xo.repeat=o,Xo.isNegativeZero=a,Xo.extend=i,Xo}C(Ts,"requireCommon");var wc,Ku;function Bs(){if(Ku)return wc;Ku=1;function e(r,i){let o="";const a=r.reason||"(unknown reason)";return r.mark?(r.mark.name&&(o+='in "'+r.mark.name+'" '),o+="("+(r.mark.line+1)+":"+(r.mark.column+1)+")",!i&&r.mark.snippet&&(o+=`
|
|
3
3
|
|
|
4
4
|
`+r.mark.snippet),a+" "+o):a}C(e,"formatError");function t(r,i){Error.call(this),this.name="YAMLException",this.reason=r,this.mark=i,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return C(t,"YAMLException2"),t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=C(function(i){return this.name+": "+e(this,i)},"toString"),wc=t,wc}C(Bs,"requireException");var kc,Qu;function jp(){if(Qu)return kc;Qu=1;const e=Ts();function t(o,a,s,n,l){let c="",h="";const d=Math.floor(l/2)-1;return n-a>d&&(c=" ... ",a=n-d+c.length),s-n>d&&(h=" ...",s=n+d-h.length),{str:c+o.slice(a,s).replace(/\t/g,"→")+h,pos:n-a+c.length}}C(t,"getLine");function r(o,a){return e.repeat(" ",a-o.length)+o}C(r,"padStart");function i(o,a){if(a=Object.create(a||null),!o.buffer)return null;a.maxLength||(a.maxLength=79),typeof a.indent!="number"&&(a.indent=1),typeof a.linesBefore!="number"&&(a.linesBefore=3),typeof a.linesAfter!="number"&&(a.linesAfter=2);const s=/\r?\n|\r|\0/g,n=[0],l=[];let c,h=-1;for(;c=s.exec(o.buffer);)l.push(c.index),n.push(c.index+c[0].length),o.position<=c.index&&h<0&&(h=n.length-2);h<0&&(h=n.length-1);let d="";const u=Math.min(o.line+a.linesAfter,l.length).toString().length,f=a.maxLength-(a.indent+u+3);for(let p=1;p<=a.linesBefore&&!(h-p<0);p++){const m=t(o.buffer,n[h-p],l[h-p],o.position-(n[h]-n[h-p]),f);d=e.repeat(" ",a.indent)+r((o.line-p+1).toString(),u)+" | "+m.str+`
|
|
5
5
|
`+d}const g=t(o.buffer,n[h],l[h],o.position,f);d+=e.repeat(" ",a.indent)+r((o.line+1).toString(),u)+" | "+g.str+`
|
|
@@ -298,8 +298,8 @@ ${a.join(`
|
|
|
298
298
|
L0,20`)},"requirement_arrow"),lL=C((e,t,r)=>{const i=Ar(),{themeVariables:o}=i,{strokeWidth:a}=o;e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${a}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
|
|
299
299
|
L20,10
|
|
300
300
|
M20,10
|
|
301
|
-
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),cL=C((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),hL=C((e,t,r)=>{const i=Ar(),{themeVariables:o}=i,{strokeWidth:a}=o,s=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),s.selectAll("*").attr("stroke-width",`${a}`)},"requirement_contains_neo"),dL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hierarchyEnd").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hierarchyStart").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),uL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-openArrowEnd").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",11).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1 1 L 11 6 L 1 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-openArrowStart").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",1).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 11 1 L 1 6 L 11 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none")},"openArrow"),fL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hollowCircleStart").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hollowCircleEnd").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none")},"hollowCircle"),gL={extension:H_,composition:Y_,aggregation:X_,dependency:j_,lollipop:G_,point:U_,circle:V_,cross:Z_,barb:K_,barbNeo:Q_,hierarchy:dL,only_one:J_,zero_or_one:tL,one_or_more:eL,zero_or_more:rL,only_one_neo:iL,zero_or_one_neo:oL,one_or_more_neo:aL,zero_or_more_neo:sL,requirement_arrow:nL,requirement_contains:cL,requirement_arrow_neo:lL,requirement_contains_neo:hL,openArrow:uL,hollowCircle:fL},pL=z_,mL={common:kn,getConfig:Ar,insertCluster:UB,insertEdge:W_,insertEdgeLabel:E_,insertMarkers:pL,insertNode:eb,interpolateToCurve:Vd,labelHelper:he,log:Lt,positionEdgeLabel:I_},yL=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],mn=Object.create(null),Cb=C(e=>{for(const t of e)mn[t.name]=t},"registerLayoutLoaders"),xL=C(()=>{const e=C(async()=>await Ve(()=>import("./4IwpvVwZ.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),"loader");return[{name:"elk",loader:e,algorithm:"elk.layered"},...yL.map(t=>({name:t,loader:e,algorithm:t}))]},"elkLayoutLoaders"),bL=C(()=>{Cb([{name:"dagre",loader:C(async()=>await Ve(()=>import("./CBpGFpXN.js"),__vite__mapDeps([7,2,3,4,5]),import.meta.url),"loader")},{name:"swimlane",loader:C(async()=>await Ve(()=>import("./Dpx4iP0s.js"),__vite__mapDeps([8,1,2,3,4,5]),import.meta.url),"loader")},{name:"cose-bilkent",loader:C(async()=>await Ve(()=>import("./DP1oZD4h.js"),__vite__mapDeps([9,10,6]),import.meta.url),"loader")},...xL()])},"registerDefaultLayoutLoaders");bL();var AP=C(async(e,t)=>{if(!Object.hasOwn(mn,e.layoutAlgorithm))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const a of e.nodes){const s=a.domId||a.id;a.domId=`${e.diagramId}-${s}`}const r=mn[e.layoutAlgorithm],i=await r.loader();a2(t,e.config);const o=await i.render(e,t,mL,{algorithm:r.algorithm});return B_(t.node()),o},"render"),ch="dagre",FP=C((e="",{fallback:t=ch}={})=>{if(Object.hasOwn(mn,e))return e;for(const r of[t,ch])if(Object.hasOwn(mn,r))return Lt.warn(`Layout algorithm ${e} is not registered. Using ${r} as fallback.`),r;throw new Error(`Neither layout algorithm ${e}, ${t}, nor ${ch} is registered.`)},"getRegisteredLayoutAlgorithm"),CL=C(e=>{const{securityLevel:t}=Ge();let r=Ye("body");if(t==="sandbox"){const a=Ye(`#i${e}`).node()?.contentDocument??document;r=Ye(a.body)}return r.select(`#${e}`)},"selectSvgElement"),ku="comm",wb="rule",kb="decl",wL="@media",kL="@import",SL="@supports",vL="@namespace",td="@keyframes",Sb="@layer",ML="@scope",TL=Math.abs,hn=String.fromCharCode;function vb(e){return e.trim()}function ed(e,t,r){return e.replace(t,r)}function is(e,t){return e.charCodeAt(t)|0}function ks(e,t,r){return e.slice(t,r)}function oo(e){return e.length}function Mb(e){return e.length}function jn(e,t){return t.push(e),e}var cc=1,Ss=1,Tb=0,Ii=0,qr=0,Fs="";function Su(e,t,r,i,o,a,s,n){return{value:e,root:t,parent:r,type:i,props:o,children:a,line:cc,column:Ss,length:s,return:"",siblings:n}}function BL(){return qr}function _L(){return qr=Ii>0?is(Fs,--Ii):0,Ss--,qr===10&&(Ss=1,cc--),qr}function ji(){return qr=Ii<Tb?is(Fs,Ii++):0,Ss++,qr===10&&(Ss=1,cc++),qr}function Vo(){return is(Fs,Ii)}function fl(){return Ii}function hc(e,t){return ks(Fs,e,t)}function yn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function LL(e){return cc=Ss=1,Tb=oo(Fs=e),Ii=0,[]}function AL(e){return Fs="",e}function hh(e){return vb(hc(Ii-1,rd(e===91?e+2:e===40?e+1:e)))}function FL(e){for(;(qr=Vo())&&qr<33;)ji();return yn(e)>2||yn(qr)>3?"":" "}function $L(e,t){for(;--t&&ji()&&!(qr<48||qr>102||qr>57&&qr<65||qr>70&&qr<97););return hc(e,fl()+(t<6&&Vo()==32&&ji()==32))}function rd(e){for(;ji();)switch(qr){case e:return Ii;case 34:case 39:e!==34&&e!==39&&rd(qr);break;case 40:e===41&&rd(e);break;case 92:ji();break}return Ii}function EL(e,t){for(;ji()&&e+qr!==57;)if(e+qr===84&&Vo()===47)break;return"/*"+hc(t,Ii-1)+"*"+hn(e===47?e:ji())}function PL(e){for(;!yn(Vo());)ji();return hc(e,Ii)}function IL(e){return AL(gl("",null,null,null,[""],e=LL(e),0,[0],e))}function gl(e,t,r,i,o,a,s,n,l){for(var c=0,h=0,d=s,u=0,f=0,g=0,p=1,m=1,y=1,x=0,b=0,S="",T=o,k=a,_=i,A=S;m;)switch(g=b,b=ji()){case 40:g!=108&&is(A,d-1)==58?(x++,A+="("):A+=hh(b);break;case 41:x--,A+=")";break;case 34:case 39:case 91:A+=hh(b);break;case 9:case 10:case 13:case 32:if(x>0){A+=hn(b);break}A+=FL(g);break;case 92:A+=$L(fl()-1,7);continue;case 47:switch(Vo()){case 42:case 47:jn(OL(EL(ji(),fl()),t,r,l),l),(yn(g||1)==5||yn(Vo()||1)==5)&&oo(A)&&ks(A,-1,void 0)!==" "&&(A+=" ");break;default:A+="/"}break;case 123*p:n[c++]=oo(A)*y;case 125*p:case 59:case 0:if(x>0&&b){A+=hn(b);break}switch(b){case 0:case 125:m=0;case 59+h:y==-1&&(A=ed(A,/\f/g,"")),f>0&&(oo(A)-d||p===0)&&jn(f>32?sp(A+";",i,r,d-1,l):sp(ed(A," ","")+";",i,r,d-2,l),l);break;case 59:A+=";";default:if(jn(_=ap(A,t,r,c,h,o,n,S,T=[],k=[],d,a),a),b===123)if(h===0)gl(A,t,_,_,T,a,d,n,k);else{switch(u){case 99:if(is(A,3)===110)break;case 108:if(is(A,2)===97)break;default:h=0;case 100:case 109:case 115:}h?gl(e,_,_,i&&jn(ap(e,_,_,0,0,o,n,S,o,T=[],d,k),k),o,k,d,n,i?T:k):gl(A,_,_,_,[""],k,0,n,k)}}c=h=f=0,p=y=1,S=A="",d=s;break;case 58:d=1+oo(A),f=g;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&_L()==125)continue}switch(A+=hn(b),b*p){case 38:y=h>0?1:(A+="\f",-1);break;case 44:if(x>0)break;n[c++]=(oo(A)-1)*y,y=1;break;case 64:Vo()===45&&(A+=hh(ji())),u=Vo(),h=d=oo(S=A+=PL(fl())),b++;break;case 45:g===45&&oo(A)==2&&(p=0)}}return a}function ap(e,t,r,i,o,a,s,n,l,c,h,d){for(var u=o-1,f=o===0?a:[""],g=Mb(f),p=0,m=0,y=0;p<i;++p)for(var x=0,b=ks(e,u+1,u=TL(m=s[p])),S=e;x<g;++x)(S=vb(m>0?f[x]+" "+b:ed(b,/&\f/g,f[x])))&&(l[y++]=S);return Su(e,t,r,o===0?wb:n,l,c,h,d)}function OL(e,t,r,i){return Su(e,t,r,ku,hn(BL()),ks(e,2,-2),0,i)}function sp(e,t,r,i,o){return Su(e,t,r,kb,ks(e,0,i),ks(e,i+1,-1),i,o)}function id(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function DL(e,t,r,i){switch(e.type){case Sb:if(e.children.length)break;case kL:case vL:case kb:return e.return=e.return||e.value;case ku:return"";case td:return e.return=e.value+"{"+id(e.children,i)+"}";case wb:if(!oo(e.value=e.props.join(",")))return""}return oo(r=id(e.children,i))?e.return=e.value+"{"+r+"}":""}function RL(e){var t=Mb(e);return function(r,i,o,a){for(var s="",n=0;n<t;n++)s+=e[n](r,i,o,a)||"";return s}}var Bb="c4",NL=C(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),qL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CpggW3GS.js");return{diagram:t}},__vite__mapDeps([11,12]),import.meta.url);return{id:Bb,diagram:e}},"loader"),WL={id:Bb,detector:NL,loader:qL},zL=WL,_b="flowchart-v2",HL=C(e=>/^\s*(graph|flowchart)/.test(e),"detector"),YL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Cd3YgLQX.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,6,53,54,55,56,57,58,59,60,61,62]),import.meta.url);return{id:_b,diagram:e}},"loader"),XL={id:_b,detector:HL,loader:YL},jL=XL,Lb="agentflow",GL=C(e=>/^\s*agentflow-beta\b/.test(e),"detector"),UL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DgHQu-vA.js");return{diagram:t}},__vite__mapDeps([63,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,6,53,54,55,56,57,58,59,60,61,62]),import.meta.url);return{id:Lb,diagram:e}},"loader"),VL={id:Lb,detector:GL,loader:UL},ZL=VL,Ab="swimlane",KL=C(e=>/^\s*swimlane-beta\b/.test(e),"detector"),QL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./2tIg3zRC.js");return{diagram:t}},__vite__mapDeps([64,13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,6,53,54,55,56,57,58,59,60,61,62]),import.meta.url);return{id:Ab,diagram:e}},"loader"),JL={id:Ab,detector:KL,loader:QL},tA=JL,Fb="er",eA=C(e=>/^\s*erDiagram/.test(e),"detector"),rA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./9Z-CGmW0.js");return{diagram:t}},__vite__mapDeps([65,15,16]),import.meta.url);return{id:Fb,diagram:e}},"loader"),iA={id:Fb,detector:eA,loader:rA},oA=iA,$b="gitGraph",aA=C(e=>/^\s*gitGraph/.test(e),"detector"),sA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./B6kWt-NF.js");return{diagram:t}},__vite__mapDeps([66,67,68,69,3,4]),import.meta.url);return{id:$b,diagram:e}},"loader"),nA={id:$b,detector:aA,loader:sA},lA=nA,Eb="gantt",cA=C(e=>/^\s*gantt/.test(e),"detector"),hA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Bondcgar.js");return{diagram:t}},__vite__mapDeps([70,6,71]),import.meta.url);return{id:Eb,diagram:e}},"loader"),dA={id:Eb,detector:cA,loader:hA},uA=dA,Pb="info",fA=C(e=>/^\s*info/.test(e),"detector"),gA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CC0zIW-Q.js");return{diagram:t}},__vite__mapDeps([72,69,3,4]),import.meta.url);return{id:Pb,diagram:e}},"loader"),pA={id:Pb,detector:fA,loader:gA},Ib="pie",mA=C(e=>/^\s*pie/.test(e),"detector"),yA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BYm3oGAs.js");return{diagram:t}},__vite__mapDeps([73,68,69,3,4,71]),import.meta.url);return{id:Ib,diagram:e}},"loader"),xA={id:Ib,detector:mA,loader:yA},Ob="quadrantChart",bA=C(e=>/^\s*quadrantChart/.test(e),"detector"),CA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DGsSBTnE.js");return{diagram:t}},__vite__mapDeps([74,71]),import.meta.url);return{id:Ob,diagram:e}},"loader"),wA={id:Ob,detector:bA,loader:CA},kA=wA,Db="xychart",SA=C(e=>/^\s*xychart(-beta)?/.test(e),"detector"),vA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BVls_E6i.js");return{diagram:t}},__vite__mapDeps([75,71]),import.meta.url);return{id:Db,diagram:e}},"loader"),MA={id:Db,detector:SA,loader:vA},TA=MA,Rb="requirement",BA=C(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),_A=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./B2KdznJa.js");return{diagram:t}},__vite__mapDeps([76,15,16]),import.meta.url);return{id:Rb,diagram:e}},"loader"),LA={id:Rb,detector:BA,loader:_A},AA=LA,Nb="sequence",FA=C(e=>/^\s*sequenceDiagram/.test(e),"detector"),$A=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CY6yMXcg.js");return{diagram:t}},__vite__mapDeps([77,67,12]),import.meta.url);return{id:Nb,diagram:e}},"loader"),EA={id:Nb,detector:FA,loader:$A},PA=EA,qb="classDiagram",IA=C(e=>/^\s*classDiagram/.test(e),"detector"),OA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DLNiSKjY.js");return{diagram:t}},__vite__mapDeps([78,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,6,53,54,55,56,57,58,59,60,61,62]),import.meta.url);return{id:qb,diagram:e}},"loader"),DA={id:qb,detector:IA,loader:OA},RA=DA,Wb="stateDiagram",NA=C(e=>/^\s*stateDiagram/.test(e),"detector"),qA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Bd-3nxyB.js");return{diagram:t}},__vite__mapDeps([79,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,6,53,54,55,56,57,58,59,60,61,62]),import.meta.url);return{id:Wb,diagram:e}},"loader"),WA={id:Wb,detector:NA,loader:qA},zA=WA,zb="journey",HA=C(e=>/^\s*journey/.test(e),"detector"),YA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BPsBKYg_.js");return{diagram:t}},__vite__mapDeps([80,14,12]),import.meta.url);return{id:zb,diagram:e}},"loader"),XA={id:zb,detector:HA,loader:YA},jA=XA,Gn=4,Hs=75,GA=C(e=>{const t=[];for(const o of e.split(/\s+/)){let a=[...o];for(;a.length>Hs;)t.push(a.slice(0,Hs).join("")),a=a.slice(Hs);a.length>0&&t.push(a.join(""))}const r=[];let i="";for(const o of t){const a=i?`${i} ${o}`:o;[...a].length>Hs?(r.push(i),i=o):i=a}if(i&&r.push(i),r.length>Gn){r.length=Gn;const o=r[Gn-1]??"";r[Gn-1]=`${[...o].slice(0,Hs-3).join("")}...`}return r},"wrapErrorMessage"),UA=C((e,t,r,i)=>{Lt.debug(`rendering svg for syntax error
|
|
302
|
-
`);const o=CL(t),a=o.append("g"),s=GA(i?.db.getErrorMessage?.()??""),n=s.length>0?500+s.length*56:512;o.attr("viewBox",`0 0 2412 ${n}`),um(o,100,n,!0),a.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),a.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),a.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),a.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),a.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),a.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`),s.forEach((l,c)=>{a.append("text").attr("class","error-text").attr("x",1440).attr("y",510+c*56).attr("font-size","42px").style("text-anchor","middle").text(l)})},"draw"),Hb={draw:UA},VA=Hb,dh,ZA={clear(){dh=void 0},setErrorMessage(e){dh=e},getErrorMessage(){return dh}},KA={db:ZA,renderer:Hb,parser:{parse:C(()=>{},"parse")}},QA=KA,Yb="flowchart-elk",JA=C((e,t={})=>/^\s*flowchart-elk/.test(e)?(t.layout="elk",!0):!1,"detector"),t5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Cd3YgLQX.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,6,53,54,55,56,57,58,59,60,61,62]),import.meta.url);return{id:Yb,diagram:e}},"loader"),e5={id:Yb,detector:JA,loader:t5},r5=e5,Xb="timeline",i5=C(e=>/^\s*timeline/.test(e),"detector"),o5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./9kN-cZth.js");return{diagram:t}},[],import.meta.url);return{id:Xb,diagram:e}},"loader"),a5={id:Xb,detector:i5,loader:o5},s5=a5,jb="mindmap",n5=C(e=>/^\s*mindmap/.test(e),"detector"),l5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./8yY720EA.js");return{diagram:t}},__vite__mapDeps([81,15,16]),import.meta.url);return{id:jb,diagram:e}},"loader"),c5={id:jb,detector:n5,loader:l5},h5=c5,Gb="kanban",d5=C(e=>/^\s*kanban/.test(e),"detector"),u5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./D_kqKAPb.js");return{diagram:t}},__vite__mapDeps([82,14]),import.meta.url);return{id:Gb,diagram:e}},"loader"),f5={id:Gb,detector:d5,loader:u5},g5=f5,Ub="sankey",p5=C(e=>/^\s*sankey(-beta)?/.test(e),"detector"),m5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./4TQ-wOQj.js");return{diagram:t}},__vite__mapDeps([83,71]),import.meta.url);return{id:Ub,diagram:e}},"loader"),y5={id:Ub,detector:p5,loader:m5},x5=y5,Vb="packet",b5=C(e=>/^\s*packet(-beta)?/.test(e),"detector"),C5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./COAAEUqs.js");return{diagram:t}},__vite__mapDeps([84,68,69,3,4]),import.meta.url);return{id:Vb,diagram:e}},"loader"),w5={id:Vb,detector:b5,loader:C5},Zb="radar",k5=C(e=>/^\s*radar-beta/.test(e),"detector"),S5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BEWzvyPM.js");return{diagram:t}},__vite__mapDeps([85,68,69,3,4]),import.meta.url);return{id:Zb,diagram:e}},"loader"),v5={id:Zb,detector:k5,loader:S5},Kb="block",M5=C(e=>/^\s*block(-beta)?/.test(e),"detector"),T5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Qq8kw_LR.js");return{diagram:t}},__vite__mapDeps([86,14,5]),import.meta.url);return{id:Kb,diagram:e}},"loader"),B5={id:Kb,detector:M5,loader:T5},_5=B5,Qb="treeView",L5=C(e=>/^\s*treeView-beta/.test(e),"detector"),A5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./D1bYGUz7.js");return{diagram:t}},__vite__mapDeps([87,67,68,69,3,4]),import.meta.url);return{id:Qb,diagram:e}},"loader"),F5={id:Qb,detector:L5,loader:A5},$5=F5,Jb="architecture",E5=C(e=>/^\s*architecture/.test(e),"detector"),P5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CABtGAhT.js");return{diagram:t}},__vite__mapDeps([88,68,69,3,4,10,6]),import.meta.url);return{id:Jb,diagram:e}},"loader"),I5={id:Jb,detector:E5,loader:P5},O5=I5,t1="eventmodeling",D5=C(e=>/^\s*eventmodeling/.test(e),"detector"),R5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CM22-mrT.js");return{diagram:t}},__vite__mapDeps([89,68,69,3,4]),import.meta.url);return{id:t1,diagram:e}},"loader"),N5={id:t1,detector:D5,loader:R5},q5=N5,e1="ishikawa",W5=C(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),z5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Dm-G_mI5.js");return{diagram:t}},[],import.meta.url);return{id:e1,diagram:e}},"loader"),H5={id:e1,detector:W5,loader:z5},r1="venn",Y5=C(e=>/^\s*venn-beta/.test(e),"detector"),X5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./4dEsEkEW.js");return{diagram:t}},[],import.meta.url);return{id:r1,diagram:e}},"loader"),j5={id:r1,detector:Y5,loader:X5},G5=j5,i1="treemap",U5=C(e=>/^\s*treemap/.test(e),"detector"),V5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Bwkbh1IC.js");return{diagram:t}},__vite__mapDeps([90,16,68,69,3,4,71]),import.meta.url);return{id:i1,diagram:e}},"loader"),Z5={id:i1,detector:U5,loader:V5},o1="usecase",K5=C(e=>/^\s*usecase-beta(?:\s|$)/.test(e),"detector"),Q5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DXxcUvjl.js");return{diagram:t}},__vite__mapDeps([91,15,16]),import.meta.url);return{id:o1,diagram:e}},"loader"),J5={id:o1,detector:K5,loader:Q5},a1="wardley",tF=C(e=>/^\s*wardley-beta/i.test(e),"detector"),eF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DwHA7V2D.js");return{diagram:t}},__vite__mapDeps([92,68,69,3,4]),import.meta.url);return{id:a1,diagram:e}},"loader"),rF={id:a1,detector:tF,loader:eF},iF=rF,s1="cynefin",oF=C(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),aF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BbCHGRAU.js");return{diagram:t}},__vite__mapDeps([93,68,69,3,4]),import.meta.url);return{id:s1,diagram:e}},"loader"),sF={id:s1,detector:oF,loader:aF},n1="railroad",nF=C(e=>/^\s*railroad-beta/i.test(e),"detector"),lF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Uqxgj6Y3.js");return{diagram:t}},__vite__mapDeps([94,95,68,69,3,4]),import.meta.url);return{id:n1,diagram:e}},"loader"),cF={id:n1,detector:nF,loader:lF},l1="railroadEbnf",hF=C(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),dF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CgfPG4f5.js");return{diagram:t}},__vite__mapDeps([96,95,68,69,3,4]),import.meta.url);return{id:l1,diagram:e}},"loader"),uF={id:l1,detector:hF,loader:dF},c1="railroadAbnf",fF=C(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),gF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CXHQfPPq.js");return{diagram:t}},__vite__mapDeps([97,95,68,69,3,4]),import.meta.url);return{id:c1,diagram:e}},"loader"),pF={id:c1,detector:fF,loader:gF},h1="railroadPeg",mF=C(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),yF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CdaU-PJY.js");return{diagram:t}},__vite__mapDeps([98,95,68,69,3,4]),import.meta.url);return{id:h1,diagram:e}},"loader"),xF={id:h1,detector:mF,loader:yF},np=!1,dc=C(()=>{np||(np=!0,Sl("error",QA,e=>e.toLowerCase().trim()==="error"),Sl("---",{db:{clear:C(()=>{},"clear")},styles:{},renderer:{draw:C(()=>{},"draw")},parser:{parse:C(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:C(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),Bh(r5,h5,O5),Bh(ZL,zL,g5,RA,oA,uA,pA,xA,AA,PA,tA,jL,s5,lA,zA,jA,kA,x5,w5,TA,_5,q5,$5,v5,H5,Z5,cF,uF,pF,xF,G5,iF,sF,J5))},"addDiagrams"),bF=C(async()=>{Lt.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(Ta).map(async([r,{detector:i,loader:o}])=>{if(o)try{$h(r)}catch{try{const{diagram:a,id:s}=await o();Sl(s,a,i)}catch(a){throw Lt.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Ta[r],a}}}))).filter(r=>r.status==="rejected");if(t.length>0){Lt.error(`Failed to load ${t.length} external diagrams`);for(const r of t)Lt.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),CF="graphics-document document";function d1(e,t){e.attr("role",CF),t!==""&&e.attr("aria-roledescription",t)}C(d1,"setA11yDiagramInfo");function u1(e,t,r,i){if(e.insert!==void 0){if(r){const o=`chart-desc-${i}`;e.attr("aria-describedby",o),e.insert("desc",":first-child").attr("id",o).text(r)}if(t){const o=`chart-title-${i}`;e.attr("aria-labelledby",o),e.insert("title",":first-child").attr("id",o).text(t)}}}C(u1,"addSVGa11yTitleDescription");var Ma,Xl=(Ma=class{constructor(t,r,i,o,a){this.type=t,this.text=r,this.db=i,this.parser=o,this.renderer=a}static async fromText(t,r={}){const i=typeof t=="string"?{cleaned:t}:t,o=Ar(),a=Zl(i.cleaned,o);try{$h(a)}catch{const u=C2(a);if(!u)throw new Jp(`Diagram ${a} not found.`);const{id:f,diagram:g}=await u();Sl(f,g)}const{db:s,parser:n,renderer:l,init:c}=$h(a);n.parser&&(n.parser.yy=s),s.clear?.(),c?.(o),r.title&&s.setDiagramTitle?.(r.title);let h=i.cleaned;if(s.preserveCommentsWhenParsing&&i.withComments){const u=o.maxTextSize??Ld.maxTextSize;i.withComments.length>u?Lt.warn(`Comment-preserving source exceeds maxTextSize (${i.withComments.length} > ${u}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):h=i.withComments}const d=TM(h)+`
|
|
301
|
+
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),cL=C((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),hL=C((e,t,r)=>{const i=Ar(),{themeVariables:o}=i,{strokeWidth:a}=o,s=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),s.selectAll("*").attr("stroke-width",`${a}`)},"requirement_contains_neo"),dL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hierarchyEnd").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hierarchyStart").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),uL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-openArrowEnd").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",11).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1 1 L 11 6 L 1 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-openArrowStart").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",1).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 11 1 L 1 6 L 11 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none")},"openArrow"),fL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hollowCircleStart").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hollowCircleEnd").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none")},"hollowCircle"),gL={extension:H_,composition:Y_,aggregation:X_,dependency:j_,lollipop:G_,point:U_,circle:V_,cross:Z_,barb:K_,barbNeo:Q_,hierarchy:dL,only_one:J_,zero_or_one:tL,one_or_more:eL,zero_or_more:rL,only_one_neo:iL,zero_or_one_neo:oL,one_or_more_neo:aL,zero_or_more_neo:sL,requirement_arrow:nL,requirement_contains:cL,requirement_arrow_neo:lL,requirement_contains_neo:hL,openArrow:uL,hollowCircle:fL},pL=z_,mL={common:kn,getConfig:Ar,insertCluster:UB,insertEdge:W_,insertEdgeLabel:E_,insertMarkers:pL,insertNode:eb,interpolateToCurve:Vd,labelHelper:he,log:Lt,positionEdgeLabel:I_},yL=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],mn=Object.create(null),Cb=C(e=>{for(const t of e)mn[t.name]=t},"registerLayoutLoaders"),xL=C(()=>{const e=C(async()=>await Ve(()=>import("./iNcjHTTN.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),"loader");return[{name:"elk",loader:e,algorithm:"elk.layered"},...yL.map(t=>({name:t,loader:e,algorithm:t}))]},"elkLayoutLoaders"),bL=C(()=>{Cb([{name:"dagre",loader:C(async()=>await Ve(()=>import("./DZHxRiqY.js"),__vite__mapDeps([7,2,3,4,5]),import.meta.url),"loader")},{name:"swimlane",loader:C(async()=>await Ve(()=>import("./BciuDshC.js"),__vite__mapDeps([8,1,2,3,4,5]),import.meta.url),"loader")},{name:"cose-bilkent",loader:C(async()=>await Ve(()=>import("./BKwFxzi5.js"),__vite__mapDeps([9,10,6]),import.meta.url),"loader")},...xL()])},"registerDefaultLayoutLoaders");bL();var AP=C(async(e,t)=>{if(!Object.hasOwn(mn,e.layoutAlgorithm))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const a of e.nodes){const s=a.domId||a.id;a.domId=`${e.diagramId}-${s}`}const r=mn[e.layoutAlgorithm],i=await r.loader();a2(t,e.config);const o=await i.render(e,t,mL,{algorithm:r.algorithm});return B_(t.node()),o},"render"),ch="dagre",FP=C((e="",{fallback:t=ch}={})=>{if(Object.hasOwn(mn,e))return e;for(const r of[t,ch])if(Object.hasOwn(mn,r))return Lt.warn(`Layout algorithm ${e} is not registered. Using ${r} as fallback.`),r;throw new Error(`Neither layout algorithm ${e}, ${t}, nor ${ch} is registered.`)},"getRegisteredLayoutAlgorithm"),CL=C(e=>{const{securityLevel:t}=Ge();let r=Ye("body");if(t==="sandbox"){const a=Ye(`#i${e}`).node()?.contentDocument??document;r=Ye(a.body)}return r.select(`#${e}`)},"selectSvgElement"),ku="comm",wb="rule",kb="decl",wL="@media",kL="@import",SL="@supports",vL="@namespace",td="@keyframes",Sb="@layer",ML="@scope",TL=Math.abs,hn=String.fromCharCode;function vb(e){return e.trim()}function ed(e,t,r){return e.replace(t,r)}function is(e,t){return e.charCodeAt(t)|0}function ks(e,t,r){return e.slice(t,r)}function oo(e){return e.length}function Mb(e){return e.length}function jn(e,t){return t.push(e),e}var cc=1,Ss=1,Tb=0,Ii=0,qr=0,Fs="";function Su(e,t,r,i,o,a,s,n){return{value:e,root:t,parent:r,type:i,props:o,children:a,line:cc,column:Ss,length:s,return:"",siblings:n}}function BL(){return qr}function _L(){return qr=Ii>0?is(Fs,--Ii):0,Ss--,qr===10&&(Ss=1,cc--),qr}function ji(){return qr=Ii<Tb?is(Fs,Ii++):0,Ss++,qr===10&&(Ss=1,cc++),qr}function Vo(){return is(Fs,Ii)}function fl(){return Ii}function hc(e,t){return ks(Fs,e,t)}function yn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function LL(e){return cc=Ss=1,Tb=oo(Fs=e),Ii=0,[]}function AL(e){return Fs="",e}function hh(e){return vb(hc(Ii-1,rd(e===91?e+2:e===40?e+1:e)))}function FL(e){for(;(qr=Vo())&&qr<33;)ji();return yn(e)>2||yn(qr)>3?"":" "}function $L(e,t){for(;--t&&ji()&&!(qr<48||qr>102||qr>57&&qr<65||qr>70&&qr<97););return hc(e,fl()+(t<6&&Vo()==32&&ji()==32))}function rd(e){for(;ji();)switch(qr){case e:return Ii;case 34:case 39:e!==34&&e!==39&&rd(qr);break;case 40:e===41&&rd(e);break;case 92:ji();break}return Ii}function EL(e,t){for(;ji()&&e+qr!==57;)if(e+qr===84&&Vo()===47)break;return"/*"+hc(t,Ii-1)+"*"+hn(e===47?e:ji())}function PL(e){for(;!yn(Vo());)ji();return hc(e,Ii)}function IL(e){return AL(gl("",null,null,null,[""],e=LL(e),0,[0],e))}function gl(e,t,r,i,o,a,s,n,l){for(var c=0,h=0,d=s,u=0,f=0,g=0,p=1,m=1,y=1,x=0,b=0,S="",T=o,k=a,_=i,A=S;m;)switch(g=b,b=ji()){case 40:g!=108&&is(A,d-1)==58?(x++,A+="("):A+=hh(b);break;case 41:x--,A+=")";break;case 34:case 39:case 91:A+=hh(b);break;case 9:case 10:case 13:case 32:if(x>0){A+=hn(b);break}A+=FL(g);break;case 92:A+=$L(fl()-1,7);continue;case 47:switch(Vo()){case 42:case 47:jn(OL(EL(ji(),fl()),t,r,l),l),(yn(g||1)==5||yn(Vo()||1)==5)&&oo(A)&&ks(A,-1,void 0)!==" "&&(A+=" ");break;default:A+="/"}break;case 123*p:n[c++]=oo(A)*y;case 125*p:case 59:case 0:if(x>0&&b){A+=hn(b);break}switch(b){case 0:case 125:m=0;case 59+h:y==-1&&(A=ed(A,/\f/g,"")),f>0&&(oo(A)-d||p===0)&&jn(f>32?sp(A+";",i,r,d-1,l):sp(ed(A," ","")+";",i,r,d-2,l),l);break;case 59:A+=";";default:if(jn(_=ap(A,t,r,c,h,o,n,S,T=[],k=[],d,a),a),b===123)if(h===0)gl(A,t,_,_,T,a,d,n,k);else{switch(u){case 99:if(is(A,3)===110)break;case 108:if(is(A,2)===97)break;default:h=0;case 100:case 109:case 115:}h?gl(e,_,_,i&&jn(ap(e,_,_,0,0,o,n,S,o,T=[],d,k),k),o,k,d,n,i?T:k):gl(A,_,_,_,[""],k,0,n,k)}}c=h=f=0,p=y=1,S=A="",d=s;break;case 58:d=1+oo(A),f=g;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&_L()==125)continue}switch(A+=hn(b),b*p){case 38:y=h>0?1:(A+="\f",-1);break;case 44:if(x>0)break;n[c++]=(oo(A)-1)*y,y=1;break;case 64:Vo()===45&&(A+=hh(ji())),u=Vo(),h=d=oo(S=A+=PL(fl())),b++;break;case 45:g===45&&oo(A)==2&&(p=0)}}return a}function ap(e,t,r,i,o,a,s,n,l,c,h,d){for(var u=o-1,f=o===0?a:[""],g=Mb(f),p=0,m=0,y=0;p<i;++p)for(var x=0,b=ks(e,u+1,u=TL(m=s[p])),S=e;x<g;++x)(S=vb(m>0?f[x]+" "+b:ed(b,/&\f/g,f[x])))&&(l[y++]=S);return Su(e,t,r,o===0?wb:n,l,c,h,d)}function OL(e,t,r,i){return Su(e,t,r,ku,hn(BL()),ks(e,2,-2),0,i)}function sp(e,t,r,i,o){return Su(e,t,r,kb,ks(e,0,i),ks(e,i+1,-1),i,o)}function id(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function DL(e,t,r,i){switch(e.type){case Sb:if(e.children.length)break;case kL:case vL:case kb:return e.return=e.return||e.value;case ku:return"";case td:return e.return=e.value+"{"+id(e.children,i)+"}";case wb:if(!oo(e.value=e.props.join(",")))return""}return oo(r=id(e.children,i))?e.return=e.value+"{"+r+"}":""}function RL(e){var t=Mb(e);return function(r,i,o,a){for(var s="",n=0;n<t;n++)s+=e[n](r,i,o,a)||"";return s}}var Bb="c4",NL=C(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),qL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BCSu8Kae.js");return{diagram:t}},__vite__mapDeps([11,12]),import.meta.url);return{id:Bb,diagram:e}},"loader"),WL={id:Bb,detector:NL,loader:qL},zL=WL,_b="flowchart-v2",HL=C(e=>/^\s*(graph|flowchart)/.test(e),"detector"),YL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BjkQhjI5.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,6,53,54,55,56,57,58,59,60,61,62]),import.meta.url);return{id:_b,diagram:e}},"loader"),XL={id:_b,detector:HL,loader:YL},jL=XL,Lb="agentflow",GL=C(e=>/^\s*agentflow-beta\b/.test(e),"detector"),UL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DGHKoUB4.js");return{diagram:t}},__vite__mapDeps([63,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,6,53,54,55,56,57,58,59,60,61,62]),import.meta.url);return{id:Lb,diagram:e}},"loader"),VL={id:Lb,detector:GL,loader:UL},ZL=VL,Ab="swimlane",KL=C(e=>/^\s*swimlane-beta\b/.test(e),"detector"),QL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CrQr5_YW.js");return{diagram:t}},__vite__mapDeps([64,13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,6,53,54,55,56,57,58,59,60,61,62]),import.meta.url);return{id:Ab,diagram:e}},"loader"),JL={id:Ab,detector:KL,loader:QL},tA=JL,Fb="er",eA=C(e=>/^\s*erDiagram/.test(e),"detector"),rA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./F2lFeQhm.js");return{diagram:t}},__vite__mapDeps([65,15,16]),import.meta.url);return{id:Fb,diagram:e}},"loader"),iA={id:Fb,detector:eA,loader:rA},oA=iA,$b="gitGraph",aA=C(e=>/^\s*gitGraph/.test(e),"detector"),sA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BP7v0M1i.js");return{diagram:t}},__vite__mapDeps([66,67,68,69,3,4]),import.meta.url);return{id:$b,diagram:e}},"loader"),nA={id:$b,detector:aA,loader:sA},lA=nA,Eb="gantt",cA=C(e=>/^\s*gantt/.test(e),"detector"),hA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CzIv7WqU.js");return{diagram:t}},__vite__mapDeps([70,6,71]),import.meta.url);return{id:Eb,diagram:e}},"loader"),dA={id:Eb,detector:cA,loader:hA},uA=dA,Pb="info",fA=C(e=>/^\s*info/.test(e),"detector"),gA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./2puxKgt3.js");return{diagram:t}},__vite__mapDeps([72,69,3,4]),import.meta.url);return{id:Pb,diagram:e}},"loader"),pA={id:Pb,detector:fA,loader:gA},Ib="pie",mA=C(e=>/^\s*pie/.test(e),"detector"),yA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DDclEwl2.js");return{diagram:t}},__vite__mapDeps([73,68,69,3,4,71]),import.meta.url);return{id:Ib,diagram:e}},"loader"),xA={id:Ib,detector:mA,loader:yA},Ob="quadrantChart",bA=C(e=>/^\s*quadrantChart/.test(e),"detector"),CA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./nb5JVkH_.js");return{diagram:t}},__vite__mapDeps([74,71]),import.meta.url);return{id:Ob,diagram:e}},"loader"),wA={id:Ob,detector:bA,loader:CA},kA=wA,Db="xychart",SA=C(e=>/^\s*xychart(-beta)?/.test(e),"detector"),vA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DAHoZmt8.js");return{diagram:t}},__vite__mapDeps([75,71]),import.meta.url);return{id:Db,diagram:e}},"loader"),MA={id:Db,detector:SA,loader:vA},TA=MA,Rb="requirement",BA=C(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),_A=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DBJbYfc6.js");return{diagram:t}},__vite__mapDeps([76,15,16]),import.meta.url);return{id:Rb,diagram:e}},"loader"),LA={id:Rb,detector:BA,loader:_A},AA=LA,Nb="sequence",FA=C(e=>/^\s*sequenceDiagram/.test(e),"detector"),$A=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./UXMpUTdi.js");return{diagram:t}},__vite__mapDeps([77,67,12]),import.meta.url);return{id:Nb,diagram:e}},"loader"),EA={id:Nb,detector:FA,loader:$A},PA=EA,qb="classDiagram",IA=C(e=>/^\s*classDiagram/.test(e),"detector"),OA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./shKa9J46.js");return{diagram:t}},__vite__mapDeps([78,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,6,53,54,55,56,57,58,59,60,61,62]),import.meta.url);return{id:qb,diagram:e}},"loader"),DA={id:qb,detector:IA,loader:OA},RA=DA,Wb="stateDiagram",NA=C(e=>/^\s*stateDiagram/.test(e),"detector"),qA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BB3cWwFJ.js");return{diagram:t}},__vite__mapDeps([79,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,6,53,54,55,56,57,58,59,60,61,62]),import.meta.url);return{id:Wb,diagram:e}},"loader"),WA={id:Wb,detector:NA,loader:qA},zA=WA,zb="journey",HA=C(e=>/^\s*journey/.test(e),"detector"),YA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CmqZ_uDU.js");return{diagram:t}},__vite__mapDeps([80,14,12]),import.meta.url);return{id:zb,diagram:e}},"loader"),XA={id:zb,detector:HA,loader:YA},jA=XA,Gn=4,Hs=75,GA=C(e=>{const t=[];for(const o of e.split(/\s+/)){let a=[...o];for(;a.length>Hs;)t.push(a.slice(0,Hs).join("")),a=a.slice(Hs);a.length>0&&t.push(a.join(""))}const r=[];let i="";for(const o of t){const a=i?`${i} ${o}`:o;[...a].length>Hs?(r.push(i),i=o):i=a}if(i&&r.push(i),r.length>Gn){r.length=Gn;const o=r[Gn-1]??"";r[Gn-1]=`${[...o].slice(0,Hs-3).join("")}...`}return r},"wrapErrorMessage"),UA=C((e,t,r,i)=>{Lt.debug(`rendering svg for syntax error
|
|
302
|
+
`);const o=CL(t),a=o.append("g"),s=GA(i?.db.getErrorMessage?.()??""),n=s.length>0?500+s.length*56:512;o.attr("viewBox",`0 0 2412 ${n}`),um(o,100,n,!0),a.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),a.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),a.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),a.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),a.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),a.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`),s.forEach((l,c)=>{a.append("text").attr("class","error-text").attr("x",1440).attr("y",510+c*56).attr("font-size","42px").style("text-anchor","middle").text(l)})},"draw"),Hb={draw:UA},VA=Hb,dh,ZA={clear(){dh=void 0},setErrorMessage(e){dh=e},getErrorMessage(){return dh}},KA={db:ZA,renderer:Hb,parser:{parse:C(()=>{},"parse")}},QA=KA,Yb="flowchart-elk",JA=C((e,t={})=>/^\s*flowchart-elk/.test(e)?(t.layout="elk",!0):!1,"detector"),t5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BjkQhjI5.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,6,53,54,55,56,57,58,59,60,61,62]),import.meta.url);return{id:Yb,diagram:e}},"loader"),e5={id:Yb,detector:JA,loader:t5},r5=e5,Xb="timeline",i5=C(e=>/^\s*timeline/.test(e),"detector"),o5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CotGE-m-.js");return{diagram:t}},[],import.meta.url);return{id:Xb,diagram:e}},"loader"),a5={id:Xb,detector:i5,loader:o5},s5=a5,jb="mindmap",n5=C(e=>/^\s*mindmap/.test(e),"detector"),l5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BMEo-arP.js");return{diagram:t}},__vite__mapDeps([81,15,16]),import.meta.url);return{id:jb,diagram:e}},"loader"),c5={id:jb,detector:n5,loader:l5},h5=c5,Gb="kanban",d5=C(e=>/^\s*kanban/.test(e),"detector"),u5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DzP46o7x.js");return{diagram:t}},__vite__mapDeps([82,14]),import.meta.url);return{id:Gb,diagram:e}},"loader"),f5={id:Gb,detector:d5,loader:u5},g5=f5,Ub="sankey",p5=C(e=>/^\s*sankey(-beta)?/.test(e),"detector"),m5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DFipwLBj.js");return{diagram:t}},__vite__mapDeps([83,71]),import.meta.url);return{id:Ub,diagram:e}},"loader"),y5={id:Ub,detector:p5,loader:m5},x5=y5,Vb="packet",b5=C(e=>/^\s*packet(-beta)?/.test(e),"detector"),C5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CrdcZu11.js");return{diagram:t}},__vite__mapDeps([84,68,69,3,4]),import.meta.url);return{id:Vb,diagram:e}},"loader"),w5={id:Vb,detector:b5,loader:C5},Zb="radar",k5=C(e=>/^\s*radar-beta/.test(e),"detector"),S5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Di7v0QY-.js");return{diagram:t}},__vite__mapDeps([85,68,69,3,4]),import.meta.url);return{id:Zb,diagram:e}},"loader"),v5={id:Zb,detector:k5,loader:S5},Kb="block",M5=C(e=>/^\s*block(-beta)?/.test(e),"detector"),T5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./5c5u2wp9.js");return{diagram:t}},__vite__mapDeps([86,14,5]),import.meta.url);return{id:Kb,diagram:e}},"loader"),B5={id:Kb,detector:M5,loader:T5},_5=B5,Qb="treeView",L5=C(e=>/^\s*treeView-beta/.test(e),"detector"),A5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Dovx3rUr.js");return{diagram:t}},__vite__mapDeps([87,67,68,69,3,4]),import.meta.url);return{id:Qb,diagram:e}},"loader"),F5={id:Qb,detector:L5,loader:A5},$5=F5,Jb="architecture",E5=C(e=>/^\s*architecture/.test(e),"detector"),P5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BmJfqz2T.js");return{diagram:t}},__vite__mapDeps([88,68,69,3,4,10,6]),import.meta.url);return{id:Jb,diagram:e}},"loader"),I5={id:Jb,detector:E5,loader:P5},O5=I5,t1="eventmodeling",D5=C(e=>/^\s*eventmodeling/.test(e),"detector"),R5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CojUJLjr.js");return{diagram:t}},__vite__mapDeps([89,68,69,3,4]),import.meta.url);return{id:t1,diagram:e}},"loader"),N5={id:t1,detector:D5,loader:R5},q5=N5,e1="ishikawa",W5=C(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),z5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CRfwZ8f3.js");return{diagram:t}},[],import.meta.url);return{id:e1,diagram:e}},"loader"),H5={id:e1,detector:W5,loader:z5},r1="venn",Y5=C(e=>/^\s*venn-beta/.test(e),"detector"),X5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./obpnHgR7.js");return{diagram:t}},[],import.meta.url);return{id:r1,diagram:e}},"loader"),j5={id:r1,detector:Y5,loader:X5},G5=j5,i1="treemap",U5=C(e=>/^\s*treemap/.test(e),"detector"),V5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DN-88F5G.js");return{diagram:t}},__vite__mapDeps([90,16,68,69,3,4,71]),import.meta.url);return{id:i1,diagram:e}},"loader"),Z5={id:i1,detector:U5,loader:V5},o1="usecase",K5=C(e=>/^\s*usecase-beta(?:\s|$)/.test(e),"detector"),Q5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./D-Skc-gA.js");return{diagram:t}},__vite__mapDeps([91,15,16]),import.meta.url);return{id:o1,diagram:e}},"loader"),J5={id:o1,detector:K5,loader:Q5},a1="wardley",tF=C(e=>/^\s*wardley-beta/i.test(e),"detector"),eF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Bb-q19YK.js");return{diagram:t}},__vite__mapDeps([92,68,69,3,4]),import.meta.url);return{id:a1,diagram:e}},"loader"),rF={id:a1,detector:tF,loader:eF},iF=rF,s1="cynefin",oF=C(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),aF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./r6nQQkL6.js");return{diagram:t}},__vite__mapDeps([93,68,69,3,4]),import.meta.url);return{id:s1,diagram:e}},"loader"),sF={id:s1,detector:oF,loader:aF},n1="railroad",nF=C(e=>/^\s*railroad-beta/i.test(e),"detector"),lF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Dl20kVCh.js");return{diagram:t}},__vite__mapDeps([94,95,68,69,3,4]),import.meta.url);return{id:n1,diagram:e}},"loader"),cF={id:n1,detector:nF,loader:lF},l1="railroadEbnf",hF=C(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),dF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./ahEX06ui.js");return{diagram:t}},__vite__mapDeps([96,95,68,69,3,4]),import.meta.url);return{id:l1,diagram:e}},"loader"),uF={id:l1,detector:hF,loader:dF},c1="railroadAbnf",fF=C(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),gF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CwVJyoHD.js");return{diagram:t}},__vite__mapDeps([97,95,68,69,3,4]),import.meta.url);return{id:c1,diagram:e}},"loader"),pF={id:c1,detector:fF,loader:gF},h1="railroadPeg",mF=C(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),yF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DCZ7ZeSa.js");return{diagram:t}},__vite__mapDeps([98,95,68,69,3,4]),import.meta.url);return{id:h1,diagram:e}},"loader"),xF={id:h1,detector:mF,loader:yF},np=!1,dc=C(()=>{np||(np=!0,Sl("error",QA,e=>e.toLowerCase().trim()==="error"),Sl("---",{db:{clear:C(()=>{},"clear")},styles:{},renderer:{draw:C(()=>{},"draw")},parser:{parse:C(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:C(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),Bh(r5,h5,O5),Bh(ZL,zL,g5,RA,oA,uA,pA,xA,AA,PA,tA,jL,s5,lA,zA,jA,kA,x5,w5,TA,_5,q5,$5,v5,H5,Z5,cF,uF,pF,xF,G5,iF,sF,J5))},"addDiagrams"),bF=C(async()=>{Lt.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(Ta).map(async([r,{detector:i,loader:o}])=>{if(o)try{$h(r)}catch{try{const{diagram:a,id:s}=await o();Sl(s,a,i)}catch(a){throw Lt.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Ta[r],a}}}))).filter(r=>r.status==="rejected");if(t.length>0){Lt.error(`Failed to load ${t.length} external diagrams`);for(const r of t)Lt.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),CF="graphics-document document";function d1(e,t){e.attr("role",CF),t!==""&&e.attr("aria-roledescription",t)}C(d1,"setA11yDiagramInfo");function u1(e,t,r,i){if(e.insert!==void 0){if(r){const o=`chart-desc-${i}`;e.attr("aria-describedby",o),e.insert("desc",":first-child").attr("id",o).text(r)}if(t){const o=`chart-title-${i}`;e.attr("aria-labelledby",o),e.insert("title",":first-child").attr("id",o).text(t)}}}C(u1,"addSVGa11yTitleDescription");var Ma,Xl=(Ma=class{constructor(t,r,i,o,a){this.type=t,this.text=r,this.db=i,this.parser=o,this.renderer=a}static async fromText(t,r={}){const i=typeof t=="string"?{cleaned:t}:t,o=Ar(),a=Zl(i.cleaned,o);try{$h(a)}catch{const u=C2(a);if(!u)throw new Jp(`Diagram ${a} not found.`);const{id:f,diagram:g}=await u();Sl(f,g)}const{db:s,parser:n,renderer:l,init:c}=$h(a);n.parser&&(n.parser.yy=s),s.clear?.(),c?.(o),r.title&&s.setDiagramTitle?.(r.title);let h=i.cleaned;if(s.preserveCommentsWhenParsing&&i.withComments){const u=o.maxTextSize??Ld.maxTextSize;i.withComments.length>u?Lt.warn(`Comment-preserving source exceeds maxTextSize (${i.withComments.length} > ${u}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):h=i.withComments}const d=TM(h)+`
|
|
303
303
|
`;return i.frontmatterLineOffset&&s.setFrontmatterLineOffset?.(i.frontmatterLineOffset),await n.parse(d),new Ma(a,d,s,n,l)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},C(Ma,"Diagram"),Ma),lp=[],wF=C(()=>{lp.forEach(e=>{e()}),lp=[]},"attachFunctions"),kF=C(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function f1(e){const t=Qp(e);if(!t)return{text:e,metadata:{}};const r=t.indent,i=r?t.body.split(`
|
|
304
304
|
`).map(s=>s.startsWith(r)?s.slice(r.length):s).join(`
|
|
305
305
|
`):t.body;let o=o2(i,{schema:i2})??{};o=typeof o=="object"&&!Array.isArray(o)?o:{};const a={};return o.displayMode&&(a.displayMode=o.displayMode.toString()),o.title&&(a.title=o.title.toString()),o.config&&(a.config=o.config),{text:e.slice(t.length),metadata:a}}C(f1,"extractFrontMatter");var SF=C(e=>e.replace(/\r\n?/g,`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as Vt,bo as ee,_ as Xr,bw as zt,bs as ce,bq as ir,b as At,bm as c}from"./Dv_tIgjy.js";import{bs as Wt,ca as pe,aD as e,bH as f,a5 as T,bA as x,W as l,bn as Nt,bV as N,c9 as n,aA as te,c6 as jt,ay as ne,be as Ze,b$ as tt,b_ as k,bO as g,bS as p,bl as S,aB as P,bj as Gr,aw as rt,ai as Jr,c5 as rr,a as yr,a7 as Ue,aj as gt,cd as Yr,br as Zr}from"./3SdAC2_C.js";import{i as Q}from"./D7nvPiBp.js";import{k as Pr}from"./D6gLzTDC.js";import{g as Ct}from"./52P8Bm3E.js";import{c as Rt}from"./DpKzpN4e.js";import{b as $r}from"./Dn334wJv.js";import{Jv as U,nX as kr,we as Ir,wd as Cr,LL as Qr,LM as ea,eJ as ta,eK as ra,Lb as fr,m5 as Yt,Cx as vr,sG as pr,oj as aa,A2 as oa,ac as gr,K2 as ia,Ki as na,nx as sa,iW as la,nZ as da,vG as ca,Av as ua,La as fa}from"./CWhRK5Rp.js";import{g as va}from"./DWGXN6Nr.js";import{a as pa,h as ga,j as ma,c as _a,d as ha,i as wa,e as ba,f as mr,g as xa,b as Zt}from"./CSQyBrRH.js";import{bO as ya,b$ as Pa,dH as $a}from"./BqA-3o9l.js";import{w as _r,d as ka}from"./wEnqV1Ol.js";import{f as Ia}from"./CxTWC0xh.js";import{m as Qt}from"./I4WMrmBa.js";import{f as Ce}from"./Z_oRTxSz.js";import{h as Ca}from"./D7fB2Oi-.js";import"./BPxuNmyn.js";import{s as at,g as It,f as hr}from"./DLx1kqr5.js";import{F as et,ac as Sa,au as Fa,aZ as Da,b3 as Ut,ct as Ta,cu as Ea,bm as Ra,cS as Ma,c9 as ja}from"./B80pUkKE.js";import{E as Ua,b as La,S as wr}from"./Cv8U-Bhv.js";import{c as Va}from"./ChTqQfQN.js";import"./KS3jDVZW.js";import{$ as za}from"./DU4vrWyh.js";import{i as er,b as Aa,a as Wa}from"./H2jLkRRS.js";import{C as ar,p as Na}from"./DfJ0n1tN.js";import{M as Ba}from"./BGIIIhAt.js";import{l as tr,m as Sr}from"./JGtSKGY1.js";import"./B23aic_N.js";import"./Cm6Te9Vq.js";import{M as Mt}from"./BMiwx6rS.js";import{V as Oa}from"./BEk-bvEu.js";import{bT as Ha,b7 as qa}from"./ChbSsiLP.js";import{g as Ka}from"./BH7eVR7o.js";import{H as Xa}from"./Bqd7fdCF.js";import{g as Ga,W as Ja}from"./g71ihZ8_.js";import{b as Ya,h as Za}from"./t5ofrZ-c.js";import{t as Qa}from"./DUpPMwJS.js";const Fr=U.createSelector((G,w)=>kr(G.pdfPreview.previews,w));var eo=P('<div class="flex shrink-0 flex-wrap items-center justify-center gap-2 border-b border-border p-2"><!> <span aria-live="polite"> </span> <!> <!> <span> </span> <!></div> <div class="min-h-0 flex-1 overflow-auto p-4"><canvas class="mx-auto block" role="img"></canvas></div>',1),to=P('<div class="flex h-full min-h-0 flex-col" data-testid="pdf-viewer"><!></div>');function or(G,w){if(new.target)return Vt({component:or,...G});Wt(w,!0);const ye=()=>ce(we,"$preview",ot),[ot,re]=ir();let y=ee(w,"workspaceId",7),ae=ee(w,"filePath",7),Pe=ee(w,"gitRootId",7);const Se=crypto.randomUUID(),we=Fr(Se),ge=new WeakMap;let Y=N(null),Xe=N(void 0),V=N(1),B=N(1),se=N(!0),me=N(!1),Fe=N(null),A=N(0);const be=n(()=>ye()?.error??e(Fe)),De=n(()=>e(be)==="missing"?c.file_pdf_missing_error():e(be)==="large"?c.file_pdf_large_error():e(be)==="invalid"?c.file_pdf_invalid_error():e(be)==="password"?c.file_pdf_password_error():c.file_pdf_load_error());pe(()=>{const d=y(),I=ae();e(A);const b=crypto.randomUUID();return U.dispatch(Ir(Se,b,d,I,...Pe()?[{gitRootId:Pe()}]:[])),()=>{U.dispatch(Cr(Se,b))}}),pe(()=>{const d=ye()?.url;let I=!1,b;if(f(Y,null),f(Fe,null),f(se,!0),f(V,1),f(B,1),!!d)return(async()=>{try{const{loadPdfDocument:W}=await Xr(async()=>{const{loadPdfDocument:_e}=await import("./cb1JHFKl.js");return{loadPdfDocument:_e}},[],import.meta.url);if(I)return;b=W(d);const M=await b.promise;I||f(Y,M)}catch(W){if(I)return;f(Fe,W instanceof Error&&W.name==="PasswordException"?"password":W instanceof Error&&W.name==="InvalidPDFException"?"invalid":"load",!0)}finally{I||f(se,!1)}})(),()=>{I=!0,b?.destroy()}}),pe(()=>{const d=e(Y),I=e(Xe),b=e(V),W=e(B);if(!d||!I)return;let M=!1,_e,E;const oe=()=>{if(!E)return;const X=(ge.get(E)??1)-1;X?ge.set(E,X):(ge.delete(E),E.cleanup()),E=void 0};return f(me,!0),(async()=>{try{if(E=await d.getPage(b),ge.set(E,(ge.get(E)??0)+1),M){oe();return}const X=E.getViewport({scale:W}),Z=Math.min(window.devicePixelRatio||1,2,Math.sqrt(16e6/(X.width*X.height)));I.width=Math.ceil(X.width*Z),I.height=Math.ceil(X.height*Z),I.style.width=`${X.width}px`,I.style.height=`${X.height}px`,_e=E.render({canvas:I,viewport:X,transform:[Z,0,0,Z,0,0]}),await _e.promise}catch{M||f(Fe,"invalid")}finally{M||f(me,!1)}})(),()=>{M=!0,_e?.cancel(),_e?_e.promise.then(oe,oe):oe()}});var Ne={get workspaceId(){return y()},set workspaceId(d){y(d),te()},get filePath(){return ae()},set filePath(d){ae(d),te()},get gitRootId(){return Pe()},set gitRootId(d){Pe(d),te()},$set:zt,$on:(d,I)=>At(w,d,I)},Le=to(),Be=T(Le);{var o=d=>{{const I=W=>{Ze();var M=tt();k(()=>g(M,e(De))),l(W,M)};let b=n(()=>c.ui_combobox_retry_label());Ua(d,{onRetry:()=>jt(A),get retryLabel(){return e(b)},class:"m-auto",message:I,$$slots:{message:!0}})}},i=d=>{{let I=n(()=>c.file_pdf_loading_label());La(d,{get label(){return e(I)},count:1,class:"p-4"})}},F=d=>{var I=eo(),b=ne(I),W=T(b);{let ue=n(()=>e(V)<=1);Ce(W,{variant:"ghost",size:"compact",get disabled(){return e(ue)},onclick:()=>jt(V,-1),children:(Ee,Ve)=>{Ze();var fe=tt();k(ze=>g(fe,ze),[()=>c.file_pdf_previous_label()]),l(Ee,fe)},$$slots:{default:!0}})}var M=p(W,2),_e=S(M,!0),E=p(M,2);{let ue=n(()=>e(V)>=e(Y).numPages);Ce(E,{variant:"ghost",size:"compact",get disabled(){return e(ue)},onclick:()=>jt(V),children:(Ee,Ve)=>{Ze();var fe=tt();k(ze=>g(fe,ze),[()=>c.file_pdf_next_label()]),l(Ee,fe)},$$slots:{default:!0}})}var oe=p(E,2);{let ue=n(()=>e(B)<=.25);Ce(oe,{variant:"ghost",size:"compact",get disabled(){return e(ue)},onclick:()=>f(B,Math.max(.25,e(B)-.25),!0),children:(Ee,Ve)=>{Ze();var fe=tt();k(ze=>g(fe,ze),[()=>c.editor_fileViewer_zoomOut_tooltip()]),l(Ee,fe)},$$slots:{default:!0}})}var X=p(oe,2),Z=S(X,!0),it=p(X,2);{let ue=n(()=>e(B)>=3);Ce(it,{variant:"ghost",size:"compact",get disabled(){return e(ue)},onclick:()=>f(B,Math.min(3,e(B)+.25),!0),children:(Ee,Ve)=>{Ze();var fe=tt();k(ze=>g(fe,ze),[()=>c.editor_fileViewer_zoomIn_tooltip()]),l(Ee,fe)},$$slots:{default:!0}})}x(b);var nt=p(b,2),st=T(nt);let ut;$r(st,ue=>f(Xe,ue),()=>e(Xe)),x(nt),k((ue,Ee,Ve)=>{g(_e,ue),g(Z,Ee),at(nt,"aria-busy",e(me)),at(st,"aria-label",Ve),ut=It(st,"",ut,{visibility:e(me)?"hidden":"visible"})},[()=>c.file_pdf_page_label({page:tr(e(V)),total:tr(e(Y).numPages)}),()=>Sr(e(B),{style:"percent"}),()=>c.file_pdf_canvas_ariaLabel({name:ae(),page:tr(e(V))})]),l(d,I)};Q(Be,d=>{e(be)?d(o):e(se)||ye()?.status==="loading"?d(i,1):e(Y)&&d(F,2)})}x(Le),l(G,Le);var Te=Nt(Ne);return re(),Te}const ro=U.createSelector((G,w)=>kr(G.videoPreview.previews,w));var ao=P('<p role="status"> </p>'),oo=P('<p role="alert"> </p>'),io=P('<div class="flex flex-col items-center gap-3 p-6 text-center text-sm text-subtle"><p class="break-all"> </p> <!> <!></div>'),no=P('<video controls="" preload="metadata" playsinline="" class="max-w-full max-h-full" data-testid="file-video"> </video>',2),so=P('<div class="min-h-0 flex-1 flex items-center justify-center bg-background"><!></div>');function Dr(G,w){if(new.target)return Vt({component:Dr,...G});Wt(w,!0);const ye=()=>ce(Xe,"$preview",ot),[ot,re]=ir();let y=ee(w,"sourceUrl",7),ae=ee(w,"fileName",7),Pe=ee(w,"allowDownload",7),Se=ee(w,"downloading",7),we=ee(w,"onDownload",7),ge=N(null);const Y=crypto.randomUUID(),Xe=ro(Y),V=n(()=>ye()?.status==="loading"),B=n(()=>e(ge)??ye()?.error);let se=!1,me=!1;Gr(()=>{me=!0,U.dispatch(Qr(Y))});function Fe(){if(me||e(V))return;const i=y().startsWith("workspace-file://")?new URL(y()):null;if(se||!i||!i.pathname.toLowerCase().endsWith(".mp4")){f(ge,"unsupported");return}se=!0,i.searchParams.set("preview","h264"),U.dispatch(ea(Y,i.hostname,i.toString()))}function A(i){if(me)return;const F=i.currentTarget.error?.code;F===2?f(ge,"network"):F!==1&&Fe()}var be={get sourceUrl(){return y()},set sourceUrl(i){y(i),te()},get fileName(){return ae()},set fileName(i){ae(i),te()},get allowDownload(){return Pe()},set allowDownload(i){Pe(i),te()},get downloading(){return Se()},set downloading(i){Se(i),te()},get onDownload(){return we()},set onDownload(i){we(i),te()},$set:zt,$on:(i,F)=>At(w,i,F)},De=so(),Ne=T(De);{var Le=i=>{var F=io(),Te=T(F),d=S(Te,!0),I=p(Te,2);{var b=E=>{var oe=ao(),X=S(oe,!0);k(Z=>g(X,Z),[()=>c.editor_fileViewer_videoPreparing_label()]),l(E,oe)},W=E=>{var oe=oo(),X=S(oe,!0);k(Z=>g(X,Z),[()=>e(B)==="network"?c.editor_fileViewer_videoLoad_error():c.editor_fileViewer_videoUnsupported_label()]),l(E,oe)};Q(I,E=>{e(V)?E(b):E(W,-1)})}var M=p(I,2);{var _e=E=>{Ce(E,{variant:"secondary",size:"sm",get onclick(){return we()},get disabled(){return Se()},children:(oe,X)=>{Ze();var Z=tt();k(it=>g(Z,it),[()=>c.layout_fileTab_downloadFile_label()]),l(oe,Z)},$$slots:{default:!0}})};Q(M,E=>{Pe()&&E(_e)})}x(F),k(()=>g(d,ae())),l(i,F)},Be=i=>{var F=no(),Te=S(F,!0);k(d=>{at(F,"src",ye()?.url??y()),g(Te,d)},[()=>c.editor_fileViewer_videoUnsupported_label()]),rt("error",F,A),rt("loadedmetadata",F,d=>{d.currentTarget.videoWidth===0&&Fe()}),l(i,F)};Q(Ne,i=>{e(B)||e(V)?i(Le):i(Be,-1)})}x(De),l(G,De);var o=Nt(be);return re(),o}var lo=P('<!> <span class="text-xs text-subtle min-w-[50px] text-center"> </span> <!> <div class="w-px h-5 bg-border mx-1"></div>',1),co=P('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="w-px h-5 bg-border mx-1"></div> <!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),uo=P('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),fo=P('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"></path></svg></div> <div class="text-sm text-subtle mb-4"> </div> <audio controls="" class="w-full max-w-md"><source/> </audio></div>'),vo=P("<!> ",1),po=P('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"></path></svg></div> <p class="text-sm text-subtle mb-4"> </p> <!></div>'),go=P('<th class="border border-border px-2 py-1 text-left text-xs font-medium bg-muted"> </th>'),mo=P('<td class="border border-border px-2 py-1 text-xs"> </td>'),_o=P("<tr></tr>"),ho=P('<div class="flex-1 overflow-auto p-4"><table class="w-full border-collapse"><thead><tr></tr></thead><tbody></tbody></table></div>'),wo=P('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),bo=P('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),xo=P('<div class="h-full flex flex-col"><!></div>');function Lt(G,w){if(new.target)return Vt({component:Lt,...G});Wt(w,!0);const ye=t=>{var a=lo(),u=ne(a);{let O=n(()=>c.editor_fileViewer_zoomOut_tooltip());Ce(u,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:oe,get title(){return e(O)},children:(D,L)=>{et(D,{get icon(){return Ta},size:"sm"})},$$slots:{default:!0}})}var m=p(u,2),h=S(m,!0),R=p(m,2);{let O=n(()=>c.editor_fileViewer_zoomIn_tooltip());Ce(R,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:E,get title(){return e(O)},children:(D,L)=>{et(D,{get icon(){return Ea},size:"sm"})},$$slots:{default:!0}})}Ze(2),k(()=>g(h,e(Fe))),l(t,a)},ot=Va("FileViewer");let re=ee(w,"filePath",7),y=ee(w,"fileContent",7,""),ae=ee(w,"sourceUrl",7),Pe=ee(w,"language",7),Se=ee(w,"isBinary",7),we=ee(w,"allowDownload",7,!0),ge=ee(w,"onDownload",7),Y=ee(w,"downloading",7,!1);const Xe=t=>{const a=t.split(".").pop()?.toLowerCase()||"";return["png","jpg","jpeg","gif","webp","bmp","ico","avif"].includes(a)?"image":a==="svg"?"svg":["mp4","webm","ogg","mov","avi"].includes(a)?"video":["mp3","wav","ogg","m4a","flac"].includes(a)?"audio":a==="pdf"?"pdf":["md","markdown"].includes(a)?"markdown":a==="json"?"json":a==="csv"?"csv":["yaml","yml"].includes(a)?"yaml":a==="xml"?"xml":["zip","tar","gz","rar","7z","bz2"].includes(a)?"archive":["exe","dll","so","dylib","wasm"].includes(a)?"binary":"text"},V=n(()=>Xe(re())),B=n(()=>re().split("/").pop()||c.editor_fileViewer_unknown_fallback());let se=N(100),me=N(0);const Fe=n(()=>Sr(e(se)/100,{style:"percent",maximumFractionDigits:0}));let A=N(!1),be=N(0),De=N(0),Ne=N(0),Le=N(0),Be=N(!1),o=null;function i(){const t=o;o=null,f(Be,!1),t?.viewport.hasPointerCapture(t.pointerId)&&t.viewport.releasePointerCapture(t.pointerId)}function F(t){if(t.button!==0||!t.isPrimary||o)return;const a=t.currentTarget;a.setPointerCapture(t.pointerId),o={pointerId:t.pointerId,x:t.clientX,y:t.clientY,viewport:a},f(Be,!0),t.preventDefault()}function Te(t){if(!(!o||t.pointerId!==o.pointerId)){if((t.buttons&1)===0){i();return}f(Ne,o.viewport.scrollLeft,!0),f(Le,o.viewport.scrollTop,!0),f(be,e(be)+(t.clientX-o.x)),f(De,e(De)+(t.clientY-o.y)),o.x=t.clientX,o.y=t.clientY}}function d(t){t.pointerId===o?.pointerId&&i()}pe(()=>{re(),ae(),e(se),e(me),f(Ne,0),f(Le,0)}),pe(()=>(re(),ae(),rr(()=>{i(),f(be,0),f(De,0)}),i));const I=t=>{const a=t.split(".").pop()?.toLowerCase();return a==="jpg"||a==="jpeg"?"image/jpeg":a==="png"?"image/png":a==="gif"?"image/gif":a==="webp"?"image/webp":"application/octet-stream"},b=t=>{const a=t.split(".").pop()?.toLowerCase();if(a==="mp4")return"video/mp4";if(a==="webm")return"video/webm"},W=()=>{if(ae())return ae();if(typeof y()=="string")return y().startsWith("data:")||y().startsWith("http")?y():Se()?`data:${I(re())};base64,${y()}`:`data:${I(re())};base64,${y()}`;if(y()instanceof ArrayBuffer){const a=new Uint8Array(y()).reduce((m,h)=>m+String.fromCharCode(h),""),u=btoa(a);return`data:${I(re())};base64,${u}`}return""},M=()=>{if(ae())return ae();const t=b(re());if(!t)return"";if(typeof y()=="string")return y().startsWith("data:")||y().startsWith("http")?y():`data:${t};base64,${y()}`;const a=new Uint8Array(y()),u=[],m=32768;for(let h=0;h<a.length;h+=m)u.push(String.fromCharCode(...a.subarray(h,h+m)));return`data:${t};base64,${btoa(u.join(""))}`},_e=()=>{const t=typeof y()=="string"?new TextEncoder().encode(y()):new Uint8Array(y()),a=[],u=32768;for(let m=0;m<t.length;m+=u)a.push(String.fromCharCode(...t.subarray(m,m+u)));return`data:image/svg+xml;base64,${btoa(a.join(""))}`},E=()=>{f(se,Math.min(e(se)+25,500),!0)},oe=()=>{f(se,Math.max(e(se)-25,25),!0)},X=()=>{f(me,(e(me)+90)%360)},Z=()=>{if(!we()||Y())return;if(ge()){ge()();return}const t=document.createElement("a");t.href=e(V)==="video"?M():e(V)==="svg"?_e():W(),t.download=e(B),t.click()},it=async()=>{try{const t=W(),a=new Image;a.crossOrigin="anonymous";const u=await new Promise((m,h)=>{a.onload=()=>{const R=document.createElement("canvas");R.width=a.naturalWidth,R.height=a.naturalHeight;const O=R.getContext("2d");if(!O){h(new Error("Failed to get canvas context"));return}O.drawImage(a,0,0),R.toBlob(D=>{D?m(D):h(new Error("Failed to create blob from canvas"))},"image/png",1)},a.onerror=()=>h(new Error("Failed to load image")),a.src=t});await navigator.clipboard.write([new ClipboardItem({"image/png":u})]),f(A,!0),setTimeout(()=>f(A,!1),2e3)}catch(t){ot.error("Failed to copy image:",t)}},nt=t=>{try{const a=JSON.parse(t);return JSON.stringify(a,null,2)}catch{return t}},st=t=>t.split(`
|
|
1
|
+
import{t as Vt,bo as ee,_ as Xr,bw as zt,bs as ce,bq as ir,b as At,bm as c}from"./Dv_tIgjy.js";import{bs as Wt,ca as pe,aD as e,bH as f,a5 as T,bA as x,W as l,bn as Nt,bV as N,c9 as n,aA as te,c6 as jt,ay as ne,be as Ze,b$ as tt,b_ as k,bO as g,bS as p,bl as S,aB as P,bj as Gr,aw as rt,ai as Jr,c5 as rr,a as yr,a7 as Ue,aj as gt,cd as Yr,br as Zr}from"./3SdAC2_C.js";import{i as Q}from"./D7nvPiBp.js";import{k as Pr}from"./D6gLzTDC.js";import{g as Ct}from"./52P8Bm3E.js";import{c as Rt}from"./DpKzpN4e.js";import{b as $r}from"./Dn334wJv.js";import{Jv as U,nX as kr,we as Ir,wd as Cr,LL as Qr,LM as ea,eJ as ta,eK as ra,Lb as fr,m5 as Yt,Cx as vr,sG as pr,oj as aa,A2 as oa,ac as gr,K2 as ia,Ki as na,nx as sa,iW as la,nZ as da,vG as ca,Av as ua,La as fa}from"./CWhRK5Rp.js";import{g as va}from"./DWGXN6Nr.js";import{a as pa,h as ga,j as ma,c as _a,d as ha,i as wa,e as ba,f as mr,g as xa,b as Zt}from"./CSQyBrRH.js";import{bO as ya,b$ as Pa,dH as $a}from"./BqA-3o9l.js";import{w as _r,d as ka}from"./wEnqV1Ol.js";import{f as Ia}from"./CxTWC0xh.js";import{m as Qt}from"./I4WMrmBa.js";import{f as Ce}from"./Z_oRTxSz.js";import{h as Ca}from"./D7fB2Oi-.js";import"./BPxuNmyn.js";import{s as at,g as It,f as hr}from"./DLx1kqr5.js";import{F as et,ac as Sa,au as Fa,aZ as Da,b3 as Ut,ct as Ta,cu as Ea,bm as Ra,cS as Ma,c9 as ja}from"./B80pUkKE.js";import{E as Ua,b as La,S as wr}from"./Cv8U-Bhv.js";import{c as Va}from"./ChTqQfQN.js";import"./KS3jDVZW.js";import{$ as za}from"./BOxy6wNc.js";import{i as er,b as Aa,a as Wa}from"./H2jLkRRS.js";import{C as ar,p as Na}from"./DfJ0n1tN.js";import{M as Ba}from"./CcqCUp8i.js";import{l as tr,m as Sr}from"./JGtSKGY1.js";import"./B23aic_N.js";import"./Cm6Te9Vq.js";import{M as Mt}from"./BMiwx6rS.js";import{V as Oa}from"./BEk-bvEu.js";import{bT as Ha,b7 as qa}from"./BvV0Fq2a.js";import{g as Ka}from"./BH7eVR7o.js";import{H as Xa}from"./Bqd7fdCF.js";import{g as Ga,W as Ja}from"./g71ihZ8_.js";import{b as Ya,h as Za}from"./t5ofrZ-c.js";import{t as Qa}from"./DUpPMwJS.js";const Fr=U.createSelector((G,w)=>kr(G.pdfPreview.previews,w));var eo=P('<div class="flex shrink-0 flex-wrap items-center justify-center gap-2 border-b border-border p-2"><!> <span aria-live="polite"> </span> <!> <!> <span> </span> <!></div> <div class="min-h-0 flex-1 overflow-auto p-4"><canvas class="mx-auto block" role="img"></canvas></div>',1),to=P('<div class="flex h-full min-h-0 flex-col" data-testid="pdf-viewer"><!></div>');function or(G,w){if(new.target)return Vt({component:or,...G});Wt(w,!0);const ye=()=>ce(we,"$preview",ot),[ot,re]=ir();let y=ee(w,"workspaceId",7),ae=ee(w,"filePath",7),Pe=ee(w,"gitRootId",7);const Se=crypto.randomUUID(),we=Fr(Se),ge=new WeakMap;let Y=N(null),Xe=N(void 0),V=N(1),B=N(1),se=N(!0),me=N(!1),Fe=N(null),A=N(0);const be=n(()=>ye()?.error??e(Fe)),De=n(()=>e(be)==="missing"?c.file_pdf_missing_error():e(be)==="large"?c.file_pdf_large_error():e(be)==="invalid"?c.file_pdf_invalid_error():e(be)==="password"?c.file_pdf_password_error():c.file_pdf_load_error());pe(()=>{const d=y(),I=ae();e(A);const b=crypto.randomUUID();return U.dispatch(Ir(Se,b,d,I,...Pe()?[{gitRootId:Pe()}]:[])),()=>{U.dispatch(Cr(Se,b))}}),pe(()=>{const d=ye()?.url;let I=!1,b;if(f(Y,null),f(Fe,null),f(se,!0),f(V,1),f(B,1),!!d)return(async()=>{try{const{loadPdfDocument:W}=await Xr(async()=>{const{loadPdfDocument:_e}=await import("./cb1JHFKl.js");return{loadPdfDocument:_e}},[],import.meta.url);if(I)return;b=W(d);const M=await b.promise;I||f(Y,M)}catch(W){if(I)return;f(Fe,W instanceof Error&&W.name==="PasswordException"?"password":W instanceof Error&&W.name==="InvalidPDFException"?"invalid":"load",!0)}finally{I||f(se,!1)}})(),()=>{I=!0,b?.destroy()}}),pe(()=>{const d=e(Y),I=e(Xe),b=e(V),W=e(B);if(!d||!I)return;let M=!1,_e,E;const oe=()=>{if(!E)return;const X=(ge.get(E)??1)-1;X?ge.set(E,X):(ge.delete(E),E.cleanup()),E=void 0};return f(me,!0),(async()=>{try{if(E=await d.getPage(b),ge.set(E,(ge.get(E)??0)+1),M){oe();return}const X=E.getViewport({scale:W}),Z=Math.min(window.devicePixelRatio||1,2,Math.sqrt(16e6/(X.width*X.height)));I.width=Math.ceil(X.width*Z),I.height=Math.ceil(X.height*Z),I.style.width=`${X.width}px`,I.style.height=`${X.height}px`,_e=E.render({canvas:I,viewport:X,transform:[Z,0,0,Z,0,0]}),await _e.promise}catch{M||f(Fe,"invalid")}finally{M||f(me,!1)}})(),()=>{M=!0,_e?.cancel(),_e?_e.promise.then(oe,oe):oe()}});var Ne={get workspaceId(){return y()},set workspaceId(d){y(d),te()},get filePath(){return ae()},set filePath(d){ae(d),te()},get gitRootId(){return Pe()},set gitRootId(d){Pe(d),te()},$set:zt,$on:(d,I)=>At(w,d,I)},Le=to(),Be=T(Le);{var o=d=>{{const I=W=>{Ze();var M=tt();k(()=>g(M,e(De))),l(W,M)};let b=n(()=>c.ui_combobox_retry_label());Ua(d,{onRetry:()=>jt(A),get retryLabel(){return e(b)},class:"m-auto",message:I,$$slots:{message:!0}})}},i=d=>{{let I=n(()=>c.file_pdf_loading_label());La(d,{get label(){return e(I)},count:1,class:"p-4"})}},F=d=>{var I=eo(),b=ne(I),W=T(b);{let ue=n(()=>e(V)<=1);Ce(W,{variant:"ghost",size:"compact",get disabled(){return e(ue)},onclick:()=>jt(V,-1),children:(Ee,Ve)=>{Ze();var fe=tt();k(ze=>g(fe,ze),[()=>c.file_pdf_previous_label()]),l(Ee,fe)},$$slots:{default:!0}})}var M=p(W,2),_e=S(M,!0),E=p(M,2);{let ue=n(()=>e(V)>=e(Y).numPages);Ce(E,{variant:"ghost",size:"compact",get disabled(){return e(ue)},onclick:()=>jt(V),children:(Ee,Ve)=>{Ze();var fe=tt();k(ze=>g(fe,ze),[()=>c.file_pdf_next_label()]),l(Ee,fe)},$$slots:{default:!0}})}var oe=p(E,2);{let ue=n(()=>e(B)<=.25);Ce(oe,{variant:"ghost",size:"compact",get disabled(){return e(ue)},onclick:()=>f(B,Math.max(.25,e(B)-.25),!0),children:(Ee,Ve)=>{Ze();var fe=tt();k(ze=>g(fe,ze),[()=>c.editor_fileViewer_zoomOut_tooltip()]),l(Ee,fe)},$$slots:{default:!0}})}var X=p(oe,2),Z=S(X,!0),it=p(X,2);{let ue=n(()=>e(B)>=3);Ce(it,{variant:"ghost",size:"compact",get disabled(){return e(ue)},onclick:()=>f(B,Math.min(3,e(B)+.25),!0),children:(Ee,Ve)=>{Ze();var fe=tt();k(ze=>g(fe,ze),[()=>c.editor_fileViewer_zoomIn_tooltip()]),l(Ee,fe)},$$slots:{default:!0}})}x(b);var nt=p(b,2),st=T(nt);let ut;$r(st,ue=>f(Xe,ue),()=>e(Xe)),x(nt),k((ue,Ee,Ve)=>{g(_e,ue),g(Z,Ee),at(nt,"aria-busy",e(me)),at(st,"aria-label",Ve),ut=It(st,"",ut,{visibility:e(me)?"hidden":"visible"})},[()=>c.file_pdf_page_label({page:tr(e(V)),total:tr(e(Y).numPages)}),()=>Sr(e(B),{style:"percent"}),()=>c.file_pdf_canvas_ariaLabel({name:ae(),page:tr(e(V))})]),l(d,I)};Q(Be,d=>{e(be)?d(o):e(se)||ye()?.status==="loading"?d(i,1):e(Y)&&d(F,2)})}x(Le),l(G,Le);var Te=Nt(Ne);return re(),Te}const ro=U.createSelector((G,w)=>kr(G.videoPreview.previews,w));var ao=P('<p role="status"> </p>'),oo=P('<p role="alert"> </p>'),io=P('<div class="flex flex-col items-center gap-3 p-6 text-center text-sm text-subtle"><p class="break-all"> </p> <!> <!></div>'),no=P('<video controls="" preload="metadata" playsinline="" class="max-w-full max-h-full" data-testid="file-video"> </video>',2),so=P('<div class="min-h-0 flex-1 flex items-center justify-center bg-background"><!></div>');function Dr(G,w){if(new.target)return Vt({component:Dr,...G});Wt(w,!0);const ye=()=>ce(Xe,"$preview",ot),[ot,re]=ir();let y=ee(w,"sourceUrl",7),ae=ee(w,"fileName",7),Pe=ee(w,"allowDownload",7),Se=ee(w,"downloading",7),we=ee(w,"onDownload",7),ge=N(null);const Y=crypto.randomUUID(),Xe=ro(Y),V=n(()=>ye()?.status==="loading"),B=n(()=>e(ge)??ye()?.error);let se=!1,me=!1;Gr(()=>{me=!0,U.dispatch(Qr(Y))});function Fe(){if(me||e(V))return;const i=y().startsWith("workspace-file://")?new URL(y()):null;if(se||!i||!i.pathname.toLowerCase().endsWith(".mp4")){f(ge,"unsupported");return}se=!0,i.searchParams.set("preview","h264"),U.dispatch(ea(Y,i.hostname,i.toString()))}function A(i){if(me)return;const F=i.currentTarget.error?.code;F===2?f(ge,"network"):F!==1&&Fe()}var be={get sourceUrl(){return y()},set sourceUrl(i){y(i),te()},get fileName(){return ae()},set fileName(i){ae(i),te()},get allowDownload(){return Pe()},set allowDownload(i){Pe(i),te()},get downloading(){return Se()},set downloading(i){Se(i),te()},get onDownload(){return we()},set onDownload(i){we(i),te()},$set:zt,$on:(i,F)=>At(w,i,F)},De=so(),Ne=T(De);{var Le=i=>{var F=io(),Te=T(F),d=S(Te,!0),I=p(Te,2);{var b=E=>{var oe=ao(),X=S(oe,!0);k(Z=>g(X,Z),[()=>c.editor_fileViewer_videoPreparing_label()]),l(E,oe)},W=E=>{var oe=oo(),X=S(oe,!0);k(Z=>g(X,Z),[()=>e(B)==="network"?c.editor_fileViewer_videoLoad_error():c.editor_fileViewer_videoUnsupported_label()]),l(E,oe)};Q(I,E=>{e(V)?E(b):E(W,-1)})}var M=p(I,2);{var _e=E=>{Ce(E,{variant:"secondary",size:"sm",get onclick(){return we()},get disabled(){return Se()},children:(oe,X)=>{Ze();var Z=tt();k(it=>g(Z,it),[()=>c.layout_fileTab_downloadFile_label()]),l(oe,Z)},$$slots:{default:!0}})};Q(M,E=>{Pe()&&E(_e)})}x(F),k(()=>g(d,ae())),l(i,F)},Be=i=>{var F=no(),Te=S(F,!0);k(d=>{at(F,"src",ye()?.url??y()),g(Te,d)},[()=>c.editor_fileViewer_videoUnsupported_label()]),rt("error",F,A),rt("loadedmetadata",F,d=>{d.currentTarget.videoWidth===0&&Fe()}),l(i,F)};Q(Ne,i=>{e(B)||e(V)?i(Le):i(Be,-1)})}x(De),l(G,De);var o=Nt(be);return re(),o}var lo=P('<!> <span class="text-xs text-subtle min-w-[50px] text-center"> </span> <!> <div class="w-px h-5 bg-border mx-1"></div>',1),co=P('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="w-px h-5 bg-border mx-1"></div> <!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),uo=P('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),fo=P('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"></path></svg></div> <div class="text-sm text-subtle mb-4"> </div> <audio controls="" class="w-full max-w-md"><source/> </audio></div>'),vo=P("<!> ",1),po=P('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"></path></svg></div> <p class="text-sm text-subtle mb-4"> </p> <!></div>'),go=P('<th class="border border-border px-2 py-1 text-left text-xs font-medium bg-muted"> </th>'),mo=P('<td class="border border-border px-2 py-1 text-xs"> </td>'),_o=P("<tr></tr>"),ho=P('<div class="flex-1 overflow-auto p-4"><table class="w-full border-collapse"><thead><tr></tr></thead><tbody></tbody></table></div>'),wo=P('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),bo=P('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),xo=P('<div class="h-full flex flex-col"><!></div>');function Lt(G,w){if(new.target)return Vt({component:Lt,...G});Wt(w,!0);const ye=t=>{var a=lo(),u=ne(a);{let O=n(()=>c.editor_fileViewer_zoomOut_tooltip());Ce(u,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:oe,get title(){return e(O)},children:(D,L)=>{et(D,{get icon(){return Ta},size:"sm"})},$$slots:{default:!0}})}var m=p(u,2),h=S(m,!0),R=p(m,2);{let O=n(()=>c.editor_fileViewer_zoomIn_tooltip());Ce(R,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:E,get title(){return e(O)},children:(D,L)=>{et(D,{get icon(){return Ea},size:"sm"})},$$slots:{default:!0}})}Ze(2),k(()=>g(h,e(Fe))),l(t,a)},ot=Va("FileViewer");let re=ee(w,"filePath",7),y=ee(w,"fileContent",7,""),ae=ee(w,"sourceUrl",7),Pe=ee(w,"language",7),Se=ee(w,"isBinary",7),we=ee(w,"allowDownload",7,!0),ge=ee(w,"onDownload",7),Y=ee(w,"downloading",7,!1);const Xe=t=>{const a=t.split(".").pop()?.toLowerCase()||"";return["png","jpg","jpeg","gif","webp","bmp","ico","avif"].includes(a)?"image":a==="svg"?"svg":["mp4","webm","ogg","mov","avi"].includes(a)?"video":["mp3","wav","ogg","m4a","flac"].includes(a)?"audio":a==="pdf"?"pdf":["md","markdown"].includes(a)?"markdown":a==="json"?"json":a==="csv"?"csv":["yaml","yml"].includes(a)?"yaml":a==="xml"?"xml":["zip","tar","gz","rar","7z","bz2"].includes(a)?"archive":["exe","dll","so","dylib","wasm"].includes(a)?"binary":"text"},V=n(()=>Xe(re())),B=n(()=>re().split("/").pop()||c.editor_fileViewer_unknown_fallback());let se=N(100),me=N(0);const Fe=n(()=>Sr(e(se)/100,{style:"percent",maximumFractionDigits:0}));let A=N(!1),be=N(0),De=N(0),Ne=N(0),Le=N(0),Be=N(!1),o=null;function i(){const t=o;o=null,f(Be,!1),t?.viewport.hasPointerCapture(t.pointerId)&&t.viewport.releasePointerCapture(t.pointerId)}function F(t){if(t.button!==0||!t.isPrimary||o)return;const a=t.currentTarget;a.setPointerCapture(t.pointerId),o={pointerId:t.pointerId,x:t.clientX,y:t.clientY,viewport:a},f(Be,!0),t.preventDefault()}function Te(t){if(!(!o||t.pointerId!==o.pointerId)){if((t.buttons&1)===0){i();return}f(Ne,o.viewport.scrollLeft,!0),f(Le,o.viewport.scrollTop,!0),f(be,e(be)+(t.clientX-o.x)),f(De,e(De)+(t.clientY-o.y)),o.x=t.clientX,o.y=t.clientY}}function d(t){t.pointerId===o?.pointerId&&i()}pe(()=>{re(),ae(),e(se),e(me),f(Ne,0),f(Le,0)}),pe(()=>(re(),ae(),rr(()=>{i(),f(be,0),f(De,0)}),i));const I=t=>{const a=t.split(".").pop()?.toLowerCase();return a==="jpg"||a==="jpeg"?"image/jpeg":a==="png"?"image/png":a==="gif"?"image/gif":a==="webp"?"image/webp":"application/octet-stream"},b=t=>{const a=t.split(".").pop()?.toLowerCase();if(a==="mp4")return"video/mp4";if(a==="webm")return"video/webm"},W=()=>{if(ae())return ae();if(typeof y()=="string")return y().startsWith("data:")||y().startsWith("http")?y():Se()?`data:${I(re())};base64,${y()}`:`data:${I(re())};base64,${y()}`;if(y()instanceof ArrayBuffer){const a=new Uint8Array(y()).reduce((m,h)=>m+String.fromCharCode(h),""),u=btoa(a);return`data:${I(re())};base64,${u}`}return""},M=()=>{if(ae())return ae();const t=b(re());if(!t)return"";if(typeof y()=="string")return y().startsWith("data:")||y().startsWith("http")?y():`data:${t};base64,${y()}`;const a=new Uint8Array(y()),u=[],m=32768;for(let h=0;h<a.length;h+=m)u.push(String.fromCharCode(...a.subarray(h,h+m)));return`data:${t};base64,${btoa(u.join(""))}`},_e=()=>{const t=typeof y()=="string"?new TextEncoder().encode(y()):new Uint8Array(y()),a=[],u=32768;for(let m=0;m<t.length;m+=u)a.push(String.fromCharCode(...t.subarray(m,m+u)));return`data:image/svg+xml;base64,${btoa(a.join(""))}`},E=()=>{f(se,Math.min(e(se)+25,500),!0)},oe=()=>{f(se,Math.max(e(se)-25,25),!0)},X=()=>{f(me,(e(me)+90)%360)},Z=()=>{if(!we()||Y())return;if(ge()){ge()();return}const t=document.createElement("a");t.href=e(V)==="video"?M():e(V)==="svg"?_e():W(),t.download=e(B),t.click()},it=async()=>{try{const t=W(),a=new Image;a.crossOrigin="anonymous";const u=await new Promise((m,h)=>{a.onload=()=>{const R=document.createElement("canvas");R.width=a.naturalWidth,R.height=a.naturalHeight;const O=R.getContext("2d");if(!O){h(new Error("Failed to get canvas context"));return}O.drawImage(a,0,0),R.toBlob(D=>{D?m(D):h(new Error("Failed to create blob from canvas"))},"image/png",1)},a.onerror=()=>h(new Error("Failed to load image")),a.src=t});await navigator.clipboard.write([new ClipboardItem({"image/png":u})]),f(A,!0),setTimeout(()=>f(A,!1),2e3)}catch(t){ot.error("Failed to copy image:",t)}},nt=t=>{try{const a=JSON.parse(t);return JSON.stringify(a,null,2)}catch{return t}},st=t=>t.split(`
|
|
2
2
|
`).map(u=>u.split(",").map(m=>m.trim()));var ut={get filePath(){return re()},set filePath(t){re(t),te()},get fileContent(){return y()},set fileContent(t=""){y(t),te()},get sourceUrl(){return ae()},set sourceUrl(t){ae(t),te()},get language(){return Pe()},set language(t){Pe(t),te()},get isBinary(){return Se()},set isBinary(t){Se(t),te()},get allowDownload(){return we()},set allowDownload(t=!0){we(t),te()},get onDownload(){return ge()},set onDownload(t){ge(t),te()},get downloading(){return Y()},set downloading(t=!1){Y(t),te()},$set:zt,$on:(t,a)=>At(w,t,a)},ue=xo();rt("blur",yr,i);var Ee=T(ue);{var Ve=t=>{var a=co(),u=T(a),m=T(u);ye(m);var h=p(m,2);{let he=n(()=>c.editor_fileViewer_rotate_tooltip());Ce(h,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:X,get title(){return e(he)},children:($e,He)=>{et($e,{get icon(){return Sa},size:"sm"})},$$slots:{default:!0}})}var R=p(h,4);{let he=n(()=>c.editor_fileViewer_copyImage_tooltip());Ce(R,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:it,get title(){return e(he)},children:($e,He)=>{var ke=Ue(),Ft=ne(ke);{var Dt=Ie=>{et(Ie,{get icon(){return Fa},size:"sm",class:"text-green-500"})},Je=Ie=>{et(Ie,{get icon(){return Da},size:"sm"})};Q(Ft,Ie=>{e(A)?Ie(Dt):Ie(Je,-1)})}l($e,ke)},$$slots:{default:!0}})}var O=p(R,2);{let he=n(()=>!we()||Y()),$e=n(()=>c.editor_fileViewer_download_tooltip());Ce(O,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:Z,get disabled(){return e(he)},get title(){return e($e)},children:(He,ke)=>{et(He,{get icon(){return Ut},size:"sm"})},$$slots:{default:!0}})}var D=p(O,2),L=S(D,!0);x(u);var H=p(u,2),xe=S(H);x(a),k(he=>{g(L,e(B)),hr(H,1,`relative min-h-0 flex-1 overflow-auto bg-checkered flex items-center justify-center p-4 select-none ${e(Be)?"cursor-grabbing":"cursor-grab"}`,"svelte-1uj35xu"),It(H,`--pan-scroll-x: ${e(Ne)??""}px; --pan-scroll-y: ${e(Le)??""}px;`),at(xe,"src",he),at(xe,"alt",e(B)),It(xe,`translate: ${e(be)??""}px ${e(De)??""}px; transform: scale(${e(se)/100}) rotate(${e(me)??""}deg); transition: transform 0.2s;`)},[()=>W()]),gt("pointerdown",H,F),gt("pointermove",H,Te),gt("pointerup",H,d),rt("pointercancel",H,d),rt("lostpointercapture",H,d),l(t,a)},fe=t=>{var a=uo(),u=T(a),m=T(u);ye(m);var h=p(m,2);{let H=n(()=>!we()||Y()),xe=n(()=>c.editor_fileViewer_download_tooltip());Ce(h,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:Z,get disabled(){return e(H)},get title(){return e(xe)},children:(he,$e)=>{et(he,{get icon(){return Ut},size:"sm"})},$$slots:{default:!0}})}var R=p(h,2),O=S(R,!0);x(u);var D=p(u,2),L=S(D);x(a),k(H=>{g(O,e(B)),hr(D,1,`relative min-h-0 flex-1 overflow-auto bg-checkered flex items-center justify-center p-4 select-none ${e(Be)?"cursor-grabbing":"cursor-grab"}`,"svelte-1uj35xu"),It(D,`--pan-scroll-x: ${e(Ne)??""}px; --pan-scroll-y: ${e(Le)??""}px;`),at(L,"src",H),at(L,"alt",e(B)),It(L,`translate: ${e(be)??""}px ${e(De)??""}px; transform: scale(${e(se)/100});`)},[()=>_e()]),gt("pointerdown",D,F),gt("pointermove",D,Te),gt("pointerup",D,d),rt("pointercancel",D,d),rt("lostpointercapture",D,d),l(t,a)},ze=t=>{const a=n(M);var u=Ue(),m=ne(u);Pr(m,()=>re()+e(a),h=>{Dr(h,{get sourceUrl(){return e(a)},get fileName(){return e(B)},get allowDownload(){return we()},get downloading(){return Y()},onDownload:Z})}),l(t,u)},mt=t=>{var a=fo(),u=p(T(a),2),m=S(u,!0),h=p(u,2),R=T(h),O=p(R);x(h),x(a),k((D,L)=>{g(m,e(B)),at(R,"src",D),g(O,` ${L??""}`)},[()=>W(),()=>c.editor_fileViewer_audioUnsupported_label()]),l(t,a)},Bt=t=>{var a=po(),u=p(T(a),2),m=S(u,!0),h=p(u,2);{let R=n(()=>!we()||Y());Ce(h,{size:"sm",variant:"secondary",onclick:Z,get disabled(){return e(R)},children:(O,D)=>{var L=vo(),H=ne(L);et(H,{get icon(){return Ut},size:"sm",class:"mr-2"});var xe=p(H);k(he=>g(xe,` ${he??""}`),[()=>c.editor_fileViewer_downloadPdf_label()]),l(O,L)},$$slots:{default:!0}})}x(a),k(R=>g(m,R),[()=>c.editor_fileViewer_pdfUnavailable_label()]),l(t,a)},Ot=t=>{{let a=n(()=>nt(y().toString()));ar(t,{get value(){return e(a)},language:"json",get fileName(){return re()},lineNumbers:!0,readOnly:!0})}},Oe=t=>{const a=n(()=>st(y().toString()));var u=ho(),m=T(u),h=T(m),R=T(h);Ct(R,23,()=>e(a)[0]||[],(D,L)=>`header-${L}-${D}`,(D,L)=>{var H=go(),xe=S(H,!0);k(()=>g(xe,e(L))),l(D,H)}),x(R),x(h);var O=p(h);Ct(O,23,()=>e(a).slice(1),(D,L)=>`row-${L}`,(D,L,H)=>{var xe=_o();Ct(xe,23,()=>e(L),(he,$e)=>`cell-${e(H)}-${$e}`,(he,$e)=>{var He=mo(),ke=S(He,!0);k(()=>g(ke,e($e))),l(he,He)}),x(xe),l(D,xe)}),x(O),x(m),x(u),l(t,u)},Ge=t=>{var a=wo(),u=p(T(a),2),m=S(u,!0),h=p(u,2),R=S(h,!0);x(a),k(O=>{g(m,e(B)),g(R,O)},[()=>c.editor_fileViewer_archive_label()]),l(t,a)},Ht=t=>{var a=bo(),u=p(T(a),2),m=S(u,!0),h=p(u,2),R=S(h,!0);x(a),k(O=>{g(m,e(B)),g(R,O)},[()=>c.editor_fileViewer_binary_label()]),l(t,a)},St=t=>{{let a=n(()=>y().toString());ar(t,{get value(){return e(a)},get language(){return Pe()},get fileName(){return re()},lineNumbers:!0,highlightActiveLine:!0})}};Q(Ee,t=>{e(V)==="image"?t(Ve):e(V)==="svg"?t(fe,1):e(V)==="video"?t(ze,2):e(V)==="audio"?t(mt,3):e(V)==="pdf"?t(Bt,4):e(V)==="json"?t(Ot,5):e(V)==="csv"?t(Oe,6):e(V)==="archive"?t(Ge,7):e(V)==="binary"?t(Ht,8):t(St,-1)})}return x(ue),l(G,ue),Nt(ut)}Jr(["pointerdown","pointermove","pointerup"]);const yo=/access denied|permission denied|outside (?:the )?workspace/i,Po=/file not found|no such file or directory/i;function $o(G){return yo.test(G)?"access-denied":G===c.files_read_notFound_error()||Po.test(G)?"not-found":"generic"}function ko(G){switch(G){case"access-denied":return c.layout_fileTab_errorAccessDenied_label();case"not-found":return c.layout_fileTab_errorNotFound_label();case"generic":return c.layout_fileTab_errorGeneric_label()}}var Io=P("<!> <!>",1),Co=P("<!> <!> <!>",1),So=P('<div class="flex flex-col items-center justify-center h-full text-subtle gap-2"><p> </p> <p class="text-xs"> </p></div>'),br=P('<div class="flex h-full items-center justify-center p-4 text-subtle"><p role="alert"> </p></div>'),Fo=P('<div class="flex h-full items-center justify-center text-subtle"><p> </p></div>'),xr=P('<div class="flex items-center justify-center h-full text-subtle"><p> </p></div>'),Do=P('<div class="flex items-center gap-3"><!> <!></div>'),To=P('<div class="flex flex-col h-full"><div class="flex-1 p-4 space-y-2"></div></div>'),Eo=P('<p class="text-xs"> </p>'),Ro=P("<li><!></li>"),Mo=P('<p class="text-xs mt-2"> </p> <ul class="flex flex-col items-center gap-1"></ul>',1),jo=P('<div class="flex flex-col items-center justify-center h-full text-subtle gap-2"><p class="text-danger" role="alert"> </p> <p class="text-xs font-mono"> </p> <!> <!></div>'),Uo=P('<div class="flex flex-col items-center justify-center h-full text-subtle gap-3 p-4"><p> </p> <p class="text-xs break-all"> </p> <!></div>'),Lo=P('<div class="h-full overflow-auto p-4"><!></div>');function Vo(G,w){if(new.target)return Vt({component:Vo,...G});Wt(w,!0);const ye=()=>ce(Ot,"$workspace",A),ot=()=>ce(_e,"$fileContentStore",A),re=()=>ce(E,"$fileLoadingStore",A),y=()=>ce(oe,"$fileSavingStore",A),ae=()=>ce(X,"$fileErrorStore",A),Pe=()=>ce(Z,"$fileErrorInfoStore",A),Se=()=>ce(it,"$homeView$",A),we=()=>ce(nt,"$fileNotFoundCandidatesStore",A),ge=()=>ce(st,"$isFileBinaryStore",A),Y=()=>ce(ut,"$isFileDirtyStore",A),Xe=()=>ce(ue,"$fileLastUpdatedStore",A),V=()=>ce(Ee,"$ftChanges$",A),B=()=>ce(Bt,"$gutterRead$",A),se=()=>ce(Le,"$lineWrapping",A),me=()=>ce(Be,"$diffIndicators",A),Fe=()=>ce(ze,"$rootMediaPreview",A),[A,be]=ir(),De=r=>{var s=Io(),$=ne(s);{var C=de=>{var Ae=Ue(),qe=ne(Ae);Rt(qe,()=>Mt,(pt,xt)=>{xt(pt,{get icon(){return Ra},get label(){return e(he)},disabled:!0})}),l(de,Ae)};Q($,de=>{!e(_t)&&!e(b)&&!e(L)&&de(C)})}var le=p($,2);{var Re=de=>{{let Ae=n(()=>!e(Tt)||!e(Je)),qe=n(()=>!e(b)&&(!e(Tt)||!e(Je)));Oa(de,{embedded:!0,showFold:!1,showSplit:!1,get showPreview(){return e(Tt)},get previewEnabled(){return e(Je)},onTogglePreview:()=>f(Je,!e(Je)),get showWrap(){return e(Ae)},get wrapEnabled(){return se()},onToggleWrap:()=>U.dispatch(na()),get showDiff(){return e(qe)},get diffEnabled(){return me()},onToggleDiff:()=>U.dispatch(ia())})}};Q(le,de=>{o().filePath&&!e(_t)&&!e(L)&&de(Re)})}l(r,s)},Ne=r=>{var s=Ue(),$=ne(s);{var C=le=>{var Re=Co(),de=ne(Re);{var Ae=We=>{var Ye=Ue(),dt=ne(Ye);{let yt=n(()=>c.layout_fileTab_goToChanges_tooltip());Rt(dt,()=>Mt,(Pt,$t)=>{$t(Pt,{get icon(){return ja},get label(){return e(yt)},onclick:zr})})}l(We,Ye)};Q(de,We=>{e(Rr)&&We(Ae)})}var qe=p(de,2);{var pt=We=>{var Ye=Ue(),dt=ne(Ye);{let yt=n(()=>c.layout_fileTab_downloadFile_label()),Pt=n(()=>!e(wt)||e(lt));Rt(dt,()=>Mt,($t,Xt)=>{Xt($t,{get icon(){return Ut},get label(){return e(yt)},onclick:Et,get disabled(){return e(Pt)}})})}l(We,Ye)};Q(qe,We=>{e(Qe)&&We(pt)})}var xt=p(qe,2);{let We=n(()=>c.layout_fileTab_deleteFile_tooltip());Rt(xt,()=>Mt,(Ye,dt)=>{dt(Ye,{get icon(){return Ma},get label(){return e(We)},onclick:Ar,destructive:!0})})}l(le,Re)};Q($,le=>{o().filePath&&!e(_t)&&!e(b)&&le(C)})}l(r,s)},Le=Ha(),Be=qa();let o=ee(w,"tab",7),i=ee(w,"workspaceId",7),F=ee(w,"isActive",7),Te=ee(w,"isPanelFocused",7);pe(()=>{const r=i();if(!(!F()||!r||e(d)))return U.dispatch(ta(r,"files")),()=>U.dispatch(ra(r,"files"))});const d=n(()=>typeof o().data?.gitRootId=="string"?o().data.gitRootId:void 0),I=n(()=>typeof o().data?.gitRootPath=="string"?o().data.gitRootPath:void 0),b=n(()=>!!e(d)),W=n(()=>o().filePath?Ia(o().filePath,e(d)):o().filePath),M=Yr(e(W));pe(()=>{M.set(e(W))});const _e=pa(i(),M),E=ga(i(),M),oe=ma(i(),M),X=_a(i(),M),Z=ha(i(),M),it=Qa(i()),nt=wa(i(),M),st=ba(i(),M),ut=mr(i(),M),ue=xa(i(),M),Ee=ya(i()),Ve=va(),fe=crypto.randomUUID(),ze=Fr(fe),mt=`file-gutter:${crypto.randomUUID()}`,Bt=Pa(i(),mt),Ot=$a(i()),Oe=n(()=>ye()?.worktreePath||ye()?.repositoryPath||ye()?.path||null),Ge=n(ot),Ht=Ga();pe(()=>{e(Ge)!==null&&e(Ge)!==void 0&&Ht?.markContentLoaded()});const St=n(re),t=n(y),a=n(ae),u=n(()=>e(a)?$o(e(a)):"generic"),m=n(()=>e(a)?Ya(Pe()):null);let h=N(0),R=!1;pe(()=>{const r=Se();if(!r||r.unavailable){R=!1;return}e(m)&&!R&&(R=!0,rr(()=>jt(h)))});const O=5,D=n(()=>(we()??[]).slice(0,O)),L=n(ge),H=n(Y),xe=n(Xe),he=n(()=>e(t)?c.ui_saveIndicator_saving_tooltip():e(H)?c.ui_saveIndicator_autoSaving_tooltip():c.ui_saveIndicator_saved_tooltip());let $e=N(null),He=N(Zr([])),ke=N(null),Ft=N(void 0),Dt=N(void 0),Je=N(!0);pe(()=>{const r=o().data?.line,s=o().data?.jumpTimestamp;!r||s!==void 0&&s===e(Dt)||(f(Dt,s,!0),f(Ft,{line:r},!0),f(Je,!1))});const Ie=n(()=>e(d)?_r(o().filePath,e(I)):null),_t=n(()=>e(d)?!e(Ie):!!(o().filePath&&(Aa(o().filePath)||e(Oe)&&Wa(o().filePath,e(Oe))))),ht=n(()=>o().filePath&&e(Oe)?er(o().filePath)?o().filePath:`${e(Oe)}/${o().filePath}`:null),ft=n(()=>!!o().filePath&&/\.pdf$/i.test(o().filePath)),vt=n(()=>!!o().filePath&&/\.(?:png|jpe?g|gif|webp|mp4|webm)$/i.test(o().filePath)),Qe=n(()=>i()&&/^[A-Za-z0-9._-]+$/.test(i())?_r(o().filePath,e(Oe)):null),Tr=n(()=>!e(d)&&e(Qe)?e(Qe).split("/").slice(0,-1).join("/"):void 0),qt=n(()=>e(ft)||e(vt)?e(Qe):null),nr=n(()=>e(d)&&e(vt)?{png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",mp4:"video/mp4",webm:"video/webm"}[o().filePath?.split(".").pop()?.toLowerCase()??""]:void 0);pe(()=>{if(!F()||!e(d)||!e(Ie)||!e(nr))return;const r=crypto.randomUUID();return U.dispatch(Ir(fe,r,i(),e(Ie),{gitRootId:e(d),mimeType:e(nr)})),()=>U.dispatch(Cr(fe,r))});let lt=N(!1);const wt=n(()=>!!e(Qe)&&!e(St)&&(!e(vt)||e(ke)===e(Qe))),sr=n(()=>e(ke)&&i()?`workspace-file://${i()}/${e(ke).split("/").map(encodeURIComponent).join("/")}`:null),Kt=n(()=>o().filePath?da(o().filePath):"plaintext"),Tt=n(()=>e(Kt)==="markdown");pe(()=>{if(!F()||e(ft)||e(d))return;const r=e(qt),s=o().filePath,$=i(),C=o().id;if(f(ke,null),!r||!s||!$)return;let le=!1;const Re=()=>!le&&i()===$&&o().id===C&&o().filePath===s;return(async()=>{let de=!1;try{de=(await Ca("file.stat",{workspaceId:$,path:r}))?.isFile===!0}catch{}if(!Re())return;if(de){f(ke,r,!0);return}if(!/\.(?:png|jpe?g|gif|webp|mp4|webm)$/i.test(r)){f(ke,r,!0);return}const{candidates:Ae,truncated:qe}=await za($,r);if(Re()){if(!qe&&Ae.length===1){U.dispatch(fr($,s,Ae[0],C));return}f(ke,r,!0)}})(),()=>{le=!0}});function Er(r,s){return!!(r.file===s||r.relativePath===s||r.relativePath&&s.endsWith("/"+r.relativePath)||r.file&&s.endsWith("/"+r.file)||r.relativePath&&r.relativePath.endsWith("/"+s)||r.file&&r.file.endsWith("/"+s))}const bt=n(()=>e(b)||!o().filePath?null:V().find(r=>Er(r,o().filePath))??null),Rr=n(()=>!!e(bt));pe(()=>{if(e(b))return;const r=i(),s=o().filePath,$=e(Oe);return()=>{if(!r||!s)return;const C=Zt.select(U.state,r,s);if(C?.kind!=="editable-text")return;const le=Yt(C.localContent),Re=mr.select(U.state,r,s),de=er(s)?s:$?`${$}/${s}`:null;Re&&de&&U.dispatch(vr(r,s,de,le))}}),pe(()=>{const r=o().filePath,s=e(ht),$=i();if(e(h),!F())return;const C=!e(d)&&!!r&&er(r)&&!e(Oe);r&&$&&!e(_t)&&!e(vt)&&!e(ft)&&!C&&(e(d)&&e(Ie)&&e(W)?U.dispatch(pr($,e(W),s??r,{gitRoot:{id:e(d),relativePath:e(Ie)}})):U.dispatch(pr($,r,s??r)))});function Mr(){return e(Ge)??""}function jr(r){e(b)||e(L)||!o().filePath||!i()||!e(ht)||U.dispatch(fa(i(),o().filePath,Yt(r)))}function Ur(){if(e(b)||e(L)||!o().filePath||!e(ht)||e(Ge)===null||e(t))return;const r=Zt.select(U.state,i(),o().filePath);r?.kind==="editable-text"&&U.dispatch(vr(i(),o().filePath,e(ht),Yt(r.localContent)))}function Lr(r){const s=o().filePath;!s||!i()||(U.dispatch(ua(i(),s)),U.dispatch(fr(i(),s,r,o().id)))}pe(()=>{const r=o().filePath,s=e(bt);if(!r||!s){f(He,[],!0);return}if(!F())return;const $=i(),C=crypto.randomUUID();return U.dispatch(aa($,mt,C,{kind:"diffs",path:r,staged:s.stage==="staged"})),()=>{U.dispatch(oa($,mt,C))}}),pe(()=>{const r=B(),s=r?.result?.kind==="diffs"?r.result.chunks:[],$=s.find(C=>C.file===o().filePath)??s[0];f(He,$?Na($.chunks.map(C=>({oldStart:C.oldStart,oldLines:C.oldLines,newStart:C.newStart,newLines:C.newLines,lines:C.lines.map(le=>(le.type===gr.Addition?"+":le.type===gr.Deletion?"-":" ")+le.content)}))):[],!0)});function Vr(r){const s=/Mac|iPhone|iPad|iPod/.test(navigator.userAgent),$=Re=>Xa(r,Ka(Re),s);if($("editor.save")){r.preventDefault(),e(H)&&!e(t)&&Ur();return}const C=$("editor.undo")?"undo":$("editor.redo")?"redo":$("editor.toggle-task-list")?"toggle-task-list":$("editor.copy")?"copy":$("editor.select-all")?"select-all":null;if(!C||e(b)&&C!=="copy"&&C!=="select-all")return;C!=="toggle-task-list"&&e($e)?.runShortcut(C)&&r.preventDefault()}function zr(r){if(!o().filePath||!e(bt))return;const s=r?.metaKey||r?.ctrlKey||!1,C=r?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;U.dispatch(ca(i(),e(bt),{filePath:o().filePath,changeId:e(bt).id,openInAdjacentPanel:s,sourcePanelId:C}))}async function Et(){const r=e(Qe);if(!(e(b)||!r||!i()||!e(wt)||e(lt))){f(lt,!0);try{const s=await ka(i(),r,e(Oe));!s?.success&&!s?.canceled&&Qt.error(s?.error?.message||c.layout_fileTab_downloadFailed_error())}catch{Qt.error(c.layout_fileTab_downloadFailed_error())}finally{f(lt,!1)}}}function Ar(){const r=e(ht);if(e(b)||!o().filePath||!i()||!r)return;const s=sa(Zt.select(U.state,i(),o().filePath));if(!s){Qt.error(c.ui_reversibleActions_failed_error({message:c.fileExplorer_tree_undoUnavailable_error()}));return}U.dispatch(la(i(),o().filePath,{absolutePath:r,tabId:o().id,snapshot:s}))}pe(()=>{if(!Ve||!F())return;const r={isDirty:!e(b)&&e(H),isSaving:!e(b)&&e(t)};rr(()=>{Ve.registerActions({display:De,actions:Ne}),Ve.registerState(r)})});var Wr={get tab(){return o()},set tab(r){o(r),te()},get workspaceId(){return i()},set workspaceId(r){i(r),te()},get isActive(){return F()},set isActive(r){F(r),te()},get isPanelFocused(){return Te()},set isPanelFocused(r){Te(r),te()},$set:zt,$on:(r,s)=>At(w,r,s)},lr=Ue();rt("keydown",yr,r=>F()&&Vr(r));var Nr=ne(lr);{var Br=r=>{var s=Ue(),$=ne(s);Pr($,()=>o().filePath,C=>{var le=Ue(),Re=ne(le);{var de=_=>{var v=So(),j=T(v),q=S(j,!0),z=p(j,2),Me=S(z,!0);x(v),k(J=>{g(q,J),g(Me,o().filePath)},[()=>c.layout_fileTab_outsideWorkspace_label()]),l(_,v)},Ae=_=>{var v=Ue(),j=ne(v);{var q=z=>{or(z,{get workspaceId(){return i()},get filePath(){return e(Ie)},get gitRootId(){return e(d)}})};Q(j,z=>{F()&&z(q)})}l(_,v)},qe=_=>{var v=Ue(),j=ne(v);{var q=J=>{var K=br(),ie=T(K),je=S(ie,!0);x(K),k(ve=>g(je,ve),[()=>c.layout_fileTab_errorLoading_label()]),l(J,K)},z=J=>{Lt(J,{get filePath(){return o().filePath},get sourceUrl(){return Fe().url},allowDownload:!1})},Me=J=>{var K=Fo(),ie=T(K),je=S(ie,!0);x(K),k(ve=>g(je,ve),[()=>c.layout_fileTab_preparing_label()]),l(J,K)};Q(j,J=>{Fe()?.error?J(q):Fe()?.url?J(z,1):J(Me,-1)})}l(_,v)},pt=_=>{var v=Ue(),j=ne(v);{var q=z=>{or(z,{get workspaceId(){return i()},get filePath(){return e(qt)}})};Q(j,z=>{F()&&z(q)})}l(_,v)},xt=_=>{var v=br(),j=T(v),q=S(j,!0);x(v),k(z=>g(q,z),[()=>c.file_pdf_load_error()]),l(_,v)},We=_=>{{let v=n(()=>e(ke)??o().filePath),j=n(()=>!e(b)&&e(wt));Lt(_,{get filePath(){return e(v)},get sourceUrl(){return e(sr)},onDownload:Et,get allowDownload(){return e(j)},get downloading(){return e(lt)}})}},Ye=_=>{var v=xr(),j=T(v),q=S(j,!0);x(v),k(z=>g(q,z),[()=>c.layout_fileTab_preparing_label()]),l(_,v)},dt=_=>{var v=To(),j=T(v);Ct(j,20,()=>[...Array(20).keys()],q=>q,(q,z)=>{var Me=Do(),J=T(Me);wr(J,{class:"h-3 w-8 shrink-0"});var K=p(J,2);wr(K,{class:"h-3",style:`width: ${30+Math.random()*60}%`}),x(Me),l(q,Me)}),x(j),x(v),l(_,v)},yt=_=>{{let v=n(()=>Za(e(m)));Ja(_,{get view(){return e(v)}})}},Pt=_=>{var v=jo(),j=T(v),q=S(j,!0),z=p(j,2),Me=S(z,!0),J=p(z,2);{var K=ve=>{var Ke=Eo(),ct=S(Ke,!0);k(()=>g(ct,e(a))),l(ve,Ke)};Q(J,ve=>{e(u)==="generic"&&ve(K)})}var ie=p(J,2);{var je=ve=>{var Ke=Mo(),ct=ne(Ke),Gt=S(ct,!0),dr=p(ct,2);Ct(dr,20,()=>e(D),kt=>kt,(kt,cr)=>{var Jt=Ro(),qr=T(Jt);Ce(qr,{variant:"link",size:"compact",class:"h-auto p-0 font-mono text-xs",onclick:()=>Lr(cr),children:(Kr,zo)=>{Ze();var ur=tt();k(()=>g(ur,cr)),l(Kr,ur)},$$slots:{default:!0}}),x(Jt),l(kt,Jt)}),x(dr),k(kt=>g(Gt,kt),[()=>c.layout_fileTab_didYouMean_label()]),l(ve,Ke)};Q(ie,ve=>{e(D).length>0&&ve(je)})}x(v),k(ve=>{g(q,ve),g(Me,o().filePath)},[()=>ko(e(u))]),l(_,v)},$t=_=>{var v=Uo(),j=T(v),q=S(j,!0),z=p(j,2),Me=S(z,!0),J=p(z,2);{var K=ie=>{{let je=n(()=>!e(wt)||e(lt));Ce(ie,{variant:"secondary",size:"sm",onclick:Et,get disabled(){return e(je)},children:(ve,Ke)=>{Ze();var ct=tt();k(Gt=>g(ct,Gt),[()=>c.layout_fileTab_downloadFile_label()]),l(ve,ct)},$$slots:{default:!0}})}};Q(J,ie=>{!e(b)&&e(Qe)&&ie(K)})}x(v),k(ie=>{g(q,ie),g(Me,o().filePath)},[()=>c.editor_fileViewer_binary_label()]),l(_,v)},Xt=_=>{const v=n(()=>o().filePath?.toLowerCase().endsWith(".svg"));var j=Ue(),q=ne(j);{var z=K=>{{let ie=n(()=>o().filePath||""),je=n(()=>!e(b)&&e(wt));Lt(K,{get filePath(){return e(ie)},get fileContent(){return e(Ge)},get language(){return e(Kt)},get isBinary(){return e(L)},onDownload:Et,get allowDownload(){return e(je)},get downloading(){return e(lt)}})}},Me=K=>{var ie=Lo(),je=T(ie);Ba(je,{get content(){return e(Ge)},get workspaceId(){return i()},get relativeMediaBase(){return e(Tr)},renderRichFencesAsCode:!0,renderDiagrams:!0}),x(ie),l(K,ie)},J=K=>{var ie=Mr,je=jr;{let ve=n(()=>me()?e(He):[]);$r(ar(K,{get value(){return ie()},set value(Ke){je(Ke)},get language(){return e(Kt)},get readOnly(){return e(b)},get fileName(){return o().filePath},get workspaceId(){return i()},get filePath(){return o().filePath},get lineWrapping(){return se()},get lineChanges(){return e(ve)},get jumpTo(){return e(Ft)},get externalContentVersion(){return e(xe)},get isPanelFocused(){return Te()}}),Ke=>f($e,Ke,!0),()=>e($e))}};Q(q,K=>{e(v)?K(z):e(Tt)&&e(Je)?K(Me,1):K(J,-1)})}l(_,j)},Hr=_=>{var v=xr(),j=T(v),q=S(j,!0);x(v),k(z=>g(q,z),[()=>c.layout_fileTab_preparing_label()]),l(_,v)};Q(Re,_=>{e(_t)?_(de):e(d)&&e(ft)&&e(Ie)?_(Ae,1):e(d)&&e(vt)?_(qe,2):e(ft)&&e(qt)?_(pt,3):e(ft)?_(xt,4):e(sr)?_(We,5):e(vt)?_(Ye,6):e(St)?_(dt,7):e(m)?_(yt,8):e(a)?_(Pt,9):e(L)?_($t,10):e(Ge)!==null?_(Xt,11):_(Hr,-1)})}l(C,le)}),l(r,s)};Q(Nr,r=>{o().filePath&&r(Br)})}l(G,lr);var Or=Nt(Wr);return be(),Or}export{Vo as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ao as s}from"./3SdAC2_C.js";import{d as r}from"./
|
|
1
|
+
import{ao as s}from"./3SdAC2_C.js";import{d as r}from"./Gapwl2d0.js";const t=()=>{const e=r;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},c={subscribe(e){return(s?o("page"):t().page).subscribe(e)}};function o(e){try{return t()[e]}catch{throw new Error(`Cannot subscribe to '${e}' store on the server outside of a Svelte component, as it is bound to the current request via component context. This prevents state from leaking between users.For more information, see https://svelte.dev/docs/kit/state-management#avoid-shared-state-on-the-server`)}}export{c as p};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as I}from"./
|
|
1
|
+
import{p as I}from"./BEgw9GnT.js";import{aZ as _,U as E,Y as F,b0 as D,V as P,a_ as z,b as c,aX as G,r as B,q as w,W as C,O as W,ay as b,a6 as V,B as H}from"./D_JABMnu.js";import{p as U}from"./ef8UrOvU.js";var m={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,A={axes:[],curves:[],options:m},x=structuredClone(A),X=W.radar,j=c(()=>w({...X,...C().radar}),"getConfig"),M=c(()=>x.axes,"getAxes"),Y=c(()=>x.curves,"getCurves"),Z=c(()=>x.options,"getOptions"),q=c(a=>{x.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),K=c(a=>{x.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:N(t.entries)}))},"setCurves"),N=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});x.options={showLegend:t.showLegend?.value??m.showLegend,ticks:t.ticks?.value??m.ticks,max:t.max?.value??m.max,min:t.min?.value??m.min,graticule:t.graticule?.value??m.graticule},x.options.ticks>y&&(b.warn(`Radar diagram ticks (${x.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),x.options.ticks=y)},"setOptions"),Q=c(()=>{B(),x=structuredClone(A)},"clear"),$={getAxes:M,getCurves:Y,getOptions:Z,setAxes:q,setCurves:K,setOptions:J,getConfig:j,clear:Q,setAccTitle:z,getAccTitle:P,setDiagramTitle:D,getDiagramTitle:F,getAccDescription:E,setAccDescription:_},tt=c(a=>{I(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:c(async a=>{const t=await U("radar",a);b.debug(t),tt(t)},"parse")},at=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),p=G(t),u=rt(p,o),g=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;st(u,i,v,n.ticks,n.graticule),nt(u,i,v,o),L(u,i,l,h,g,n.graticule,o),k(u,l,n.showLegend,o),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return H(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),st=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,p)=>{const u=2*p*Math.PI/i-Math.PI/2,g=n*Math.cos(u),h=n*Math.sin(u);return`${g},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),nt=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const p=o>.01?"start":o<-.01?"end":"middle",u=d>.01?"hanging":d<-.01?"auto":"central",g=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+g*o).attr("y",e*r.axisLabelFactor*d+g*d).attr("text-anchor",p).attr("dominant-baseline",u).attr("class","radarAxisLabel")}},"drawAxes");function L(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,p)=>{if(d.entries.length!==n)return;const u=d.entries.map((g,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=T(g,r,s,o),O=f*Math.cos(v),R=f*Math.sin(v);return{x:O,y:R}});i==="circle"?a.append("path").attr("d",S(u,l.curveTension)).attr("class",`radarCurve-${p}`):i==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}c(L,"drawCurves");function T(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(T,"relativeRadius");function S(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},p={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${p.x},${p.y} ${n.x},${n.y}`}return`${r} Z`}c(S,"closedRoundCurve");function k(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(k,"drawLegend");var ot={draw:at},it=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
|
|
2
2
|
.radarCurve-${r} {
|
|
3
3
|
color: ${s};
|
|
4
4
|
fill: ${s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as o,r as l,d as t}from"./
|
|
1
|
+
import{g as o,r as l,d as t}from"./74m07TNS.js";import{p as m}from"./BEgw9GnT.js";import{b as n,ay as s}from"./D_JABMnu.js";import{M as p,d as u}from"./ef8UrOvU.js";var d=u().Railroad.parser.LangiumParser,a=n(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{const r=e.elements.map(a);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{const r=e.alternatives.map(a);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:a(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:a(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:a(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),c=n(e=>({name:e.name,definition:a(e.definition)}),"transformRule"),y=n(e=>{m(e,t),e.title&&t.setTitle(e.title),e.rules.map(r=>t.addRule(c(r)))},"populateDb"),g={parse:n(e=>{t.clear(),s.debug("[Railroad Parser] Starting Langium parse");const r=d.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new p(r);const i=r.value;s.debug("[Railroad Parser] Parsed rules:",i.rules.length),y(i),s.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t}},h={parser:g,db:t,renderer:l,styles:o};export{h as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{I as W}from"./
|
|
1
|
+
import{I as W}from"./BulGva3_.js";import{p as X}from"./BEgw9GnT.js";import{b0 as z,a_ as G,aZ as Y,Y as P,U as F,V as Z,b as g,q as N,ay as A,aX as q,B as U,W as E,r as j,aV as J,a0 as K,O as Q,aO as ee}from"./D_JABMnu.js";import{p as te}from"./ef8UrOvU.js";var L=/[─━│┃└┗├┣]/,D=/[└┗├┣]/,ne=/[─━]/,V=/^[\s│┃]+$/,T=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,$=/^\s*%%/,re=" ";function _(n){return n.some(t=>L.test(t))}g(_,"isBoxDrawingFormat");function M(n){for(const t of n){const e=D.exec(t);if(e?.index&&e.index>0)return e.index}return 4}g(M,"inferSegmentWidth");function S(n,t){return n.replace(/\bline\s+(\d+)\b/gi,(e,r)=>{const s=parseInt(r,10),i=t.get(s);return i?`line ${i}`:e})}g(S,"remapErrorLines");function R(n){const t=n.split(`
|
|
2
2
|
`),e=new Map;let r=-1;for(const[p,c]of t.entries())if(c.trim()==="treeView-beta"){r=p;break}if(r===-1)return{text:n,lineMap:e};const s=[];for(let p=r+1;p<t.length;p++){const c=t[p];c.trim()===""||$.test(c)||T.test(c)||V.test(c)||s.push(c.replace(/\t/g," "))}if(!_(s))return{text:n,lineMap:e};const i=M(s),o=[];let a=0;for(let p=0;p<=r;p++)o.push(t[p]),a++,e.set(a,p+1);for(let p=r+1;p<t.length;p++){const c=t[p],d=c.trim(),h=p+1;if(d===""){o.push(c),a++,e.set(a,h);continue}if($.test(c)){o.push(c),a++,e.set(a,h);continue}if(T.test(c)){o.push(c),a++,e.set(a,h);continue}if(V.test(c))continue;const l=c.replace(/\t/g," "),w=D.exec(l);if(w?.index!==void 0){const f=w.index,m=Math.round(f/i)+1;let u=f+1;for(;u<l.length&&ne.test(l[u]);)u++;for(;u<l.length&&l[u]===" ";)u++;const v=l.slice(u).trimEnd();if(!v)throw new Error(`Line ${h}: Empty node — expected a filename or directory name after the box-drawing prefix`);const O=re.repeat(m);o.push(O+v),a++,e.set(a,h)}else{if(/^[\s─━│┃└┗├┣]+$/.test(l))continue;if(L.test(l))o.push(c),a++,e.set(a,h);else{if(/^\s+/.test(l))throw new Error(`Line ${h}: Unexpected indentation without box-drawing characters. In box-drawing format, use ├── or └── prefixes for indented nodes.`);o.push(c),a++,e.set(a,h)}}}return{text:o.join(`
|
|
3
3
|
`),lineMap:e}}g(R,"preprocessBoxDrawing");var x=new W(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),ie=g(()=>{x.reset(),j()},"clear"),oe=g(()=>x.records.stack[0],"getRoot"),se=g(()=>x.records.cnt,"getCount"),ae=Q.treeView,ce=g(()=>N(ae,E().treeView),"getConfig"),le=g((n,t,e,r,s,i)=>{for(;n<=x.records.stack[x.records.stack.length-1].level;)x.records.stack.pop();const o={id:x.records.cnt++,level:n,name:t,nodeType:e,icon:s,cssClass:r,description:i,children:[]};x.records.stack[x.records.stack.length-1].children.push(o),x.records.stack.push(o)},"addNode"),de={clear:ie,addNode:le,getRoot:oe,getCount:se,getConfig:ce,getAccTitle:Z,getAccDescription:F,getDiagramTitle:P,setAccDescription:Y,setAccTitle:G,setDiagramTitle:z},I=de,he=g(n=>{X(n,I);for(const t of n.nodes){const e=typeof t.indent=="number"?t.indent:0;let r=t.name;const s=r.endsWith("/");s&&(r=r.slice(0,-1));const i=s?"directory":"file",o=t.classAnnotation||void 0,a=t.iconAnnotation,p=a!==void 0?a||"none":void 0,c=t.descAnnotation||void 0,d=c?J(c,E()):void 0;I.addNode(e,r,i,o,p,d)}},"populate"),pe={parse:g(async n=>{const{text:t,lineMap:e}=R(n);try{const r=await te("treeView",t);A.debug(r),he(r)}catch(r){throw e.size>0&&r instanceof Error&&(r.message=S(r.message,e)),r}},"parse")},b={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function H(n,t){const e=t?.filenameIcons?.[n];if(e)return e;const r=n.lastIndexOf(".");if(r>0){const s=n.substring(r).toLowerCase(),i=t?.extensionIcons;return i?.[s]??i?.[s.slice(1)]}}g(H,"detectIcon");function C(n,t){return n.includes(":")?n:n in b.icons||!t?`${b.prefix}:${n}`:`${t}:${n}`}g(C,"qualifyIcon");function B(n,t){if(n.icon!=="none"){if(n.icon)return C(n.icon,t.defaultIconPack);if(t.showIcons){if(n.nodeType==="file"){const e=H(n.name,t);if(e==="none")return;if(e)return C(e,t.defaultIconPack)}return`${b.prefix}:${n.nodeType==="directory"?"folder":"file"}`}}}g(B,"getNodeIcon");ee([{name:b.prefix,icons:b}]);var y=14,ge=4,fe=16,ue=g(async(n,t)=>{const e=[],r=g(i=>{const o=B(i,t);o&&e.push({icon:o,node:i}),i.children.forEach(r)},"collect");r(n);const s=await Promise.all(e.map(async({icon:i,node:o})=>({id:o.id,svg:await K(i,{height:y,width:y})})));return new Map(s.map(({id:i,svg:o})=>[i,o]))},"resolveNodeIcons"),we=g((n,t,e,r,s,i)=>{const o=r.append("g");let a="treeView-node-label";e.nodeType==="directory"&&(a+=" treeView-node-dir"),e.cssClass&&(a+=` ${e.cssClass}`);const p=y+ge,c=B(e,s),d=c!==void 0;c&&o.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${n+s.paddingX}, ${t+s.paddingY})`).html(i.get(e.id)??"");const h=o.append("text").text(e.name).attr("dominant-baseline","middle").attr("class",a),{height:l,width:w}=h.node().getBBox(),f=l+s.paddingY*2,m=n+s.paddingX+(d?p:0);h.attr("x",m),h.attr("y",t+f/2);const u=m+w,v=w+s.paddingX*2+(d?p:0);return e.BBox={x:n,y:t,width:v,height:f},e.cssClass?.split(/\s+/).includes("highlight")&&o.insert("rect",":first-child").attr("x",n).attr("y",t+1).attr("width",0).attr("height",f-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:e,nodeGroup:o,labelRightEdge:u,centerY:t+f/2}},"positionLabel"),k=g((n,t,e,r,s,i)=>n.append("line").attr("x1",t).attr("y1",e).attr("x2",r).attr("y2",s).attr("stroke-width",i).attr("class","treeView-node-line"),"positionLine"),me=g((n,t,e,r)=>{let s=0,i=0;const o=[],a=g((d,h,l,w)=>{const f=w*(l.rowIndent+l.paddingX),m=we(f,s,h,d,l,r);o.push(m);const{height:u,width:v}=h.BBox;k(d,f-l.rowIndent,s+u/2,f,s+u/2,l.lineThickness),i=Math.max(i,f+v),s+=u},"drawNode"),p=g((d,h=0)=>{a(n,d,e,h),d.children.forEach(m=>{p(m,h+1)});const{x:l,y:w,height:f}=d.BBox;if(d.children.length){const{y:m,height:u}=d.children[d.children.length-1].BBox;k(n,l+e.paddingX,w+f,l+e.paddingX,m+u/2+e.lineThickness/2,e.lineThickness)}},"processNode");p(t);const c=o.filter(d=>d.node.description);if(c.length>0){const h=Math.max(...o.map(l=>l.labelRightEdge))+fe;for(const l of c){const f=l.nodeGroup.append("text").text(l.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",h).attr("y",l.centerY).node().getBBox();i=Math.max(i,h+f.width+e.paddingX)}}for(const d of o)if(d.node.cssClass?.split(/\s+/).includes("highlight")){const h=d.nodeGroup.select(".treeView-highlight-bg");if(!h.empty()){const l=i-d.node.BBox.x+8;h.attr("width",l),i=Math.max(i,d.node.BBox.x+l+2)}}return{totalHeight:s,totalWidth:i}},"drawTree"),xe=g(async(n,t,e,r)=>{A.debug(`Rendering treeView diagram
|
|
4
4
|
`+n);const s=r.db,i=s.getRoot(),o=s.getConfig(),a=q(t),p=a.append("g");p.attr("class","tree-view");const c=await ue(i,o),{totalHeight:d,totalWidth:h}=me(p,i,o,c);a.attr("viewBox",`-${o.lineThickness/2} 0 ${h} ${d}`),U(a,d,h,o.useMaxWidth)},"draw"),ve={draw:xe},be=ve,Ie={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},Ce=g(({treeView:n})=>{const{labelFontSize:t,labelColor:e,lineColor:r,iconColor:s,descriptionColor:i,highlightBg:o,highlightStroke:a}=N(Ie,n);return`
|