You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
36 KiB
JavaScript

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3549],{21390:function(t,e,r){r.d(e,{a:function(){return d},c:function(){return s}});var a=r(51893),n=r(56858),i=r(54525);function l(t,e,r){return t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em")}function s(t,e,r){var a;let n=t.append("text"),i=l(n,1,e);o(i,[{content:r,type:"normal"}]);let s=null==(a=i.node())?void 0:a.getBoundingClientRect();return s&&n.remove(),s}function o(t,e){t.text(""),e.forEach((e,r)=>{let a=t.append("tspan").attr("font-style","emphasis"===e.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===e.type?"bold":"normal");0===r?a.text(e.content):a.text(" "+e.content)})}let d=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",{style:r="",isTitle:s=!1,classes:d="",useHtmlLabels:c=!0,isNode:h=!0,width:p=200,addSvgBackground:g=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(a.l.info("createText",e,r,s,d,c,h,g),!c)return function(t,e,r){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=e.append("g"),i=n.insert("rect").attr("class","background"),s=n.append("text").attr("y","-10.1"),d=0;for(let e of r){let r=e=>(function(t,e,r){let a=t.append("text"),n=l(a,1,1.1);o(n,r);let i=n.node().getComputedTextLength();return a.remove(),i})(n,0,e)<=t;for(let t of r(e)?[e]:function(t,e){if(t.some(t=>{let{content:e}=t;return e.includes("\n")}))throw Error("splitLineToFitWidth does not support newlines in the line");return function t(e,r){var a,n;let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(0===e.length)return l.length>0&&i.push(l),i.length>0?i:[];let s="";" "===e[0].content&&(s=" ",e.shift());let o=null!==(a=e.shift())&&void 0!==a?a:{content:" ",type:"normal"},d=[...l];if(""!==s&&d.push({content:s,type:"normal"}),d.push(o),r(d))return t(e,r,i,d);if(l.length>0)i.push(l),e.unshift(o);else if(o.content){let[t,a]=function t(e,r,a,n){if(0===a.length)return[{content:r.join(""),type:n},{content:"",type:n}];let[i,...l]=a,s=[...r,i];return e([{content:s.join(""),type:n}])?t(e,s,l,n):(0===r.length&&i&&(r.push(i),a.shift()),[{content:r.join(""),type:n},{content:a.join(""),type:n}])}(r,[],(n=o.content,Intl.Segmenter?[...new Intl.Segmenter().segment(n)].map(t=>t.segment):[...n]),o.type);i.push([t]),a.content&&e.unshift(a)}return t(e,r,i)}(t,e)}(e,r))o(l(s,d,1.1),t),d++}if(!a)return s.node();{let t=s.node().getBBox();return i.attr("x",-2).attr("y",-2).attr("width",t.width+4).attr("height",t.height+4),n.node()}}(p,t,function(t){let e=function(t){let e=t.replace(/\n{2,}/g,"\n");return(0,i.Z)(e)}(t),{children:r}=(0,n.V)(e),a=[[]],l=0;return r.forEach(t=>{"paragraph"===t.type&&t.children.forEach(t=>{!function t(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";"text"===e.type?e.value.split("\n").forEach((t,e)=>{0!==e&&(l++,a.push([])),t.split(" ").forEach(t=>{t&&a[l].push({content:t,type:r})})}):("strong"===e.type||"emphasis"===e.type)&&e.children.forEach(r=>{t(r,e.type)})}(t)})}),a}(e),g);{let i=function(t){let{children:e}=(0,n.V)(t);return e.map(function t(e){return"text"===e.type?e.value.replace(/\n/g,"<br/>"):"strong"===e.type?"<strong>".concat(e.children.map(t).join(""),"</strong>"):"emphasis"===e.type?"<em>".concat(e.children.map(t).join(""),"</em>"):"paragraph"===e.type?"<p>".concat(e.children.map(t).join(""),"</p>"):"Unsupported markdown: ".concat(e.type)}).join("")}(e);return function(t,e,r,a){var n;let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=t.append("foreignObject"),s=l.append("xhtml:div"),o=e.label,d=e.isNode?"nodeLabel":"edgeLabel";s.html('\n <span class="'.concat(d," ").concat(a,'" ')+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+o+"</span>"),(n=e.labelStyle)&&s.attr("style",n),s.style("display","table-cell"),s.style("white-space","nowrap"),s.style("max-width",r+"px"),s.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&s.attr("class","labelBkg");let c=s.node().getBoundingClientRect();return c.width===r&&(s.style("display","table"),s.style("white-space","break-spaces"),s.style("width",r+"px"),c=s.node().getBoundingClientRect()),l.style("width",c.width),l.style("height",c.height),l.node()}(t,{isNode:h,label:(0,a.J)(i).replace(/fa[blrs]?:fa-[\w-]+/g,t=>"<i class='".concat(t.replace(":"," "),"'></i>")),labelStyle:r.replace("fill:","color:")},p,d,g)}}},33549:function(t,e,r){r.d(e,{a:function(){return s},b:function(){return S},c:function(){return o},d:function(){return j},e:function(){return L},f:function(){return R},g:function(){return D},h:function(){return I},i:function(){return g},j:function(){return B},l:function(){return d},p:function(){return _},s:function(){return v},u:function(){return c}});var a=r(51893),n=r(36783),i=r(21390);let l={extension:(t,e,r)=>{a.l.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).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")},composition:(t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).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")},aggregation:(t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).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")},dependency:(t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).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")},lollipop:(t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).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),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).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)},point:(t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).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")},circle:(t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).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")},cross:(t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).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"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).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")},barb:(t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-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")}},s=(t,e,r,a)=>{e.forEach(e=>{l[e](t,r,a)})},o=(t,e,r,i)=>{let l=t||"";if("object"==typeof l&&(l=l[0]),(0,a.m)((0,a.c)().flowchart.htmlLabels))return l=l.replace(/\\n|\n/g,"<br />"),a.l.info("vertexText"+l),function(t){var e;let r=(0,n.Ys)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),a=r.append("xhtml:div"),i=t.label,l=t.isNode?"nodeLabel":"edgeLabel";return a.html('<span class="'+l+'" '+(t.labelStyle?'style="'+t.labelStyle+'"':"")+">"+i+"</span>"),(e=t.labelStyle)&&a.attr("style",e),a.style("display","inline-block"),a.style("white-space","nowrap"),a.attr("xmlns","http://www.w3.org/1999/xhtml"),r.node()}({isNode:i,label:(0,a.J)(l).replace(/fa[blrs]?:fa-[\w-]+/g,t=>"<i class='".concat(t.replace(":"," "),"'></i>")),labelStyle:e.replace("fill:","color:")});{let t=document.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",e.replace("color:","fill:"));for(let e of"string"==typeof l?l.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(l)?l:[]){let a=document.createElementNS("http://www.w3.org/2000/svg","tspan");a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),a.setAttribute("dy","1em"),a.setAttribute("x","0"),r?a.setAttribute("class","title-row"):a.setAttribute("class","row"),a.textContent=e.trim(),t.appendChild(a)}return t}},d=async(t,e,r,l)=>{let s,d;let c=e.useHtmlLabels||(0,a.m)((0,a.c)().flowchart.htmlLabels),h=t.insert("g").attr("class",r||"node default").attr("id",e.domId||e.id),p=h.insert("g").attr("class","label").attr("style",e.labelStyle);s=void 0===e.labelText?"":"string"==typeof e.labelText?e.labelText:e.labelText[0];let g=p.node(),y=(d="markdown"===e.labelType?(0,i.a)(p,(0,a.d)((0,a.J)(s),(0,a.c)()),{useHtmlLabels:c,width:e.width||(0,a.c)().flowchart.wrappingWidth,classes:"markdown-node-label"}):g.appendChild(o((0,a.d)((0,a.J)(s),(0,a.c)()),e.labelStyle,!1,l))).getBBox(),f=e.padding/2;if((0,a.m)((0,a.c)().flowchart.htmlLabels)){let t=d.children[0],e=(0,n.Ys)(d),r=t.getElementsByTagName("img");if(r){let t=""===s.replace(/<img[^>]*>/g,"").trim();await Promise.all([...r].map(e=>new Promise(r=>{function n(){if(e.style.display="flex",e.style.flexDirection="column",t){let t=(0,a.c)().fontSize?(0,a.c)().fontSize:window.getComputedStyle(document.body).fontSize;e.style.width=5*parseInt(t,10)+"px"}else e.style.width="100%";r(e)}setTimeout(()=>{e.complete&&n()}),e.addEventListener("error",n),e.addEventListener("load",n)})))}y=t.getBoundingClientRect(),e.attr("width",y.width),e.attr("height",y.height)}return c?p.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"):p.attr("transform","translate(0, "+-y.height/2+")"),e.centerLabel&&p.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),p.insert("rect",":first-child"),{shapeSvg:h,bbox:y,halfPadding:f,label:p}},c=(t,e)=>{let r=e.node().getBBox();t.width=r.width,t.height=r.height};function h(t,e,r,a){return t.insert("polygon",":first-child").attr("points",a.map(function(t){return t.x+","+t.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}function p(t,e,r,a){var n=t.x,i=t.y,l=n-a.x,s=i-a.y,o=Math.sqrt(e*e*s*s+r*r*l*l),d=Math.abs(e*r*l/o);a.x<n&&(d=-d);var c=Math.abs(e*r*s/o);return a.y<i&&(c=-c),{x:n+d,y:i+c}}let g=(t,e)=>{var r,a,n=t.x,i=t.y,l=e.x-n,s=e.y-i,o=t.width/2,d=t.height/2;return Math.abs(s)*o>Math.abs(l)*d?(s<0&&(d=-d),r=0===s?0:d*l/s,a=d):(l<0&&(o=-o),r=o,a=0===l?0:o*s/l),{x:n+r,y:i+a}},y={node:function(t,e){return t.intersect(e)},circle:function(t,e,r){return p(t,e,e,r)},ellipse:p,polygon:function(t,e,r){var a=t.x,n=t.y,i=[],l=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;"function"==typeof e.forEach?e.forEach(function(t){l=Math.min(l,t.x),s=Math.min(s,t.y)}):(l=Math.min(l,e.x),s=Math.min(s,e.y));for(var o=a-t.width/2-l,d=n-t.height/2-s,c=0;c<e.length;c++){var h=e[c],p=e[c<e.length-1?c+1:0],g=function(t,e,r,a){var n,i,l,s,o,d,c,h,p,g,y,f,u;if(n=e.y-t.y,l=t.x-e.x,o=e.x*t.y-t.x*e.y,p=n*r.x+l*r.y+o,g=n*a.x+l*a.y+o,(0===p||0===g||!(p*g>0))&&(i=a.y-r.y,s=r.x-a.x,d=a.x*r.y-r.x*a.y,c=i*t.x+s*t.y+d,h=i*e.x+s*e.y+d,!(0!==c&&0!==h&&c*h>0)&&0!=(y=n*s-i*l)))return f=Math.abs(y/2),{x:(u=l*d-s*o)<0?(u-f)/y:(u+f)/y,y:(u=i*o-n*d)<0?(u-f)/y:(u+f)/y}}(t,r,{x:o+h.x,y:d+h.y},{x:o+p.x,y:d+p.y});g&&i.push(g)}return i.length?(i.length>1&&i.sort(function(t,e){var a=t.x-r.x,n=t.y-r.y,i=Math.sqrt(a*a+n*n),l=e.x-r.x,s=e.y-r.y,o=Math.sqrt(l*l+s*s);return i<o?-1:i===o?0:1}),i[0]):t},rect:g},f=t=>t?" "+t:"",u=(t,e)=>"".concat(e||"node default").concat(f(t.classes)," ").concat(f(t.class)),w=async(t,e)=>{let{shapeSvg:r,bbox:n}=await d(t,e,u(e,void 0),!0),i=n.width+e.padding+(n.height+e.padding),l=[{x:i/2,y:0},{x:i,y:-i/2},{x:i/2,y:-i},{x:0,y:-i/2}];a.l.info("Question main (Circle)");let s=h(r,i,i,l);return s.attr("style",e.style),c(e,s),e.intersect=function(t){return a.l.warn("Intersect called"),y.polygon(e,l,t)},r};function m(t,e,r,n){let i=[],l=t=>{i.push(t,0)},s=t=>{i.push(0,t)};e.includes("t")?(a.l.debug("add top border"),l(r)):s(r),e.includes("r")?(a.l.debug("add right border"),l(n)):s(n),e.includes("b")?(a.l.debug("add bottom border"),l(r)):s(r),e.includes("l")?(a.l.debug("add left border"),l(n)):s(n),t.attr("stroke-dasharray",i.join(" "))}let x=(t,e,r)=>{let a=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),n=70,i=10;return"LR"===r&&(n=10,i=70),c(e,a.append("rect").attr("x",-1*n/2).attr("y",-1*i/2).attr("width",n).attr("height",i).attr("class","fork-join")),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(t){return y.rect(e,t)},a},b={rhombus:w,question:w,rect:async(t,e)=>{let{shapeSvg:r,bbox:n,halfPadding:i}=await d(t,e,"node "+e.classes+" "+e.class,!0),l=r.insert("rect",":first-child"),s=n.width+e.padding,o=n.height+e.padding;if(l.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",-n.width/2-i).attr("y",-n.height/2-i).attr("width",s).attr("height",o),e.props){let t=new Set(Object.keys(e.props));e.props.borders&&(m(l,e.props.borders,s,o),t.delete("borders")),t.forEach(t=>{a.l.warn("Unknown node property ".concat(t))})}return c(e,l),e.intersect=function(t){return y.rect(e,t)},r},labelRect:async(t,e)=>{let{shapeSvg:r}=await d(t,e,"label",!0);a.l.trace("Classes = ",e.class);let n=r.insert("rect",":first-child");if(n.attr("width",0).attr("height",0),r.attr("class","label edgeLabel"),e.props){let t=new Set(Object.keys(e.props));e.props.borders&&(m(n,e.props.borders,0,0),t.delete("borders")),t.forEach(t=>{a.l.warn("Unknown node property ".concat(t))})}return c(e,n),e.intersect=function(t){return y.rect(e,t)},r},rectWithTitle:(t,e)=>{let r;r=e.classes?"node "+e.classes:"node default";let i=t.insert("g").attr("class",r).attr("id",e.domId||e.id),l=i.insert("rect",":first-child"),s=i.insert("line"),d=i.insert("g").attr("class","label"),h=e.labelText.flat?e.labelText.flat():e.labelText,p="";p="object"==typeof h?h[0]:h,a.l.info("Label text abc79",p,h,"object"==typeof h);let g=d.node().appendChild(o(p,e.labelStyle,!0,!0)),f={width:0,height:0};if((0,a.m)((0,a.c)().flowchart.htmlLabels)){let t=g.children[0],e=(0,n.Ys)(g);f=t.getBoundingClientRect(),e.attr("width",f.width),e.attr("height",f.height)}a.l.info("Text 2",h);let u=h.slice(1,h.length),w=g.getBBox(),m=d.node().appendChild(o(u.join?u.join("<br/>"):u,e.labelStyle,!0,!0));if((0,a.m)((0,a.c)().flowchart.htmlLabels)){let t=m.children[0],e=(0,n.Ys)(m);f=t.getBoundingClientRect(),e.attr("width",f.width),e.attr("height",f.height)}let x=e.padding/2;return(0,n.Ys)(m).attr("transform","translate( "+(f.width>w.width?0:(w.width-f.width)/2)+", "+(w.height+x+5)+")"),(0,n.Ys)(g).attr("transform","translate( "+(f.width<w.width?0:-(w.width-f.width)/2)+", 0)"),f=d.node().getBBox(),d.attr("transform","translate("+-f.width/2+", "+(-f.height/2-x+3)+")"),l.attr("class","outer title-state").attr("x",-f.width/2-x).attr("y",-f.height/2-x).attr("width",f.width+e.padding).attr("height",f.height+e.padding),s.attr("class","divider").attr("x1",-f.width/2-x).attr("x2",f.width/2+x).attr("y1",-f.height/2-x+w.height+x).attr("y2",-f.height/2-x+w.height+x),c(e,l),e.intersect=function(t){return y.rect(e,t)},i},choice:(t,e)=>{let r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);return r.insert("polygon",":first-child").attr("points",[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}].map(function(t){return t.x+","+t.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),e.width=28,e.height=28,e.intersect=function(t){return y.circle(e,14,t)},r},circle:async(t,e)=>{let{shapeSvg:r,bbox:n,halfPadding:i}=await d(t,e,u(e,void 0),!0),l=r.insert("circle",":first-child");return l.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",n.width/2+i).attr("width",n.width+e.padding).attr("height",n.height+e.padding),a.l.info("Circle main"),c(e,l),e.intersect=function(t){return a.l.info("Circle intersect",e,n.width/2+i,t),y.circle(e,n.width/2+i,t)},r},doublecircle:async(t,e)=>{let{shapeSvg:r,bbox:n,halfPadding:i}=await d(t,e,u(e,void 0),!0),l=r.insert("g",":first-child"),s=l.insert("circle"),o=l.insert("circle");return l.attr("class",e.class),s.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",n.width/2+i+5).attr("width",n.width+e.padding+10).attr("height",n.height+e.padding+10),o.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",n.width/2+i).attr("width",n.width+e.padding).attr("height",n.height+e.padding),a.l.info("DoubleCircle main"),c(e,s),e.intersect=function(t){return a.l.info("DoubleCircle intersect",e,n.width/2+i+5,t),y.circle(e,n.width/2+i+5,t)},r},stadium:async(t,e)=>{let{shapeSvg:r,bbox:a}=await d(t,e,u(e,void 0),!0),n=a.height+e.padding,i=a.width+n/4+e.padding,l=r.insert("rect",":first-child").attr("style",e.style).attr("rx",n/2).attr("ry",n/2).attr("x",-i/2).attr("y",-n/2).attr("width",i).attr("height",n);return c(e,l),e.intersect=function(t){return y.rect(e,t)},r},hexagon:async(t,e)=>{let{shapeSvg:r,bbox:a}=await d(t,e,u(e,void 0),!0),n=a.height+e.padding,i=n/4,l=a.width+2*i+e.padding,s=[{x:i,y:0},{x:l-i,y:0},{x:l,y:-n/2},{x:l-i,y:-n},{x:i,y:-n},{x:0,y:-n/2}],o=h(r,l,n,s);return o.attr("style",e.style),c(e,o),e.intersect=function(t){return y.polygon(e,s,t)},r},rect_left_inv_arrow:async(t,e)=>{let{shapeSvg:r,bbox:a}=await d(t,e,u(e,void 0),!0),n=a.width+e.padding,i=a.height+e.padding,l=[{x:-i/2,y:0},{x:n,y:0},{x:n,y:-i},{x:-i/2,y:-i},{x:0,y:-i/2}];return h(r,n,i,l).attr("style",e.style),e.width=n+i,e.height=i,e.intersect=function(t){return y.polygon(e,l,t)},r},lean_right:async(t,e)=>{let{shapeSvg:r,bbox:a}=await d(t,e,u(e),!0),n=a.width+e.padding,i=a.height+e.padding,l=[{x:-2*i/6,y:0},{x:n-i/6,y:0},{x:n+2*i/6,y:-i},{x:i/6,y:-i}],s=h(r,n,i,l);return s.attr("style",e.style),c(e,s),e.intersect=function(t){return y.polygon(e,l,t)},r},lean_left:async(t,e)=>{let{shapeSvg:r,bbox:a}=await d(t,e,u(e,void 0),!0),n=a.width+e.padding,i=a.height+e.padding,l=[{x:2*i/6,y:0},{x:n+i/6,y:0},{x:n-2*i/6,y:-i},{x:-i/6,y:-i}],s=h(r,n,i,l);return s.attr("style",e.style),c(e,s),e.intersect=function(t){return y.polygon(e,l,t)},r},trapezoid:async(t,e)=>{let{shapeSvg:r,bbox:a}=await d(t,e,u(e,void 0),!0),n=a.width+e.padding,i=a.height+e.padding,l=[{x:-2*i/6,y:0},{x:n+2*i/6,y:0},{x:n-i/6,y:-i},{x:i/6,y:-i}],s=h(r,n,i,l);return s.attr("style",e.style),c(e,s),e.intersect=function(t){return y.polygon(e,l,t)},r},inv_trapezoid:async(t,e)=>{let{shapeSvg:r,bbox:a}=await d(t,e,u(e,void 0),!0),n=a.width+e.padding,i=a.height+e.padding,l=[{x:i/6,y:0},{x:n-i/6,y:0},{x:n+2*i/6,y:-i},{x:-2*i/6,y:-i}],s=h(r,n,i,l);return s.attr("style",e.style),c(e,s),e.intersect=function(t){return y.polygon(e,l,t)},r},rect_right_inv_arrow:async(t,e)=>{let{shapeSvg:r,bbox:a}=await d(t,e,u(e,void 0),!0),n=a.width+e.padding,i=a.height+e.padding,l=[{x:0,y:0},{x:n+i/2,y:0},{x:n,y:-i/2},{x:n+i/2,y:-i},{x:0,y:-i}],s=h(r,n,i,l);return s.attr("style",e.style),c(e,s),e.intersect=function(t){return y.polygon(e,l,t)},r},cylinder:async(t,e)=>{let{shapeSvg:r,bbox:a}=await d(t,e,u(e,void 0),!0),n=a.width+e.padding,i=n/2,l=i/(2.5+n/50),s=a.height+l+e.padding,o=r.attr("label-offset-y",l).insert("path",":first-child").attr("style",e.style).attr("d","M 0,"+l+" a "+i+","+l+" 0,0,0 "+n+" 0 a "+i+","+l+" 0,0,0 "+-n+" 0 l 0,"+s+" a "+i+","+l+" 0,0,0 "+n+" 0 l 0,"+-s).attr("transform","translate("+-n/2+","+-(s/2+l)+")");return c(e,o),e.intersect=function(t){let r=y.rect(e,t),a=r.x-e.x;if(0!=i&&(Math.abs(a)<e.width/2||Math.abs(a)==e.width/2&&Math.abs(r.y-e.y)>e.height/2-l)){let n=l*l*(1-a*a/(i*i));0!=n&&(n=Math.sqrt(n)),n=l-n,t.y-e.y>0&&(n=-n),r.y+=n}return r},r},start:(t,e)=>{let r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),a=r.insert("circle",":first-child");return a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),c(e,a),e.intersect=function(t){return y.circle(e,7,t)},r},end:(t,e)=>{let r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),a=r.insert("circle",":first-child"),n=r.insert("circle",":first-child");return n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),a.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),c(e,n),e.intersect=function(t){return y.circle(e,7,t)},r},note:async(t,e)=>{e.useHtmlLabels||(0,a.c)().flowchart.htmlLabels||(e.centerLabel=!0);let{shapeSvg:r,bbox:n,halfPadding:i}=await d(t,e,"node "+e.classes,!0);a.l.info("Classes = ",e.classes);let l=r.insert("rect",":first-child");return l.attr("rx",e.rx).attr("ry",e.ry).attr("x",-n.width/2-i).attr("y",-n.height/2-i).attr("width",n.width+e.padding).attr("height",n.height+e.padding),c(e,l),e.intersect=function(t){return y.rect(e,t)},r},subroutine:async(t,e)=>{let{shapeSvg:r,bbox:a}=await d(t,e,u(e,void 0),!0),n=a.width+e.padding,i=a.height+e.padding,l=[{x:0,y:0},{x:n,y:0},{x:n,y:-i},{x:0,y:-i},{x:0,y:0},{x:-8,y:0},{x:n+8,y:0},{x:n+8,y:-i},{x:-8,y:-i},{x:-8,y:0}],s=h(r,n,i,l);return s.attr("style",e.style),c(e,s),e.intersect=function(t){return y.polygon(e,l,t)},r},fork:x,join:x,class_box:(t,e)=>{let r;let i=e.padding/2;r=e.classes?"node "+e.classes:"node default";let l=t.insert("g").attr("class",r).attr("id",e.domId||e.id),s=l.insert("rect",":first-child"),d=l.insert("line"),h=l.insert("line"),p=0,g=4,f=l.insert("g").attr("class","label"),u=0,w=e.classData.annotations&&e.classData.annotations[0],m=e.classData.annotations[0]?"\xab"+e.classData.annotations[0]+"\xbb":"",x=f.node().appendChild(o(m,e.labelStyle,!0,!0)),b=x.getBBox();if((0,a.m)((0,a.c)().flowchart.htmlLabels)){let t=x.children[0],e=(0,n.Ys)(x);b=t.getBoundingClientRect(),e.attr("width",b.width),e.attr("height",b.height)}e.classData.annotations[0]&&(g+=b.height+4,p+=b.width);let k=e.classData.label;void 0!==e.classData.type&&""!==e.classData.type&&((0,a.c)().flowchart.htmlLabels?k+="&lt;"+e.classData.type+"&gt;":k+="<"+e.classData.type+">");let L=f.node().appendChild(o(k,e.labelStyle,!0,!0));(0,n.Ys)(L).attr("class","classTitle");let v=L.getBBox();if((0,a.m)((0,a.c)().flowchart.htmlLabels)){let t=L.children[0],e=(0,n.Ys)(L);v=t.getBoundingClientRect(),e.attr("width",v.width),e.attr("height",v.height)}g+=v.height+4,v.width>p&&(p=v.width);let S=[];e.classData.members.forEach(t=>{let r=t.getDisplayDetails(),i=r.displayText;(0,a.c)().flowchart.htmlLabels&&(i=i.replace(/</g,"&lt;").replace(/>/g,"&gt;"));let l=f.node().appendChild(o(i,r.cssStyle?r.cssStyle:e.labelStyle,!0,!0)),s=l.getBBox();if((0,a.m)((0,a.c)().flowchart.htmlLabels)){let t=l.children[0],e=(0,n.Ys)(l);s=t.getBoundingClientRect(),e.attr("width",s.width),e.attr("height",s.height)}s.width>p&&(p=s.width),g+=s.height+4,S.push(l)}),g+=8;let _=[];if(e.classData.methods.forEach(t=>{let r=t.getDisplayDetails(),i=r.displayText;(0,a.c)().flowchart.htmlLabels&&(i=i.replace(/</g,"&lt;").replace(/>/g,"&gt;"));let l=f.node().appendChild(o(i,r.cssStyle?r.cssStyle:e.labelStyle,!0,!0)),s=l.getBBox();if((0,a.m)((0,a.c)().flowchart.htmlLabels)){let t=l.children[0],e=(0,n.Ys)(l);s=t.getBoundingClientRect(),e.attr("width",s.width),e.attr("height",s.height)}s.width>p&&(p=s.width),g+=s.height+4,_.push(l)}),g+=8,w){let t=(p-b.width)/2;(0,n.Ys)(x).attr("transform","translate( "+(-1*p/2+t)+", "+-1*g/2+")"),u=b.height+4}let M=(p-v.width)/2;return(0,n.Ys)(L).attr("transform","translate( "+(-1*p/2+M)+", "+(-1*g/2+u)+")"),u+=v.height+4,d.attr("class","divider").attr("x1",-p/2-i).attr("x2",p/2+i).attr("y1",-g/2-i+8+u).attr("y2",-g/2-i+8+u),u+=8,S.forEach(t=>{var e;(0,n.Ys)(t).attr("transform","translate( "+-p/2+", "+(-1*g/2+u+4)+")");let r=null==t?void 0:t.getBBox();u+=(null!==(e=null==r?void 0:r.height)&&void 0!==e?e:0)+4}),u+=8,h.attr("class","divider").attr("x1",-p/2-i).attr("x2",p/2+i).attr("y1",-g/2-i+8+u).attr("y2",-g/2-i+8+u),u+=8,_.forEach(t=>{var e;(0,n.Ys)(t).attr("transform","translate( "+-p/2+", "+(-1*g/2+u)+")");let r=null==t?void 0:t.getBBox();u+=(null!==(e=null==r?void 0:r.height)&&void 0!==e?e:0)+4}),s.attr("class","outer title-state").attr("x",-p/2-i).attr("y",-(g/2)-i).attr("width",p+e.padding).attr("height",g+e.padding),c(e,s),e.intersect=function(t){return y.rect(e,t)},l}},k={},L=async(t,e,r)=>{let n,i;if(e.link){let l;"sandbox"===(0,a.c)().securityLevel?l="_top":e.linkTarget&&(l=e.linkTarget||"_blank"),n=t.insert("svg:a").attr("xlink:href",e.link).attr("target",l),i=await b[e.shape](n,e,r)}else n=i=await b[e.shape](t,e,r);return e.tooltip&&i.attr("title",e.tooltip),e.class&&i.attr("class","node default "+e.class),k[e.id]=n,e.haveCallback&&k[e.id].attr("class",k[e.id].attr("class")+" clickable"),n},v=(t,e)=>{k[e.id]=t},S=()=>{k={}},_=t=>{let e=k[t.id];a.l.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let r=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r},M={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function E(t,e){t=T(t),e=T(e);let[r,a]=[t.x,t.y],[n,i]=[e.x,e.y],l=n-r,s=i-a;return{angle:Math.atan(s/l),deltaX:l,deltaY:s}}let T=t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,B=t=>({x:function(e,r,a){let n=0;if(0===r&&Object.hasOwn(M,t.arrowTypeStart)){let{angle:e,deltaX:r}=E(a[0],a[1]);n=M[t.arrowTypeStart]*Math.cos(e)*(r>=0?1:-1)}else if(r===a.length-1&&Object.hasOwn(M,t.arrowTypeEnd)){let{angle:e,deltaX:r}=E(a[a.length-1],a[a.length-2]);n=M[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}return T(e).x+n},y:function(e,r,a){let n=0;if(0===r&&Object.hasOwn(M,t.arrowTypeStart)){let{angle:e,deltaY:r}=E(a[0],a[1]);n=M[t.arrowTypeStart]*Math.abs(Math.sin(e))*(r>=0?1:-1)}else if(r===a.length-1&&Object.hasOwn(M,t.arrowTypeEnd)){let{angle:e,deltaY:r}=E(a[a.length-1],a[a.length-2]);n=M[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}return T(e).y+n}}),C={},Y={},j=()=>{C={},Y={}},R=(t,e)=>{let r;let l=(0,a.m)((0,a.c)().flowchart.htmlLabels),s="markdown"===e.labelType?(0,i.a)(t,e.label,{style:e.labelStyle,useHtmlLabels:l,addSvgBackground:!0}):o(e.label,e.labelStyle);a.l.info("abc82",e,e.labelType);let d=t.insert("g").attr("class","edgeLabel"),c=d.insert("g").attr("class","label");c.node().appendChild(s);let h=s.getBBox();if(l){let t=s.children[0],e=(0,n.Ys)(s);h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}if(c.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),C[e.id]=d,e.width=h.width,e.height=h.height,e.startLabelLeft){let a=o(e.startLabelLeft,e.labelStyle),n=t.insert("g").attr("class","edgeTerminals"),i=n.insert("g").attr("class","inner");r=i.node().appendChild(a);let l=a.getBBox();i.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"),Y[e.id]||(Y[e.id]={}),Y[e.id].startLeft=n,P(r,e.startLabelLeft)}if(e.startLabelRight){let a=o(e.startLabelRight,e.labelStyle),n=t.insert("g").attr("class","edgeTerminals"),i=n.insert("g").attr("class","inner");r=n.node().appendChild(a),i.node().appendChild(a);let l=a.getBBox();i.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"),Y[e.id]||(Y[e.id]={}),Y[e.id].startRight=n,P(r,e.startLabelRight)}if(e.endLabelLeft){let a=o(e.endLabelLeft,e.labelStyle),n=t.insert("g").attr("class","edgeTerminals"),i=n.insert("g").attr("class","inner");r=i.node().appendChild(a);let l=a.getBBox();i.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"),n.node().appendChild(a),Y[e.id]||(Y[e.id]={}),Y[e.id].endLeft=n,P(r,e.endLabelLeft)}if(e.endLabelRight){let a=o(e.endLabelRight,e.labelStyle),n=t.insert("g").attr("class","edgeTerminals"),i=n.insert("g").attr("class","inner");r=i.node().appendChild(a);let l=a.getBBox();i.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"),n.node().appendChild(a),Y[e.id]||(Y[e.id]={}),Y[e.id].endRight=n,P(r,e.endLabelRight)}return s};function P(t,e){(0,a.c)().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}let I=(t,e)=>{a.l.info("Moving label abc78 ",t.id,t.label,C[t.id]);let r=e.updatedPath?e.updatedPath:e.originalPath;if(t.label){let n=C[t.id],i=t.x,l=t.y;if(r){let n=a.u.calcLabelPosition(r);a.l.info("Moving label "+t.label+" from (",i,",",l,") to (",n.x,",",n.y,") abc78"),e.updatedPath&&(i=n.x,l=n.y)}n.attr("transform","translate("+i+", "+l+")")}if(t.startLabelLeft){let e=Y[t.id].startLeft,n=t.x,i=t.y;if(r){let e=a.u.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);n=e.x,i=e.y}e.attr("transform","translate("+n+", "+i+")")}if(t.startLabelRight){let e=Y[t.id].startRight,n=t.x,i=t.y;if(r){let e=a.u.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);n=e.x,i=e.y}e.attr("transform","translate("+n+", "+i+")")}if(t.endLabelLeft){let e=Y[t.id].endLeft,n=t.x,i=t.y;if(r){let e=a.u.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);n=e.x,i=e.y}e.attr("transform","translate("+n+", "+i+")")}if(t.endLabelRight){let e=Y[t.id].endRight,n=t.x,i=t.y;if(r){let e=a.u.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);n=e.x,i=e.y}e.attr("transform","translate("+n+", "+i+")")}},O=(t,e)=>{let r=t.x,a=t.y,n=Math.abs(e.x-r),i=Math.abs(e.y-a),l=t.width/2,s=t.height/2;return n>=l||i>=s},N=(t,e,r)=>{a.l.warn("intersection calc abc89:\n outsidePoint: ".concat(JSON.stringify(e),"\n insidePoint : ").concat(JSON.stringify(r),"\n node : x:").concat(t.x," y:").concat(t.y," w:").concat(t.width," h:").concat(t.height));let n=t.x,i=t.y,l=Math.abs(n-r.x),s=t.width/2,o=r.x<e.x?s-l:s+l,d=t.height/2,c=Math.abs(e.y-r.y),h=Math.abs(e.x-r.x);if(Math.abs(i-e.y)*s>Math.abs(n-e.x)*d){let t=r.y<e.y?e.y-d-i:i-d-e.y;o=h*t/c;let n={x:r.x<e.x?r.x+o:r.x-h+o,y:r.y<e.y?r.y+c-t:r.y-c+t};return 0===o&&(n.x=e.x,n.y=e.y),0===h&&(n.x=e.x),0===c&&(n.y=e.y),a.l.warn("abc89 topp/bott calc, Q ".concat(c,", q ").concat(t,", R ").concat(h,", r ").concat(o),n),n}{let t=c*(o=r.x<e.x?e.x-s-n:n-s-e.x)/h,i=r.x<e.x?r.x+h-o:r.x-h+o,l=r.y<e.y?r.y+t:r.y-t;return a.l.warn("sides calc abc89, Q ".concat(c,", q ").concat(t,", R ").concat(h,", r ").concat(o),{_x:i,_y:l}),0===o&&(i=e.x,l=e.y),0===h&&(i=e.x),0===c&&(l=e.y),{x:i,y:l}}},W=(t,e)=>{a.l.warn("abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],i=!1;return t.forEach(t=>{if(a.l.info("abc88 checking point",t,e),O(e,t)||i)a.l.warn("abc88 outside",t,n),n=t,i||r.push(t);else{let l=N(e,n,t);a.l.warn("abc88 inside",t,n,l),a.l.warn("abc88 intersection",l);let s=!1;r.forEach(t=>{s=s||t.x===l.x&&t.y===l.y}),r.some(t=>t.x===l.x&&t.y===l.y)?a.l.warn("abc88 no intersect",l,r):r.push(l),i=!0}}),a.l.warn("abc88 returning points",r),r},D=function(t,e,r,i,l,s,o){let d,c=r.points,h=!1,p=s.node(e.v);var g=s.node(e.w);a.l.info("abc88 InsertEdge: ",r),g.intersect&&p.intersect&&((c=c.slice(1,r.points.length-1)).unshift(p.intersect(c[0])),a.l.info("Last point",c[c.length-1],g,g.intersect(c[c.length-1])),c.push(g.intersect(c[c.length-1]))),r.toCluster&&(a.l.info("to cluster abc88",i[r.toCluster]),c=W(r.points,i[r.toCluster].node),h=!0),r.fromCluster&&(a.l.info("from cluster abc88",i[r.fromCluster]),c=W(c.reverse(),i[r.fromCluster].node).reverse(),h=!0);let y=c.filter(t=>!Number.isNaN(t.y)),f=n.$0Z;r.curve&&("graph"===l||"flowchart"===l)&&(f=r.curve);let{x:u,y:w}=B(r),m=(0,n.jvg)().x(u).y(w).curve(f);switch(r.thickness){case"normal":d="edge-thickness-normal";break;case"thick":case"invisible":d="edge-thickness-thick";break;default:d=""}switch(r.pattern){case"solid":d+=" edge-pattern-solid";break;case"dotted":d+=" edge-pattern-dotted";break;case"dashed":d+=" edge-pattern-dashed"}let x=t.append("path").attr("d",m(y)).attr("id",r.id).attr("class"," "+d+(r.classes?" "+r.classes:"")).attr("style",r.style),b="";switch(((0,a.c)().flowchart.arrowMarkerAbsolute||(0,a.c)().state.arrowMarkerAbsolute)&&(b=(b=(b=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),a.l.info("arrowTypeStart",r.arrowTypeStart),a.l.info("arrowTypeEnd",r.arrowTypeEnd),r.arrowTypeStart){case"arrow_cross":x.attr("marker-start","url("+b+"#"+o+"_"+l+"-crossStart)");break;case"arrow_point":x.attr("marker-start","url("+b+"#"+o+"_"+l+"-pointStart)");break;case"arrow_barb":x.attr("marker-start","url("+b+"#"+o+"_"+l+"-barbStart)");break;case"arrow_circle":x.attr("marker-start","url("+b+"#"+o+"_"+l+"-circleStart)");break;case"aggregation":x.attr("marker-start","url("+b+"#"+o+"_"+l+"-aggregationStart)");break;case"extension":x.attr("marker-start","url("+b+"#"+o+"_"+l+"-extensionStart)");break;case"composition":x.attr("marker-start","url("+b+"#"+o+"_"+l+"-compositionStart)");break;case"dependency":x.attr("marker-start","url("+b+"#"+o+"_"+l+"-dependencyStart)");break;case"lollipop":x.attr("marker-start","url("+b+"#"+o+"_"+l+"-lollipopStart)")}switch(r.arrowTypeEnd){case"arrow_cross":x.attr("marker-end","url("+b+"#"+o+"_"+l+"-crossEnd)");break;case"arrow_point":x.attr("marker-end","url("+b+"#"+o+"_"+l+"-pointEnd)");break;case"arrow_barb":x.attr("marker-end","url("+b+"#"+o+"_"+l+"-barbEnd)");break;case"arrow_circle":x.attr("marker-end","url("+b+"#"+o+"_"+l+"-circleEnd)");break;case"aggregation":x.attr("marker-end","url("+b+"#"+o+"_"+l+"-aggregationEnd)");break;case"extension":x.attr("marker-end","url("+b+"#"+o+"_"+l+"-extensionEnd)");break;case"composition":x.attr("marker-end","url("+b+"#"+o+"_"+l+"-compositionEnd)");break;case"dependency":x.attr("marker-end","url("+b+"#"+o+"_"+l+"-dependencyEnd)");break;case"lollipop":x.attr("marker-end","url("+b+"#"+o+"_"+l+"-lollipopEnd)")}let k={};return h&&(k.updatedPath=c),k.originalPath=r.points,k}}}]);