@eeshaai/code 0.0.1 → 1.0.1

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 (131) hide show
  1. package/LICENSE.md +115 -0
  2. package/README.md +335 -0
  3. package/dist/THIRD-PARTY-NOTICES.md +23 -0
  4. package/dist/claude-agent-sdk/LICENSE.md +1 -0
  5. package/dist/claude-agent-sdk/sdk.mjs +156 -0
  6. package/dist/cli.js +23 -0
  7. package/dist/pluginWorker.js +1610 -0
  8. package/dist/resources/styles/custom/instructions/design.md +284 -0
  9. package/dist/resources/styles/custom/instructions/requirements.md +161 -0
  10. package/dist/resources/styles/custom/instructions/tasks-implement.md +90 -0
  11. package/dist/resources/styles/custom/instructions/tasks.md +159 -0
  12. package/dist/resources/styles/custom/process.md +49 -0
  13. package/dist/resources/styles/custom/prompts/first.md +29 -0
  14. package/dist/resources/styles/custom/prompts/implement.md +27 -0
  15. package/dist/resources/styles/custom/prompts/rewrite-note.md +40 -0
  16. package/dist/resources/styles/custom/prompts/rewrite.md +32 -0
  17. package/dist/resources/styles/custom/style.yml +46 -0
  18. package/dist/resources/styles/grammar.md +727 -0
  19. package/dist/resources/styles/kiro/style.yml +63 -0
  20. package/dist/resources/styles/speckit/style.yml +59 -0
  21. package/dist/server.js +835 -0
  22. package/dist/web/chunks/abnfDiagram-VCTEODGH-P6AZFXJU.js +2 -0
  23. package/dist/web/chunks/architecture-7GRP2DOG-K6PMPK7N.js +2 -0
  24. package/dist/web/chunks/architectureDiagram-5GKGNRK7-JB5DD7KL.js +37 -0
  25. package/dist/web/chunks/blockDiagram-I7D4REHJ-ARCDWS5D.js +130 -0
  26. package/dist/web/chunks/c4Diagram-7LVT6UL2-57CIXPJZ.js +39 -0
  27. package/dist/web/chunks/chunk-3EZ2OKHV.js +11 -0
  28. package/dist/web/chunks/chunk-4KJ2U3VQ.js +2 -0
  29. package/dist/web/chunks/chunk-4ZUFUR3U.js +3 -0
  30. package/dist/web/chunks/chunk-63W35XXT.js +3 -0
  31. package/dist/web/chunks/chunk-6YVFH4BZ.js +2 -0
  32. package/dist/web/chunks/chunk-7PUK2GON.js +2 -0
  33. package/dist/web/chunks/chunk-7Q4TXKAS.js +2 -0
  34. package/dist/web/chunks/chunk-7QRY2XB7.js +340 -0
  35. package/dist/web/chunks/chunk-CA2KMNVI.js +33 -0
  36. package/dist/web/chunks/chunk-CFMSYLIK.js +3 -0
  37. package/dist/web/chunks/chunk-CKJRXIX7.js +2 -0
  38. package/dist/web/chunks/chunk-CXXG5KL5.js +2 -0
  39. package/dist/web/chunks/chunk-EFBAEJZJ.js +2 -0
  40. package/dist/web/chunks/chunk-FKTXB6RJ.js +2 -0
  41. package/dist/web/chunks/chunk-FU7R4QOG.js +89 -0
  42. package/dist/web/chunks/chunk-GEV6X2TZ.js +2 -0
  43. package/dist/web/chunks/chunk-GPW7TXQS.js +2 -0
  44. package/dist/web/chunks/chunk-I6RMTJPN.js +15 -0
  45. package/dist/web/chunks/chunk-IKC3ZQV7.js +2 -0
  46. package/dist/web/chunks/chunk-ITN3D7RJ.js +2 -0
  47. package/dist/web/chunks/chunk-J6N7AUC2.js +2 -0
  48. package/dist/web/chunks/chunk-J7VDGOTK.js +4 -0
  49. package/dist/web/chunks/chunk-KVRWT2YT.js +2 -0
  50. package/dist/web/chunks/chunk-NBC6B3KN.js +2 -0
  51. package/dist/web/chunks/chunk-NLHJT4GD.js +2 -0
  52. package/dist/web/chunks/chunk-NOVL2262.js +63 -0
  53. package/dist/web/chunks/chunk-NQ2XP5EN.js +73 -0
  54. package/dist/web/chunks/chunk-P44J6WNO.js +2 -0
  55. package/dist/web/chunks/chunk-QBOSTM7Q.js +3 -0
  56. package/dist/web/chunks/chunk-QKU4ZFG5.js +2 -0
  57. package/dist/web/chunks/chunk-RINQGKTH.js +2 -0
  58. package/dist/web/chunks/chunk-RK4EOCHJ.js +2 -0
  59. package/dist/web/chunks/chunk-S4X6ERXI.js +16 -0
  60. package/dist/web/chunks/chunk-SE57RN36.js +2 -0
  61. package/dist/web/chunks/chunk-SGL7WI35.js +133 -0
  62. package/dist/web/chunks/chunk-SOAWGUAD.js +2 -0
  63. package/dist/web/chunks/chunk-U6ILIHMR.js +2 -0
  64. package/dist/web/chunks/chunk-USZ3ZJYA.js +2 -0
  65. package/dist/web/chunks/chunk-UU7BHEBD.js +2 -0
  66. package/dist/web/chunks/chunk-WL4ZMLPV.js +179 -0
  67. package/dist/web/chunks/chunk-XE4RLI22.js +2 -0
  68. package/dist/web/chunks/chunk-XJ6FSQEO.js +2 -0
  69. package/dist/web/chunks/chunk-XM7VXEGI.js +207 -0
  70. package/dist/web/chunks/chunk-XO4SHRSO.js +232 -0
  71. package/dist/web/chunks/chunk-XOZZFIHV.js +2 -0
  72. package/dist/web/chunks/chunk-YYJ5VFH5.js +2 -0
  73. package/dist/web/chunks/chunk-ZX45GMMJ.js +169 -0
  74. package/dist/web/chunks/chunk-ZXMMITLE.js +2 -0
  75. package/dist/web/chunks/classDiagram-ZZMXUADV-ALD5ECFE.js +2 -0
  76. package/dist/web/chunks/classDiagram-v2-VYDZK3BY-IMIEVQNX.js +2 -0
  77. package/dist/web/chunks/cose-bilkent-JH36ORCC-YVEPG7XZ.js +2 -0
  78. package/dist/web/chunks/cynefin-OW5HDTMX-5G3MG4ZJ.js +2 -0
  79. package/dist/web/chunks/cynefinDiagram-5FMLGOSQ-A3E3NM6X.js +63 -0
  80. package/dist/web/chunks/dagre-GXQ25YYZ-WKL3XLC6.js +5 -0
  81. package/dist/web/chunks/diagram-S7CK7UJ4-AENTNBTM.js +31 -0
  82. package/dist/web/chunks/diagram-UQ7AKVKN-BN6IVDBP.js +42 -0
  83. package/dist/web/chunks/diagram-VSXAHHWV-X7IW7FU6.js +4 -0
  84. package/dist/web/chunks/diagram-VX7I27RA-4V6RQ6IS.js +25 -0
  85. package/dist/web/chunks/diagram-Z3DM3KII-ODYVRYAT.js +25 -0
  86. package/dist/web/chunks/ebnfDiagram-PWID7BFC-2KD46JNN.js +2 -0
  87. package/dist/web/chunks/erDiagram-RLTQ6QDP-6MYZ2NRT.js +100 -0
  88. package/dist/web/chunks/eventmodeling-NTZA5JFV-QZXC5VKS.js +2 -0
  89. package/dist/web/chunks/flowDiagram-HODETNUW-BILJ37ZX.js +2 -0
  90. package/dist/web/chunks/ganttDiagram-EL5Y4UJY-LVA23DND.js +293 -0
  91. package/dist/web/chunks/gitGraph-4MIJSDKK-H43S2MKN.js +2 -0
  92. package/dist/web/chunks/gitGraphDiagram-WWUBYQGX-JRB4SUZI.js +107 -0
  93. package/dist/web/chunks/info-A6RAGUB7-DKS7Q63Q.js +2 -0
  94. package/dist/web/chunks/infoDiagram-27XIBGKW-JLOVILVF.js +3 -0
  95. package/dist/web/chunks/ishikawaDiagram-5VMMS53U-SUA2YN5D.js +71 -0
  96. package/dist/web/chunks/journeyDiagram-3NMN7TZE-ORMC2WB2.js +140 -0
  97. package/dist/web/chunks/kanban-definition-UXKFOSKX-TPRG3VMF.js +90 -0
  98. package/dist/web/chunks/katex-DLHJF5VS.js +258 -0
  99. package/dist/web/chunks/mermaid.core-ZM3JSPVU.js +19 -0
  100. package/dist/web/chunks/mindmap-definition-YA3MSWOX-BLW6WWFS.js +97 -0
  101. package/dist/web/chunks/packet-AYTQ26CC-FIXQVEDM.js +2 -0
  102. package/dist/web/chunks/pegDiagram-XKGWAZYB-BYMP3YHY.js +2 -0
  103. package/dist/web/chunks/pie-WAS4IAKB-R4EUNVPB.js +2 -0
  104. package/dist/web/chunks/pieDiagram-E7YTZNPT-XOJE3H3L.js +40 -0
  105. package/dist/web/chunks/quadrantDiagram-AXDQQJYC-23VSADTC.js +8 -0
  106. package/dist/web/chunks/radar-RG4KPBEZ-O6Y2TENX.js +2 -0
  107. package/dist/web/chunks/railroad-74A4TZTK-PHWZ7KVH.js +2 -0
  108. package/dist/web/chunks/railroad-abnf-HS5TGJTU-DZ4OSJAN.js +2 -0
  109. package/dist/web/chunks/railroad-ebnf-LZEXJU2U-GYBLRQUL.js +2 -0
  110. package/dist/web/chunks/railroad-peg-WCYAUIDC-ZK4ZOBSX.js +2 -0
  111. package/dist/web/chunks/railroadDiagram-O6MQD6OU-Z5IEAZJK.js +2 -0
  112. package/dist/web/chunks/requirementDiagram-BXWQKSXE-MNP4O73E.js +85 -0
  113. package/dist/web/chunks/sankeyDiagram-P5KCCOFB-PADI35QR.js +41 -0
  114. package/dist/web/chunks/sequenceDiagram-WJ2MYXX4-FGWOVXU4.js +163 -0
  115. package/dist/web/chunks/sizeCapture-INFHLROL-Y6H3VQLE.js +2 -0
  116. package/dist/web/chunks/stateDiagram-D77RDMKH-7PRO4WYR.js +2 -0
  117. package/dist/web/chunks/stateDiagram-v2-MP3YSRHH-2Y6SWEJW.js +2 -0
  118. package/dist/web/chunks/swimlanes-42K2YHIH-DXVTFB6Q.js +2 -0
  119. package/dist/web/chunks/swimlanesDiagram-VR7AAH4N-U2LP4OEE.js +9 -0
  120. package/dist/web/chunks/timeline-definition-24CTP7MA-7ZIALE6C.js +121 -0
  121. package/dist/web/chunks/treeView-Q6P3EWNA-VSJ7TJ36.js +2 -0
  122. package/dist/web/chunks/treemap-WGGIJYW6-JZWFGRKS.js +2 -0
  123. package/dist/web/chunks/vennDiagram-4TSXK5OY-IPXNDYWM.js +35 -0
  124. package/dist/web/chunks/wardley-WFR3VGLG-PAUUFL5N.js +2 -0
  125. package/dist/web/chunks/wardleyDiagram-VM6X3IG4-4Z2U2NNR.js +79 -0
  126. package/dist/web/chunks/xychartDiagram-S5SC5T6Z-NAEIWN4K.js +8 -0
  127. package/dist/web/index.html +24 -0
  128. package/dist/web/page.css +2 -0
  129. package/dist/web/page.js +242 -0
  130. package/package.json +64 -10
  131. package/cli.js +0 -2
@@ -0,0 +1,19 @@
1
+ import{a as Yr}from"./chunk-P44J6WNO.js";import{g as _t,h as Rt,i as Lt,j as Mt}from"./chunk-7Q4TXKAS.js";import"./chunk-I6RMTJPN.js";import{a as Zr,b as Jr}from"./chunk-CA2KMNVI.js";import{a as re}from"./chunk-GEV6X2TZ.js";import"./chunk-ZXMMITLE.js";import"./chunk-3EZ2OKHV.js";import"./chunk-XOZZFIHV.js";import"./chunk-NOVL2262.js";import"./chunk-USZ3ZJYA.js";import"./chunk-J6N7AUC2.js";import{a as Qr}from"./chunk-NQ2XP5EN.js";import{b as jr}from"./chunk-GPW7TXQS.js";import{b as Sr,d as qr,m as Er,o as Wr,p as U,q as Xr,r as Kr}from"./chunk-CFMSYLIK.js";import"./chunk-UU7BHEBD.js";import{B as Ur,C as er,D as br,E as tr,F as Gr,O as Hr,Q as xr,R as Br,da as K,ea as ar,g as Mr,h as Cr,j as rr,m as kr,n as yr,o as Ir,p as Fr,q as Or,r as $r,s as wr,t as zr,u as V,v as Pr,w as X,y as Nr,z as Vr}from"./chunk-SGL7WI35.js";import{b as f,c as hr,h as k}from"./chunk-CXXG5KL5.js";import{a as t}from"./chunk-ITN3D7RJ.js";import{d as x}from"./chunk-SOAWGUAD.js";x();x();var H="comm",ir="rule",or="decl";var ee="@media",te="@import";var ae="@supports";var ie="@namespace",Q="@keyframes";var nr="@layer",oe="@scope";x();var ne=Math.abs,z=String.fromCharCode;function sr(r){return r.trim()}function Z(r,e,a){return r.replace(e,a)}function I(r,e){return r.charCodeAt(e)|0}function F(r,e,a){return r.slice(e,a)}function S(r){return r.length}function dr(r){return r.length}function B(r,e){return e.push(r),r}x();x();var cr=1,Y=1,se=0,D=0,h=0,q="";function lr(r,e,a,i,o,n,d,s){return{value:r,root:e,parent:a,type:i,props:o,children:n,line:cr,column:Y,length:d,return:"",siblings:s}}function de(){return h}function ce(){return h=D>0?I(q,--D):0,Y--,h===10&&(Y=1,cr--),h}function T(){return h=D<se?I(q,D++):0,Y++,h===10&&(Y=1,cr++),h}function O(){return I(q,D)}function J(){return D}function ur(r,e){return F(q,r,e)}function j(r){switch(r){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function le(r){return cr=Y=1,se=S(q=r),D=0,[]}function ue(r){return q="",r}function mr(r){return sr(ur(D-1,Dr(r===91?r+2:r===40?r+1:r)))}function me(r){for(;(h=O())&&h<33;)T();return j(r)>2||j(h)>3?"":" "}function pe(r,e){for(;--e&&T()&&!(h<48||h>102||h>57&&h<65||h>70&&h<97););return ur(r,J()+(e<6&&O()==32&&T()==32))}function Dr(r){for(;T();)switch(h){case r:return D;case 34:case 39:r!==34&&r!==39&&Dr(h);break;case 40:r===41&&Dr(r);break;case 92:T();break}return D}function fe(r,e){for(;T()&&r+h!==57;)if(r+h===84&&O()===47)break;return"/*"+ur(e,D-1)+"*"+z(r===47?r:T())}function ge(r){for(;!j(O());)T();return ur(r,D)}function ye(r){return ue(pr("",null,null,null,[""],r=le(r),0,[0],r))}function pr(r,e,a,i,o,n,d,s,c){for(var m=0,g=0,u=d,w=0,A=0,_=0,p=1,C=1,R=1,b=0,v=0,L="",N=o,M=n,E=i,l=L;C;)switch(_=v,v=T()){case 40:_!=108&&I(l,u-1)==58?(b++,l+="("):l+=mr(v);break;case 41:b--,l+=")";break;case 34:case 39:case 91:l+=mr(v);break;case 9:case 10:case 13:case 32:if(b>0){l+=z(v);break}l+=me(_);break;case 92:l+=pe(J()-1,7);continue;case 47:switch(O()){case 42:case 47:B(kt(fe(T(),J()),e,a,c),c),(j(_||1)==5||j(O()||1)==5)&&S(l)&&F(l,-1,void 0)!==" "&&(l+=" ");break;default:l+="/"}break;case 123*p:s[m++]=S(l)*R;case 125*p:case 59:case 0:if(b>0&&v){l+=z(v);break}switch(v){case 0:case 125:C=0;case 59+g:R==-1&&(l=Z(l,/\f/g,"")),A>0&&(S(l)-u||p===0)&&B(A>32?he(l+";",i,a,u-1,c):he(Z(l," ","")+";",i,a,u-2,c),c);break;case 59:l+=";";default:if(B(E=ve(l,e,a,m,g,o,s,L,N=[],M=[],u,n),n),v===123)if(g===0)pr(l,e,E,E,N,n,u,s,M);else{switch(w){case 99:if(I(l,3)===110)break;case 108:if(I(l,2)===97)break;default:g=0;case 100:case 109:case 115:}g?pr(r,E,E,i&&B(ve(r,E,E,0,0,o,s,L,o,N=[],u,M),M),o,M,u,s,i?N:M):pr(l,E,E,E,[""],M,0,s,M)}}m=g=A=0,p=R=1,L=l="",u=d;break;case 58:u=1+S(l),A=_;default:if(p<1){if(v==123)--p;else if(v==125&&p++==0&&ce()==125)continue}switch(l+=z(v),v*p){case 38:R=g>0?1:(l+="\f",-1);break;case 44:if(b>0)break;s[m++]=(S(l)-1)*R,R=1;break;case 64:O()===45&&(l+=mr(T())),w=O(),g=u=S(L=l+=ge(J())),v++;break;case 45:_===45&&S(l)==2&&(p=0)}}return n}function ve(r,e,a,i,o,n,d,s,c,m,g,u){for(var w=o-1,A=o===0?n:[""],_=dr(A),p=0,C=0,R=0;p<i;++p)for(var b=0,v=F(r,w+1,w=ne(C=d[p])),L=r;b<_;++b)(L=sr(C>0?A[b]+" "+v:Z(v,/&\f/g,A[b])))&&(c[R++]=L);return lr(r,e,a,o===0?ir:s,c,m,g,u)}function kt(r,e,a,i){return lr(r,e,a,H,z(de()),F(r,2,-2),0,i)}function he(r,e,a,i,o){return lr(r,e,a,or,F(r,0,i),F(r,i+1,-1),i,o)}x();function fr(r,e){for(var a="",i=0;i<r.length;i++)a+=e(r[i],i,r,e)||"";return a}function we(r,e,a,i){switch(r.type){case nr:if(r.children.length)break;case te:case ie:case or:return r.return=r.return||r.value;case H:return"";case Q:return r.return=r.value+"{"+fr(r.children,i)+"}";case ir:if(!S(r.value=r.props.join(",")))return""}return S(a=fr(r.children,i))?r.return=r.value+"{"+a+"}":""}x();function be(r){var e=dr(r);return function(a,i,o,n){for(var d="",s=0;s<e;s++)d+=r[s](a,i,o,n)||"";return d}}var Te="c4",It=t(r=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(r),"detector"),Ft=t(async()=>{let{diagram:r}=await import("./c4Diagram-7LVT6UL2-57CIXPJZ.js");return{id:Te,diagram:r}},"loader"),Ot={id:Te,detector:It,loader:Ft},$t=Ot,Ae="flowchart",zt=t((r,e)=>e?.flowchart?.defaultRenderer==="dagre-wrapper"||e?.flowchart?.defaultRenderer==="elk"?!1:/^\s*graph/.test(r),"detector"),Pt=t(async()=>{let{diagram:r}=await import("./flowDiagram-HODETNUW-BILJ37ZX.js");return{id:Ae,diagram:r}},"loader"),Nt={id:Ae,detector:zt,loader:Pt},Vt=Nt,_e="flowchart-v2",Ut=t((r,e)=>e?.flowchart?.defaultRenderer==="dagre-d3"?!1:(e?.flowchart?.defaultRenderer==="elk"&&(e.layout="elk"),/^\s*graph/.test(r)&&e?.flowchart?.defaultRenderer==="dagre-wrapper"?!0:/^\s*flowchart/.test(r)),"detector"),Gt=t(async()=>{let{diagram:r}=await import("./flowDiagram-HODETNUW-BILJ37ZX.js");return{id:_e,diagram:r}},"loader"),Ht={id:_e,detector:Ut,loader:Gt},Bt=Ht,Re="swimlane",Yt=t(r=>/^\s*swimlane-beta\b/.test(r),"detector"),jt=t(async()=>{let{diagram:r}=await import("./swimlanesDiagram-VR7AAH4N-U2LP4OEE.js");return{id:Re,diagram:r}},"loader"),qt={id:Re,detector:Yt,loader:jt},Wt=qt,Le="er",Xt=t(r=>/^\s*erDiagram/.test(r),"detector"),Kt=t(async()=>{let{diagram:r}=await import("./erDiagram-RLTQ6QDP-6MYZ2NRT.js");return{id:Le,diagram:r}},"loader"),Qt={id:Le,detector:Xt,loader:Kt},Zt=Qt,Me="gitGraph",Jt=t(r=>/^\s*gitGraph/.test(r),"detector"),ra=t(async()=>{let{diagram:r}=await import("./gitGraphDiagram-WWUBYQGX-JRB4SUZI.js");return{id:Me,diagram:r}},"loader"),ea={id:Me,detector:Jt,loader:ra},ta=ea,Ce="gantt",aa=t(r=>/^\s*gantt/.test(r),"detector"),ia=t(async()=>{let{diagram:r}=await import("./ganttDiagram-EL5Y4UJY-LVA23DND.js");return{id:Ce,diagram:r}},"loader"),oa={id:Ce,detector:aa,loader:ia},na=oa,ke="info",sa=t(r=>/^\s*info/.test(r),"detector"),da=t(async()=>{let{diagram:r}=await import("./infoDiagram-27XIBGKW-JLOVILVF.js");return{id:ke,diagram:r}},"loader"),ca={id:ke,detector:sa,loader:da},Ie="pie",la=t(r=>/^\s*pie/.test(r),"detector"),ua=t(async()=>{let{diagram:r}=await import("./pieDiagram-E7YTZNPT-XOJE3H3L.js");return{id:Ie,diagram:r}},"loader"),ma={id:Ie,detector:la,loader:ua},Fe="quadrantChart",pa=t(r=>/^\s*quadrantChart/.test(r),"detector"),fa=t(async()=>{let{diagram:r}=await import("./quadrantDiagram-AXDQQJYC-23VSADTC.js");return{id:Fe,diagram:r}},"loader"),ga={id:Fe,detector:pa,loader:fa},va=ga,Oe="xychart",ha=t(r=>/^\s*xychart(-beta)?/.test(r),"detector"),ya=t(async()=>{let{diagram:r}=await import("./xychartDiagram-S5SC5T6Z-NAEIWN4K.js");return{id:Oe,diagram:r}},"loader"),wa={id:Oe,detector:ha,loader:ya},ba=wa,$e="requirement",xa=t(r=>/^\s*requirement(Diagram)?/.test(r),"detector"),Sa=t(async()=>{let{diagram:r}=await import("./requirementDiagram-BXWQKSXE-MNP4O73E.js");return{id:$e,diagram:r}},"loader"),Ea={id:$e,detector:xa,loader:Sa},Da=Ea,ze="sequence",Ta=t(r=>/^\s*sequenceDiagram/.test(r),"detector"),Aa=t(async()=>{let{diagram:r}=await import("./sequenceDiagram-WJ2MYXX4-FGWOVXU4.js");return{id:ze,diagram:r}},"loader"),_a={id:ze,detector:Ta,loader:Aa},Ra=_a,Pe="class",La=t((r,e)=>e?.class?.defaultRenderer==="dagre-wrapper"?!1:/^\s*classDiagram/.test(r),"detector"),Ma=t(async()=>{let{diagram:r}=await import("./classDiagram-ZZMXUADV-ALD5ECFE.js");return{id:Pe,diagram:r}},"loader"),Ca={id:Pe,detector:La,loader:Ma},ka=Ca,Ne="classDiagram",Ia=t((r,e)=>/^\s*classDiagram/.test(r)&&e?.class?.defaultRenderer==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(r),"detector"),Fa=t(async()=>{let{diagram:r}=await import("./classDiagram-v2-VYDZK3BY-IMIEVQNX.js");return{id:Ne,diagram:r}},"loader"),Oa={id:Ne,detector:Ia,loader:Fa},$a=Oa,Ve="state",za=t((r,e)=>e?.state?.defaultRenderer==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(r),"detector"),Pa=t(async()=>{let{diagram:r}=await import("./stateDiagram-D77RDMKH-7PRO4WYR.js");return{id:Ve,diagram:r}},"loader"),Na={id:Ve,detector:za,loader:Pa},Va=Na,Ue="stateDiagram",Ua=t((r,e)=>!!(/^\s*stateDiagram-v2/.test(r)||/^\s*stateDiagram/.test(r)&&e?.state?.defaultRenderer==="dagre-wrapper"),"detector"),Ga=t(async()=>{let{diagram:r}=await import("./stateDiagram-v2-MP3YSRHH-2Y6SWEJW.js");return{id:Ue,diagram:r}},"loader"),Ha={id:Ue,detector:Ua,loader:Ga},Ba=Ha,Ge="journey",Ya=t(r=>/^\s*journey/.test(r),"detector"),ja=t(async()=>{let{diagram:r}=await import("./journeyDiagram-3NMN7TZE-ORMC2WB2.js");return{id:Ge,diagram:r}},"loader"),qa={id:Ge,detector:Ya,loader:ja},Wa=qa,Xa=t((r,e,a)=>{f.debug(`rendering svg for syntax error
2
+ `);let i=Yr(e),o=i.append("g");i.attr("viewBox","0 0 2412 512"),Hr(i,100,512,!0),o.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),o.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),o.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),o.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),o.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),o.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),o.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),o.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${a}`)},"draw"),He={draw:Xa},Ka=He,Qa={db:{},renderer:He,parser:{parse:t(()=>{},"parse")}},Za=Qa,Be="flowchart-elk",Ja=t((r,e={})=>/^\s*flowchart-elk/.test(r)||/^\s*(flowchart|graph)/.test(r)&&e?.flowchart?.defaultRenderer==="elk"?(e.layout="elk",!0):!1,"detector"),ri=t(async()=>{let{diagram:r}=await import("./flowDiagram-HODETNUW-BILJ37ZX.js");return{id:Be,diagram:r}},"loader"),ei={id:Be,detector:Ja,loader:ri},ti=ei,Ye="timeline",ai=t(r=>/^\s*timeline/.test(r),"detector"),ii=t(async()=>{let{diagram:r}=await import("./timeline-definition-24CTP7MA-7ZIALE6C.js");return{id:Ye,diagram:r}},"loader"),oi={id:Ye,detector:ai,loader:ii},ni=oi,je="mindmap",si=t(r=>/^\s*mindmap/.test(r),"detector"),di=t(async()=>{let{diagram:r}=await import("./mindmap-definition-YA3MSWOX-BLW6WWFS.js");return{id:je,diagram:r}},"loader"),ci={id:je,detector:si,loader:di},li=ci,qe="kanban",ui=t(r=>/^\s*kanban/.test(r),"detector"),mi=t(async()=>{let{diagram:r}=await import("./kanban-definition-UXKFOSKX-TPRG3VMF.js");return{id:qe,diagram:r}},"loader"),pi={id:qe,detector:ui,loader:mi},fi=pi,We="sankey",gi=t(r=>/^\s*sankey(-beta)?/.test(r),"detector"),vi=t(async()=>{let{diagram:r}=await import("./sankeyDiagram-P5KCCOFB-PADI35QR.js");return{id:We,diagram:r}},"loader"),hi={id:We,detector:gi,loader:vi},yi=hi,Xe="packet",wi=t(r=>/^\s*packet(-beta)?/.test(r),"detector"),bi=t(async()=>{let{diagram:r}=await import("./diagram-Z3DM3KII-ODYVRYAT.js");return{id:Xe,diagram:r}},"loader"),xi={id:Xe,detector:wi,loader:bi},Ke="radar",Si=t(r=>/^\s*radar-beta/.test(r),"detector"),Ei=t(async()=>{let{diagram:r}=await import("./diagram-UQ7AKVKN-BN6IVDBP.js");return{id:Ke,diagram:r}},"loader"),Di={id:Ke,detector:Si,loader:Ei},Qe="block",Ti=t(r=>/^\s*block(-beta)?/.test(r),"detector"),Ai=t(async()=>{let{diagram:r}=await import("./blockDiagram-I7D4REHJ-ARCDWS5D.js");return{id:Qe,diagram:r}},"loader"),_i={id:Qe,detector:Ti,loader:Ai},Ri=_i,Ze="treeView",Li=t(r=>/^\s*treeView-beta/.test(r),"detector"),Mi=t(async()=>{let{diagram:r}=await import("./diagram-S7CK7UJ4-AENTNBTM.js");return{id:Ze,diagram:r}},"loader"),Ci={id:Ze,detector:Li,loader:Mi},ki=Ci,Je="architecture",Ii=t(r=>/^\s*architecture/.test(r),"detector"),Fi=t(async()=>{let{diagram:r}=await import("./architectureDiagram-5GKGNRK7-JB5DD7KL.js");return{id:Je,diagram:r}},"loader"),Oi={id:Je,detector:Ii,loader:Fi},$i=Oi,rt="eventmodeling",zi=t(r=>/^\s*eventmodeling/.test(r),"detector"),Pi=t(async()=>{let{diagram:r}=await import("./diagram-VSXAHHWV-X7IW7FU6.js");return{id:rt,diagram:r}},"loader"),Ni={id:rt,detector:zi,loader:Pi},Vi=Ni,et="ishikawa",Ui=t(r=>/^\s*ishikawa(-beta)?\b/i.test(r),"detector"),Gi=t(async()=>{let{diagram:r}=await import("./ishikawaDiagram-5VMMS53U-SUA2YN5D.js");return{id:et,diagram:r}},"loader"),Hi={id:et,detector:Ui,loader:Gi},tt="venn",Bi=t(r=>/^\s*venn-beta/.test(r),"detector"),Yi=t(async()=>{let{diagram:r}=await import("./vennDiagram-4TSXK5OY-IPXNDYWM.js");return{id:tt,diagram:r}},"loader"),ji={id:tt,detector:Bi,loader:Yi},qi=ji,at="treemap",Wi=t(r=>/^\s*treemap/.test(r),"detector"),Xi=t(async()=>{let{diagram:r}=await import("./diagram-VX7I27RA-4V6RQ6IS.js");return{id:at,diagram:r}},"loader"),Ki={id:at,detector:Wi,loader:Xi},it="wardley",Qi=t(r=>/^\s*wardley-beta/i.test(r),"detector"),Zi=t(async()=>{let{diagram:r}=await import("./wardleyDiagram-VM6X3IG4-4Z2U2NNR.js");return{id:it,diagram:r}},"loader"),Ji={id:it,detector:Qi,loader:Zi},ro=Ji,ot="cynefin",eo=t(r=>/^\s*cynefin-beta(?:[\s:]|$)/.test(r),"detector"),to=t(async()=>{let{diagram:r}=await import("./cynefinDiagram-5FMLGOSQ-A3E3NM6X.js");return{id:ot,diagram:r}},"loader"),ao={id:ot,detector:eo,loader:to},nt="railroad",io=t(r=>/^\s*railroad-beta/i.test(r),"detector"),oo=t(async()=>{let{diagram:r}=await import("./railroadDiagram-O6MQD6OU-Z5IEAZJK.js");return{id:nt,diagram:r}},"loader"),no={id:nt,detector:io,loader:oo},st="railroadEbnf",so=t(r=>/^\s*railroad-ebnf-beta/i.test(r),"detector"),co=t(async()=>{let{diagram:r}=await import("./ebnfDiagram-PWID7BFC-2KD46JNN.js");return{id:st,diagram:r}},"loader"),lo={id:st,detector:so,loader:co},dt="railroadAbnf",uo=t(r=>/^\s*railroad-abnf-beta/i.test(r),"detector"),mo=t(async()=>{let{diagram:r}=await import("./abnfDiagram-VCTEODGH-P6AZFXJU.js");return{id:dt,diagram:r}},"loader"),po={id:dt,detector:uo,loader:mo},ct="railroadPeg",fo=t(r=>/^\s*railroad-peg-beta/i.test(r),"detector"),go=t(async()=>{let{diagram:r}=await import("./pegDiagram-XKGWAZYB-BYMP3YHY.js");return{id:ct,diagram:r}},"loader"),vo={id:ct,detector:fo,loader:go},xe=!1,vr=t(()=>{xe||(xe=!0,K("error",Za,r=>r.toLowerCase().trim()==="error"),K("---",{db:{clear:t(()=>{},"clear")},styles:{},renderer:{draw:t(()=>{},"draw")},parser:{parse:t(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:t(()=>null,"init")},r=>r.toLowerCase().trimStart().startsWith("---")),tr(ti,li,$i),tr($t,fi,$a,ka,Zt,na,ca,ma,Da,Ra,Wt,Bt,Vt,ni,ta,Ba,Va,Wa,va,yi,xi,ba,Ri,Vi,ki,Di,Hi,Ki,no,lo,po,vo,qi,ro,ao))},"addDiagrams"),ho=t(async()=>{f.debug("Loading registered diagrams");let e=(await Promise.allSettled(Object.entries(er).map(async([a,{detector:i,loader:o}])=>{if(o)try{ar(a)}catch{try{let{diagram:n,id:d}=await o();K(d,n,i)}catch(n){throw f.error(`Failed to load external diagram with key ${a}. Removing from detectors.`),delete er[a],n}}}))).filter(a=>a.status==="rejected");if(e.length>0){f.error(`Failed to load ${e.length} external diagrams`);for(let a of e)f.error(a);throw new Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams"),yo="graphics-document document";function lt(r,e){r.attr("role",yo),e!==""&&r.attr("aria-roledescription",e)}t(lt,"setA11yDiagramInfo");function ut(r,e,a,i){if(r.insert!==void 0){if(a){let o=`chart-desc-${i}`;r.attr("aria-describedby",o),r.insert("desc",":first-child").attr("id",o).text(a)}if(e){let o=`chart-title-${i}`;r.attr("aria-labelledby",o),r.insert("title",":first-child").attr("id",o).text(e)}}}t(ut,"addSVGa11yTitleDescription");var Ar=class mt{constructor(e,a,i,o,n){this.type=e,this.text=a,this.db=i,this.parser=o,this.renderer=n}static{t(this,"Diagram")}static async fromText(e,a={}){let i=V(),o=br(e,i);e=Xr(e)+`
3
+ `;try{ar(o)}catch{let m=Gr(o);if(!m)throw new Ur(`Diagram ${o} not found.`);let{id:g,diagram:u}=await m();K(g,u)}let{db:n,parser:d,renderer:s,init:c}=ar(o);return d.parser&&(d.parser.yy=n),n.clear?.(),c?.(i),a.title&&n.setDiagramTitle?.(a.title),await d.parse(e),new mt(o,e,n,d,s)}async render(e,a){await this.renderer.draw(this.text,e,a,this)}getParser(){return this.parser}getType(){return this.type}},Se=[],wo=t(()=>{Se.forEach(r=>{r()}),Se=[]},"attachFunctions"),bo=t(r=>r.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function pt(r){let e=r.match(Vr);if(!e)return{text:r,metadata:{}};let a=e[1],i=a?e[2].split(`
4
+ `).map(d=>d.startsWith(a)?d.slice(a.length):d).join(`
5
+ `):e[2],o=Jr(i,{schema:Zr})??{};o=typeof o=="object"&&!Array.isArray(o)?o:{};let n={};return o.displayMode&&(n.displayMode=o.displayMode.toString()),o.title&&(n.title=o.title.toString()),o.config&&(n.config=o.config),{text:r.slice(e[0].length),metadata:n}}t(pt,"extractFrontMatter");var xo=t(r=>r.replace(/\r\n?/g,`
6
+ `).replace(/<(\w+)([^>]*)>/g,(e,a,i)=>"<"+a+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),So=t(r=>{let{text:e,metadata:a}=pt(r),{displayMode:i,title:o,config:n={}}=a;return i&&(n.gantt||(n.gantt={}),n.gantt.displayMode=i),{title:o,config:n,text:e}},"processFrontmatter"),Eo=t(r=>{let e=U.detectInit(r)??{},a=U.detectDirective(r,"wrap");return Array.isArray(a)?e.wrap=a.some(({type:i})=>i==="wrap"):a?.type==="wrap"&&(e.wrap=!0),{text:qr(r),directive:e}},"processDirectives");function Rr(r){let e=xo(r),a=So(e),i=Eo(a.text),o=Wr(a.config,i.directive);return r=bo(i.text),{code:r,title:a.title,config:o}}t(Rr,"preprocessDiagram");function ft(r){let e=new TextEncoder().encode(r),a=Array.from(e,i=>String.fromCodePoint(i)).join("");return btoa(a)}t(ft,"toBase64");var Do=5e4,To="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Ao="sandbox",_o="loose",Ro="http://www.w3.org/2000/svg",Lo="http://www.w3.org/1999/xlink",Mo="http://www.w3.org/1999/xhtml",Co="100%",ko="100%",Io="border:0;margin:0;",Fo="margin:0",Oo="allow-top-navigation-by-user-activation allow-popups",$o='The "iframe" tag is not supported by your browser.',zo=["foreignobject"],Po=["dominant-baseline"];function Lr(r){let e=Rr(r);return X(),Pr(e.config??{}),e}t(Lr,"processAndSetConfigs");async function gt(r,e){vr();try{let{code:a,config:i}=Lr(r);return{diagramType:(await ht(a)).type,config:i}}catch(a){if(e?.suppressErrors)return!1;throw a}}t(gt,"parse");var Ee=t((r,e,a=[])=>{let i=kr(`{ ${a.join(" !important; ")} !important; }`);return`.${r} ${e} ${i}`},"cssImportantStyles"),No=t((r,e=new Map)=>{let a=new CSSStyleSheet;if(r.fontFamily!==void 0&&a.insertRule(`:root { --mermaid-font-family: ${r.fontFamily}}`,a.cssRules.length),r.altFontFamily!==void 0&&a.insertRule(`:root { --mermaid-alt-font-family: ${r.altFontFamily}}`,a.cssRules.length),e instanceof Map){let s=Nr(r)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(c=>{Sr(c.styles)||s.forEach(m=>{a.insertRule(Ee(c.id,m,c.styles),a.cssRules.length)}),Sr(c.textStyles)||a.insertRule(Ee(c.id,"tspan",(c?.textStyles||[]).map(m=>m.replace("color","fill"))),a.cssRules.length)})}let i="";if(r.themeCSS!==void 0)if(typeof a.replaceSync=="function"){let o=new CSSStyleSheet;o.replaceSync(r.themeCSS),i=xr(o)+`
7
+ `}else i+=`${r.themeCSS}
8
+ `;return i+xr(a)},"createCssStyles"),Vo=t((r,e)=>fr(ye(`${r}{${e}}`),be([t(function(i,o,n,d){if(i.type==="rule"&&Array.isArray(i.props)){if(i.parent&&i.parent.type===Q)return;i.props=i.props.map(s=>s===r&&Array.isArray(i.children)&&i.children.every(m=>m.type!=="decl"?!1:new Set(["font-family","font-size","fill"]).has(m.props))||(s.startsWith(`${r} `)||s.startsWith(`${r}>`))&&!s.startsWith(`${r} ||`)?s:`${r} ${s}`)}else i.type.startsWith("@")&&([...[ee,ae,nr,oe,"@container","@starting-style"],Q].includes(i.type)||(f.warn(`Removing unsupported at-rule ${i.type} from CSS`),i.type=H))},"addNamespace"),we])),"compileCSS"),Uo=t((r,e,a,i)=>{let o=No(r,a),n=Br(e,o,{...r.themeVariables,theme:r.theme,look:r.look},i);return Vo(i,n)},"createUserStyles"),Go=t((r="",e,a)=>{let i=r;return!a&&!e&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=Kr(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),Ho=t((r="",e)=>{let a=e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":ko,i=ft(`<body style="${Fo}">${r}</body>`);return`<iframe style="width:${Co};height:${a};${Io}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${Oo}">
9
+ ${$o}
10
+ </iframe>`},"putIntoIFrame"),De=t((r,e,a,i,o)=>{let n=r.append("div");n.attr("id",a),i&&n.attr("style",i);let d=n.append("svg").attr("id",e).attr("width","100%").attr("xmlns",Ro);return o&&d.attr("xmlns:xlink",o),d.append("g"),r},"appendDivSvgG");function _r(r,e){return r.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}t(_r,"sandboxedIframe");var Bo=t((r,e,a,i)=>{r.getElementById(e)?.remove(),r.getElementById(a)?.remove(),r.getElementById(i)?.remove()},"removeExistingElements"),Yo=t(async function(r,e,a){vr();let i=Lr(e);e=i.code;let o=V();f.debug(o),e.length>(o?.maxTextSize??Do)&&(e=To);let n=`#${r}`,d="i"+r,s="#"+d,c="d"+r,m="#"+c,g=t(()=>{let W=k(w?s:m).node();W&&"remove"in W&&W.remove()},"removeTempElements"),u=k(document.body),w=o.securityLevel===Ao,A=o.securityLevel===_o,_=o.fontFamily;if(a!==void 0){if(a&&(a.innerHTML=""),w){let y=_r(k(a),d);u=k(y.nodes()[0].contentDocument.body),u.node().style.margin="0"}else u=k(a);De(u,r,c,`font-family: ${_}`,Lo)}else{if(Bo(document,r,c,d),w){let y=_r(k(document.body),d);u=k(y.nodes()[0].contentDocument.body),u.node().style.margin="0"}else u=k("body");De(u,r,c)}let p,C;try{p=await Ar.fromText(e,{title:i.title})}catch(y){if(o.suppressErrorRendering)throw g(),y;p=await Ar.fromText("error"),C=y}let R=u.select(m).node(),b=p.type,v=R.firstChild,L=v.firstChild,N=p.renderer.getClasses?.(e,p),M=Uo(o,b,N,n),E=document.createElement("style");E.innerHTML=M,v.insertBefore(E,L);try{await p.renderer.draw(e,r,"11.17.2",p)}catch(y){throw o.suppressErrorRendering?g():Ka.draw(e,r,"11.17.2"),y}let l=u.select(`${m} svg`),Dt=p.db.getAccTitle?.(),Tt=p.db.getAccDescription?.();yt(b,l,Dt,Tt);let At=t(()=>{u.select(`[id="${r}"]`).selectAll("foreignobject > *").attr("xmlns",Mo);let y=u.select(m).node().innerHTML;if(f.debug("config.arrowMarkerAbsolute",o.arrowMarkerAbsolute),y=Go(y,w,Ir(o.arrowMarkerAbsolute)),w){let W=u.select(m+" svg").node();y=Ho(y,W)}else A||(y=Mr.sanitize(y,{ADD_TAGS:zo,ADD_ATTR:Po,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));return wo(),y},"serializeSvg")();if(C)throw C;return g(),{diagramType:b,svg:At,bindFunctions:p.db.bindFunctions}},"render");function vt(r={}){let e=Cr({},r);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),Or(e),e?.theme&&e.theme in rr?e.themeVariables=rr[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=rr.default.getThemeVariables(e.themeVariables));let a=typeof e=="object"?Fr(e):wr();hr(a.logLevel),vr()}t(vt,"initialize");var ht=t((r,e={})=>{let{code:a}=Rr(r);return Ar.fromText(a,e)},"getDiagramFromText");function yt(r,e,a,i){lt(e,r),ut(e,a,i,e.attr("id"))}t(yt,"addA11yInfo");var P=Object.freeze({render:Yo,parse:gt,getDiagramFromText:ht,initialize:vt,getConfig:V,setConfig:zr,getSiteConfig:wr,updateSiteConfig:$r,reset:t(()=>{X()},"reset"),globalReset:t(()=>{X(yr)},"globalReset"),defaultConfig:yr});hr(V().logLevel);X(V());var jo=t((r,e,a)=>{f.warn(r),Er(r)?(a&&a(r.str,r.hash),e.push({...r,message:r.str,error:r})):(a&&a(r),r instanceof Error&&e.push({str:r.message,message:r.message,hash:r.name,error:r}))},"handleError"),wt=t(async function(r={querySelector:".mermaid"}){try{await qo(r)}catch(e){if(Er(e)&&f.error(e.str),$.parseError&&$.parseError(e),!r.suppressErrors)throw f.error("Use the suppressErrors option to suppress these errors"),e}},"run"),qo=t(async function({postRenderCallback:r,querySelector:e,nodes:a}={querySelector:".mermaid"}){let i=P.getConfig();f.debug(`${r?"":"No "}Callback function found`);let o;if(a)o=a;else if(e)o=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");f.debug(`Found ${o.length} diagrams`),i?.startOnLoad!==void 0&&(f.debug("Start On Load: "+i?.startOnLoad),P.updateSiteConfig({startOnLoad:i?.startOnLoad}));let n=new U.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed),d,s=[];for(let c of Array.from(o)){if(f.info("Rendering diagram: "+c.id),c.getAttribute("data-processed"))continue;c.setAttribute("data-processed","true");let m=`mermaid-${n.next()}`;d=c.innerHTML,d=Qr(U.entityDecode(d)).trim().replace(/<br\s*\/?>/gi,"<br/>");let g=U.detectInit(d);g&&f.debug("Detected early reinit: ",g);try{let{svg:u,bindFunctions:w}=await Et(m,d,c);c.innerHTML=u,r&&await r(m),w&&w(c)}catch(u){jo(u,s,$.parseError)}}if(s.length>0)throw s[0]},"runThrowsErrors"),bt=t(function(r){P.initialize(r)},"initialize"),Wo=t(async function(r,e,a){f.warn("mermaid.init is deprecated. Please use run instead."),r&&bt(r);let i={postRenderCallback:a,querySelector:".mermaid"};typeof e=="string"?i.querySelector=e:e&&(e instanceof HTMLElement?i.nodes=[e]:i.nodes=e),await wt(i)},"init"),Xo=t(async(r,{lazyLoad:e=!0}={})=>{vr(),tr(...r),e===!1&&await ho()},"registerExternalDiagrams"),xt=t(function(){if($.startOnLoad){let{startOnLoad:r}=P.getConfig();r&&$.run().catch(e=>f.error("Mermaid failed to initialize",e))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",xt,!1);var Ko=t(function(r){$.parseError=r},"setParseErrorHandler"),gr=[],Tr=!1,St=t(async()=>{if(!Tr){for(Tr=!0;gr.length>0;){let r=gr.shift();if(r)try{await r()}catch(e){f.error("Error executing queue",e)}}Tr=!1}},"executeQueue"),Qo=t(async(r,e)=>new Promise((a,i)=>{let o=t(()=>new Promise((n,d)=>{P.parse(r,e).then(s=>{n(s),a(s)},s=>{f.error("Error parsing",s),$.parseError?.(s),d(s),i(s)})}),"performCall");gr.push(o),St().catch(i)}),"parse"),Et=t((r,e,a)=>new Promise((i,o)=>{let n=t(()=>new Promise((d,s)=>{P.render(r,e,a).then(c=>{d(c),i(c)},c=>{f.error("Error parsing",c),$.parseError?.(c),s(c),o(c)})}),"performCall");gr.push(n),St().catch(o)}),"render"),Zo=t(()=>Object.keys(er).map(r=>({id:r})),"getRegisteredDiagramsMetadata"),$={startOnLoad:!0,mermaidAPI:P,parse:Qo,render:Et,init:Wo,run:wt,registerExternalDiagrams:Xo,registerLayoutLoaders:re,initialize:bt,parseError:void 0,contentLoaded:xt,setParseErrorHandler:Ko,detectType:br,registerIconPacks:jr,getRegisteredDiagramsMetadata:Zo},Hn=$;export{Rt as clearLayoutRenderState,_t as createCommonLayoutRenderer,Hn as default,Lt as defaultMeasureLayout,Mt as paintLayoutData};
11
+ /*! Bundled license information:
12
+
13
+ mermaid/dist/mermaid.core.mjs:
14
+ (*! Check if previously processed *)
15
+ (*!
16
+ * Wait for document loaded before starting the execution
17
+ *)
18
+ */
19
+ //# sourceMappingURL=mermaid.core-ZM3JSPVU.js.map
@@ -0,0 +1,97 @@
1
+ import{a as pe}from"./chunk-NLHJT4GD.js";import{b as ge,c as ue}from"./chunk-GEV6X2TZ.js";import{a as fe}from"./chunk-IKC3ZQV7.js";import"./chunk-ZXMMITLE.js";import"./chunk-3EZ2OKHV.js";import"./chunk-XOZZFIHV.js";import"./chunk-NOVL2262.js";import"./chunk-USZ3ZJYA.js";import"./chunk-J6N7AUC2.js";import"./chunk-NQ2XP5EN.js";import"./chunk-GPW7TXQS.js";import"./chunk-CFMSYLIK.js";import"./chunk-UU7BHEBD.js";import{H as P,_ as w,c as ae,d as ce,e as le,k as M,u as he,x as de}from"./chunk-SGL7WI35.js";import{b as O}from"./chunk-CXXG5KL5.js";import{a as h}from"./chunk-ITN3D7RJ.js";import{d as x}from"./chunk-SOAWGUAD.js";x();x();x();var k=[];for(let e=0;e<256;++e)k.push((e+256).toString(16).slice(1));function me(e,i=0){return(k[e[i+0]]+k[e[i+1]]+k[e[i+2]]+k[e[i+3]]+"-"+k[e[i+4]]+k[e[i+5]]+"-"+k[e[i+6]]+k[e[i+7]]+"-"+k[e[i+8]]+k[e[i+9]]+"-"+k[e[i+10]]+k[e[i+11]]+k[e[i+12]]+k[e[i+13]]+k[e[i+14]]+k[e[i+15]]).toLowerCase()}x();var Se=new Uint8Array(16);function K(){return crypto.getRandomValues(Se)}x();function xe(e,i,l){return!i&&!e&&crypto.randomUUID?crypto.randomUUID():Ne(e,i,l)}function Ne(e,i,l){e=e||{};let a=e.random??e.rng?.()??K();if(a.length<16)throw new Error("Random bytes length must be >= 16");if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,i){if(l=l||0,l<0||l+16>i.length)throw new RangeError(`UUID byte range ${l}:${l+15} is out of buffer bounds`);for(let t=0;t<16;++t)i[l+t]=a[t];return i}return me(a)}var Q=xe;var Z=(function(){var e=h(function(L,s,n,o){for(n=n||{},o=L.length;o--;n[L[o]]=s);return n},"o"),i=[1,4],l=[1,13],a=[1,12],t=[1,15],d=[1,16],f=[1,20],m=[1,19],b=[6,7,8],I=[1,26],R=[1,24],A=[1,25],g=[6,7,11],$=[1,6,13,15,16,19,22],ee=[1,33],te=[1,34],U=[1,6,7,11,13,15,16,19,22],W={trace:h(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:h(function(s,n,o,c,p,r,B){var u=r.length-1;switch(p){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[u].id),c.addNode(r[u-1].length,r[u].id,r[u].descr,r[u].type);break;case 16:c.getLogger().trace("Icon: ",r[u]),c.decorateNode({icon:r[u]});break;case 17:case 21:c.decorateNode({class:r[u]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[u].id),c.addNode(0,r[u].id,r[u].descr,r[u].type);break;case 20:c.decorateNode({icon:r[u]});break;case 25:c.getLogger().trace("node found ..",r[u-2]),this.$={id:r[u-1],descr:r[u-1],type:c.getType(r[u-2],r[u])};break;case 26:this.$={id:r[u],descr:r[u],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[u-3]),this.$={id:r[u-3],descr:r[u-1],type:c.getType(r[u-2],r[u])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:i},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:i},{6:l,7:[1,10],9:9,12:11,13:a,14:14,15:t,16:d,17:17,18:18,19:f,22:m},e(b,[2,3]),{1:[2,2]},e(b,[2,4]),e(b,[2,5]),{1:[2,6],6:l,12:21,13:a,14:14,15:t,16:d,17:17,18:18,19:f,22:m},{6:l,9:22,12:11,13:a,14:14,15:t,16:d,17:17,18:18,19:f,22:m},{6:I,7:R,10:23,11:A},e(g,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:f,22:m}),e(g,[2,18]),e(g,[2,19]),e(g,[2,20]),e(g,[2,21]),e(g,[2,23]),e(g,[2,24]),e(g,[2,26],{19:[1,30]}),{20:[1,31]},{6:I,7:R,10:32,11:A},{1:[2,7],6:l,12:21,13:a,14:14,15:t,16:d,17:17,18:18,19:f,22:m},e($,[2,14],{7:ee,11:te}),e(U,[2,8]),e(U,[2,9]),e(U,[2,10]),e(g,[2,15]),e(g,[2,16]),e(g,[2,17]),{20:[1,35]},{21:[1,36]},e($,[2,13],{7:ee,11:te}),e(U,[2,11]),e(U,[2,12]),{21:[1,37]},e(g,[2,25]),e(g,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:h(function(s,n){if(n.recoverable)this.trace(s);else{var o=new Error(s);throw o.hash=n,o}},"parseError"),parse:h(function(s){var n=this,o=[0],c=[],p=[null],r=[],B=this.table,u="",F=0,ie=0,ne=0,ke=2,re=1,be=r.slice.call(arguments,1),y=Object.create(this.lexer),v={yy:{}};for(var X in this.yy)Object.prototype.hasOwnProperty.call(this.yy,X)&&(v.yy[X]=this.yy[X]);y.setInput(s,v.yy),v.yy.lexer=y,v.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var z=y.yylloc;r.push(z);var Ee=y.options&&y.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _e(_){o.length=o.length-2*_,p.length=p.length-_,r.length=r.length-_}h(_e,"popStack");function se(){var _;return _=c.pop()||y.lex()||re,typeof _!="number"&&(_ instanceof Array&&(c=_,_=c.pop()),_=n.symbols_[_]||_),_}h(se,"lex");for(var E,Y,T,S,Ae,q,C={},G,N,oe,j;;){if(T=o[o.length-1],this.defaultActions[T]?S=this.defaultActions[T]:((E===null||typeof E>"u")&&(E=se()),S=B[T]&&B[T][E]),typeof S>"u"||!S.length||!S[0]){var J="";j=[];for(G in B[T])this.terminals_[G]&&G>ke&&j.push("'"+this.terminals_[G]+"'");y.showPosition?J="Parse error on line "+(F+1)+`:
2
+ `+y.showPosition()+`
3
+ Expecting `+j.join(", ")+", got '"+(this.terminals_[E]||E)+"'":J="Parse error on line "+(F+1)+": Unexpected "+(E==re?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(J,{text:y.match,token:this.terminals_[E]||E,line:y.yylineno,loc:z,expected:j})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+E);switch(S[0]){case 1:o.push(E),p.push(y.yytext),r.push(y.yylloc),o.push(S[1]),E=null,Y?(E=Y,Y=null):(ie=y.yyleng,u=y.yytext,F=y.yylineno,z=y.yylloc,ne>0&&ne--);break;case 2:if(N=this.productions_[S[1]][1],C.$=p[p.length-N],C._$={first_line:r[r.length-(N||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(N||1)].first_column,last_column:r[r.length-1].last_column},Ee&&(C._$.range=[r[r.length-(N||1)].range[0],r[r.length-1].range[1]]),q=this.performAction.apply(C,[u,ie,F,v.yy,S[1],p,r].concat(be)),typeof q<"u")return q;N&&(o=o.slice(0,-1*N*2),p=p.slice(0,-1*N),r=r.slice(0,-1*N)),o.push(this.productions_[S[1]][0]),p.push(C.$),r.push(C._$),oe=B[o[o.length-2]][o[o.length-1]],o.push(oe);break;case 3:return!0}}return!0},"parse")},ye=(function(){var L={EOF:1,parseError:h(function(n,o){if(this.yy.parser)this.yy.parser.parseError(n,o);else throw new Error(n)},"parseError"),setInput:h(function(s,n){return this.yy=n||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:h(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:h(function(s){var n=s.length,o=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===c.length?this.yylloc.first_column:0)+c[c.length-o.length].length-o[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:h(function(){return this._more=!0,this},"more"),reject:h(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:h(function(s){this.unput(this.match.slice(s))},"less"),pastInput:h(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:h(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:h(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
5
+ `+n+"^"},"showPosition"),test_match:h(function(s,n){var o,c,p;if(this.options.backtrack_lexer&&(p={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(p.yylloc.range=this.yylloc.range.slice(0))),c=s[0].match(/(?:\r\n?|\n).*/g),c&&(this.yylineno+=c.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-c[c.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(s[0].length),this.matched+=s[0],o=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var r in p)this[r]=p[r];return!1}return!1},"test_match"),next:h(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,n,o,c;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),r=0;r<p.length;r++)if(o=this._input.match(this.rules[p[r]]),o&&(!n||o[0].length>n[0].length)){if(n=o,c=r,this.options.backtrack_lexer){if(s=this.test_match(o,p[r]),s!==!1)return s;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(s=this.test_match(n,p[c]),s!==!1?s:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:h(function(){var n=this.next();return n||this.lex()},"lex"),begin:h(function(n){this.conditionStack.push(n)},"begin"),popState:h(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:h(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:h(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:h(function(n){this.begin(n)},"pushState"),stateStackSize:h(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:h(function(n,o,c,p){var r=p;switch(c){case 0:return n.getLogger().trace("Found comment",o.yytext),6;break;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;break;case 4:this.popState();break;case 5:n.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return n.getLogger().trace("SPACELINE"),6;break;case 7:return 7;case 8:return 15;case 9:n.getLogger().trace("end icon"),this.popState();break;case 10:return n.getLogger().trace("Exploding node"),this.begin("NODE"),19;break;case 11:return n.getLogger().trace("Cloud"),this.begin("NODE"),19;break;case 12:return n.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;break;case 13:return n.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;break;case 14:return this.begin("NODE"),19;break;case 15:return this.begin("NODE"),19;break;case 16:return this.begin("NODE"),19;break;case 17:return this.begin("NODE"),19;break;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:n.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return n.getLogger().trace("description:",o.yytext),"NODE_DESCR";break;case 26:this.popState();break;case 27:return this.popState(),n.getLogger().trace("node end ))"),"NODE_DEND";break;case 28:return this.popState(),n.getLogger().trace("node end )"),"NODE_DEND";break;case 29:return this.popState(),n.getLogger().trace("node end ...",o.yytext),"NODE_DEND";break;case 30:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";break;case 31:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";break;case 32:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";break;case 33:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";break;case 34:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";break;case 35:return n.getLogger().trace("Long description:",o.yytext),20;break;case 36:return n.getLogger().trace("Long description:",o.yytext),20;break}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return L})();W.lexer=ye;function V(){this.yy={}}return h(V,"Parser"),V.prototype=W,W.Parser=V,new V})();Z.parser=Z;var De=Z,Le=12,D={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},ve=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=D,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{h(this,"MindmapDB")}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let i=this.nodes.length-1;i>=0;i--)if(this.nodes[i].level<e)return this.nodes[i];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(e,i,l,a){O.info("addNode",e,i,l,a);let t=!1;this.nodes.length===0?(this.baseLevel=e,e=0,t=!0):this.baseLevel!==void 0&&(e=e-this.baseLevel,t=!1);let d=w(),f=d.mindmap?.padding??M.mindmap.padding;switch(a){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:f*=2;break}let m={id:this.count++,nodeId:P(i,d),level:e,descr:P(l,d),type:a,children:[],width:d.mindmap?.maxNodeWidth??M.mindmap.maxNodeWidth,padding:f,isRoot:t},b=this.getParent(e);if(b)b.children.push(m),this.nodes.push(m);else if(t)this.nodes.push(m);else throw new Error(`There can be only one root. No parent could be found for ("${m.descr}")`)}getType(e,i){switch(O.debug("In get type",e,i),e){case"[":return this.nodeType.RECT;case"(":return i===")"?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,i){this.elements[e]=i}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;let i=w(),l=this.nodes[this.nodes.length-1];e.icon&&(l.icon=P(e.icon,i)),e.class&&(l.class=P(e.class,i))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(e,i){if(e.level===0?e.section=void 0:e.section=i,e.children)for(let[l,a]of e.children.entries()){let t=e.level===0?l%(Le-1):i;this.assignSections(a,t)}}flattenNodes(e,i){let l=w(),a=["mindmap-node"];e.isRoot===!0?a.push("section-root","section--1"):e.section!==void 0&&a.push(`section-${e.section}`),e.class&&a.push(e.class);let t=a.join(" "),d=h(m=>{let I=(l.theme?.toLowerCase()??"").includes("redux");switch(m){case D.CIRCLE:return"mindmapCircle";case D.RECT:return"rect";case D.ROUNDED_RECT:return"rounded";case D.CLOUD:return"cloud";case D.BANG:return"bang";case D.HEXAGON:return"hexagon";case D.DEFAULT:return I?"rounded":"defaultMindmapNode";case D.NO_BORDER:default:return"rect"}},"getShapeFromType"),f={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,labelType:"markdown",isGroup:!1,shape:d(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:t,cssStyles:[],look:l.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(i.push(f),e.children)for(let m of e.children)this.flattenNodes(m,i)}generateEdges(e,i){if(!e.children)return;let l=w();for(let a of e.children){let t="edge";a.section!==void 0&&(t+=` section-edge-${a.section}`);let d=e.level+1;t+=` edge-depth-${d}`;let f={id:`edge_${e.id}_${a.id}`,start:e.id.toString(),end:a.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:l.look,classes:t,depth:e.level,section:a.section};i.push(f),this.generateEdges(a,i)}}getData(){let e=this.getMindmap(),i=w(),a=de().layout!==void 0,t=i;if(a||(t.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:t};O.debug("getData: mindmapRoot",e,i),this.assignSections(e);let d=[],f=[];this.flattenNodes(e,d),this.generateEdges(e,f),O.debug(`getData: processed ${d.length} nodes and ${f.length} edges`);let m=new Map;for(let b of d)m.set(b.id,{shape:b.shape,width:b.width,height:b.height,padding:b.padding});return{nodes:d,edges:f,config:t,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(m),type:"mindmap",diagramId:"mindmap-"+Q()}}getLogger(){return O}},Te=h(async(e,i,l,a)=>{O.debug(`Rendering mindmap diagram
7
+ `+e);let t=a.db,d=t.getData(),f=pe(i,d.config.securityLevel);if(d.type=a.type,d.layoutAlgorithm=ue(d.config.layout,{fallback:"cose-bilkent"}),d.diagramId=i,!t.getMindmap())return;d.nodes.forEach(g=>{g.shape==="rounded"?(g.radius=15,g.taper=15,g.stroke="none",g.width=0,g.padding=15):g.shape==="circle"?g.padding=10:g.shape==="rect"?(g.width=0,g.padding=10):g.shape==="hexagon"&&(g.width=0,g.height=0)}),await ge(d,f);let{themeVariables:b}=he(),{useGradient:I,gradientStart:R,gradientStop:A}=b;if(I&&R&&A){let g=f.attr("id"),$=f.append("defs").append("linearGradient").attr("id",`${g}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");$.append("stop").attr("offset","0%").attr("stop-color",R).attr("stop-opacity",1),$.append("stop").attr("offset","100%").attr("stop-color",A).attr("stop-opacity",1)}fe(f,d.config.mindmap?.padding??M.mindmap.padding,"mindmapDiagram",d.config.mindmap?.useMaxWidth??M.mindmap.useMaxWidth)},"draw"),Oe={draw:Te},Ie=h(e=>{let{theme:i,look:l}=e,a="";for(let t=0;t<e.THEME_COLOR_LIMIT;t++)e["lineColor"+t]=e["lineColor"+t]||e["cScaleInv"+t],ae(e["lineColor"+t])?e["lineColor"+t]=ce(e["lineColor"+t],20):e["lineColor"+t]=le(e["lineColor"+t],20);for(let t=0;t<e.THEME_COLOR_LIMIT;t++){let d=""+(l==="neo"?Math.max(10-(t-1)*2,2):17-3*t);a+=`
8
+ .section-${t-1} rect, .section-${t-1} path, .section-${t-1} circle, .section-${t-1} polygon, .section-${t-1} path {
9
+ fill: ${e["cScale"+t]};
10
+ }
11
+ .section-${t-1} text {
12
+ fill: ${e["cScaleLabel"+t]};
13
+ }
14
+ .section-${t-1} span {
15
+ color: ${e["cScaleLabel"+t]};
16
+ }
17
+ .node-icon-${t-1} {
18
+ font-size: 40px;
19
+ color: ${e["cScaleLabel"+t]};
20
+ }
21
+ .section-edge-${t-1}{
22
+ stroke: ${e["cScale"+t]};
23
+ }
24
+ .edge-depth-${t-1}{
25
+ stroke-width: ${d};
26
+ }
27
+ .section-${t-1} line {
28
+ stroke: ${e["cScaleInv"+t]} ;
29
+ stroke-width: 3;
30
+ }
31
+
32
+ .disabled, .disabled circle, .disabled text {
33
+ fill: lightgray;
34
+ }
35
+ .disabled text {
36
+ fill: #efefef;
37
+ }
38
+ [data-look="neo"].mindmap-node.section-${t-1} rect, [data-look="neo"].mindmap-node.section-${t-1} path, [data-look="neo"].mindmap-node.section-${t-1} circle, [data-look="neo"].mindmap-node.section-${t-1} polygon {
39
+ fill: ${i==="redux"||i==="redux-dark"||i==="neutral"?e.mainBkg:e["cScale"+t]};
40
+ stroke: ${i==="redux"||i==="redux-dark"?e.nodeBorder:e["cScale"+t]};
41
+ stroke-width: ${e.strokeWidth??2}px;
42
+ }
43
+ [data-look="neo"].section-edge-${t-1}{
44
+ stroke: ${i?.includes("redux")||i==="neo-dark"?e.nodeBorder:e["cScale"+t]};
45
+ }
46
+ [data-look="neo"].mindmap-node.section-${t-1} text {
47
+ fill: ${i==="redux"||i==="redux-dark"?e.nodeBorder:e["cScaleLabel"+(i==="neutral"?1:t)]};
48
+ }
49
+ `}return a},"genSections"),Ce=h((e,i,l)=>{let a="";for(let t=0;t<e;t++)a+=`
50
+ [data-look="neo"].mindmap-node.section-${t-1} rect, [data-look="neo"].mindmap-node.section-${t-1} path, [data-look="neo"].mindmap-node.section-${t-1} circle, [data-look="neo"].mindmap-node.section-${t-1} polygon {
51
+ stroke: url(${i}-gradient);
52
+ fill: ${l};
53
+ }
54
+ .section-${t-1} line {
55
+ stroke-width: 0;
56
+ }`;return a},"genGradient"),we=h(e=>{let{theme:i}=e,l=e.svgId,a=e.dropShadow?e.dropShadow.replace("url(#drop-shadow)",`url(${l}-drop-shadow)`):"none";return`
57
+ .edge {
58
+ stroke-width: 3;
59
+ }
60
+ ${Ie(e)}
61
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
62
+ fill: ${e.git0};
63
+ }
64
+ .section-root text {
65
+ fill: ${e.gitBranchLabel0};
66
+ }
67
+ .section-root span {
68
+ color: ${i?.includes("redux")?e.nodeBorder:e.gitBranchLabel0};
69
+ }
70
+ .icon-container {
71
+ height:100%;
72
+ display: flex;
73
+ justify-content: center;
74
+ align-items: center;
75
+ }
76
+ .edge {
77
+ fill: none;
78
+ }
79
+ .mindmap-node-label {
80
+ dy: 1em;
81
+ alignment-baseline: middle;
82
+ text-anchor: middle;
83
+ dominant-baseline: middle;
84
+ text-align: center;
85
+ }
86
+ [data-look="neo"].mindmap-node {
87
+ filter: ${a};
88
+ }
89
+ [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
90
+ fill: ${i?.includes("redux")?e.mainBkg:e.git0};
91
+ }
92
+ [data-look="neo"].mindmap-node.section-root .text-inner-tspan {
93
+ fill: ${i?.includes("redux")?e.nodeBorder:e["cScaleLabel"+(i==="neutral"?1:0)]};
94
+ }
95
+ ${e.useGradient&&l&&e.mainBkg?Ce(e.THEME_COLOR_LIMIT,l,e.mainBkg):""}
96
+ `},"getStyles"),Re=we,ct={get db(){return new ve},renderer:Oe,parser:De,styles:Re};export{ct as diagram};
97
+ //# sourceMappingURL=mindmap-definition-YA3MSWOX-BLW6WWFS.js.map
@@ -0,0 +1,2 @@
1
+ import{a as r,b as t}from"./chunk-YYJ5VFH5.js";import"./chunk-WL4ZMLPV.js";import{d as e}from"./chunk-SOAWGUAD.js";e();export{r as PacketModule,t as createPacketServices};
2
+ //# sourceMappingURL=packet-AYTQ26CC-FIXQVEDM.js.map
@@ -0,0 +1,2 @@
1
+ import{a,b as p,c as u}from"./chunk-FU7R4QOG.js";import{a as i}from"./chunk-KVRWT2YT.js";import{b as m}from"./chunk-J7VDGOTK.js";import"./chunk-U6ILIHMR.js";import"./chunk-P44J6WNO.js";import"./chunk-7PUK2GON.js";import"./chunk-NBC6B3KN.js";import"./chunk-QBOSTM7Q.js";import"./chunk-63W35XXT.js";import"./chunk-4KJ2U3VQ.js";import{b as l}from"./chunk-4ZUFUR3U.js";import"./chunk-6YVFH4BZ.js";import"./chunk-QKU4ZFG5.js";import"./chunk-RK4EOCHJ.js";import"./chunk-YYJ5VFH5.js";import"./chunk-SE57RN36.js";import"./chunk-XJ6FSQEO.js";import"./chunk-FKTXB6RJ.js";import"./chunk-XE4RLI22.js";import"./chunk-WL4ZMLPV.js";import"./chunk-SGL7WI35.js";import{b as n}from"./chunk-CXXG5KL5.js";import{a as t}from"./chunk-ITN3D7RJ.js";import{d as s}from"./chunk-SOAWGUAD.js";s();var d=l().RailroadPeg.parser.LangiumParser,f=t(e=>{let r=e.alternatives.map(P);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),P=t(e=>{let r=e.elements.map(g);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),g=t(e=>{let r=v(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${c(r)}`:`!${c(r)}`}:r},"transformPrefix"),c=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),v=t(e=>{let r=y(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),y=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return f(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),h=t(e=>({name:e.name,definition:f(e.definition)}),"transformRule"),b=t(e=>{i(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(h(r)))},"populateDb"),E={parse:t(e=>{a.clear(),n.debug("[PEG Parser] Starting Langium parse");let r=d.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new m(r);let o=r.value;n.debug("[PEG Parser] Parsed rules:",o.rules.length),b(o),n.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},C={parser:E,db:a,renderer:u,styles:p};export{C as diagram};
2
+ //# sourceMappingURL=pegDiagram-XKGWAZYB-BYMP3YHY.js.map
@@ -0,0 +1,2 @@
1
+ import{a as r,b as i}from"./chunk-SE57RN36.js";import"./chunk-WL4ZMLPV.js";import{d as e}from"./chunk-SOAWGUAD.js";e();export{r as PieModule,i as createPieServices};
2
+ //# sourceMappingURL=pie-WAS4IAKB-R4EUNVPB.js.map
@@ -0,0 +1,40 @@
1
+ import{a as nt}from"./chunk-KVRWT2YT.js";import{a as lt}from"./chunk-J7VDGOTK.js";import"./chunk-U6ILIHMR.js";import{a as rt}from"./chunk-P44J6WNO.js";import"./chunk-7PUK2GON.js";import"./chunk-NBC6B3KN.js";import"./chunk-QBOSTM7Q.js";import"./chunk-63W35XXT.js";import"./chunk-4KJ2U3VQ.js";import"./chunk-4ZUFUR3U.js";import"./chunk-6YVFH4BZ.js";import"./chunk-QKU4ZFG5.js";import"./chunk-RK4EOCHJ.js";import"./chunk-YYJ5VFH5.js";import"./chunk-SE57RN36.js";import"./chunk-XJ6FSQEO.js";import"./chunk-FKTXB6RJ.js";import"./chunk-XE4RLI22.js";import"./chunk-WL4ZMLPV.js";import{n as it,o as ot}from"./chunk-CFMSYLIK.js";import"./chunk-UU7BHEBD.js";import{O as X,T as Z,U as j,V as q,W as J,X as K,Y as Q,Z as Y,_ as tt,k as V}from"./chunk-SGL7WI35.js";import{F as R,I as at,b as T,m as et}from"./chunk-CXXG5KL5.js";import{a as l}from"./chunk-ITN3D7RJ.js";import{d as U}from"./chunk-SOAWGUAD.js";U();var st=V.pie,L={sections:new Map,showData:!1,config:st},b=L.sections,O=L.showData,xt=structuredClone(st),wt=l(()=>structuredClone(xt),"getConfig"),Ct=l(()=>{b=new Map,O=L.showData,Z()},"clear"),$t=l(({label:t,value:a})=>{if(a<0)throw new Error(`"${t}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);b.has(t)||(b.set(t,a),T.debug(`added new section: ${t}, with value: ${a}`))},"addSection"),Dt=l(()=>b,"getSections"),yt=l(t=>{O=t},"setShowData"),Tt=l(()=>O,"getShowData"),ct={getConfig:wt,clear:Ct,setDiagramTitle:Q,getDiagramTitle:Y,setAccTitle:j,getAccTitle:q,setAccDescription:J,getAccDescription:K,addSection:$t,getSections:Dt,setShowData:yt,getShowData:Tt},bt=l((t,a)=>{nt(t,a),a.setShowData(t.showData),t.sections.map(a.addSection)},"populateDb"),At={parse:l(async t=>{let a=await lt("pie",t);T.debug(a),bt(a,ct)},"parse")},kt=l(t=>`
2
+ .pieCircle{
3
+ stroke: ${t.pieStrokeColor};
4
+ stroke-width : ${t.pieStrokeWidth};
5
+ opacity : ${t.pieOpacity};
6
+ }
7
+ .pieCircle.highlighted{
8
+ scale: 1.05;
9
+ opacity: 1;
10
+ }
11
+ .pieCircle.highlightedOnHover:hover{
12
+ transition-duration: 250ms;
13
+ scale: 1.05;
14
+ opacity: 1;
15
+ }
16
+ .pieOuterCircle{
17
+ stroke: ${t.pieOuterStrokeColor};
18
+ stroke-width: ${t.pieOuterStrokeWidth};
19
+ fill: none;
20
+ }
21
+ .pieTitleText {
22
+ text-anchor: middle;
23
+ font-size: ${t.pieTitleTextSize};
24
+ fill: ${t.pieTitleTextColor};
25
+ font-family: ${t.fontFamily};
26
+ }
27
+ .slice {
28
+ font-family: ${t.fontFamily};
29
+ fill: ${t.pieSectionTextColor};
30
+ font-size:${t.pieSectionTextSize};
31
+ // fill: white;
32
+ }
33
+ .legend text {
34
+ fill: ${t.pieLegendTextColor};
35
+ font-family: ${t.fontFamily};
36
+ font-size: ${t.pieLegendTextSize};
37
+ }
38
+ `,"getStyles"),_t=kt,zt=l(t=>{let a=[...t.values()].reduce((n,m)=>n+m,0),W=[...t.entries()].map(([n,m])=>({label:n,value:m})).filter(n=>n.value/a*100>=1);return at().value(n=>n.value).sort(null)(W)},"createPieArcs"),Et=l((t,a,W,F)=>{T.debug(`rendering pie chart
39
+ `+t);let n=F.db,m=tt(),h=ot(n.getConfig(),m.pie),H=40,i=18,c=4,S=450,x=S,A=rt(a),$=A.append("g");$.attr("transform","translate("+x/2+","+S/2+")");let{themeVariables:o}=m,[M]=it(o.pieOuterStrokeWidth);M??=2;let dt=h.legendPosition,P=h.textPosition,gt=h.donutHole>0&&h.donutHole<=.9?h.donutHole:0,f=Math.min(x,S)/2-H,pt=R().innerRadius(gt*f).outerRadius(f),ht=R().innerRadius(f*P).outerRadius(f*P),w=$.append("g");w.append("circle").attr("cx",0).attr("cy",0).attr("r",f+M/2).attr("class","pieOuterCircle");let D=n.getSections(),ft=zt(D),ut=[o.pie1,o.pie2,o.pie3,o.pie4,o.pie5,o.pie6,o.pie7,o.pie8,o.pie9,o.pie10,o.pie11,o.pie12],k=0;D.forEach(e=>{k+=e});let G=ft.filter(e=>(e.data.value/k*100).toFixed(0)!=="0"),_=et(ut).domain([...D.keys()]);w.selectAll("mySlices").data(G).enter().append("path").attr("d",pt).attr("fill",e=>_(e.data.label)).attr("class",e=>{let r="pieCircle";return h.highlightSlice==="hover"?r+=" highlightedOnHover":h.highlightSlice===e.data.label&&(r+=" highlighted"),r}),w.selectAll("mySlices").data(G).enter().append("text").text(e=>(e.data.value/k*100).toFixed(0)+"%").attr("transform",e=>"translate("+ht.centroid(e)+")").style("text-anchor","middle").attr("class","slice");let mt=$.append("text").text(n.getDiagramTitle()).attr("x",0).attr("y",-(S-50)/2).attr("class","pieTitleText"),C=[...D.entries()].map(([e,r])=>({label:e,value:r})),u=$.selectAll(".legend").data(C).enter().append("g").attr("class","legend");u.append("rect").attr("width",i).attr("height",i).style("fill",e=>_(e.label)).style("stroke",e=>_(e.label)),u.append("text").attr("x",i+c).attr("y",i-c).text(e=>n.getShowData()?`${e.label} [${e.value}]`:e.label);let v=Math.max(...u.selectAll("text").nodes().map(e=>e?.getBoundingClientRect().width??0)),y=S,z=x+H,s=i+c,E=C.length*s;switch(dt){case"center":u.attr("transform",(e,r)=>{let d=s*C.length/2,g=-v/2-(i+c),p=r*s-d;return"translate("+g+","+p+")"});break;case"top":y+=E,u.attr("transform",(e,r)=>{let d=f,g=-v/2-(i+c),p=r*s-d;return`translate(${g}, ${p})`}),w.attr("transform",()=>`translate(0, ${E+s})`);break;case"bottom":y+=E,u.attr("transform",(e,r)=>{let d=-f-s,g=-v/2-(i+c),p=r*s-d;return"translate("+g+","+p+")"});break;case"left":z+=i+c+v,u.attr("transform",(e,r)=>{let d=s*C.length/2,g=-f-(i+c),p=r*s-d;return"translate("+g+","+p+")"}),w.attr("transform",()=>`translate(${v+i+c}, 0)`);break;default:z+=i+c+v,u.attr("transform",(e,r)=>{let d=s*C.length/2,g=12*i,p=r*s-d;return"translate("+g+","+p+")"});break}let B=mt.node()?.getBoundingClientRect().width??0,vt=x/2-B/2,St=x/2+B/2,N=Math.min(0,vt),I=Math.max(z,St)-N;A.attr("viewBox",`${N} 0 ${I} ${y}`),X(A,y,I,h.useMaxWidth)},"draw"),Rt={draw:Et},It={parser:At,db:ct,renderer:Rt,styles:_t};export{It as diagram};
40
+ //# sourceMappingURL=pieDiagram-E7YTZNPT-XOJE3H3L.js.map
@@ -0,0 +1,8 @@
1
+ import{H as se,O as oe,T as le,U as he,V as ce,W as de,X as ue,Y as xe,Z as Et,_ as Tt,i as re,k as D}from"./chunk-SGL7WI35.js";import{b as ct,h as mt,o as Dt}from"./chunk-CXXG5KL5.js";import{a as s}from"./chunk-ITN3D7RJ.js";import{d as ne}from"./chunk-SOAWGUAD.js";ne();var zt=(function(){var t=s(function(Y,r,l,u){for(l=l||{},u=Y.length;u--;l[Y[u]]=r);return l},"o"),a=[1,3],p=[1,4],f=[1,5],o=[1,6],x=[1,7],_=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],h=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],c=[55,56,57],k=[2,36],m=[1,37],q=[1,36],y=[1,38],b=[1,35],T=[1,43],g=[1,41],A=[1,45],dt=[1,14],ut=[1,23],xt=[1,18],ft=[1,19],ot=[1,20],St=[1,21],lt=[1,22],i=[1,24],It=[1,25],wt=[1,26],Bt=[1,27],Rt=[1,28],Nt=[1,29],U=[1,32],Q=[1,33],F=[1,34],P=[1,39],v=[1,40],C=[1,42],L=[1,44],H=[1,63],X=[1,62],E=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],Wt=[1,66],Ut=[1,67],Qt=[1,68],Ot=[1,69],Ht=[1,70],Xt=[1,71],Mt=[1,72],Yt=[1,73],jt=[1,74],Gt=[1,75],Kt=[1,76],Zt=[1,77],B=[4,5,6,7,8,9,10,11,12,13,14,15,18],K=[1,91],Z=[1,92],J=[1,93],$=[1,100],tt=[1,94],et=[1,97],it=[1,95],at=[1,96],nt=[1,98],rt=[1,99],_t=[1,103],Jt=[10,55,56,57],N=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],At={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:s(function(r,l,u,d,S,e,ht){var n=e.length-1;switch(S){case 23:this.$=e[n];break;case 24:this.$=e[n-1]+""+e[n];break;case 26:this.$=e[n-1]+e[n];break;case 27:this.$=[e[n].trim()];break;case 28:e[n-2].push(e[n].trim()),this.$=e[n-2];break;case 29:this.$=e[n-4],d.addClass(e[n-2],e[n]);break;case 37:this.$=[];break;case 42:this.$=e[n].trim(),d.setDiagramTitle(this.$);break;case 43:this.$=e[n].trim(),d.setAccTitle(this.$);break;case 44:case 45:this.$=e[n].trim(),d.setAccDescription(this.$);break;case 46:d.addSection(e[n].substr(8)),this.$=e[n].substr(8);break;case 47:d.addPoint(e[n-3],"",e[n-1],e[n],[]);break;case 48:d.addPoint(e[n-4],e[n-3],e[n-1],e[n],[]);break;case 49:d.addPoint(e[n-4],"",e[n-2],e[n-1],e[n]);break;case 50:d.addPoint(e[n-5],e[n-4],e[n-2],e[n-1],e[n]);break;case 51:d.setXAxisLeftText(e[n-2]),d.setXAxisRightText(e[n]);break;case 52:e[n-1].text+=" \u27F6 ",d.setXAxisLeftText(e[n-1]);break;case 53:d.setXAxisLeftText(e[n]);break;case 54:d.setYAxisBottomText(e[n-2]),d.setYAxisTopText(e[n]);break;case 55:e[n-1].text+=" \u27F6 ",d.setYAxisBottomText(e[n-1]);break;case 56:d.setYAxisBottomText(e[n]);break;case 57:d.setQuadrant1Text(e[n]);break;case 58:d.setQuadrant2Text(e[n]);break;case 59:d.setQuadrant3Text(e[n]);break;case 60:d.setQuadrant4Text(e[n]);break;case 64:this.$={text:e[n],type:"text"};break;case 65:this.$={text:e[n-1].text+""+e[n],type:e[n-1].type};break;case 66:this.$={text:e[n],type:"text"};break;case 67:this.$={text:e[n],type:"markdown"};break;case 68:this.$=e[n];break;case 69:this.$=e[n-1]+""+e[n];break}},"anonymous"),table:[{18:a,26:1,27:2,28:p,55:f,56:o,57:x},{1:[3]},{18:a,26:8,27:2,28:p,55:f,56:o,57:x},{18:a,26:9,27:2,28:p,55:f,56:o,57:x},t(_,[2,33],{29:10}),t(h,[2,61]),t(h,[2,62]),t(h,[2,63]),{1:[2,30]},{1:[2,31]},t(c,k,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:m,5:q,10:y,12:b,13:T,14:g,15:A,18:dt,25:ut,35:xt,37:ft,39:ot,41:St,42:lt,48:i,50:It,51:wt,52:Bt,53:Rt,54:Nt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(_,[2,34]),{27:46,55:f,56:o,57:x},t(c,[2,37]),t(c,k,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:m,5:q,10:y,12:b,13:T,14:g,15:A,18:dt,25:ut,35:xt,37:ft,39:ot,41:St,42:lt,48:i,50:It,51:wt,52:Bt,53:Rt,54:Nt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(c,[2,39]),t(c,[2,40]),t(c,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(c,[2,45]),t(c,[2,46]),{18:[1,51]},{4:m,5:q,10:y,12:b,13:T,14:g,15:A,43:52,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:m,5:q,10:y,12:b,13:T,14:g,15:A,43:53,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:m,5:q,10:y,12:b,13:T,14:g,15:A,43:54,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:m,5:q,10:y,12:b,13:T,14:g,15:A,43:55,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:m,5:q,10:y,12:b,13:T,14:g,15:A,43:56,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:m,5:q,10:y,12:b,13:T,14:g,15:A,43:57,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:m,5:q,8:H,10:y,12:b,13:T,14:g,15:A,18:X,44:[1,58],47:[1,59],58:61,59:60,63:F,64:P,65:v,66:C,67:L},t(E,[2,64]),t(E,[2,66]),t(E,[2,67]),t(E,[2,70]),t(E,[2,71]),t(E,[2,72]),t(E,[2,73]),t(E,[2,74]),t(E,[2,75]),t(E,[2,76]),t(E,[2,77]),t(E,[2,78]),t(E,[2,79]),t(E,[2,80]),t(E,[2,81]),t(_,[2,35]),t(c,[2,38]),t(c,[2,42]),t(c,[2,43]),t(c,[2,44]),{3:65,4:Wt,5:Ut,6:Qt,7:Ot,8:Ht,9:Xt,10:Mt,11:Yt,12:jt,13:Gt,14:Kt,15:Zt,21:64},t(c,[2,53],{59:60,58:61,4:m,5:q,8:H,10:y,12:b,13:T,14:g,15:A,18:X,49:[1,78],63:F,64:P,65:v,66:C,67:L}),t(c,[2,56],{59:60,58:61,4:m,5:q,8:H,10:y,12:b,13:T,14:g,15:A,18:X,49:[1,79],63:F,64:P,65:v,66:C,67:L}),t(c,[2,57],{59:60,58:61,4:m,5:q,8:H,10:y,12:b,13:T,14:g,15:A,18:X,63:F,64:P,65:v,66:C,67:L}),t(c,[2,58],{59:60,58:61,4:m,5:q,8:H,10:y,12:b,13:T,14:g,15:A,18:X,63:F,64:P,65:v,66:C,67:L}),t(c,[2,59],{59:60,58:61,4:m,5:q,8:H,10:y,12:b,13:T,14:g,15:A,18:X,63:F,64:P,65:v,66:C,67:L}),t(c,[2,60],{59:60,58:61,4:m,5:q,8:H,10:y,12:b,13:T,14:g,15:A,18:X,63:F,64:P,65:v,66:C,67:L}),{45:[1,80]},{44:[1,81]},t(E,[2,65]),t(E,[2,82]),t(E,[2,83]),t(E,[2,84]),{3:83,4:Wt,5:Ut,6:Qt,7:Ot,8:Ht,9:Xt,10:Mt,11:Yt,12:jt,13:Gt,14:Kt,15:Zt,18:[1,82]},t(B,[2,23]),t(B,[2,1]),t(B,[2,2]),t(B,[2,3]),t(B,[2,4]),t(B,[2,5]),t(B,[2,6]),t(B,[2,7]),t(B,[2,8]),t(B,[2,9]),t(B,[2,10]),t(B,[2,11]),t(B,[2,12]),t(c,[2,52],{58:31,43:84,4:m,5:q,10:y,12:b,13:T,14:g,15:A,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(c,[2,55],{58:31,43:85,4:m,5:q,10:y,12:b,13:T,14:g,15:A,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),{46:[1,86]},{45:[1,87]},{4:K,5:Z,6:J,8:$,11:tt,13:et,16:90,17:it,18:at,19:nt,20:rt,22:89,23:88},t(B,[2,24]),t(c,[2,51],{59:60,58:61,4:m,5:q,8:H,10:y,12:b,13:T,14:g,15:A,18:X,63:F,64:P,65:v,66:C,67:L}),t(c,[2,54],{59:60,58:61,4:m,5:q,8:H,10:y,12:b,13:T,14:g,15:A,18:X,63:F,64:P,65:v,66:C,67:L}),t(c,[2,47],{22:89,16:90,23:101,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:rt}),{46:[1,102]},t(c,[2,29],{10:_t}),t(Jt,[2,27],{16:104,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:rt}),t(N,[2,25]),t(N,[2,13]),t(N,[2,14]),t(N,[2,15]),t(N,[2,16]),t(N,[2,17]),t(N,[2,18]),t(N,[2,19]),t(N,[2,20]),t(N,[2,21]),t(N,[2,22]),t(c,[2,49],{10:_t}),t(c,[2,48],{22:89,16:90,23:105,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:rt}),{4:K,5:Z,6:J,8:$,11:tt,13:et,16:90,17:it,18:at,19:nt,20:rt,22:106},t(N,[2,26]),t(c,[2,50],{10:_t}),t(Jt,[2,28],{16:104,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:rt})],defaultActions:{8:[2,30],9:[2,31]},parseError:s(function(r,l){if(l.recoverable)this.trace(r);else{var u=new Error(r);throw u.hash=l,u}},"parseError"),parse:s(function(r){var l=this,u=[0],d=[],S=[null],e=[],ht=this.table,n="",pt=0,$t=0,te=0,Le=2,ee=1,Ee=e.slice.call(arguments,1),z=Object.create(this.lexer),j={yy:{}};for(var Ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ft)&&(j.yy[Ft]=this.yy[Ft]);z.setInput(r,j.yy),j.yy.lexer=z,j.yy.parser=this,typeof z.yylloc>"u"&&(z.yylloc={});var Pt=z.yylloc;e.push(Pt);var De=z.options&&z.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ze(R){u.length=u.length-2*R,S.length=S.length-R,e.length=e.length-R}s(ze,"popStack");function ie(){var R;return R=d.pop()||z.lex()||ee,typeof R!="number"&&(R instanceof Array&&(d=R,R=d.pop()),R=l.symbols_[R]||R),R}s(ie,"lex");for(var I,vt,G,W,We,Ct,st={},yt,M,ae,bt;;){if(G=u[u.length-1],this.defaultActions[G]?W=this.defaultActions[G]:((I===null||typeof I>"u")&&(I=ie()),W=ht[G]&&ht[G][I]),typeof W>"u"||!W.length||!W[0]){var Lt="";bt=[];for(yt in ht[G])this.terminals_[yt]&&yt>Le&&bt.push("'"+this.terminals_[yt]+"'");z.showPosition?Lt="Parse error on line "+(pt+1)+`:
2
+ `+z.showPosition()+`
3
+ Expecting `+bt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Lt="Parse error on line "+(pt+1)+": Unexpected "+(I==ee?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Lt,{text:z.match,token:this.terminals_[I]||I,line:z.yylineno,loc:Pt,expected:bt})}if(W[0]instanceof Array&&W.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+I);switch(W[0]){case 1:u.push(I),S.push(z.yytext),e.push(z.yylloc),u.push(W[1]),I=null,vt?(I=vt,vt=null):($t=z.yyleng,n=z.yytext,pt=z.yylineno,Pt=z.yylloc,te>0&&te--);break;case 2:if(M=this.productions_[W[1]][1],st.$=S[S.length-M],st._$={first_line:e[e.length-(M||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(M||1)].first_column,last_column:e[e.length-1].last_column},De&&(st._$.range=[e[e.length-(M||1)].range[0],e[e.length-1].range[1]]),Ct=this.performAction.apply(st,[n,$t,pt,j.yy,W[1],S,e].concat(Ee)),typeof Ct<"u")return Ct;M&&(u=u.slice(0,-1*M*2),S=S.slice(0,-1*M),e=e.slice(0,-1*M)),u.push(this.productions_[W[1]][0]),S.push(st.$),e.push(st._$),ae=ht[u[u.length-2]][u[u.length-1]],u.push(ae);break;case 3:return!0}}return!0},"parse")},Ce=(function(){var Y={EOF:1,parseError:s(function(l,u){if(this.yy.parser)this.yy.parser.parseError(l,u);else throw new Error(l)},"parseError"),setInput:s(function(r,l){return this.yy=l||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:s(function(r){var l=r.length,u=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===d.length?this.yylloc.first_column:0)+d[d.length-u.length].length-u[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
5
+ `+l+"^"},"showPosition"),test_match:s(function(r,l){var u,d,S;if(this.options.backtrack_lexer&&(S={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(S.yylloc.range=this.yylloc.range.slice(0))),d=r[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],u=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u)return u;if(this._backtrack){for(var e in S)this[e]=S[e];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,l,u,d;this._more||(this.yytext="",this.match="");for(var S=this._currentRules(),e=0;e<S.length;e++)if(u=this._input.match(this.rules[S[e]]),u&&(!l||u[0].length>l[0].length)){if(l=u,d=e,this.options.backtrack_lexer){if(r=this.test_match(u,S[e]),r!==!1)return r;if(this._backtrack){l=!1;continue}else return!1}else if(!this.options.flex)break}return l?(r=this.test_match(l,S[d]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var l=this.next();return l||this.lex()},"lex"),begin:s(function(l){this.conditionStack.push(l)},"begin"),popState:s(function(){var l=this.conditionStack.length-1;return l>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:s(function(l){return l=this.conditionStack.length-1-Math.abs(l||0),l>=0?this.conditionStack[l]:"INITIAL"},"topState"),pushState:s(function(l){this.begin(l)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(l,u,d,S){var e=S;switch(d){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;break;case 5:return this.popState(),"title_value";break;case 6:return this.begin("acc_title"),37;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),39;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;break;case 29:return this.begin("point_start"),44;break;case 30:return this.begin("point_x"),45;break;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;break;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return Y})();At.lexer=Ce;function gt(){this.yy={}}return s(gt,"Parser"),gt.prototype=At,At.Parser=gt,new gt})();zt.parser=zt;var Ve=zt,w=re(),Ie=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{s(this,"QuadrantBuilder")}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:D.quadrantChart?.chartWidth||500,chartWidth:D.quadrantChart?.chartHeight||500,titlePadding:D.quadrantChart?.titlePadding||10,titleFontSize:D.quadrantChart?.titleFontSize||20,quadrantPadding:D.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:D.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:D.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:D.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:D.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:D.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:D.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:D.quadrantChart?.pointTextPadding||5,pointLabelFontSize:D.quadrantChart?.pointLabelFontSize||12,pointRadius:D.quadrantChart?.pointRadius||5,xAxisPosition:D.quadrantChart?.xAxisPosition||"top",yAxisPosition:D.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:D.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:D.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:w.quadrant1Fill,quadrant2Fill:w.quadrant2Fill,quadrant3Fill:w.quadrant3Fill,quadrant4Fill:w.quadrant4Fill,quadrant1TextFill:w.quadrant1TextFill,quadrant2TextFill:w.quadrant2TextFill,quadrant3TextFill:w.quadrant3TextFill,quadrant4TextFill:w.quadrant4TextFill,quadrantPointFill:w.quadrantPointFill,quadrantPointTextFill:w.quadrantPointTextFill,quadrantXAxisTextFill:w.quadrantXAxisTextFill,quadrantYAxisTextFill:w.quadrantYAxisTextFill,quadrantTitleFill:w.quadrantTitleFill,quadrantInternalBorderStrokeFill:w.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:w.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,ct.info("clear called")}setData(t){this.data={...this.data,...t}}addPoints(t){this.data.points=[...t,...this.data.points]}addClass(t,a){this.classes.set(t,a)}setConfig(t){ct.trace("setConfig called with: ",t),this.config={...this.config,...t}}setThemeConfig(t){ct.trace("setThemeConfig called with: ",t),this.themeConfig={...this.themeConfig,...t}}calculateSpace(t,a,p,f){let o=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,x={top:t==="top"&&a?o:0,bottom:t==="bottom"&&a?o:0},_=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,h={left:this.config.yAxisPosition==="left"&&p?_:0,right:this.config.yAxisPosition==="right"&&p?_:0},c=this.config.titleFontSize+this.config.titlePadding*2,k={top:f?c:0},m=this.config.quadrantPadding+h.left,q=this.config.quadrantPadding+x.top+k.top,y=this.config.chartWidth-this.config.quadrantPadding*2-h.left-h.right,b=this.config.chartHeight-this.config.quadrantPadding*2-x.top-x.bottom-k.top,T=y/2,g=b/2;return{xAxisSpace:x,yAxisSpace:h,titleSpace:k,quadrantSpace:{quadrantLeft:m,quadrantTop:q,quadrantWidth:y,quadrantHalfWidth:T,quadrantHeight:b,quadrantHalfHeight:g}}}getAxisLabels(t,a,p,f){let{quadrantSpace:o,titleSpace:x}=f,{quadrantHalfHeight:_,quadrantHeight:h,quadrantLeft:c,quadrantHalfWidth:k,quadrantTop:m,quadrantWidth:q}=o,y=!!this.data.xAxisRightText,b=!!this.data.yAxisTopText,T=[];return this.data.xAxisLeftText&&a&&T.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+(y?k/2:0),y:t==="top"?this.config.xAxisLabelPadding+x.top:this.config.xAxisLabelPadding+m+h+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:y?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&a&&T.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+k+(y?k/2:0),y:t==="top"?this.config.xAxisLabelPadding+x.top:this.config.xAxisLabelPadding+m+h+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:y?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&p&&T.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+q+this.config.quadrantPadding,y:m+h-(b?_/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:b?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&p&&T.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+q+this.config.quadrantPadding,y:m+_-(b?_/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:b?"center":"left",horizontalPos:"top",rotation:-90}),T}getQuadrants(t){let{quadrantSpace:a}=t,{quadrantHalfHeight:p,quadrantLeft:f,quadrantHalfWidth:o,quadrantTop:x}=a,_=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f+o,y:x,width:o,height:p,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f,y:x,width:o,height:p,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f,y:x+p,width:o,height:p,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f+o,y:x+p,width:o,height:p,fill:this.themeConfig.quadrant4Fill}];for(let h of _)h.text.x=h.x+h.width/2,this.data.points.length===0?(h.text.y=h.y+h.height/2,h.text.horizontalPos="middle"):(h.text.y=h.y+this.config.quadrantTextTopPadding,h.text.horizontalPos="top");return _}getQuadrantPoints(t){let{quadrantSpace:a}=t,{quadrantHeight:p,quadrantLeft:f,quadrantTop:o,quadrantWidth:x}=a,_=Dt().domain([0,1]).range([f,x+f]),h=Dt().domain([0,1]).range([p+o,o]);return this.data.points.map(k=>{let m=this.classes.get(k.className);return m&&(k={...m,...k}),{x:_(k.x),y:h(k.y),fill:k.color??this.themeConfig.quadrantPointFill,radius:k.radius??this.config.pointRadius,text:{text:k.text,fill:this.themeConfig.quadrantPointTextFill,x:_(k.x),y:h(k.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:k.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:k.strokeWidth??"0px"}})}getBorders(t){let a=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:p}=t,{quadrantHalfHeight:f,quadrantHeight:o,quadrantLeft:x,quadrantHalfWidth:_,quadrantTop:h,quadrantWidth:c}=p;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:x-a,y1:h,x2:x+c+a,y2:h},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:x+c,y1:h+a,x2:x+c,y2:h+o-a},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:x-a,y1:h+o,x2:x+c+a,y2:h+o},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:x,y1:h+a,x2:x,y2:h+o-a},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:x+_,y1:h+a,x2:x+_,y2:h+o-a},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:x+a,y1:h+f,x2:x+c-a,y2:h+f}]}getTitle(t){if(t)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){let t=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),a=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),p=this.config.showTitle&&!!this.data.titleText,f=this.data.points.length>0?"bottom":this.config.xAxisPosition,o=this.calculateSpace(f,t,a,p);return{points:this.getQuadrantPoints(o),quadrants:this.getQuadrants(o),axisLabels:this.getAxisLabels(f,t,a,o),borderLines:this.getBorders(o),title:this.getTitle(p)}}},qt=class extends Error{static{s(this,"InvalidStyleError")}constructor(t,a,p){super(`value for ${t} ${a} is invalid, please use a valid ${p}`),this.name="InvalidStyleError"}};function Vt(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}s(Vt,"validateHexCode");function fe(t){return!/^\d+$/.test(t)}s(fe,"validateNumber");function ge(t){return!/^\d+px$/.test(t)}s(ge,"validateSizeInPixels");function O(t){return se(t.trim(),Tt())}s(O,"textSanitizer");var V=new Ie;function pe(t){V.setData({quadrant1Text:O(t.text)})}s(pe,"setQuadrant1Text");function ye(t){V.setData({quadrant2Text:O(t.text)})}s(ye,"setQuadrant2Text");function be(t){V.setData({quadrant3Text:O(t.text)})}s(be,"setQuadrant3Text");function Te(t){V.setData({quadrant4Text:O(t.text)})}s(Te,"setQuadrant4Text");function me(t){V.setData({xAxisLeftText:O(t.text)})}s(me,"setXAxisLeftText");function qe(t){V.setData({xAxisRightText:O(t.text)})}s(qe,"setXAxisRightText");function ke(t){V.setData({yAxisTopText:O(t.text)})}s(ke,"setYAxisTopText");function Se(t){V.setData({yAxisBottomText:O(t.text)})}s(Se,"setYAxisBottomText");function kt(t){let a={};for(let p of t){let[f,o]=p.trim().split(/\s*:\s*/);if(f==="radius"){if(fe(o))throw new qt(f,o,"number");a.radius=parseInt(o)}else if(f==="color"){if(Vt(o))throw new qt(f,o,"hex code");a.color=o}else if(f==="stroke-color"){if(Vt(o))throw new qt(f,o,"hex code");a.strokeColor=o}else if(f==="stroke-width"){if(ge(o))throw new qt(f,o,"number of pixels (eg. 10px)");a.strokeWidth=o}else throw new Error(`style named ${f} is not supported.`)}return a}s(kt,"parseStyles");function _e(t,a,p,f,o){let x=kt(o);V.addPoints([{x:p,y:f,text:O(t.text),className:a,...x}])}s(_e,"addPoint");function Ae(t,a){V.addClass(t,kt(a))}s(Ae,"addClass");function Fe(t){V.setConfig({chartWidth:t})}s(Fe,"setWidth");function Pe(t){V.setConfig({chartHeight:t})}s(Pe,"setHeight");function ve(){let t=Tt(),{themeVariables:a,quadrantChart:p}=t;return p&&V.setConfig(p),V.setThemeConfig({quadrant1Fill:a.quadrant1Fill,quadrant2Fill:a.quadrant2Fill,quadrant3Fill:a.quadrant3Fill,quadrant4Fill:a.quadrant4Fill,quadrant1TextFill:a.quadrant1TextFill,quadrant2TextFill:a.quadrant2TextFill,quadrant3TextFill:a.quadrant3TextFill,quadrant4TextFill:a.quadrant4TextFill,quadrantPointFill:a.quadrantPointFill,quadrantPointTextFill:a.quadrantPointTextFill,quadrantXAxisTextFill:a.quadrantXAxisTextFill,quadrantYAxisTextFill:a.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:a.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:a.quadrantInternalBorderStrokeFill,quadrantTitleFill:a.quadrantTitleFill}),V.setData({titleText:Et()}),V.build()}s(ve,"getQuadrantData");var we=s(function(){V.clear(),le()},"clear"),Be={setWidth:Fe,setHeight:Pe,setQuadrant1Text:pe,setQuadrant2Text:ye,setQuadrant3Text:be,setQuadrant4Text:Te,setXAxisLeftText:me,setXAxisRightText:qe,setYAxisTopText:ke,setYAxisBottomText:Se,parseStyles:kt,addPoint:_e,addClass:Ae,getQuadrantData:ve,clear:we,setAccTitle:he,getAccTitle:ce,setDiagramTitle:xe,getDiagramTitle:Et,getAccDescription:ue,setAccDescription:de},Re=s((t,a,p,f)=>{function o(i){return i==="top"?"hanging":"middle"}s(o,"getDominantBaseLine");function x(i){return i==="left"?"start":"middle"}s(x,"getTextAnchor");function _(i){return`translate(${i.x}, ${i.y}) rotate(${i.rotation||0})`}s(_,"getTransformation");let h=Tt();ct.debug(`Rendering quadrant chart
7
+ `+t);let c=h.securityLevel,k;c==="sandbox"&&(k=mt("#i"+a));let q=(c==="sandbox"?mt(k.nodes()[0].contentDocument.body):mt("body")).select(`[id="${a}"]`),y=q.append("g").attr("class","main"),b=h.quadrantChart?.chartWidth??500,T=h.quadrantChart?.chartHeight??500;oe(q,T,b,h.quadrantChart?.useMaxWidth??!0),q.attr("viewBox","0 0 "+b+" "+T),f.db.setHeight(T),f.db.setWidth(b);let g=f.db.getQuadrantData(),A=y.append("g").attr("class","quadrants"),dt=y.append("g").attr("class","border"),ut=y.append("g").attr("class","data-points"),xt=y.append("g").attr("class","labels"),ft=y.append("g").attr("class","title");g.title&&ft.append("text").attr("x",0).attr("y",0).attr("fill",g.title.fill).attr("font-size",g.title.fontSize).attr("dominant-baseline",o(g.title.horizontalPos)).attr("text-anchor",x(g.title.verticalPos)).attr("transform",_(g.title)).text(g.title.text),g.borderLines&&dt.selectAll("line").data(g.borderLines).enter().append("line").attr("x1",i=>i.x1).attr("y1",i=>i.y1).attr("x2",i=>i.x2).attr("y2",i=>i.y2).style("stroke",i=>i.strokeFill).style("stroke-width",i=>i.strokeWidth);let ot=A.selectAll("g.quadrant").data(g.quadrants).enter().append("g").attr("class","quadrant");ot.append("rect").attr("x",i=>i.x).attr("y",i=>i.y).attr("width",i=>i.width).attr("height",i=>i.height).attr("fill",i=>i.fill),ot.append("text").attr("x",0).attr("y",0).attr("fill",i=>i.text.fill).attr("font-size",i=>i.text.fontSize).attr("dominant-baseline",i=>o(i.text.horizontalPos)).attr("text-anchor",i=>x(i.text.verticalPos)).attr("transform",i=>_(i.text)).text(i=>i.text.text),xt.selectAll("g.label").data(g.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(i=>i.text).attr("fill",i=>i.fill).attr("font-size",i=>i.fontSize).attr("dominant-baseline",i=>o(i.horizontalPos)).attr("text-anchor",i=>x(i.verticalPos)).attr("transform",i=>_(i));let lt=ut.selectAll("g.data-point").data(g.points).enter().append("g").attr("class","data-point");lt.append("circle").attr("cx",i=>i.x).attr("cy",i=>i.y).attr("r",i=>i.radius).attr("fill",i=>i.fill).attr("stroke",i=>i.strokeColor).attr("stroke-width",i=>i.strokeWidth),lt.append("text").attr("x",0).attr("y",0).text(i=>i.text.text).attr("fill",i=>i.text.fill).attr("font-size",i=>i.text.fontSize).attr("dominant-baseline",i=>o(i.text.horizontalPos)).attr("text-anchor",i=>x(i.text.verticalPos)).attr("transform",i=>_(i.text))},"draw"),Ne={draw:Re},Ye={parser:Ve,db:Be,renderer:Ne,styles:s(()=>"","styles")};export{Ye as diagram};
8
+ //# sourceMappingURL=quadrantDiagram-AXDQQJYC-23VSADTC.js.map
@@ -0,0 +1,2 @@
1
+ import{a as e,b as a}from"./chunk-NBC6B3KN.js";import"./chunk-WL4ZMLPV.js";import{d as r}from"./chunk-SOAWGUAD.js";r();export{e as RadarModule,a as createRadarServices};
2
+ //# sourceMappingURL=radar-RG4KPBEZ-O6Y2TENX.js.map
@@ -0,0 +1,2 @@
1
+ import{a as o,b as e}from"./chunk-QBOSTM7Q.js";import"./chunk-WL4ZMLPV.js";import{d as r}from"./chunk-SOAWGUAD.js";r();export{o as RailroadModule,e as createRailroadServices};
2
+ //# sourceMappingURL=railroad-74A4TZTK-PHWZ7KVH.js.map
@@ -0,0 +1,2 @@
1
+ import{a as o,b as e}from"./chunk-4KJ2U3VQ.js";import"./chunk-WL4ZMLPV.js";import{d as r}from"./chunk-SOAWGUAD.js";r();export{o as RailroadAbnfModule,e as createRailroadAbnfServices};
2
+ //# sourceMappingURL=railroad-abnf-HS5TGJTU-DZ4OSJAN.js.map
@@ -0,0 +1,2 @@
1
+ import{a as o,b as e}from"./chunk-63W35XXT.js";import"./chunk-WL4ZMLPV.js";import{d as r}from"./chunk-SOAWGUAD.js";r();export{o as RailroadEbnfModule,e as createRailroadEbnfServices};
2
+ //# sourceMappingURL=railroad-ebnf-LZEXJU2U-GYBLRQUL.js.map
@@ -0,0 +1,2 @@
1
+ import{a as r,b as o}from"./chunk-4ZUFUR3U.js";import"./chunk-WL4ZMLPV.js";import{d as e}from"./chunk-SOAWGUAD.js";e();export{r as RailroadPegModule,o as createRailroadPegServices};
2
+ //# sourceMappingURL=railroad-peg-WCYAUIDC-ZK4ZOBSX.js.map
@@ -0,0 +1,2 @@
1
+ import{a,b as u,c as d}from"./chunk-FU7R4QOG.js";import{a as s}from"./chunk-KVRWT2YT.js";import{b as p}from"./chunk-J7VDGOTK.js";import"./chunk-U6ILIHMR.js";import"./chunk-P44J6WNO.js";import"./chunk-7PUK2GON.js";import"./chunk-NBC6B3KN.js";import{b as m}from"./chunk-QBOSTM7Q.js";import"./chunk-63W35XXT.js";import"./chunk-4KJ2U3VQ.js";import"./chunk-4ZUFUR3U.js";import"./chunk-6YVFH4BZ.js";import"./chunk-QKU4ZFG5.js";import"./chunk-RK4EOCHJ.js";import"./chunk-YYJ5VFH5.js";import"./chunk-SE57RN36.js";import"./chunk-XJ6FSQEO.js";import"./chunk-FKTXB6RJ.js";import"./chunk-XE4RLI22.js";import"./chunk-WL4ZMLPV.js";import"./chunk-SGL7WI35.js";import{b as i}from"./chunk-CXXG5KL5.js";import{a as n}from"./chunk-ITN3D7RJ.js";import{d as l}from"./chunk-SOAWGUAD.js";l();var c=m().Railroad.parser.LangiumParser,t=n(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{let r=e.elements.map(t);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{let r=e.alternatives.map(t);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:t(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:t(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:t(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),f=n(e=>({name:e.name,definition:t(e.definition)}),"transformRule"),g=n(e=>{s(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(f(r)))},"populateDb"),y={parse:n(e=>{a.clear(),i.debug("[Railroad Parser] Starting Langium parse");let r=c.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new p(r);let o=r.value;i.debug("[Railroad Parser] Parsed rules:",o.rules.length),g(o),i.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:a}},R={parser:y,db:a,renderer:d,styles:u},D=R;export{D as default,R as diagram};
2
+ //# sourceMappingURL=railroadDiagram-O6MQD6OU-Z5IEAZJK.js.map
@@ -0,0 +1,85 @@
1
+ import{a as it}from"./chunk-NLHJT4GD.js";import{b as tt,c as st}from"./chunk-GEV6X2TZ.js";import{a as rt}from"./chunk-IKC3ZQV7.js";import"./chunk-ZXMMITLE.js";import"./chunk-3EZ2OKHV.js";import"./chunk-XOZZFIHV.js";import"./chunk-NOVL2262.js";import"./chunk-USZ3ZJYA.js";import"./chunk-J6N7AUC2.js";import"./chunk-NQ2XP5EN.js";import"./chunk-GPW7TXQS.js";import{p as et}from"./chunk-CFMSYLIK.js";import"./chunk-UU7BHEBD.js";import{T as We,U as je,V as Ge,W as ze,X as Xe,Y as Je,Z as Ze,_ as ye,u as Ce}from"./chunk-SGL7WI35.js";import{b as ke}from"./chunk-CXXG5KL5.js";import{a as u,b as Ke}from"./chunk-ITN3D7RJ.js";import{d as He}from"./chunk-SOAWGUAD.js";He();var Ae=(function(){var e=u(function($,r,n,l){for(n=n||{},l=$.length;l--;n[$[l]]=r);return n},"o"),f=[1,3],h=[1,4],o=[1,5],i=[1,6],c=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],k=[1,22],E=[2,7],R=[1,26],_=[1,27],I=[1,28],q=[1,29],C=[1,33],A=[1,34],V=[1,35],v=[1,36],L=[1,37],x=[1,38],O=[1,24],w=[1,31],D=[1,32],M=[1,30],p=[1,39],b=[1,40],d=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],P=[1,61],X=[89,90],Ve=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],de=[27,29],ve=[1,70],Le=[1,71],xe=[1,72],Oe=[1,73],we=[1,74],De=[1,75],Me=[1,76],Z=[1,83],U=[1,80],ee=[1,84],te=[1,85],se=[1,86],ie=[1,87],re=[1,88],ne=[1,89],ae=[1,90],le=[1,91],ce=[1,92],Ee=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Fe=[1,101],$e=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],oe=[1,116],he=[1,117],ue=[1,114],fe=[1,115],_e={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:u(function(r,n,l,s,m,t,me){var a=t.length-1;switch(m){case 4:this.$=t[a].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[a].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[a-3],t[a-4]);break;case 22:s.addRequirement(t[a-5],t[a-6]),s.setClass([t[a-5]],t[a-3]);break;case 23:s.setNewReqId(t[a-2]);break;case 24:s.setNewReqText(t[a-2]);break;case 25:s.setNewReqRisk(t[a-2]);break;case 26:s.setNewReqVerifyMethod(t[a-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[a-3]);break;case 43:s.addElement(t[a-5]),s.setClass([t[a-5]],t[a-3]);break;case 44:s.setNewElementType(t[a-2]);break;case 45:s.setNewElementDocRef(t[a-2]);break;case 48:s.addRelationship(t[a-2],t[a],t[a-4]);break;case 49:s.addRelationship(t[a-2],t[a-4],t[a]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[a-2],s.defineClass(t[a-1],t[a]);break;case 58:s.setClass(t[a-1],t[a]);break;case 59:s.setClass([t[a-2]],t[a]);break;case 60:case 62:this.$=[t[a]];break;case 61:case 63:this.$=t[a-2].concat([t[a]]);break;case 64:this.$=t[a-2],s.setCssStyle(t[a-1],t[a]);break;case 65:this.$=[t[a]];break;case 66:t[a-2].push(t[a]),this.$=t[a-2];break;case 68:this.$=t[a-1]+t[a];break}},"anonymous"),table:[{3:1,4:2,6:f,9:h,11:o,13:i},{1:[3]},{3:8,4:2,5:[1,7],6:f,9:h,11:o,13:i},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(c,[2,6]),{3:12,4:2,6:f,9:h,11:o,13:i},{1:[2,2]},{4:17,5:k,7:13,8:E,9:h,11:o,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:R,22:_,23:I,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:p,90:b},e(c,[2,4]),e(c,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:k,7:42,8:E,9:h,11:o,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:R,22:_,23:I,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:p,90:b},{4:17,5:k,7:43,8:E,9:h,11:o,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:R,22:_,23:I,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:p,90:b},{4:17,5:k,7:44,8:E,9:h,11:o,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:R,22:_,23:I,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:p,90:b},{4:17,5:k,7:45,8:E,9:h,11:o,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:R,22:_,23:I,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:p,90:b},{4:17,5:k,7:46,8:E,9:h,11:o,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:R,22:_,23:I,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:p,90:b},{4:17,5:k,7:47,8:E,9:h,11:o,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:R,22:_,23:I,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:p,90:b},{4:17,5:k,7:48,8:E,9:h,11:o,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:R,22:_,23:I,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:p,90:b},{4:17,5:k,7:49,8:E,9:h,11:o,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:R,22:_,23:I,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:p,90:b},{4:17,5:k,7:50,8:E,9:h,11:o,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:R,22:_,23:I,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:p,90:b},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(d,[2,17]),e(d,[2,18]),e(d,[2,19]),e(d,[2,20]),{30:60,33:62,75:P,89:p,90:b},{30:63,33:62,75:P,89:p,90:b},{30:64,33:62,75:P,89:p,90:b},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ve,[2,81]),e(Ve,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(de,[2,79]),e(de,[2,80]),{27:[1,67],29:[1,68]},e(de,[2,85]),e(de,[2,86]),{62:69,65:ve,66:Le,67:xe,68:Oe,69:we,70:De,71:Me},{62:77,65:ve,66:Le,67:xe,68:Oe,69:we,70:De,71:Me},{30:78,33:62,75:P,89:p,90:b},{73:79,75:Z,76:U,78:81,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce},e(Ee,[2,60]),e(Ee,[2,62]),{73:93,75:Z,76:U,78:81,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce},{30:94,33:62,75:P,76:U,89:p,90:b},{5:[1,95]},{30:96,33:62,75:P,89:p,90:b},{5:[1,97]},{30:98,33:62,75:P,89:p,90:b},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(d,[2,59],{76:U}),e(d,[2,64],{76:Fe}),{33:103,75:[1,102],89:p,90:b},e($e,[2,65],{79:104,75:Z,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce}),e(T,[2,67]),e(T,[2,69]),e(T,[2,70]),e(T,[2,71]),e(T,[2,72]),e(T,[2,73]),e(T,[2,74]),e(T,[2,75]),e(T,[2,76]),e(T,[2,77]),e(T,[2,78]),e(d,[2,57],{76:Fe}),e(d,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:oe,40:he,56:113,57:ue,59:fe},{27:[1,118],76:U},{33:119,89:p,90:b},{33:120,89:p,90:b},{75:Z,78:121,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce},e(Ee,[2,61]),e(Ee,[2,63]),e(T,[2,68]),e(d,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(d,[2,28]),{5:[1,127]},e(d,[2,42]),{32:[1,128]},{32:[1,129]},{5:oe,40:he,56:130,57:ue,59:fe},e(d,[2,47]),{5:[1,131]},e(d,[2,48]),e(d,[2,49]),e($e,[2,66],{79:104,75:Z,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce}),{33:132,89:p,90:b},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(d,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(d,[2,46]),{5:oe,40:he,56:152,57:ue,59:fe},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(d,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(d,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:oe,40:he,56:163,57:ue,59:fe},{5:oe,40:he,56:164,57:ue,59:fe},e(d,[2,23]),e(d,[2,24]),e(d,[2,25]),e(d,[2,26]),e(d,[2,44]),e(d,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:u(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:u(function(r){var n=this,l=[0],s=[],m=[null],t=[],me=this.table,a="",be=0,Pe=0,Ue=0,lt=2,Ye=1,ct=t.slice.call(arguments,1),g=Object.create(this.lexer),G={yy:{}};for(var Se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Se)&&(G.yy[Se]=this.yy[Se]);g.setInput(r,G.yy),G.yy.lexer=g,G.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var Ie=g.yylloc;t.push(Ie);var ot=g.options&&g.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ht(S){l.length=l.length-2*S,m.length=m.length-S,t.length=t.length-S}u(ht,"popStack");function Be(){var S;return S=s.pop()||g.lex()||Ye,typeof S!="number"&&(S instanceof Array&&(s=S,S=s.pop()),S=n.symbols_[S]||S),S}u(Be,"lex");for(var y,Te,z,N,bt,Ne,J={},Re,F,Qe,ge;;){if(z=l[l.length-1],this.defaultActions[z]?N=this.defaultActions[z]:((y===null||typeof y>"u")&&(y=Be()),N=me[z]&&me[z][y]),typeof N>"u"||!N.length||!N[0]){var qe="";ge=[];for(Re in me[z])this.terminals_[Re]&&Re>lt&&ge.push("'"+this.terminals_[Re]+"'");g.showPosition?qe="Parse error on line "+(be+1)+`:
2
+ `+g.showPosition()+`
3
+ Expecting `+ge.join(", ")+", got '"+(this.terminals_[y]||y)+"'":qe="Parse error on line "+(be+1)+": Unexpected "+(y==Ye?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(qe,{text:g.match,token:this.terminals_[y]||y,line:g.yylineno,loc:Ie,expected:ge})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+y);switch(N[0]){case 1:l.push(y),m.push(g.yytext),t.push(g.yylloc),l.push(N[1]),y=null,Te?(y=Te,Te=null):(Pe=g.yyleng,a=g.yytext,be=g.yylineno,Ie=g.yylloc,Ue>0&&Ue--);break;case 2:if(F=this.productions_[N[1]][1],J.$=m[m.length-F],J._$={first_line:t[t.length-(F||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(F||1)].first_column,last_column:t[t.length-1].last_column},ot&&(J._$.range=[t[t.length-(F||1)].range[0],t[t.length-1].range[1]]),Ne=this.performAction.apply(J,[a,Pe,be,G.yy,N[1],m,t].concat(ct)),typeof Ne<"u")return Ne;F&&(l=l.slice(0,-1*F*2),m=m.slice(0,-1*F),t=t.slice(0,-1*F)),l.push(this.productions_[N[1]][0]),m.push(J.$),t.push(J._$),Qe=me[l[l.length-2]][l[l.length-1]],l.push(Qe);break;case 3:return!0}}return!0},"parse")},at=(function(){var $={EOF:1,parseError:u(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:u(function(r,n){return this.yy=n||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:u(function(r){var n=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var m=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===s.length?this.yylloc.first_column:0)+s[s.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u(function(r){this.unput(this.match.slice(r))},"less"),pastInput:u(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
5
+ `+n+"^"},"showPosition"),test_match:u(function(r,n){var l,s,m;if(this.options.backtrack_lexer&&(m={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(m.yylloc.range=this.yylloc.range.slice(0))),s=r[0].match(/(?:\r\n?|\n).*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],l=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var t in m)this[t]=m[t];return!1}return!1},"test_match"),next:u(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,n,l,s;this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),t=0;t<m.length;t++)if(l=this._input.match(this.rules[m[t]]),l&&(!n||l[0].length>n[0].length)){if(n=l,s=t,this.options.backtrack_lexer){if(r=this.test_match(l,m[t]),r!==!1)return r;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(r=this.test_match(n,m[s]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:u(function(){var n=this.next();return n||this.lex()},"lex"),begin:u(function(n){this.conditionStack.push(n)},"begin"),popState:u(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:u(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:u(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:u(function(n){this.begin(n)},"pushState"),stateStackSize:u(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:u(function(n,l,s,m){var t=m;switch(s){case 0:return"title";case 1:return this.begin("acc_title"),9;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),11;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;break;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin("string");break;case 58:this.popState();break;case 59:return this.begin("style"),72;break;case 60:return this.begin("style"),74;break;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin("string");break;case 65:this.popState();break;case 66:return"qString";case 67:return l.yytext=l.yytext.trim(),89;break;case 68:return 75;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}};return $})();_e.lexer=at;function pe(){this.yy={}}return u(pe,"Parser"),pe.prototype=_e,_e.Parser=pe,new pe})();Ae.parser=Ae;var ut=Ae,ft=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=je,this.getAccTitle=Ge,this.setAccDescription=ze,this.getAccDescription=Xe,this.setDiagramTitle=Je,this.getDiagramTitle=Ze,this.getConfig=u(()=>ye().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{u(this,"RequirementDB")}getDirection(){return this.direction}setDirection(e){this.direction=e}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(e,f){return this.requirements.has(e)||this.requirements.set(e,{name:e,type:f,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(e)}getRequirements(){return this.requirements}setNewReqId(e){this.latestRequirement!==void 0&&(this.latestRequirement.requirementId=e)}setNewReqText(e){this.latestRequirement!==void 0&&(this.latestRequirement.text=e)}setNewReqRisk(e){this.latestRequirement!==void 0&&(this.latestRequirement.risk=e)}setNewReqVerifyMethod(e){this.latestRequirement!==void 0&&(this.latestRequirement.verifyMethod=e)}addElement(e){return this.elements.has(e)||(this.elements.set(e,{name:e,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),ke.info("Added new element: ",e)),this.resetLatestElement(),this.elements.get(e)}getElements(){return this.elements}setNewElementType(e){this.latestElement!==void 0&&(this.latestElement.type=e)}setNewElementDocRef(e){this.latestElement!==void 0&&(this.latestElement.docRef=e)}addRelationship(e,f,h){this.relations.push({type:e,src:f,dst:h})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,We()}setCssStyle(e,f){for(let h of e){let o=this.requirements.get(h)??this.elements.get(h);if(!f||!o)return;for(let i of f)i.includes(",")?o.cssStyles.push(...i.split(",")):o.cssStyles.push(i)}}setClass(e,f){for(let h of e){let o=this.requirements.get(h)??this.elements.get(h);if(o)for(let i of f){o.classes.push(i);let c=this.classes.get(i)?.styles;c&&o.cssStyles.push(...c)}}}defineClass(e,f){for(let h of e){let o=this.classes.get(h);o===void 0&&(o={id:h,styles:[],textStyles:[]},this.classes.set(h,o)),f&&f.forEach(function(i){if(/color/.exec(i)){let c=i.replace("fill","bgFill");o.textStyles.push(c)}o.styles.push(i)}),this.requirements.forEach(i=>{i.classes.includes(h)&&i.cssStyles.push(...f.flatMap(c=>c.split(",")))}),this.elements.forEach(i=>{i.classes.includes(h)&&i.cssStyles.push(...f.flatMap(c=>c.split(",")))})}}getClasses(){return this.classes}getData(){let e=ye(),f=[],h=[];for(let i of this.requirements.values()){let c=i;c.id=i.name,c.cssStyles=i.cssStyles,c.cssClasses=i.classes.join(" "),c.shape="requirementBox",c.look=e.look,c.colorIndex=f.length,f.push(c)}for(let i of this.elements.values()){let c=i;c.shape="requirementBox",c.look=e.look,c.id=i.name,c.cssStyles=i.cssStyles,c.cssClasses=i.classes.join(" "),c.colorIndex=f.length,f.push(c)}let o=0;for(let i of this.relations){let c=i.type===this.Relationships.CONTAINS,k={id:`${i.src}-${i.dst}-${o++}`,start:this.requirements.get(i.src)?.name??this.elements.get(i.src)?.name,end:this.requirements.get(i.dst)?.name??this.elements.get(i.dst)?.name,label:`&lt;&lt;${i.type}&gt;&gt;`,classes:"relationshipLine",style:["fill:none",c?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:c?"normal":"dashed",arrowTypeStart:c?"requirement_contains":"",arrowTypeEnd:c?"":"requirement_arrow",look:e.look,labelType:"markdown"};h.push(k)}return{nodes:f,edges:h,other:{},config:e,direction:this.getDirection()}}},mt=u(e=>{let f=Ce(),{themeVariables:h,look:o}=f,{bkgColorArray:i,borderColorArray:c}=h;if(!c?.length)return"";let k="";for(let E=0;E<e.THEME_COLOR_LIMIT;E++)k+=`
7
+
8
+ [data-look="${o}"][data-color-id="color-${E}"].node path {
9
+ stroke: ${c[E]};
10
+ fill: ${i?.length?i[E]:""};
11
+ }
12
+
13
+ [data-look="${o}"][data-color-id="color-${E}"].node rect {
14
+ stroke: ${c[E]};
15
+ fill: ${i?.length?i[E]:""};
16
+ }
17
+ `;return k},"genColor"),dt=u(e=>{let f=Ce(),{look:h,themeVariables:o}=f,{requirementEdgeLabelBackground:i}=o;return`
18
+ ${mt(e)}
19
+ marker {
20
+ fill: ${e.relationColor};
21
+ stroke: ${e.relationColor};
22
+ }
23
+
24
+ marker.cross {
25
+ stroke: ${e.lineColor};
26
+ }
27
+
28
+ svg {
29
+ font-family: ${e.fontFamily};
30
+ font-size: ${e.fontSize};
31
+ }
32
+
33
+ .reqBox {
34
+ fill: ${e.requirementBackground};
35
+ fill-opacity: 1.0;
36
+ stroke: ${e.requirementBorderColor};
37
+ stroke-width: ${e.requirementBorderSize};
38
+ }
39
+
40
+ .reqTitle, .reqLabel{
41
+ fill: ${e.requirementTextColor};
42
+ }
43
+ .reqLabelBox {
44
+ fill: ${e.relationLabelBackground};
45
+ fill-opacity: 1.0;
46
+ }
47
+
48
+ .req-title-line {
49
+ stroke: ${e.requirementBorderColor};
50
+ stroke-width: ${e.requirementBorderSize};
51
+ }
52
+ .relationshipLine {
53
+ stroke: ${e.relationColor};
54
+ stroke-width: ${h==="neo"?e.strokeWidth:"1px"};
55
+ }
56
+ .relationshipLabel {
57
+ fill: ${e.relationLabelColor};
58
+ }
59
+ .edgeLabel {
60
+ background-color: ${e.edgeLabelBackground};
61
+ }
62
+ .edgeLabel .label rect {
63
+ fill: ${e.edgeLabelBackground};
64
+ }
65
+ .edgeLabel .label text {
66
+ fill: ${e.relationLabelColor};
67
+ }
68
+ .divider {
69
+ stroke: ${e.nodeBorder};
70
+ stroke-width: 1;
71
+ }
72
+ .label {
73
+ font-family: ${e.fontFamily};
74
+ color: ${e.nodeTextColor||e.textColor};
75
+ }
76
+ .label text,span {
77
+ fill: ${e.nodeTextColor||e.textColor};
78
+ color: ${e.nodeTextColor||e.textColor};
79
+ }
80
+ .labelBkg {
81
+ background-color: ${i??e.edgeLabelBackground};
82
+ }
83
+
84
+ `},"getStyles"),Et=dt,nt={};Ke(nt,{draw:()=>pt});var pt=u(async function(e,f,h,o){ke.info("REF0:"),ke.info("Drawing requirement diagram (unified)",f);let{securityLevel:i,state:c,layout:k,look:E}=ye(),R=o.db.getData(),_=it(f,i);R.type=o.type,R.layoutAlgorithm=st(k),R.nodeSpacing=c?.nodeSpacing??50,R.rankSpacing=c?.rankSpacing??50,R.markers=E==="neo"?["requirement_contains_neo","requirement_arrow_neo"]:["requirement_contains","requirement_arrow"],R.diagramId=f,await tt(R,_);let I=8;et.insertTitle(_,"requirementDiagramTitleText",c?.titleTopMargin??25,o.db.getDiagramTitle()),rt(_,I,"requirementDiagram",c?.useMaxWidth??!0)},"draw"),xt={parser:ut,get db(){return new ft},renderer:nt,styles:Et};export{xt as diagram};
85
+ //# sourceMappingURL=requirementDiagram-BXWQKSXE-MNP4O73E.js.map