@codingame/monaco-vscode-markdown-language-features-default-extension 36.2.7 → 37.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/index.js +237 -23
  2. package/package.json +2 -2
  3. package/resources/abnfDiagram-VCTEODGH-MFZBS7QV.js +1 -0
  4. package/resources/architecture-7GRP2DOG-KMESPJ5A.js +1 -0
  5. package/resources/architectureDiagram-5GKGNRK7-MTTZPDNG.js +36 -0
  6. package/resources/blockDiagram-NRAW4CY4-UDRMVB5I.js +129 -0
  7. package/resources/c4Diagram-UCG6FXSJ-CNUYFC6N.js +38 -0
  8. package/resources/chunk-2KBWIZHB.js +14 -0
  9. package/resources/chunk-3CEAP2V5.js +1 -0
  10. package/resources/chunk-43RBMH4Y.js +1 -0
  11. package/resources/chunk-4AUIAGYT.js +1 -0
  12. package/resources/chunk-4PRM3W7S.js +88 -0
  13. package/resources/chunk-5DJUZA4F.js +1 -0
  14. package/resources/chunk-6LQNQPBM.js +1 -0
  15. package/resources/chunk-A3DHMJKP.js +1 -0
  16. package/resources/chunk-ATDVZUJ2.js +231 -0
  17. package/resources/chunk-CBQW2LLN.js +1 -0
  18. package/resources/chunk-CCQNES6G.js +1 -0
  19. package/resources/chunk-CD5RYVNW.js +1 -0
  20. package/resources/chunk-CQFFNO72.js +1 -0
  21. package/resources/chunk-EWILYK3H.js +1 -0
  22. package/resources/chunk-EWVD6AUZ.js +15 -0
  23. package/resources/chunk-EXFMYL6U.js +1 -0
  24. package/resources/chunk-FH3BATM5.js +1 -0
  25. package/resources/chunk-FK4OKHO7.js +178 -0
  26. package/resources/chunk-FZLE27CN.js +1 -0
  27. package/resources/chunk-HRJ5UBVC.js +1 -0
  28. package/resources/chunk-IEMKBRIG.js +339 -0
  29. package/resources/chunk-IRNO36C3.js +1 -0
  30. package/resources/chunk-J4SQIVOP.js +1 -0
  31. package/resources/chunk-JAORNH2M.js +2 -0
  32. package/resources/chunk-JBQZ5UCE.js +1 -0
  33. package/resources/chunk-JFI5BOLY.js +1 -0
  34. package/resources/chunk-JXCTOEX6.js +1 -0
  35. package/resources/chunk-K2JFJOPP.js +1 -0
  36. package/resources/chunk-LK6KML2S.js +10 -0
  37. package/resources/chunk-MNHOAW4R.js +3 -0
  38. package/resources/chunk-NLCJ5AKJ.js +132 -0
  39. package/resources/chunk-OOJM4CTU.js +1 -0
  40. package/resources/chunk-R7CM4BQN.js +2 -0
  41. package/resources/chunk-RBL2QVA3.js +1 -0
  42. package/resources/chunk-SNGMH3JW.js +2 -0
  43. package/resources/chunk-TGD3YKTU.js +32 -0
  44. package/resources/chunk-TGYBLZFN.js +1 -0
  45. package/resources/chunk-U3E5RSXE.js +62 -0
  46. package/resources/chunk-U7TCJVVP.js +1 -0
  47. package/resources/chunk-WSHCWW4Q.js +2 -0
  48. package/resources/chunk-WVYKIHVG.js +1 -0
  49. package/resources/chunk-XCMS6RVA.js +1 -0
  50. package/resources/chunk-XM54GAH3.js +206 -0
  51. package/resources/chunk-YICKNY6Y.js +1 -0
  52. package/resources/chunk-YNKYB66X.js +257 -0
  53. package/resources/chunk-ZMBQGVIF.js +1 -0
  54. package/resources/chunk-ZNREFWKG.js +1 -0
  55. package/resources/chunk-ZU7JKVUR.js +168 -0
  56. package/resources/chunk-ZYRITDEB.js +72 -0
  57. package/resources/classDiagram-DTDB5LWJ-TBJLBGTZ.js +1 -0
  58. package/resources/codicon-R6HEZFPR.ttf +0 -0
  59. package/resources/cose-bilkent-JH36ORCC-7TCRTQWC.js +1 -0
  60. package/resources/cynefin-OW5HDTMX-QMEUXFXO.js +1 -0
  61. package/resources/cynefinDiagram-5FMLGOSQ-J745EYTI.js +62 -0
  62. package/resources/dagre-3AP2YEHR-CUFPL4A5.js +4 -0
  63. package/resources/diagram-S7CK7UJ4-SC5AFKXH.js +30 -0
  64. package/resources/diagram-UQ7AKVKN-3O7WQJXE.js +41 -0
  65. package/resources/diagram-VSXAHHWV-SN3VCCS5.js +3 -0
  66. package/resources/diagram-VX7I27RA-7PQJWMN5.js +24 -0
  67. package/resources/diagram-Z3DM3KII-QZ45TJFK.js +24 -0
  68. package/resources/ebnfDiagram-PWID7BFC-CBJPGG56.js +1 -0
  69. package/resources/editor.css.txt +1 -1
  70. package/resources/editor.js +137 -3431
  71. package/resources/editor.ts +587 -46
  72. package/resources/erDiagram-SSCWMZ5O-TUKYG42P.js +99 -0
  73. package/resources/eventmodeling-NTZA5JFV-MGOPW7BD.js +1 -0
  74. package/resources/extension.js +179 -172
  75. package/resources/extension.js.map +4 -4
  76. package/resources/flowDiagram-A5DVABFB-M6K5X26V.js +1 -0
  77. package/resources/ganttDiagram-EL5Y4UJY-JCSKUU2V.js +292 -0
  78. package/resources/gitGraph-4MIJSDKK-ITDCTFJT.js +1 -0
  79. package/resources/gitGraphDiagram-WWUBYQGX-RXRB5JA2.js +106 -0
  80. package/resources/index.js +3 -3
  81. package/resources/index2.js +17 -17
  82. package/resources/info-A6RAGUB7-VXIEHQAI.js +1 -0
  83. package/resources/infoDiagram-RXCK75RN-2T6V4JS2.js +2 -0
  84. package/resources/ishikawaDiagram-5VMMS53U-6WC4IGXZ.js +70 -0
  85. package/resources/journeyDiagram-EYS64GPL-PZQYT6UF.js +139 -0
  86. package/resources/kanban-definition-3QL26DDD-VYBV345J.js +89 -0
  87. package/resources/katex-QJ7O5CJ5.js +1 -0
  88. package/resources/linkPresentationProvider.ts +179 -0
  89. package/resources/markdown.css.txt +39 -0
  90. package/resources/markdownEditor.css.txt +13 -0
  91. package/resources/mermaid.core-S5KCHHL2.js +18 -0
  92. package/resources/mindmap-definition-FBJOCRG2-H3I5F4WB.js +96 -0
  93. package/resources/package.json +1 -1
  94. package/resources/package.nls.json +1 -1
  95. package/resources/package.schema.json +1 -1
  96. package/resources/packet-AYTQ26CC-WLFKOXIZ.js +1 -0
  97. package/resources/pegDiagram-XKGWAZYB-HUV4U5RU.js +1 -0
  98. package/resources/pie-WAS4IAKB-GZIMD664.js +1 -0
  99. package/resources/pieDiagram-E7YTZNPT-XOJEVCEO.js +39 -0
  100. package/resources/pre.js +1 -1
  101. package/resources/preview-dark.svg +1 -1
  102. package/resources/preview-light.svg +1 -1
  103. package/resources/quadrantDiagram-AXDQQJYC-YPPZYAGP.js +7 -0
  104. package/resources/radar-RG4KPBEZ-URG5LVGS.js +1 -0
  105. package/resources/railroad-74A4TZTK-3ZMXCKLP.js +1 -0
  106. package/resources/railroad-abnf-HS5TGJTU-LBR5MV33.js +1 -0
  107. package/resources/railroad-ebnf-LZEXJU2U-YEVF3EJR.js +1 -0
  108. package/resources/railroad-peg-WCYAUIDC-CV774YSK.js +1 -0
  109. package/resources/railroadDiagram-O6MQD6OU-YZF7JNDT.js +1 -0
  110. package/resources/requirementDiagram-EFPCY7ZU-PZ7BYTDZ.js +84 -0
  111. package/resources/sankeyDiagram-P5KCCOFB-3P5DWREA.js +40 -0
  112. package/resources/sequenceDiagram-WJ2MYXX4-O52K5NPU.js +162 -0
  113. package/resources/sizeCapture-X5ZJPWSS-PRFE7SKK.js +1 -0
  114. package/resources/stateDiagram-HBIQ2CUA-KDPYCQOT.js +1 -0
  115. package/resources/stateDiagram-v2-4QOOHH4V-QBQE56JB.js +1 -0
  116. package/resources/swimlanes-XN3QIQJK-YCLJ3KIH.js +1 -0
  117. package/resources/swimlanesDiagram-VK2B7HYN-RS7VRH6T.js +8 -0
  118. package/resources/syntaxHighlighter.ts +2 -2
  119. package/resources/timeline-definition-24CTP7MA-GQ3MCHCF.js +120 -0
  120. package/resources/treeView-Q6P3EWNA-UEXUSAGC.js +1 -0
  121. package/resources/treemap-WGGIJYW6-NFXJPDAT.js +1 -0
  122. package/resources/tsconfig.json +1 -1
  123. package/resources/vennDiagram-4TSXK5OY-PNMXQJF6.js +34 -0
  124. package/resources/wardley-WFR3VGLG-MQ6DEZYA.js +1 -0
  125. package/resources/wardleyDiagram-VM6X3IG4-46KJTB57.js +78 -0
  126. package/resources/xychartDiagram-S5SC5T6Z-NSN5W7VL.js +7 -0
@@ -0,0 +1 @@
1
+ var g=Object.create;var e=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=(b,a)=>()=>{try{return a||b((a={exports:{}}).exports,a),a.exports}catch(c){throw a=0,c}},n=(b,a)=>{for(var c in a)e(b,c,{get:a[c],enumerable:!0})},l=(b,a,c,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of i(a))!k.call(b,d)&&d!==c&&e(b,d,{get:()=>a[d],enumerable:!(f=h(a,d))||f.enumerable});return b};var o=(b,a,c)=>(c=b!=null?g(j(b)):{},l(a||!b||!b.__esModule?e(c,"default",{value:b,enumerable:!0}):c,b));export{m as a,n as b,o as c};
@@ -0,0 +1,2 @@
1
+ import{a as o,b as d,c,d as i,e as l,g as u,r as v,w as m,y as h}from"./chunk-FK4OKHO7.js";var f=class extends h{static{o(this,"RailroadTokenBuilder")}constructor(){super(["railroad-beta"])}},R=o(a=>{let e=a.slice(1,-1),r="";for(let t=0;t<e.length;t++){let n=e[t];if(n==="\\"&&t+1<e.length){t++;let s=e[t];switch(s){case"n":r+=`
2
+ `;break;case"r":r+="\r";break;case"t":r+=" ";break;default:r+=s}continue}r+=n}return r},"decodeEscapedString"),p=class extends m{static{o(this,"RailroadValueConverter")}runConverter(a,e,r){let t=super.runConverter(a,e,r);if(a.name==="TITLE"&&typeof t=="string"){let n=t.trim();if(n.startsWith('"')&&n.endsWith('"')||n.startsWith("'")&&n.endsWith("'"))return R(n)}return t}runCustomConverter(a,e,r){if(a.name==="RR_STRING")return R(e)}},C={parser:{TokenBuilder:o(()=>new f,"TokenBuilder"),ValueConverter:o(()=>new p,"ValueConverter")}};function S(a=l){let e=i(c(a),u),r=i(d({shared:e}),v,C);return e.ServiceRegistry.register(r),{shared:e,Railroad:r}}o(S,"createRailroadServices");export{C as a,S as b};
@@ -0,0 +1 @@
1
+ import{a as Q}from"./chunk-CBQW2LLN.js";import{c as j,d as q,e as K}from"./chunk-U3E5RSXE.js";import{a as O}from"./chunk-EWILYK3H.js";import{d as P,e as Y}from"./chunk-XCMS6RVA.js";import{d as J}from"./chunk-ZYRITDEB.js";import{_ as G,o as U,y as X}from"./chunk-NLCJ5AKJ.js";import{b as L,h as I}from"./chunk-3CEAP2V5.js";import{a as $}from"./chunk-6LQNQPBM.js";var it=$(async(k,t)=>{let l=G(),{themeVariables:b,handDrawnSeed:d}=l,{clusterBkg:x,clusterBorder:m}=b,n=m,{labelStyles:C,nodeStyles:c,borderStyles:R,backgroundStyles:o}=P(t),h=k.insert("g").attr("class","cluster swimlane "+(t.cssClasses||"")).attr("id",t.id).attr("data-id",t.id).attr("data-et","cluster").attr("data-look",t.look),g=U(l.flowchart.htmlLabels),a=t.direction==="LR",s=h.insert("g").attr("class","cluster-label swimlane-label"),w=await J(s,t.label,{style:t.labelStyle,useHtmlLabels:g,isNode:!0,width:t.width}),r=w.getBBox();if(g){let B=w.children[0],D=I(w);r=B.getBoundingClientRect(),D.attr("width",r.width),D.attr("height",r.height)}let p=t.padding??0,u=t.width<=r.width+p?r.width+p:t.width;t.width<=r.width+p?t.diff=(u-t.width)/2-p:t.diff=-p;let i=t.height,f=t.y-i/2,T=t.y+i/2,e=t.x-u/2,v=t.swimlaneContentTop!==void 0?t.swimlaneContentTop:f+i/3,y=a?4:0,N=r.height+2*y,S,M;if(a){let B=Math.max(N,r.height+2*y),D=e+B,H=Math.max(0,u-B);if(t.look==="handDrawn"){let V=O.svg(h),z=Y(t,{roughness:.7,fill:x,stroke:n,fillWeight:3,seed:d}),_=Y(t,{roughness:.7,fill:"none",stroke:n,seed:d}),A=V.rectangle(e,f,B,i,z);S=h.insert(()=>A,":first-child");let F=V.rectangle(D,f,H,i,_);M=h.insert(()=>F,":first-child"),S.select("path:nth-child(2)").attr("style",R.join(";")),S.select("path").attr("style",o.join(";").replace("fill","stroke"))}else S=h.insert("rect",":first-child"),M=h.insert("rect",":first-child"),S.attr("class","swimlane-title").attr("style",c).attr("x",e).attr("y",f).attr("width",B).attr("height",i).attr("fill",x).attr("stroke",n),M.attr("class","swimlane-body").attr("style",c).attr("x",D).attr("y",f).attr("width",H).attr("height",i).attr("fill","none").attr("stroke",n);let E=e+B/2,W=t.y;s.attr("transform",`translate(${E}, ${W}) rotate(-90) translate(${-r.width/2}, ${-r.height/2})`)}else{let B=Math.max(0,v-f),D=Math.min(N,B),H=f+D,E=Math.max(0,T-H),W=t.x-u/2;if(t.look==="handDrawn"){let _=O.svg(h),A=Y(t,{roughness:.7,fill:x,stroke:n,fillWeight:3,seed:d}),F=Y(t,{roughness:.7,fill:"none",stroke:n,seed:d}),st=_.rectangle(W,f,u,D,A);S=h.insert(()=>st,":first-child");let rt=_.rectangle(W,H,u,E,F);M=h.insert(()=>rt,":first-child"),S.select("path:nth-child(2)").attr("style",R.join(";")),S.select("path").attr("style",o.join(";").replace("fill","stroke"))}else S=h.insert("rect",":first-child"),M=h.insert("rect",":first-child"),S.attr("class","swimlane-title").attr("style",c).attr("x",W).attr("y",f).attr("width",u).attr("height",D).attr("fill",x).attr("stroke",n),M.attr("class","swimlane-body").attr("style",c).attr("x",W).attr("y",H).attr("width",u).attr("height",E).attr("fill","none").attr("stroke",n);let V=t.x-r.width/2,z=f+(D-r.height)/2;s.attr("transform",`translate(${V}, ${z})`)}if(L.trace("Swimlane data ",t,JSON.stringify(t)),C){let B=s.select("span");B&&B.attr("style",C)}return t.offsetX=0,t.width=u,t.height=i,t.offsetY=r.height-p/2,t.intersect=function(B){return j(t,B)},{cluster:h,labelBBox:r}},"swimlane"),Z=$(async(k,t)=>{L.info("Creating subgraph rect for ",t.id,t);let l=G(),{themeVariables:b,handDrawnSeed:d}=l,{clusterBkg:x,clusterBorder:m}=b,{labelStyles:n,nodeStyles:C,borderStyles:c,backgroundStyles:R}=P(t),o=k.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),h=X(l),g=o.insert("g").attr("class","cluster-label "),a;t.labelType==="markdown"?a=await J(g,t.label,{style:t.labelStyle,useHtmlLabels:h,isNode:!0,width:t.width}):a=await K(g,t.label,t.labelStyle||"",!1,!0);let s=a.getBBox();if(X(l)){let e=a.children[0],v=I(a);s=e.getBoundingClientRect(),v.attr("width",s.width),v.attr("height",s.height)}let w=t.width<=s.width+t.padding?s.width+t.padding:t.width;t.width<=s.width+t.padding?t.diff=(w-t.width)/2-t.padding:t.diff=-t.padding;let r=t.height,p=t.x-w/2,u=t.y-r/2;L.trace("Data ",t,JSON.stringify(t));let i;if(t.look==="handDrawn"){let e=O.svg(o),v=Y(t,{roughness:.7,fill:x,stroke:m,fillWeight:3,seed:d}),y=e.path(q(p,u,w,r,0),v);i=o.insert(()=>(L.debug("Rough node insert CXC",y),y),":first-child"),i.select("path:nth-child(2)").attr("style",c.join(";")),i.select("path").attr("style",R.join(";").replace("fill","stroke"))}else i=o.insert("rect",":first-child"),i.attr("style",C).attr("rx",t.rx).attr("ry",t.ry).attr("x",p).attr("y",u).attr("width",w).attr("height",r);let{subGraphTitleTopMargin:f}=Q(l);if(g.attr("transform",`translate(${t.x-s.width/2}, ${t.y-t.height/2+f})`),n){let e=g.select("span");e&&e.attr("style",n)}let T=i.node().getBBox();return t.offsetX=0,t.width=T.width,t.height=T.height,t.offsetY=s.height-t.padding/2,t.intersect=function(e){return j(t,e)},{cluster:o,labelBBox:s}},"rect"),et=$((k,t)=>{let l=k.insert("g").attr("class","note-cluster").attr("id",t.domId),b=l.insert("rect",":first-child"),d=0*t.padding,x=d/2;b.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-x).attr("y",t.y-t.height/2-x).attr("width",t.width+d).attr("height",t.height+d).attr("fill","none");let m=b.node().getBBox();return t.width=m.width,t.height=m.height,t.intersect=function(n){return j(t,n)},{cluster:l,labelBBox:{width:0,height:0}}},"noteGroup"),at=$(async(k,t)=>{let l=G(),{themeVariables:b,handDrawnSeed:d}=l,{altBackground:x,compositeBackground:m,compositeTitleBackground:n,nodeBorder:C}=b,c=k.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-id",t.id).attr("data-look",t.look),R=c.insert("g",":first-child"),o=c.insert("g").attr("class","cluster-label"),h=c.append("rect"),g=await K(o,t.label,t.labelStyle,void 0,!0),a=g.getBBox();if(X(l)){let y=g.children[0],N=I(g);a=y.getBoundingClientRect(),N.attr("width",a.width),N.attr("height",a.height)}let s=0*t.padding,w=s/2,r=(t.width<=a.width+t.padding?a.width+t.padding:t.width)+s;t.width<=a.width+t.padding?t.diff=(r-t.width)/2-t.padding:t.diff=-t.padding;let p=t.height+s,u=t.height+s-a.height-6,i=t.x-r/2,f=t.y-p/2;t.width=r;let T=t.y-t.height/2-w+a.height+2,e;if(t.look==="handDrawn"){let y=t.cssClasses.includes("statediagram-cluster-alt"),N=O.svg(c),S=t.rx||t.ry?N.path(q(i,f,r,p,10),{roughness:.7,fill:n,fillStyle:"solid",stroke:C,seed:d}):N.rectangle(i,f,r,p,{seed:d});e=c.insert(()=>S,":first-child");let M=N.rectangle(i,T,r,u,{fill:y?x:m,fillStyle:y?"hachure":"solid",stroke:C,seed:d});e=c.insert(()=>S,":first-child"),h=c.insert(()=>M)}else e=R.insert("rect",":first-child"),e.attr("class","outer").attr("x",i).attr("y",f).attr("width",r).attr("height",p).attr("data-look",t.look),h.attr("class","inner").attr("x",i).attr("y",T).attr("width",r).attr("height",u);o.attr("transform",`translate(${t.x-a.width/2}, ${f+1-(X(l)?0:3)})`);let v=e.node().getBBox();return t.height=v.height,t.offsetX=0,t.offsetY=a.height-t.padding/2,t.labelBBox=a,t.intersect=function(y){return j(t,y)},{cluster:c,labelBBox:a}},"roundedWithTitle"),lt=$(async(k,t)=>{L.info("Creating subgraph rect for ",t.id,t);let l=G(),{themeVariables:b,handDrawnSeed:d}=l,{clusterBkg:x,clusterBorder:m}=b,{labelStyles:n,nodeStyles:C,borderStyles:c,backgroundStyles:R}=P(t),o=k.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),h=X(l),g=o.insert("g").attr("class","cluster-label "),a=await J(g,t.label,{style:t.labelStyle,useHtmlLabels:h,isNode:!0,width:t.width}),s=a.getBBox();if(X(l)){let e=a.children[0],v=I(a);s=e.getBoundingClientRect(),v.attr("width",s.width),v.attr("height",s.height)}let w=t.width<=s.width+t.padding?s.width+t.padding:t.width;t.width<=s.width+t.padding?t.diff=(w-t.width)/2-t.padding:t.diff=-t.padding;let r=t.height,p=t.x-w/2,u=t.y-r/2;L.trace("Data ",t,JSON.stringify(t));let i;if(t.look==="handDrawn"){let e=O.svg(o),v=Y(t,{roughness:.7,fill:x,stroke:m,fillWeight:4,seed:d}),y=e.path(q(p,u,w,r,t.rx),v);i=o.insert(()=>(L.debug("Rough node insert CXC",y),y),":first-child"),i.select("path:nth-child(2)").attr("style",c.join(";")),i.select("path").attr("style",R.join(";").replace("fill","stroke"))}else i=o.insert("rect",":first-child"),i.attr("style",C).attr("rx",t.rx).attr("ry",t.ry).attr("x",p).attr("y",u).attr("width",w).attr("height",r);let{subGraphTitleTopMargin:f}=Q(l);if(g.attr("transform",`translate(${t.x-s.width/2}, ${t.y-t.height/2+f})`),n){let e=g.select("span");e&&e.attr("style",n)}let T=i.node().getBBox();return t.offsetX=0,t.width=T.width,t.height=T.height,t.offsetY=s.height-t.padding/2,t.intersect=function(e){return j(t,e)},{cluster:o,labelBBox:s}},"kanbanSection"),ct=$((k,t)=>{let l=G(),{themeVariables:b,handDrawnSeed:d}=l,{nodeBorder:x}=b,m=k.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-look",t.look),n=m.insert("g",":first-child"),C=0*t.padding,c=t.width+C;t.diff=-t.padding;let R=t.height+C,o=t.x-c/2,h=t.y-R/2;t.width=c;let g;if(t.look==="handDrawn"){let w=O.svg(m).rectangle(o,h,c,R,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:x,seed:d});g=m.insert(()=>w,":first-child")}else{g=n.insert("rect",":first-child");let s="outer";t.look,s="divider",g.attr("class",s).attr("x",o).attr("y",h).attr("width",c).attr("height",R).attr("data-look",t.look)}let a=g.node().getBBox();return t.height=a.height,t.offsetX=0,t.offsetY=0,t.intersect=function(s){return j(t,s)},{cluster:m,labelBBox:{}}},"divider"),ht=Z,nt={rect:Z,squareRect:ht,roundedWithTitle:at,noteGroup:et,divider:ct,kanbanSection:lt,swimlane:it},tt=new Map,Bt=$(async(k,t)=>{let l=t.shape||"rect",b=await nt[l](k,t);return tt.set(t.id,b),b},"insertCluster"),kt=$(()=>{tt=new Map},"clear");export{Bt as a,kt as b};
@@ -0,0 +1,2 @@
1
+ import{a as o,b as d,c,d as i,e as l,g as u,q as f,w as E,y as m}from"./chunk-FK4OKHO7.js";var b=class extends m{static{o(this,"RailroadEbnfTokenBuilder")}constructor(){super(["railroad-ebnf-beta"])}},v=o(a=>{let e=a.slice(1,-1),r="";for(let t=0;t<e.length;t++){let n=e[t];if(n==="\\"&&t+1<e.length){t++;let s=e[t];switch(s){case"n":r+=`
2
+ `;break;case"r":r+="\r";break;case"t":r+=" ";break;default:r+=s}continue}r+=n}return r},"decodeEscapedString"),h=class extends E{static{o(this,"RailroadEbnfValueConverter")}runConverter(a,e,r){let t=super.runConverter(a,e,r);if(a.name==="TITLE"&&typeof t=="string"){let n=t.trim();if(n.startsWith('"')&&n.endsWith('"')||n.startsWith("'")&&n.endsWith("'"))return v(n)}return t}runCustomConverter(a,e,r){if(a.name==="EBNF_STRING")return v(e);if(a.name==="EBNF_SPECIAL_SEQUENCE")return e.slice(1,-1).trim()}},C={parser:{TokenBuilder:o(()=>new b,"TokenBuilder"),ValueConverter:o(()=>new h,"ValueConverter")}};function R(a=l){let e=i(c(a),u),r=i(d({shared:e}),f,C);return e.ServiceRegistry.register(r),{shared:e,RailroadEbnf:r}}o(R,"createRailroadEbnfServices");export{C as a,R as b};
@@ -0,0 +1,32 @@
1
+ import{a as i}from"./chunk-6LQNQPBM.js";function $n(w){return w&&w.__esModule&&Object.prototype.hasOwnProperty.call(w,"default")?w.default:w}i($n,"getDefaultExportFromCjs");var D={},Ye={},oe={},_n;function ge(){if(_n)return oe;_n=1;function w(d){return typeof d>"u"||d===null}i(w,"isNothing");function E(d){return typeof d=="object"&&d!==null}i(E,"isObject");function _(d){return Array.isArray(d)?d:w(d)?[]:[d]}i(_,"toArray");function O(d,p){if(p){let C=Object.keys(p);for(let o=0,u=C.length;o<u;o+=1){let T=C[o];d[T]=p[T]}}return d}i(O,"extend");function h(d,p){let C="";for(let o=0;o<p;o+=1)C+=d;return C}i(h,"repeat");function y(d){return d===0&&Number.NEGATIVE_INFINITY===1/d}return i(y,"isNegativeZero"),oe.isNothing=w,oe.isObject=E,oe.toArray=_,oe.repeat=h,oe.isNegativeZero=y,oe.extend=O,oe}i(ge,"requireCommon");var De,In;function Ae(){if(In)return De;In=1;function w(_,O){let h="",y=_.reason||"(unknown reason)";return _.mark?(_.mark.name&&(h+='in "'+_.mark.name+'" '),h+="("+(_.mark.line+1)+":"+(_.mark.column+1)+")",!O&&_.mark.snippet&&(h+=`
2
+
3
+ `+_.mark.snippet),y+" "+h):y}i(w,"formatError");function E(_,O){Error.call(this),this.name="YAMLException",this.reason=_,this.mark=O,this.message=w(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return i(E,"YAMLException2"),E.prototype=Object.create(Error.prototype),E.prototype.constructor=E,E.prototype.toString=i(function(O){return this.name+": "+w(this,O)},"toString"),De=E,De}i(Ae,"requireException");var Be,kn;function Zn(){if(kn)return Be;kn=1;let w=ge();function E(h,y,d,p,C){let o="",u="",T=Math.floor(C/2)-1;return p-y>T&&(o=" ... ",y=p-T+o.length),d-p>T&&(u=" ...",d=p+T-u.length),{str:o+h.slice(y,d).replace(/\t/g,"\u2192")+u,pos:p-y+o.length}}i(E,"getLine");function _(h,y){return w.repeat(" ",y-h.length)+h}i(_,"padStart");function O(h,y){if(y=Object.create(y||null),!h.buffer)return null;y.maxLength||(y.maxLength=79),typeof y.indent!="number"&&(y.indent=1),typeof y.linesBefore!="number"&&(y.linesBefore=3),typeof y.linesAfter!="number"&&(y.linesAfter=2);let d=/\r?\n|\r|\0/g,p=[0],C=[],o,u=-1;for(;o=d.exec(h.buffer);)C.push(o.index),p.push(o.index+o[0].length),h.position<=o.index&&u<0&&(u=p.length-2);u<0&&(u=p.length-1);let T="",v=Math.min(h.line+y.linesAfter,C.length).toString().length,M=y.maxLength-(y.indent+v+3);for(let F=1;F<=y.linesBefore&&!(u-F<0);F++){let K=E(h.buffer,p[u-F],C[u-F],h.position-(p[u]-p[u-F]),M);T=w.repeat(" ",y.indent)+_((h.line-F+1).toString(),v)+" | "+K.str+`
4
+ `+T}let Z=E(h.buffer,p[u],C[u],h.position,M);T+=w.repeat(" ",y.indent)+_((h.line+1).toString(),v)+" | "+Z.str+`
5
+ `,T+=w.repeat("-",y.indent+v+3+Z.pos)+`^
6
+ `;for(let F=1;F<=y.linesAfter&&!(u+F>=C.length);F++){let K=E(h.buffer,p[u+F],C[u+F],h.position-(p[u]-p[u+F]),M);T+=w.repeat(" ",y.indent)+_((h.line+F+1).toString(),v)+" | "+K.str+`
7
+ `}return T.replace(/\n$/,"")}return i(O,"makeSnippet"),Be=O,Be}i(Zn,"requireSnippet");var He,Ln;function B(){if(Ln)return He;Ln=1;let w=Ae(),E=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],_=["scalar","sequence","mapping"];function O(y){let d={};return y!==null&&Object.keys(y).forEach(function(p){y[p].forEach(function(C){d[String(C)]=p})}),d}i(O,"compileStyleAliases");function h(y,d){if(d=d||{},Object.keys(d).forEach(function(p){if(E.indexOf(p)===-1)throw new w('Unknown option "'+p+'" is met in definition of "'+y+'" YAML type.')}),this.options=d,this.tag=y,this.kind=d.kind||null,this.resolve=d.resolve||function(){return!0},this.construct=d.construct||function(p){return p},this.instanceOf=d.instanceOf||null,this.predicate=d.predicate||null,this.represent=d.represent||null,this.representName=d.representName||null,this.defaultStyle=d.defaultStyle||null,this.multi=d.multi||!1,this.styleAliases=O(d.styleAliases||null),_.indexOf(this.kind)===-1)throw new w('Unknown kind "'+this.kind+'" is specified for "'+y+'" YAML type.')}return i(h,"Type2"),He=h,He}i(B,"requireType");var je,On;function un(){if(On)return je;On=1;let w=Ae(),E=B();function _(y,d){let p=[];return y[d].forEach(function(C){let o=p.length;p.forEach(function(u,T){u.tag===C.tag&&u.kind===C.kind&&u.multi===C.multi&&(o=T)}),p[o]=C}),p}i(_,"compileList");function O(){let y={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function d(p){p.multi?(y.multi[p.kind].push(p),y.multi.fallback.push(p)):y[p.kind][p.tag]=y.fallback[p.tag]=p}i(d,"collectType");for(let p=0,C=arguments.length;p<C;p+=1)arguments[p].forEach(d);return y}i(O,"compileMap");function h(y){return this.extend(y)}return i(h,"Schema2"),h.prototype.extend=i(function(d){let p=[],C=[];if(d instanceof E)C.push(d);else if(Array.isArray(d))C=C.concat(d);else if(d&&(Array.isArray(d.implicit)||Array.isArray(d.explicit)))d.implicit&&(p=p.concat(d.implicit)),d.explicit&&(C=C.concat(d.explicit));else throw new w("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");p.forEach(function(u){if(!(u instanceof E))throw new w("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(u.loadKind&&u.loadKind!=="scalar")throw new w("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(u.multi)throw new w("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),C.forEach(function(u){if(!(u instanceof E))throw new w("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let o=Object.create(h.prototype);return o.implicit=(this.implicit||[]).concat(p),o.explicit=(this.explicit||[]).concat(C),o.compiledImplicit=_(o,"implicit"),o.compiledExplicit=_(o,"explicit"),o.compiledTypeMap=O(o.compiledImplicit,o.compiledExplicit),o},"extend"),je=h,je}i(un,"requireSchema");var Ue,vn;function fn(){if(vn)return Ue;vn=1;let w=B();return Ue=new w("tag:yaml.org,2002:str",{kind:"scalar",construct:i(function(E){return E!==null?E:""},"construct")}),Ue}i(fn,"requireStr");var Ke,Nn;function an(){if(Nn)return Ke;Nn=1;let w=B();return Ke=new w("tag:yaml.org,2002:seq",{kind:"sequence",construct:i(function(E){return E!==null?E:[]},"construct")}),Ke}i(an,"requireSeq");var Ge,Mn;function pn(){if(Mn)return Ge;Mn=1;let w=B();return Ge=new w("tag:yaml.org,2002:map",{kind:"mapping",construct:i(function(E){return E!==null?E:{}},"construct")}),Ge}i(pn,"requireMap");var We,Rn;function sn(){if(Rn)return We;Rn=1;let w=un();return We=new w({explicit:[fn(),an(),pn()]}),We}i(sn,"requireFailsafe");var Qe,qn;function hn(){if(qn)return Qe;qn=1;let w=B();function E(h){if(h===null)return!0;let y=h.length;return y===1&&h==="~"||y===4&&(h==="null"||h==="Null"||h==="NULL")}i(E,"resolveYamlNull");function _(){return null}i(_,"constructYamlNull");function O(h){return h===null}return i(O,"isNull"),Qe=new w("tag:yaml.org,2002:null",{kind:"scalar",resolve:E,construct:_,predicate:O,represent:{canonical:i(function(){return"~"},"canonical"),lowercase:i(function(){return"null"},"lowercase"),uppercase:i(function(){return"NULL"},"uppercase"),camelcase:i(function(){return"Null"},"camelcase"),empty:i(function(){return""},"empty")},defaultStyle:"lowercase"}),Qe}i(hn,"require_null");var Ve,Fn;function dn(){if(Fn)return Ve;Fn=1;let w=B();function E(h){if(h===null)return!1;let y=h.length;return y===4&&(h==="true"||h==="True"||h==="TRUE")||y===5&&(h==="false"||h==="False"||h==="FALSE")}i(E,"resolveYamlBoolean");function _(h){return h==="true"||h==="True"||h==="TRUE"}i(_,"constructYamlBoolean");function O(h){return Object.prototype.toString.call(h)==="[object Boolean]"}return i(O,"isBoolean"),Ve=new w("tag:yaml.org,2002:bool",{kind:"scalar",resolve:E,construct:_,predicate:O,represent:{lowercase:i(function(h){return h?"true":"false"},"lowercase"),uppercase:i(function(h){return h?"TRUE":"FALSE"},"uppercase"),camelcase:i(function(h){return h?"True":"False"},"camelcase")},defaultStyle:"lowercase"}),Ve}i(dn,"requireBool");var Je,Yn;function mn(){if(Yn)return Je;Yn=1;let w=ge(),E=B();function _(o){return o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102}i(_,"isHexCode");function O(o){return o>=48&&o<=55}i(O,"isOctCode");function h(o){return o>=48&&o<=57}i(h,"isDecCode");function y(o){if(o===null)return!1;let u=o.length,T=0,v=!1;if(!u)return!1;let M=o[T];if((M==="-"||M==="+")&&(M=o[++T]),M==="0"){if(T+1===u)return!0;if(M=o[++T],M==="b"){for(T++;T<u;T++){if(M=o[T],M!=="0"&&M!=="1")return!1;v=!0}return v&&isFinite(d(o))}if(M==="x"){for(T++;T<u;T++){if(!_(o.charCodeAt(T)))return!1;v=!0}return v&&isFinite(d(o))}if(M==="o"){for(T++;T<u;T++){if(!O(o.charCodeAt(T)))return!1;v=!0}return v&&isFinite(d(o))}}for(;T<u;T++){if(!h(o.charCodeAt(T)))return!1;v=!0}return v?isFinite(d(o)):!1}i(y,"resolveYamlInteger");function d(o){let u=o,T=1,v=u[0];if((v==="-"||v==="+")&&(v==="-"&&(T=-1),u=u.slice(1),v=u[0]),u==="0")return 0;if(v==="0"){if(u[1]==="b")return T*parseInt(u.slice(2),2);if(u[1]==="x")return T*parseInt(u.slice(2),16);if(u[1]==="o")return T*parseInt(u.slice(2),8)}return T*parseInt(u,10)}i(d,"parseYamlInteger");function p(o){return d(o)}i(p,"constructYamlInteger");function C(o){return Object.prototype.toString.call(o)==="[object Number]"&&o%1===0&&!w.isNegativeZero(o)}return i(C,"isInteger"),Je=new E("tag:yaml.org,2002:int",{kind:"scalar",resolve:y,construct:p,predicate:C,represent:{binary:i(function(o){return o>=0?"0b"+o.toString(2):"-0b"+o.toString(2).slice(1)},"binary"),octal:i(function(o){return o>=0?"0o"+o.toString(8):"-0o"+o.toString(8).slice(1)},"octal"),decimal:i(function(o){return o.toString(10)},"decimal"),hexadecimal:i(function(o){return o>=0?"0x"+o.toString(16).toUpperCase():"-0x"+o.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Je}i(mn,"requireInt");var Xe,Pn;function gn(){if(Pn)return Xe;Pn=1;let w=ge(),E=B(),_=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),O=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function h(o){return o===null||!_.test(o)?!1:isFinite(parseFloat(o,10))?!0:O.test(o)}i(h,"resolveYamlFloat");function y(o){let u=o.toLowerCase(),T=u[0]==="-"?-1:1;return"+-".indexOf(u[0])>=0&&(u=u.slice(1)),u===".inf"?T===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:u===".nan"?NaN:T*parseFloat(u,10)}i(y,"constructYamlFloat");let d=/^[-+]?[0-9]+e/;function p(o,u){if(isNaN(o))switch(u){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===o)switch(u){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===o)switch(u){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(w.isNegativeZero(o))return"-0.0";let T=o.toString(10);return d.test(T)?T.replace("e",".e"):T}i(p,"representYamlFloat");function C(o){return Object.prototype.toString.call(o)==="[object Number]"&&(o%1!==0||w.isNegativeZero(o))}return i(C,"isFloat"),Xe=new E("tag:yaml.org,2002:float",{kind:"scalar",resolve:h,construct:y,predicate:C,represent:p,defaultStyle:"lowercase"}),Xe}i(gn,"requireFloat");var $e,Dn;function An(){return Dn||(Dn=1,$e=sn().extend({implicit:[hn(),dn(),mn(),gn()]})),$e}i(An,"requireJson");var Ze,Bn;function yn(){return Bn||(Bn=1,Ze=An()),Ze}i(yn,"requireCore");var ze,Hn;function Sn(){if(Hn)return ze;Hn=1;let w=B(),E=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),_=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function O(d){return d===null?!1:E.exec(d)!==null||_.exec(d)!==null}i(O,"resolveYamlTimestamp");function h(d){let p=0,C=null,o=E.exec(d);if(o===null&&(o=_.exec(d)),o===null)throw new Error("Date resolve error");let u=+o[1],T=+o[2]-1,v=+o[3];if(!o[4])return new Date(Date.UTC(u,T,v));let M=+o[4],Z=+o[5],F=+o[6];if(o[7]){for(p=o[7].slice(0,3);p.length<3;)p+="0";p=+p}if(o[9]){let z=+o[10],H=+(o[11]||0);C=(z*60+H)*6e4,o[9]==="-"&&(C=-C)}let K=new Date(Date.UTC(u,T,v,M,Z,F,p));return C&&K.setTime(K.getTime()-C),K}i(h,"constructYamlTimestamp");function y(d){return d.toISOString()}return i(y,"representYamlTimestamp"),ze=new w("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:O,construct:h,instanceOf:Date,represent:y}),ze}i(Sn,"requireTimestamp");var en,jn;function Cn(){if(jn)return en;jn=1;let w=B();function E(_){return _==="<<"||_===null}return i(E,"resolveYamlMerge"),en=new w("tag:yaml.org,2002:merge",{kind:"scalar",resolve:E}),en}i(Cn,"requireMerge");var nn,Un;function Tn(){if(Un)return nn;Un=1;let w=B(),E=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
8
+ \r`;function _(d){if(d===null)return!1;let p=0,C=d.length,o=E;for(let u=0;u<C;u++){let T=o.indexOf(d.charAt(u));if(!(T>64)){if(T<0)return!1;p+=6}}return p%8===0}i(_,"resolveYamlBinary");function O(d){let p=d.replace(/[\r\n=]/g,""),C=p.length,o=E,u=0,T=[];for(let M=0;M<C;M++)M%4===0&&M&&(T.push(u>>16&255),T.push(u>>8&255),T.push(u&255)),u=u<<6|o.indexOf(p.charAt(M));let v=C%4*6;return v===0?(T.push(u>>16&255),T.push(u>>8&255),T.push(u&255)):v===18?(T.push(u>>10&255),T.push(u>>2&255)):v===12&&T.push(u>>4&255),new Uint8Array(T)}i(O,"constructYamlBinary");function h(d){let p="",C=0,o=d.length,u=E;for(let v=0;v<o;v++)v%3===0&&v&&(p+=u[C>>18&63],p+=u[C>>12&63],p+=u[C>>6&63],p+=u[C&63]),C=(C<<8)+d[v];let T=o%3;return T===0?(p+=u[C>>18&63],p+=u[C>>12&63],p+=u[C>>6&63],p+=u[C&63]):T===2?(p+=u[C>>10&63],p+=u[C>>4&63],p+=u[C<<2&63],p+=u[64]):T===1&&(p+=u[C>>2&63],p+=u[C<<4&63],p+=u[64],p+=u[64]),p}i(h,"representYamlBinary");function y(d){return Object.prototype.toString.call(d)==="[object Uint8Array]"}return i(y,"isBinary"),nn=new w("tag:yaml.org,2002:binary",{kind:"scalar",resolve:_,construct:O,predicate:y,represent:h}),nn}i(Tn,"requireBinary");var rn,Kn;function wn(){if(Kn)return rn;Kn=1;let w=B(),E=Object.prototype.hasOwnProperty,_=Object.prototype.toString;function O(y){if(y===null)return!0;let d=[],p=y;for(let C=0,o=p.length;C<o;C+=1){let u=p[C],T=!1;if(_.call(u)!=="[object Object]")return!1;let v;for(v in u)if(E.call(u,v))if(!T)T=!0;else return!1;if(!T)return!1;if(d.indexOf(v)===-1)d.push(v);else return!1}return!0}i(O,"resolveYamlOmap");function h(y){return y!==null?y:[]}return i(h,"constructYamlOmap"),rn=new w("tag:yaml.org,2002:omap",{kind:"sequence",resolve:O,construct:h}),rn}i(wn,"requireOmap");var ln,Gn;function xn(){if(Gn)return ln;Gn=1;let w=B(),E=Object.prototype.toString;function _(h){if(h===null)return!0;let y=h,d=new Array(y.length);for(let p=0,C=y.length;p<C;p+=1){let o=y[p];if(E.call(o)!=="[object Object]")return!1;let u=Object.keys(o);if(u.length!==1)return!1;d[p]=[u[0],o[u[0]]]}return!0}i(_,"resolveYamlPairs");function O(h){if(h===null)return[];let y=h,d=new Array(y.length);for(let p=0,C=y.length;p<C;p+=1){let o=y[p],u=Object.keys(o);d[p]=[u[0],o[u[0]]]}return d}return i(O,"constructYamlPairs"),ln=new w("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:_,construct:O}),ln}i(xn,"requirePairs");var on,Wn;function bn(){if(Wn)return on;Wn=1;let w=B(),E=Object.prototype.hasOwnProperty;function _(h){if(h===null)return!0;let y=h;for(let d in y)if(E.call(y,d)&&y[d]!==null)return!1;return!0}i(_,"resolveYamlSet");function O(h){return h!==null?h:{}}return i(O,"constructYamlSet"),on=new w("tag:yaml.org,2002:set",{kind:"mapping",resolve:_,construct:O}),on}i(bn,"requireSet");var tn,Qn;function Pe(){return Qn||(Qn=1,tn=yn().extend({implicit:[Sn(),Cn()],explicit:[Tn(),wn(),xn(),bn()]})),tn}i(Pe,"require_default");var Vn;function zn(){if(Vn)return Ye;Vn=1;let w=ge(),E=Ae(),_=Zn(),O=Pe(),h=Object.prototype.hasOwnProperty,y=1,d=2,p=3,C=4,o=1,u=2,T=3,v=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,M=/[\x85\u2028\u2029]/,Z=/[,\[\]{}]/,F=/^(?:!|!!|![0-9A-Za-z-]+!)$/,K=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function z(e){return Object.prototype.toString.call(e)}i(z,"_class");function H(e){return e===10||e===13}i(H,"isEol");function j(e){return e===9||e===32}i(j,"isWhiteSpace");function P(e){return e===9||e===32||e===10||e===13}i(P,"isWsOrEol");function $(e){return e===44||e===91||e===93||e===123||e===125}i($,"isFlowIndicator");function Ne(e){if(e>=48&&e<=57)return e-48;let r=e|32;return r>=97&&r<=102?r-97+10:-1}i(Ne,"fromHexCode");function Me(e){return e===120?2:e===117?4:e===85?8:0}i(Me,"escapedHexLen");function ye(e){return e>=48&&e<=57?e-48:-1}i(ye,"fromDecimalCode");function ce(e){switch(e){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
9
+ `;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}i(ce,"simpleEscapeSequence");function Re(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}i(Re,"charFromCodepoint");function ue(e,r,c){r==="__proto__"?Object.defineProperty(e,r,{configurable:!0,enumerable:!0,writable:!0,value:c}):e[r]=c}i(ue,"setProperty");let qe=new Array(256),Se=new Array(256);for(let e=0;e<256;e++)qe[e]=ce(e)?1:0,Se[e]=ce(e);function Y(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||O,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.maxDepth=typeof r.maxDepth=="number"?r.maxDepth:100,this.maxTotalMergeKeys=typeof r.maxTotalMergeKeys=="number"?r.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}i(Y,"State");function Ce(e,r){let c={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return c.snippet=_(c),new E(r,c)}i(Ce,"generateError");function I(e,r){throw Ce(e,r)}i(I,"throwError");function ee(e,r){e.onWarning&&e.onWarning.call(null,Ce(e,r))}i(ee,"throwWarning");function G(e,r,c){let s=e.anchorMapTransactions;if(s.length!==0){let t=s[s.length-1];h.call(t,r)||(t[r]={existed:h.call(e.anchorMap,r),value:e.anchorMap[r]})}e.anchorMap[r]=c}i(G,"storeAnchor");function Fe(e){e.anchorMapTransactions.push(Object.create(null))}i(Fe,"beginAnchorTransaction");function ne(e){let r=e.anchorMapTransactions.pop(),c=e.anchorMapTransactions;if(c.length===0)return;let s=c[c.length-1],t=Object.keys(r);for(let S=0,n=t.length;S<n;S+=1){let l=t[S];h.call(s,l)||(s[l]=r[l])}}i(ne,"commitAnchorTransaction");function Te(e){let r=e.anchorMapTransactions.pop(),c=Object.keys(r);for(let s=c.length-1;s>=0;s-=1){let t=r[c[s]];t.existed?e.anchorMap[c[s]]=t.value:delete e.anchorMap[c[s]]}}i(Te,"rollbackAnchorTransaction");function te(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}i(te,"snapshotState");function ie(e,r){e.position=r.position,e.line=r.line,e.lineStart=r.lineStart,e.lineIndent=r.lineIndent,e.firstTabInLine=r.firstTabInLine,e.tag=r.tag,e.anchor=r.anchor,e.kind=r.kind,e.result=r.result}i(ie,"restoreState");let we={YAML:i(function(r,c,s){r.version!==null&&I(r,"duplication of %YAML directive"),s.length!==1&&I(r,"YAML directive accepts exactly one argument");let t=/^([0-9]+)\.([0-9]+)$/.exec(s[0]);t===null&&I(r,"ill-formed argument of the YAML directive");let S=parseInt(t[1],10),n=parseInt(t[2],10);S!==1&&I(r,"unacceptable YAML version of the document"),r.version=s[0],r.checkLineBreaks=n<2,n!==1&&n!==2&&ee(r,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:i(function(r,c,s){let t;s.length!==2&&I(r,"TAG directive accepts exactly two arguments");let S=s[0];t=s[1],F.test(S)||I(r,"ill-formed tag handle (first argument) of the TAG directive"),h.call(r.tagMap,S)&&I(r,'there is a previously declared suffix for "'+S+'" tag handle'),K.test(t)||I(r,"ill-formed tag prefix (second argument) of the TAG directive");try{t=decodeURIComponent(t)}catch{I(r,"tag prefix is malformed: "+t)}r.tagMap[S]=t},"handleTagDirective")};function U(e,r,c,s){if(r<c){let t=e.input.slice(r,c);if(s)for(let S=0,n=t.length;S<n;S+=1){let l=t.charCodeAt(S);l===9||l>=32&&l<=1114111||I(e,"expected valid JSON character")}else v.test(t)&&I(e,"the stream contains non-printable characters");e.result+=t}}i(U,"captureSegment");function J(e,r,c,s){w.isObject(c)||I(e,"cannot merge mappings; the provided source object is unacceptable");let t=Object.keys(c);for(let S=0,n=t.length;S<n;S+=1){let l=t[S];e.maxTotalMergeKeys!==-1&&++e.totalMergeKeys>e.maxTotalMergeKeys&&I(e,"merge keys exceeded maxTotalMergeKeys ("+e.maxTotalMergeKeys+")"),h.call(r,l)||(ue(r,l,c[l]),s[l]=!0)}}i(J,"mergeMappings");function W(e,r,c,s,t,S,n,l,g){if(Array.isArray(t)){t=Array.prototype.slice.call(t);for(let f=0,a=t.length;f<a;f+=1)Array.isArray(t[f])&&I(e,"nested arrays are not supported inside keys"),typeof t=="object"&&z(t[f])==="[object Object]"&&(t[f]="[object Object]")}if(typeof t=="object"&&z(t)==="[object Object]"&&(t="[object Object]"),t=String(t),r===null&&(r={}),s==="tag:yaml.org,2002:merge")if(Array.isArray(S))for(let f=0,a=S.length;f<a;f+=1)J(e,r,S[f],c);else J(e,r,S,c);else!e.json&&!h.call(c,t)&&h.call(r,t)&&(e.line=n||e.line,e.lineStart=l||e.lineStart,e.position=g||e.position,I(e,"duplicated mapping key")),ue(r,t,S),delete c[t];return r}i(W,"storeMappingPair");function re(e){let r=e.input.charCodeAt(e.position);r===10?e.position++:r===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):I(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}i(re,"readLineBreak");function q(e,r,c){let s=0,t=e.input.charCodeAt(e.position);for(;t!==0;){for(;j(t);)t===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),t=e.input.charCodeAt(++e.position);if(r&&t===35)do t=e.input.charCodeAt(++e.position);while(t!==10&&t!==13&&t!==0);if(H(t))for(re(e),t=e.input.charCodeAt(e.position),s++,e.lineIndent=0;t===32;)e.lineIndent++,t=e.input.charCodeAt(++e.position);else break}return c!==-1&&s!==0&&e.lineIndent<c&&ee(e,"deficient indentation"),s}i(q,"skipSeparationSpace");function le(e){let r=e.position,c=e.input.charCodeAt(r);return!!((c===45||c===46)&&c===e.input.charCodeAt(r+1)&&c===e.input.charCodeAt(r+2)&&(r+=3,c=e.input.charCodeAt(r),c===0||P(c)))}i(le,"testDocumentSeparator");function Q(e,r){r===1?e.result+=" ":r>1&&(e.result+=w.repeat(`
10
+ `,r-1))}i(Q,"writeFoldedLines");function fe(e,r,c){let s,t,S,n,l,g,f=e.kind,a=e.result,A=e.input.charCodeAt(e.position);if(P(A)||$(A)||A===35||A===38||A===42||A===33||A===124||A===62||A===39||A===34||A===37||A===64||A===96)return!1;if(A===63||A===45){let m=e.input.charCodeAt(e.position+1);if(P(m)||c&&$(m))return!1}for(e.kind="scalar",e.result="",s=t=e.position,S=!1;A!==0;){if(A===58){let m=e.input.charCodeAt(e.position+1);if(P(m)||c&&$(m))break}else if(A===35){let m=e.input.charCodeAt(e.position-1);if(P(m))break}else{if(e.position===e.lineStart&&le(e)||c&&$(A))break;if(H(A))if(n=e.line,l=e.lineStart,g=e.lineIndent,q(e,!1,-1),e.lineIndent>=r){S=!0,A=e.input.charCodeAt(e.position);continue}else{e.position=t,e.line=n,e.lineStart=l,e.lineIndent=g;break}}S&&(U(e,s,t,!1),Q(e,e.line-n),s=t=e.position,S=!1),j(A)||(t=e.position+1),A=e.input.charCodeAt(++e.position)}return U(e,s,t,!1),e.result?!0:(e.kind=f,e.result=a,!1)}i(fe,"readPlainScalar");function xe(e,r){let c,s,t=e.input.charCodeAt(e.position);if(t!==39)return!1;for(e.kind="scalar",e.result="",e.position++,c=s=e.position;(t=e.input.charCodeAt(e.position))!==0;)if(t===39)if(U(e,c,e.position,!0),t=e.input.charCodeAt(++e.position),t===39)c=e.position,e.position++,s=e.position;else return!0;else H(t)?(U(e,c,s,!0),Q(e,q(e,!1,r)),c=s=e.position):e.position===e.lineStart&&le(e)?I(e,"unexpected end of the document within a single quoted scalar"):(e.position++,j(t)||(s=e.position));I(e,"unexpected end of the stream within a single quoted scalar")}i(xe,"readSingleQuotedScalar");function ae(e,r){let c,s,t,S=e.input.charCodeAt(e.position);if(S!==34)return!1;for(e.kind="scalar",e.result="",e.position++,c=s=e.position;(S=e.input.charCodeAt(e.position))!==0;){if(S===34)return U(e,c,e.position,!0),e.position++,!0;if(S===92){if(U(e,c,e.position,!0),S=e.input.charCodeAt(++e.position),H(S))q(e,!1,r);else if(S<256&&qe[S])e.result+=Se[S],e.position++;else if((t=Me(S))>0){let n=t,l=0;for(;n>0;n--)S=e.input.charCodeAt(++e.position),(t=Ne(S))>=0?l=(l<<4)+t:I(e,"expected hexadecimal character");e.result+=Re(l),e.position++}else I(e,"unknown escape sequence");c=s=e.position}else H(S)?(U(e,c,s,!0),Q(e,q(e,!1,r)),c=s=e.position):e.position===e.lineStart&&le(e)?I(e,"unexpected end of the document within a double quoted scalar"):(e.position++,j(S)||(s=e.position))}I(e,"unexpected end of the stream within a double quoted scalar")}i(ae,"readDoubleQuotedScalar");function be(e,r){let c=!0,s,t,S,n=e.tag,l,g=e.anchor,f,a,A,m,b=Object.create(null),x,k,L,N=e.input.charCodeAt(e.position);if(N===91)f=93,m=!1,l=[];else if(N===123)f=125,m=!0,l={};else return!1;for(e.anchor!==null&&G(e,e.anchor,l),N=e.input.charCodeAt(++e.position);N!==0;){if(q(e,!0,r),N=e.input.charCodeAt(e.position),N===f)return e.position++,e.tag=n,e.anchor=g,e.kind=m?"mapping":"sequence",e.result=l,!0;if(c?N===44&&I(e,"expected the node content, but found ','"):I(e,"missed comma between flow collection entries"),k=x=L=null,a=A=!1,N===63){let R=e.input.charCodeAt(e.position+1);P(R)&&(a=A=!0,e.position++,q(e,!0,r))}s=e.line,t=e.lineStart,S=e.position,V(e,r,y,!1,!0),k=e.tag,x=e.result,q(e,!0,r),N=e.input.charCodeAt(e.position),(A||e.line===s)&&N===58&&(a=!0,N=e.input.charCodeAt(++e.position),q(e,!0,r),V(e,r,y,!1,!0),L=e.result),m?W(e,l,b,k,x,L,s,t,S):a?l.push(W(e,null,b,k,x,L,s,t,S)):l.push(x),q(e,!0,r),N=e.input.charCodeAt(e.position),N===44?(c=!0,N=e.input.charCodeAt(++e.position)):c=!1}I(e,"unexpected end of the stream within a flow collection")}i(be,"readFlowCollection");function Ee(e,r){let c,s=o,t=!1,S=!1,n=r,l=0,g=!1,f,a=e.input.charCodeAt(e.position);if(a===124)c=!1;else if(a===62)c=!0;else return!1;for(e.kind="scalar",e.result="";a!==0;)if(a=e.input.charCodeAt(++e.position),a===43||a===45)o===s?s=a===43?T:u:I(e,"repeat of a chomping mode identifier");else if((f=ye(a))>=0)f===0?I(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):S?I(e,"repeat of an indentation width identifier"):(n=r+f-1,S=!0);else break;if(j(a)){do a=e.input.charCodeAt(++e.position);while(j(a));if(a===35)do a=e.input.charCodeAt(++e.position);while(!H(a)&&a!==0)}for(;a!==0;){for(re(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!S||e.lineIndent<n)&&a===32;)e.lineIndent++,a=e.input.charCodeAt(++e.position);if(!S&&e.lineIndent>n&&(n=e.lineIndent),H(a)){l++;continue}if(!S&&n===0&&I(e,"missing indentation for block scalar"),e.lineIndent<n){s===T?e.result+=w.repeat(`
11
+ `,t?1+l:l):s===o&&t&&(e.result+=`
12
+ `);break}c?j(a)?(g=!0,e.result+=w.repeat(`
13
+ `,t?1+l:l)):g?(g=!1,e.result+=w.repeat(`
14
+ `,l+1)):l===0?t&&(e.result+=" "):e.result+=w.repeat(`
15
+ `,l):e.result+=w.repeat(`
16
+ `,t?1+l:l),t=!0,S=!0,l=0;let A=e.position;for(;!H(a)&&a!==0;)a=e.input.charCodeAt(++e.position);U(e,A,e.position,!1)}return!0}i(Ee,"readBlockScalar");function X(e,r){let c=e.tag,s=e.anchor,t=[],S=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&G(e,e.anchor,t);let n=e.input.charCodeAt(e.position);for(;n!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,I(e,"tab characters must not be used in indentation")),n===45);){let l=e.input.charCodeAt(e.position+1);if(!P(l))break;if(S=!0,e.position++,q(e,!0,-1)&&e.lineIndent<=r){t.push(null),n=e.input.charCodeAt(e.position);continue}let g=e.line;if(V(e,r,p,!1,!0),t.push(e.result),q(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===g||e.lineIndent>r)&&n!==0)I(e,"bad indentation of a sequence entry");else if(e.lineIndent<r)break}return S?(e.tag=c,e.anchor=s,e.kind="sequence",e.result=t,!0):!1}i(X,"readBlockSequence");function pe(e,r,c){let s,t,S,n,l=e.tag,g=e.anchor,f={},a=Object.create(null),A=null,m=null,b=null,x=!1,k=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&G(e,e.anchor,f);let L=e.input.charCodeAt(e.position);for(;L!==0;){!x&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,I(e,"tab characters must not be used in indentation"));let N=e.input.charCodeAt(e.position+1),R=e.line;if((L===63||L===58)&&P(N))L===63?(x&&(W(e,f,a,A,m,null,t,S,n),A=m=b=null),k=!0,x=!0,s=!0):x?(x=!1,s=!0):I(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,L=N;else{if(t=e.line,S=e.lineStart,n=e.position,!V(e,c,d,!1,!0))break;if(e.line===R){for(L=e.input.charCodeAt(e.position);j(L);)L=e.input.charCodeAt(++e.position);if(L===58)L=e.input.charCodeAt(++e.position),P(L)||I(e,"a whitespace character is expected after the key-value separator within a block mapping"),x&&(W(e,f,a,A,m,null,t,S,n),A=m=b=null),k=!0,x=!1,s=!1,A=e.tag,m=e.result;else if(k)I(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=l,e.anchor=g,!0}else if(k)I(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=l,e.anchor=g,!0}if((e.line===R||e.lineIndent>r)&&(x&&(t=e.line,S=e.lineStart,n=e.position),V(e,r,C,!0,s)&&(x?m=e.result:b=e.result),x||(W(e,f,a,A,m,b,t,S,n),A=m=b=null),q(e,!0,-1),L=e.input.charCodeAt(e.position)),(e.line===R||e.lineIndent>r)&&L!==0)I(e,"bad indentation of a mapping entry");else if(e.lineIndent<r)break}return x&&W(e,f,a,A,m,null,t,S,n),k&&(e.tag=l,e.anchor=g,e.kind="mapping",e.result=f),k}i(pe,"readBlockMapping");function _e(e){let r=!1,c=!1,s,t,S=e.input.charCodeAt(e.position);if(S!==33)return!1;e.tag!==null&&I(e,"duplication of a tag property"),S=e.input.charCodeAt(++e.position),S===60?(r=!0,S=e.input.charCodeAt(++e.position)):S===33?(c=!0,s="!!",S=e.input.charCodeAt(++e.position)):s="!";let n=e.position;if(r){do S=e.input.charCodeAt(++e.position);while(S!==0&&S!==62);e.position<e.length?(t=e.input.slice(n,e.position),S=e.input.charCodeAt(++e.position)):I(e,"unexpected end of the stream within a verbatim tag")}else{for(;S!==0&&!P(S);)S===33&&(c?I(e,"tag suffix cannot contain exclamation marks"):(s=e.input.slice(n-1,e.position+1),F.test(s)||I(e,"named tag handle cannot contain such characters"),c=!0,n=e.position+1)),S=e.input.charCodeAt(++e.position);t=e.input.slice(n,e.position),Z.test(t)&&I(e,"tag suffix cannot contain flow indicator characters")}t&&!K.test(t)&&I(e,"tag name cannot contain such characters: "+t);try{t=decodeURIComponent(t)}catch{I(e,"tag name is malformed: "+t)}return r?e.tag=t:h.call(e.tagMap,s)?e.tag=e.tagMap[s]+t:s==="!"?e.tag="!"+t:s==="!!"?e.tag="tag:yaml.org,2002:"+t:I(e,'undeclared tag handle "'+s+'"'),!0}i(_e,"readTagProperty");function se(e){let r=e.input.charCodeAt(e.position);if(r!==38)return!1;e.anchor!==null&&I(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position);let c=e.position;for(;r!==0&&!P(r)&&!$(r);)r=e.input.charCodeAt(++e.position);return e.position===c&&I(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(c,e.position),!0}i(se,"readAnchorProperty");function he(e){let r=e.input.charCodeAt(e.position);if(r!==42)return!1;r=e.input.charCodeAt(++e.position);let c=e.position;for(;r!==0&&!P(r)&&!$(r);)r=e.input.charCodeAt(++e.position);e.position===c&&I(e,"name of an alias node must contain at least one character");let s=e.input.slice(c,e.position);return h.call(e.anchorMap,s)||I(e,'unidentified alias "'+s+'"'),e.result=e.anchorMap[s],q(e,!0,-1),!0}i(he,"readAlias");function Ie(e,r,c,s){let t=te(e);return Fe(e),ie(e,r),e.tag=null,e.anchor=null,e.kind=null,e.result=null,pe(e,c,s)&&e.kind==="mapping"?(ne(e),!0):(Te(e),ie(e,t),!1)}i(Ie,"tryReadBlockMappingFromProperty");function V(e,r,c,s,t){let S,n,l=1,g=!1,f=!1,a=null,A,m,b;e.depth>=e.maxDepth&&I(e,"nesting exceeded maxDepth ("+e.maxDepth+")"),e.depth+=1,e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let x=S=n=C===c||p===c;if(s&&q(e,!0,-1)&&(g=!0,e.lineIndent>r?l=1:e.lineIndent===r?l=0:e.lineIndent<r&&(l=-1)),l===1)for(;;){let k=e.input.charCodeAt(e.position),L=te(e);if(g&&(k===33&&e.tag!==null||k===38&&e.anchor!==null)||!_e(e)&&!se(e))break;a===null&&(a=L),q(e,!0,-1)?(g=!0,n=x,e.lineIndent>r?l=1:e.lineIndent===r?l=0:e.lineIndent<r&&(l=-1)):n=!1}if(n&&(n=g||t),l===1||C===c)if(y===c||d===c?m=r:m=r+1,b=e.position-e.lineStart,l===1)if(n&&(X(e,b)||pe(e,b,m))||be(e,m))f=!0;else{let k=e.input.charCodeAt(e.position);a!==null&&x&&!n&&k!==124&&k!==62&&Ie(e,a,a.position-a.lineStart,m)||S&&Ee(e,m)||xe(e,m)||ae(e,m)?f=!0:he(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&I(e,"alias node should not have any properties")):fe(e,m,y===c)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&G(e,e.anchor,e.result)}else l===0&&(f=n&&X(e,b));if(e.tag===null)e.anchor!==null&&G(e,e.anchor,e.result);else if(e.tag==="?"){e.result!==null&&e.kind!=="scalar"&&I(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"');for(let k=0,L=e.implicitTypes.length;k<L;k+=1)if(A=e.implicitTypes[k],A.resolve(e.result)){e.result=A.construct(e.result),e.tag=A.tag,e.anchor!==null&&G(e,e.anchor,e.result);break}}else if(e.tag!=="!"){if(h.call(e.typeMap[e.kind||"fallback"],e.tag))A=e.typeMap[e.kind||"fallback"][e.tag];else{A=null;let k=e.typeMap.multi[e.kind||"fallback"];for(let L=0,N=k.length;L<N;L+=1)if(e.tag.slice(0,k[L].tag.length)===k[L].tag){A=k[L];break}}A||I(e,"unknown tag !<"+e.tag+">"),e.result!==null&&A.kind!==e.kind&&I(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+A.kind+'", not "'+e.kind+'"'),A.resolve(e.result,e.tag)?(e.result=A.construct(e.result,e.tag),e.anchor!==null&&G(e,e.anchor,e.result)):I(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.depth-=1,e.tag!==null||e.anchor!==null||f}i(V,"composeNode");function ke(e){let r=e.position,c=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(q(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){c=!0,s=e.input.charCodeAt(++e.position);let t=e.position;for(;s!==0&&!P(s);)s=e.input.charCodeAt(++e.position);let S=e.input.slice(t,e.position),n=[];for(S.length<1&&I(e,"directive name must not be less than one character in length");s!==0;){for(;j(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!H(s));break}if(H(s))break;for(t=e.position;s!==0&&!P(s);)s=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}s!==0&&re(e),h.call(we,S)?we[S](e,S,n):ee(e,'unknown document directive "'+S+'"')}if(q(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,q(e,!0,-1)):c&&I(e,"directives end mark is expected"),V(e,e.lineIndent-1,C,!1,!0),q(e,!0,-1),e.checkLineBreaks&&M.test(e.input.slice(r,e.position))&&ee(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&le(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,q(e,!0,-1));return}e.position<e.length-1&&I(e,"end of the stream or a document separator is expected")}i(ke,"readDocument");function de(e,r){e=String(e),r=r||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
17
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));let c=new Y(e,r),s=e.indexOf("\0");for(s!==-1&&(c.position=s,I(c,"null byte is not allowed in input")),c.input+="\0";c.input.charCodeAt(c.position)===32;)c.lineIndent+=1,c.position+=1;for(;c.position<c.length-1;)ke(c);return c.documents}i(de,"loadDocuments");function me(e,r,c){r!==null&&typeof r=="object"&&typeof c>"u"&&(c=r,r=null);let s=de(e,c);if(typeof r!="function")return s;for(let t=0,S=s.length;t<S;t+=1)r(s[t])}i(me,"loadAll2");function Le(e,r){let c=de(e,r);if(c.length!==0){if(c.length===1)return c[0];throw new E("expected a single document in the stream, but found more")}}return i(Le,"load2"),Ye.loadAll=me,Ye.load=Le,Ye}i(zn,"requireLoader");var cn={},Jn;function ei(){if(Jn)return cn;Jn=1;let w=ge(),E=Ae(),_=Pe(),O=Object.prototype.toString,h=Object.prototype.hasOwnProperty,y=65279,d=9,p=10,C=13,o=32,u=33,T=34,v=35,M=37,Z=38,F=39,K=42,z=44,H=45,j=58,P=61,$=62,Ne=63,Me=64,ye=91,ce=93,Re=96,ue=123,qe=124,Se=125,Y={};Y[0]="\\0",Y[7]="\\a",Y[8]="\\b",Y[9]="\\t",Y[10]="\\n",Y[11]="\\v",Y[12]="\\f",Y[13]="\\r",Y[27]="\\e",Y[34]='\\"',Y[92]="\\\\",Y[133]="\\N",Y[160]="\\_",Y[8232]="\\L",Y[8233]="\\P";let Ce=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],I=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function ee(n,l){if(l===null)return{};let g={},f=Object.keys(l);for(let a=0,A=f.length;a<A;a+=1){let m=f[a],b=String(l[m]);m.slice(0,2)==="!!"&&(m="tag:yaml.org,2002:"+m.slice(2));let x=n.compiledTypeMap.fallback[m];x&&h.call(x.styleAliases,b)&&(b=x.styleAliases[b]),g[m]=b}return g}i(ee,"compileStyleMap");function G(n){let l,g,f=n.toString(16).toUpperCase();if(n<=255)l="x",g=2;else if(n<=65535)l="u",g=4;else if(n<=4294967295)l="U",g=8;else throw new E("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+l+w.repeat("0",g-f.length)+f}i(G,"encodeHex");let Fe=1,ne=2;function Te(n){this.schema=n.schema||_,this.indent=Math.max(1,n.indent||2),this.noArrayIndent=n.noArrayIndent||!1,this.skipInvalid=n.skipInvalid||!1,this.flowLevel=w.isNothing(n.flowLevel)?-1:n.flowLevel,this.styleMap=ee(this.schema,n.styles||null),this.sortKeys=n.sortKeys||!1,this.lineWidth=n.lineWidth||80,this.noRefs=n.noRefs||!1,this.noCompatMode=n.noCompatMode||!1,this.condenseFlow=n.condenseFlow||!1,this.quotingType=n.quotingType==='"'?ne:Fe,this.forceQuotes=n.forceQuotes||!1,this.replacer=typeof n.replacer=="function"?n.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}i(Te,"State");function te(n,l){let g=w.repeat(" ",l),f=0,a="",A=n.length;for(;f<A;){let m,b=n.indexOf(`
18
+ `,f);b===-1?(m=n.slice(f),f=A):(m=n.slice(f,b+1),f=b+1),m.length&&m!==`
19
+ `&&(a+=g),a+=m}return a}i(te,"indentString");function ie(n,l){return`
20
+ `+w.repeat(" ",n.indent*l)}i(ie,"generateNextLine");function we(n,l){for(let g=0,f=n.implicitTypes.length;g<f;g+=1)if(n.implicitTypes[g].resolve(l))return!0;return!1}i(we,"testImplicitResolving");function U(n){return n===o||n===d}i(U,"isWhitespace");function J(n){return n>=32&&n<=126||n>=161&&n<=55295&&n!==8232&&n!==8233||n>=57344&&n<=65533&&n!==y||n>=65536&&n<=1114111}i(J,"isPrintable");function W(n){return J(n)&&n!==y&&n!==C&&n!==p}i(W,"isNsCharOrWhitespace");function re(n,l,g){let f=W(n),a=f&&!U(n);return(g?f:f&&n!==z&&n!==ye&&n!==ce&&n!==ue&&n!==Se)&&n!==v&&!(l===j&&!a)||W(l)&&!U(l)&&n===v||l===j&&a}i(re,"isPlainSafe");function q(n){return J(n)&&n!==y&&!U(n)&&n!==H&&n!==Ne&&n!==j&&n!==z&&n!==ye&&n!==ce&&n!==ue&&n!==Se&&n!==v&&n!==Z&&n!==K&&n!==u&&n!==qe&&n!==P&&n!==$&&n!==F&&n!==T&&n!==M&&n!==Me&&n!==Re}i(q,"isPlainSafeFirst");function le(n){return!U(n)&&n!==j}i(le,"isPlainSafeLast");function Q(n,l){let g=n.charCodeAt(l),f;return g>=55296&&g<=56319&&l+1<n.length&&(f=n.charCodeAt(l+1),f>=56320&&f<=57343)?(g-55296)*1024+f-56320+65536:g}i(Q,"codePointAt");function fe(n){return/^\n* /.test(n)}i(fe,"needIndentIndicator");let xe=1,ae=2,be=3,Ee=4,X=5;function pe(n,l,g,f,a,A,m,b){let x,k=0,L=null,N=!1,R=!1,En=f!==-1,Oe=-1,ve=q(Q(n,0))&&le(Q(n,n.length-1));if(l||m)for(x=0;x<n.length;k>=65536?x+=2:x++){if(k=Q(n,x),!J(k))return X;ve=ve&&re(k,L,b),L=k}else{for(x=0;x<n.length;k>=65536?x+=2:x++){if(k=Q(n,x),k===p)N=!0,En&&(R=R||x-Oe-1>f&&n[Oe+1]!==" ",Oe=x);else if(!J(k))return X;ve=ve&&re(k,L,b),L=k}R=R||En&&x-Oe-1>f&&n[Oe+1]!==" "}return!N&&!R?ve&&!m&&!a(n)?xe:A===ne?X:ae:g>9&&fe(n)?X:m?A===ne?X:ae:R?Ee:be}i(pe,"chooseScalarStyle");function _e(n,l,g,f,a){n.dump=(function(){if(l.length===0)return n.quotingType===ne?'""':"''";if(!n.noCompatMode&&(Ce.indexOf(l)!==-1||I.test(l)))return n.quotingType===ne?'"'+l+'"':"'"+l+"'";let A=n.indent*Math.max(1,g),m=n.lineWidth===-1?-1:Math.max(Math.min(n.lineWidth,40),n.lineWidth-A),b=f||n.flowLevel>-1&&g>=n.flowLevel;function x(k){return we(n,k)}switch(i(x,"testAmbiguity"),pe(l,b,n.indent,m,x,n.quotingType,n.forceQuotes&&!f,a)){case xe:return l;case ae:return"'"+l.replace(/'/g,"''")+"'";case be:return"|"+se(l,n.indent)+he(te(l,A));case Ee:return">"+se(l,n.indent)+he(te(Ie(l,m),A));case X:return'"'+ke(l)+'"';default:throw new E("impossible error: invalid scalar style")}})()}i(_e,"writeScalar");function se(n,l){let g=fe(n)?String(l):"",f=n[n.length-1]===`
21
+ `,A=f&&(n[n.length-2]===`
22
+ `||n===`
23
+ `)?"+":f?"":"-";return g+A+`
24
+ `}i(se,"blockHeader");function he(n){return n[n.length-1]===`
25
+ `?n.slice(0,-1):n}i(he,"dropEndingNewline");function Ie(n,l){let g=/(\n+)([^\n]*)/g,f=(function(){let b=n.indexOf(`
26
+ `);return b=b!==-1?b:n.length,g.lastIndex=b,V(n.slice(0,b),l)})(),a=n[0]===`
27
+ `||n[0]===" ",A,m;for(;m=g.exec(n);){let b=m[1],x=m[2];A=x[0]===" ",f+=b+(!a&&!A&&x!==""?`
28
+ `:"")+V(x,l),a=A}return f}i(Ie,"foldString");function V(n,l){if(n===""||n[0]===" ")return n;let g=/ [^ ]/g,f,a=0,A,m=0,b=0,x="";for(;f=g.exec(n);)b=f.index,b-a>l&&(A=m>a?m:b,x+=`
29
+ `+n.slice(a,A),a=A+1),m=b;return x+=`
30
+ `,n.length-a>l&&m>a?x+=n.slice(a,m)+`
31
+ `+n.slice(m+1):x+=n.slice(a),x.slice(1)}i(V,"foldLine");function ke(n){let l="",g=0;for(let f=0;f<n.length;g>=65536?f+=2:f++){g=Q(n,f);let a=Y[g];!a&&J(g)?(l+=n[f],g>=65536&&(l+=n[f+1])):l+=a||G(g)}return l}i(ke,"escapeString");function de(n,l,g){let f="",a=n.tag;for(let A=0,m=g.length;A<m;A+=1){let b=g[A];n.replacer&&(b=n.replacer.call(g,String(A),b)),(c(n,l,b,!1,!1)||typeof b>"u"&&c(n,l,null,!1,!1))&&(f!==""&&(f+=","+(n.condenseFlow?"":" ")),f+=n.dump)}n.tag=a,n.dump="["+f+"]"}i(de,"writeFlowSequence");function me(n,l,g,f){let a="",A=n.tag;for(let m=0,b=g.length;m<b;m+=1){let x=g[m];n.replacer&&(x=n.replacer.call(g,String(m),x)),(c(n,l+1,x,!0,!0,!1,!0)||typeof x>"u"&&c(n,l+1,null,!0,!0,!1,!0))&&((!f||a!=="")&&(a+=ie(n,l)),n.dump&&p===n.dump.charCodeAt(0)?a+="-":a+="- ",a+=n.dump)}n.tag=A,n.dump=a||"[]"}i(me,"writeBlockSequence");function Le(n,l,g){let f="",a=n.tag,A=Object.keys(g);for(let m=0,b=A.length;m<b;m+=1){let x="";f!==""&&(x+=", "),n.condenseFlow&&(x+='"');let k=A[m],L=g[k];n.replacer&&(L=n.replacer.call(g,k,L)),c(n,l,k,!1,!1)&&(n.dump.length>1024&&(x+="? "),x+=n.dump+(n.condenseFlow?'"':"")+":"+(n.condenseFlow?"":" "),c(n,l,L,!1,!1)&&(x+=n.dump,f+=x))}n.tag=a,n.dump="{"+f+"}"}i(Le,"writeFlowMapping");function e(n,l,g,f){let a="",A=n.tag,m=Object.keys(g);if(n.sortKeys===!0)m.sort();else if(typeof n.sortKeys=="function")m.sort(n.sortKeys);else if(n.sortKeys)throw new E("sortKeys must be a boolean or a function");for(let b=0,x=m.length;b<x;b+=1){let k="";(!f||a!=="")&&(k+=ie(n,l));let L=m[b],N=g[L];if(n.replacer&&(N=n.replacer.call(g,L,N)),!c(n,l+1,L,!0,!0,!0))continue;let R=n.tag!==null&&n.tag!=="?"||n.dump&&n.dump.length>1024;R&&(n.dump&&p===n.dump.charCodeAt(0)?k+="?":k+="? "),k+=n.dump,R&&(k+=ie(n,l)),c(n,l+1,N,!0,R)&&(n.dump&&p===n.dump.charCodeAt(0)?k+=":":k+=": ",k+=n.dump,a+=k)}n.tag=A,n.dump=a||"{}"}i(e,"writeBlockMapping");function r(n,l,g){let f=g?n.explicitTypes:n.implicitTypes;for(let a=0,A=f.length;a<A;a+=1){let m=f[a];if((m.instanceOf||m.predicate)&&(!m.instanceOf||typeof l=="object"&&l instanceof m.instanceOf)&&(!m.predicate||m.predicate(l))){if(g?m.multi&&m.representName?n.tag=m.representName(l):n.tag=m.tag:n.tag="?",m.represent){let b=n.styleMap[m.tag]||m.defaultStyle,x;if(O.call(m.represent)==="[object Function]")x=m.represent(l,b);else if(h.call(m.represent,b))x=m.represent[b](l,b);else throw new E("!<"+m.tag+'> tag resolver accepts not "'+b+'" style');n.dump=x}return!0}}return!1}i(r,"detectType");function c(n,l,g,f,a,A,m){n.tag=null,n.dump=g,r(n,g,!1)||r(n,g,!0);let b=O.call(n.dump),x=f;f&&(f=n.flowLevel<0||n.flowLevel>l);let k=b==="[object Object]"||b==="[object Array]",L,N;if(k&&(L=n.duplicates.indexOf(g),N=L!==-1),(n.tag!==null&&n.tag!=="?"||N||n.indent!==2&&l>0)&&(a=!1),N&&n.usedDuplicates[L])n.dump="*ref_"+L;else{if(k&&N&&!n.usedDuplicates[L]&&(n.usedDuplicates[L]=!0),b==="[object Object]")f&&Object.keys(n.dump).length!==0?(e(n,l,n.dump,a),N&&(n.dump="&ref_"+L+n.dump)):(Le(n,l,n.dump),N&&(n.dump="&ref_"+L+" "+n.dump));else if(b==="[object Array]")f&&n.dump.length!==0?(n.noArrayIndent&&!m&&l>0?me(n,l-1,n.dump,a):me(n,l,n.dump,a),N&&(n.dump="&ref_"+L+n.dump)):(de(n,l,n.dump),N&&(n.dump="&ref_"+L+" "+n.dump));else if(b==="[object String]")n.tag!=="?"&&_e(n,n.dump,l,A,x);else{if(b==="[object Undefined]")return!1;if(n.skipInvalid)return!1;throw new E("unacceptable kind of an object to dump "+b)}if(n.tag!==null&&n.tag!=="?"){let R=encodeURI(n.tag[0]==="!"?n.tag.slice(1):n.tag).replace(/!/g,"%21");n.tag[0]==="!"?R="!"+R:R.slice(0,18)==="tag:yaml.org,2002:"?R="!!"+R.slice(18):R="!<"+R+">",n.dump=R+" "+n.dump}}return!0}i(c,"writeNode");function s(n,l){let g=[],f=[];t(n,g,f);let a=f.length;for(let A=0;A<a;A+=1)l.duplicates.push(g[f[A]]);l.usedDuplicates=new Array(a)}i(s,"getDuplicateReferences");function t(n,l,g){if(n!==null&&typeof n=="object"){let f=l.indexOf(n);if(f!==-1)g.indexOf(f)===-1&&g.push(f);else if(l.push(n),Array.isArray(n))for(let a=0,A=n.length;a<A;a+=1)t(n[a],l,g);else{let a=Object.keys(n);for(let A=0,m=a.length;A<m;A+=1)t(n[a[A]],l,g)}}}i(t,"inspectNode");function S(n,l){l=l||{};let g=new Te(l);g.noRefs||s(n,g);let f=n;return g.replacer&&(f=g.replacer.call({"":f},"",f)),c(g,0,f,!0,!0)?g.dump+`
32
+ `:""}return i(S,"dump2"),cn.dump=S,cn}i(ei,"requireDumper");var Xn;function ni(){if(Xn)return D;Xn=1;let w=zn(),E=ei();function _(O,h){return function(){throw new Error("Function yaml."+O+" is removed in js-yaml 4. Use yaml."+h+" instead, which is now safe by default.")}}return i(_,"renamed"),D.Type=B(),D.Schema=un(),D.FAILSAFE_SCHEMA=sn(),D.JSON_SCHEMA=An(),D.CORE_SCHEMA=yn(),D.DEFAULT_SCHEMA=Pe(),D.load=w.load,D.loadAll=w.loadAll,D.dump=E.dump,D.YAMLException=Ae(),D.types={binary:Tn(),float:gn(),map:pn(),null:hn(),pairs:xn(),set:bn(),timestamp:Sn(),bool:dn(),int:mn(),merge:Cn(),omap:wn(),seq:an(),str:fn()},D.safeLoad=_("safeLoad","load"),D.safeLoadAll=_("safeLoadAll","loadAll"),D.safeDump=_("safeDump","dump"),D}i(ni,"requireJsYaml");var ii=ni(),ri=$n(ii),{Type:oi,Schema:ti,FAILSAFE_SCHEMA:ci,JSON_SCHEMA:ui,CORE_SCHEMA:fi,DEFAULT_SCHEMA:ai,load:pi,loadAll:si,dump:hi,YAMLException:di,types:mi,safeLoad:gi,safeLoadAll:Ai,safeDump:yi}=ri;export{ui as a,pi as b};
@@ -0,0 +1 @@
1
+ import{O as w}from"./chunk-NLCJ5AKJ.js";import{b as c}from"./chunk-3CEAP2V5.js";import{a as r}from"./chunk-6LQNQPBM.js";var l=r((t,e,i,h)=>{t.attr("class",i);let{width:o,height:n,x,y:u}=m(t,e);w(t,n,o,h);let a=s(x,u,o,n,e);t.attr("viewBox",a),c.debug(`viewBox configured: ${a} with padding: ${e}`)},"setupViewPortForSVG"),m=r((t,e)=>{let i=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+e*2,height:i.height+e*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),s=r((t,e,i,h,o)=>`${t-o} ${e-o} ${i} ${h}`,"createViewBox");export{l as a};
@@ -0,0 +1,62 @@
1
+ import{a as v}from"./chunk-EWILYK3H.js";import{a as Ut,b as Mt,d as L,e as H}from"./chunk-XCMS6RVA.js";import{b as Bt,d as ft}from"./chunk-ZYRITDEB.js";import{d as Dt}from"./chunk-4AUIAGYT.js";import{k as Nt,n as Qt,r as St,t as Q}from"./chunk-JAORNH2M.js";import{H as At,J as It,K as Kt,_ as K,ba as Lt,k as Jt,o as dt,u as bt,y as mt}from"./chunk-NLCJ5AKJ.js";import{b as J,h as V}from"./chunk-3CEAP2V5.js";import{a as $}from"./chunk-6LQNQPBM.js";var Ys=1,Xs=3;async function jt(g){let t=g.getElementsByTagName("img");if(!t||t.length===0)return;let r=!Gt(g);await Promise.all([...t].map(c=>new Promise(h=>{function l(){if(c.style.display="flex",c.style.flexDirection="column",r){let f=K().fontSize?K().fontSize:window.getComputedStyle(document.body).fontSize,i=5,[n=Jt.fontSize]=Qt(f),e=n*i+"px";c.style.minWidth=e,c.style.maxWidth=e}else c.style.width="100%";h(c)}$(l,"setupImage"),setTimeout(()=>{c.complete&&l()}),c.addEventListener("error",l),c.addEventListener("load",l)})))}$(jt,"configureLabelImages");function Gt(g){return g.nodeType===Xs?g.textContent?.trim()!=="":g.nodeType!==Ys||g.tagName.toLowerCase()==="img"?!1:[...g.childNodes].some(Gt)}$(Gt,"hasTextBesidesImages");var ta=3,Os=32,Fs=$(async(g,t,r)=>{let c=K(),h=g.insert("g").attr("class",r??"node default").attr("id",t.domId||t.id),l=h.insert("g").attr("class","label").attr("style",Q(t.labelStyle)),i=[{text:typeof t.label=="string"?t.label:t.label?.[0]??"",cssClass:"c4-name"},{text:t.stereotype,cssClass:"c4-type"},...(t.description??[]).map(m=>({text:m,cssClass:"c4-descr"}))].filter(m=>m.text),n=t.width?Math.max(t.width-2*(t.padding??0),Os):K().flowchart?.wrappingWidth??200,e=c.wrap?n:Number.POSITIVE_INFINITY,a=await Promise.all(i.map(async m=>{let d=l.append("g").attr("class",m.cssClass),x=await ft(d,At(St(m.text??""),c),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:e,style:t.labelStyle},c);return V(x).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),V(x).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:d,box:d.node().getBBox()}})),s=Math.max(...a.map(({box:m})=>m.width),0),o=0;for(let{el:m,box:d}of a)m.attr("transform",`translate(${s/2-d.x-d.width/2}, ${o-d.y})`),o+=d.height+ta;let y=a.length>0?o-ta:0;l.insert("rect",":first-child"),l.attr("transform",`translate(${-s/2}, ${-y/2})`);let p=l.node().getBBox(),u=(t.padding??0)/2;return{shapeSvg:h,bbox:p,halfPadding:u,label:l}},"c4LabelHelper"),X=$(async(g,t,r)=>{if(t.stereotype!==void 0)return Fs(g,t,r);let c,h=t.useHtmlLabels||dt(K()?.htmlLabels);r?c=r:c="node default";let l=g.insert("g").attr("class",c).attr("id",t.domId||t.id),f=l.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,e=t.labelType==="markdown",a=await ft(f,At(St(i),K()),{useHtmlLabels:h,width:t.width||t.wrappingWidth||K().flowchart?.wrappingWidth,classes:e?"markdown-node-label":"",style:t.labelStyle,addSvgBackground:n,markdown:e},K()),s=(t?.padding??0)/2,o;if(h){let y=a.children[0],p=V(a);await jt(y),o=await Bt.measure(()=>y.getBoundingClientRect()),p.attr("width",o.width),p.attr("height",o.height)}else o=await Bt.measure(()=>a.getBBox());return h?f.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"):f.attr("transform","translate(0, "+-o.height/2+")"),t.centerLabel&&f.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),f.insert("rect",":first-child"),{shapeSvg:l,bbox:o,halfPadding:s,label:f}},"labelHelper"),Wt=$(async(g,t,r)=>{let c=r.useHtmlLabels??mt(K()),h=g.insert("g").attr("class","label").attr("style",r.labelStyle||""),l=await ft(h,At(St(t),K()),{useHtmlLabels:c,width:r.width||K()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img}),f=r.padding/2,i;if(mt(K())){let n=l.children[0],e=V(l);i=await Bt.measure(()=>n.getBoundingClientRect()),e.attr("width",i.width),e.attr("height",i.height)}else i=await Bt.measure(()=>l.getBBox());return c?h.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"):h.attr("transform","translate(0, "+-i.height/2+")"),r.centerLabel&&h.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"),h.insert("rect",":first-child"),{shapeSvg:g,bbox:i,halfPadding:f,label:h}},"insertLabel"),C=$((g,t,r)=>{if(r){g.width=r.width,g.height=r.height;return}let c=t.node().getBBox();g.width=c.width,g.height=c.height},"updateNodeBounds"),Y=$((g,t)=>(g.look==="handDrawn"?"rough-node":"node")+" "+g.cssClasses+" "+(t||""),"getNodeClasses");function j(g){let t=g.map((r,c)=>`${c===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}$(j,"createPathFromPoints");function pt(g,t,r,c,h,l){let f=[],n=r-g,e=c-t,a=n/l,s=2*Math.PI/a,o=t+e/2;for(let y=0;y<=50;y++){let p=y/50,u=g+p*n,m=o+h*Math.sin(s*(u-g));f.push({x:u,y:m})}return f}$(pt,"generateFullSineWavePoints");function it(g,t,r,c,h,l){let f=[],i=h*Math.PI/180,a=(l*Math.PI/180-i)/(c-1);for(let s=0;s<c;s++){let o=i+s*a,y=g+r*Math.cos(o),p=t+r*Math.sin(o);f.push({x:-y,y:-p})}return f}$(it,"generateCirclePoints");function Xt(g){let t=Array.from(g.childNodes).filter(n=>n.tagName==="path"),r=document.createElementNS("http://www.w3.org/2000/svg","path"),c=t.map(n=>n.getAttribute("d")).filter(n=>n!==null).join(" ");r.setAttribute("d",c);let h=t.find(n=>n.getAttribute("fill")!=="none"),l=t.find(n=>n.getAttribute("stroke")!=="none"),f=$((n,e)=>n?.getAttribute(e)??void 0,"getAttr");if(h){let n={fill:f(h,"fill"),"fill-opacity":f(h,"fill-opacity")??"1"};Object.entries(n).forEach(([e,a])=>{a&&r.setAttribute(e,a)})}if(l){let n={stroke:f(l,"stroke"),"stroke-width":f(l,"stroke-width")??"1","stroke-opacity":f(l,"stroke-opacity")??"1"};Object.entries(n).forEach(([e,a])=>{a&&r.setAttribute(e,a)})}let i=document.createElementNS("http://www.w3.org/2000/svg","g");return i.appendChild(r),i}$(Xt,"mergePaths");var js=$((g,t)=>{var r=g.x,c=g.y,h=t.x-r,l=t.y-c,f=g.width/2,i=g.height/2,n,e;return Math.abs(l)*f>Math.abs(h)*i?(l<0&&(i=-i),n=l===0?0:i*h/l,e=i):(h<0&&(f=-f),n=f,e=h===0?0:f*l/h),{x:r+n,y:c+e}},"intersectRect"),Gs=js,gt=$((g,t,r,c,h)=>["M",g+h,t,"H",g+r-h,"A",h,h,0,0,1,g+r,t+h,"V",t+c-h,"A",h,h,0,0,1,g+r-h,t+c,"H",g+h,"A",h,h,0,0,1,g,t+c-h,"V",t+h,"A",h,h,0,0,1,g+h,t,"Z"].join(" "),"createRoundedRectPathD"),qs=$(async(g,t,r,c=!1,h=!1)=>{let l=t||"";typeof l=="object"&&(l=l[0]);let f=K(),i=mt(f);return await ft(g,l,{style:r,isTitle:c,useHtmlLabels:i,markdown:!1,isNode:h,width:Number.POSITIVE_INFINITY},f)},"createLabel"),aa=qs;function pa(g,t){return g.intersect(t)}$(pa,"intersectNode");var zs=pa;function ua(g,t,r,c){var h=g.x,l=g.y,f=h-c.x,i=l-c.y,n=Math.sqrt(t*t*i*i+r*r*f*f),e=Math.abs(t*r*f/n);c.x<h&&(e=-e);var a=Math.abs(t*r*i/n);return c.y<l&&(a=-a),{x:h+e,y:l+a}}$(ua,"intersectEllipse");var da=ua;function ma(g,t,r){return da(g,t,t,r)}$(ma,"intersectCircle");var Vs=ma;function xa(g,t,r,c){{let h=t.y-g.y,l=g.x-t.x,f=t.x*g.y-g.x*t.y,i=h*r.x+l*r.y+f,n=h*c.x+l*c.y+f,e=1e-6;if(i!==0&&n!==0&&Ot(i,n))return;let a=c.y-r.y,s=r.x-c.x,o=c.x*r.y-r.x*c.y,y=a*g.x+s*g.y+o,p=a*t.x+s*t.y+o;if(Math.abs(y)<e&&Math.abs(p)<e&&Ot(y,p))return;let u=h*s-a*l;if(u===0)return;let m=Math.abs(u/2),d=l*o-s*f,x=d<0?(d-m)/u:(d+m)/u;d=a*f-h*o;let w=d<0?(d-m)/u:(d+m)/u;return{x,y:w}}}$(xa,"intersectLine");function Ot(g,t){return g*t>0}$(Ot,"sameSign");var Zs=xa;function wa(g,t,r){let c=g.x,h=g.y,l=[],f=Number.POSITIVE_INFINITY,i=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(a){f=Math.min(f,a.x),i=Math.min(i,a.y)}):(f=Math.min(f,t.x),i=Math.min(i,t.y));let n=c-g.width/2-f,e=h-g.height/2-i;for(let a=0;a<t.length;a++){let s=t[a],o=t[a<t.length-1?a+1:0],y=Zs(g,r,{x:n+s.x,y:e+s.y},{x:n+o.x,y:e+o.y});y&&l.push(y)}return l.length?(l.length>1&&l.sort(function(a,s){let o=a.x-r.x,y=a.y-r.y,p=Math.sqrt(o*o+y*y),u=s.x-r.x,m=s.y-r.y,d=Math.sqrt(u*u+m*m);return p<d?-1:p===d?0:1}),l[0]):g}$(wa,"intersectPolygon");var Js=wa,N={node:zs,circle:Vs,ellipse:da,polygon:Js,rect:Gs};function ba(g,t){let{labelStyles:r}=L(t);t.labelStyle=r;let c=Y(t),h=c;c||(h="anchor");let l=g.insert("g").attr("class",h).attr("id",t.domId||t.id),f=1,{cssStyles:i}=t,n=v.svg(l),e=H(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(e.roughness=0);let a=n.circle(0,0,f*2,e),s=l.insert(()=>a,":first-child");return s.attr("class","anchor").attr("style",Q(i)),C(t,s),t.intersect=function(o){return J.info("Circle intersect",t,f,o),N.circle(t,f,o)},l}$(ba,"anchor");function Ft(g,t,r,c,h,l,f){let n=(g+r)/2,e=(t+c)/2,a=Math.atan2(c-t,r-g),s=(r-g)/2,o=(c-t)/2,y=s/h,p=o/l,u=Math.sqrt(y**2+p**2);if(u>1)throw new Error("The given radii are too small to create an arc between the points.");let m=Math.sqrt(1-u**2),d=n+m*l*Math.sin(a)*(f?-1:1),x=e-m*h*Math.cos(a)*(f?-1:1),w=Math.atan2((t-x)/l,(g-d)/h),b=Math.atan2((c-x)/l,(r-d)/h)-w;f&&b<0&&(b+=2*Math.PI),!f&&b>0&&(b-=2*Math.PI);let k=[];for(let M=0;M<20;M++){let P=M/19,W=w+P*b,B=d+h*Math.cos(W),D=x+l*Math.sin(W);k.push({x:B,y:D})}return k}$(Ft,"generateArcPoints");function Sa(g,t,r){let[c,h]=[t,r].sort((l,f)=>f-l);return h*(1-Math.sqrt(1-(g/c/2)**2))}$(Sa,"calculateArcSagitta");async function $a(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let h=t.padding??0,l=t.look==="neo"?16:h,f=t.look==="neo"?12:h,i=$(W=>W+f,"calcTotalHeight"),n=$(W=>{let B=W/2;return[B/(2.5+W/50),B]},"calcEllipseRadius"),{shapeSvg:e,bbox:a}=await X(g,t,Y(t)),s=i(t?.height?t?.height:a.height),[o,y]=n(s),p=Sa(s,o,y),m=(t?.width?t?.width:a.width)+l*2+p-p,d=s,{cssStyles:x}=t,w=[{x:m/2,y:-d/2},{x:-m/2,y:-d/2},...Ft(-m/2,-d/2,-m/2,d/2,o,y,!1),{x:m/2,y:d/2},...Ft(m/2,d/2,m/2,-d/2,o,y,!0)],S=v.svg(e),b=H(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");let k=j(w),M=S.path(k,b),P=e.insert(()=>M,":first-child");return P.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",x),c&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",c),P.attr("transform",`translate(${o/2}, 0)`),C(t,P),t.intersect=function(W){return N.polygon(t,w,W)},e}$($a,"bowTieRect");async function va(g,t,{config:{themeVariables:r}}){let{labelStyles:c,nodeStyles:h}=L(t);t.labelStyle=c;let{shapeSvg:l,bbox:f,label:i}=await X(g,t,Y(t)),n=r?.nodeBorder??r?.lineColor??"currentColor",e=t.padding??12,a=Math.max(f.width+e*2,t.width??0,80),s=Math.max(Math.min(a*.08,12),5),o=Math.max(f.height+e*2+s,t.height??0),y=-o/2+s,p=o/2,u=a*.72,m=[`M${-a/2},${y}`,`L${-u/2},${p}`,`A${u/2},${s} 0 0 0 ${u/2},${p}`,`L${a/2},${y}`,`A${a/2},${s} 0 0 0 ${-a/2},${y}`,"Z"].join(" "),{cssStyles:d}=t,x=l.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){let P=v.svg(l).path(m,H(t,{}));x.node()?.appendChild(P),d&&x.attr("style",d)}else x.append("path").attr("d",m).attr("style",h);x.append("ellipse").attr("cx",0).attr("cy",y).attr("rx",a/2).attr("ry",s).attr("style",`fill:none;stroke:${n};stroke-width:1px`),C(t,x);let w=y+(p-y)/2;i.attr("transform",`translate(${-(f.width/2)-(f.x-(f.left??0))}, ${w-f.height/2-(f.y-(f.top??0))})`);let S=12,b=$((M,P,W)=>Array.from({length:S+1},(B,D)=>{let T=Math.PI-D*Math.PI/S;return{x:M*Math.cos(T),y:P+W*s*Math.sin(T)}}),"arc"),k=[...b(a/2,y,-1),...b(u/2,p,1).reverse()];return t.intersect=function(M){return N.polygon(t,k,M)},l}$(va,"bucket");var Et=20,Tt=8,Ks=80,_t=8;async function ka(g,t){let{themeVariables:r}=K(),c=r.clusterBkg,h=r.clusterBorder,{nodeStyles:l}=L(t),{shapeSvg:f,bbox:i}=await X(g,t,Y(t)),n=t.padding??8,e=i.height,a=Math.max(i.width+n*2,Ks,t?.width??0),s=Math.max(e+Tt+Et+n*2,t?.height??0),o=-a/2,y=-s/2,p=-(Tt+Et)/2,u=f.select(".label");u&&(t.useHtmlLabels??mt(K())?u.attr("transform",`translate(${-i.width/2}, ${-i.height/2+p})`):u.attr("transform",`translate(0, ${-i.height/2+p})`));let m;if(t.look==="handDrawn"){let b=v.svg(f),k=H(t,{fill:c,stroke:h,fillStyle:"solid"}),M=b.path(gt(o,y,a,s,_t),k);m=f.insert(()=>M,":first-child"),m.attr("class","basic label-container collapsed-group").attr("style",Q(t.cssStyles))}else m=f.insert("rect",":first-child"),m.attr("class","basic label-container collapsed-group").attr("style",l).attr("rx",_t).attr("ry",_t).attr("x",o).attr("y",y).attr("width",a).attr("height",s).attr("fill",c).attr("stroke",h);let d=y+n+e+Tt;f.append("line").attr("class","collapsed-separator").attr("x1",o+8).attr("y1",d).attr("x2",o+a-8).attr("y2",d).attr("stroke",h).attr("stroke-dasharray","3, 3");let x=d+Et/2,w=2.5,S=10;for(let b=-1;b<=1;b++)f.append("circle").attr("class","collapsed-indicator").attr("cx",b*S).attr("cy",x).attr("r",w).attr("fill",h);return C(t,m),t.calcIntersect=function(b,k){return N.rect(b,k)},t.intersect=function(b){return N.rect(t,b)},f}$(ka,"collapsedGroup");function lt(g,t,r,c){return g.insert("polygon",":first-child").attr("points",c.map(function(h){return h.x+","+h.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}$(lt,"insertPolygonShape");var Us=["right","left","up","down"],qt="point",Qs=$(g=>{let t=new Set;for(let r of g)switch(r){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(r);break}return t},"expandAndDeduplicateDirections"),te=$(g=>Us.filter(t=>g.has(t)).join("|")||qt,"getDirectionKey"),sa={"right|left|up|down":$(({height:g,midpoint:t,padding:r,width:c})=>[{x:0,y:0},{x:t,y:0},{x:c/2,y:2*r},{x:c-t,y:0},{x:c,y:0},{x:c,y:-g/3},{x:c+2*r,y:-g/2},{x:c,y:-2*g/3},{x:c,y:-g},{x:c-t,y:-g},{x:c/2,y:-g-2*r},{x:t,y:-g},{x:0,y:-g},{x:0,y:-2*g/3},{x:-2*r,y:-g/2},{x:0,y:-g/3}],"right|left|up|down"),"right|left|up":$(({height:g,midpoint:t,width:r})=>[{x:t,y:0},{x:r-t,y:0},{x:r,y:-g/2},{x:r-t,y:-g},{x:t,y:-g},{x:0,y:-g/2}],"right|left|up"),"right|left|down":$(({height:g,midpoint:t,width:r})=>[{x:0,y:0},{x:t,y:-g},{x:r-t,y:-g},{x:r,y:0}],"right|left|down"),"right|up|down":$(({height:g,midpoint:t,width:r})=>[{x:0,y:0},{x:r,y:-t},{x:r,y:-g+t},{x:0,y:-g}],"right|up|down"),"left|up|down":$(({height:g,midpoint:t,width:r})=>[{x:r,y:0},{x:0,y:-t},{x:0,y:-g+t},{x:r,y:-g}],"left|up|down"),"right|left":$(({height:g,midpoint:t,padding:r,width:c})=>[{x:t,y:0},{x:t,y:-r},{x:c-t,y:-r},{x:c-t,y:0},{x:c,y:-g/2},{x:c-t,y:-g},{x:c-t,y:-g+r},{x:t,y:-g+r},{x:t,y:-g},{x:0,y:-g/2}],"right|left"),"up|down":$(({height:g,midpoint:t,padding:r,width:c})=>[{x:c/2,y:0},{x:0,y:-r},{x:t,y:-r},{x:t,y:-g+r},{x:0,y:-g+r},{x:c/2,y:-g},{x:c,y:-g+r},{x:c-t,y:-g+r},{x:c-t,y:-r},{x:c,y:-r}],"up|down"),"right|up":$(({height:g,midpoint:t,width:r})=>[{x:0,y:0},{x:r,y:-t},{x:0,y:-g}],"right|up"),"right|down":$(({height:g,width:t})=>[{x:0,y:0},{x:t,y:0},{x:0,y:-g}],"right|down"),"left|up":$(({height:g,midpoint:t,width:r})=>[{x:r,y:0},{x:0,y:-t},{x:r,y:-g}],"left|up"),"left|down":$(({height:g,width:t})=>[{x:t,y:0},{x:0,y:0},{x:t,y:-g}],"left|down"),right:$(({height:g,midpoint:t,padding:r,width:c})=>[{x:t,y:-r},{x:t,y:-r},{x:c-t,y:-r},{x:c-t,y:0},{x:c,y:-g/2},{x:c-t,y:-g},{x:c-t,y:-g+r},{x:t,y:-g+r},{x:t,y:-g+r}],"right"),left:$(({height:g,midpoint:t,padding:r,width:c})=>[{x:t,y:0},{x:t,y:-r},{x:c-t,y:-r},{x:c-t,y:-g+r},{x:t,y:-g+r},{x:t,y:-g},{x:0,y:-g/2}],"left"),up:$(({height:g,midpoint:t,padding:r,width:c})=>[{x:t,y:-r},{x:t,y:-g+r},{x:0,y:-g+r},{x:c/2,y:-g},{x:c,y:-g+r},{x:c-t,y:-g+r},{x:c-t,y:-r}],"up"),down:$(({height:g,midpoint:t,padding:r,width:c})=>[{x:c/2,y:0},{x:0,y:-r},{x:t,y:-r},{x:t,y:-g+r},{x:c-t,y:-g+r},{x:c-t,y:-r},{x:c,y:-r}],"down"),[qt]:()=>[{x:0,y:0}]},ae=$((g,t,r,c)=>{let h=Qs(g),l=(r.padding??0)/2,f=t.height+4*l,i=f/2,n=c??t.width+2*i+2*l,e=te(h);return(sa[e]??sa[qt])({height:f,midpoint:i,padding:l,width:n})},"getArrowPoints");async function Pa(g,t){let r=t,{shapeSvg:c,bbox:h}=await X(g,r,Y(r)),l=r.padding??0,f=h.height+2*l,i=f/2,n=h.width+2*i+l,e=r.width??0,s=r.positioned&&(r.widthInColumns??1)>1&&e>n?e:n,o=ae(r.directions??[],h,r,s),y=lt(c,s,f,o);return y.attr("style",r.style??null),C(r,y),r.intersect=function(p){return N.polygon(r,o,p)},c}$(Pa,"block_arrow");async function Ma(g,t,{config:{themeVariables:r}}){let{labelStyles:c,nodeStyles:h}=L(t);t.labelStyle=c;let{shapeSvg:l,bbox:f,label:i}=await X(g,t,Y(t)),n=r?.nodeBorder??r?.lineColor??"currentColor",e=t.padding??12,a=18,s=12,o=Math.max(f.width+e*2,t.width??0,90),y=Math.max(f.height+e*2+a,t.height??0),p=-y/2,{cssStyles:u}=t,m=l.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){let w=v.svg(l).path(gt(-o/2,p,o,y,s),H(t,{}));m.node()?.appendChild(w),u&&m.attr("style",u)}else m.append("rect").attr("x",-o/2).attr("y",p).attr("width",o).attr("height",y).attr("rx",s).attr("ry",s).attr("style",h);m.append("line").attr("x1",-o/2).attr("y1",p+a).attr("x2",o/2).attr("y2",p+a).attr("style",`stroke:${n};stroke-width:1px`);for(let x=0;x<3;x++)m.append("circle").attr("cx",-o/2+12+x*9).attr("cy",p+a/2).attr("r",2.5).attr("style",`fill:${n};stroke:none`);m.append("rect").attr("class","browser-address-bar").attr("x",-o/2+44).attr("y",p+4).attr("width",Math.max(o-56,10)).attr("height",a-8).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${n};stroke-width:1px;opacity:0.6`),C(t,m);let d=p+a+(y-a)/2;return i.attr("transform",`translate(${-(f.width/2)-(f.x-(f.left??0))}, ${d-f.height/2-(f.y-(f.top??0))})`),t.intersect=function(x){return N.rect(t,x)},l}$(Ma,"browser");var Rt=12;async function Da(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let h=t.padding??0,l=t.look==="neo"?28:h,f=t.look==="neo"?24:h,{shapeSvg:i,bbox:n}=await X(g,t,Y(t)),e=(t?.width??n.width)+(t.look==="neo"?l*2:l+Rt),a=(t?.height??n.height)+(t.look==="neo"?f*2:f),s=0,o=e,y=-a,p=0,u=[{x:s+Rt,y},{x:o,y},{x:o,y:p},{x:s,y:p},{x:s,y:y+Rt},{x:s+Rt,y}],m,{cssStyles:d}=t;if(t.look==="handDrawn"){let x=v.svg(i),w=H(t,{}),S=j(u),b=x.path(S,w);m=i.insert(()=>b,":first-child").attr("transform",`translate(${-e/2}, ${a/2})`),d&&m.attr("style",d)}else m=lt(i,e,a,u);return c&&m.attr("style",c),C(t,m),t.intersect=function(x){return N.polygon(t,u,x)},i}$(Da,"card");function Na(g,t){let{nodeStyles:r}=L(t);t.label="";let c=g.insert("g").attr("class",Y(t)).attr("id",t.domId??t.id),{cssStyles:h}=t,l=Math.max(28,t.width??0),f=[{x:0,y:l/2},{x:l/2,y:0},{x:0,y:-l/2},{x:-l/2,y:0}],i=v.svg(c),n=H(t,{});t.look!=="handDrawn"&&(n.roughness=0,n.fillStyle="solid");let e=j(f),a=i.path(e,n),s=c.insert(()=>a,":first-child");return h&&t.look!=="handDrawn"&&s.selectAll("path").attr("style",h),r&&t.look!=="handDrawn"&&s.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(o){return N.polygon(t,f,o)},c}$(Na,"choice");async function zt(g,t,r){let{labelStyles:c,nodeStyles:h}=L(t);t.labelStyle=c;let{shapeSvg:l,bbox:f,halfPadding:i}=await X(g,t,Y(t)),n=16,e=r?.padding??i,a=t.look==="neo"?f.width/2+n*2:f.width/2+e,s,{cssStyles:o}=t;if(t.look==="handDrawn"){let y=v.svg(l),p=H(t,{}),u=y.circle(0,0,a*2,p);s=l.insert(()=>u,":first-child"),s.attr("class","basic label-container").attr("style",Q(o))}else s=l.insert("circle",":first-child").attr("class","basic label-container").attr("style",h).attr("r",a).attr("cx",0).attr("cy",0);return C(t,s),t.calcIntersect=function(y,p){let u=y.width/2;return N.circle(y,u,p)},t.intersect=function(y){return J.info("Circle intersect",t,a,y),N.circle(t,a,y)},l}$(zt,"circle");async function Ba(g,t){let r=t,c=["node",r.cssClasses,r.class].filter(Boolean).join(" "),{shapeSvg:h,bbox:l,halfPadding:f}=await X(g,r,c),i=h.insert("rect",":first-child"),n=r.padding??0,e=r.positioned?r.width??0:l.width+n,a=r.positioned?r.height??0:l.height+n,s=r.positioned?-e/2:-l.width/2-f,o=r.positioned?-a/2:-l.height/2-f;return i.attr("class","basic cluster composite label-container").attr("style",r.style??null).attr("rx",r.rx??null).attr("ry",r.ry??null).attr("x",s).attr("y",o).attr("width",e).attr("height",a),C(r,i),r.intersect=function(y){return N.rect(r,y)},h}$(Ba,"composite");async function Ca(g,t,{config:{themeVariables:r}}){let{labelStyles:c,nodeStyles:h}=L(t);t.labelStyle=c;let{shapeSvg:l,bbox:f,label:i}=await X(g,t,Y(t)),n=r?.nodeBorder??r?.lineColor??"currentColor",e=t.padding??12,a=20,s=12,o=Math.max(f.width+e*2,t.width??0,90),y=Math.max(f.height+e*2+a,t.height??0),p=-y/2,{cssStyles:u}=t,m=l.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){let w=v.svg(l).path(gt(-o/2,p,o,y,s),H(t,{}));m.node()?.appendChild(w),u&&m.attr("style",u)}else m.append("rect").attr("x",-o/2).attr("y",p).attr("width",o).attr("height",y).attr("rx",s).attr("ry",s).attr("style",h);m.append("text").attr("x",-o/2+12).attr("y",p+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${n}`).text(">_"),C(t,m);let d=p+a+(y-a)/2;return i.attr("transform",`translate(${-(f.width/2)-(f.x-(f.left??0))}, ${d-f.height/2-(f.y-(f.top??0))})`),t.intersect=function(x){return N.rect(t,x)},l}$(Ca,"consoleWindow");function Aa(g){let t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),c=g*2,h={x:c/2*t,y:c/2*r},l={x:-(c/2)*t,y:c/2*r},f={x:-(c/2)*t,y:-(c/2)*r},i={x:c/2*t,y:-(c/2)*r};return`M ${l.x},${l.y} L ${i.x},${i.y}
2
+ M ${h.x},${h.y} L ${f.x},${f.y}`}$(Aa,"createLine");function Ra(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r,t.label="";let h=g.insert("g").attr("class",Y(t)).attr("id",t.domId??t.id),l=Math.max(30,t?.width??0),{cssStyles:f}=t,i=v.svg(h),n=H(t,{});t.look!=="handDrawn"&&(n.roughness=0,n.fillStyle="solid");let e=i.circle(0,0,l*2,n),a=Aa(l),s=i.path(a,n),o=h.insert(()=>e,":first-child");return o.insert(()=>s),o.attr("class","outer-path"),f&&t.look!=="handDrawn"&&o.selectAll("path").attr("style",f),c&&t.look!=="handDrawn"&&o.selectAll("path").attr("style",c),C(t,o),t.intersect=function(y){return J.info("crossedCircle intersect",t,{radius:l,point:y}),N.circle(t,l,y)},h}$(Ra,"crossedCircle");function ot(g,t,r,c=100,h=0,l=180){let f=[],i=h*Math.PI/180,a=(l*Math.PI/180-i)/(c-1);for(let s=0;s<c;s++){let o=i+s*a,y=g+r*Math.cos(o),p=t+r*Math.sin(o);f.push({x:-y,y:-p})}return f}$(ot,"generateCirclePoints");async function Ha(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let{shapeSvg:h,bbox:l,label:f}=await X(g,t,Y(t)),i=t.look==="neo"?18:t.padding??0,n=t.look==="neo"?12:t.padding??0,e=l.width+i,a=l.height+n,s=Math.max(5,a*.1),{cssStyles:o}=t,y=[...ot(e/2,-a/2,s,30,-90,0),{x:-e/2-s,y:s},...ot(e/2+s*2,-s,s,20,-180,-270),...ot(e/2+s*2,s,s,20,-90,-180),{x:-e/2-s,y:-a/2},...ot(e/2,a/2,s,20,0,90)],p=[{x:e/2,y:-a/2-s},{x:-e/2,y:-a/2-s},...ot(e/2,-a/2,s,20,-90,0),{x:-e/2-s,y:-s},...ot(e/2+e*.1,-s,s,20,-180,-270),...ot(e/2+e*.1,s,s,20,-90,-180),{x:-e/2-s,y:a/2},...ot(e/2,a/2,s,20,0,90),{x:-e/2,y:a/2+s},{x:e/2,y:a/2+s}],u=v.svg(h),m=H(t,{fill:"none"});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let x=j(y).replace("Z",""),w=u.path(x,m),S=j(p),b=u.path(S,{...m}),k=h.insert("g",":first-child");return k.insert(()=>b,":first-child").attr("stroke-opacity",0),k.insert(()=>w,":first-child"),k.attr("class","text"),o&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",o),c&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",c),k.attr("transform",`translate(${s}, 0)`),f.attr("transform",`translate(${-e/2+s-(l.x-(l.left??0))},${-a/2+(t.padding??0)/2-(l.y-(l.top??0))})`),C(t,k),t.intersect=function(M){return N.polygon(t,p,M)},h}$(Ha,"curlyBraceLeft");function ht(g,t,r,c=100,h=0,l=180){let f=[],i=h*Math.PI/180,a=(l*Math.PI/180-i)/(c-1);for(let s=0;s<c;s++){let o=i+s*a,y=g+r*Math.cos(o),p=t+r*Math.sin(o);f.push({x:y,y:p})}return f}$(ht,"generateCirclePoints");async function Ia(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let{shapeSvg:h,bbox:l,label:f}=await X(g,t,Y(t)),i=t.look==="neo"?18:t.padding??0,n=t.look==="neo"?12:t.padding??0,e=l.width+(t.look==="neo"?i*2:i),a=l.height+(t.look==="neo"?n*2:n),s=Math.max(5,a*.1),{cssStyles:o}=t,y=[...ht(e/2,-a/2,s,20,-90,0),{x:e/2+s,y:-s},...ht(e/2+s*2,-s,s,20,-180,-270),...ht(e/2+s*2,s,s,20,-90,-180),{x:e/2+s,y:a/2},...ht(e/2,a/2,s,20,0,90)],p=[{x:-e/2,y:-a/2-s},{x:e/2,y:-a/2-s},...ht(e/2,-a/2,s,20,-90,0),{x:e/2+s,y:-s},...ht(e/2+s*2,-s,s,20,-180,-270),...ht(e/2+s*2,s,s,20,-90,-180),{x:e/2+s,y:a/2},...ht(e/2,a/2,s,20,0,90),{x:e/2,y:a/2+s},{x:-e/2,y:a/2+s}],u=v.svg(h),m=H(t,{fill:"none"});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let x=j(y).replace("Z",""),w=u.path(x,m),S=j(p),b=u.path(S,{...m}),k=h.insert("g",":first-child");return k.insert(()=>b,":first-child").attr("stroke-opacity",0),k.insert(()=>w,":first-child"),k.attr("class","text"),o&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",o),c&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",c),k.attr("transform",`translate(${-s}, 0)`),f.attr("transform",`translate(${-e/2+(t.padding??0)/2-(l.x-(l.left??0))},${-a/2+(t.padding??0)/2-(l.y-(l.top??0))})`),C(t,k),t.intersect=function(M){return N.polygon(t,p,M)},h}$(Ia,"curlyBraceRight");function tt(g,t,r,c=100,h=0,l=180){let f=[],i=h*Math.PI/180,a=(l*Math.PI/180-i)/(c-1);for(let s=0;s<c;s++){let o=i+s*a,y=g+r*Math.cos(o),p=t+r*Math.sin(o);f.push({x:-y,y:-p})}return f}$(tt,"generateCirclePoints");async function La(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let{shapeSvg:h,bbox:l,label:f}=await X(g,t,Y(t)),i=t.look==="neo"?18:t.padding??0,n=t.look==="neo"?12:t.padding??0,e=l.width+(t.look==="neo"?i*2:i),a=l.height+(t.look==="neo"?n*2:n),s=Math.max(5,a*.1),{cssStyles:o}=t,y=[...tt(e/2,-a/2,s,30,-90,0),{x:-e/2-s,y:s},...tt(e/2+s*2,-s,s,20,-180,-270),...tt(e/2+s*2,s,s,20,-90,-180),{x:-e/2-s,y:-a/2},...tt(e/2,a/2,s,20,0,90)],p=[...tt(-e/2+s+s/2,-a/2,s,20,-90,-180),{x:e/2-s/2,y:s},...tt(-e/2-s/2,-s,s,20,0,90),...tt(-e/2-s/2,s,s,20,-90,0),{x:e/2-s/2,y:-s},...tt(-e/2+s+s/2,a/2,s,30,-180,-270)],u=[{x:e/2,y:-a/2-s},{x:-e/2,y:-a/2-s},...tt(e/2,-a/2,s,20,-90,0),{x:-e/2-s,y:-s},...tt(e/2+s*2,-s,s,20,-180,-270),...tt(e/2+s*2,s,s,20,-90,-180),{x:-e/2-s,y:a/2},...tt(e/2,a/2,s,20,0,90),{x:-e/2,y:a/2+s},{x:e/2-s-s/2,y:a/2+s},...tt(-e/2+s+s/2,-a/2,s,20,-90,-180),{x:e/2-s/2,y:s},...tt(-e/2-s/2,-s,s,20,0,90),...tt(-e/2-s/2,s,s,20,-90,0),{x:e/2-s/2,y:-s},...tt(-e/2+s+s/2,a/2,s,30,-180,-270)],m=v.svg(h),d=H(t,{fill:"none"});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");let w=j(y).replace("Z",""),S=m.path(w,d),k=j(p).replace("Z",""),M=m.path(k,d),P=j(u),W=m.path(P,{...d}),B=h.insert("g",":first-child");return B.insert(()=>W,":first-child").attr("stroke-opacity",0),B.insert(()=>S,":first-child"),B.insert(()=>M,":first-child"),B.attr("class","text"),o&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",o),c&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",c),B.attr("transform",`translate(${s-s/4}, 0)`),f.attr("transform",`translate(${-e/2+(t.padding??0)/2-(l.x-(l.left??0))},${-a/2+(t.padding??0)/2-(l.y-(l.top??0))})`),C(t,B),t.intersect=function(D){return N.polygon(t,u,D)},h}$(La,"curlyBraces");async function Wa(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let h=t.padding??0,l=t.look==="neo"?16:h,f=t.look==="neo"?12:h,i=20,n=5,{shapeSvg:e,bbox:a}=await X(g,t,Y(t)),s=Math.max(i,(a.width+l*2)*1.25,t?.width??0),o=Math.max(n,a.height+f*2,t?.height??0),y=o/2,{cssStyles:p}=t,u=v.svg(e),m=H(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let d=s,x=o,w=d-y,S=x/4,b=[{x:w,y:0},{x:S,y:0},{x:0,y:x/2},{x:S,y:x},{x:w,y:x},...it(-w,-x/2,y,50,270,90)],k=j(b),M=u.path(k,m),P=e.insert(()=>M,":first-child");return P.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&P.selectChildren("path").attr("style",p),c&&t.look!=="handDrawn"&&P.selectChildren("path").attr("style",c),P.attr("transform",`translate(${-s/2}, ${-o/2})`),C(t,P),t.intersect=function(W){return N.polygon(t,b,W)},e}$(Wa,"curvedTrapezoid");async function Ea(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let{shapeSvg:h,bbox:l,label:f}=await X(g,t,Y(t)),i=t.padding??20,n=Math.max(l.width+i*2,t.width??0,100),e=Math.min(Math.max(n*.23,16),56),a=e*.27,s=Math.max(l.height+i*2,t.height?t.height-(2*e-a):0),o=Math.min(n*.177,s*.45),y=s+2*e-a,p=-y/2,u=p+2*e-a,m=h.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:d}=t;if(t.look==="handDrawn"){let P=v.svg(h),W=H(t,{}),B=P.path(gt(-n/2,u,n,s,o),W),D=P.circle(0,p+e,e*2,W);m.insert(()=>D,":first-child"),m.insert(()=>B,":first-child"),d&&m.attr("style",d)}else m.append("rect").attr("x",-n/2).attr("y",u).attr("width",n).attr("height",s).attr("rx",o).attr("ry",o).attr("style",c),m.append("circle").attr("cx",0).attr("cy",p+e).attr("r",e).attr("style",c);C(t,m);let x=u+s/2;f.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${x-l.height/2-(l.y-(l.top??0))})`);let w=p+e,S=Math.asin(Math.min(1,(u-w)/e))*180/Math.PI,M=[...it(0,-w,e,24,180+S,-S),...it(-(-n/2+o),-(u+o),o,12,90,0),...it(-(-n/2+o),-(y/2-o),o,12,360,270),...it(-(n/2-o),-(y/2-o),o,12,270,180),...it(-(n/2-o),-(u+o),o,12,180,90)];return t.intersect=function(P){return N.polygon(t,M,P)},h}$(Ea,"person");var se=$((g,t,r,c,h,l)=>[`M${g},${t+l}`,`a${h},${l} 0,0,0 ${r},0`,`a${h},${l} 0,0,0 ${-r},0`,`l0,${c}`,`a${h},${l} 0,0,0 ${r},0`,`l0,${-c}`].join(" "),"createCylinderPathD"),ee=$((g,t,r,c,h,l)=>[`M${g},${t+l}`,`M${g+r},${t+l}`,`a${h},${l} 0,0,0 ${-r},0`,`l0,${c}`,`a${h},${l} 0,0,0 ${r},0`,`l0,${-c}`].join(" "),"createOuterCylinderPathD"),re=$((g,t,r,c,h,l)=>[`M${g-r/2},${-c/2}`,`a${h},${l} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),ea=8,ra=8;async function Ta(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let h=t.padding??0,l=t.look==="neo"?24:h,f=t.look==="neo"?24:h,i=t.width??0;if(t.width&&(t.width=t.width-f,t.width<ra&&(t.width=ra)),t.height){let x=i/2/(2.5+i/50);t.height=t.height-l-x*3,t.height<ea&&(t.height=ea)}let{shapeSvg:n,bbox:e,label:a}=await X(g,t,Y(t)),s=Math.max(t.width??0,e.width)+f,o=s/2,y=o/(2.5+s/50),p=Math.max(t.height??0,e.height)+l+y,u,{cssStyles:m}=t;if(t.look==="handDrawn"){let d=v.svg(n),x=ee(0,0,s,p,o,y),w=re(0,y,s,p,o,y),S=H(t,{}),b=d.path(x,S),k=d.path(w,H(t,{fill:"none"}));u=n.insert(()=>k,":first-child"),u=n.insert(()=>b,":first-child"),u.attr("class","basic label-container"),m&&u.attr("style",m)}else{let d=se(0,0,s,p,o,y);u=n.insert("path",":first-child").attr("d",d).attr("class","basic label-container outer-path").attr("style",Q(m)).attr("style",c)}return u.attr("label-offset-y",y),u.attr("transform",`translate(${-s/2}, ${-(p/2+y)})`),C(t,u),a.attr("transform",`translate(${-(e.width/2)-(e.x-(e.left??0))}, ${-(e.height/2)+(t.padding??0)/1.5-(e.y-(e.top??0))})`),t.intersect=function(d){let x=N.rect(t,d),w=x.x-(t.x??0);if(o!=0&&(Math.abs(w)<(t.width??0)/2||Math.abs(w)==(t.width??0)/2&&Math.abs(x.y-(t.y??0))>(t.height??0)/2-y)){let S=y*y*(1-w*w/(o*o));S>0&&(S=Math.sqrt(S)),S=y-S,d.y-(t.y??0)>0&&(S=-S),x.y+=S}return x},n}$(Ta,"cylinder");async function Pt(g,t,r){let{labelStyles:c,nodeStyles:h}=L(t);t.labelStyle=c;let{shapeSvg:l,bbox:f}=await X(g,t,Y(t)),i=Math.max(f.width+r.labelPaddingX*2,t?.width||0),n=Math.max(f.height+r.labelPaddingY*2,t?.height||0),e=-i/2,a=-n/2,s,{rx:o,ry:y}=t,{cssStyles:p}=t;if(r?.rx&&r.ry&&(o=r.rx,y=r.ry),t.look==="handDrawn"){let u=v.svg(l),m=H(t,{}),d=o||y?u.path(gt(e,a,i,n,o||0),m):u.rectangle(e,a,i,n,m);s=l.insert(()=>d,":first-child"),s.attr("class","basic label-container").attr("style",Q(p))}else s=l.insert("rect",":first-child"),s.attr("class","basic label-container").attr("style",h).attr("rx",Q(o)).attr("ry",Q(y)).attr("x",e).attr("y",a).attr("width",i).attr("height",n);return C(t,s,t.look==="handDrawn"?void 0:{width:i,height:n}),t.calcIntersect=function(u,m){return N.rect(u,m)},t.intersect=function(u){return N.rect(t,u)},l}$(Pt,"drawRect");async function _a(g,t){let{cssClasses:r,labelPaddingX:c,labelPaddingY:h,padding:l,width:f,height:i}=t,n={rx:0,ry:0,classes:r??"",labelPaddingX:c??(l??0)*2,labelPaddingY:h??l??0},e=await Pt(g,t,n);if(t.look==="handDrawn"){let y=v.svg(e),p=H(t,{}),u=e.select(".basic.label-container > path:nth-child(2)"),m=u.node();if(!m)return e;let d=null;if(m instanceof SVGGraphicsElement)d=m.getBBox();else return e;return e.insert(()=>y.line(d.x,d.y,d.x+d.width,d.y,p),".basic.label-container g.label"),e.insert(()=>y.line(d.x,d.y+d.height,d.x+d.width,d.y+d.height,p),".basic.label-container g.label"),u.remove(),e}let a=e.select(".basic.label-container"),s=(Number(a.attr("width"))||f)??0,o=(Number(a.attr("height"))||i)??0;return s>0&&o>0&&a.attr("stroke-dasharray",`${s} ${o}`),e}$(_a,"datastore");async function Ya(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let h=t.look==="neo"?16:t.padding??0,l=t.look==="neo"?16:t.padding??0,{shapeSvg:f,bbox:i,label:n}=await X(g,t,Y(t)),e=i.width+h,a=i.height+l,s=a*.2,o=-e/2,y=-a/2-s/2,{cssStyles:p}=t,u=v.svg(f),m=H(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let d=[{x:o,y:y+s},{x:-o,y:y+s},{x:-o,y:-y},{x:o,y:-y},{x:o,y},{x:-o,y},{x:-o,y:y+s}],x=u.polygon(d.map(S=>[S.x,S.y]),m),w=f.insert(()=>x,":first-child");return w.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",p),c&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",c),n.attr("transform",`translate(${o+(t.padding??0)/2-(i.x-(i.left??0))}, ${y+s+(t.padding??0)/2-(i.y-(i.top??0))})`),C(t,w),t.intersect=function(S){return N.rect(t,S)},f}$(Ya,"dividedRectangle");async function Xa(g,t){let{labelStyles:r,nodeStyles:c}=L(t),h=t.look==="neo"?12:5;t.labelStyle=r;let l=t.padding??0,f=t.look==="neo"?16:l,{shapeSvg:i,bbox:n}=await X(g,t,Y(t)),e=(t?.width?t?.width/2:n.width/2)+(f??0),a=e-h,s,{cssStyles:o}=t;if(t.look==="handDrawn"){let y=v.svg(i),p=H(t,{roughness:.2,strokeWidth:2.5}),u=H(t,{roughness:.2,strokeWidth:1.5}),m=y.circle(0,0,e*2,p),d=y.circle(0,0,a*2,u);s=i.insert("g",":first-child"),s.attr("class",Q(t.cssClasses)).attr("style",Q(o)),s.node()?.appendChild(m),s.node()?.appendChild(d)}else{s=i.insert("g",":first-child");let y=s.insert("circle",":first-child"),p=s.insert("circle");s.attr("class","basic label-container").attr("style",c),y.attr("class","outer-circle").attr("style",c).attr("r",e).attr("cx",0).attr("cy",0),p.attr("class","inner-circle").attr("style",c).attr("r",a).attr("cx",0).attr("cy",0)}return C(t,s),t.intersect=function(y){return J.info("DoubleCircle intersect",t,e,y),N.circle(t,e,y)},i}$(Xa,"doublecircle");function Oa(g,t,{config:{themeVariables:r}}){let{labelStyles:c,nodeStyles:h}=L(t);t.label="",t.labelStyle=c;let l=g.insert("g").attr("class",Y(t)).attr("id",t.domId??t.id),f=7,{cssStyles:i}=t,n=v.svg(l),{nodeBorder:e}=r,a=H(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(a.roughness=0);let s=n.circle(0,0,f*2,a),o=l.insert(()=>s,":first-child");return o.selectAll("path").attr("style",`fill: ${e} !important;`),i&&i.length>0&&t.look!=="handDrawn"&&o.selectAll("path").attr("style",i),h&&t.look!=="handDrawn"&&o.selectAll("path").attr("style",h),C(t,o),t.intersect=function(y){return J.info("filledCircle intersect",t,{radius:f,point:y}),N.circle(t,f,y)},l}$(Oa,"filledCircle");var ia=10,la=10;async function Fa(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let h=t.padding??0,l=t.look==="neo"?h*2:h;(t.width||t.height)&&(t.height=t?.height??0,t.height<ia&&(t.height=ia),t.width=(t?.width??0)-l-l/2,t.width<la&&(t.width=la));let{shapeSvg:f,bbox:i,label:n}=await X(g,t,Y(t)),e=(t?.width?t?.width:i.width)+(l??0),a=t?.height?t?.height:e+i.height,s=a,o=[{x:0,y:-a},{x:s,y:-a},{x:s/2,y:0}],{cssStyles:y}=t,p=v.svg(f),u=H(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let m=j(o),d=p.path(m,u),x=f.insert(()=>d,":first-child").attr("transform",`translate(${-a/2}, ${a/2})`).attr("class","outer-path");return y&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",y),c&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",c),t.width=e,t.height=a,C(t,x),n.attr("transform",`translate(${-i.width/2-(i.x-(i.left??0))}, ${-a/2+(t.padding??0)/2+(i.y-(i.top??0))})`),t.intersect=function(w){return J.info("Triangle intersect",t,o,w),N.polygon(t,o,w)},f}$(Fa,"flippedTriangle");async function ja(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let{shapeSvg:h,bbox:l,label:f}=await X(g,t,Y(t)),i=t.padding??12,n=Math.max(l.width+i*2,t.width??0,90),e=l.height+i*2,a=Math.max(Math.min(e*.16,14),8),s=Math.max(e+a,t.height??0),o=s-a,y=Math.max(n*.38,28),p=-s/2,u=[{x:-n/2,y:p},{x:-n/2+y,y:p},{x:-n/2+y,y:p+a},{x:n/2,y:p+a},{x:n/2,y:s/2},{x:-n/2,y:s/2}],m=[`M${u[0].x},${u[0].y}`,...u.slice(1).map(S=>`L${S.x},${S.y}`),"Z"].join(" "),{cssStyles:d}=t,x;if(t.look==="handDrawn"){let b=v.svg(h).path(m,H(t,{}));x=h.insert(()=>b,":first-child").attr("class","basic label-container"),d&&x.attr("style",d)}else x=h.insert("path",":first-child").attr("d",m).attr("class","basic label-container").attr("style",c);t.look==="handDrawn"?C(t,x):C(t,x,{width:n,height:s});let w=p+a+o/2;return f.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${w-l.height/2-(l.y-(l.top??0))})`),t.intersect=function(S){return N.polygon(t,u,S)},h}$(ja,"folder");function Ga(g,t,{dir:r,config:{state:c,themeVariables:h}}){let{nodeStyles:l}=L(t);t.label="";let f=g.insert("g").attr("class",Y(t)).attr("id",t.domId??t.id),{cssStyles:i}=t,n=Math.max(70,t?.width??0),e=Math.max(10,t?.height??0);r==="LR"&&(n=Math.max(10,t?.width??0),e=Math.max(70,t?.height??0));let a=-1*n/2,s=-1*e/2,o=v.svg(f),y=H(t,{stroke:h.lineColor,fill:h.lineColor});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let p=o.rectangle(a,s,n,e,y),u=f.insert(()=>p,":first-child");i&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",i),l&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",l),C(t,u);let m=c?.padding??0;return t.width&&t.height&&(t.width+=m/2||0,t.height+=m/2||0),t.intersect=function(d){return N.rect(t,d)},f}$(Ga,"forkJoin");async function qa(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let h=15,l=10,f=t.look==="neo"?16:t.padding??0,i=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.height=(t?.height??0)-i*2,t.height<l&&(t.height=l),t.width=(t?.width??0)-f*2,t.width<h&&(t.width=h));let{shapeSvg:n,bbox:e}=await X(g,t,Y(t)),a=(t?.width?t?.width:Math.max(h,e.width))+f*2,s=(t?.height?t?.height:Math.max(l,e.height))+i*2,o=s/2,{cssStyles:y}=t,p=v.svg(n),u=H(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let m=[{x:-a/2,y:-s/2},{x:a/2-o,y:-s/2},...it(-a/2+o,0,o,50,90,270),{x:a/2-o,y:s/2},{x:-a/2,y:s/2}],d=j(m),x=p.path(d,u),w=n.insert(()=>x,":first-child");return w.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",y),c&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",c),C(t,w),t.intersect=function(S){return J.info("Pill intersect",t,{radius:o,point:S}),N.polygon(t,m,S)},n}$(qa,"halfRoundedRectangle");var ie=$((g,t,r,c,h)=>[`M${g+h},${t}`,`L${g+r-h},${t}`,`L${g+r},${t-c/2}`,`L${g+r-h},${t-c}`,`L${g+h},${t-c}`,`L${g},${t-c/2}`,"Z"].join(" "),"createHexagonPathD");async function za(g,t){let{labelStyles:r,nodeStyles:c}=L(t),h=t.look==="neo"?3.5:4;t.labelStyle=r;let l=t.padding??0,f=70,i=32,n=t.look==="neo"?f:l,e=t.look==="neo"?i:l;if(t.width||t.height){let w=(t.height??0)/h;t.width=(t?.width??0)-2*w-e,t.height=(t.height??0)-n}let{shapeSvg:a,bbox:s}=await X(g,t,Y(t)),o=(t?.height?t?.height:s.height)+n,y=o/h,p=(t?.width?t?.width:s.width)+2*y+e,u=[{x:y,y:0},{x:p-y,y:0},{x:p,y:-o/2},{x:p-y,y:-o},{x:y,y:-o},{x:0,y:-o/2}],m,{cssStyles:d}=t;if(t.look==="handDrawn"){let x=v.svg(a),w=H(t,{}),S=ie(0,0,p,o,y),b=x.path(S,w);m=a.insert(()=>b,":first-child").attr("transform",`translate(${-p/2}, ${o/2})`),d&&m.attr("style",d)}else m=lt(a,p,o,u);return c&&m.attr("style",c),t.width=p,t.height=o,C(t,m),t.intersect=function(x){return N.polygon(t,u,x)},a}$(za,"hexagon");async function Va(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.label="",t.labelStyle=r;let{shapeSvg:h}=await X(g,t,Y(t)),l=Math.max(30,t?.width??0),f=Math.max(30,t?.height??0),{cssStyles:i}=t,n=v.svg(h),e=H(t,{});t.look!=="handDrawn"&&(e.roughness=0,e.fillStyle="solid");let a=[{x:0,y:0},{x:l,y:0},{x:0,y:f},{x:l,y:f}],s=j(a),o=n.path(s,e),y=h.insert(()=>o,":first-child");return y.attr("class","basic label-container outer-path"),i&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",i),c&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",c),y.attr("transform",`translate(${-l/2}, ${-f/2})`),C(t,y),t.intersect=function(p){return J.info("Pill intersect",t,{points:a}),N.polygon(t,a,p)},h}$(Va,"hourglass");async function Za(g,t,{config:{themeVariables:r,flowchart:c}}){let{labelStyles:h}=L(t);t.labelStyle=h;let l=t.assetHeight??48,f=t.assetWidth??48,i=Math.max(l,f),n=c?.wrappingWidth;t.width=Math.max(i,n??0);let{shapeSvg:e,bbox:a,label:s}=await X(g,t,"icon-shape default"),o=t.pos==="t",y=i,p=i,{nodeBorder:u}=r,{stylesMap:m}=Mt(t),d=-p/2,x=-y/2,w=t.label?8:0,S=v.svg(e),b=H(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");let k=S.rectangle(d,x,p,y,b),M=Math.max(p,a.width),P=y+a.height+w,W=S.rectangle(-M/2,-P/2,M,P,{...b,fill:"transparent",stroke:"none"}),B=e.insert(()=>k,":first-child"),D=e.insert(()=>W);if(t.icon){let T=e.append("g");T.html(`<g>${await Dt(t.icon,{height:i,width:i,fallbackPrefix:""})}</g>`);let A=T.node().getBBox(),E=A.width,I=A.height,R=A.x,_=A.y;T.attr("transform",`translate(${-E/2-R},${o?a.height/2+w/2-I/2-_:-a.height/2-w/2-I/2-_})`),T.attr("style",`color: ${m.get("stroke")??u};`)}return s.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))},${o?-P/2:P/2-a.height})`),B.attr("transform",`translate(0,${o?a.height/2+w/2:-a.height/2-w/2})`),C(t,D),t.intersect=function(T){if(J.info("iconSquare intersect",t,T),!t.label)return N.rect(t,T);let A=t.x??0,E=t.y??0,I=t.height??0,R=[];return o?R=[{x:A-a.width/2,y:E-I/2},{x:A+a.width/2,y:E-I/2},{x:A+a.width/2,y:E-I/2+a.height+w},{x:A+p/2,y:E-I/2+a.height+w},{x:A+p/2,y:E+I/2},{x:A-p/2,y:E+I/2},{x:A-p/2,y:E-I/2+a.height+w},{x:A-a.width/2,y:E-I/2+a.height+w}]:R=[{x:A-p/2,y:E-I/2},{x:A+p/2,y:E-I/2},{x:A+p/2,y:E-I/2+y},{x:A+a.width/2,y:E-I/2+y},{x:A+a.width/2/2,y:E+I/2},{x:A-a.width/2,y:E+I/2},{x:A-a.width/2,y:E-I/2+y},{x:A-p/2,y:E-I/2+y}],N.polygon(t,R,T)},e}$(Za,"icon");async function Ja(g,t,{config:{themeVariables:r,flowchart:c}}){let{labelStyles:h}=L(t);t.labelStyle=h;let l=t.assetHeight??48,f=t.assetWidth??48,i=Math.max(l,f),n=c?.wrappingWidth;t.width=Math.max(i,n??0);let{shapeSvg:e,bbox:a,label:s}=await X(g,t,"icon-shape default"),o=20,y=t.label?8:0,p=t.pos==="t",{nodeBorder:u,mainBkg:m}=r,{stylesMap:d}=Mt(t),x=v.svg(e),w=H(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");let S=d.get("fill");w.stroke=S??m;let b=e.append("g");t.icon&&b.html(`<g>${await Dt(t.icon,{height:i,width:i,fallbackPrefix:""})}</g>`);let k=b.node().getBBox(),M=k.width,P=k.height,W=k.x,B=k.y,D=Math.max(M,P)*Math.SQRT2+o*2,T=x.circle(0,0,D,w),A=Math.max(D,a.width),E=D+a.height+y,I=x.rectangle(-A/2,-E/2,A,E,{...w,fill:"transparent",stroke:"none"}),R=e.insert(()=>T,":first-child"),_=e.insert(()=>I);return b.attr("transform",`translate(${-M/2-W},${p?a.height/2+y/2-P/2-B:-a.height/2-y/2-P/2-B})`),b.attr("style",`color: ${d.get("stroke")??u};`),s.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))},${p?-E/2:E/2-a.height})`),R.attr("transform",`translate(0,${p?a.height/2+y/2:-a.height/2-y/2})`),C(t,_),t.intersect=function(O){return J.info("iconSquare intersect",t,O),N.rect(t,O)},e}$(Ja,"iconCircle");async function Ka(g,t,{config:{themeVariables:r,flowchart:c}}){let{labelStyles:h}=L(t);t.labelStyle=h;let l=t.assetHeight??48,f=t.assetWidth??48,i=Math.max(l,f),n=c?.wrappingWidth;t.width=Math.max(i,n??0);let{shapeSvg:e,bbox:a,halfPadding:s,label:o}=await X(g,t,"icon-shape default"),y=t.pos==="t",p=i+s*2,u=i+s*2,{nodeBorder:m,mainBkg:d}=r,{stylesMap:x}=Mt(t),w=-u/2,S=-p/2,b=t.label?8:0,k=v.svg(e),M=H(t,{});t.look!=="handDrawn"&&(M.roughness=0,M.fillStyle="solid");let P=x.get("fill");M.stroke=P??d;let W=k.path(gt(w,S,u,p,5),M),B=Math.max(u,a.width),D=p+a.height+b,T=k.rectangle(-B/2,-D/2,B,D,{...M,fill:"transparent",stroke:"none"}),A=e.insert(()=>W,":first-child").attr("class","icon-shape2"),E=e.insert(()=>T);if(t.icon){let I=e.append("g");I.html(`<g>${await Dt(t.icon,{height:i,width:i,fallbackPrefix:""})}</g>`);let R=I.node().getBBox(),_=R.width,O=R.height,G=R.x,q=R.y;I.attr("transform",`translate(${-_/2-G},${y?a.height/2+b/2-O/2-q:-a.height/2-b/2-O/2-q})`),I.attr("style",`color: ${x.get("stroke")??m};`)}return o.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))},${y?-D/2:D/2-a.height})`),A.attr("transform",`translate(0,${y?a.height/2+b/2:-a.height/2-b/2})`),C(t,E),t.intersect=function(I){if(J.info("iconSquare intersect",t,I),!t.label)return N.rect(t,I);let R=t.x??0,_=t.y??0,O=t.height??0,G=[];return y?G=[{x:R-a.width/2,y:_-O/2},{x:R+a.width/2,y:_-O/2},{x:R+a.width/2,y:_-O/2+a.height+b},{x:R+u/2,y:_-O/2+a.height+b},{x:R+u/2,y:_+O/2},{x:R-u/2,y:_+O/2},{x:R-u/2,y:_-O/2+a.height+b},{x:R-a.width/2,y:_-O/2+a.height+b}]:G=[{x:R-u/2,y:_-O/2},{x:R+u/2,y:_-O/2},{x:R+u/2,y:_-O/2+p},{x:R+a.width/2,y:_-O/2+p},{x:R+a.width/2/2,y:_+O/2},{x:R-a.width/2,y:_+O/2},{x:R-a.width/2,y:_-O/2+p},{x:R-u/2,y:_-O/2+p}],N.polygon(t,G,I)},e}$(Ka,"iconRounded");async function Ua(g,t,{config:{themeVariables:r,flowchart:c}}){let{labelStyles:h}=L(t);t.labelStyle=h;let l=t.assetHeight??48,f=t.assetWidth??48,i=Math.max(l,f),n=c?.wrappingWidth;t.width=Math.max(i,n??0);let{shapeSvg:e,bbox:a,halfPadding:s,label:o}=await X(g,t,"icon-shape default"),y=t.pos==="t",p=i+s*2,u=i+s*2,{nodeBorder:m,mainBkg:d}=r,{stylesMap:x}=Mt(t),w=-u/2,S=-p/2,b=t.label?8:0,k=v.svg(e),M=H(t,{});t.look!=="handDrawn"&&(M.roughness=0,M.fillStyle="solid");let P=x.get("fill");M.stroke=P??d;let W=k.path(gt(w,S,u,p,.1),M),B=Math.max(u,a.width),D=p+a.height+b,T=k.rectangle(-B/2,-D/2,B,D,{...M,fill:"transparent",stroke:"none"}),A=e.insert(()=>W,":first-child"),E=e.insert(()=>T);if(t.icon){let I=e.append("g");I.html(`<g>${await Dt(t.icon,{height:i,width:i,fallbackPrefix:""})}</g>`);let R=I.node().getBBox(),_=R.width,O=R.height,G=R.x,q=R.y;I.attr("transform",`translate(${-_/2-G},${y?a.height/2+b/2-O/2-q:-a.height/2-b/2-O/2-q})`),I.attr("style",`color: ${x.get("stroke")??m};`)}return o.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))},${y?-D/2:D/2-a.height})`),A.attr("transform",`translate(0,${y?a.height/2+b/2:-a.height/2-b/2})`),C(t,E),t.intersect=function(I){if(J.info("iconSquare intersect",t,I),!t.label)return N.rect(t,I);let R=t.x??0,_=t.y??0,O=t.height??0,G=[];return y?G=[{x:R-a.width/2,y:_-O/2},{x:R+a.width/2,y:_-O/2},{x:R+a.width/2,y:_-O/2+a.height+b},{x:R+u/2,y:_-O/2+a.height+b},{x:R+u/2,y:_+O/2},{x:R-u/2,y:_+O/2},{x:R-u/2,y:_-O/2+a.height+b},{x:R-a.width/2,y:_-O/2+a.height+b}]:G=[{x:R-u/2,y:_-O/2},{x:R+u/2,y:_-O/2},{x:R+u/2,y:_-O/2+p},{x:R+a.width/2,y:_-O/2+p},{x:R+a.width/2/2,y:_+O/2},{x:R-a.width/2,y:_+O/2},{x:R-a.width/2,y:_-O/2+p},{x:R-u/2,y:_-O/2+p}],N.polygon(t,G,I)},e}$(Ua,"iconSquare");async function Qa(g,t,{config:{flowchart:r}}){let c=new Image;c.src=t?.img??"",await c.decode();let h=Number(c.naturalWidth.toString().replace("px","")),l=Number(c.naturalHeight.toString().replace("px",""));t.imageAspectRatio=h/l;let{labelStyles:f}=L(t);t.labelStyle=f;let i=r?.wrappingWidth;t.defaultWidth=r?.wrappingWidth;let n=Math.max(t.label?i??0:0,t?.assetWidth??h),e=t.constraint==="on"&&t?.assetHeight?t.assetHeight*t.imageAspectRatio:n,a=t.constraint==="on"?e/t.imageAspectRatio:t?.assetHeight??l;t.width=Math.max(e,i??0);let{shapeSvg:s,bbox:o,label:y}=await X(g,t,"image-shape default"),p=t.pos==="t",u=-e/2,m=-a/2,d=t.label?8:0,x=v.svg(s),w=H(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");let S=x.rectangle(u,m,e,a,w),b=Math.max(e,o.width),k=a+o.height+d,M=x.rectangle(-b/2,-k/2,b,k,{...w,fill:"none",stroke:"none"}),P=s.insert(()=>S,":first-child"),W=s.insert(()=>M);if(t.img){let B=s.append("image");B.attr("href",t.img),B.attr("width",e),B.attr("height",a),B.attr("preserveAspectRatio","none"),B.attr("transform",`translate(${-e/2},${p?k/2-a:-k/2})`)}return y.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))},${p?-a/2-o.height/2-d/2:a/2-o.height/2+d/2})`),P.attr("transform",`translate(0,${p?o.height/2+d/2:-o.height/2-d/2})`),C(t,W),t.intersect=function(B){if(J.info("iconSquare intersect",t,B),!t.label)return N.rect(t,B);let D=t.x??0,T=t.y??0,A=t.height??0,E=[];return p?E=[{x:D-o.width/2,y:T-A/2},{x:D+o.width/2,y:T-A/2},{x:D+o.width/2,y:T-A/2+o.height+d},{x:D+e/2,y:T-A/2+o.height+d},{x:D+e/2,y:T+A/2},{x:D-e/2,y:T+A/2},{x:D-e/2,y:T-A/2+o.height+d},{x:D-o.width/2,y:T-A/2+o.height+d}]:E=[{x:D-e/2,y:T-A/2},{x:D+e/2,y:T-A/2},{x:D+e/2,y:T-A/2+a},{x:D+o.width/2,y:T-A/2+a},{x:D+o.width/2/2,y:T+A/2},{x:D-o.width/2,y:T+A/2},{x:D-o.width/2,y:T-A/2+a},{x:D-e/2,y:T-A/2+a}],N.polygon(t,E,B)},s}$(Qa,"imageSquare");async function ts(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let h=t.padding??0,l=h,f=t.look==="neo"?h*2:h,{shapeSvg:i,bbox:n}=await X(g,t,Y(t)),e=Math.max(n.height+l*2,t.height??0),a=Math.max(n.width+f*2,(t.width??0)-e),s=[{x:0,y:0},{x:a,y:0},{x:a+3*e/6,y:-e},{x:-3*e/6,y:-e}],o,{cssStyles:y}=t;if(t.look==="handDrawn"){let p=v.svg(i),u=H(t,{}),m=j(s),d=p.path(m,u);o=i.insert(()=>d,":first-child").attr("transform",`translate(${-a/2}, ${e/2})`),y&&o.attr("style",y)}else o=lt(i,a,e,s);return c&&o.attr("style",c),t.width=a,t.height=e,C(t,o),t.intersect=function(p){return N.polygon(t,s,p)},i}$(ts,"inv_trapezoid");async function as(g,t){let{shapeSvg:r,bbox:c,label:h}=await X(g,t,"label"),l=r.insert("rect",":first-child");return l.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),h.attr("transform",`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${-(c.height/2)-(c.y-(c.top??0))})`),C(t,l),t.intersect=function(n){return N.rect(t,n)},r}$(as,"labelRect");async function ss(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let h=t.padding??0,l=h,f=t.look==="neo"?h*2:h,{shapeSvg:i,bbox:n}=await X(g,t,Y(t)),e=Math.max(n.height+l,t.height??0),a=Math.max(n.width+f,(t.width??0)-e),s=[{x:0,y:0},{x:a+3*e/6,y:0},{x:a,y:-e},{x:-(3*e)/6,y:-e}],o,{cssStyles:y}=t;if(t.look==="handDrawn"){let p=v.svg(i),u=H(t,{}),m=j(s),d=p.path(m,u);o=i.insert(()=>d,":first-child").attr("transform",`translate(${-a/2}, ${e/2})`),y&&o.attr("style",y)}else o=lt(i,a,e,s);return c&&o.attr("style",c),t.width=a,t.height=e,C(t,o),t.intersect=function(p){return N.polygon(t,s,p)},i}$(ss,"lean_left");async function es(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let h=t.padding??0,l=h,f=t.look==="neo"?h*2:h,{shapeSvg:i,bbox:n}=await X(g,t,Y(t)),e=Math.max(n.height+l,t.height??0),a=Math.max(n.width+f,(t.width??0)-e),s=[{x:-3*e/6,y:0},{x:a,y:0},{x:a+3*e/6,y:-e},{x:0,y:-e}],o,{cssStyles:y}=t;if(t.look==="handDrawn"){let p=v.svg(i),u=H(t,{}),m=j(s),d=p.path(m,u);o=i.insert(()=>d,":first-child").attr("transform",`translate(${-a/2}, ${e/2})`),y&&o.attr("style",y)}else o=lt(i,a,e,s);return c&&o.attr("style",c),t.width=a,t.height=e,C(t,o),t.intersect=function(p){return N.polygon(t,s,p)},i}$(es,"lean_right");function rs(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.label="",t.labelStyle=r;let h=g.insert("g").attr("class",Y(t)).attr("id",t.domId??t.id),{cssStyles:l}=t,f=Math.max(35,t?.width??0),i=Math.max(35,t?.height??0),n=7,e=[{x:f,y:0},{x:0,y:i+n/2},{x:f-2*n,y:i+n/2},{x:0,y:2*i},{x:f,y:i-n/2},{x:2*n,y:i-n/2}],a=v.svg(h),s=H(t,{});t.look!=="handDrawn"&&(s.roughness=0,s.fillStyle="solid");let o=j(e),y=a.path(o,s),p=h.insert(()=>y,":first-child");return p.attr("class","outer-path"),l&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",l),c&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",c),p.attr("transform",`translate(-${f/2},${-i})`),C(t,p),t.intersect=function(u){return J.info("lightningBolt intersect",t,u),N.polygon(t,e,u)},h}$(rs,"lightningBolt");var le=$((g,t,r,c,h,l,f)=>[`M${g},${t+l}`,`a${h},${l} 0,0,0 ${r},0`,`a${h},${l} 0,0,0 ${-r},0`,`l0,${c}`,`a${h},${l} 0,0,0 ${r},0`,`l0,${-c}`,`M${g},${t+l+f}`,`a${h},${l} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),ne=$((g,t,r,c,h,l,f)=>[`M${g},${t+l}`,`M${g+r},${t+l}`,`a${h},${l} 0,0,0 ${-r},0`,`l0,${c}`,`a${h},${l} 0,0,0 ${r},0`,`l0,${-c}`,`M${g},${t+l+f}`,`a${h},${l} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),ce=$((g,t,r,c,h,l)=>[`M${g-r/2},${-c/2}`,`a${h},${l} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),na=10,ca=10;async function is(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let h=t.padding??0,l=t.look==="neo"?16:h,f=t.look==="neo"?24:h;if(t.width||t.height){let d=t.width??0;t.width=(t.width??0)-l,t.width<ca&&(t.width=ca);let w=d/2/(2.5+d/50);t.height=(t.height??0)-f-w*3,t.height<na&&(t.height=na)}let{shapeSvg:i,bbox:n,label:e}=await X(g,t,Y(t)),a=(t?.width?t?.width:n.width)+l*2,s=a/2,o=s/(2.5+a/50),y=(t?.height?t?.height:n.height)+o+f*2,p=y*.1,u,{cssStyles:m}=t;if(t.look==="handDrawn"){let d=v.svg(i),x=ne(0,0,a,y,s,o,p),w=ce(0,o,a,y,s,o),S=H(t,{}),b=d.path(x,S),k=d.path(w,S);i.insert(()=>k,":first-child").attr("class","line"),u=i.insert(()=>b,":first-child"),u.attr("class","basic label-container"),m&&u.attr("style",m)}else{let d=le(0,0,a,y,s,o,p);u=i.insert("path",":first-child").attr("d",d).attr("class","basic label-container outer-path").attr("style",Q(m)).attr("style",c)}return u.attr("label-offset-y",o),u.attr("transform",`translate(${-a/2}, ${-(y/2+o)})`),C(t,u),e.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${-(n.height/2)+o-(n.y-(n.top??0))})`),t.intersect=function(d){let x=N.rect(t,d),w=x.x-(t.x??0);if(s!=0&&(Math.abs(w)<(t.width??0)/2||Math.abs(w)==(t.width??0)/2&&Math.abs(x.y-(t.y??0))>(t.height??0)/2-o)){let S=o*o*(1-w*w/(s*s));S>0&&(S=Math.sqrt(S)),S=o-S,d.y-(t.y??0)>0&&(S=-S),x.y+=S}return x},i}$(is,"linedCylinder");async function ls(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let h=t.padding??0,l=t.look==="neo"?16:h,f=t.look==="neo"?12:h;if(t.width||t.height){let S=t.width;t.width=(S??0)*10/11-l*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-f*2,t.height<10&&(t.height=10)}let{shapeSvg:i,bbox:n,label:e}=await X(g,t,Y(t)),a=(t?.width?t?.width:n.width)+(l??0)*2,s=(t?.height?t?.height:n.height)+(f??0)*2,o=t.look==="neo"?s/4:s/8,y=s+o,{cssStyles:p}=t,u=v.svg(i),m=H(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let d=[{x:-a/2-a/2*.1,y:-y/2},{x:-a/2-a/2*.1,y:y/2},...pt(-a/2-a/2*.1,y/2,a/2+a/2*.1,y/2,o,.8),{x:a/2+a/2*.1,y:-y/2},{x:-a/2-a/2*.1,y:-y/2},{x:-a/2,y:-y/2},{x:-a/2,y:y/2*1.1},{x:-a/2,y:-y/2}],x=u.polygon(d.map(S=>[S.x,S.y]),m),w=i.insert(()=>x,":first-child");return w.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",p),c&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",c),w.attr("transform",`translate(0,${-o/2})`),e.attr("transform",`translate(${-a/2+(t.padding??0)+a/2*.1/2-(n.x-(n.left??0))},${-s/2+(t.padding??0)-o/2-(n.y-(n.top??0))})`),C(t,w),t.intersect=function(S){return N.polygon(t,d,S)},i}$(ls,"linedWaveEdgedRect");async function ns(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let h=t.padding??0,l=t.look==="neo"?16:h,f=t.look==="neo"?12:h,i=t.look==="neo"?10:5;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-l*2-2*i,10),t.height=Math.max((t?.height??0)-f*2-2*i,10));let{shapeSvg:n,bbox:e,label:a}=await X(g,t,Y(t)),s=(t?.width?t?.width:e.width)+l*2+2*i,o=(t?.height?t?.height:e.height)+f*2+2*i,y=s-2*i,p=o-2*i,u=-y/2,m=-p/2,{cssStyles:d}=t,x=v.svg(n),w=H(t,{}),S=[{x:u-i,y:m+i},{x:u-i,y:m+p+i},{x:u+y-i,y:m+p+i},{x:u+y-i,y:m+p},{x:u+y,y:m+p},{x:u+y,y:m+p-i},{x:u+y+i,y:m+p-i},{x:u+y+i,y:m-i},{x:u+i,y:m-i},{x:u+i,y:m},{x:u,y:m},{x:u,y:m+i}],b=[{x:u,y:m+i},{x:u+y-i,y:m+i},{x:u+y-i,y:m+p},{x:u+y,y:m+p},{x:u+y,y:m},{x:u,y:m}];t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");let k=j(S),M=x.path(k,w),P=j(b),W=x.path(P,w);t.look!=="handDrawn"&&(M=Xt(M),W=Xt(W));let B=n.insert("g",":first-child");return B.insert(()=>M),B.insert(()=>W),B.attr("class","basic label-container outer-path"),d&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",d),c&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",c),a.attr("transform",`translate(${-(e.width/2)-i-(e.x-(e.left??0))}, ${-(e.height/2)+i-(e.y-(e.top??0))})`),C(t,B),t.intersect=function(D){return N.polygon(t,S,D)},n}$(ns,"multiRect");async function cs(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let{shapeSvg:h,bbox:l,label:f}=await X(g,t,Y(t)),i=t.padding??0,n=t.look==="neo"?16:i,e=t.look==="neo"?12:i,a=!0;(t.width||t.height)&&(a=!1,t.width=(t?.width??0)-n*2,t.height=(t?.height??0)-e*3);let s=Math.max(l.width,t?.width??0)+n*2,o=Math.max(l.height,t?.height??0)+e*3,y=t.look==="neo"?o/4:o/8,p=o+(a?y/2:-y/2),u=-s/2,m=-p/2,d=10,{cssStyles:x}=t,w=pt(u-d,m+p+d,u+s-d,m+p+d,y,.8),S=w?.[w.length-1],b=[{x:u-d,y:m+d},{x:u-d,y:m+p+d},...w,{x:u+s-d,y:S.y-d},{x:u+s,y:S.y-d},{x:u+s,y:S.y-2*d},{x:u+s+d,y:S.y-2*d},{x:u+s+d,y:m-d},{x:u+d,y:m-d},{x:u+d,y:m},{x:u,y:m},{x:u,y:m+d}],k=[{x:u,y:m+d},{x:u+s-d,y:m+d},{x:u+s-d,y:S.y-d},{x:u+s,y:S.y-d},{x:u+s,y:m},{x:u,y:m}],M=v.svg(h),P=H(t,{});t.look!=="handDrawn"&&(P.roughness=0,P.fillStyle="solid");let W=j(b),B=M.path(W,P),D=j(k),T=M.path(D,P),A=h.insert(()=>B,":first-child");return A.insert(()=>T),A.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",x),c&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",c),A.attr("transform",`translate(0,${-y/2})`),f.attr("transform",`translate(${-(l.width/2)-d-(l.x-(l.left??0))}, ${-(l.height/2)+d-y/2-(l.y-(l.top??0))})`),C(t,A),t.intersect=function(E){return N.polygon(t,b,E)},h}$(cs,"multiWaveEdgedRectangle");async function os(g,t,{config:{themeVariables:r}}){let{labelStyles:c,nodeStyles:h}=L(t);t.labelStyle=c,t.useHtmlLabels||mt(bt())||(t.centerLabel=!0);let{shapeSvg:f,bbox:i,label:n}=await X(g,t,Y(t)),e=Math.max(i.width+(t.padding??0)*2,t?.width??0),a=Math.max(i.height+(t.padding??0)*2,t?.height??0),s=-e/2,o=-a/2,{cssStyles:y}=t,p=v.svg(f),u=H(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let m=p.rectangle(s,o,e,a,u),d=f.insert(()=>m,":first-child");return d.attr("class","basic label-container outer-path"),n.attr("class","label noteLabel"),y&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",y),h&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",h),n.attr("transform",`translate(${-i.width/2-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),C(t,d),t.intersect=function(x){return N.rect(t,x)},f}$(os,"note");var oe=$((g,t,r)=>[`M${g+r/2},${t}`,`L${g+r},${t-r/2}`,`L${g+r/2},${t-r}`,`L${g},${t-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function hs(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let{shapeSvg:h,bbox:l}=await X(g,t,Y(t)),f=l.width+(t.padding??0),i=l.height+(t.padding??0),n=f+i,e=.5,a=[{x:n/2,y:0},{x:n,y:-n/2},{x:n/2,y:-n},{x:0,y:-n/2}],s,{cssStyles:o}=t;if(t.look==="handDrawn"){let y=v.svg(h),p=H(t,{}),u=oe(0,0,n),m=y.path(u,p);s=h.insert(()=>m,":first-child").attr("transform",`translate(${-n/2+e}, ${n/2})`),o&&s.attr("style",o)}else s=lt(h,n,n,a),s.attr("transform",`translate(${-n/2+e}, ${n/2})`);return c&&s.attr("style",c),C(t,s),t.calcIntersect=function(y,p){let u=y.width,m=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}],d=N.polygon(y,m,p);return{x:d.x-.5,y:d.y-.5}},t.intersect=function(y){return this.calcIntersect(t,y)},h}$(hs,"question");async function gs(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let h=t.padding??0,l=t.look==="neo"?21:h??0,f=t.look==="neo"?12:h??0,{shapeSvg:i,bbox:n,label:e}=await X(g,t,Y(t)),a=n.width+(t.look==="neo"?l*2:l),s=Math.max(n.height+(t.look==="neo"?f*2:f),t.height??0),o=s/4,p=-Math.max(a,(t.width??0)-o)/2,u=-s/2,m=u/2,d=[{x:p+m,y:u},{x:p,y:0},{x:p+m,y:-u},{x:-p,y:-u},{x:-p,y:u}],{cssStyles:x}=t,w=v.svg(i),S=H(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");let b=j(d),k=w.path(b,S),M=i.insert(()=>k,":first-child");return M.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",x),c&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",c),M.attr("transform",`translate(${-m/2},0)`),e.attr("transform",`translate(${-m/2-n.width/2-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),C(t,M),t.intersect=function(P){return N.polygon(t,d,P)},i}$(gs,"rect_left_inv_arrow");async function ys(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let h;t.cssClasses?h="node "+t.cssClasses:h="node default";let l=g.insert("g").attr("class",h).attr("id",t.domId||t.id),f=l.insert("g"),i=l.insert("g").attr("class","label").attr("style",c),n=t.description,e=t.label,a=await aa(i,e,t.labelStyle,!0,!0),s={width:0,height:0};if(mt(K())){let P=a.children[0],W=V(a);s=P.getBoundingClientRect(),W.attr("width",s.width),W.attr("height",s.height)}J.info("Text 2",n);let o=n||[],y=a.getBBox(),p=await aa(i,Array.isArray(o)?o.join("<br/>"):o,t.labelStyle,!0,!0),u=p.children[0],m=V(p);s=u.getBoundingClientRect(),m.attr("width",s.width),m.attr("height",s.height);let d=(t.padding||0)/2;V(p).attr("transform","translate( "+(s.width>y.width?0:(y.width-s.width)/2)+", "+(y.height+d+5)+")"),V(a).attr("transform","translate( "+(s.width<y.width?0:-(y.width-s.width)/2)+", 0)"),s=i.node().getBBox(),i.attr("transform","translate("+-s.width/2+", "+(-s.height/2-d+3)+")");let x=s.width+(t.padding||0),w=s.height+(t.padding||0),S=-s.width/2-d,b=-s.height/2-d,k,M;if(t.look==="handDrawn"){let P=v.svg(l),W=H(t,{}),B=P.path(gt(S,b,x,w,t.rx||0),W),D=P.line(-s.width/2-d,-s.height/2-d+y.height+d,s.width/2+d,-s.height/2-d+y.height+d,W);M=l.insert(()=>(J.debug("Rough node insert CXC",B),D),":first-child"),k=l.insert(()=>(J.debug("Rough node insert CXC",B),B),":first-child")}else k=f.insert("rect",":first-child"),M=f.insert("line"),k.attr("class","outer title-state").attr("style",c).attr("x",-s.width/2-d).attr("y",-s.height/2-d).attr("width",s.width+(t.padding||0)).attr("height",s.height+(t.padding||0)),M.attr("class","divider").attr("x1",-s.width/2-d).attr("x2",s.width/2+d).attr("y1",-s.height/2-d+y.height+d).attr("y2",-s.height/2-d+y.height+d);return C(t,k),t.intersect=function(P){return N.rect(t,P)},l}$(ys,"rectWithTitle");async function fs(g,t,{config:{themeVariables:r}}){let c=r?.radius??5,h={rx:c,ry:c,classes:"",labelPaddingX:(t?.padding??0)*1,labelPaddingY:(t?.padding??0)*1};return Pt(g,t,h)}$(fs,"roundedRect");var xt=8;async function ps(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let h=t.look==="neo"?16:t.padding??0,l=t.look==="neo"?12:t.padding??0,{shapeSvg:f,bbox:i,label:n}=await X(g,t,Y(t)),e=(t?.width??i.width)+h*2+(t.look==="neo"?xt:xt*2),a=(t?.height??i.height)+l*2,s=e-xt,o=a,y=xt-e/2,p=-a/2,{cssStyles:u}=t,m=v.svg(f),d=H(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");let x=[{x:y,y:p},{x:y+s,y:p},{x:y+s,y:p+o},{x:y-xt,y:p+o},{x:y-xt,y:p},{x:y,y:p},{x:y,y:p+o}],w=m.polygon(x.map(b=>[b.x,b.y]),d),S=f.insert(()=>w,":first-child");return S.attr("class","basic label-container outer-path").attr("style",Q(u)),c&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",c),u&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",c),n.attr("transform",`translate(${xt/2-i.width/2-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),C(t,S),t.intersect=function(b){return N.rect(t,b)},f}$(ps,"shadedProcess");async function us(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let h=t.padding??0,l=t.look==="neo"?16:h,f=t.look==="neo"?12:h;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-l*2,10),t.height=Math.max((t?.height??0)/1.5-f*2,10));let{shapeSvg:i,bbox:n,label:e}=await X(g,t,Y(t)),a=(t?.width?t?.width:n.width)+l*2,s=((t?.height?t?.height:n.height)+f*2)*1.5,o=a,y=s/1.5,p=-o/2,u=-y/2,{cssStyles:m}=t,d=v.svg(i),x=H(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let w=[{x:p,y:u},{x:p,y:u+y},{x:p+o,y:u+y},{x:p+o,y:u-y/2}],S=j(w),b=d.path(S,x),k=i.insert(()=>b,":first-child");return k.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",m),c&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",c),k.attr("transform",`translate(0, ${y/4})`),e.attr("transform",`translate(${-o/2+(t.padding??0)-(n.x-(n.left??0))}, ${-y/4+(t.padding??0)-(n.y-(n.top??0))})`),C(t,k),t.intersect=function(M){return N.polygon(t,w,M)},i}$(us,"slopedRect");async function ds(g,t){let r=t.padding??0,c=t.look==="neo"?16:r*2,h=t.look==="neo"?12:r,l={rx:0,ry:0,classes:"",labelPaddingX:t.labelPaddingX??c,labelPaddingY:h};return Pt(g,t,l)}$(ds,"squareRect");async function ms(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let h=t.padding??0,l=t.look==="neo"?20:h,f=t.look==="neo"?12:h,{shapeSvg:i,bbox:n}=await X(g,t,Y(t)),e=n.height+(t.look==="neo"?f*2:f),a=n.width+e/4+(t.look==="neo"?l*2:l),s=e/2,{cssStyles:o}=t,y=v.svg(i),p=H(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let u=[{x:-a/2+s,y:-e/2},{x:a/2-s,y:-e/2},...it(-a/2+s,0,s,50,90,270),{x:a/2-s,y:e/2},...it(a/2-s,0,s,50,270,450)],m=j(u),d=y.path(m,p),x=i.insert(()=>d,":first-child");return x.attr("class","basic label-container outer-path"),o&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",o),c&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",c),C(t,x),t.intersect=function(w){return N.polygon(t,u,w)},i}$(ms,"stadium");async function xs(g,t){let r={rx:t.look==="neo"?3:5,ry:t.look==="neo"?3:5,classes:"flowchart-node"};return Pt(g,t,r)}$(xs,"state");function ws(g,t,{config:{themeVariables:r}}){let{labelStyles:c,nodeStyles:h}=L(t);t.labelStyle=c;let{cssStyles:l}=t,{lineColor:f,stateBorder:i,nodeBorder:n,nodeShadow:e}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);let a=g.insert("g").attr("class","node default").attr("id",t.domId??t.id),s=v.svg(a),o=H(t,{});t.look!=="handDrawn"&&(o.roughness=0,o.fillStyle="solid");let y=s.circle(0,0,t.width,{...o,stroke:f,strokeWidth:2}),p=i??n,u=(t.width??0)*5/14,m=s.circle(0,0,u,{...o,fill:p,stroke:p,strokeWidth:2,fillStyle:"solid"}),d=a.insert(()=>y,":first-child");if(d.insert(()=>m),t.look!=="handDrawn"&&d.attr("class","outer-path"),l&&d.selectAll("path").attr("style",l),h&&d.selectAll("path").attr("style",h),t.width<25&&e&&t.look!=="handDrawn"){let x=g.node()?.ownerSVGElement?.id??"",w=x?`${x}-drop-shadow-small`:"drop-shadow-small";d.attr("style",`filter:url(#${w})`)}return C(t,d),t.intersect=function(x){return N.circle(t,(t.width??0)/2,x)},a}$(ws,"stateEnd");function bs(g,t,{config:{themeVariables:r}}){let{lineColor:c,nodeShadow:h}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);let l=g.insert("g").attr("class","node default").attr("id",t.domId||t.id),f;if(t.look==="handDrawn"){let n=v.svg(l).circle(0,0,t.width,Ut(c));f=l.insert(()=>n),f.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14)}else f=l.insert("circle",":first-child"),f.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14);if(t.width<25&&h&&t.look!=="handDrawn"){let i=g.node()?.ownerSVGElement?.id??"",n=i?`${i}-drop-shadow-small`:"drop-shadow-small";f.attr("style",`filter:url(#${n})`)}return C(t,f),t.intersect=function(i){return N.circle(t,(t.width??7)/2,i)},l}$(bs,"stateStart");var $t=8;async function Ss(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let h=t?.padding??8,l=t.look==="neo"?28:h,f=t.look==="neo"?12:h,{shapeSvg:i,bbox:n}=await X(g,t,Y(t)),e=Math.max(n.width+2*$t+l,t.width??0),a=Math.max(n.height+f,t.height??0),s=e-2*$t,o=a,y=-e/2,p=-a/2,u=[{x:0,y:0},{x:s,y:0},{x:s,y:-o},{x:0,y:-o},{x:0,y:0},{x:-8,y:0},{x:s+8,y:0},{x:s+8,y:-o},{x:-8,y:-o},{x:-8,y:0}];if(t.look==="handDrawn"){let m=v.svg(i),d=H(t,{}),x=m.rectangle(y,p,s+16,o,d),w=m.line(y+$t,p,y+$t,p+o,d),S=m.line(y+$t+s,p,y+$t+s,p+o,d);i.insert(()=>w,":first-child"),i.insert(()=>S,":first-child");let b=i.insert(()=>x,":first-child"),{cssStyles:k}=t;b.attr("class","basic label-container").attr("style",Q(k)),C(t,b)}else{let m=lt(i,s,o,u);c&&m.attr("style",c),C(t,m)}return t.intersect=function(m){return N.polygon(t,u,m)},i}$(Ss,"subroutine");var Yt=.2;async function $s(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let h=t.padding??0,l=t.look==="neo"?16:h,f=t.look==="neo"?12:h;(t.width||t.height)&&(t.height=Math.max((t?.height??0)-f*2,10),t.width=Math.max((t?.width??0)-l*2-Yt*(t.height+f*2),10));let{shapeSvg:i,bbox:n}=await X(g,t,Y(t)),e=(t?.height?t?.height:n.height)+f*2,a=Yt*e,s=Yt*e,y=(t?.width?t?.width:n.width)+l*2+a-a,p=e,u=-y/2,m=-p/2,{cssStyles:d}=t,x=v.svg(i),w=H(t,{}),S=[{x:u-a/2,y:m},{x:u+y+a/2,y:m},{x:u+y+a/2,y:m+p},{x:u-a/2,y:m+p}],b=[{x:u+y-a/2,y:m+p},{x:u+y+a/2,y:m+p},{x:u+y+a/2,y:m+p-s}];t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");let k=j(S),M=x.path(k,w),P=j(b),W=x.path(P,{...w,fillStyle:"solid"}),B=i.insert(()=>W,":first-child");return B.insert(()=>M,":first-child"),B.attr("class","basic label-container outer-path"),d&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",d),c&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",c),C(t,B),t.intersect=function(D){return N.polygon(t,S,D)},i}$($s,"taggedRect");async function vs(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let{shapeSvg:h,bbox:l,label:f}=await X(g,t,Y(t)),i=Math.max(l.width+(t.padding??0)*2,t?.width??0),n=Math.max(l.height+(t.padding??0)*2,t?.height??0),e=n/8,a=.2*i,s=.2*n,o=n+e,{cssStyles:y}=t,p=v.svg(h),u=H(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let m=[{x:-i/2-i/2*.1,y:o/2},...pt(-i/2-i/2*.1,o/2,i/2+i/2*.1,o/2,e,.8),{x:i/2+i/2*.1,y:-o/2},{x:-i/2-i/2*.1,y:-o/2}],d=-i/2+i/2*.1,x=-o/2-s*.4,w=[{x:d+i-a,y:(x+n)*1.3},{x:d+i,y:x+n-s},{x:d+i,y:(x+n)*.9},...pt(d+i,(x+n)*1.25,d+i-a,(x+n)*1.3,-n*.02,.5)],S=j(m),b=p.path(S,u),k=j(w),M=p.path(k,{...u,fillStyle:"solid"}),P=h.insert(()=>M,":first-child");return P.insert(()=>b,":first-child"),P.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",y),c&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",c),P.attr("transform",`translate(0,${-e/2})`),f.attr("transform",`translate(${-i/2+(t.padding??0)-(l.x-(l.left??0))},${-n/2+(t.padding??0)-e/2-(l.y-(l.top??0))})`),C(t,P),t.intersect=function(W){return N.polygon(t,m,W)},h}$(vs,"taggedWaveEdgedRectangle");async function ks(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let{shapeSvg:h,bbox:l}=await X(g,t,Y(t)),f=Math.max(l.width+(t.padding??0),t?.width||0),i=Math.max(l.height+(t.padding??0),t?.height||0),n=-f/2,e=-i/2,a=h.insert("rect",":first-child");return a.attr("class","text").attr("style",c).attr("rx",0).attr("ry",0).attr("x",n).attr("y",e).attr("width",f).attr("height",i),C(t,a),t.intersect=function(s){return N.rect(t,s)},h}$(ks,"text");var he=$((g,t,r,c,h,l)=>`M${g},${t}
3
+ a${h},${l} 0,0,1 0,${-c}
4
+ l${r},0
5
+ a${h},${l} 0,0,1 0,${c}
6
+ M${r},${-c}
7
+ a${h},${l} 0,0,0 0,${c}
8
+ l${-r},0`,"createCylinderPathD"),ge=$((g,t,r,c,h,l)=>[`M${g},${t}`,`M${g+r},${t}`,`a${h},${l} 0,0,0 0,${-c}`,`l${-r},0`,`a${h},${l} 0,0,0 0,${c}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),ye=$((g,t,r,c,h,l)=>[`M${g+r/2},${-c/2}`,`a${h},${l} 0,0,0 0,${c}`].join(" "),"createInnerCylinderPathD"),oa=5,ha=10;async function Ps(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let h=t.padding??0,l=t.look==="neo"?12:h/2,f=t.height??0;if(t.height&&(t.height=t.height-l,t.height<oa&&(t.height=oa)),t.width){let d=f/2/(2.5+f/50);t.width=t.width-l-d*3,t.width<ha&&(t.width=ha)}let{shapeSvg:i,bbox:n,label:e}=await X(g,t,Y(t)),a=Math.max(t.height??0,n.height)+l,s=a/2,o=s/(2.5+a/50),y=Math.max(t.width??0,n.width)+o+l,{cssStyles:p}=t,u;if(t.look==="handDrawn"){let m=v.svg(i),d=ge(0,0,y,a,o,s),x=ye(0,0,y,a,o,s),w=m.path(d,H(t,{})),S=m.path(x,H(t,{fill:"none"}));u=i.insert(()=>S,":first-child"),u=i.insert(()=>w,":first-child"),u.attr("class","basic label-container"),p&&u.attr("style",p)}else{let m=he(0,0,y,a,o,s);u=i.insert("path",":first-child").attr("d",m).attr("class","basic label-container").attr("style",Q(p)).attr("style",c),u.attr("class","basic label-container outer-path"),p&&u.selectAll("path").attr("style",p),c&&u.selectAll("path").attr("style",c)}return u.attr("label-offset-x",o),u.attr("transform",`translate(${-y/2}, ${a/2} )`),e.attr("transform",`translate(${-(n.width/2)-o-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),C(t,u),t.intersect=function(m){let d=N.rect(t,m),x=d.y-(t.y??0);if(s!=0&&(Math.abs(x)<(t.height??0)/2||Math.abs(x)==(t.height??0)/2&&Math.abs(d.x-(t.x??0))>(t.width??0)/2-o)){let w=o*o*(1-x*x/(s*s));w!=0&&(w=Math.sqrt(Math.abs(w))),w=o-w,m.x-(t.x??0)>0&&(w=-w),d.x+=w}return d},i}$(Ps,"tiltedCylinder");async function Ms(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let h=t.padding??0,l=(t.look==="neo",h),f=t.look==="neo"?h*2:h,{shapeSvg:i,bbox:n}=await X(g,t,Y(t)),e=Math.max(n.height+l,t.height??0),a=Math.max(n.width+f,(t.width??0)-e),s=[{x:-3*e/6,y:0},{x:a+3*e/6,y:0},{x:a,y:-e},{x:0,y:-e}],o,{cssStyles:y}=t;if(t.look==="handDrawn"){let p=v.svg(i),u=H(t,{}),m=j(s),d=p.path(m,u);o=i.insert(()=>d,":first-child").attr("transform",`translate(${-a/2}, ${e/2})`),y&&o.attr("style",y)}else o=lt(i,a,e,s);return c&&o.attr("style",c),t.width=a,t.height=e,C(t,o),t.intersect=function(p){return N.polygon(t,s,p)},i}$(Ms,"trapezoid");async function Ds(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let h=t.padding??0,l=t.look==="neo"?16:h,f=t.look==="neo"?12:h,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)-l*2,t.width<i&&(t.width=i));let{shapeSvg:e,bbox:a}=await X(g,t,Y(t)),s=(t?.width?t?.width:a.width)+l*2,o=(t?.height?t?.height:a.height)+f*2,{cssStyles:y}=t,p=v.svg(e),u=H(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let m=[{x:-s/2*.8,y:-o/2},{x:s/2*.8,y:-o/2},{x:s/2,y:-o/2*.6},{x:s/2,y:o/2},{x:-s/2,y:o/2},{x:-s/2,y:-o/2*.6}],d=j(m),x=p.path(d,u),w=e.insert(()=>x,":first-child");return w.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",y),c&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",c),C(t,w),t.intersect=function(S){return N.polygon(t,m,S)},e}$(Ds,"trapezoidalPentagon");var ga=10,ya=10;async function Ns(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let h=t.padding??0,l=t.look==="neo"?h*2:h;(t.width||t.height)&&(t.width=((t?.width??0)-l)/2,t.width<ya&&(t.width=ya),t.height=t?.height??0,t.height<ga&&(t.height=ga));let{shapeSvg:f,bbox:i,label:n}=await X(g,t,Y(t)),e=dt(K().flowchart?.htmlLabels),a=(t?.width?t?.width:i.width)+l,s=t?.height?t?.height:a+i.height,o=s,y=[{x:0,y:0},{x:o,y:0},{x:o/2,y:-s}],{cssStyles:p}=t,u=v.svg(f),m=H(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let d=j(y),x=u.path(d,m),w=f.insert(()=>x,":first-child").attr("transform",`translate(${-s/2}, ${s/2})`).attr("class","outer-path");return p&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",p),c&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",c),t.width=a,t.height=s,C(t,w),n.attr("transform",`translate(${-i.width/2-(i.x-(i.left??0))}, ${s/2-(i.height+(t.padding??0)/(e?2:1)-(i.y-(i.top??0)))})`),t.intersect=function(S){return J.info("Triangle intersect",t,y,S),N.polygon(t,y,S)},f}$(Ns,"triangle");async function Bs(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let h=t.padding??0,l=t.look==="neo"?16:h,f=t.look==="neo"?12:h,i=!0;(t.width||t.height)&&(i=!1,t.width=(t?.width??0)-l*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-f*2,t.height<10&&(t.height=10));let{shapeSvg:n,bbox:e,label:a}=await X(g,t,Y(t)),s=(t?.width?t?.width:e.width)+(l??0)*2,o=(t?.height?t?.height:e.height)+(f??0)*2,y=t.look==="neo"?o/4:o/8,p=o+(i?y:-y),{cssStyles:u}=t,d=14-s,x=d>0?d/2:0,w=v.svg(n),S=H(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");let b=[{x:-s/2-x,y:p/2},...pt(-s/2-x,p/2,s/2+x,p/2,y,.8),{x:s/2+x,y:-p/2},{x:-s/2-x,y:-p/2}],k=j(b),M=w.path(k,S),P=n.insert(()=>M,":first-child");return P.attr("class","basic label-container outer-path"),u&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",u),c&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",c),P.attr("transform",`translate(0,${-y/2})`),a.attr("transform",`translate(${-s/2+(t.padding??0)-(e.x-(e.left??0))},${-o/2+(t.padding??0)-y-(e.y-(e.top??0))})`),C(t,P),t.intersect=function(W){return N.polygon(t,b,W)},n}$(Bs,"waveEdgedRectangle");async function Cs(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let h=t.padding??0,l=t.look==="neo"?16:h,f=t.look==="neo"?20:h;if(t.width||t.height){t.width=t?.width??0,t.width<20&&(t.width=20),t.height=t?.height??0,t.height<10&&(t.height=10);let S=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-f-S*(20/9)),t.width=t.width-l*2}let{shapeSvg:i,bbox:n}=await X(g,t,Y(t)),e=(t?.width?t?.width:n.width)+l*2,a=(t?.height?t?.height:n.height)+f,s=a/8,o=a+s*2,{cssStyles:y}=t,p=v.svg(i),u=H(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let m=[{x:-e/2,y:o/2},...pt(-e/2,o/2,e/2,o/2,s,1),{x:e/2,y:-o/2},...pt(e/2,-o/2,-e/2,-o/2,s,-1)],d=j(m),x=p.path(d,u),w=i.insert(()=>x,":first-child");return w.attr("class","basic label-container"),y&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",y),c&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",c),C(t,w),t.intersect=function(S){return N.polygon(t,m,S)},i}$(Cs,"waveRectangle");var Z=10;async function As(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let h=t.look==="neo"?16:t.padding??0,l=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-h*2-Z,10),t.height=Math.max((t?.height??0)-l*2-Z,10));let{shapeSvg:f,bbox:i,label:n}=await X(g,t,Y(t)),e=(t?.width?t?.width:i.width)+h*2+Z,a=(t?.height?t?.height:i.height)+l*2+Z,s=e-Z,o=a-Z,y=-s/2,p=-o/2,{cssStyles:u}=t,m=v.svg(f),d=H(t,{}),x=[{x:y-Z,y:p-Z},{x:y-Z,y:p+o},{x:y+s,y:p+o},{x:y+s,y:p-Z}],w=`M${y-Z},${p-Z} L${y+s},${p-Z} L${y+s},${p+o} L${y-Z},${p+o} L${y-Z},${p-Z}
9
+ M${y-Z},${p} L${y+s},${p}
10
+ M${y},${p-Z} L${y},${p+o}`;t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");let S=m.path(w,d),b=f.insert(()=>S,":first-child");return b.attr("transform",`translate(${Z/2}, ${Z/2})`),b.attr("class","basic label-container outer-path"),u&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",u),c&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",c),n.attr("transform",`translate(${-(i.width/2)+Z/2-(i.x-(i.left??0))}, ${-(i.height/2)+Z/2-(i.y-(i.top??0))})`),C(t,b),t.intersect=function(k){return N.polygon(t,x,k)},f}$(As,"windowPane");var fa=new Set(["redux-color","redux-dark-color"]),fe=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function Vt(g,t){let r=t;r.alias&&(t.label=r.alias);let{theme:c,themeVariables:h}=bt(),{rowEven:l,rowOdd:f,nodeBorder:i,borderColorArray:n}=h;if(t.look==="handDrawn"){let{themeVariables:F}=bt(),{background:z}=F,U={...t,id:t.id+"-background",domId:(t.domId||t.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${z}`]};await Vt(g,U)}let e=bt();t.useHtmlLabels=e.htmlLabels;let a=e.er?.diagramPadding??10,s=e.er?.entityPadding??6,{cssStyles:o}=t,{labelStyles:y,nodeStyles:p}=L(t);if(r.attributes.length===0&&t.label){let F={rx:0,ry:0,labelPaddingX:a,labelPaddingY:a*1.5,classes:""};Nt(t.label,e)+F.labelPaddingX*2<e.er.minEntityWidth&&(t.width=e.er.minEntityWidth);let z=await Pt(g,t,F);if(c!=null&&fa.has(c)){let U=r.colorIndex??0;z.attr("data-color-id",`color-${U%n.length}`)}if(!dt(e.htmlLabels)){let U=z.select("text"),at=U.node()?.getBBox();U.attr("transform",`translate(${-at.width/2}, 0)`)}return z}e.htmlLabels||(a*=1.25,s*=1.25);let u=Y(t);u||(u="node default");let m=g.insert("g").attr("class",u).attr("id",t.domId||t.id),d=await vt(m,t.label??"",e,0,0,["name"],y);d.height+=s;let x=0,w=[],S=[],b=0,k=0,M=0,P=0,W=!0,B=!0;for(let F of r.attributes){let z=await vt(m,F.type,e,0,x,["attribute-type"],y);b=Math.max(b,z.width+a);let U=await vt(m,F.name,e,0,x,["attribute-name"],y);k=Math.max(k,U.width+a);let at=await vt(m,F.keys.join(),e,0,x,["attribute-keys"],y);M=Math.max(M,at.width+a);let ut=await vt(m,F.comment,e,0,x,["attribute-comment"],y);P=Math.max(P,ut.width+a);let yt=Math.max(z.height,U.height,at.height,ut.height)+s;S.push({yOffset:x,rowHeight:yt}),x+=yt}let D=4;M<=a&&(W=!1,M=0,D--),P<=a&&(B=!1,P=0,D--);let T=m.node().getBBox();if(d.width+a*2-(b+k+M+P)>0){let F=d.width+a*2-(b+k+M+P);b+=F/D,k+=F/D,M>0&&(M+=F/D),P>0&&(P+=F/D)}let A=b+k+M+P,E=v.svg(m),I=H(t,{});t.look!=="handDrawn"&&(I.roughness=0,I.fillStyle="solid");let R=0;S.length>0&&(R=S.reduce((F,z)=>F+(z?.rowHeight??0),0));let _=Math.max(T.width+a*2,t?.width||0,A),O=Math.max((R??0)+d.height,t?.height||0),G=-_/2,q=-O/2;if(m.selectAll("g:not(:first-child)").each((F,z,U)=>{let at=V(U[z]),ut=at.attr("transform"),yt=0,Zt=0;if(ut){let Ht=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(ut);Ht&&(yt=parseFloat(Ht[1]),Zt=parseFloat(Ht[2]),at.attr("class").includes("attribute-name")?yt+=b:at.attr("class").includes("attribute-keys")?yt+=b+k:at.attr("class").includes("attribute-comment")&&(yt+=b+k+M))}at.attr("transform",`translate(${G+a/2+yt}, ${Zt+q+d.height+s/2})`)}),m.select(".name").attr("transform","translate("+-d.width/2+", "+(q+s/2)+")"),c!=null&&fa.has(c)){let F=r.colorIndex??0;m.attr("data-color-id",`color-${F%n.length}`)}let nt=E.rectangle(G,q,_,O,I),wt=m.insert(()=>nt,":first-child").attr("class","outer-path").attr("style",o.join(""));w.push(0);for(let[F,z]of S.entries()){let at=(F+1)%2===0&&z.yOffset!==0,ut=E.rectangle(G,d.height+q+z?.yOffset,_,z?.rowHeight,{...I,fill:at?l:f,stroke:i});m.insert(()=>ut,"g.label").attr("style",o.join("")).attr("class",`row-rect-${at?"even":"odd"}`)}let et=1e-4,st=kt(G,d.height+q,_+G,d.height+q,et),ct=E.polygon(st.map(F=>[F.x,F.y]),I);if(m.insert(()=>ct).attr("class","divider"),st=kt(b+G,d.height+q,b+G,O+q,et),ct=E.polygon(st.map(F=>[F.x,F.y]),I),m.insert(()=>ct).attr("class","divider"),W){let F=b+k+G;st=kt(F,d.height+q,F,O+q,et),ct=E.polygon(st.map(z=>[z.x,z.y]),I),m.insert(()=>ct).attr("class","divider")}if(B){let F=b+k+M+G;st=kt(F,d.height+q,F,O+q,et),ct=E.polygon(st.map(z=>[z.x,z.y]),I),m.insert(()=>ct).attr("class","divider")}for(let F of w){let z=d.height+q+F;st=kt(G,z,_+G,z,et),ct=E.polygon(st.map(U=>[U.x,U.y]),I),m.insert(()=>ct).attr("class","divider")}if(C(t,wt),p&&t.look!=="handDrawn")if(c!=null&&fe.has(c))m.selectAll("path").attr("style",p);else{let z=p.split(";")?.filter(U=>U.includes("stroke"))?.map(U=>`${U}`).join("; ");m.selectAll("path").attr("style",z??""),m.selectAll(".row-rect-even path").attr("style",p)}return t.intersect=function(F){return N.rect(t,F)},m}$(Vt,"erBox");async function vt(g,t,r,c=0,h=0,l=[],f=""){let i=g.insert("g").attr("class",`label ${l.join(" ")}`).attr("transform",`translate(${c}, ${h})`).attr("style",f);t!==It(t)&&(t=It(t),t=t.replaceAll("<","&lt;").replaceAll(">","&gt;"));let n=i.node().appendChild(await ft(i,t,{width:Nt(t,r)+100,style:f,useHtmlLabels:r.htmlLabels},r));if(t.includes("&lt;")||t.includes("&gt;")){let a=n.children[0];for(a.textContent=a.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");a.childNodes[0];)a=a.childNodes[0],a.textContent=a.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let e=n.getBBox();if(dt(r.htmlLabels)){let a=n.children[0];a.style.textAlign="start";let s=V(n);e=a.getBoundingClientRect(),s.attr("width",e.width),s.attr("height",e.height)}return e}$(vt,"addText");function kt(g,t,r,c,h){return g===r?[{x:g-h/2,y:t},{x:g+h/2,y:t},{x:r+h/2,y:c},{x:r-h/2,y:c}]:[{x:g,y:t-h/2},{x:g,y:t+h/2},{x:r,y:c+h/2},{x:r,y:c-h/2}]}$(kt,"lineToPolygon");async function Rs(g,t,r,c,h=r.class.padding??12){let l=c?0:3,f=g.insert("g").attr("class",Y(t)).attr("id",t.domId||t.id),i=null,n=null,e=null,a=null,s=0,o=0,y=0;if(i=f.insert("g").attr("class","annotation-group text"),t.annotations.length>0){let x=t.annotations[0];await Ct(i,{text:`\xAB${x}\xBB`},0),s=i.node().getBBox().height}n=f.insert("g").attr("class","label-group text"),await Ct(n,t,0,["font-weight: bolder"]);let p=n.node().getBBox();o=p.height,e=f.insert("g").attr("class","members-group text");let u=0;for(let x of t.members){let w=await Ct(e,x,u,[x.parseClassifier()]);u+=w+l}y=e.node().getBBox().height,y<=0&&(y=h/2),a=f.insert("g").attr("class","methods-group text");let m=0;for(let x of t.methods){let w=await Ct(a,x,m,[x.parseClassifier()]);m+=w+l}let d=f.node().getBBox();if(i!==null){let x=i.node().getBBox();i.attr("transform",`translate(${-x.width/2})`)}return n.attr("transform",`translate(${-p.width/2}, ${s})`),d=f.node().getBBox(),e.attr("transform",`translate(0, ${s+o+h*2})`),d=f.node().getBBox(),a.attr("transform",`translate(0, ${s+o+(y?y+h*4:h*2)})`),d=f.node().getBBox(),{shapeSvg:f,bbox:d}}$(Rs,"textHelper");async function Ct(g,t,r,c=[]){let h=g.insert("g").attr("class","label").attr("style",c.join("; ")),l=bt(),f="useHtmlLabels"in t?t.useHtmlLabels:dt(l.htmlLabels)??!0,i="";"text"in t?i=t.text:i=t.label,!f&&i.startsWith("\\")&&(i=i.substring(1)),Kt(i)&&(f=!0);let n=await ft(h,Lt(St(i)),{width:Nt(i,l)+50,classes:"markdown-node-label",useHtmlLabels:f},l),e,a=1;if(f){let s=n.children[0],o=V(n);a=s.innerHTML.split("<br>").length,s.innerHTML.includes("</math>")&&(a+=s.innerHTML.split("<mrow>").length-1),await jt(s),e=s.getBoundingClientRect(),o.attr("width",e.width),o.attr("height",e.height)}else{c.includes("font-weight: bolder")&&V(n).selectAll("tspan").attr("font-weight",""),a=n.children.length;let s=n.children[0];(n.textContent===""||n.textContent.includes("&gt"))&&(s.textContent=i[0]+i.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim(),i[1]===" "&&(s.textContent=s.textContent[0]+" "+s.textContent.substring(1))),s.textContent==="undefined"&&(s.textContent=""),e=n.getBBox()}return h.attr("transform","translate(0,"+(-e.height/(2*a)+r)+")"),e.height}$(Ct,"addText");async function Hs(g,t){let r=K(),{themeVariables:c}=r,{useGradient:h}=c,l=r.class.padding??12,f=l,i=t.useHtmlLabels??dt(r.htmlLabels)??!0,n=t;n.annotations=n.annotations??[],n.members=n.members??[],n.methods=n.methods??[];let{shapeSvg:e,bbox:a}=await Rs(g,t,r,i,f),{labelStyles:s,nodeStyles:o}=L(t);t.labelStyle=s,t.cssStyles=n.styles||"";let y=n.styles?.join(";")||o||"";t.cssStyles||(t.cssStyles=y.replaceAll("!important","").split(";"));let p=n.members.length===0&&n.methods.length===0&&!r.class?.hideEmptyMembersBox,u=v.svg(e),m=H(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let d=Math.max(t.width??0,a.width),x=Math.max(t.height??0,a.height),w=(t.height??0)>a.height;n.members.length===0&&n.methods.length===0?x+=f:n.members.length>0&&n.methods.length===0&&(x+=f*2);let S=-d/2,b=-x/2,k=p?l*2:n.members.length===0&&n.methods.length===0?-l:0;w&&(k=l*2);let M=u.rectangle(S-l,b-l-(p?l:n.members.length===0&&n.methods.length===0?-l/2:0),d+2*l,x+2*l+k,m),P=e.insert(()=>M,":first-child");P.attr("class","basic label-container outer-path");let W=P.node().getBBox(),B=e.select(".annotation-group").node().getBBox().height-(p?l/2:0)||0,D=e.select(".label-group").node().getBBox().height-(p?l/2:0)||0,T=e.select(".members-group").node().getBBox().height-(p?l/2:0)||0,A=(B+D+b+l-(b-l-(p?l:n.members.length===0&&n.methods.length===0?-l/2:0)))/2;if(e.selectAll(".text").each((E,I,R)=>{let _=V(R[I]),O=_.attr("transform"),G=0;if(O){let et=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(O);et&&(G=parseFloat(et[2]))}let q=G+b+l-(p?l:n.members.length===0&&n.methods.length===0?-l/2:0);if(_.attr("class").includes("methods-group")){let wt=Math.max(T,f/2);w?q=Math.max(A,B+D+wt+b+f*2+l)+f*2:q=B+D+wt+b+f*4+l}n.members.length===0&&n.methods.length===0&&r.class?.hideEmptyMembersBox&&(n.annotations.length>0?q=G-f:q=G),i||(q-=4);let nt=S;(_.attr("class").includes("label-group")||_.attr("class").includes("annotation-group"))&&(nt=-_.node()?.getBBox().width/2||0,e.selectAll("text").each(function(wt,et,st){window.getComputedStyle(st[et]).textAnchor==="middle"&&(nt=0)})),_.attr("transform",`translate(${nt}, ${q})`)}),n.members.length>0||n.methods.length>0||p){let E=B+D+b+l,I=u.line(W.x,E,W.x+W.width,E+.001,m);e.insert(()=>I).attr("class",`divider${t.look==="neo"&&!h?" neo-line":""}`).attr("style",y)}if(p||n.members.length>0||n.methods.length>0){let E=B+D+T+b+f*2+l,I=u.line(W.x,w?Math.max(A,E):E,W.x+W.width,(w?Math.max(A,E):E)+.001,m);e.insert(()=>I).attr("class",`divider${t.look==="neo"&&!h?" neo-line":""}`).attr("style",y)}if(n.look!=="handDrawn"&&e.selectAll("path").attr("style",y),P.select(":nth-child(2)").attr("style",y),e.selectAll(".divider").select("path").attr("style",y),t.labelStyle?e.selectAll("span").attr("style",t.labelStyle):e.selectAll("span").attr("style",y),!i){let E=RegExp(/color\s*:\s*([^;]*)/),I=E.exec(y);if(I){let R=I[0].replace("color","fill");e.selectAll("tspan").attr("style",R)}else if(s){let R=E.exec(s);if(R){let _=R[0].replace("color","fill");e.selectAll("tspan").attr("style",_)}}}return C(t,P),t.intersect=function(E){return N.rect(t,E)},e}$(Hs,"classBox");async function Is(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let h=t,l=t,f=20,i=20,n="verifyMethod"in t,e=Y(t),a=K(),{themeVariables:s}=a,{borderColorArray:o,requirementEdgeLabelBackground:y}=s,p=a.layout==="elk"?"start":"center",u=g.insert("g").attr("class",e).attr("id",t.domId??t.id),m;n?m=await rt(u,`&lt;&lt;${h.type}&gt;&gt;`,0,t.labelStyle):m=await rt(u,"&lt;&lt;Element&gt;&gt;",0,t.labelStyle);let d=m,x=await rt(u,h.name,d,t.labelStyle+"; font-weight: bold;");if(d+=x+i,n){let D=await rt(u,`${h.requirementId?`ID: ${h.requirementId}`:""}`,d,t.labelStyle,p);d+=D;let T=await rt(u,`${h.text?`Text: ${h.text}`:""}`,d,t.labelStyle,p);d+=T;let A=await rt(u,`${h.risk?`Risk: ${h.risk}`:""}`,d,t.labelStyle,p);d+=A,await rt(u,`${h.verifyMethod?`Verification: ${h.verifyMethod}`:""}`,d,t.labelStyle,p)}else{let D=await rt(u,`${l.type?`Type: ${l.type}`:""}`,d,t.labelStyle,p);d+=D,await rt(u,`${l.docRef?`Doc Ref: ${l.docRef}`:""}`,d,t.labelStyle,p)}let w=(u.node()?.getBBox().width??200)+f,S=(u.node()?.getBBox().height??200)+f,b=-w/2,k=-S/2,M=v.svg(u),P=H(t,{});t.look!=="handDrawn"&&(P.roughness=0,P.fillStyle="solid");let W=M.rectangle(b,k,w,S,P),B=u.insert(()=>W,":first-child");if(B.attr("class","basic label-container outer-path").attr("style",c),o?.length){let D=t.colorIndex??0;u.attr("data-color-id",`color-${D%o.length}`)}if(u.selectAll(".label").each((D,T,A)=>{let E=V(A[T]),I=E.attr("transform"),R=0,_=0;if(I){let nt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(I);nt&&(R=parseFloat(nt[1]),_=parseFloat(nt[2]))}let O=_-S/2,G=b+f/2;(T===0||T===1)&&(G=R),E.attr("transform",`translate(${G}, ${O+f})`)}),d>m+x+i){let D=k+m+x+i,T;if(t.look==="neo"){let I=[[b,D],[b+w,D],[b+w,D+.001],[b,D+.001]];T=M.polygon(I,P)}else T=M.line(b,D,b+w,D,P);u.insert(()=>T).attr("class","divider")}return C(t,B),t.intersect=function(D){return N.rect(t,D)},c&&t.look!=="handDrawn"&&(y||o?.length)&&u.selectAll("path").attr("style",c),u}$(Is,"requirementBox");async function rt(g,t,r,c="",h="center"){if(t==="")return 0;let l=g.insert("g").attr("class","label").attr("style",c),f=K(),i=f.htmlLabels??!0,n=await ft(l,Lt(St(t)),{width:Nt(t,f)+50,classes:"markdown-node-label",useHtmlLabels:i,style:c},f),e;if(i){let a=n.children[0],s=V(n);h==="start"&&V(a).style("text-align","left"),e=a.getBoundingClientRect(),s.attr("width",e.width),s.attr("height",e.height)}else{let a=n.children[0];for(let s of a.children)c&&s.setAttribute("style",c);if(h==="start"){a.setAttribute("text-anchor","start");for(let s of a.children)s.setAttribute("text-anchor","start")}e=n.getBBox(),e.height+=6}return l.attr("transform",`translate(${-e.width/2},${-e.height/2+r})`),e.height}$(rt,"addText");var pe=$(g=>{switch(g){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 Ls(g,t,{config:r}){let{labelStyles:c,nodeStyles:h}=L(t);t.labelStyle=c||"";let l=10,f=t.width;t.width=(t.width??200)-10;let{shapeSvg:i,bbox:n,label:e}=await X(g,t,Y(t)),a=t.padding||10,s="",o;"ticket"in t&&t.ticket&&r?.kanban?.ticketBaseUrl&&(s=r?.kanban?.ticketBaseUrl.replace("#TICKET#",t.ticket),o=i.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",s).attr("target","_blank"));let y={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1},p,u;o?{label:p,bbox:u}=await Wt(o,"ticket"in t&&t.ticket||"",y):{label:p,bbox:u}=await Wt(i,"ticket"in t&&t.ticket||"",y);let{label:m,bbox:d}=await Wt(i,"assigned"in t&&t.assigned||"",y);t.width=f;let x=10,w=t?.width||0,S=Math.max(u.height,d.height)/2,b=Math.max(n.height+x*2,t?.height||0)+S,k=-w/2,M=-b/2;e.attr("transform","translate("+(a-w/2)+", "+(-S-n.height/2)+")"),p.attr("transform","translate("+(a-w/2)+", "+(-S+n.height/2)+")"),m.attr("transform","translate("+(a+w/2-d.width-2*l)+", "+(-S+n.height/2)+")");let P,{rx:W,ry:B}=t,{cssStyles:D}=t;if(t.look==="handDrawn"){let T=v.svg(i),A=H(t,{}),E=W||B?T.path(gt(k,M,w,b,W||0),A):T.rectangle(k,M,w,b,A);P=i.insert(()=>E,":first-child"),P.attr("class","basic label-container").attr("style",D||null)}else{P=i.insert("rect",":first-child"),P.attr("class","basic label-container __APA__").attr("style",h).attr("rx",W??5).attr("ry",B??5).attr("x",k).attr("y",M).attr("width",w).attr("height",b);let T="priority"in t&&t.priority;if(T){let A=i.append("line"),E=k+2,I=M+Math.floor((W??0)/2),R=M+b-Math.floor((W??0)/2);A.attr("x1",E).attr("y1",I).attr("x2",E).attr("y2",R).attr("stroke-width","4").attr("stroke",pe(T))}}return C(t,P),t.height=b,t.intersect=function(T){return N.rect(t,T)},i}$(Ls,"kanbanItem");async function Ws(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let{shapeSvg:h,bbox:l,halfPadding:f,label:i}=await X(g,t,Y(t)),n=l.width+10*f,e=l.height+8*f,a=.15*n,{cssStyles:s}=t,o=l.width+20,y=l.height+20,p=Math.max(n,o),u=Math.max(e,y);i.attr("transform",`translate(${-l.width/2}, ${-l.height/2})`);let m,d=`M0 0
11
+ a${a},${a} 1 0,0 ${p*.25},${-1*u*.1}
12
+ a${a},${a} 1 0,0 ${p*.25},0
13
+ a${a},${a} 1 0,0 ${p*.25},0
14
+ a${a},${a} 1 0,0 ${p*.25},${u*.1}
15
+
16
+ a${a},${a} 1 0,0 ${p*.15},${u*.33}
17
+ a${a*.8},${a*.8} 1 0,0 0,${u*.34}
18
+ a${a},${a} 1 0,0 ${-1*p*.15},${u*.33}
19
+
20
+ a${a},${a} 1 0,0 ${-1*p*.25},${u*.15}
21
+ a${a},${a} 1 0,0 ${-1*p*.25},0
22
+ a${a},${a} 1 0,0 ${-1*p*.25},0
23
+ a${a},${a} 1 0,0 ${-1*p*.25},${-1*u*.15}
24
+
25
+ a${a},${a} 1 0,0 ${-1*p*.1},${-1*u*.33}
26
+ a${a*.8},${a*.8} 1 0,0 0,${-1*u*.34}
27
+ a${a},${a} 1 0,0 ${p*.1},${-1*u*.33}
28
+ H0 V0 Z`;if(t.look==="handDrawn"){let x=v.svg(h),w=H(t,{}),S=x.path(d,w);m=h.insert(()=>S,":first-child"),m.attr("class","basic label-container").attr("style",Q(s))}else m=h.insert("path",":first-child").attr("class","basic label-container").attr("style",c).attr("d",d);return m.attr("transform",`translate(${-p/2}, ${-u/2})`),C(t,m),t.calcIntersect=function(x,w){return N.rect(x,w)},t.intersect=function(x){return J.info("Bang intersect",t,x),N.rect(t,x)},h}$(Ws,"bang");async function Es(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let{shapeSvg:h,bbox:l,halfPadding:f,label:i}=await X(g,t,Y(t)),n=l.width+2*f,e=l.height+2*f,a=.15*n,s=.25*n,o=.35*n,y=.2*n,{cssStyles:p}=t,u,m=`M0 0
29
+ a${a},${a} 0 0,1 ${n*.25},${-1*n*.1}
30
+ a${o},${o} 1 0,1 ${n*.4},${-1*n*.1}
31
+ a${s},${s} 1 0,1 ${n*.35},${n*.2}
32
+
33
+ a${a},${a} 1 0,1 ${n*.15},${e*.35}
34
+ a${y},${y} 1 0,1 ${-1*n*.15},${e*.65}
35
+
36
+ a${s},${a} 1 0,1 ${-1*n*.25},${n*.15}
37
+ a${o},${o} 1 0,1 ${-1*n*.5},0
38
+ a${a},${a} 1 0,1 ${-1*n*.25},${-1*n*.15}
39
+
40
+ a${a},${a} 1 0,1 ${-1*n*.1},${-1*e*.35}
41
+ a${y},${y} 1 0,1 ${n*.1},${-1*e*.65}
42
+ H0 V0 Z`;if(t.look==="handDrawn"){let d=v.svg(h),x=H(t,{}),w=d.path(m,x);u=h.insert(()=>w,":first-child"),u.attr("class","basic label-container").attr("style",Q(p))}else u=h.insert("path",":first-child").attr("class","basic label-container").attr("style",c).attr("d",m);return i.attr("transform",`translate(${-l.width/2}, ${-l.height/2})`),u.attr("transform",`translate(${-n/2}, ${-e/2})`),C(t,u),t.calcIntersect=function(d,x){return N.rect(d,x)},t.intersect=function(d){return J.info("Cloud intersect",t,d),N.rect(t,d)},h}$(Es,"cloud");async function Ts(g,t){let{labelStyles:r,nodeStyles:c}=L(t);t.labelStyle=r;let{shapeSvg:h,bbox:l,halfPadding:f,label:i}=await X(g,t,Y(t)),n=l.width+8*f,e=l.height+2*f,a=5,s=t.look==="neo"?`
43
+ M${-n/2} ${e/2-a}
44
+ v${-e+2*a}
45
+ q0,-${a} ${a},-${a}
46
+ h${n-2*a}
47
+ q${a},0 ${a},${a}
48
+ v${e-a}
49
+ H${-n/2}
50
+ Z
51
+ `:`
52
+ M${-n/2} ${e/2-a}
53
+ v${-e+2*a}
54
+ q0,-${a} ${a},-${a}
55
+ h${n-2*a}
56
+ q${a},0 ${a},${a}
57
+ v${e-2*a}
58
+ q0,${a} ${-a},${a}
59
+ h${-(n-2*a)}
60
+ q${-a},0 ${-a},${-a}
61
+ Z
62
+ `;if(!t.domId)throw new Error(`defaultMindmapNode: node "${t.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let o=h.append("path").attr("id",t.domId).attr("class","node-bkg node-"+t.type).attr("style",c).attr("d",s);return h.append("line").attr("class","node-line-").attr("x1",-n/2).attr("y1",e/2).attr("x2",n/2).attr("y2",e/2),i.attr("transform",`translate(${-l.width/2}, ${-l.height/2})`),h.append(()=>i.node()),C(t,o),t.calcIntersect=function(y,p){return N.rect(y,p)},t.intersect=function(y){return N.rect(t,y)},h}$(Ts,"defaultMindmapNode");async function _s(g,t){let r={padding:t.padding??0};return zt(g,t,r)}$(_s,"mindmapCircle");var ue=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:ds},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:fs},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:ms},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:Ss},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:Ta},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:_a},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:ja},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:va},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:Ca},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:Ma},{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:Ea},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:zt},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:Ws},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:Es},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:hs},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:za},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:es},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:ss},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:Ms},{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:ts},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:Xa},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:ks},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:Da},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:ps},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:bs},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:ws},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:Ga},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:Va},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Ha},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:Ia},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:La},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:rs},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:Bs},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:qa},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:Ps},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:is},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Wa},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:Ya},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:Ns},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:As},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:Oa},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:Ds},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:Fa},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:us},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:cs},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:ns},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:$a},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:Ra},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:vs},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:$s},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:Cs},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:gs},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:ls}],de=$(()=>{let t=[...Object.entries({state:xs,choice:Na,note:os,composite:Ba,rectWithTitle:ys,labelRect:as,block_arrow:Pa,collapsedGroup:ka,iconSquare:Ua,iconCircle:Ja,icon:Za,iconRounded:Ka,imageSquare:Qa,anchor:ba,kanbanItem:Ls,mindmapCircle:_s,defaultMindmapNode:Ts,classBox:Hs,erBox:Vt,requirementBox:Is}),...ue.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(h=>[h,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),me=de();function xe(g){return g in me}$(xe,"isValidShape");export{X as a,C as b,Gs as c,gt as d,aa as e,me as f,xe as g};
@@ -0,0 +1 @@
1
+ import{a as x}from"./chunk-JBQZ5UCE.js";import{G as d}from"./chunk-NLCJ5AKJ.js";import{h as o}from"./chunk-3CEAP2V5.js";import{a as i}from"./chunk-6LQNQPBM.js";import{c as p}from"./chunk-OOJM4CTU.js";var l=p(x(),1);var c=i((r,t)=>{let e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(let s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),f=i((r,t)=>{let e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};c(r,e).lower()},"drawBackgroundRect"),h=i((r,t)=>{let e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);let a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),w=i((r,t,e,s)=>{let a=r.append("image");a.attr("x",t),a.attr("y",e);let n=(0,l.sanitizeUrl)(s);a.attr("xlink:href",n)},"drawImage"),k=i((r,t,e,s)=>{let a=r.append("use");a.attr("x",t),a.attr("y",e);let n=(0,l.sanitizeUrl)(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),v=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),E=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),R=i(()=>{let r=o(".mermaidTooltip");return r.empty()&&(r=o("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{c as a,f as b,h as c,w as d,k as e,v as f,E as g,R as h};
@@ -0,0 +1,2 @@
1
+ import{a as o,b as d,c,d as i,e as l,g as u,s as v,w as g,y as m}from"./chunk-FK4OKHO7.js";var p=class extends m{static{o(this,"RailroadPegTokenBuilder")}constructor(){super(["railroad-peg-beta"])}},h=o(a=>{let e=a.slice(1,-1),r="";for(let t=0;t<e.length;t++){let n=e[t];if(n==="\\"&&t+1<e.length){t++;let s=e[t];switch(s){case"n":r+=`
2
+ `;break;case"r":r+="\r";break;case"t":r+=" ";break;default:r+=s}continue}r+=n}return r},"decodeEscapedString"),f=class extends g{static{o(this,"RailroadPegValueConverter")}runConverter(a,e,r){let t=super.runConverter(a,e,r);if(a.name==="TITLE"&&typeof t=="string"){let n=t.trim();if(n.startsWith('"')&&n.endsWith('"')||n.startsWith("'")&&n.endsWith("'"))return h(n)}return t}runCustomConverter(a,e,r){if(a.name==="PEG_STRING")return h(e)}},C={parser:{TokenBuilder:o(()=>new p,"TokenBuilder"),ValueConverter:o(()=>new f,"ValueConverter")}};function R(a=l){let e=i(c(a),u),r=i(d({shared:e}),v,C);return e.ServiceRegistry.register(r),{shared:e,RailroadPeg:r}}o(R,"createRailroadPegServices");export{C as a,R as b};
@@ -0,0 +1 @@
1
+ import{_ as s}from"./chunk-NLCJ5AKJ.js";import{h as e}from"./chunk-3CEAP2V5.js";import{a as n}from"./chunk-6LQNQPBM.js";var a=n(t=>{let{securityLevel:c}=s(),o=e("body");if(c==="sandbox"){let m=e(`#i${t}`).node()?.contentDocument??document;o=e(m.body)}return o.select(`#${t}`)},"selectSvgElement");export{a};