PageSourceSearch

https://www.moltenigroup.com/_next/static/chunks/3f896793.b549cefd5c838645.js

js moltenigroup.com collected 2026-09-30 22:33:09 UTC 106,583 bytes, 62 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2372],{41144:(t,e,a)=>{a.d(e,{DA:()=>S,FA:()=>D,Zk:()=>f,aP:()=>ek,lC:()=>x,nM:()=>M,nq:()=>eb});var l=a(37642),r=a(64411),i=a(88033),n=a(61773),s=a(61904),h=a(19290),o=a(49708),d=a(7333),c=a(53851);async function g(t){let e=t.getElementsByTagName("img");if(!e||0===e.length)return;let a=!y(t);await Promise.all([...e].map(t=>new Promise(e=>{function l(){if(t.style.display="flex",t.style.flexDirection="column",a){let e=(0,s.D7)().fontSize?(0,s.D7)().fontSize:window.getComputedStyle(document.body).fontSize,[a=s.UI.fontSize]=(0,n.I5)(e),l=5*a+"px";t.style.minWidth=l,t.style.maxWidth=l}else t.style.width="100%";e(t)}(0,o.K)(l,"setupImage"),setTimeout(()=>{t.complete&&l()}),t.addEventListener("error",l),t.addEventListener("load",l)})))}function y(t){return 3===t.nodeType?t.textContent?.trim()!=="":1===t.nodeType&&"img"!==t.tagName.toLowerCase()&&[...t.childNodes].some(y)}(0,o.K)(g,"configureLabelImages"),(0,o.K)(y,"hasTextBesidesImages");var p=(0,o.K)(async(t,e,a)=>{let l=(0,s.D7)(),i=t.insert("g").attr("class",a??"node default").attr("id",e.domId||e.id),h=i.insert("g").attr("class","label").attr("style",(0,n.KL)(e.labelStyle)),o=[{text:"string"==typeof e.label?e.label:e.label?.[0]??"",cssClass:"c4-name"},{text:e.stereotype,cssClass:"c4-type"},...(e.description??[]).map(t=>({text:t,cssClass:"c4-descr"}))].filter(t=>t.text),c=e.width?Math.max(e.width-2*(e.padding??0),32):(0,s.D7)().flowchart?.wrappingWidth??200,g=l.c4?.wrap??!0?c:1/0,y=await Promise.all(o.map(async t=>{let a=h.append("g").attr("class",t.cssClass),i=await (0,r.GZ)(a,(0,s.jZ)((0,n.Sm)(t.text??""),l),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:g,style:e.labelStyle},l);return(0,d.Ltv)(i).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),(0,d.Ltv)(i).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:a,box:a.node().getBBox()}})),p=Math.max(...y.map(({box:t})=>t.width),0),f=0;for(let{el:t,box:e}of y)t.attr("transform",`translate(${p/2-e.x-e.width/2}, ${f-e.y})`),f+=e.height+3;let u=y.length>0?f-3:0;return h.insert("rect",":first-child"),h.attr("transform",`translate(${-p/2}, ${-u/2})`),{shapeSvg:i,bbox:h.node().getBBox(),halfPadding:(e.padding??0)/2,label:h}},"c4LabelHelper"),f=(0,o.K)(async(t,e,a)=>{let l,i,h;if(void 0!==e.stereotype)return p(t,e,a);let o=e.useHtmlLabels||(0,s._3)((0,s.D7)()?.htmlLabels);l=a||"node default";let c=t.insert("g").attr("class",l).attr("id",e.domId||e.id),y=c.insert("g").attr("class","label").attr("style",(0,n.KL)(e.labelStyle));i=void 0===e.label?"":"string"==typeof e.label?e.label:e.label[0];let f=!!e.icon||!!e.img,u="markdown"===e.labelType,x=await (0,r.GZ)(y,(0,s.jZ)((0,n.Sm)(i),(0,s.D7)()),{useHtmlLabels:o,width:e.width||e.wrappingWidth||(0,s.D7)().flowchart?.wrappingWidth,classes:u?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:f,markdown:u},(0,s.D7)()),w=(e?.padding??0)/2;if(o){let t=x.children[0],e=(0,d.Ltv)(x);await g(t),h=await r.lT.measure(()=>t.getBoundingClientRect()),e.attr("width",h.width),e.attr("height",h.height)}else h=await r.lT.measure(()=>x.getBBox());return o?y.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"):y.attr("transform","translate(0, "+-h.height/2+")"),e.centerLabel&&y.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),y.insert("rect",":first-child"),{shapeSvg:c,bbox:h,halfPadding:w,label:y}},"labelHelper"),u=(0,o.K)(async(t,e,a)=>{let l,i=a.useHtmlLabels??(0,s.E)((0,s.D7)()),h=t.insert("g").attr("class","label").attr("style",a.labelStyle||""),o=await (0,r.GZ)(h,(0,s.jZ)((0,n.Sm)(e),(0,s.D7)()),{useHtmlLabels:i,width:a.width||(0,s.D7)()?.flowchart?.wrappingWidth,style:a.labelStyle,addSvgBackground:!!a.icon||!!a.img}),c=a.padding/2;if((0,s.E)((0,s.D7)())){let t=o.children[0],e=(0,d.Ltv)(o);l=await r.lT.measure(()=>t.getBoundingClientRect()),e.attr("width",l.width),e.attr("height",l.height)}else l=await r.lT.measure(()=>o.getBBox());return i?h.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"):h.attr("transform","translate(0, "+-l.height/2+")"),a.centerLabel&&h.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"),h.insert("rect",":first-child"),{shapeSvg:t,bbox:l,halfPadding:c,label:h}},"insertLabel"),x=(0,o.K)((t,e,a)=>{if(a){t.width=a.width,t.height=a.height;return}let l=e.node().getBBox();t.width=l.width,t.height=l.height},"updateNodeBounds"),w=(0,o.K)((t,e)=>
1("handDrawn"===t.look?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function m(t){let e=t.map((t,e)=>`${0===e?"M":"L"}${t.x},${t.y}`);return e.push("Z"),e.join(" ")}function $(t,e,a,l,r,i){let n=[],s=a-t,h=2*Math.PI/(s/i),o=e+(l-e)/2;for(let e=0;e<=50;e++){let a=t+e/50*s,l=o+r*Math.sin(h*(a-t));n.push({x:a,y:l})}return n}function b(t,e,a,l,r,i){let n=[],s=r*Math.PI/180,h=(i*Math.PI/180-s)/(l-1);for(let r=0;r<l;r++){let l=s+r*h,i=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:-i,y:-o})}return n}function k(t){let e=Array.from(t.childNodes).filter(t=>"path"===t.tagName),a=document.createElementNS("http://www.w3.org/2000/svg","path"),l=e.map(t=>t.getAttribute("d")).filter(t=>null!==t).join(" ");a.setAttribute("d",l);let r=e.find(t=>"none"!==t.getAttribute("fill")),i=e.find(t=>"none"!==t.getAttribute("stroke")),n=(0,o.K)((t,e)=>t?.getAttribute(e)??void 0,"getAttr");r&&Object.entries({fill:n(r,"fill"),"fill-opacity":n(r,"fill-opacity")??"1"}).forEach(([t,e])=>{e&&a.setAttribute(t,e)}),i&&Object.entries({stroke:n(i,"stroke"),"stroke-width":n(i,"stroke-width")??"1","stroke-opacity":n(i,"stroke-opacity")??"1"}).forEach(([t,e])=>{e&&a.setAttribute(t,e)});let s=document.createElementNS("http://www.w3.org/2000/svg","g");return s.appendChild(a),s}(0,o.K)(m,"createPathFromPoints"),(0,o.K)($,"generateFullSineWavePoints"),(0,o.K)(b,"generateCirclePoints"),(0,o.K)(k,"mergePaths");var M=(0,o.K)((t,e)=>{var a,l,r=t.x,i=t.y,n=e.x-r,s=e.y-i,h=t.width/2,o=t.height/2;return Math.abs(s)*h>Math.abs(n)*o?(s<0&&(o=-o),a=0===s?0:o*n/s,l=o):(n<0&&(h=-h),a=h,l=0===n?0:h*s/n),{x:r+a,y:i+l}},"intersectRect"),D=(0,o.K)((t,e,a,l,r)=>["M",t+r,e,"H",t+a-r,"A",r,r,"0 0 1",t+a,e+r,"V",e+l-r,"A",r,r,"0 0 1",t+a-r,e+l,"H",t+r,"A",r,r,"0 0 1",t,e+l-r,"V",e+r,"A",r,r,"0 0 1",t+r,e,"Z"].join(" "),"createRoundedRectPathD"),S=(0,o.K)(async(t,e,a,l=!1,i=!1)=>{let n=e||"";"object"==typeof n&&(n=n[0]);let h=(0,s.D7)(),o=(0,s.E)(h);return await (0,r.GZ)(t,n,{style:a,isTitle:l,useHtmlLabels:o,markdown:!1,isNode:i,width:1/0},h)},"createLabel");function A(t,e,a,l){var r=t.x,i=t.y,n=r-l.x,s=i-l.y,h=Math.sqrt(e*e*s*s+a*a*n*n),o=Math.abs(e*a*n/h);l.x<r&&(o=-o);var d=Math.abs(e*a*s/h);return l.y<i&&(d=-d),{x:r+o,y:i+d}}function K(t,e,a){return A(t,e,e,a)}function v(t,e,a,l){{let r=e.y-t.y,i=t.x-e.x,n=e.x*t.y-t.x*e.y,s=r*a.x+i*a.y+n,h=r*l.x+i*l.y+n;if(0!==s&&0!==h&&C(s,h))return;let o=l.y-a.y,d=a.x-l.x,c=l.x*a.y-a.x*l.y,g=o*t.x+d*t.y+c,y=o*e.x+d*e.y+c;if(1e-6>Math.abs(g)&&1e-6>Math.abs(y)&&C(g,y))return;let p=r*d-o*i;if(0===p)return;let f=Math.abs(p/2),u=i*c-d*n;return{x:u<0?(u-f)/p:(u+f)/p,y:(u=o*n-r*c)<0?(u-f)/p:(u+f)/p}}}function C(t,e){return t*e>0}function N(t,e,a){let l=t.x,r=t.y,i=[],n=1/0,s=1/0;"function"==typeof e.forEach?e.forEach(function(t){n=Math.min(n,t.x),s=Math.min(s,t.y)}):(n=Math.min(n,e.x),s=Math.min(s,e.y));let h=l-t.width/2-n,o=r-t.height/2-s;for(let l=0;l<e.length;l++){let r=e[l],n=e[l<e.length-1?l+1:0],s=v(t,a,{x:h+r.x,y:o+r.y},{x:h+n.x,y:o+n.y});s&&i.push(s)}return i.length?(i.length>1&&i.sort(function(t,e){let l=t.x-a.x,r=t.y-a.y,i=Math.sqrt(l*l+r*r),n=e.x-a.x,s=e.y-a.y,h=Math.sqrt(n*n+s*s);return i<h?-1:+(i!==h)}),i[0]):t}(0,o.K)(function(t,e){return t.intersect(e)},"intersectNode"),(0,o.K)(A,"intersectEllipse"),(0,o.K)(K,"intersectCircle"),(0,o.K)(v,"intersectLine"),(0,o.K)(C,"sameSign"),(0,o.K)(N,"intersectPolygon");var B={circle:K,polygon:N,rect:M};function L(t,e){let{labelStyles:a}=(0,l.GX)(e);e.labelStyle=a;let r=w(e),i=r;r||(i="anchor");let s=t.insert("g").attr("class",i).attr("id",e.domId||e.id),{cssStyles:o}=e,d=c.A.svg(s),g=(0,l.Fr)(e,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==e.look&&(g.roughness=0);let y=d.circle(0,0,2,g),p=s.insert(()=>y,":first-child");return p.attr("class","anchor").attr("style",(0,n.KL)(o)),x(e,p),e.intersect=function(t){return h.R.info("Circle intersect",e,1,t),B.circle(e,1,t)},s}function R(t,e,a,l,r,i,n){let s=Math.atan2(l-e,a-t),h=Math.sqrt(((a-t)/2/r)**2+((l-e)/2/i)**2);if(h>1)throw Error("The given radii are too small to create an arc between the points.");let o=Math.sqrt(1-h**2),d=(t+a)/2+o*i*Math.sin(s)*(n?-1:1),c=(e+l)/2-o*r*Math.cos(s)*(n?-1:1),g=Math.atan2((e-c)/i,(t-d)/r),y=Math.atan2((l-c)/i,(a-d)/r)-g;n&&y<0&&(y+=2*Math.PI),!n&&y>0&&(y-=2*Math.PI);let p=[];for(let t=0;t<20;t++){let e=g+t/19*y,a=d+r*Math.cos(e),l=c+i*Math.sin(e);p.push({x:a,y:l})}return p}function F(t,e,a){let[l,r]=[e,a].sort((t,e)=>e-t);return r*(1-Math.sqrt(1-(t/l/2)**2))}async function P(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i,h=(0,o.K)(t=>t+s,"calcTotalHeight"),d=(0,o.K)(t=>{let e=t/2;return[e/(2.5+t/50),e]},"calcEllipseRadius"),{shapeSvg:g,bbox:y}=await f(t,e,w(e)),p=h(e?.height?e?.height:y.height),[u,$]=d(p),b=F(p,u,$),k=(e?.width?e?.width:y.width)+2*n+b-b,{cssStyles:M}
1=e,D=[{x:k/2,y:-p/2},{x:-k/2,y:-p/2},...R(-k/2,-p/2,-k/2,p/2,u,$,!1),{x:k/2,y:p/2},...R(k/2,p/2,k/2,-p/2,u,$,!0)],S=c.A.svg(g),A=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");let K=m(D),v=S.path(K,A),C=g.insert(()=>v,":first-child");return C.attr("class","basic label-container outer-path"),M&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",M),r&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",r),C.attr("transform",`translate(${u/2}, 0)`),x(e,C),e.intersect=function(t){return B.polygon(e,D,t)},g}async function G(t,e,{config:{themeVariables:a}}){let{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:s,label:h}=await f(t,e,w(e)),d=a?.nodeBorder??a?.lineColor??"currentColor",g=e.padding??12,y=Math.max(s.width+2*g,e.width??0,80),p=Math.max(Math.min(.08*y,12),5),u=Math.max(s.height+2*g+p,e.height??0),m=-u/2+p,$=u/2,b=.72*y,k=`M${-y/2},${m} L${-b/2},${$} A${b/2},${p} 0 0 0 ${b/2},${$} L${y/2},${m} A${y/2},${p} 0 0 0 ${-y/2},${m} Z`,{cssStyles:M}=e,D=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===e.look){let t=c.A.svg(n).path(k,(0,l.Fr)(e,{}));D.node()?.appendChild(t),M&&D.attr("style",M)}else D.append("path").attr("d",k).attr("style",i);D.append("ellipse").attr("cx",0).attr("cy",m).attr("rx",y/2).attr("ry",p).attr("style",`fill:none;stroke:${d};stroke-width:1px`),x(e,D);let S=m+($-m)/2;h.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${S-s.height/2-(s.y-(s.top??0))})`);let A=(0,o.K)((t,e,a)=>Array.from({length:13},(l,r)=>{let i=Math.PI-r*Math.PI/12;return{x:t*Math.cos(i),y:e+a*p*Math.sin(i)}}),"arc"),K=[...A(y/2,m,-1),...A(b/2,$,1).reverse()];return e.intersect=function(t){return B.polygon(e,K,t)},n}async function X(t,e){let a,{themeVariables:r}=(0,s.D7)(),i=r.clusterBkg,h=r.clusterBorder,{nodeStyles:o}=(0,l.GX)(e),{shapeSvg:d,bbox:g}=await f(t,e,w(e)),y=e.padding??8,p=g.height,u=Math.max(g.width+2*y,80,e?.width??0),m=Math.max(p+8+20+2*y,e?.height??0),$=-u/2,b=-m/2,k=d.select(".label");if(k&&(e.useHtmlLabels??(0,s.E)((0,s.D7)())?k.attr("transform",`translate(${-g.width/2}, ${-g.height/2+-14})`):k.attr("transform",`translate(0, ${-g.height/2+-14})`)),"handDrawn"===e.look){let t=c.A.svg(d),r=(0,l.Fr)(e,{fill:i,stroke:h,fillStyle:"solid"}),s=t.path(D($,b,u,m,8),r);(a=d.insert(()=>s,":first-child")).attr("class","basic label-container collapsed-group").attr("style",(0,n.KL)(e.cssStyles))}else(a=d.insert("rect",":first-child")).attr("class","basic label-container collapsed-group").attr("style",o).attr("rx",8).attr("ry",8).attr("x",$).attr("y",b).attr("width",u).attr("height",m).attr("fill",i).attr("stroke",h);let M=b+y+p+8;d.append("line").attr("class","collapsed-separator").attr("x1",$+8).attr("y1",M).attr("x2",$+u-8).attr("y2",M).attr("stroke",h).attr("stroke-dasharray","3, 3");let S=M+10;for(let t=-1;t<=1;t++)d.append("circle").attr("class","collapsed-indicator").attr("cx",10*t).attr("cy",S).attr("r",2.5).attr("fill",h);return x(e,a),e.calcIntersect=function(t,e){return B.rect(t,e)},e.intersect=function(t){return B.rect(e,t)},d}function I(t,e,a,l){return t.insert("polygon",":first-child").attr("points",l.map(function(t){return t.x+","+t.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+a/2+")")}(0,o.K)(L,"anchor"),(0,o.K)(R,"generateArcPoints"),(0,o.K)(F,"calculateArcSagitta"),(0,o.K)(P,"bowTieRect"),(0,o.K)(G,"bucket"),(0,o.K)(X,"collapsedGroup"),(0,o.K)(I,"insertPolygonShape");var T=["right","left","up","down"],W="point",E=(0,o.K)(t=>{let e=new Set;for(let a of t)switch(a){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(a)}return e},"expandAndDeduplicateDirections"),H=(0,o.K)(t=>T.filter(e=>t.has(e)).join("|")||W,"getDirectionKey"),j={"right|left|up|down":(0,o.K)(({height:t,midpoint:e,padding:a,width:l})=>[{x:0,y:0},{x:e,y:0},{x:l/2,y:2*a},{x:l-e,y:0},{x:l,y:0},{x:l,y:-t/3},{x:l+2*a,y:-t/2},{x:l,y:-2*t/3},{x:l,y:-t},{x:l-e,y:-t},{x:l/2,y:-t-2*a},{x:e,y:-t},{x:0,y:-t},{x:0,y:-2*t/3},{x:-2*a,y:-t/2},{x:0,y:-t/3}],"right|left|up|down"),"right|left|up":(0,o.K)(({height:t,midpoint:e,width:a})=>[{x:e,y:0},{x:a-e,y:0},{x:a,y:-t/2},{x:a-e,y:-t},{x:e,y:-t},{x:0,y:-t/2}],"right|left|up"),"right|left|down":(0,o.K)(({height:t,midpoint:e,width:a})=>[{x:0,y:0},{x:e,y:-t},{x:a-e,y:-t},{x:a,y:0}],"right|left|down"),"right|up|down":(0,o.K)(({height:t,midpoint:e,width:a})=>[{x:0,y:0},{x:a,y:-e},{x:a,y:-t+e},{x:0,y:-t}],"right|up|down"),"left|up|down":(0,o.K)(({height:t,midpoint:e,width:a})=>[{x:a,y:0},{x:0,y:-e},{x:0,y:-t+e},{x:a,y:-t}],"left|up|down"),"right|left":(0,o.K)(({height:t,midpoint:e,padding:a,width:l})=>[{x:e,y:0},{x:e,y:-a},{x:l-e,y:-a},{x:l-e,y:0},{x:l,y:-t/2},{x:l-e,y:-t},{x:l-e,y:-t+a},{x:e,y:-t+a},{x:e,y:-t},{x:0,y:-t/2}],"right|left"),"up|down":(0,o.K)(({height:t,midpoint:e,padding:a,width:l})=>[{x:l/2,y:0},{x:0,y:-a},{x:e,y:-a},{x:e,y:-t+a},{x:0,y:-t+a},{x:l/2,y:-t},{x:l,y:-t+a},{x:l-e,y:-t+a},{x:l-e,y:-a},{x:l,y:-a}],"up|down"),"right|up":(0,o.K)(({height:t,midpoint:e,width:a})=>[{x:0,y:0},{x:a,y:-e},{x:0,y:-t}],"right|up"),"right|down":(0,o.K)(({height:t,width:e})=>[{x:0,y:0},{x:e,y:0},{x:0,y:-t}],"right|down"),"left|up":(0,o.K)(({height:t,midpoint:e,width:a})=>[{x:a,y:0},{x:0,y:-e},{x:a,y:-t}],"left|up"),"left|down":(0,o.K)(({height:t,width:e})=>[{x:e,y:0},{x:0,y:0},{x:e,y:-t}],"left|down"),right:(0,o.K)(({height:t,midpoint:e,padding:a,width:l})=>[{x:e,y:-a},{x:e,y:-a},{x:l-e,y:-a},{x:l-e,y:0},{x:l,y:-t/2},{x:l-e,y:-t},{x:l-e,y:-t+a},{x:e,y:-t+a},{x:e,y:-t+a}],"right"),left:(0,o.K)(({height:t,midpoint:e,padding:a,width:l})=>[{x:e,y:0},{x:e,y:-a},{x:l-e,y:-a},{x:l-e,y:-t+a},{x:e,y:-t+a},{x:e,y:-t},{x:0,y:-t/2}],"left"),up:(0,o.K)(({height:t,midpoint:e,padding:a,width:l})=>[{x:e,y:-a},{x:e,y:-t+a},{x:0,y:-t+a},{x:l/2,y:-t},{x:l,y:-t+a},{x:l-e,y:-t+a},{x:l-e,y:-a}],"up"),down:(0,o.K)(({height:t,midpoint:e,padding:a,width:l})=>[{x:l/2,y:0},{x:0,y:-a},{x:e,y:-a},{x:e,y:-t+a},{x:l-e,y:-t+a},{x:l-e,y:-a},{x:l,y:-a}],"down"),[W]:()=>[{x:0,y:0}]},q=(0,o.K)((t,e,a,l)=>
1{let r=E(t),i=(a.padding??0)/2,n=e.height+4*i,s=n/2,h=l??e.width+2*s+2*i;return(j[H(r)]??j[W])({height:n,midpoint:s,padding:i,width:h})},"getArrowPoints");async function _(t,e){let{shapeSvg:a,bbox:l}=await f(t,e,w(e)),r=e.padding??0,i=l.height+2*r,n=i/2,s=l.width+2*n+r,h=e.width??0,o=e.positioned&&(e.widthInColumns??1)>1&&h>s?h:s,d=q(e.directions??[],l,e,o),c=I(a,o,i,d);return c.attr("style",e.style??null),x(e,c),e.intersect=function(t){return B.polygon(e,d,t)},a}async function z(t,e,{config:{themeVariables:a}}){let{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:s,label:h}=await f(t,e,w(e)),o=a?.nodeBorder??a?.lineColor??"currentColor",d=e.padding??12,g=Math.max(s.width+2*d,e.width??0,90),y=Math.max(s.height+2*d+18,e.height??0),p=-y/2,{cssStyles:u}=e,m=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===e.look){let t=c.A.svg(n).path(D(-g/2,p,g,y,12),(0,l.Fr)(e,{}));m.node()?.appendChild(t),u&&m.attr("style",u)}else m.append("rect").attr("x",-g/2).attr("y",p).attr("width",g).attr("height",y).attr("rx",12).attr("ry",12).attr("style",i);m.append("line").attr("x1",-g/2).attr("y1",p+18).attr("x2",g/2).attr("y2",p+18).attr("style",`stroke:${o};stroke-width:1px`);for(let t=0;t<3;t++)m.append("circle").attr("cx",-g/2+12+9*t).attr("cy",p+9).attr("r",2.5).attr("style",`fill:${o};stroke:none`);m.append("rect").attr("class","browser-address-bar").attr("x",-g/2+44).attr("y",p+4).attr("width",Math.max(g-56,10)).attr("height",10).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${o};stroke-width:1px;opacity:0.6`),x(e,m);let $=p+18+(y-18)/2;return h.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${$-s.height/2-(s.y-(s.top??0))})`),e.intersect=function(t){return B.rect(e,t)},n}async function Z(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let n=e.padding??0,s="neo"===e.look?28:n,h="neo"===e.look?24:n,{shapeSvg:o,bbox:d}=await f(t,e,w(e)),g=(e?.width??d.width)+("neo"===e.look?2*s:s+12),y=(e?.height??d.height)+("neo"===e.look?2*h:h),p=-y,u=[{x:12,y:p},{x:g,y:p},{x:g,y:0},{x:0,y:0},{x:0,y:p+12},{x:12,y:p}],{cssStyles:$}=e;
1if("handDrawn"===e.look){let t=c.A.svg(o),r=(0,l.Fr)(e,{}),i=m(u),n=t.path(i,r);a=o.insert(()=>n,":first-child").attr("transform",`translate(${-g/2}, ${y/2})`),$&&a.attr("style",$)}else a=I(o,g,y,u);return i&&a.attr("style",i),x(e,a),e.intersect=function(t){return B.polygon(e,u,t)},o}function O(t,e){let{nodeStyles:a}=(0,l.GX)(e);e.label="";let r=t.insert("g").attr("class",w(e)).attr("id",e.domId??e.id),{cssStyles:i}=e,n=Math.max(28,e.width??0),s=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}],h=c.A.svg(r),o=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(o.roughness=0,o.fillStyle="solid");let d=m(s),g=h.path(d,o),y=r.insert(()=>g,":first-child");return i&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",i),a&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",a),e.width=28,e.height=28,e.intersect=function(t){return B.polygon(e,s,t)},r}async function V(t,e,a){let r,{labelStyles:i,nodeStyles:s}=(0,l.GX)(e);e.labelStyle=i;let{shapeSvg:o,bbox:d,halfPadding:g}=await f(t,e,w(e)),y=a?.padding??g,p="neo"===e.look?d.width/2+32:d.width/2+y,{cssStyles:u}=e;
1if("handDrawn"===e.look){let t=c.A.svg(o),a=(0,l.Fr)(e,{}),i=t.circle(0,0,2*p,a);(r=o.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",(0,n.KL)(u))}else r=o.insert("circle",":first-child").attr("class","basic label-container").attr("style",s).attr("r",p).attr("cx",0).attr("cy",0);return x(e,r),e.calcIntersect=function(t,e){let a=t.width/2;return B.circle(t,a,e)},e.intersect=function(t){return h.R.info("Circle intersect",e,p,t),B.circle(e,p,t)},o}async function Y(t,e){let a=["node",e.cssClasses,e.class].filter(Boolean).join(" "),{shapeSvg:l,bbox:r,halfPadding:i}=await f(t,e,a),n=l.insert("rect",":first-child"),s=e.padding??0,h=e.positioned?e.width??0:r.width+s,o=e.positioned?e.height??0:r.height+s,d=e.positioned?-h/2:-r.width/2-i,c=e.positioned?-o/2:-r.height/2-i;return n.attr("class","basic cluster composite label-container").attr("style",e.style??null).attr("rx",e.rx??null).attr("ry",e.ry??null).attr("x",d).attr("y",c).attr("width",h).attr("height",o),x(e,n),e.intersect=function(t){return B.rect(e,t)},l}async function U(t,e,{config:{themeVariables:a}}){let{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:s,label:h}=await f(t,e,w(e)),o=a?.nodeBorder??a?.lineColor??"currentColor",d=e.padding??12,g=Math.max(s.width+2*d,e.width??0,90),y=Math.max(s.height+2*d+20,e.height??0),p=-y/2,{cssStyles:u}=e,m=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===e.look){let t=c.A.svg(n).path(D(-g/2,p,g,y,12),(0,l.Fr)(e,{}));m.node()?.appendChild(t),u&&m.attr("style",u)}else m.append("rect").attr("x",-g/2).attr("y",p).attr("width",g).attr("height",y).attr("rx",12).attr("ry",12).attr("style",i);m.append("text").attr("x",-g/2+12).attr("y",p+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${o}`).text(">_"),x(e,m);let $=p+20+(y-20)/2;return h.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${$-s.height/2-(s.y-(s.top??0))})`),e.intersect=function(t){return B.rect(e,t)},n}function J(t){let e=Math.cos(Math.PI/4),a=Math.sin(Math.PI/4),l=2*t,r={x:l/2*e,y:l/2*a},i={x:-(l/2)*e,y:l/2*a},n={x:-(l/2)*e,y:-(l/2)*a},s={x:l/2*e,y:-(l/2)*a};return`M ${i.x},${i.y} L ${s.x},${s.y}
2                   M ${r.x},${r.y} L ${n.x},${n.y}`}function Q(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a,e.label="";let i=t.insert("g").attr("class",w(e)).attr("id",e.domId??e.id),n=Math.max(30,e?.width??0),{cssStyles:s}=e,o=c.A.svg(i),d=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(d.roughness=0,d.fillStyle="solid");let g=o.circle(0,0,2*n,d),y=J(n),p=o.path(y,d),f=i.insert(()=>g,":first-child");return f.insert(()=>p),f.attr("class","outer-path"),s&&"handDrawn"!==e.look&&f.selectAll("path").attr("style",s),r&&"handDrawn"!==e.look&&f.selectAll("path").attr("style",r),x(e,f),e.intersect=function(t){return h.R.info("crossedCircle intersect",e,{radius:n,point:t}),B.circle(e,n,t)},i}function tt(t,e,a,l=100,r=0,i=180){let n=[],s=r*Math.PI/180,h=(i*Math.PI/180-s)/(l-1);for(let r=0;r<l;r++){let l=s+r*h,i=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:-i,y:-o})}return n}async function te(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await f(t,e,w(e)),h="neo"===e.look?18:e.padding??0,o="neo"===e.look?12:e.padding??0,d=n.width+h,g=n.height+o,y=Math.max(5,.1*g),{cssStyles:p}=e,u=[...tt(d/2,-g/2,y,30,-90,0),{x:-d/2-y,y:y},...tt(d/2+2*y,-y,y,20,-180,-270),...tt(d/2+2*y,y,y,20,-90,-180),{x:-d/2-y,y:-g/2},...tt(d/2,g/2,y,20,0,90)],$=[{x:d/2,y:-g/2-y},{x:-d/2,y:-g/2-y},...tt(d/2,-g/2,y,20,-90,0),{x:-d/2-y,y:-y},...tt(d/2+.1*d,-y,y,20,-180,-270),...tt(d/2+.1*d,y,y,20,-90,-180),{x:-d/2-y,y:g/2},...tt(d/2,g/2,y,20,0,90),{x:-d/2,y:g/2+y},{x:d/2,y:g/2+y}],b=c.A.svg(i),k=(0,l.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=m(u).replace("Z",""),D=b.path(M,k),S=m($),A=b.path(S,{...k}),K=i.insert("g",":first-child");return K.insert(()=>A,":first-child").attr("stroke-opacity",0),K.insert(()=>D,":first-child"),K.attr("class","text"),p&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",p),r&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",r),K.attr("transform",`translate(${y}, 0)`),s.attr("transform",`translate(${-d/2+y-(n.x-(n.left??0))}
2,${-g/2+(e.padding??0)/2-(n.y-(n.top??0))})`),x(e,K),e.intersect=function(t){return B.polygon(e,$,t)},i}function ta(t,e,a,l=100,r=0,i=180){let n=[],s=r*Math.PI/180,h=(i*Math.PI/180-s)/(l-1);for(let r=0;r<l;r++){let l=s+r*h,i=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:i,y:o})}return n}async function tl(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await f(t,e,w(e)),h="neo"===e.look?18:e.padding??0,o="neo"===e.look?12:e.padding??0,d=n.width+("neo"===e.look?2*h:h),g=n.height+("neo"===e.look?2*o:o),y=Math.max(5,.1*g),{cssStyles:p}=e,u=[...ta(d/2,-g/2,y,20,-90,0),{x:d/2+y,y:-y},...ta(d/2+2*y,-y,y,20,-180,-270),...ta(d/2+2*y,y,y,20,-90,-180),{x:d/2+y,y:g/2},...ta(d/2,g/2,y,20,0,90)],$=[{x:-d/2,y:-g/2-y},{x:d/2,y:-g/2-y},...ta(d/2,-g/2,y,20,-90,0),{x:d/2+y,y:-y},...ta(d/2+2*y,-y,y,20,-180,-270),...ta(d/2+2*y,y,y,20,-90,-180),{x:d/2+y,y:g/2},...ta(d/2,g/2,y,20,0,90),{x:d/2,y:g/2+y},{x:-d/2,y:g/2+y}],b=c.A.svg(i),k=(0,l.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=m(u).replace("Z",""),D=b.path(M,k),S=m($),A=b.path(S,{...k}),K=i.insert("g",":first-child");return K.insert(()=>A,":first-child").attr("stroke-opacity",0),K.insert(()=>D,":first-child"),K.attr("class","text"),p&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",p),r&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",r),K.attr("transform",`translate(${-y}, 0)`),s.attr("transform",`translate(${-d/2+(e.padding??0)/2-(n.x-(n.left??0))},${-g/2+(e.padding??0)/2-(n.y-(n.top??0))})`),x(e,K),e.intersect=function(t){return B.polygon(e,$,t)},i}function tr(t,e,a,l=100,r=0,i=180){let n=[],s=r*Math.PI/180,h=(i*Math.PI/180-s)/(l-1);for(let r=0;r<l;r++){let l=s+r*h,i=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:-i,y:-o})}return n}async function ti(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await f(t,e,w(e)),h="neo"===e.look?18:e.padding??0,o="neo"===e.look?12:e.padding??0,d=n.width+("neo"===e.look?2*h:h),g=n.height+("neo"===e.look?2*o:o),y=Math.max(5,.1*g),{cssStyles:p}=e,u=[...tr(d/2,-g/2,y,30,-90,0),{x:-d/2-y,y:y},...tr(d/2+2*y,-y,y,20,-180,-270),...tr(d/2+2*y,y,y,20,-90,-180),{x:-d/2-y,y:-g/2},...tr(d/2,g/2,y,20,0,90)],$=[...tr(-d/2+y+y/2,-g/2,y,20,-90,-180),{x:d/2-y/2,y:y},...tr(-d/2-y/2,-y,y,20,0,90),...tr(-d/2-y/2,y,y,20,-90,0),{x:d/2-y/2,y:-y},...tr(-d/2+y+y/2,g/2,y,30,-180,-270)],b=[{x:d/2,y:-g/2-y},{x:-d/2,y:-g/2-y},...tr(d/2,-g/2,y,20,-90,0),{x:-d/2-y,y:-y},...tr(d/2+2*y,-y,y,20,-180,-270),...tr(d/2+2*y,y,y,20,-90,-180),{x:-d/2-y,y:g/2},...tr(d/2,g/2,y,20,0,90),{x:-d/2,y:g/2+y},{x:d/2-y-y/2,y:g/2+y},...tr(-d/2+y+y/2,-g/2,y,20,-90,-180),{x:d/2-y/2,y:y},...tr(-d/2-y/2,-y,y,20,0,90),...tr(-d/2-y/2,y,y,20,-90,0),{x:d/2-y/2,y:-y},...tr(-d/2+y+y/2,g/2,y,30,-180,-270)],k=c.A.svg(i),M=(0,l.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let D=m(u).replace("Z",""),S=k.path(D,M),A=m($).replace("Z",""),K=k.path(A,M),v=m(b),C=k.path(v,{...M}),N=i.insert("g",":first-child");return N.insert(()=>C,":first-child").attr("stroke-opacity",0),N.insert(()=>S,":first-child"),N.insert(()=>K,":first-child"),N.attr("class","text"),p&&"handDrawn"!==e.look&&N.selectAll("path").attr("style",p),r&&"handDrawn"!==e.look&&N.selectAll("path").attr("style",r),N.attr("transform",`translate(${y-y/4}, 0)`),s.attr("transform",`translate(${-d/2+(e.padding??0)/2-(n.x-(n.left??0))},${-g/2+(e.padding??0)/2-(n.y-(n.top??0))})`),x(e,N),e.intersect=function(t){return B.polygon(e,b,t)},i}async function tn(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i,{shapeSvg:h,bbox:o}=await f(t,e,w(e)),d=Math.max(20,(o.width+2*n)*1.25,e?.width??0),g=Math.max(5,o.height+2*s,e?.height??0),y=g/2,{cssStyles:p}=e,u=c.A.svg(h),$=(0,l.Fr)(e,{});"handDrawn"!==e.look&&($.roughness=0,$.fillStyle="solid");let k=d-y,M=g/4,D=[{x:k,y:0},{x:M,y:0},{x:0,y:g/2},{x:M,y:g},{x:k,y:g},...b(-k,-g/2,y,50,270,90)],S=m(D),A=u.path(S,$),K=h.insert(()=>A,":first-child");return K.attr("class","basic label-container outer-path"),p&&"handDrawn"!==e.look&&K.selectChildren("path").attr("style",p),r&&"handDrawn"!==e.look&&K.selectChildren("path").attr("style",r),K.attr("transform",`translate(${-d/2}, ${-g/2})`),x(e,K),e.intersect=function(t){return B.polygon(e,D,t)},h}async function ts(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await f(t,e,w(e)),h=e.padding??20,o=Math.max(n.width+2*h,e.width??0,100),d=Math.min(Math.max(.23*o,16),56),g=.27*d,y=Math.max(n.height+2*h,e.height?e.height-(2*d-g):0),p=Math.min(.177*o,.45*y),u=y+2*d-g,m=-u/2,$=m+2*d-g,k=i.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:M}=e;
2if("handDrawn"===e.look){let t=c.A.svg(i),a=(0,l.Fr)(e,{}),r=t.path(D(-o/2,$,o,y,p),a),n=t.circle(0,m+d,2*d,a);k.insert(()=>n,":first-child"),k.insert(()=>r,":first-child"),M&&k.attr("style",M)}else k.append("rect").attr("x",-o/2).attr("y",$).attr("width",o).attr("height",y).attr("rx",p).attr("ry",p).attr("style",r),k.append("circle").attr("cx",0).attr("cy",m+d).attr("r",d).attr("style",r);x(e,k);let S=$+y/2;s.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${S-n.height/2-(n.y-(n.top??0))})`);let A=m+d,K=180*Math.asin(Math.min(1,($-A)/d))/Math.PI,v=[...b(0,-A,d,24,180+K,-K),...b(-(-o/2+p),-($+p),p,12,90,0),...b(-(-o/2+p),-(u/2-p),p,12,360,270),...b(-(o/2-p),-(u/2-p),p,12,270,180),...b(-(o/2-p),-($+p),p,12,180,90)];return e.intersect=function(t){return B.polygon(e,v,t)},i}(0,o.K)(_,"block_arrow"),(0,o.K)(z,"browser"),(0,o.K)(Z,"card"),(0,o.K)(O,"choice"),(0,o.K)(V,"circle"),(0,o.K)(Y,"composite"),(0,o.K)(U,"consoleWindow"),(0,o.K)(J,"createLine"),(0,o.K)(Q,"crossedCircle"),(0,o.K)(tt,"generateCirclePoints"),(0,o.K)(te,"curlyBraceLeft"),(0,o.K)(ta,"generateCirclePoints"),(0,o.K)(tl,"curlyBraceRight"),(0,o.K)(tr,"generateCirclePoints"),(0,o.K)(ti,"curlyBraces"),(0,o.K)(tn,"curvedTrapezoid"),(0,o.K)(ts,"person");var th=(0,o.K)((t,e,a,l,r,i)=>`M${t},${e+i} a${r},${i} 0,0,0 ${a},0 a${r},${i} 0,0,0 ${-a},0 l0,${l} a${r},${i} 0,0,0 ${a},0 l0,${-l}`,"createCylinderPathD"),to=(0,o.K)((t,e,a,l,r,i)=>`M${t},${e+i} M${t+a},${e+i} a${r},${i} 0,0,0 ${-a},0 l0,${l} a${r},${i} 0,0,0 ${a},0 l0,${-l}`,"createOuterCylinderPathD"),td=(0,o.K)((t,e,a,l,r,i)=>`M${t-a/2},${-l/2} a${r},${i} 0,0,0 ${a},0`,"createInnerCylinderPathD");async function tc(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let s=e.padding??0,h="neo"===e.look?24:s,o="neo"===e.look?24:s,d=e.width??0;e.width&&(e.width=e.width-o,e.width<8&&(e.width=8)),e.height&&(e.height=e.height-h-d/2/(2.5+d/50)*3,e.height<8&&(e.height=8));let{shapeSvg:g,bbox:y,label:p}=await f(t,e,w(e)),u=Math.max(e.width??0,y.width)+o,m=u/2,$=m/(2.5+u/50),b=Math.max(e.height??0,y.height)+h+$,{cssStyles:k}=e;if("handDrawn"===e.look){let t=c.A.svg(g),r=to(0,0,u,b,m,$),i=td(0,$,u,b,m,$),n=(0,l.Fr)(e,{}),s=t.path(r,n),h=t.path(i,(0,l.Fr)(e,{fill:"none"}));a=g.insert(()=>h,":first-child"),(a=g.insert(()=>s,":first-child")).attr("class","basic label-container"),k&&a.attr("style",k)}else{let t=th(0,0,u,b,m,$);a=g.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",(0,n.KL)(k)).attr("style",i)}return a.attr("label-offset-y",$),a.attr("transform",`translate(${-u/2}, ${-(b/2+$)})`),x(e,a),p.attr("transform",`translate(${-(y.width/2)-(y.x-(y.left??0))}, ${-(y.height/2)+(e.padding??0)/1.5-(y.y-(y.top??0))})`),e.intersect=function(t){let a=B.rect(e,t),l=a.x-(e.x??0);if(0!=m&&(Math.abs(l)<(e.width??0)/2||Math.abs(l)==(e.width??0)/2&&Math.abs(a.y-(e.y??0))>(e.height??0)/2-$)){let r=$*$*(1-l*l/(m*m));r>0&&(r=Math.sqrt(r)),r=$-r,t.y-(e.y??0)>0&&(r=-r),a.y+=r}return a},g}async function tg(t,e,a){let r,{labelStyles:i,nodeStyles:s}=(0,l.GX)(e);e.labelStyle=i;let{shapeSvg:h,bbox:o}=await f(t,e,w(e)),d=Math.max(o.width+2*a.labelPaddingX,e?.width||0),g=Math.max(o.height+2*a.labelPaddingY,e?.height||0),y=-d/2,p=-g/2,{rx:u,ry:m}=e,{cssStyles:$}=e;if(a?.rx&&a.ry&&(u=a.rx,m=a.ry),"handDrawn"===e.look){let t=c.A.svg(h),a=(0,l.Fr)(e,{}),i=u||m?t.path(D(y,p,d,g,u||0),a):t.rectangle(y,p,d,g,a);(r=h.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",(0,n.KL)($))}else(r=h.insert("rect",":first-child")).attr("class","basic label-container").attr("style",s).attr("rx",(0,n.KL)(u)).attr("ry",(0,n.KL)(m)).attr("x",y).attr("y",p).attr("width",d).attr("height",g);return x(e,r,"handDrawn"===e.look?void 0:{width:d,height:g}),e.calcIntersect=function(t,e){return B.rect(t,e)},e.intersect=function(t){return B.rect(e,t)},h}
2async function ty(t,e){let{cssClasses:a,labelPaddingX:r,labelPaddingY:i,padding:n,width:s,height:h}=e,o=await tg(t,e,{rx:0,ry:0,classes:a??"",labelPaddingX:r??(n??0)*2,labelPaddingY:i??n??0});if("handDrawn"===e.look){let t=c.A.svg(o),a=(0,l.Fr)(e,{}),r=o.select(".basic.label-container > path:nth-child(2)"),i=r.node();if(!i)return o;let n=null;return i instanceof SVGGraphicsElement&&(n=i.getBBox(),o.insert(()=>t.line(n.x,n.y,n.x+n.width,n.y,a),".basic.label-container g.label"),o.insert(()=>t.line(n.x,n.y+n.height,n.x+n.width,n.y+n.height,a),".basic.label-container g.label"),r.remove()),o}let d=o.select(".basic.label-container"),g=(Number(d.attr("width"))||s)??0,y=(Number(d.attr("height"))||h)??0;return g>0&&y>0&&d.attr("stroke-dasharray",`${g} ${y}`),o}async function tp(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i="neo"===e.look?16:e.padding??0,n="neo"===e.look?16:e.padding??0,{shapeSvg:s,bbox:h,label:o}=await f(t,e,w(e)),d=h.width+i,g=h.height+n,y=.2*g,p=-d/2,u=-g/2-y/2,{cssStyles:m}=e,$=c.A.svg(s),b=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let k=$.polygon([{x:p,y:u+y},{x:-p,y:u+y},{x:-p,y:-u},{x:p,y:-u},{x:p,y:u},{x:-p,y:u},{x:-p,y:u+y}].map(t=>[t.x,t.y]),b),M=s.insert(()=>k,":first-child");return M.attr("class","basic label-container outer-path"),m&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",m),r&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",r),o.attr("transform",`translate(${p+(e.padding??0)/2-(h.x-(h.left??0))}, ${u+y+(e.padding??0)/2-(h.y-(h.top??0))})`),x(e,M),e.intersect=function(t){return B.rect(e,t)},s}async function tf(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e),s="neo"===e.look?12:5;e.labelStyle=r;let o=e.padding??0,d="neo"===e.look?16:o,{shapeSvg:g,bbox:y}=await f(t,e,w(e)),p=(e?.width?e?.width/2:y.width/2)+(d??0),u=p-s,{cssStyles:m}=e;
2if("handDrawn"===e.look){let t=c.A.svg(g),r=(0,l.Fr)(e,{roughness:.2,strokeWidth:2.5}),i=(0,l.Fr)(e,{roughness:.2,strokeWidth:1.5}),s=t.circle(0,0,2*p,r),h=t.circle(0,0,2*u,i);(a=g.insert("g",":first-child")).attr("class",(0,n.KL)(e.cssClasses)).attr("style",(0,n.KL)(m)),a.node()?.appendChild(s),a.node()?.appendChild(h)}else{let t=(a=g.insert("g",":first-child")).insert("circle",":first-child"),e=a.insert("circle");a.attr("class","basic label-container").attr("style",i),t.attr("class","outer-circle").attr("style",i).attr("r",p).attr("cx",0).attr("cy",0),e.attr("class","inner-circle").attr("style",i).attr("r",u).attr("cx",0).attr("cy",0)}return x(e,a),e.intersect=function(t){return h.R.info("DoubleCircle intersect",e,p,t),B.circle(e,p,t)},g}function tu(t,e,{config:{themeVariables:a}}){let{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.label="",e.labelStyle=r;let n=t.insert("g").attr("class",w(e)).attr("id",e.domId??e.id),{cssStyles:s}=e,o=c.A.svg(n),{nodeBorder:d}=a,g=(0,l.Fr)(e,{fillStyle:"solid"});"handDrawn"!==e.look&&(g.roughness=0);let y=o.circle(0,0,14,g),p=n.insert(()=>y,":first-child");return p.selectAll("path").attr("style",`fill: ${d} !important;`),s&&s.length>0&&"handDrawn"!==e.look&&p.selectAll("path").attr("style",s),i&&"handDrawn"!==e.look&&p.selectAll("path").attr("style",i),x(e,p),e.intersect=function(t){return h.R.info("filledCircle intersect",e,{radius:7,point:t}),B.circle(e,7,t)},n}async function tx(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?2*i:i;(e.width||e.height)&&(e.height=e?.height??0,e.height<10&&(e.height=10),e.width=(e?.width??0)-n-n/2,e.width<10&&(e.width=10));let{shapeSvg:s,bbox:o,label:d}=await f(t,e,w(e)),g=(e?.width?e?.width:o.width)+(n??0),y=e?.height?e?.height:g+o.height,p=[{x:0,y:-y},{x:y,y:-y},{x:y/2,y:0}],{cssStyles:u}=e,$=c.A.svg(s),b=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let k=m(p),M=$.path(k,b),D=s.insert(()=>M,":first-child").attr("transform",`translate(${-y/2}, ${y/2})`).attr("class","outer-path");return u&&"handDrawn"!==e.look&&D.selectChildren("path").attr("style",u),r&&"handDrawn"!==e.look&&D.selectChildren("path").attr("style",r),e.width=g,e.height=y,x(e,D),d.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-y/2+(e.padding??0)/2+(o.y-(o.top??0))})`),e.intersect=function(t){return h.R.info("Triangle intersect",e,p,t),B.polygon(e,p,t)},s}async function tw(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:s,label:h}=await f(t,e,w(e)),o=e.padding??12,d=Math.max(s.width+2*o,e.width??0,90),g=s.height+2*o,y=Math.max(Math.min(.16*g,14),8),p=Math.max(g+y,e.height??0),u=p-y,m=Math.max(.38*d,28),$=-p/2,b=[{x:-d/2,y:$},{x:-d/2+m,y:$},{x:-d/2+m,y:$+y},{x:d/2,y:$+y},{x:d/2,y:p/2},{x:-d/2,y:p/2}],k=[`M${b[0].x},${b[0].y}`,...b.slice(1).map(t=>`L${t.x},${t.y}`),"Z"].join(" "),{cssStyles:M}=e;if("handDrawn"===e.look){let t=c.A.svg(n).path(k,(0,l.Fr)(e,{}));a=n.insert(()=>t,":first-child").attr("class","basic label-container"),M&&a.attr("style",M)}else a=n.insert("path",":first-child").attr("d",k).attr("class","basic label-container").attr("style",i);return"handDrawn"===e.look?x(e,a):x(e,a,{width:d,height:p}),h.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${$+y+u/2-s.height/2-(s.y-(s.top??0))})`),e.intersect=function(t){return B.polygon(e,b,t)},n}function tm(t,e,{dir:a,config:{state:r,themeVariables:i}}){let{nodeStyles:n}=(0,l.GX)(e);e.label="";let s=t.insert("g").attr("class",w(e)).attr("id",e.domId??e.id),{cssStyles:h}=e,o=Math.max(70,e?.width??0),d=Math.max(10,e?.height??0);"LR"===a&&(o=Math.max(10,e?.width??0),d=Math.max(70,e?.height??0));let g=-1*o/2,y=-1*d/2,p=c.A.svg(s),f=(0,l.Fr)(e,{stroke:i.lineColor,fill:i.lineColor});"handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid");let u=p.rectangle(g,y,o,d,f),m=s.insert(()=>u,":first-child");h&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",h),n&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",n),x(e,m);let $=r?.padding??0;return e.width&&e.height&&(e.width+=$/2||0,e.height+=$/2||0),e.intersect=function(t){return B.rect(e,t)},s}async function t$(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i="neo"===e.look?16:e.padding??0,n="neo"===e.look?12:e.padding??0;(e.width||e.height)&&(e.height=(e?.height??0)-2*n,e.height<10&&(e.height=10),e.width=(e?.width??0)-2*i,e.width<15&&(e.width=15));let{shapeSvg:s,bbox:o}=await f(t,e,w(e)),d=(e?.width?e?.width:Math.max(15,o.width))+2*i,g=(e?.height?e?.height:Math.max(10,o.height))+2*n,y=g/2,{cssStyles:p}=e,u=c.A.svg(s),$=(0,l.Fr)(e,{});"handDrawn"!==e.look&&($.roughness=0,$.fillStyle="solid");let k=[{x:-d/2,y:-g/2},{x:d/2-y,y:-g/2},...b(-d/2+y,0,y,50,90,270),{x:d/2-y,y:g/2},{x:-d/2,y:g/2}],M=m(k),D=u.path(M,$),S=s.insert(()=>D,":first-child");return S.attr("class","basic label-container outer-path"),p&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",p),r&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",r),x(e,S),e.intersect=function(t){return h.R.info("Pill intersect",e,{radius:y,point:t}),B.polygon(e,k,t)},s}(0,o.K)(tc,"cylinder"),(0,o.K)(tg,"drawRect"),(0,o.K)(ty,"datastore"),(0,o.K)(tp,"dividedRectangle"),(0,o.K)(tf,"doublecircle"),(0,o.K)(tu,"filledCircle"),(0,o.K)(tx,"flippedTriangle"),(0,o.K)(tw,"folder"),(0,o.K)(tm,"forkJoin"),(0,o.K)(t$,"halfRoundedRectangle");var tb=(0,o.K)((t,e,a,l,r)=>`M${t+r},${e} L${t+a-r},${e} L${t+a},${e-l/2} L${t+a-r},${e-l} L${t+r},${e-l} L${t},${e-l/2} Z`,"createHexagonPathD");async function tk(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e),n="neo"===e.look?3.5:4;e.labelStyle=r;let s=e.padding??0,h="neo"===e.look?70:s,o="neo"===e.look?32:s;if(e.width||e.height){let t=e.height??0;e.width=(e?.width??0)-t/n*2-o,e.height=(e.height??0)-h}let{shapeSvg:d,bbox:g}=await f(t,e,w(e)),y=(e?.height?e?.height:g.height)+h,p=y/n,u=(e?.width?e?.width:g.width)+2*p+o,m=[{x:p,y:0},{x:u-p,y:0},{x:u,y:-y/2},{x:u-p,y:-y},{x:p,y:-y},{x:0,y:-y/2}],{cssStyles:$}=e;
2if("handDrawn"===e.look){let t=c.A.svg(d),r=(0,l.Fr)(e,{}),i=tb(0,0,u,y,p),n=t.path(i,r);a=d.insert(()=>n,":first-child").attr("transform",`translate(${-u/2}, ${y/2})`),$&&a.attr("style",$)}else a=I(d,u,y,m);return i&&a.attr("style",i),e.width=u,e.height=y,x(e,a),e.intersect=function(t){return B.polygon(e,m,t)},d}async function tM(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.label="",e.labelStyle=a;let{shapeSvg:i}=await f(t,e,w(e)),n=Math.max(30,e?.width??0),s=Math.max(30,e?.height??0),{cssStyles:o}=e,d=c.A.svg(i),g=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid");let y=[{x:0,y:0},{x:n,y:0},{x:0,y:s},{x:n,y:s}],p=m(y),u=d.path(p,g),$=i.insert(()=>u,":first-child");return $.attr("class","basic label-container outer-path"),o&&"handDrawn"!==e.look&&$.selectChildren("path").attr("style",o),r&&"handDrawn"!==e.look&&$.selectChildren("path").attr("style",r),$.attr("transform",`translate(${-n/2}, ${-s/2})`),x(e,$),e.intersect=function(t){return h.R.info("Pill intersect",e,{points:y}),B.polygon(e,y,t)},i}async function tD(t,e,{config:{themeVariables:a,flowchart:r}}){let{labelStyles:n}=(0,l.GX)(e);e.labelStyle=n;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,r?.wrappingWidth??0);let{shapeSvg:o,bbox:d,label:g}=await f(t,e,"icon-shape default"),y="t"===e.pos,{nodeBorder:p}=a,{stylesMap:u}=(0,l.WW)(e),w=-s/2,m=-s/2,$=8*!!e.label,b=c.A.svg(o),k=(0,l.Fr)(e,{stroke:"none",fill:"none"});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=b.rectangle(w,m,s,s,k),D=Math.max(s,d.width),S=s+d.height+$,A=b.rectangle(-D/2,-S/2,D,S,{...k,fill:"transparent",stroke:"none"}),K=o.insert(()=>M,":first-child"),v=o.insert(()=>A);if(e.icon){let t=o.append("g");t.html(`<g>${await (0,i.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);let a=t.node().getBBox(),l=a.width,r=a.height,n=a.x,h=a.y;t.attr("transform",`translate(${-l/2-n},${y?d.height/2+$/2-r/2-h:-d.height/2-$/2-r/2-h})`),t.attr("style",`color: ${u.get("stroke")??p};`)}return g.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${y?-S/2:S/2-d.height})`),K.attr("transform",`translate(0,${y?d.height/2+$/2:-d.height/2-$/2})`),x(e,v),e.intersect=function(t){if(h.R.info("iconSquare intersect",e,t),!e.label)return B.rect(e,t);let a=e.x??0,l=e.y??0,r=e.height??0,i=[];return i=y?[{x:a-d.width/2,y:l-r/2},{x:a+d.width/2,y:l-r/2},{x:a+d.width/2,y:l-r/2+d.height+$},{x:a+s/2,y:l-r/2+d.height+$},{x:a+s/2,y:l+r/2},{x:a-s/2,y:l+r/2},{x:a-s/2,y:l-r/2+d.height+$},{x:a-d.width/2,y:l-r/2+d.height+$}]:[{x:a-s/2,y:l-r/2},{x:a+s/2,y:l-r/2},{x:a+s/2,y:l-r/2+s},{x:a+d.width/2,y:l-r/2+s},{x:a+d.width/2/2,y:l+r/2},{x:a-d.width/2,y:l+r/2},{x:a-d.width/2,y:l-r/2+s},{x:a-s/2,y:l-r/2+s}],B.polygon(e,i,t)},o}async function tS(t,e,{config:{themeVariables:a,flowchart:r}}){let{labelStyles:n}=(0,l.GX)(e);e.labelStyle=n;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,r?.wrappingWidth??0);let{shapeSvg:o,bbox:d,label:g}=await f(t,e,"icon-shape default"),y=8*!!e.label,p="t"===e.pos,{nodeBorder:u,mainBkg:w}=a,{stylesMap:m}=(0,l.WW)(e),$=c.A.svg(o),b=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid"),b.stroke=m.get("fill")??w;let k=o.append("g");e.icon&&k.html(`<g>${await (0,i.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);let M=k.node().getBBox(),D=M.width,S=M.height,A=M.x,K=M.y,v=Math.max(D,S)*Math.SQRT2+40,C=$.circle(0,0,v,b),N=Math.max(v,d.width),L=v+d.height+y,R=$.rectangle(-N/2,-L/2,N,L,{...b,fill:"transparent",stroke:"none"}),F=o.insert(()=>C,":first-child"),P=o.insert(()=>R);return k.attr("transform",`translate(${-D/2-A},${p?d.height/2+y/2-S/2-K:-d.height/2-y/2-S/2-K})`),k.attr("style",`color: ${m.get("stroke")??u};`),g.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${p?-L/2:L/2-d.height})`),F.attr("transform",`translate(0,${p?d.height/2+y/2:-d.height/2-y/2})`),x(e,P),e.intersect=function(t){return h.R.info("iconSquare intersect",e,t),B.rect(e,t)},o}async function tA(t,e,{config:{themeVariables:a,flowchart:r}}){let{labelStyles:n}=(0,l.GX)(e);e.labelStyle=n;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,r?.wrappingWidth??0);let{shapeSvg:o,bbox:d,halfPadding:g,label:y}=await f(t,e,"icon-shape default"),p="t"===e.pos,u=s+2*g,w=s+2*g,{nodeBorder:m,mainBkg:$}=a,{stylesMap:b}=(0,l.WW)(e),k=8*!!e.label,M=c.A.svg(o),S=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid"),S.stroke=b.get("fill")??$;let A=M.path(D(-w/2,-u/2,w,u,5),S),K=Math.max(w,d.width),v=u+d.height+k,C=M.rectangle(-K/2,-v/2,K,v,{...S,fill:"transparent",stroke:"none"}),N=o.insert(()=>A,":first-child").attr("class","icon-shape2"),L=o.insert(()=>C);
2if(e.icon){let t=o.append("g");t.html(`<g>${await (0,i.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);let a=t.node().getBBox(),l=a.width,r=a.height,n=a.x,h=a.y;t.attr("transform",`translate(${-l/2-n},${p?d.height/2+k/2-r/2-h:-d.height/2-k/2-r/2-h})`),t.attr("style",`color: ${b.get("stroke")??m};`)}return y.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${p?-v/2:v/2-d.height})`),N.attr("transform",`translate(0,${p?d.height/2+k/2:-d.height/2-k/2})`),x(e,L),e.intersect=function(t){if(h.R.info("iconSquare intersect",e,t),!e.label)return B.rect(e,t);let a=e.x??0,l=e.y??0,r=e.height??0,i=[];return i=p?[{x:a-d.width/2,y:l-r/2},{x:a+d.width/2,y:l-r/2},{x:a+d.width/2,y:l-r/2+d.height+k},{x:a+w/2,y:l-r/2+d.height+k},{x:a+w/2,y:l+r/2},{x:a-w/2,y:l+r/2},{x:a-w/2,y:l-r/2+d.height+k},{x:a-d.width/2,y:l-r/2+d.height+k}]:[{x:a-w/2,y:l-r/2},{x:a+w/2,y:l-r/2},{x:a+w/2,y:l-r/2+u},{x:a+d.width/2,y:l-r/2+u},{x:a+d.width/2/2,y:l+r/2},{x:a-d.width/2,y:l+r/2},{x:a-d.width/2,y:l-r/2+u},{x:a-w/2,y:l-r/2+u}],B.polygon(e,i,t)},o}async function tK(t,e,{config:{themeVariables:a,flowchart:r}}){let{labelStyles:n}=(0,l.GX)(e);e.labelStyle=n;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,r?.wrappingWidth??0);let{shapeSvg:o,bbox:d,halfPadding:g,label:y}=await f(t,e,"icon-shape default"),p="t"===e.pos,u=s+2*g,w=s+2*g,{nodeBorder:m,mainBkg:$}=a,{stylesMap:b}=(0,l.WW)(e),k=8*!!e.label,M=c.A.svg(o),S=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid"),S.stroke=b.get("fill")??$;let A=M.path(D(-w/2,-u/2,w,u,.1),S),K=Math.max(w,d.width),v=u+d.height+k,C=M.rectangle(-K/2,-v/2,K,v,{...S,fill:"transparent",stroke:"none"}),N=o.insert(()=>A,":first-child"),L=o.insert(()=>C);if(e.icon){let t=o.append("g");t.html(`<g>${await (0,i.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);let a=t.node().getBBox(),l=a.width,r=a.height,n=a.x,h=a.y;t.attr("transform",`translate(${-l/2-n},${p?d.height/2+k/2-r/2-h:-d.height/2-k/2-r/2-h})`),t.attr("style",`color: ${b.get("stroke")??m};`)}return y.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${p?-v/2:v/2-d.height})`),N.attr("transform",`translate(0,${p?d.height/2+k/2:-d.height/2-k/2})`),x(e,L),e.intersect=function(t){if(h.R.info("iconSquare intersect",e,t),!e.label)return B.rect(e,t);let a=e.x??0,l=e.y??0,r=e.height??0,i=[];return i=p?[{x:a-d.width/2,y:l-r/2},{x:a+d.width/2,y:l-r/2},{x:a+d.width/2,y:l-r/2+d.height+k},{x:a+w/2,y:l-r/2+d.height+k},{x:a+w/2,y:l+r/2},{x:a-w/2,y:l+r/2},{x:a-w/2,y:l-r/2+d.height+k},{x:a-d.width/2,y:l-r/2+d.height+k}]:[{x:a-w/2,y:l-r/2},{x:a+w/2,y:l-r/2},{x:a+w/2,y:l-r/2+u},{x:a+d.width/2,y:l-r/2+u},{x:a+d.width/2/2,y:l+r/2},{x:a-d.width/2,y:l+r/2},{x:a-d.width/2,y:l-r/2+u},{x:a-w/2,y:l-r/2+u}],B.polygon(e,i,t)},o}async function tv(t,e,{config:{flowchart:a}}){let r=new Image;r.src=e?.img??"",await r.decode();let i=Number(r.naturalWidth.toString().replace("px","")),n=Number(r.naturalHeight.toString().replace("px",""));e.imageAspectRatio=i/n;let{labelStyles:s}=(0,l.GX)(e);e.labelStyle=s;let o=a?.wrappingWidth;e.defaultWidth=a?.wrappingWidth;let d=Math.max(e.label?o??0:0,e?.assetWidth??i),g="on"===e.constraint&&e?.assetHeight?e.assetHeight*e.imageAspectRatio:d,y="on"===e.constraint?g/e.imageAspectRatio:e?.assetHeight??n;e.width=Math.max(g,o??0);let{shapeSvg:p,bbox:u,label:w}=await f(t,e,"image-shape default"),m="t"===e.pos,$=-g/2,b=8*!!e.label,k=c.A.svg(p),M=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let D=k.rectangle($,-y/2,g,y,M),S=Math.max(g,u.width),A=y+u.height+b,K=k.rectangle(-S/2,-A/2,S,A,{...M,fill:"none",stroke:"none"}),v=p.insert(()=>D,":first-child"),C=p.insert(()=>K);if(e.img){let t=p.append("image");t.attr("href",e.img),t.attr("width",g),t.attr("height",y),t.attr("preserveAspectRatio","none"),t.attr("transform",`translate(${-g/2},${m?A/2-y:-A/2})`)}return w.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${m?-y/2-u.height/2-b/2:y/2-u.height/2+b/2})`),v.attr("transform",`translate(0,${m?u.height/2+b/2:-u.height/2-b/2})`),x(e,C),e.intersect=function(t){if(h.R.info("iconSquare intersect",e,t),!e.label)return B.rect(e,t);let a=e.x??0,l=e.y??0,r=e.height??0,i=[];return i=m?[{x:a-u.width/2,y:l-r/2},{x:a+u.width/2,y:l-r/2},{x:a+u.width/2,y:l-r/2+u.height+b},{x:a+g/2,y:l-r/2+u.height+b},{x:a+g/2,y:l+r/2},{x:a-g/2,y:l+r/2},{x:a-g/2,y:l-r/2+u.height+b},{x:a-u.width/2,y:l-r/2+u.height+b}]:[{x:a-g/2,y:l-r/2},{x:a+g/2,y:l-r/2},{x:a+g/2,y:l-r/2+y},{x:a+u.width/2,y:l-r/2+y},{x:a+u.width/2/2,y:l+r/2},{x:a-u.width/2,y:l+r/2},{x:a-u.width/2,y:l-r/2+y},{x:a-g/2,y:l-r/2+y}],B.polygon(e,i,t)},p}async function tC(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let n=e.padding??0,s="neo"===e.look?2*n:n,{shapeSvg:h,bbox:o}=await f(t,e,w(e)),d=Math.max(o.height+2*n,e.height??0),g=Math.max(o.width+2*s,(e.width??0)-d),y=[{x:0,y:0},{x:g,y:0},{x:g+3*d/6,y:-d},{x:-3*d/6,y:-d}],{cssStyles:p}=e;
2if("handDrawn"===e.look){let t=c.A.svg(h),r=(0,l.Fr)(e,{}),i=m(y),n=t.path(i,r);a=h.insert(()=>n,":first-child").attr("transform",`translate(${-g/2}, ${d/2})`),p&&a.attr("style",p)}else a=I(h,g,d,y);return i&&a.attr("style",i),e.width=g,e.height=d,x(e,a),e.intersect=function(t){return B.polygon(e,y,t)},h}async function tN(t,e){let{shapeSvg:a,bbox:l,label:r}=await f(t,e,"label"),i=a.insert("rect",":first-child");return i.attr("width",.1).attr("height",.1),a.attr("class","label edgeLabel"),r.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),x(e,i),e.intersect=function(t){return B.rect(e,t)},a}async function tB(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let n=e.padding??0,s="neo"===e.look?2*n:n,{shapeSvg:h,bbox:o}=await f(t,e,w(e)),d=Math.max(o.height+n,e.height??0),g=Math.max(o.width+s,(e.width??0)-d),y=[{x:0,y:0},{x:g+3*d/6,y:0},{x:g,y:-d},{x:-(3*d)/6,y:-d}],{cssStyles:p}=e;if("handDrawn"===e.look){let t=c.A.svg(h),r=(0,l.Fr)(e,{}),i=m(y),n=t.path(i,r);a=h.insert(()=>n,":first-child").attr("transform",`translate(${-g/2}, ${d/2})`),p&&a.attr("style",p)}else a=I(h,g,d,y);return i&&a.attr("style",i),e.width=g,e.height=d,x(e,a),e.intersect=function(t){return B.polygon(e,y,t)},h}async function tL(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let n=e.padding??0,s="neo"===e.look?2*n:n,{shapeSvg:h,bbox:o}=await f(t,e,w(e)),d=Math.max(o.height+n,e.height??0),g=Math.max(o.width+s,(e.width??0)-d),y=[{x:-3*d/6,y:0},{x:g,y:0},{x:g+3*d/6,y:-d},{x:0,y:-d}],{cssStyles:p}=e;if("handDrawn"===e.look){let t=c.A.svg(h),r=(0,l.Fr)(e,{}),i=m(y),n=t.path(i,r);a=h.insert(()=>n,":first-child").attr("transform",`translate(${-g/2}, ${d/2})`),p&&a.attr("style",p)}else a=I(h,g,d,y);return i&&a.attr("style",i),e.width=g,e.height=d,x(e,a),e.intersect=function(t){return B.polygon(e,y,t)},h}function tR(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.label="",e.labelStyle=a;let i=t.insert("g").attr("class",w(e)).attr("id",e.domId??e.id),{cssStyles:n}=e,s=Math.max(35,e?.width??0),o=Math.max(35,e?.height??0),d=[{x:s,y:0},{x:0,y:o+3.5},{x:s-14,y:o+3.5},{x:0,y:2*o},{x:s,y:o-3.5},{x:14,y:o-3.5}],g=c.A.svg(i),y=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(y.roughness=0,y.fillStyle="solid");let p=m(d),f=g.path(p,y),u=i.insert(()=>f,":first-child");return u.attr("class","outer-path"),n&&"handDrawn"!==e.look&&u.selectAll("path").attr("style",n),r&&"handDrawn"!==e.look&&u.selectAll("path").attr("style",r),u.attr("transform",`translate(-${s/2},${-o})`),x(e,u),e.intersect=function(t){return h.R.info("lightningBolt intersect",e,t),B.polygon(e,d,t)},i}(0,o.K)(tk,"hexagon"),(0,o.K)(tM,"hourglass"),(0,o.K)(tD,"icon"),(0,o.K)(tS,"iconCircle"),(0,o.K)(tA,"iconRounded"),(0,o.K)(tK,"iconSquare"),(0,o.K)(tv,"imageSquare"),(0,o.K)(tC,"inv_trapezoid"),(0,o.K)(tN,"labelRect"),(0,o.K)(tB,"lean_left"),(0,o.K)(tL,"lean_right"),(0,o.K)(tR,"lightningBolt");var tF=(0,o.K)((t,e,a,l,r,i,n)=>`M${t},${e+i} a${r},${i} 0,0,0 ${a},0 a${r},${i} 0,0,0 ${-a},0 l0,${l} a${r},${i} 0,0,0 ${a},0 l0,${-l} M${t},${e+i+n} a${r},${i} 0,0,0 ${a},0`,"createCylinderPathD"),tP=(0,o.K)((t,e,a,l,r,i,n)=>`M${t},${e+i} M${t+a},${e+i} a${r},${i} 0,0,0 ${-a},0 l0,${l} a${r},${i} 0,0,0 ${a},0 l0,${-l} M${t},${e+i+n} a${r},${i} 0,0,0 ${a},0`,"createOuterCylinderPathD"),tG=(0,o.K)((t,e,a,l,r,i)=>`M${t-a/2},${-l/2} a${r},${i} 0,0,0 ${a},0`,"createInnerCylinderPathD");async function tX(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let s=e.padding??0,h="neo"===e.look?16:s,o="neo"===e.look?24:s;if(e.width||e.height){let t=e.width??0;e.width=(e.width??0)-h,e.width<10&&(e.width=10),e.height=(e.height??0)-o-t/2/(2.5+t/50)*3,e.height<10&&(e.height=10)}let{shapeSvg:d,bbox:g,label:y}=await f(t,e,w(e)),p=(e?.width?e?.width:g.width)+2*h,u=p/2,m=u/(2.5+p/50),$=(e?.height?e?.height:g.height)+m+2*o,b=.1*$,{cssStyles:k}=e;if("handDrawn"===e.look){let t=c.A.svg(d),r=tP(0,0,p,$,u,m,b),i=tG(0,m,p,$,u,m),n=(0,l.Fr)(e,{}),s=t.path(r,n),h=t.path(i,n);d.insert(()=>h,":first-child").attr("class","line"),(a=d.insert(()=>s,":first-child")).attr("class","basic label-container"),k&&a.attr("style",k)}else{let t=tF(0,0,p,$,u,m,b);a=d.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",(0,n.KL)(k)).attr("style",i)}return a.attr("label-offset-y",m),a.attr("transform",`translate(${-p/2}, ${-($/2+m)})`),x(e,a),y.attr("transform",`translate(${-(g.width/2)-(g.x-(g.left??0))}, ${-(g.height/2)+m-(g.y-(g.top??0))})`),e.intersect=function(t){let a=B.rect(e,t),l=a.x-(e.x??0);if(0!=u&&(Math.abs(l)<(e.width??0)/2||Math.abs(l)==(e.width??0)/2&&Math.abs(a.y-(e.y??0))>(e.height??0)/2-m)){let r=m*m*(1-l*l/(u*u));r>0&&(r=Math.sqrt(r)),r=m-r,t.y-(e.y??0)>0&&(r=-r),a.y+=r}return a},d}async function tI(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i;if(e.width||e.height){let t=e.width;e.width=(t??0)*10/11-2*n,e.width<10&&(e.width=10),e.height=(e?.height??0)-2*s,e.height<10&&(e.height=10)}let{shapeSvg:h,bbox:o,label:d}=await f(t,e,w(e)),g=(e?.width?e?.width:o.width)+(n??0)*2,y=(e?.height?e?.height:o.height)+(s??0)*2,p="neo"===e.look?y/4:y/8,u=y+p,{cssStyles:m}=e,b=c.A.svg(h),k=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=[{x:-g/2-g/2*.1,y:-u/2},{x:-g/2-g/2*.1,y:u/2},...$(-g/2-g/2*.1,u/2,g/2+g/2*.1,u/2,p,.8),{x:g/2+g/2*.1,y:-u/2},{x:-g/2-g/2*.1,y:-u/2},{x:-g/2,y:-u/2},{x:-g/2,y:u/2*1.1},{x:-g/2,y:-u/2}],D=b.polygon(M.map(t=>[t.x,t.y]),k),S=h.insert(()=>D,":first-child");return S.attr("class","basic label-container outer-path"),m&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",m),r&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",r),S.attr("transform",`translate(0,${-p/2})`),d.attr("transform",`translate(${-g/2+(e.padding??0)+g/2*.1/2-(o.x-(o.left??0))},${-y/2+(e.padding??0)-p/2-(o.y-(o.top??0))})`),x(e,S),e.intersect=function(t){return B.polygon(e,M,t)},h}async function tT(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i,h="neo"===e.look?10:5;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*n-2*h,10),e.height=Math.max((e?.height??0)-2*s-2*h,10));let{shapeSvg:o,bbox:d,label:g}=await f(t,e,w(e)),y=(e?.width?e?.width:d.width)+2*n+2*h,p=(e?.height?e?.height:d.height)+2*s+2*h,u=y-2*h,$=p-2*h,b=-u/2,M=-$/2,{cssStyles:D}=e,S=c.A.svg(o),A=(0,l.Fr)(e,{}),K=[{x:b-h,y:M+h},{x:b-h,y:M+$+h},{x:b+u-h,y:M+$+h},{x:b+u-h,y:M+$},{x:b+u,y:M+$},{x:b+u,y:M+$-h},{x:b+u+h,y:M+$-h},{x:b+u+h,y:M-h},{x:b+h,y:M-h},{x:b+h,y:M},{x:b,y:M},{x:b,y:M+h}];"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");let v=m(K),C=S.path(v,A),N=m([{x:b,y:M+h},{x:b+u-h,y:M+h},{x:b+u-h,y:M+$},{x:b+u,y:M+$},{x:b+u,y:M},{x:b,y:M}]),L=S.path(N,A);"handDrawn"!==e.look&&(C=k(C),L=k(L));let R=o.insert("g",":first-child");return R.insert(()=>C),R.insert(()=>L),R.attr("class","basic label-container outer-path"),D&&"handDrawn"!==e.look&&R.selectAll("path").attr("style",D),r&&"handDrawn"!==e.look&&R.selectAll("path").attr("style",r),g.attr("transform",`translate(${-(d.width/2)-h-(d.x-(d.left??0))}, ${-(d.height/2)+h-(d.y-(d.top??0))})`),x(e,R),e.intersect=function(t){return B.polygon(e,K,t)},o}async function tW(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await f(t,e,w(e)),h=e.padding??0,o="neo"===e.look?16:h,d="neo"===e.look?12:h,g=!0;(e.width||e.height)&&(g=!1,e.width=(e?.width??0)-2*o,e.height=(e?.height??0)-3*d);let y=Math.max(n.width,e?.width??0)+2*o,p=Math.max(n.height,e?.height??0)+3*d,u="neo"===e.look?p/4:p/8,b=p+(g?u/2:-u/2),k=-y/2,M=-b/2,{cssStyles:D}=e,S=$(k-10,M+b+10,k+y-10,M+b+10,u,.8),A=S?.[S.length-1],K=[{x:k-10,y:M+10},{x:k-10,y:M+b+10},...S,{x:k+y-10,y:A.y-10},{x:k+y,y:A.y-10},{x:k+y,y:A.y-20},{x:k+y+10,y:A.y-20},{x:k+y+10,y:M-10},{x:k+10,y:M-10},{x:k+10,y:M},{x:k,y:M},{x:k,y:M+10}],v=[{x:k,y:M+10},{x:k+y-10,y:M+10},{x:k+y-10,y:A.y-10},{x:k+y,y:A.y-10},{x:k+y,y:M},{x:k,y:M}],C=c.A.svg(i),N=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(N.roughness=0,N.fillStyle="solid");let L=m(K),R=C.path(L,N),F=m(v),P=C.path(F,N),G=i.insert(()=>R,":first-child");return G.insert(()=>P),G.attr("class","basic label-container outer-path"),D&&"handDrawn"!==e.look&&G.selectAll("path").attr("style",D),r&&"handDrawn"!==e.look&&G.selectAll("path").attr("style",r),G.attr("transform",`translate(0,${-u/2})`),s.attr("transform",`translate(${-(n.width/2)-10-(n.x-(n.left??0))}, ${-(n.height/2)+10-u/2-(n.y-(n.top??0))})`),x(e,G),e.intersect=function(t){return B.polygon(e,K,t)},i}async function tE(t,e,{config:{themeVariables:a}}){let{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r,e.useHtmlLabels||(0,s.E)((0,s.zj)())||(e.centerLabel=!0);let{shapeSvg:n,bbox:h,label:o}=await f(t,e,w(e)),d=Math.max(h.width+(e.padding??0)*2,e?.width??0),g=Math.max(h.height+(e.padding??0)*2,e?.height??0),{cssStyles:y}=e,p=c.A.svg(n),u=(0,l.Fr)(e,{fill:a.noteBkgColor,stroke:a.noteBorderColor});"handDrawn"!==e.look&&(u.roughness=0,u.fillStyle="solid");let m=p.rectangle(-d/2,-g/2,d,g,u),$=n.insert(()=>m,":first-child");return $.attr("class","basic label-container outer-path"),o.attr("class","label noteLabel"),y&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",y),i&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",i),o.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))}, ${-(h.height/2)-(h.y-(h.top??0))})`),x(e,$),e.intersect=function(t){return B.rect(e,t)},n}(0,o.K)(tX,"linedCylinder"),(0,o.K)(tI,"linedWaveEdgedRect"),(0,o.K)(tT,"multiRect"),(0,o.K)(tW,"multiWaveEdgedRectangle"),(0,o.K)(tE,"note");var tH=(0,o.K)((t,e,a)=>`M${t+a/2},${e} L${t+a},${e-a/2} L${t+a/2},${e-a} L${t},${e-a/2} Z`,"createDecisionBoxPathD");async function tj(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:s}=await f(t,e,w(e)),h=s.width+(e.padding??0)+(s.height+(e.padding??0)),o=[{x:h/2,y:0},{x:h,y:-h/2},{x:h/2,y:-h},{x:0,y:-h/2}],{cssStyles:d}=e;
2if("handDrawn"===e.look){let t=c.A.svg(n),r=(0,l.Fr)(e,{}),i=tH(0,0,h),s=t.path(i,r);a=n.insert(()=>s,":first-child").attr("transform",`translate(${-h/2+.5}, ${h/2})`),d&&a.attr("style",d)}else(a=I(n,h,h,o)).attr("transform",`translate(${-h/2+.5}, ${h/2})`);return i&&a.attr("style",i),x(e,a),e.calcIntersect=function(t,e){let a=t.width,l=B.polygon(t,[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}],e);return{x:l.x-.5,y:l.y-.5}},e.intersect=function(t){return this.calcIntersect(e,t)},n}async function tq(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?21:i??0,s="neo"===e.look?12:i??0,{shapeSvg:h,bbox:o,label:d}=await f(t,e,w(e)),g=o.width+("neo"===e.look?2*n:n),y=Math.max(o.height+("neo"===e.look?2*s:s),e.height??0),p=-Math.max(g,(e.width??0)-y/4)/2,u=-y/2,$=u/2,b=[{x:p+$,y:u},{x:p,y:0},{x:p+$,y:-u},{x:-p,y:-u},{x:-p,y:u}],{cssStyles:k}=e,M=c.A.svg(h),D=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(D.roughness=0,D.fillStyle="solid");let S=m(b),A=M.path(S,D),K=h.insert(()=>A,":first-child");return K.attr("class","basic label-container outer-path"),k&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",k),r&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",r),K.attr("transform",`translate(${-$/2},0)`),d.attr("transform",`translate(${-$/2-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),x(e,K),e.intersect=function(t){return B.polygon(e,b,t)},h}async function t_(t,e){let a,r,i,{labelStyles:n,nodeStyles:o}=(0,l.GX)(e);e.labelStyle=n,a=e.cssClasses?"node "+e.cssClasses:"node default";let g=t.insert("g").attr("class",a).attr("id",e.domId||e.id),y=g.insert("g"),p=g.insert("g").attr("class","label").attr("style",o),f=e.description,u=e.label,w=await S(p,u,e.labelStyle,!0,!0),m={width:0,height:0};if((0,s.E)((0,s.D7)())){let t=w.children[0],e=(0,d.Ltv)(w);m=t.getBoundingClientRect(),e.attr("width",m.width),e.attr("height",m.height)}h.R.info("Text 2",f);let $=f||[],b=w.getBBox(),k=await S(p,Array.isArray($)?$.join("<br/>"):$,e.labelStyle,!0,!0),M=k.children[0],A=(0,d.Ltv)(k);m=M.getBoundingClientRect(),A.attr("width",m.width),A.attr("height",m.height);let K=(e.padding||0)/2;(0,d.Ltv)(k).attr("transform","translate( "+(m.width>b.width?0:(b.width-m.width)/2)+", "+(b.height+K+5)+")"),(0,d.Ltv)(w).attr("transform","translate( "+(m.width<b.width?0:-(b.width-m.width)/2)+", 0)"),m=p.node().getBBox(),p.attr("transform","translate("+-m.width/2+", "+(-m.height/2-K+3)+")");let v=m.width+(e.padding||0),C=m.height+(e.padding||0),N=-m.width/2-K,L=-m.height/2-K;if("handDrawn"===e.look){let t=c.A.svg(g),a=(0,l.Fr)(e,{}),n=t.path(D(N,L,v,C,e.rx||0),a),s=t.line(-m.width/2-K,-m.height/2-K+b.height+K,m.width/2+K,-m.height/2-K+b.height+K,a);i=g.insert(()=>(h.R.debug("Rough node insert CXC",n),s),":first-child"),r=g.insert(()=>(h.R.debug("Rough node insert CXC",n),n),":first-child")}else r=y.insert("rect",":first-child"),i=y.insert("line"),r.attr("class","outer title-state").attr("style",o).attr("x",-m.width/2-K).attr("y",-m.height/2-K).attr("width",m.width+(e.padding||0)).attr("height",m.height+(e.padding||0)),i.attr("class","divider").attr("x1",-m.width/2-K).attr("x2",m.width/2+K).attr("y1",-m.height/2-K+b.height+K).attr("y2",-m.height/2-K+b.height+K);return x(e,r),e.intersect=function(t){return B.rect(e,t)},g}async function tz(t,e,{config:{themeVariables:a}}){let l=a?.radius??5,r={rx:l,ry:l,classes:"",labelPaddingX:(e?.padding??0)*1,labelPaddingY:(e?.padding??0)*1};return tg(t,e,r)}async function tZ(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i="neo"===e.look?16:e.padding??0,s="neo"===e.look?12:e.padding??0,{shapeSvg:h,bbox:o,label:d}=await f(t,e,w(e)),g=(e?.width??o.width)+2*i+("neo"===e.look?8:16),y=(e?.height??o.height)+2*s,p=g-8,u=8-g/2,m=-y/2,{cssStyles:$}=e,b=c.A.svg(h),k=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=b.polygon([{x:u,y:m},{x:u+p,y:m},{x:u+p,y:m+y},{x:u-8,y:m+y},{x:u-8,y:m},{x:u,y:m},{x:u,y:m+y}].map(t=>[t.x,t.y]),k),D=h.insert(()=>M,":first-child");return D.attr("class","basic label-container outer-path").attr("style",(0,n.KL)($)),r&&"handDrawn"!==e.look&&D.selectAll("path").attr("style",r),$&&"handDrawn"!==e.look&&D.selectAll("path").attr("style",r),d.attr("transform",`translate(${4-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),x(e,D),e.intersect=function(t){return B.rect(e,t)},h}async function tO(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*n,10),e.height=Math.max((e?.height??0)/1.5-2*s,10));let{shapeSvg:h,bbox:o,label:d}=await f(t,e,w(e)),g=(e?.width?e?.width:o.width)+2*n,y=((e?.height?e?.height:o.height)+2*s)*1.5/1.5,p=-g/2,u=-y/2,{cssStyles:$}=e,b=c.A.svg(h),k=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=[{x:p,y:u},{x:p,y:u+y},{x:p+g,y:u+y},{x:p+g,y:u-y/2}],D=m(M),S=b.path(D,k),A=h.insert(()=>S,":first-child");return A.attr("class","basic label-container  outer-path"),$&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",$),r&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",r),A.attr("transform",`translate(0, ${y/4})`),d.attr("transform",`translate(${-g/2+(e.padding??0)-(o.x-(o.left??0))}, ${-y/4+(e.padding??0)-(o.y-(o.top??0))})`),x(e,A),e.intersect=function(t){return B.polygon(e,M,t)},h}async function tV(t,e){let a=e.padding??0,l="neo"===e.look?16:2*a,r="neo"===e.look?12:a,i={rx:0,ry:0,classes:"",labelPaddingX:e.labelPaddingX??l,labelPaddingY:r};return tg(t,e,i)}async function tY(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?20:i,s="neo"===e.look?12:i,{shapeSvg:h,bbox:o}=await f(t,e,w(e)),d=o.height+("neo"===e.look?2*s:s),g=o.width+d/4+("neo"===e.look?2*n:n),y=d/2,{cssStyles:p}=e,u=c.A.svg(h),$=(0,l.Fr)(e,{});"handDrawn"!==e.look&&($.roughness=0,$.fillStyle="solid");let k=[{x:-g/2+y,y:-d/2},{x:g/2-y,y:-d/2},...b(-g/2+y,0,y,50,90,270),{x:g/2-y,y:d/2},...b(g/2-y,0,y,50,270,450)],M=m(k),D=u.path(M,$),S=h.insert(()=>D,":first-child");return S.attr("class","basic label-container outer-path"),p&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",p),r&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",r),x(e,S),e.intersect=function(t){return B.polygon(e,k,t)},h}async function tU(t,e){let a={rx:"neo"===e.look?3:5,ry:"neo"===e.look?3:5,classes:"flowchart-node"};return tg(t,e,a)}function tJ(t,e,{config:{themeVariables:a}}){let{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{cssStyles:n}=e,{lineColor:s,stateBorder:h,nodeBorder:o,nodeShadow:d}=a;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.
2width||(e.width=14),e.height||(e.height=14);let g=t.insert("g").attr("class","node default").attr("id",e.domId??e.id),y=c.A.svg(g),p=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");let f=y.circle(0,0,e.width,{...p,stroke:s,strokeWidth:2}),u=h??o,w=(e.width??0)*5/14,m=y.circle(0,0,w,{...p,fill:u,stroke:u,strokeWidth:2,fillStyle:"solid"}),$=g.insert(()=>f,":first-child");if($.insert(()=>m),"handDrawn"!==e.look&&$.attr("class","outer-path"),n&&$.selectAll("path").attr("style",n),i&&$.selectAll("path").attr("style",i),e.width<25&&d&&"handDrawn"!==e.look){let e=t.node()?.ownerSVGElement?.id??"",a=e?`${e}-drop-shadow-small`:"drop-shadow-small";$.attr("style",`filter:url(#${a})`)}return x(e,$),e.intersect=function(t){return B.circle(e,(e.width??0)/2,t)},g}function tQ(t,e,{config:{themeVariables:a}}){let r,{lineColor:i,nodeShadow:n}=a;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);let s=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);if("handDrawn"===e.look){let t=c.A.svg(s).circle(0,0,e.width,(0,l.ue)(i));(r=s.insert(()=>t)).attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14)}else(r=s.insert("circle",":first-child")).attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14);if(e.width<25&&n&&"handDrawn"!==e.look){let e=t.node()?.ownerSVGElement?.id??"",a=e?`${e}-drop-shadow-small`:"drop-shadow-small";r.attr("style",`filter:url(#${a})`)}return x(e,r),e.intersect=function(t){return B.circle(e,(e.width??7)/2,t)},s}async function t0(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e?.padding??8,s="neo"===e.look?28:i,h="neo"===e.look?12:i,{shapeSvg:o,bbox:d}=await f(t,e,w(e)),g=Math.max(d.width+16+s,e.width??0),y=Math.max(d.height+h,e.height??0),p=g-16,u=-g/2,m=-y/2,$=[{x:0,y:0},{x:p,y:0},{x:p,y:-y},{x:0,y:-y},{x:0,y:0},{x:-8,y:0},{x:p+8,y:0},{x:p+8,y:-y},{x:-8,y:-y},{x:-8,y:0}];if("handDrawn"===e.look){let t=c.A.svg(o),a=(0,l.Fr)(e,{}),r=t.rectangle(u,m,p+16,y,a),i=t.line(u+8,m,u+8,m+y,a),s=t.line(u+8+p,m,u+8+p,m+y,a);o.insert(()=>i,":first-child"),o.insert(()=>s,":first-child");let h=o.insert(()=>r,":first-child"),{cssStyles:d}=e;h.attr("class","basic label-container").attr("style",(0,n.KL)(d)),x(e,h)}else{let t=I(o,p,y,$);r&&t.attr("style",r),x(e,t)}return e.intersect=function(t){return B.polygon(e,$,t)},o}async function t2(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i;(e.width||e.height)&&(e.height=Math.max((e?.height??0)-2*s,10),e.width=Math.max((e?.width??0)-2*n-.2*(e.height+2*s),10));let{shapeSvg:h,bbox:o}=await f(t,e,w(e)),d=(e?.height?e?.height:o.height)+2*s,g=.2*d,y=(e?.width?e?.width:o.width)+2*n+g-g,p=-y/2,u=-d/2,{cssStyles:$}=e,b=c.A.svg(h),k=(0,l.Fr)(e,{}),M=[{x:p-g/2,y:u},{x:p+y+g/2,y:u},{x:p+y+g/2,y:u+d},{x:p-g/2,y:u+d}];"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let D=m(M),S=b.path(D,k),A=m([{x:p+y-g/2,y:u+d},{x:p+y+g/2,y:u+d},{x:p+y+g/2,y:u+d-.2*d}]),K=b.path(A,{...k,fillStyle:"solid"}),v=h.insert(()=>K,":first-child");return v.insert(()=>S,":first-child"),v.attr("class","basic label-container outer-path"),$&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",$),r&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",r),x(e,v),e.intersect=function(t){return B.polygon(e,M,t)},h}async function t1(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await f(t,e,w(e)),h=Math.max(n.width+(e.padding??0)*2,e?.width??0),o=Math.max(n.height+(e.padding??0)*2,e?.height??0),d=o/8,g=.2*h,y=.2*o,p=o+d,{cssStyles:u}=e,b=c.A.svg(i),k=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=[{x:-h/2-h/2*.1,y:p/2},...$(-h/2-h/2*.1,p/2,h/2+h/2*.1,p/2,d,.8),{x:h/2+h/2*.1,y:-p/2},{x:-h/2-h/2*.1,y:-p/2}],D=-h/2+h/2*.1,S=-p/2-.4*y,A=[{x:D+h-g,y:(S+o)*1.3},{x:D+h,y:S+o-y},{x:D+h,y:(S+o)*.9},...$(D+h,(S+o)*1.25,D+h-g,(S+o)*1.3,-(.02*o),.5)],K=m(M),v=b.path(K,k),C=m(A),N=b.path(C,{...k,fillStyle:"solid"}),L=i.insert(()=>N,":first-child");return L.insert(()=>v,":first-child"),L.attr("class","basic label-container outer-path"),u&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",u),r&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",r),L.attr("transform",`translate(0,${-d/2})`),s.attr("transform",`translate(${-h/2+(e.padding??0)-(n.x-(n.left??0))},${-o/2+(e.padding??0)-d/2-(n.y-(n.top??0))})`),x(e,L),e.intersect=function(t){return B.polygon(e,M,t)},i}async function t5(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n}=await f(t,e,w(e)),s=Math.max(n.width+(e.padding??0),e?.width||0),h=Math.max(n.height+(e.padding??0),e?.height||0),o=i.insert("rect",":first-child");return o.attr("class","text").attr("style",r).attr("rx",0).attr("ry",0).attr("x",-s/2).attr("y",-h/2).attr("width",s).attr("height",h),x(e,o),e.intersect=function(t){return B.rect(e,t)},i}(0,o.K)(tj,"question"),(0,o.K)(tq,"rect_left_inv_arrow"),(0,o.K)(t_,"rectWithTitle"),
2(0,o.K)(tz,"roundedRect"),(0,o.K)(tZ,"shadedProcess"),(0,o.K)(tO,"slopedRect"),(0,o.K)(tV,"squareRect"),(0,o.K)(tY,"stadium"),(0,o.K)(tU,"state"),(0,o.K)(tJ,"stateEnd"),(0,o.K)(tQ,"stateStart"),(0,o.K)(t0,"subroutine"),(0,o.K)(t2,"taggedRect"),(0,o.K)(t1,"taggedWaveEdgedRectangle"),(0,o.K)(t5,"text");var t8=(0,o.K)((t,e,a,l,r,i)=>`M${t},${e}
3    a${r},${i} 0,0,1 0,${-l}
4    l${a},0
5    a${r},${i} 0,0,1 0,${l}
6    M${a},${-l}
7    a${r},${i} 0,0,0 0,${l}
8    l${-a},0`,"createCylinderPathD"),t4=(0,o.K)((t,e,a,l,r,i)=>`M${t},${e} M${t+a},${e} a${r},${i} 0,0,0 0,${-l} l${-a},0 a${r},${i} 0,0,0 0,${l} l${a},0`,"createOuterCylinderPathD"),t3=(0,o.K)((t,e,a,l,r,i)=>`M${t+a/2},${-l/2} a${r},${i} 0,0,0 0,${l}`,"createInnerCylinderPathD");async function t7(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let s=e.padding??0,h="neo"===e.look?12:s/2,o=e.height??0;e.height&&(e.height=e.height-h,e.height<5&&(e.height=5)),e.width&&(e.width=e.width-h-o/2/(2.5+o/50)*3,e.width<10&&(e.width=10));let{shapeSvg:d,bbox:g,label:y}=await f(t,e,w(e)),p=Math.max(e.height??0,g.height)+h,u=p/2,m=u/(2.5+p/50),$=Math.max(e.width??0,g.width)+m+h,{cssStyles:b}=e;
8if("handDrawn"===e.look){let t=c.A.svg(d),r=t4(0,0,$,p,m,u),i=t3(0,0,$,p,m,u),n=t.path(r,(0,l.Fr)(e,{})),s=t.path(i,(0,l.Fr)(e,{fill:"none"}));a=d.insert(()=>s,":first-child"),(a=d.insert(()=>n,":first-child")).attr("class","basic label-container"),b&&a.attr("style",b)}else{let t=t8(0,0,$,p,m,u);(a=d.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,n.KL)(b)).attr("style",i)).attr("class","basic label-container outer-path"),b&&a.selectAll("path").attr("style",b),i&&a.selectAll("path").attr("style",i)}return a.attr("label-offset-x",m),a.attr("transform",`translate(${-$/2}, ${p/2} )`),y.attr("transform",`translate(${-(g.width/2)-m-(g.x-(g.left??0))}, ${-(g.height/2)-(g.y-(g.top??0))})`),x(e,a),e.intersect=function(t){let a=B.rect(e,t),l=a.y-(e.y??0);if(0!=u&&(Math.abs(l)<(e.height??0)/2||Math.abs(l)==(e.height??0)/2&&Math.abs(a.x-(e.x??0))>(e.width??0)/2-m)){let r=m*m*(1-l*l/(u*u));0!=r&&(r=Math.sqrt(Math.abs(r))),r=m-r,t.x-(e.x??0)>0&&(r=-r),a.x+=r}return a},d}async function t6(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let n=e.padding??0,s=(e.look,n),h="neo"===e.look?2*n:n,{shapeSvg:o,bbox:d}=await f(t,e,w(e)),g=Math.max(d.height+s,e.height??0),y=Math.max(d.width+h,(e.width??0)-g),p=[{x:-3*g/6,y:0},{x:y+3*g/6,y:0},{x:y,y:-g},{x:0,y:-g}],{cssStyles:u}=e;
8if("handDrawn"===e.look){let t=c.A.svg(o),r=(0,l.Fr)(e,{}),i=m(p),n=t.path(i,r);a=o.insert(()=>n,":first-child").attr("transform",`translate(${-y/2}, ${g/2})`),u&&a.attr("style",u)}else a=I(o,y,g,p);return i&&a.attr("style",i),e.width=y,e.height=g,x(e,a),e.intersect=function(t){return B.polygon(e,p,t)},o}async function t9(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i;(e.width||e.height)&&(e.height=(e.height??0)-2*s,e.height<5&&(e.height=5),e.width=(e.width??0)-2*n,e.width<15&&(e.width=15));let{shapeSvg:h,bbox:o}=await f(t,e,w(e)),d=(e?.width?e?.width:o.width)+2*n,g=(e?.height?e?.height:o.height)+2*s,{cssStyles:y}=e,p=c.A.svg(h),u=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(u.roughness=0,u.fillStyle="solid");let $=[{x:-d/2*.8,y:-g/2},{x:d/2*.8,y:-g/2},{x:d/2,y:-g/2*.6},{x:d/2,y:g/2},{x:-d/2,y:g/2},{x:-d/2,y:-g/2*.6}],b=m($),k=p.path(b,u),M=h.insert(()=>k,":first-child");return M.attr("class","basic label-container outer-path"),y&&"handDrawn"!==e.look&&M.selectChildren("path").attr("style",y),r&&"handDrawn"!==e.look&&M.selectChildren("path").attr("style",r),x(e,M),e.intersect=function(t){return B.polygon(e,$,t)},h}async function et(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?2*i:i;(e.width||e.height)&&(e.width=((e?.width??0)-n)/2,e.width<10&&(e.width=10),e.height=e?.height??0,e.height<10&&(e.height=10));let{shapeSvg:o,bbox:d,label:g}=await f(t,e,w(e)),y=(0,s._3)((0,s.D7)().flowchart?.htmlLabels),p=(e?.width?e?.width:d.width)+n,u=e?.height?e?.height:p+d.height,$=[{x:0,y:0},{x:u,y:0},{x:u/2,y:-u}],{cssStyles:b}=e,k=c.A.svg(o),M=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let D=m($),S=k.path(D,M),A=o.insert(()=>S,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`).attr("class","outer-path");return b&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",b),r&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",r),e.width=p,e.height=u,x(e,A),g.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))}, ${u/2-(d.height+(e.padding??0)/(y?2:1)-(d.y-(d.top??0)))})`),e.intersect=function(t){return h.R.info("Triangle intersect",e,$,t),B.polygon(e,$,t)},o}async function ee(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i,h=!0;(e.width||e.height)&&(h=!1,e.width=(e?.width??0)-2*n,e.width<10&&(e.width=10),e.height=(e?.height??0)-2*s,e.height<10&&(e.height=10));let{shapeSvg:o,bbox:d,label:g}=await f(t,e,w(e)),y=(e?.width?e?.width:d.width)+(n??0)*2,p=(e?.height?e?.height:d.height)+(s??0)*2,u="neo"===e.look?p/4:p/8,b=p+(h?u:-u),{cssStyles:k}=e,M=14-y,D=M>0?M/2:0,S=c.A.svg(o),A=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");let K=[{x:-y/2-D,y:b/2},...$(-y/2-D,b/2,y/2+D,b/2,u,.8),{x:y/2+D,y:-b/2},{x:-y/2-D,y:-b/2}],v=m(K),C=S.path(v,A),N=o.insert(()=>C,":first-child");return N.attr("class","basic label-container outer-path"),k&&"handDrawn"!==e.look&&N.selectAll("path").attr("style",k),r&&"handDrawn"!==e.look&&N.selectAll("path").attr("style",r),N.attr("transform",`translate(0,${-u/2})`),g.attr("transform",`translate(${-y/2+(e.padding??0)-(d.x-(d.left??0))},${-p/2+(e.padding??0)-u-(d.y-(d.top??0))})`),x(e,N),e.intersect=function(t){return B.polygon(e,K,t)},o}async function ea(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?20:i;if(e.width||e.height){e.width=e?.width??0,e.width<20&&(e.width=20),e.height=e?.height??0,e.height<10&&(e.height=10);let t=Math.min(.2*e.height,e.height/4);e.height=Math.ceil(e.height-s-20/9*t),e.width=e.width-2*n}let{shapeSvg:h,bbox:o}=await f(t,e,w(e)),d=(e?.width?e?.width:o.width)+2*n,g=(e?.height?e?.height:o.height)+s,y=g/8,p=g+2*y,{cssStyles:u}=e,b=c.A.svg(h),k=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=[{x:-d/2,y:p/2},...$(-d/2,p/2,d/2,p/2,y,1),{x:d/2,y:-p/2},...$(d/2,-p/2,-d/2,-p/2,y,-1)],D=m(M),S=b.path(D,k),A=h.insert(()=>S,":first-child");return A.attr("class","basic label-container"),u&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",u),r&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",r),x(e,A),e.intersect=function(t){return B.polygon(e,M,t)},h}async function el(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i="neo"===e.look?16:e.padding??0,n="neo"===e.look?12:e.padding??0;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*i-10,10),e.height=Math.max((e?.height??0)-2*n-10,10));let{shapeSvg:s,bbox:h,label:o}=await f(t,e,w(e)),d=(e?.width?e?.width:h.width)+2*i+10,g=(e?.height?e?.height:h.height)+2*n+10,y=d-10,p=g-10,u=-y/2,m=-p/2,{cssStyles:$}=e,b=c.A.svg(s),k=(0,l.Fr)(e,{}),M=[{x:u-10,y:m-10},{x:u-10,y:m+p},{x:u+y,y:m+p},{x:u+y,y:m-10}],D=`M${u-10},${m-10} L${u+y},${m-10} L${u+y},${m+p} L${u-10},${m+p} L${u-10},${m-10}
9                M${u-10},${m} L${u+y},${m}
10                M${u},${m-10} L${u},${m+p}`;"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let S=b.path(D,k),A=s.insert(()=>S,":first-child");return A.attr("transform","translate(5, 5)"),A.attr("class","basic label-container outer-path"),$&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",$),r&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",r),o.attr("transform",`translate(${-(h.width/2)+5-(h.x-(h.left??0))}, ${-(h.height/2)+5-(h.y-(h.top??0))})`),x(e,A),e.intersect=function(t){return B.polygon(e,M,t)},s}(0,o.K)(t7,"tiltedCylinder"),(0,o.K)(t6,"trapezoid"),(0,o.K)(t9,"trapezoidalPentagon"),(0,o.K)(et,"triangle"),(0,o.K)(ee,"waveEdgedRectangle"),(0,o.K)(ea,"waveRectangle"),(0,o.K)(el,"windowPane");var er=new Set(["redux-color","redux-dark-color"]),ei=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function en(t,e){e.alias&&(e.label=e.alias);let{theme:a,themeVariables:r}=(0,s.zj)(),{rowEven:i,rowOdd:h,nodeBorder:o,borderColorArray:g}=r;
10if("handDrawn"===e.look){let{themeVariables:a}=(0,s.zj)(),{background:l}=a,r={...e,id:e.id+"-background",domId:(e.domId||e.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${l}`]};await en(t,r)}let y=(0,s.zj)();e.useHtmlLabels=y.htmlLabels;let p=y.er?.diagramPadding??10,f=y.er?.entityPadding??6,{cssStyles:u}=e,{labelStyles:m,nodeStyles:$}=(0,l.GX)(e);if(0===e.attributes.length&&e.label){let l={rx:0,ry:0,labelPaddingX:p,labelPaddingY:1.5*p,classes:""};(0,n.Un)(e.label,y)+2*l.labelPaddingX<y.er.minEntityWidth&&(e.width=y.er.minEntityWidth);let r=await tg(t,e,l);if(null!=a&&er.has(a)){let t=e.colorIndex??0;r.attr("data-color-id",`color-${t%g.length}`)}if(!(0,s._3)(y.htmlLabels)){let t=r.select("text"),e=t.node()?.getBBox();t.attr("transform",`translate(${-e.width/2}, 0)`)}return r}y.htmlLabels||(p*=1.25,f*=1.25);let b=w(e);b||(b="node default");let k=t.insert("g").attr("class",b).attr("id",e.domId||e.id),M=await es(k,e.label??"",y,0,0,["name"],m);M.height+=f;let D=0,S=[],A=[],K=0,v=0,C=0,N=0,L=!0,R=!0;for(let t of e.attributes){let e=await es(k,t.type,y,0,D,["attribute-type"],m);K=Math.max(K,e.width+p);let a=await es(k,t.name,y,0,D,["attribute-name"],m);v=Math.max(v,a.width+p);let l=await es(k,t.keys.join(),y,0,D,["attribute-keys"],m);C=Math.max(C,l.width+p);let r=await es(k,t.comment,y,0,D,["attribute-comment"],m);N=Math.max(N,r.width+p);let i=Math.max(e.height,a.height,l.height,r.height)+f;A.push({yOffset:D,rowHeight:i}),D+=i}let F=4;C<=p&&(L=!1,C=0,F--),N<=p&&(R=!1,N=0,F--);let P=k.node().getBBox();if(M.width+2*p-(K+v+C+N)>0){let t=M.width+2*p-(K+v+C+N);K+=t/F,v+=t/F,C>0&&(C+=t/F),N>0&&(N+=t/F)}let G=K+v+C+N,X=c.A.svg(k),I=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(I.roughness=0,I.fillStyle="solid");let T=0;A.length>0&&(T=A.reduce((t,e)=>t+(e?.rowHeight??0),0));let W=Math.max(P.width+2*p,e?.width||0,G),E=Math.max((T??0)+M.height,e?.height||0),H=-W/2,j=-E/2;if(k.selectAll("g:not(:first-child)").each((t,e,a)=>{let l=(0,d.Ltv)(a[e]),r=l.attr("transform"),i=0,n=0;if(r){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(r);t&&(i=parseFloat(t[1]),n=parseFloat(t[2]),l.attr("class").includes("attribute-name")?i+=K:l.attr("class").includes("attribute-keys")?i+=K+v:l.attr("class").includes("attribute-comment")&&(i+=K+v+C))}l.attr("transform",`translate(${H+p/2+i}, ${n+j+M.height+f/2})`)}),k.select(".name").attr("transform","translate("+-M.width/2+", "+(j+f/2)+")"),null!=a&&er.has(a)){let t=e.colorIndex??0;k.attr("data-color-id",`color-${t%g.length}`)}let q=X.rectangle(H,j,W,E,I),_=k.insert(()=>q,":first-child").attr("class","outer-path").attr("style",u.join(""));for(let[t,e]of(S.push(0),A.entries())){let a=(t+1)%2==0&&0!==e.yOffset,l=X.rectangle(H,M.height+j+e?.yOffset,W,e?.rowHeight,{...I,fill:a?i:h,stroke:o});k.insert(()=>l,"g.label").attr("style",u.join("")).attr("class",`row-rect-${a?"even":"odd"}`)}let z=eh(H,M.height+j,W+H,M.height+j,1e-4),Z=X.polygon(z.map(t=>[t.x,t.y]),I);if(k.insert(()=>Z).attr("class","divider"),z=eh(K+H,M.height+j,K+H,E+j,1e-4),Z=X.polygon(z.map(t=>[t.x,t.y]),I),k.insert(()=>Z).attr("class","divider"),L){let t=K+v+H;z=eh(t,M.height+j,t,E+j,1e-4),Z=X.polygon(z.map(t=>[t.x,t.y]),I),k.insert(()=>Z).attr("class","divider")}if(R){let t=K+v+C+H;z=eh(t,M.height+j,t,E+j,1e-4),Z=X.polygon(z.map(t=>[t.x,t.y]),I),k.insert(()=>Z).attr("class","divider")}for(let t of S){let e=M.height+j+t;z=eh(H,e,W+H,e,1e-4),Z=X.polygon(z.map(t=>[t.x,t.y]),I),k.insert(()=>Z).attr("class","divider")}if(x(e,_),$&&"handDrawn"!==e.look)if(null!=a&&ei.has(a))k.selectAll("path").attr("style",$);else{let t=$.split(";"),e=t?.filter(t=>t.includes("stroke"))?.map(t=>`${t}`).join("; ");k.selectAll("path").attr("style",e??""),k.selectAll(".row-rect-even path").attr("style",$)}return e.intersect=function(t){return B.rect(e,t)},k}async function es(t,e,a,l=0,i=0,h=[],o=""){let c=t.insert("g").attr("class",`label ${h.join(" ")}`).attr("transform",`translate(${l}, ${i})`).attr("style",o);e!==(0,s.QO)(e)&&(e=(e=(0,s.QO)(e)).replaceAll("<","&lt;").replaceAll(">","&gt;"));let g=c.node().appendChild(await (0,r.GZ)(c,e,{width:(0,n.Un)(e,a)+100,style:o,useHtmlLabels:a.htmlLabels},a));if(e.includes("&lt;")||e.includes("&gt;")){let t=g.children[0];for(t.textContent=t.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");t.childNodes[0];)(t=t.childNodes[0]).textContent=t.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let y=g.getBBox();
10if((0,s._3)(a.htmlLabels)){let t=g.children[0];t.style.textAlign="start";let e=(0,d.Ltv)(g);y=t.getBoundingClientRect(),e.attr("width",y.width),e.attr("height",y.height)}return y}function eh(t,e,a,l,r){return t===a?[{x:t-r/2,y:e},{x:t+r/2,y:e},{x:a+r/2,y:l},{x:a-r/2,y:l}]:[{x:t,y:e-r/2},{x:t,y:e+r/2},{x:a,y:l+r/2},{x:a,y:l-r/2}]}async function eo(t,e,a,l,r=a.class.padding??12){let i=3*!l,n=t.insert("g").attr("class",w(e)).attr("id",e.domId||e.id),s=null,h=null,o=null,d=null,c=0,g=0,y=0;if(s=n.insert("g").attr("class","annotation-group text"),e.annotations.length>0){let t=e.annotations[0];await ed(s,{text:`\xab${t}\xbb`},0),c=s.node().getBBox().height}h=n.insert("g").attr("class","label-group text"),await ed(h,e,0,["font-weight: bolder"]);let p=h.node().getBBox();g=p.height,o=n.insert("g").attr("class","members-group text");let f=0;for(let t of e.members){let e=await ed(o,t,f,[t.parseClassifier()]);f+=e+i}(y=o.node().getBBox().height)<=0&&(y=r/2),d=n.insert("g").attr("class","methods-group text");let u=0;for(let t of e.methods){let e=await ed(d,t,u,[t.parseClassifier()]);u+=e+i}let x=n.node().getBBox();if(null!==s){let t=s.node().getBBox();s.attr("transform",`translate(${-t.width/2})`)}return h.attr("transform",`translate(${-p.width/2}, ${c})`),x=n.node().getBBox(),o.attr("transform",`translate(0, ${c+g+2*r})`),x=n.node().getBBox(),d.attr("transform",`translate(0, ${c+g+(y?y+4*r:2*r)})`),x=n.node().getBBox(),{shapeSvg:n,bbox:x}}async function ed(t,e,a,l=[]){let i,h=t.insert("g").attr("class","label").attr("style",l.join("; ")),o=(0,s.zj)(),c="useHtmlLabels"in e?e.useHtmlLabels:(0,s._3)(o.htmlLabels)??!0,y="";y="text"in e?e.text:e.label,!c&&y.startsWith("\\")&&(y=y.substring(1)),(0,s.Wi)(y)&&(c=!0);let p=await (0,r.GZ)(h,(0,s.oB)((0,n.Sm)(y)),{width:(0,n.Un)(y,o)+50,classes:"markdown-node-label",useHtmlLabels:c},o),f=1;if(c){let t=p.children[0],e=(0,d.Ltv)(p);f=t.innerHTML.split("<br>").length,t.innerHTML.includes("</math>")&&(f+=t.innerHTML.split("<mrow>").length-1),await g(t),i=t.getBoundingClientRect(),e.attr("width",i.width),e.attr("height",i.height)}else{l.includes("font-weight: bolder")&&(0,d.Ltv)(p).selectAll("tspan").attr("font-weight",""),f=p.children.length;let t=p.children[0];(""===p.textContent||p.textContent.includes("&gt"))&&(t.textContent=y[0]+y.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim()," "===y[1]&&(t.textContent=t.textContent[0]+" "+t.textContent.substring(1))),"undefined"===t.textContent&&(t.textContent=""),i=p.getBBox()}return h.attr("transform","translate(0,"+(-i.height/(2*f)+a)+")"),i.height}async function ec(t,e){let a=(0,s.D7)(),{themeVariables:r}=a,{useGradient:i}=r,n=a.class.padding??12,h=e.useHtmlLabels??(0,s._3)(a.htmlLabels)??!0;e.annotations=e.annotations??[],e.members=e.members??[],e.methods=e.methods??[];let{shapeSvg:o,bbox:g}=await eo(t,e,a,h,n),{labelStyles:y,nodeStyles:p}=(0,l.GX)(e);e.labelStyle=y,e.cssStyles=e.styles||"";let f=e.styles?.join(";")||p||"";e.cssStyles||(e.cssStyles=f.replaceAll("!important","").split(";"));let u=0===e.members.length&&0===e.methods.length&&!a.class?.hideEmptyMembersBox,w=c.A.svg(o),m=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");let $=Math.max(e.width??0,g.width),b=Math.max(e.height??0,g.height),k=(e.height??0)>g.height;0===e.members.length&&0===e.methods.length?b+=n:e.members.length>0&&0===e.methods.length&&(b+=2*n);let M=-$/2,D=-b/2,S=u?2*n:0===e.members.length&&0===e.methods.length?-n:0;k&&(S=2*n);let A=w.rectangle(M-n,D-n-(u?n:0===e.members.length&&0===e.methods.length?-n/2:0),$+2*n,b+2*n+S,m),K=o.insert(()=>A,":first-child");K.attr("class","basic label-container outer-path");let v=K.node().getBBox(),C=o.select(".annotation-group").node().getBBox().height-(u?n/2:0)||0,N=o.select(".label-group").node().getBBox().height-(u?n/2:0)||0,L=o.select(".members-group").node().getBBox().height-(u?n/2:0)||0,R=(C+N+D+n-(D-n-(u?n:0===e.members.length&&0===e.methods.length?-n/2:0)))/2;if(o.selectAll(".text").each((t,l,r)=>{let i=(0,d.Ltv)(r[l]),s=i.attr("transform"),c=0;if(s){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(s);t&&(c=parseFloat(t[2]))}let g=c+D+n-(u?n:0===e.members.length&&0===e.methods.length?-n/2:0);if(i.attr("class").includes("methods-group")){let t=Math.max(L,n/2);g=k?Math.max(R,C+N+t+D+2*n+n)+2*n:C+N+t+D+4*n+n}0===e.members.length&&0===e.methods.length&&a.class?.hideEmptyMembersBox&&(g=e.annotations.length>0?c-n:c),h||(g-=4);let y=M;(i.attr("class").includes("label-group")||i.attr("class").includes("annotation-group"))&&(y=-i.node()?.getBBox().width/2||0,o.selectAll("text").each(function(t,e,a){"middle"===window.getComputedStyle(a[e]).textAnchor&&(y=0)})),i.attr("transform",`translate(${y}, ${g})`)}),e.members.length>0||e.methods.length>0||u){let t=C+N+D+n,a=w.line(v.x,t,v.x+v.width,t+.001,m);o.insert(()=>a).attr("class",`divider${"neo"===e.look&&!i?" neo-line":""}`).attr("style",f)}if(u||e.members.length>0||e.methods.length>0){let t=C+N+L+D+2*n+n,a=w.line(v.x,k?Math.max(R,t):t,v.x+v.width,
10(k?Math.max(R,t):t)+.001,m);o.insert(()=>a).attr("class",`divider${"neo"===e.look&&!i?" neo-line":""}`).attr("style",f)}if("handDrawn"!==e.look&&o.selectAll("path").attr("style",f),K.select(":nth-child(2)").attr("style",f),o.selectAll(".divider").select("path").attr("style",f),e.labelStyle?o.selectAll("span").attr("style",e.labelStyle):o.selectAll("span").attr("style",f),!h){let t=RegExp(/color\s*:\s*([^;]*)/),e=t.exec(f);if(e){let t=e[0].replace("color","fill");o.selectAll("tspan").attr("style",t)}else if(y){let e=t.exec(y);if(e){let t=e[0].replace("color","fill");o.selectAll("tspan").attr("style",t)}}}return x(e,K),e.intersect=function(t){return B.rect(e,t)},o}async function eg(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let n="verifyMethod"in e,h=w(e),o=(0,s.D7)(),{themeVariables:g}=o,{borderColorArray:y,requirementEdgeLabelBackground:p}=g,f="elk"===o.layout?"start":"center",u=t.insert("g").attr("class",h).attr("id",e.domId??e.id),m=a=n?await ey(u,`&lt;&lt;${e.type}&gt;&gt;`,0,e.labelStyle):await ey(u,"&lt;&lt;Element&gt;&gt;",0,e.labelStyle),$=await ey(u,e.name,m,e.labelStyle+"; font-weight: bold;");if(m+=$+20,n){let t=await ey(u,`${e.requirementId?`ID: ${e.requirementId}`:""}`,m,e.labelStyle,f);m+=t;let a=await ey(u,`${e.text?`Text: ${e.text}`:""}`,m,e.labelStyle,f);m+=a;let l=await ey(u,`${e.risk?`Risk: ${e.risk}`:""}`,m,e.labelStyle,f);m+=l,await ey(u,`${e.verifyMethod?`Verification: ${e.verifyMethod}`:""}`,m,e.labelStyle,f)}else{let t=await ey(u,`${e.type?`Type: ${e.type}`:""}`,m,e.labelStyle,f);m+=t,await ey(u,`${e.docRef?`Doc Ref: ${e.docRef}`:""}`,m,e.labelStyle,f)}let b=(u.node()?.getBBox().width??200)+20,k=(u.node()?.getBBox().height??200)+20,M=-b/2,D=-k/2,S=c.A.svg(u),A=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");let K=S.rectangle(M,D,b,k,A),v=u.insert(()=>K,":first-child");if(v.attr("class","basic label-container outer-path").attr("style",i),y?.length){let t=e.colorIndex??0;u.attr("data-color-id",`color-${t%y.length}`)}if(u.selectAll(".label").each((t,e,a)=>{let l=(0,d.Ltv)(a[e]),r=l.attr("transform"),i=0,n=0;if(r){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(r);t&&(i=parseFloat(t[1]),n=parseFloat(t[2]))}let s=n-k/2,h=M+10;(0===e||1===e)&&(h=i),l.attr("transform",`translate(${h}, ${s+20})`)}),m>a+$+20){let t,l=D+a+$+20;if("neo"===e.look){let e=[[M,l],[M+b,l],[M+b,l+.001],[M,l+.001]];t=S.polygon(e,A)}else t=S.line(M,l,M+b,l,A);u.insert(()=>t).attr("class","divider")}return x(e,v),e.intersect=function(t){return B.rect(e,t)},i&&"handDrawn"!==e.look&&(p||y?.length)&&u.selectAll("path").attr("style",i),u}async function ey(t,e,a,l="",i="center"){let h;if(""===e)return 0;let o=t.insert("g").attr("class","label").attr("style",l),c=(0,s.D7)(),g=c.htmlLabels??!0,y=await (0,r.GZ)(o,(0,s.oB)((0,n.Sm)(e)),{width:(0,n.Un)(e,c)+50,classes:"markdown-node-label",useHtmlLabels:g,style:l},c);if(g){let t=y.children[0],e=(0,d.Ltv)(y);"start"===i&&(0,d.Ltv)(t).style("text-align","left"),h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}else{let t=y.children[0];for(let e of t.children)l&&e.setAttribute("style",l);if("start"===i)for(let e of(t.setAttribute("text-anchor","start"),t.children))e.setAttribute("text-anchor","start");h=y.getBBox(),h.height+=6}return o.attr("transform",`translate(${-h.width/2},${-h.height/2+a})`),h.height}(0,o.K)(en,"erBox"),(0,o.K)(es,"addText"),(0,o.K)(eh,"lineToPolygon"),(0,o.K)(eo,"textHelper"),(0,o.K)(ed,"addText"),(0,o.K)(ec,"classBox"),(0,o.K)(eg,"requirementBox"),(0,o.K)(ey,"addText");var ep=(0,o.K)(t=>{switch(t){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function ef(t,e,{config:a}){let r,i,n,s,{labelStyles:h,nodeStyles:o}=(0,l.GX)(e);e.labelStyle=h||"";let d=e.width;e.width=(e.width??200)-10;let{shapeSvg:g,bbox:y,label:p}=await f(t,e,w(e)),m=e.padding||10,$="";"ticket"in e&&e.ticket&&a?.kanban?.ticketBaseUrl&&($=a?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket),r=g.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",$).attr("target","_blank"));let b={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1};r?{label:i,bbox:n}=await u(r,"ticket"in e&&e.ticket||"",b):{label:i,bbox:n}=await u(g,"ticket"in e&&e.ticket||"",b);let{label:k,bbox:M}=await u(g,"assigned"in e&&e.assigned||"",b);e.width=d;let S=e?.width||0,A=Math.max(n.height,M.height)/2,K=Math.max(y.height+20,e?.height||0)+A,v=-S/2,C=-K/2;p.attr("transform","translate("+(m-S/2)+", "+(-A-y.height/2)+")"),i.attr("transform","translate("+(m-S/2)+", "+(-A+y.height/2)+")"),k.attr("transform","translate("+(m+S/2-M.width-20)+", "+(-A+y.height/2)+")");let{rx:N,ry:L}=e,{cssStyles:R}=e;
10if("handDrawn"===e.look){let t=c.A.svg(g),a=(0,l.Fr)(e,{}),r=N||L?t.path(D(v,C,S,K,N||0),a):t.rectangle(v,C,S,K,a);(s=g.insert(()=>r,":first-child")).attr("class","basic label-container").attr("style",R||null)}else{(s=g.insert("rect",":first-child")).attr("class","basic label-container __APA__").attr("style",o).attr("rx",N??5).attr("ry",L??5).attr("x",v).attr("y",C).attr("width",S).attr("height",K);let t="priority"in e&&e.priority;if(t){let e=g.append("line"),a=v+2,l=C+Math.floor((N??0)/2),r=C+K-Math.floor((N??0)/2);e.attr("x1",a).attr("y1",l).attr("x2",a).attr("y2",r).attr("stroke-width","4").attr("stroke",ep(t))}}return x(e,s),e.height=K,e.intersect=function(t){return B.rect(e,t)},g}async function eu(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:s,bbox:o,halfPadding:d,label:g}=await f(t,e,w(e)),y=o.width+10*d,p=o.height+8*d,u=.15*y,{cssStyles:m}=e,$=o.width+20,b=o.height+20,k=Math.max(y,$),M=Math.max(p,b);g.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`);let D=`M0 0 
11    a${u},${u} 1 0,0 ${.25*k},${-1*M*.1}
12    a${u},${u} 1 0,0 ${.25*k},0
13    a${u},${u} 1 0,0 ${.25*k},0
14    a${u},${u} 1 0,0 ${.25*k},${.1*M}
15
16    a${u},${u} 1 0,0 ${.15*k},${.33*M}
17    a${.8*u},${.8*u} 1 0,0 0,${.34*M}
18    a${u},${u} 1 0,0 ${-1*k*.15},${.33*M}
19
20    a${u},${u} 1 0,0 ${-1*k*.25},${.15*M}
21    a${u},${u} 1 0,0 ${-1*k*.25},0
22    a${u},${u} 1 0,0 ${-1*k*.25},0
23    a${u},${u} 1 0,0 ${-1*k*.25},${-1*M*.15}
24
25    a${u},${u} 1 0,0 ${-1*k*.1},${-1*M*.33}
26    a${.8*u},${.8*u} 1 0,0 0,${-1*M*.34}
27    a${u},${u} 1 0,0 ${.1*k},${-1*M*.33}
28  H0 V0 Z`;if("handDrawn"===e.look){let t=c.A.svg(s),r=(0,l.Fr)(e,{}),i=t.path(D,r);(a=s.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",(0,n.KL)(m))}else a=s.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",D);return a.attr("transform",`translate(${-k/2}, ${-M/2})`),x(e,a),e.calcIntersect=function(t,e){return B.rect(t,e)},e.intersect=function(t){return h.R.info("Bang intersect",e,t),B.rect(e,t)},s}async function ex(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:s,bbox:o,halfPadding:d,label:g}=await f(t,e,w(e)),y=o.width+2*d,p=o.height+2*d,u=.15*y,m=.25*y,$=.35*y,b=.2*y,{cssStyles:k}=e,M=`M0 0 
29    a${u},${u} 0 0,1 ${.25*y},${-1*y*.1}
30    a${$},${$} 1 0,1 ${.4*y},${-1*y*.1}
31    a${m},${m} 1 0,1 ${.35*y},${.2*y}
32
33    a${u},${u} 1 0,1 ${.15*y},${.35*p}
34    a${b},${b} 1 0,1 ${-1*y*.15},${.65*p}
35
36    a${m},${u} 1 0,1 ${-1*y*.25},${.15*y}
37    a${$},${$} 1 0,1 ${-1*y*.5},0
38    a${u},${u} 1 0,1 ${-1*y*.25},${-1*y*.15}
39
40    a${u},${u} 1 0,1 ${-1*y*.1},${-1*p*.35}
41    a${b},${b} 1 0,1 ${.1*y},${-1*p*.65}
42  H0 V0 Z`;if("handDrawn"===e.look){let t=c.A.svg(s),r=(0,l.Fr)(e,{}),i=t.path(M,r);(a=s.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",(0,n.KL)(k))}else a=s.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",M);return g.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),a.attr("transform",`translate(${-y/2}, ${-p/2})`),x(e,a),e.calcIntersect=function(t,e){return B.rect(t,e)},e.intersect=function(t){return h.R.info("Cloud intersect",e,t),B.rect(e,t)},s}async function ew(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,halfPadding:s,label:h}=await f(t,e,w(e)),o=n.width+8*s,d=n.height+2*s,c="neo"===e.look?`
43    M${-o/2} ${d/2-5}
44    v${-d+10}
45    q0,-5 5,-5
46    h${o-10}
47    q5,0 5,5
48    v${d-5}
49    H${-o/2}
50    Z
51  `:`
52    M${-o/2} ${d/2-5}
53    v${-d+10}
54    q0,-5 5,-5
55    h${o-10}
56    q5,0 5,5
57    v${d-10}
58    q0,5 -5,5
59    h${-(o-10)}
60    q-5,0 -5,-5
61    Z
62  `;if(!e.domId)throw Error(`defaultMindmapNode: node "${e.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let g=i.append("path").attr("id",e.domId).attr("class","node-bkg node-"+e.type).attr("style",r).attr("d",c);return i.append("line").attr("class","node-line-").attr("x1",-o/2).attr("y1",d/2).attr("x2",o/2).attr("y2",d/2),h.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`),i.append(()=>h.node()),x(e,g),e.calcIntersect=function(t,e){return B.rect(t,e)},e.intersect=function(t){return B.rect(e,t)},i}async function em(t,e){let a={padding:e.padding??0};return V(t,e,a)}(0,o.K)(ef,"kanbanItem"),(0,o.K)(eu,"bang"),(0,o.K)(ex,"cloud"),(0,o.K)(ew,"defaultMindmapNode"),(0,o.K)(em,"mindmapCircle");var e$=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:tV},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:tz},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:tY},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","
62subproc","framed-rectangle","subroutine"],handler:t0},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:tc},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:ty},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:tw},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:G},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:U},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:z},{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:ts},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:V},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:eu},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:ex}
62,{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:tj},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:tk},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:tL},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:tB},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:t6},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:tC},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:tf},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:t5}
62,{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:Z},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:tZ},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:tQ},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:tJ},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:tm},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:tM},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:te},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:tl},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:ti},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:tR}
62,{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:ee},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:t$},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:t7},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:tX},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:tn},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:tp},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:et},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:el},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:tu},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:t9},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:tx},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:tO},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:tW},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:tT},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:P},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:Q},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:t1},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:t2},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:ea},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:tq},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:tI}],eb=(0,o.K)(()=>Object.fromEntries([...Object.entries({state:tU,choice:O,note:tE,composite:Y,rectWithTitle:t_,labelRect:tN,block_arrow:_,collapsedGroup:X,iconSquare:tK,iconCircle:tS,icon:tD,iconRounded:tA,imageSquare:tv,anchor:L,kanbanItem:ef,mindmapCircle:em,defaultMindmapNode:ew,classBox:ec,erBox:en,requirementBox:eg}),...e$.flatMap(t=>[t.shortName,..."aliases"in t?t.aliases:[],..."internalAliases"in t?t.internalAliases:[]].map(e=>[e,t.handler]))]),"generateShapeMap")();function ek(t){return t in eb}(0,o.K)(ek,"isValidShape")}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.