orbitchat 2.2.0 → 2.2.2
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/bin/orbitchat.js +1 -1
- package/dist/assets/{api-iWGWe9XZ.js → api-BL5q6VW7.js} +1 -1
- package/dist/assets/{arc-m8RC5oDD-DxtXpPlf.js → arc-m8RC5oDD-D4A9YAA9.js} +1 -1
- package/dist/assets/{blockDiagram-c4efeb88-CZ2mpei3-B_3saIkQ.js → blockDiagram-c4efeb88-CZ2mpei3-CYL_iv2U.js} +1 -1
- package/dist/assets/{c4Diagram-c83219d4-DL2EmCLj-Dv5sdkpm.js → c4Diagram-c83219d4-DL2EmCLj-B4gUHYtt.js} +1 -1
- package/dist/assets/channel-BKp1WYnX-C2kiKBzQ.js +1 -0
- package/dist/assets/{classDiagram-beda092f-vKbJ2bcD-CpzCwdb3.js → classDiagram-beda092f-vKbJ2bcD-BMXovIhZ.js} +1 -1
- package/dist/assets/{classDiagram-v2-2358418a-BHXpn1Du-ClzQ61Pm.js → classDiagram-v2-2358418a-BHXpn1Du-DwZenavg.js} +1 -1
- package/dist/assets/clone-B1V2003j-TxzpTD1c.js +1 -0
- package/dist/assets/{createText-1719965b-C2-AT0ab-CWg8fDWo.js → createText-1719965b-C2-AT0ab-DdeHG0fk.js} +1 -1
- package/dist/assets/{edges-96097737-Zk-qG_8u-HnJhTil4.js → edges-96097737-Zk-qG_8u-DK7AVtHJ.js} +1 -1
- package/dist/assets/{erDiagram-0228fc6a-B94anMjz-ocfxI7NV.js → erDiagram-0228fc6a-B94anMjz-xRWCwRPA.js} +1 -1
- package/dist/assets/{flowDb-c6c81e3f-CRRW-bQO-G1WHNmUV.js → flowDb-c6c81e3f-CRRW-bQO-HITLukvy.js} +1 -1
- package/dist/assets/{flowDiagram-50d868cf-DPzQMhJv-DgwkjDqI.js → flowDiagram-50d868cf-DPzQMhJv-y9nG9CIA.js} +1 -1
- package/dist/assets/flowDiagram-v2-4f6560a1-Si9enBmB-BCb4fnW_.js +1 -0
- package/dist/assets/{flowchart-elk-definition-6af322e1-CULhtvD--GZ9ilB9C.js → flowchart-elk-definition-6af322e1-CULhtvD--CUVQv7kg.js} +1 -1
- package/dist/assets/{ganttDiagram-a2739b55-Bp8yOLEz-CqM7mRjt.js → ganttDiagram-a2739b55-Bp8yOLEz-YdeCiqmu.js} +1 -1
- package/dist/assets/{gitGraphDiagram-82fe8481-BYtOQJl0-C2naxeTp.js → gitGraphDiagram-82fe8481-BYtOQJl0-D4axJXqm.js} +1 -1
- package/dist/assets/{graph-BV6jB5rk-CELreG_k.js → graph-BV6jB5rk-CdEYXCfk.js} +1 -1
- package/dist/assets/{index-BaIhc-dj.js → index--DBVktm0.js} +6 -6
- package/dist/assets/{index-5325376f-DrY72DrM-CA0ZD5ej.js → index-5325376f-DrY72DrM-6JgEWzV-.js} +1 -1
- package/dist/assets/{index-DlFdZiHl-BkXTu13U.js → index-DlFdZiHl-DxtOvgee.js} +1 -1
- package/dist/assets/{infoDiagram-8eee0895-C6GFnrZ7-BhM7Tkvh.js → infoDiagram-8eee0895-C6GFnrZ7-BxKE5VSc.js} +1 -1
- package/dist/assets/{journeyDiagram-c64418c1-daS1W8qe-DipmPDM8.js → journeyDiagram-c64418c1-daS1W8qe-7OJNovrd.js} +1 -1
- package/dist/assets/{layout-LXMv3mSS-fzT-WsR4.js → layout-LXMv3mSS-DxzYqwJj.js} +1 -1
- package/dist/assets/{mindmap-definition-8da855dc-DmNQYVT1-BupnMO6G.js → mindmap-definition-8da855dc-DmNQYVT1-CgDdu9Gj.js} +1 -1
- package/dist/assets/{pieDiagram-a8764435-381urBY5-CJU6X8kv.js → pieDiagram-a8764435-381urBY5-CookJl9u.js} +1 -1
- package/dist/assets/{quadrantDiagram-1e28029f-hgRmK2bX-fzcWnYUM.js → quadrantDiagram-1e28029f-hgRmK2bX-DR13UrvZ.js} +1 -1
- package/dist/assets/{requirementDiagram-08caed73-BB0Q-cI9-CPFdXDhT.js → requirementDiagram-08caed73-BB0Q-cI9-1IJAPa7z.js} +1 -1
- package/dist/assets/{sankeyDiagram-a04cb91d-BpsipZNt-B3YPu4J8.js → sankeyDiagram-a04cb91d-BpsipZNt-DtHQcqU2.js} +1 -1
- package/dist/assets/{sequenceDiagram-c5b8d532-xoAvPcQJ-B9rDXSoA.js → sequenceDiagram-c5b8d532-xoAvPcQJ-DZK1k3_R.js} +1 -1
- package/dist/assets/{stateDiagram-1ecb1508-b721R49K-CWcqUIUo.js → stateDiagram-1ecb1508-b721R49K-LYtW3ekv.js} +1 -1
- package/dist/assets/{stateDiagram-v2-c2b004d7-BmSbrbqZ-DlbnZV5y.js → stateDiagram-v2-c2b004d7-BmSbrbqZ-DeX2v3BR.js} +1 -1
- package/dist/assets/{styles-b4e223ce-TYmJC5IN-BHQXJFVt.js → styles-b4e223ce-TYmJC5IN-Ckb0uq_x.js} +1 -1
- package/dist/assets/{styles-ca3715f6-CfJZu0Yn-DtD2x1No.js → styles-ca3715f6-CfJZu0Yn-Didz8Z4A.js} +1 -1
- package/dist/assets/{styles-d45a18b0-DZ8oSYcV-CvugbGS9.js → styles-d45a18b0-DZ8oSYcV-CG6sdjTP.js} +1 -1
- package/dist/assets/{svgDrawCommon-b86b1483-CXPkN8HW-DH97F0YX.js → svgDrawCommon-b86b1483-CXPkN8HW-C4vufBue.js} +1 -1
- package/dist/assets/{timeline-definition-faaaa080-LDFf1jfb-DxM6VoSn.js → timeline-definition-faaaa080-LDFf1jfb-0t73iNVZ.js} +1 -1
- package/dist/assets/{xychartDiagram-f5964ef8-DdhO5-Bp-CevMp6HN.js → xychartDiagram-f5964ef8-DdhO5-Bp-DFXTGgvd.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/channel-BKp1WYnX-Cc6fwi-B.js +0 -1
- package/dist/assets/clone-B1V2003j-Cr3Uw-Zs.js +0 -1
- package/dist/assets/flowDiagram-v2-4f6560a1-Si9enBmB-DYUBnRO1.js +0 -1
package/dist/assets/{edges-96097737-Zk-qG_8u-HnJhTil4.js → edges-96097737-Zk-qG_8u-DK7AVtHJ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{O as f,d as lt,o as ot,E as w,x as W,F as _,f as N,W as F,br as q}from"./index-BaIhc-dj.js";import{$ as nt}from"./createText-1719965b-C2-AT0ab-CWg8fDWo.js";const dt=(a,t,e,s)=>{t.forEach(l=>{bt[l](a,e,s)})},ht=(a,t,e)=>{f.trace("Making markers for ",e),a.append("defs").append("marker").attr("id",e+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),a.append("defs").append("marker").attr("id",e+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},ct=(a,t,e)=>{a.append("defs").append("marker").attr("id",e+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id",e+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},yt=(a,t,e)=>{a.append("defs").append("marker").attr("id",e+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id",e+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},pt=(a,t,e)=>{a.append("defs").append("marker").attr("id",e+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id",e+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},gt=(a,t,e)=>{a.append("defs").append("marker").attr("id",e+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),a.append("defs").append("marker").attr("id",e+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},xt=(a,t,e)=>{a.append("marker").attr("id",e+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),a.append("marker").attr("id",e+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},ft=(a,t,e)=>{a.append("marker").attr("id",e+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),a.append("marker").attr("id",e+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},ut=(a,t,e)=>{a.append("marker").attr("id",e+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),a.append("marker").attr("id",e+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},wt=(a,t,e)=>{a.append("defs").append("marker").attr("id",e+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},bt={extension:ht,composition:ct,aggregation:yt,dependency:pt,lollipop:gt,point:xt,circle:ft,cross:ut,barb:wt},or=dt;function mt(a,t){t&&a.attr("style",t)}function kt(a,t){const e=_(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),s=e.append("xhtml:div"),l=a.label,r=a.isNode?"nodeLabel":"edgeLabel";return s.html(F('<span class="'+r+'" '+(a.labelStyle?'style="'+a.labelStyle+'"':"")+">"+l+"</span>",t)),mt(s,a.labelStyle),s.style("display","inline-block"),s.style("white-space","nowrap"),s.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}const Lt=(a,t,e,s)=>{let l=a||"";typeof l=="object"&&(l=l[0]);const r=w();if(W(r.flowchart.htmlLabels)){l=l.replace(/\\n|\n/g,"<br />"),f.debug("vertexText"+l);const n={isNode:s,label:q(l).replace(/fa[blrs]?:fa-[\w-]+/g,i=>`<i class='${i.replace(":"," ")}'></i>`),labelStyle:t.replace("fill:","color:")};return kt(n,r)}else{const n=document.createElementNS("http://www.w3.org/2000/svg","text");n.setAttribute("style",t.replace("color:","fill:"));let i=[];typeof l=="string"?i=l.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(l)?i=l:i=[];for(const o of i){const h=document.createElementNS("http://www.w3.org/2000/svg","tspan");h.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),h.setAttribute("dy","1em"),h.setAttribute("x","0"),e?h.setAttribute("class","title-row"):h.setAttribute("class","row"),h.textContent=o.trim(),n.appendChild(h)}return n}},P=Lt,M=async(a,t,e,s)=>{let l;const r=t.useHtmlLabels||W(w().flowchart.htmlLabels);e?l=e:l="node default";const n=a.insert("g").attr("class",l).attr("id",t.domId||t.id),i=n.insert("g").attr("class","label").attr("style",t.labelStyle);let o;t.labelText===void 0?o="":o=typeof t.labelText=="string"?t.labelText:t.labelText[0];const h=i.node();let d;t.labelType==="markdown"?d=nt(i,F(q(o),w()),{useHtmlLabels:r,width:t.width||w().flowchart.wrappingWidth,classes:"markdown-node-label"}):d=h.appendChild(P(F(q(o),w()),t.labelStyle,!1,s));let c=d.getBBox();const p=t.padding/2;if(W(w().flowchart.htmlLabels)){const y=d.children[0],x=_(d),k=y.getElementsByTagName("img");if(k){const g=o.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...k].map(u=>new Promise(v=>{function B(){if(u.style.display="flex",u.style.flexDirection="column",g){const C=w().fontSize?w().fontSize:window.getComputedStyle(document.body).fontSize,X=parseInt(C,10)*5+"px";u.style.minWidth=X,u.style.maxWidth=X}else u.style.width="100%";v(u)}setTimeout(()=>{u.complete&&B()}),u.addEventListener("error",B),u.addEventListener("load",B)})))}c=y.getBoundingClientRect(),x.attr("width",c.width),x.attr("height",c.height)}return r?i.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"):i.attr("transform","translate(0, "+-c.height/2+")"),t.centerLabel&&i.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),i.insert("rect",":first-child"),{shapeSvg:n,bbox:c,halfPadding:p,label:i}},m=(a,t)=>{const e=t.node().getBBox();a.width=e.width,a.height=e.height};function O(a,t,e,s){return a.insert("polygon",":first-child").attr("points",s.map(function(l){return l.x+","+l.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+e/2+")")}function St(a,t){return a.intersect(t)}function st(a,t,e,s){var l=a.x,r=a.y,n=l-s.x,i=r-s.y,o=Math.sqrt(t*t*i*i+e*e*n*n),h=Math.abs(t*e*n/o);s.x<l&&(h=-h);var d=Math.abs(t*e*i/o);return s.y<r&&(d=-d),{x:l+h,y:r+d}}function vt(a,t,e){return st(a,t,t,e)}function Mt(a,t,e,s){var l,r,n,i,o,h,d,c,p,y,x,k,g,u,v;if(l=t.y-a.y,n=a.x-t.x,o=t.x*a.y-a.x*t.y,p=l*e.x+n*e.y+o,y=l*s.x+n*s.y+o,!(p!==0&&y!==0&&J(p,y))&&(r=s.y-e.y,i=e.x-s.x,h=s.x*e.y-e.x*s.y,d=r*a.x+i*a.y+h,c=r*t.x+i*t.y+h,!(d!==0&&c!==0&&J(d,c))&&(x=l*i-r*n,x!==0)))return k=Math.abs(x/2),g=n*h-i*o,u=g<0?(g-k)/x:(g+k)/x,g=r*o-l*h,v=g<0?(g-k)/x:(g+k)/x,{x:u,y:v}}function J(a,t){return a*t>0}function Tt(a,t,e){var s=a.x,l=a.y,r=[],n=Number.POSITIVE_INFINITY,i=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(x){n=Math.min(n,x.x),i=Math.min(i,x.y)}):(n=Math.min(n,t.x),i=Math.min(i,t.y));for(var o=s-a.width/2-n,h=l-a.height/2-i,d=0;d<t.length;d++){var c=t[d],p=t[d<t.length-1?d+1:0],y=Mt(a,e,{x:o+c.x,y:h+c.y},{x:o+p.x,y:h+p.y});y&&r.push(y)}return r.length?(r.length>1&&r.sort(function(x,k){var g=x.x-e.x,u=x.y-e.y,v=Math.sqrt(g*g+u*u),B=k.x-e.x,C=k.y-e.y,X=Math.sqrt(B*B+C*C);return v<X?-1:v===X?0:1}),r[0]):a}const Bt=(a,t)=>{var e=a.x,s=a.y,l=t.x-e,r=t.y-s,n=a.width/2,i=a.height/2,o,h;return Math.abs(r)*n>Math.abs(l)*i?(r<0&&(i=-i),o=r===0?0:i*l/r,h=i):(l<0&&(n=-n),o=n,h=l===0?0:n*r/l),{x:e+o,y:s+h}},_t=Bt,b={node:St,circle:vt,ellipse:st,polygon:Tt,rect:_t},Ct=async(a,t)=>{t.useHtmlLabels||w().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:e,bbox:s,halfPadding:l}=await M(a,t,"node "+t.classes,!0);f.info("Classes = ",t.classes);const r=e.insert("rect",":first-child");return r.attr("rx",t.rx).attr("ry",t.ry).attr("x",-s.width/2-l).attr("y",-s.height/2-l).attr("width",s.width+t.padding).attr("height",s.height+t.padding),m(t,r),t.intersect=function(n){return b.rect(t,n)},e},Et=Ct,$t=a=>{const t=new Set;for(const e of a)switch(e){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(e);break}return t},Pt=(a,t,e)=>{const s=$t(a),l=2,r=t.height+2*e.padding,n=r/l,i=t.width+2*n+e.padding,o=e.padding/2;return s.has("right")&&s.has("left")&&s.has("up")&&s.has("down")?[{x:0,y:0},{x:n,y:0},{x:i/2,y:2*o},{x:i-n,y:0},{x:i,y:0},{x:i,y:-r/3},{x:i+2*o,y:-r/2},{x:i,y:-2*r/3},{x:i,y:-r},{x:i-n,y:-r},{x:i/2,y:-r-2*o},{x:n,y:-r},{x:0,y:-r},{x:0,y:-2*r/3},{x:-2*o,y:-r/2},{x:0,y:-r/3}]:s.has("right")&&s.has("left")&&s.has("up")?[{x:n,y:0},{x:i-n,y:0},{x:i,y:-r/2},{x:i-n,y:-r},{x:n,y:-r},{x:0,y:-r/2}]:s.has("right")&&s.has("left")&&s.has("down")?[{x:0,y:0},{x:n,y:-r},{x:i-n,y:-r},{x:i,y:0}]:s.has("right")&&s.has("up")&&s.has("down")?[{x:0,y:0},{x:i,y:-n},{x:i,y:-r+n},{x:0,y:-r}]:s.has("left")&&s.has("up")&&s.has("down")?[{x:i,y:0},{x:0,y:-n},{x:0,y:-r+n},{x:i,y:-r}]:s.has("right")&&s.has("left")?[{x:n,y:0},{x:n,y:-o},{x:i-n,y:-o},{x:i-n,y:0},{x:i,y:-r/2},{x:i-n,y:-r},{x:i-n,y:-r+o},{x:n,y:-r+o},{x:n,y:-r},{x:0,y:-r/2}]:s.has("up")&&s.has("down")?[{x:i/2,y:0},{x:0,y:-o},{x:n,y:-o},{x:n,y:-r+o},{x:0,y:-r+o},{x:i/2,y:-r},{x:i,y:-r+o},{x:i-n,y:-r+o},{x:i-n,y:-o},{x:i,y:-o}]:s.has("right")&&s.has("up")?[{x:0,y:0},{x:i,y:-n},{x:0,y:-r}]:s.has("right")&&s.has("down")?[{x:0,y:0},{x:i,y:0},{x:0,y:-r}]:s.has("left")&&s.has("up")?[{x:i,y:0},{x:0,y:-n},{x:i,y:-r}]:s.has("left")&&s.has("down")?[{x:i,y:0},{x:0,y:0},{x:i,y:-r}]:s.has("right")?[{x:n,y:-o},{x:n,y:-o},{x:i-n,y:-o},{x:i-n,y:0},{x:i,y:-r/2},{x:i-n,y:-r},{x:i-n,y:-r+o},{x:n,y:-r+o},{x:n,y:-r+o}]:s.has("left")?[{x:n,y:0},{x:n,y:-o},{x:i-n,y:-o},{x:i-n,y:-r+o},{x:n,y:-r+o},{x:n,y:-r},{x:0,y:-r/2}]:s.has("up")?[{x:n,y:-o},{x:n,y:-r+o},{x:0,y:-r+o},{x:i/2,y:-r},{x:i,y:-r+o},{x:i-n,y:-r+o},{x:i-n,y:-o}]:s.has("down")?[{x:i/2,y:0},{x:0,y:-o},{x:n,y:-o},{x:n,y:-r+o},{x:i-n,y:-r+o},{x:i-n,y:-o},{x:i,y:-o}]:[{x:0,y:0}]},Q=a=>a?" "+a:"",$=(a,t)=>`node default${Q(a.classes)} ${Q(a.class)}`,K=async(a,t)=>{const{shapeSvg:e,bbox:s}=await M(a,t,$(t),!0),l=s.width+t.padding,r=s.height+t.padding,n=l+r,i=[{x:n/2,y:0},{x:n,y:-n/2},{x:n/2,y:-n},{x:0,y:-n/2}];f.info("Question main (Circle)");const o=O(e,n,n,i);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return f.warn("Intersect called"),b.polygon(t,i,h)},e},Wt=(a,t)=>{const e=a.insert("g").attr("class","node default").attr("id",t.domId||t.id),s=28,l=[{x:0,y:s/2},{x:s/2,y:0},{x:0,y:-s/2},{x:-s/2,y:0}];return e.insert("polygon",":first-child").attr("points",l.map(function(r){return r.x+","+r.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(r){return b.circle(t,14,r)},e},Ot=async(a,t)=>{const{shapeSvg:e,bbox:s}=await M(a,t,$(t),!0),l=4,r=s.height+t.padding,n=r/l,i=s.width+2*n+t.padding,o=[{x:n,y:0},{x:i-n,y:0},{x:i,y:-r/2},{x:i-n,y:-r},{x:n,y:-r},{x:0,y:-r/2}],h=O(e,i,r,o);return h.attr("style",t.style),m(t,h),t.intersect=function(d){return b.polygon(t,o,d)},e},Rt=async(a,t)=>{const{shapeSvg:e,bbox:s}=await M(a,t,void 0,!0),l=2,r=s.height+2*t.padding,n=r/l,i=s.width+2*n+t.padding,o=Pt(t.directions,s,t),h=O(e,i,r,o);return h.attr("style",t.style),m(t,h),t.intersect=function(d){return b.polygon(t,o,d)},e},Xt=async(a,t)=>{const{shapeSvg:e,bbox:s}=await M(a,t,$(t),!0),l=s.width+t.padding,r=s.height+t.padding,n=[{x:-r/2,y:0},{x:l,y:0},{x:l,y:-r},{x:-r/2,y:-r},{x:0,y:-r/2}];return O(e,l,r,n).attr("style",t.style),t.width=l+r,t.height=r,t.intersect=function(i){return b.polygon(t,n,i)},e},Yt=async(a,t)=>{const{shapeSvg:e,bbox:s}=await M(a,t,$(t),!0),l=s.width+t.padding,r=s.height+t.padding,n=[{x:-2*r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:r/6,y:-r}],i=O(e,l,r,n);return i.attr("style",t.style),m(t,i),t.intersect=function(o){return b.polygon(t,n,o)},e},It=async(a,t)=>{const{shapeSvg:e,bbox:s}=await M(a,t,$(t),!0),l=s.width+t.padding,r=s.height+t.padding,n=[{x:2*r/6,y:0},{x:l+r/6,y:0},{x:l-2*r/6,y:-r},{x:-r/6,y:-r}],i=O(e,l,r,n);return i.attr("style",t.style),m(t,i),t.intersect=function(o){return b.polygon(t,n,o)},e},Dt=async(a,t)=>{const{shapeSvg:e,bbox:s}=await M(a,t,$(t),!0),l=s.width+t.padding,r=s.height+t.padding,n=[{x:-2*r/6,y:0},{x:l+2*r/6,y:0},{x:l-r/6,y:-r},{x:r/6,y:-r}],i=O(e,l,r,n);return i.attr("style",t.style),m(t,i),t.intersect=function(o){return b.polygon(t,n,o)},e},Ht=async(a,t)=>{const{shapeSvg:e,bbox:s}=await M(a,t,$(t),!0),l=s.width+t.padding,r=s.height+t.padding,n=[{x:r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:-2*r/6,y:-r}],i=O(e,l,r,n);return i.attr("style",t.style),m(t,i),t.intersect=function(o){return b.polygon(t,n,o)},e},Nt=async(a,t)=>{const{shapeSvg:e,bbox:s}=await M(a,t,$(t),!0),l=s.width+t.padding,r=s.height+t.padding,n=[{x:0,y:0},{x:l+r/2,y:0},{x:l,y:-r/2},{x:l+r/2,y:-r},{x:0,y:-r}],i=O(e,l,r,n);return i.attr("style",t.style),m(t,i),t.intersect=function(o){return b.polygon(t,n,o)},e},jt=async(a,t)=>{const{shapeSvg:e,bbox:s}=await M(a,t,$(t),!0),l=s.width+t.padding,r=l/2,n=r/(2.5+l/50),i=s.height+n+t.padding,o="M 0,"+n+" a "+r+","+n+" 0,0,0 "+l+" 0 a "+r+","+n+" 0,0,0 "+-l+" 0 l 0,"+i+" a "+r+","+n+" 0,0,0 "+l+" 0 l 0,"+-i,h=e.attr("label-offset-y",n).insert("path",":first-child").attr("style",t.style).attr("d",o).attr("transform","translate("+-l/2+","+-(i/2+n)+")");return m(t,h),t.intersect=function(d){const c=b.rect(t,d),p=c.x-t.x;if(r!=0&&(Math.abs(p)<t.width/2||Math.abs(p)==t.width/2&&Math.abs(c.y-t.y)>t.height/2-n)){let y=n*n*(1-p*p/(r*r));y!=0&&(y=Math.sqrt(y)),y=n-y,d.y-t.y>0&&(y=-y),c.y+=y}return c},e},Ut=async(a,t)=>{const{shapeSvg:e,bbox:s,halfPadding:l}=await M(a,t,"node "+t.classes+" "+t.class,!0),r=e.insert("rect",":first-child"),n=t.positioned?t.width:s.width+t.padding,i=t.positioned?t.height:s.height+t.padding,o=t.positioned?-n/2:-s.width/2-l,h=t.positioned?-i/2:-s.height/2-l;if(r.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",o).attr("y",h).attr("width",n).attr("height",i),t.props){const d=new Set(Object.keys(t.props));t.props.borders&&(G(r,t.props.borders,n,i),d.delete("borders")),d.forEach(c=>{f.warn(`Unknown node property ${c}`)})}return m(t,r),t.intersect=function(d){return b.rect(t,d)},e},At=async(a,t)=>{const{shapeSvg:e,bbox:s,halfPadding:l}=await M(a,t,"node "+t.classes,!0),r=e.insert("rect",":first-child"),n=t.positioned?t.width:s.width+t.padding,i=t.positioned?t.height:s.height+t.padding,o=t.positioned?-n/2:-s.width/2-l,h=t.positioned?-i/2:-s.height/2-l;if(r.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",o).attr("y",h).attr("width",n).attr("height",i),t.props){const d=new Set(Object.keys(t.props));t.props.borders&&(G(r,t.props.borders,n,i),d.delete("borders")),d.forEach(c=>{f.warn(`Unknown node property ${c}`)})}return m(t,r),t.intersect=function(d){return b.rect(t,d)},e},Zt=async(a,t)=>{const{shapeSvg:e}=await M(a,t,"label",!0);f.trace("Classes = ",t.class);const s=e.insert("rect",":first-child"),l=0,r=0;if(s.attr("width",l).attr("height",r),e.attr("class","label edgeLabel"),t.props){const n=new Set(Object.keys(t.props));t.props.borders&&(G(s,t.props.borders,l,r),n.delete("borders")),n.forEach(i=>{f.warn(`Unknown node property ${i}`)})}return m(t,s),t.intersect=function(n){return b.rect(t,n)},e};function G(a,t,e,s){const l=[],r=i=>{l.push(i,0)},n=i=>{l.push(0,i)};t.includes("t")?(f.debug("add top border"),r(e)):n(e),t.includes("r")?(f.debug("add right border"),r(s)):n(s),t.includes("b")?(f.debug("add bottom border"),r(e)):n(e),t.includes("l")?(f.debug("add left border"),r(s)):n(s),a.attr("stroke-dasharray",l.join(" "))}const zt=(a,t)=>{let e;t.classes?e="node "+t.classes:e="node default";const s=a.insert("g").attr("class",e).attr("id",t.domId||t.id),l=s.insert("rect",":first-child"),r=s.insert("line"),n=s.insert("g").attr("class","label"),i=t.labelText.flat?t.labelText.flat():t.labelText;let o="";typeof i=="object"?o=i[0]:o=i,f.info("Label text abc79",o,i,typeof i=="object");const h=n.node().appendChild(P(o,t.labelStyle,!0,!0));let d={width:0,height:0};if(W(w().flowchart.htmlLabels)){const k=h.children[0],g=_(h);d=k.getBoundingClientRect(),g.attr("width",d.width),g.attr("height",d.height)}f.info("Text 2",i);const c=i.slice(1,i.length);let p=h.getBBox();const y=n.node().appendChild(P(c.join?c.join("<br/>"):c,t.labelStyle,!0,!0));if(W(w().flowchart.htmlLabels)){const k=y.children[0],g=_(y);d=k.getBoundingClientRect(),g.attr("width",d.width),g.attr("height",d.height)}const x=t.padding/2;return _(y).attr("transform","translate( "+(d.width>p.width?0:(p.width-d.width)/2)+", "+(p.height+x+5)+")"),_(h).attr("transform","translate( "+(d.width<p.width?0:-(p.width-d.width)/2)+", 0)"),d=n.node().getBBox(),n.attr("transform","translate("+-d.width/2+", "+(-d.height/2-x+3)+")"),l.attr("class","outer title-state").attr("x",-d.width/2-x).attr("y",-d.height/2-x).attr("width",d.width+t.padding).attr("height",d.height+t.padding),r.attr("class","divider").attr("x1",-d.width/2-x).attr("x2",d.width/2+x).attr("y1",-d.height/2-x+p.height+x).attr("y2",-d.height/2-x+p.height+x),m(t,l),t.intersect=function(k){return b.rect(t,k)},s},Ft=async(a,t)=>{const{shapeSvg:e,bbox:s}=await M(a,t,$(t),!0),l=s.height+t.padding,r=s.width+l/4+t.padding,n=e.insert("rect",":first-child").attr("style",t.style).attr("rx",l/2).attr("ry",l/2).attr("x",-r/2).attr("y",-l/2).attr("width",r).attr("height",l);return m(t,n),t.intersect=function(i){return b.rect(t,i)},e},qt=async(a,t)=>{const{shapeSvg:e,bbox:s,halfPadding:l}=await M(a,t,$(t),!0),r=e.insert("circle",":first-child");return r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",s.width/2+l).attr("width",s.width+t.padding).attr("height",s.height+t.padding),f.info("Circle main"),m(t,r),t.intersect=function(n){return f.info("Circle intersect",t,s.width/2+l,n),b.circle(t,s.width/2+l,n)},e},Gt=async(a,t)=>{const{shapeSvg:e,bbox:s,halfPadding:l}=await M(a,t,$(t),!0),r=5,n=e.insert("g",":first-child"),i=n.insert("circle"),o=n.insert("circle");return n.attr("class",t.class),i.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",s.width/2+l+r).attr("width",s.width+t.padding+r*2).attr("height",s.height+t.padding+r*2),o.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",s.width/2+l).attr("width",s.width+t.padding).attr("height",s.height+t.padding),f.info("DoubleCircle main"),m(t,i),t.intersect=function(h){return f.info("DoubleCircle intersect",t,s.width/2+l+r,h),b.circle(t,s.width/2+l+r,h)},e},Vt=async(a,t)=>{const{shapeSvg:e,bbox:s}=await M(a,t,$(t),!0),l=s.width+t.padding,r=s.height+t.padding,n=[{x:0,y:0},{x:l,y:0},{x:l,y:-r},{x:0,y:-r},{x:0,y:0},{x:-8,y:0},{x:l+8,y:0},{x:l+8,y:-r},{x:-8,y:-r},{x:-8,y:0}],i=O(e,l,r,n);return i.attr("style",t.style),m(t,i),t.intersect=function(o){return b.polygon(t,n,o)},e},Jt=(a,t)=>{const e=a.insert("g").attr("class","node default").attr("id",t.domId||t.id),s=e.insert("circle",":first-child");return s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),m(t,s),t.intersect=function(l){return b.circle(t,7,l)},e},tt=(a,t,e)=>{const s=a.insert("g").attr("class","node default").attr("id",t.domId||t.id);let l=70,r=10;e==="LR"&&(l=10,r=70);const n=s.append("rect").attr("x",-1*l/2).attr("y",-1*r/2).attr("width",l).attr("height",r).attr("class","fork-join");return m(t,n),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(i){return b.rect(t,i)},s},Qt=(a,t)=>{const e=a.insert("g").attr("class","node default").attr("id",t.domId||t.id),s=e.insert("circle",":first-child"),l=e.insert("circle",":first-child");return l.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),s.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),m(t,l),t.intersect=function(r){return b.circle(t,7,r)},e},Kt=(a,t)=>{const e=t.padding/2,s=4,l=8;let r;t.classes?r="node "+t.classes:r="node default";const n=a.insert("g").attr("class",r).attr("id",t.domId||t.id),i=n.insert("rect",":first-child"),o=n.insert("line"),h=n.insert("line");let d=0,c=s;const p=n.insert("g").attr("class","label");let y=0;const x=t.classData.annotations&&t.classData.annotations[0],k=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",g=p.node().appendChild(P(k,t.labelStyle,!0,!0));let u=g.getBBox();if(W(w().flowchart.htmlLabels)){const L=g.children[0],S=_(g);u=L.getBoundingClientRect(),S.attr("width",u.width),S.attr("height",u.height)}t.classData.annotations[0]&&(c+=u.height+s,d+=u.width);let v=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(w().flowchart.htmlLabels?v+="<"+t.classData.type+">":v+="<"+t.classData.type+">");const B=p.node().appendChild(P(v,t.labelStyle,!0,!0));_(B).attr("class","classTitle");let C=B.getBBox();if(W(w().flowchart.htmlLabels)){const L=B.children[0],S=_(B);C=L.getBoundingClientRect(),S.attr("width",C.width),S.attr("height",C.height)}c+=C.height+s,C.width>d&&(d=C.width);const X=[];t.classData.members.forEach(L=>{const S=L.getDisplayDetails();let I=S.displayText;w().flowchart.htmlLabels&&(I=I.replace(/</g,"<").replace(/>/g,">"));const R=p.node().appendChild(P(I,S.cssStyle?S.cssStyle:t.labelStyle,!0,!0));let E=R.getBBox();if(W(w().flowchart.htmlLabels)){const z=R.children[0],H=_(R);E=z.getBoundingClientRect(),H.attr("width",E.width),H.attr("height",E.height)}E.width>d&&(d=E.width),c+=E.height+s,X.push(R)}),c+=l;const V=[];if(t.classData.methods.forEach(L=>{const S=L.getDisplayDetails();let I=S.displayText;w().flowchart.htmlLabels&&(I=I.replace(/</g,"<").replace(/>/g,">"));const R=p.node().appendChild(P(I,S.cssStyle?S.cssStyle:t.labelStyle,!0,!0));let E=R.getBBox();if(W(w().flowchart.htmlLabels)){const z=R.children[0],H=_(R);E=z.getBoundingClientRect(),H.attr("width",E.width),H.attr("height",E.height)}E.width>d&&(d=E.width),c+=E.height+s,V.push(R)}),c+=l,x){let L=(d-u.width)/2;_(g).attr("transform","translate( "+(-1*d/2+L)+", "+-1*c/2+")"),y=u.height+s}let it=(d-C.width)/2;return _(B).attr("transform","translate( "+(-1*d/2+it)+", "+(-1*c/2+y)+")"),y+=C.height+s,o.attr("class","divider").attr("x1",-d/2-e).attr("x2",d/2+e).attr("y1",-c/2-e+l+y).attr("y2",-c/2-e+l+y),y+=l,X.forEach(L=>{_(L).attr("transform","translate( "+-d/2+", "+(-1*c/2+y+l/2)+")");const S=L==null?void 0:L.getBBox();y+=((S==null?void 0:S.height)??0)+s}),y+=l,h.attr("class","divider").attr("x1",-d/2-e).attr("x2",d/2+e).attr("y1",-c/2-e+l+y).attr("y2",-c/2-e+l+y),y+=l,V.forEach(L=>{_(L).attr("transform","translate( "+-d/2+", "+(-1*c/2+y)+")");const S=L==null?void 0:L.getBBox();y+=((S==null?void 0:S.height)??0)+s}),i.attr("style",t.style).attr("class","outer title-state").attr("x",-d/2-e).attr("y",-(c/2)-e).attr("width",d+t.padding).attr("height",c+t.padding),m(t,i),t.intersect=function(L){return b.rect(t,L)},n},rt={rhombus:K,composite:At,question:K,rect:Ut,labelRect:Zt,rectWithTitle:zt,choice:Wt,circle:qt,doublecircle:Gt,stadium:Ft,hexagon:Ot,block_arrow:Rt,rect_left_inv_arrow:Xt,lean_right:Yt,lean_left:It,trapezoid:Dt,inv_trapezoid:Ht,rect_right_inv_arrow:Nt,cylinder:jt,start:Jt,end:Qt,note:Et,subroutine:Vt,fork:tt,join:tt,class_box:Kt};let D={};const dr=async(a,t,e)=>{let s,l;if(t.link){let r;w().securityLevel==="sandbox"?r="_top":t.linkTarget&&(r=t.linkTarget||"_blank"),s=a.insert("svg:a").attr("xlink:href",t.link).attr("target",r),l=await rt[t.shape](s,t,e)}else l=await rt[t.shape](a,t,e),s=l;return t.tooltip&&l.attr("title",t.tooltip),t.class&&l.attr("class","node default "+t.class),s.attr("data-node","true"),s.attr("data-id",t.id),D[t.id]=s,t.haveCallback&&D[t.id].attr("class",D[t.id].attr("class")+" clickable"),s},hr=(a,t)=>{D[t.id]=a},cr=()=>{D={}},yr=a=>{const t=D[a.id];f.trace("Transforming node",a.diff,a,"translate("+(a.x-a.width/2-5)+", "+a.width/2+")");const e=8,s=a.diff||0;return a.clusterNode?t.attr("transform","translate("+(a.x+s-a.width/2)+", "+(a.y-a.height/2-e)+")"):t.attr("transform","translate("+a.x+", "+a.y+")"),s},tr=({flowchart:a})=>{var t,e;const s=((t=a==null?void 0:a.subGraphTitleMargin)==null?void 0:t.top)??0,l=((e=a==null?void 0:a.subGraphTitleMargin)==null?void 0:e.bottom)??0,r=s+l;return{subGraphTitleTopMargin:s,subGraphTitleBottomMargin:l,subGraphTitleTotalMargin:r}},Y={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function j(a,t){if(a===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};a=A(a),t=A(t);const[e,s]=[a.x,a.y],[l,r]=[t.x,t.y],n=l-e,i=r-s;return{angle:Math.atan(i/n),deltaX:n,deltaY:i}}const A=a=>Array.isArray(a)?{x:a[0],y:a[1]}:a,rr=a=>({x:function(t,e,s){let l=0;if(e===0&&Object.hasOwn(Y,a.arrowTypeStart)){const{angle:r,deltaX:n}=j(s[0],s[1]);l=Y[a.arrowTypeStart]*Math.cos(r)*(n>=0?1:-1)}else if(e===s.length-1&&Object.hasOwn(Y,a.arrowTypeEnd)){const{angle:r,deltaX:n}=j(s[s.length-1],s[s.length-2]);l=Y[a.arrowTypeEnd]*Math.cos(r)*(n>=0?1:-1)}return A(t).x+l},y:function(t,e,s){let l=0;if(e===0&&Object.hasOwn(Y,a.arrowTypeStart)){const{angle:r,deltaY:n}=j(s[0],s[1]);l=Y[a.arrowTypeStart]*Math.abs(Math.sin(r))*(n>=0?1:-1)}else if(e===s.length-1&&Object.hasOwn(Y,a.arrowTypeEnd)){const{angle:r,deltaY:n}=j(s[s.length-1],s[s.length-2]);l=Y[a.arrowTypeEnd]*Math.abs(Math.sin(r))*(n>=0?1:-1)}return A(t).y+l}}),er=(a,t,e,s,l)=>{t.arrowTypeStart&&et(a,"start",t.arrowTypeStart,e,s,l),t.arrowTypeEnd&&et(a,"end",t.arrowTypeEnd,e,s,l)},ar={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},et=(a,t,e,s,l,r)=>{const n=ar[e];if(!n){f.warn(`Unknown arrow type: ${e}`);return}const i=t==="start"?"Start":"End";a.attr(`marker-${t}`,`url(${s}#${l}_${r}-${n}${i})`)};let Z={},T={};const pr=()=>{Z={},T={}},gr=(a,t)=>{const e=W(w().flowchart.htmlLabels),s=t.labelType==="markdown"?nt(a,t.label,{style:t.labelStyle,useHtmlLabels:e,addSvgBackground:!0}):P(t.label,t.labelStyle),l=a.insert("g").attr("class","edgeLabel"),r=l.insert("g").attr("class","label");r.node().appendChild(s);let n=s.getBBox();if(e){const o=s.children[0],h=_(s);n=o.getBoundingClientRect(),h.attr("width",n.width),h.attr("height",n.height)}r.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"),Z[t.id]=l,t.width=n.width,t.height=n.height;let i;if(t.startLabelLeft){const o=P(t.startLabelLeft,t.labelStyle),h=a.insert("g").attr("class","edgeTerminals"),d=h.insert("g").attr("class","inner");i=d.node().appendChild(o);const c=o.getBBox();d.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startLeft=h,U(i,t.startLabelLeft)}if(t.startLabelRight){const o=P(t.startLabelRight,t.labelStyle),h=a.insert("g").attr("class","edgeTerminals"),d=h.insert("g").attr("class","inner");i=h.node().appendChild(o),d.node().appendChild(o);const c=o.getBBox();d.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startRight=h,U(i,t.startLabelRight)}if(t.endLabelLeft){const o=P(t.endLabelLeft,t.labelStyle),h=a.insert("g").attr("class","edgeTerminals"),d=h.insert("g").attr("class","inner");i=d.node().appendChild(o);const c=o.getBBox();d.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),h.node().appendChild(o),T[t.id]||(T[t.id]={}),T[t.id].endLeft=h,U(i,t.endLabelLeft)}if(t.endLabelRight){const o=P(t.endLabelRight,t.labelStyle),h=a.insert("g").attr("class","edgeTerminals"),d=h.insert("g").attr("class","inner");i=d.node().appendChild(o);const c=o.getBBox();d.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),h.node().appendChild(o),T[t.id]||(T[t.id]={}),T[t.id].endRight=h,U(i,t.endLabelRight)}return s};function U(a,t){w().flowchart.htmlLabels&&a&&(a.style.width=t.length*9+"px",a.style.height="12px")}const xr=(a,t)=>{f.debug("Moving label abc88 ",a.id,a.label,Z[a.id],t);let e=t.updatedPath?t.updatedPath:t.originalPath;const s=w(),{subGraphTitleTotalMargin:l}=tr(s);if(a.label){const r=Z[a.id];let n=a.x,i=a.y;if(e){const o=N.calcLabelPosition(e);f.debug("Moving label "+a.label+" from (",n,",",i,") to (",o.x,",",o.y,") abc88"),t.updatedPath&&(n=o.x,i=o.y)}r.attr("transform",`translate(${n}, ${i+l/2})`)}if(a.startLabelLeft){const r=T[a.id].startLeft;let n=a.x,i=a.y;if(e){const o=N.calcTerminalLabelPosition(a.arrowTypeStart?10:0,"start_left",e);n=o.x,i=o.y}r.attr("transform",`translate(${n}, ${i})`)}if(a.startLabelRight){const r=T[a.id].startRight;let n=a.x,i=a.y;if(e){const o=N.calcTerminalLabelPosition(a.arrowTypeStart?10:0,"start_right",e);n=o.x,i=o.y}r.attr("transform",`translate(${n}, ${i})`)}if(a.endLabelLeft){const r=T[a.id].endLeft;let n=a.x,i=a.y;if(e){const o=N.calcTerminalLabelPosition(a.arrowTypeEnd?10:0,"end_left",e);n=o.x,i=o.y}r.attr("transform",`translate(${n}, ${i})`)}if(a.endLabelRight){const r=T[a.id].endRight;let n=a.x,i=a.y;if(e){const o=N.calcTerminalLabelPosition(a.arrowTypeEnd?10:0,"end_right",e);n=o.x,i=o.y}r.attr("transform",`translate(${n}, ${i})`)}},nr=(a,t)=>{const e=a.x,s=a.y,l=Math.abs(t.x-e),r=Math.abs(t.y-s),n=a.width/2,i=a.height/2;return l>=n||r>=i},sr=(a,t,e)=>{f.debug(`intersection calc abc89:
|
|
1
|
+
import{O as f,d as lt,o as ot,E as w,x as W,F as _,f as N,W as F,br as q}from"./index--DBVktm0.js";import{$ as nt}from"./createText-1719965b-C2-AT0ab-DdeHG0fk.js";const dt=(a,t,e,s)=>{t.forEach(l=>{bt[l](a,e,s)})},ht=(a,t,e)=>{f.trace("Making markers for ",e),a.append("defs").append("marker").attr("id",e+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),a.append("defs").append("marker").attr("id",e+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},ct=(a,t,e)=>{a.append("defs").append("marker").attr("id",e+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id",e+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},yt=(a,t,e)=>{a.append("defs").append("marker").attr("id",e+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id",e+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},pt=(a,t,e)=>{a.append("defs").append("marker").attr("id",e+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id",e+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},gt=(a,t,e)=>{a.append("defs").append("marker").attr("id",e+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),a.append("defs").append("marker").attr("id",e+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},xt=(a,t,e)=>{a.append("marker").attr("id",e+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),a.append("marker").attr("id",e+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},ft=(a,t,e)=>{a.append("marker").attr("id",e+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),a.append("marker").attr("id",e+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},ut=(a,t,e)=>{a.append("marker").attr("id",e+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),a.append("marker").attr("id",e+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},wt=(a,t,e)=>{a.append("defs").append("marker").attr("id",e+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},bt={extension:ht,composition:ct,aggregation:yt,dependency:pt,lollipop:gt,point:xt,circle:ft,cross:ut,barb:wt},or=dt;function mt(a,t){t&&a.attr("style",t)}function kt(a,t){const e=_(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),s=e.append("xhtml:div"),l=a.label,r=a.isNode?"nodeLabel":"edgeLabel";return s.html(F('<span class="'+r+'" '+(a.labelStyle?'style="'+a.labelStyle+'"':"")+">"+l+"</span>",t)),mt(s,a.labelStyle),s.style("display","inline-block"),s.style("white-space","nowrap"),s.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}const Lt=(a,t,e,s)=>{let l=a||"";typeof l=="object"&&(l=l[0]);const r=w();if(W(r.flowchart.htmlLabels)){l=l.replace(/\\n|\n/g,"<br />"),f.debug("vertexText"+l);const n={isNode:s,label:q(l).replace(/fa[blrs]?:fa-[\w-]+/g,i=>`<i class='${i.replace(":"," ")}'></i>`),labelStyle:t.replace("fill:","color:")};return kt(n,r)}else{const n=document.createElementNS("http://www.w3.org/2000/svg","text");n.setAttribute("style",t.replace("color:","fill:"));let i=[];typeof l=="string"?i=l.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(l)?i=l:i=[];for(const o of i){const h=document.createElementNS("http://www.w3.org/2000/svg","tspan");h.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),h.setAttribute("dy","1em"),h.setAttribute("x","0"),e?h.setAttribute("class","title-row"):h.setAttribute("class","row"),h.textContent=o.trim(),n.appendChild(h)}return n}},P=Lt,M=async(a,t,e,s)=>{let l;const r=t.useHtmlLabels||W(w().flowchart.htmlLabels);e?l=e:l="node default";const n=a.insert("g").attr("class",l).attr("id",t.domId||t.id),i=n.insert("g").attr("class","label").attr("style",t.labelStyle);let o;t.labelText===void 0?o="":o=typeof t.labelText=="string"?t.labelText:t.labelText[0];const h=i.node();let d;t.labelType==="markdown"?d=nt(i,F(q(o),w()),{useHtmlLabels:r,width:t.width||w().flowchart.wrappingWidth,classes:"markdown-node-label"}):d=h.appendChild(P(F(q(o),w()),t.labelStyle,!1,s));let c=d.getBBox();const p=t.padding/2;if(W(w().flowchart.htmlLabels)){const y=d.children[0],x=_(d),k=y.getElementsByTagName("img");if(k){const g=o.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...k].map(u=>new Promise(v=>{function B(){if(u.style.display="flex",u.style.flexDirection="column",g){const C=w().fontSize?w().fontSize:window.getComputedStyle(document.body).fontSize,X=parseInt(C,10)*5+"px";u.style.minWidth=X,u.style.maxWidth=X}else u.style.width="100%";v(u)}setTimeout(()=>{u.complete&&B()}),u.addEventListener("error",B),u.addEventListener("load",B)})))}c=y.getBoundingClientRect(),x.attr("width",c.width),x.attr("height",c.height)}return r?i.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"):i.attr("transform","translate(0, "+-c.height/2+")"),t.centerLabel&&i.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),i.insert("rect",":first-child"),{shapeSvg:n,bbox:c,halfPadding:p,label:i}},m=(a,t)=>{const e=t.node().getBBox();a.width=e.width,a.height=e.height};function O(a,t,e,s){return a.insert("polygon",":first-child").attr("points",s.map(function(l){return l.x+","+l.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+e/2+")")}function St(a,t){return a.intersect(t)}function st(a,t,e,s){var l=a.x,r=a.y,n=l-s.x,i=r-s.y,o=Math.sqrt(t*t*i*i+e*e*n*n),h=Math.abs(t*e*n/o);s.x<l&&(h=-h);var d=Math.abs(t*e*i/o);return s.y<r&&(d=-d),{x:l+h,y:r+d}}function vt(a,t,e){return st(a,t,t,e)}function Mt(a,t,e,s){var l,r,n,i,o,h,d,c,p,y,x,k,g,u,v;if(l=t.y-a.y,n=a.x-t.x,o=t.x*a.y-a.x*t.y,p=l*e.x+n*e.y+o,y=l*s.x+n*s.y+o,!(p!==0&&y!==0&&J(p,y))&&(r=s.y-e.y,i=e.x-s.x,h=s.x*e.y-e.x*s.y,d=r*a.x+i*a.y+h,c=r*t.x+i*t.y+h,!(d!==0&&c!==0&&J(d,c))&&(x=l*i-r*n,x!==0)))return k=Math.abs(x/2),g=n*h-i*o,u=g<0?(g-k)/x:(g+k)/x,g=r*o-l*h,v=g<0?(g-k)/x:(g+k)/x,{x:u,y:v}}function J(a,t){return a*t>0}function Tt(a,t,e){var s=a.x,l=a.y,r=[],n=Number.POSITIVE_INFINITY,i=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(x){n=Math.min(n,x.x),i=Math.min(i,x.y)}):(n=Math.min(n,t.x),i=Math.min(i,t.y));for(var o=s-a.width/2-n,h=l-a.height/2-i,d=0;d<t.length;d++){var c=t[d],p=t[d<t.length-1?d+1:0],y=Mt(a,e,{x:o+c.x,y:h+c.y},{x:o+p.x,y:h+p.y});y&&r.push(y)}return r.length?(r.length>1&&r.sort(function(x,k){var g=x.x-e.x,u=x.y-e.y,v=Math.sqrt(g*g+u*u),B=k.x-e.x,C=k.y-e.y,X=Math.sqrt(B*B+C*C);return v<X?-1:v===X?0:1}),r[0]):a}const Bt=(a,t)=>{var e=a.x,s=a.y,l=t.x-e,r=t.y-s,n=a.width/2,i=a.height/2,o,h;return Math.abs(r)*n>Math.abs(l)*i?(r<0&&(i=-i),o=r===0?0:i*l/r,h=i):(l<0&&(n=-n),o=n,h=l===0?0:n*r/l),{x:e+o,y:s+h}},_t=Bt,b={node:St,circle:vt,ellipse:st,polygon:Tt,rect:_t},Ct=async(a,t)=>{t.useHtmlLabels||w().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:e,bbox:s,halfPadding:l}=await M(a,t,"node "+t.classes,!0);f.info("Classes = ",t.classes);const r=e.insert("rect",":first-child");return r.attr("rx",t.rx).attr("ry",t.ry).attr("x",-s.width/2-l).attr("y",-s.height/2-l).attr("width",s.width+t.padding).attr("height",s.height+t.padding),m(t,r),t.intersect=function(n){return b.rect(t,n)},e},Et=Ct,$t=a=>{const t=new Set;for(const e of a)switch(e){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(e);break}return t},Pt=(a,t,e)=>{const s=$t(a),l=2,r=t.height+2*e.padding,n=r/l,i=t.width+2*n+e.padding,o=e.padding/2;return s.has("right")&&s.has("left")&&s.has("up")&&s.has("down")?[{x:0,y:0},{x:n,y:0},{x:i/2,y:2*o},{x:i-n,y:0},{x:i,y:0},{x:i,y:-r/3},{x:i+2*o,y:-r/2},{x:i,y:-2*r/3},{x:i,y:-r},{x:i-n,y:-r},{x:i/2,y:-r-2*o},{x:n,y:-r},{x:0,y:-r},{x:0,y:-2*r/3},{x:-2*o,y:-r/2},{x:0,y:-r/3}]:s.has("right")&&s.has("left")&&s.has("up")?[{x:n,y:0},{x:i-n,y:0},{x:i,y:-r/2},{x:i-n,y:-r},{x:n,y:-r},{x:0,y:-r/2}]:s.has("right")&&s.has("left")&&s.has("down")?[{x:0,y:0},{x:n,y:-r},{x:i-n,y:-r},{x:i,y:0}]:s.has("right")&&s.has("up")&&s.has("down")?[{x:0,y:0},{x:i,y:-n},{x:i,y:-r+n},{x:0,y:-r}]:s.has("left")&&s.has("up")&&s.has("down")?[{x:i,y:0},{x:0,y:-n},{x:0,y:-r+n},{x:i,y:-r}]:s.has("right")&&s.has("left")?[{x:n,y:0},{x:n,y:-o},{x:i-n,y:-o},{x:i-n,y:0},{x:i,y:-r/2},{x:i-n,y:-r},{x:i-n,y:-r+o},{x:n,y:-r+o},{x:n,y:-r},{x:0,y:-r/2}]:s.has("up")&&s.has("down")?[{x:i/2,y:0},{x:0,y:-o},{x:n,y:-o},{x:n,y:-r+o},{x:0,y:-r+o},{x:i/2,y:-r},{x:i,y:-r+o},{x:i-n,y:-r+o},{x:i-n,y:-o},{x:i,y:-o}]:s.has("right")&&s.has("up")?[{x:0,y:0},{x:i,y:-n},{x:0,y:-r}]:s.has("right")&&s.has("down")?[{x:0,y:0},{x:i,y:0},{x:0,y:-r}]:s.has("left")&&s.has("up")?[{x:i,y:0},{x:0,y:-n},{x:i,y:-r}]:s.has("left")&&s.has("down")?[{x:i,y:0},{x:0,y:0},{x:i,y:-r}]:s.has("right")?[{x:n,y:-o},{x:n,y:-o},{x:i-n,y:-o},{x:i-n,y:0},{x:i,y:-r/2},{x:i-n,y:-r},{x:i-n,y:-r+o},{x:n,y:-r+o},{x:n,y:-r+o}]:s.has("left")?[{x:n,y:0},{x:n,y:-o},{x:i-n,y:-o},{x:i-n,y:-r+o},{x:n,y:-r+o},{x:n,y:-r},{x:0,y:-r/2}]:s.has("up")?[{x:n,y:-o},{x:n,y:-r+o},{x:0,y:-r+o},{x:i/2,y:-r},{x:i,y:-r+o},{x:i-n,y:-r+o},{x:i-n,y:-o}]:s.has("down")?[{x:i/2,y:0},{x:0,y:-o},{x:n,y:-o},{x:n,y:-r+o},{x:i-n,y:-r+o},{x:i-n,y:-o},{x:i,y:-o}]:[{x:0,y:0}]},Q=a=>a?" "+a:"",$=(a,t)=>`node default${Q(a.classes)} ${Q(a.class)}`,K=async(a,t)=>{const{shapeSvg:e,bbox:s}=await M(a,t,$(t),!0),l=s.width+t.padding,r=s.height+t.padding,n=l+r,i=[{x:n/2,y:0},{x:n,y:-n/2},{x:n/2,y:-n},{x:0,y:-n/2}];f.info("Question main (Circle)");const o=O(e,n,n,i);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return f.warn("Intersect called"),b.polygon(t,i,h)},e},Wt=(a,t)=>{const e=a.insert("g").attr("class","node default").attr("id",t.domId||t.id),s=28,l=[{x:0,y:s/2},{x:s/2,y:0},{x:0,y:-s/2},{x:-s/2,y:0}];return e.insert("polygon",":first-child").attr("points",l.map(function(r){return r.x+","+r.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(r){return b.circle(t,14,r)},e},Ot=async(a,t)=>{const{shapeSvg:e,bbox:s}=await M(a,t,$(t),!0),l=4,r=s.height+t.padding,n=r/l,i=s.width+2*n+t.padding,o=[{x:n,y:0},{x:i-n,y:0},{x:i,y:-r/2},{x:i-n,y:-r},{x:n,y:-r},{x:0,y:-r/2}],h=O(e,i,r,o);return h.attr("style",t.style),m(t,h),t.intersect=function(d){return b.polygon(t,o,d)},e},Rt=async(a,t)=>{const{shapeSvg:e,bbox:s}=await M(a,t,void 0,!0),l=2,r=s.height+2*t.padding,n=r/l,i=s.width+2*n+t.padding,o=Pt(t.directions,s,t),h=O(e,i,r,o);return h.attr("style",t.style),m(t,h),t.intersect=function(d){return b.polygon(t,o,d)},e},Xt=async(a,t)=>{const{shapeSvg:e,bbox:s}=await M(a,t,$(t),!0),l=s.width+t.padding,r=s.height+t.padding,n=[{x:-r/2,y:0},{x:l,y:0},{x:l,y:-r},{x:-r/2,y:-r},{x:0,y:-r/2}];return O(e,l,r,n).attr("style",t.style),t.width=l+r,t.height=r,t.intersect=function(i){return b.polygon(t,n,i)},e},Yt=async(a,t)=>{const{shapeSvg:e,bbox:s}=await M(a,t,$(t),!0),l=s.width+t.padding,r=s.height+t.padding,n=[{x:-2*r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:r/6,y:-r}],i=O(e,l,r,n);return i.attr("style",t.style),m(t,i),t.intersect=function(o){return b.polygon(t,n,o)},e},It=async(a,t)=>{const{shapeSvg:e,bbox:s}=await M(a,t,$(t),!0),l=s.width+t.padding,r=s.height+t.padding,n=[{x:2*r/6,y:0},{x:l+r/6,y:0},{x:l-2*r/6,y:-r},{x:-r/6,y:-r}],i=O(e,l,r,n);return i.attr("style",t.style),m(t,i),t.intersect=function(o){return b.polygon(t,n,o)},e},Dt=async(a,t)=>{const{shapeSvg:e,bbox:s}=await M(a,t,$(t),!0),l=s.width+t.padding,r=s.height+t.padding,n=[{x:-2*r/6,y:0},{x:l+2*r/6,y:0},{x:l-r/6,y:-r},{x:r/6,y:-r}],i=O(e,l,r,n);return i.attr("style",t.style),m(t,i),t.intersect=function(o){return b.polygon(t,n,o)},e},Ht=async(a,t)=>{const{shapeSvg:e,bbox:s}=await M(a,t,$(t),!0),l=s.width+t.padding,r=s.height+t.padding,n=[{x:r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:-2*r/6,y:-r}],i=O(e,l,r,n);return i.attr("style",t.style),m(t,i),t.intersect=function(o){return b.polygon(t,n,o)},e},Nt=async(a,t)=>{const{shapeSvg:e,bbox:s}=await M(a,t,$(t),!0),l=s.width+t.padding,r=s.height+t.padding,n=[{x:0,y:0},{x:l+r/2,y:0},{x:l,y:-r/2},{x:l+r/2,y:-r},{x:0,y:-r}],i=O(e,l,r,n);return i.attr("style",t.style),m(t,i),t.intersect=function(o){return b.polygon(t,n,o)},e},jt=async(a,t)=>{const{shapeSvg:e,bbox:s}=await M(a,t,$(t),!0),l=s.width+t.padding,r=l/2,n=r/(2.5+l/50),i=s.height+n+t.padding,o="M 0,"+n+" a "+r+","+n+" 0,0,0 "+l+" 0 a "+r+","+n+" 0,0,0 "+-l+" 0 l 0,"+i+" a "+r+","+n+" 0,0,0 "+l+" 0 l 0,"+-i,h=e.attr("label-offset-y",n).insert("path",":first-child").attr("style",t.style).attr("d",o).attr("transform","translate("+-l/2+","+-(i/2+n)+")");return m(t,h),t.intersect=function(d){const c=b.rect(t,d),p=c.x-t.x;if(r!=0&&(Math.abs(p)<t.width/2||Math.abs(p)==t.width/2&&Math.abs(c.y-t.y)>t.height/2-n)){let y=n*n*(1-p*p/(r*r));y!=0&&(y=Math.sqrt(y)),y=n-y,d.y-t.y>0&&(y=-y),c.y+=y}return c},e},Ut=async(a,t)=>{const{shapeSvg:e,bbox:s,halfPadding:l}=await M(a,t,"node "+t.classes+" "+t.class,!0),r=e.insert("rect",":first-child"),n=t.positioned?t.width:s.width+t.padding,i=t.positioned?t.height:s.height+t.padding,o=t.positioned?-n/2:-s.width/2-l,h=t.positioned?-i/2:-s.height/2-l;if(r.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",o).attr("y",h).attr("width",n).attr("height",i),t.props){const d=new Set(Object.keys(t.props));t.props.borders&&(G(r,t.props.borders,n,i),d.delete("borders")),d.forEach(c=>{f.warn(`Unknown node property ${c}`)})}return m(t,r),t.intersect=function(d){return b.rect(t,d)},e},At=async(a,t)=>{const{shapeSvg:e,bbox:s,halfPadding:l}=await M(a,t,"node "+t.classes,!0),r=e.insert("rect",":first-child"),n=t.positioned?t.width:s.width+t.padding,i=t.positioned?t.height:s.height+t.padding,o=t.positioned?-n/2:-s.width/2-l,h=t.positioned?-i/2:-s.height/2-l;if(r.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",o).attr("y",h).attr("width",n).attr("height",i),t.props){const d=new Set(Object.keys(t.props));t.props.borders&&(G(r,t.props.borders,n,i),d.delete("borders")),d.forEach(c=>{f.warn(`Unknown node property ${c}`)})}return m(t,r),t.intersect=function(d){return b.rect(t,d)},e},Zt=async(a,t)=>{const{shapeSvg:e}=await M(a,t,"label",!0);f.trace("Classes = ",t.class);const s=e.insert("rect",":first-child"),l=0,r=0;if(s.attr("width",l).attr("height",r),e.attr("class","label edgeLabel"),t.props){const n=new Set(Object.keys(t.props));t.props.borders&&(G(s,t.props.borders,l,r),n.delete("borders")),n.forEach(i=>{f.warn(`Unknown node property ${i}`)})}return m(t,s),t.intersect=function(n){return b.rect(t,n)},e};function G(a,t,e,s){const l=[],r=i=>{l.push(i,0)},n=i=>{l.push(0,i)};t.includes("t")?(f.debug("add top border"),r(e)):n(e),t.includes("r")?(f.debug("add right border"),r(s)):n(s),t.includes("b")?(f.debug("add bottom border"),r(e)):n(e),t.includes("l")?(f.debug("add left border"),r(s)):n(s),a.attr("stroke-dasharray",l.join(" "))}const zt=(a,t)=>{let e;t.classes?e="node "+t.classes:e="node default";const s=a.insert("g").attr("class",e).attr("id",t.domId||t.id),l=s.insert("rect",":first-child"),r=s.insert("line"),n=s.insert("g").attr("class","label"),i=t.labelText.flat?t.labelText.flat():t.labelText;let o="";typeof i=="object"?o=i[0]:o=i,f.info("Label text abc79",o,i,typeof i=="object");const h=n.node().appendChild(P(o,t.labelStyle,!0,!0));let d={width:0,height:0};if(W(w().flowchart.htmlLabels)){const k=h.children[0],g=_(h);d=k.getBoundingClientRect(),g.attr("width",d.width),g.attr("height",d.height)}f.info("Text 2",i);const c=i.slice(1,i.length);let p=h.getBBox();const y=n.node().appendChild(P(c.join?c.join("<br/>"):c,t.labelStyle,!0,!0));if(W(w().flowchart.htmlLabels)){const k=y.children[0],g=_(y);d=k.getBoundingClientRect(),g.attr("width",d.width),g.attr("height",d.height)}const x=t.padding/2;return _(y).attr("transform","translate( "+(d.width>p.width?0:(p.width-d.width)/2)+", "+(p.height+x+5)+")"),_(h).attr("transform","translate( "+(d.width<p.width?0:-(p.width-d.width)/2)+", 0)"),d=n.node().getBBox(),n.attr("transform","translate("+-d.width/2+", "+(-d.height/2-x+3)+")"),l.attr("class","outer title-state").attr("x",-d.width/2-x).attr("y",-d.height/2-x).attr("width",d.width+t.padding).attr("height",d.height+t.padding),r.attr("class","divider").attr("x1",-d.width/2-x).attr("x2",d.width/2+x).attr("y1",-d.height/2-x+p.height+x).attr("y2",-d.height/2-x+p.height+x),m(t,l),t.intersect=function(k){return b.rect(t,k)},s},Ft=async(a,t)=>{const{shapeSvg:e,bbox:s}=await M(a,t,$(t),!0),l=s.height+t.padding,r=s.width+l/4+t.padding,n=e.insert("rect",":first-child").attr("style",t.style).attr("rx",l/2).attr("ry",l/2).attr("x",-r/2).attr("y",-l/2).attr("width",r).attr("height",l);return m(t,n),t.intersect=function(i){return b.rect(t,i)},e},qt=async(a,t)=>{const{shapeSvg:e,bbox:s,halfPadding:l}=await M(a,t,$(t),!0),r=e.insert("circle",":first-child");return r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",s.width/2+l).attr("width",s.width+t.padding).attr("height",s.height+t.padding),f.info("Circle main"),m(t,r),t.intersect=function(n){return f.info("Circle intersect",t,s.width/2+l,n),b.circle(t,s.width/2+l,n)},e},Gt=async(a,t)=>{const{shapeSvg:e,bbox:s,halfPadding:l}=await M(a,t,$(t),!0),r=5,n=e.insert("g",":first-child"),i=n.insert("circle"),o=n.insert("circle");return n.attr("class",t.class),i.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",s.width/2+l+r).attr("width",s.width+t.padding+r*2).attr("height",s.height+t.padding+r*2),o.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",s.width/2+l).attr("width",s.width+t.padding).attr("height",s.height+t.padding),f.info("DoubleCircle main"),m(t,i),t.intersect=function(h){return f.info("DoubleCircle intersect",t,s.width/2+l+r,h),b.circle(t,s.width/2+l+r,h)},e},Vt=async(a,t)=>{const{shapeSvg:e,bbox:s}=await M(a,t,$(t),!0),l=s.width+t.padding,r=s.height+t.padding,n=[{x:0,y:0},{x:l,y:0},{x:l,y:-r},{x:0,y:-r},{x:0,y:0},{x:-8,y:0},{x:l+8,y:0},{x:l+8,y:-r},{x:-8,y:-r},{x:-8,y:0}],i=O(e,l,r,n);return i.attr("style",t.style),m(t,i),t.intersect=function(o){return b.polygon(t,n,o)},e},Jt=(a,t)=>{const e=a.insert("g").attr("class","node default").attr("id",t.domId||t.id),s=e.insert("circle",":first-child");return s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),m(t,s),t.intersect=function(l){return b.circle(t,7,l)},e},tt=(a,t,e)=>{const s=a.insert("g").attr("class","node default").attr("id",t.domId||t.id);let l=70,r=10;e==="LR"&&(l=10,r=70);const n=s.append("rect").attr("x",-1*l/2).attr("y",-1*r/2).attr("width",l).attr("height",r).attr("class","fork-join");return m(t,n),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(i){return b.rect(t,i)},s},Qt=(a,t)=>{const e=a.insert("g").attr("class","node default").attr("id",t.domId||t.id),s=e.insert("circle",":first-child"),l=e.insert("circle",":first-child");return l.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),s.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),m(t,l),t.intersect=function(r){return b.circle(t,7,r)},e},Kt=(a,t)=>{const e=t.padding/2,s=4,l=8;let r;t.classes?r="node "+t.classes:r="node default";const n=a.insert("g").attr("class",r).attr("id",t.domId||t.id),i=n.insert("rect",":first-child"),o=n.insert("line"),h=n.insert("line");let d=0,c=s;const p=n.insert("g").attr("class","label");let y=0;const x=t.classData.annotations&&t.classData.annotations[0],k=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",g=p.node().appendChild(P(k,t.labelStyle,!0,!0));let u=g.getBBox();if(W(w().flowchart.htmlLabels)){const L=g.children[0],S=_(g);u=L.getBoundingClientRect(),S.attr("width",u.width),S.attr("height",u.height)}t.classData.annotations[0]&&(c+=u.height+s,d+=u.width);let v=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(w().flowchart.htmlLabels?v+="<"+t.classData.type+">":v+="<"+t.classData.type+">");const B=p.node().appendChild(P(v,t.labelStyle,!0,!0));_(B).attr("class","classTitle");let C=B.getBBox();if(W(w().flowchart.htmlLabels)){const L=B.children[0],S=_(B);C=L.getBoundingClientRect(),S.attr("width",C.width),S.attr("height",C.height)}c+=C.height+s,C.width>d&&(d=C.width);const X=[];t.classData.members.forEach(L=>{const S=L.getDisplayDetails();let I=S.displayText;w().flowchart.htmlLabels&&(I=I.replace(/</g,"<").replace(/>/g,">"));const R=p.node().appendChild(P(I,S.cssStyle?S.cssStyle:t.labelStyle,!0,!0));let E=R.getBBox();if(W(w().flowchart.htmlLabels)){const z=R.children[0],H=_(R);E=z.getBoundingClientRect(),H.attr("width",E.width),H.attr("height",E.height)}E.width>d&&(d=E.width),c+=E.height+s,X.push(R)}),c+=l;const V=[];if(t.classData.methods.forEach(L=>{const S=L.getDisplayDetails();let I=S.displayText;w().flowchart.htmlLabels&&(I=I.replace(/</g,"<").replace(/>/g,">"));const R=p.node().appendChild(P(I,S.cssStyle?S.cssStyle:t.labelStyle,!0,!0));let E=R.getBBox();if(W(w().flowchart.htmlLabels)){const z=R.children[0],H=_(R);E=z.getBoundingClientRect(),H.attr("width",E.width),H.attr("height",E.height)}E.width>d&&(d=E.width),c+=E.height+s,V.push(R)}),c+=l,x){let L=(d-u.width)/2;_(g).attr("transform","translate( "+(-1*d/2+L)+", "+-1*c/2+")"),y=u.height+s}let it=(d-C.width)/2;return _(B).attr("transform","translate( "+(-1*d/2+it)+", "+(-1*c/2+y)+")"),y+=C.height+s,o.attr("class","divider").attr("x1",-d/2-e).attr("x2",d/2+e).attr("y1",-c/2-e+l+y).attr("y2",-c/2-e+l+y),y+=l,X.forEach(L=>{_(L).attr("transform","translate( "+-d/2+", "+(-1*c/2+y+l/2)+")");const S=L==null?void 0:L.getBBox();y+=((S==null?void 0:S.height)??0)+s}),y+=l,h.attr("class","divider").attr("x1",-d/2-e).attr("x2",d/2+e).attr("y1",-c/2-e+l+y).attr("y2",-c/2-e+l+y),y+=l,V.forEach(L=>{_(L).attr("transform","translate( "+-d/2+", "+(-1*c/2+y)+")");const S=L==null?void 0:L.getBBox();y+=((S==null?void 0:S.height)??0)+s}),i.attr("style",t.style).attr("class","outer title-state").attr("x",-d/2-e).attr("y",-(c/2)-e).attr("width",d+t.padding).attr("height",c+t.padding),m(t,i),t.intersect=function(L){return b.rect(t,L)},n},rt={rhombus:K,composite:At,question:K,rect:Ut,labelRect:Zt,rectWithTitle:zt,choice:Wt,circle:qt,doublecircle:Gt,stadium:Ft,hexagon:Ot,block_arrow:Rt,rect_left_inv_arrow:Xt,lean_right:Yt,lean_left:It,trapezoid:Dt,inv_trapezoid:Ht,rect_right_inv_arrow:Nt,cylinder:jt,start:Jt,end:Qt,note:Et,subroutine:Vt,fork:tt,join:tt,class_box:Kt};let D={};const dr=async(a,t,e)=>{let s,l;if(t.link){let r;w().securityLevel==="sandbox"?r="_top":t.linkTarget&&(r=t.linkTarget||"_blank"),s=a.insert("svg:a").attr("xlink:href",t.link).attr("target",r),l=await rt[t.shape](s,t,e)}else l=await rt[t.shape](a,t,e),s=l;return t.tooltip&&l.attr("title",t.tooltip),t.class&&l.attr("class","node default "+t.class),s.attr("data-node","true"),s.attr("data-id",t.id),D[t.id]=s,t.haveCallback&&D[t.id].attr("class",D[t.id].attr("class")+" clickable"),s},hr=(a,t)=>{D[t.id]=a},cr=()=>{D={}},yr=a=>{const t=D[a.id];f.trace("Transforming node",a.diff,a,"translate("+(a.x-a.width/2-5)+", "+a.width/2+")");const e=8,s=a.diff||0;return a.clusterNode?t.attr("transform","translate("+(a.x+s-a.width/2)+", "+(a.y-a.height/2-e)+")"):t.attr("transform","translate("+a.x+", "+a.y+")"),s},tr=({flowchart:a})=>{var t,e;const s=((t=a==null?void 0:a.subGraphTitleMargin)==null?void 0:t.top)??0,l=((e=a==null?void 0:a.subGraphTitleMargin)==null?void 0:e.bottom)??0,r=s+l;return{subGraphTitleTopMargin:s,subGraphTitleBottomMargin:l,subGraphTitleTotalMargin:r}},Y={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function j(a,t){if(a===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};a=A(a),t=A(t);const[e,s]=[a.x,a.y],[l,r]=[t.x,t.y],n=l-e,i=r-s;return{angle:Math.atan(i/n),deltaX:n,deltaY:i}}const A=a=>Array.isArray(a)?{x:a[0],y:a[1]}:a,rr=a=>({x:function(t,e,s){let l=0;if(e===0&&Object.hasOwn(Y,a.arrowTypeStart)){const{angle:r,deltaX:n}=j(s[0],s[1]);l=Y[a.arrowTypeStart]*Math.cos(r)*(n>=0?1:-1)}else if(e===s.length-1&&Object.hasOwn(Y,a.arrowTypeEnd)){const{angle:r,deltaX:n}=j(s[s.length-1],s[s.length-2]);l=Y[a.arrowTypeEnd]*Math.cos(r)*(n>=0?1:-1)}return A(t).x+l},y:function(t,e,s){let l=0;if(e===0&&Object.hasOwn(Y,a.arrowTypeStart)){const{angle:r,deltaY:n}=j(s[0],s[1]);l=Y[a.arrowTypeStart]*Math.abs(Math.sin(r))*(n>=0?1:-1)}else if(e===s.length-1&&Object.hasOwn(Y,a.arrowTypeEnd)){const{angle:r,deltaY:n}=j(s[s.length-1],s[s.length-2]);l=Y[a.arrowTypeEnd]*Math.abs(Math.sin(r))*(n>=0?1:-1)}return A(t).y+l}}),er=(a,t,e,s,l)=>{t.arrowTypeStart&&et(a,"start",t.arrowTypeStart,e,s,l),t.arrowTypeEnd&&et(a,"end",t.arrowTypeEnd,e,s,l)},ar={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},et=(a,t,e,s,l,r)=>{const n=ar[e];if(!n){f.warn(`Unknown arrow type: ${e}`);return}const i=t==="start"?"Start":"End";a.attr(`marker-${t}`,`url(${s}#${l}_${r}-${n}${i})`)};let Z={},T={};const pr=()=>{Z={},T={}},gr=(a,t)=>{const e=W(w().flowchart.htmlLabels),s=t.labelType==="markdown"?nt(a,t.label,{style:t.labelStyle,useHtmlLabels:e,addSvgBackground:!0}):P(t.label,t.labelStyle),l=a.insert("g").attr("class","edgeLabel"),r=l.insert("g").attr("class","label");r.node().appendChild(s);let n=s.getBBox();if(e){const o=s.children[0],h=_(s);n=o.getBoundingClientRect(),h.attr("width",n.width),h.attr("height",n.height)}r.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"),Z[t.id]=l,t.width=n.width,t.height=n.height;let i;if(t.startLabelLeft){const o=P(t.startLabelLeft,t.labelStyle),h=a.insert("g").attr("class","edgeTerminals"),d=h.insert("g").attr("class","inner");i=d.node().appendChild(o);const c=o.getBBox();d.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startLeft=h,U(i,t.startLabelLeft)}if(t.startLabelRight){const o=P(t.startLabelRight,t.labelStyle),h=a.insert("g").attr("class","edgeTerminals"),d=h.insert("g").attr("class","inner");i=h.node().appendChild(o),d.node().appendChild(o);const c=o.getBBox();d.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startRight=h,U(i,t.startLabelRight)}if(t.endLabelLeft){const o=P(t.endLabelLeft,t.labelStyle),h=a.insert("g").attr("class","edgeTerminals"),d=h.insert("g").attr("class","inner");i=d.node().appendChild(o);const c=o.getBBox();d.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),h.node().appendChild(o),T[t.id]||(T[t.id]={}),T[t.id].endLeft=h,U(i,t.endLabelLeft)}if(t.endLabelRight){const o=P(t.endLabelRight,t.labelStyle),h=a.insert("g").attr("class","edgeTerminals"),d=h.insert("g").attr("class","inner");i=d.node().appendChild(o);const c=o.getBBox();d.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),h.node().appendChild(o),T[t.id]||(T[t.id]={}),T[t.id].endRight=h,U(i,t.endLabelRight)}return s};function U(a,t){w().flowchart.htmlLabels&&a&&(a.style.width=t.length*9+"px",a.style.height="12px")}const xr=(a,t)=>{f.debug("Moving label abc88 ",a.id,a.label,Z[a.id],t);let e=t.updatedPath?t.updatedPath:t.originalPath;const s=w(),{subGraphTitleTotalMargin:l}=tr(s);if(a.label){const r=Z[a.id];let n=a.x,i=a.y;if(e){const o=N.calcLabelPosition(e);f.debug("Moving label "+a.label+" from (",n,",",i,") to (",o.x,",",o.y,") abc88"),t.updatedPath&&(n=o.x,i=o.y)}r.attr("transform",`translate(${n}, ${i+l/2})`)}if(a.startLabelLeft){const r=T[a.id].startLeft;let n=a.x,i=a.y;if(e){const o=N.calcTerminalLabelPosition(a.arrowTypeStart?10:0,"start_left",e);n=o.x,i=o.y}r.attr("transform",`translate(${n}, ${i})`)}if(a.startLabelRight){const r=T[a.id].startRight;let n=a.x,i=a.y;if(e){const o=N.calcTerminalLabelPosition(a.arrowTypeStart?10:0,"start_right",e);n=o.x,i=o.y}r.attr("transform",`translate(${n}, ${i})`)}if(a.endLabelLeft){const r=T[a.id].endLeft;let n=a.x,i=a.y;if(e){const o=N.calcTerminalLabelPosition(a.arrowTypeEnd?10:0,"end_left",e);n=o.x,i=o.y}r.attr("transform",`translate(${n}, ${i})`)}if(a.endLabelRight){const r=T[a.id].endRight;let n=a.x,i=a.y;if(e){const o=N.calcTerminalLabelPosition(a.arrowTypeEnd?10:0,"end_right",e);n=o.x,i=o.y}r.attr("transform",`translate(${n}, ${i})`)}},nr=(a,t)=>{const e=a.x,s=a.y,l=Math.abs(t.x-e),r=Math.abs(t.y-s),n=a.width/2,i=a.height/2;return l>=n||r>=i},sr=(a,t,e)=>{f.debug(`intersection calc abc89:
|
|
2
2
|
outsidePoint: ${JSON.stringify(t)}
|
|
3
3
|
insidePoint : ${JSON.stringify(e)}
|
|
4
4
|
node : x:${a.x} y:${a.y} w:${a.width} h:${a.height}`);const s=a.x,l=a.y,r=Math.abs(s-e.x),n=a.width/2;let i=e.x<t.x?n-r:n+r;const o=a.height/2,h=Math.abs(t.y-e.y),d=Math.abs(t.x-e.x);if(Math.abs(l-t.y)*n>Math.abs(s-t.x)*o){let c=e.y<t.y?t.y-o-l:l-o-t.y;i=d*c/h;const p={x:e.x<t.x?e.x+i:e.x-d+i,y:e.y<t.y?e.y+h-c:e.y-h+c};return i===0&&(p.x=t.x,p.y=t.y),d===0&&(p.x=t.x),h===0&&(p.y=t.y),f.debug(`abc89 topp/bott calc, Q ${h}, q ${c}, R ${d}, r ${i}`,p),p}else{e.x<t.x?i=t.x-n-s:i=s-n-t.x;let c=h*i/d,p=e.x<t.x?e.x+d-i:e.x-d+i,y=e.y<t.y?e.y+c:e.y-c;return f.debug(`sides calc abc89, Q ${h}, q ${c}, R ${d}, r ${i}`,{_x:p,_y:y}),i===0&&(p=t.x,y=t.y),d===0&&(p=t.x),h===0&&(y=t.y),{x:p,y}}},at=(a,t)=>{f.debug("abc88 cutPathAtIntersect",a,t);let e=[],s=a[0],l=!1;return a.forEach(r=>{if(!nr(t,r)&&!l){const n=sr(t,s,r);let i=!1;e.forEach(o=>{i=i||o.x===n.x&&o.y===n.y}),e.some(o=>o.x===n.x&&o.y===n.y)||e.push(n),l=!0}else s=r,l||e.push(r)}),e},fr=function(a,t,e,s,l,r,n){let i=e.points;f.debug("abc88 InsertEdge: edge=",e,"e=",t);let o=!1;const h=r.node(t.v);var d=r.node(t.w);d!=null&&d.intersect&&h!=null&&h.intersect&&(i=i.slice(1,e.points.length-1),i.unshift(h.intersect(i[0])),i.push(d.intersect(i[i.length-1]))),e.toCluster&&(f.debug("to cluster abc88",s[e.toCluster]),i=at(e.points,s[e.toCluster].node),o=!0),e.fromCluster&&(f.debug("from cluster abc88",s[e.fromCluster]),i=at(i.reverse(),s[e.fromCluster].node).reverse(),o=!0);const c=i.filter(C=>!Number.isNaN(C.y));let p=ot;e.curve&&(l==="graph"||l==="flowchart")&&(p=e.curve);const{x:y,y:x}=rr(e),k=lt().x(y).y(x).curve(p);let g;switch(e.thickness){case"normal":g="edge-thickness-normal";break;case"thick":g="edge-thickness-thick";break;case"invisible":g="edge-thickness-thick";break;default:g=""}switch(e.pattern){case"solid":g+=" edge-pattern-solid";break;case"dotted":g+=" edge-pattern-dotted";break;case"dashed":g+=" edge-pattern-dashed";break}const u=a.append("path").attr("d",k(c)).attr("id",e.id).attr("class"," "+g+(e.classes?" "+e.classes:"")).attr("style",e.style);let v="";(w().flowchart.arrowMarkerAbsolute||w().state.arrowMarkerAbsolute)&&(v=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,v=v.replace(/\(/g,"\\("),v=v.replace(/\)/g,"\\)")),er(u,e,v,n,l);let B={};return o&&(B.updatedPath=i),B.originalPath=e.points,B};export{_t as E,M,P as R,er as a,or as c,xr as d,pr as f,fr as g,dr as h,m,hr as o,yr as p,rr as r,tr as t,gr as x,cr as y};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as ft,M as Et,L as mt,D as gt,R as bt,N as kt,E as Z,O as H,F as et,f as Ot,Q as Rt,I as Nt,d as xt,o as Tt,Z as At}from"./index
|
|
1
|
+
import{j as ft,M as Et,L as mt,D as gt,R as bt,N as kt,E as Z,O as H,F as et,f as Ot,Q as Rt,I as Nt,d as xt,o as Tt,Z as At}from"./index--DBVktm0.js";import{K as Mt}from"./graph-BV6jB5rk-CdEYXCfk.js";import{A as wt}from"./layout-LXMv3mSS-DxzYqwJj.js";const It=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function vt(t){return typeof t=="string"&&It.test(t)}const T=[];for(let t=0;t<256;++t)T.push((t+256).toString(16).slice(1));function $t(t,e=0){return T[t[e+0]]+T[t[e+1]]+T[t[e+2]]+T[t[e+3]]+"-"+T[t[e+4]]+T[t[e+5]]+"-"+T[t[e+6]]+T[t[e+7]]+"-"+T[t[e+8]]+T[t[e+9]]+"-"+T[t[e+10]]+T[t[e+11]]+T[t[e+12]]+T[t[e+13]]+T[t[e+14]]+T[t[e+15]]}function Lt(t){if(!vt(t))throw TypeError("Invalid UUID");let e;const r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}function Dt(t){t=unescape(encodeURIComponent(t));const e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e}const St="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Bt="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Ct(t,e,r){function d(l,p,h,c){var u;if(typeof l=="string"&&(l=Dt(l)),typeof p=="string"&&(p=Lt(p)),((u=p)===null||u===void 0?void 0:u.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let f=new Uint8Array(16+l.length);if(f.set(p),f.set(l,p.length),f=r(f),f[6]=f[6]&15|e,f[8]=f[8]&63|128,h){c=c||0;for(let E=0;E<16;++E)h[c+E]=f[E];return h}return $t(f)}try{d.name=t}catch{}return d.DNS=St,d.URL=Bt,d}function Yt(t,e,r,d){switch(t){case 0:return e&r^~e&d;case 1:return e^r^d;case 2:return e&r^e&d^r&d;case 3:return e^r^d}}function rt(t,e){return t<<e|t>>>32-e}function Zt(t){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const h=unescape(encodeURIComponent(t));t=[];for(let c=0;c<h.length;++c)t.push(h.charCodeAt(c))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);const d=t.length/4+2,l=Math.ceil(d/16),p=new Array(l);for(let h=0;h<l;++h){const c=new Uint32Array(16);for(let u=0;u<16;++u)c[u]=t[h*64+u*4]<<24|t[h*64+u*4+1]<<16|t[h*64+u*4+2]<<8|t[h*64+u*4+3];p[h]=c}p[l-1][14]=(t.length-1)*8/Math.pow(2,32),p[l-1][14]=Math.floor(p[l-1][14]),p[l-1][15]=(t.length-1)*8&4294967295;for(let h=0;h<l;++h){const c=new Uint32Array(80);for(let _=0;_<16;++_)c[_]=p[h][_];for(let _=16;_<80;++_)c[_]=rt(c[_-3]^c[_-8]^c[_-14]^c[_-16],1);let u=r[0],f=r[1],E=r[2],m=r[3],g=r[4];for(let _=0;_<80;++_){const I=Math.floor(_/20),S=rt(u,5)+Yt(I,f,E,m)+g+e[I]+c[_]>>>0;g=m,m=E,E=rt(f,30)>>>0,f=u,u=S}r[0]=r[0]+u>>>0,r[1]=r[1]+f>>>0,r[2]=r[2]+E>>>0,r[3]=r[3]+m>>>0,r[4]=r[4]+g>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}const Ft=Ct("v5",80,Zt);var at=function(){var t=function(A,i,o,n){for(o=o||{},n=A.length;n--;o[A[n]]=i);return o},e=[6,8,10,20,22,24,26,27,28],r=[1,10],d=[1,11],l=[1,12],p=[1,13],h=[1,14],c=[1,15],u=[1,21],f=[1,22],E=[1,23],m=[1,24],g=[1,25],_=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],I=[1,34],S=[27,28,46,47],F=[41,42,43,44,45],P=[17,34],B=[1,54],N=[1,53],M=[17,34,36,38],k={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",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:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(A,i,o,n,y,a,x){var s=a.length-1;switch(y){case 1:break;case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:n.addEntity(a[s-4]),n.addEntity(a[s-2]),n.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 9:n.addEntity(a[s-3]),n.addAttributes(a[s-3],a[s-1]);break;case 10:n.addEntity(a[s-2]);break;case 11:n.addEntity(a[s]);break;case 12:n.addEntity(a[s-6],a[s-4]),n.addAttributes(a[s-6],a[s-1]);break;case 13:n.addEntity(a[s-5],a[s-3]);break;case 14:n.addEntity(a[s-3],a[s-1]);break;case 15:case 16:this.$=a[s].trim(),n.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),n.setAccDescription(this.$);break;case 19:case 43:this.$=a[s];break;case 20:case 41:case 42:this.$=a[s].replace(/"/g,"");break;case 21:case 29:this.$=[a[s]];break;case 22:a[s].push(a[s-1]),this.$=a[s];break;case 23:this.$={attributeType:a[s-1],attributeName:a[s]};break;case 24:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeKeyTypeList:a[s]};break;case 25:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeComment:a[s]};break;case 26:this.$={attributeType:a[s-3],attributeName:a[s-2],attributeKeyTypeList:a[s-1],attributeComment:a[s]};break;case 27:case 28:case 31:this.$=a[s];break;case 30:a[s-2].push(a[s]),this.$=a[s-2];break;case 32:this.$=a[s].replace(/"/g,"");break;case 33:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 34:this.$=n.Cardinality.ZERO_OR_ONE;break;case 35:this.$=n.Cardinality.ZERO_OR_MORE;break;case 36:this.$=n.Cardinality.ONE_OR_MORE;break;case 37:this.$=n.Cardinality.ONLY_ONE;break;case 38:this.$=n.Cardinality.MD_PARENT;break;case 39:this.$=n.Identification.NON_IDENTIFYING;break;case 40:this.$=n.Identification.IDENTIFYING;break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:d,24:l,26:p,27:h,28:c},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:d,24:l,26:p,27:h,28:c},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:u,42:f,43:E,44:m,45:g}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(_,[2,19]),t(_,[2,20]),t(e,[2,4]),{11:29,27:h,28:c},{16:30,17:[1,31],29:32,30:33,34:I},{11:35,27:h,28:c},{40:36,46:[1,37],47:[1,38]},t(S,[2,34]),t(S,[2,35]),t(S,[2,36]),t(S,[2,37]),t(S,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:I},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:u,42:f,43:E,44:m,45:g},t(F,[2,39]),t(F,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(P,[2,23],{32:50,33:51,35:52,37:B,38:N}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(P,[2,24],{33:56,36:[1,57],38:N}),t(P,[2,25]),t(M,[2,29]),t(P,[2,32]),t(M,[2,31]),{16:58,17:[1,59],29:32,30:33,34:I},t(P,[2,26]),{35:60,37:B},{17:[1,61]},t(e,[2,13]),t(M,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(A,i){if(i.recoverable)this.trace(A);else{var o=new Error(A);throw o.hash=i,o}},parse:function(A){var i=this,o=[0],n=[],y=[null],a=[],x=this.table,s="",X=0,nt=0,dt=2,st=1,yt=a.slice.call(arguments,1),R=Object.create(this.lexer),W={yy:{}};for(var V in this.yy)Object.prototype.hasOwnProperty.call(this.yy,V)&&(W.yy[V]=this.yy[V]);R.setInput(A,W.yy),W.yy.lexer=R,W.yy.parser=this,typeof R.yylloc>"u"&&(R.yylloc={});var J=R.yylloc;a.push(J);var pt=R.options&&R.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _t(){var Y;return Y=n.pop()||R.lex()||st,typeof Y!="number"&&(Y instanceof Array&&(n=Y,Y=n.pop()),Y=i.symbols_[Y]||Y),Y}for(var w,U,v,q,z={},j,C,ot,G;;){if(U=o[o.length-1],this.defaultActions[U]?v=this.defaultActions[U]:((w===null||typeof w>"u")&&(w=_t()),v=x[U]&&x[U][w]),typeof v>"u"||!v.length||!v[0]){var tt="";G=[];for(j in x[U])this.terminals_[j]&&j>dt&&G.push("'"+this.terminals_[j]+"'");R.showPosition?tt="Parse error on line "+(X+1)+`:
|
|
2
2
|
`+R.showPosition()+`
|
|
3
3
|
Expecting `+G.join(", ")+", got '"+(this.terminals_[w]||w)+"'":tt="Parse error on line "+(X+1)+": Unexpected "+(w==st?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(tt,{text:R.match,token:this.terminals_[w]||w,line:R.yylineno,loc:J,expected:G})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+w);switch(v[0]){case 1:o.push(w),y.push(R.yytext),a.push(R.yylloc),o.push(v[1]),w=null,nt=R.yyleng,s=R.yytext,X=R.yylineno,J=R.yylloc;break;case 2:if(C=this.productions_[v[1]][1],z.$=y[y.length-C],z._$={first_line:a[a.length-(C||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(C||1)].first_column,last_column:a[a.length-1].last_column},pt&&(z._$.range=[a[a.length-(C||1)].range[0],a[a.length-1].range[1]]),q=this.performAction.apply(z,[s,nt,X,W.yy,v[1],y,a].concat(yt)),typeof q<"u")return q;C&&(o=o.slice(0,-1*C*2),y=y.slice(0,-1*C),a=a.slice(0,-1*C)),o.push(this.productions_[v[1]][0]),y.push(z.$),a.push(z._$),ot=x[o[o.length-2]][o[o.length-1]],o.push(ot);break;case 3:return!0}}return!0}},O=function(){var A={EOF:1,parseError:function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},setInput:function(i,o){return this.yy=o||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var o=i.length,n=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===y.length?this.yylloc.first_column:0)+y[y.length-n.length].length-n[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),o=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
package/dist/assets/{flowDb-c6c81e3f-CRRW-bQO-G1WHNmUV.js → flowDb-c6c81e3f-CRRW-bQO-HITLukvy.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as Bt,M as mt,D as xt,L as vt,R as Lt,N as $t,aK as It,m as Rt,O as J1,E as ee,I as Nt,f as de,F as R1}from"./index-BaIhc-dj.js";var pe=function(){var t=function(j,a,l,n){for(l=l||{},n=j.length;n--;l[j[n]]=a);return l},r=[1,4],i=[1,3],u=[1,5],c=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],D=[2,2],d=[1,13],P=[1,14],g=[1,15],N=[1,16],H=[1,23],o1=[1,25],p1=[1,26],A1=[1,27],f=[1,49],T=[1,48],w1=[1,29],P1=[1,30],G1=[1,31],V1=[1,32],M1=[1,33],C=[1,44],_=[1,46],B=[1,42],m=[1,47],x=[1,43],v=[1,50],L=[1,45],$=[1,51],I=[1,52],U1=[1,34],K1=[1,35],X1=[1,36],Y1=[1,37],$1=[1,57],y=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Q=[1,61],J=[1,60],Z=[1,62],H1=[8,9,11,73,75],y1=[1,88],E1=[1,93],k1=[1,92],b1=[1,89],g1=[1,85],D1=[1,91],F1=[1,87],T1=[1,94],S1=[1,90],C1=[1,95],_1=[1,86],z1=[8,9,10,11,73,75],R=[8,9,10,11,44,73,75],M=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],fe=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],I1=[42,58,86,99,102,103,106,108,111,112,113],ye=[1,121],Ee=[1,120],ke=[1,128],be=[1,142],ge=[1,143],De=[1,144],Fe=[1,145],Te=[1,130],Se=[1,132],Ce=[1,136],_e=[1,137],Be=[1,138],me=[1,139],xe=[1,140],ve=[1,141],Le=[1,146],$e=[1,147],Ie=[1,126],Re=[1,127],Ne=[1,134],Oe=[1,129],we=[1,133],Pe=[1,131],ne=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Ge=[1,149],F=[8,9,11],U=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],o=[1,169],O=[1,165],w=[1,166],h=[1,170],p=[1,167],A=[1,168],B1=[75,113,116],E=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Ve=[10,103],h1=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],q=[1,235],e1=[1,233],t1=[1,237],s1=[1,231],u1=[1,232],i1=[1,234],n1=[1,236],r1=[1,238],m1=[1,255],Me=[8,9,11,103],W=[8,9,10,11,58,81,102,103,106,107,108,109],re={trace:function(){},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,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$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",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},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],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,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],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(j,a,l,n,k,e,G){var s=e.length-1;switch(k){case 2:this.$=[];break;case 3:(!Array.isArray(e[s])||e[s].length>0)&&e[s-1].push(e[s]),this.$=e[s-1];break;case 4:case 176:this.$=e[s];break;case 11:n.setDirection("TB"),this.$="TB";break;case 12:n.setDirection(e[s-1]),this.$=e[s-1];break;case 27:this.$=e[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=n.addSubGraph(e[s-6],e[s-1],e[s-4]);break;case 34:this.$=n.addSubGraph(e[s-3],e[s-1],e[s-3]);break;case 35:this.$=n.addSubGraph(void 0,e[s-1],void 0);break;case 37:this.$=e[s].trim(),n.setAccTitle(this.$);break;case 38:case 39:this.$=e[s].trim(),n.setAccDescription(this.$);break;case 43:n.addLink(e[s-2].stmt,e[s],e[s-1]),this.$={stmt:e[s],nodes:e[s].concat(e[s-2].nodes)};break;case 44:n.addLink(e[s-3].stmt,e[s-1],e[s-2]),this.$={stmt:e[s-1],nodes:e[s-1].concat(e[s-3].nodes)};break;case 45:this.$={stmt:e[s-1],nodes:e[s-1]};break;case 46:this.$={stmt:e[s],nodes:e[s]};break;case 47:this.$=[e[s]];break;case 48:this.$=e[s-4].concat(e[s]);break;case 49:this.$=e[s];break;case 50:this.$=e[s-2],n.setClass(e[s-2],e[s]);break;case 51:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"square");break;case 52:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"doublecircle");break;case 53:this.$=e[s-5],n.addVertex(e[s-5],e[s-2],"circle");break;case 54:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"ellipse");break;case 55:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"stadium");break;case 56:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"subroutine");break;case 57:this.$=e[s-7],n.addVertex(e[s-7],e[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[e[s-5],e[s-3]]]));break;case 58:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"cylinder");break;case 59:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"round");break;case 60:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"diamond");break;case 61:this.$=e[s-5],n.addVertex(e[s-5],e[s-2],"hexagon");break;case 62:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"odd");break;case 63:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"trapezoid");break;case 64:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"inv_trapezoid");break;case 65:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"lean_right");break;case 66:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"lean_left");break;case 67:this.$=e[s],n.addVertex(e[s]);break;case 68:e[s-1].text=e[s],this.$=e[s-1];break;case 69:case 70:e[s-2].text=e[s-1],this.$=e[s-2];break;case 71:this.$=e[s];break;case 72:var K=n.destructLink(e[s],e[s-2]);this.$={type:K.type,stroke:K.stroke,length:K.length,text:e[s-1]};break;case 73:this.$={text:e[s],type:"text"};break;case 74:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 75:this.$={text:e[s],type:"string"};break;case 76:this.$={text:e[s],type:"markdown"};break;case 77:var K=n.destructLink(e[s]);this.$={type:K.type,stroke:K.stroke,length:K.length};break;case 78:this.$=e[s-1];break;case 79:this.$={text:e[s],type:"text"};break;case 80:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 81:this.$={text:e[s],type:"string"};break;case 82:case 97:this.$={text:e[s],type:"markdown"};break;case 94:this.$={text:e[s],type:"text"};break;case 95:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 96:this.$={text:e[s],type:"text"};break;case 98:this.$=e[s-4],n.addClass(e[s-2],e[s]);break;case 99:this.$=e[s-4],n.setClass(e[s-2],e[s]);break;case 100:case 108:this.$=e[s-1],n.setClickEvent(e[s-1],e[s]);break;case 101:case 109:this.$=e[s-3],n.setClickEvent(e[s-3],e[s-2]),n.setTooltip(e[s-3],e[s]);break;case 102:this.$=e[s-2],n.setClickEvent(e[s-2],e[s-1],e[s]);break;case 103:this.$=e[s-4],n.setClickEvent(e[s-4],e[s-3],e[s-2]),n.setTooltip(e[s-4],e[s]);break;case 104:this.$=e[s-2],n.setLink(e[s-2],e[s]);break;case 105:this.$=e[s-4],n.setLink(e[s-4],e[s-2]),n.setTooltip(e[s-4],e[s]);break;case 106:this.$=e[s-4],n.setLink(e[s-4],e[s-2],e[s]);break;case 107:this.$=e[s-6],n.setLink(e[s-6],e[s-4],e[s]),n.setTooltip(e[s-6],e[s-2]);break;case 110:this.$=e[s-1],n.setLink(e[s-1],e[s]);break;case 111:this.$=e[s-3],n.setLink(e[s-3],e[s-2]),n.setTooltip(e[s-3],e[s]);break;case 112:this.$=e[s-3],n.setLink(e[s-3],e[s-2],e[s]);break;case 113:this.$=e[s-5],n.setLink(e[s-5],e[s-4],e[s]),n.setTooltip(e[s-5],e[s-2]);break;case 114:this.$=e[s-4],n.addVertex(e[s-2],void 0,void 0,e[s]);break;case 115:this.$=e[s-4],n.updateLink([e[s-2]],e[s]);break;case 116:this.$=e[s-4],n.updateLink(e[s-2],e[s]);break;case 117:this.$=e[s-8],n.updateLinkInterpolate([e[s-6]],e[s-2]),n.updateLink([e[s-6]],e[s]);break;case 118:this.$=e[s-8],n.updateLinkInterpolate(e[s-6],e[s-2]),n.updateLink(e[s-6],e[s]);break;case 119:this.$=e[s-6],n.updateLinkInterpolate([e[s-4]],e[s]);break;case 120:this.$=e[s-6],n.updateLinkInterpolate(e[s-4],e[s]);break;case 121:case 123:this.$=[e[s]];break;case 122:case 124:e[s-2].push(e[s]),this.$=e[s-2];break;case 126:this.$=e[s-1]+e[s];break;case 174:this.$=e[s];break;case 175:this.$=e[s-1]+""+e[s];break;case 177:this.$=e[s-1]+""+e[s];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:r,10:i,12:u},{1:[3]},t(c,D,{5:6}),{4:7,9:r,10:i,12:u},{4:8,9:r,10:i,12:u},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:d,9:P,10:g,11:N,20:17,22:18,23:19,24:20,25:21,26:22,27:H,33:24,34:o1,36:p1,38:A1,40:28,41:38,42:f,43:39,45:40,58:T,81:w1,82:P1,83:G1,84:V1,85:M1,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I,118:U1,119:K1,120:X1,121:Y1},t(c,[2,9]),t(c,[2,10]),t(c,[2,11]),{8:[1,54],9:[1,55],10:$1,15:53,18:56},t(y,[2,3]),t(y,[2,4]),t(y,[2,5]),t(y,[2,6]),t(y,[2,7]),t(y,[2,8]),{8:Q,9:J,11:Z,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:Q,9:J,11:Z,21:66},{8:Q,9:J,11:Z,21:67},{8:Q,9:J,11:Z,21:68},{8:Q,9:J,11:Z,21:69},{8:Q,9:J,11:Z,21:70},{8:Q,9:J,10:[1,71],11:Z,21:72},t(y,[2,36]),{35:[1,73]},{37:[1,74]},t(y,[2,39]),t(H1,[2,46],{18:75,10:$1}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:y1,42:E1,58:k1,77:[1,83],86:b1,92:[1,80],94:[1,81],98:82,102:g1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1,117:84},t(y,[2,178]),t(y,[2,179]),t(y,[2,180]),t(y,[2,181]),t(z1,[2,47]),t(z1,[2,49],{44:[1,96]}),t(R,[2,67],{110:109,29:[1,97],42:f,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:T,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:C,99:_,102:B,103:m,106:x,108:v,111:L,112:$,113:I}),t(M,[2,174]),t(M,[2,135]),t(M,[2,136]),t(M,[2,137]),t(M,[2,138]),t(M,[2,139]),t(M,[2,140]),t(M,[2,141]),t(M,[2,142]),t(M,[2,143]),t(M,[2,144]),t(M,[2,145]),t(c,[2,12]),t(c,[2,18]),t(c,[2,19]),{9:[1,110]},t(fe,[2,26],{18:111,10:$1}),t(y,[2,27]),{40:112,41:38,42:f,43:39,45:40,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},t(y,[2,40]),t(y,[2,41]),t(y,[2,42]),t(I1,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:ye,116:Ee},t([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),t(y,[2,28]),t(y,[2,29]),t(y,[2,30]),t(y,[2,31]),t(y,[2,32]),{10:ke,12:be,14:ge,27:De,28:122,32:Fe,42:Te,58:Se,73:Ce,77:[1,124],78:[1,125],80:135,81:_e,82:Be,83:me,84:xe,85:ve,86:Le,87:$e,88:123,102:Ie,106:Re,108:Ne,111:Oe,112:we,113:Pe},t(ne,D,{5:148}),t(y,[2,37]),t(y,[2,38]),t(H1,[2,45],{42:Ge}),{42:f,45:150,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},{99:[1,151],100:152,102:[1,153]},{42:f,45:154,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},{42:f,45:155,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},t(F,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},t(F,[2,108],{117:160,10:[1,159],14:y1,42:E1,58:k1,86:b1,102:g1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1}),t(F,[2,110],{10:[1,161]}),t(U,[2,176]),t(U,[2,163]),t(U,[2,164]),t(U,[2,165]),t(U,[2,166]),t(U,[2,167]),t(U,[2,168]),t(U,[2,169]),t(U,[2,170]),t(U,[2,171]),t(U,[2,172]),t(U,[2,173]),{42:f,45:162,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},{30:163,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:171,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:173,48:[1,172],65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:174,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:175,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:176,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{106:[1,177]},{30:178,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:179,63:[1,180],65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:181,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:182,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:183,65:o,77:O,78:w,79:164,113:h,114:p,115:A},t(M,[2,175]),t(c,[2,20]),t(fe,[2,25]),t(H1,[2,43],{18:184,10:$1}),t(I1,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{75:[1,188],76:189,113:ye,116:Ee},t(B1,[2,73]),t(B1,[2,75]),t(B1,[2,76]),t(B1,[2,161]),t(B1,[2,162]),{8:Q,9:J,10:ke,11:Z,12:be,14:ge,21:191,27:De,29:[1,190],32:Fe,42:Te,58:Se,73:Ce,80:135,81:_e,82:Be,83:me,84:xe,85:ve,86:Le,87:$e,88:192,102:Ie,106:Re,108:Ne,111:Oe,112:we,113:Pe},t(E,[2,94]),t(E,[2,96]),t(E,[2,97]),t(E,[2,150]),t(E,[2,151]),t(E,[2,152]),t(E,[2,153]),t(E,[2,154]),t(E,[2,155]),t(E,[2,156]),t(E,[2,157]),t(E,[2,158]),t(E,[2,159]),t(E,[2,160]),t(E,[2,83]),t(E,[2,84]),t(E,[2,85]),t(E,[2,86]),t(E,[2,87]),t(E,[2,88]),t(E,[2,89]),t(E,[2,90]),t(E,[2,91]),t(E,[2,92]),t(E,[2,93]),{6:11,7:12,8:d,9:P,10:g,11:N,20:17,22:18,23:19,24:20,25:21,26:22,27:H,32:[1,193],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:f,43:39,45:40,58:T,81:w1,82:P1,83:G1,84:V1,85:M1,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I,118:U1,119:K1,120:X1,121:Y1},{10:$1,18:194},{10:[1,195],42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:109,111:L,112:$,113:I},{10:[1,196]},{10:[1,197],103:[1,198]},t(Ve,[2,121]),{10:[1,199],42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:109,111:L,112:$,113:I},{10:[1,200],42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:109,111:L,112:$,113:I},{77:[1,201]},t(F,[2,102],{10:[1,202]}),t(F,[2,104],{10:[1,203]}),{77:[1,204]},t(U,[2,177]),{77:[1,205],95:[1,206]},t(z1,[2,50],{110:109,42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,111:L,112:$,113:I}),{31:[1,207],65:o,79:208,113:h,114:p,115:A},t(h1,[2,79]),t(h1,[2,81]),t(h1,[2,82]),t(h1,[2,146]),t(h1,[2,147]),t(h1,[2,148]),t(h1,[2,149]),{47:[1,209],65:o,79:208,113:h,114:p,115:A},{30:210,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{49:[1,211],65:o,79:208,113:h,114:p,115:A},{51:[1,212],65:o,79:208,113:h,114:p,115:A},{53:[1,213],65:o,79:208,113:h,114:p,115:A},{55:[1,214],65:o,79:208,113:h,114:p,115:A},{58:[1,215]},{62:[1,216],65:o,79:208,113:h,114:p,115:A},{64:[1,217],65:o,79:208,113:h,114:p,115:A},{30:218,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{31:[1,219],65:o,79:208,113:h,114:p,115:A},{65:o,67:[1,220],69:[1,221],79:208,113:h,114:p,115:A},{65:o,67:[1,223],69:[1,222],79:208,113:h,114:p,115:A},t(H1,[2,44],{42:Ge}),t(I1,[2,70]),t(I1,[2,69]),{60:[1,224],65:o,79:208,113:h,114:p,115:A},t(I1,[2,72]),t(B1,[2,74]),{30:225,65:o,77:O,78:w,79:164,113:h,114:p,115:A},t(ne,D,{5:226}),t(E,[2,95]),t(y,[2,35]),{41:227,42:f,43:39,45:40,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},{10:q,58:e1,81:t1,89:228,102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{10:q,58:e1,81:t1,89:239,101:[1,240],102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{10:q,58:e1,81:t1,89:241,101:[1,242],102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{102:[1,243]},{10:q,58:e1,81:t1,89:244,102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{42:f,45:245,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},t(F,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},t(F,[2,109]),t(F,[2,111],{10:[1,249]}),t(F,[2,112]),t(R,[2,51]),t(h1,[2,80]),t(R,[2,52]),{49:[1,250],65:o,79:208,113:h,114:p,115:A},t(R,[2,59]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),{106:[1,251]},t(R,[2,58]),t(R,[2,60]),{64:[1,252],65:o,79:208,113:h,114:p,115:A},t(R,[2,62]),t(R,[2,63]),t(R,[2,65]),t(R,[2,64]),t(R,[2,66]),t([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:o,79:208,113:h,114:p,115:A},{6:11,7:12,8:d,9:P,10:g,11:N,20:17,22:18,23:19,24:20,25:21,26:22,27:H,32:[1,254],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:f,43:39,45:40,58:T,81:w1,82:P1,83:G1,84:V1,85:M1,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I,118:U1,119:K1,120:X1,121:Y1},t(z1,[2,48]),t(F,[2,114],{103:m1}),t(Me,[2,123],{105:256,10:q,58:e1,81:t1,102:s1,106:u1,107:i1,108:n1,109:r1}),t(W,[2,125]),t(W,[2,127]),t(W,[2,128]),t(W,[2,129]),t(W,[2,130]),t(W,[2,131]),t(W,[2,132]),t(W,[2,133]),t(W,[2,134]),t(F,[2,115],{103:m1}),{10:[1,257]},t(F,[2,116],{103:m1}),{10:[1,258]},t(Ve,[2,122]),t(F,[2,98],{103:m1}),t(F,[2,99],{110:109,42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,111:L,112:$,113:I}),t(F,[2,103]),t(F,[2,105],{10:[1,259]}),t(F,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:Q,9:J,11:Z,21:264},t(y,[2,34]),{10:q,58:e1,81:t1,102:s1,104:265,105:230,106:u1,107:i1,108:n1,109:r1},t(W,[2,126]),{14:y1,42:E1,58:k1,86:b1,98:266,102:g1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1,117:84},{14:y1,42:E1,58:k1,86:b1,98:267,102:g1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1,117:84},{95:[1,268]},t(F,[2,113]),t(R,[2,53]),{30:269,65:o,77:O,78:w,79:164,113:h,114:p,115:A},t(R,[2,61]),t(ne,D,{5:270}),t(Me,[2,124],{105:256,10:q,58:e1,81:t1,102:s1,106:u1,107:i1,108:n1,109:r1}),t(F,[2,119],{117:160,10:[1,271],14:y1,42:E1,58:k1,86:b1,102:g1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1}),t(F,[2,120],{117:160,10:[1,272],14:y1,42:E1,58:k1,86:b1,102:g1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1}),t(F,[2,107]),{31:[1,273],65:o,79:208,113:h,114:p,115:A},{6:11,7:12,8:d,9:P,10:g,11:N,20:17,22:18,23:19,24:20,25:21,26:22,27:H,32:[1,274],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:f,43:39,45:40,58:T,81:w1,82:P1,83:G1,84:V1,85:M1,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I,118:U1,119:K1,120:X1,121:Y1},{10:q,58:e1,81:t1,89:275,102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{10:q,58:e1,81:t1,89:276,102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},t(R,[2,57]),t(y,[2,33]),t(F,[2,117],{103:m1}),t(F,[2,118],{103:m1})],defaultActions:{},parseError:function(j,a){if(a.recoverable)this.trace(j);else{var l=new Error(j);throw l.hash=a,l}},parse:function(j){var a=this,l=[0],n=[],k=[null],e=[],G=this.table,s="",K=0,Ue=0,Tt=2,Ke=1,St=e.slice.call(arguments,1),S=Object.create(this.lexer),d1={yy:{}};for(var ce in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ce)&&(d1.yy[ce]=this.yy[ce]);S.setInput(j,d1.yy),d1.yy.lexer=S,d1.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var le=S.yylloc;e.push(le);var Ct=S.options&&S.options.ranges;typeof d1.yy.parseError=="function"?this.parseError=d1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _t(){var c1;return c1=n.pop()||S.lex()||Ke,typeof c1!="number"&&(c1 instanceof Array&&(n=c1,c1=n.pop()),c1=a.symbols_[c1]||c1),c1}for(var V,f1,X,oe,x1={},W1,a1,Xe,j1;;){if(f1=l[l.length-1],this.defaultActions[f1]?X=this.defaultActions[f1]:((V===null||typeof V>"u")&&(V=_t()),X=G[f1]&&G[f1][V]),typeof X>"u"||!X.length||!X[0]){var he="";j1=[];for(W1 in G[f1])this.terminals_[W1]&&W1>Tt&&j1.push("'"+this.terminals_[W1]+"'");S.showPosition?he="Parse error on line "+(K+1)+`:
|
|
1
|
+
import{j as Bt,M as mt,D as xt,L as vt,R as Lt,N as $t,aK as It,m as Rt,O as J1,E as ee,I as Nt,f as de,F as R1}from"./index--DBVktm0.js";var pe=function(){var t=function(j,a,l,n){for(l=l||{},n=j.length;n--;l[j[n]]=a);return l},r=[1,4],i=[1,3],u=[1,5],c=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],D=[2,2],d=[1,13],P=[1,14],g=[1,15],N=[1,16],H=[1,23],o1=[1,25],p1=[1,26],A1=[1,27],f=[1,49],T=[1,48],w1=[1,29],P1=[1,30],G1=[1,31],V1=[1,32],M1=[1,33],C=[1,44],_=[1,46],B=[1,42],m=[1,47],x=[1,43],v=[1,50],L=[1,45],$=[1,51],I=[1,52],U1=[1,34],K1=[1,35],X1=[1,36],Y1=[1,37],$1=[1,57],y=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Q=[1,61],J=[1,60],Z=[1,62],H1=[8,9,11,73,75],y1=[1,88],E1=[1,93],k1=[1,92],b1=[1,89],g1=[1,85],D1=[1,91],F1=[1,87],T1=[1,94],S1=[1,90],C1=[1,95],_1=[1,86],z1=[8,9,10,11,73,75],R=[8,9,10,11,44,73,75],M=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],fe=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],I1=[42,58,86,99,102,103,106,108,111,112,113],ye=[1,121],Ee=[1,120],ke=[1,128],be=[1,142],ge=[1,143],De=[1,144],Fe=[1,145],Te=[1,130],Se=[1,132],Ce=[1,136],_e=[1,137],Be=[1,138],me=[1,139],xe=[1,140],ve=[1,141],Le=[1,146],$e=[1,147],Ie=[1,126],Re=[1,127],Ne=[1,134],Oe=[1,129],we=[1,133],Pe=[1,131],ne=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Ge=[1,149],F=[8,9,11],U=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],o=[1,169],O=[1,165],w=[1,166],h=[1,170],p=[1,167],A=[1,168],B1=[75,113,116],E=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Ve=[10,103],h1=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],q=[1,235],e1=[1,233],t1=[1,237],s1=[1,231],u1=[1,232],i1=[1,234],n1=[1,236],r1=[1,238],m1=[1,255],Me=[8,9,11,103],W=[8,9,10,11,58,81,102,103,106,107,108,109],re={trace:function(){},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,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$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",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},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],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,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],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(j,a,l,n,k,e,G){var s=e.length-1;switch(k){case 2:this.$=[];break;case 3:(!Array.isArray(e[s])||e[s].length>0)&&e[s-1].push(e[s]),this.$=e[s-1];break;case 4:case 176:this.$=e[s];break;case 11:n.setDirection("TB"),this.$="TB";break;case 12:n.setDirection(e[s-1]),this.$=e[s-1];break;case 27:this.$=e[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=n.addSubGraph(e[s-6],e[s-1],e[s-4]);break;case 34:this.$=n.addSubGraph(e[s-3],e[s-1],e[s-3]);break;case 35:this.$=n.addSubGraph(void 0,e[s-1],void 0);break;case 37:this.$=e[s].trim(),n.setAccTitle(this.$);break;case 38:case 39:this.$=e[s].trim(),n.setAccDescription(this.$);break;case 43:n.addLink(e[s-2].stmt,e[s],e[s-1]),this.$={stmt:e[s],nodes:e[s].concat(e[s-2].nodes)};break;case 44:n.addLink(e[s-3].stmt,e[s-1],e[s-2]),this.$={stmt:e[s-1],nodes:e[s-1].concat(e[s-3].nodes)};break;case 45:this.$={stmt:e[s-1],nodes:e[s-1]};break;case 46:this.$={stmt:e[s],nodes:e[s]};break;case 47:this.$=[e[s]];break;case 48:this.$=e[s-4].concat(e[s]);break;case 49:this.$=e[s];break;case 50:this.$=e[s-2],n.setClass(e[s-2],e[s]);break;case 51:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"square");break;case 52:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"doublecircle");break;case 53:this.$=e[s-5],n.addVertex(e[s-5],e[s-2],"circle");break;case 54:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"ellipse");break;case 55:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"stadium");break;case 56:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"subroutine");break;case 57:this.$=e[s-7],n.addVertex(e[s-7],e[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[e[s-5],e[s-3]]]));break;case 58:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"cylinder");break;case 59:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"round");break;case 60:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"diamond");break;case 61:this.$=e[s-5],n.addVertex(e[s-5],e[s-2],"hexagon");break;case 62:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"odd");break;case 63:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"trapezoid");break;case 64:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"inv_trapezoid");break;case 65:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"lean_right");break;case 66:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"lean_left");break;case 67:this.$=e[s],n.addVertex(e[s]);break;case 68:e[s-1].text=e[s],this.$=e[s-1];break;case 69:case 70:e[s-2].text=e[s-1],this.$=e[s-2];break;case 71:this.$=e[s];break;case 72:var K=n.destructLink(e[s],e[s-2]);this.$={type:K.type,stroke:K.stroke,length:K.length,text:e[s-1]};break;case 73:this.$={text:e[s],type:"text"};break;case 74:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 75:this.$={text:e[s],type:"string"};break;case 76:this.$={text:e[s],type:"markdown"};break;case 77:var K=n.destructLink(e[s]);this.$={type:K.type,stroke:K.stroke,length:K.length};break;case 78:this.$=e[s-1];break;case 79:this.$={text:e[s],type:"text"};break;case 80:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 81:this.$={text:e[s],type:"string"};break;case 82:case 97:this.$={text:e[s],type:"markdown"};break;case 94:this.$={text:e[s],type:"text"};break;case 95:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 96:this.$={text:e[s],type:"text"};break;case 98:this.$=e[s-4],n.addClass(e[s-2],e[s]);break;case 99:this.$=e[s-4],n.setClass(e[s-2],e[s]);break;case 100:case 108:this.$=e[s-1],n.setClickEvent(e[s-1],e[s]);break;case 101:case 109:this.$=e[s-3],n.setClickEvent(e[s-3],e[s-2]),n.setTooltip(e[s-3],e[s]);break;case 102:this.$=e[s-2],n.setClickEvent(e[s-2],e[s-1],e[s]);break;case 103:this.$=e[s-4],n.setClickEvent(e[s-4],e[s-3],e[s-2]),n.setTooltip(e[s-4],e[s]);break;case 104:this.$=e[s-2],n.setLink(e[s-2],e[s]);break;case 105:this.$=e[s-4],n.setLink(e[s-4],e[s-2]),n.setTooltip(e[s-4],e[s]);break;case 106:this.$=e[s-4],n.setLink(e[s-4],e[s-2],e[s]);break;case 107:this.$=e[s-6],n.setLink(e[s-6],e[s-4],e[s]),n.setTooltip(e[s-6],e[s-2]);break;case 110:this.$=e[s-1],n.setLink(e[s-1],e[s]);break;case 111:this.$=e[s-3],n.setLink(e[s-3],e[s-2]),n.setTooltip(e[s-3],e[s]);break;case 112:this.$=e[s-3],n.setLink(e[s-3],e[s-2],e[s]);break;case 113:this.$=e[s-5],n.setLink(e[s-5],e[s-4],e[s]),n.setTooltip(e[s-5],e[s-2]);break;case 114:this.$=e[s-4],n.addVertex(e[s-2],void 0,void 0,e[s]);break;case 115:this.$=e[s-4],n.updateLink([e[s-2]],e[s]);break;case 116:this.$=e[s-4],n.updateLink(e[s-2],e[s]);break;case 117:this.$=e[s-8],n.updateLinkInterpolate([e[s-6]],e[s-2]),n.updateLink([e[s-6]],e[s]);break;case 118:this.$=e[s-8],n.updateLinkInterpolate(e[s-6],e[s-2]),n.updateLink(e[s-6],e[s]);break;case 119:this.$=e[s-6],n.updateLinkInterpolate([e[s-4]],e[s]);break;case 120:this.$=e[s-6],n.updateLinkInterpolate(e[s-4],e[s]);break;case 121:case 123:this.$=[e[s]];break;case 122:case 124:e[s-2].push(e[s]),this.$=e[s-2];break;case 126:this.$=e[s-1]+e[s];break;case 174:this.$=e[s];break;case 175:this.$=e[s-1]+""+e[s];break;case 177:this.$=e[s-1]+""+e[s];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:r,10:i,12:u},{1:[3]},t(c,D,{5:6}),{4:7,9:r,10:i,12:u},{4:8,9:r,10:i,12:u},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:d,9:P,10:g,11:N,20:17,22:18,23:19,24:20,25:21,26:22,27:H,33:24,34:o1,36:p1,38:A1,40:28,41:38,42:f,43:39,45:40,58:T,81:w1,82:P1,83:G1,84:V1,85:M1,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I,118:U1,119:K1,120:X1,121:Y1},t(c,[2,9]),t(c,[2,10]),t(c,[2,11]),{8:[1,54],9:[1,55],10:$1,15:53,18:56},t(y,[2,3]),t(y,[2,4]),t(y,[2,5]),t(y,[2,6]),t(y,[2,7]),t(y,[2,8]),{8:Q,9:J,11:Z,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:Q,9:J,11:Z,21:66},{8:Q,9:J,11:Z,21:67},{8:Q,9:J,11:Z,21:68},{8:Q,9:J,11:Z,21:69},{8:Q,9:J,11:Z,21:70},{8:Q,9:J,10:[1,71],11:Z,21:72},t(y,[2,36]),{35:[1,73]},{37:[1,74]},t(y,[2,39]),t(H1,[2,46],{18:75,10:$1}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:y1,42:E1,58:k1,77:[1,83],86:b1,92:[1,80],94:[1,81],98:82,102:g1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1,117:84},t(y,[2,178]),t(y,[2,179]),t(y,[2,180]),t(y,[2,181]),t(z1,[2,47]),t(z1,[2,49],{44:[1,96]}),t(R,[2,67],{110:109,29:[1,97],42:f,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:T,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:C,99:_,102:B,103:m,106:x,108:v,111:L,112:$,113:I}),t(M,[2,174]),t(M,[2,135]),t(M,[2,136]),t(M,[2,137]),t(M,[2,138]),t(M,[2,139]),t(M,[2,140]),t(M,[2,141]),t(M,[2,142]),t(M,[2,143]),t(M,[2,144]),t(M,[2,145]),t(c,[2,12]),t(c,[2,18]),t(c,[2,19]),{9:[1,110]},t(fe,[2,26],{18:111,10:$1}),t(y,[2,27]),{40:112,41:38,42:f,43:39,45:40,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},t(y,[2,40]),t(y,[2,41]),t(y,[2,42]),t(I1,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:ye,116:Ee},t([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),t(y,[2,28]),t(y,[2,29]),t(y,[2,30]),t(y,[2,31]),t(y,[2,32]),{10:ke,12:be,14:ge,27:De,28:122,32:Fe,42:Te,58:Se,73:Ce,77:[1,124],78:[1,125],80:135,81:_e,82:Be,83:me,84:xe,85:ve,86:Le,87:$e,88:123,102:Ie,106:Re,108:Ne,111:Oe,112:we,113:Pe},t(ne,D,{5:148}),t(y,[2,37]),t(y,[2,38]),t(H1,[2,45],{42:Ge}),{42:f,45:150,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},{99:[1,151],100:152,102:[1,153]},{42:f,45:154,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},{42:f,45:155,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},t(F,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},t(F,[2,108],{117:160,10:[1,159],14:y1,42:E1,58:k1,86:b1,102:g1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1}),t(F,[2,110],{10:[1,161]}),t(U,[2,176]),t(U,[2,163]),t(U,[2,164]),t(U,[2,165]),t(U,[2,166]),t(U,[2,167]),t(U,[2,168]),t(U,[2,169]),t(U,[2,170]),t(U,[2,171]),t(U,[2,172]),t(U,[2,173]),{42:f,45:162,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},{30:163,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:171,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:173,48:[1,172],65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:174,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:175,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:176,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{106:[1,177]},{30:178,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:179,63:[1,180],65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:181,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:182,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:183,65:o,77:O,78:w,79:164,113:h,114:p,115:A},t(M,[2,175]),t(c,[2,20]),t(fe,[2,25]),t(H1,[2,43],{18:184,10:$1}),t(I1,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{75:[1,188],76:189,113:ye,116:Ee},t(B1,[2,73]),t(B1,[2,75]),t(B1,[2,76]),t(B1,[2,161]),t(B1,[2,162]),{8:Q,9:J,10:ke,11:Z,12:be,14:ge,21:191,27:De,29:[1,190],32:Fe,42:Te,58:Se,73:Ce,80:135,81:_e,82:Be,83:me,84:xe,85:ve,86:Le,87:$e,88:192,102:Ie,106:Re,108:Ne,111:Oe,112:we,113:Pe},t(E,[2,94]),t(E,[2,96]),t(E,[2,97]),t(E,[2,150]),t(E,[2,151]),t(E,[2,152]),t(E,[2,153]),t(E,[2,154]),t(E,[2,155]),t(E,[2,156]),t(E,[2,157]),t(E,[2,158]),t(E,[2,159]),t(E,[2,160]),t(E,[2,83]),t(E,[2,84]),t(E,[2,85]),t(E,[2,86]),t(E,[2,87]),t(E,[2,88]),t(E,[2,89]),t(E,[2,90]),t(E,[2,91]),t(E,[2,92]),t(E,[2,93]),{6:11,7:12,8:d,9:P,10:g,11:N,20:17,22:18,23:19,24:20,25:21,26:22,27:H,32:[1,193],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:f,43:39,45:40,58:T,81:w1,82:P1,83:G1,84:V1,85:M1,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I,118:U1,119:K1,120:X1,121:Y1},{10:$1,18:194},{10:[1,195],42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:109,111:L,112:$,113:I},{10:[1,196]},{10:[1,197],103:[1,198]},t(Ve,[2,121]),{10:[1,199],42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:109,111:L,112:$,113:I},{10:[1,200],42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:109,111:L,112:$,113:I},{77:[1,201]},t(F,[2,102],{10:[1,202]}),t(F,[2,104],{10:[1,203]}),{77:[1,204]},t(U,[2,177]),{77:[1,205],95:[1,206]},t(z1,[2,50],{110:109,42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,111:L,112:$,113:I}),{31:[1,207],65:o,79:208,113:h,114:p,115:A},t(h1,[2,79]),t(h1,[2,81]),t(h1,[2,82]),t(h1,[2,146]),t(h1,[2,147]),t(h1,[2,148]),t(h1,[2,149]),{47:[1,209],65:o,79:208,113:h,114:p,115:A},{30:210,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{49:[1,211],65:o,79:208,113:h,114:p,115:A},{51:[1,212],65:o,79:208,113:h,114:p,115:A},{53:[1,213],65:o,79:208,113:h,114:p,115:A},{55:[1,214],65:o,79:208,113:h,114:p,115:A},{58:[1,215]},{62:[1,216],65:o,79:208,113:h,114:p,115:A},{64:[1,217],65:o,79:208,113:h,114:p,115:A},{30:218,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{31:[1,219],65:o,79:208,113:h,114:p,115:A},{65:o,67:[1,220],69:[1,221],79:208,113:h,114:p,115:A},{65:o,67:[1,223],69:[1,222],79:208,113:h,114:p,115:A},t(H1,[2,44],{42:Ge}),t(I1,[2,70]),t(I1,[2,69]),{60:[1,224],65:o,79:208,113:h,114:p,115:A},t(I1,[2,72]),t(B1,[2,74]),{30:225,65:o,77:O,78:w,79:164,113:h,114:p,115:A},t(ne,D,{5:226}),t(E,[2,95]),t(y,[2,35]),{41:227,42:f,43:39,45:40,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},{10:q,58:e1,81:t1,89:228,102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{10:q,58:e1,81:t1,89:239,101:[1,240],102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{10:q,58:e1,81:t1,89:241,101:[1,242],102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{102:[1,243]},{10:q,58:e1,81:t1,89:244,102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{42:f,45:245,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},t(F,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},t(F,[2,109]),t(F,[2,111],{10:[1,249]}),t(F,[2,112]),t(R,[2,51]),t(h1,[2,80]),t(R,[2,52]),{49:[1,250],65:o,79:208,113:h,114:p,115:A},t(R,[2,59]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),{106:[1,251]},t(R,[2,58]),t(R,[2,60]),{64:[1,252],65:o,79:208,113:h,114:p,115:A},t(R,[2,62]),t(R,[2,63]),t(R,[2,65]),t(R,[2,64]),t(R,[2,66]),t([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:o,79:208,113:h,114:p,115:A},{6:11,7:12,8:d,9:P,10:g,11:N,20:17,22:18,23:19,24:20,25:21,26:22,27:H,32:[1,254],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:f,43:39,45:40,58:T,81:w1,82:P1,83:G1,84:V1,85:M1,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I,118:U1,119:K1,120:X1,121:Y1},t(z1,[2,48]),t(F,[2,114],{103:m1}),t(Me,[2,123],{105:256,10:q,58:e1,81:t1,102:s1,106:u1,107:i1,108:n1,109:r1}),t(W,[2,125]),t(W,[2,127]),t(W,[2,128]),t(W,[2,129]),t(W,[2,130]),t(W,[2,131]),t(W,[2,132]),t(W,[2,133]),t(W,[2,134]),t(F,[2,115],{103:m1}),{10:[1,257]},t(F,[2,116],{103:m1}),{10:[1,258]},t(Ve,[2,122]),t(F,[2,98],{103:m1}),t(F,[2,99],{110:109,42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,111:L,112:$,113:I}),t(F,[2,103]),t(F,[2,105],{10:[1,259]}),t(F,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:Q,9:J,11:Z,21:264},t(y,[2,34]),{10:q,58:e1,81:t1,102:s1,104:265,105:230,106:u1,107:i1,108:n1,109:r1},t(W,[2,126]),{14:y1,42:E1,58:k1,86:b1,98:266,102:g1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1,117:84},{14:y1,42:E1,58:k1,86:b1,98:267,102:g1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1,117:84},{95:[1,268]},t(F,[2,113]),t(R,[2,53]),{30:269,65:o,77:O,78:w,79:164,113:h,114:p,115:A},t(R,[2,61]),t(ne,D,{5:270}),t(Me,[2,124],{105:256,10:q,58:e1,81:t1,102:s1,106:u1,107:i1,108:n1,109:r1}),t(F,[2,119],{117:160,10:[1,271],14:y1,42:E1,58:k1,86:b1,102:g1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1}),t(F,[2,120],{117:160,10:[1,272],14:y1,42:E1,58:k1,86:b1,102:g1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1}),t(F,[2,107]),{31:[1,273],65:o,79:208,113:h,114:p,115:A},{6:11,7:12,8:d,9:P,10:g,11:N,20:17,22:18,23:19,24:20,25:21,26:22,27:H,32:[1,274],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:f,43:39,45:40,58:T,81:w1,82:P1,83:G1,84:V1,85:M1,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I,118:U1,119:K1,120:X1,121:Y1},{10:q,58:e1,81:t1,89:275,102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{10:q,58:e1,81:t1,89:276,102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},t(R,[2,57]),t(y,[2,33]),t(F,[2,117],{103:m1}),t(F,[2,118],{103:m1})],defaultActions:{},parseError:function(j,a){if(a.recoverable)this.trace(j);else{var l=new Error(j);throw l.hash=a,l}},parse:function(j){var a=this,l=[0],n=[],k=[null],e=[],G=this.table,s="",K=0,Ue=0,Tt=2,Ke=1,St=e.slice.call(arguments,1),S=Object.create(this.lexer),d1={yy:{}};for(var ce in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ce)&&(d1.yy[ce]=this.yy[ce]);S.setInput(j,d1.yy),d1.yy.lexer=S,d1.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var le=S.yylloc;e.push(le);var Ct=S.options&&S.options.ranges;typeof d1.yy.parseError=="function"?this.parseError=d1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _t(){var c1;return c1=n.pop()||S.lex()||Ke,typeof c1!="number"&&(c1 instanceof Array&&(n=c1,c1=n.pop()),c1=a.symbols_[c1]||c1),c1}for(var V,f1,X,oe,x1={},W1,a1,Xe,j1;;){if(f1=l[l.length-1],this.defaultActions[f1]?X=this.defaultActions[f1]:((V===null||typeof V>"u")&&(V=_t()),X=G[f1]&&G[f1][V]),typeof X>"u"||!X.length||!X[0]){var he="";j1=[];for(W1 in G[f1])this.terminals_[W1]&&W1>Tt&&j1.push("'"+this.terminals_[W1]+"'");S.showPosition?he="Parse error on line "+(K+1)+`:
|
|
2
2
|
`+S.showPosition()+`
|
|
3
3
|
Expecting `+j1.join(", ")+", got '"+(this.terminals_[V]||V)+"'":he="Parse error on line "+(K+1)+": Unexpected "+(V==Ke?"end of input":"'"+(this.terminals_[V]||V)+"'"),this.parseError(he,{text:S.match,token:this.terminals_[V]||V,line:S.yylineno,loc:le,expected:j1})}if(X[0]instanceof Array&&X.length>1)throw new Error("Parse Error: multiple actions possible at state: "+f1+", token: "+V);switch(X[0]){case 1:l.push(V),k.push(S.yytext),e.push(S.yylloc),l.push(X[1]),V=null,Ue=S.yyleng,s=S.yytext,K=S.yylineno,le=S.yylloc;break;case 2:if(a1=this.productions_[X[1]][1],x1.$=k[k.length-a1],x1._$={first_line:e[e.length-(a1||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(a1||1)].first_column,last_column:e[e.length-1].last_column},Ct&&(x1._$.range=[e[e.length-(a1||1)].range[0],e[e.length-1].range[1]]),oe=this.performAction.apply(x1,[s,Ue,K,d1.yy,X[1],k,e].concat(St)),typeof oe<"u")return oe;a1&&(l=l.slice(0,-1*a1*2),k=k.slice(0,-1*a1),e=e.slice(0,-1*a1)),l.push(this.productions_[X[1]][0]),k.push(x1.$),e.push(x1._$),Xe=G[l[l.length-2]][l[l.length-1]],l.push(Xe);break;case 3:return!0}}return!0}},Ft=function(){var j={EOF:1,parseError:function(a,l){if(this.yy.parser)this.yy.parser.parseError(a,l);else throw new Error(a)},setInput:function(a,l){return this.yy=l||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var l=a.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var l=a.length,n=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var k=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===k.length?this.yylloc.first_column:0)+k[k.length-n.length].length-n[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),l=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as D,X as vt}from"./flowDb-c6c81e3f-CRRW-bQO-
|
|
1
|
+
import{j as D,X as vt}from"./flowDb-c6c81e3f-CRRW-bQO-HITLukvy.js";import{O as j,E as $,F as x,A as mt,a as R,z as U,b as C,x as K,c as J,m as Z,d as kt}from"./index--DBVktm0.js";import{K as St}from"./graph-BV6jB5rk-CdEYXCfk.js";import{A as _t,j as Ot,e as At,k as P,a as Lt}from"./layout-LXMv3mSS-DxzYqwJj.js";import{h as It,w as Tt,Z as Mt,e as L,t as tt,p as et,f as rt,u as O,b as at}from"./styles-d45a18b0-DZ8oSYcV-CG6sdjTP.js";import"./index-5325376f-DrY72DrM-6JgEWzV-.js";import"./clone-B1V2003j-TxzpTD1c.js";import"./edges-96097737-Zk-qG_8u-DK7AVtHJ.js";import"./createText-1719965b-C2-AT0ab-DdeHG0fk.js";import"./channel-BKp1WYnX-C2kiKBzQ.js";function Et(r){if(!r.ok)throw new Error(r.status+" "+r.statusText);return r.text()}function Nt(r,e){return fetch(r,e).then(Et)}function Pt(r){return(e,t)=>Nt(e,t).then(a=>new DOMParser().parseFromString(a,r))}var Bt=Pt("image/svg+xml"),W={normal:$t,vee:Ct,undirected:Dt};function jt(r){W=r}function $t(r,e,t,a){var n=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),i=n.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");L(i,t[a+"Style"]),t[a+"Class"]&&i.attr("class",t[a+"Class"])}function Ct(r,e,t,a){var n=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),i=n.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");L(i,t[a+"Style"]),t[a+"Class"]&&i.attr("class",t[a+"Class"])}function Dt(r,e,t,a){var n=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),i=n.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");L(i,t[a+"Style"]),t[a+"Class"]&&i.attr("class",t[a+"Class"])}function Ut(r,e){var t=r;return t.node().appendChild(e.label),L(t,e.labelStyle),t}function Rt(r,e){for(var t=r.append("text"),a=Wt(e.label).split(`
|
|
2
2
|
`),n=0;n<a.length;n++)t.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(a[n]);return L(t,e.labelStyle),t}function Wt(r){for(var e="",t=!1,a,n=0;n<r.length;++n)if(a=r[n],t){switch(a){case"n":e+=`
|
|
3
3
|
`;break;default:e+=a}t=!1}else a==="\\"?t=!0:e+=a;return e}function H(r,e,t){var a=e.label,n=r.append("g");e.labelType==="svg"?Ut(n,e):typeof a!="string"||e.labelType==="html"?tt(n,e):Rt(n,e);var i=n.node().getBBox(),o;switch(t){case"top":o=-e.height/2;break;case"bottom":o=e.height/2-i.height;break;default:o=-i.height/2}return n.attr("transform","translate("+-i.width/2+","+o+")"),n}var z=function(r,e){var t=e.nodes().filter(function(i){return et(e,i)}),a=r.selectAll("g.cluster").data(t,function(i){return i});O(a.exit(),e).style("opacity",0).remove();var n=a.enter().append("g").attr("class","cluster").attr("id",function(i){var o=e.node(i);return o.id}).style("opacity",0).each(function(i){var o=e.node(i),s=x(this);x(this).append("rect");var d=s.append("g").attr("class","label");H(d,o,o.clusterLabelPos)});return a=a.merge(n),a=O(a,e).style("opacity",1),a.selectAll("rect").each(function(i){var o=e.node(i),s=x(this);L(s,o.style)}),a};function zt(r){z=r}let q=function(r,e){var t=r.selectAll("g.edgeLabel").data(e.edges(),function(n){return at(n)}).classed("update",!0);t.exit().remove(),t.enter().append("g").classed("edgeLabel",!0).style("opacity",0),t=r.selectAll("g.edgeLabel"),t.each(function(n){var i=x(this);i.select(".label").remove();var o=e.edge(n),s=H(i,e.edge(n),0).classed("label",!0),d=s.node().getBBox();o.labelId&&s.attr("id",o.labelId),Object.prototype.hasOwnProperty.call(o,"width")||(o.width=d.width),Object.prototype.hasOwnProperty.call(o,"height")||(o.height=d.height)});var a;return t.exit?a=t.exit():a=t.selectAll(null),O(a,e).style("opacity",0).remove(),t};function qt(r){q=r}function G(r,e){return r.intersect(e)}var X=function(r,e,t){var a=r.selectAll("g.edgePath").data(e.edges(),function(o){return at(o)}).classed("update",!0),n=Ft(a,e);Gt(a,e);var i=a.merge!==void 0?a.merge(n):a;return O(i,e).style("opacity",1),i.each(function(o){var s=x(this),d=e.edge(o);d.elem=this,d.id&&s.attr("id",d.id),rt(s,d.class,(s.classed("update")?"update ":"")+"edgePath")}),i.selectAll("path.path").each(function(o){var s=e.edge(o);s.arrowheadId=At("arrowhead");var d=x(this).attr("marker-end",function(){return"url("+Vt(location.href,s.arrowheadId)+")"}).style("fill","none");O(d,e).attr("d",function(u){return Yt(e,u)}),L(d,s.style)}),i.selectAll("defs *").remove(),i.selectAll("defs").each(function(o){var s=e.edge(o),d=t[s.arrowhead];d(x(this),s.arrowheadId,s,"arrowhead")}),i};function Xt(r){X=r}function Vt(r,e){var t=r.split("#")[0];return t+"#"+e}function Yt(r,e){var t=r.edge(e),a=r.node(e.v),n=r.node(e.w),i=t.points.slice(1,t.points.length-1);return i.unshift(G(a,i[0])),i.push(G(n,i[i.length-1])),nt(t,i)}function nt(r,e){var t=(kt||Bt.line)().x(function(a){return a.x}).y(function(a){return a.y});return(t.curve||t.interpolate)(r.curve),t(e)}function Ht(r){var e=r.getBBox(),t=r.ownerSVGElement.getScreenCTM().inverse().multiply(r.getScreenCTM()).translate(e.width/2,e.height/2);return{x:t.e,y:t.f}}function Ft(r,e){var t=r.enter().append("g").attr("class","edgePath").style("opacity",0);return t.append("path").attr("class","path").attr("d",function(a){var n=e.edge(a),i=e.node(a.v).elem,o=Lt(n.points.length).map(function(){return Ht(i)});return nt(n,o)}),t.append("defs"),t}function Gt(r,e){var t=r.exit();O(t,e).style("opacity",0).remove()}var V=function(r,e,t){var a=e.nodes().filter(function(o){return!et(e,o)}),n=r.selectAll("g.node").data(a,function(o){return o}).classed("update",!0);n.exit().remove(),n.enter().append("g").attr("class","node").style("opacity",0),n=r.selectAll("g.node"),n.each(function(o){var s=e.node(o),d=x(this);rt(d,s.class,(d.classed("update")?"update ":"")+"node"),d.select("g.label").remove();var u=d.append("g").attr("class","label"),l=H(u,s),g=t[s.shape],c=Ot(l.node().getBBox(),"width","height");s.elem=this,s.id&&d.attr("id",s.id),s.labelId&&u.attr("id",s.labelId),Object.prototype.hasOwnProperty.call(s,"width")&&(c.width=s.width),Object.prototype.hasOwnProperty.call(s,"height")&&(c.height=s.height),c.width+=s.paddingLeft+s.paddingRight,c.height+=s.paddingTop+s.paddingBottom,u.attr("transform","translate("+(s.paddingLeft-s.paddingRight)/2+","+(s.paddingTop-s.paddingBottom)/2+")");var h=x(this);h.select(".label-container").remove();var f=g(h,c,s).classed("label-container",!0);L(f,s.style);var b=f.node().getBBox();s.width=b.width,s.height=b.height});var i;return n.exit?i=n.exit():i=n.selectAll(null),O(i,e).style("opacity",0).remove(),n};function Qt(r){V=r}function Kt(r,e){var t=r.filter(function(){return!x(this).classed("update")});function a(n){var i=e.node(n);return"translate("+i.x+","+i.y+")"}t.attr("transform",a),O(r,e).style("opacity",1).attr("transform",a),O(t.selectAll("rect"),e).attr("width",function(n){return e.node(n).width}).attr("height",function(n){return e.node(n).height}).attr("x",function(n){var i=e.node(n);return-i.width/2}).attr("y",function(n){var i=e.node(n);return-i.height/2})}function Jt(r,e){var t=r.filter(function(){return!x(this).classed("update")});function a(n){var i=e.edge(n);return Object.prototype.hasOwnProperty.call(i,"x")?"translate("+i.x+","+i.y+")":""}t.attr("transform",a),O(r,e).style("opacity",1).attr("transform",a)}function Zt(r,e){var t=r.filter(function(){return!x(this).classed("update")});function a(n){var i=e.node(n);return"translate("+i.x+","+i.y+")"}t.attr("transform",a),O(r,e).style("opacity",1).attr("transform",a)}function it(r,e,t,a){var n=r.x,i=r.y,o=n-a.x,s=i-a.y,d=Math.sqrt(e*e*s*s+t*t*o*o),u=Math.abs(e*t*o/d);a.x<n&&(u=-u);var l=Math.abs(e*t*s/d);return a.y<i&&(l=-l),{x:n+u,y:i+l}}function te(r,e,t){return it(r,e,e,t)}function ee(r,e,t,a){var n,i,o,s,d,u,l,g,c,h,f,b,p,w,k;if(n=e.y-r.y,o=r.x-e.x,d=e.x*r.y-r.x*e.y,c=n*t.x+o*t.y+d,h=n*a.x+o*a.y+d,!(c!==0&&h!==0&&Q(c,h))&&(i=a.y-t.y,s=t.x-a.x,u=a.x*t.y-t.x*a.y,l=i*r.x+s*r.y+u,g=i*e.x+s*e.y+u,!(l!==0&&g!==0&&Q(l,g))&&(f=n*s-i*o,f!==0)))return b=Math.abs(f/2),p=o*u-s*d,w=p<0?(p-b)/f:(p+b)/f,p=i*d-n*u,k=p<0?(p-b)/f:(p+b)/f,{x:w,y:k}}function Q(r,e){return r*e>0}function A(r,e,t){var a=r.x,n=r.y,i=[],o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;e.forEach(function(f){o=Math.min(o,f.x),s=Math.min(s,f.y)});for(var d=a-r.width/2-o,u=n-r.height/2-s,l=0;l<e.length;l++){var g=e[l],c=e[l<e.length-1?l+1:0],h=ee(r,t,{x:d+g.x,y:u+g.y},{x:d+c.x,y:u+c.y});h&&i.push(h)}return i.length?(i.length>1&&i.sort(function(f,b){var p=f.x-t.x,w=f.y-t.y,k=Math.sqrt(p*p+w*w),T=b.x-t.x,S=b.y-t.y,y=Math.sqrt(T*T+S*S);return k<y?-1:k===y?0:1}),i[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",r),r)}function F(r,e){var t=r.x,a=r.y,n=e.x-t,i=e.y-a,o=r.width/2,s=r.height/2,d,u;return Math.abs(i)*o>Math.abs(n)*s?(i<0&&(s=-s),d=i===0?0:s*n/i,u=s):(n<0&&(o=-o),d=o,u=n===0?0:o*i/n),{x:t+d,y:a+u}}var Y={rect:ae,ellipse:ne,circle:ie,diamond:oe};function re(r){Y=r}function ae(r,e,t){var a=r.insert("rect",":first-child").attr("rx",t.rx).attr("ry",t.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return t.intersect=function(n){return F(t,n)},a}function ne(r,e,t){var a=e.width/2,n=e.height/2,i=r.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",a).attr("ry",n);return t.intersect=function(o){return it(t,a,n,o)},i}function ie(r,e,t){var a=Math.max(e.width,e.height)/2,n=r.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",a);return t.intersect=function(i){return te(t,a,i)},n}function oe(r,e,t){var a=e.width*Math.SQRT2/2,n=e.height*Math.SQRT2/2,i=[{x:0,y:-n},{x:-a,y:0},{x:0,y:n},{x:a,y:0}],o=r.insert("polygon",":first-child").attr("points",i.map(function(s){return s.x+","+s.y}).join(" "));return t.intersect=function(s){return A(t,i,s)},o}function se(){var r=function(e,t){ce(t);var a=B(e,"output"),n=B(a,"clusters"),i=B(a,"edgePaths"),o=q(B(a,"edgeLabels"),t),s=V(B(a,"nodes"),t,Y);_t(t),Zt(s,t),Jt(o,t),X(i,t,W);var d=z(n,t);Kt(d,t),he(t)};return r.createNodes=function(e){return arguments.length?(Qt(e),r):V},r.createClusters=function(e){return arguments.length?(zt(e),r):z},r.createEdgeLabels=function(e){return arguments.length?(qt(e),r):q},r.createEdgePaths=function(e){return arguments.length?(Xt(e),r):X},r.shapes=function(e){return arguments.length?(re(e),r):Y},r.arrows=function(e){return arguments.length?(jt(e),r):W},r}var le={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},de={arrowhead:"normal",curve:C};function ce(r){r.nodes().forEach(e=>{const t=r.node(e);!Object.prototype.hasOwnProperty.call(t,"label")&&!r.children(e).length&&(t.label=e),Object.prototype.hasOwnProperty.call(t,"paddingX")&&P(t,{paddingLeft:t.paddingX,paddingRight:t.paddingX}),Object.prototype.hasOwnProperty.call(t,"paddingY")&&P(t,{paddingTop:t.paddingY,paddingBottom:t.paddingY}),Object.prototype.hasOwnProperty.call(t,"padding")&&P(t,{paddingLeft:t.padding,paddingRight:t.padding,paddingTop:t.padding,paddingBottom:t.padding}),P(t,le),["paddingLeft","paddingRight","paddingTop","paddingBottom"].forEach(a=>{t[a]=Number(t[a])}),Object.prototype.hasOwnProperty.call(t,"width")&&(t._prevWidth=t.width),Object.prototype.hasOwnProperty.call(t,"height")&&(t._prevHeight=t.height)}),r.edges().forEach(function(e){var t=r.edge(e);Object.prototype.hasOwnProperty.call(t,"label")||(t.label=""),P(t,de)})}function he(r){r.nodes().forEach(e=>{var t=r.node(e);Object.prototype.hasOwnProperty.call(t,"_prevWidth")?t.width=t._prevWidth:delete t.width,Object.prototype.hasOwnProperty.call(t,"_prevHeight")?t.height=t._prevHeight:delete t.height,delete t._prevWidth,delete t._prevHeight})}function B(r,e){var t=r.select("g."+e);return t.empty()&&(t=r.append("g").attr("class",e)),t}function ot(r,e,t){const a=e.width,n=e.height,i=(a+n)*.9,o=[{x:i/2,y:0},{x:i,y:-i/2},{x:i/2,y:-i},{x:0,y:-i/2}],s=I(r,i,i,o);return t.intersect=function(d){return A(t,o,d)},s}function st(r,e,t){const a=e.height,n=a/4,i=e.width+2*n,o=[{x:n,y:0},{x:i-n,y:0},{x:i,y:-a/2},{x:i-n,y:-a},{x:n,y:-a},{x:0,y:-a/2}],s=I(r,i,a,o);return t.intersect=function(d){return A(t,o,d)},s}function lt(r,e,t){const a=e.width,n=e.height,i=[{x:-n/2,y:0},{x:a,y:0},{x:a,y:-n},{x:-n/2,y:-n},{x:0,y:-n/2}],o=I(r,a,n,i);return t.intersect=function(s){return A(t,i,s)},o}function dt(r,e,t){const a=e.width,n=e.height,i=[{x:-2*n/6,y:0},{x:a-n/6,y:0},{x:a+2*n/6,y:-n},{x:n/6,y:-n}],o=I(r,a,n,i);return t.intersect=function(s){return A(t,i,s)},o}function ct(r,e,t){const a=e.width,n=e.height,i=[{x:2*n/6,y:0},{x:a+n/6,y:0},{x:a-2*n/6,y:-n},{x:-n/6,y:-n}],o=I(r,a,n,i);return t.intersect=function(s){return A(t,i,s)},o}function ht(r,e,t){const a=e.width,n=e.height,i=[{x:-2*n/6,y:0},{x:a+2*n/6,y:0},{x:a-n/6,y:-n},{x:n/6,y:-n}],o=I(r,a,n,i);return t.intersect=function(s){return A(t,i,s)},o}function ut(r,e,t){const a=e.width,n=e.height,i=[{x:n/6,y:0},{x:a-n/6,y:0},{x:a+2*n/6,y:-n},{x:-2*n/6,y:-n}],o=I(r,a,n,i);return t.intersect=function(s){return A(t,i,s)},o}function pt(r,e,t){const a=e.width,n=e.height,i=[{x:0,y:0},{x:a+n/2,y:0},{x:a,y:-n/2},{x:a+n/2,y:-n},{x:0,y:-n}],o=I(r,a,n,i);return t.intersect=function(s){return A(t,i,s)},o}function ft(r,e,t){const a=e.height,n=e.width+a/4,i=r.insert("rect",":first-child").attr("rx",a/2).attr("ry",a/2).attr("x",-n/2).attr("y",-a/2).attr("width",n).attr("height",a);return t.intersect=function(o){return F(t,o)},i}function gt(r,e,t){const a=e.width,n=e.height,i=[{x:0,y:0},{x:a,y:0},{x:a,y:-n},{x:0,y:-n},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-n},{x:-8,y:-n},{x:-8,y:0}],o=I(r,a,n,i);return t.intersect=function(s){return A(t,i,s)},o}function yt(r,e,t){const a=e.width,n=a/2,i=n/(2.5+a/50),o=e.height+i,s="M 0,"+i+" a "+n+","+i+" 0,0,0 "+a+" 0 a "+n+","+i+" 0,0,0 "+-a+" 0 l 0,"+o+" a "+n+","+i+" 0,0,0 "+a+" 0 l 0,"+-o,d=r.attr("label-offset-y",i).insert("path",":first-child").attr("d",s).attr("transform","translate("+-a/2+","+-(o/2+i)+")");return t.intersect=function(u){const l=F(t,u),g=l.x-t.x;if(n!=0&&(Math.abs(g)<t.width/2||Math.abs(g)==t.width/2&&Math.abs(l.y-t.y)>t.height/2-i)){let c=i*i*(1-g*g/(n*n));c!=0&&(c=Math.sqrt(c)),c=i-c,u.y-t.y>0&&(c=-c),l.y+=c}return l},d}function ue(r){r.shapes().question=ot,r.shapes().hexagon=st,r.shapes().stadium=ft,r.shapes().subroutine=gt,r.shapes().cylinder=yt,r.shapes().rect_left_inv_arrow=lt,r.shapes().lean_right=dt,r.shapes().lean_left=ct,r.shapes().trapezoid=ht,r.shapes().inv_trapezoid=ut,r.shapes().rect_right_inv_arrow=pt}function pe(r){r({question:ot}),r({hexagon:st}),r({stadium:ft}),r({subroutine:gt}),r({cylinder:yt}),r({rect_left_inv_arrow:lt}),r({lean_right:dt}),r({lean_left:ct}),r({trapezoid:ht}),r({inv_trapezoid:ut}),r({rect_right_inv_arrow:pt})}function I(r,e,t,a){return r.insert("polygon",":first-child").attr("points",a.map(function(n){return n.x+","+n.y}).join(" ")).attr("transform","translate("+-e/2+","+t/2+")")}const fe={addToRender:ue,addToRenderV2:pe},wt={},ge=function(r){const e=Object.keys(r);for(const t of e)wt[t]=r[t]},bt=async function(r,e,t,a,n,i){const o=a?a.select(`[id="${t}"]`):x(`[id="${t}"]`),s=n||document,d=Object.keys(r);for(const u of d){const l=r[u];let g="default";l.classes.length>0&&(g=l.classes.join(" "));const c=R(l.styles);let h=l.text!==void 0?l.text:l.id,f;if(K($().flowchart.htmlLabels)){const w={label:await J(h.replace(/fa[blrs]?:fa-[\w-]+/g,k=>`<i class='${k.replace(":"," ")}'></i>`),$())};f=tt(o,w).node(),f.parentNode.removeChild(f)}else{const w=s.createElementNS("http://www.w3.org/2000/svg","text");w.setAttribute("style",c.labelStyle.replace("color:","fill:"));const k=h.split(Z.lineBreakRegex);for(const T of k){const S=s.createElementNS("http://www.w3.org/2000/svg","tspan");S.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),S.setAttribute("dy","1em"),S.setAttribute("x","1"),S.textContent=T,w.appendChild(S)}f=w}let b=0,p="";switch(l.type){case"round":b=5,p="rect";break;case"square":p="rect";break;case"diamond":p="question";break;case"hexagon":p="hexagon";break;case"odd":p="rect_left_inv_arrow";break;case"lean_right":p="lean_right";break;case"lean_left":p="lean_left";break;case"trapezoid":p="trapezoid";break;case"inv_trapezoid":p="inv_trapezoid";break;case"odd_right":p="rect_left_inv_arrow";break;case"circle":p="circle";break;case"ellipse":p="ellipse";break;case"stadium":p="stadium";break;case"subroutine":p="subroutine";break;case"cylinder":p="cylinder";break;case"group":p="rect";break;default:p="rect"}j.warn("Adding node",l.id,l.domId),e.setNode(i.db.lookUpDomId(l.id),{labelType:"svg",labelStyle:c.labelStyle,shape:p,label:f,rx:b,ry:b,class:g,style:c.style,id:i.db.lookUpDomId(l.id)})}},xt=async function(r,e,t){let a=0,n,i;if(r.defaultStyle!==void 0){const o=R(r.defaultStyle);n=o.style,i=o.labelStyle}for(const o of r){a++;const s="L-"+o.start+"-"+o.end,d="LS-"+o.start,u="LE-"+o.end,l={};o.type==="arrow_open"?l.arrowhead="none":l.arrowhead="normal";let g="",c="";if(o.style!==void 0){const h=R(o.style);g=h.style,c=h.labelStyle}else switch(o.stroke){case"normal":g="fill:none",n!==void 0&&(g=n),i!==void 0&&(c=i);break;case"dotted":g="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":g=" stroke-width: 3.5px;fill:none";break}l.style=g,l.labelStyle=c,o.interpolate!==void 0?l.curve=U(o.interpolate,C):r.defaultInterpolate!==void 0?l.curve=U(r.defaultInterpolate,C):l.curve=U(wt.curve,C),o.text===void 0?o.style!==void 0&&(l.arrowheadStyle="fill: #333"):(l.arrowheadStyle="fill: #333",l.labelpos="c",K($().flowchart.htmlLabels)?(l.labelType="html",l.label=`<span id="L-${s}" class="edgeLabel L-${d}' L-${u}" style="${l.labelStyle}">${await J(o.text.replace(/fa[blrs]?:fa-[\w-]+/g,h=>`<i class='${h.replace(":"," ")}'></i>`),$())}</span>`):(l.labelType="text",l.label=o.text.replace(Z.lineBreakRegex,`
|
|
4
4
|
`),o.style===void 0&&(l.style=l.style||"stroke: #333; stroke-width: 1.5px;fill:none"),l.labelStyle=l.labelStyle.replace("color:","fill:"))),l.id=s,l.class=d+" "+u,l.minlen=o.length||1,e.setEdge(t.db.lookUpDomId(o.start),t.db.lookUpDomId(o.end),l,a)}},ye=function(r,e){return j.info("Extracting classes"),e.db.getClasses()},we=async function(r,e,t,a){j.info("Drawing flowchart");const{securityLevel:n,flowchart:i}=$();let o;n==="sandbox"&&(o=x("#i"+e));const s=n==="sandbox"?x(o.nodes()[0].contentDocument.body):x("body"),d=n==="sandbox"?o.nodes()[0].contentDocument:document;let u=a.db.getDirection();u===void 0&&(u="TD");const l=i.nodeSpacing||50,g=i.rankSpacing||50,c=new St({multigraph:!0,compound:!0}).setGraph({rankdir:u,nodesep:l,ranksep:g,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let h;const f=a.db.getSubGraphs();for(let y=f.length-1;y>=0;y--)h=f[y],a.db.addVertex(h.id,h.title,"group",void 0,h.classes);const b=a.db.getVertices();j.warn("Get vertices",b);const p=a.db.getEdges();let w=0;for(w=f.length-1;w>=0;w--){h=f[w],Mt("cluster").append("text");for(let y=0;y<h.nodes.length;y++)j.warn("Setting subgraph",h.nodes[y],a.db.lookUpDomId(h.nodes[y]),a.db.lookUpDomId(h.id)),c.setParent(a.db.lookUpDomId(h.nodes[y]),a.db.lookUpDomId(h.id))}await bt(b,c,e,s,d,a),await xt(p,c,a);const k=new se;fe.addToRender(k),k.arrows().none=function(y,v,_,m){const M=y.append("marker").attr("id",v).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");L(M,_[m+"Style"])},k.arrows().normal=function(y,v){y.append("marker").attr("id",v).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};const T=s.select(`[id="${e}"]`),S=s.select("#"+e+" g");for(k(S,c),S.selectAll("g.node").attr("title",function(){return a.db.getTooltip(this.id)}),a.db.indexNodes("subGraph"+w),w=0;w<f.length;w++)if(h=f[w],h.title!=="undefined"){const y=d.querySelectorAll("#"+e+' [id="'+a.db.lookUpDomId(h.id)+'"] rect'),v=d.querySelectorAll("#"+e+' [id="'+a.db.lookUpDomId(h.id)+'"]'),_=y[0].x.baseVal.value,m=y[0].y.baseVal.value,M=y[0].width.baseVal.value,N=x(v[0]).select(".label");N.attr("transform",`translate(${_+M/2}, ${m+14})`),N.attr("id",e+"Text");for(let E=0;E<h.classes.length;E++)v[0].classList.add(h.classes[E])}if(!i.htmlLabels){const y=d.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const v of y){const _=v.getBBox(),m=d.createElementNS("http://www.w3.org/2000/svg","rect");m.setAttribute("rx",0),m.setAttribute("ry",0),m.setAttribute("width",_.width),m.setAttribute("height",_.height),v.insertBefore(m,v.firstChild)}}mt(c,T,i.diagramPadding,i.useMaxWidth),Object.keys(b).forEach(function(y){const v=b[y];if(v.link){const _=s.select("#"+e+' [id="'+a.db.lookUpDomId(y)+'"]');if(_){const m=d.createElementNS("http://www.w3.org/2000/svg","a");m.setAttributeNS("http://www.w3.org/2000/svg","class",v.classes.join(" ")),m.setAttributeNS("http://www.w3.org/2000/svg","href",v.link),m.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),n==="sandbox"?m.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):v.linkTarget&&m.setAttributeNS("http://www.w3.org/2000/svg","target",v.linkTarget);const M=_.insert(function(){return m},":first-child"),N=_.select(".label-container");N&&M.append(function(){return N.node()});const E=_.select(".label");E&&M.append(function(){return E.node()})}}})},be={setConf:ge,addVertices:bt,addEdges:xt,getClasses:ye,draw:we},Te={parser:vt,db:D,renderer:Tt,styles:It,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,be.setConf(r.flowchart),D.clear(),D.setGen("gen-1")}};export{Te as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as o,X as e}from"./flowDb-c6c81e3f-CRRW-bQO-HITLukvy.js";import{h as a,w as t}from"./styles-d45a18b0-DZ8oSYcV-CG6sdjTP.js";import{n as s}from"./index--DBVktm0.js";import"./graph-BV6jB5rk-CdEYXCfk.js";import"./layout-LXMv3mSS-DxzYqwJj.js";import"./index-5325376f-DrY72DrM-6JgEWzV-.js";import"./clone-B1V2003j-TxzpTD1c.js";import"./edges-96097737-Zk-qG_8u-DK7AVtHJ.js";import"./createText-1719965b-C2-AT0ab-DdeHG0fk.js";import"./channel-BKp1WYnX-C2kiKBzQ.js";const k={parser:e,db:o,renderer:t,styles:a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,s({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{k as diagram};
|