orbitchat 2.2.6 → 2.2.7
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/assets/{_basePickBy-BjEly54R-XZ-uT-Uj.js → _basePickBy-1MakYQmz-CFyJwR0u.js} +1 -1
- package/dist/assets/{_baseUniq-DRc_T5HB-BsnuNSgv.js → _baseUniq-Cd4llU-Q-D06fzDcA.js} +1 -1
- package/dist/assets/{api-RpN2_Bta.js → api-Ciw0inlZ.js} +1 -1
- package/dist/assets/arc-b8oyw-lz-BCfULEh7.js +1 -0
- package/dist/assets/{architectureDiagram-VXUJARFQ-Cfm45ePu-CSKO1yu3.js → architectureDiagram-VXUJARFQ-BuSDV2Do-DuPWl-E8.js} +1 -1
- package/dist/assets/{blockDiagram-VD42YOAC-BRbgLESd-Bbm-oCAg.js → blockDiagram-VD42YOAC-jQHtez-j-C4kvu0Em.js} +4 -4
- package/dist/assets/{c4Diagram-YG6GDRKO-DLei6MnZ-SeObXeAe.js → c4Diagram-YG6GDRKO-_5giM-EA-CAUaWHfB.js} +4 -4
- package/dist/assets/channel-BLPbvVT2-BU9ed3z7.js +1 -0
- package/dist/assets/{chunk-4BX2VUAB-DeMNg1Xd-CMa4zZ7K.js → chunk-4BX2VUAB-BeuiUsbc-SyLBSPGf.js} +1 -1
- package/dist/assets/chunk-55IACEB6-C4OH5_NF-CeUEEy8j.js +1 -0
- package/dist/assets/{chunk-B4BG7PRW-CIxgz8SC-Cg2SKJYD.js → chunk-B4BG7PRW-CnUkcto7-Bw3MBwH8.js} +1 -1
- package/dist/assets/{chunk-DI55MBZ5-i035IDz6-DxyMtoDb.js → chunk-DI55MBZ5-CSd59tsh-DMnz_BT4.js} +4 -4
- package/dist/assets/{chunk-FMBD7UC4-Bm0ev8jq-DBEEbKOi.js → chunk-FMBD7UC4-C6VImbBX-Ci00_56S.js} +1 -1
- package/dist/assets/{chunk-QN33PNHL-C8-RyAc3-Bziqpynq.js → chunk-QN33PNHL-DrWWTLTH-CxKsUSHw.js} +1 -1
- package/dist/assets/{chunk-QZHKN3VN-DMEEp6GB-NSbjkrZ8.js → chunk-QZHKN3VN-C6_I39By-wG4V5ipa.js} +1 -1
- package/dist/assets/chunk-TZMSLE5B-DGddLgNl-oFBh2Kwv.js +1 -0
- package/dist/assets/classDiagram-2ON5EDUG-BngjTxOv-BTvgR8FJ.js +1 -0
- package/dist/assets/classDiagram-v2-WZHVMYZB-BngjTxOv-BTvgR8FJ.js +1 -0
- package/dist/assets/clone-DH1Kq5Y6-CC3PuMQg.js +1 -0
- package/dist/assets/{cose-bilkent-S5V4N54A-VxeRCpgs-DsXa8Zq3.js → cose-bilkent-S5V4N54A-DcyCVH6S-DmuDbM_l.js} +1 -1
- package/dist/assets/{dagre-6UL2VRFP-B-o0qgxK-DfZm7xId.js → dagre-6UL2VRFP-B799wmhr-COgMFtha.js} +1 -1
- package/dist/assets/{diagram-PSM6KHXK-CoKmJ9sN-rwg0eDKT.js → diagram-PSM6KHXK-Dxp2wzKk-BBCx56dy.js} +1 -1
- package/dist/assets/{diagram-QEK2KX5R-ETMfkzYL-Bawb4i2Y.js → diagram-QEK2KX5R-Km_liL9n-Betp39ze.js} +1 -1
- package/dist/assets/{diagram-S2PKOQOG-BgLbl6rv-fjzP4qrY.js → diagram-S2PKOQOG-tSpHqt0k-44sQtblg.js} +1 -1
- package/dist/assets/{erDiagram-Q2GNP2WA-Swwdy5pk-TsPzHVEQ.js → erDiagram-Q2GNP2WA-DF6ylQ7o-Dt6nMqG4.js} +2 -2
- package/dist/assets/{flowDiagram-NV44I4VS-DXJdBBSZ-DNo_92-L.js → flowDiagram-NV44I4VS-BQUYJeB--BIIW2JbR.js} +1 -1
- package/dist/assets/{ganttDiagram-LVOFAZNH-DmRbHwxf-Cwvlwlkm.js → ganttDiagram-LVOFAZNH-BidPm1xz-C_N0fE6y.js} +4 -4
- package/dist/assets/{gitGraphDiagram-NY62KEGX-D30uHfXn-C_O3r_x5.js → gitGraphDiagram-NY62KEGX-zbMOFVrv-C2aviXPE.js} +2 -2
- package/dist/assets/{graph-ClfIprSM-BZwHPDDo.js → graph-aRt77rZZ-BCYSvQYP.js} +1 -1
- package/dist/assets/{index-Dwfg9sR1.js → index-CyVB0J6E.js} +135 -135
- package/dist/assets/{index-Bny2bm5_-BBHjCfey.js → index-rW5EEHFR-DdBF6BH7.js} +1 -1
- package/dist/assets/{infoDiagram-ER5ION4S-C0DTNQfZ-DOapqc3o.js → infoDiagram-ER5ION4S-ozjqEnsq-Ba1eAJxv.js} +1 -1
- package/dist/assets/{journeyDiagram-XKPGCS4Q-53CUbf20-Dh7OAcXv.js → journeyDiagram-XKPGCS4Q-C6JuEafR-CDMHuJkC.js} +4 -4
- package/dist/assets/{kanban-definition-3W4ZIXB7-B-HAgUf7-KfKbtZ09.js → kanban-definition-3W4ZIXB7-Ci4U3NR--DxVvWtAD.js} +4 -4
- package/dist/assets/{layout-DoRwGyA9-CrmvCQM-.js → layout-BKjRgLFe-BqG-N5rr.js} +1 -1
- package/dist/assets/{mindmap-definition-VGOIOE7T-JxieKS1D-DwQCKBi2.js → mindmap-definition-VGOIOE7T-DveejCtl-DLDRL_jx.js} +1 -1
- package/dist/assets/{pieDiagram-ADFJNKIX-vEsBIPBi-BNA3SacN.js → pieDiagram-ADFJNKIX-DAbSGtae-DaaJODT6.js} +2 -2
- package/dist/assets/{quadrantDiagram-AYHSOK5B-DuNXQUnS-DiYTe8-4.js → quadrantDiagram-AYHSOK5B-DnnzUQMW-ByDrDvpT.js} +4 -4
- package/dist/assets/{requirementDiagram-UZGBJVZJ-Ajt9-U96-CaUedp2k.js → requirementDiagram-UZGBJVZJ-BB9jagBx-4ABuhsu-.js} +1 -1
- package/dist/assets/{sankeyDiagram-TZEHDZUN-BNMEPupP-CoW39JHu.js → sankeyDiagram-TZEHDZUN-BttZx2-h-DZFrYF3L.js} +4 -4
- package/dist/assets/{sequenceDiagram-WL72ISMW-D2j881gi-CpM-9Ot5.js → sequenceDiagram-WL72ISMW-DA6yVs26-Cf4EYRDf.js} +1 -1
- package/dist/assets/{stateDiagram-FKZM4ZOC-D9G5SS9f-DyhUPTNH.js → stateDiagram-FKZM4ZOC-BD8xEcbc-DSZVswAk.js} +1 -1
- package/dist/assets/stateDiagram-v2-4FDKWEC3-DINzAoyF-Biyi4sW7.js +1 -0
- package/dist/assets/{timeline-definition-IT6M3QCI-B95452nE-BtUwy1tt.js → timeline-definition-IT6M3QCI-XN-D5T3b-CUWPxmpi.js} +1 -1
- package/dist/assets/{treemap-KMMF4GRG-Dfxm7cSf-Dp6bDrrM.js → treemap-KMMF4GRG-C4GHjB3F-HVe9FL0t.js} +18 -18
- package/dist/assets/{xychartDiagram-PRI3JC2R-CZX71UOJ-DZlx6d4_.js → xychartDiagram-PRI3JC2R-BL53__6J-Dk9M98Ob.js} +4 -4
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/arc-CZCQSTaI-C-VU_J9B.js +0 -1
- package/dist/assets/channel-DkFrLL9m-oLu-Ehez.js +0 -1
- package/dist/assets/chunk-55IACEB6-_r7qMy9s-Dy635JXO.js +0 -1
- package/dist/assets/chunk-TZMSLE5B-CNFsEzOl-DVds0hZJ.js +0 -1
- package/dist/assets/classDiagram-2ON5EDUG-DnsiOvOV-O_0UXE1J.js +0 -1
- package/dist/assets/classDiagram-v2-WZHVMYZB-DnsiOvOV-O_0UXE1J.js +0 -1
- package/dist/assets/clone-DduvFCk3-BjQT37Sj.js +0 -1
- package/dist/assets/stateDiagram-v2-4FDKWEC3-D0cjqibA-Db7olDTG.js +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import{R as p,n as xt,o as kt,f as vt,u as bt,s as wt,l as St,c as lt,D as Et,e as X,ap as Lt,aT as Mt,t as At,x as Tt}from"./index-Dwfg9sR1.js";function Pt(t){for(var n=t.length/6|0,r=new Array(n),a=0;a<n;)r[a]="#"+t.slice(a*6,++a*6);return r}const Nt=Pt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function ct(t,n){let r;if(n===void 0)for(const a of t)a!=null&&(r<a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let c of t)(c=n(c,++a,t))!=null&&(r<c||r===void 0&&c>=c)&&(r=c)}return r}function pt(t,n){let r;if(n===void 0)for(const a of t)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let c of t)(c=n(c,++a,t))!=null&&(r>c||r===void 0&&c>=c)&&(r=c)}return r}function tt(t,n){let r=0;if(n===void 0)for(let a of t)(a=+a)&&(r+=a);else{let a=-1;for(let c of t)(c=+n(c,++a,t))&&(r+=c)}return r}function Ot(t){return t.target.depth}function Ct(t){return t.depth}function It(t,n){return n-1-t.height}function _t(t,n){return t.sourceLinks.length?t.depth:n-1}function Dt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?pt(t.sourceLinks,Ot)-1:0}function Y(t){return function(){return t}}function ut(t,n){return K(t.source,n.source)||t.index-n.index}function ht(t,n){return K(t.target,n.target)||t.index-n.index}function K(t,n){return t.y0-n.y0}function et(t){return t.value}function $t(t){return t.index}function jt(t){return t.nodes}function zt(t){return t.links}function ft(t,n){const r=t.get(n);if(!r)throw new Error("missing: "+n);return r}function yt({nodes:t}){for(const n of t){let r=n.y0,a=r;for(const c of n.sourceLinks)c.y0=r+c.width/2,r+=c.width;for(const c of n.targetLinks)c.y1=a+c.width/2,a+=c.width}}function Ft(){let t=0,n=0,r=1,a=1,c=24,k=8,_,m=$t,i=_t,o,f,d=jt,y=zt,w=6;function v(){const e={nodes:d.apply(null,arguments),links:y.apply(null,arguments)};return N(e),A(e),T(e),I(e),O(e),yt(e),e}v.update=function(e){return yt(e),e},v.nodeId=function(e){return arguments.length?(m=typeof e=="function"?e:Y(e),v):m},v.nodeAlign=function(e){return arguments.length?(i=typeof e=="function"?e:Y(e),v):i},v.nodeSort=function(e){return arguments.length?(o=e,v):o},v.nodeWidth=function(e){return arguments.length?(c=+e,v):c},v.nodePadding=function(e){return arguments.length?(k=_=+e,v):k},v.nodes=function(e){return arguments.length?(d=typeof e=="function"?e:Y(e),v):d},v.links=function(e){return arguments.length?(y=typeof e=="function"?e:Y(e),v):y},v.linkSort=function(e){return arguments.length?(f=e,v):f},v.size=function(e){return arguments.length?(t=n=0,r=+e[0],a=+e[1],v):[r-t,a-n]},v.extent=function(e){return arguments.length?(t=+e[0][0],r=+e[1][0],n=+e[0][1],a=+e[1][1],v):[[t,n],[r,a]]},v.iterations=function(e){return arguments.length?(w=+e,v):w};function N({nodes:e,links:h}){for(const[u,s]of e.entries())s.index=u,s.sourceLinks=[],s.targetLinks=[];const l=new Map(e.map((u,s)=>[m(u,s,e),u]));for(const[u,s]of h.entries()){s.index=u;let{source:x,target:b}=s;typeof x!="object"&&(x=s.source=ft(l,x)),typeof b!="object"&&(b=s.target=ft(l,b)),x.sourceLinks.push(s),b.targetLinks.push(s)}if(f!=null)for(const{sourceLinks:u,targetLinks:s}of e)u.sort(f),s.sort(f)}function A({nodes:e}){for(const h of e)h.value=h.fixedValue===void 0?Math.max(tt(h.sourceLinks,et),tt(h.targetLinks,et)):h.fixedValue}function T({nodes:e}){const h=e.length;let l=new Set(e),u=new Set,s=0;for(;l.size;){for(const x of l){x.depth=s;for(const{target:b}of x.sourceLinks)u.add(b)}if(++s>h)throw new Error("circular link");l=u,u=new Set}}function I({nodes:e}){const h=e.length;let l=new Set(e),u=new Set,s=0;for(;l.size;){for(const x of l){x.height=s;for(const{source:b}of x.targetLinks)u.add(b)}if(++s>h)throw new Error("circular link");l=u,u=new Set}}function P({nodes:e}){const h=ct(e,s=>s.depth)+1,l=(r-t-c)/(h-1),u=new Array(h);for(const s of e){const x=Math.max(0,Math.min(h-1,Math.floor(i.call(null,s,h))));s.layer=x,s.x0=t+x*l,s.x1=s.x0+c,u[x]?u[x].push(s):u[x]=[s]}if(o)for(const s of u)s.sort(o);return u}function S(e){const h=pt(e,l=>(a-n-(l.length-1)*_)/tt(l,et));for(const l of e){let u=n;for(const s of l){s.y0=u,s.y1=u+s.value*h,u=s.y1+_;for(const x of s.sourceLinks)x.width=x.value*h}u=(a-u+_)/(l.length+1);for(let s=0;s<l.length;++s){const x=l[s];x.y0+=u*(s+1),x.y1+=u*(s+1)}$(l)}}function O(e){const h=P(e);_=Math.min(k,(a-n)/(ct(h,l=>l.length)-1)),S(h);for(let l=0;l<w;++l){const u=Math.pow(.99,l),s=Math.max(1-u,(l+1)/w);C(h,u,s),D(h,u,s)}}function D(e,h,l){for(let u=1,s=e.length;u<s;++u){const x=e[u];for(const b of x){let W=0,j=0;for(const{source:R,value:H}of b.targetLinks){let V=H*(b.layer-R.layer);W+=M(R,b)*V,j+=V}if(!(j>0))continue;let q=(W/j-b.y0)*h;b.y0+=q,b.y1+=q,E(b)}o===void 0&&x.sort(K),g(x,l)}}function C(e,h,l){for(let u=e.length,s=u-2;s>=0;--s){const x=e[s];for(const b of x){let W=0,j=0;for(const{target:R,value:H}of b.sourceLinks){let V=H*(R.layer-b.layer);W+=G(b,R)*V,j+=V}if(!(j>0))continue;let q=(W/j-b.y0)*h;b.y0+=q,b.y1+=q,E(b)}o===void 0&&x.sort(K),g(x,l)}}function g(e,h){const l=e.length>>1,u=e[l];U(e,u.y0-_,l-1,h),L(e,u.y1+_,l+1,h),U(e,a,e.length-1,h),L(e,n,0,h)}function L(e,h,l,u){for(;l<e.length;++l){const s=e[l],x=(h-s.y0)*u;x>1e-6&&(s.y0+=x,s.y1+=x),h=s.y1+_}}function U(e,h,l,u){for(;l>=0;--l){const s=e[l],x=(s.y1-h)*u;x>1e-6&&(s.y0-=x,s.y1-=x),h=s.y0-_}}function E({sourceLinks:e,targetLinks:h}){if(f===void 0){for(const{source:{sourceLinks:l}}of h)l.sort(ht);for(const{target:{targetLinks:l}}of e)l.sort(ut)}}function $(e){if(f===void 0)for(const{sourceLinks:h,targetLinks:l}of e)h.sort(ht),l.sort(ut)}function M(e,h){let l=e.y0-(e.sourceLinks.length-1)*_/2;for(const{target:u,width:s}of e.sourceLinks){if(u===h)break;l+=s+_}for(const{source:u,width:s}of h.targetLinks){if(u===e)break;l-=s}return l}function G(e,h){let l=h.y0-(h.targetLinks.length-1)*_/2;for(const{source:u,width:s}of h.targetLinks){if(u===e)break;l+=s+_}for(const{target:u,width:s}of e.sourceLinks){if(u===h)break;l-=s}return l}return v}var rt=Math.PI,st=2*rt,z=1e-6,Ut=st-z;function ot(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function mt(){return new ot}ot.prototype=mt.prototype={constructor:ot,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,r,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+r)+","+(this._y1=+a)},bezierCurveTo:function(t,n,r,a,c,k){this._+="C"+ +t+","+ +n+","+ +r+","+ +a+","+(this._x1=+c)+","+(this._y1=+k)},arcTo:function(t,n,r,a,c){t=+t,n=+n,r=+r,a=+a,c=+c;var k=this._x1,_=this._y1,m=r-t,i=a-n,o=k-t,f=_-n,d=o*o+f*f;if(c<0)throw new Error("negative radius: "+c);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(d>z)if(!(Math.abs(f*m-i*o)>z)||!c)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var y=r-k,w=a-_,v=m*m+i*i,N=y*y+w*w,A=Math.sqrt(v),T=Math.sqrt(d),I=c*Math.tan((rt-Math.acos((v+d-N)/(2*A*T)))/2),P=I/T,S=I/A;Math.abs(P-1)>z&&(this._+="L"+(t+P*o)+","+(n+P*f)),this._+="A"+c+","+c+",0,0,"+ +(f*y>o*w)+","+(this._x1=t+S*m)+","+(this._y1=n+S*i)}},arc:function(t,n,r,a,c,k){t=+t,n=+n,r=+r,k=!!k;var _=r*Math.cos(a),m=r*Math.sin(a),i=t+_,o=n+m,f=1^k,d=k?a-c:c-a;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>z||Math.abs(this._y1-o)>z)&&(this._+="L"+i+","+o),r&&(d<0&&(d=d%st+st),d>Ut?this._+="A"+r+","+r+",0,1,"+f+","+(t-_)+","+(n-m)+"A"+r+","+r+",0,1,"+f+","+(this._x1=i)+","+(this._y1=o):d>z&&(this._+="A"+r+","+r+",0,"+ +(d>=rt)+","+f+","+(this._x1=t+r*Math.cos(c))+","+(this._y1=n+r*Math.sin(c))))},rect:function(t,n,r,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +r+"v"+ +a+"h"+-r+"Z"},toString:function(){return this._}};function gt(t){return function(){return t}}function Gt(t){return t[0]}function Wt(t){return t[1]}var qt=Array.prototype.slice;function Rt(t){return t.source}function Vt(t){return t.target}function Xt(t){var n=Rt,r=Vt,a=Gt,c=Wt,k=null;function _(){var m,i=qt.call(arguments),o=n.apply(this,i),f=r.apply(this,i);if(k||(k=m=mt()),t(k,+a.apply(this,(i[0]=o,i)),+c.apply(this,i),+a.apply(this,(i[0]=f,i)),+c.apply(this,i)),m)return k=null,m+""||null}return _.source=function(m){return arguments.length?(n=m,_):n},_.target=function(m){return arguments.length?(r=m,_):r},_.x=function(m){return arguments.length?(a=typeof m=="function"?m:gt(+m),_):a},_.y=function(m){return arguments.length?(c=typeof m=="function"?m:gt(+m),_):c},_.context=function(m){return arguments.length?(k=m??null,_):k},_}function Yt(t,n,r,a,c){t.moveTo(n,r),t.bezierCurveTo(n=(n+a)/2,r,n,c,a,c)}function Kt(){return Xt(Yt)}function Qt(t){return[t.source.x1,t.y0]}function Zt(t){return[t.target.x0,t.y1]}function Bt(){return Kt().source(Qt).target(Zt)}var at=function(){var t=p(function(m,i,o,f){for(o=o||{},f=m.length;f--;o[m[f]]=i);return o},"o"),n=[1,9],r=[1,10],a=[1,5,10,12],c={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:p(function(m,i,o,f,d,y,w){var v=y.length-1;switch(d){case 7:const N=f.findOrCreateNode(y[v-4].trim().replaceAll('""','"')),A=f.findOrCreateNode(y[v-2].trim().replaceAll('""','"')),T=parseFloat(y[v].trim());f.addLink(N,A,T);break;case 8:case 9:case 11:this.$=y[v];break;case 10:this.$=y[v-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:r},{1:[2,6],7:11,10:[1,12]},t(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:r},{15:18,16:7,17:8,18:n,20:r},{18:[1,19]},t(r,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:r},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:p(function(m,i){if(i.recoverable)this.trace(m);else{var o=new Error(m);throw o.hash=i,o}},"parseError"),parse:p(function(m){var i=this,o=[0],f=[],d=[null],y=[],w=this.table,v="",N=0,A=0,T=2,I=1,P=y.slice.call(arguments,1),S=Object.create(this.lexer),O={yy:{}};for(var D in this.yy)Object.prototype.hasOwnProperty.call(this.yy,D)&&(O.yy[D]=this.yy[D]);S.setInput(m,O.yy),O.yy.lexer=S,O.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var C=S.yylloc;y.push(C);var g=S.options&&S.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function L(b){o.length=o.length-2*b,d.length=d.length-b,y.length=y.length-b}p(L,"popStack");function U(){var b;return b=f.pop()||S.lex()||I,typeof b!="number"&&(b instanceof Array&&(f=b,b=f.pop()),b=i.symbols_[b]||b),b}p(U,"lex");for(var E,$,M,G,e={},h,l,u,s;;){if($=o[o.length-1],this.defaultActions[$]?M=this.defaultActions[$]:((E===null||typeof E>"u")&&(E=U()),M=w[$]&&w[$][E]),typeof M>"u"||!M.length||!M[0]){var x="";s=[];for(h in w[$])this.terminals_[h]&&h>T&&s.push("'"+this.terminals_[h]+"'");S.showPosition?x="Parse error on line "+(N+1)+`:
|
|
1
|
+
import{R as p,o as xt,r as kt,f as vt,u as bt,s as wt,l as St,g as lt,I as Et,e as X,ap as Lt,aT as Mt,w as At,x as Tt}from"./index-CyVB0J6E.js";function Pt(t){for(var n=t.length/6|0,r=new Array(n),a=0;a<n;)r[a]="#"+t.slice(a*6,++a*6);return r}const Nt=Pt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function ct(t,n){let r;if(n===void 0)for(const a of t)a!=null&&(r<a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let c of t)(c=n(c,++a,t))!=null&&(r<c||r===void 0&&c>=c)&&(r=c)}return r}function pt(t,n){let r;if(n===void 0)for(const a of t)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let c of t)(c=n(c,++a,t))!=null&&(r>c||r===void 0&&c>=c)&&(r=c)}return r}function tt(t,n){let r=0;if(n===void 0)for(let a of t)(a=+a)&&(r+=a);else{let a=-1;for(let c of t)(c=+n(c,++a,t))&&(r+=c)}return r}function Ot(t){return t.target.depth}function Ct(t){return t.depth}function It(t,n){return n-1-t.height}function _t(t,n){return t.sourceLinks.length?t.depth:n-1}function Dt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?pt(t.sourceLinks,Ot)-1:0}function Y(t){return function(){return t}}function ut(t,n){return Q(t.source,n.source)||t.index-n.index}function ht(t,n){return Q(t.target,n.target)||t.index-n.index}function Q(t,n){return t.y0-n.y0}function et(t){return t.value}function jt(t){return t.index}function $t(t){return t.nodes}function zt(t){return t.links}function ft(t,n){const r=t.get(n);if(!r)throw new Error("missing: "+n);return r}function yt({nodes:t}){for(const n of t){let r=n.y0,a=r;for(const c of n.sourceLinks)c.y0=r+c.width/2,r+=c.width;for(const c of n.targetLinks)c.y1=a+c.width/2,a+=c.width}}function Ft(){let t=0,n=0,r=1,a=1,c=24,k=8,_,m=jt,i=_t,o,f,d=$t,y=zt,w=6;function v(){const e={nodes:d.apply(null,arguments),links:y.apply(null,arguments)};return N(e),A(e),T(e),I(e),O(e),yt(e),e}v.update=function(e){return yt(e),e},v.nodeId=function(e){return arguments.length?(m=typeof e=="function"?e:Y(e),v):m},v.nodeAlign=function(e){return arguments.length?(i=typeof e=="function"?e:Y(e),v):i},v.nodeSort=function(e){return arguments.length?(o=e,v):o},v.nodeWidth=function(e){return arguments.length?(c=+e,v):c},v.nodePadding=function(e){return arguments.length?(k=_=+e,v):k},v.nodes=function(e){return arguments.length?(d=typeof e=="function"?e:Y(e),v):d},v.links=function(e){return arguments.length?(y=typeof e=="function"?e:Y(e),v):y},v.linkSort=function(e){return arguments.length?(f=e,v):f},v.size=function(e){return arguments.length?(t=n=0,r=+e[0],a=+e[1],v):[r-t,a-n]},v.extent=function(e){return arguments.length?(t=+e[0][0],r=+e[1][0],n=+e[0][1],a=+e[1][1],v):[[t,n],[r,a]]},v.iterations=function(e){return arguments.length?(w=+e,v):w};function N({nodes:e,links:h}){for(const[u,s]of e.entries())s.index=u,s.sourceLinks=[],s.targetLinks=[];const l=new Map(e.map((u,s)=>[m(u,s,e),u]));for(const[u,s]of h.entries()){s.index=u;let{source:x,target:b}=s;typeof x!="object"&&(x=s.source=ft(l,x)),typeof b!="object"&&(b=s.target=ft(l,b)),x.sourceLinks.push(s),b.targetLinks.push(s)}if(f!=null)for(const{sourceLinks:u,targetLinks:s}of e)u.sort(f),s.sort(f)}function A({nodes:e}){for(const h of e)h.value=h.fixedValue===void 0?Math.max(tt(h.sourceLinks,et),tt(h.targetLinks,et)):h.fixedValue}function T({nodes:e}){const h=e.length;let l=new Set(e),u=new Set,s=0;for(;l.size;){for(const x of l){x.depth=s;for(const{target:b}of x.sourceLinks)u.add(b)}if(++s>h)throw new Error("circular link");l=u,u=new Set}}function I({nodes:e}){const h=e.length;let l=new Set(e),u=new Set,s=0;for(;l.size;){for(const x of l){x.height=s;for(const{source:b}of x.targetLinks)u.add(b)}if(++s>h)throw new Error("circular link");l=u,u=new Set}}function P({nodes:e}){const h=ct(e,s=>s.depth)+1,l=(r-t-c)/(h-1),u=new Array(h);for(const s of e){const x=Math.max(0,Math.min(h-1,Math.floor(i.call(null,s,h))));s.layer=x,s.x0=t+x*l,s.x1=s.x0+c,u[x]?u[x].push(s):u[x]=[s]}if(o)for(const s of u)s.sort(o);return u}function S(e){const h=pt(e,l=>(a-n-(l.length-1)*_)/tt(l,et));for(const l of e){let u=n;for(const s of l){s.y0=u,s.y1=u+s.value*h,u=s.y1+_;for(const x of s.sourceLinks)x.width=x.value*h}u=(a-u+_)/(l.length+1);for(let s=0;s<l.length;++s){const x=l[s];x.y0+=u*(s+1),x.y1+=u*(s+1)}j(l)}}function O(e){const h=P(e);_=Math.min(k,(a-n)/(ct(h,l=>l.length)-1)),S(h);for(let l=0;l<w;++l){const u=Math.pow(.99,l),s=Math.max(1-u,(l+1)/w);C(h,u,s),D(h,u,s)}}function D(e,h,l){for(let u=1,s=e.length;u<s;++u){const x=e[u];for(const b of x){let W=0,$=0;for(const{source:R,value:H}of b.targetLinks){let V=H*(b.layer-R.layer);W+=M(R,b)*V,$+=V}if(!($>0))continue;let q=(W/$-b.y0)*h;b.y0+=q,b.y1+=q,E(b)}o===void 0&&x.sort(Q),g(x,l)}}function C(e,h,l){for(let u=e.length,s=u-2;s>=0;--s){const x=e[s];for(const b of x){let W=0,$=0;for(const{target:R,value:H}of b.sourceLinks){let V=H*(R.layer-b.layer);W+=G(b,R)*V,$+=V}if(!($>0))continue;let q=(W/$-b.y0)*h;b.y0+=q,b.y1+=q,E(b)}o===void 0&&x.sort(Q),g(x,l)}}function g(e,h){const l=e.length>>1,u=e[l];U(e,u.y0-_,l-1,h),L(e,u.y1+_,l+1,h),U(e,a,e.length-1,h),L(e,n,0,h)}function L(e,h,l,u){for(;l<e.length;++l){const s=e[l],x=(h-s.y0)*u;x>1e-6&&(s.y0+=x,s.y1+=x),h=s.y1+_}}function U(e,h,l,u){for(;l>=0;--l){const s=e[l],x=(s.y1-h)*u;x>1e-6&&(s.y0-=x,s.y1-=x),h=s.y0-_}}function E({sourceLinks:e,targetLinks:h}){if(f===void 0){for(const{source:{sourceLinks:l}}of h)l.sort(ht);for(const{target:{targetLinks:l}}of e)l.sort(ut)}}function j(e){if(f===void 0)for(const{sourceLinks:h,targetLinks:l}of e)h.sort(ht),l.sort(ut)}function M(e,h){let l=e.y0-(e.sourceLinks.length-1)*_/2;for(const{target:u,width:s}of e.sourceLinks){if(u===h)break;l+=s+_}for(const{source:u,width:s}of h.targetLinks){if(u===e)break;l-=s}return l}function G(e,h){let l=h.y0-(h.targetLinks.length-1)*_/2;for(const{source:u,width:s}of h.targetLinks){if(u===e)break;l+=s+_}for(const{target:u,width:s}of e.sourceLinks){if(u===h)break;l-=s}return l}return v}var rt=Math.PI,st=2*rt,z=1e-6,Ut=st-z;function ot(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function mt(){return new ot}ot.prototype=mt.prototype={constructor:ot,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,r,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+r)+","+(this._y1=+a)},bezierCurveTo:function(t,n,r,a,c,k){this._+="C"+ +t+","+ +n+","+ +r+","+ +a+","+(this._x1=+c)+","+(this._y1=+k)},arcTo:function(t,n,r,a,c){t=+t,n=+n,r=+r,a=+a,c=+c;var k=this._x1,_=this._y1,m=r-t,i=a-n,o=k-t,f=_-n,d=o*o+f*f;if(c<0)throw new Error("negative radius: "+c);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(d>z)if(!(Math.abs(f*m-i*o)>z)||!c)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var y=r-k,w=a-_,v=m*m+i*i,N=y*y+w*w,A=Math.sqrt(v),T=Math.sqrt(d),I=c*Math.tan((rt-Math.acos((v+d-N)/(2*A*T)))/2),P=I/T,S=I/A;Math.abs(P-1)>z&&(this._+="L"+(t+P*o)+","+(n+P*f)),this._+="A"+c+","+c+",0,0,"+ +(f*y>o*w)+","+(this._x1=t+S*m)+","+(this._y1=n+S*i)}},arc:function(t,n,r,a,c,k){t=+t,n=+n,r=+r,k=!!k;var _=r*Math.cos(a),m=r*Math.sin(a),i=t+_,o=n+m,f=1^k,d=k?a-c:c-a;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>z||Math.abs(this._y1-o)>z)&&(this._+="L"+i+","+o),r&&(d<0&&(d=d%st+st),d>Ut?this._+="A"+r+","+r+",0,1,"+f+","+(t-_)+","+(n-m)+"A"+r+","+r+",0,1,"+f+","+(this._x1=i)+","+(this._y1=o):d>z&&(this._+="A"+r+","+r+",0,"+ +(d>=rt)+","+f+","+(this._x1=t+r*Math.cos(c))+","+(this._y1=n+r*Math.sin(c))))},rect:function(t,n,r,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +r+"v"+ +a+"h"+-r+"Z"},toString:function(){return this._}};function gt(t){return function(){return t}}function Gt(t){return t[0]}function Wt(t){return t[1]}var qt=Array.prototype.slice;function Rt(t){return t.source}function Vt(t){return t.target}function Xt(t){var n=Rt,r=Vt,a=Gt,c=Wt,k=null;function _(){var m,i=qt.call(arguments),o=n.apply(this,i),f=r.apply(this,i);if(k||(k=m=mt()),t(k,+a.apply(this,(i[0]=o,i)),+c.apply(this,i),+a.apply(this,(i[0]=f,i)),+c.apply(this,i)),m)return k=null,m+""||null}return _.source=function(m){return arguments.length?(n=m,_):n},_.target=function(m){return arguments.length?(r=m,_):r},_.x=function(m){return arguments.length?(a=typeof m=="function"?m:gt(+m),_):a},_.y=function(m){return arguments.length?(c=typeof m=="function"?m:gt(+m),_):c},_.context=function(m){return arguments.length?(k=m??null,_):k},_}function Yt(t,n,r,a,c){t.moveTo(n,r),t.bezierCurveTo(n=(n+a)/2,r,n,c,a,c)}function Qt(){return Xt(Yt)}function Kt(t){return[t.source.x1,t.y0]}function Zt(t){return[t.target.x0,t.y1]}function Bt(){return Qt().source(Kt).target(Zt)}var at=function(){var t=p(function(m,i,o,f){for(o=o||{},f=m.length;f--;o[m[f]]=i);return o},"o"),n=[1,9],r=[1,10],a=[1,5,10,12],c={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:p(function(m,i,o,f,d,y,w){var v=y.length-1;switch(d){case 7:const N=f.findOrCreateNode(y[v-4].trim().replaceAll('""','"')),A=f.findOrCreateNode(y[v-2].trim().replaceAll('""','"')),T=parseFloat(y[v].trim());f.addLink(N,A,T);break;case 8:case 9:case 11:this.$=y[v];break;case 10:this.$=y[v-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:r},{1:[2,6],7:11,10:[1,12]},t(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:r},{15:18,16:7,17:8,18:n,20:r},{18:[1,19]},t(r,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:r},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:p(function(m,i){if(i.recoverable)this.trace(m);else{var o=new Error(m);throw o.hash=i,o}},"parseError"),parse:p(function(m){var i=this,o=[0],f=[],d=[null],y=[],w=this.table,v="",N=0,A=0,T=2,I=1,P=y.slice.call(arguments,1),S=Object.create(this.lexer),O={yy:{}};for(var D in this.yy)Object.prototype.hasOwnProperty.call(this.yy,D)&&(O.yy[D]=this.yy[D]);S.setInput(m,O.yy),O.yy.lexer=S,O.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var C=S.yylloc;y.push(C);var g=S.options&&S.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function L(b){o.length=o.length-2*b,d.length=d.length-b,y.length=y.length-b}p(L,"popStack");function U(){var b;return b=f.pop()||S.lex()||I,typeof b!="number"&&(b instanceof Array&&(f=b,b=f.pop()),b=i.symbols_[b]||b),b}p(U,"lex");for(var E,j,M,G,e={},h,l,u,s;;){if(j=o[o.length-1],this.defaultActions[j]?M=this.defaultActions[j]:((E===null||typeof E>"u")&&(E=U()),M=w[j]&&w[j][E]),typeof M>"u"||!M.length||!M[0]){var x="";s=[];for(h in w[j])this.terminals_[h]&&h>T&&s.push("'"+this.terminals_[h]+"'");S.showPosition?x="Parse error on line "+(N+1)+`:
|
|
2
2
|
`+S.showPosition()+`
|
|
3
|
-
Expecting `+s.join(", ")+", got '"+(this.terminals_[E]||E)+"'":x="Parse error on line "+(N+1)+": Unexpected "+(E==I?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(x,{text:S.match,token:this.terminals_[E]||E,line:S.yylineno,loc:C,expected:s})}if(M[0]instanceof Array&&M.length>1)throw new Error("Parse Error: multiple actions possible at state: "
|
|
3
|
+
Expecting `+s.join(", ")+", got '"+(this.terminals_[E]||E)+"'":x="Parse error on line "+(N+1)+": Unexpected "+(E==I?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(x,{text:S.match,token:this.terminals_[E]||E,line:S.yylineno,loc:C,expected:s})}if(M[0]instanceof Array&&M.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+E);switch(M[0]){case 1:o.push(E),d.push(S.yytext),y.push(S.yylloc),o.push(M[1]),E=null,A=S.yyleng,v=S.yytext,N=S.yylineno,C=S.yylloc;break;case 2:if(l=this.productions_[M[1]][1],e.$=d[d.length-l],e._$={first_line:y[y.length-(l||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(l||1)].first_column,last_column:y[y.length-1].last_column},g&&(e._$.range=[y[y.length-(l||1)].range[0],y[y.length-1].range[1]]),G=this.performAction.apply(e,[v,A,N,O.yy,M[1],d,y].concat(P)),typeof G<"u")return G;l&&(o=o.slice(0,-1*l*2),d=d.slice(0,-1*l),y=y.slice(0,-1*l)),o.push(this.productions_[M[1]][0]),d.push(e.$),y.push(e._$),u=w[o[o.length-2]][o[o.length-1]],o.push(u);break;case 3:return!0}}return!0},"parse")},k=function(){var m={EOF:1,parseError:p(function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},"parseError"),setInput:p(function(i,o){return this.yy=o||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},"setInput"),input:p(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:p(function(i){var o=i.length,f=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var d=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),f.length-1&&(this.yylineno-=f.length-1);var y=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:f?(f.length===d.length?this.yylloc.first_column:0)+d[d.length-f.length].length-f[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},"unput"),more:p(function(){return this._more=!0,this},"more"),reject:p(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:p(function(i){this.unput(this.match.slice(i))},"less"),pastInput:p(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:p(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,"")},"upcomingInput"),showPosition:p(function(){var i=this.pastInput(),o=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
5
5
|
`+o+"^"},"showPosition"),test_match:p(function(i,o){var f,d,y;if(this.options.backtrack_lexer&&(y={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&&(y.yylloc.range=this.yylloc.range.slice(0))),d=i[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.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],f=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)return f;if(this._backtrack){for(var w in y)this[w]=y[w];return!1}return!1},"test_match"),next:p(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,o,f,d;this._more||(this.yytext="",this.match="");for(var y=this._currentRules(),w=0;w<y.length;w++)if(f=this._input.match(this.rules[y[w]]),f&&(!o||f[0].length>o[0].length)){if(o=f,d=w,this.options.backtrack_lexer){if(i=this.test_match(f,y[w]),i!==!1)return i;if(this._backtrack){o=!1;continue}else return!1}else if(!this.options.flex)break}return o?(i=this.test_match(o,y[d]),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})},"next"),lex:p(function(){var i=this.next();return i||this.lex()},"lex"),begin:p(function(i){this.conditionStack.push(i)},"begin"),popState:p(function(){var i=this.conditionStack.length-1;return i>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:p(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:p(function(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},"topState"),pushState:p(function(i){this.begin(i)},"pushState"),stateStackSize:p(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:p(function(i,o,f,d){switch(f){case 0:return this.pushState("csv"),4;case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return m}();c.lexer=k;function _(){this.yy={}}return p(_,"Parser"),_.prototype=c,c.Parser=_,new _}();at.parser=at;var
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:p(function(){var i=this.next();return i||this.lex()},"lex"),begin:p(function(i){this.conditionStack.push(i)},"begin"),popState:p(function(){var i=this.conditionStack.length-1;return i>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:p(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:p(function(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},"topState"),pushState:p(function(i){this.begin(i)},"pushState"),stateStackSize:p(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:p(function(i,o,f,d){switch(f){case 0:return this.pushState("csv"),4;case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return m}();c.lexer=k;function _(){this.yy={}}return p(_,"Parser"),_.prototype=c,c.Parser=_,new _}();at.parser=at;var K=at,B=[],J=[],Z=new Map,Jt=p(()=>{B=[],J=[],Z=new Map,At()},"clear"),nt,Ht=(nt=class{constructor(t,n,r=0){this.source=t,this.target=n,this.value=r}},p(nt,"SankeyLink"),nt),te=p((t,n,r)=>{B.push(new Ht(t,n,r))},"addLink"),it,ee=(it=class{constructor(t){this.ID=t}},p(it,"SankeyNode"),it),ne=p(t=>{t=Tt.sanitizeText(t,lt());let n=Z.get(t);return n===void 0&&(n=new ee(t),Z.set(t,n),J.push(n)),n},"findOrCreateNode"),ie=p(()=>J,"getNodes"),re=p(()=>B,"getLinks"),se=p(()=>({nodes:J.map(t=>({id:t.ID})),links:B.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),"getGraph"),oe={nodesMap:Z,getConfig:p(()=>lt().sankey,"getConfig"),getNodes:ie,getLinks:re,getGraph:se,addLink:te,findOrCreateNode:ne,getAccTitle:St,setAccTitle:wt,getAccDescription:bt,setAccDescription:vt,getDiagramTitle:kt,setDiagramTitle:xt,clear:Jt},F,dt=(F=class{static next(t){return new F(t+ ++F.count)}constructor(t){this.id=t,this.href=`#${t}`}toString(){return"url("+this.href+")"}},p(F,"Uid"),F.count=0,F),ae={left:Ct,right:It,center:Dt,justify:_t},le=p(function(t,n,r,a){const{securityLevel:c,sankey:k}=lt(),_=Et.sankey;let m;c==="sandbox"&&(m=X("#i"+n));const i=c==="sandbox"?X(m.nodes()[0].contentDocument.body):X("body"),o=c==="sandbox"?i.select(`[id="${n}"]`):X(`[id="${n}"]`),f=(k==null?void 0:k.width)??_.width,d=(k==null?void 0:k.height)??_.width,y=(k==null?void 0:k.useMaxWidth)??_.useMaxWidth,w=(k==null?void 0:k.nodeAlignment)??_.nodeAlignment,v=(k==null?void 0:k.prefix)??_.prefix,N=(k==null?void 0:k.suffix)??_.suffix,A=(k==null?void 0:k.showValues)??_.showValues,T=a.db.getGraph(),I=ae[w];Ft().nodeId(g=>g.id).nodeWidth(10).nodePadding(10+(A?15:0)).nodeAlign(I).extent([[0,0],[f,d]])(T);const P=Lt(Nt);o.append("g").attr("class","nodes").selectAll(".node").data(T.nodes).join("g").attr("class","node").attr("id",g=>(g.uid=dt.next("node-")).id).attr("transform",function(g){return"translate("+g.x0+","+g.y0+")"}).attr("x",g=>g.x0).attr("y",g=>g.y0).append("rect").attr("height",g=>g.y1-g.y0).attr("width",g=>g.x1-g.x0).attr("fill",g=>P(g.id));const S=p(({id:g,value:L})=>A?`${g}
|
|
7
7
|
${v}${Math.round(L*100)/100}${N}`:g,"getText");o.append("g").attr("class","node-labels").attr("font-size",14).selectAll("text").data(T.nodes).join("text").attr("x",g=>g.x0<f/2?g.x1+6:g.x0-6).attr("y",g=>(g.y1+g.y0)/2).attr("dy",`${A?"0":"0.35"}em`).attr("text-anchor",g=>g.x0<f/2?"start":"end").text(S);const O=o.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(T.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),D=(k==null?void 0:k.linkColor)??"gradient";if(D==="gradient"){const g=O.append("linearGradient").attr("id",L=>(L.uid=dt.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",L=>L.source.x1).attr("x2",L=>L.target.x0);g.append("stop").attr("offset","0%").attr("stop-color",L=>P(L.source.id)),g.append("stop").attr("offset","100%").attr("stop-color",L=>P(L.target.id))}let C;switch(D){case"gradient":C=p(g=>g.uid,"coloring");break;case"source":C=p(g=>P(g.source.id),"coloring");break;case"target":C=p(g=>P(g.target.id),"coloring");break;default:C=D}O.append("path").attr("d",Bt()).attr("stroke",C).attr("stroke-width",g=>Math.max(1,g.width)),Mt(void 0,o,0,y)},"draw"),ce={draw:le},ue=p(t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
|
|
8
8
|
`).trim(),"prepareTextForParsing"),he=p(t=>`.label {
|
|
9
9
|
font-family: ${t.fontFamily};
|
|
10
|
-
}`,"getStyles"),fe=he,ye=
|
|
10
|
+
}`,"getStyles"),fe=he,ye=K.parse.bind(K);K.parse=t=>ye(ue(t));var de={styles:fe,parser:K,db:oe,renderer:ce};export{de as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as Ee,p as Ut,y as lt,x as we,m as Gt,h as Kt}from"./chunk-TZMSLE5B-CNFsEzOl-DVds0hZJ.js";import{R as y,j as Ie,c as at,e as At,O as X,A as re,B as ke,C as Le,x as L,s as ee,f as ve,n as Pe,l as _e,u as Ae,o as Ne,v as Me,y as Oe,t as Se,w as Nt,k as V,ax as kt,ay as W,ao as se,az as De,aA as $e,aB as ie,L as qt}from"./index-Dwfg9sR1.js";import{e as Re}from"./chunk-QZHKN3VN-DMEEp6GB-NSbjkrZ8.js";var zt=function(){var e=y(function(ct,I,k,E){for(k=k||{},E=ct.length;E--;k[ct[E]]=I);return k},"o"),t=[1,2],o=[1,3],a=[1,4],r=[2,4],s=[1,9],c=[1,11],h=[1,13],g=[1,14],i=[1,16],d=[1,17],n=[1,18],u=[1,24],b=[1,25],T=[1,26],w=[1,27],P=[1,28],A=[1,29],N=[1,30],M=[1,31],$=[1,32],B=[1,33],q=[1,34],Z=[1,35],rt=[1,36],z=[1,37],H=[1,38],F=[1,39],R=[1,41],Q=[1,42],j=[1,43],J=[1,44],st=[1,45],D=[1,46],f=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,55,60,61,62,63,71],v=[2,71],U=[4,5,16,50,52,53],tt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],S=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,55,60,61,62,63,71],Rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,55,60,61,62,63,71],Xt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,55,60,61,62,63,71],nt=[69,70,71],ht=[1,127],Ct={trace:y(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,actor_with_config:54,note:55,placement:56,text2:57,over:58,actor_pair:59,links:60,link:61,properties:62,details:63,spaceList:64,",":65,left_of:66,right_of:67,signaltype:68,"+":69,"-":70,ACTOR:71,config_object:72,CONFIG_START:73,CONFIG_CONTENT:74,CONFIG_END:75,SOLID_OPEN_ARROW:76,DOTTED_OPEN_ARROW:77,SOLID_ARROW:78,BIDIRECTIONAL_SOLID_ARROW:79,DOTTED_ARROW:80,BIDIRECTIONAL_DOTTED_ARROW:81,SOLID_CROSS:82,DOTTED_CROSS:83,SOLID_POINT:84,DOTTED_POINT:85,TXT:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",55:"note",58:"over",60:"links",61:"link",62:"properties",63:"details",65:",",66:"left_of",67:"right_of",69:"+",70:"-",71:"ACTOR",73:"CONFIG_START",74:"CONFIG_CONTENT",75:"CONFIG_END",76:"SOLID_OPEN_ARROW",77:"DOTTED_OPEN_ARROW",78:"SOLID_ARROW",79:"BIDIRECTIONAL_SOLID_ARROW",80:"DOTTED_ARROW",81:"BIDIRECTIONAL_DOTTED_ARROW",82:"SOLID_CROSS",83:"DOTTED_CROSS",84:"SOLID_POINT",85:"DOTTED_POINT",86:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[64,2],[64,1],[59,3],[59,1],[56,1],[56,1],[17,5],[17,5],[17,4],[54,2],[72,3],[22,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[57,1]],performAction:y(function(ct,I,k,E,O,p,G){var x=p.length-1;switch(O){case 3:return E.apply(p[x]),p[x];case 4:case 9:this.$=[];break;case 5:case 10:p[x-1].push(p[x]),this.$=p[x-1];break;case 6:case 7:case 11:case 12:this.$=p[x];break;case 8:case 13:this.$=[];break;case 15:p[x].type="createParticipant",this.$=p[x];break;case 16:p[x-1].unshift({type:"boxStart",boxData:E.parseBoxData(p[x-2])}),p[x-1].push({type:"boxEnd",boxText:p[x-2]}),this.$=p[x-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(p[x-2]),sequenceIndexStep:Number(p[x-1]),sequenceVisible:!0,signalType:E.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(p[x-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:E.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:E.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:E.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:E.LINETYPE.ACTIVE_START,actor:p[x-1].actor};break;case 23:this.$={type:"activeEnd",signalType:E.LINETYPE.ACTIVE_END,actor:p[x-1].actor};break;case 29:E.setDiagramTitle(p[x].substring(6)),this.$=p[x].substring(6);break;case 30:E.setDiagramTitle(p[x].substring(7)),this.$=p[x].substring(7);break;case 31:this.$=p[x].trim(),E.setAccTitle(this.$);break;case 32:case 33:this.$=p[x].trim(),E.setAccDescription(this.$);break;case 34:p[x-1].unshift({type:"loopStart",loopText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.LOOP_START}),p[x-1].push({type:"loopEnd",loopText:p[x-2],signalType:E.LINETYPE.LOOP_END}),this.$=p[x-1];break;case 35:p[x-1].unshift({type:"rectStart",color:E.parseMessage(p[x-2]),signalType:E.LINETYPE.RECT_START}),p[x-1].push({type:"rectEnd",color:E.parseMessage(p[x-2]),signalType:E.LINETYPE.RECT_END}),this.$=p[x-1];break;case 36:p[x-1].unshift({type:"optStart",optText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.OPT_START}),p[x-1].push({type:"optEnd",optText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.OPT_END}),this.$=p[x-1];break;case 37:p[x-1].unshift({type:"altStart",altText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.ALT_START}),p[x-1].push({type:"altEnd",signalType:E.LINETYPE.ALT_END}),this.$=p[x-1];break;case 38:p[x-1].unshift({type:"parStart",parText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.PAR_START}),p[x-1].push({type:"parEnd",signalType:E.LINETYPE.PAR_END}),this.$=p[x-1];break;case 39:p[x-1].unshift({type:"parStart",parText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.PAR_OVER_START}),p[x-1].push({type:"parEnd",signalType:E.LINETYPE.PAR_END}),this.$=p[x-1];break;case 40:p[x-1].unshift({type:"criticalStart",criticalText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.CRITICAL_START}),p[x-1].push({type:"criticalEnd",signalType:E.LINETYPE.CRITICAL_END}),this.$=p[x-1];break;case 41:p[x-1].unshift({type:"breakStart",breakText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.BREAK_START}),p[x-1].push({type:"breakEnd",optText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.BREAK_END}),this.$=p[x-1];break;case 43:this.$=p[x-3].concat([{type:"option",optionText:E.parseMessage(p[x-1]),signalType:E.LINETYPE.CRITICAL_OPTION},p[x]]);break;case 45:this.$=p[x-3].concat([{type:"and",parText:E.parseMessage(p[x-1]),signalType:E.LINETYPE.PAR_AND},p[x]]);break;case 47:this.$=p[x-3].concat([{type:"else",altText:E.parseMessage(p[x-1]),signalType:E.LINETYPE.ALT_ELSE},p[x]]);break;case 48:p[x-3].draw="participant",p[x-3].type="addParticipant",p[x-3].description=E.parseMessage(p[x-1]),this.$=p[x-3];break;case 49:p[x-1].draw="participant",p[x-1].type="addParticipant",this.$=p[x-1];break;case 50:p[x-3].draw="actor",p[x-3].type="addParticipant",p[x-3].description=E.parseMessage(p[x-1]),this.$=p[x-3];break;case 51:p[x-1].draw="actor",p[x-1].type="addParticipant",this.$=p[x-1];break;case 52:p[x-1].type="destroyParticipant",this.$=p[x-1];break;case 53:p[x-1].draw="participant",p[x-1].type="addParticipant",this.$=p[x-1];break;case 54:this.$=[p[x-1],{type:"addNote",placement:p[x-2],actor:p[x-1].actor,text:p[x]}];break;case 55:p[x-2]=[].concat(p[x-1],p[x-1]).slice(0,2),p[x-2][0]=p[x-2][0].actor,p[x-2][1]=p[x-2][1].actor,this.$=[p[x-1],{type:"addNote",placement:E.PLACEMENT.OVER,actor:p[x-2].slice(0,2),text:p[x]}];break;case 56:this.$=[p[x-1],{type:"addLinks",actor:p[x-1].actor,text:p[x]}];break;case 57:this.$=[p[x-1],{type:"addALink",actor:p[x-1].actor,text:p[x]}];break;case 58:this.$=[p[x-1],{type:"addProperties",actor:p[x-1].actor,text:p[x]}];break;case 59:this.$=[p[x-1],{type:"addDetails",actor:p[x-1].actor,text:p[x]}];break;case 62:this.$=[p[x-2],p[x]];break;case 63:this.$=p[x];break;case 64:this.$=E.PLACEMENT.LEFTOF;break;case 65:this.$=E.PLACEMENT.RIGHTOF;break;case 66:this.$=[p[x-4],p[x-1],{type:"addMessage",from:p[x-4].actor,to:p[x-1].actor,signalType:p[x-3],msg:p[x],activate:!0},{type:"activeStart",signalType:E.LINETYPE.ACTIVE_START,actor:p[x-1].actor}];break;case 67:this.$=[p[x-4],p[x-1],{type:"addMessage",from:p[x-4].actor,to:p[x-1].actor,signalType:p[x-3],msg:p[x]},{type:"activeEnd",signalType:E.LINETYPE.ACTIVE_END,actor:p[x-4].actor}];break;case 68:this.$=[p[x-3],p[x-1],{type:"addMessage",from:p[x-3].actor,to:p[x-1].actor,signalType:p[x-2],msg:p[x]}];break;case 69:this.$={type:"addParticipant",actor:p[x-1],config:p[x]};break;case 70:this.$=p[x-1].trim();break;case 71:this.$={type:"addParticipant",actor:p[x]};break;case 72:this.$=E.LINETYPE.SOLID_OPEN;break;case 73:this.$=E.LINETYPE.DOTTED_OPEN;break;case 74:this.$=E.LINETYPE.SOLID;break;case 75:this.$=E.LINETYPE.BIDIRECTIONAL_SOLID;break;case 76:this.$=E.LINETYPE.DOTTED;break;case 77:this.$=E.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 78:this.$=E.LINETYPE.SOLID_CROSS;break;case 79:this.$=E.LINETYPE.DOTTED_CROSS;break;case 80:this.$=E.LINETYPE.SOLID_POINT;break;case 81:this.$=E.LINETYPE.DOTTED_POINT;break;case 82:this.$=E.parseMessage(p[x].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:o,6:a},{1:[3]},{3:5,4:t,5:o,6:a},{3:6,4:t,5:o,6:a},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:s,5:c,8:8,9:10,12:12,13:h,14:g,17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},e(f,[2,5]),{9:47,12:12,13:h,14:g,17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},e(f,[2,7]),e(f,[2,8]),e(f,[2,14]),{12:48,50:z,52:H,53:F},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,71:D},{22:55,71:D},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(f,[2,29]),e(f,[2,30]),{32:[1,61]},{34:[1,62]},e(f,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,54:72,71:[1,73]},{22:74,71:D},{22:75,71:D},{68:76,76:[1,77],77:[1,78],78:[1,79],79:[1,80],80:[1,81],81:[1,82],82:[1,83],83:[1,84],84:[1,85],85:[1,86]},{56:87,58:[1,88],66:[1,89],67:[1,90]},{22:91,71:D},{22:92,71:D},{22:93,71:D},{22:94,71:D},e([5,51,65,76,77,78,79,80,81,82,83,84,85,86],v),e(f,[2,6]),e(f,[2,15]),e(U,[2,9],{10:95}),e(f,[2,17]),{5:[1,97],19:[1,96]},{5:[1,98]},e(f,[2,21]),{5:[1,99]},{5:[1,100]},e(f,[2,24]),e(f,[2,25]),e(f,[2,26]),e(f,[2,27]),e(f,[2,28]),e(f,[2,31]),e(f,[2,32]),e(tt,r,{7:101}),e(tt,r,{7:102}),e(tt,r,{7:103}),e(S,r,{40:104,7:105}),e(Rt,r,{42:106,7:107}),e(Rt,r,{7:107,42:108}),e(Xt,r,{45:109,7:110}),e(tt,r,{7:111}),{5:[1,113],51:[1,112]},{5:[1,114]},e([5,51],v,{72:115,73:[1,116]}),{5:[1,118],51:[1,117]},{5:[1,119]},{22:122,69:[1,120],70:[1,121],71:D},e(nt,[2,72]),e(nt,[2,73]),e(nt,[2,74]),e(nt,[2,75]),e(nt,[2,76]),e(nt,[2,77]),e(nt,[2,78]),e(nt,[2,79]),e(nt,[2,80]),e(nt,[2,81]),{22:123,71:D},{22:125,59:124,71:D},{71:[2,64]},{71:[2,65]},{57:126,86:ht},{57:128,86:ht},{57:129,86:ht},{57:130,86:ht},{4:[1,133],5:[1,135],11:132,12:134,16:[1,131],50:z,52:H,53:F},{5:[1,136]},e(f,[2,19]),e(f,[2,20]),e(f,[2,22]),e(f,[2,23]),{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[1,137],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[1,138],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[1,139],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{16:[1,140]},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[2,46],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,49:[1,141],50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{16:[1,142]},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[2,44],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,48:[1,143],50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{16:[1,144]},{16:[1,145]},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[2,42],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,47:[1,146],50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[1,147],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{15:[1,148]},e(f,[2,49]),e(f,[2,53]),{5:[2,69]},{74:[1,149]},{15:[1,150]},e(f,[2,51]),e(f,[2,52]),{22:151,71:D},{22:152,71:D},{57:153,86:ht},{57:154,86:ht},{57:155,86:ht},{65:[1,156],86:[2,63]},{5:[2,56]},{5:[2,82]},{5:[2,57]},{5:[2,58]},{5:[2,59]},e(f,[2,16]),e(U,[2,10]),{12:157,50:z,52:H,53:F},e(U,[2,12]),e(U,[2,13]),e(f,[2,18]),e(f,[2,34]),e(f,[2,35]),e(f,[2,36]),e(f,[2,37]),{15:[1,158]},e(f,[2,38]),{15:[1,159]},e(f,[2,39]),e(f,[2,40]),{15:[1,160]},e(f,[2,41]),{5:[1,161]},{75:[1,162]},{5:[1,163]},{57:164,86:ht},{57:165,86:ht},{5:[2,68]},{5:[2,54]},{5:[2,55]},{22:166,71:D},e(U,[2,11]),e(S,r,{7:105,40:167}),e(Rt,r,{7:107,42:168}),e(Xt,r,{7:110,45:169}),e(f,[2,48]),{5:[2,70]},e(f,[2,50]),{5:[2,66]},{5:[2,67]},{86:[2,62]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],89:[2,64],90:[2,65],115:[2,69],126:[2,56],127:[2,82],128:[2,57],129:[2,58],130:[2,59],153:[2,68],154:[2,54],155:[2,55],162:[2,70],164:[2,66],165:[2,67],166:[2,62],167:[2,47],168:[2,45],169:[2,43]},parseError:y(function(ct,I){if(I.recoverable)this.trace(ct);else{var k=new Error(ct);throw k.hash=I,k}},"parseError"),parse:y(function(ct){var I=this,k=[0],E=[],O=[null],p=[],G=this.table,x="",vt=0,Zt=0,be=2,Qt=1,me=p.slice.call(arguments,1),Y=Object.create(this.lexer),yt={yy:{}};for(var Bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Bt)&&(yt.yy[Bt]=this.yy[Bt]);Y.setInput(ct,yt.yy),yt.yy.lexer=Y,yt.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Yt=Y.yylloc;p.push(Yt);var Te=Y.options&&Y.options.ranges;typeof yt.yy.parseError=="function"?this.parseError=yt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fe(et){k.length=k.length-2*et,O.length=O.length-et,p.length=p.length-et}y(fe,"popStack");function Jt(){var et;return et=E.pop()||Y.lex()||Qt,typeof et!="number"&&(et instanceof Array&&(E=et,et=E.pop()),et=I.symbols_[et]||et),et}y(Jt,"lex");for(var K,bt,it,Vt,ft={},Pt,dt,te,_t;;){if(bt=k[k.length-1],this.defaultActions[bt]?it=this.defaultActions[bt]:((K===null||typeof K>"u")&&(K=Jt()),it=G[bt]&&G[bt][K]),typeof it>"u"||!it.length||!it[0]){var Ft="";_t=[];for(Pt in G[bt])this.terminals_[Pt]&&Pt>be&&_t.push("'"+this.terminals_[Pt]+"'");Y.showPosition?Ft="Parse error on line "+(vt+1)+`:
|
|
1
|
+
import{d as Ee,p as Ut,y as lt,x as we,m as Gt,h as Kt}from"./chunk-TZMSLE5B-DGddLgNl-oFBh2Kwv.js";import{R as y,k as Ie,g as at,e as At,O as X,i as re,B as ke,N as Le,x as L,s as ee,f as ve,o as Pe,l as _e,u as Ae,r as Ne,v as Me,y as Oe,w as Se,A as Nt,n as V,ax as kt,ay as W,ao as se,az as De,aA as $e,aB as ie,J as qt}from"./index-CyVB0J6E.js";import{e as Re}from"./chunk-QZHKN3VN-C6_I39By-wG4V5ipa.js";var zt=function(){var e=y(function(ct,I,k,E){for(k=k||{},E=ct.length;E--;k[ct[E]]=I);return k},"o"),t=[1,2],o=[1,3],a=[1,4],r=[2,4],s=[1,9],c=[1,11],h=[1,13],g=[1,14],i=[1,16],d=[1,17],n=[1,18],u=[1,24],b=[1,25],T=[1,26],w=[1,27],P=[1,28],A=[1,29],N=[1,30],M=[1,31],$=[1,32],B=[1,33],q=[1,34],Z=[1,35],rt=[1,36],z=[1,37],H=[1,38],F=[1,39],R=[1,41],Q=[1,42],j=[1,43],J=[1,44],st=[1,45],D=[1,46],f=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,55,60,61,62,63,71],v=[2,71],U=[4,5,16,50,52,53],tt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],S=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,55,60,61,62,63,71],Rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,55,60,61,62,63,71],Xt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,55,60,61,62,63,71],nt=[69,70,71],ht=[1,127],Ct={trace:y(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,actor_with_config:54,note:55,placement:56,text2:57,over:58,actor_pair:59,links:60,link:61,properties:62,details:63,spaceList:64,",":65,left_of:66,right_of:67,signaltype:68,"+":69,"-":70,ACTOR:71,config_object:72,CONFIG_START:73,CONFIG_CONTENT:74,CONFIG_END:75,SOLID_OPEN_ARROW:76,DOTTED_OPEN_ARROW:77,SOLID_ARROW:78,BIDIRECTIONAL_SOLID_ARROW:79,DOTTED_ARROW:80,BIDIRECTIONAL_DOTTED_ARROW:81,SOLID_CROSS:82,DOTTED_CROSS:83,SOLID_POINT:84,DOTTED_POINT:85,TXT:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",55:"note",58:"over",60:"links",61:"link",62:"properties",63:"details",65:",",66:"left_of",67:"right_of",69:"+",70:"-",71:"ACTOR",73:"CONFIG_START",74:"CONFIG_CONTENT",75:"CONFIG_END",76:"SOLID_OPEN_ARROW",77:"DOTTED_OPEN_ARROW",78:"SOLID_ARROW",79:"BIDIRECTIONAL_SOLID_ARROW",80:"DOTTED_ARROW",81:"BIDIRECTIONAL_DOTTED_ARROW",82:"SOLID_CROSS",83:"DOTTED_CROSS",84:"SOLID_POINT",85:"DOTTED_POINT",86:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[64,2],[64,1],[59,3],[59,1],[56,1],[56,1],[17,5],[17,5],[17,4],[54,2],[72,3],[22,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[57,1]],performAction:y(function(ct,I,k,E,O,p,G){var x=p.length-1;switch(O){case 3:return E.apply(p[x]),p[x];case 4:case 9:this.$=[];break;case 5:case 10:p[x-1].push(p[x]),this.$=p[x-1];break;case 6:case 7:case 11:case 12:this.$=p[x];break;case 8:case 13:this.$=[];break;case 15:p[x].type="createParticipant",this.$=p[x];break;case 16:p[x-1].unshift({type:"boxStart",boxData:E.parseBoxData(p[x-2])}),p[x-1].push({type:"boxEnd",boxText:p[x-2]}),this.$=p[x-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(p[x-2]),sequenceIndexStep:Number(p[x-1]),sequenceVisible:!0,signalType:E.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(p[x-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:E.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:E.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:E.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:E.LINETYPE.ACTIVE_START,actor:p[x-1].actor};break;case 23:this.$={type:"activeEnd",signalType:E.LINETYPE.ACTIVE_END,actor:p[x-1].actor};break;case 29:E.setDiagramTitle(p[x].substring(6)),this.$=p[x].substring(6);break;case 30:E.setDiagramTitle(p[x].substring(7)),this.$=p[x].substring(7);break;case 31:this.$=p[x].trim(),E.setAccTitle(this.$);break;case 32:case 33:this.$=p[x].trim(),E.setAccDescription(this.$);break;case 34:p[x-1].unshift({type:"loopStart",loopText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.LOOP_START}),p[x-1].push({type:"loopEnd",loopText:p[x-2],signalType:E.LINETYPE.LOOP_END}),this.$=p[x-1];break;case 35:p[x-1].unshift({type:"rectStart",color:E.parseMessage(p[x-2]),signalType:E.LINETYPE.RECT_START}),p[x-1].push({type:"rectEnd",color:E.parseMessage(p[x-2]),signalType:E.LINETYPE.RECT_END}),this.$=p[x-1];break;case 36:p[x-1].unshift({type:"optStart",optText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.OPT_START}),p[x-1].push({type:"optEnd",optText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.OPT_END}),this.$=p[x-1];break;case 37:p[x-1].unshift({type:"altStart",altText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.ALT_START}),p[x-1].push({type:"altEnd",signalType:E.LINETYPE.ALT_END}),this.$=p[x-1];break;case 38:p[x-1].unshift({type:"parStart",parText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.PAR_START}),p[x-1].push({type:"parEnd",signalType:E.LINETYPE.PAR_END}),this.$=p[x-1];break;case 39:p[x-1].unshift({type:"parStart",parText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.PAR_OVER_START}),p[x-1].push({type:"parEnd",signalType:E.LINETYPE.PAR_END}),this.$=p[x-1];break;case 40:p[x-1].unshift({type:"criticalStart",criticalText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.CRITICAL_START}),p[x-1].push({type:"criticalEnd",signalType:E.LINETYPE.CRITICAL_END}),this.$=p[x-1];break;case 41:p[x-1].unshift({type:"breakStart",breakText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.BREAK_START}),p[x-1].push({type:"breakEnd",optText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.BREAK_END}),this.$=p[x-1];break;case 43:this.$=p[x-3].concat([{type:"option",optionText:E.parseMessage(p[x-1]),signalType:E.LINETYPE.CRITICAL_OPTION},p[x]]);break;case 45:this.$=p[x-3].concat([{type:"and",parText:E.parseMessage(p[x-1]),signalType:E.LINETYPE.PAR_AND},p[x]]);break;case 47:this.$=p[x-3].concat([{type:"else",altText:E.parseMessage(p[x-1]),signalType:E.LINETYPE.ALT_ELSE},p[x]]);break;case 48:p[x-3].draw="participant",p[x-3].type="addParticipant",p[x-3].description=E.parseMessage(p[x-1]),this.$=p[x-3];break;case 49:p[x-1].draw="participant",p[x-1].type="addParticipant",this.$=p[x-1];break;case 50:p[x-3].draw="actor",p[x-3].type="addParticipant",p[x-3].description=E.parseMessage(p[x-1]),this.$=p[x-3];break;case 51:p[x-1].draw="actor",p[x-1].type="addParticipant",this.$=p[x-1];break;case 52:p[x-1].type="destroyParticipant",this.$=p[x-1];break;case 53:p[x-1].draw="participant",p[x-1].type="addParticipant",this.$=p[x-1];break;case 54:this.$=[p[x-1],{type:"addNote",placement:p[x-2],actor:p[x-1].actor,text:p[x]}];break;case 55:p[x-2]=[].concat(p[x-1],p[x-1]).slice(0,2),p[x-2][0]=p[x-2][0].actor,p[x-2][1]=p[x-2][1].actor,this.$=[p[x-1],{type:"addNote",placement:E.PLACEMENT.OVER,actor:p[x-2].slice(0,2),text:p[x]}];break;case 56:this.$=[p[x-1],{type:"addLinks",actor:p[x-1].actor,text:p[x]}];break;case 57:this.$=[p[x-1],{type:"addALink",actor:p[x-1].actor,text:p[x]}];break;case 58:this.$=[p[x-1],{type:"addProperties",actor:p[x-1].actor,text:p[x]}];break;case 59:this.$=[p[x-1],{type:"addDetails",actor:p[x-1].actor,text:p[x]}];break;case 62:this.$=[p[x-2],p[x]];break;case 63:this.$=p[x];break;case 64:this.$=E.PLACEMENT.LEFTOF;break;case 65:this.$=E.PLACEMENT.RIGHTOF;break;case 66:this.$=[p[x-4],p[x-1],{type:"addMessage",from:p[x-4].actor,to:p[x-1].actor,signalType:p[x-3],msg:p[x],activate:!0},{type:"activeStart",signalType:E.LINETYPE.ACTIVE_START,actor:p[x-1].actor}];break;case 67:this.$=[p[x-4],p[x-1],{type:"addMessage",from:p[x-4].actor,to:p[x-1].actor,signalType:p[x-3],msg:p[x]},{type:"activeEnd",signalType:E.LINETYPE.ACTIVE_END,actor:p[x-4].actor}];break;case 68:this.$=[p[x-3],p[x-1],{type:"addMessage",from:p[x-3].actor,to:p[x-1].actor,signalType:p[x-2],msg:p[x]}];break;case 69:this.$={type:"addParticipant",actor:p[x-1],config:p[x]};break;case 70:this.$=p[x-1].trim();break;case 71:this.$={type:"addParticipant",actor:p[x]};break;case 72:this.$=E.LINETYPE.SOLID_OPEN;break;case 73:this.$=E.LINETYPE.DOTTED_OPEN;break;case 74:this.$=E.LINETYPE.SOLID;break;case 75:this.$=E.LINETYPE.BIDIRECTIONAL_SOLID;break;case 76:this.$=E.LINETYPE.DOTTED;break;case 77:this.$=E.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 78:this.$=E.LINETYPE.SOLID_CROSS;break;case 79:this.$=E.LINETYPE.DOTTED_CROSS;break;case 80:this.$=E.LINETYPE.SOLID_POINT;break;case 81:this.$=E.LINETYPE.DOTTED_POINT;break;case 82:this.$=E.parseMessage(p[x].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:o,6:a},{1:[3]},{3:5,4:t,5:o,6:a},{3:6,4:t,5:o,6:a},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:s,5:c,8:8,9:10,12:12,13:h,14:g,17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},e(f,[2,5]),{9:47,12:12,13:h,14:g,17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},e(f,[2,7]),e(f,[2,8]),e(f,[2,14]),{12:48,50:z,52:H,53:F},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,71:D},{22:55,71:D},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(f,[2,29]),e(f,[2,30]),{32:[1,61]},{34:[1,62]},e(f,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,54:72,71:[1,73]},{22:74,71:D},{22:75,71:D},{68:76,76:[1,77],77:[1,78],78:[1,79],79:[1,80],80:[1,81],81:[1,82],82:[1,83],83:[1,84],84:[1,85],85:[1,86]},{56:87,58:[1,88],66:[1,89],67:[1,90]},{22:91,71:D},{22:92,71:D},{22:93,71:D},{22:94,71:D},e([5,51,65,76,77,78,79,80,81,82,83,84,85,86],v),e(f,[2,6]),e(f,[2,15]),e(U,[2,9],{10:95}),e(f,[2,17]),{5:[1,97],19:[1,96]},{5:[1,98]},e(f,[2,21]),{5:[1,99]},{5:[1,100]},e(f,[2,24]),e(f,[2,25]),e(f,[2,26]),e(f,[2,27]),e(f,[2,28]),e(f,[2,31]),e(f,[2,32]),e(tt,r,{7:101}),e(tt,r,{7:102}),e(tt,r,{7:103}),e(S,r,{40:104,7:105}),e(Rt,r,{42:106,7:107}),e(Rt,r,{7:107,42:108}),e(Xt,r,{45:109,7:110}),e(tt,r,{7:111}),{5:[1,113],51:[1,112]},{5:[1,114]},e([5,51],v,{72:115,73:[1,116]}),{5:[1,118],51:[1,117]},{5:[1,119]},{22:122,69:[1,120],70:[1,121],71:D},e(nt,[2,72]),e(nt,[2,73]),e(nt,[2,74]),e(nt,[2,75]),e(nt,[2,76]),e(nt,[2,77]),e(nt,[2,78]),e(nt,[2,79]),e(nt,[2,80]),e(nt,[2,81]),{22:123,71:D},{22:125,59:124,71:D},{71:[2,64]},{71:[2,65]},{57:126,86:ht},{57:128,86:ht},{57:129,86:ht},{57:130,86:ht},{4:[1,133],5:[1,135],11:132,12:134,16:[1,131],50:z,52:H,53:F},{5:[1,136]},e(f,[2,19]),e(f,[2,20]),e(f,[2,22]),e(f,[2,23]),{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[1,137],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[1,138],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[1,139],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{16:[1,140]},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[2,46],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,49:[1,141],50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{16:[1,142]},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[2,44],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,48:[1,143],50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{16:[1,144]},{16:[1,145]},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[2,42],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,47:[1,146],50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[1,147],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{15:[1,148]},e(f,[2,49]),e(f,[2,53]),{5:[2,69]},{74:[1,149]},{15:[1,150]},e(f,[2,51]),e(f,[2,52]),{22:151,71:D},{22:152,71:D},{57:153,86:ht},{57:154,86:ht},{57:155,86:ht},{65:[1,156],86:[2,63]},{5:[2,56]},{5:[2,82]},{5:[2,57]},{5:[2,58]},{5:[2,59]},e(f,[2,16]),e(U,[2,10]),{12:157,50:z,52:H,53:F},e(U,[2,12]),e(U,[2,13]),e(f,[2,18]),e(f,[2,34]),e(f,[2,35]),e(f,[2,36]),e(f,[2,37]),{15:[1,158]},e(f,[2,38]),{15:[1,159]},e(f,[2,39]),e(f,[2,40]),{15:[1,160]},e(f,[2,41]),{5:[1,161]},{75:[1,162]},{5:[1,163]},{57:164,86:ht},{57:165,86:ht},{5:[2,68]},{5:[2,54]},{5:[2,55]},{22:166,71:D},e(U,[2,11]),e(S,r,{7:105,40:167}),e(Rt,r,{7:107,42:168}),e(Xt,r,{7:110,45:169}),e(f,[2,48]),{5:[2,70]},e(f,[2,50]),{5:[2,66]},{5:[2,67]},{86:[2,62]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],89:[2,64],90:[2,65],115:[2,69],126:[2,56],127:[2,82],128:[2,57],129:[2,58],130:[2,59],153:[2,68],154:[2,54],155:[2,55],162:[2,70],164:[2,66],165:[2,67],166:[2,62],167:[2,47],168:[2,45],169:[2,43]},parseError:y(function(ct,I){if(I.recoverable)this.trace(ct);else{var k=new Error(ct);throw k.hash=I,k}},"parseError"),parse:y(function(ct){var I=this,k=[0],E=[],O=[null],p=[],G=this.table,x="",vt=0,Zt=0,be=2,Qt=1,me=p.slice.call(arguments,1),Y=Object.create(this.lexer),yt={yy:{}};for(var Bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Bt)&&(yt.yy[Bt]=this.yy[Bt]);Y.setInput(ct,yt.yy),yt.yy.lexer=Y,yt.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Yt=Y.yylloc;p.push(Yt);var Te=Y.options&&Y.options.ranges;typeof yt.yy.parseError=="function"?this.parseError=yt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fe(et){k.length=k.length-2*et,O.length=O.length-et,p.length=p.length-et}y(fe,"popStack");function Jt(){var et;return et=E.pop()||Y.lex()||Qt,typeof et!="number"&&(et instanceof Array&&(E=et,et=E.pop()),et=I.symbols_[et]||et),et}y(Jt,"lex");for(var K,bt,it,Vt,ft={},Pt,dt,te,_t;;){if(bt=k[k.length-1],this.defaultActions[bt]?it=this.defaultActions[bt]:((K===null||typeof K>"u")&&(K=Jt()),it=G[bt]&&G[bt][K]),typeof it>"u"||!it.length||!it[0]){var Ft="";_t=[];for(Pt in G[bt])this.terminals_[Pt]&&Pt>be&&_t.push("'"+this.terminals_[Pt]+"'");Y.showPosition?Ft="Parse error on line "+(vt+1)+`:
|
|
2
2
|
`+Y.showPosition()+`
|
|
3
3
|
Expecting `+_t.join(", ")+", got '"+(this.terminals_[K]||K)+"'":Ft="Parse error on line "+(vt+1)+": Unexpected "+(K==Qt?"end of input":"'"+(this.terminals_[K]||K)+"'"),this.parseError(Ft,{text:Y.match,token:this.terminals_[K]||K,line:Y.yylineno,loc:Yt,expected:_t})}if(it[0]instanceof Array&&it.length>1)throw new Error("Parse Error: multiple actions possible at state: "+bt+", token: "+K);switch(it[0]){case 1:k.push(K),O.push(Y.yytext),p.push(Y.yylloc),k.push(it[1]),K=null,Zt=Y.yyleng,x=Y.yytext,vt=Y.yylineno,Yt=Y.yylloc;break;case 2:if(dt=this.productions_[it[1]][1],ft.$=O[O.length-dt],ft._$={first_line:p[p.length-(dt||1)].first_line,last_line:p[p.length-1].last_line,first_column:p[p.length-(dt||1)].first_column,last_column:p[p.length-1].last_column},Te&&(ft._$.range=[p[p.length-(dt||1)].range[0],p[p.length-1].range[1]]),Vt=this.performAction.apply(ft,[x,Zt,vt,yt.yy,it[1],O,p].concat(me)),typeof Vt<"u")return Vt;dt&&(k=k.slice(0,-1*dt*2),O=O.slice(0,-1*dt),p=p.slice(0,-1*dt)),k.push(this.productions_[it[1]][0]),O.push(ft.$),p.push(ft._$),te=G[k[k.length-2]][k[k.length-1]],k.push(te);break;case 3:return!0}}return!0},"parse")},ye=function(){var ct={EOF:1,parseError:y(function(I,k){if(this.yy.parser)this.yy.parser.parseError(I,k);else throw new Error(I)},"parseError"),setInput:y(function(I,k){return this.yy=k||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},"setInput"),input:y(function(){var I=this._input[0];this.yytext+=I,this.yyleng++,this.offset++,this.match+=I,this.matched+=I;var k=I.match(/(?:\r\n?|\n).*/g);return k?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),I},"input"),unput:y(function(I){var k=I.length,E=I.split(/(?:\r\n?|\n)/g);this._input=I+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-k),this.offset-=k;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),E.length-1&&(this.yylineno-=E.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:E?(E.length===O.length?this.yylloc.first_column:0)+O[O.length-E.length].length-E[0].length:this.yylloc.first_column-k},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-k]),this.yyleng=this.yytext.length,this},"unput"),more:y(function(){return this._more=!0,this},"more"),reject:y(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:y(function(I){this.unput(this.match.slice(I))},"less"),pastInput:y(function(){var I=this.matched.substr(0,this.matched.length-this.match.length);return(I.length>20?"...":"")+I.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:y(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,"")},"upcomingInput"),showPosition:y(function(){var I=this.pastInput(),k=new Array(I.length+1).join("-");return I+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{U as A,B as G,M}from"./chunk-DI55MBZ5-i035IDz6-DxyMtoDb.js";import{R as y,c as t,e as v,O as E,B as O,x as H,aw as U,aD as R,aA as P,k as I}from"./index-Dwfg9sR1.js";import{L as C}from"./graph-ClfIprSM-BZwHPDDo.js";import{o as $}from"./layout-DoRwGyA9-CrmvCQM-.js";import"./chunk-55IACEB6-_r7qMy9s-Dy635JXO.js";import"./chunk-QN33PNHL-C8-RyAc3-Bziqpynq.js";import"./_baseUniq-DRc_T5HB-BsnuNSgv.js";import"./_basePickBy-BjEly54R-XZ-uT-Uj.js";var W=y(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),Y=y(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),F=y((e,n)=>{const g=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(n.id),s=g.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",s.width+2*t().state.padding).attr("height",s.height+2*t().state.padding).attr("rx",t().state.radius),g},"drawSimpleState"),J=y((e,n)=>{const g=y(function(o,u,b){const m=o.append("tspan").attr("x",2*t().state.padding).text(u);b||m.attr("dy",t().state.textHeight)},"addTspan"),s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(n.descriptions[0]).node().getBBox(),r=s.height,c=e.append("text").attr("x",t().state.padding).attr("y",r+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let l=!0,a=!0;n.descriptions.forEach(function(o){l||(g(c,o,a),a=!1),l=!1});const d=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+r+t().state.dividerMargin/2).attr("y2",t().state.padding+r+t().state.dividerMargin/2).attr("class","descr-divider"),x=c.node().getBBox(),h=Math.max(x.width,s.width);return d.attr("x2",h+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",h+2*t().state.padding).attr("height",x.height+r+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),j=y((e,n,g)=>{const s=t().state.padding,r=2*t().state.padding,c=e.node().getBBox(),l=c.width,a=c.x,d=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(n.id),x=d.node().getBBox().width+r;let h=Math.max(x,l);h===l&&(h=h+r);let o;const u=e.node().getBBox();n.doc,o=a-s,x>l&&(o=(l-h)/2+s),Math.abs(a-u.x)<s&&x>l&&(o=a-(x-l)/2);const b=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",o).attr("y",b).attr("class",g?"alt-composit":"composit").attr("width",h).attr("height",u.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),d.attr("x",o+s),x<=l&&d.attr("x",a+(h-r)/2-x/2+s),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",h).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",h).attr("height",u.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),q=y(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),X=y((e,n)=>{let g=t().state.forkWidth,s=t().state.forkHeight;if(n.parentId){let r=g;g=s,s=r}return e.append("rect").style("stroke","black").style("fill","black").attr("width",g).attr("height",s).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),K=y((e,n,g,s)=>{let r=0;const c=s.append("text");c.style("text-anchor","start"),c.attr("class","noteText");let l=e.replace(/\r\n/g,"<br/>");l=l.replace(/\n/g,"<br/>");const a=l.split(H.lineBreakRegex);let d=1.25*t().state.noteMargin;for(const x of a){const h=x.trim();if(h.length>0){const o=c.append("tspan");if(o.text(h),d===0){const u=o.node().getBBox();d+=u.height}r+=d,o.attr("x",n+t().state.noteMargin),o.attr("y",g+r+1.25*t().state.noteMargin)}}return{textWidth:c.node().getBBox().width,textHeight:r}},"_drawLongText"),Z=y((e,n)=>{n.attr("class","state-note");const g=n.append("rect").attr("x",0).attr("y",t().state.padding),s=n.append("g"),{textWidth:r,textHeight:c}=K(e,0,0,s);return g.attr("height",c+2*t().state.noteMargin),g.attr("width",r+t().state.noteMargin*2),g},"drawNote"),T=y(function(e,n){const g=n.id,s={id:g,label:n.id,width:0,height:0},r=e.append("g").attr("id",g).attr("class","stateGroup");n.type==="start"&&W(r),n.type==="end"&&q(r),(n.type==="fork"||n.type==="join")&&X(r,n),n.type==="note"&&Z(n.note.text,r),n.type==="divider"&&Y(r),n.type==="default"&&n.descriptions.length===0&&F(r,n),n.type==="default"&&n.descriptions.length>0&&J(r,n);const c=r.node().getBBox();return s.width=c.width+2*t().state.padding,s.height=c.height+2*t().state.padding,s},"drawState"),L=0,Q=y(function(e,n,g){const s=y(function(d){switch(d){case M.relationType.AGGREGATION:return"aggregation";case M.relationType.EXTENSION:return"extension";case M.relationType.COMPOSITION:return"composition";case M.relationType.DEPENDENCY:return"dependency"}},"getRelationType");n.points=n.points.filter(d=>!Number.isNaN(d.y));const r=n.points,c=U().x(function(d){return d.x}).y(function(d){return d.y}).curve(R),l=e.append("path").attr("d",c(r)).attr("id","edge"+L).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=P(!0)),l.attr("marker-end","url("+a+"#"+s(M.relationType.DEPENDENCY)+"End)"),g.title!==void 0){const d=e.append("g").attr("class","stateLabel"),{x,y:h}=I.calcLabelPosition(n.points),o=H.getRows(g.title);let u=0;const b=[];let m=0,N=0;for(let f=0;f<=o.length;f++){const p=d.append("text").attr("text-anchor","middle").text(o[f]).attr("x",x).attr("y",h+u),w=p.node().getBBox();m=Math.max(m,w.width),N=Math.min(N,w.x),E.info(w.x,x,h+u),u===0&&(u=p.node().getBBox().height,E.info("Title height",u,h)),b.push(p)}let S=u*o.length;if(o.length>1){const f=(o.length-1)*u*.5;b.forEach((p,w)=>p.attr("y",h+w*u-f)),S=u*o.length}const i=d.node().getBBox();d.insert("rect",":first-child").attr("class","box").attr("x",x-m/2-t().state.padding/2).attr("y",h-S/2-t().state.padding/2-3.5).attr("width",m+t().state.padding).attr("height",S+t().state.padding),E.info(i)}L++},"drawEdge"),B,z={},V=y(function(){},"setConf"),_=y(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),tt=y(function(e,n,g,s){B=t().state;const r=t().securityLevel;let c;r==="sandbox"&&(c=v("#i"+n));const l=r==="sandbox"?v(c.nodes()[0].contentDocument.body):v("body"),a=r==="sandbox"?c.nodes()[0].contentDocument:document;E.debug("Rendering diagram "+e);const d=l.select(`[id='${n}']`);_(d);const x=s.db.getRootDoc();D(x,d,void 0,!1,l,a,s);const h=B.padding,o=d.node().getBBox(),u=o.width+h*2,b=o.height+h*2,m=u*1.75;O(d,b,m,B.useMaxWidth),d.attr("viewBox",`${o.x-B.padding} ${o.y-B.padding} `+u+" "+b)},"draw"),et=y(e=>e?e.length*B.fontSizeFactor:1,"getLabelWidth"),D=y((e,n,g,s,r,c,l)=>{const a=new C({compound:!0,multigraph:!0});let d,x=!0;for(d=0;d<e.length;d++)if(e[d].stmt==="relation"){x=!1;break}g?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:x?1:B.edgeLengthFactor,nodeSep:x?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:x?1:B.edgeLengthFactor,nodeSep:x?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});const h=l.db.getStates(),o=l.db.getRelations(),u=Object.keys(h);for(const i of u){const f=h[i];g&&(f.parentId=g);let p;if(f.doc){let w=n.append("g").attr("id",f.id).attr("class","stateGroup");p=D(f.doc,w,f.id,!s,r,c,l);{w=j(w,f,s);let k=w.node().getBBox();p.width=k.width,p.height=k.height+B.padding/2,z[f.id]={y:B.compositTitleSize}}}else p=T(n,f,a);if(f.note){const w={descriptions:[],id:f.id+"-note",note:f.note,type:"note"},k=T(n,w,a);f.note.position==="left of"?(a.setNode(p.id+"-note",k),a.setNode(p.id,p)):(a.setNode(p.id,p),a.setNode(p.id+"-note",k)),a.setParent(p.id,p.id+"-group"),a.setParent(p.id+"-note",p.id+"-group")}else a.setNode(p.id,p)}E.debug("Count=",a.nodeCount(),a);let b=0;o.forEach(function(i){b++,E.debug("Setting edge",i),a.setEdge(i.id1,i.id2,{relation:i,width:et(i.title),height:B.labelHeight*H.getRows(i.title).length,labelpos:"c"},"id"+b)}),$(a),E.debug("Graph after layout",a.nodes());const m=n.node();a.nodes().forEach(function(i){i!==void 0&&a.node(i)!==void 0?(E.warn("Node "+i+": "+JSON.stringify(a.node(i))),r.select("#"+m.id+" #"+i).attr("transform","translate("+(a.node(i).x-a.node(i).width/2)+","+(a.node(i).y+(z[i]?z[i].y:0)-a.node(i).height/2)+" )"),r.select("#"+m.id+" #"+i).attr("data-x-shift",a.node(i).x-a.node(i).width/2),c.querySelectorAll("#"+m.id+" #"+i+" .divider").forEach(f=>{const p=f.parentElement;let w=0,k=0;p&&(p.parentElement&&(w=p.parentElement.getBBox().width),k=parseInt(p.getAttribute("data-x-shift"),10),Number.isNaN(k)&&(k=0)),f.setAttribute("x1",0-k+8),f.setAttribute("x2",w-k-8)})):E.debug("No Node "+i+": "+JSON.stringify(a.node(i)))});let N=m.getBBox();a.edges().forEach(function(i){i!==void 0&&a.edge(i)!==void 0&&(E.debug("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(a.edge(i))),Q(n,a.edge(i),a.edge(i).relation))}),N=m.getBBox();const S={id:g||"root",label:g||"root",width:0,height:0};return S.width=N.width+2*B.padding,S.height=N.height+2*B.padding,E.debug("Doc rendered",S,a),S},"renderDoc"),at={setConf:V,draw:tt},ht={parser:G,get db(){return new M(1)},renderer:at,styles:A,init:y(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{ht as diagram};
|
|
1
|
+
import{U as A,B as G,M}from"./chunk-DI55MBZ5-CSd59tsh-DMnz_BT4.js";import{R as y,g as t,e as v,O as E,B as O,x as H,aw as U,aD as R,aA as P,n as I}from"./index-CyVB0J6E.js";import{L as C}from"./graph-aRt77rZZ-BCYSvQYP.js";import{o as $}from"./layout-BKjRgLFe-BqG-N5rr.js";import"./chunk-55IACEB6-C4OH5_NF-CeUEEy8j.js";import"./chunk-QN33PNHL-DrWWTLTH-CxKsUSHw.js";import"./_baseUniq-Cd4llU-Q-D06fzDcA.js";import"./_basePickBy-1MakYQmz-CFyJwR0u.js";var W=y(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),Y=y(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),F=y((e,n)=>{const g=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(n.id),s=g.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",s.width+2*t().state.padding).attr("height",s.height+2*t().state.padding).attr("rx",t().state.radius),g},"drawSimpleState"),J=y((e,n)=>{const g=y(function(o,u,b){const m=o.append("tspan").attr("x",2*t().state.padding).text(u);b||m.attr("dy",t().state.textHeight)},"addTspan"),s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(n.descriptions[0]).node().getBBox(),r=s.height,c=e.append("text").attr("x",t().state.padding).attr("y",r+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let l=!0,a=!0;n.descriptions.forEach(function(o){l||(g(c,o,a),a=!1),l=!1});const d=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+r+t().state.dividerMargin/2).attr("y2",t().state.padding+r+t().state.dividerMargin/2).attr("class","descr-divider"),x=c.node().getBBox(),h=Math.max(x.width,s.width);return d.attr("x2",h+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",h+2*t().state.padding).attr("height",x.height+r+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),j=y((e,n,g)=>{const s=t().state.padding,r=2*t().state.padding,c=e.node().getBBox(),l=c.width,a=c.x,d=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(n.id),x=d.node().getBBox().width+r;let h=Math.max(x,l);h===l&&(h=h+r);let o;const u=e.node().getBBox();n.doc,o=a-s,x>l&&(o=(l-h)/2+s),Math.abs(a-u.x)<s&&x>l&&(o=a-(x-l)/2);const b=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",o).attr("y",b).attr("class",g?"alt-composit":"composit").attr("width",h).attr("height",u.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),d.attr("x",o+s),x<=l&&d.attr("x",a+(h-r)/2-x/2+s),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",h).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",h).attr("height",u.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),q=y(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),X=y((e,n)=>{let g=t().state.forkWidth,s=t().state.forkHeight;if(n.parentId){let r=g;g=s,s=r}return e.append("rect").style("stroke","black").style("fill","black").attr("width",g).attr("height",s).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),Z=y((e,n,g,s)=>{let r=0;const c=s.append("text");c.style("text-anchor","start"),c.attr("class","noteText");let l=e.replace(/\r\n/g,"<br/>");l=l.replace(/\n/g,"<br/>");const a=l.split(H.lineBreakRegex);let d=1.25*t().state.noteMargin;for(const x of a){const h=x.trim();if(h.length>0){const o=c.append("tspan");if(o.text(h),d===0){const u=o.node().getBBox();d+=u.height}r+=d,o.attr("x",n+t().state.noteMargin),o.attr("y",g+r+1.25*t().state.noteMargin)}}return{textWidth:c.node().getBBox().width,textHeight:r}},"_drawLongText"),K=y((e,n)=>{n.attr("class","state-note");const g=n.append("rect").attr("x",0).attr("y",t().state.padding),s=n.append("g"),{textWidth:r,textHeight:c}=Z(e,0,0,s);return g.attr("height",c+2*t().state.noteMargin),g.attr("width",r+t().state.noteMargin*2),g},"drawNote"),T=y(function(e,n){const g=n.id,s={id:g,label:n.id,width:0,height:0},r=e.append("g").attr("id",g).attr("class","stateGroup");n.type==="start"&&W(r),n.type==="end"&&q(r),(n.type==="fork"||n.type==="join")&&X(r,n),n.type==="note"&&K(n.note.text,r),n.type==="divider"&&Y(r),n.type==="default"&&n.descriptions.length===0&&F(r,n),n.type==="default"&&n.descriptions.length>0&&J(r,n);const c=r.node().getBBox();return s.width=c.width+2*t().state.padding,s.height=c.height+2*t().state.padding,s},"drawState"),L=0,Q=y(function(e,n,g){const s=y(function(d){switch(d){case M.relationType.AGGREGATION:return"aggregation";case M.relationType.EXTENSION:return"extension";case M.relationType.COMPOSITION:return"composition";case M.relationType.DEPENDENCY:return"dependency"}},"getRelationType");n.points=n.points.filter(d=>!Number.isNaN(d.y));const r=n.points,c=U().x(function(d){return d.x}).y(function(d){return d.y}).curve(R),l=e.append("path").attr("d",c(r)).attr("id","edge"+L).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=P(!0)),l.attr("marker-end","url("+a+"#"+s(M.relationType.DEPENDENCY)+"End)"),g.title!==void 0){const d=e.append("g").attr("class","stateLabel"),{x,y:h}=I.calcLabelPosition(n.points),o=H.getRows(g.title);let u=0;const b=[];let m=0,N=0;for(let f=0;f<=o.length;f++){const p=d.append("text").attr("text-anchor","middle").text(o[f]).attr("x",x).attr("y",h+u),w=p.node().getBBox();m=Math.max(m,w.width),N=Math.min(N,w.x),E.info(w.x,x,h+u),u===0&&(u=p.node().getBBox().height,E.info("Title height",u,h)),b.push(p)}let S=u*o.length;if(o.length>1){const f=(o.length-1)*u*.5;b.forEach((p,w)=>p.attr("y",h+w*u-f)),S=u*o.length}const i=d.node().getBBox();d.insert("rect",":first-child").attr("class","box").attr("x",x-m/2-t().state.padding/2).attr("y",h-S/2-t().state.padding/2-3.5).attr("width",m+t().state.padding).attr("height",S+t().state.padding),E.info(i)}L++},"drawEdge"),B,z={},V=y(function(){},"setConf"),_=y(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),tt=y(function(e,n,g,s){B=t().state;const r=t().securityLevel;let c;r==="sandbox"&&(c=v("#i"+n));const l=r==="sandbox"?v(c.nodes()[0].contentDocument.body):v("body"),a=r==="sandbox"?c.nodes()[0].contentDocument:document;E.debug("Rendering diagram "+e);const d=l.select(`[id='${n}']`);_(d);const x=s.db.getRootDoc();D(x,d,void 0,!1,l,a,s);const h=B.padding,o=d.node().getBBox(),u=o.width+h*2,b=o.height+h*2,m=u*1.75;O(d,b,m,B.useMaxWidth),d.attr("viewBox",`${o.x-B.padding} ${o.y-B.padding} `+u+" "+b)},"draw"),et=y(e=>e?e.length*B.fontSizeFactor:1,"getLabelWidth"),D=y((e,n,g,s,r,c,l)=>{const a=new C({compound:!0,multigraph:!0});let d,x=!0;for(d=0;d<e.length;d++)if(e[d].stmt==="relation"){x=!1;break}g?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:x?1:B.edgeLengthFactor,nodeSep:x?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:x?1:B.edgeLengthFactor,nodeSep:x?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});const h=l.db.getStates(),o=l.db.getRelations(),u=Object.keys(h);for(const i of u){const f=h[i];g&&(f.parentId=g);let p;if(f.doc){let w=n.append("g").attr("id",f.id).attr("class","stateGroup");p=D(f.doc,w,f.id,!s,r,c,l);{w=j(w,f,s);let k=w.node().getBBox();p.width=k.width,p.height=k.height+B.padding/2,z[f.id]={y:B.compositTitleSize}}}else p=T(n,f,a);if(f.note){const w={descriptions:[],id:f.id+"-note",note:f.note,type:"note"},k=T(n,w,a);f.note.position==="left of"?(a.setNode(p.id+"-note",k),a.setNode(p.id,p)):(a.setNode(p.id,p),a.setNode(p.id+"-note",k)),a.setParent(p.id,p.id+"-group"),a.setParent(p.id+"-note",p.id+"-group")}else a.setNode(p.id,p)}E.debug("Count=",a.nodeCount(),a);let b=0;o.forEach(function(i){b++,E.debug("Setting edge",i),a.setEdge(i.id1,i.id2,{relation:i,width:et(i.title),height:B.labelHeight*H.getRows(i.title).length,labelpos:"c"},"id"+b)}),$(a),E.debug("Graph after layout",a.nodes());const m=n.node();a.nodes().forEach(function(i){i!==void 0&&a.node(i)!==void 0?(E.warn("Node "+i+": "+JSON.stringify(a.node(i))),r.select("#"+m.id+" #"+i).attr("transform","translate("+(a.node(i).x-a.node(i).width/2)+","+(a.node(i).y+(z[i]?z[i].y:0)-a.node(i).height/2)+" )"),r.select("#"+m.id+" #"+i).attr("data-x-shift",a.node(i).x-a.node(i).width/2),c.querySelectorAll("#"+m.id+" #"+i+" .divider").forEach(f=>{const p=f.parentElement;let w=0,k=0;p&&(p.parentElement&&(w=p.parentElement.getBBox().width),k=parseInt(p.getAttribute("data-x-shift"),10),Number.isNaN(k)&&(k=0)),f.setAttribute("x1",0-k+8),f.setAttribute("x2",w-k-8)})):E.debug("No Node "+i+": "+JSON.stringify(a.node(i)))});let N=m.getBBox();a.edges().forEach(function(i){i!==void 0&&a.edge(i)!==void 0&&(E.debug("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(a.edge(i))),Q(n,a.edge(i),a.edge(i).relation))}),N=m.getBBox();const S={id:g||"root",label:g||"root",width:0,height:0};return S.width=N.width+2*B.padding,S.height=N.height+2*B.padding,E.debug("Doc rendered",S,a),S},"renderDoc"),at={setConf:V,draw:tt},ht={parser:G,get db(){return new M(1)},renderer:at,styles:A,init:y(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{ht as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{U as t,V as e,B as a,M as s}from"./chunk-DI55MBZ5-CSd59tsh-DMnz_BT4.js";import{R as o}from"./index-CyVB0J6E.js";import"./chunk-55IACEB6-C4OH5_NF-CeUEEy8j.js";import"./chunk-QN33PNHL-DrWWTLTH-CxKsUSHw.js";var M={parser:a,get db(){return new s(2)},renderer:e,styles:t,init:o(r=>{r.state||(r.state={}),r.state.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{M as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{R as r,
|
|
1
|
+
import{R as r,g as mt,O as $,e as q,aT as xt,aU as bt,aV as kt,aW as _t,C as vt,aX as wt,w as St}from"./index-CyVB0J6E.js";import{h as et}from"./arc-b8oyw-lz-BCfULEh7.js";var J=function(){var n=r(function(f,s,l,h){for(l=l||{},h=f.length;h--;l[f[h]]=s);return l},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],i=[1,11],o=[1,12],u=[1,13],p=[1,16],y=[1,17],m={trace:r(function(){},"trace"),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:r(function(f,s,l,h,d,c,k){var x=c.length-1;switch(d){case 1:return c[x-1];case 2:this.$=[];break;case 3:c[x-1].push(c[x]),this.$=c[x-1];break;case 4:case 5:this.$=c[x];break;case 6:case 7:this.$=[];break;case 8:h.getCommonDb().setDiagramTitle(c[x].substr(6)),this.$=c[x].substr(6);break;case 9:this.$=c[x].trim(),h.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=c[x].trim(),h.getCommonDb().setAccDescription(this.$);break;case 12:h.addSection(c[x].substr(8)),this.$=c[x].substr(8);break;case 15:h.addTask(c[x],0,""),this.$=c[x];break;case 16:h.addEvent(c[x].substr(2)),this.$=c[x];break}},"anonymous"),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:i,16:o,17:u,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:i,16:o,17:u,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:r(function(f,s){if(s.recoverable)this.trace(f);else{var l=new Error(f);throw l.hash=s,l}},"parseError"),parse:r(function(f){var s=this,l=[0],h=[],d=[null],c=[],k=this.table,x="",N=0,M=0,W=2,I=1,D=c.slice.call(arguments,1),_=Object.create(this.lexer),S={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(S.yy[v]=this.yy[v]);_.setInput(f,S.yy),S.yy.lexer=_,S.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var A=_.yylloc;c.push(A);var O=_.options&&_.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function L(E){l.length=l.length-2*E,d.length=d.length-E,c.length=c.length-E}r(L,"popStack");function P(){var E;return E=h.pop()||_.lex()||I,typeof E!="number"&&(E instanceof Array&&(h=E,E=h.pop()),E=s.symbols_[E]||E),E}r(P,"lex");for(var w,R,T,Y,j={},V,C,tt,z;;){if(R=l[l.length-1],this.defaultActions[R]?T=this.defaultActions[R]:((w===null||typeof w>"u")&&(w=P()),T=k[R]&&k[R][w]),typeof T>"u"||!T.length||!T[0]){var Z="";z=[];for(V in k[R])this.terminals_[V]&&V>W&&z.push("'"+this.terminals_[V]+"'");_.showPosition?Z="Parse error on line "+(N+1)+`:
|
|
2
2
|
`+_.showPosition()+`
|
|
3
3
|
Expecting `+z.join(", ")+", got '"+(this.terminals_[w]||w)+"'":Z="Parse error on line "+(N+1)+": Unexpected "+(w==I?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(Z,{text:_.match,token:this.terminals_[w]||w,line:_.yylineno,loc:A,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+w);switch(T[0]){case 1:l.push(w),d.push(_.yytext),c.push(_.yylloc),l.push(T[1]),w=null,M=_.yyleng,x=_.yytext,N=_.yylineno,A=_.yylloc;break;case 2:if(C=this.productions_[T[1]][1],j.$=d[d.length-C],j._$={first_line:c[c.length-(C||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(C||1)].first_column,last_column:c[c.length-1].last_column},O&&(j._$.range=[c[c.length-(C||1)].range[0],c[c.length-1].range[1]]),Y=this.performAction.apply(j,[x,M,N,S.yy,T[1],d,c].concat(D)),typeof Y<"u")return Y;C&&(l=l.slice(0,-1*C*2),d=d.slice(0,-1*C),c=c.slice(0,-1*C)),l.push(this.productions_[T[1]][0]),d.push(j.$),c.push(j._$),tt=k[l[l.length-2]][l[l.length-1]],l.push(tt);break;case 3:return!0}}return!0},"parse")},b=function(){var f={EOF:1,parseError:r(function(s,l){if(this.yy.parser)this.yy.parser.parseError(s,l);else throw new Error(s)},"parseError"),setInput:r(function(s,l){return this.yy=l||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:r(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var l=s.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:r(function(s){var l=s.length,h=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var d=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),h.length-1&&(this.yylineno-=h.length-1);var c=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:h?(h.length===d.length?this.yylloc.first_column:0)+d[d.length-h.length].length-h[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[c[0],c[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:r(function(){return this._more=!0,this},"more"),reject:r(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:r(function(s){this.unput(this.match.slice(s))},"less"),pastInput:r(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:r(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:r(function(){var s=this.pastInput(),l=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|