63 lines
97 KiB
JavaScript
Raw Normal View History

2026-05-31 13:21:13 +02:00
import{a as D}from"./chunk-5IMINLNL.mjs";import{a as Ut,b as yt,d as v,e as P}from"./chunk-T2UQINTJ.mjs";import{a as zt,b as It}from"./chunk-UY5QBCOK.mjs";import{c as dt,f as rt}from"./chunk-INKRHTLW.mjs";import{k as wt,r as Nt,t as q}from"./chunk-QA3QBVWF.mjs";import{A as Vt,C as Lt,D as qt,_ as Z,ba as Rt,n as lt,t as ft,x as tt}from"./chunk-67TQ5CYL.mjs";import{b as Y,h as J}from"./chunk-7W6UQGC5.mjs";import{a as x}from"./chunk-AQ6EADP3.mjs";var G=x(async(d,t,c)=>{let h,a=t.useHtmlLabels||lt(Z()?.htmlLabels);c?h=c:h="node default";let o=d.insert("g").attr("class",h).attr("id",t.domId||t.id),f=o.insert("g").attr("class","label").attr("style",q(t.labelStyle)),i;t.label===void 0?i="":i=typeof t.label=="string"?t.label:t.label[0];let n=!!t.icon||!!t.img,r=t.labelType==="markdown",e=await rt(f,Vt(Nt(i),Z()),{useHtmlLabels:a,width:t.width||Z().flowchart?.wrappingWidth,classes:r?"markdown-node-label":"",style:t.labelStyle,addSvgBackground:n,markdown:r},Z()),s=e.getBBox(),p=(t?.padding??0)/2;if(a){let l=e.children[0],m=J(e);await zt(l,i),s=l.getBoundingClientRect(),m.attr("width",s.width),m.attr("height",s.height)}return a?f.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"):f.attr("transform","translate(0, "+-s.height/2+")"),t.centerLabel&&f.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),f.insert("rect",":first-child"),{shapeSvg:o,bbox:s,halfPadding:p,label:f}},"labelHelper"),Gt=x(async(d,t,c)=>{let h=c.useHtmlLabels??tt(Z()),a=d.insert("g").attr("class","label").attr("style",c.labelStyle||""),o=await rt(a,Vt(Nt(t),Z()),{useHtmlLabels:h,width:c.width||Z()?.flowchart?.wrappingWidth,style:c.labelStyle,addSvgBackground:!!c.icon||!!c.img}),f=o.getBBox(),i=c.padding/2;if(tt(Z())){let n=o.children[0],r=J(o);f=n.getBoundingClientRect(),r.attr("width",f.width),r.attr("height",f.height)}return h?a.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"):a.attr("transform","translate(0, "+-f.height/2+")"),c.centerLabel&&a.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),a.insert("rect",":first-child"),{shapeSvg:d,bbox:f,halfPadding:i,label:a}},"insertLabel"),k=x((d,t)=>{let c=t.node().getBBox();d.width=c.width,d.height=c.height},"updateNodeBounds");var T=x((d,t)=>(d.look==="handDrawn"?"rough-node":"node")+" "+d.cssClasses+" "+(t||""),"getNodeClasses");function I(d){let t=d.map((c,h)=>`${h===0?"M":"L"}${c.x},${c.y}`);return t.push("Z"),t.join(" ")}x(I,"createPathFromPoints");function at(d,t,c,h,a,o){let f=[],n=c-d,r=h-t,e=n/o,s=2*Math.PI/e,p=t+r/2;for(let l=0;l<=50;l++){let m=l/50,g=d+m*n,u=p+a*Math.sin(s*(g-d));f.push({x:g,y:u})}return f}x(at,"generateFullSineWavePoints");function $t(d,t,c,h,a,o){let f=[],i=a*Math.PI/180,e=(o*Math.PI/180-i)/(h-1);for(let s=0;s<h;s++){let p=i+s*e,l=d+c*Math.cos(p),m=t+c*Math.sin(p);f.push({x:-l,y:-m})}return f}x($t,"generateCirclePoints");function Wt(d){let t=Array.from(d.childNodes).filter(n=>n.tagName==="path"),c=document.createElementNS("http://www.w3.org/2000/svg","path"),h=t.map(n=>n.getAttribute("d")).filter(n=>n!==null).join(" ");c.setAttribute("d",h);let a=t.find(n=>n.getAttribute("fill")!=="none"),o=t.find(n=>n.getAttribute("stroke")!=="none"),f=x((n,r)=>n?.getAttribute(r)??void 0,"getAttr");if(a){let n={fill:f(a,"fill"),"fill-opacity":f(a,"fill-opacity")??"1"};Object.entries(n).forEach(([r,e])=>{e&&c.setAttribute(r,e)})}if(o){let n={stroke:f(o,"stroke"),"stroke-width":f(o,"stroke-width")??"1","stroke-opacity":f(o,"stroke-opacity")??"1"};Object.entries(n).forEach(([r,e])=>{e&&c.setAttribute(r,e)})}let i=document.createElementNS("http://www.w3.org/2000/svg","g");return i.appendChild(c),i}x(Wt,"mergePaths");var Ps=x((d,t)=>{var c=d.x,h=d.y,a=t.x-c,o=t.y-h,f=d.width/2,i=d.height/2,n,r;return Math.abs(o)*f>Math.abs(a)*i?(o<0&&(i=-i),n=o===0?0:i*a/o,r=i):(a<0&&(f=-f),n=f,r=a===0?0:f*o/a),{x:c+n,y:h+r}},"intersectRect"),ut=Ps;var vs=x(async(d,t,c,h=!1,a=!1)=>{let o=t||"";typeof o=="object"&&(o=o[0]);let f=Z(),i=tt(f);return await rt(d,o,{style:c,isTitle:h,useHtmlLabels:i,markdown:!1,isNode:a,width:Number.POSITIVE_INFINITY},f)},"createLabel"),vt=vs;var
M ${a.x},${a.y} L ${f.x},${f.y}`}x(Vs,"createLine");function le(d,t){let{labelStyles:c,nodeStyles:h}=v(t);t.labelStyle=c,t.label="";let a=d.insert("g").attr("class",T(t)).attr("id",t.domId??t.id),o=Math.max(30,t?.width??0),{cssStyles:f}=t,i=D.svg(a),n=P(t,{});t.look!=="handDrawn"&&(n.roughness=0,n.fillStyle="solid");let r=i.circle(0,0,o*2,n),e=Vs(o),s=i.path(e,n),p=a.insert(()=>r,":first-child");return p.insert(()=>s),p.attr("class","outer-path"),f&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",f),h&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",h),k(t,p),t.intersect=function(l){return Y.info("crossedCircle intersect",t,{radius:o,point:l}),$.circle(t,o,l)},a}x(le,"crossedCircle");function xt(d,t,c,h=100,a=0,o=180){let f=[],i=a*Math.PI/180,e=(o*Math.PI/180-i)/(h-1);for(let s=0;s<h;s++){let p=i+s*e,l=d+c*Math.cos(p),m=t+c*Math.sin(p);f.push({x:-l,y:-m})}return f}x(xt,"generateCirclePoints");async function ce(d,t){let{labelStyles:c,nodeStyles:h}=v(t);t.labelStyle=c;let{shapeSvg:a,bbox:o,label:f}=await G(d,t,T(t)),i=t.look==="neo"?18:t.padding??0,n=t.look==="neo"?12:t.padding??0,r=o.width+i,e=o.height+n,s=Math.max(5,e*.1),{cssStyles:p}=t,l=[...xt(r/2,-e/2,s,30,-90,0),{x:-r/2-s,y:s},...xt(r/2+s*2,-s,s,20,-180,-270),...xt(r/2+s*2,s,s,20,-90,-180),{x:-r/2-s,y:-e/2},...xt(r/2,e/2,s,20,0,90)],m=[{x:r/2,y:-e/2-s},{x:-r/2,y:-e/2-s},...xt(r/2,-e/2,s,20,-90,0),{x:-r/2-s,y:-s},...xt(r/2+r*.1,-s,s,20,-180,-270),...xt(r/2+r*.1,s,s,20,-90,-180),{x:-r/2-s,y:e/2},...xt(r/2,e/2,s,20,0,90),{x:-r/2,y:e/2+s},{x:r/2,y:e/2+s}],g=D.svg(a),u=P(t,{fill:"none"});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let b=I(l).replace("Z",""),S=g.path(b,u),N=I(m),w=g.path(N,{...u}),B=a.insert("g",":first-child");return B.insert(()=>w,":first-child").attr("stroke-opacity",0),B.insert(()=>S,":first-child"),B.attr("class","text"),p&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",p),h&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",h),B.attr("transform",`translate(${s}, 0)`),f.attr("transform",`translate(${-r/2+s-(o.x-(o.left??0))},${-e/2+(t.padding??0)/2-(o.y-(o.top??0))})`),k(t,B),t.intersect=function(C){return $.polygon(t,m,C)},a}x(ce,"curlyBraceLeft");function bt(d,t,c,h=100,a=0,o=180){let f=[],i=a*Math.PI/180,e=(o*Math.PI/180-i)/(h-1);for(let s=0;s<h;s++){let p=i+s*e,l=d+c*Math.cos(p),m=t+c*Math.sin(p);f.push({x:l,y:m})}return f}x(bt,"generateCirclePoints");async function he(d,t){let{labelStyles:c,nodeStyles:h}=v(t);t.labelStyle=c;let{shapeSvg:a,bbox:o,label:f}=await G(d,t,T(t)),i=t.look==="neo"?18:t.padding??0,n=t.look==="neo"?12:t.padding??0,r=o.width+(t.look==="neo"?i*2:i),e=o.height+(t.look==="neo"?n*2:n),s=Math.max(5,e*.1),{cssStyles:p}=t,l=[...bt(r/2,-e/2,s,20,-90,0),{x:r/2+s,y:-s},...bt(r/2+s*2,-s,s,20,-180,-270),...bt(r/2+s*2,s,s,20,-90,-180),{x:r/2+s,y:e/2},...bt(r/2,e/2,s,20,0,90)],m=[{x:-r/2,y:-e/2-s},{x:r/2,y:-e/2-s},...bt(r/2,-e/2,s,20,-90,0),{x:r/2+s,y:-s},...bt(r/2+s*2,-s,s,20,-180,-270),...bt(r/2+s*2,s,s,20,-90,-180),{x:r/2+s,y:e/2},...bt(r/2,e/2,s,20,0,90),{x:r/2,y:e/2+s},{x:-r/2,y:e/2+s}],g=D.svg(a),u=P(t,{fill:"none"});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let b=I(l).replace("Z",""),S=g.path(b,u),N=I(m),w=g.path(N,{...u}),B=a.insert("g",":first-child");return B.insert(()=>w,":first-child").attr("stroke-opacity",0),B.insert(()=>S,":first-child"),B.attr("class","text"),p&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",p),h&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",h),B.attr("transform",`translate(${-s}, 0)`),f.attr("transform",`translate(${-r/2+(t.padding??0)/2-(o.x-(o.left??0))},${-e/2+(t.padding??0)/2-(o.y-(o.top??0))})`),k(t,B),t.intersect=function(C){return $.polygon(t,m,C)},a}x(he,"curlyBraceRight");function st(d,t,c,h=100,a=0,o=180){let f=[],i=a*Math.PI/180,e=(o*Math.PI/180-i)/(h-1);for(let s=0;s<h;s++){let p=i+s*e,l=d+c*Math.cos(p),m=t+c*Math.sin(p);f.push({x:-l,y:-m})}return f}x(st,"generateCirclePoints");async function pe(d,t){let{labelStyles:c,nodeStyles:h}=v(t);t.labelStyle=c;let{shapeSvg:a,bbox:o,label:f}=await G(d,t,T(t))
a${a},${o} 0,0,1 0,${-h}
l${c},0
a${a},${o} 0,0,1 0,${h}
M${c},${-h}
a${a},${o} 0,0,0 0,${h}
l${-c},0`,"createCylinderPathD"),Us=x((d,t,c,h,a,o)=>[`M${d},${t}`,`M${d+c},${t}`,`a${a},${o} 0,0,0 0,${-h}`,`l${-c},0`,`a${a},${o} 0,0,0 0,${h}`,`l${c},0`].join(" "),"createOuterCylinderPathD"),Zs=x((d,t,c,h,a,o)=>[`M${d+c/2},${-h/2}`,`a${a},${o} 0,0,0 0,${h}`].join(" "),"createInnerCylinderPathD"),os=5,as=10;async function ns(d,t){let{labelStyles:c,nodeStyles:h}=v(t);t.labelStyle=c;let a=t.padding??0,o=t.look==="neo"?12:a/2;if(t.width||t.height){let g=t.height??0;t.height=(t.height??0)-o,t.height<os&&(t.height=os);let y=g/2/(2.5+g/50);t.width=(t.width??0)-o-y*3,t.width<as&&(t.width=as)}let{shapeSvg:f,bbox:i,label:n}=await G(d,t,T(t)),r=(t.height?t.height:i.height)+o,e=r/2,s=e/(2.5+r/50),p=(t.width?t.width:i.width)+s+o,{cssStyles:l}=t,m;if(t.look==="handDrawn"){let g=D.svg(f),u=Us(0,0,p,r,s,e),y=Zs(0,0,p,r,s,e),b=g.path(u,P(t,{})),S=g.path(y,P(t,{fill:"none"}));m=f.insert(()=>S,":first-child"),m=f.insert(()=>b,":first-child"),m.attr("class","basic label-container"),l&&m.attr("style",l)}else{let g=zs(0,0,p,r,s,e);m=f.insert("path",":first-child").attr("d",g).attr("class","basic label-container").attr("style",q(l)).attr("style",h),m.attr("class","basic label-container outer-path"),l&&m.selectAll("path").attr("style",l),h&&m.selectAll("path").attr("style",h)}return m.attr("label-offset-x",s),m.attr("transform",`translate(${-p/2}, ${r/2} )`),n.attr("transform",`translate(${-(i.width/2)-s-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),k(t,m),t.intersect=function(g){let u=$.rect(t,g),y=u.y-(t.y??0);if(e!=0&&(Math.abs(y)<(t.height??0)/2||Math.abs(y)==(t.height??0)/2&&Math.abs(u.x-(t.x??0))>(t.width??0)/2-s)){let b=s*s*(1-y*y/(e*e));b!=0&&(b=Math.sqrt(Math.abs(b))),b=s-b,g.x-(t.x??0)>0&&(b=-b),u.x+=b}return u},f}x(ns,"tiltedCylinder");async function ls(d,t){let{labelStyles:c,nodeStyles:h}=v(t);t.labelStyle=c;let a=t.padding??0,o=(t.look==="neo",a),f=t.look==="neo"?a*2:a,{shapeSvg:i,bbox:n}=await G(d,t,T(t)),r=(t?.height??n.height)+o,e=(t?.width??n.width)+f,s=[{x:-3*r/6,y:0},{x:e+3*r/6,y:0},{x:e,y:-r},{x:0,y:-r}],p,{cssStyles:l}=t;if(t.look==="handDrawn"){let m=D.svg(i),g=P(t,{}),u=I(s),y=m.path(u,g);p=i.insert(()=>y,":first-child").attr("transform",`translate(${-e/2}, ${r/2})`),l&&p.attr("style",l)}else p=et(i,e,r,s);return h&&p.attr("style",h),t.width=e,t.height=r,k(t,p),t.intersect=function(m){return $.polygon(t,s,m)},i}x(ls,"trapezoid");async function cs(d,t){let{labelStyles:c,nodeStyles:h}=v(t);t.labelStyle=c;let a=t.padding??0,o=t.look==="neo"?16:a,f=t.look==="neo"?12:a,i=15,n=5;(t.width||t.height)&&(t.height=(t.height??0)-f*2,t.height<n&&(t.height=n),t.width=(t.width??0)-o*2,t.width<i&&(t.width=i));let{shapeSvg:r,bbox:e}=await G(d,t,T(t)),s=(t?.width?t?.width:e.width)+o*2,p=(t?.height?t?.height:e.height)+f*2,{cssStyles:l}=t,m=D.svg(r),g=P(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let u=[{x:-s/2*.8,y:-p/2},{x:s/2*.8,y:-p/2},{x:s/2,y:-p/2*.6},{x:s/2,y:p/2},{x:-s/2,y:p/2},{x:-s/2,y:-p/2*.6}],y=I(u),b=m.path(y,g),S=r.insert(()=>b,":first-child");return S.attr("class","basic label-container outer-path"),l&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",l),h&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",h),k(t,S),t.intersect=function(N){return $.polygon(t,u,N)},r}x(cs,"trapezoidalPentagon");var hs=10,ps=10;async function ms(d,t){let{labelStyles:c,nodeStyles:h}=v(t);t.labelStyle=c;let a=t.padding??0,o=t.look==="neo"?a*2:a;(t.width||t.height)&&(t.width=((t?.width??0)-o)/2,t.width<ps&&(t.width=ps),t.height=t?.height??0,t.height<hs&&(t.height=hs));let{shapeSvg:f,bbox:i,label:n}=await G(d,t,T(t)),r=lt(Z().flowchart?.htmlLabels),e=(t?.width?t?.width:i.width)+o,s=t?.height?t?.height:e+i.height,p=s,l=[{x:0,y:0},{x:p,y:0},{x:p/2,y:-s}],{cssStyles:m}=t,g=D.svg(f),u=P(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let y=I(l),b=g.path(y,u),S=f.insert(()=>b,":first-child").attr("transform",`translate(${-s/2}, ${s/2})`).attr("class","outer-path");return m&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",m),h&&t.look!=="handDrawn"&&S.selectChildren("
M${l-K},${m} L${l+s},${m}
M${l},${m-K} L${l},${m+p}`;t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let N=u.path(S,y),w=f.insert(()=>N,":first-child");return w.attr("transform",`translate(${K/2}, ${K/2})`),w.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",g),h&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",h),n.attr("transform",`translate(${-(i.width/2)+K/2-(i.x-(i.left??0))}, ${-(i.height/2)+K/2-(i.y-(i.top??0))})`),k(t,w),t.intersect=function(B){return $.polygon(t,b,B)},f}x(ds,"windowPane");var ys=new Set(["redux-color","redux-dark-color"]),Js=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function Yt(d,t){let c=t;c.alias&&(t.label=c.alias);let{theme:h,themeVariables:a}=ft(),{rowEven:o,rowOdd:f,nodeBorder:i,borderColorArray:n}=a;if(t.look==="handDrawn"){let{themeVariables:F}=ft(),{background:U}=F,Q={...t,id:t.id+"-background",domId:(t.domId||t.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${U}`]};await Yt(d,Q)}let r=ft();t.useHtmlLabels=r.htmlLabels;let e=r.er?.diagramPadding??10,s=r.er?.entityPadding??6,{cssStyles:p}=t,{labelStyles:l,nodeStyles:m}=v(t);if(c.attributes.length===0&&t.label){let F={rx:0,ry:0,labelPaddingX:e,labelPaddingY:e*1.5,classes:""};wt(t.label,r)+F.labelPaddingX*2<r.er.minEntityWidth&&(t.width=r.er.minEntityWidth);let U=await ct(d,t,F);if(h!=null&&ys.has(h)){let Q=c.colorIndex??0;U.attr("data-color-id",`color-${Q%n.length}`)}if(!lt(r.htmlLabels)){let Q=U.select("text"),ot=Q.node()?.getBBox();Q.attr("transform",`translate(${-ot.width/2}, 0)`)}return U}r.htmlLabels||(e*=1.25,s*=1.25);let g=T(t);g||(g="node default");let u=d.insert("g").attr("class",g).attr("id",t.domId||t.id),y=await Tt(u,t.label??"",r,0,0,["name"],l);y.height+=s;let b=0,S=[],N=[],w=0,B=0,C=0,R=0,M=!0,E=!0;for(let F of c.attributes){let U=await Tt(u,F.type,r,0,b,["attribute-type"],l);w=Math.max(w,U.width+e);let Q=await Tt(u,F.name,r,0,b,["attribute-name"],l);B=Math.max(B,Q.width+e);let ot=await Tt(u,F.keys.join(),r,0,b,["attribute-keys"],l);C=Math.max(C,ot.width+e);let St=await Tt(u,F.comment,r,0,b,["attribute-comment"],l);R=Math.max(R,St.width+e);let gt=Math.max(U.height,Q.height,ot.height,St.height)+s;N.push({yOffset:b,rowHeight:gt}),b+=gt}let H=4;C<=e&&(M=!1,C=0,H--),R<=e&&(E=!1,R=0,H--);let W=u.node().getBBox();if(y.width+e*2-(w+B+C+R)>0){let F=y.width+e*2-(w+B+C+R);w+=F/H,B+=F/H,C>0&&(C+=F/H),R>0&&(R+=F/H)}let j=w+B+C+R,V=D.svg(u),O=P(t,{});t.look!=="handDrawn"&&(O.roughness=0,O.fillStyle="solid");let A=0;N.length>0&&(A=N.reduce((F,U)=>F+(U?.rowHeight??0),0));let L=Math.max(W.width+e*2,t?.width||0,j),X=Math.max((A??0)+y.height,t?.height||0),_=-L/2,z=-X/2;if(u.selectAll("g:not(:first-child)").each((F,U,Q)=>{let ot=J(Q[U]),St=ot.attr("transform"),gt=0,_t=0;if(St){let Ot=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(St);Ot&&(gt=parseFloat(Ot[1]),_t=parseFloat(Ot[2]),ot.attr("class").includes("attribute-name")?gt+=w:ot.attr("class").includes("attribute-keys")?gt+=w+B:ot.attr("class").includes("attribute-comment")&&(gt+=w+B+C))}ot.attr("transform",`translate(${_+e/2+gt}, ${_t+z+y.height+s/2})`)}),u.select(".name").attr("transform","translate("+-y.width/2+", "+(z+s/2)+")"),h!=null&&ys.has(h)){let F=c.colorIndex??0;u.attr("data-color-id",`color-${F%n.length}`)}let Bt=V.rectangle(_,z,L,X,O),Pt=u.insert(()=>Bt,":first-child").attr("class","outer-path").attr("style",p.join(""));S.push(0);for(let[F,U]of N.entries()){let ot=(F+1)%2===0&&U.yOffset!==0,St=V.rectangle(_,y.height+z+U?.yOffset,L,U?.rowHeight,{...O,fill:ot?o:f,stroke:i});u.insert(()=>St,"g.label").attr("style",p.join("")).attr("class",`row-rect-${ot?"even":"odd"}`)}let ht=1e-4,nt=Ct(_,y.height+z,L+_,y.height+z,ht),pt=V.polygon(nt.map(F=>[F.x,F.y]),O);if(u.insert(()=>pt).attr("class","divider"),nt=Ct(w+_,y.height+z,w+_,X+z,ht),pt=V.polygon(nt.map(F=>[F.x,F.y]),O),u.insert(()=>pt).attr("class","divider"),M){let F=w+B+_;nt=Ct(F,y.height+z,F,X+z,ht),pt=V.polygon(nt.map(U=>[U.x,U.y]),O),u.insert(()=>pt).attr("class","divider")}if(E){let F=w+B+C+_;nt=Ct(F,y.height+z,F,X+z,ht)
a${e},${e} 1 0,0 ${m*.25},${-1*g*.1}
a${e},${e} 1 0,0 ${m*.25},0
a${e},${e} 1 0,0 ${m*.25},0
a${e},${e} 1 0,0 ${m*.25},${g*.1}
a${e},${e} 1 0,0 ${m*.15},${g*.33}
a${e*.8},${e*.8} 1 0,0 0,${g*.34}
a${e},${e} 1 0,0 ${-1*m*.15},${g*.33}
a${e},${e} 1 0,0 ${-1*m*.25},${g*.15}
a${e},${e} 1 0,0 ${-1*m*.25},0
a${e},${e} 1 0,0 ${-1*m*.25},0
a${e},${e} 1 0,0 ${-1*m*.25},${-1*g*.15}
a${e},${e} 1 0,0 ${-1*m*.1},${-1*g*.33}
a${e*.8},${e*.8} 1 0,0 0,${-1*g*.34}
a${e},${e} 1 0,0 ${m*.1},${-1*g*.33}
H0 V0 Z`;if(t.look==="handDrawn"){let b=D.svg(a),S=P(t,{}),N=b.path(y,S);u=a.insert(()=>N,":first-child"),u.attr("class","basic label-container").attr("style",q(s))}else u=a.insert("path",":first-child").attr("class","basic label-container").attr("style",h).attr("d",y);return u.attr("transform",`translate(${-m/2}, ${-g/2})`),k(t,u),t.calcIntersect=function(b,S){return $.rect(b,S)},t.intersect=function(b){return Y.info("Bang intersect",t,b),$.rect(t,b)},a}x(ws,"bang");async function Ns(d,t){let{labelStyles:c,nodeStyles:h}=v(t);t.labelStyle=c;let{shapeSvg:a,bbox:o,halfPadding:f,label:i}=await G(d,t,T(t)),n=o.width+2*f,r=o.height+2*f,e=.15*n,s=.25*n,p=.35*n,l=.2*n,{cssStyles:m}=t,g,u=`M0 0
a${e},${e} 0 0,1 ${n*.25},${-1*n*.1}
a${p},${p} 1 0,1 ${n*.4},${-1*n*.1}
a${s},${s} 1 0,1 ${n*.35},${n*.2}
a${e},${e} 1 0,1 ${n*.15},${r*.35}
a${l},${l} 1 0,1 ${-1*n*.15},${r*.65}
a${s},${e} 1 0,1 ${-1*n*.25},${n*.15}
a${p},${p} 1 0,1 ${-1*n*.5},0
a${e},${e} 1 0,1 ${-1*n*.25},${-1*n*.15}
a${e},${e} 1 0,1 ${-1*n*.1},${-1*r*.35}
a${l},${l} 1 0,1 ${n*.1},${-1*r*.65}
H0 V0 Z`;if(t.look==="handDrawn"){let y=D.svg(a),b=P(t,{}),S=y.path(u,b);g=a.insert(()=>S,":first-child"),g.attr("class","basic label-container").attr("style",q(m))}else g=a.insert("path",":first-child").attr("class","basic label-container").attr("style",h).attr("d",u);return i.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),g.attr("transform",`translate(${-n/2}, ${-r/2})`),k(t,g),t.calcIntersect=function(y,b){return $.rect(y,b)},t.intersect=function(y){return Y.info("Cloud intersect",t,y),$.rect(t,y)},a}x(Ns,"cloud");async function $s(d,t){let{labelStyles:c,nodeStyles:h}=v(t);t.labelStyle=c;let{shapeSvg:a,bbox:o,halfPadding:f,label:i}=await G(d,t,T(t)),n=o.width+8*f,r=o.height+2*f,e=5,s=t.look==="neo"?`
M${-n/2} ${r/2-e}
v${-r+2*e}
q0,-${e} ${e},-${e}
h${n-2*e}
q${e},0 ${e},${e}
v${r-e}
H${-n/2}
Z
`:`
M${-n/2} ${r/2-e}
v${-r+2*e}
q0,-${e} ${e},-${e}
h${n-2*e}
q${e},0 ${e},${e}
v${r-2*e}
q0,${e} ${-e},${e}
h${-(n-2*e)}
q${-e},0 ${-e},${-e}
Z
`;if(!t.domId)throw new Error(`defaultMindmapNode: node "${t.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let p=a.append("path").attr("id",t.domId).attr("class","node-bkg node-"+t.type).attr("style",h).attr("d",s);return a.append("line").attr("class","node-line-").attr("x1",-n/2).attr("y1",r/2).attr("x2",n/2).attr("y2",r/2),i.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),a.append(()=>i.node()),k(t,p),t.calcIntersect=function(l,m){return $.rect(l,m)},t.intersect=function(l){return $.rect(t,l)},a}x($s,"defaultMindmapNode");async function Ds(d,t){let c={padding:t.padding??0};return Ht(d,t,c)}x(Ds,"mindmapCircle");var Qs=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:Ze},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:qe},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:Je},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:es},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:de},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:ye},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:Ht},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:ws},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:Ns},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:Ye},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:Pe},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:He},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:Ee},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:ls},{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:Ge},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:xe},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:is},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:ae},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:ze},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:ts},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:Qe},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:$e},{