@layers-app/editor 0.0.23 → 0.0.25
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/dist/index.cjs +1 -1
- package/dist/index.d.ts +6 -44
- package/dist/index.js +1 -1
- package/dist/{layers.BdanmQPF.js → layers.07qQUlOx.js} +1 -1
- package/dist/{layers.CBXpUMze.js → layers.0Uws2RMI.js} +35 -35
- package/dist/{layers.BpXiFzvR.js → layers.2klZ3piU.js} +1 -1
- package/dist/{layers.p9hSNB6N.js → layers.3O2dWJo4.js} +1 -1
- package/dist/{layers.x6ioP3u0.js → layers.3VppN-FK.js} +1 -1
- package/dist/{layers.kY3ZYtED.js → layers.3cmQBPRD.js} +1 -1
- package/dist/{layers.C-G7-Jg3.js → layers.5U29QNMz.js} +1 -1
- package/dist/{layers.CEXVJbhn.js → layers.5s_bUFw7.js} +1 -1
- package/dist/{layers.BFLg4UGe.js → layers.8dwcxQd3.js} +1 -1
- package/dist/{layers.D2q8ZYi2.js → layers.9EMwI8Xs.js} +15 -15
- package/dist/{layers.za1sylgg.js → layers.9tX9hjoM.js} +758 -758
- package/dist/{layers.BBwDvE6l.js → layers.B-eOoyQV.js} +1820 -1814
- package/dist/{layers.CPV5PaJ7.js → layers.B-hOwYRy.js} +1 -1
- package/dist/{layers.PO65UmTA.js → layers.B0LHiU6c.js} +1 -1
- package/dist/{layers.CnD3z0eZ.js → layers.B1psjxfg.js} +1 -1
- package/dist/{layers.BUSnd1Ro.js → layers.B1tTFwlU.js} +1 -1
- package/dist/{layers.B39TZ2WV.js → layers.B3NaBxHH.js} +1 -1
- package/dist/{layers.DIrkcLlA.js → layers.B43rvwKV.js} +63 -63
- package/dist/{layers.Dg8Wbn90.js → layers.B7wN1gyM.js} +1 -1
- package/dist/{layers.tbRLuldN.js → layers.B9ocXRVO.js} +1 -1
- package/dist/{layers.CZh7NZyl.js → layers.BAWbBe9N.js} +1 -1
- package/dist/{layers.Cl9Tl2nd.js → layers.BAaIrX5p.js} +1 -1
- package/dist/layers.BAnc8Y8B.js +118 -0
- package/dist/{layers.CiNAQOA-.js → layers.BB7ssac6.js} +2 -2
- package/dist/{layers.Bz0ApNUe.js → layers.BBm66jcD.js} +14 -14
- package/dist/layers.BGF0mJI-.js +10 -0
- package/dist/{layers.kthR742N.js → layers.BJ2qg5fe.js} +1 -1
- package/dist/{layers.C_dOgKfE.js → layers.BK4BzYSQ.js} +1 -1
- package/dist/{layers.BST6tR9a.js → layers.BKoRqbkc.js} +1 -1
- package/dist/{layers.Bbl6qitU.js → layers.BLvgQy3M.js} +1 -1
- package/dist/{layers.DEfJs03Z.js → layers.BNEX6ffl.js} +1 -1
- package/dist/layers.BOEB6DhN.js +202 -0
- package/dist/{layers.ClaqpFnu.js → layers.BOdIgbDK.js} +2 -2
- package/dist/{layers.DalYdEkL.js → layers.BPTiALoi.js} +4 -4
- package/dist/{layers.B64g6Zx2.js → layers.BQHgH0c0.js} +1 -1
- package/dist/{layers.BFOl7cA-.js → layers.BQUkW6Sr.js} +1 -1
- package/dist/{layers.CphCG076.js → layers.BQdiT-Gc.js} +1 -1
- package/dist/{layers.Cp82yltX.js → layers.BW8tNgnl.js} +1 -1
- package/dist/{layers.CHHqQlm1.js → layers.BWBOjwnD.js} +1 -1
- package/dist/{layers.N4wL2Xyj.js → layers.BWBqFzL5.js} +85 -85
- package/dist/{layers.c_QDfgff.js → layers.BY_Ddtf_.js} +4 -4
- package/dist/{layers.CqM3rL4-.js → layers.B_3SG9-n.js} +1 -1
- package/dist/layers.Bag9ck5N.js +1 -0
- package/dist/{layers.ChAMqLmE.js → layers.Bgs9DWaM.js} +1 -1
- package/dist/{layers.Bv0tGvGl.js → layers.BhjPgUp1.js} +1 -1
- package/dist/{layers.ClQj75nc.js → layers.Bjqq928v.js} +1 -1
- package/dist/{layers.Ch7C0MR9.js → layers.Bk3rEvTi.js} +1 -1
- package/dist/{layers.oFAtdeQ1.js → layers.BlRFAeMZ.js} +3 -3
- package/dist/layers.BlifjyLs.js +2 -0
- package/dist/{layers.BZcZF6Ct.js → layers.BlkvO94n.js} +1 -1
- package/dist/{layers.BPe9NQzP.js → layers.Bm4nXd83.js} +1 -1
- package/dist/{layers.Blho0qwc.js → layers.BmU3A8To.js} +1 -1
- package/dist/{layers.UbqG2dp_.js → layers.Bn8N2Stv.js} +1 -1
- package/dist/{layers.DwLw5o0M.js → layers.BqTvq1WO.js} +1 -1
- package/dist/{layers.CGX7Piy7.js → layers.BtP6vWIY.js} +1 -1
- package/dist/{layers.CDLdte-o.js → layers.Bu0Rv7u8.js} +1 -1
- package/dist/{layers.DAx0hT2g.js → layers.BuJozguU.js} +1 -1
- package/dist/{layers.Dol0x5Jd.js → layers.Bw3R-pSG.js} +1 -1
- package/dist/{layers.hkFN-BS0.js → layers.BwcyrXEu.js} +1 -1
- package/dist/{layers.BBB7YGK1.js → layers.Bwuu3jjm.js} +1 -1
- package/dist/{layers.B9zrmkst.js → layers.BymWa7M3.js} +1 -1
- package/dist/{layers.LOjND5R4.js → layers.BzRmHQQD.js} +2 -2
- package/dist/{layers.Dbuivk7d.js → layers.Bzc44mb4.js} +1 -1
- package/dist/{layers.CwPFdFUT.js → layers.C2b0BhoA.js} +1 -1
- package/dist/{layers.DARK07JA.js → layers.C3vT-_5E.js} +1 -1
- package/dist/{layers.D7HvMBb6.js → layers.C4L1zUgG.js} +1 -1
- package/dist/{layers.CcJ28sUd.js → layers.C6qRV0pD.js} +1 -1
- package/dist/{layers.CDzPpnhN.js → layers.C7_Otsyx.js} +5 -5
- package/dist/{layers.WsdOSV4y.js → layers.C8r5QjFY.js} +1 -1
- package/dist/{layers.5BbX0Xoz.js → layers.C9vJr9Fp.js} +57 -57
- package/dist/layers.CBAObrHU.js +1 -0
- package/dist/layers.CHd51QJn.js +8 -0
- package/dist/{layers.BJMMuP5r.js → layers.CI7Z-Sjj.js} +1 -1
- package/dist/{layers.D9A031XO.js → layers.CJudskXr.js} +2 -2
- package/dist/layers.CLPJWTr_.js +1 -0
- package/dist/{layers.OEP2K3db.js → layers.CM0RbG9c.js} +1 -1
- package/dist/{layers.BXGiOI1Z.js → layers.CNml1ojC.js} +1 -1
- package/dist/{layers.C5uR7AiN.js → layers.CPPtpAVe.js} +1 -1
- package/dist/{layers.Cn6OfRlw.js → layers.CPtjfATq.js} +1 -1
- package/dist/{layers.BYVHkqLR.js → layers.CRVVTbRr.js} +1 -1
- package/dist/{layers.Ym7pRGM7.js → layers.CRuKN3by.js} +3 -3
- package/dist/{layers.BuQ1nJmP.js → layers.CSAdHZgs.js} +1 -1
- package/dist/{layers.CMS1o_sE.js → layers.CSy8D72I.js} +1 -1
- package/dist/{layers.DdTLZZKb.js → layers.CV_r6tXx.js} +6 -6
- package/dist/layers.CVlRuvNG.js +122 -0
- package/dist/{layers.D68FZk66.js → layers.CWWJnwM1.js} +1 -1
- package/dist/{layers.Ck0iJfoW.js → layers.CYPKJ9D_.js} +1 -1
- package/dist/{layers.BO3dqWyO.js → layers.CZ9asRxp.js} +1 -1
- package/dist/{layers.CO4NHmK3.js → layers.CctQZdRR.js} +1 -1
- package/dist/{layers.BjZInKjA.js → layers.Cdw06C7D.js} +2 -2
- package/dist/{layers.DYx3Ot6h.js → layers.Ce8BBqO9.js} +1 -1
- package/dist/{layers.DQCPMqIN.js → layers.CfVH6j0d.js} +1 -1
- package/dist/{layers.lLRqycMO.js → layers.CfyH4z2e.js} +1 -1
- package/dist/{layers.BLSqqbWP.js → layers.CgdtQipl.js} +4 -4
- package/dist/{layers.DFd9A85i.js → layers.CgvOUVzr.js} +4 -4
- package/dist/{layers.gRKbOYG-.js → layers.ChkOb4tl.js} +26 -26
- package/dist/{layers.CR4riLSc.js → layers.Cj6cbW8i.js} +639 -639
- package/dist/{layers.DKPzrygv.js → layers.Cj7ITJ9c.js} +1 -1
- package/dist/{layers.rRMBW9ET.js → layers.CjRpPAKZ.js} +251 -251
- package/dist/{layers.Ba97nTEK.js → layers.CjfoYqS0.js} +1 -1
- package/dist/{layers.CTmkjIN6.js → layers.Ckd9L1ZQ.js} +1 -1
- package/dist/{layers.CQv0GMRl.js → layers.ClpTV2lw.js} +1 -1
- package/dist/{layers.D1cZq8tq.js → layers.CmEuIxO4.js} +3 -3
- package/dist/{layers.Bwpn7zKE.js → layers.CmOPFjvq.js} +1 -1
- package/dist/{layers.DCvUAfE1.js → layers.CnlX6j6i.js} +1 -1
- package/dist/{layers.B-6oGNjd.js → layers.CqEtGCpU.js} +1 -1
- package/dist/{layers.C51kZnWr.js → layers.CqMLQ0Dp.js} +1 -1
- package/dist/{layers.BhM2iCwB.js → layers.CuxIZWEP.js} +1 -1
- package/dist/{layers.PhLwHKUM.js → layers.CvLOVBUw.js} +1 -1
- package/dist/{layers.ChykDTOy.js → layers.Cx6FqSsI.js} +1 -1
- package/dist/{layers.CmHSmrZm.js → layers.CyUKOqQM.js} +1 -1
- package/dist/{layers.DeB3waPT.js → layers.CzsxLGGT.js} +1 -1
- package/dist/{layers.DXTPaWjN.js → layers.D0yiFcqY.js} +1 -1
- package/dist/layers.D1fmxxk7.js +1 -0
- package/dist/{layers.DO-G3uLL.js → layers.D39cRqm0.js} +1 -1
- package/dist/{layers.ChPHYv68.js → layers.D6ec9SRH.js} +1 -1
- package/dist/{layers.BDxQSquK.js → layers.D71p3EhU.js} +1 -1
- package/dist/{layers.-RxAm5pH.js → layers.D8G_zttU.js} +47 -47
- package/dist/{layers.x6Qk2Mwl.js → layers.D8NjLtRn.js} +1 -1
- package/dist/{layers.I-MG0ir4.js → layers.DAkVONDW.js} +6219 -6202
- package/dist/{layers.iw01AOuQ.js → layers.DDE-iai2.js} +96 -96
- package/dist/{layers.DDRgaMwu.js → layers.DDGV6wvn.js} +1 -1
- package/dist/{layers.cp645rbn.js → layers.DDPm1Phd.js} +1 -1
- package/dist/{layers.D3Hkinja.js → layers.DFdD8OE6.js} +1 -1
- package/dist/{layers.gzGcAwbO.js → layers.DGC-QZbD.js} +3 -3
- package/dist/{layers.B9NSFeaj.js → layers.DH6JhdxT.js} +1 -1
- package/dist/{layers.DrtkQKK7.js → layers.DHNgS4o3.js} +1 -1
- package/dist/{layers.k2UyvrHI.js → layers.DHYQaKXy.js} +1 -1
- package/dist/{layers.B0EkntbT.js → layers.DKTUd6cG.js} +1 -1
- package/dist/{layers.Cxmncz59.js → layers.DLShWbE3.js} +1 -1
- package/dist/{layers.C1KhBpGU.js → layers.DMnBSepD.js} +1 -1
- package/dist/{layers.BCFHxkpM.js → layers.DN2-RoYO.js} +1 -1
- package/dist/{layers.BLB-feoT.js → layers.DNvn8evO.js} +1 -1
- package/dist/{layers.DsAtBUs-.js → layers.DPpl1Lyy.js} +5 -5
- package/dist/{layers.paz6tc0L.js → layers.DQevQguw.js} +1 -1
- package/dist/{layers.DK_t52oS.js → layers.DRGcrPPV.js} +390 -390
- package/dist/{layers.Ckbp-T9r.js → layers.DS8xp3z6.js} +1 -1
- package/dist/{layers.D90-hSDT.js → layers.DT2vhESJ.js} +2 -2
- package/dist/{layers.B-ie1_cm.js → layers.DTSzGsqB.js} +1 -1
- package/dist/{layers.Dyqg_e4P.js → layers.DTX-m6B0.js} +1 -1
- package/dist/{layers.Lhl12ohc.js → layers.DUgI8Qm6.js} +1 -1
- package/dist/{layers.fTcEk1do.js → layers.DUt_7Rf9.js} +7 -7
- package/dist/{layers.CZMy0ug4.js → layers.DX5uxco3.js} +1 -1
- package/dist/{layers.C6Rn8zoI.js → layers.DYoOWsyB.js} +1 -1
- package/dist/layers.DZVs6rl-.js +65 -0
- package/dist/{layers.Bfd5bOAD.js → layers.DZxo3Qo-.js} +1 -1
- package/dist/{layers.ChJyurjQ.js → layers.DaNHv_tD.js} +1 -1
- package/dist/{layers.Bk2PdkMX.js → layers.DbSjlXkz.js} +1 -1
- package/dist/{layers.D2vOkfMK.js → layers.Dc_OXuAO.js} +1 -1
- package/dist/{layers.BIVmclKv.js → layers.Dg4aFQbj.js} +1 -1
- package/dist/{layers.DHbdkCCU.js → layers.Dh8vVrkJ.js} +1 -1
- package/dist/{layers.gaT5_-NN.js → layers.DhaEWWE8.js} +1 -1
- package/dist/{layers.CH23k4XD.js → layers.DhiiM0nu.js} +1 -1
- package/dist/{layers.BEE5yqs5.js → layers.Dj1RvABZ.js} +1 -1
- package/dist/{layers.BBU3ik5q.js → layers.DnhB9nfo.js} +3 -3
- package/dist/{layers.DxGDxkXA.js → layers.Dp_lp9sc.js} +47 -47
- package/dist/{layers.CCRe_IA7.js → layers.DpoqH_qu.js} +1 -1
- package/dist/{layers.Y41CVpLS.js → layers.DtYpqqY0.js} +33 -33
- package/dist/{layers.CvJxfPxo.js → layers.Dtt8if_X.js} +1 -1
- package/dist/{layers.Dyor8Hot.js → layers.Du5-W3Rw.js} +28 -28
- package/dist/{layers.CeMe5scF.js → layers.Dv3wcPBB.js} +1 -1
- package/dist/{layers.CR10RAJi.js → layers.DvVe2_B8.js} +2 -2
- package/dist/{layers.BDhuxbhX.js → layers.Dw80oYJ5.js} +1 -1
- package/dist/{layers.-rS-aTo2.js → layers.Dx5bTjWn.js} +1 -1
- package/dist/{layers.HcI9cOEd.js → layers.DyUhnefH.js} +47 -47
- package/dist/{layers.DhiFm4jW.js → layers.EqE20WDv.js} +1 -1
- package/dist/{layers.L_XjkGw6.js → layers.GO-Mbd7I.js} +16 -16
- package/dist/{layers.CnloMtKN.js → layers.HRFT_ZjM.js} +14 -14
- package/dist/{layers.DhzTwBn5.js → layers.KCNY5y8z.js} +1 -1
- package/dist/{layers.Dklz2JqP.js → layers.KFKejNxr.js} +1 -1
- package/dist/{layers.D-ZYFolm.js → layers.LBCOqtdP.js} +1 -1
- package/dist/{layers.B_Hf0SF-.js → layers.MYNPCNPb.js} +517 -517
- package/dist/{layers.FstVqdQC.js → layers.Mz6hy1ns.js} +151 -151
- package/dist/{layers.Dxrm0nEM.js → layers.NnXYAx13.js} +140 -140
- package/dist/layers.O_QfH9Tw.js +55 -0
- package/dist/{layers.Cx14IKzN.js → layers.PrN0U_UM.js} +1 -1
- package/dist/{layers.Dzc83sE7.js → layers.Q4CIFfze.js} +1 -1
- package/dist/{layers.D_MU5WlI.js → layers.R44OAZRP.js} +1 -1
- package/dist/{layers.BvZFIFgz.js → layers.SP95Qof2.js} +1 -1
- package/dist/{layers.I5-pSyca.js → layers.SulLxOdh.js} +1 -1
- package/dist/{layers.C3K_Whht.js → layers.T0eE6tga.js} +1 -1
- package/dist/{layers.BHDiP2sq.js → layers.UHP1RD2c.js} +1482 -1482
- package/dist/{layers.BD5uUnI2.js → layers.UVNd1xGx.js} +279 -279
- package/dist/{layers.Ci0x4aAi.js → layers.WoRsWqkn.js} +5 -5
- package/dist/{layers.BPnpanwd.js → layers.Xe8jbEny.js} +1 -1
- package/dist/{layers.DMvWe0pJ.js → layers.ZN4JdEjx.js} +2 -2
- package/dist/layers.ZYL9xgWP.js +6 -0
- package/dist/{layers.B6UkAKu5.js → layers._hbnQs16.js} +78 -78
- package/dist/{layers.BkMfeJ9R.js → layers.dRKtVcxx.js} +1 -1
- package/dist/{layers.C0bumYdC.js → layers.eMCYstYw.js} +1 -1
- package/dist/{layers.BUkDq4ln.js → layers.eT0cgnuX.js} +1 -1
- package/dist/{layers.B0pdr1hX.js → layers.iE9hmQyV.js} +33 -33
- package/dist/{layers.B3odqoHb.js → layers.iRxcG0YN.js} +1 -1
- package/dist/{layers.D18RSmmQ.js → layers.kyTkLvwr.js} +1 -1
- package/dist/{layers.CClfR9Rs.js → layers.otSGVgrf.js} +10347 -11483
- package/dist/{layers.dqI-yLmM.js → layers.pAr6m-ST.js} +1 -1
- package/dist/{layers.2ODaB2Pd.js → layers.qxHQ5s48.js} +1 -1
- package/dist/{layers.B8i9d7Qz.js → layers.qzkyQd0J.js} +36 -30
- package/dist/{layers.BoabOlrX.js → layers.rB_UamkL.js} +1 -1
- package/dist/{layers.DElpVOY-.js → layers.vK-UofJJ.js} +1 -1
- package/dist/{layers.C5rttXXy.js → layers.vfmwTFt7.js} +4 -4
- package/dist/{layers.DXaSAlDN.js → layers.vrKjaGL3.js} +1 -1
- package/dist/{layers.Ci0QS82_.js → layers.wXI8z3zK.js} +1 -1
- package/dist/{layers.CGc04km7.js → layers.z_R2M9xA.js} +1 -1
- package/dist/{layers.DGZUGztZ.js → layers.zleGKGQR.js} +29 -29
- package/dist/{layers.CSjWzlk9.js → layers.zx6fFkwC.js} +1 -1
- package/package.json +1 -4
- package/dist/layers.BK01wvsE.js +0 -10
- package/dist/layers.BQLZhz6B.js +0 -6
- package/dist/layers.BUsBCyiL.js +0 -202
- package/dist/layers.BkjjkAwW.js +0 -2
- package/dist/layers.BwfB_nzW.js +0 -8
- package/dist/layers.CQXDzk5h.js +0 -1
- package/dist/layers.CeVpKhli.js +0 -122
- package/dist/layers.DTDpNGfk.js +0 -1
- package/dist/layers.Dk9dbz6F.js +0 -118
- package/dist/layers.DtoCH9Nn.js +0 -1
- package/dist/layers.DzaH7mDC.js +0 -65
- package/dist/layers.Tatx7z0m.js +0 -55
- package/dist/layers.h0tSRttU.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("./layers.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("./layers.0Uws2RMI.js"),R=require("./layers.Bag9ck5N.js");require("./layers.qzkyQd0J.js");const Q=require("./layers.BmU3A8To.js");var G=function(){var t=function(p,n,r,a){for(r=r||{},a=p.length;a--;r[p[a]]=n);return r},e=[6,8,10,11,12,14,16,17,18],i=[1,9],l=[1,10],s=[1,11],h=[1,12],c=[1,13],f=[1,14],y={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:function(n,r,a,u,d,o,T){var _=o.length-1;switch(d){case 1:return o[_-1];case 2:this.$=[];break;case 3:o[_-1].push(o[_]),this.$=o[_-1];break;case 4:case 5:this.$=o[_];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(o[_].substr(6)),this.$=o[_].substr(6);break;case 9:this.$=o[_].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[_].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[_].substr(8)),this.$=o[_].substr(8);break;case 13:u.addTask(o[_-1],o[_]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:l,14:s,16:h,17:c,18:f},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:l,14:s,16:h,17:c,18:f},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:function(n,r){if(r.recoverable)this.trace(n);else{var a=new Error(n);throw a.hash=r,a}},parse:function(n){var r=this,a=[0],u=[],d=[null],o=[],T=this.table,_="",N=0,Z=0,ot=2,J=1,lt=o.slice.call(arguments,1),x=Object.create(this.lexer),C={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(C.yy[z]=this.yy[z]);x.setInput(n,C.yy),C.yy.lexer=x,C.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var O=x.yylloc;o.push(O);var ct=x.options&&x.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ht(){var M;return M=u.pop()||x.lex()||J,typeof M!="number"&&(M instanceof Array&&(u=M,M=u.pop()),M=r.symbols_[M]||M),M}for(var b,E,v,Y,P={},B,$,K,j;;){if(E=a[a.length-1],this.defaultActions[E]?v=this.defaultActions[E]:((b===null||typeof b>"u")&&(b=ht()),v=T[E]&&T[E][b]),typeof v>"u"||!v.length||!v[0]){var W="";j=[];for(B in T[E])this.terminals_[B]&&B>ot&&j.push("'"+this.terminals_[B]+"'");x.showPosition?W="Parse error on line "+(N+1)+`:
|
|
2
2
|
`+x.showPosition()+`
|
|
3
|
-
Expecting `+j.join(", ")+", got '"+(this.terminals_[b]||b)+"'":W="Parse error on line "+(N+1)+": Unexpected "+(b==J?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(W,{text:x.match,token:this.terminals_[b]||b,line:x.yylineno,loc:O,expected:j})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+b);switch(v[0]){case 1:a.push(b),d.push(x.yytext),
|
|
3
|
+
Expecting `+j.join(", ")+", got '"+(this.terminals_[b]||b)+"'":W="Parse error on line "+(N+1)+": Unexpected "+(b==J?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(W,{text:x.match,token:this.terminals_[b]||b,line:x.yylineno,loc:O,expected:j})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+b);switch(v[0]){case 1:a.push(b),d.push(x.yytext),o.push(x.yylloc),a.push(v[1]),b=null,Z=x.yyleng,_=x.yytext,N=x.yylineno,O=x.yylloc;break;case 2:if($=this.productions_[v[1]][1],P.$=d[d.length-$],P._$={first_line:o[o.length-($||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-($||1)].first_column,last_column:o[o.length-1].last_column},ct&&(P._$.range=[o[o.length-($||1)].range[0],o[o.length-1].range[1]]),Y=this.performAction.apply(P,[_,Z,N,C.yy,v[1],d,o].concat(lt)),typeof Y<"u")return Y;$&&(a=a.slice(0,-1*$*2),d=d.slice(0,-1*$),o=o.slice(0,-1*$)),a.push(this.productions_[v[1]][0]),d.push(P.$),o.push(P._$),K=T[a[a.length-2]][a[a.length-1]],a.push(K);break;case 3:return!0}}return!0}},m=function(){var p={EOF:1,parseError:function(r,a){if(this.yy.parser)this.yy.parser.parseError(r,a);else throw new Error(r)},setInput:function(n,r){return this.yy=r||this.yy||{},this._input=n,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},input:function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var r=n.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var r=n.length,a=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===u.length?this.yylloc.first_column:0)+u[u.length-a.length].length-a[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),r=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
|
5
|
-
`+r+"^"},test_match:function(n,r){var a,u,d;if(this.options.backtrack_lexer&&(d={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(d.yylloc.range=this.yylloc.range.slice(0))),u=n[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],a=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,a,u,d){switch(u){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return p}();y.lexer=m;function g(){this.yy={}}return g.prototype=y,y.Parser=g,new g}();G.parser=G;const ut=G;let I="";const H=[],V=[],F=[],yt=function(){H.length=0,V.length=0,I="",F.length=0,k.clear()},ft=function(t){I=t,H.push(t)},dt=function(){return H},pt=function(){let t=D();const e=100;let i=0;for(;!t&&i<e;)t=D(),i++;return V.push(...F),V},gt=function(){const t=[];return V.forEach(i=>{i.people&&t.push(...i.people)}),[...new Set(t)].sort()},mt=function(t,e){const i=e.substr(1).split(":");let
|
|
5
|
+
`+r+"^"},test_match:function(n,r){var a,u,d;if(this.options.backtrack_lexer&&(d={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(d.yylloc.range=this.yylloc.range.slice(0))),u=n[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],a=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var o in d)this[o]=d[o];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,r,a,u;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),o=0;o<d.length;o++)if(a=this._input.match(this.rules[d[o]]),a&&(!r||a[0].length>r[0].length)){if(r=a,u=o,this.options.backtrack_lexer){if(n=this.test_match(a,d[o]),n!==!1)return n;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(n=this.test_match(r,d[u]),n!==!1?n:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,a,u,d){switch(u){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return p}();y.lexer=m;function g(){this.yy={}}return g.prototype=y,y.Parser=g,new g}();G.parser=G;const ut=G;let I="";const H=[],V=[],F=[],yt=function(){H.length=0,V.length=0,I="",F.length=0,k.clear()},ft=function(t){I=t,H.push(t)},dt=function(){return H},pt=function(){let t=D();const e=100;let i=0;for(;!t&&i<e;)t=D(),i++;return V.push(...F),V},gt=function(){const t=[];return V.forEach(i=>{i.people&&t.push(...i.people)}),[...new Set(t)].sort()},mt=function(t,e){const i=e.substr(1).split(":");let l=0,s=[];i.length===1?(l=Number(i[0]),s=[]):(l=Number(i[0]),s=i[1].split(","));const h=s.map(f=>f.trim()),c={section:I,type:I,people:h,task:t,score:l};F.push(c)},xt=function(t){const e={section:I,type:I,description:t,task:t,classes:[]};V.push(e)},D=function(){const t=function(i){return F[i].processed};let e=!0;for(const[i,l]of F.entries())t(i),e=e&&l.processed;return e},kt=function(){return gt()},tt={getConfig:()=>k.getConfig().journey,clear:yt,setDiagramTitle:k.setDiagramTitle,getDiagramTitle:k.getDiagramTitle,setAccTitle:k.setAccTitle,getAccTitle:k.getAccTitle,setAccDescription:k.setAccDescription,getAccDescription:k.getAccDescription,addSection:ft,getSections:dt,getTasks:pt,addTask:mt,addTaskOrg:xt,getActors:kt},_t=t=>`.label {
|
|
7
7
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
8
8
|
font-family: var(--mermaid-font-family);
|
|
9
9
|
color: ${t.textColor};
|
|
@@ -136,4 +136,4 @@ Expecting `+j.join(", ")+", got '"+(this.terminals_[b]||b)+"'":W="Parse error on
|
|
|
136
136
|
.actor-5 {
|
|
137
137
|
${t.actor5?`fill: ${t.actor5}`:""};
|
|
138
138
|
}
|
|
139
|
-
`,bt=_t,U=function(t,e){return R.drawRect(t,e)},vt=function(t,e){const
|
|
139
|
+
`,bt=_t,U=function(t,e){return R.drawRect(t,e)},vt=function(t,e){const l=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),s=t.append("g");s.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function h(y){const m=Q.arc().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function c(y){const m=Q.arc().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function f(y){y.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return e.score>3?h(s):e.score<3?c(s):f(s),l},it=function(t,e){const i=t.append("circle");return i.attr("cx",e.cx),i.attr("cy",e.cy),i.attr("class","actor-"+e.pos),i.attr("fill",e.fill),i.attr("stroke",e.stroke),i.attr("r",e.r),i.class!==void 0&&i.attr("class",i.class),e.title!==void 0&&i.append("title").text(e.title),i},rt=function(t,e){return R.drawText(t,e)},wt=function(t,e){function i(s,h,c,f,y){return s+","+h+" "+(s+c)+","+h+" "+(s+c)+","+(h+f-y)+" "+(s+c-y*1.2)+","+(h+f)+" "+s+","+(h+f)}const l=t.append("polygon");l.attr("points",i(e.x,e.y,50,20,7)),l.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,rt(t,e)},Tt=function(t,e,i){const l=t.append("g"),s=R.getNoteRect();s.x=e.x,s.y=e.y,s.fill=e.fill,s.width=i.width*e.taskCount+i.diagramMarginX*(e.taskCount-1),s.height=i.height,s.class="journey-section section-type-"+e.num,s.rx=3,s.ry=3,U(l,s),at(i)(e.text,l,s.x,s.y,s.width,s.height,{class:"journey-section section-type-"+e.num},i,e.colour)};let et=-1;const $t=function(t,e,i){const l=e.x+i.width/2,s=t.append("g");et++;const h=300+5*30;s.append("line").attr("id","task"+et).attr("x1",l).attr("y1",e.y).attr("x2",l).attr("y2",h).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),vt(s,{cx:l,cy:300+(5-e.score)*30,score:e.score});const c=R.getNoteRect();c.x=e.x,c.y=e.y,c.fill=e.fill,c.width=i.width,c.height=i.height,c.class="task task-type-"+e.num,c.rx=3,c.ry=3,U(s,c);let f=e.x+14;e.people.forEach(y=>{const m=e.actors[y].color,g={cx:f,cy:e.y,r:7,fill:m,stroke:"#000",title:y,pos:e.actors[y].position};it(s,g),f+=10}),at(i)(e.task,s,c.x,c.y,c.width,c.height,{class:"task"},i,e.colour)},Mt=function(t,e){R.drawBackgroundRect(t,e)},at=function(){function t(s,h,c,f,y,m,g,p){const n=h.append("text").attr("x",c+y/2).attr("y",f+m/2+5).style("font-color",p).style("text-anchor","middle").text(s);l(n,g)}function e(s,h,c,f,y,m,g,p,n){const{taskFontSize:r,taskFontFamily:a}=p,u=s.split(/<br\s*\/?>/gi);for(let d=0;d<u.length;d++){const o=d*r-r*(u.length-1)/2,T=h.append("text").attr("x",c+y/2).attr("y",f).attr("fill",n).style("text-anchor","middle").style("font-size",r).style("font-family",a);T.append("tspan").attr("x",c+y/2).attr("dy",o).text(u[d]),T.attr("y",f+m/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),l(T,g)}}function i(s,h,c,f,y,m,g,p){const n=h.append("switch"),a=n.append("foreignObject").attr("x",c).attr("y",f).attr("width",y).attr("height",m).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");a.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),e(s,n,c,f,y,m,g,p),l(a,g)}function l(s,h){for(const c in h)c in h&&s.attr(c,h[c])}return function(s){return s.textPlacement==="fo"?i:s.textPlacement==="old"?t:e}}(),St=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},L={drawRect:U,drawCircle:it,drawSection:Tt,drawText:rt,drawLabel:wt,drawTask:$t,drawBackgroundRect:Mt,initGraphics:St},Ct=function(t){Object.keys(t).forEach(function(i){q[i]=t[i]})},S={};function Et(t){const e=k.getConfig().journey;let i=60;Object.keys(S).forEach(l=>{const s=S[l].color,h={cx:20,cy:i,r:7,fill:s,stroke:"#000",pos:S[l].position};L.drawCircle(t,h);const c={x:40,y:i+7,fill:"#666",text:l,textMargin:e.boxTextMargin|5};L.drawText(t,c),i+=20})}const q=k.getConfig().journey,A=q.leftMargin,At=function(t,e,i,l){const s=k.getConfig().journey,h=k.getConfig().securityLevel;let c;h==="sandbox"&&(c=k.select("#i"+e));const f=h==="sandbox"?k.select(c.nodes()[0].contentDocument.body):k.select("body");w.init();const y=f.select("#"+e);L.initGraphics(y);const m=l.db.getTasks(),g=l.db.getDiagramTitle(),p=l.db.getActors();for(const o in S)delete S[o];let n=0;p.forEach(o=>{S[o]={color:s.actorColours[n%s.actorColours.length],position:n},n++}),Et(y),w.insert(0,0,A,Object.keys(S).length*50),Pt(y,m,0);const r=w.getBounds();g&&y.append("text").text(g).attr("x",A).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const a=r.stopy-r.starty+2*s.diagramMarginY,u=A+r.stopx+2*s.diagramMarginX;k.configureSvgSize(y,a,u,s.useMaxWidth),y.append("line").attr("x1",A).attr("y1",s.height*4).attr("x2",u-A-4).attr("y2",s.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const d=g?70:0;y.attr("viewBox",`${r.startx} -25 ${u} ${a+d}`),y.attr("preserveAspectRatio","xMinYMin meet"),y.attr("height",a+d+25)},w={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,i,l){t[e]===void 0?t[e]=i:t[e]=l(i,t[e])},updateBounds:function(t,e,i,l){const s=k.getConfig().journey,h=this;let c=0;function f(y){return function(g){c++;const p=h.sequenceItems.length-c+1;h.updateVal(g,"starty",e-p*s.boxMargin,Math.min),h.updateVal(g,"stopy",l+p*s.boxMargin,Math.max),h.updateVal(w.data,"startx",t-p*s.boxMargin,Math.min),h.updateVal(w.data,"stopx",i+p*s.boxMargin,Math.max),h.updateVal(g,"startx",t-p*s.boxMargin,Math.min),h.updateVal(g,"stopx",i+p*s.boxMargin,Math.max),h.updateVal(w.data,"starty",e-p*s.boxMargin,Math.min),h.updateVal(w.data,"stopy",l+p*s.boxMargin,Math.max)}}this.sequenceItems.forEach(f())},insert:function(t,e,i,l){const s=Math.min(t,i),h=Math.max(t,i),c=Math.min(e,l),f=Math.max(e,l);this.updateVal(w.data,"startx",s,Math.min),this.updateVal(w.data,"starty",c,Math.min),this.updateVal(w.data,"stopx",h,Math.max),this.updateVal(w.data,"stopy",f,Math.max),this.updateBounds(s,c,h,f)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},X=q.sectionFills,nt=q.sectionColours,Pt=function(t,e,i){const l=k.getConfig().journey;let s="";const h=l.height*2+l.diagramMarginY,c=i+h;let f=0,y="#CCC",m="black",g=0;for(const[p,n]of e.entries()){if(s!==n.section){y=X[f%X.length],g=f%X.length,m=nt[f%nt.length];let a=0;const u=n.section;for(let o=p;o<e.length&&e[o].section==u;o++)a=a+1;const d={x:p*l.taskMargin+p*l.width+A,y:50,text:n.section,fill:y,num:g,colour:m,taskCount:a};L.drawSection(t,d,l),s=n.section,f++}const r=n.people.reduce((a,u)=>(S[u]&&(a[u]=S[u]),a),{});n.x=p*l.taskMargin+p*l.width+A,n.y=c,n.width=l.diagramMarginX,n.height=l.diagramMarginY,n.colour=m,n.fill=y,n.num=g,n.actors=r,L.drawTask(t,n,l),w.insert(n.x,n.y,n.x+n.width+l.taskMargin,300+5*30)}},st={setConf:Ct,draw:At},It={parser:ut,db:tt,renderer:st,styles:bt,init:t=>{st.setConf(t.journey),tt.clear()}};exports.diagram=It;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./layers.
|
|
1
|
+
import "./layers.DAkVONDW.js";
|
|
2
2
|
var a = { paste: "Pegar", pasteAsPlaintext: "Pegar en tèxt brut", pasteCharts: "Pegar los grafics", selectAll: "Tot seleccionar", multiSelect: "Apondre un element a la seleccion", moveCanvas: "Desplaçar lo canabàs", cut: "Talhar", copy: "Copiar", copyAsPng: "Copiar al quichapapièrs coma PNG", copyAsSvg: "Copiar al quichapapièrs coma SVG", copyText: "Copiar al quichapapièrs coma tèxt", copySource: "", convertToCode: "", bringForward: "En avant", sendToBack: "En arrièr", bringToFront: "A l’endavant", sendBackward: "Endarrièr", delete: "Suprimir", copyStyles: "Copiar los estiles", pasteStyles: "Pegar los estils", stroke: "Contorn", background: "Rèireplan", fill: "Empliment", strokeWidth: "Largor de contorn", strokeStyle: "Estil de contorn", strokeStyle_solid: "Solide", strokeStyle_dashed: "Tiret", strokeStyle_dotted: "Puntilhat", sloppiness: "Estil de traça", opacity: "Opacitat", textAlign: "Alinhament tèxt", edges: "Angles", sharp: "Ponchut", round: "Arredonit", arrowheads: "Cap de la flècha", arrowhead_none: "Cap", arrowhead_arrow: "Sageta", arrowhead_bar: "Barra", arrowhead_circle: "", arrowhead_circle_outline: "", arrowhead_triangle: "Triangle", arrowhead_triangle_outline: "", arrowhead_diamond: "", arrowhead_diamond_outline: "", fontSize: "Talha polissa", fontFamily: "Familha de polissa", addWatermark: "Apondre « Fabricat amb Excalidraw »", handDrawn: "A la man levada", normal: "Normala", code: "Còdi", small: "Pichona", medium: "Mejana", large: "Granda", veryLarge: "Gradassa", solid: "Solide", hachure: "Raia", zigzag: "Zigzag", crossHatch: "Raia crosada", thin: "Fin", bold: "Espés", left: "Esquèrra", center: "Centre", right: "Drecha", extraBold: "Espesàs", architect: "Arquitècte", artist: "Artista", cartoonist: "Dessenhaire", fileTitle: "Nom del fichièr", colorPicker: "Selector de color", canvasColors: "Utilizada suls canabassses", canvasBackground: "Rèireplan del canabàs", drawingCanvas: "Zòna de dessenh", layers: "Calques", actions: "Accions", language: "Lenga", liveCollaboration: "Collaboracion en dirèct...", duplicateSelection: "Duplicar", untitled: "Sens títol", name: "Nom", yourName: "Vòstre nom", madeWithExcalidraw: "Fabricat amb Excalidraw", group: "Gropar la seleccion", ungroup: "Desunir la seleccion", collaborators: "Collaborators", showGrid: "Afichar la gresilha", addToLibrary: "Apondre a la bibliotèca", removeFromLibrary: "Suprimir de la bibliotèca", libraryLoadingMessage: "Cargament de la bibliotèca…", libraries: "Percórrer las bibliotècas", loadingScene: "Cargament de la scèna…", align: "Alinhament", alignTop: "Alinhar ennaut", alignBottom: "Alinhar enbàs", alignLeft: "Alinhar a esquèrra", alignRight: "Alinhar a drecha", centerVertically: "Centrar verticalament", centerHorizontally: "Centrar orizontalament", distributeHorizontally: "Distribuir orizontalament", distributeVertically: "Distribuir verticalament", flipHorizontal: "Virar orizontalament", flipVertical: "Virar verticalament", viewMode: "Mòde de vista", share: "Partejar", showStroke: "Mostrar lo selector de color de contorn", showBackground: "Mostrar lo selector de color de fons", toggleTheme: "Alternar tèma", personalLib: "Bibliotèca personala", excalidrawLib: "Bibliotèca Excalidraw", decreaseFontSize: "Reduire talha polissa", increaseFontSize: "Aumentar talha polissa", unbindText: "Dessociar lo tèxte", bindText: "Ligar lo tèxt al contenidor", createContainerFromText: "Envelopar lo tèxte dins un contenedor", link: { edit: "Modificar lo ligam", editEmbed: "Modificar lo ligam e l’integracion", create: "Crear un ligam", createEmbed: "Crear un ligam e son integracion", label: "Ligam", labelEmbed: "Ligam e integracion", empty: "Cap de ligam pas definit" }, lineEditor: { edit: "Modificar la linha", exit: "Sortir de l’editor de linha" }, elementLock: { lock: "Verrolhar", unlock: "Desverrolhar", lockAll: "Tot verrolhar", unlockAll: "Tot desverrolhar" }, statusPublished: "Publicat", sidebarLock: "Gardar la barra laterala dobèrta", selectAllElementsInFrame: "Seleccionar totes los elements del quadre", removeAllElementsFromFrame: "Tirar totes los elements d’al quadre", eyeDropper: "Prendre la color a partir d’un canabàs", textToDiagram: "", prompt: "" }, e = { noItems: "Cap d’element pas encara apondut...", hint_emptyLibrary: "Seleccionatz un element d’apondre aquí, o installatz una bibliotèca del depaus public, çai-jos.", hint_emptyPrivateLibrary: "Seleccionatz un element d’apondre aquí pel canabàs." }, r = { clearReset: "Reïnicializar lo canabàs", exportJSON: "Exportar en fichièr", exportImage: "Exportar imatges...", export: "Enregistrar dins...", copyToClipboard: "Copiar al quichapapièrs", save: "Salvar al fichièr actual", saveAs: "Enregistrar jos", load: "Dobrir", getShareableLink: "Obténer lo ligam de partatge", close: "Tampar", selectLanguage: "Causir una lenga", scrollBackToContent: "Tornar al contengut", zoomIn: "Zoom avant", zoomOut: "Zoom arrièr", resetZoom: "Tirar lo zoom", menu: "Menú", done: "Acabat", edit: "Modificar", undo: "Anullar", redo: "Restablir", resetLibrary: "Reïnicializar la bibliotèca", createNewRoom: "Crear sala novèla", fullScreen: "Ecran complèt", darkMode: "Mòde escur", lightMode: "Mòde clar", zenMode: "Mòde escur", objectsSnapMode: "Ancorar als objèctes", exitZenMode: "Sortir del mòde zen", cancel: "Anullar", clear: "Escafar", remove: "Tirar", embed: "Alternar l’integracion", publishLibrary: "Publicar", submit: "Enviar", confirm: "Confirmar", embeddableInteractionButton: "Clicar per interagir" }, i = { clearReset: "Aquò suprimirà lo canabàs complèt. O volètz vertadièrament ?", couldNotCreateShareableLink: "Creacion impossibla del ligam de partatge.", couldNotCreateShareableLinkTooBig: "Creacion impossibla del ligam de partatge : la scèna es tròp granda", couldNotLoadInvalidFile: "Cargament impossible d’un fichièr invalid", importBackendFailed: "Importacion fracassada.", cannotExportEmptyCanvas: "Impossible d’exportar los canabasses voids.", couldNotCopyToClipboard: "Còpia impossibla al quichapapièrs.", decryptFailed: "Deschiframent impossible de las donadas.", uploadedSecurly: "Lo telecargament es estat securizat amb un chiframent del cap a la fin, significa que los servidors d’Excalidraw o que quina tèrça part que siá pòdon pas legir lo contengut.", loadSceneOverridePrompt: "Cargar un dessenh extèrn remplaçarà vòstre contengut existent. Volètz contunhar ?", collabStopOverridePrompt: `Arrestar la session remplaçarà vòstre precedent dessenh gardat localament. O volètz vertadièrament ?
|
|
3
3
|
|
|
4
4
|
(Se volètz gardar vòstre dessenh local, tampatz simplament l’onglet del navegador a la plaça)`, errorAddingToLibrary: "Apondon impossible de l’element a la bibliotèca", errorRemovingFromLibrary: "Supression impossibla de l’element a la bibliotèca", confirmAddLibrary: "Apondrà {{numShapes}} forma(s) a vòstra bibliotèca. Confirmatz ?", imageDoesNotContainScene: "Aqueste imatge sembla pas conténer cap de donadas de scèna. Avètz activat l’integracion de scèna pendent l’exportacion ?", cannotRestoreFromImage: "Restauracion impossibla de la scèna a partir del fichièr imatge", invalidSceneUrl: "Importacion impossibla de la scèna a partir de l’URL provesida. Es siá mal formatada o siá conten pas cap de donada JSON Excalidraw valida.", resetLibrary: "Aquò suprimirà vòstra bibliotèca. O volètz vertadièrament ?", removeItemsFromsLibrary: "Suprimir {{count}} element(s) de la bibliotèca ?", invalidEncryptionKey: "La clau de chiframent deu conténer 22 caractèrs. La collaboracion en dirèct es desactivada.", collabOfflineWarning: `Cap de connexion pas disponibla.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./layers.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./layers.0Uws2RMI.js");require("./layers.qzkyQd0J.js");const qt=require("./layers.SulLxOdh.js");var xt=function(){var e=function(K,n,r,l){for(r=r||{},l=K.length;l--;r[K[l]]=n);return r},s=[1,3],h=[1,4],x=[1,5],g=[1,6],u=[1,7],d=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],p=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],i=[32,33,34],q=[2,7],y=[1,13],B=[1,17],N=[1,18],V=[1,19],I=[1,20],b=[1,21],H=[1,22],M=[1,23],z=[1,24],it=[1,25],at=[1,26],nt=[1,27],U=[1,30],$=[1,31],_=[1,32],A=[1,33],m=[1,34],t=[1,35],S=[1,36],k=[1,37],F=[1,38],P=[1,39],v=[1,40],C=[1,41],L=[1,42],X=[1,57],O=[1,58],E=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],ot={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(n,r,l,o,T,a,et){var f=a.length-1;switch(T){case 12:this.$=a[f].trim(),o.setDiagramTitle(this.$);break;case 13:this.$=a[f].trim(),o.setAccTitle(this.$);break;case 14:case 15:this.$=a[f].trim(),o.setAccDescription(this.$);break;case 16:o.addSection(a[f].substr(8)),this.$=a[f].substr(8);break;case 17:o.addPoint(a[f-3],a[f-1],a[f]);break;case 18:o.setXAxisLeftText(a[f-2]),o.setXAxisRightText(a[f]);break;case 19:a[f-1].text+=" ⟶ ",o.setXAxisLeftText(a[f-1]);break;case 20:o.setXAxisLeftText(a[f]);break;case 21:o.setYAxisBottomText(a[f-2]),o.setYAxisTopText(a[f]);break;case 22:a[f-1].text+=" ⟶ ",o.setYAxisBottomText(a[f-1]);break;case 23:o.setYAxisBottomText(a[f]);break;case 24:o.setQuadrant1Text(a[f]);break;case 25:o.setQuadrant2Text(a[f]);break;case 26:o.setQuadrant3Text(a[f]);break;case 27:o.setQuadrant4Text(a[f]);break;case 31:this.$={text:a[f],type:"text"};break;case 32:this.$={text:a[f-1].text+""+a[f],type:a[f-1].type};break;case 33:this.$={text:a[f],type:"text"};break;case 34:this.$={text:a[f],type:"markdown"};break;case 35:this.$=a[f];break;case 36:this.$=a[f-1]+""+a[f];break}},table:[{3:1,4:2,5:s,6:h,32:x,33:g,34:u},{1:[3]},{3:8,4:2,5:s,6:h,32:x,33:g,34:u},{3:9,4:2,5:s,6:h,32:x,33:g,34:u},e(d,[2,4],{7:10}),e(p,[2,28]),e(p,[2,29]),e(p,[2,30]),{1:[2,1]},{1:[2,2]},e(i,q,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:y,13:B,15:N,17:V,19:I,20:b,25:H,27:M,28:z,29:it,30:at,31:nt,37:U,38:$,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L}),e(d,[2,5]),{4:43,32:x,33:g,34:u},e(i,q,{10:14,11:15,12:16,21:28,35:29,9:44,5:y,13:B,15:N,17:V,19:I,20:b,25:H,27:M,28:z,29:it,30:at,31:nt,37:U,38:$,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L}),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},e(i,[2,15]),e(i,[2,16]),{21:48,35:29,37:U,38:$,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L},{21:49,35:29,37:U,38:$,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L},{21:50,35:29,37:U,38:$,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L},{21:51,35:29,37:U,38:$,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L},{21:52,35:29,37:U,38:$,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L},{21:53,35:29,37:U,38:$,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L},{5:X,22:[1,54],35:56,36:55,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L,51:O},e(E,[2,31]),e(E,[2,33]),e(E,[2,34]),e(E,[2,37]),e(E,[2,38]),e(E,[2,39]),e(E,[2,40]),e(E,[2,41]),e(E,[2,42]),e(E,[2,43]),e(E,[2,44]),e(E,[2,45]),e(E,[2,46]),e(E,[2,47]),e(d,[2,6]),e(i,[2,8]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,20],{36:55,35:56,5:X,26:[1,59],40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L,51:O}),e(i,[2,23],{36:55,35:56,5:X,26:[1,60],40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L,51:O}),e(i,[2,24],{36:55,35:56,5:X,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L,51:O}),e(i,[2,25],{36:55,35:56,5:X,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L,51:O}),e(i,[2,26],{36:55,35:56,5:X,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L,51:O}),e(i,[2,27],{36:55,35:56,5:X,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L,51:O}),{23:[1,61]},e(E,[2,32]),e(E,[2,48]),e(E,[2,49]),e(E,[2,50]),e(i,[2,19],{35:29,21:62,37:U,38:$,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L}),e(i,[2,22],{35:29,21:63,37:U,38:$,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L}),{24:[1,64]},e(i,[2,18],{36:55,35:56,5:X,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L,51:O}),e(i,[2,21],{36:55,35:56,5:X,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L,51:O}),e(i,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(n,r){if(r.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=r,l}},parse:function(n){var r=this,l=[0],o=[],T=[null],a=[],et=this.table,f="",st=0,gt=0,_t=2,pt=1,mt=a.slice.call(arguments,1),D=Object.create(this.lexer),Z={yy:{}};for(var ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ht)&&(Z.yy[ht]=this.yy[ht]);D.setInput(n,Z.yy),Z.yy.lexer=D,Z.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var dt=D.yylloc;a.push(dt);var At=D.options&&D.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function bt(){var j;return j=o.pop()||D.lex()||pt,typeof j!="number"&&(j instanceof Array&&(o=j,j=o.pop()),j=r.symbols_[j]||j),j}for(var W,J,Q,ut,tt={},rt,Y,yt,lt;;){if(J=l[l.length-1],this.defaultActions[J]?Q=this.defaultActions[J]:((W===null||typeof W>"u")&&(W=bt()),Q=et[J]&&et[J][W]),typeof Q>"u"||!Q.length||!Q[0]){var ft="";lt=[];for(rt in et[J])this.terminals_[rt]&&rt>_t&<.push("'"+this.terminals_[rt]+"'");D.showPosition?ft="Parse error on line "+(st+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+lt.join(", ")+", got '"+(this.terminals_[W]||W)+"'":ft="Parse error on line "+(st+1)+": Unexpected "+(W==pt?"end of input":"'"+(this.terminals_[W]||W)+"'"),this.parseError(ft,{text:D.match,token:this.terminals_[W]||W,line:D.yylineno,loc:dt,expected:lt})}if(Q[0]instanceof Array&&Q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+W);switch(Q[0]){case 1:l.push(W),T.push(D.yytext),a.push(D.yylloc),l.push(Q[1]),W=null,gt=D.yyleng,f=D.yytext,st=D.yylineno,dt=D.yylloc;break;case 2:if(Y=this.productions_[Q[1]][1],tt.$=T[T.length-Y],tt._$={first_line:a[a.length-(Y||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(Y||1)].first_column,last_column:a[a.length-1].last_column},At&&(tt._$.range=[a[a.length-(Y||1)].range[0],a[a.length-1].range[1]]),ut=this.performAction.apply(tt,[f,gt,st,Z.yy,Q[1],T,a].concat(mt)),typeof ut<"u")return ut;Y&&(l=l.slice(0,-1*Y*2),T=T.slice(0,-1*Y),a=a.slice(0,-1*Y)),l.push(this.productions_[Q[1]][0]),T.push(tt.$),a.push(tt._$),yt=et[l[l.length-2]][l[l.length-1]],l.push(yt);break;case 3:return!0}}return!0}},Tt=function(){var K={EOF:1,parseError:function(r,l){if(this.yy.parser)this.yy.parser.parseError(r,l);else throw new Error(r)},setInput:function(n,r){return this.yy=r||this.yy||{},this._input=n,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},input:function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var r=n.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var r=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var o=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),l.length-1&&(this.yylineno-=l.length-1);var T=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:l?(l.length===o.length?this.yylloc.first_column:0)+o[o.length-l.length].length-l[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),r=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
|
5
5
|
`+r+"^"},test_match:function(n,r){var l,o,T;if(this.options.backtrack_lexer&&(T={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(T.yylloc.range=this.yylloc.range.slice(0))),o=n[0].match(/(?:\r\n?|\n).*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],l=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var a in T)this[a]=T[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,r,l,o;this._more||(this.yytext="",this.match="");for(var T=this._currentRules(),a=0;a<T.length;a++)if(l=this._input.match(this.rules[T[a]]),l&&(!r||l[0].length>r[0].length)){if(r=l,o=a,this.options.backtrack_lexer){if(n=this.test_match(l,T[a]),n!==!1)return n;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(n=this.test_match(r,T[o]),n!==!1?n:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,l,o,T){switch(o){case 0:break;case 1:break;case 2:return 32;case 3:break;case 4:return this.begin("title"),13;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),15;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),17;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 25;case 14:return 27;case 15:return 26;case 16:return 28;case 17:return 29;case 18:return 30;case 19:return 31;case 20:this.begin("md_string");break;case 21:return"MD_STR";case 22:this.popState();break;case 23:this.begin("string");break;case 24:this.popState();break;case 25:return"STR";case 26:return this.begin("point_start"),22;case 27:return this.begin("point_x"),23;case 28:this.popState();break;case 29:this.popState(),this.begin("point_y");break;case 30:return this.popState(),24;case 31:return 6;case 32:return 43;case 33:return"COLON";case 34:return 45;case 35:return 44;case 36:return 46;case 37:return 46;case 38:return 47;case 39:return 49;case 40:return 50;case 41:return 48;case 42:return 41;case 43:return 51;case 44:return 42;case 45:return 5;case 46:return 33;case 47:return 40;case 48:return 34}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{point_y:{rules:[30],inclusive:!1},point_x:{rules:[29],inclusive:!1},point_start:{rules:[27,28],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[21,22],inclusive:!1},string:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,23,26,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};return K}();ot.lexer=Tt;function ct(){this.yy={}}return ct.prototype=ot,ot.Parser=ct,new ct}();xt.parser=xt;const St=xt,R=c.getThemeVariables$2();class kt{constructor(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var s,h,x,g,u,d,p,i,q,y,B,N,V,I,b,H,M,z;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((s=c.defaultConfig$2.quadrantChart)==null?void 0:s.chartWidth)||500,chartWidth:((h=c.defaultConfig$2.quadrantChart)==null?void 0:h.chartHeight)||500,titlePadding:((x=c.defaultConfig$2.quadrantChart)==null?void 0:x.titlePadding)||10,titleFontSize:((g=c.defaultConfig$2.quadrantChart)==null?void 0:g.titleFontSize)||20,quadrantPadding:((u=c.defaultConfig$2.quadrantChart)==null?void 0:u.quadrantPadding)||5,xAxisLabelPadding:((d=c.defaultConfig$2.quadrantChart)==null?void 0:d.xAxisLabelPadding)||5,yAxisLabelPadding:((p=c.defaultConfig$2.quadrantChart)==null?void 0:p.yAxisLabelPadding)||5,xAxisLabelFontSize:((i=c.defaultConfig$2.quadrantChart)==null?void 0:i.xAxisLabelFontSize)||16,yAxisLabelFontSize:((q=c.defaultConfig$2.quadrantChart)==null?void 0:q.yAxisLabelFontSize)||16,quadrantLabelFontSize:((y=c.defaultConfig$2.quadrantChart)==null?void 0:y.quadrantLabelFontSize)||16,quadrantTextTopPadding:((B=c.defaultConfig$2.quadrantChart)==null?void 0:B.quadrantTextTopPadding)||5,pointTextPadding:((N=c.defaultConfig$2.quadrantChart)==null?void 0:N.pointTextPadding)||5,pointLabelFontSize:((V=c.defaultConfig$2.quadrantChart)==null?void 0:V.pointLabelFontSize)||12,pointRadius:((I=c.defaultConfig$2.quadrantChart)==null?void 0:I.pointRadius)||5,xAxisPosition:((b=c.defaultConfig$2.quadrantChart)==null?void 0:b.xAxisPosition)||"top",yAxisPosition:((H=c.defaultConfig$2.quadrantChart)==null?void 0:H.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:((M=c.defaultConfig$2.quadrantChart)==null?void 0:M.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:((z=c.defaultConfig$2.quadrantChart)==null?void 0:z.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:R.quadrant1Fill,quadrant2Fill:R.quadrant2Fill,quadrant3Fill:R.quadrant3Fill,quadrant4Fill:R.quadrant4Fill,quadrant1TextFill:R.quadrant1TextFill,quadrant2TextFill:R.quadrant2TextFill,quadrant3TextFill:R.quadrant3TextFill,quadrant4TextFill:R.quadrant4TextFill,quadrantPointFill:R.quadrantPointFill,quadrantPointTextFill:R.quadrantPointTextFill,quadrantXAxisTextFill:R.quadrantXAxisTextFill,quadrantYAxisTextFill:R.quadrantYAxisTextFill,quadrantTitleFill:R.quadrantTitleFill,quadrantInternalBorderStrokeFill:R.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:R.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),c.log$1.info("clear called")}setData(s){this.data={...this.data,...s}}addPoints(s){this.data.points=[...s,...this.data.points]}setConfig(s){c.log$1.trace("setConfig called with: ",s),this.config={...this.config,...s}}setThemeConfig(s){c.log$1.trace("setThemeConfig called with: ",s),this.themeConfig={...this.themeConfig,...s}}calculateSpace(s,h,x,g){const u=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,d={top:s==="top"&&h?u:0,bottom:s==="bottom"&&h?u:0},p=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,i={left:this.config.yAxisPosition==="left"&&x?p:0,right:this.config.yAxisPosition==="right"&&x?p:0},q=this.config.titleFontSize+this.config.titlePadding*2,y={top:g?q:0},B=this.config.quadrantPadding+i.left,N=this.config.quadrantPadding+d.top+y.top,V=this.config.chartWidth-this.config.quadrantPadding*2-i.left-i.right,I=this.config.chartHeight-this.config.quadrantPadding*2-d.top-d.bottom-y.top,b=V/2,H=I/2;return{xAxisSpace:d,yAxisSpace:i,titleSpace:y,quadrantSpace:{quadrantLeft:B,quadrantTop:N,quadrantWidth:V,quadrantHalfWidth:b,quadrantHeight:I,quadrantHalfHeight:H}}}getAxisLabels(s,h,x,g){const{quadrantSpace:u,titleSpace:d}=g,{quadrantHalfHeight:p,quadrantHeight:i,quadrantLeft:q,quadrantHalfWidth:y,quadrantTop:B,quadrantWidth:N}=u,V=!!this.data.xAxisRightText,I=!!this.data.yAxisTopText,b=[];return this.data.xAxisLeftText&&h&&b.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:q+(V?y/2:0),y:s==="top"?this.config.xAxisLabelPadding+d.top:this.config.xAxisLabelPadding+B+i+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:V?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&h&&b.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:q+y+(V?y/2:0),y:s==="top"?this.config.xAxisLabelPadding+d.top:this.config.xAxisLabelPadding+B+i+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:V?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&x&&b.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+q+N+this.config.quadrantPadding,y:B+i-(I?p/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:I?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&x&&b.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+q+N+this.config.quadrantPadding,y:B+p-(I?p/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:I?"center":"left",horizontalPos:"top",rotation:-90}),b}getQuadrants(s){const{quadrantSpace:h}=s,{quadrantHalfHeight:x,quadrantLeft:g,quadrantHalfWidth:u,quadrantTop:d}=h,p=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:g+u,y:d,width:u,height:x,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:g,y:d,width:u,height:x,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:g,y:d+x,width:u,height:x,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:g+u,y:d+x,width:u,height:x,fill:this.themeConfig.quadrant4Fill}];for(const i of p)i.text.x=i.x+i.width/2,this.data.points.length===0?(i.text.y=i.y+i.height/2,i.text.horizontalPos="middle"):(i.text.y=i.y+this.config.quadrantTextTopPadding,i.text.horizontalPos="top");return p}getQuadrantPoints(s){const{quadrantSpace:h}=s,{quadrantHeight:x,quadrantLeft:g,quadrantTop:u,quadrantWidth:d}=h,p=qt.linear().domain([0,1]).range([g,d+g]),i=qt.linear().domain([0,1]).range([x+u,u]);return this.data.points.map(y=>({x:p(y.x),y:i(y.y),fill:this.themeConfig.quadrantPointFill,radius:this.config.pointRadius,text:{text:y.text,fill:this.themeConfig.quadrantPointTextFill,x:p(y.x),y:i(y.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0}}))}getBorders(s){const h=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:x}=s,{quadrantHalfHeight:g,quadrantHeight:u,quadrantLeft:d,quadrantHalfWidth:p,quadrantTop:i,quadrantWidth:q}=x;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:d-h,y1:i,x2:d+q+h,y2:i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:d+q,y1:i+h,x2:d+q,y2:i+u-h},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:d-h,y1:i+u,x2:d+q+h,y2:i+u},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:d,y1:i+h,x2:d,y2:i+u-h},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:d+p,y1:i+h,x2:d+p,y2:i+u-h},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:d+h,y1:i+g,x2:d+q-h,y2:i+g}]}getTitle(s){if(s)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const s=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),h=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),x=this.config.showTitle&&!!this.data.titleText,g=this.data.points.length>0?"bottom":this.config.xAxisPosition,u=this.calculateSpace(g,s,h,x);return{points:this.getQuadrantPoints(u),quadrants:this.getQuadrants(u),axisLabels:this.getAxisLabels(g,s,h,u),borderLines:this.getBorders(u),title:this.getTitle(x)}}}const Ft=c.getConfig();function G(e){return c.sanitizeText$2(e.trim(),Ft)}const w=new kt;function Pt(e){w.setData({quadrant1Text:G(e.text)})}function Ct(e){w.setData({quadrant2Text:G(e.text)})}function vt(e){w.setData({quadrant3Text:G(e.text)})}function Lt(e){w.setData({quadrant4Text:G(e.text)})}function zt(e){w.setData({xAxisLeftText:G(e.text)})}function Et(e){w.setData({xAxisRightText:G(e.text)})}function Dt(e){w.setData({yAxisTopText:G(e.text)})}function It(e){w.setData({yAxisBottomText:G(e.text)})}function Bt(e,s,h){w.addPoints([{x:s,y:h,text:G(e.text)}])}function wt(e){w.setConfig({chartWidth:e})}function Rt(e){w.setConfig({chartHeight:e})}function Vt(){const e=c.getConfig(),{themeVariables:s,quadrantChart:h}=e;return h&&w.setConfig(h),w.setThemeConfig({quadrant1Fill:s.quadrant1Fill,quadrant2Fill:s.quadrant2Fill,quadrant3Fill:s.quadrant3Fill,quadrant4Fill:s.quadrant4Fill,quadrant1TextFill:s.quadrant1TextFill,quadrant2TextFill:s.quadrant2TextFill,quadrant3TextFill:s.quadrant3TextFill,quadrant4TextFill:s.quadrant4TextFill,quadrantPointFill:s.quadrantPointFill,quadrantPointTextFill:s.quadrantPointTextFill,quadrantXAxisTextFill:s.quadrantXAxisTextFill,quadrantYAxisTextFill:s.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:s.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:s.quadrantInternalBorderStrokeFill,quadrantTitleFill:s.quadrantTitleFill}),w.setData({titleText:c.getDiagramTitle()}),w.build()}const Wt=function(){w.clear(),c.clear()},Nt={setWidth:wt,setHeight:Rt,setQuadrant1Text:Pt,setQuadrant2Text:Ct,setQuadrant3Text:vt,setQuadrant4Text:Lt,setXAxisLeftText:zt,setXAxisRightText:Et,setYAxisTopText:Dt,setYAxisBottomText:It,addPoint:Bt,getQuadrantData:Vt,clear:Wt,setAccTitle:c.setAccTitle,getAccTitle:c.getAccTitle,setDiagramTitle:c.setDiagramTitle,getDiagramTitle:c.getDiagramTitle,getAccDescription:c.getAccDescription,setAccDescription:c.setAccDescription},Ut=(e,s,h,x)=>{var g,u,d;function p(t){return t==="top"?"hanging":"middle"}function i(t){return t==="left"?"start":"middle"}function q(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}const y=c.getConfig();c.log$1.debug(`Rendering quadrant chart
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,l,o,T){switch(o){case 0:break;case 1:break;case 2:return 32;case 3:break;case 4:return this.begin("title"),13;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),15;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),17;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 25;case 14:return 27;case 15:return 26;case 16:return 28;case 17:return 29;case 18:return 30;case 19:return 31;case 20:this.begin("md_string");break;case 21:return"MD_STR";case 22:this.popState();break;case 23:this.begin("string");break;case 24:this.popState();break;case 25:return"STR";case 26:return this.begin("point_start"),22;case 27:return this.begin("point_x"),23;case 28:this.popState();break;case 29:this.popState(),this.begin("point_y");break;case 30:return this.popState(),24;case 31:return 6;case 32:return 43;case 33:return"COLON";case 34:return 45;case 35:return 44;case 36:return 46;case 37:return 46;case 38:return 47;case 39:return 49;case 40:return 50;case 41:return 48;case 42:return 41;case 43:return 51;case 44:return 42;case 45:return 5;case 46:return 33;case 47:return 40;case 48:return 34}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{point_y:{rules:[30],inclusive:!1},point_x:{rules:[29],inclusive:!1},point_start:{rules:[27,28],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[21,22],inclusive:!1},string:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,23,26,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};return K}();ot.lexer=Tt;function ct(){this.yy={}}return ct.prototype=ot,ot.Parser=ct,new ct}();xt.parser=xt;const St=xt,R=c.getThemeVariables$2();class kt{constructor(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var s,h,x,g,u,d,p,i,q,y,B,N,V,I,b,H,M,z;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((s=c.defaultConfig$2.quadrantChart)==null?void 0:s.chartWidth)||500,chartWidth:((h=c.defaultConfig$2.quadrantChart)==null?void 0:h.chartHeight)||500,titlePadding:((x=c.defaultConfig$2.quadrantChart)==null?void 0:x.titlePadding)||10,titleFontSize:((g=c.defaultConfig$2.quadrantChart)==null?void 0:g.titleFontSize)||20,quadrantPadding:((u=c.defaultConfig$2.quadrantChart)==null?void 0:u.quadrantPadding)||5,xAxisLabelPadding:((d=c.defaultConfig$2.quadrantChart)==null?void 0:d.xAxisLabelPadding)||5,yAxisLabelPadding:((p=c.defaultConfig$2.quadrantChart)==null?void 0:p.yAxisLabelPadding)||5,xAxisLabelFontSize:((i=c.defaultConfig$2.quadrantChart)==null?void 0:i.xAxisLabelFontSize)||16,yAxisLabelFontSize:((q=c.defaultConfig$2.quadrantChart)==null?void 0:q.yAxisLabelFontSize)||16,quadrantLabelFontSize:((y=c.defaultConfig$2.quadrantChart)==null?void 0:y.quadrantLabelFontSize)||16,quadrantTextTopPadding:((B=c.defaultConfig$2.quadrantChart)==null?void 0:B.quadrantTextTopPadding)||5,pointTextPadding:((N=c.defaultConfig$2.quadrantChart)==null?void 0:N.pointTextPadding)||5,pointLabelFontSize:((V=c.defaultConfig$2.quadrantChart)==null?void 0:V.pointLabelFontSize)||12,pointRadius:((I=c.defaultConfig$2.quadrantChart)==null?void 0:I.pointRadius)||5,xAxisPosition:((b=c.defaultConfig$2.quadrantChart)==null?void 0:b.xAxisPosition)||"top",yAxisPosition:((H=c.defaultConfig$2.quadrantChart)==null?void 0:H.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:((M=c.defaultConfig$2.quadrantChart)==null?void 0:M.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:((z=c.defaultConfig$2.quadrantChart)==null?void 0:z.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:R.quadrant1Fill,quadrant2Fill:R.quadrant2Fill,quadrant3Fill:R.quadrant3Fill,quadrant4Fill:R.quadrant4Fill,quadrant1TextFill:R.quadrant1TextFill,quadrant2TextFill:R.quadrant2TextFill,quadrant3TextFill:R.quadrant3TextFill,quadrant4TextFill:R.quadrant4TextFill,quadrantPointFill:R.quadrantPointFill,quadrantPointTextFill:R.quadrantPointTextFill,quadrantXAxisTextFill:R.quadrantXAxisTextFill,quadrantYAxisTextFill:R.quadrantYAxisTextFill,quadrantTitleFill:R.quadrantTitleFill,quadrantInternalBorderStrokeFill:R.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:R.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),c.log$1.info("clear called")}setData(s){this.data={...this.data,...s}}addPoints(s){this.data.points=[...s,...this.data.points]}setConfig(s){c.log$1.trace("setConfig called with: ",s),this.config={...this.config,...s}}setThemeConfig(s){c.log$1.trace("setThemeConfig called with: ",s),this.themeConfig={...this.themeConfig,...s}}calculateSpace(s,h,x,g){const u=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,d={top:s==="top"&&h?u:0,bottom:s==="bottom"&&h?u:0},p=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,i={left:this.config.yAxisPosition==="left"&&x?p:0,right:this.config.yAxisPosition==="right"&&x?p:0},q=this.config.titleFontSize+this.config.titlePadding*2,y={top:g?q:0},B=this.config.quadrantPadding+i.left,N=this.config.quadrantPadding+d.top+y.top,V=this.config.chartWidth-this.config.quadrantPadding*2-i.left-i.right,I=this.config.chartHeight-this.config.quadrantPadding*2-d.top-d.bottom-y.top,b=V/2,H=I/2;return{xAxisSpace:d,yAxisSpace:i,titleSpace:y,quadrantSpace:{quadrantLeft:B,quadrantTop:N,quadrantWidth:V,quadrantHalfWidth:b,quadrantHeight:I,quadrantHalfHeight:H}}}getAxisLabels(s,h,x,g){const{quadrantSpace:u,titleSpace:d}=g,{quadrantHalfHeight:p,quadrantHeight:i,quadrantLeft:q,quadrantHalfWidth:y,quadrantTop:B,quadrantWidth:N}=u,V=!!this.data.xAxisRightText,I=!!this.data.yAxisTopText,b=[];return this.data.xAxisLeftText&&h&&b.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:q+(V?y/2:0),y:s==="top"?this.config.xAxisLabelPadding+d.top:this.config.xAxisLabelPadding+B+i+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:V?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&h&&b.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:q+y+(V?y/2:0),y:s==="top"?this.config.xAxisLabelPadding+d.top:this.config.xAxisLabelPadding+B+i+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:V?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&x&&b.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+q+N+this.config.quadrantPadding,y:B+i-(I?p/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:I?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&x&&b.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+q+N+this.config.quadrantPadding,y:B+p-(I?p/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:I?"center":"left",horizontalPos:"top",rotation:-90}),b}getQuadrants(s){const{quadrantSpace:h}=s,{quadrantHalfHeight:x,quadrantLeft:g,quadrantHalfWidth:u,quadrantTop:d}=h,p=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:g+u,y:d,width:u,height:x,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:g,y:d,width:u,height:x,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:g,y:d+x,width:u,height:x,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:g+u,y:d+x,width:u,height:x,fill:this.themeConfig.quadrant4Fill}];for(const i of p)i.text.x=i.x+i.width/2,this.data.points.length===0?(i.text.y=i.y+i.height/2,i.text.horizontalPos="middle"):(i.text.y=i.y+this.config.quadrantTextTopPadding,i.text.horizontalPos="top");return p}getQuadrantPoints(s){const{quadrantSpace:h}=s,{quadrantHeight:x,quadrantLeft:g,quadrantTop:u,quadrantWidth:d}=h,p=qt.linear().domain([0,1]).range([g,d+g]),i=qt.linear().domain([0,1]).range([x+u,u]);return this.data.points.map(y=>({x:p(y.x),y:i(y.y),fill:this.themeConfig.quadrantPointFill,radius:this.config.pointRadius,text:{text:y.text,fill:this.themeConfig.quadrantPointTextFill,x:p(y.x),y:i(y.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0}}))}getBorders(s){const h=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:x}=s,{quadrantHalfHeight:g,quadrantHeight:u,quadrantLeft:d,quadrantHalfWidth:p,quadrantTop:i,quadrantWidth:q}=x;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:d-h,y1:i,x2:d+q+h,y2:i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:d+q,y1:i+h,x2:d+q,y2:i+u-h},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:d-h,y1:i+u,x2:d+q+h,y2:i+u},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:d,y1:i+h,x2:d,y2:i+u-h},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:d+p,y1:i+h,x2:d+p,y2:i+u-h},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:d+h,y1:i+g,x2:d+q-h,y2:i+g}]}getTitle(s){if(s)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const s=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),h=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),x=this.config.showTitle&&!!this.data.titleText,g=this.data.points.length>0?"bottom":this.config.xAxisPosition,u=this.calculateSpace(g,s,h,x);return{points:this.getQuadrantPoints(u),quadrants:this.getQuadrants(u),axisLabels:this.getAxisLabels(g,s,h,u),borderLines:this.getBorders(u),title:this.getTitle(x)}}}const Ft=c.getConfig();function G(e){return c.sanitizeText$2(e.trim(),Ft)}const w=new kt;function Pt(e){w.setData({quadrant1Text:G(e.text)})}function vt(e){w.setData({quadrant2Text:G(e.text)})}function Ct(e){w.setData({quadrant3Text:G(e.text)})}function Lt(e){w.setData({quadrant4Text:G(e.text)})}function zt(e){w.setData({xAxisLeftText:G(e.text)})}function Et(e){w.setData({xAxisRightText:G(e.text)})}function Dt(e){w.setData({yAxisTopText:G(e.text)})}function It(e){w.setData({yAxisBottomText:G(e.text)})}function Bt(e,s,h){w.addPoints([{x:s,y:h,text:G(e.text)}])}function wt(e){w.setConfig({chartWidth:e})}function Rt(e){w.setConfig({chartHeight:e})}function Vt(){const e=c.getConfig(),{themeVariables:s,quadrantChart:h}=e;return h&&w.setConfig(h),w.setThemeConfig({quadrant1Fill:s.quadrant1Fill,quadrant2Fill:s.quadrant2Fill,quadrant3Fill:s.quadrant3Fill,quadrant4Fill:s.quadrant4Fill,quadrant1TextFill:s.quadrant1TextFill,quadrant2TextFill:s.quadrant2TextFill,quadrant3TextFill:s.quadrant3TextFill,quadrant4TextFill:s.quadrant4TextFill,quadrantPointFill:s.quadrantPointFill,quadrantPointTextFill:s.quadrantPointTextFill,quadrantXAxisTextFill:s.quadrantXAxisTextFill,quadrantYAxisTextFill:s.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:s.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:s.quadrantInternalBorderStrokeFill,quadrantTitleFill:s.quadrantTitleFill}),w.setData({titleText:c.getDiagramTitle()}),w.build()}const Wt=function(){w.clear(),c.clear()},Nt={setWidth:wt,setHeight:Rt,setQuadrant1Text:Pt,setQuadrant2Text:vt,setQuadrant3Text:Ct,setQuadrant4Text:Lt,setXAxisLeftText:zt,setXAxisRightText:Et,setYAxisTopText:Dt,setYAxisBottomText:It,addPoint:Bt,getQuadrantData:Vt,clear:Wt,setAccTitle:c.setAccTitle,getAccTitle:c.getAccTitle,setDiagramTitle:c.setDiagramTitle,getDiagramTitle:c.getDiagramTitle,getAccDescription:c.getAccDescription,setAccDescription:c.setAccDescription},Ut=(e,s,h,x)=>{var g,u,d;function p(t){return t==="top"?"hanging":"middle"}function i(t){return t==="left"?"start":"middle"}function q(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}const y=c.getConfig();c.log$1.debug(`Rendering quadrant chart
|
|
7
7
|
`+e);const B=y.securityLevel;let N;B==="sandbox"&&(N=c.select("#i"+s));const I=(B==="sandbox"?c.select(N.nodes()[0].contentDocument.body):c.select("body")).select(`[id="${s}"]`),b=I.append("g").attr("class","main"),H=((g=y.quadrantChart)==null?void 0:g.chartWidth)||500,M=((u=y.quadrantChart)==null?void 0:u.chartHeight)||500;c.configureSvgSize(I,M,H,((d=y.quadrantChart)==null?void 0:d.useMaxWidth)||!0),I.attr("viewBox","0 0 "+H+" "+M),x.db.setHeight(M),x.db.setWidth(H);const z=x.db.getQuadrantData(),it=b.append("g").attr("class","quadrants"),at=b.append("g").attr("class","border"),nt=b.append("g").attr("class","data-points"),U=b.append("g").attr("class","labels"),$=b.append("g").attr("class","title");z.title&&$.append("text").attr("x",0).attr("y",0).attr("fill",z.title.fill).attr("font-size",z.title.fontSize).attr("dominant-baseline",p(z.title.horizontalPos)).attr("text-anchor",i(z.title.verticalPos)).attr("transform",q(z.title)).text(z.title.text),z.borderLines&&at.selectAll("line").data(z.borderLines).enter().append("line").attr("x1",t=>t.x1).attr("y1",t=>t.y1).attr("x2",t=>t.x2).attr("y2",t=>t.y2).style("stroke",t=>t.strokeFill).style("stroke-width",t=>t.strokeWidth);const _=it.selectAll("g.quadrant").data(z.quadrants).enter().append("g").attr("class","quadrant");_.append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill),_.append("text").attr("x",0).attr("y",0).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>p(t.text.horizontalPos)).attr("text-anchor",t=>i(t.text.verticalPos)).attr("transform",t=>q(t.text)).text(t=>t.text.text),U.selectAll("g.label").data(z.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(t=>t.text).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>p(t.horizontalPos)).attr("text-anchor",t=>i(t.verticalPos)).attr("transform",t=>q(t));const m=nt.selectAll("g.data-point").data(z.points).enter().append("g").attr("class","data-point");m.append("circle").attr("cx",t=>t.x).attr("cy",t=>t.y).attr("r",t=>t.radius).attr("fill",t=>t.fill),m.append("text").attr("x",0).attr("y",0).text(t=>t.text.text).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>p(t.text.horizontalPos)).attr("text-anchor",t=>i(t.text.verticalPos)).attr("transform",t=>q(t.text))},$t={draw:Ut},Qt={parser:St,db:Nt,renderer:$t,styles:()=>""};exports.diagram=Qt;
|