@intent-hq/web 2.300.0 → 2.300.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{Ba3Gl_Rx.js → -j8RilKC.js} +2 -2
- package/web/app/immutable/chunks/{B-g-NIPK.js → 0-b4ZvTK.js} +1 -1
- package/web/app/immutable/chunks/{D2MsQ7CI.js → 1-VabEZ0.js} +1 -1
- package/web/app/immutable/chunks/{BcK8h34a.js → 2DcZXs_F.js} +1 -1
- package/web/app/immutable/chunks/{DBntrybU.js → 2N3bEpgZ.js} +1 -1
- package/web/app/immutable/chunks/{CnpqP3W5.js → 2ZXwYJuA.js} +1 -1
- package/web/app/immutable/chunks/{DzZaDWGS.js → 3pZ2C7Oz.js} +1 -1
- package/web/app/immutable/chunks/{CDcsX4P8.js → 3sRD2IoY.js} +1 -1
- package/web/app/immutable/chunks/{C5BrZ9Uc.js → 4MuDb8sG.js} +1 -1
- package/web/app/immutable/chunks/{eUunsB8W.js → 5D7P8R1M.js} +1 -1
- package/web/app/immutable/chunks/{CEniOKQx.js → 5GrgBznS.js} +1 -1
- package/web/app/immutable/chunks/{Bhrt6-Mt.js → 5sBQ6rKD.js} +1 -1
- package/web/app/immutable/chunks/{BkjJpsAb.js → 6bctAAQ4.js} +2 -2
- package/web/app/immutable/chunks/{BLML8tyL.js → 7lKdD900.js} +1 -1
- package/web/app/immutable/chunks/{BxSRgl_K.js → 9A9__2dZ.js} +1 -1
- package/web/app/immutable/chunks/{CWh86ZYE.js → B00a-E5y.js} +1 -1
- package/web/app/immutable/chunks/{D8sxBEHk.js → B08ZRfRe.js} +1 -1
- package/web/app/immutable/chunks/{EOrMcKth.js → B1BoYgO3.js} +1 -1
- package/web/app/immutable/chunks/{CfXQV99h.js → B23FAgl4.js} +1 -1
- package/web/app/immutable/chunks/{BxepIPme.js → B2YeO1vq.js} +1 -1
- package/web/app/immutable/chunks/{C9oKpMS_.js → B5FD8FRF.js} +1 -1
- package/web/app/immutable/chunks/{CaAuKVV3.js → B648LYGe.js} +1 -1
- package/web/app/immutable/chunks/{B87LX9tB.js → B6GFXjaE.js} +4 -4
- package/web/app/immutable/chunks/{CsBt-DEV.js → B9UG1fIf.js} +1 -1
- package/web/app/immutable/chunks/{Jwfh1VUw.js → BBKgmsAl.js} +1 -1
- package/web/app/immutable/chunks/{BMvMJI9S.js → BBi8ZQ4f.js} +1 -1
- package/web/app/immutable/chunks/{DBdZimKy.js → BFq_nebX.js} +1 -1
- package/web/app/immutable/chunks/{DuBklFcM.js → BKBZBubB.js} +1 -1
- package/web/app/immutable/chunks/{C0fkUg5D.js → BKb2X4nY.js} +1 -1
- package/web/app/immutable/chunks/{ZfjlDNse.js → BKoNmPdl.js} +1 -1
- package/web/app/immutable/chunks/{D3C_wxG-.js → BL66wtH1.js} +1 -1
- package/web/app/immutable/chunks/{BaasjTfD.js → BPhCmCpT.js} +1 -1
- package/web/app/immutable/chunks/{C_DS9aXk.js → BQ3lIAxU.js} +1 -1
- package/web/app/immutable/chunks/{BN1F2G9L.js → BRFS4VDU.js} +1 -1
- package/web/app/immutable/chunks/{CQzSGmOk.js → BRX8YzX5.js} +1 -1
- package/web/app/immutable/chunks/{CfjGsJrO.js → BS-h7rm3.js} +1 -1
- package/web/app/immutable/chunks/{V4P2F4m3.js → BTiFAxnk.js} +1 -1
- package/web/app/immutable/chunks/{DNzn6PzZ.js → BVLclYIV.js} +1 -1
- package/web/app/immutable/chunks/{DdWrNe4g.js → BVR4ypbe.js} +1 -1
- package/web/app/immutable/chunks/{BJTOTozZ.js → BVT8FnwX.js} +1 -1
- package/web/app/immutable/chunks/{CdqaycPl.js → BVnCu4HK.js} +1 -1
- package/web/app/immutable/chunks/{BF2JOf_h.js → BWAM175S.js} +1 -1
- package/web/app/immutable/chunks/{DFcDTHE7.js → BWaQmmKL.js} +1 -1
- package/web/app/immutable/chunks/{GIJe6jEe.js → BXDqRhfc.js} +1 -1
- package/web/app/immutable/chunks/{Bu2F6uGB.js → BcN0a7iZ.js} +1 -1
- package/web/app/immutable/chunks/{DMlNL7XW.js → BeXyu8S7.js} +6 -6
- package/web/app/immutable/chunks/{C6wHGKVx.js → BggFqLcQ.js} +1 -1
- package/web/app/immutable/chunks/{DNu-EOlZ.js → BiyBBgWJ.js} +1 -1
- package/web/app/immutable/chunks/{Bkg2jzs8.js → Bkny4U08.js} +1 -1
- package/web/app/immutable/chunks/{DJrVxxbZ.js → BnoYK4Cg.js} +1 -1
- package/web/app/immutable/chunks/{DfRs59bc.js → BoVqnGlE.js} +1 -1
- package/web/app/immutable/chunks/{8tKgHmPk.js → BpS2Zkky.js} +1 -1
- package/web/app/immutable/chunks/{CJj6zr8B.js → BqQtQly_.js} +1 -1
- package/web/app/immutable/chunks/{DEqIZOTX.js → BsU6XLOF.js} +1 -1
- package/web/app/immutable/chunks/{BJbo_kKO.js → ByOlSVuA.js} +1 -1
- package/web/app/immutable/chunks/{ByZjDy8O.js → BzvRDF8m.js} +1 -1
- package/web/app/immutable/chunks/{Cxw8qNpn.js → C0sDoyzY.js} +1 -1
- package/web/app/immutable/chunks/{B9P5rUiO.js → C0yADNxK.js} +1 -1
- package/web/app/immutable/chunks/{Dp45taKt.js → C2RKkR8r.js} +1 -1
- package/web/app/immutable/chunks/{JMt_KPti.js → C6MidKO1.js} +1 -1
- package/web/app/immutable/chunks/{BhglH0qV.js → C7NJtCoD.js} +2 -2
- package/web/app/immutable/chunks/{CdlxRh10.js → C7jsu14h.js} +1 -1
- package/web/app/immutable/chunks/{pViJ0C09.js → C9KORVFh.js} +1 -1
- package/web/app/immutable/chunks/{1jD1K4t9.js → CAdJgRT-.js} +1 -1
- package/web/app/immutable/chunks/{kbiSNU8S.js → CCOyeB8l.js} +1 -1
- package/web/app/immutable/chunks/{qpzd1Snw.js → CGXAF4r8.js} +1 -1
- package/web/app/immutable/chunks/{E8EFUfsc.js → CHHzckiT.js} +1 -1
- package/web/app/immutable/chunks/{DpwvNWlF.js → CI_dqO7A.js} +1 -1
- package/web/app/immutable/chunks/{B4cRl4XZ.js → CIhr4uzF.js} +1 -1
- package/web/app/immutable/chunks/{Dw3FugoV.js → CJB0AMOQ.js} +2 -2
- package/web/app/immutable/chunks/{Irb_xhXc.js → CKXP5Dfl.js} +1 -1
- package/web/app/immutable/chunks/{D7rRJFzn.js → CLt_MpVR.js} +1 -1
- package/web/app/immutable/chunks/{g4ZkGYVX.js → CLwukbv5.js} +1 -1
- package/web/app/immutable/chunks/{58UGOK_x.js → CMT8W8d8.js} +1 -1
- package/web/app/immutable/chunks/{Bcwj2Z7c.js → CMxICaSn.js} +1 -1
- package/web/app/immutable/chunks/{CCZ7kcPP.js → CNcMC2eS.js} +1 -1
- package/web/app/immutable/chunks/{fBLUmxyl.js → CTb5E7ts.js} +1 -1
- package/web/app/immutable/chunks/{L35vxo_x.js → CUPUpXuX.js} +1 -1
- package/web/app/immutable/chunks/{CVj7bpe9.js → CURgPz9A.js} +1 -1
- package/web/app/immutable/chunks/{DGnZRFrD.js → CViglT06.js} +1 -1
- package/web/app/immutable/chunks/{DW-SCc7t.js → CYIyfTfT.js} +1 -1
- package/web/app/immutable/chunks/{DRPtDW2A.js → CZ0U9o7-.js} +1 -1
- package/web/app/immutable/chunks/{neAtdZ03.js → CZL3_4T_.js} +1 -1
- package/web/app/immutable/chunks/{BIXM_U1Z.js → Ca7foKhO.js} +1 -1
- package/web/app/immutable/chunks/{CZugVkfN.js → CbB5VTQO.js} +1 -1
- package/web/app/immutable/chunks/{DkpprR-E.js → CbSjEe9c.js} +1 -1
- package/web/app/immutable/chunks/{CSSOAZoU.js → Cc7p6my_.js} +6 -6
- package/web/app/immutable/chunks/{N6q6QTTx.js → CcJbNmRb.js} +1 -1
- package/web/app/immutable/chunks/{B6R8-b5U.js → CcRQKkS2.js} +1 -1
- package/web/app/immutable/chunks/{CVbstW5g.js → CeO1YObE.js} +1 -1
- package/web/app/immutable/chunks/{KVl6LsXf.js → CjJmucSj.js} +1 -1
- package/web/app/immutable/chunks/{QaGc_6xV.js → CkiTXhNV.js} +1 -1
- package/web/app/immutable/chunks/{DqZp-_1t.js → Cl4oF0_T.js} +1 -1
- package/web/app/immutable/chunks/{CiJPyUxP.js → CojjevwO.js} +3 -3
- package/web/app/immutable/chunks/{DwO2fxa6.js → ConaHaDS.js} +1 -1
- package/web/app/immutable/chunks/{DfYbWhJy.js → CqShCtgy.js} +1 -1
- package/web/app/immutable/chunks/{B8b1g0xo.js → Cs8-gQAN.js} +1 -1
- package/web/app/immutable/chunks/{BCKk6VLR.js → CtPUg4ad.js} +1 -1
- package/web/app/immutable/chunks/{ejHd6Wjx.js → CwSA3Dwr.js} +1 -1
- package/web/app/immutable/chunks/{3MzspyfQ.js → Cz3L4t3K.js} +1 -1
- package/web/app/immutable/chunks/{pb4lGxfr.js → D1YVXYbM.js} +7 -7
- package/web/app/immutable/chunks/{bzpGnhNm.js → D1mml-OO.js} +1 -1
- package/web/app/immutable/chunks/{Cv92lPPx.js → D31GMMqw.js} +1 -1
- package/web/app/immutable/chunks/{BCAXQH9B.js → D4Mfx79s.js} +1 -1
- package/web/app/immutable/chunks/{BM96cMym.js → D6tg0AFH.js} +1 -1
- package/web/app/immutable/chunks/{BNkOj7Iq.js → D7tJZDri.js} +1 -1
- package/web/app/immutable/chunks/{Cfeu2Jlr.js → D8RydOZp.js} +1 -1
- package/web/app/immutable/chunks/{BM44mGhh.js → DB9IAENr.js} +1 -1
- package/web/app/immutable/chunks/{Posh1PTV.js → DBYwZc8q.js} +1 -1
- package/web/app/immutable/chunks/{Cz9zjNu0.js → DD1B8iWW.js} +1 -1
- package/web/app/immutable/chunks/{CBlh2RgL.js → DDDplTKI.js} +1 -1
- package/web/app/immutable/chunks/{BsbUKqyQ.js → DD_wk1WS.js} +2 -2
- package/web/app/immutable/chunks/{C4GUFULr.js → DDs4Vg0U.js} +1 -1
- package/web/app/immutable/chunks/{DEKRv2SA.js → DEMyUrKD.js} +1 -1
- package/web/app/immutable/chunks/DGR4UUG4.js +1 -0
- package/web/app/immutable/chunks/{CebKpXnw.js → DHUOIULZ.js} +1 -1
- package/web/app/immutable/chunks/{QXxjhZE8.js → DJPQ2gWl.js} +1 -1
- package/web/app/immutable/chunks/{Cyt32IzK.js → DOP6s1nq.js} +4 -4
- package/web/app/immutable/chunks/{CIQ2KSkd.js → DOb83nqS.js} +1 -1
- package/web/app/immutable/chunks/{BHOlTerP.js → DOlRZEzP.js} +1 -1
- package/web/app/immutable/chunks/{EaXPzvmD.js → DOpzySCS.js} +1 -1
- package/web/app/immutable/chunks/{BPYkHxEz.js → DPODhnzy.js} +2 -2
- package/web/app/immutable/chunks/{ZJF5u8sT.js → DPaNvpDi.js} +1 -1
- package/web/app/immutable/chunks/{B5hMYT01.js → DR4IMcDF.js} +1 -1
- package/web/app/immutable/chunks/{CcjAwET4.js → DSoSzq2S.js} +1 -1
- package/web/app/immutable/chunks/{CUFD0_NB.js → DUb-Rw9h.js} +1 -1
- package/web/app/immutable/chunks/{C3u5H0Sx.js → DW3NYbCg.js} +1 -1
- package/web/app/immutable/chunks/{Ba2NpplL.js → D_HBTAOp.js} +2 -2
- package/web/app/immutable/chunks/{ChhEI5-A.js → D_fVcaam.js} +1 -1
- package/web/app/immutable/chunks/{zZaNF0gw.js → DayXN3MG.js} +1 -1
- package/web/app/immutable/chunks/{CQeSP20x.js → DczZ5XlV.js} +3 -3
- package/web/app/immutable/chunks/{DBQ6-GLb.js → DfARSELN.js} +1 -1
- package/web/app/immutable/chunks/{BW4Lb1gb.js → DfZpv0e6.js} +1 -1
- package/web/app/immutable/chunks/{hjPR6Rnc.js → Dj9vAmvP.js} +1 -1
- package/web/app/immutable/chunks/{B2Q9zOdQ.js → DjJQPfKI.js} +1 -1
- package/web/app/immutable/chunks/{DLk_QjTP.js → Djo4Utna.js} +1 -1
- package/web/app/immutable/chunks/{CIWCsQ8M.js → DnSvdDJQ.js} +1 -1
- package/web/app/immutable/chunks/{BbB0oN_T.js → Dp-w6U2a.js} +1 -1
- package/web/app/immutable/chunks/{D5eSz8Yy.js → Dpront9T.js} +1 -1
- package/web/app/immutable/chunks/{GLxqtUdl.js → DsUUGZq_.js} +1 -1
- package/web/app/immutable/chunks/{DJKO9mMv.js → DvuFiJGX.js} +1 -1
- package/web/app/immutable/chunks/{BwlSugdR.js → DxZVPzM-.js} +1 -1
- package/web/app/immutable/chunks/{Bb1UDU6X.js → Dy75eCEg.js} +1 -1
- package/web/app/immutable/chunks/{Dps6NMO7.js → EZewBOPv.js} +1 -1
- package/web/app/immutable/chunks/{BCyYdDY9.js → GgqVQsTS.js} +1 -1
- package/web/app/immutable/chunks/{Dh3Ryezx.js → IFT0w_rv.js} +1 -1
- package/web/app/immutable/chunks/{BpOsjl4B.js → J1JvTxzS.js} +1 -1
- package/web/app/immutable/chunks/{BEp708sp.js → KoGdyFdq.js} +1 -1
- package/web/app/immutable/chunks/{CWRCHISo.js → MSSSP_6i.js} +1 -1
- package/web/app/immutable/chunks/{Cqdkb92f.js → MkI4_nBU.js} +1 -1
- package/web/app/immutable/chunks/{BghIZW1D.js → Ozne-tFy.js} +6 -6
- package/web/app/immutable/chunks/{CahmCdEz.js → Q0MFbJMW.js} +1 -1
- package/web/app/immutable/chunks/{gybWrTHf.js → QvMOlSpE.js} +1 -1
- package/web/app/immutable/chunks/{DZtggwE6.js → TKDyISXm.js} +3 -3
- package/web/app/immutable/chunks/{DlgeVS0W.js → UiwXoSAw.js} +1 -1
- package/web/app/immutable/chunks/{BYPBR4fh.js → VIc8fDOK.js} +1 -1
- package/web/app/immutable/chunks/{8M4qD2wt.js → WAk1in99.js} +1 -1
- package/web/app/immutable/chunks/{DgdBkeOv.js → WC951FwE.js} +1 -1
- package/web/app/immutable/chunks/{DLf4jaE4.js → WhG7Bgtb.js} +1 -1
- package/web/app/immutable/chunks/{CNvdiqGE.js → XRDpypMz.js} +1 -1
- package/web/app/immutable/chunks/{DBavb7qJ.js → YJmoM74E.js} +1 -1
- package/web/app/immutable/chunks/{CXuptX8T.js → cF3AJqS4.js} +1 -1
- package/web/app/immutable/chunks/{Bmtrue3d.js → dJdm8RiY.js} +1 -1
- package/web/app/immutable/chunks/{VBUrUMy_.js → f3mINTV_.js} +1 -1
- package/web/app/immutable/chunks/{DDXtES5I.js → g8wzFaTr.js} +1 -1
- package/web/app/immutable/chunks/{lgAZgfoh.js → h-HGzFkJ.js} +4 -4
- package/web/app/immutable/chunks/{fzsNMINk.js → iYBu_bIg.js} +1 -1
- package/web/app/immutable/chunks/{BhVtbuhY.js → igt8MaJ4.js} +1 -1
- package/web/app/immutable/chunks/{BNg9ANty.js → l4QAkguk.js} +1 -1
- package/web/app/immutable/chunks/{DVpL0nyD.js → lfN_4jdk.js} +1 -1
- package/web/app/immutable/chunks/{BlvFC0m2.js → nn-FB5iu.js} +1 -1
- package/web/app/immutable/chunks/{CKQ8NUgf.js → qVOvfVaw.js} +1 -1
- package/web/app/immutable/chunks/{s81wpUv4.js → qoEkEEyr.js} +1 -1
- package/web/app/immutable/chunks/{VSh28uJa.js → seZ3kiWB.js} +1 -1
- package/web/app/immutable/chunks/{uV-IGUNy.js → txAxF1ra.js} +1 -1
- package/web/app/immutable/chunks/{B4bjCAKW.js → vTk7TgiT.js} +1 -1
- package/web/app/immutable/chunks/{DMNf8Xuf.js → waEdGUDl.js} +1 -1
- package/web/app/immutable/chunks/{efd11D73.js → x9rbYKj9.js} +1 -1
- package/web/app/immutable/chunks/{Bxl01mZe.js → xn0HgFL2.js} +1 -1
- package/web/app/immutable/chunks/{BLBkfdhM.js → xnqT8zWA.js} +1 -1
- package/web/app/immutable/chunks/{k1UqmefG.js → yr_icLi6.js} +1 -1
- package/web/app/immutable/chunks/{BGarQU0H.js → zFZ2p9zT.js} +1 -1
- package/web/app/immutable/entry/{app.Chckz9N7.js → app.MRheiWYu.js} +2 -2
- package/web/app/immutable/entry/start.CSXPreJt.js +1 -0
- package/web/app/immutable/nodes/{0.DV4OxTlt.js → 0.CtDeqO-b.js} +1 -1
- package/web/app/immutable/nodes/{1.Ck6qIYNd.js → 1.DkbI4cS2.js} +1 -1
- package/web/app/immutable/nodes/{10.BJGM7dzF.js → 10.m8CCWmGC.js} +1 -1
- package/web/app/immutable/nodes/{14.vxfsp_3g.js → 14.ByaMuLhR.js} +1 -1
- package/web/app/immutable/nodes/{16.CrYjJL43.js → 16.BmFYAQ9C.js} +2 -2
- package/web/app/immutable/nodes/{2.F1jEoAFf.js → 2.B4Inck9s.js} +3 -3
- package/web/app/immutable/nodes/{3.CTi33PwH.js → 3.C3UUZ7iK.js} +1 -1
- package/web/app/immutable/nodes/{4.CEVSI3tX.js → 4.CtX4qgJE.js} +1 -1
- package/web/app/immutable/nodes/{5.Cwr-dRRa.js → 5.yLkRrv3R.js} +1 -1
- package/web/app/immutable/nodes/{6.CirgPdsp.js → 6.CjUsIDeG.js} +1 -1
- package/web/app/immutable/nodes/{7.BTCmHFrX.js → 7.DCFEio1e.js} +1 -1
- package/web/app/immutable/nodes/{8.Ccr1GUq8.js → 8.CGM4vick.js} +2 -2
- package/web/app/immutable/nodes/{9.DtRI4gIT.js → 9.V5qvVUf3.js} +1 -1
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/CE7Mossj.js +0 -1
- package/web/app/immutable/entry/start.BEWBWLRT.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as R,s as W,S as N}from"./D8sxBEHk.js";import{l as P}from"./BCyYdDY9.js";import{a as f,N as t,ad as S,r as U,G as _,p as z,V as C,aV as F}from"./pb4lGxfr.js";import{c3 as H,bz as O,ae as J}from"./CSSOAZoU.js";import"./B4cRl4XZ.js";var X=f(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),D=f(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),Y=f((e,i)=>{const d=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),c=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),d},"drawSimpleState"),I=f((e,i)=>{const d=f(function(o,B,y){const v=o.append("tspan").attr("x",2*t().state.padding).text(B);y||v.attr("dy",t().state.textHeight)},"addTspan"),n=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),l=n.height,p=e.append("text").attr("x",t().state.padding).attr("y",l+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,s=!0;i.descriptions.forEach(function(o){a||(d(p,o,s),s=!1),a=!1});const m=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+l+t().state.dividerMargin/2).attr("y2",t().state.padding+l+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),g=Math.max(x.width,n.width);return m.attr("x2",g+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",g+2*t().state.padding).attr("height",x.height+l+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),$=f((e,i,d)=>{const c=t().state.padding,n=2*t().state.padding,l=e.node().getBBox(),p=l.width,a=l.x,s=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=s.node().getBBox().width+n;let g=Math.max(x,p);g===p&&(g=g+n);let o;const B=e.node().getBBox();i.doc,o=a-c,x>p&&(o=(p-g)/2+c),Math.abs(a-B.x)<c&&x>p&&(o=a-(x-p)/2);const y=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",o).attr("y",y).attr("class",d?"alt-composit":"composit").attr("width",g).attr("height",B.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),s.attr("x",o+c),x<=p&&s.attr("x",a+(g-n)/2-x/2+c),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",g).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",g).attr("height",B.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),V=f(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),q=f((e,i)=>{let d=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let n=d;d=c,c=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),Z=f((e,i,d,c)=>{let n=0;const l=c.append("text");l.style("text-anchor","start"),l.attr("class","noteText");let p=e.replace(/\r\n/g,"<br/>");p=p.replace(/\n/g,"<br/>");const a=p.split(z.lineBreakRegex);let s=1.25*t().state.noteMargin;for(const m of a){const x=m.trim();if(x.length>0){const g=l.append("tspan");if(g.text(x),s===0){const o=g.node().getBBox();s+=o.height}n+=s,g.attr("x",i+t().state.noteMargin),g.attr("y",d+n+1.25*t().state.noteMargin)}}return{textWidth:l.node().getBBox().width,textHeight:n}},"_drawLongText"),j=f((e,i)=>{i.attr("class","state-note");const d=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:n,textHeight:l}=Z(e,0,0,c);return d.attr("height",l+2*t().state.noteMargin),d.attr("width",n+t().state.noteMargin*2),d},"drawNote"),L=f(function(e,i){const d=i.id,c={id:d,label:i.id,width:0,height:0},n=e.append("g").attr("id",d).attr("class","stateGroup");i.type==="start"&&X(n),i.type==="end"&&V(n),(i.type==="fork"||i.type==="join")&&q(n,i),i.type==="note"&&j(i.note.text,n),i.type==="divider"&&D(n),i.type==="default"&&i.descriptions.length===0&&Y(n,i),i.type==="default"&&i.descriptions.length>0&&I(n,i);const l=n.node().getBBox();return c.width=l.width+2*t().state.padding,c.height=l.height+2*t().state.padding,c},"drawState"),G=0,K=f(function(e,i,d){const c=f(function(s){switch(s){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}},"getRelationType");i.points=i.points.filter(s=>!Number.isNaN(s.y));const n=i.points,l=O().x(function(s){return s.x}).y(function(s){return s.y}).curve(J),p=e.append("path").attr("d",l(n)).attr("id","edge"+G).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=C(!0)),p.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const s=e.append("g").attr("class","stateLabel"),{x:m,y:x}=F.calcLabelPosition(i.points),g=z.getRows(d.title);let o=0;const B=[];let y=0,v=0;for(let u=0;u<=g.length;u++){const h=s.append("text").attr("text-anchor","middle").text(g[u]).attr("x",m).attr("y",x+o),w=h.node().getBBox();y=Math.max(y,w.width),v=Math.min(v,w.x),S.info(w.x,m,x+o),o===0&&(o=h.node().getBBox().height,S.info("Title height",o,x)),B.push(h)}let k=o*g.length;if(g.length>1){const u=(g.length-1)*o*.5;B.forEach((h,w)=>h.attr("y",x+w*o-u)),k=o*g.length}const r=s.node().getBBox();s.insert("rect",":first-child").attr("class","box").attr("x",m-y/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",y+t().state.padding).attr("height",k+t().state.padding),S.info(r)}G++},"drawEdge"),b,T={},Q=f(function(){},"setConf"),tt=f(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),et=f(function(e,i,d,c){b=t().state;const n=t().securityLevel;let l;n==="sandbox"&&(l=H("#i"+i));const p=n==="sandbox"?H(l.nodes()[0].contentDocument.body):H("body"),a=n==="sandbox"?l.nodes()[0].contentDocument:document;S.debug("Rendering diagram "+e);const s=p.select(`[id='${i}']`);tt(s);const m=c.db.getRootDoc(),x=s.append("g").attr("id",i+"-root");A(m,x,void 0,!1,p,a,c);const g=b.padding,o=s.node().getBBox(),B=o.width+g*2,y=o.height+g*2,v=B*1.75;U(s,y,v,b.useMaxWidth),s.attr("viewBox",`${o.x-b.padding} ${o.y-b.padding} `+B+" "+y)},"draw"),at=f(e=>e?e.length*b.fontSizeFactor:1,"getLabelWidth"),A=f((e,i,d,c,n,l,p)=>{const a=new _({compound:!0,multigraph:!0});let s,m=!0;for(s=0;s<e.length;s++)if(e[s].stmt==="relation"){m=!1;break}d?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:m?1:b.edgeLengthFactor,nodeSep:m?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:m?1:b.edgeLengthFactor,nodeSep:m?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});const x=p.db.getStates(),g=p.db.getRelations(),o=Object.keys(x);for(const r of o){const u=x[r];d&&(u.parentId=d);let h;if(u.doc){let w=i.append("g").attr("id",u.id).attr("class","stateGroup");h=A(u.doc,w,u.id,!c,n,l,p);{w=$(w,u,c);let E=w.node().getBBox();h.width=E.width,h.height=E.height+b.padding/2,T[u.id]={y:b.compositTitleSize}}}else h=L(i,u,a);if(u.note){const w={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},E=L(i,w,a);u.note.position==="left of"?(a.setNode(h.id+"-note",E),a.setNode(h.id,h)):(a.setNode(h.id,h),a.setNode(h.id+"-note",E)),a.setParent(h.id,h.id+"-group"),a.setParent(h.id+"-note",h.id+"-group")}else a.setNode(h.id,h)}S.debug("Count=",a.nodeCount(),a);let B=0;g.forEach(function(r){B++,S.debug("Setting edge",r),a.setEdge(r.id1,r.id2,{relation:r,width:at(r.title),height:b.labelHeight*z.getRows(r.title).length,labelpos:"c"},"id"+B)}),P(a),S.debug("Graph after layout",a.nodes());const y=i.node();a.nodes().forEach(function(r){r!==void 0&&a.node(r)!==void 0?(S.warn("Node "+r+": "+JSON.stringify(a.node(r))),n.select("#"+y.id+" #"+r).attr("transform","translate("+(a.node(r).x-a.node(r).width/2)+","+(a.node(r).y+(T[r]?T[r].y:0)-a.node(r).height/2)+" )"),n.select("#"+y.id+" #"+r).attr("data-x-shift",a.node(r).x-a.node(r).width/2),l.querySelectorAll("#"+y.id+" #"+r+" .divider").forEach(h=>{const w=h.parentElement;let E=0,M=0;w&&(w.parentElement&&(E=w.parentElement.getBBox().width),M=parseInt(w.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",E-M-8)})):S.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let v=y.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(S.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),K(i,a.edge(r),a.edge(r).relation))}),v=y.getBBox();const k={id:d||"root",label:d||"root",width:0,height:0};return k.width=v.width+2*b.padding,k.height=v.height+2*b.padding,S.debug("Doc rendered",k,a),k},"renderDoc"),it={setConf:Q,draw:et},ct={parser:W,get db(){return new N(1)},renderer:it,styles:R,init:f(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{ct as diagram};
|
|
1
|
+
import{b as R,s as W,S as N}from"./B08ZRfRe.js";import{l as P}from"./GgqVQsTS.js";import{a as f,N as t,ad as S,r as U,G as _,p as z,V as C,aV as F}from"./D1YVXYbM.js";import{c3 as H,bz as O,ae as J}from"./Cc7p6my_.js";import"./CIhr4uzF.js";var X=f(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),D=f(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),Y=f((e,i)=>{const d=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),c=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),d},"drawSimpleState"),I=f((e,i)=>{const d=f(function(o,B,y){const v=o.append("tspan").attr("x",2*t().state.padding).text(B);y||v.attr("dy",t().state.textHeight)},"addTspan"),n=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),l=n.height,p=e.append("text").attr("x",t().state.padding).attr("y",l+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,s=!0;i.descriptions.forEach(function(o){a||(d(p,o,s),s=!1),a=!1});const m=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+l+t().state.dividerMargin/2).attr("y2",t().state.padding+l+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),g=Math.max(x.width,n.width);return m.attr("x2",g+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",g+2*t().state.padding).attr("height",x.height+l+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),$=f((e,i,d)=>{const c=t().state.padding,n=2*t().state.padding,l=e.node().getBBox(),p=l.width,a=l.x,s=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=s.node().getBBox().width+n;let g=Math.max(x,p);g===p&&(g=g+n);let o;const B=e.node().getBBox();i.doc,o=a-c,x>p&&(o=(p-g)/2+c),Math.abs(a-B.x)<c&&x>p&&(o=a-(x-p)/2);const y=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",o).attr("y",y).attr("class",d?"alt-composit":"composit").attr("width",g).attr("height",B.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),s.attr("x",o+c),x<=p&&s.attr("x",a+(g-n)/2-x/2+c),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",g).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",g).attr("height",B.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),V=f(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),q=f((e,i)=>{let d=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let n=d;d=c,c=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),Z=f((e,i,d,c)=>{let n=0;const l=c.append("text");l.style("text-anchor","start"),l.attr("class","noteText");let p=e.replace(/\r\n/g,"<br/>");p=p.replace(/\n/g,"<br/>");const a=p.split(z.lineBreakRegex);let s=1.25*t().state.noteMargin;for(const m of a){const x=m.trim();if(x.length>0){const g=l.append("tspan");if(g.text(x),s===0){const o=g.node().getBBox();s+=o.height}n+=s,g.attr("x",i+t().state.noteMargin),g.attr("y",d+n+1.25*t().state.noteMargin)}}return{textWidth:l.node().getBBox().width,textHeight:n}},"_drawLongText"),j=f((e,i)=>{i.attr("class","state-note");const d=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:n,textHeight:l}=Z(e,0,0,c);return d.attr("height",l+2*t().state.noteMargin),d.attr("width",n+t().state.noteMargin*2),d},"drawNote"),L=f(function(e,i){const d=i.id,c={id:d,label:i.id,width:0,height:0},n=e.append("g").attr("id",d).attr("class","stateGroup");i.type==="start"&&X(n),i.type==="end"&&V(n),(i.type==="fork"||i.type==="join")&&q(n,i),i.type==="note"&&j(i.note.text,n),i.type==="divider"&&D(n),i.type==="default"&&i.descriptions.length===0&&Y(n,i),i.type==="default"&&i.descriptions.length>0&&I(n,i);const l=n.node().getBBox();return c.width=l.width+2*t().state.padding,c.height=l.height+2*t().state.padding,c},"drawState"),G=0,K=f(function(e,i,d){const c=f(function(s){switch(s){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}},"getRelationType");i.points=i.points.filter(s=>!Number.isNaN(s.y));const n=i.points,l=O().x(function(s){return s.x}).y(function(s){return s.y}).curve(J),p=e.append("path").attr("d",l(n)).attr("id","edge"+G).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=C(!0)),p.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const s=e.append("g").attr("class","stateLabel"),{x:m,y:x}=F.calcLabelPosition(i.points),g=z.getRows(d.title);let o=0;const B=[];let y=0,v=0;for(let u=0;u<=g.length;u++){const h=s.append("text").attr("text-anchor","middle").text(g[u]).attr("x",m).attr("y",x+o),w=h.node().getBBox();y=Math.max(y,w.width),v=Math.min(v,w.x),S.info(w.x,m,x+o),o===0&&(o=h.node().getBBox().height,S.info("Title height",o,x)),B.push(h)}let k=o*g.length;if(g.length>1){const u=(g.length-1)*o*.5;B.forEach((h,w)=>h.attr("y",x+w*o-u)),k=o*g.length}const r=s.node().getBBox();s.insert("rect",":first-child").attr("class","box").attr("x",m-y/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",y+t().state.padding).attr("height",k+t().state.padding),S.info(r)}G++},"drawEdge"),b,T={},Q=f(function(){},"setConf"),tt=f(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),et=f(function(e,i,d,c){b=t().state;const n=t().securityLevel;let l;n==="sandbox"&&(l=H("#i"+i));const p=n==="sandbox"?H(l.nodes()[0].contentDocument.body):H("body"),a=n==="sandbox"?l.nodes()[0].contentDocument:document;S.debug("Rendering diagram "+e);const s=p.select(`[id='${i}']`);tt(s);const m=c.db.getRootDoc(),x=s.append("g").attr("id",i+"-root");A(m,x,void 0,!1,p,a,c);const g=b.padding,o=s.node().getBBox(),B=o.width+g*2,y=o.height+g*2,v=B*1.75;U(s,y,v,b.useMaxWidth),s.attr("viewBox",`${o.x-b.padding} ${o.y-b.padding} `+B+" "+y)},"draw"),at=f(e=>e?e.length*b.fontSizeFactor:1,"getLabelWidth"),A=f((e,i,d,c,n,l,p)=>{const a=new _({compound:!0,multigraph:!0});let s,m=!0;for(s=0;s<e.length;s++)if(e[s].stmt==="relation"){m=!1;break}d?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:m?1:b.edgeLengthFactor,nodeSep:m?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:m?1:b.edgeLengthFactor,nodeSep:m?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});const x=p.db.getStates(),g=p.db.getRelations(),o=Object.keys(x);for(const r of o){const u=x[r];d&&(u.parentId=d);let h;if(u.doc){let w=i.append("g").attr("id",u.id).attr("class","stateGroup");h=A(u.doc,w,u.id,!c,n,l,p);{w=$(w,u,c);let E=w.node().getBBox();h.width=E.width,h.height=E.height+b.padding/2,T[u.id]={y:b.compositTitleSize}}}else h=L(i,u,a);if(u.note){const w={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},E=L(i,w,a);u.note.position==="left of"?(a.setNode(h.id+"-note",E),a.setNode(h.id,h)):(a.setNode(h.id,h),a.setNode(h.id+"-note",E)),a.setParent(h.id,h.id+"-group"),a.setParent(h.id+"-note",h.id+"-group")}else a.setNode(h.id,h)}S.debug("Count=",a.nodeCount(),a);let B=0;g.forEach(function(r){B++,S.debug("Setting edge",r),a.setEdge(r.id1,r.id2,{relation:r,width:at(r.title),height:b.labelHeight*z.getRows(r.title).length,labelpos:"c"},"id"+B)}),P(a),S.debug("Graph after layout",a.nodes());const y=i.node();a.nodes().forEach(function(r){r!==void 0&&a.node(r)!==void 0?(S.warn("Node "+r+": "+JSON.stringify(a.node(r))),n.select("#"+y.id+" #"+r).attr("transform","translate("+(a.node(r).x-a.node(r).width/2)+","+(a.node(r).y+(T[r]?T[r].y:0)-a.node(r).height/2)+" )"),n.select("#"+y.id+" #"+r).attr("data-x-shift",a.node(r).x-a.node(r).width/2),l.querySelectorAll("#"+y.id+" #"+r+" .divider").forEach(h=>{const w=h.parentElement;let E=0,M=0;w&&(w.parentElement&&(E=w.parentElement.getBBox().width),M=parseInt(w.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",E-M-8)})):S.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let v=y.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(S.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),K(i,a.edge(r),a.edge(r).relation))}),v=y.getBBox();const k={id:d||"root",label:d||"root",width:0,height:0};return k.width=v.width+2*b.padding,k.height=v.height+2*b.padding,S.debug("Doc rendered",k,a),k},"renderDoc"),it={setConf:Q,draw:et},ct={parser:W,get db(){return new N(1)},renderer:it,styles:R,init:f(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{ct as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{gQ as x,gw as B,Hp as E,Ia as G,st as H,tm as F,y$ as $,z0 as D,Hn as z,Ho as N,z1 as Q}from"./WOicJa2k.js";import{Q as f,o as V,C as K,e as U,l as g,p as j,u as q,v as J}from"./CWKAugar.js";import{dw as X}from"./D24Lh2xV.js";import{r as Y}from"./
|
|
1
|
+
import{gQ as x,gw as B,Hp as E,Ia as G,st as H,tm as F,y$ as $,z0 as D,Hn as z,Ho as N,z1 as Q}from"./WOicJa2k.js";import{Q as f,o as V,C as K,e as U,l as g,p as j,u as q,v as J}from"./CWKAugar.js";import{dw as X}from"./D24Lh2xV.js";import{r as Y}from"./IFT0w_rv.js";import{bo as l}from"./yZ5s7S5S.js";import{b5 as Z,a9 as y}from"./CyAayV8v.js";import{y as M}from"./G0_EiVNo.js";import{g as ee}from"./gM93sUNx.js";function S(e,t){const a=f.select(e.state),n=g.select(e.state);if(!n)return null;const c=a.indexOf(n),s=c+(t==="left"?-1:1),r=a[s];return c<0||!r?null:(e.dispatch(H(n,r,t==="left"?"before":"after")),n)}function A(e){const t=g.select(e);return t&&f.select(e).includes(t)?t:null}function w(e,t,a){const n=A(e.state),c=n?`/workspace/${n}`:Y(X.select(e.state));return t!==c&&a(c),n}function te(e,t,a,n){return e.dispatch(x(t)),w(e,a,n),t}function I(e,t){const n=t.match(/^\/workspace\/([^/]+)/)?.[1];return n?n==="new"?null:n:null}function v(e,t,a,n){if(a==="/")return O(e,t==="next"?0:"last",a,n);e.dispatch(t==="next"?z():N());const c=g.select(e.state);if(!c)return null;const s=`/workspace/${c}`;return a!==s&&n(s),c}function ae(e,t,a){const n=I(e,t);return n?te(e,n,t,a):null}function ne(e,t,a){const n=I(e,t);if(!n)return null;const c=V.select(e.state,n);if(!c)return null;const s=c.tabs.find(T=>T.id===c.activeTabId),r=c.tabs.length===0&&c.activeTabId===null,m=K.select(e.state,n)>1&&(r||c.tabs.length===1&&s!==void 0&&s.closable!==!1);if((!s||s.closable===!1)&&!m)return null;const h=a??ee(n)?.availableCanvasWidth??void 0;return e.dispatch(B(n,void 0,h)),s?.id??c.id}function oe(e,t){const a=e.state.panelLayout.byWorkspaceId[t];return!a||a.restoreStatus==="pending"?!1:U.select(e.state,t).length===0}function ce(e,t,a){A(e.state)||e.dispatch(E(0)),w(e,t,a)}function C(e,t,{navigate:a,closeWindow:n}){return n?(n(),"window"):(w(e,t,a),null)}function se(e,t,a){const n=I(e,t);return n?ne(e,t,a.availableCanvasWidth)!==null?"panel":oe(e,n)?(e.dispatch(x(n)),f.select(e.state).length>0?(ce(e,t,a.navigate),"workspace"):C(e,t,a)??"workspace"):null:f.select(e.state).length>0?null:C(e,t,a)}function le(e,t,a){return e.dispatch(Q()),w(e,t,a)}function re(e,t,a){const n=t.match(/^\/workspace\/([^/]+)/),c=n&&n[1]!=="new"?n[1]:null,s=q.select(e.state),r=c?J.select(e.state,c):null;return c&&r&&(!s||r.closedAt>=s.closedAt)?r.kind==="column"?(e.dispatch($(c)),"column"):(e.dispatch(D(c)),r.kind):s?(le(e,t,a),"workspace"):null}function ie(e,t){const a=t.match(/^\/workspace\/([^/]+)/),n=a&&a[1]!=="new"?a[1]:null;if(!n)return null;const c=F(n);return e.dispatch(c),j.select(e.state,n)}function O(e,t,a,n){const c=f.select(e.state),s=t==="last"?c.length-1:t;return s<0||s>=c.length?null:(e.dispatch(E(s)),w(e,a,n))}function me({isMac:e,register:t,store:a,getCurrentPath:n,navigate:c,openNewWorkspace:s,onCreateAgent:r,onCreateNote:m,onCreateTerminal:h,onCreateBrowser:T,onWorkspaceTabMoved:W,closeWindow:L,resolveBinding:k}){const p=e?{meta:!0}:{ctrl:!0},P=Z("TOGGLE_SIDEBAR",e),b=o=>()=>o(n()),R=o=>()=>{const u=n().match(/^\/workspace\/([^/]+)/);u?.[1]&&u[1]!=="new"&&o(u[1])},i=o=>k?{binding:()=>k(o)}:{};t({...i("global.new-space"),...p,key:"n",global:!0,description:l.workspace_shortcuts_newSpace_description(),action:s}),t({...i("panel.toggle-sidebar"),...P,global:!0,description:y.TOGGLE_SIDEBAR.label,action:()=>a.dispatch(G())}),t({...i("navigation.new-tab"),...p,key:"t",global:!0,description:l.workspace_shortcuts_newPanel_description(),action:b(o=>ie(a,o))});for(const[o,u,_,d]of[["workspace.new-agent","a",l.ui_shortcuts_newAgent_label(),r],["workspace.new-note","n",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_note_label()}),m],["workspace.new-terminal","t",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_terminal_label()}),h],["workspace.new-browser","b",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_browser_label()}),T]])d&&t({...i(o),...p,key:u,alt:!0,global:!0,allowInTerminal:!0,description:_,action:R(d)});t({...i("navigation.close-tab"),...p,key:"w",global:!0,description:l.workspace_shortcuts_closePanelTab_description(),action:b(o=>se(a,o,{navigate:c,closeWindow:L}))}),t({...i("navigation.close-space-tab"),...p,key:"w",shift:!0,global:!0,description:l.workspace_shortcuts_closeSpaceTab_description(),action:b(o=>ae(a,o,c))}),t({...i("navigation.reopen-tab"),...p,key:"t",shift:!0,global:!0,description:l.workspace_shortcuts_reopenClosedTabOrSpace_description(),action:b(o=>re(a,o,c))}),t({...i("navigation.move-space-tab-left"),...p,key:"ArrowLeft",alt:!0,shift:!0,global:!0,description:y.MOVE_SPACE_TAB_LEFT.label,action:()=>{const o=S(a,"left");o&&W?.({workspaceId:o,position:f.select(a.state).indexOf(o)+1})}}),t({...i("navigation.move-space-tab-right"),...p,key:"ArrowRight",alt:!0,shift:!0,global:!0,description:y.MOVE_SPACE_TAB_RIGHT.label,action:()=>{const o=S(a,"right");o&&W?.({workspaceId:o,position:f.select(a.state).indexOf(o)+1})}});for(const[o,u]of[["next",!1],["previous",!0]]){t({...i(o==="next"?"global.next-space":"global.previous-space"),key:"Tab",ctrl:!0,shift:u,global:!0,description:o==="next"?l.workspace_shortcuts_nextSpaceTab_description():l.workspace_shortcuts_previousSpaceTab_description(),action:b(d=>v(a,o,d,c))});const _=o==="next"?"global.next-space-alt":"global.previous-space-alt";t({...i(_),...p,key:o==="next"?"}":"{",shift:!0,global:!0,allowInTerminal:!0,preferLocal:!0,enabled:d=>!k||!M(_,d,k,e),description:o==="next"?l.workspace_shortcuts_nextSpaceTab_description():l.workspace_shortcuts_previousSpaceTab_description(),action:b(d=>v(a,o,d,c))})}for(let o=1;o<=9;o++)t({...k?{binding:()=>k("navigation.go-to-tab").replace(/([1-8])-9$/,String(o))}:{},...p,key:String(o),global:!0,description:o===1?l.home_navigation_description():o===9?l.workspace_shortcuts_selectLastSpaceTab_description():l.workspace_shortcuts_selectSpaceTab_description({digit:o}),action:b(u=>o===1?c("/"):O(a,o===9?"last":o-2,u,c))})}export{se as c,me as r};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as ge}from"./
|
|
1
|
+
import{g as ge}from"./g8wzFaTr.js";import{a as h,ad as R,R as ue,ax as pe,M as fe,y as H,N as U,aD as j,W as me,a8 as ye,aa as _e,w as Ee}from"./D1YVXYbM.js";import{s as ke}from"./ConaHaDS.js";import{g as m}from"./Cc7p6my_.js";var k=[];for(let t=0;t<256;++t)k.push((t+256).toString(16).slice(1));function se(t,e=0){return(k[t[e+0]]+k[t[e+1]]+k[t[e+2]]+k[t[e+3]]+"-"+k[t[e+4]]+k[t[e+5]]+"-"+k[t[e+6]]+k[t[e+7]]+"-"+k[t[e+8]]+k[t[e+9]]+"-"+k[t[e+10]]+k[t[e+11]]+k[t[e+12]]+k[t[e+13]]+k[t[e+14]]+k[t[e+15]]).toLowerCase()}m(se,"unsafeStringify");var Se=new Uint8Array(16);function re(){return crypto.getRandomValues(Se)}m(re,"rng");function ae(t,e,a){return!e&&!t&&crypto.randomUUID?crypto.randomUUID():oe(t,e,a)}m(ae,"v4");function oe(t,e,a){t=t||{};const l=t.random??t.rng?.()??re();if(l.length<16)throw new Error("Random bytes length must be >= 16");if(l[6]=l[6]&15|64,l[8]=l[8]&63|128,e){if(a=a||0,a<0||a+16>e.length)throw new RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`);for(let n=0;n<16;++n)e[a+n]=l[n];return e}return se(l)}m(oe,"_v4");var be=ae,K=(function(){var t=h(function(v,s,i,o){for(i=i||{},o=v.length;o--;i[v[o]]=s);return i},"o"),e=[1,4],a=[1,13],l=[1,12],n=[1,15],d=[1,16],f=[1,20],_=[1,19],E=[6,7,8],S=[1,26],T=[1,24],A=[1,25],g=[6,7,11],$=[1,6,13,15,16,19,22],Q=[1,33],Z=[1,34],B=[1,6,7,11,13,15,16,19,22],W={trace:h(m(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:h(m(function(s,i,o,c,p,r,P){var u=r.length-1;switch(p){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[u].id),c.addNode(r[u-1].length,r[u].id,r[u].descr,r[u].type);break;case 16:c.getLogger().trace("Icon: ",r[u]),c.decorateNode({icon:r[u]});break;case 17:case 21:c.decorateNode({class:r[u]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[u].id),c.addNode(0,r[u].id,r[u].descr,r[u].type);break;case 20:c.decorateNode({icon:r[u]});break;case 25:c.getLogger().trace("node found ..",r[u-2]),this.$={id:r[u-1],descr:r[u-1],type:c.getType(r[u-2],r[u])};break;case 26:this.$={id:r[u],descr:r[u],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[u-3]),this.$={id:r[u-3],descr:r[u-1],type:c.getType(r[u-2],r[u])};break}},"anonymous"),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:a,7:[1,10],9:9,12:11,13:l,14:14,15:n,16:d,17:17,18:18,19:f,22:_},t(E,[2,3]),{1:[2,2]},t(E,[2,4]),t(E,[2,5]),{1:[2,6],6:a,12:21,13:l,14:14,15:n,16:d,17:17,18:18,19:f,22:_},{6:a,9:22,12:11,13:l,14:14,15:n,16:d,17:17,18:18,19:f,22:_},{6:S,7:T,10:23,11:A},t(g,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:f,22:_}),t(g,[2,18]),t(g,[2,19]),t(g,[2,20]),t(g,[2,21]),t(g,[2,23]),t(g,[2,24]),t(g,[2,26],{19:[1,30]}),{20:[1,31]},{6:S,7:T,10:32,11:A},{1:[2,7],6:a,12:21,13:l,14:14,15:n,16:d,17:17,18:18,19:f,22:_},t($,[2,14],{7:Q,11:Z}),t(B,[2,8]),t(B,[2,9]),t(B,[2,10]),t(g,[2,15]),t(g,[2,16]),t(g,[2,17]),{20:[1,35]},{21:[1,36]},t($,[2,13],{7:Q,11:Z}),t(B,[2,11]),t(B,[2,12]),{21:[1,37]},t(g,[2,25]),t(g,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:h(m(function(s,i){if(i.recoverable)this.trace(s);else{var o=new Error(s);throw o.hash=i,o}},"parseError"),"parseError"),parse:h(m(function(s){var i=this,o=[0],c=[],p=[null],r=[],P=this.table,u="",V=0,ee=0,le=2,te=1,he=r.slice.call(arguments,1),y=Object.create(this.lexer),O={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(O.yy[z]=this.yy[z]);y.setInput(s,O.yy),O.yy.lexer=y,O.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var X=y.yylloc;r.push(X);var de=y.options&&y.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ne(N){o.length=o.length-2*N,p.length=p.length-N,r.length=r.length-N}m(ne,"popStack"),h(ne,"popStack");function Y(){var N;return N=c.pop()||y.lex()||te,typeof N!="number"&&(N instanceof Array&&(c=N,N=c.pop()),N=i.symbols_[N]||N),N}m(Y,"lex"),h(Y,"lex");for(var b,I,x,q,w={},F,D,ie,G;;){if(I=o[o.length-1],this.defaultActions[I]?x=this.defaultActions[I]:((b===null||typeof b>"u")&&(b=Y()),x=P[I]&&P[I][b]),typeof x>"u"||!x.length||!x[0]){var J="";G=[];for(F in P[I])this.terminals_[F]&&F>le&&G.push("'"+this.terminals_[F]+"'");y.showPosition?J="Parse error on line "+(V+1)+`:
|
|
2
2
|
`+y.showPosition()+`
|
|
3
3
|
Expecting `+G.join(", ")+", got '"+(this.terminals_[b]||b)+"'":J="Parse error on line "+(V+1)+": Unexpected "+(b==te?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(J,{text:y.match,token:this.terminals_[b]||b,line:y.yylineno,loc:X,expected:G})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+b);switch(x[0]){case 1:o.push(b),p.push(y.yytext),r.push(y.yylloc),o.push(x[1]),b=null,ee=y.yyleng,u=y.yytext,V=y.yylineno,X=y.yylloc;break;case 2:if(D=this.productions_[x[1]][1],w.$=p[p.length-D],w._$={first_line:r[r.length-(D||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(D||1)].first_column,last_column:r[r.length-1].last_column},de&&(w._$.range=[r[r.length-(D||1)].range[0],r[r.length-1].range[1]]),q=this.performAction.apply(w,[u,ee,V,O.yy,x[1],p,r].concat(he)),typeof q<"u")return q;D&&(o=o.slice(0,-1*D*2),p=p.slice(0,-1*D),r=r.slice(0,-1*D)),o.push(this.productions_[x[1]][0]),p.push(w.$),r.push(w._$),ie=P[o[o.length-2]][o[o.length-1]],o.push(ie);break;case 3:return!0}}return!0},"parse"),"parse")},ce=(function(){var v={EOF:1,parseError:h(m(function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},"parseError"),"parseError"),setInput:h(function(s,i){return this.yy=i||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:h(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:h(function(s){var i=s.length,o=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===c.length?this.yylloc.first_column:0)+c[c.length-o.length].length-o[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:h(function(){return this._more=!0,this},"more"),reject:h(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:h(function(s){this.unput(this.match.slice(s))},"less"),pastInput:h(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:h(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:h(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{t as b,bq as d,a_ as D,by as P,b as S}from"./yZ5s7S5S.js";import{bs as $,a7 as A,ay as C,W as M,bn as N,aA as m,aD as i,c9 as c}from"./B8o4lNgr.js";import{D as f,M as x}from"./
|
|
1
|
+
import{t as b,bq as d,a_ as D,by as P,b as S}from"./yZ5s7S5S.js";import{bs as $,a7 as A,ay as C,W as M,bn as N,aA as m,aD as i,c9 as c}from"./B8o4lNgr.js";import{D as f,M as x}from"./Cc7p6my_.js";import{S as z,p as B}from"./dJdm8RiY.js";import{N as W}from"./CKXP5Dfl.js";import{Hb as j,t$ as E,bh as J}from"./WOicJa2k.js";import{N as K}from"./CJB0AMOQ.js";import{$ as O}from"./D24Lh2xV.js";function R(l,s){if(new.target)return b({component:R,...l});$(s,!0);let o=d(s,"kind",7),t=d(s,"source",7),a=d(s,"workspaceId",7);const g=new W,p=c(()=>{if(o()==="mermaid")return null;const e=g.parseMarkdown(`\`\`\`ws-block:diagram
|
|
2
2
|
${t()}
|
|
3
3
|
\`\`\``)[0],r=e?.primitive.type==="diagram"?JSON.stringify(e.primitive):t();return B(r,!0)});function k(e,r){if(!a()||!r.target)return;const n={openInAdjacentPanel:e.metaKey||e.ctrlKey,sourcePanelId:e.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0};r.type==="file"?j.dispatch(E(a(),r.target,n)):r.type==="note"&&K(O(r.target,a()),{...n,workspaceId:J(a()),event:e})}var w={get kind(){return o()},set kind(e){o(e),m()},get source(){return t()},set source(e){t(e),m()},get workspaceId(){return a()},set workspaceId(e){a(e),m()},$set:P,$on:(e,r)=>S(s,e,r)},u=A(),y=C(u);{var h=e=>{f(e,{kind:"mermaid",rendererOwnsActions:!0,children:(r,n)=>{x(r,{get code(){return t()},showExportButton:!0})},$$slots:{default:!0}})},I=e=>{f(e,{kind:"custom",children:(r,n)=>{{let _=c(()=>i(p)?.diagram??null),v=c(()=>i(p)?.error);z(r,{get diagram(){return i(_)},get source(){return t()},get sourceError(){return i(v)},onBindingClick:k})}},$$slots:{default:!0}})};D(y,e=>{o()==="mermaid"?e(h):e(I,-1)})}return M(l,u),N(w)}export{R as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as de}from"./GLxqtUdl.js";import{f as m,aX as he,aN as Y,$ as O,c4 as me,a6 as ue,bC as X,cm as L,c3 as H,c7 as fe,aL as ye,c9 as ge,aP as Se,aK as xe,c6 as be,ax as ve,bn as Ce,a0 as we}from"./CSSOAZoU.js";import{s as Te}from"./BJTOTozZ.js";import{p as $e}from"./DRGgTdjp.js";import{f as V}from"./CrowFXzY.js";import{o as G}from"./CmKTTxBW.js";import{h as Le,t as Fe}from"./CvYzv8kf.js";var N,te=(N=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=fe,this.getAccTitle=ye,this.setDiagramTitle=ge,this.getDiagramTitle=Se,this.getAccDescription=xe,this.setAccDescription=be}getNodes(){return this.nodes}getConfig(){const l=ve,i=Y();return O({...l.treemap,...i.treemap??{}})}addNode(l,i){this.nodes.push(l),this.levels.set(l,i),i===0&&(this.outerNodes.push(l),this.root??=l)}getRoot(){return{name:"",children:this.outerNodes}}addClass(l,i){const r=this.classes.get(l)??{id:l,styles:[],textStyles:[]},n=i.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");n&&n.forEach(s=>{Ce(s)&&(r?.textStyles?r.textStyles.push(s):r.textStyles=[s]),r?.styles?r.styles.push(s):r.styles=[s]}),this.classes.set(l,r)}getClasses(){return this.classes}getStylesForClass(l){return this.classes.get(l)?.styles??[]}clear(){we(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},m(N,"TreeMapDB"),N);function ae(p){if(!p.length)return[];const l=[],i=[];return p.forEach(r=>{const n={name:r.name,children:r.type==="Leaf"?void 0:[]};for(n.classSelector=r?.classSelector,r?.cssCompiledStyles&&(n.cssCompiledStyles=r.cssCompiledStyles),r.type==="Leaf"&&r.value!==void 0&&(n.value=r.value);i.length>0&&i[i.length-1].level>=r.level;)i.pop();if(i.length===0)l.push(n);else{const s=i[i.length-1].node;s.children?s.children.push(n):s.children=[n]}r.type!=="Leaf"&&i.push({node:n,level:r.level})}),l}m(ae,"buildHierarchy");var Ne=m((p,l)=>{de(p,l);const i=[];for(const s of p.TreemapRows??[])s.$type==="ClassDefStatement"&&l.addClass(s.className??"",s.styleText??"");for(const s of p.TreemapRows??[]){const d=s.item;if(!d)continue;const h=s.indent?parseInt(s.indent):0,k=ze(d),a=d.classSelector?l.getStylesForClass(d.classSelector):[],z=a.length>0?a:void 0,x={level:h,name:k,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:z};i.push(x)}const r=ae(i),n=m((s,d)=>{for(const h of s)l.addNode(h,d),h.children&&h.children.length>0&&n(h.children,d+1)},"addNodesRecursively");n(r,0)},"populate"),ze=m(p=>p.name?String(p.name):"","getItemName"),le={parser:{yy:void 0},parse:m(async p=>{try{const i=await $e("treemap",p);X.debug("Treemap AST:",i);const r=le.parser?.yy;if(!(r instanceof te))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Ne(i,r)}catch(l){throw X.error("Error parsing treemap:",l),l}},"parse")},Ae=10,F=10,M=25,Pe=m((p,l,i,r)=>{const n=r.db,s=n.getConfig(),d=s.padding??Ae,h=n.getDiagramTitle(),k=n.getRoot(),{themeVariables:a}=Y();if(!k)return;const z=h?30:0,x=me(l),j=s.nodeWidth?s.nodeWidth*F:960,K=s.nodeHeight?s.nodeHeight*F:500,R=j,U=K+z;x.attr("viewBox",`0 0 ${R} ${U}`),ue(x,U,R,s.useMaxWidth);let b;try{const e=s.valueFormat||",";if(e==="$0,0")b=m(t=>"$"+V(",")(t),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const t=/\.\d+/.exec(e),o=t?t[0]:"";b=m(u=>"$"+V(","+o)(u),"valueFormat")}else if(e.startsWith("$")){const t=e.substring(1);b=m(o=>"$"+V(t||"")(o),"valueFormat")}else b=V(e)}catch(e){X.error("Error creating format function:",e),b=V(",")}const A=G().range(["transparent",a.cScale0,a.cScale1,a.cScale2,a.cScale3,a.cScale4,a.cScale5,a.cScale6,a.cScale7,a.cScale8,a.cScale9,a.cScale10,a.cScale11]),se=G().range(["transparent",a.cScalePeer0,a.cScalePeer1,a.cScalePeer2,a.cScalePeer3,a.cScalePeer4,a.cScalePeer5,a.cScalePeer6,a.cScalePeer7,a.cScalePeer8,a.cScalePeer9,a.cScalePeer10,a.cScalePeer11]),W=G().range([a.cScaleLabel0,a.cScaleLabel1,a.cScaleLabel2,a.cScaleLabel3,a.cScaleLabel4,a.cScaleLabel5,a.cScaleLabel6,a.cScaleLabel7,a.cScaleLabel8,a.cScaleLabel9,a.cScaleLabel10,a.cScaleLabel11]);h&&x.append("text").attr("x",R/2).attr("y",z/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const q=x.append("g").attr("transform",`translate(0, ${z})`).attr("class","treemapContainer"),re=Le(k).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),J=Fe().size([j,K]).paddingTop(e=>e.children&&e.children.length>0?M+F:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?F:0).paddingRight(e=>e.children&&e.children.length>0?F:0).paddingBottom(e=>e.children&&e.children.length>0?F:0).round(!0)(re),ne=J.descendants().filter(e=>e.children&&e.children.length>0),P=q.selectAll(".treemapSection").data(ne).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);P.append("rect").attr("width",e=>e.x1-e.x0).attr("height",M).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),P.append("clipPath").attr("id",(e,t)=>`clip-section-${l}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",M),P.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>A(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>se(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const t=L({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),P.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",M/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,t)=>`url(#clip-section-${l}-${t})`).attr("style",e=>{if(e.depth===0)return"display: none;";const t="dominant-baseline: middle; font-size: 12px; fill:"+W(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",o=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const t=H(this),o=e.data.name;t.text(o);const u=e.x1-e.x0,y=6;let f;s.showValues!==!1&&e.value?f=u-10-30-10-y:f=u-y-6;const c=Math.max(15,f),v=t.node();if(v.getComputedTextLength()>c){let w=o;for(;w.length>0;){if(w=o.substring(0,w.length-1),w.length===0){t.text("..."),v.getComputedTextLength()>c&&t.text("");break}if(t.text(w+"..."),v.getComputedTextLength()<=c)break}}}),s.showValues!==!1&&P.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",M/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?b(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+W(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",o=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")});const Q=J.leaves(),g=Q.length>20,oe=g?16:38,E=g?14:28,T=g?4:8,D=g?4:6,B=g?2:4,Z=g?8:10,I=g?1:2,_=q.selectAll(".treemapLeafGroup").data(Q).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);_.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("style",e=>L({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("stroke-width",3),_.append("clipPath").attr("id",(e,t)=>`clip-${l}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),_.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const t=`text-anchor: middle; dominant-baseline: middle; font-size: ${oe}px;fill:`+W(e.data.name)+";",o=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${l}-${t})`).text(e=>e.data.name).each(function(e){const t=H(this),o=e.x1-e.x0,u=e.y1-e.y0,y=t.node(),f=o-2*B,$=u-2*B;if(f<Z||$<Z){t.style("display","none");return}let c=parseInt(t.style("font-size"),10);const v=.6;for(;y.getComputedTextLength()>f&&c>T;)c--,t.style("font-size",`${c}px`);let S=Math.max(D,Math.min(E,Math.round(c*v))),C=c+I+S;for(;C>$&&c>T&&(c--,S=Math.max(D,Math.min(E,Math.round(c*v))),!(S<D&&c===T));)t.style("font-size",`${c}px`),C=c+I+S;t.style("font-size",`${c}px`),g?(c<T||$<T)&&t.style("display","none"):(y.getComputedTextLength()>f||c<T||$<c)&&t.style("display","none")}),s.showValues!==!1&&_.append("text").attr("class","treemapValue").attr("x",t=>(t.x1-t.x0)/2).attr("y",function(t){return(t.y1-t.y0)/2}).attr("style",t=>{const o=`text-anchor: middle; dominant-baseline: hanging; font-size: ${E}px;fill:`+W(t.data.name)+";",u=L({cssCompiledStyles:t.data.cssCompiledStyles});return o+u.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,o)=>`url(#clip-${l}-${o})`).text(t=>t.value?b(t.value):"").each(function(t){const o=H(this),u=this.parentNode;if(!u){o.style("display","none");return}const y=H(u).select(".treemapLabel");if(y.empty()||y.style("display")==="none"){o.style("display","none");return}const f=parseFloat(y.style("font-size")),c=Math.max(D,Math.min(E,Math.round(f*.6)));o.style("font-size",`${c}px`);const S=(t.y1-t.y0)/2+f/2+I;o.attr("y",S);const C=t.x1-t.x0,ee=t.y1-t.y0-4,pe=C-2*B;o.node().getComputedTextLength()>pe||S+c>ee||c<D?o.style("display","none"):o.style("display",null)});const ie=s.diagramPadding??8;Te(x,ie,"flowchart",s?.useMaxWidth||!1)},"draw"),De=m(function(p,l){return l.db.getClasses()},"getClasses"),Ve={draw:Pe,getClasses:De},Me={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ke=m(({treemap:p}={})=>{const l=he(),i=Y(),r=O(l,i.themeVariables),n=O(Me,p),s=n.titleColor??r.titleColor,d=n.labelColor??r.textColor,h=n.valueColor??r.textColor;return`
|
|
1
|
+
import{p as de}from"./DsUUGZq_.js";import{f as m,aX as he,aN as Y,$ as O,c4 as me,a6 as ue,bC as X,cm as L,c3 as H,c7 as fe,aL as ye,c9 as ge,aP as Se,aK as xe,c6 as be,ax as ve,bn as Ce,a0 as we}from"./Cc7p6my_.js";import{s as Te}from"./BVT8FnwX.js";import{p as $e}from"./DRGgTdjp.js";import{f as V}from"./CrowFXzY.js";import{o as G}from"./CmKTTxBW.js";import{h as Le,t as Fe}from"./CvYzv8kf.js";var N,te=(N=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=fe,this.getAccTitle=ye,this.setDiagramTitle=ge,this.getDiagramTitle=Se,this.getAccDescription=xe,this.setAccDescription=be}getNodes(){return this.nodes}getConfig(){const l=ve,i=Y();return O({...l.treemap,...i.treemap??{}})}addNode(l,i){this.nodes.push(l),this.levels.set(l,i),i===0&&(this.outerNodes.push(l),this.root??=l)}getRoot(){return{name:"",children:this.outerNodes}}addClass(l,i){const r=this.classes.get(l)??{id:l,styles:[],textStyles:[]},n=i.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");n&&n.forEach(s=>{Ce(s)&&(r?.textStyles?r.textStyles.push(s):r.textStyles=[s]),r?.styles?r.styles.push(s):r.styles=[s]}),this.classes.set(l,r)}getClasses(){return this.classes}getStylesForClass(l){return this.classes.get(l)?.styles??[]}clear(){we(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},m(N,"TreeMapDB"),N);function ae(p){if(!p.length)return[];const l=[],i=[];return p.forEach(r=>{const n={name:r.name,children:r.type==="Leaf"?void 0:[]};for(n.classSelector=r?.classSelector,r?.cssCompiledStyles&&(n.cssCompiledStyles=r.cssCompiledStyles),r.type==="Leaf"&&r.value!==void 0&&(n.value=r.value);i.length>0&&i[i.length-1].level>=r.level;)i.pop();if(i.length===0)l.push(n);else{const s=i[i.length-1].node;s.children?s.children.push(n):s.children=[n]}r.type!=="Leaf"&&i.push({node:n,level:r.level})}),l}m(ae,"buildHierarchy");var Ne=m((p,l)=>{de(p,l);const i=[];for(const s of p.TreemapRows??[])s.$type==="ClassDefStatement"&&l.addClass(s.className??"",s.styleText??"");for(const s of p.TreemapRows??[]){const d=s.item;if(!d)continue;const h=s.indent?parseInt(s.indent):0,k=ze(d),a=d.classSelector?l.getStylesForClass(d.classSelector):[],z=a.length>0?a:void 0,x={level:h,name:k,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:z};i.push(x)}const r=ae(i),n=m((s,d)=>{for(const h of s)l.addNode(h,d),h.children&&h.children.length>0&&n(h.children,d+1)},"addNodesRecursively");n(r,0)},"populate"),ze=m(p=>p.name?String(p.name):"","getItemName"),le={parser:{yy:void 0},parse:m(async p=>{try{const i=await $e("treemap",p);X.debug("Treemap AST:",i);const r=le.parser?.yy;if(!(r instanceof te))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Ne(i,r)}catch(l){throw X.error("Error parsing treemap:",l),l}},"parse")},Ae=10,F=10,M=25,Pe=m((p,l,i,r)=>{const n=r.db,s=n.getConfig(),d=s.padding??Ae,h=n.getDiagramTitle(),k=n.getRoot(),{themeVariables:a}=Y();if(!k)return;const z=h?30:0,x=me(l),j=s.nodeWidth?s.nodeWidth*F:960,K=s.nodeHeight?s.nodeHeight*F:500,R=j,U=K+z;x.attr("viewBox",`0 0 ${R} ${U}`),ue(x,U,R,s.useMaxWidth);let b;try{const e=s.valueFormat||",";if(e==="$0,0")b=m(t=>"$"+V(",")(t),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const t=/\.\d+/.exec(e),o=t?t[0]:"";b=m(u=>"$"+V(","+o)(u),"valueFormat")}else if(e.startsWith("$")){const t=e.substring(1);b=m(o=>"$"+V(t||"")(o),"valueFormat")}else b=V(e)}catch(e){X.error("Error creating format function:",e),b=V(",")}const A=G().range(["transparent",a.cScale0,a.cScale1,a.cScale2,a.cScale3,a.cScale4,a.cScale5,a.cScale6,a.cScale7,a.cScale8,a.cScale9,a.cScale10,a.cScale11]),se=G().range(["transparent",a.cScalePeer0,a.cScalePeer1,a.cScalePeer2,a.cScalePeer3,a.cScalePeer4,a.cScalePeer5,a.cScalePeer6,a.cScalePeer7,a.cScalePeer8,a.cScalePeer9,a.cScalePeer10,a.cScalePeer11]),W=G().range([a.cScaleLabel0,a.cScaleLabel1,a.cScaleLabel2,a.cScaleLabel3,a.cScaleLabel4,a.cScaleLabel5,a.cScaleLabel6,a.cScaleLabel7,a.cScaleLabel8,a.cScaleLabel9,a.cScaleLabel10,a.cScaleLabel11]);h&&x.append("text").attr("x",R/2).attr("y",z/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const q=x.append("g").attr("transform",`translate(0, ${z})`).attr("class","treemapContainer"),re=Le(k).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),J=Fe().size([j,K]).paddingTop(e=>e.children&&e.children.length>0?M+F:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?F:0).paddingRight(e=>e.children&&e.children.length>0?F:0).paddingBottom(e=>e.children&&e.children.length>0?F:0).round(!0)(re),ne=J.descendants().filter(e=>e.children&&e.children.length>0),P=q.selectAll(".treemapSection").data(ne).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);P.append("rect").attr("width",e=>e.x1-e.x0).attr("height",M).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),P.append("clipPath").attr("id",(e,t)=>`clip-section-${l}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",M),P.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>A(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>se(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const t=L({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),P.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",M/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,t)=>`url(#clip-section-${l}-${t})`).attr("style",e=>{if(e.depth===0)return"display: none;";const t="dominant-baseline: middle; font-size: 12px; fill:"+W(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",o=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const t=H(this),o=e.data.name;t.text(o);const u=e.x1-e.x0,y=6;let f;s.showValues!==!1&&e.value?f=u-10-30-10-y:f=u-y-6;const c=Math.max(15,f),v=t.node();if(v.getComputedTextLength()>c){let w=o;for(;w.length>0;){if(w=o.substring(0,w.length-1),w.length===0){t.text("..."),v.getComputedTextLength()>c&&t.text("");break}if(t.text(w+"..."),v.getComputedTextLength()<=c)break}}}),s.showValues!==!1&&P.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",M/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?b(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+W(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",o=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")});const Q=J.leaves(),g=Q.length>20,oe=g?16:38,E=g?14:28,T=g?4:8,D=g?4:6,B=g?2:4,Z=g?8:10,I=g?1:2,_=q.selectAll(".treemapLeafGroup").data(Q).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);_.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("style",e=>L({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("stroke-width",3),_.append("clipPath").attr("id",(e,t)=>`clip-${l}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),_.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const t=`text-anchor: middle; dominant-baseline: middle; font-size: ${oe}px;fill:`+W(e.data.name)+";",o=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${l}-${t})`).text(e=>e.data.name).each(function(e){const t=H(this),o=e.x1-e.x0,u=e.y1-e.y0,y=t.node(),f=o-2*B,$=u-2*B;if(f<Z||$<Z){t.style("display","none");return}let c=parseInt(t.style("font-size"),10);const v=.6;for(;y.getComputedTextLength()>f&&c>T;)c--,t.style("font-size",`${c}px`);let S=Math.max(D,Math.min(E,Math.round(c*v))),C=c+I+S;for(;C>$&&c>T&&(c--,S=Math.max(D,Math.min(E,Math.round(c*v))),!(S<D&&c===T));)t.style("font-size",`${c}px`),C=c+I+S;t.style("font-size",`${c}px`),g?(c<T||$<T)&&t.style("display","none"):(y.getComputedTextLength()>f||c<T||$<c)&&t.style("display","none")}),s.showValues!==!1&&_.append("text").attr("class","treemapValue").attr("x",t=>(t.x1-t.x0)/2).attr("y",function(t){return(t.y1-t.y0)/2}).attr("style",t=>{const o=`text-anchor: middle; dominant-baseline: hanging; font-size: ${E}px;fill:`+W(t.data.name)+";",u=L({cssCompiledStyles:t.data.cssCompiledStyles});return o+u.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,o)=>`url(#clip-${l}-${o})`).text(t=>t.value?b(t.value):"").each(function(t){const o=H(this),u=this.parentNode;if(!u){o.style("display","none");return}const y=H(u).select(".treemapLabel");if(y.empty()||y.style("display")==="none"){o.style("display","none");return}const f=parseFloat(y.style("font-size")),c=Math.max(D,Math.min(E,Math.round(f*.6)));o.style("font-size",`${c}px`);const S=(t.y1-t.y0)/2+f/2+I;o.attr("y",S);const C=t.x1-t.x0,ee=t.y1-t.y0-4,pe=C-2*B;o.node().getComputedTextLength()>pe||S+c>ee||c<D?o.style("display","none"):o.style("display",null)});const ie=s.diagramPadding??8;Te(x,ie,"flowchart",s?.useMaxWidth||!1)},"draw"),De=m(function(p,l){return l.db.getClasses()},"getClasses"),Ve={draw:Pe,getClasses:De},Me={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ke=m(({treemap:p}={})=>{const l=he(),i=Y(),r=O(l,i.themeVariables),n=O(Me,p),s=n.titleColor??r.titleColor,d=n.labelColor??r.textColor,h=n.valueColor??r.textColor;return`
|
|
2
2
|
.treemapNode.section {
|
|
3
3
|
stroke: ${n.sectionStrokeColor};
|
|
4
4
|
stroke-width: ${n.sectionStrokeWidth};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s}from"./
|
|
1
|
+
import{a as s}from"./D1YVXYbM.js";import{g as a}from"./Cc7p6my_.js";var t,m=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},a(t,"ImperativeState"),s(t,"ImperativeState"),t);export{m as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as gt,bq as n,bo as a,by as Ct,b as bt,a_ as g}from"./yZ5s7S5S.js";import{bs as pt,aD as C,bn as yt,aA as o,a5 as z,bS as A,bf as xt,bA as G,W as u,c9 as b,bl as D,b_ as h,bO as W,aB as P,b$ as kt}from"./B8o4lNgr.js";import{s as At}from"./Cb1eroFO.js";import"./D46WSk8U.js";import"./CM5eCs6m.js";import"./CilxFmmt.js";import{D as ht}from"./
|
|
1
|
+
import{t as gt,bq as n,bo as a,by as Ct,b as bt,a_ as g}from"./yZ5s7S5S.js";import{bs as pt,aD as C,bn as yt,aA as o,a5 as z,bS as A,bf as xt,bA as G,W as u,c9 as b,bl as D,b_ as h,bO as W,aB as P,b$ as kt}from"./B8o4lNgr.js";import{s as At}from"./Cb1eroFO.js";import"./D46WSk8U.js";import"./CM5eCs6m.js";import"./CilxFmmt.js";import{D as ht}from"./CJB0AMOQ.js";import{t as l}from"./Dfbagr79.js";import"./CyAayV8v.js";import"./hEq6dFYU.js";var Wt=P('<p class="type-body"> </p>'),X=P('<p class="type-body text-foreground font-medium"> </p>'),Pt=P('<p class="type-body text-muted-foreground font-normal"> </p>'),Rt=P('<p class="type-body text-muted-foreground font-normal"> <!></p>'),St=P('<div class="space-y-2"><!> <!> <!> <!></div>'),Bt=P('<div class="space-y-4"><!> <!> <!></div>');function Dt(J,e){if(new.target)return gt({component:Dt,...J});pt(e,!0);let p=n(e,"open",15,!1),F=n(e,"static",7,!1),H=n(e,"title",23,()=>a.modals_bulkActionConfirm_title()),S=n(e,"description",7,""),T=n(e,"confirmText",23,()=>a.modals_bulkActionConfirm_confirm_label()),w=n(e,"variant",7,"default"),y=n(e,"initialFocus",7,"confirm"),q=n(e,"body",7),c=n(e,"openPrCount",7,0),x=n(e,"preflightReady",7,!0),E=n(e,"mode",7,"delete"),d=n(e,"activeAgentCount",7,0),m=n(e,"activeHookCount",7,0),_=n(e,"guestCount",7,0),I=n(e,"onConfirm",7),K=n(e,"onCancel",7);const Y=b(()=>d()>0||m()>0||c()>0||_()>0);function Z(){p(!1),K()?.()}async function $(){await I()?.(),p(!1)}var tt={get open(){return p()},set open(t=!1){p(t),o()},get static(){return F()},set static(t=!1){F(t),o()},get title(){return H()},set title(t=a.modals_bulkActionConfirm_title()){H(t),o()},get description(){return S()},set description(t=""){S(t),o()},get confirmText(){return T()},set confirmText(t=a.modals_bulkActionConfirm_confirm_label()){T(t),o()},get variant(){return w()},set variant(t="default"){w(t),o()},get initialFocus(){return y()},set initialFocus(t="confirm"){y(t),o()},get body(){return q()},set body(t){q(t),o()},get openPrCount(){return c()},set openPrCount(t=0){c(t),o()},get preflightReady(){return x()},set preflightReady(t=!0){x(t),o()},get mode(){return E()},set mode(t="delete"){E(t),o()},get activeAgentCount(){return d()},set activeAgentCount(t=0){d(t),o()},get activeHookCount(){return m()},set activeHookCount(t=0){m(t),o()},get guestCount(){return _()},set guestCount(t=0){_(t),o()},get onConfirm(){return I()},set onConfirm(t){I(t),o()},get onCancel(){return K()},set onCancel(t){K(t),o()},$set:Ct,$on:(t,L)=>bt(e,t,L)};{const t=O=>{var j=Bt(),M=z(j);{var it=f=>{var k=Wt(),B=D(k,!0);h(()=>W(B,S())),u(f,k)};g(M,f=>{S()&&f(it)})}var N=A(M,2);{var st=f=>{var k=St(),B=z(k);{var lt=r=>{var i=X(),s=D(i,!0);h(v=>W(s,v),[()=>d()===1?a.modals_deleteWarning_agentsStopped_one({count:l(d())}):a.modals_deleteWarning_agentsStopped_many({count:l(d())})]),u(r,i)};g(B,r=>{d()>0&&r(lt)})}var Q=A(B,2);{var ct=r=>{var i=X(),s=D(i,!0);h(v=>W(s,v),[()=>m()===1?a.modals_deleteWarning_hooksCancelled_one({count:l(m())}):a.modals_deleteWarning_hooksCancelled_many({count:l(m())})]),u(r,i)};g(Q,r=>{m()>0&&r(ct)})}var U=A(Q,2);{var dt=r=>{var i=Pt(),s=D(i,!0);h(v=>W(s,v),[()=>c()===1?a.modals_deleteWarning_openPrs_one({count:l(c())}):a.modals_deleteWarning_openPrs_many({count:l(c())})]),u(r,i)};g(U,r=>{c()>0&&r(dt)})}var mt=A(U,2);{var _t=r=>{var i=Rt(),s=z(i),v=A(s);{var ft=R=>{var V=kt();h(vt=>W(V,vt),[()=>a.modals_bulkActionConfirm_guestsReinvite_description()]),u(R,V)};g(v,R=>{E()==="archive"&&R(ft)})}G(i),h(R=>W(s,`${R??""} `),[()=>_()===1?a.modals_bulkActionConfirm_guestsRemoved_one({count:l(_())}):a.modals_bulkActionConfirm_guestsRemoved_many({count:l(_())})]),u(r,i)};g(mt,r=>{_()>0&&r(_t)})}G(k),u(f,k)};g(N,f=>{C(Y)&&f(st)})}var ut=A(N,2);At(ut,()=>q()??xt),G(j),u(O,j)};let L=b(()=>!x()),et=b(()=>x()&&y()==="confirm"),nt=b(()=>!x()||y()==="cancel"),ot=b(()=>y()==="cancel"?"ignore":"submit"),rt=b(()=>y()==="cancel"?"ignore":"submit"),at=b(()=>w()==="destructive");ht(J,{get static(){return F()},get title(){return H()},get confirmLabel(){return T()},get submitBusy(){return C(L)},get canSubmit(){return x()},get focusSubmit(){return C(et)},get focusCancel(){return C(nt)},get enterKey(){return C(ot)},get modEnter(){return C(rt)},get destructive(){return C(at)},onConfirm:$,onCancel:Z,get open(){return p()},set open(O){p(O)},details:t,$$slots:{details:!0}})}return yt(tt)}export{Dt as B};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{I as rr}from"./BIXM_U1Z.js";import{a as x,aH as ar,N as j,ad as st,r as sr,c as ir,p as N,aG as Ye,aF as nr,aI as or,L as cr,K as lr,O as hr,ac as dr,J as Tr,k as pr,aD as Wt,aV as Q,X as $,e as vt,aB as Er,an as Fe,Z as ur,M as Ht,V as fr,ay as He}from"./pb4lGxfr.js";import{d as _r,h as ne,g as Tt,e as gr,a as oe,b as ce}from"./B4cRl4XZ.js";import{c3 as Kt,g as B,h as xr}from"./CSSOAZoU.js";var qe=xr(Er()),ae=(function(){var e=x(function(ft,A,v,P){for(v=v||{},P=ft.length;P--;v[ft[P]]=A);return v},"o"),t=[1,2],a=[1,3],r=[1,4],i=[2,4],n=[1,9],s=[1,11],c=[1,12],p=[1,14],h=[1,15],E=[1,17],_=[1,18],u=[1,19],O=[1,25],T=[1,26],g=[1,27],f=[1,28],I=[1,29],L=[1,30],b=[1,31],w=[1,32],S=[1,33],D=[1,34],M=[1,35],Y=[1,36],K=[1,37],G=[1,38],X=[1,39],J=[1,40],ot=[1,42],tt=[1,43],z=[1,44],it=[1,45],et=[1,46],W=[1,47],C=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],wt=[1,74],Ct=[1,80],m=[1,81],k=[1,82],dt=[1,83],rt=[1,84],F=[1,85],bt=[1,86],pe=[1,87],Ee=[1,88],ue=[1,89],fe=[1,90],_e=[1,91],ge=[1,92],xe=[1,93],Ie=[1,94],ye=[1,95],Re=[1,96],Oe=[1,97],Le=[1,98],be=[1,99],me=[1,100],Se=[1,101],Ae=[1,102],we=[1,103],Ne=[1,104],Pe=[1,105],ke=[2,78],Nt=[4,5,17,51,53,54],Mt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],De=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],Xt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],ve=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Jt=[5,52],H=[70,71,72,73],ct=[1,151],Zt={trace:x(B(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:x(B(function(A,v,P,y,U,o,kt){var d=o.length-1;switch(U){case 3:return y.apply(o[d]),o[d];case 4:case 10:this.$=[];break;case 5:case 11:o[d-1].push(o[d]),this.$=o[d-1];break;case 6:case 7:case 12:case 13:this.$=o[d];break;case 8:case 9:case 14:this.$=[];break;case 16:o[d].type="createParticipant",this.$=o[d];break;case 17:o[d-1].unshift({type:"boxStart",boxData:y.parseBoxData(o[d-2])}),o[d-1].push({type:"boxEnd",boxText:o[d-2]}),this.$=o[d-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(o[d-2]),sequenceIndexStep:Number(o[d-1]),sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(o[d-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:y.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:o[d-1].actor};break;case 24:this.$={type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:o[d-1].actor};break;case 30:y.setDiagramTitle(o[d].substring(6)),this.$=o[d].substring(6);break;case 31:y.setDiagramTitle(o[d].substring(7)),this.$=o[d].substring(7);break;case 32:this.$=o[d].trim(),y.setAccTitle(this.$);break;case 33:case 34:this.$=o[d].trim(),y.setAccDescription(this.$);break;case 35:o[d-1].unshift({type:"loopStart",loopText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.LOOP_START}),o[d-1].push({type:"loopEnd",loopText:o[d-2],signalType:y.LINETYPE.LOOP_END}),this.$=o[d-1];break;case 36:o[d-1].unshift({type:"rectStart",color:y.parseMessage(o[d-2]),signalType:y.LINETYPE.RECT_START}),o[d-1].push({type:"rectEnd",color:y.parseMessage(o[d-2]),signalType:y.LINETYPE.RECT_END}),this.$=o[d-1];break;case 37:o[d-1].unshift({type:"optStart",optText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.OPT_START}),o[d-1].push({type:"optEnd",optText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.OPT_END}),this.$=o[d-1];break;case 38:o[d-1].unshift({type:"altStart",altText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.ALT_START}),o[d-1].push({type:"altEnd",signalType:y.LINETYPE.ALT_END}),this.$=o[d-1];break;case 39:o[d-1].unshift({type:"parStart",parText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.PAR_START}),o[d-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=o[d-1];break;case 40:o[d-1].unshift({type:"parStart",parText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.PAR_OVER_START}),o[d-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=o[d-1];break;case 41:o[d-1].unshift({type:"criticalStart",criticalText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.CRITICAL_START}),o[d-1].push({type:"criticalEnd",signalType:y.LINETYPE.CRITICAL_END}),this.$=o[d-1];break;case 42:o[d-1].unshift({type:"breakStart",breakText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.BREAK_START}),o[d-1].push({type:"breakEnd",optText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.BREAK_END}),this.$=o[d-1];break;case 44:this.$=o[d-3].concat([{type:"option",optionText:y.parseMessage(o[d-1]),signalType:y.LINETYPE.CRITICAL_OPTION},o[d]]);break;case 46:this.$=o[d-3].concat([{type:"and",parText:y.parseMessage(o[d-1]),signalType:y.LINETYPE.PAR_AND},o[d]]);break;case 48:this.$=o[d-3].concat([{type:"else",altText:y.parseMessage(o[d-1]),signalType:y.LINETYPE.ALT_ELSE},o[d]]);break;case 49:o[d-3].draw="participant",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 50:o[d-1].draw="participant",o[d-1].type="addParticipant",this.$=o[d-1];break;case 51:o[d-3].draw="actor",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 52:case 57:o[d-1].draw="actor",o[d-1].type="addParticipant",this.$=o[d-1];break;case 53:o[d-1].type="destroyParticipant",this.$=o[d-1];break;case 54:o[d-3].draw="participant",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 55:o[d-1].draw="participant",o[d-1].type="addParticipant",this.$=o[d-1];break;case 56:o[d-3].draw="actor",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 58:this.$=[o[d-1],{type:"addNote",placement:o[d-2],actor:o[d-1].actor,text:o[d]}];break;case 59:o[d-2]=[].concat(o[d-1],o[d-1]).slice(0,2),o[d-2][0]=o[d-2][0].actor,o[d-2][1]=o[d-2][1].actor,this.$=[o[d-1],{type:"addNote",placement:y.PLACEMENT.OVER,actor:o[d-2].slice(0,2),text:o[d]}];break;case 60:this.$=[o[d-1],{type:"addLinks",actor:o[d-1].actor,text:o[d]}];break;case 61:this.$=[o[d-1],{type:"addALink",actor:o[d-1].actor,text:o[d]}];break;case 62:this.$=[o[d-1],{type:"addProperties",actor:o[d-1].actor,text:o[d]}];break;case 63:this.$=[o[d-1],{type:"addDetails",actor:o[d-1].actor,text:o[d]}];break;case 66:this.$=[o[d-2],o[d]];break;case 67:this.$=o[d];break;case 68:this.$=y.PLACEMENT.LEFTOF;break;case 69:this.$=y.PLACEMENT.RIGHTOF;break;case 70:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d],activate:!0},{type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:o[d-1].actor}];break;case 71:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d]},{type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:o[d-4].actor}];break;case 72:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:o[d-1].actor}];break;case 73:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-2],msg:o[d],activate:!1,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[d-4].actor}];break;case 74:this.$=[o[d-5],o[d-1],{type:"addMessage",from:o[d-5].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:o[d-1].actor},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[d-5].actor}];break;case 75:this.$=[o[d-3],o[d-1],{type:"addMessage",from:o[d-3].actor,to:o[d-1].actor,signalType:o[d-2],msg:o[d]}];break;case 76:this.$={type:"addParticipant",actor:o[d-1],config:o[d]};break;case 77:this.$=o[d-1].trim();break;case 78:this.$={type:"addParticipant",actor:o[d]};break;case 79:this.$=y.LINETYPE.SOLID_OPEN;break;case 80:this.$=y.LINETYPE.DOTTED_OPEN;break;case 81:this.$=y.LINETYPE.SOLID;break;case 82:this.$=y.LINETYPE.SOLID_TOP;break;case 83:this.$=y.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=y.LINETYPE.STICK_TOP;break;case 85:this.$=y.LINETYPE.STICK_BOTTOM;break;case 86:this.$=y.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=y.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=y.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=y.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=y.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=y.LINETYPE.DOTTED;break;case 100:this.$=y.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=y.LINETYPE.SOLID_CROSS;break;case 102:this.$=y.LINETYPE.DOTTED_CROSS;break;case 103:this.$=y.LINETYPE.SOLID_POINT;break;case 104:this.$=y.LINETYPE.DOTTED_POINT;break;case 105:this.$=y.parseMessage(o[d].trim().substring(1));break}},"anonymous"),"anonymous"),table:[{3:1,4:t,5:a,6:r},{1:[3]},{3:5,4:t,5:a,6:r},{3:6,4:t,5:a,6:r},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},e(C,[2,5]),{9:48,13:13,14:p,15:h,18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},e(C,[2,7]),e(C,[2,8]),e(C,[2,9]),e(C,[2,15]),{13:49,51:G,53:X,54:J},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:W},{23:56,73:W},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(C,[2,30]),e(C,[2,31]),{33:[1,62]},{35:[1,63]},e(C,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:wt},{23:75,55:76,73:wt},{23:77,73:W},{69:78,72:[1,79],78:Ct,79:m,80:k,81:dt,82:rt,83:F,84:bt,85:pe,86:Ee,87:ue,88:fe,89:_e,90:ge,91:xe,92:Ie,93:ye,94:Re,95:Oe,96:Le,97:be,98:me,99:Se,100:Ae,101:we,102:Ne,103:Pe},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:W},{23:111,73:W},{23:112,73:W},{23:113,73:W},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],ke),e(C,[2,6]),e(C,[2,16]),e(Nt,[2,10],{11:114}),e(C,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(C,[2,22]),{5:[1,118]},{5:[1,119]},e(C,[2,25]),e(C,[2,26]),e(C,[2,27]),e(C,[2,28]),e(C,[2,29]),e(C,[2,32]),e(C,[2,33]),e(Mt,i,{7:120}),e(Mt,i,{7:121}),e(Mt,i,{7:122}),e(De,i,{41:123,7:124}),e(Xt,i,{43:125,7:126}),e(Xt,i,{7:126,43:127}),e(ve,i,{46:128,7:129}),e(Mt,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Jt,ke,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:W},{69:146,78:Ct,79:m,80:k,81:dt,82:rt,83:F,84:bt,85:pe,86:Ee,87:ue,88:fe,89:_e,90:ge,91:xe,92:Ie,93:ye,94:Re,95:Oe,96:Le,97:be,98:me,99:Se,100:Ae,101:we,102:Ne,103:Pe},e(H,[2,79]),e(H,[2,80]),e(H,[2,81]),e(H,[2,82]),e(H,[2,83]),e(H,[2,84]),e(H,[2,85]),e(H,[2,86]),e(H,[2,87]),e(H,[2,88]),e(H,[2,89]),e(H,[2,90]),e(H,[2,91]),e(H,[2,92]),e(H,[2,93]),e(H,[2,94]),e(H,[2,95]),e(H,[2,96]),e(H,[2,97]),e(H,[2,98]),e(H,[2,99]),e(H,[2,100]),e(H,[2,101]),e(H,[2,102]),e(H,[2,103]),e(H,[2,104]),{23:147,73:W},{23:149,60:148,73:W},{73:[2,68]},{73:[2,69]},{58:150,104:ct},{58:152,104:ct},{58:153,104:ct},{58:154,104:ct},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:G,53:X,54:J},{5:[1,160]},e(C,[2,20]),e(C,[2,21]),e(C,[2,23]),e(C,[2,24]),{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[1,161],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[1,162],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[1,163],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{17:[1,164]},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[2,47],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,50:[1,165],51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{17:[1,166]},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[2,45],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,49:[1,167],51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{17:[1,168]},{17:[1,169]},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[2,43],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,48:[1,170],51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[1,171],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{16:[1,172]},e(C,[2,50]),{16:[1,173]},e(C,[2,55]),e(Jt,[2,76]),{76:[1,174]},{16:[1,175]},e(C,[2,52]),{16:[1,176]},e(C,[2,57]),e(C,[2,53]),{23:177,73:W},{23:178,73:W},{23:179,73:W},{58:180,104:ct},{23:181,72:[1,182],73:W},{58:183,104:ct},{58:184,104:ct},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(C,[2,17]),e(Nt,[2,11]),{13:186,51:G,53:X,54:J},e(Nt,[2,13]),e(Nt,[2,14]),e(C,[2,19]),e(C,[2,35]),e(C,[2,36]),e(C,[2,37]),e(C,[2,38]),{16:[1,187]},e(C,[2,39]),{16:[1,188]},e(C,[2,40]),e(C,[2,41]),{16:[1,189]},e(C,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:ct},{58:196,104:ct},{58:197,104:ct},{5:[2,75]},{58:198,104:ct},{23:199,73:W},{5:[2,58]},{5:[2,59]},{23:200,73:W},e(Nt,[2,12]),e(De,i,{7:124,41:201}),e(Xt,i,{7:126,43:202}),e(ve,i,{7:129,46:203}),e(C,[2,49]),e(C,[2,54]),e(Jt,[2,77]),e(C,[2,51]),e(C,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:ct},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:x(B(function(A,v){if(v.recoverable)this.trace(A);else{var P=new Error(A);throw P.hash=v,P}},"parseError"),"parseError"),parse:x(B(function(A){var v=this,P=[0],y=[],U=[null],o=[],kt=this.table,d="",Bt=0,Ce=0,je=2,Me=1,tr=o.slice.call(arguments,1),Z=Object.create(this.lexer),xt={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(xt.yy[Qt]=this.yy[Qt]);Z.setInput(A,xt.yy),xt.yy.lexer=Z,xt.yy.parser=this,typeof Z.yylloc>"u"&&(Z.yylloc={});var $t=Z.yylloc;o.push($t);var er=Z.options&&Z.options.ranges;typeof xt.yy.parseError=="function"?this.parseError=xt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(nt){P.length=P.length-2*nt,U.length=U.length-nt,o.length=o.length-nt}B(Be,"popStack"),x(Be,"popStack");function jt(){var nt;return nt=y.pop()||Z.lex()||Me,typeof nt!="number"&&(nt instanceof Array&&(y=nt,nt=y.pop()),nt=v.symbols_[nt]||nt),nt}B(jt,"lex"),x(jt,"lex");for(var at,It,lt,te,mt={},Vt,pt,Ve,Yt;;){if(It=P[P.length-1],this.defaultActions[It]?lt=this.defaultActions[It]:((at===null||typeof at>"u")&&(at=jt()),lt=kt[It]&&kt[It][at]),typeof lt>"u"||!lt.length||!lt[0]){var ee="";Yt=[];for(Vt in kt[It])this.terminals_[Vt]&&Vt>je&&Yt.push("'"+this.terminals_[Vt]+"'");Z.showPosition?ee="Parse error on line "+(Bt+1)+`:
|
|
1
|
+
import{I as rr}from"./Ca7foKhO.js";import{a as x,aH as ar,N as j,ad as st,r as sr,c as ir,p as N,aG as Ye,aF as nr,aI as or,L as cr,K as lr,O as hr,ac as dr,J as Tr,k as pr,aD as Wt,aV as Q,X as $,e as vt,aB as Er,an as Fe,Z as ur,M as Ht,V as fr,ay as He}from"./D1YVXYbM.js";import{d as _r,h as ne,g as Tt,e as gr,a as oe,b as ce}from"./CIhr4uzF.js";import{c3 as Kt,g as B,h as xr}from"./Cc7p6my_.js";var qe=xr(Er()),ae=(function(){var e=x(function(ft,A,v,P){for(v=v||{},P=ft.length;P--;v[ft[P]]=A);return v},"o"),t=[1,2],a=[1,3],r=[1,4],i=[2,4],n=[1,9],s=[1,11],c=[1,12],p=[1,14],h=[1,15],E=[1,17],_=[1,18],u=[1,19],O=[1,25],T=[1,26],g=[1,27],f=[1,28],I=[1,29],L=[1,30],b=[1,31],w=[1,32],S=[1,33],D=[1,34],M=[1,35],Y=[1,36],K=[1,37],G=[1,38],X=[1,39],J=[1,40],ot=[1,42],tt=[1,43],z=[1,44],it=[1,45],et=[1,46],W=[1,47],C=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],wt=[1,74],Ct=[1,80],m=[1,81],k=[1,82],dt=[1,83],rt=[1,84],F=[1,85],bt=[1,86],pe=[1,87],Ee=[1,88],ue=[1,89],fe=[1,90],_e=[1,91],ge=[1,92],xe=[1,93],Ie=[1,94],ye=[1,95],Re=[1,96],Oe=[1,97],Le=[1,98],be=[1,99],me=[1,100],Se=[1,101],Ae=[1,102],we=[1,103],Ne=[1,104],Pe=[1,105],ke=[2,78],Nt=[4,5,17,51,53,54],Mt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],De=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],Xt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],ve=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Jt=[5,52],H=[70,71,72,73],ct=[1,151],Zt={trace:x(B(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:x(B(function(A,v,P,y,U,o,kt){var d=o.length-1;switch(U){case 3:return y.apply(o[d]),o[d];case 4:case 10:this.$=[];break;case 5:case 11:o[d-1].push(o[d]),this.$=o[d-1];break;case 6:case 7:case 12:case 13:this.$=o[d];break;case 8:case 9:case 14:this.$=[];break;case 16:o[d].type="createParticipant",this.$=o[d];break;case 17:o[d-1].unshift({type:"boxStart",boxData:y.parseBoxData(o[d-2])}),o[d-1].push({type:"boxEnd",boxText:o[d-2]}),this.$=o[d-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(o[d-2]),sequenceIndexStep:Number(o[d-1]),sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(o[d-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:y.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:o[d-1].actor};break;case 24:this.$={type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:o[d-1].actor};break;case 30:y.setDiagramTitle(o[d].substring(6)),this.$=o[d].substring(6);break;case 31:y.setDiagramTitle(o[d].substring(7)),this.$=o[d].substring(7);break;case 32:this.$=o[d].trim(),y.setAccTitle(this.$);break;case 33:case 34:this.$=o[d].trim(),y.setAccDescription(this.$);break;case 35:o[d-1].unshift({type:"loopStart",loopText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.LOOP_START}),o[d-1].push({type:"loopEnd",loopText:o[d-2],signalType:y.LINETYPE.LOOP_END}),this.$=o[d-1];break;case 36:o[d-1].unshift({type:"rectStart",color:y.parseMessage(o[d-2]),signalType:y.LINETYPE.RECT_START}),o[d-1].push({type:"rectEnd",color:y.parseMessage(o[d-2]),signalType:y.LINETYPE.RECT_END}),this.$=o[d-1];break;case 37:o[d-1].unshift({type:"optStart",optText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.OPT_START}),o[d-1].push({type:"optEnd",optText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.OPT_END}),this.$=o[d-1];break;case 38:o[d-1].unshift({type:"altStart",altText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.ALT_START}),o[d-1].push({type:"altEnd",signalType:y.LINETYPE.ALT_END}),this.$=o[d-1];break;case 39:o[d-1].unshift({type:"parStart",parText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.PAR_START}),o[d-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=o[d-1];break;case 40:o[d-1].unshift({type:"parStart",parText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.PAR_OVER_START}),o[d-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=o[d-1];break;case 41:o[d-1].unshift({type:"criticalStart",criticalText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.CRITICAL_START}),o[d-1].push({type:"criticalEnd",signalType:y.LINETYPE.CRITICAL_END}),this.$=o[d-1];break;case 42:o[d-1].unshift({type:"breakStart",breakText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.BREAK_START}),o[d-1].push({type:"breakEnd",optText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.BREAK_END}),this.$=o[d-1];break;case 44:this.$=o[d-3].concat([{type:"option",optionText:y.parseMessage(o[d-1]),signalType:y.LINETYPE.CRITICAL_OPTION},o[d]]);break;case 46:this.$=o[d-3].concat([{type:"and",parText:y.parseMessage(o[d-1]),signalType:y.LINETYPE.PAR_AND},o[d]]);break;case 48:this.$=o[d-3].concat([{type:"else",altText:y.parseMessage(o[d-1]),signalType:y.LINETYPE.ALT_ELSE},o[d]]);break;case 49:o[d-3].draw="participant",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 50:o[d-1].draw="participant",o[d-1].type="addParticipant",this.$=o[d-1];break;case 51:o[d-3].draw="actor",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 52:case 57:o[d-1].draw="actor",o[d-1].type="addParticipant",this.$=o[d-1];break;case 53:o[d-1].type="destroyParticipant",this.$=o[d-1];break;case 54:o[d-3].draw="participant",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 55:o[d-1].draw="participant",o[d-1].type="addParticipant",this.$=o[d-1];break;case 56:o[d-3].draw="actor",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 58:this.$=[o[d-1],{type:"addNote",placement:o[d-2],actor:o[d-1].actor,text:o[d]}];break;case 59:o[d-2]=[].concat(o[d-1],o[d-1]).slice(0,2),o[d-2][0]=o[d-2][0].actor,o[d-2][1]=o[d-2][1].actor,this.$=[o[d-1],{type:"addNote",placement:y.PLACEMENT.OVER,actor:o[d-2].slice(0,2),text:o[d]}];break;case 60:this.$=[o[d-1],{type:"addLinks",actor:o[d-1].actor,text:o[d]}];break;case 61:this.$=[o[d-1],{type:"addALink",actor:o[d-1].actor,text:o[d]}];break;case 62:this.$=[o[d-1],{type:"addProperties",actor:o[d-1].actor,text:o[d]}];break;case 63:this.$=[o[d-1],{type:"addDetails",actor:o[d-1].actor,text:o[d]}];break;case 66:this.$=[o[d-2],o[d]];break;case 67:this.$=o[d];break;case 68:this.$=y.PLACEMENT.LEFTOF;break;case 69:this.$=y.PLACEMENT.RIGHTOF;break;case 70:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d],activate:!0},{type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:o[d-1].actor}];break;case 71:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d]},{type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:o[d-4].actor}];break;case 72:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:o[d-1].actor}];break;case 73:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-2],msg:o[d],activate:!1,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[d-4].actor}];break;case 74:this.$=[o[d-5],o[d-1],{type:"addMessage",from:o[d-5].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:o[d-1].actor},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[d-5].actor}];break;case 75:this.$=[o[d-3],o[d-1],{type:"addMessage",from:o[d-3].actor,to:o[d-1].actor,signalType:o[d-2],msg:o[d]}];break;case 76:this.$={type:"addParticipant",actor:o[d-1],config:o[d]};break;case 77:this.$=o[d-1].trim();break;case 78:this.$={type:"addParticipant",actor:o[d]};break;case 79:this.$=y.LINETYPE.SOLID_OPEN;break;case 80:this.$=y.LINETYPE.DOTTED_OPEN;break;case 81:this.$=y.LINETYPE.SOLID;break;case 82:this.$=y.LINETYPE.SOLID_TOP;break;case 83:this.$=y.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=y.LINETYPE.STICK_TOP;break;case 85:this.$=y.LINETYPE.STICK_BOTTOM;break;case 86:this.$=y.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=y.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=y.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=y.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=y.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=y.LINETYPE.DOTTED;break;case 100:this.$=y.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=y.LINETYPE.SOLID_CROSS;break;case 102:this.$=y.LINETYPE.DOTTED_CROSS;break;case 103:this.$=y.LINETYPE.SOLID_POINT;break;case 104:this.$=y.LINETYPE.DOTTED_POINT;break;case 105:this.$=y.parseMessage(o[d].trim().substring(1));break}},"anonymous"),"anonymous"),table:[{3:1,4:t,5:a,6:r},{1:[3]},{3:5,4:t,5:a,6:r},{3:6,4:t,5:a,6:r},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},e(C,[2,5]),{9:48,13:13,14:p,15:h,18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},e(C,[2,7]),e(C,[2,8]),e(C,[2,9]),e(C,[2,15]),{13:49,51:G,53:X,54:J},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:W},{23:56,73:W},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(C,[2,30]),e(C,[2,31]),{33:[1,62]},{35:[1,63]},e(C,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:wt},{23:75,55:76,73:wt},{23:77,73:W},{69:78,72:[1,79],78:Ct,79:m,80:k,81:dt,82:rt,83:F,84:bt,85:pe,86:Ee,87:ue,88:fe,89:_e,90:ge,91:xe,92:Ie,93:ye,94:Re,95:Oe,96:Le,97:be,98:me,99:Se,100:Ae,101:we,102:Ne,103:Pe},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:W},{23:111,73:W},{23:112,73:W},{23:113,73:W},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],ke),e(C,[2,6]),e(C,[2,16]),e(Nt,[2,10],{11:114}),e(C,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(C,[2,22]),{5:[1,118]},{5:[1,119]},e(C,[2,25]),e(C,[2,26]),e(C,[2,27]),e(C,[2,28]),e(C,[2,29]),e(C,[2,32]),e(C,[2,33]),e(Mt,i,{7:120}),e(Mt,i,{7:121}),e(Mt,i,{7:122}),e(De,i,{41:123,7:124}),e(Xt,i,{43:125,7:126}),e(Xt,i,{7:126,43:127}),e(ve,i,{46:128,7:129}),e(Mt,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Jt,ke,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:W},{69:146,78:Ct,79:m,80:k,81:dt,82:rt,83:F,84:bt,85:pe,86:Ee,87:ue,88:fe,89:_e,90:ge,91:xe,92:Ie,93:ye,94:Re,95:Oe,96:Le,97:be,98:me,99:Se,100:Ae,101:we,102:Ne,103:Pe},e(H,[2,79]),e(H,[2,80]),e(H,[2,81]),e(H,[2,82]),e(H,[2,83]),e(H,[2,84]),e(H,[2,85]),e(H,[2,86]),e(H,[2,87]),e(H,[2,88]),e(H,[2,89]),e(H,[2,90]),e(H,[2,91]),e(H,[2,92]),e(H,[2,93]),e(H,[2,94]),e(H,[2,95]),e(H,[2,96]),e(H,[2,97]),e(H,[2,98]),e(H,[2,99]),e(H,[2,100]),e(H,[2,101]),e(H,[2,102]),e(H,[2,103]),e(H,[2,104]),{23:147,73:W},{23:149,60:148,73:W},{73:[2,68]},{73:[2,69]},{58:150,104:ct},{58:152,104:ct},{58:153,104:ct},{58:154,104:ct},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:G,53:X,54:J},{5:[1,160]},e(C,[2,20]),e(C,[2,21]),e(C,[2,23]),e(C,[2,24]),{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[1,161],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[1,162],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[1,163],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{17:[1,164]},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[2,47],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,50:[1,165],51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{17:[1,166]},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[2,45],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,49:[1,167],51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{17:[1,168]},{17:[1,169]},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[2,43],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,48:[1,170],51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[1,171],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{16:[1,172]},e(C,[2,50]),{16:[1,173]},e(C,[2,55]),e(Jt,[2,76]),{76:[1,174]},{16:[1,175]},e(C,[2,52]),{16:[1,176]},e(C,[2,57]),e(C,[2,53]),{23:177,73:W},{23:178,73:W},{23:179,73:W},{58:180,104:ct},{23:181,72:[1,182],73:W},{58:183,104:ct},{58:184,104:ct},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(C,[2,17]),e(Nt,[2,11]),{13:186,51:G,53:X,54:J},e(Nt,[2,13]),e(Nt,[2,14]),e(C,[2,19]),e(C,[2,35]),e(C,[2,36]),e(C,[2,37]),e(C,[2,38]),{16:[1,187]},e(C,[2,39]),{16:[1,188]},e(C,[2,40]),e(C,[2,41]),{16:[1,189]},e(C,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:ct},{58:196,104:ct},{58:197,104:ct},{5:[2,75]},{58:198,104:ct},{23:199,73:W},{5:[2,58]},{5:[2,59]},{23:200,73:W},e(Nt,[2,12]),e(De,i,{7:124,41:201}),e(Xt,i,{7:126,43:202}),e(ve,i,{7:129,46:203}),e(C,[2,49]),e(C,[2,54]),e(Jt,[2,77]),e(C,[2,51]),e(C,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:ct},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:x(B(function(A,v){if(v.recoverable)this.trace(A);else{var P=new Error(A);throw P.hash=v,P}},"parseError"),"parseError"),parse:x(B(function(A){var v=this,P=[0],y=[],U=[null],o=[],kt=this.table,d="",Bt=0,Ce=0,je=2,Me=1,tr=o.slice.call(arguments,1),Z=Object.create(this.lexer),xt={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(xt.yy[Qt]=this.yy[Qt]);Z.setInput(A,xt.yy),xt.yy.lexer=Z,xt.yy.parser=this,typeof Z.yylloc>"u"&&(Z.yylloc={});var $t=Z.yylloc;o.push($t);var er=Z.options&&Z.options.ranges;typeof xt.yy.parseError=="function"?this.parseError=xt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(nt){P.length=P.length-2*nt,U.length=U.length-nt,o.length=o.length-nt}B(Be,"popStack"),x(Be,"popStack");function jt(){var nt;return nt=y.pop()||Z.lex()||Me,typeof nt!="number"&&(nt instanceof Array&&(y=nt,nt=y.pop()),nt=v.symbols_[nt]||nt),nt}B(jt,"lex"),x(jt,"lex");for(var at,It,lt,te,mt={},Vt,pt,Ve,Yt;;){if(It=P[P.length-1],this.defaultActions[It]?lt=this.defaultActions[It]:((at===null||typeof at>"u")&&(at=jt()),lt=kt[It]&&kt[It][at]),typeof lt>"u"||!lt.length||!lt[0]){var ee="";Yt=[];for(Vt in kt[It])this.terminals_[Vt]&&Vt>je&&Yt.push("'"+this.terminals_[Vt]+"'");Z.showPosition?ee="Parse error on line "+(Bt+1)+`:
|
|
2
2
|
`+Z.showPosition()+`
|
|
3
3
|
Expecting `+Yt.join(", ")+", got '"+(this.terminals_[at]||at)+"'":ee="Parse error on line "+(Bt+1)+": Unexpected "+(at==Me?"end of input":"'"+(this.terminals_[at]||at)+"'"),this.parseError(ee,{text:Z.match,token:this.terminals_[at]||at,line:Z.yylineno,loc:$t,expected:Yt})}if(lt[0]instanceof Array&<.length>1)throw new Error("Parse Error: multiple actions possible at state: "+It+", token: "+at);switch(lt[0]){case 1:P.push(at),U.push(Z.yytext),o.push(Z.yylloc),P.push(lt[1]),at=null,Ce=Z.yyleng,d=Z.yytext,Bt=Z.yylineno,$t=Z.yylloc;break;case 2:if(pt=this.productions_[lt[1]][1],mt.$=U[U.length-pt],mt._$={first_line:o[o.length-(pt||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(pt||1)].first_column,last_column:o[o.length-1].last_column},er&&(mt._$.range=[o[o.length-(pt||1)].range[0],o[o.length-1].range[1]]),te=this.performAction.apply(mt,[d,Ce,Bt,xt.yy,lt[1],U,o].concat(tr)),typeof te<"u")return te;pt&&(P=P.slice(0,-1*pt*2),U=U.slice(0,-1*pt),o=o.slice(0,-1*pt)),P.push(this.productions_[lt[1]][0]),U.push(mt.$),o.push(mt._$),Ve=kt[P[P.length-2]][P[P.length-1]],P.push(Ve);break;case 3:return!0}}return!0},"parse"),"parse")},$e=(function(){var ft={EOF:1,parseError:x(B(function(v,P){if(this.yy.parser)this.yy.parser.parseError(v,P);else throw new Error(v)},"parseError"),"parseError"),setInput:x(function(A,v){return this.yy=v||this.yy||{},this._input=A,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:x(function(){var A=this._input[0];this.yytext+=A,this.yyleng++,this.offset++,this.match+=A,this.matched+=A;var v=A.match(/(?:\r\n?|\n).*/g);return v?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),A},"input"),unput:x(function(A){var v=A.length,P=A.split(/(?:\r\n?|\n)/g);this._input=A+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-v),this.offset-=v;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),P.length-1&&(this.yylineno-=P.length-1);var U=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:P?(P.length===y.length?this.yylloc.first_column:0)+y[y.length-P.length].length-P[0].length:this.yylloc.first_column-v},this.options.ranges&&(this.yylloc.range=[U[0],U[0]+this.yyleng-v]),this.yyleng=this.yytext.length,this},"unput"),more:x(function(){return this._more=!0,this},"more"),reject:x(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:x(function(A){this.unput(this.match.slice(A))},"less"),pastInput:x(function(){var A=this.matched.substr(0,this.matched.length-this.match.length);return(A.length>20?"...":"")+A.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:x(function(){var A=this.match;return A.length<20&&(A+=this._input.substr(0,20-A.length)),(A.substr(0,20)+(A.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:x(function(){var A=this.pastInput(),v=new Array(A.length+1).join("-");return A+this.upcomingInput()+`
|