@bkm016/basalt 0.0.0-stage → 0.1.0
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/README.md +275 -2
- package/chunk-0hbjv3y6.js +11 -0
- package/chunk-0rya8cxe.js +3 -0
- package/chunk-0szjy61m.js +2 -0
- package/chunk-0tdv0t5q.js +3 -0
- package/chunk-1egbcp85.js +59 -0
- package/chunk-1fv27j4b.js +3 -0
- package/chunk-1yzt0qm0.js +2 -0
- package/chunk-2zqny2sy.js +2 -0
- package/chunk-32at88hc.js +3 -0
- package/chunk-356q8e0y.js +10 -0
- package/chunk-3jz9g8ab.js +10 -0
- package/chunk-3p7q2pyp.js +3 -0
- package/chunk-501zkf9b.js +3 -0
- package/chunk-58vz2qsq.js +2 -0
- package/chunk-5fdgy0q2.js +16 -0
- package/chunk-5wp4egky.js +7 -0
- package/chunk-665jzf2w.js +25 -0
- package/chunk-6gyhajhx.js +3 -0
- package/chunk-7yw8aa5j.js +31 -0
- package/chunk-8wjgbd9k.js +3 -0
- package/chunk-913tfr9c.js +2 -0
- package/chunk-97kjn55j.js +2 -0
- package/chunk-9y69ywyg.js +3 -0
- package/chunk-a6r4z44b.js +2 -0
- package/chunk-agntrqs9.js +2 -0
- package/chunk-b9bg5fhd.js +2 -0
- package/chunk-bj14jshr.js +3 -0
- package/chunk-c25s4w6a.js +5 -0
- package/chunk-d48bfd2e.js +3 -0
- package/chunk-d913kpyw.js +3 -0
- package/chunk-dakrpbe6.js +3 -0
- package/chunk-g2k3yhgh.js +12 -0
- package/chunk-hat3s3pr.js +3 -0
- package/chunk-hcn9cf6v.js +2 -0
- package/chunk-j2x0g1vg.js +2 -0
- package/chunk-k0t23cmx.js +2 -0
- package/chunk-k7w7ac9q.js +18 -0
- package/chunk-kgdrjqsy.js +3 -0
- package/chunk-kjr81mrd.js +9 -0
- package/chunk-m38ber71.js +2 -0
- package/chunk-n6e43rvk.js +3 -0
- package/chunk-qbf8x2ft.js +5 -0
- package/chunk-qcwnkr5y.js +2 -0
- package/chunk-qffb7een.js +3 -0
- package/chunk-qnr1f5pj.js +3 -0
- package/chunk-r9aatvwm.js +3 -0
- package/chunk-rad3dm0q.js +2 -0
- package/chunk-rjdhaasf.js +3 -0
- package/chunk-rm3kcxq9.js +20 -0
- package/chunk-rv06x0kn.js +7 -0
- package/chunk-sf13azm4.js +12 -0
- package/chunk-sytpmbfp.js +471 -0
- package/chunk-t057xfrt.js +5 -0
- package/chunk-tjpvayr1.js +2 -0
- package/chunk-tnrqkc7b.js +8 -0
- package/chunk-v9fea96h.js +3 -0
- package/chunk-ve7qx8wm.js +3 -0
- package/chunk-vkkj4awb.js +2 -0
- package/chunk-wc5j0hfw.js +39 -0
- package/chunk-wd9zxhza.js +2 -0
- package/chunk-wx7kdf0b.js +2 -0
- package/chunk-x9982ek7.js +25 -0
- package/chunk-xhk54h2q.js +7 -0
- package/chunk-xsbxykr4.js +2 -0
- package/chunk-y69ewdn2.js +3 -0
- package/chunk-y8ced1jm.js +5 -0
- package/chunk-y9xe9ct2.js +2 -0
- package/chunk-yb1jxgnk.js +2 -0
- package/chunk-zt1wvkyf.js +3 -0
- package/compiled.js +3773 -0
- package/icon-dp9pmcvp.png +0 -0
- package/package.json +20 -4
- package/ui-test-worker.js +226 -0
- package/web/KaTeX_AMS-Regular-n7eqehx2.woff2 +0 -0
- package/web/KaTeX_Caligraphic-Bold-20r3b6fv.woff2 +0 -0
- package/web/KaTeX_Caligraphic-Regular-kkjm8f18.woff2 +0 -0
- package/web/KaTeX_Fraktur-Bold-pz5vg4t0.woff2 +0 -0
- package/web/KaTeX_Fraktur-Regular-a1e9wkwk.woff2 +0 -0
- package/web/KaTeX_Main-Bold-mcp098h8.woff2 +0 -0
- package/web/KaTeX_Main-BoldItalic-fy74z249.woff2 +0 -0
- package/web/KaTeX_Main-Italic-hw2gxy7f.woff2 +0 -0
- package/web/KaTeX_Main-Regular-xvp1b75c.woff2 +0 -0
- package/web/KaTeX_Math-BoldItalic-mf5nf33d.woff2 +0 -0
- package/web/KaTeX_Math-Italic-ap60jrna.woff2 +0 -0
- package/web/KaTeX_SansSerif-Bold-we3bymb6.woff2 +0 -0
- package/web/KaTeX_SansSerif-Italic-ent92bjx.woff2 +0 -0
- package/web/KaTeX_SansSerif-Regular-0573pbz9.woff2 +0 -0
- package/web/KaTeX_Script-Regular-z2rtj6vq.woff2 +0 -0
- package/web/KaTeX_Size1-Regular-dfr3w1hv.woff2 +0 -0
- package/web/KaTeX_Size2-Regular-kted78zb.woff2 +0 -0
- package/web/KaTeX_Size3-Regular-e6k1k5jk.woff2 +0 -0
- package/web/KaTeX_Size4-Regular-abedc1pd.woff2 +0 -0
- package/web/KaTeX_Typewriter-Regular-scw9zx1z.woff2 +0 -0
- package/web/apple-touch-icon-7dkm33qp.png +0 -0
- package/web/apple-touch-icon.png +0 -0
- package/web/chunk-00mq7bhx.js +1 -0
- package/web/chunk-0atfn8jf.js +1 -0
- package/web/chunk-0k0hvh59.js +40 -0
- package/web/chunk-0mrkjnte.js +1 -0
- package/web/chunk-0pbjgdgp.js +2 -0
- package/web/chunk-0s80zw00.js +1 -0
- package/web/chunk-0xck277j.js +140 -0
- package/web/chunk-1t760bg0.js +1 -0
- package/web/chunk-1v3d60pp.js +217 -0
- package/web/chunk-1x8fn8w9.js +1 -0
- package/web/chunk-20q90epj.js +2 -0
- package/web/chunk-24mfx6w1.js +2 -0
- package/web/chunk-29e1trsq.js +78 -0
- package/web/chunk-2j4m0bh1.js +2 -0
- package/web/chunk-310yey4q.js +1 -0
- package/web/chunk-32ezm0ry.js +1136 -0
- package/web/chunk-3ahpr030.js +2 -0
- package/web/chunk-3bqh2dkw.js +7 -0
- package/web/chunk-3cfabjey.js +370 -0
- package/web/chunk-3hvgs5aw.js +1 -0
- package/web/chunk-3kh6zefg.js +1 -0
- package/web/chunk-3pf33xsm.js +98 -0
- package/web/chunk-3pm4645m.js +2 -0
- package/web/chunk-401v5ht6.js +8 -0
- package/web/chunk-4b5mt5pd.js +70 -0
- package/web/chunk-4gavbw65.js +1 -0
- package/web/chunk-4rm1vy7w.js +1 -0
- package/web/chunk-4wd9r73y.js +1 -0
- package/web/chunk-4y2td14d.js +24 -0
- package/web/chunk-54thej0t.js +2 -0
- package/web/chunk-55kw67nv.js +1 -0
- package/web/chunk-59kqahb3.js +1 -0
- package/web/chunk-5hex8g0y.js +24 -0
- package/web/chunk-5r5kv4gh.js +1 -0
- package/web/chunk-6atq9qtt.js +7 -0
- package/web/chunk-6beqrmtq.js +1 -0
- package/web/chunk-6m69hczt.js +2 -0
- package/web/chunk-6r912gfj.js +34 -0
- package/web/chunk-74j07k8k.js +2 -0
- package/web/chunk-7f0m2yrd.js +169 -0
- package/web/chunk-8g239029.js +1 -0
- package/web/chunk-942prjb6.js +332 -0
- package/web/chunk-95q1bwxn.js +1 -0
- package/web/chunk-9s7c178f.js +1 -0
- package/web/chunk-9v1f6yc8.js +1 -0
- package/web/chunk-a3xt6840.js +38 -0
- package/web/chunk-ad6x47yy.js +1 -0
- package/web/chunk-b5brnfv9.js +2 -0
- package/web/chunk-benmmqt2.js +1 -0
- package/web/chunk-bgqdcnke.js +1 -0
- package/web/chunk-bhe4jzha.js +1 -0
- package/web/chunk-bwyw10wx.js +39 -0
- package/web/chunk-c85wxnpw.js +292 -0
- package/web/chunk-canbct9d.js +55 -0
- package/web/chunk-cg3jterp.js +2 -0
- package/web/chunk-d18r4m14.js +141 -0
- package/web/chunk-d4d3mnak.js +84 -0
- package/web/chunk-dmqtdeb4.js +1 -0
- package/web/chunk-dy2gm1fs.js +1 -0
- package/web/chunk-e5rmr47n.js +2 -0
- package/web/chunk-ea9swkkt.js +1 -0
- package/web/chunk-ejd43q75.js +19 -0
- package/web/chunk-eqegxtdt.js +1 -0
- package/web/chunk-ev1g5cqw.js +2 -0
- package/web/chunk-ezyvv4ab.js +3 -0
- package/web/chunk-f91wzwtk.js +1 -0
- package/web/chunk-fdkp6tzq.js +36 -0
- package/web/chunk-g1ev11wx.js +1 -0
- package/web/chunk-g9qv15hq.js +41 -0
- package/web/chunk-ghxe4gam.js +2 -0
- package/web/chunk-gmfp7fg4.js +1 -0
- package/web/chunk-gxay64d5.js +1 -0
- package/web/chunk-gxn0bey7.js +142 -0
- package/web/chunk-haphmhz8.js +200 -0
- package/web/chunk-hejz98gw.js +1 -0
- package/web/chunk-hfaffkrh.js +1 -0
- package/web/chunk-hp167dbv.js +1 -0
- package/web/chunk-hryhthxr.js +16 -0
- package/web/chunk-j2vt8c8v.js +1 -0
- package/web/chunk-jg6nzn6q.js +1 -0
- package/web/chunk-jtwhjp20.js +303 -0
- package/web/chunk-jvhmna7z.js +89 -0
- package/web/chunk-ka3q31t1.js +1 -0
- package/web/chunk-kbtbbarw.js +2 -0
- package/web/chunk-ktqt87qw.js +1 -0
- package/web/chunk-kx2xk3bb.js +1 -0
- package/web/chunk-m2d1sp30.js +1 -0
- package/web/chunk-mdsgekpk.js +1 -0
- package/web/chunk-mq92vqb1.js +2 -0
- package/web/chunk-n1dmrz44.js +2 -0
- package/web/chunk-n5fn9khr.js +1 -0
- package/web/chunk-n90cqdvg.js +2 -0
- package/web/chunk-nerx2q12.js +139 -0
- package/web/chunk-ngpq43vn.js +1 -0
- package/web/chunk-nj0cv1cq.js +257 -0
- package/web/chunk-nzey7cpv.js +1 -0
- package/web/chunk-p8y0hjx9.js +2 -0
- package/web/chunk-pxe3vna4.js +1 -0
- package/web/chunk-pz934t6t.js +30 -0
- package/web/chunk-r1dnh0s8.js +1 -0
- package/web/chunk-r5eakmw6.js +1 -0
- package/web/chunk-rkesqprv.js +1 -0
- package/web/chunk-rsn8j7xv.js +120 -0
- package/web/chunk-rtf2zzzv.js +1 -0
- package/web/chunk-ry9256r7.js +1 -0
- package/web/chunk-rykfak98.js +2 -0
- package/web/chunk-rz6wwdd5.js +106 -0
- package/web/chunk-s8vapqgr.js +12 -0
- package/web/chunk-sc63gh9d.js +2 -0
- package/web/chunk-srrfphes.js +1 -0
- package/web/chunk-svdzmaxb.js +2 -0
- package/web/chunk-svmhj9hd.js +1 -0
- package/web/chunk-t6agpn2z.js +1 -0
- package/web/chunk-tfyxp2qs.js +89 -0
- package/web/chunk-ts7zrf5b.js +2 -0
- package/web/chunk-ttg6tbwx.js +2 -0
- package/web/chunk-v47rhg7b.js +1 -0
- package/web/chunk-v5cnt7c8.js +1 -0
- package/web/chunk-v6v831tc.js +214 -0
- package/web/chunk-vadqkz3x.js +99 -0
- package/web/chunk-vfqdy860.js +1 -0
- package/web/chunk-vfqe8298.js +1 -0
- package/web/chunk-vqjs551t.js +7 -0
- package/web/chunk-wtawdeej.css +1 -0
- package/web/chunk-x3zwjkwg.js +62 -0
- package/web/chunk-x59p8sg2.js +1 -0
- package/web/chunk-x9q4kh67.js +4 -0
- package/web/chunk-xet1jjy9.js +1 -0
- package/web/chunk-xzp7jf7e.js +2 -0
- package/web/chunk-y7z144e3.js +1 -0
- package/web/chunk-ydgqrfvw.js +2 -0
- package/web/chunk-ydtrc1ay.js +2 -0
- package/web/chunk-yj1a2d37.js +1 -0
- package/web/chunk-ykxpb3wv.js +2 -0
- package/web/chunk-ytpwz01r.js +291 -0
- package/web/chunk-z09emmrb.js +1 -0
- package/web/chunk-z1jtv4c0.js +2 -0
- package/web/chunk-zakv2xdf.js +1 -0
- package/web/chunk-zbj1trar.js +2 -0
- package/web/chunk-zk2f7x5e.js +4 -0
- package/web/icon-192.png +0 -0
- package/web/icon-512.png +0 -0
- package/web/icon-maskable-512.png +0 -0
- package/web/icon-yx2p2pye.svg +13 -0
- package/web/icon.svg +13 -0
- package/web/index.html +23 -0
- package/web/install.ps1 +91 -0
- package/web/install.sh +177 -0
- package/web/inter-latin-wght-normal-an0py913.woff2 +0 -0
- package/web/jetbrains-mono-latin-wght-normal-hj2e42wt.woff2 +0 -0
- package/web/manifest-txf6vfbq.webmanifest +35 -0
- package/web/manifest.webmanifest +35 -0
- package/web/source-serif-4-latin-wght-italic-ta5tqqvz.woff2 +0 -0
- package/web/source-serif-4-latin-wght-normal-1yyvbhsz.woff2 +0 -0
- package/web/sw.js +90 -0
- package/worker.js +2 -0
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import{e,r,se,Le,y,C,S,E,T,A,I,L,s,an,Tn,p,et,tt,N,Fe,le,ae,ie,Ye,Dr,he,ge}from"./chunk-jtwhjp20.js";import{Mt}from"./chunk-ghxe4gam.js";import{je}from"./chunk-hryhthxr.js";import{Pt}from"./chunk-ydgqrfvw.js";import{fe}from"./chunk-b5brnfv9.js";import{oe}from"./chunk-kbtbbarw.js";var A1="flowchart-",m1=class{constructor(){this.vertexCounter=0,this.config=s(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=S,this.setAccDescription=T,this.setDiagramTitle=I,this.getAccTitle=E,this.getAccDescription=A,this.getDiagramTitle=L,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{e(this,"FlowDB")}sanitizeText(t){return y.sanitizeText(t,this.config)}sanitizeNodeLabelType(t){switch(t){case"markdown":case"string":case"text":return t;default:return"markdown"}}setDiagramId(t){this.diagramId=t}lookUpDomId(t){for(let n of this.vertices.values())if(n.id===t)return this.diagramId?`${this.diagramId}-${n.domId}`:n.domId;return this.diagramId?`${this.diagramId}-${t}`:t}addVertex(t,n,u,o,c,g,d={},D){if(!t||t.trim().length===0)return;let f;if(D!==void 0){let _;if(!D.includes(`
|
|
2
|
+
`))_=`{
|
|
3
|
+
`+D+`
|
|
4
|
+
}`;else _=D+`
|
|
5
|
+
`;f=tt(_,{schema:et})}let U=this.subGraphLookup.get(t);if(U&&f){U.metadata={...U.metadata,...f};return}let B=this.edges.find((_)=>_.id===t);if(B){let _=f;if(_?.animate!==void 0)B.animate=_.animate;if(_?.animation!==void 0)B.animation=_.animation;if(_?.curve!==void 0)B.interpolate=_.curve;return}let W,x=this.vertices.get(t);if(x===void 0){if(n===void 0&&u===void 0&&o!==void 0&&o!==null)r.warn(`Style applied to unknown node "${t}". This may indicate a typo. The node will be created automatically.`);x={id:t,labelType:"text",domId:A1+t+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(t,x)}if(this.vertexCounter++,n!==void 0){if(this.config=s(),W=this.sanitizeText(n.text.trim()),x.labelType=n.type,W.startsWith('"')&&W.endsWith('"'))W=W.substring(1,W.length-1);x.text=W}else if(x.text===void 0)x.text=t;if(u!==void 0)x.type=u;if(o!==void 0&&o!==null)o.forEach((_)=>{x.styles.push(_)});if(c!==void 0&&c!==null)c.forEach((_)=>{x.classes.push(_)});if(g!==void 0)x.dir=g;if(x.props===void 0)x.props=d;else if(d!==void 0)Object.assign(x.props,d);if(f!==void 0){if(f.shape){if(f.shape!==f.shape.toLowerCase()||f.shape.includes("_"))throw Error(`No such shape: ${f.shape}. Shape names should be lowercase.`);else if(!Dr(f.shape))throw Error(`No such shape: ${f.shape}.`);x.type=f?.shape}if(f?.label)x.text=f?.label,x.labelType=this.sanitizeNodeLabelType(f?.labelType);if(f?.icon){if(x.icon=f?.icon,!f.label?.trim()&&x.text===t)x.text=""}if(f?.form)x.form=f?.form;if(f?.pos)x.pos=f?.pos;if(f?.img){if(x.img=f?.img,!f.label?.trim()&&x.text===t)x.text=""}if(f?.constraint)x.constraint=f.constraint;if(f.w)x.assetWidth=Number(f.w);if(f.h)x.assetHeight=Number(f.h)}}addSingleLink(t,n,u,o){let d={start:t,end:n,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};r.info("abc78 Got edge...",d);let D=u.text;if(D!==void 0){if(d.text=this.sanitizeText(D.text.trim()),d.text.startsWith('"')&&d.text.endsWith('"'))d.text=d.text.substring(1,d.text.length-1);d.labelType=this.sanitizeNodeLabelType(D.type)}if(u!==void 0)d.type=u.type,d.stroke=u.stroke,d.length=u.length>10?10:u.length;if(o&&!this.edges.some((f)=>f.id===o))d.id=o,d.isUserDefinedId=!0;else{let f=this.edges.filter((U)=>U.start===d.start&&U.end===d.end);if(f.length===0)d.id=Fe(d.start,d.end,{counter:0,prefix:"L"});else d.id=Fe(d.start,d.end,{counter:f.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))r.info("Pushing edge..."),this.edges.push(d);else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
|
|
6
|
+
|
|
7
|
+
Initialize mermaid with maxEdges set to a higher number to allow more edges.
|
|
8
|
+
You cannot set this config via configuration inside the diagram as it is a secure config.
|
|
9
|
+
You have to call mermaid.initialize.`)}isLinkData(t){return t!==null&&typeof t==="object"&&"id"in t&&typeof t.id==="string"}addLink(t,n,u){let o=this.isLinkData(u)?u.id.replace("@",""):void 0;r.info("addLink",t,n,o);for(let c of t)for(let g of n){let d=c===t[t.length-1],D=g===n[0];if(d&&D)this.addSingleLink(c,g,u,o);else this.addSingleLink(c,g,u,void 0)}}updateLinkInterpolate(t,n){t.forEach((u)=>{if(u==="default")this.edges.defaultInterpolate=n;else this.edges[u].interpolate=n})}updateLink(t,n){t.forEach((u)=>{if(typeof u==="number"&&u>=this.edges.length)throw Error(`The index ${u} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);if(u==="default")this.edges.defaultStyle=n;else if(this.edges[u].style=n,(this.edges[u]?.style?.length??0)>0&&!this.edges[u]?.style?.some((o)=>o?.startsWith("fill")))this.edges[u]?.style?.push("fill:none")})}addClass(t,n){let u=n.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");t.split(",").forEach((o)=>{let c=this.classes.get(o);if(c===void 0)c={id:o,styles:[],textStyles:[]},this.classes.set(o,c);if(u!==void 0&&u!==null)u.forEach((g)=>{if(/color/.exec(g)){let d=g.replace("fill","bgFill");c.textStyles.push(d)}c.styles.push(g)})})}setDirection(t){if(this.direction=t.trim(),/.*</.exec(this.direction))this.direction="RL";if(/.*\^/.exec(this.direction))this.direction="BT";if(/.*>/.exec(this.direction))this.direction="LR";if(/.*v/.exec(this.direction))this.direction="TB";if(this.direction==="TD")this.direction="TB"}setClass(t,n){for(let u of t.split(",")){let o=this.vertices.get(u);if(o)o.classes.push(n);let c=this.edges.find((d)=>d.id===u);if(c)c.classes.push(n);let g=this.subGraphLookup.get(u);if(g)g.classes.push(n)}}setTooltip(t,n){if(n===void 0)return;n=this.sanitizeText(n);for(let u of t.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(u):u,n)}setClickFun(t,n,u){if(s().securityLevel!=="loose")return;if(n===void 0)return;let o=[];if(typeof u==="string"){o=u.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let g=0;g<o.length;g++){let d=o[g].trim();if(d.startsWith('"')&&d.endsWith('"'))d=d.substr(1,d.length-2);o[g]=d}}if(o.length===0)o.push(t);let c=this.vertices.get(t);if(c)c.haveCallback=!0,this.funs.push(()=>{let g=this.lookUpDomId(t),d=document.querySelector(`[id="${g}"]`);if(d!==null)d.addEventListener("click",()=>{N.runFunc(n,...o)},!1)})}setLink(t,n,u){t.split(",").forEach((o)=>{let c=this.vertices.get(o);if(c!==void 0)c.link=N.formatUrl(n,this.config),c.linkTarget=u}),this.setClass(t,"clickable")}getTooltip(t){return this.tooltips.get(t)}setClickEvent(t,n,u){t.split(",").forEach((o)=>{this.setClickFun(o,n,u)}),this.setClass(t,"clickable")}bindFunctions(t){this.funs.forEach((n)=>{n(t)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(t){let n=Mt();p(t).select("svg").selectAll("g.node").on("mouseover",(c)=>{let g=p(c.currentTarget),d=g.attr("title");if(d===null)return;let D=c.currentTarget?.getBoundingClientRect();n.transition().duration(200).style("opacity",".9"),n.text(g.attr("title")).style("left",window.scrollX+D.left+(D.right-D.left)/2+"px").style("top",window.scrollY+D.bottom+"px"),n.html(Le.sanitize(d)),g.classed("hover",!0)}).on("mouseout",(c)=>{n.transition().duration(500).style("opacity",0),p(c.currentTarget).classed("hover",!1)})}clear(t="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=t,this.config=s(),C()}setGen(t){this.version=t||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(t,n,u){let o=t.text.trim(),c=u.text;if(t===u&&/\s/.exec(u.text))o=void 0;let d=e((x)=>{let _={boolean:{},number:{},string:{}},G=[],j;return{nodeList:x.filter(function(h){let k=typeof h;if(h.stmt&&h.stmt==="dir")return j=h.value,!1;if(h.trim()==="")return!1;if(k in _)return _[k].hasOwnProperty(h)?!1:_[k][h]=!0;else return G.includes(h)?!1:G.push(h)}),dir:j}},"uniq")(n.flat()),{nodeList:D,dir:f}=d,U=s().flowchart??{};if(f=f??(U.inheritDir?this.getDirection()??s().direction??void 0:void 0),this.version==="gen-1")for(let x=0;x<D.length;x++)D[x]=this.lookUpDomId(D[x]);o=o??"subGraph"+this.subCount,c=c||"",c=this.sanitizeText(c),this.subCount=this.subCount+1;let B={id:o,nodes:D,title:c.trim(),classes:[],dir:f,labelType:this.sanitizeNodeLabelType(u?.type)};r.info("Adding",B.id,B.nodes,B.dir),B.nodes=this.makeUniq(B,this.subGraphs).nodes.filter((x)=>x!==o);let W=this.subGraphs.find((x)=>x.id===o);if(W)W.nodes.push(...B.nodes);else this.subGraphs.push(B);return this.subGraphLookup.set(o,W??B),o}getPosForId(t){for(let[n,u]of this.subGraphs.entries())if(u.id===t)return n;return-1}indexNodes2(t,n){let u=this.subGraphs[n].nodes;if(this.secCount=this.secCount+1,this.secCount>2000)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=n,this.subGraphs[n].id===t)return{result:!0,count:0};let o=0,c=1;while(o<u.length){let g=this.getPosForId(u[o]);if(g>=0){let d=this.indexNodes2(t,g);if(d.result)return{result:!0,count:c+d.count};else c=c+d.count}o=o+1}return{result:!1,count:c}}getDepthFirstPos(t){return this.posCrossRef[t]}indexNodes(){if(this.secCount=-1,this.subGraphs.length>0)this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){if(this.firstGraphFlag)return this.firstGraphFlag=!1,!0;return!1}destructStartLink(t){let n=t.trim(),u="arrow_open";switch(n[0]){case"<":u="arrow_point",n=n.slice(1);break;case"x":u="arrow_cross",n=n.slice(1);break;case"o":u="arrow_circle",n=n.slice(1);break}let o="normal";if(n.includes("="))o="thick";if(n.includes("."))o="dotted";return{type:u,stroke:o}}countChar(t,n){let u=n.length,o=0;for(let c=0;c<u;++c)if(n[c]===t)++o;return o}destructEndLink(t){let n=t.trim(),u=n.slice(0,-1),o="arrow_open";switch(n.slice(-1)){case"x":if(o="arrow_cross",n.startsWith("x"))o="double_"+o,u=u.slice(1);break;case">":if(o="arrow_point",n.startsWith("<"))o="double_"+o,u=u.slice(1);break;case"o":if(o="arrow_circle",n.startsWith("o"))o="double_"+o,u=u.slice(1);break}let c="normal",g=u.length-1;if(u.startsWith("="))c="thick";if(u.startsWith("~"))c="invisible";let d=this.countChar(".",u);if(d)c="dotted",g=d;return{type:o,stroke:c,length:g}}destructLink(t,n){let u=this.destructEndLink(t),o;if(n){if(o=this.destructStartLink(n),o.stroke!==u.stroke)return{type:"INVALID",stroke:"INVALID"};if(o.type==="arrow_open")o.type=u.type;else{if(o.type!==u.type)return{type:"INVALID",stroke:"INVALID"};o.type="double_"+o.type}if(o.type==="double_arrow")o.type="double_arrow_point";return o.length=u.length,o}return u}exists(t,n){for(let u of t)if(u.nodes.includes(n))return!0;return!1}makeUniq(t,n){let u=[];return t.nodes.forEach((o,c)=>{if(!this.exists(n,o))u.push(t.nodes[c])}),{nodes:u}}getTypeFromVertex(t){if(t.img)return"imageSquare";if(t.icon){if(t.form==="circle")return"iconCircle";if(t.form==="square")return"iconSquare";if(t.form==="rounded")return"iconRounded";return"icon"}switch(t.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return t.type}}findNode(t,n){return t.find((u)=>u.id===n)}destructEdgeType(t){let n="none",u="arrow_point";switch(t){case"arrow_point":case"arrow_circle":case"arrow_cross":u=t;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":n=t.replace("double_",""),u=n;break}return{arrowTypeStart:n,arrowTypeEnd:u}}addNodeFromVertex(t,n,u,o,c,g){let d=u.get(t.id),D=o.get(t.id)??!1,f=this.findNode(n,t.id);if(f)f.cssStyles=t.styles,f.cssCompiledStyles=this.getCompiledStyles(t.classes),f.cssClasses=t.classes.join(" ");else{let U={id:t.id,label:t.text,labelType:t.labelType,labelStyle:"",parentId:d,padding:c.flowchart?.padding||8,cssStyles:t.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...t.classes]),cssClasses:"default "+t.classes.join(" "),dir:t.dir,domId:t.domId,look:g,link:t.link,linkTarget:t.linkTarget,tooltip:this.getTooltip(t.id),icon:t.icon,pos:t.pos,img:t.img,assetWidth:t.assetWidth,assetHeight:t.assetHeight,constraint:t.constraint};if(D)n.push({...U,isGroup:!0,shape:"rect"});else n.push({...U,isGroup:!1,shape:this.getTypeFromVertex(t),minWidth:c.flowchart?.minNodeWidth})}}getCompiledStyles(t){let n=[];for(let u of t){let o=this.classes.get(u);if(o?.styles)n=[...n,...o.styles??[]].map((c)=>c.trim());if(o?.textStyles)n=[...n,...o.textStyles??[]].map((c)=>c.trim())}return n}getData(){let t=s(),n=[],u=[],o=this.getSubGraphs(),c=new Map,g=new Map,d=new Map;for(let h of o)for(let k of h.nodes)if(this.subGraphLookup.has(k))d.set(k,h.id);let D=new Map,f=new Map;for(let h of o){let k=d.get(h.id);if(k!==void 0)f.set(k,[...f.get(k)??[],h.id])}let U=0,B=e((h)=>{D.set(h,U++);for(let k of f.get(h)??[])B(k)},"walk");for(let h of o)if(!d.has(h.id))B(h.id);let W=e((h)=>this.subGraphLookup.get(h)?.metadata?.view==="collapsed","isCollapsed"),x=e((h)=>{let k,de=new Set,be=h;while(be!==void 0&&!de.has(be)){if(de.add(be),W(be))k=be;be=d.get(be)}return k},"outermostCollapsed"),_=new Set,G=new Map;for(let h of o){let k=x(h.id);if(k===void 0)continue;if(h.id!==k)_.add(h.id),G.set(h.id,k);for(let de of h.nodes){if(de===k)continue;_.add(de),G.set(de,k)}}for(let h=o.length-1;h>=0;h--){let k=o[h];if(_.has(k.id))continue;if(k.nodes.length>0)g.set(k.id,!0);for(let de of k.nodes)c.set(de,k.id)}for(let h=o.length-1;h>=0;h--){let k=o[h];if(_.has(k.id))continue;if(k.metadata?.view==="collapsed")n.push({id:k.id,label:k.title,labelStyle:"",labelType:k.labelType,parentId:c.get(k.id),padding:8,cssCompiledStyles:this.getCompiledStyles(k.classes),cssClasses:k.classes.join(" "),shape:"collapsedGroup",dir:k.dir,isGroup:!1,look:t.look,colorIndex:D.get(k.id)});else n.push({id:k.id,label:k.title,labelStyle:"",labelType:k.labelType,parentId:c.get(k.id),padding:8,cssCompiledStyles:this.getCompiledStyles(k.classes),cssClasses:k.classes.join(" "),shape:"rect",dir:k.dir,isGroup:!0,look:t.look,colorIndex:D.get(k.id),metadata:k.metadata})}this.getVertices().forEach((h)=>{if(_.has(h.id))return;this.addNodeFromVertex(h,n,c,g,t,t.look||"classic")});let Ne=this.getEdges();return Ne.forEach((h,k)=>{let{arrowTypeStart:de,arrowTypeEnd:be}=this.destructEdgeType(h.type),K=[...Ne.defaultStyle??[]],Y=G.get(h.start)??h.start,H=G.get(h.end)??h.end;if(Y===H&&(G.has(h.start)||G.has(h.end)))return;if(h.style)K.push(...h.style);let q={id:Fe(Y,H,{counter:k,prefix:"L"},h.id),isUserDefinedId:h.isUserDefinedId,start:Y,end:H,type:h.type??"normal",label:h.text,labelType:h.labelType,labelpos:"c",thickness:h.stroke,minlen:h.length,classes:h?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:h?.stroke==="invisible"||h?.type==="arrow_open"?"none":de,arrowTypeEnd:h?.stroke==="invisible"||h?.type==="arrow_open"?"none":be,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(h.classes),labelStyle:K,style:K,pattern:h.stroke,look:t.look,animate:h.animate,animation:h.animation,curve:h.interpolate||this.edges.defaultInterpolate||t.flowchart?.curve};u.push(q)}),{nodes:n,edges:u,other:{},config:t}}defaultConfig(){return Tn.flowchart}},C1=e(function(t,n){return n.db.getClasses()},"getClasses"),D1=e(async function(t,n,u,o){r.info("REF0:"),r.info("Drawing state diagram (v2)",n);let{securityLevel:c,flowchart:g,layout:d}=s();o.db.setDiagramId(n),r.debug("Before getData: ");let D=o.db.getData();r.debug("Data: ",D);let f=fe(n,c),U=o.db.getDirection();D.type=o.type,D.layoutAlgorithm=ge(d),D.direction=U,D.nodeSpacing=g?.nodeSpacing||50,D.rankSpacing=g?.rankSpacing||50,D.markers=["point","circle","cross"],D.diagramId=n,r.debug("REF1:",D),await he(D,f);let B=D.config.flowchart?.diagramPadding??8;N.insertTitle(f,"flowchartTitleText",g?.titleTopMargin||0,o.db.getDiagramTitle()),oe(f,B,"flowchart",g?.useMaxWidth||!1)},"draw"),T1={getClasses:C1,draw:D1},Ft=function(){var t=e(function(Oe,b,m,F){for(m=m||{},F=Oe.length;F--;m[Oe[F]]=b);return m},"o"),n=[1,4],u=[1,3],o=[1,5],c=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],g=[2,2],d=[1,13],D=[1,14],f=[1,15],U=[1,16],B=[1,23],W=[1,25],x=[1,26],_=[1,27],G=[1,50],j=[1,49],Ne=[1,29],h=[1,30],k=[1,31],de=[1,32],be=[1,33],K=[1,45],Y=[1,47],H=[1,43],q=[1,48],Q=[1,44],J=[1,51],Z=[1,46],ee=[1,52],te=[1,53],ct=[1,34],ht=[1,35],dt=[1,36],pt=[1,37],ft=[1,38],Ge=[1,58],P=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],Te=[1,62],Ee=[1,61],Se=[1,63],Ke=[8,9,11,75,77,78],_t=[1,79],He=[1,92],qe=[1,97],Xe=[1,96],Qe=[1,93],Je=[1,89],Ze=[1,95],$e=[1,91],st=[1,98],it=[1,94],rt=[1,99],at=[1,90],Me=[8,9,10,11,40,75,77,78],ne=[8,9,10,11,40,46,75,77,78],ke=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],Bt=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],nt=[44,60,89,102,105,106,109,111,114,115,116],vt=[1,122],Lt=[1,123],bt=[1,125],kt=[1,124],Vt=[44,60,62,74,89,102,105,106,109,111,114,115,116],wt=[1,134],It=[1,148],Rt=[1,149],Nt=[1,150],Gt=[1,151],Ot=[1,136],Ut=[1,138],Wt=[1,142],zt=[1,143],jt=[1,144],Kt=[1,145],Yt=[1,146],Ht=[1,147],qt=[1,152],Xt=[1,153],Qt=[1,132],Jt=[1,133],Zt=[1,140],$t=[1,135],e1=[1,139],t1=[1,137],Ct=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],s1=[1,155],i1=[1,157],z=[8,9,11],Ae=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],v=[1,177],ue=[1,173],ce=[1,174],V=[1,178],w=[1,175],R=[1,176],ut=[77,116,119],O=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],r1=[10,106],Pe=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],ye=[1,248],xe=[1,246],_e=[1,250],Be=[1,244],ve=[1,245],Ve=[1,247],we=[1,249],Ie=[1,251],ot=[1,269],a1=[8,9,11,106],De=[8,9,10,11,60,84,105,106,109,110,111,112],Dt={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:e(function(b,m,F,l,M,i,Ue){var a=i.length-1;switch(M){case 2:this.$=[];break;case 3:if(!Array.isArray(i[a])||i[a].length>0)i[a-1].push(i[a]);this.$=i[a-1];break;case 4:case 183:this.$=i[a];break;case 11:l.setDirection("TB"),this.$="TB";break;case 12:l.setDirection(i[a-1]),this.$=i[a-1];break;case 27:this.$=i[a-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=l.addSubGraph(i[a-6],i[a-1],i[a-4]);break;case 34:this.$=l.addSubGraph(i[a-3],i[a-1],i[a-3]);break;case 35:this.$=l.addSubGraph(void 0,i[a-1],void 0);break;case 37:this.$=i[a].trim(),l.setAccTitle(this.$);break;case 38:case 39:this.$=i[a].trim(),l.setAccDescription(this.$);break;case 43:this.$=i[a-1]+i[a];break;case 44:this.$=i[a];break;case 45:l.addVertex(i[a-1][i[a-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,i[a]),l.addLink(i[a-3].stmt,i[a-1],i[a-2]),this.$={stmt:i[a-1],nodes:i[a-1].concat(i[a-3].nodes)};break;case 46:l.addLink(i[a-2].stmt,i[a],i[a-1]),this.$={stmt:i[a],nodes:i[a].concat(i[a-2].nodes)};break;case 47:l.addLink(i[a-3].stmt,i[a-1],i[a-2]),this.$={stmt:i[a-1],nodes:i[a-1].concat(i[a-3].nodes)};break;case 48:this.$={stmt:i[a-1],nodes:i[a-1]};break;case 49:l.addVertex(i[a-1][i[a-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,i[a]),this.$={stmt:i[a-1],nodes:i[a-1],shapeData:i[a]};break;case 50:this.$={stmt:i[a],nodes:i[a]};break;case 51:this.$=[i[a]];break;case 52:l.addVertex(i[a-5][i[a-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,i[a-4]),this.$=i[a-5].concat(i[a]);break;case 53:this.$=i[a-4].concat(i[a]);break;case 54:this.$=i[a];break;case 55:this.$=i[a-2],l.setClass(i[a-2],i[a]);break;case 56:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"square");break;case 57:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"doublecircle");break;case 58:this.$=i[a-5],l.addVertex(i[a-5],i[a-2],"circle");break;case 59:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"ellipse");break;case 60:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"stadium");break;case 61:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"subroutine");break;case 62:this.$=i[a-7],l.addVertex(i[a-7],i[a-1],"rect",void 0,void 0,void 0,Object.fromEntries([[i[a-5],i[a-3]]]));break;case 63:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"cylinder");break;case 64:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"round");break;case 65:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"diamond");break;case 66:this.$=i[a-5],l.addVertex(i[a-5],i[a-2],"hexagon");break;case 67:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"odd");break;case 68:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"trapezoid");break;case 69:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"inv_trapezoid");break;case 70:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"lean_right");break;case 71:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"lean_left");break;case 72:this.$=i[a],l.addVertex(i[a]);break;case 73:i[a-1].text=i[a],this.$=i[a-1];break;case 74:case 75:i[a-2].text=i[a-1],this.$=i[a-2];break;case 76:this.$=i[a];break;case 77:var X=l.destructLink(i[a],i[a-2]);this.$={type:X.type,stroke:X.stroke,length:X.length,text:i[a-1]};break;case 78:var X=l.destructLink(i[a],i[a-2]);this.$={type:X.type,stroke:X.stroke,length:X.length,text:i[a-1],id:i[a-3]};break;case 79:this.$={text:i[a],type:"text"};break;case 80:this.$={text:i[a-1].text+""+i[a],type:i[a-1].type};break;case 81:this.$={text:i[a],type:"string"};break;case 82:this.$={text:i[a],type:"markdown"};break;case 83:var X=l.destructLink(i[a]);this.$={type:X.type,stroke:X.stroke,length:X.length};break;case 84:var X=l.destructLink(i[a]);this.$={type:X.type,stroke:X.stroke,length:X.length,id:i[a-1]};break;case 85:this.$=i[a-1];break;case 86:this.$={text:i[a],type:"text"};break;case 87:this.$={text:i[a-1].text+""+i[a],type:i[a-1].type};break;case 88:this.$={text:i[a],type:"string"};break;case 89:case 104:this.$={text:i[a],type:"markdown"};break;case 101:this.$={text:i[a],type:"text"};break;case 102:this.$={text:i[a-1].text+""+i[a],type:i[a-1].type};break;case 103:this.$={text:i[a],type:"text"};break;case 105:this.$=i[a-4],l.addClass(i[a-2],i[a]);break;case 106:this.$=i[a-4],l.setClass(i[a-2],i[a]);break;case 107:case 115:this.$=i[a-1],l.setClickEvent(i[a-1],i[a]);break;case 108:case 116:this.$=i[a-3],l.setClickEvent(i[a-3],i[a-2]),l.setTooltip(i[a-3],i[a]);break;case 109:this.$=i[a-2],l.setClickEvent(i[a-2],i[a-1],i[a]);break;case 110:this.$=i[a-4],l.setClickEvent(i[a-4],i[a-3],i[a-2]),l.setTooltip(i[a-4],i[a]);break;case 111:this.$=i[a-2],l.setLink(i[a-2],i[a]);break;case 112:this.$=i[a-4],l.setLink(i[a-4],i[a-2]),l.setTooltip(i[a-4],i[a]);break;case 113:this.$=i[a-4],l.setLink(i[a-4],i[a-2],i[a]);break;case 114:this.$=i[a-6],l.setLink(i[a-6],i[a-4],i[a]),l.setTooltip(i[a-6],i[a-2]);break;case 117:this.$=i[a-1],l.setLink(i[a-1],i[a]);break;case 118:this.$=i[a-3],l.setLink(i[a-3],i[a-2]),l.setTooltip(i[a-3],i[a]);break;case 119:this.$=i[a-3],l.setLink(i[a-3],i[a-2],i[a]);break;case 120:this.$=i[a-5],l.setLink(i[a-5],i[a-4],i[a]),l.setTooltip(i[a-5],i[a-2]);break;case 121:this.$=i[a-4],l.addVertex(i[a-2],void 0,void 0,i[a]);break;case 122:this.$=i[a-4],l.updateLink([i[a-2]],i[a]);break;case 123:this.$=i[a-4],l.updateLink(i[a-2],i[a]);break;case 124:this.$=i[a-8],l.updateLinkInterpolate([i[a-6]],i[a-2]),l.updateLink([i[a-6]],i[a]);break;case 125:this.$=i[a-8],l.updateLinkInterpolate(i[a-6],i[a-2]),l.updateLink(i[a-6],i[a]);break;case 126:this.$=i[a-6],l.updateLinkInterpolate([i[a-4]],i[a]);break;case 127:this.$=i[a-6],l.updateLinkInterpolate(i[a-4],i[a]);break;case 128:case 130:this.$=[i[a]];break;case 129:case 131:i[a-2].push(i[a]),this.$=i[a-2];break;case 133:this.$=i[a-1]+i[a];break;case 181:this.$=i[a];break;case 182:this.$=i[a-1]+""+i[a];break;case 184:this.$=i[a-1]+""+i[a];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:n,10:u,12:o},{1:[3]},t(c,g,{5:6}),{4:7,9:n,10:u,12:o},{4:8,9:n,10:u,12:o},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:d,9:D,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:B,33:24,34:W,36:x,38:_,42:28,43:39,44:G,45:40,47:41,60:j,84:Ne,85:h,86:k,87:de,88:be,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:ct,122:ht,123:dt,124:pt,125:ft},t(c,[2,9]),t(c,[2,10]),t(c,[2,11]),{8:[1,55],9:[1,56],10:Ge,15:54,18:57},t(P,[2,3]),t(P,[2,4]),t(P,[2,5]),t(P,[2,6]),t(P,[2,7]),t(P,[2,8]),{8:Te,9:Ee,11:Se,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:Te,9:Ee,11:Se,21:68},{8:Te,9:Ee,11:Se,21:69},{8:Te,9:Ee,11:Se,21:70},{8:Te,9:Ee,11:Se,21:71},{8:Te,9:Ee,11:Se,21:72},{8:Te,9:Ee,10:[1,73],11:Se,21:74},t(P,[2,36]),{35:[1,75]},{37:[1,76]},t(P,[2,39]),t(Ke,[2,50],{18:77,39:78,10:Ge,40:_t}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:He,44:qe,60:Xe,80:[1,87],89:Qe,95:[1,84],97:[1,85],101:86,105:Je,106:Ze,109:$e,111:st,114:it,115:rt,116:at,120:88},t(P,[2,185]),t(P,[2,186]),t(P,[2,187]),t(P,[2,188]),t(P,[2,189]),t(Me,[2,51]),t(Me,[2,54],{46:[1,100]}),t(ne,[2,72],{113:113,29:[1,101],44:G,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:j,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:K,102:Y,105:H,106:q,109:Q,111:J,114:Z,115:ee,116:te}),t(ke,[2,181]),t(ke,[2,142]),t(ke,[2,143]),t(ke,[2,144]),t(ke,[2,145]),t(ke,[2,146]),t(ke,[2,147]),t(ke,[2,148]),t(ke,[2,149]),t(ke,[2,150]),t(ke,[2,151]),t(ke,[2,152]),t(c,[2,12]),t(c,[2,18]),t(c,[2,19]),{9:[1,114]},t(Bt,[2,26],{18:115,10:Ge}),t(P,[2,27]),{42:116,43:39,44:G,45:40,47:41,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},t(P,[2,40]),t(P,[2,41]),t(P,[2,42]),t(nt,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:vt,81:Lt,116:bt,119:kt},{75:[1,126],77:[1,127]},t(Vt,[2,83]),t(P,[2,28]),t(P,[2,29]),t(P,[2,30]),t(P,[2,31]),t(P,[2,32]),{10:wt,12:It,14:Rt,27:Nt,28:128,32:Gt,44:Ot,60:Ut,75:Wt,80:[1,130],81:[1,131],83:141,84:zt,85:jt,86:Kt,87:Yt,88:Ht,89:qt,90:Xt,91:129,105:Qt,109:Jt,111:Zt,114:$t,115:e1,116:t1},t(Ct,g,{5:154}),t(P,[2,37]),t(P,[2,38]),t(Ke,[2,48],{44:s1}),t(Ke,[2,49],{18:156,10:Ge,40:i1}),t(Me,[2,44]),{44:G,47:158,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{102:[1,159],103:160,105:[1,161]},{44:G,47:162,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{44:G,47:163,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},t(z,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},t(z,[2,115],{120:168,10:[1,167],14:He,44:qe,60:Xe,89:Qe,105:Je,106:Ze,109:$e,111:st,114:it,115:rt,116:at}),t(z,[2,117],{10:[1,169]}),t(Ae,[2,183]),t(Ae,[2,170]),t(Ae,[2,171]),t(Ae,[2,172]),t(Ae,[2,173]),t(Ae,[2,174]),t(Ae,[2,175]),t(Ae,[2,176]),t(Ae,[2,177]),t(Ae,[2,178]),t(Ae,[2,179]),t(Ae,[2,180]),{44:G,47:170,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{30:171,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{30:179,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{30:181,50:[1,180],67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{30:182,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{30:183,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{30:184,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{109:[1,185]},{30:186,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{30:187,65:[1,188],67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{30:189,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{30:190,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{30:191,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},t(ke,[2,182]),t(c,[2,20]),t(Bt,[2,25]),t(Ke,[2,46],{39:192,18:193,10:Ge,40:_t}),t(nt,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{77:[1,197],79:198,116:bt,119:kt},t(ut,[2,79]),t(ut,[2,81]),t(ut,[2,82]),t(ut,[2,168]),t(ut,[2,169]),{76:199,79:121,80:vt,81:Lt,116:bt,119:kt},t(Vt,[2,84]),{8:Te,9:Ee,10:wt,11:Se,12:It,14:Rt,21:201,27:Nt,29:[1,200],32:Gt,44:Ot,60:Ut,75:Wt,83:141,84:zt,85:jt,86:Kt,87:Yt,88:Ht,89:qt,90:Xt,91:202,105:Qt,109:Jt,111:Zt,114:$t,115:e1,116:t1},t(O,[2,101]),t(O,[2,103]),t(O,[2,104]),t(O,[2,157]),t(O,[2,158]),t(O,[2,159]),t(O,[2,160]),t(O,[2,161]),t(O,[2,162]),t(O,[2,163]),t(O,[2,164]),t(O,[2,165]),t(O,[2,166]),t(O,[2,167]),t(O,[2,90]),t(O,[2,91]),t(O,[2,92]),t(O,[2,93]),t(O,[2,94]),t(O,[2,95]),t(O,[2,96]),t(O,[2,97]),t(O,[2,98]),t(O,[2,99]),t(O,[2,100]),{6:11,7:12,8:d,9:D,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,203],33:24,34:W,36:x,38:_,42:28,43:39,44:G,45:40,47:41,60:j,84:Ne,85:h,86:k,87:de,88:be,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:ct,122:ht,123:dt,124:pt,125:ft},{10:Ge,18:204},{44:[1,205]},t(Me,[2,43]),{10:[1,206],44:G,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:113,114:Z,115:ee,116:te},{10:[1,207]},{10:[1,208],106:[1,209]},t(r1,[2,128]),{10:[1,210],44:G,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:113,114:Z,115:ee,116:te},{10:[1,211],44:G,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:113,114:Z,115:ee,116:te},{80:[1,212]},t(z,[2,109],{10:[1,213]}),t(z,[2,111],{10:[1,214]}),{80:[1,215]},t(Ae,[2,184]),{80:[1,216],98:[1,217]},t(Me,[2,55],{113:113,44:G,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,114:Z,115:ee,116:te}),{31:[1,218],67:v,82:219,116:V,117:w,118:R},t(Pe,[2,86]),t(Pe,[2,88]),t(Pe,[2,89]),t(Pe,[2,153]),t(Pe,[2,154]),t(Pe,[2,155]),t(Pe,[2,156]),{49:[1,220],67:v,82:219,116:V,117:w,118:R},{30:221,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{51:[1,222],67:v,82:219,116:V,117:w,118:R},{53:[1,223],67:v,82:219,116:V,117:w,118:R},{55:[1,224],67:v,82:219,116:V,117:w,118:R},{57:[1,225],67:v,82:219,116:V,117:w,118:R},{60:[1,226]},{64:[1,227],67:v,82:219,116:V,117:w,118:R},{66:[1,228],67:v,82:219,116:V,117:w,118:R},{30:229,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{31:[1,230],67:v,82:219,116:V,117:w,118:R},{67:v,69:[1,231],71:[1,232],82:219,116:V,117:w,118:R},{67:v,69:[1,234],71:[1,233],82:219,116:V,117:w,118:R},t(Ke,[2,45],{18:156,10:Ge,40:i1}),t(Ke,[2,47],{44:s1}),t(nt,[2,75]),t(nt,[2,74]),{62:[1,235],67:v,82:219,116:V,117:w,118:R},t(nt,[2,77]),t(ut,[2,80]),{77:[1,236],79:198,116:bt,119:kt},{30:237,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},t(Ct,g,{5:238}),t(O,[2,102]),t(P,[2,35]),{43:239,44:G,45:40,47:41,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{10:Ge,18:240},{10:ye,60:xe,84:_e,92:241,105:Be,107:242,108:243,109:ve,110:Ve,111:we,112:Ie},{10:ye,60:xe,84:_e,92:252,104:[1,253],105:Be,107:242,108:243,109:ve,110:Ve,111:we,112:Ie},{10:ye,60:xe,84:_e,92:254,104:[1,255],105:Be,107:242,108:243,109:ve,110:Ve,111:we,112:Ie},{105:[1,256]},{10:ye,60:xe,84:_e,92:257,105:Be,107:242,108:243,109:ve,110:Ve,111:we,112:Ie},{44:G,47:258,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},t(z,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},t(z,[2,116]),t(z,[2,118],{10:[1,262]}),t(z,[2,119]),t(ne,[2,56]),t(Pe,[2,87]),t(ne,[2,57]),{51:[1,263],67:v,82:219,116:V,117:w,118:R},t(ne,[2,64]),t(ne,[2,59]),t(ne,[2,60]),t(ne,[2,61]),{109:[1,264]},t(ne,[2,63]),t(ne,[2,65]),{66:[1,265],67:v,82:219,116:V,117:w,118:R},t(ne,[2,67]),t(ne,[2,68]),t(ne,[2,70]),t(ne,[2,69]),t(ne,[2,71]),t([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),t(nt,[2,78]),{31:[1,266],67:v,82:219,116:V,117:w,118:R},{6:11,7:12,8:d,9:D,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,267],33:24,34:W,36:x,38:_,42:28,43:39,44:G,45:40,47:41,60:j,84:Ne,85:h,86:k,87:de,88:be,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:ct,122:ht,123:dt,124:pt,125:ft},t(Me,[2,53]),{43:268,44:G,45:40,47:41,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},t(z,[2,121],{106:ot}),t(a1,[2,130],{108:270,10:ye,60:xe,84:_e,105:Be,109:ve,110:Ve,111:we,112:Ie}),t(De,[2,132]),t(De,[2,134]),t(De,[2,135]),t(De,[2,136]),t(De,[2,137]),t(De,[2,138]),t(De,[2,139]),t(De,[2,140]),t(De,[2,141]),t(z,[2,122],{106:ot}),{10:[1,271]},t(z,[2,123],{106:ot}),{10:[1,272]},t(r1,[2,129]),t(z,[2,105],{106:ot}),t(z,[2,106],{113:113,44:G,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,114:Z,115:ee,116:te}),t(z,[2,110]),t(z,[2,112],{10:[1,273]}),t(z,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:Te,9:Ee,11:Se,21:278},t(P,[2,34]),t(Me,[2,52]),{10:ye,60:xe,84:_e,105:Be,107:279,108:243,109:ve,110:Ve,111:we,112:Ie},t(De,[2,133]),{14:He,44:qe,60:Xe,89:Qe,101:280,105:Je,106:Ze,109:$e,111:st,114:it,115:rt,116:at,120:88},{14:He,44:qe,60:Xe,89:Qe,101:281,105:Je,106:Ze,109:$e,111:st,114:it,115:rt,116:at,120:88},{98:[1,282]},t(z,[2,120]),t(ne,[2,58]),{30:283,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},t(ne,[2,66]),t(Ct,g,{5:284}),t(a1,[2,131],{108:270,10:ye,60:xe,84:_e,105:Be,109:ve,110:Ve,111:we,112:Ie}),t(z,[2,126],{120:168,10:[1,285],14:He,44:qe,60:Xe,89:Qe,105:Je,106:Ze,109:$e,111:st,114:it,115:rt,116:at}),t(z,[2,127],{120:168,10:[1,286],14:He,44:qe,60:Xe,89:Qe,105:Je,106:Ze,109:$e,111:st,114:it,115:rt,116:at}),t(z,[2,114]),{31:[1,287],67:v,82:219,116:V,117:w,118:R},{6:11,7:12,8:d,9:D,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,288],33:24,34:W,36:x,38:_,42:28,43:39,44:G,45:40,47:41,60:j,84:Ne,85:h,86:k,87:de,88:be,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:ct,122:ht,123:dt,124:pt,125:ft},{10:ye,60:xe,84:_e,92:289,105:Be,107:242,108:243,109:ve,110:Ve,111:we,112:Ie},{10:ye,60:xe,84:_e,92:290,105:Be,107:242,108:243,109:ve,110:Ve,111:we,112:Ie},t(ne,[2,62]),t(P,[2,33]),t(z,[2,124],{106:ot}),t(z,[2,125],{106:ot})],defaultActions:{},parseError:e(function(b,m){if(m.recoverable)this.trace(b);else{var F=Error(b);throw F.hash=m,F}},"parseError"),parse:e(function(b){var m=this,F=[0],l=[],M=[null],i=[],Ue=this.table,a="",X=0,n1=0,u1=0,f1=2,o1=1,b1=i.slice.call(arguments,1),re=Object.create(this.lexer),We={yy:{}};for(var Tt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Tt))We.yy[Tt]=this.yy[Tt];if(re.setInput(b,We.yy),We.yy.lexer=re,We.yy.parser=this,typeof re.yylloc>"u")re.yylloc={};var Et=re.yylloc;i.push(Et);var k1=re.options&&re.options.ranges;if(typeof We.yy.parseError==="function")this.parseError=We.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function g1(Ce){F.length=F.length-2*Ce,M.length=M.length-Ce,i.length=i.length-Ce}e(g1,"popStack");function l1(){var Ce=l.pop()||re.lex()||o1;if(typeof Ce!=="number"){if(Ce instanceof Array)l=Ce,Ce=l.pop();Ce=m.symbols_[Ce]||Ce}return Ce}e(l1,"lex");var pe,St,ze,me,F1,yt,lt={},At,Re,c1,mt;while(!0){if(ze=F[F.length-1],this.defaultActions[ze])me=this.defaultActions[ze];else{if(pe===null||typeof pe>"u")pe=l1();me=Ue[ze]&&Ue[ze][pe]}if(typeof me>"u"||!me.length||!me[0]){var xt="";mt=[];for(At in Ue[ze])if(this.terminals_[At]&&At>f1)mt.push("'"+this.terminals_[At]+"'");if(re.showPosition)xt="Parse error on line "+(X+1)+`:
|
|
10
|
+
`+re.showPosition()+`
|
|
11
|
+
Expecting `+mt.join(", ")+", got '"+(this.terminals_[pe]||pe)+"'";else xt="Parse error on line "+(X+1)+": Unexpected "+(pe==o1?"end of input":"'"+(this.terminals_[pe]||pe)+"'");this.parseError(xt,{text:re.match,token:this.terminals_[pe]||pe,line:re.yylineno,loc:Et,expected:mt})}if(me[0]instanceof Array&&me.length>1)throw Error("Parse Error: multiple actions possible at state: "+ze+", token: "+pe);switch(me[0]){case 1:if(F.push(pe),M.push(re.yytext),i.push(re.yylloc),F.push(me[1]),pe=null,!St){if(n1=re.yyleng,a=re.yytext,X=re.yylineno,Et=re.yylloc,u1>0)u1--}else pe=St,St=null;break;case 2:if(Re=this.productions_[me[1]][1],lt.$=M[M.length-Re],lt._$={first_line:i[i.length-(Re||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(Re||1)].first_column,last_column:i[i.length-1].last_column},k1)lt._$.range=[i[i.length-(Re||1)].range[0],i[i.length-1].range[1]];if(yt=this.performAction.apply(lt,[a,n1,X,We.yy,me[1],M,i].concat(b1)),typeof yt<"u")return yt;if(Re)F=F.slice(0,-1*Re*2),M=M.slice(0,-1*Re),i=i.slice(0,-1*Re);F.push(this.productions_[me[1]][0]),M.push(lt.$),i.push(lt._$),c1=Ue[F[F.length-2]][F[F.length-1]],F.push(c1);break;case 3:return!0}}return!0},"parse")},p1=function(){var Oe={EOF:1,parseError:e(function(m,F){if(this.yy.parser)this.yy.parser.parseError(m,F);else throw Error(m)},"parseError"),setInput:e(function(b,m){if(this.yy=m||this.yy||{},this._input=b,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];return this.offset=0,this},"setInput"),input:e(function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var m=b.match(/(?:\r\n?|\n).*/g);if(m)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),b},"input"),unput:e(function(b){var m=b.length,F=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var l=this.match.split(/(?:\r\n?|\n)/g);if(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 M=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:F?(F.length===l.length?this.yylloc.first_column:0)+l[l.length-F.length].length-F[0].length:this.yylloc.first_column-m},this.options.ranges)this.yylloc.range=[M[0],M[0]+this.yyleng-m];return this.yyleng=this.yytext.length,this},"unput"),more:e(function(){return this._more=!0,this},"more"),reject:e(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).
|
|
12
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e(function(b){this.unput(this.match.slice(b))},"less"),pastInput:e(function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var b=this.match;if(b.length<20)b+=this._input.substr(0,20-b.length);return(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var b=this.pastInput(),m=Array(b.length+1).join("-");return b+this.upcomingInput()+`
|
|
13
|
+
`+m+"^"},"showPosition"),test_match:e(function(b,m){var F,l,M;if(this.options.backtrack_lexer){if(M={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)M.yylloc.range=this.yylloc.range.slice(0)}if(l=b[0].match(/(?:\r\n?|\n).*/g),l)this.yylineno+=l.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(b[0].length),this.matched+=b[0],F=this.performAction.call(this,this.yy,this,m,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(F)return F;else if(this._backtrack){for(var i in M)this[i]=M[i];return!1}return!1},"test_match"),next:e(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var b,m,F,l;if(!this._more)this.yytext="",this.match="";var M=this._currentRules();for(var i=0;i<M.length;i++)if(F=this._input.match(this.rules[M[i]]),F&&(!m||F[0].length>m[0].length)){if(m=F,l=i,this.options.backtrack_lexer)if(b=this.test_match(F,M[i]),b!==!1)return b;else if(this._backtrack){m=!1;continue}else return!1;else if(!this.options.flex)break}if(m){if(b=this.test_match(m,M[l]),b!==!1)return b;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
14
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:e(function(){var m=this.next();if(m)return m;else return this.lex()},"lex"),begin:e(function(m){this.conditionStack.push(m)},"begin"),popState:e(function(){var m=this.conditionStack.length-1;if(m>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:e(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:e(function(m){if(m=this.conditionStack.length-1-Math.abs(m||0),m>=0)return this.conditionStack[m];else return"INITIAL"},"topState"),pushState:e(function(m){this.begin(m)},"pushState"),stateStackSize:e(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:e(function(m,F,l,M){var i=M;switch(l){case 0:return this.begin("acc_title"),34;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),36;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),F.yytext="",40;break;case 8:return this.pushState("shapeDataStr"),40;break;case 9:return this.popState(),40;break;case 10:let Ue=/\n\s*/g;return F.yytext=F.yytext.replace(Ue,"<br/>"),40;break;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:if(m.lex.firstGraph())this.begin("dir");return 12;case 36:if(m.lex.firstGraph())this.begin("dir");return 12;case 37:if(m.lex.firstGraph())this.begin("dir");return 12;case 38:if(m.lex.firstGraph())this.begin("dir");return 12;case 39:return 27;case 40:return 32;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return 98;case 45:return this.popState(),13;break;case 46:return this.popState(),14;break;case 47:return this.popState(),14;break;case 48:return this.popState(),14;break;case 49:return this.popState(),14;break;case 50:return this.popState(),14;break;case 51:return this.popState(),14;break;case 52:return this.popState(),14;break;case 53:return this.popState(),14;break;case 54:return this.popState(),14;break;case 55:return this.popState(),14;break;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:return 111;case 64:return 46;case 65:return 60;case 66:return 44;case 67:return 8;case 68:return 106;case 69:return 115;case 70:return this.popState(),77;break;case 71:return this.pushState("edgeText"),75;break;case 72:return 119;case 73:return this.popState(),77;break;case 74:return this.pushState("thickEdgeText"),75;break;case 75:return 119;case 76:return this.popState(),77;break;case 77:return this.pushState("dottedEdgeText"),75;break;case 78:return 119;case 79:return 77;case 80:return this.popState(),53;break;case 81:return"TEXT";case 82:return this.pushState("ellipseText"),52;break;case 83:return this.popState(),55;break;case 84:return this.pushState("text"),54;break;case 85:return this.popState(),57;break;case 86:return this.pushState("text"),56;break;case 87:return 58;case 88:return this.pushState("text"),67;break;case 89:return this.popState(),64;break;case 90:return this.pushState("text"),63;break;case 91:return this.popState(),49;break;case 92:return this.pushState("text"),48;break;case 93:return this.popState(),69;break;case 94:return this.popState(),71;break;case 95:return 117;case 96:return this.pushState("trapText"),68;break;case 97:return this.pushState("trapText"),70;break;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return"SEP";case 102:return 89;case 103:return 115;case 104:return 111;case 105:return 44;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;break;case 110:return this.pushState("text"),62;break;case 111:return this.popState(),51;break;case 112:return this.pushState("text"),50;break;case 113:return this.popState(),31;break;case 114:return this.pushState("text"),29;break;case 115:return this.popState(),66;break;case 116:return this.pushState("text"),65;break;case 117:return"TEXT";case 118:return"QUOTE";case 119:return 9;case 120:return 10;case 121:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:[^\S\n\r]+)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}};return Oe}();Dt.lexer=p1;function gt(){this.yy={}}return e(gt,"Parser"),gt.prototype=Dt,Dt.Parser=gt,new gt}();Ft.parser=Ft;var h1=Ft,d1=Object.assign({},h1);d1.parse=(t)=>{let n=t.replace(/}\s*\n/g,`}
|
|
15
|
+
`);return h1.parse(n)};var E1=d1,S1=e((t)=>{let{theme:n,bkgColorArray:u,borderColorArray:o}=t;if(!ae(n,o))return"";let c=ie(t.look),g=le(u),d="";for(let D=0;D<Ye(t.THEME_COLOR_LIMIT,o);D++){let f=o[D%o.length],U=g?`fill: ${u[D%u.length]};`:"",B=`[data-look="${c}"][data-color-id="color-${D}"]`,W=e((_)=>`${B}.node ${_}, ${B}.rough-node ${_}`,"collapsedRule"),x=e((_)=>`${B}.swimlane.cluster .swimlane-title${_}, ${B}.swimlane.cluster .swimlane-body${_}`,"laneRule");d+=`
|
|
16
|
+
|
|
17
|
+
${B}.cluster:not(.swimlane) rect {
|
|
18
|
+
stroke: ${f};
|
|
19
|
+
${U}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
${B}.cluster:not(.swimlane) path {
|
|
23
|
+
stroke: ${f};
|
|
24
|
+
${U}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Lane, classic and neo. */
|
|
28
|
+
${B}.swimlane.cluster rect.swimlane-title,
|
|
29
|
+
${B}.swimlane.cluster rect.swimlane-body {
|
|
30
|
+
stroke: ${f};
|
|
31
|
+
${U}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Lane, handDrawn: roughjs emits the hachure fill first, then the outline. */
|
|
35
|
+
${x(" path:nth-of-type(2)")} {
|
|
36
|
+
stroke: ${f};
|
|
37
|
+
}
|
|
38
|
+
${g?`
|
|
39
|
+
/* A roughjs fill is drawn as lines, so the lane fill is a stroke here. */
|
|
40
|
+
${x(" path:first-of-type")} {
|
|
41
|
+
stroke: ${u[D%u.length]};
|
|
42
|
+
}
|
|
43
|
+
`:""}
|
|
44
|
+
${W(".collapsed-group")},
|
|
45
|
+
${W(".collapsed-group path")} {
|
|
46
|
+
stroke: ${f};
|
|
47
|
+
${U}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* The ellipsis dots and the separator take clusterBorder further down, so without
|
|
51
|
+
these the container is palette-coloured while its own markers are not. */
|
|
52
|
+
${W(".collapsed-indicator")} {
|
|
53
|
+
fill: ${f};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
${W(".collapsed-separator")} {
|
|
57
|
+
stroke: ${f};
|
|
58
|
+
}
|
|
59
|
+
`}return d},"genColor"),y1=e((t,n)=>{let u=Pt,o=u(t,"r"),c=u(t,"g"),g=u(t,"b");return se(o,c,g,n)},"fade"),x1=e((t)=>`${S1(t)}
|
|
60
|
+
.label {
|
|
61
|
+
font-family: ${t.fontFamily};
|
|
62
|
+
color: ${t.nodeTextColor||t.textColor};
|
|
63
|
+
}
|
|
64
|
+
.cluster-label text {
|
|
65
|
+
fill: ${t.titleColor};
|
|
66
|
+
}
|
|
67
|
+
.cluster-label span {
|
|
68
|
+
color: ${t.titleColor};
|
|
69
|
+
}
|
|
70
|
+
.cluster-label span p {
|
|
71
|
+
background-color: transparent;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.label text,span {
|
|
75
|
+
fill: ${t.nodeTextColor||t.textColor};
|
|
76
|
+
color: ${t.nodeTextColor||t.textColor};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.node rect,
|
|
80
|
+
.node circle,
|
|
81
|
+
.node ellipse,
|
|
82
|
+
.node polygon,
|
|
83
|
+
.node path {
|
|
84
|
+
fill: ${t.mainBkg};
|
|
85
|
+
stroke: ${t.nodeBorder};
|
|
86
|
+
stroke-width: ${t.strokeWidth??1}px;
|
|
87
|
+
}
|
|
88
|
+
.rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
|
|
89
|
+
text-anchor: middle;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.node .katex path {
|
|
93
|
+
fill: #000;
|
|
94
|
+
stroke: #000;
|
|
95
|
+
stroke-width: 1px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
|
|
99
|
+
text-align: center;
|
|
100
|
+
}
|
|
101
|
+
.node.clickable {
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
.root .anchor path {
|
|
107
|
+
fill: ${t.lineColor} !important;
|
|
108
|
+
stroke-width: 0;
|
|
109
|
+
stroke: ${t.lineColor};
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.arrowheadPath {
|
|
113
|
+
fill: ${t.arrowheadColor};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.edgePaths .path {
|
|
117
|
+
stroke: ${t.lineColor};
|
|
118
|
+
stroke-width: ${t.strokeWidth??2}px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.flowchart-link {
|
|
122
|
+
stroke: ${t.lineColor};
|
|
123
|
+
fill: none;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.edgeLabel {
|
|
127
|
+
background-color: ${t.edgeLabelBackground};
|
|
128
|
+
p {
|
|
129
|
+
background-color: ${t.edgeLabelBackground};
|
|
130
|
+
}
|
|
131
|
+
rect {
|
|
132
|
+
opacity: 0.5;
|
|
133
|
+
background-color: ${t.edgeLabelBackground};
|
|
134
|
+
fill: ${t.edgeLabelBackground};
|
|
135
|
+
}
|
|
136
|
+
text-align: center;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* For html labels only */
|
|
140
|
+
.labelBkg {
|
|
141
|
+
background-color: ${y1(t.edgeLabelBackground,0.5)};
|
|
142
|
+
// background-color:
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.cluster rect {
|
|
146
|
+
fill: ${t.clusterBkg};
|
|
147
|
+
stroke: ${t.clusterBorder};
|
|
148
|
+
stroke-width: 1px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.cluster text {
|
|
152
|
+
fill: ${t.titleColor};
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.cluster span {
|
|
156
|
+
color: ${t.titleColor};
|
|
157
|
+
}
|
|
158
|
+
/* .cluster div {
|
|
159
|
+
color: ${t.titleColor};
|
|
160
|
+
} */
|
|
161
|
+
|
|
162
|
+
/* Collapsed subgraph node (@{ view: collapsed }) */
|
|
163
|
+
.node .collapsed-indicator {
|
|
164
|
+
fill: ${t.clusterBorder};
|
|
165
|
+
stroke: none;
|
|
166
|
+
opacity: 0.6;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.node .collapsed-separator {
|
|
170
|
+
stroke: ${t.clusterBorder};
|
|
171
|
+
stroke-width: 0.75px;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
div.mermaidTooltip {
|
|
175
|
+
position: absolute;
|
|
176
|
+
text-align: center;
|
|
177
|
+
max-width: 200px;
|
|
178
|
+
padding: 2px;
|
|
179
|
+
font-family: ${t.fontFamily};
|
|
180
|
+
font-size: 12px;
|
|
181
|
+
background: ${t.tertiaryColor};
|
|
182
|
+
border: 1px solid ${t.border2};
|
|
183
|
+
border-radius: 2px;
|
|
184
|
+
pointer-events: none;
|
|
185
|
+
z-index: 100;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.flowchartTitleText {
|
|
189
|
+
text-anchor: middle;
|
|
190
|
+
font-size: 18px;
|
|
191
|
+
fill: ${t.textColor};
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
rect.text {
|
|
195
|
+
fill: none;
|
|
196
|
+
stroke-width: 0;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.icon-shape, .image-shape {
|
|
200
|
+
background-color: ${t.edgeLabelBackground};
|
|
201
|
+
p {
|
|
202
|
+
background-color: ${t.edgeLabelBackground};
|
|
203
|
+
padding: 2px;
|
|
204
|
+
}
|
|
205
|
+
.label rect {
|
|
206
|
+
opacity: 0.5;
|
|
207
|
+
background-color: ${t.edgeLabelBackground};
|
|
208
|
+
fill: ${t.edgeLabelBackground};
|
|
209
|
+
}
|
|
210
|
+
text-align: center;
|
|
211
|
+
}
|
|
212
|
+
${je()}
|
|
213
|
+
`,"getStyles"),Ei=x1,Ai=e(({styles:t=Ei}={})=>({parser:E1,get db(){return new m1},renderer:T1,styles:t,init:e((n)=>{if(!n.flowchart)n.flowchart={};n.flowchart.arrowMarkerAbsolute=n.arrowMarkerAbsolute,an({flowchart:{arrowMarkerAbsolute:n.arrowMarkerAbsolute}})},"init")}),"createFlowDiagram"),ko=Ai();
|
|
214
|
+
export{Ei,Ai,ko};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import{e,Yt,r,se,y,C,S,E,T,A,I,L,s,p,N,Fe,Xr,le,ae,ie,ft,he,ge}from"./chunk-jtwhjp20.js";import{Pt}from"./chunk-ydgqrfvw.js";import{fe}from"./chunk-b5brnfv9.js";import{oe}from"./chunk-kbtbbarw.js";var Ue=function(){var i=e(function(q,l,h,f){for(h=h||{},f=q.length;f--;h[q[f]]=l);return h},"o"),c=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],b=[2,2],o=[1,7],u=[1,9],g=[1,10],R=[1,11],_=[1,12],v=[1,30],k=[1,23],m=[1,24],B=[1,25],W=[1,26],X=[1,27],D=[1,19],Y=[1,28],te=[1,29],G=[1,20],P=[1,18],z=[1,21],U=[1,22],Ke=[2,6],d=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],Re=[1,36],ve=[1,37],De=[1,38],Le=[1,39],we=[1,40],re=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],K=[1,46],Z=[1,47],ne=[1,57],ce=[43,51,53,54,55,74,75],ue=[1,70],de=[1,68],j=[1,65],be=[1,69],pe=[1,71],_e=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],me=[1,78],Ee=[1,77],Se=[1,76],Ze=[69,70,71,72,73],je=[1,91],qe=[6,9,45,50],J=[6,9,12,44,45,50,51,52],Te=[1,101],Ce=[1,100],Oe=[1,99],ke=[18,61],We=[1,110],He=[1,109],Qe=[20,43,51,53,54,55],Ve=[18,61,64,66],Me={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:e(function(l,h,f,n,O,t,ye){var a=t.length-1;switch(O){case 1:break;case 2:this.$=[];break;case 3:this.$=t[a-1].concat(t[a]);break;case 4:this.$=t[a];break;case 5:case 6:this.$=[];break;case 7:n.addEntity(t[a-4]),n.addEntity(t[a-2]),n.addRelationship(t[a-4],t[a],t[a-2],t[a-3]),this.$=[t[a-4],t[a-2]];break;case 8:n.addEntity(t[a-8]),n.addEntity(t[a-4]),n.addRelationship(t[a-8],t[a],t[a-4],t[a-5]),n.setClass([t[a-8]],t[a-6]),n.setClass([t[a-4]],t[a-2]),this.$=[t[a-8],t[a-4]];break;case 9:n.addEntity(t[a-6]),n.addEntity(t[a-2]),n.addRelationship(t[a-6],t[a],t[a-2],t[a-3]),n.setClass([t[a-6]],t[a-4]),this.$=[t[a-6],t[a-2]];break;case 10:n.addEntity(t[a-6]),n.addEntity(t[a-4]),n.addRelationship(t[a-6],t[a],t[a-4],t[a-5]),n.setClass([t[a-4]],t[a-2]),this.$=[t[a-6],t[a-4]];break;case 11:n.addEntity(t[a-3]),n.addAttributes(t[a-3],t[a-1]),this.$=[t[a-3]];break;case 12:n.addEntity(t[a-5]),n.addAttributes(t[a-5],t[a-1]),n.setClass([t[a-5]],t[a-3]),this.$=[t[a-5]];break;case 13:n.addEntity(t[a-2]),this.$=[t[a-2]];break;case 14:n.addEntity(t[a-4]),n.setClass([t[a-4]],t[a-2]),this.$=[t[a-4]];break;case 15:n.addEntity(t[a]),this.$=[t[a]];break;case 16:n.addEntity(t[a-2]),n.setClass([t[a-2]],t[a]),this.$=[t[a-2]];break;case 17:n.addEntity(t[a-6],t[a-4]),n.addAttributes(t[a-6],t[a-1]),this.$=[t[a-6]];break;case 18:n.addEntity(t[a-8],t[a-6]),n.addAttributes(t[a-8],t[a-1]),n.setClass([t[a-8]],t[a-3]),this.$=[t[a-8]];break;case 19:n.addEntity(t[a-5],t[a-3]),this.$=[t[a-5]];break;case 20:n.addEntity(t[a-7],t[a-5]),n.setClass([t[a-7]],t[a-2]),this.$=[t[a-7]];break;case 21:n.addEntity(t[a-3],t[a-1]);break;case 22:n.addEntity(t[a-5],t[a-3]),n.setClass([t[a-5]],t[a]);break;case 23:case 24:this.$=t[a].trim(),n.setAccTitle(this.$);break;case 25:case 26:this.$=t[a].trim(),n.setAccDescription(this.$);break;case 27:if(!n.subgraphDepth)n.setDirection(t[a].value),this.$=[];else this.$=t[a];break;case 31:n.subgraphDepth=(n.subgraphDepth||1)-1,this.$=n.addSubGraph({text:t[a-2].id},t[a-1],{text:t[a-2].text});break;case 32:n.subgraphDepth=(n.subgraphDepth||0)+1,this.$={id:t[a-1],text:t[a-1]};break;case 33:n.subgraphDepth=(n.subgraphDepth||0)+1,this.$={id:t[a-4],text:t[a-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[a];break;case 35:this.$=t[a-1]+" "+t[a];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[a-3],n.addClass(t[a-2],t[a-1]);break;case 41:case 42:case 63:case 72:this.$=[t[a]];break;case 43:case 44:this.$=t[a-2].concat([t[a]]);break;case 45:this.$=t[a-2],n.setClass(t[a-1],t[a]);break;case 46:this.$=t[a-3],n.addCssStyles(t[a-2],t[a-1]);break;case 47:this.$=[t[a]];break;case 48:t[a-2].push(t[a]),this.$=t[a-2];break;case 50:this.$=t[a-1]+t[a];break;case 58:case 84:case 85:this.$=t[a].replace(/"/g,"");break;case 64:t[a].push(t[a-1]),this.$=t[a];break;case 65:this.$={type:t[a-1],name:t[a]};break;case 66:this.$={type:t[a-2],name:t[a-1],keys:t[a]};break;case 67:this.$={type:t[a-2],name:t[a-1],comment:t[a]};break;case 68:this.$={type:t[a-3],name:t[a-2],keys:t[a-1],comment:t[a]};break;case 69:case 71:case 74:this.$=t[a];break;case 70:this.$=t[a-1]+t[a];break;case 73:t[a-2].push(t[a]),this.$=t[a-2];break;case 75:this.$=t[a].replace(/"/g,"");break;case 76:this.$={cardA:t[a],relType:t[a-1],cardB:t[a-2]};break;case 77:this.$=n.Cardinality.ZERO_OR_ONE;break;case 78:this.$=n.Cardinality.ZERO_OR_MORE;break;case 79:this.$=n.Cardinality.ONE_OR_MORE;break;case 80:this.$=n.Cardinality.ONLY_ONE;break;case 81:this.$=n.Cardinality.MD_PARENT;break;case 82:this.$=n.Identification.NON_IDENTIFYING;break;case 83:this.$=n.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},i(c,b,{5:3}),{6:[1,4],7:5,8:6,9:o,10:8,21:u,23:g,25:R,27:_,28:13,29:14,30:15,31:16,32:17,34:v,37:k,38:m,39:B,40:W,41:X,43:D,46:Y,47:te,51:G,53:P,54:z,55:U},i(c,Ke,{1:[2,1]}),i(d,[2,3]),i(d,[2,4]),i(d,[2,5]),i(d,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:Re,70:ve,71:De,72:Le,73:we}),{22:[1,41]},{24:[1,42]},{26:[1,43]},i(d,[2,26]),i(d,[2,27]),i(d,[2,28]),i(d,[2,29]),i(d,[2,30]),i(d,b,{5:44}),i(re,[2,58]),i(re,[2,59]),i(re,[2,60]),i(re,[2,61]),i(re,[2,62]),i(d,[2,36]),i(d,[2,37]),i(d,[2,38]),i(d,[2,39]),{15:45,43:K,44:Z},{15:48,43:K,44:Z},{15:49,43:K,44:Z},{10:50,43:D,51:G,53:P,54:z,55:U},{10:51,43:D,51:G,53:P,54:z,55:U},{15:52,43:K,44:Z},{17:53,18:[1,54],56:55,57:56,61:ne},{10:58,43:D,51:G,53:P,54:z,55:U},{68:59,74:[1,60],75:[1,61]},i(ce,[2,77]),i(ce,[2,78]),i(ce,[2,79]),i(ce,[2,80]),i(ce,[2,81]),i(d,[2,23]),i(d,[2,24]),i(d,[2,25]),{6:[1,63],7:5,8:6,9:o,10:8,21:u,23:g,25:R,27:_,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:v,37:k,38:m,39:B,40:W,41:X,43:D,46:Y,47:te,51:G,53:P,54:z,55:U},{12:ue,42:64,44:de,45:j,48:66,49:67,51:be,52:pe},i(_e,[2,41]),i(_e,[2,42]),{15:72,43:K,44:Z,45:j},{12:ue,42:73,44:de,45:j,48:66,49:67,51:be,52:pe},{6:me,9:Ee,19:[1,75],35:74,50:Se},{12:[1,79],14:[1,80]},i(d,[2,16],{67:35,11:81,16:[1,82],45:j,69:Re,70:ve,71:De,72:Le,73:we}),{18:[1,83]},i(d,[2,13]),{17:84,18:[2,63],56:55,57:56,61:ne},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:Re,70:ve,71:De,72:Le,73:we},i(Ze,[2,82]),i(Ze,[2,83]),i(d,[2,31]),i(d,Ke),{6:me,9:Ee,35:90,45:je,50:Se},{43:[1,92],44:[1,93]},i(qe,[2,47],{49:94,12:ue,44:de,51:be,52:pe}),i(J,[2,49]),i(J,[2,54]),i(J,[2,55]),i(J,[2,56]),i(J,[2,57]),i(d,[2,45],{45:j}),{6:me,9:Ee,35:95,45:je,50:Se},i(d,[2,32]),{10:97,36:96,43:D,51:G,53:P,54:z,55:U},i(d,[2,51]),i(d,[2,52]),i(d,[2,53]),{13:98,43:Te,53:Ce,76:Oe},{15:102,43:K,44:Z},{10:103,43:D,51:G,53:P,54:z,55:U},{17:104,18:[1,105],56:55,57:56,61:ne},i(d,[2,11]),{18:[2,64]},i(ke,[2,65],{59:106,60:107,63:108,65:We,66:He}),i([18,61,65,66],[2,71]),{61:[2,70]},i(d,[2,21],{14:[1,112],16:[1,111]}),i([43,51,53,54,55],[2,76]),i(d,[2,40]),{12:ue,44:de,48:113,49:67,51:be,52:pe},i(_e,[2,43]),i(_e,[2,44]),i(J,[2,50]),i(d,[2,46]),{10:115,20:[1,114],43:D,51:G,53:P,54:z,55:U},i(Qe,[2,34]),i(d,[2,7]),i(d,[2,84]),i(d,[2,85]),i(d,[2,86]),{12:[1,116],45:j},{12:[1,118],14:[1,117]},{18:[1,119]},i(d,[2,14]),i(ke,[2,66],{60:120,64:[1,121],66:He}),i(ke,[2,67]),i(Ve,[2,72]),i(ke,[2,75]),i(Ve,[2,74]),{17:122,18:[1,123],56:55,57:56,61:ne},{15:124,43:K,44:Z},i(qe,[2,48],{49:94,12:ue,44:de,51:be,52:pe}),{6:me,9:Ee,35:125,50:Se},i(Qe,[2,35]),{13:126,43:Te,53:Ce,76:Oe},{15:127,43:K,44:Z},{13:128,43:Te,53:Ce,76:Oe},i(d,[2,12]),i(ke,[2,68]),{63:129,65:We},{18:[1,130]},i(d,[2,19]),i(d,[2,22],{16:[1,131],45:j}),i(d,[2,33]),i(d,[2,10]),{12:[1,132],45:j},i(d,[2,9]),i(Ve,[2,73]),i(d,[2,17]),{17:133,18:[1,134],56:55,57:56,61:ne},{13:135,43:Te,53:Ce,76:Oe},{18:[1,136]},i(d,[2,20]),i(d,[2,8]),i(d,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:e(function(l,h){if(h.recoverable)this.trace(l);else{var f=Error(l);throw f.hash=h,f}},"parseError"),parse:e(function(l){var h=this,f=[0],n=[],O=[null],t=[],ye=this.table,a="",xe=0,Xe=0,Je=0,at=2,$e=1,nt=t.slice.call(arguments,1),x=Object.create(this.lexer),H={yy:{}};for(var Be in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Be))H.yy[Be]=this.yy[Be];if(x.setInput(l,H.yy),H.yy.lexer=x,H.yy.parser=this,typeof x.yylloc>"u")x.yylloc={};var Ge=x.yylloc;t.push(Ge);var ot=x.options&&x.options.ranges;if(typeof H.yy.parseError==="function")this.parseError=H.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function lt(M){f.length=f.length-2*M,O.length=O.length-M,t.length=t.length-M}e(lt,"popStack");function et(){var M=n.pop()||x.lex()||$e;if(typeof M!=="number"){if(M instanceof Array)n=M,M=n.pop();M=h.symbols_[M]||M}return M}e(et,"lex");var w,Ye,Q,V,kt,Pe,ee={},Ae,F,tt,Ie;while(!0){if(Q=f[f.length-1],this.defaultActions[Q])V=this.defaultActions[Q];else{if(w===null||typeof w>"u")w=et();V=ye[Q]&&ye[Q][w]}if(typeof V>"u"||!V.length||!V[0]){var ze="";Ie=[];for(Ae in ye[Q])if(this.terminals_[Ae]&&Ae>at)Ie.push("'"+this.terminals_[Ae]+"'");if(x.showPosition)ze="Parse error on line "+(xe+1)+`:
|
|
2
|
+
`+x.showPosition()+`
|
|
3
|
+
Expecting `+Ie.join(", ")+", got '"+(this.terminals_[w]||w)+"'";else ze="Parse error on line "+(xe+1)+": Unexpected "+(w==$e?"end of input":"'"+(this.terminals_[w]||w)+"'");this.parseError(ze,{text:x.match,token:this.terminals_[w]||w,line:x.yylineno,loc:Ge,expected:Ie})}if(V[0]instanceof Array&&V.length>1)throw Error("Parse Error: multiple actions possible at state: "+Q+", token: "+w);switch(V[0]){case 1:if(f.push(w),O.push(x.yytext),t.push(x.yylloc),f.push(V[1]),w=null,!Ye){if(Xe=x.yyleng,a=x.yytext,xe=x.yylineno,Ge=x.yylloc,Je>0)Je--}else w=Ye,Ye=null;break;case 2:if(F=this.productions_[V[1]][1],ee.$=O[O.length-F],ee._$={first_line:t[t.length-(F||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(F||1)].first_column,last_column:t[t.length-1].last_column},ot)ee._$.range=[t[t.length-(F||1)].range[0],t[t.length-1].range[1]];if(Pe=this.performAction.apply(ee,[a,Xe,xe,H.yy,V[1],O,t].concat(nt)),typeof Pe<"u")return Pe;if(F)f=f.slice(0,-1*F*2),O=O.slice(0,-1*F),t=t.slice(0,-1*F);f.push(this.productions_[V[1]][0]),O.push(ee.$),t.push(ee._$),tt=ye[f[f.length-2]][f[f.length-1]],f.push(tt);break;case 3:return!0}}return!0},"parse")},rt=function(){var q={EOF:1,parseError:e(function(h,f){if(this.yy.parser)this.yy.parser.parseError(h,f);else throw Error(h)},"parseError"),setInput:e(function(l,h){if(this.yy=h||this.yy||{},this._input=l,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];return this.offset=0,this},"setInput"),input:e(function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var h=l.match(/(?:\r\n?|\n).*/g);if(h)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),l},"input"),unput:e(function(l){var h=l.length,f=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var n=this.match.split(/(?:\r\n?|\n)/g);if(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 O=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===n.length?this.yylloc.first_column:0)+n[n.length-f.length].length-f[0].length:this.yylloc.first_column-h},this.options.ranges)this.yylloc.range=[O[0],O[0]+this.yyleng-h];return this.yyleng=this.yytext.length,this},"unput"),more:e(function(){return this._more=!0,this},"more"),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e(function(l){this.unput(this.match.slice(l))},"less"),pastInput:e(function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var l=this.match;if(l.length<20)l+=this._input.substr(0,20-l.length);return(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var l=this.pastInput(),h=Array(l.length+1).join("-");return l+this.upcomingInput()+`
|
|
5
|
+
`+h+"^"},"showPosition"),test_match:e(function(l,h){var f,n,O;if(this.options.backtrack_lexer){if(O={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)O.yylloc.range=this.yylloc.range.slice(0)}if(n=l[0].match(/(?:\r\n?|\n).*/g),n)this.yylineno+=n.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+l[0].length},this.yytext+=l[0],this.match+=l[0],this.matches=l,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(l[0].length),this.matched+=l[0],f=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(f)return f;else if(this._backtrack){for(var t in O)this[t]=O[t];return!1}return!1},"test_match"),next:e(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var l,h,f,n;if(!this._more)this.yytext="",this.match="";var O=this._currentRules();for(var t=0;t<O.length;t++)if(f=this._input.match(this.rules[O[t]]),f&&(!h||f[0].length>h[0].length)){if(h=f,n=t,this.options.backtrack_lexer)if(l=this.test_match(f,O[t]),l!==!1)return l;else if(this._backtrack){h=!1;continue}else return!1;else if(!this.options.flex)break}if(h){if(l=this.test_match(h,O[n]),l!==!1)return l;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:e(function(){var h=this.next();if(h)return h;else return this.lex()},"lex"),begin:e(function(h){this.conditionStack.push(h)},"begin"),popState:e(function(){var h=this.conditionStack.length-1;if(h>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:e(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:e(function(h){if(h=this.conditionStack.length-1-Math.abs(h||0),h>=0)return this.conditionStack[h];else return"INITIAL"},"topState"),pushState:e(function(h){this.begin(h)},"pushState"),stateStackSize:e(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:e(function(h,f,n,O){var t=O;switch(n){case 0:return this.begin("acc_title"),23;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),25;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 37;case 8:return 38;case 9:return 39;case 10:return 40;case 11:break;case 12:return 9;case 13:return 53;case 14:return 76;case 15:return 4;case 16:return this.begin("block"),16;break;case 17:return 52;case 18:return 52;case 19:return 45;case 20:return 14;case 21:return 12;case 22:break;case 23:return 65;case 24:return 61;case 25:return 61;case 26:this.begin("block_bq");break;case 27:return 61;case 28:this.popState();break;case 29:return 66;case 30:break;case 31:return this.popState(),18;break;case 32:return f.yytext[0];case 33:return 19;case 34:return 20;case 35:return this.begin("style"),47;break;case 36:return this.popState(),9;break;case 37:break;case 38:return 12;case 39:return 45;case 40:return 52;case 41:return this.begin("style"),41;break;case 42:return 46;case 43:return 34;case 44:return 33;case 45:return 69;case 46:return 71;case 47:return 71;case 48:return 71;case 49:return 69;case 50:return 69;case 51:return 70;case 52:return 70;case 53:return 70;case 54:return 70;case 55:return 70;case 56:return 71;case 57:return 70;case 58:return 71;case 59:return 72;case 60:return 72;case 61:return 54;case 62:return 72;case 63:return 72;case 64:return 72;case 65:return 55;case 66:return 51;case 67:return 72;case 68:return 69;case 69:return 70;case 70:return 71;case 71:return 73;case 72:return 74;case 73:return 75;case 74:return 75;case 75:return 74;case 76:return 74;case 77:return 74;case 78:return 44;case 79:return 50;case 80:return 43;case 81:return f.yytext[0];case 82:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[ \t\r]+)/i,/^(?:[\n]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\.,\u00C0-\uFFFF\*]*))/i,/^(?:[`])/i,/^(?:[^`]+)/i,/^(?:[`])/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:subgraph\b)/i,/^(?:end\b\s*)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[36,37,38,39,40,78,79],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block_bq:{rules:[27,28],inclusive:!1},block:{rules:[22,23,24,25,26,29,30,31,32],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,33,34,35,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,80,81,82],inclusive:!0}}};return q}();Me.lexer=rt;function Ne(){this.yy={}}return e(Ne,"Parser"),Ne.prototype=Me,Me.Parser=Ne,new Ne}();Ue.parser=Ue;var ct=Ue,ht=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.subgraphDepth=0,this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=S,this.getAccTitle=E,this.setAccDescription=T,this.getAccDescription=A,this.setDiagramTitle=I,this.getDiagramTitle=L,this.getConfig=e(()=>s().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this),this.addSubGraph=this.addSubGraph.bind(this)}static{e(this,"ErDB")}addEntity(i,c=""){if(!this.entities.has(i))this.entities.set(i,{id:`entity-${i}-${this.entities.size}`,label:i,attributes:[],alias:c,shape:"erBox",look:s().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),r.info("Added new entity :",i);else if(!this.entities.get(i)?.alias&&c)this.entities.get(i).alias=c,r.info(`Add alias '${c}' to entity '${i}'`);return this.entities.get(i)}getEntity(i){return this.entities.get(i)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(i,c){let b=this.addEntity(i),o;for(o=c.length-1;o>=0;o--){if(!c[o].keys)c[o].keys=[];if(!c[o].comment)c[o].comment="";b.attributes.push(c[o]),r.debug("Added attribute ",c[o].name)}}addRelationship(i,c,b,o){let u;if(this.subGraphLookup.has(i))u=i;else{let _=this.addEntity(i);if(!_)return;u=_.id}let g;if(this.subGraphLookup.has(b))g=b;else{let _=this.addEntity(b);if(!_)return;g=_.id}let R={entityA:u,roleA:c,entityB:g,relSpec:o};this.relationships.push(R),r.debug("Added new relationship :",R)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(i){this.direction=i}getCompiledStyles(i){let c=[];for(let b of i){let o=this.classes.get(b);if(o?.styles)c=[...c,...o.styles??[]].map((u)=>u.trim());if(o?.textStyles)c=[...c,...o.textStyles??[]].map((u)=>u.trim())}return c}addCssStyles(i,c){for(let b of i){let o=this.entities.get(b),u=this.subGraphLookup.get(b);if(!c)continue;if(o)for(let g of c)o.cssStyles.push(g);if(u){if(!u.cssStyles)u.cssStyles=[];for(let g of c)u.cssStyles.push(g)}}}addClass(i,c){i.forEach((b)=>{let o=this.classes.get(b);if(o===void 0)o={id:b,styles:[],textStyles:[]},this.classes.set(b,o);if(c)c.forEach(function(u){if(/color/.exec(u)){let g=u.replace("fill","bgFill");o.textStyles.push(g)}o.styles.push(u)})})}addSubGraph(i,c,b){let o=i.text.trim(),u=b.text,R=e((m)=>{let B=new Set,W;return{nodeList:m.filter((D)=>{if(D?.stmt){if(D.stmt==="dir")W=D.value;return!1}if(typeof D!=="string")return!1;let Y=D.trim();if(!Y)return!1;if(B.has(Y))return!1;return B.add(Y),!0}),dir:W}},"uniq")(c.flat()),{nodeList:_,dir:v}=R;o=o??"subGraph"+this.subCount,u=u||"",u=this.sanitizeText(u),this.subCount=this.subCount+1;let k={id:o,nodes:_,title:u.trim(),classes:[],cssStyles:[],dir:v,labelType:this.sanitizeNodeLabelType(b?.type)};return r.info("Adding",k.id,k.nodes,k.dir),k.nodes=this.makeUniq(k,this.subGraphs).nodes,this.subGraphs.push(k),this.subGraphLookup.set(o,k),o}getSubGraphs(){return this.subGraphs}setClass(i,c){for(let b of i){let o=this.entities.get(b);if(o)for(let g of c)o.cssClasses+=" "+g;let u=this.subGraphLookup.get(b);if(u)for(let g of c)u.classes.push(g)}}subgraphNodeCache(i){let c=new Set;for(let b of i)for(let o of b.nodes)c.add(o);return c}makeUniq(i,c){let b=this.subgraphNodeCache(c),o=[];return i.nodes.forEach((u,g)=>{if(b.has(u))r.warn(`Entity '${u}' already belongs to another subgraph and will be ignored`);else o.push(i.nodes[g])}),{nodes:o}}sanitizeText(i){return y.sanitizeText(i,s())}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.subgraphDepth=0,C()}getData(){let i=[],c=[],b=s(),o=this.getSubGraphs(),u=new Map,g=new Map;for(let k=o.length-1;k>=0;k--){let m=o[k];if(m.nodes.length>0)g.set(m.id,!0);for(let B of m.nodes)u.set(B,m.id)}for(let k=o.length-1;k>=0;k--){let m=o[k];i.push({id:m.id,label:m.title,labelStyle:"",labelType:m.labelType,parentId:u.get(m.id),padding:8,cssCompiledStyles:this.getCompiledStyles(m.classes),cssStyles:m.cssStyles,cssClasses:m.classes.join(" "),shape:"rect",dir:m.dir,isGroup:!0,look:b.look})}let R=new Set(o.map((k)=>k.id)),_=0;for(let k of this.entities.keys()){if(R.has(k))continue;let m=this.entities.get(k);if(m)m.cssCompiledStyles=this.getCompiledStyles(m.cssClasses.split(" ")),m.colorIndex=_++,i.push({...m,parentId:u.get(k),isGroup:!1})}let v=0;for(let k of this.relationships){let m={id:Fe(k.entityA,k.entityB,{prefix:"id",counter:v++}),type:"normal",curve:"basis",start:k.entityA,end:k.entityB,label:k.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:k.relSpec.cardB.toLowerCase(),arrowTypeEnd:k.relSpec.cardA.toLowerCase(),pattern:k.relSpec.relType=="IDENTIFYING"?"solid":"dashed",look:b.look,labelType:"markdown"};c.push(m)}return{nodes:i,edges:c,other:{},config:b,direction:this.direction}}},it={};Yt(it,{draw:()=>ut});var ut=e(async function(i,c,b,o){r.info("REF0:"),r.info("Drawing er diagram (unified)",c);let{securityLevel:u,er:g,layout:R}=s(),_=o.db.getData(),v=fe(c,u);_.type=o.type,_.layoutAlgorithm=ge(R),_.config.flowchart.nodeSpacing=g?.nodeSpacing||140,_.config.flowchart.rankSpacing=g?.rankSpacing||80,_.direction=o.db.getDirection();let{config:k}=_,{look:m}=k;if(m==="neo")_.markers=["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"];else _.markers=["only_one","zero_or_one","one_or_more","zero_or_more"];_.diagramId=c,await he(_,v);let B=v.selectAll('[id*="-background"]');if(Array.from(B).length>0)B.each(function(){let X=p(this),Y=X.attr("id").replace("-background",""),te=v.select(`#${CSS.escape(Y)}`);if(!te.empty()){let G=te.attr("transform");X.attr("transform",G)}});let W=8;N.insertTitle(v,"erDiagramTitleText",g?.titleTopMargin??25,o.db.getDiagramTitle()),oe(v,W,"erDiagram",g?.useMaxWidth??!0)},"draw"),st=e((i,c)=>{let b=Pt,o=b(i,"r"),u=b(i,"g"),g=b(i,"b");return se(o,u,g,c)},"fade"),dt=e((i)=>{let{theme:c,bkgColorArray:b,borderColorArray:o}=i;if(!ae(c,o))return"";let u=ie(i.look),g=le(b),R="";for(let _=0;_<ft(o);_++){let v=o[_],k=g?`fill: ${b[_%b.length]};`:"";R+=`
|
|
7
|
+
|
|
8
|
+
[data-look="${u}"][data-color-id="color-${_}"].node path {
|
|
9
|
+
stroke: ${v};
|
|
10
|
+
${k}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
[data-look="${u}"][data-color-id="color-${_}"].node rect {
|
|
14
|
+
stroke: ${v};
|
|
15
|
+
${k}
|
|
16
|
+
}
|
|
17
|
+
`}return R},"genColor"),bt=e((i)=>{let{look:c,theme:b,erEdgeLabelBackground:o,strokeWidth:u}=i;return`
|
|
18
|
+
${dt(i)}
|
|
19
|
+
.entityBox {
|
|
20
|
+
fill: ${i.mainBkg};
|
|
21
|
+
stroke: ${i.nodeBorder};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.relationshipLabelBox {
|
|
25
|
+
fill: ${i.tertiaryColor};
|
|
26
|
+
opacity: 0.7;
|
|
27
|
+
background-color: ${i.tertiaryColor};
|
|
28
|
+
rect {
|
|
29
|
+
opacity: 0.5;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.labelBkg {
|
|
34
|
+
background-color: ${Xr.has(b)&&o?o:st(i.tertiaryColor,0.5)};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.edgeLabel {
|
|
38
|
+
background-color: ${Xr.has(b)&&o?o:i.edgeLabelBackground};
|
|
39
|
+
}
|
|
40
|
+
.edgeLabel .label rect {
|
|
41
|
+
fill: ${Xr.has(b)&&o?o:i.edgeLabelBackground};
|
|
42
|
+
}
|
|
43
|
+
.edgeLabel .label text {
|
|
44
|
+
fill: ${i.textColor};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.edgeLabel .label {
|
|
48
|
+
fill: ${i.nodeBorder};
|
|
49
|
+
font-size: 14px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.label {
|
|
53
|
+
font-family: ${i.fontFamily};
|
|
54
|
+
color: ${i.nodeTextColor||i.textColor};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.edge-pattern-dashed {
|
|
58
|
+
stroke-dasharray: 8,8;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.node rect,
|
|
62
|
+
.node circle,
|
|
63
|
+
.node ellipse,
|
|
64
|
+
.node polygon
|
|
65
|
+
{
|
|
66
|
+
fill: ${i.mainBkg};
|
|
67
|
+
stroke: ${i.nodeBorder};
|
|
68
|
+
stroke-width: ${c==="neo"?u:"1px"};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.relationshipLine {
|
|
72
|
+
stroke: ${i.lineColor};
|
|
73
|
+
stroke-width: ${c==="neo"?u:"1px"};
|
|
74
|
+
fill: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.marker {
|
|
78
|
+
fill: none !important;
|
|
79
|
+
stroke: ${i.lineColor} !important;
|
|
80
|
+
stroke-width: 1;
|
|
81
|
+
}
|
|
82
|
+
[data-look=neo].labelBkg {
|
|
83
|
+
background-color: ${st(i.tertiaryColor,0.5)};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.cluster rect {
|
|
87
|
+
fill: ${i.clusterBkg??i.mainBkg};
|
|
88
|
+
stroke: ${i.clusterBorder??i.nodeBorder};
|
|
89
|
+
stroke-width: 1px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.cluster text {
|
|
93
|
+
fill: ${i.titleColor??i.textColor};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.cluster-label text {
|
|
97
|
+
fill: ${i.titleColor??i.textColor};
|
|
98
|
+
}
|
|
99
|
+
`},"getStyles"),pt=bt,Vt={parser:ct,get db(){return new ht},renderer:it,styles:pt};export{Vt as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{wi}from"./chunk-gxn0bey7.js";export{wi as createPacketServices};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e,r}from"./chunk-jtwhjp20.js";import{K,Lt,It}from"./chunk-jvhmna7z.js";import{W}from"./chunk-e5rmr47n.js";import{ar,_t}from"./chunk-gxn0bey7.js";var i=ar().RailroadEbnf.parser.LangiumParser,o=e((t)=>{let n=t.alternatives.map(m);if(n.length===1)return n[0];return{type:"choice",alternatives:n}},"transformChoice"),m=e((t)=>{let n=t.elements.map(p);if(n.length===1)return n[0];return{type:"sequence",elements:n}},"transformSequence"),s=e((t)=>{switch(t.$type){case"EbnfTerminal":return{type:"terminal",value:t.value};case"EbnfNonTerminal":return{type:"nonterminal",name:t.name};case"EbnfSpecial":return{type:"special",text:t.text};case"EbnfGroup":return o(t.element);case"EbnfOptional":return{type:"optional",element:o(t.element)};case"EbnfRepetition":return{type:"repetition",element:o(t.element),min:0,max:1/0};default:throw Error(`Unsupported EBNF primary node: ${t.$type}`)}},"transformPrimary"),l=e((t,n)=>{switch(n.$type){case"EbnfOptionalPostfix":return{type:"optional",element:t};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:t,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:t,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[t,{type:"terminal",value:"-"},s(n.except)]};default:throw Error(`Unsupported EBNF postfix node: ${n.$type}`)}},"transformPostfix"),p=e((t)=>t.postfixes.reduce((n,a)=>l(n,a),s(t.base)),"transformTerm"),f=e((t)=>({name:t.name,definition:o(t.definition)}),"transformRule"),u=e((t)=>{if(W(t,K),t.title)K.setTitle(t.title);t.rules.map((n)=>K.addRule(f(n)))},"populateDb"),c={parse:e((t)=>{K.clear(),r.debug("[EBNF Parser] Starting Langium parse");let n=i.parse(t);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new _t(n);let a=n.value;r.debug("[EBNF Parser] Parsed rules:",a.rules.length),u(a),r.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:K}},x={parser:c,db:K,renderer:It,styles:Lt};export{x as diagram};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{h,o,g,i,a,v,t,n,_,yt}from"./chunk-32ezm0ry.js";var U="__chat__";function T(s){if(!Number.isFinite(s)||s<=0)return"0";if(s<1000)return Math.round(s).toString();if(s<1e6)return`${(s/1000).toFixed(1)}K`;if(s<1e9)return`${(s/1e6).toFixed(2)}M`;return`${(s/1e9).toFixed(2)}B`}function B(s){let c=Number.isFinite(s)?Math.max(0,s):0;return Math.round(c).toLocaleString("en-US")}function P(s){if(!Number.isFinite(s)||s<=0)return"0s";if(s<1000)return"<1s";if(s<60000)return`${Math.floor(s/1000)}s`;if(s<3600000){let u=Math.floor(s/1000),e=Math.floor(u/60),d=u%60;return d>0?`${e}m ${d}s`:`${e}m`}if(s<259200000){let u=Math.floor(s/60000),e=Math.floor(u/60),d=u%60;return d>0?`${e}h ${d}m`:`${e}h`}let c=Math.floor(s/3600000),x=Math.floor(c/24),p=c%24;return p>0?`${x}d ${p}h`:`${x}d`}function X(s){if(!Number.isFinite(s)||s<=0)return"0s";if(s<1000)return"<1s";if(s<60000)return`${Math.round(s/1000)}s`;if(s<3600000)return`${Math.round(s/60000)}m`;if(s<86400000){let p=s/3600000;return`${p>=10?Math.round(p).toString():p.toFixed(1).replace(/\.0$/,"")}h`}let c=s/86400000;return`${c>=10?Math.round(c).toString():c.toFixed(1).replace(/\.0$/,"")}d`}function L(s,c=1){if(!Number.isFinite(s)||s<=0)return"0%";let x=10**-c/100;if(s<x)return`<${(x*100).toFixed(c)}%`;return`${(s*100).toFixed(c)}%`}function K(s){if(!Number.isFinite(s)||s<=0)return"0 B";if(s<1024)return`${Math.round(s)} B`;if(s<1048576)return`${(s/1024).toFixed(1)} KB`;if(s<1073741824)return`${(s/1048576).toFixed(2)} MB`;return`${(s/1073741824).toFixed(2)} GB`}function G(s){let c=s.split("-"),x=c[1],p=c[2];if(x!==void 0&&p!==void 0)return`${x}/${p}`;return s}function Y(s){let c=s.split("-"),x=c[0],p=c[1],u=c[2];if(x===void 0||p===void 0||u===void 0)return s;let e=Number(x),d=Number(p)-1,b=Number(u),w=new Date(Date.UTC(e,d,b)),R=["周日","周一","周二","周三","周四","周五","周六"],M=w.getUTCDay(),F=R[M]??"";return`${s} ${F}`}function ee(s,c=Date.now()){if(s===null||s===void 0||!Number.isFinite(s)||s<=0)return"从未";let x=Math.max(0,c-s);if(x<60000)return"刚刚";if(x<3600000)return`${Math.max(1,Math.floor(x/60000))} 分钟前`;if(x<86400000)return`${Math.max(1,Math.floor(x/3600000))} 小时前`;if(x<2592000000)return`${Math.max(1,Math.floor(x/86400000))} 天前`;let p=new Date(s),u=p.getFullYear(),e=String(p.getMonth()+1).padStart(2,"0"),d=String(p.getDate()).padStart(2,"0");return`${u}-${e}-${d}`}function te(s){let{projects:c,selectedProjectID:x,onSelectProject:p}=s,{style:u}=_();if(c.length===0)return t("div",{className:u("surface.empty"),children:"暂无项目统计数据"});return t("div",{className:"divide-y divide-line",children:c.map((e)=>{let d=e.projectID??U,b=x===d,w=Math.max(e.tokenShare>0?1:0,e.tokenShare*100);return n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 items-center gap-2",children:[t("span",{className:"font-medium text-sm text-ink truncate",children:e.name}),t("span",{className:u("control.badge","font-mono truncate max-w-[240px]"),title:e.directory||"未绑定项目目录",children:e.directory||"独立会话"}),t("button",{type:"button",onClick:()=>p(b?null:d),className:"rounded px-1.5 py-0.5 text-[11px] text-accent hover:bg-accent/10 transition-colors cursor-pointer shrink-0",children:b?"取消筛选":"筛选"})]}),n("div",{className:"flex items-baseline gap-1.5 font-mono tabular-nums shrink-0",children:[t("span",{className:"text-xs font-medium text-ink",title:B(e.totalTokens),children:T(e.totalTokens)}),n("span",{className:"text-[11px] text-faint",children:["(",L(e.tokenShare),")"]})]})]}),t("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-raised",children:t("div",{className:"h-full rounded-full bg-accent transition-all duration-300",style:{width:`${w}%`}})}),n("div",{className:"flex flex-wrap items-center justify-between gap-x-4 gap-y-1 font-mono text-[11px] text-dim tabular-nums",children:[n("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n("span",{children:["输入 ",t("span",{className:"text-ink",children:T(e.inputTokens)})]}),n("span",{children:["输出 ",t("span",{className:"text-ink",children:T(e.outputTokens)})]}),n("span",{children:["缓存读 ",t("span",{className:"text-ink",children:T(e.cacheReadTokens)}),n("span",{className:"text-faint",children:[" (",L(e.cacheHitRate),")"]})]})]}),n("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n("span",{children:["耗时 ",t("span",{className:"text-ink",children:P(e.activeDurationMs)})]}),n("span",{children:[t("span",{className:"text-ink",children:e.sessionCount.toLocaleString()})," 会话"]}),n("span",{children:["工具 ",t("span",{className:"text-ink",children:e.toolCalls.toLocaleString()})," 次"]})]})]})]},d)})})}function ae(s){let{models:c}=s,{ModelIcon:x,style:p}=_();if(c.length===0)return t("div",{className:p("surface.empty"),children:"暂无模型调用数据"});return t("div",{className:"divide-y divide-line",children:c.map((u)=>{let e=Math.max(u.share>0?1:0,u.share*100);return n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 items-center gap-2",children:[t(x,{modelID:u.model,className:"size-4 shrink-0"}),t("span",{className:"font-mono text-sm font-medium text-ink truncate",children:u.shortName}),t("span",{className:p("control.badge","font-mono shrink-0"),children:u.provider})]}),n("div",{className:"flex items-baseline gap-2.5 font-mono tabular-nums shrink-0",children:[u.avgTps!==null&&n("span",{className:"text-[11px] text-dim",children:[u.avgTps.toFixed(1)," tok/s"]}),n("span",{className:"text-xs font-medium text-ink",title:B(u.totalTokens),children:[T(u.totalTokens)," ",n("span",{className:"text-[11px] font-normal text-faint",children:["(",L(u.share),")"]})]})]})]}),t("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-raised",children:t("div",{className:"h-full rounded-full bg-accent transition-all duration-300",style:{width:`${e}%`}})}),n("div",{className:"flex flex-wrap items-center justify-between gap-x-4 gap-y-1 font-mono text-[11px] text-dim tabular-nums",children:[n("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n("span",{children:["输入 ",t("span",{className:"text-ink",children:T(u.inputTokens)})]}),n("span",{children:["输出 ",t("span",{className:"text-ink",children:T(u.outputTokens)})]}),n("span",{children:["缓存读 ",t("span",{className:"text-ink",children:T(u.cacheReadTokens)}),n("span",{className:"text-faint",children:[" (",L(u.cacheHitRate),")"]})]})]}),n("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n("span",{children:[t("span",{className:"text-ink",children:u.turns.toLocaleString()})," 轮",u.errors>0?n("span",{className:"text-danger",children:[" (",u.errors," 错)"]}):null]}),n("span",{children:["工具 ",t("span",{className:"text-ink",children:u.toolCalls.toLocaleString()})," 次"]}),u.generationMs>0&&n("span",{children:["推理 ",t("span",{className:"text-ink",children:X(u.generationMs)})]})]})]})]},u.model)})})}function ne(s){let{tools:c}=s,{StatusChip:x,style:p}=_();if(c.length===0)return t("div",{className:p("surface.empty"),children:"暂无工具调用数据"});return t("div",{className:"divide-y divide-line",children:c.map((u)=>{let e=Math.max(u.share>0?1:0,u.share*100),d=u.successRate>=0.95?"success":u.successRate>=0.8?"warning":"danger",b=Math.max(0,u.calls-u.errors),w=u.calls>0?Math.round(u.outputBytes/u.calls):0;return n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 items-center gap-2",children:[t("span",{className:"font-mono text-sm font-medium text-ink truncate",children:u.name}),n(x,{tone:d,children:["成功率 ",L(u.successRate)]})]}),n("div",{className:"flex items-baseline gap-1.5 font-mono tabular-nums shrink-0",children:[n("span",{className:"text-xs font-medium text-ink",children:[u.calls.toLocaleString()," 次"]}),n("span",{className:"text-[11px] text-faint",children:["(",L(u.share),")"]})]})]}),t("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-raised",children:t("div",{className:"h-full rounded-full bg-accent transition-all duration-300",style:{width:`${e}%`}})}),n("div",{className:"flex flex-wrap items-center justify-between gap-x-4 gap-y-1 font-mono text-[11px] text-dim tabular-nums",children:[n("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n("span",{children:["成功 ",t("span",{className:"text-ink",children:b.toLocaleString()})," 次"]}),n("span",{children:["失败 ",t("span",{className:u.errors>0?"text-danger":"text-ink",children:u.errors.toLocaleString()})," 次"]})]}),n("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n("span",{children:["累计输出 ",t("span",{className:"text-ink",children:K(u.outputBytes)})]}),n("span",{children:["单次均值 ",t("span",{className:"text-ink",children:K(w)})]})]})]})]},u.name)})})}function se(s){let{sessions:c,onOpenSession:x}=s,{style:p}=_();if(c.length===0)return t("div",{className:p("surface.empty"),children:"暂无高消耗会话记录"});let u=Math.max(1,...c.map((e)=>e.totalTokens));return t("div",{className:"divide-y divide-line",children:c.map((e)=>{let d=u>0?Math.max(1,e.totalTokens/u*100):0,b=e.model.split("/").pop()??e.model;return n("button",{type:"button",onClick:()=>x(e.id),className:"group block w-full p-4 text-left space-y-2.5 hover:bg-raised/40 transition-colors cursor-pointer",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[t("span",{className:"font-medium text-sm text-ink truncate group-hover:text-accent transition-colors",children:e.title.trim()||"新会话"}),t("span",{className:p("control.badge","font-mono truncate max-w-[140px] shrink-0"),title:e.projectName,children:e.projectName}),e.kind==="sub"&&t("span",{className:"rounded bg-accent/15 px-1.5 py-0.5 text-[10.5px] text-accent shrink-0",children:"子代理"}),e.archivedAt!==null&&t("span",{className:p("control.badge","shrink-0"),children:"已归档"})]}),n("div",{className:"flex items-center gap-1.5 font-mono tabular-nums shrink-0",children:[t("span",{className:"text-xs font-medium text-ink",title:B(e.totalTokens),children:T(e.totalTokens)}),t(yt,{className:"size-3.5 text-faint group-hover:text-ink group-hover:translate-x-0.5 transition-all"})]})]}),t("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-raised",children:t("div",{className:"h-full rounded-full bg-accent transition-all duration-300",style:{width:`${d}%`}})}),n("div",{className:"flex flex-wrap items-center justify-between gap-x-4 gap-y-1 font-mono text-[11px] text-dim tabular-nums",children:[n("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n("span",{children:["输入 ",t("span",{className:"text-ink",children:T(e.inputTokens)})]}),n("span",{children:["输出 ",t("span",{className:"text-ink",children:T(e.outputTokens)})]}),n("span",{children:["缓存读 ",t("span",{className:"text-ink",children:T(e.cacheReadTokens)})]})]}),n("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[t("span",{className:"text-ink",children:b}),n("span",{children:["耗时 ",t("span",{className:"text-ink",children:P(e.activeDurationMs)})]}),n("span",{children:[t("span",{className:"text-ink",children:e.assistantTurns})," 轮"]}),t("span",{className:"text-faint",children:ee(e.updated)})]})]})]},e.id)})})}var oe=[{value:"tokens",label:"Token 用量"},{value:"duration",label:"活跃耗时"},{value:"activity",label:"交互轮次"}];function re(s){let{cn:c,Segmented:x,SettingGroup:p,style:u}=_(),{daily:e}=s,[d,b]=a("tokens"),[w,R]=a(null),M=g(()=>e.some((r)=>r.totalTokens>0||r.activeDurationMs>0||r.runs>0),[e]),F=g(()=>{if(e.length===0)return{totalText:"0",avgText:"0",peakDate:"—",peakValueText:"0"};if(d==="tokens"){let S=e.reduce((C,I)=>C+I.totalTokens,0),j=e.filter((C)=>C.totalTokens>0).length,y=e[0];for(let C of e)if(!y||C.totalTokens>y.totalTokens)y=C;return{totalText:T(S),totalFullText:B(S),avgText:j>0?T(Math.round(S/j)):"0",peakDate:y&&y.totalTokens>0?G(y.date):"—",peakValueText:y&&y.totalTokens>0?T(y.totalTokens):"0"}}if(d==="duration"){let S=e.reduce((C,I)=>C+I.activeDurationMs,0),j=e.filter((C)=>C.activeDurationMs>0).length,y=e[0];for(let C of e)if(!y||C.activeDurationMs>y.activeDurationMs)y=C;return{totalText:P(S),totalFullText:P(S),avgText:j>0?P(Math.round(S/j)):"0s",peakDate:y&&y.activeDurationMs>0?G(y.date):"—",peakValueText:y&&y.activeDurationMs>0?P(y.activeDurationMs):"0s"}}let r=e.reduce((S,j)=>S+j.assistantTurns,0),l=e.reduce((S,j)=>S+j.userMessages,0),f=r+l,N=e.filter((S)=>S.assistantTurns>0||S.userMessages>0).length,k=e[0];for(let S of e){let j=k?k.assistantTurns+k.userMessages:0;if(!k||S.assistantTurns+S.userMessages>j)k=S}let A=k?k.assistantTurns+k.userMessages:0;return{totalText:`${f.toLocaleString()} 轮`,totalFullText:`助手 ${r.toLocaleString()} 轮 · 用户 ${l.toLocaleString()} 问`,avgText:N>0?`${(f/N).toFixed(1)} 轮/天`:"0 轮/天",peakDate:k&&A>0?G(k.date):"—",peakValueText:k&&A>0?`${A.toLocaleString()} 轮`:"0 轮"}},[e,d]),D=g(()=>{if(w){let r=e.find((l)=>l.date===w);if(r)return r}for(let r=e.length-1;r>=0;r--){let l=e[r];if(l&&(l.totalTokens>0||l.activeDurationMs>0||l.runs>0))return l}return e[e.length-1]},[e,w]),z=g(()=>{if(d==="tokens")return Math.max(1,...e.map((r)=>r.totalTokens));if(d==="duration")return Math.max(1000,...e.map((r)=>r.activeDurationMs));return Math.max(1,...e.map((r)=>r.assistantTurns+r.userMessages))},[e,d]),m=g(()=>{if(e.length<=7)return e.map((f)=>f.date);let r=6,l=[];for(let f=0;f<r;f++){let N=Math.round(f*(e.length-1)/(r-1)),k=e[N];if(k)l.push(k.date)}return l},[e]);if(!M)return t(p,{title:"每日趋势",action:t(x,{value:d,onChange:(r)=>b(r),options:oe}),children:t("div",{className:u("surface.empty"),children:"当前时间范围内暂无活跃数据"})});return t(p,{title:"每日趋势",action:t(x,{value:d,onChange:(r)=>b(r),options:oe}),children:n("div",{className:"p-4 space-y-4",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex flex-wrap items-center gap-x-3.5 gap-y-1 font-mono text-dim tabular-nums",children:[n("span",{children:["汇总 ",t("span",{className:"text-ink",children:F.totalText})]}),n("span",{children:["日均 ",t("span",{className:"text-ink",children:F.avgText})]}),n("span",{children:["峰值 ",t("span",{className:"text-ink",children:F.peakValueText}),F.peakDate!=="—"?n("span",{className:"text-faint",children:[" (",F.peakDate,")"]}):null]})]}),n("div",{className:"flex items-center gap-3 text-[11px] text-dim",children:[d==="tokens"&&n(v,{children:[n("span",{className:"inline-flex items-center gap-1.5",children:[t("span",{className:"size-2 rounded-full bg-accent/40"}),"缓存读"]}),n("span",{className:"inline-flex items-center gap-1.5",children:[t("span",{className:"size-2 rounded-full bg-accent"}),"输入"]}),n("span",{className:"inline-flex items-center gap-1.5",children:[t("span",{className:"size-2 rounded-full bg-success"}),"输出"]})]}),d==="duration"&&n(v,{children:[n("span",{className:"inline-flex items-center gap-1.5",children:[t("span",{className:"size-2 rounded-full bg-accent"}),"工作调度"]}),n("span",{className:"inline-flex items-center gap-1.5",children:[t("span",{className:"size-2 rounded-full bg-success"}),"模型推理"]})]}),d==="activity"&&n(v,{children:[n("span",{className:"inline-flex items-center gap-1.5",children:[t("span",{className:"size-2 rounded-full bg-accent"}),"助手回复"]}),n("span",{className:"inline-flex items-center gap-1.5",children:[t("span",{className:"size-2 rounded-full bg-success"}),"用户提问"]})]})]})]}),n("div",{className:"relative h-44 w-full pt-1",children:[n("div",{className:"absolute inset-0 flex flex-col justify-between pointer-events-none pb-5 text-[10px] text-faint/60",children:[t("div",{className:"border-b border-line/40 w-full"}),t("div",{className:"border-b border-line/30 w-full"}),t("div",{className:"border-b border-line/40 w-full"})]}),n("section",{"aria-label":"每日趋势柱状序列",className:"relative h-full flex flex-col justify-between",onMouseLeave:()=>R(null),children:[t("div",{className:"flex-1 flex items-end gap-1 sm:gap-1.5 pb-2",children:e.map((r)=>{let l=r.totalTokens;if(d==="duration")l=r.activeDurationMs;else if(d==="activity")l=r.assistantTurns+r.userMessages;let f=l<=0,N=f?0:Math.max(3,Math.min(100,l/z*100)),k=D?.date===r.date;return n("button",{type:"button","aria-label":`${r.date} 统计数据`,className:"flex-1 h-full flex flex-col justify-end items-center group cursor-pointer relative min-w-0 bg-transparent p-0 border-0 focus:outline-hidden",onMouseEnter:()=>R(r.date),onFocus:()=>R(r.date),onClick:()=>R(r.date),children:[t("div",{className:c("absolute inset-y-0 w-full rounded-xs transition-colors pointer-events-none",k?"bg-accent/10":"group-hover:bg-raised/60")}),f?t("div",{className:"h-1 w-full max-w-[24px] rounded-full bg-raised group-hover:bg-dim/30"}):n("div",{className:"w-full max-w-[24px] rounded-t-xs overflow-hidden flex flex-col justify-end transition-all duration-150",style:{height:`${N}%`},children:[d==="tokens"&&n(v,{children:[r.outputTokens>0&&t("div",{className:"bg-success transition-all duration-200",style:{height:`${r.outputTokens/r.totalTokens*100}%`}}),r.inputTokens+r.cacheWriteTokens>0&&t("div",{className:"bg-accent transition-all duration-200",style:{height:`${(r.inputTokens+r.cacheWriteTokens)/r.totalTokens*100}%`}}),r.cacheReadTokens>0&&t("div",{className:"bg-accent/40 transition-all duration-200",style:{height:`${r.cacheReadTokens/r.totalTokens*100}%`}})]}),d==="duration"&&n(v,{children:[r.generationMs>0&&t("div",{className:"bg-success transition-all duration-200",style:{height:`${Math.min(100,r.generationMs/Math.max(1,r.activeDurationMs)*100)}%`}}),t("div",{className:"bg-accent flex-1 transition-all duration-200"})]}),d==="activity"&&n(v,{children:[r.userMessages>0&&t("div",{className:"bg-success transition-all duration-200",style:{height:`${r.userMessages/Math.max(1,r.assistantTurns+r.userMessages)*100}%`}}),t("div",{className:"bg-accent flex-1 transition-all duration-200"})]})]}),k&&t("div",{className:"absolute -bottom-1 size-1 rounded-full bg-accent"})]},r.date)})}),t("div",{className:c("flex items-center pt-1.5 text-[10px] text-faint font-mono tabular-nums",e.length<=7?"gap-1 sm:gap-1.5":"justify-between"),children:m.map((r)=>t("div",{className:c("whitespace-nowrap",e.length<=7&&"flex-1 text-center"),children:G(r)},r))})]})]}),t("div",{className:"flex flex-wrap items-center justify-between gap-2 border-t border-line pt-3 font-mono text-xs tabular-nums",children:D?n(v,{children:[t("span",{className:"text-ink",children:Y(D.date)}),n("div",{className:"flex flex-wrap items-center gap-x-3.5 gap-y-1 text-dim",children:[n("span",{children:["Token ",t("span",{className:"text-ink",children:T(D.totalTokens)})]}),n("span",{children:["耗时 ",t("span",{className:"text-ink",children:P(D.activeDurationMs)})]}),n("span",{children:["交互 ",n("span",{className:"text-ink",children:[D.assistantTurns+D.userMessages," 轮"]})]}),n("span",{children:["工具 ",n("span",{className:"text-ink",children:[D.toolCalls," 次"]})]})]})]}):t("span",{className:"font-sans text-faint",children:"悬停柱状图查看单日明细"})})]})})}function ie(s){let{cn:c,SettingGroup:x}=_(),{daily:p,hourly:u}=s,[e,d]=a(null),b=g(()=>{let l=new Map;for(let N of u)l.set(N.hour,N);let f=[];for(let N=0;N<24;N++){let k=l.get(N);if(k)f.push(k);else f.push({hour:N,totalTokens:0,activeDurationMs:0,userMessages:0,assistantTurns:0,runs:0})}return f},[u]),w=g(()=>{let l=b[0];for(let f of b)if(!l||f.totalTokens>l.totalTokens)l=f;return l&&l.totalTokens>0?l:null},[b]),R=g(()=>b.reduce((l,f)=>l+f.totalTokens,0),[b]),M=g(()=>Math.max(1,...b.map((l)=>l.totalTokens)),[b]),F=g(()=>{if(R<=0)return 0;return b.filter((f)=>f.hour>=8&&f.hour<20).reduce((f,N)=>f+N.totalTokens,0)/R},[b,R]),D=g(()=>Math.max(1,...p.map((l)=>l.totalTokens)),[p]),z=g(()=>{let l=0,f=0;for(let N of p)if(N.totalTokens>0||N.activeDurationMs>0||N.runs>0){if(f++,f>l)l=f}else f=0;return l},[p]),m=g(()=>p.filter((l)=>l.totalTokens>0||l.activeDurationMs>0||l.runs>0).length,[p]),r=e!==null?b[e]:w;return n(x,{title:"活跃时段与热力",action:n("div",{className:"flex items-center gap-3 font-mono text-xs text-faint tabular-nums",children:[n("span",{children:["日间占比 ",L(F)]}),n("span",{children:["连续活跃 ",z," 天"]}),n("span",{children:["活跃 ",m,"/",p.length," 天"]})]}),children:[n("div",{className:"p-4 space-y-3",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[t("span",{className:"text-dim",children:"24 小时分布"}),r?n("div",{className:"flex items-center gap-3 font-mono text-dim tabular-nums",children:[n("span",{className:"text-ink",children:[e!==null?"时段 ":"高峰 ",String(r.hour).padStart(2,"0"),":00 -"," ",String((r.hour+1)%24).padStart(2,"0"),":00"]}),t("span",{className:"text-ink",children:T(r.totalTokens)}),r.activeDurationMs>0&&t("span",{children:P(r.activeDurationMs)})]}):t("span",{className:"text-faint",children:"暂无时段分布"})]}),n("section",{"aria-label":"24 小时活跃分布序列",className:"h-28 w-full flex flex-col justify-between pt-1",onMouseLeave:()=>d(null),children:[t("div",{className:"flex-1 flex items-end gap-1.5 pb-1.5",children:b.map((l)=>{let f=w?.hour===l.hour,N=e===l.hour,k=l.totalTokens>0?Math.max(6,l.totalTokens/M*100):0,A=`${String(l.hour).padStart(2,"0")}:00 - ${String((l.hour+1)%24).padStart(2,"0")}:00
|
|
2
|
+
消耗: ${B(l.totalTokens)} Token
|
|
3
|
+
耗时: ${P(l.activeDurationMs)}
|
|
4
|
+
助手轮次: ${l.assistantTurns} 轮`;return t("button",{type:"button","aria-label":`${String(l.hour).padStart(2,"0")}:00 时段统计`,className:"flex-1 h-full flex flex-col justify-end items-center group relative cursor-pointer bg-transparent p-0 border-0 focus:outline-hidden",title:A,onMouseEnter:()=>d(l.hour),onFocus:()=>d(l.hour),onClick:()=>d(l.hour),children:k>0?t("div",{className:c("w-full max-w-[20px] rounded-t-xs transition-all duration-200",f||N?"bg-accent":"bg-accent/55 group-hover:bg-accent"),style:{height:`${k}%`}}):t("div",{className:"h-1 w-full max-w-[20px] rounded-full bg-raised group-hover:bg-dim/30"})},l.hour)})}),n("div",{className:"flex justify-between items-center text-[10px] text-faint font-mono pt-1.5 border-t border-line/40",children:[t("span",{children:"00:00"}),t("span",{children:"04:00"}),t("span",{children:"08:00"}),t("span",{children:"12:00"}),t("span",{children:"16:00"}),t("span",{children:"20:00"}),t("span",{children:"23:00"})]})]})]}),n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"text-xs text-dim",children:["自然日热力 (",p.length," 天)"]}),t("div",{className:"flex flex-wrap items-center gap-1.5",children:p.map((l)=>{let f="bg-raised";if(l.totalTokens>0){let k=l.totalTokens/D;if(k<=0.33)f="bg-accent/30";else if(k<=0.66)f="bg-accent/60";else f="bg-accent"}let N=`${Y(l.date)}
|
|
5
|
+
消耗: ${B(l.totalTokens)} Token
|
|
6
|
+
耗时: ${P(l.activeDurationMs)}
|
|
7
|
+
助手轮次: ${l.assistantTurns} 轮`;return t("div",{className:c("size-3.5 rounded-xs transition-transform hover:scale-125 cursor-pointer",f),title:N},l.date)})})]})]})}var pe=[{value:"7d",label:"近 7 天"},{value:"30d",label:"近 30 天"},{value:"90d",label:"近 90 天"},{value:"all",label:"全部"}],V=new Map,le=[];function q(s,c){return`${s}:${c??"all"}`}function _e(s){let{connection:c,onOpen:x}=s,{Button:p,PageLayout:u,Segmented:e,SettingGroup:d,style:b}=_(),[w,R]=a("30d"),[M,F]=a(null),[D,z]=a("projects"),[m,r]=a(()=>V.get(q("30d",null))??null),[l,f]=a(()=>!V.has(q("30d",null))),[N,k]=a(null),[A,S]=a(()=>le),j=i(0),y=h(async()=>{let I=++j.current,O=q(w,M),Q=V.get(O);if(Q)r(Q);f(!0);try{let E=new URLSearchParams({range:w,tzOffset:String(new Date().getTimezoneOffset())});if(M)E.set("projectID",M);let W=await c.request(`/api/stats?${E.toString()}`);if(I!==j.current)return;if(V.set(O,W),r(W),k(null),W.projects)S((ue)=>{let Z=new Map(ue.map((H)=>[H.id,H.name]));for(let H of W.projects)if(H.projectID)Z.set(H.projectID,H.name);let J=Array.from(Z.entries()).map(([H,ce])=>({id:H,name:ce}));return le=J,J})}catch(E){if(I===j.current)k(E instanceof Error?E.message:"加载统计数据失败")}finally{if(I===j.current)f(!1)}},[c,w,M]);o(()=>(y(),()=>{j.current++}),[y]);let C=g(()=>{if(!M)return null;if(M===U)return"独立聊天";return(A.find((O)=>O.id===M)??m?.projects.find((O)=>O.projectID===M))?.name??"指定项目"},[M,A,m]);return n(u,{title:C?n(v,{children:["统计 ",n("span",{className:"text-dim",children:["· ",C]})]}):"统计",description:"按项目、模型与工具统计活跃耗时与 Token 消耗。",actions:n(v,{children:[M&&t(p,{size:"sm",variant:"ghost",onClick:()=>F(null),children:"返回全部"}),t(e,{value:w,onChange:R,options:pe})]}),children:[N&&n("div",{className:"mb-4 flex items-center justify-between rounded-lg bg-danger/10 px-3 py-2 text-xs text-danger",children:[t("span",{children:N}),t(p,{size:"sm",variant:"ghost",onClick:()=>{y()},className:"text-danger hover:text-danger",children:"重试"})]}),l&&!m?t("div",{className:"flex justify-center py-12 text-xs text-faint",children:"正在加载统计…"}):!m?t("div",{className:b("surface.card","p-12 text-center text-sm text-dim"),children:"暂无统计数据"}):n("div",{className:"space-y-8",children:[t(d,{title:"核心总览",unboxed:!0,children:n("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[n("div",{className:b("surface.card","p-4"),children:[n("div",{className:"flex items-center justify-between gap-2 text-xs text-faint",children:[t("span",{children:"总 Token 消耗"}),n("span",{className:"font-mono tabular-nums",children:["缓存命中 ",L(m.overview.cacheHitRate)]})]}),t("div",{className:"mt-1.5 font-mono text-xl font-semibold tracking-tight text-ink tabular-nums",title:`${B(m.overview.totalTokens)} Token`,children:T(m.overview.totalTokens)}),n("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 font-mono text-[11px] text-dim tabular-nums",children:[n("span",{children:["输入 ",T(m.overview.inputTokens)]}),n("span",{children:["输出 ",T(m.overview.outputTokens)]}),n("span",{children:["缓存读 ",T(m.overview.cacheReadTokens)]})]})]}),n("div",{className:b("surface.card","p-4"),children:[n("div",{className:"flex items-center justify-between gap-2 text-xs text-faint",children:[t("span",{children:"活跃工作耗时"}),n("span",{className:"font-mono tabular-nums",children:["日均"," ",m.overview.activeDays>0?P(m.overview.activeDurationMs/m.overview.activeDays):"0s"]})]}),t("div",{className:"mt-1.5 font-mono text-xl font-semibold tracking-tight text-ink tabular-nums",children:P(m.overview.activeDurationMs)}),n("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 font-mono text-[11px] text-dim tabular-nums",children:[n("span",{children:["模型推理 ",P(m.overview.generationMs)]}),n("span",{children:["并发累计 ",P(m.overview.cumulativeRunDurationMs)]})]})]}),n("div",{className:b("surface.card","p-4"),children:[n("div",{className:"flex items-center justify-between gap-2 text-xs text-faint",children:[t("span",{children:"会话与工作流"}),n("span",{className:"font-mono tabular-nums",children:[m.overview.activeProjects,"/",m.overview.totalProjects," 活跃项目"]})]}),n("div",{className:"mt-1.5 font-mono text-xl font-semibold tracking-tight text-ink tabular-nums",children:[m.overview.sessionCount.toLocaleString()," 个会话"]}),n("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 font-mono text-[11px] text-dim tabular-nums",children:[n("span",{children:[m.overview.mainSessionCount," 主会话 / ",m.overview.subSessionCount," 子代理"]}),n("span",{children:[m.overview.userMessages," 提问 / ",m.overview.assistantTurns," 回复"]})]})]}),n("div",{className:b("surface.card","p-4"),children:[n("div",{className:"flex items-center justify-between gap-2 text-xs text-faint",children:[t("span",{children:"吞吐效率与调用"}),n("span",{className:"font-mono tabular-nums",children:[m.overview.compactions," 次折叠"]})]}),t("div",{className:"mt-1.5 font-mono text-xl font-semibold tracking-tight text-ink tabular-nums",children:m.overview.avgTps!==null?`${m.overview.avgTps.toFixed(1)} tok/s`:`${m.overview.toolCalls.toLocaleString()} 次调用`}),n("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 font-mono text-[11px] text-dim tabular-nums",children:[n("span",{children:[m.overview.toolCalls.toLocaleString()," 次工具调用"]}),n("span",{children:[m.overview.runCount.toLocaleString()," 次运行"]})]})]})]})}),t(re,{daily:m.daily}),t(ie,{daily:m.daily,hourly:m.hourly}),t(d,{title:"分类明细",action:t(e,{value:D,onChange:z,options:[{value:"projects",label:`项目消耗 (${m.projects.length})`},{value:"models",label:`模型分析 (${m.models.length})`},{value:"tools",label:`工具调用 (${m.tools.length})`},{value:"sessions",label:`高消耗会话 (${m.topSessions.length})`}]}),children:n("div",{className:"animate-fade",children:[D==="projects"&&t(te,{projects:m.projects,selectedProjectID:M,onSelectProject:F,onOpenSession:x}),D==="models"&&t(ae,{models:m.models}),D==="tools"&&t(ne,{tools:m.tools}),D==="sessions"&&t(se,{sessions:m.topSessions,onOpenSession:x})]},D)})]})]})}export{_e as StatsPage};
|