@layers-app/editor 0.7.18 → 0.7.20
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 +2 -2
- package/dist/index.d.ts +77 -1
- package/dist/index.js +15 -9
- package/dist/layers.-pxItkuK.js +11 -0
- package/dist/layers.4783bPvO.js +39 -0
- package/dist/layers.4XOTUH37.js +1089 -0
- package/dist/layers.4peyl00A.js +2 -0
- package/dist/layers.4wAcqQtQ.js +423 -0
- package/dist/layers.4ykD0YcM.js +40 -0
- package/dist/layers.52famHy6.js +1 -0
- package/dist/layers.6Feq9YXQ.js +40 -0
- package/dist/layers.6GQPwq_6.js +960 -0
- package/dist/layers.7JqFgE4-.js +15 -0
- package/dist/layers.7wQbmwwB.js +1034 -0
- package/dist/layers.8JNx1FTq.js +35 -0
- package/dist/layers.8jhm9FEJ.js +10 -0
- package/dist/layers.8lNrKfca.js +41 -0
- package/dist/layers.9kQUqqYe.js +139 -0
- package/dist/layers.9pNaFvaX.js +1 -0
- package/dist/layers.AO3vHISA.js +33 -0
- package/dist/layers.Ab6Lx44l.js +129 -0
- package/dist/layers.B-w9_4cB.js +22 -0
- package/dist/layers.B0bpRgNT.js +122 -0
- package/dist/layers.B19hGmey.js +1 -0
- package/dist/layers.B2OK_mI8.js +1 -0
- package/dist/layers.B3D4g2HH.js +1 -0
- package/dist/layers.B3mzJc8P.js +907 -0
- package/dist/layers.B5YhL7Gw.js +40 -0
- package/dist/layers.B7K7JjK6.js +1510 -0
- package/dist/layers.B885pkJL.js +794 -0
- package/dist/layers.B961U-Vk.js +1 -0
- package/dist/layers.B9jATAXU.js +42 -0
- package/dist/layers.BAtv1CM7.js +1 -0
- package/dist/layers.BBv6P-Uu.js +37 -0
- package/dist/layers.BC6JEDP2.js +796 -0
- package/dist/layers.BEagxCE_.js +35 -0
- package/dist/layers.BH34WCDb.js +6 -0
- package/dist/layers.BIeVwYKL.js +1 -0
- package/dist/layers.BIkD0WQr.js +10 -0
- package/dist/layers.BIlhFIEz.js +37 -0
- package/dist/layers.BJDrjORS.js +244 -0
- package/dist/{layers.D99OBX9u.js → layers.BJLOp9cg.js} +88 -86
- package/dist/layers.BJsWSYrS.js +323 -0
- package/dist/layers.BKwcxD8A.js +5 -0
- package/dist/layers.BLd2spTm.js +1 -0
- package/dist/layers.BLv_frn1.js +10 -0
- package/dist/layers.BO2V23mI.js +1 -0
- package/dist/layers.BO_D4q5p.js +42 -0
- package/dist/layers.BP7EcZBZ.js +1 -0
- package/dist/layers.BP8OcU0T.js +10 -0
- package/dist/layers.BRaRY9tU.js +373 -0
- package/dist/layers.BSTBZrFn.js +1 -0
- package/dist/layers.BT2iHuSm.js +8 -0
- package/dist/layers.BU-tjKWq.js +33 -0
- package/dist/layers.BWEUOe94.js +40 -0
- package/dist/layers.BXAu7G4b.js +4 -0
- package/dist/layers.BZ9zcjtY.js +8 -0
- package/dist/layers.BZa5A6cg.js +425 -0
- package/dist/layers.BZlzQFiI.js +51 -0
- package/dist/layers.BagtOD0V.js +1 -0
- package/dist/layers.BbCfEXyj.js +55 -0
- package/dist/layers.Be94M_F4.js +7 -0
- package/dist/layers.BhdUQN6J.js +1583 -0
- package/dist/layers.Bj915C_T.js +5 -0
- package/dist/layers.BnHSrOPr.js +40 -0
- package/dist/layers.BngaRys_.js +8583 -0
- package/dist/layers.BoRvGzPp.js +1 -0
- package/dist/layers.Bob38w8X.js +5 -0
- package/dist/layers.BpTkSHkL.js +38 -0
- package/dist/layers.BpVR__4s.js +32 -0
- package/dist/layers.BpilXLfW.js +6 -0
- package/dist/layers.Br9HAzwf.js +2482 -0
- package/dist/layers.Bt7brqhi.js +116 -0
- package/dist/layers.BtqAfMks.js +1 -0
- package/dist/layers.BtvHse58.js +1 -0
- package/dist/layers.BwzogUnt.js +41 -0
- package/dist/layers.ByB5f2g3.js +7 -0
- package/dist/layers.ByipH4AB.js +207 -0
- package/dist/layers.BzC5N3hu.js +1619 -0
- package/dist/layers.C-KP-jFZ.js +8 -0
- package/dist/layers.C0iFGBoQ.js +213 -0
- package/dist/layers.C1AULvj_.js +40 -0
- package/dist/layers.C2f7uCzl.js +21620 -0
- package/dist/layers.C47t6lve.js +2 -0
- package/dist/layers.C4gRYt-z.js +9 -0
- package/dist/layers.C4nmPqDc.js +9 -0
- package/dist/layers.C5UKJ24R.js +271 -0
- package/dist/layers.C5qsYNKq.js +7 -0
- package/dist/layers.C70jnpZq.js +42 -0
- package/dist/layers.C7Qg5l_Q.js +5 -0
- package/dist/layers.C7v0beLV.js +9 -0
- package/dist/layers.C8_lu5UH.js +23 -0
- package/dist/layers.CAcCDIzK.js +32 -0
- package/dist/layers.CCWJVHwX.js +26946 -0
- package/dist/layers.CF2BAIC-.js +1 -0
- package/dist/layers.CFUGAgBV.js +805 -0
- package/dist/layers.CHZsXQcr.js +1 -0
- package/dist/layers.CIo6HbVI.js +37 -0
- package/dist/layers.CJaSQy6k.js +70 -0
- package/dist/layers.CJhFGqXY.js +1 -0
- package/dist/layers.CKU_klOZ.js +41 -0
- package/dist/layers.CKrtSnTU.js +7 -0
- package/dist/layers.CNoIsdHV.js +223 -0
- package/dist/layers.CQ-g_IO8.js +39 -0
- package/dist/layers.CRWtU7Vx.js +1268 -0
- package/dist/layers.CSattQNk.js +8 -0
- package/dist/layers.CT-8Geho.js +118 -0
- package/dist/layers.CWTjwUqI.js +9 -0
- package/dist/layers.CY3nuiOZ.js +39 -0
- package/dist/layers.CYDGmR2c.js +1 -0
- package/dist/layers.CYPtUh0S.js +36 -0
- package/dist/layers.CYjyWg9h.js +139 -0
- package/dist/layers.CZCoH1Jq.js +189 -0
- package/dist/layers.CZVe7Rrz.js +4 -0
- package/dist/layers.C_8NFZw0.js +84 -0
- package/dist/layers.C_IvrzZ3.js +7 -0
- package/dist/layers.C_vVmOaW.js +7 -0
- package/dist/layers.Cb3vLPzi.js +1 -0
- package/dist/layers.Cblg5KAJ.js +1286 -0
- package/dist/layers.CeUsnn-s.js +41 -0
- package/dist/layers.Cfwoj-CP.js +76 -0
- package/dist/layers.Cfxt2JbX.js +160 -0
- package/dist/layers.CjixIcYE.js +205 -0
- package/dist/layers.CliEt_s4.js +8 -0
- package/dist/layers.Cmumbtn4.js +11 -0
- package/dist/layers.Cnkh0zSn.js +5 -0
- package/dist/layers.Co0MEzNt.js +32 -0
- package/dist/layers.CpgPovn6.js +32 -0
- package/dist/layers.CqVTtuYm.js +6 -0
- package/dist/layers.Cr_8J_Ls.js +36 -0
- package/dist/layers.Cs7THreY.js +42 -0
- package/dist/layers.CtQHRQJd.js +65 -0
- package/dist/layers.Cuv2Lipq.js +10 -0
- package/dist/layers.Cuy--_Li.js +14 -0
- package/dist/layers.Cxrjuyke.js +38 -0
- package/dist/layers.Cxuu78R8.js +1 -0
- package/dist/layers.Cy_jbtrS.js +198 -0
- package/dist/layers.CyabQ7I1.js +40 -0
- package/dist/layers.CyqF5h2Z.js +1 -0
- package/dist/layers.Cyzu9PKQ.js +1 -0
- package/dist/layers.CzDyzzM2.js +36 -0
- package/dist/layers.D-LL79P8.js +32 -0
- package/dist/layers.D-uQN6e4.js +271 -0
- package/dist/layers.D00djYUT.js +9 -0
- package/dist/layers.D0zn4_Mx.js +1 -0
- package/dist/layers.D1PMEoqL.js +41 -0
- package/dist/layers.D1WSB9zI.js +806 -0
- package/dist/layers.D2dRxQww.js +10 -0
- package/dist/layers.D3KEnhiI.js +6 -0
- package/dist/layers.D3SlAvNp.js +934 -0
- package/dist/layers.D3eKKoAb.js +1 -0
- package/dist/layers.D4T8fTcj.js +1223 -0
- package/dist/layers.D7gfmd9A.js +36 -0
- package/dist/layers.D7jGxypv.js +8 -0
- package/dist/layers.DA1OUhKy.js +10 -0
- package/dist/layers.DB4o6Xfv.js +42 -0
- package/dist/layers.DBUjVgMd.js +1 -0
- package/dist/layers.DCkmUFPh.js +2966 -0
- package/dist/layers.DD4QPdYS.js +96 -0
- package/dist/layers.DE2Io1k7.js +295 -0
- package/dist/layers.DKnEcoKx.js +1088 -0
- package/dist/layers.DKsXm_hK.js +9 -0
- package/dist/layers.DLeGllIz.js +1 -0
- package/dist/layers.DLwuMfdd.js +84 -0
- package/dist/layers.DMkBISW1.js +1 -0
- package/dist/layers.DN9HoVxI.js +18 -0
- package/dist/layers.DOrgOHBr.js +1 -0
- package/dist/layers.DPipd7Yf.js +1 -0
- package/dist/layers.DQpNkl-s.js +39 -0
- package/dist/layers.DSNr6P6_.js +40 -0
- package/dist/layers.DWGLEZg1.js +34 -0
- package/dist/layers.DWxUDz1V.js +13 -0
- package/dist/layers.DYk9FILk.js +8 -0
- package/dist/layers.DZ3Nv-_j.js +8 -0
- package/dist/layers.DZGvjyDH.js +1 -0
- package/dist/layers.DZucH9TB.js +40 -0
- package/dist/layers.D__NkOsa.js +7 -0
- package/dist/layers.DbaKVP5e.js +1 -0
- package/dist/layers.DfkAyTyX.js +39 -0
- package/dist/layers.Dgie_iy2.js +772 -0
- package/dist/layers.DhHIDfZ5.js +1 -0
- package/dist/layers.Di-7t8Xt.js +6 -0
- package/dist/layers.DiPSTN4q.js +1 -0
- package/dist/layers.DjLIeP8d.js +257 -0
- package/dist/layers.DjUOC4st.js +16 -0
- package/dist/layers.Dk6h-6Wb.js +2 -0
- package/dist/layers.DkRR3p16.js +61 -0
- package/dist/layers.DnXxZJQo.js +48149 -0
- package/dist/layers.DpahuC02.js +6 -0
- package/dist/layers.Dpqc2FAN.js +40 -0
- package/dist/layers.DqScp2vq.js +1126 -0
- package/dist/layers.Dr1JRZ_S.js +4 -0
- package/dist/layers.DrTaVUsA.js +39 -0
- package/dist/layers.DrXLa4el.js +44 -0
- package/dist/layers.DtKxMd0g.js +4 -0
- package/dist/layers.DxA6ocdw.js +70 -0
- package/dist/layers.DxRZNwMP.js +1 -0
- package/dist/layers.Dy1naDTQ.js +14 -0
- package/dist/layers.FArKPCKA.js +21941 -0
- package/dist/layers.FXdB_jrR.js +9 -0
- package/dist/layers.GbuD0dtx.js +6 -0
- package/dist/layers.ILs-xE7i.js +11 -0
- package/dist/layers.JWCLFILJ.js +1 -0
- package/dist/layers.L9obQAvP.js +10 -0
- package/dist/layers.Lb5VQ9U4.js +504 -0
- package/dist/layers.MCy444Ia.js +41 -0
- package/dist/layers.QyDQqf0G.js +39 -0
- package/dist/layers.R4CPUhiF.js +8 -0
- package/dist/layers.R8mPlCA0.js +261 -0
- package/dist/layers.Sjtd5SpD.js +84 -0
- package/dist/layers.XlzBx5CM.js +437 -0
- package/dist/layers.YD8zq7G1.js +41 -0
- package/dist/layers.YWM6eRUH.js +1 -0
- package/dist/layers.a6EbdnVa.js +37 -0
- package/dist/layers.b0h5ZBmD.js +61 -0
- package/dist/layers.b9B2NY7n.js +11690 -0
- package/dist/layers.bS5nz97o.js +3 -0
- package/dist/layers.biaV5QcU.js +7 -0
- package/dist/layers.dxw35GiE.js +52 -0
- package/dist/layers.gFW_9pGM.js +1225 -0
- package/dist/layers.ge00jJfz.js +38 -0
- package/dist/layers.iryDeY19.js +9 -0
- package/dist/layers.jN02hLg8.js +7 -0
- package/dist/layers.jqEynR2I.js +8 -0
- package/dist/layers.lCpg7dOn.js +21 -0
- package/dist/layers.lIg0cncJ.js +39 -0
- package/dist/layers.lKk6bx4R.js +1 -0
- package/dist/layers.m4XcFQDd.js +6 -0
- package/dist/layers.m6FDW_ho.js +8 -0
- package/dist/layers.r6u8p96p.js +2238 -0
- package/dist/layers.rWob7btU.js +10 -0
- package/dist/layers.rYZbXo4d.js +32 -0
- package/dist/layers.sldWqHdD.js +11 -0
- package/dist/layers.tFqdqg82.js +10 -0
- package/dist/layers.v25uTBY8.js +39 -0
- package/dist/layers.wNarGMxP.js +9 -0
- package/dist/layers.wxYowcaq.js +41 -0
- package/dist/layers.xjN3ile4.js +9 -0
- package/dist/layers.yNlD-OCA.js +35 -0
- package/dist/layers.z-RuimGg.js +11 -0
- package/dist/layers.zvsP8spW.js +1 -0
- package/package.json +1 -1
- package/dist/layers.94hwidA2.js +0 -198
- package/dist/layers.B4l6ta1Q.js +0 -1
- package/dist/layers.BMrOAD_P.js +0 -1
- package/dist/layers.DOzLBYZr.js +0 -304
- package/dist/layers.YRyXopy_.js +0 -151
- package/dist/layers.usKC_Id5.js +0 -1
- package/dist/layers.zu-IYGYU.js +0 -47463
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("./layers.DD4QPdYS.js");require("./layers.Cy_jbtrS.js");require("lodash-es/memoize.js");require("lodash-es/merge.js");require("lodash-es/isEmpty.js");const Y=require("./layers.BtvHse58.js");var J=(function(){var n=function(f,i,r,c){for(r=r||{},c=f.length;c--;r[f[c]]=i);return r},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],s=[1,11],h=[1,12],l=[1,13],p=[1,16],y=[1,17],g={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline: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,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",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",20:"period",21:"event"},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,1],[9,1],[18,1],[19,1]],performAction:function(i,r,c,u,d,o,I){var b=o.length-1;switch(d){case 1:return o[b-1];case 2:this.$=[];break;case 3:o[b-1].push(o[b]),this.$=o[b-1];break;case 4:case 5:this.$=o[b];break;case 6:case 7:this.$=[];break;case 8:u.getCommonDb().setDiagramTitle(o[b].substr(6)),this.$=o[b].substr(6);break;case 9:this.$=o[b].trim(),u.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[b].trim(),u.getCommonDb().setAccDescription(this.$);break;case 12:u.addSection(o[b].substr(8)),this.$=o[b].substr(8);break;case 15:u.addTask(o[b],0,""),this.$=o[b];break;case 16:u.addEvent(o[b].substr(2)),this.$=o[b];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(i,r){if(r.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=r,c}},parse:function(i){var r=this,c=[0],u=[],d=[null],o=[],I=this.table,b="",$=0,W=0,C=2,P=1,B=o.slice.call(arguments,1),v=Object.create(this.lexer),S={yy:{}};for(var w in this.yy)Object.prototype.hasOwnProperty.call(this.yy,w)&&(S.yy[w]=this.yy[w]);v.setInput(i,S.yy),S.yy.lexer=v,S.yy.parser=this,typeof v.yylloc>"u"&&(v.yylloc={});var T=v.yylloc;o.push(T);var A=v.options&&v.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(){var M;return M=u.pop()||v.lex()||P,typeof M!="number"&&(M instanceof Array&&(u=M,M=u.pop()),M=r.symbols_[M]||M),M}for(var k,L,E,U,R={},O,N,X,j;;){if(L=c[c.length-1],this.defaultActions[L]?E=this.defaultActions[L]:((k===null||typeof k>"u")&&(k=z()),E=I[L]&&I[L][k]),typeof E>"u"||!E.length||!E[0]){var Z="";j=[];for(O in I[L])this.terminals_[O]&&O>C&&j.push("'"+this.terminals_[O]+"'");v.showPosition?Z="Parse error on line "+($+1)+`:
|
|
2
|
+
`+v.showPosition()+`
|
|
3
|
+
Expecting `+j.join(", ")+", got '"+(this.terminals_[k]||k)+"'":Z="Parse error on line "+($+1)+": Unexpected "+(k==P?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(Z,{text:v.match,token:this.terminals_[k]||k,line:v.yylineno,loc:T,expected:j})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+k);switch(E[0]){case 1:c.push(k),d.push(v.yytext),o.push(v.yylloc),c.push(E[1]),k=null,W=v.yyleng,b=v.yytext,$=v.yylineno,T=v.yylloc;break;case 2:if(N=this.productions_[E[1]][1],R.$=d[d.length-N],R._$={first_line:o[o.length-(N||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(N||1)].first_column,last_column:o[o.length-1].last_column},A&&(R._$.range=[o[o.length-(N||1)].range[0],o[o.length-1].range[1]]),U=this.performAction.apply(R,[b,W,$,S.yy,E[1],d,o].concat(B)),typeof U<"u")return U;N&&(c=c.slice(0,-1*N*2),d=d.slice(0,-1*N),o=o.slice(0,-1*N)),c.push(this.productions_[E[1]][0]),d.push(R.$),o.push(R._$),X=I[c[c.length-2]][c[c.length-1]],c.push(X);break;case 3:return!0}}return!0}},_=(function(){var f={EOF:1,parseError:function(r,c){if(this.yy.parser)this.yy.parser.parseError(r,c);else throw new Error(r)},setInput:function(i,r){return this.yy=r||this.yy||{},this._input=i,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 i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var r=i.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),i},unput:function(i){var r=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+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),c.length-1&&(this.yylineno-=c.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:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[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
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),r=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
5
|
+
`+r+"^"},test_match:function(i,r){var c,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=i[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+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,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(i[0].length),this.matched+=i[0],c=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;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 i,r,c,u;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),o=0;o<d.length;o++)if(c=this._input.match(this.rules[d[o]]),c&&(!r||c[0].length>r[0].length)){if(r=c,u=o,this.options.backtrack_lexer){if(i=this.test_match(c,d[o]),i!==!1)return i;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(i=this.test_match(r,d[u]),i!==!1?i:!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,c,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 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\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,/^(?::\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/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],inclusive:!0}}};return f})();g.lexer=_;function m(){this.yy={}}return m.prototype=g,g.Parser=m,new m})();J.parser=J;const yt=J;let F="",nt=0;const K=[],q=[],V=[],st=()=>x.commonDb,it=function(){K.length=0,q.length=0,F="",V.length=0,x.clear()},rt=function(n){F=n,K.push(n)},at=function(){return K},lt=function(){let n=D();const t=100;let e=0;for(;!n&&e<t;)n=D(),e++;return q.push(...V),q},ot=function(n,t,e){const a={id:nt++,section:F,type:F,task:n,score:t||0,events:e?[e]:[]};V.push(a)},ct=function(n){V.find(e=>e.id===nt-1).events.push(n)},ht=function(n){const t={section:F,type:F,description:n,task:n,classes:[]};q.push(t)},D=function(){const n=function(e){return V[e].processed};let t=!0;for(const[e,a]of V.entries())n(e),t=t&&a.processed;return t},gt={clear:it,getCommonDb:st,addSection:rt,getSections:at,getTasks:lt,addTask:ot,addTaskOrg:ht,addEvent:ct},ft=Object.freeze(Object.defineProperty({__proto__:null,addEvent:ct,addSection:rt,addTask:ot,addTaskOrg:ht,clear:it,default:gt,getCommonDb:st,getSections:at,getTasks:lt},Symbol.toStringTag,{value:"Module"})),mt=12,G=function(n,t){const e=n.append("rect");return e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),e.attr("rx",t.rx),e.attr("ry",t.ry),t.class!==void 0&&e.attr("class",t.class),e},xt=function(n,t){const a=n.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),s=n.append("g");s.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function h(y){const g=Y.arc().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",g).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}function l(y){const g=Y.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",g).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}function p(y){y.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return t.score>3?h(s):t.score<3?l(s):p(s),a},bt=function(n,t){const e=n.append("circle");return e.attr("cx",t.cx),e.attr("cy",t.cy),e.attr("class","actor-"+t.pos),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("r",t.r),e.class!==void 0&&e.attr("class",e.class),t.title!==void 0&&e.append("title").text(t.title),e},ut=function(n,t){const e=t.text.replace(/<br\s*\/?>/gi," "),a=n.append("text");a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class!==void 0&&a.attr("class",t.class);const s=a.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(e),a},_t=function(n,t){function e(s,h,l,p,y){return s+","+h+" "+(s+l)+","+h+" "+(s+l)+","+(h+p-y)+" "+(s+l-y*1.2)+","+(h+p)+" "+s+","+(h+p)}const a=n.append("polygon");a.attr("points",e(t.x,t.y,50,20,7)),a.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,ut(n,t)},kt=function(n,t,e){const a=n.append("g"),s=Q();s.x=t.x,s.y=t.y,s.fill=t.fill,s.width=e.width,s.height=e.height,s.class="journey-section section-type-"+t.num,s.rx=3,s.ry=3,G(a,s),dt(e)(t.text,a,s.x,s.y,s.width,s.height,{class:"journey-section section-type-"+t.num},e,t.colour)};let tt=-1;const vt=function(n,t,e){const a=t.x+e.width/2,s=n.append("g");tt++,s.append("line").attr("id","task"+tt).attr("x1",a).attr("y1",t.y).attr("x2",a).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),xt(s,{cx:a,cy:300+(5-t.score)*30,score:t.score});const l=Q();l.x=t.x,l.y=t.y,l.fill=t.fill,l.width=e.width,l.height=e.height,l.class="task task-type-"+t.num,l.rx=3,l.ry=3,G(s,l),t.x+14,dt(e)(t.task,s,l.x,l.y,l.width,l.height,{class:"task"},e,t.colour)},wt=function(n,t){G(n,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},St=function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},Q=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},dt=(function(){function n(s,h,l,p,y,g,_,m){const f=h.append("text").attr("x",l+y/2).attr("y",p+g/2+5).style("font-color",m).style("text-anchor","middle").text(s);a(f,_)}function t(s,h,l,p,y,g,_,m,f){const{taskFontSize:i,taskFontFamily:r}=m,c=s.split(/<br\s*\/?>/gi);for(let u=0;u<c.length;u++){const d=u*i-i*(c.length-1)/2,o=h.append("text").attr("x",l+y/2).attr("y",p).attr("fill",f).style("text-anchor","middle").style("font-size",i).style("font-family",r);o.append("tspan").attr("x",l+y/2).attr("dy",d).text(c[u]),o.attr("y",p+g/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(o,_)}}function e(s,h,l,p,y,g,_,m){const f=h.append("switch"),r=f.append("foreignObject").attr("x",l).attr("y",p).attr("width",y).attr("height",g).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");r.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),t(s,f,l,p,y,g,_,m),a(r,_)}function a(s,h){for(const l in h)l in h&&s.attr(l,h[l])}return function(s){return s.textPlacement==="fo"?e:s.textPlacement==="old"?n:t}})(),Et=function(n){n.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")};function pt(n,t){n.each(function(){var e=x.select(this),a=e.text().split(/(\s+|<br>)/).reverse(),s,h=[],l=1.1,p=e.attr("y"),y=parseFloat(e.attr("dy")),g=e.text(null).append("tspan").attr("x",0).attr("y",p).attr("dy",y+"em");for(let _=0;_<a.length;_++)s=a[a.length-1-_],h.push(s),g.text(h.join(" ").trim()),(g.node().getComputedTextLength()>t||s==="<br>")&&(h.pop(),g.text(h.join(" ").trim()),s==="<br>"?h=[""]:h=[s],g=e.append("tspan").attr("x",0).attr("y",p).attr("dy",l+"em").text(s))})}const $t=function(n,t,e,a){const s=e%mt-1,h=n.append("g");t.section=s,h.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+s));const l=h.append("g"),p=h.append("g"),g=p.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(pt,t.width).node().getBBox(),_=a.fontSize&&a.fontSize.replace?a.fontSize.replace("px",""):a.fontSize;return t.height=g.height+_*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,p.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),It(l,t,s),t},Tt=function(n,t,e){const a=n.append("g"),h=a.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(pt,t.width).node().getBBox(),l=e.fontSize&&e.fontSize.replace?e.fontSize.replace("px",""):e.fontSize;return a.remove(),h.height+l*1.1*.5+t.padding},It=function(n,t,e){n.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("d",`M0 ${t.height-5} v${-t.height+10} q0,-5 5,-5 h${t.width-10} q5,0 5,5 v${t.height-5} H0 Z`),n.append("line").attr("class","node-line-"+e).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},H={drawRect:G,drawCircle:bt,drawSection:kt,drawText:ut,drawLabel:_t,drawTask:vt,drawBackgroundRect:wt,getTextObj:St,getNoteRect:Q,initGraphics:Et,drawNode:$t,getVirtualNodeHeight:Tt},Nt=function(n,t,e,a){var s,h;const l=x.getConfig(),p=l.leftMargin??50;x.log$1.debug("timeline",a.db);const y=l.securityLevel;let g;y==="sandbox"&&(g=x.select("#i"+t));const m=(y==="sandbox"?x.select(g.nodes()[0].contentDocument.body):x.select("body")).select("#"+t);m.append("g");const f=a.db.getTasks(),i=a.db.getCommonDb().getDiagramTitle();x.log$1.debug("task",f),H.initGraphics(m);const r=a.db.getSections();x.log$1.debug("sections",r);let c=0,u=0,d=0,o=0,I=50+p,b=50;o=50;let $=0,W=!0;r.forEach(function(S){const w={number:$,descr:S,section:$,width:150,padding:20,maxHeight:c},T=H.getVirtualNodeHeight(m,w,l);x.log$1.debug("sectionHeight before draw",T),c=Math.max(c,T+20)});let C=0,P=0;x.log$1.debug("tasks.length",f.length);for(const[S,w]of f.entries()){const T={number:S,descr:w,section:w.section,width:150,padding:20,maxHeight:u},A=H.getVirtualNodeHeight(m,T,l);x.log$1.debug("taskHeight before draw",A),u=Math.max(u,A+20),C=Math.max(C,w.events.length);let z=0;for(let k=0;k<w.events.length;k++){const E={descr:w.events[k],section:w.section,number:w.section,width:150,padding:20,maxHeight:50};z+=H.getVirtualNodeHeight(m,E,l)}P=Math.max(P,z)}x.log$1.debug("maxSectionHeight before draw",c),x.log$1.debug("maxTaskHeight before draw",u),r&&r.length>0?r.forEach(S=>{const w=f.filter(k=>k.section===S),T={number:$,descr:S,section:$,width:200*Math.max(w.length,1)-50,padding:20,maxHeight:c};x.log$1.debug("sectionNode",T);const A=m.append("g"),z=H.drawNode(A,T,$,l);x.log$1.debug("sectionNode output",z),A.attr("transform",`translate(${I}, ${o})`),b+=c+50,w.length>0&&et(m,w,$,I,b,u,l,C,P,c,!1),I+=200*Math.max(w.length,1),b=o,$++}):(W=!1,et(m,f,$,I,b,u,l,C,P,c,!0));const B=m.node().getBBox();x.log$1.debug("bounds",B),i&&m.append("text").text(i).attr("x",B.width/2-p).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),d=W?c+u+150:u+100,m.append("g").attr("class","lineWrapper").append("line").attr("x1",p).attr("y1",d).attr("x2",B.width+3*p).attr("y2",d).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),x.setupGraphViewbox$1(void 0,m,((s=l.timeline)==null?void 0:s.padding)??50,((h=l.timeline)==null?void 0:h.useMaxWidth)??!1)},et=function(n,t,e,a,s,h,l,p,y,g,_){var m;for(const f of t){const i={descr:f.task,section:e,number:e,width:150,padding:20,maxHeight:h};x.log$1.debug("taskNode",i);const r=n.append("g").attr("class","taskWrapper"),u=H.drawNode(r,i,e,l).height;if(x.log$1.debug("taskHeight after draw",u),r.attr("transform",`translate(${a}, ${s})`),h=Math.max(h,u),f.events){const d=n.append("g").attr("class","lineWrapper");let o=h;s+=100,o=o+Mt(n,f.events,e,a,s,l),s-=100,d.append("line").attr("x1",a+190/2).attr("y1",s+h).attr("x2",a+190/2).attr("y2",s+h+(_?h:g)+y+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}a=a+200,_&&!((m=l.timeline)!=null&&m.disableMulticolor)&&e++}s=s-10},Mt=function(n,t,e,a,s,h){let l=0;const p=s;s=s+100;for(const y of t){const g={descr:y,section:e,number:e,width:150,padding:20,maxHeight:50};x.log$1.debug("eventNode",g);const _=n.append("g").attr("class","eventWrapper"),f=H.drawNode(_,g,e,h).height;l=l+f,_.attr("transform",`translate(${a}, ${s})`),s=s+10+f}return s=p,l},Lt={setConf:()=>{},draw:Nt},Pt=n=>{let t="";for(let e=0;e<n.THEME_COLOR_LIMIT;e++)n["lineColor"+e]=n["lineColor"+e]||n["cScaleInv"+e],x.isDark(n["lineColor"+e])?n["lineColor"+e]=x.lighten(n["lineColor"+e],20):n["lineColor"+e]=x.darken(n["lineColor"+e],20);for(let e=0;e<n.THEME_COLOR_LIMIT;e++){const a=""+(17-3*e);t+=`
|
|
7
|
+
.section-${e-1} rect, .section-${e-1} path, .section-${e-1} circle, .section-${e-1} path {
|
|
8
|
+
fill: ${n["cScale"+e]};
|
|
9
|
+
}
|
|
10
|
+
.section-${e-1} text {
|
|
11
|
+
fill: ${n["cScaleLabel"+e]};
|
|
12
|
+
}
|
|
13
|
+
.node-icon-${e-1} {
|
|
14
|
+
font-size: 40px;
|
|
15
|
+
color: ${n["cScaleLabel"+e]};
|
|
16
|
+
}
|
|
17
|
+
.section-edge-${e-1}{
|
|
18
|
+
stroke: ${n["cScale"+e]};
|
|
19
|
+
}
|
|
20
|
+
.edge-depth-${e-1}{
|
|
21
|
+
stroke-width: ${a};
|
|
22
|
+
}
|
|
23
|
+
.section-${e-1} line {
|
|
24
|
+
stroke: ${n["cScaleInv"+e]} ;
|
|
25
|
+
stroke-width: 3;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.lineWrapper line{
|
|
29
|
+
stroke: ${n["cScaleLabel"+e]} ;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.disabled, .disabled circle, .disabled text {
|
|
33
|
+
fill: lightgray;
|
|
34
|
+
}
|
|
35
|
+
.disabled text {
|
|
36
|
+
fill: #efefef;
|
|
37
|
+
}
|
|
38
|
+
`}return t},At=n=>`
|
|
39
|
+
.edge {
|
|
40
|
+
stroke-width: 3;
|
|
41
|
+
}
|
|
42
|
+
${Pt(n)}
|
|
43
|
+
.section-root rect, .section-root path, .section-root circle {
|
|
44
|
+
fill: ${n.git0};
|
|
45
|
+
}
|
|
46
|
+
.section-root text {
|
|
47
|
+
fill: ${n.gitBranchLabel0};
|
|
48
|
+
}
|
|
49
|
+
.icon-container {
|
|
50
|
+
height:100%;
|
|
51
|
+
display: flex;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
align-items: center;
|
|
54
|
+
}
|
|
55
|
+
.edge {
|
|
56
|
+
fill: none;
|
|
57
|
+
}
|
|
58
|
+
.eventWrapper {
|
|
59
|
+
filter: brightness(120%);
|
|
60
|
+
}
|
|
61
|
+
`,Ht=At,Ct={db:ft,renderer:Lt,parser:yt,styles:Ht};exports.diagram=Ct;
|