@1agents/dsh-a2a 0.0.0-stage → 0.1.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.
- package/README.md +57 -2
- package/cordis.patch.yml +10 -0
- package/dist/approvals.js +50 -0
- package/dist/cli.js +32596 -0
- package/dist/executor.js +24896 -0
- package/dist/index.js +32595 -0
- package/dist/sdk-runtime.js +166 -0
- package/dist/server.js +32581 -0
- package/dist/shared/a2a/workbench-ui.js +186 -0
- package/dist/workbench-ui/app.css +453 -0
- package/dist/workbench-ui/app.js +13 -0
- package/dist/workbench-ui/chunk-23JHGYT3.js +1 -0
- package/dist/workbench-ui/chunk-3H6STGPV.js +1 -0
- package/dist/workbench-ui/chunk-3SNBBMGH.js +1 -0
- package/dist/workbench-ui/chunk-3XJZ6DIE.js +1 -0
- package/dist/workbench-ui/chunk-44KDLLKJ.js +1 -0
- package/dist/workbench-ui/chunk-46H7FU5Y.js +7 -0
- package/dist/workbench-ui/chunk-4N44QPL7.js +1 -0
- package/dist/workbench-ui/chunk-4YN4BS7I.js +1 -0
- package/dist/workbench-ui/chunk-53EG4IVQ.js +96 -0
- package/dist/workbench-ui/chunk-5FIPUNR4.js +1 -0
- package/dist/workbench-ui/chunk-6DWWYA6G.js +2 -0
- package/dist/workbench-ui/chunk-6FU3T633.js +99 -0
- package/dist/workbench-ui/chunk-6XKIHRA4.js +1 -0
- package/dist/workbench-ui/chunk-7GIX43Y5.js +1 -0
- package/dist/workbench-ui/chunk-7Q4WBGX6.js +4 -0
- package/dist/workbench-ui/chunk-A3BQM7HR.js +1 -0
- package/dist/workbench-ui/chunk-AFCFDDOP.js +24 -0
- package/dist/workbench-ui/chunk-AG67EUYD.js +89 -0
- package/dist/workbench-ui/chunk-AGJHMMTN.js +1 -0
- package/dist/workbench-ui/chunk-AO6JUBV6.js +41 -0
- package/dist/workbench-ui/chunk-AUSLTP43.js +72 -0
- package/dist/workbench-ui/chunk-AVZL46TT.js +1 -0
- package/dist/workbench-ui/chunk-AZRIGIV2.js +168 -0
- package/dist/workbench-ui/chunk-B2LIVH37.js +1 -0
- package/dist/workbench-ui/chunk-B7YX5TR5.js +1 -0
- package/dist/workbench-ui/chunk-BCB4X4XX.js +1 -0
- package/dist/workbench-ui/chunk-BCRQUL2A.js +88 -0
- package/dist/workbench-ui/chunk-BI6UHHQP.js +1 -0
- package/dist/workbench-ui/chunk-BLSLQ4AQ.js +120 -0
- package/dist/workbench-ui/chunk-C3QSRS6E.js +1 -0
- package/dist/workbench-ui/chunk-CK7M2PJ3.js +62 -0
- package/dist/workbench-ui/chunk-CM6LZ7TU.js +1 -0
- package/dist/workbench-ui/chunk-CP63H27F.js +36 -0
- package/dist/workbench-ui/chunk-CPUMMIS2.js +70 -0
- package/dist/workbench-ui/chunk-CSEIBI5U.js +2 -0
- package/dist/workbench-ui/chunk-CUS65DKZ.js +161 -0
- package/dist/workbench-ui/chunk-CVQY7TNC.js +1 -0
- package/dist/workbench-ui/chunk-D6S3XBIX.js +106 -0
- package/dist/workbench-ui/chunk-E253Y562.js +1 -0
- package/dist/workbench-ui/chunk-EADDJUDC.js +1 -0
- package/dist/workbench-ui/chunk-EBGJ3YXG.js +206 -0
- package/dist/workbench-ui/chunk-EKPVZ3WY.js +8 -0
- package/dist/workbench-ui/chunk-EQDCEAFY.js +1 -0
- package/dist/workbench-ui/chunk-ES3SSDJY.js +40 -0
- package/dist/workbench-ui/chunk-ESFD2H7N.js +231 -0
- package/dist/workbench-ui/chunk-FVOHPMS6.js +1 -0
- package/dist/workbench-ui/chunk-FXMQAGVT.js +1 -0
- package/dist/workbench-ui/chunk-GGTADRXD.js +24 -0
- package/dist/workbench-ui/chunk-GHIVPGNQ.js +1 -0
- package/dist/workbench-ui/chunk-GLU2YQV2.js +1 -0
- package/dist/workbench-ui/chunk-GOCKBYSM.js +1 -0
- package/dist/workbench-ui/chunk-H2KMMTJB.js +1 -0
- package/dist/workbench-ui/chunk-HGVLDNPP.js +39 -0
- package/dist/workbench-ui/chunk-HSAVC5GY.js +1 -0
- package/dist/workbench-ui/chunk-HSEAD2JH.js +1 -0
- package/dist/workbench-ui/chunk-HSIHOBTY.js +1 -0
- package/dist/workbench-ui/chunk-IZXOKUGG.js +67 -0
- package/dist/workbench-ui/chunk-JFT2LC2T.js +1 -0
- package/dist/workbench-ui/chunk-JHL3ZDYK.js +3 -0
- package/dist/workbench-ui/chunk-JMORLCZG.js +257 -0
- package/dist/workbench-ui/chunk-JR4SIX7A.js +1 -0
- package/dist/workbench-ui/chunk-K23HAGEH.js +30 -0
- package/dist/workbench-ui/chunk-K43JDCBH.js +1 -0
- package/dist/workbench-ui/chunk-KINKFJY7.js +1 -0
- package/dist/workbench-ui/chunk-KKQSA4LI.js +2 -0
- package/dist/workbench-ui/chunk-KOUZX3UX.js +1 -0
- package/dist/workbench-ui/chunk-KR4DRHW2.js +78 -0
- package/dist/workbench-ui/chunk-KT4DJNOR.js +1 -0
- package/dist/workbench-ui/chunk-KTPNKRRZ.js +292 -0
- package/dist/workbench-ui/chunk-LFHIPGSU.js +7 -0
- package/dist/workbench-ui/chunk-LWDL4HZB.js +125 -0
- package/dist/workbench-ui/chunk-MVYC3CY4.js +1 -0
- package/dist/workbench-ui/chunk-NWUPALCY.js +129 -0
- package/dist/workbench-ui/chunk-NY7C662Z.js +1 -0
- package/dist/workbench-ui/chunk-O76WTHWP.js +1 -0
- package/dist/workbench-ui/chunk-OTF7YHRE.js +162 -0
- package/dist/workbench-ui/chunk-P6TKKRKP.js +1 -0
- package/dist/workbench-ui/chunk-PFHOOWV3.js +1 -0
- package/dist/workbench-ui/chunk-PUQLANIM.js +1 -0
- package/dist/workbench-ui/chunk-PZCGBYVO.js +1 -0
- package/dist/workbench-ui/chunk-QOHUZGP4.js +1 -0
- package/dist/workbench-ui/chunk-QSEG3OFF.js +1 -0
- package/dist/workbench-ui/chunk-QYPOXZIA.js +84 -0
- package/dist/workbench-ui/chunk-R6SOF3JC.js +1 -0
- package/dist/workbench-ui/chunk-RCLOYU5F.js +1 -0
- package/dist/workbench-ui/chunk-RSRUP64S.js +1 -0
- package/dist/workbench-ui/chunk-RVAIT6JW.js +1 -0
- package/dist/workbench-ui/chunk-S2CCN3II.js +1 -0
- package/dist/workbench-ui/chunk-S2Q52W46.js +1 -0
- package/dist/workbench-ui/chunk-S2W5THJ5.js +1 -0
- package/dist/workbench-ui/chunk-S6ZQZNOX.js +1 -0
- package/dist/workbench-ui/chunk-S74PLMMS.js +1 -0
- package/dist/workbench-ui/chunk-S7C4HKEY.js +1 -0
- package/dist/workbench-ui/chunk-SDTB3Q65.js +1 -0
- package/dist/workbench-ui/chunk-SLPRGYUV.js +32 -0
- package/dist/workbench-ui/chunk-SQE76S5B.js +1 -0
- package/dist/workbench-ui/chunk-SSDZPVPW.js +1 -0
- package/dist/workbench-ui/chunk-SVI7DGIE.js +1 -0
- package/dist/workbench-ui/chunk-T6QKLZ4H.js +62 -0
- package/dist/workbench-ui/chunk-TJNRPTFL.js +1 -0
- package/dist/workbench-ui/chunk-TP6U4EDH.js +2 -0
- package/dist/workbench-ui/chunk-TYAAT3GQ.js +1 -0
- package/dist/workbench-ui/chunk-U6OCY4ZH.js +1 -0
- package/dist/workbench-ui/chunk-UAN3NLRF.js +1 -0
- package/dist/workbench-ui/chunk-UMLU3FIX.js +1 -0
- package/dist/workbench-ui/chunk-URIY2OTM.js +1 -0
- package/dist/workbench-ui/chunk-V2NUKAA7.js +38 -0
- package/dist/workbench-ui/chunk-V4QLL4TE.js +139 -0
- package/dist/workbench-ui/chunk-VASHXUK4.js +2 -0
- package/dist/workbench-ui/chunk-VJLIWNIU.js +1 -0
- package/dist/workbench-ui/chunk-VQNQFBID.js +1 -0
- package/dist/workbench-ui/chunk-VSIWU7XA.js +3 -0
- package/dist/workbench-ui/chunk-VSJASPUZ.js +321 -0
- package/dist/workbench-ui/chunk-VXPNUNUX.js +3 -0
- package/dist/workbench-ui/chunk-WBKLDCV6.js +1 -0
- package/dist/workbench-ui/chunk-WOKJM3FY.js +1 -0
- package/dist/workbench-ui/chunk-X3U3NA3X.js +34 -0
- package/dist/workbench-ui/chunk-XBYU7M4J.js +1 -0
- package/dist/workbench-ui/chunk-XBZAO4ID.js +10 -0
- package/dist/workbench-ui/chunk-XLLPZ2WO.js +1 -0
- package/dist/workbench-ui/chunk-YFVL4NJL.js +1 -0
- package/dist/workbench-ui/chunk-YRFQENM4.js +1 -0
- package/dist/workbench-ui/chunk-YUADQVB2.js +1 -0
- package/dist/workbench-ui/chunk-Z3TCAKM5.js +1 -0
- package/dist/workbench-ui/chunk-Z6QR6FRE.js +10 -0
- package/dist/workbench-ui/chunk-ZJPSORPP.js +3 -0
- package/dist/workbench-ui/chunk-ZLGCSTR2.js +15 -0
- package/dist/workbench-ui/chunk-ZLR4SG5X.js +1 -0
- package/dist/workbench-ui/chunk-ZND3TTGF.js +1 -0
- package/dist/workbench-ui/chunk-ZOP3ZYH7.js +2 -0
- package/dist/workbench-ui/index.html +14 -0
- package/dist/workbench.js +222 -0
- package/package.json +33 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as Q}from"./chunk-PZCGBYVO.js";import{c as j,d as q,e as K}from"./chunk-CK7M2PJ3.js";import{a as O}from"./chunk-44KDLLKJ.js";import{d as P,e as Y}from"./chunk-JFT2LC2T.js";import{d as J}from"./chunk-AUSLTP43.js";import{Z as G,n as U,x as X}from"./chunk-LWDL4HZB.js";import{b as L,h as I}from"./chunk-JR4SIX7A.js";import{a as $}from"./chunk-5FIPUNR4.js";var it=$(async(k,t)=>{let l=G(),{themeVariables:b,handDrawnSeed:d}=l,{clusterBkg:x,clusterBorder:m}=b,n=m,{labelStyles:C,nodeStyles:c,borderStyles:R,backgroundStyles:o}=P(t),h=k.insert("g").attr("class","cluster swimlane "+(t.cssClasses||"")).attr("id",t.id).attr("data-id",t.id).attr("data-et","cluster").attr("data-look",t.look),g=U(l.flowchart.htmlLabels),a=t.direction==="LR",s=h.insert("g").attr("class","cluster-label swimlane-label"),w=await J(s,t.label,{style:t.labelStyle,useHtmlLabels:g,isNode:!0,width:t.width}),r=w.getBBox();if(g){let B=w.children[0],D=I(w);r=B.getBoundingClientRect(),D.attr("width",r.width),D.attr("height",r.height)}let p=t.padding??0,u=t.width<=r.width+p?r.width+p:t.width;t.width<=r.width+p?t.diff=(u-t.width)/2-p:t.diff=-p;let i=t.height,f=t.y-i/2,T=t.y+i/2,e=t.x-u/2,v=t.swimlaneContentTop!==void 0?t.swimlaneContentTop:f+i/3,y=a?4:0,N=r.height+2*y,S,M;if(a){let B=Math.max(N,r.height+2*y),D=e+B,H=Math.max(0,u-B);if(t.look==="handDrawn"){let V=O.svg(h),z=Y(t,{roughness:.7,fill:x,stroke:n,fillWeight:3,seed:d}),_=Y(t,{roughness:.7,fill:"none",stroke:n,seed:d}),A=V.rectangle(e,f,B,i,z);S=h.insert(()=>A,":first-child");let F=V.rectangle(D,f,H,i,_);M=h.insert(()=>F,":first-child"),S.select("path:nth-child(2)").attr("style",R.join(";")),S.select("path").attr("style",o.join(";").replace("fill","stroke"))}else S=h.insert("rect",":first-child"),M=h.insert("rect",":first-child"),S.attr("class","swimlane-title").attr("style",c).attr("x",e).attr("y",f).attr("width",B).attr("height",i).attr("fill",x).attr("stroke",n),M.attr("class","swimlane-body").attr("style",c).attr("x",D).attr("y",f).attr("width",H).attr("height",i).attr("fill","none").attr("stroke",n);let E=e+B/2,W=t.y;s.attr("transform",`translate(${E}, ${W}) rotate(-90) translate(${-r.width/2}, ${-r.height/2})`)}else{let B=Math.max(0,v-f),D=Math.min(N,B),H=f+D,E=Math.max(0,T-H),W=t.x-u/2;if(t.look==="handDrawn"){let _=O.svg(h),A=Y(t,{roughness:.7,fill:x,stroke:n,fillWeight:3,seed:d}),F=Y(t,{roughness:.7,fill:"none",stroke:n,seed:d}),st=_.rectangle(W,f,u,D,A);S=h.insert(()=>st,":first-child");let rt=_.rectangle(W,H,u,E,F);M=h.insert(()=>rt,":first-child"),S.select("path:nth-child(2)").attr("style",R.join(";")),S.select("path").attr("style",o.join(";").replace("fill","stroke"))}else S=h.insert("rect",":first-child"),M=h.insert("rect",":first-child"),S.attr("class","swimlane-title").attr("style",c).attr("x",W).attr("y",f).attr("width",u).attr("height",D).attr("fill",x).attr("stroke",n),M.attr("class","swimlane-body").attr("style",c).attr("x",W).attr("y",H).attr("width",u).attr("height",E).attr("fill","none").attr("stroke",n);let V=t.x-r.width/2,z=f+(D-r.height)/2;s.attr("transform",`translate(${V}, ${z})`)}if(L.trace("Swimlane data ",t,JSON.stringify(t)),C){let B=s.select("span");B&&B.attr("style",C)}return t.offsetX=0,t.width=u,t.height=i,t.offsetY=r.height-p/2,t.intersect=function(B){return j(t,B)},{cluster:h,labelBBox:r}},"swimlane"),Z=$(async(k,t)=>{L.info("Creating subgraph rect for ",t.id,t);let l=G(),{themeVariables:b,handDrawnSeed:d}=l,{clusterBkg:x,clusterBorder:m}=b,{labelStyles:n,nodeStyles:C,borderStyles:c,backgroundStyles:R}=P(t),o=k.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),h=X(l),g=o.insert("g").attr("class","cluster-label "),a;t.labelType==="markdown"?a=await J(g,t.label,{style:t.labelStyle,useHtmlLabels:h,isNode:!0,width:t.width}):a=await K(g,t.label,t.labelStyle||"",!1,!0);let s=a.getBBox();if(X(l)){let e=a.children[0],v=I(a);s=e.getBoundingClientRect(),v.attr("width",s.width),v.attr("height",s.height)}let w=t.width<=s.width+t.padding?s.width+t.padding:t.width;t.width<=s.width+t.padding?t.diff=(w-t.width)/2-t.padding:t.diff=-t.padding;let r=t.height,p=t.x-w/2,u=t.y-r/2;L.trace("Data ",t,JSON.stringify(t));let i;if(t.look==="handDrawn"){let e=O.svg(o),v=Y(t,{roughness:.7,fill:x,stroke:m,fillWeight:3,seed:d}),y=e.path(q(p,u,w,r,0),v);i=o.insert(()=>(L.debug("Rough node insert CXC",y),y),":first-child"),i.select("path:nth-child(2)").attr("style",c.join(";")),i.select("path").attr("style",R.join(";").replace("fill","stroke"))}else i=o.insert("rect",":first-child"),i.attr("style",C).attr("rx",t.rx).attr("ry",t.ry).attr("x",p).attr("y",u).attr("width",w).attr("height",r);let{subGraphTitleTopMargin:f}=Q(l);if(g.attr("transform",`translate(${t.x-s.width/2}, ${t.y-t.height/2+f})`),n){let e=g.select("span");e&&e.attr("style",n)}let T=i.node().getBBox();return t.offsetX=0,t.width=T.width,t.height=T.height,t.offsetY=s.height-t.padding/2,t.intersect=function(e){return j(t,e)},{cluster:o,labelBBox:s}},"rect"),et=$((k,t)=>{let l=k.insert("g").attr("class","note-cluster").attr("id",t.domId),b=l.insert("rect",":first-child"),d=0*t.padding,x=d/2;b.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-x).attr("y",t.y-t.height/2-x).attr("width",t.width+d).attr("height",t.height+d).attr("fill","none");let m=b.node().getBBox();return t.width=m.width,t.height=m.height,t.intersect=function(n){return j(t,n)},{cluster:l,labelBBox:{width:0,height:0}}},"noteGroup"),at=$(async(k,t)=>{let l=G(),{themeVariables:b,handDrawnSeed:d}=l,{altBackground:x,compositeBackground:m,compositeTitleBackground:n,nodeBorder:C}=b,c=k.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-id",t.id).attr("data-look",t.look),R=c.insert("g",":first-child"),o=c.insert("g").attr("class","cluster-label"),h=c.append("rect"),g=await K(o,t.label,t.labelStyle,void 0,!0),a=g.getBBox();if(X(l)){let y=g.children[0],N=I(g);a=y.getBoundingClientRect(),N.attr("width",a.width),N.attr("height",a.height)}let s=0*t.padding,w=s/2,r=(t.width<=a.width+t.padding?a.width+t.padding:t.width)+s;t.width<=a.width+t.padding?t.diff=(r-t.width)/2-t.padding:t.diff=-t.padding;let p=t.height+s,u=t.height+s-a.height-6,i=t.x-r/2,f=t.y-p/2;t.width=r;let T=t.y-t.height/2-w+a.height+2,e;if(t.look==="handDrawn"){let y=t.cssClasses.includes("statediagram-cluster-alt"),N=O.svg(c),S=t.rx||t.ry?N.path(q(i,f,r,p,10),{roughness:.7,fill:n,fillStyle:"solid",stroke:C,seed:d}):N.rectangle(i,f,r,p,{seed:d});e=c.insert(()=>S,":first-child");let M=N.rectangle(i,T,r,u,{fill:y?x:m,fillStyle:y?"hachure":"solid",stroke:C,seed:d});e=c.insert(()=>S,":first-child"),h=c.insert(()=>M)}else e=R.insert("rect",":first-child"),e.attr("class","outer").attr("x",i).attr("y",f).attr("width",r).attr("height",p).attr("data-look",t.look),h.attr("class","inner").attr("x",i).attr("y",T).attr("width",r).attr("height",u);o.attr("transform",`translate(${t.x-a.width/2}, ${f+1-(X(l)?0:3)})`);let v=e.node().getBBox();return t.height=v.height,t.offsetX=0,t.offsetY=a.height-t.padding/2,t.labelBBox=a,t.intersect=function(y){return j(t,y)},{cluster:c,labelBBox:a}},"roundedWithTitle"),lt=$(async(k,t)=>{L.info("Creating subgraph rect for ",t.id,t);let l=G(),{themeVariables:b,handDrawnSeed:d}=l,{clusterBkg:x,clusterBorder:m}=b,{labelStyles:n,nodeStyles:C,borderStyles:c,backgroundStyles:R}=P(t),o=k.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),h=X(l),g=o.insert("g").attr("class","cluster-label "),a=await J(g,t.label,{style:t.labelStyle,useHtmlLabels:h,isNode:!0,width:t.width}),s=a.getBBox();if(X(l)){let e=a.children[0],v=I(a);s=e.getBoundingClientRect(),v.attr("width",s.width),v.attr("height",s.height)}let w=t.width<=s.width+t.padding?s.width+t.padding:t.width;t.width<=s.width+t.padding?t.diff=(w-t.width)/2-t.padding:t.diff=-t.padding;let r=t.height,p=t.x-w/2,u=t.y-r/2;L.trace("Data ",t,JSON.stringify(t));let i;if(t.look==="handDrawn"){let e=O.svg(o),v=Y(t,{roughness:.7,fill:x,stroke:m,fillWeight:4,seed:d}),y=e.path(q(p,u,w,r,t.rx),v);i=o.insert(()=>(L.debug("Rough node insert CXC",y),y),":first-child"),i.select("path:nth-child(2)").attr("style",c.join(";")),i.select("path").attr("style",R.join(";").replace("fill","stroke"))}else i=o.insert("rect",":first-child"),i.attr("style",C).attr("rx",t.rx).attr("ry",t.ry).attr("x",p).attr("y",u).attr("width",w).attr("height",r);let{subGraphTitleTopMargin:f}=Q(l);if(g.attr("transform",`translate(${t.x-s.width/2}, ${t.y-t.height/2+f})`),n){let e=g.select("span");e&&e.attr("style",n)}let T=i.node().getBBox();return t.offsetX=0,t.width=T.width,t.height=T.height,t.offsetY=s.height-t.padding/2,t.intersect=function(e){return j(t,e)},{cluster:o,labelBBox:s}},"kanbanSection"),ct=$((k,t)=>{let l=G(),{themeVariables:b,handDrawnSeed:d}=l,{nodeBorder:x}=b,m=k.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-look",t.look),n=m.insert("g",":first-child"),C=0*t.padding,c=t.width+C;t.diff=-t.padding;let R=t.height+C,o=t.x-c/2,h=t.y-R/2;t.width=c;let g;if(t.look==="handDrawn"){let w=O.svg(m).rectangle(o,h,c,R,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:x,seed:d});g=m.insert(()=>w,":first-child")}else{g=n.insert("rect",":first-child");let s="outer";t.look,s="divider",g.attr("class",s).attr("x",o).attr("y",h).attr("width",c).attr("height",R).attr("data-look",t.look)}let a=g.node().getBBox();return t.height=a.height,t.offsetX=0,t.offsetY=0,t.intersect=function(s){return j(t,s)},{cluster:m,labelBBox:{}}},"divider"),ht=Z,nt={rect:Z,squareRect:ht,roundedWithTitle:at,noteGroup:et,divider:ct,kanbanSection:lt,swimlane:it},tt=new Map,Bt=$(async(k,t)=>{let l=t.shape||"rect",b=await nt[l](k,t);return tt.set(t.id,b),b},"insertCluster"),kt=$(()=>{tt=new Map},"clear");export{Bt as a,kt as b};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import{C as ve}from"./chunk-EADDJUDC.js";import{a as Ce}from"./chunk-ZLGCSTR2.js";import{f as De,g as Ne,h as Ie,i as Te}from"./chunk-XBZAO4ID.js";import{b as ae,e as _e}from"./chunk-PZCGBYVO.js";import"./chunk-CK7M2PJ3.js";import"./chunk-44KDLLKJ.js";import"./chunk-JFT2LC2T.js";import"./chunk-AUSLTP43.js";import"./chunk-GLU2YQV2.js";import{a as Ee,f as we}from"./chunk-6DWWYA6G.js";import"./chunk-VJLIWNIU.js";import{M as ke,N as me,S as ye,Z as ie,a as xe,b as Le,t as M}from"./chunk-LWDL4HZB.js";import"./chunk-VXPNUNUX.js";import{b as m,h as Y}from"./chunk-JR4SIX7A.js";import{a as c}from"./chunk-5FIPUNR4.js";import"./chunk-SQE76S5B.js";var oe=(function(){var e=c(function(C,u,r,a){for(r=r||{},a=C.length;a--;r[C[a]]=u);return r},"o"),o=[1,15],l=[1,7],n=[1,13],h=[1,14],p=[1,19],s=[1,16],g=[1,17],x=[1,18],k=[8,30],S=[8,10,21,28,29,30,31,39,43,46],b=[1,23],L=[1,24],E=[8,10,15,16,21,28,29,30,31,39,43,46],f=[8,10,15,16,21,27,28,29,30,31,39,43,46],_=[1,49],w={trace:c(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:c(function(u,r,a,d,y,t,K){var i=t.length-1;switch(y){case 4:d.getLogger().debug("Rule: separator (NL) ");break;case 5:d.getLogger().debug("Rule: separator (Space) ");break;case 6:d.getLogger().debug("Rule: separator (EOF) ");break;case 7:d.getLogger().debug("Rule: hierarchy: ",t[i-1]),d.setHierarchy(t[i-1]);break;case 8:d.getLogger().debug("Stop NL ");break;case 9:d.getLogger().debug("Stop EOF ");break;case 10:d.getLogger().debug("Stop NL2 ");break;case 11:d.getLogger().debug("Stop EOF2 ");break;case 12:d.getLogger().debug("Rule: statement: ",t[i]),typeof t[i].length=="number"?this.$=t[i]:this.$=[t[i]];break;case 13:d.getLogger().debug("Rule: statement #2: ",t[i-1]),this.$=[t[i-1]].concat(t[i]);break;case 14:d.getLogger().debug("Rule: link: ",t[i],u),this.$={edgeTypeStr:t[i],label:""};break;case 15:d.getLogger().debug("Rule: LABEL link: ",t[i-3],t[i-1],t[i]),this.$={edgeTypeStr:t[i],label:t[i-1]};break;case 18:let P=parseInt(t[i]),V=d.generateId();this.$={id:V,type:"space",label:"",width:P,children:[]};break;case 23:d.getLogger().debug("Rule: (nodeStatement link node) ",t[i-2],t[i-1],t[i]," typestr: ",t[i-1].edgeTypeStr);let j=d.edgeStrToEdgeData(t[i-1].edgeTypeStr),Z=d.edgeStrToEdgeStartData(t[i-1].edgeTypeStr),U=d.edgeStrToThickness(t[i-1].edgeTypeStr),Q=d.edgeStrToPattern(t[i-1].edgeTypeStr);this.$=[{id:t[i-2].id,label:t[i-2].label,type:t[i-2].type,directions:t[i-2].directions},{id:t[i-2].id+"-"+t[i].id,start:t[i-2].id,end:t[i].id,label:t[i-1].label,type:"edge",thickness:U,pattern:Q,directions:t[i].directions,arrowTypeEnd:j,arrowTypeStart:Z},{id:t[i].id,label:t[i].label,type:d.typeStr2Type(t[i].typeStr),directions:t[i].directions}];break;case 24:d.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[i-1],t[i]),this.$={id:t[i-1].id,label:t[i-1].label,type:d.typeStr2Type(t[i-1].typeStr),directions:t[i-1].directions,widthInColumns:parseInt(t[i],10)};break;case 25:d.getLogger().debug("Rule: nodeStatement (node) ",t[i]),this.$={id:t[i].id,label:t[i].label,type:d.typeStr2Type(t[i].typeStr),directions:t[i].directions,widthInColumns:1};break;case 26:d.getLogger().debug("APA123",this?this:"na"),d.getLogger().debug("COLUMNS: ",t[i]),this.$={type:"column-setting",columns:t[i]==="auto"?-1:parseInt(t[i])};break;case 27:d.getLogger().debug("Rule: id-block statement : ",t[i-2],t[i-1]);let D=d.generateId();this.$={...t[i-2],type:"composite",children:t[i-1]};break;case 28:d.getLogger().debug("Rule: blockStatement : ",t[i-2],t[i-1],t[i]);let B=d.generateId();this.$={id:B,type:"composite",label:"",children:t[i-1]};break;case 29:d.getLogger().debug("Rule: node (NODE_ID separator): ",t[i]),this.$={id:t[i]};break;case 30:d.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[i-1],t[i]),this.$={id:t[i-1],label:t[i].label,typeStr:t[i].typeStr,directions:t[i].directions};break;case 31:d.getLogger().debug("Rule: dirList: ",t[i]),this.$=[t[i]];break;case 32:d.getLogger().debug("Rule: dirList: ",t[i-1],t[i]),this.$=[t[i-1]].concat(t[i]);break;case 33:d.getLogger().debug("Rule: nodeShapeNLabel: ",t[i-2],t[i-1],t[i]),this.$={typeStr:t[i-2]+t[i],label:t[i-1]};break;case 34:d.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[i-3],t[i-2]," #3:",t[i-1],t[i]),this.$={typeStr:t[i-3]+t[i],label:t[i-2],directions:t[i-1]};break;case 35:case 36:this.$={type:"classDef",id:t[i-1].trim(),css:t[i].trim()};break;case 37:this.$={type:"applyClass",id:t[i-1].trim(),styleClass:t[i].trim()};break;case 38:this.$={type:"applyStyles",id:t[i-1].trim(),stylesStr:t[i].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:o,11:3,13:4,19:5,20:6,21:l,22:8,23:9,24:10,25:11,26:12,28:n,29:h,31:p,39:s,43:g,46:x},{8:[1,20]},e(k,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:o,21:l,28:n,29:h,31:p,39:s,43:g,46:x}),e(S,[2,16],{14:22,15:b,16:L}),e(S,[2,17]),e(S,[2,18]),e(S,[2,19]),e(S,[2,20]),e(S,[2,21]),e(S,[2,22]),e(E,[2,25],{27:[1,25]}),e(S,[2,26]),{19:26,26:12,31:p},{10:o,11:27,13:4,19:5,20:6,21:l,22:8,23:9,24:10,25:11,26:12,28:n,29:h,31:p,39:s,43:g,46:x},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(f,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(k,[2,13]),{26:35,31:p},{31:[2,14]},{17:[1,36]},e(E,[2,24]),{10:o,11:37,13:4,14:22,15:b,16:L,19:5,20:6,21:l,22:8,23:9,24:10,25:11,26:12,28:n,29:h,31:p,39:s,43:g,46:x},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(f,[2,30]),{18:[1,43]},{18:[1,44]},e(E,[2,23]),{18:[1,45]},{30:[1,46]},e(S,[2,28]),e(S,[2,35]),e(S,[2,36]),e(S,[2,37]),e(S,[2,38]),{36:[1,47]},{33:48,34:_},{15:[1,50]},e(S,[2,27]),e(f,[2,33]),{38:[1,51]},{33:52,34:_,38:[2,31]},{31:[2,15]},e(f,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:c(function(u,r){if(r.recoverable)this.trace(u);else{var a=new Error(u);throw a.hash=r,a}},"parseError"),parse:c(function(u){var r=this,a=[0],d=[],y=[null],t=[],K=this.table,i="",P=0,V=0,j=0,Z=2,U=1,Q=t.slice.call(arguments,1),D=Object.create(this.lexer),B={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(B.yy[$]=this.yy[$]);D.setInput(u,B.yy),B.yy.lexer=D,B.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ee=D.yylloc;t.push(ee);var qe=D.options&&D.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Je(T){a.length=a.length-2*T,y.length=y.length-T,t.length=t.length-T}c(Je,"popStack");function fe(){var T;return T=d.pop()||D.lex()||U,typeof T!="number"&&(T instanceof Array&&(d=T,T=d.pop()),T=r.symbols_[T]||T),T}c(fe,"lex");for(var I,te,R,O,wt,se,F={},H,A,Se,X;;){if(R=a[a.length-1],this.defaultActions[R]?O=this.defaultActions[R]:((I===null||typeof I>"u")&&(I=fe()),O=K[R]&&K[R][I]),typeof O>"u"||!O.length||!O[0]){var re="";X=[];for(H in K[R])this.terminals_[H]&&H>Z&&X.push("'"+this.terminals_[H]+"'");D.showPosition?re="Parse error on line "+(P+1)+`:
|
|
2
|
+
`+D.showPosition()+`
|
|
3
|
+
Expecting `+X.join(", ")+", got '"+(this.terminals_[I]||I)+"'":re="Parse error on line "+(P+1)+": Unexpected "+(I==U?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(re,{text:D.match,token:this.terminals_[I]||I,line:D.yylineno,loc:ee,expected:X})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+I);switch(O[0]){case 1:a.push(I),y.push(D.yytext),t.push(D.yylloc),a.push(O[1]),I=null,te?(I=te,te=null):(V=D.yyleng,i=D.yytext,P=D.yylineno,ee=D.yylloc,j>0&&j--);break;case 2:if(A=this.productions_[O[1]][1],F.$=y[y.length-A],F._$={first_line:t[t.length-(A||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(A||1)].first_column,last_column:t[t.length-1].last_column},qe&&(F._$.range=[t[t.length-(A||1)].range[0],t[t.length-1].range[1]]),se=this.performAction.apply(F,[i,V,P,B.yy,O[1],y,t].concat(Q)),typeof se<"u")return se;A&&(a=a.slice(0,-1*A*2),y=y.slice(0,-1*A),t=t.slice(0,-1*A)),a.push(this.productions_[O[1]][0]),y.push(F.$),t.push(F._$),Se=K[a[a.length-2]][a[a.length-1]],a.push(Se);break;case 3:return!0}}return!0},"parse")},N=(function(){var C={EOF:1,parseError:c(function(r,a){if(this.yy.parser)this.yy.parser.parseError(r,a);else throw new Error(r)},"parseError"),setInput:c(function(u,r){return this.yy=r||this.yy||{},this._input=u,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:c(function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var r=u.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},"input"),unput:c(function(u){var r=u.length,a=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;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),a.length-1&&(this.yylineno-=a.length-1);var y=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:a?(a.length===d.length?this.yylloc.first_column:0)+d[d.length-a.length].length-a[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(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:c(function(u){this.unput(this.match.slice(u))},"less"),pastInput:c(function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c(function(){var u=this.pastInput(),r=new Array(u.length+1).join("-");return u+this.upcomingInput()+`
|
|
5
|
+
`+r+"^"},"showPosition"),test_match:c(function(u,r){var a,d,y;if(this.options.backtrack_lexer&&(y={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&&(y.yylloc.range=this.yylloc.range.slice(0))),d=u[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+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,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(u[0].length),this.matched+=u[0],a=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var t in y)this[t]=y[t];return!1}return!1},"test_match"),next:c(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,r,a,d;this._more||(this.yytext="",this.match="");for(var y=this._currentRules(),t=0;t<y.length;t++)if(a=this._input.match(this.rules[y[t]]),a&&(!r||a[0].length>r[0].length)){if(r=a,d=t,this.options.backtrack_lexer){if(u=this.test_match(a,y[t]),u!==!1)return u;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(u=this.test_match(r,y[d]),u!==!1?u:!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:c(function(){var r=this.next();return r||this.lex()},"lex"),begin:c(function(r){this.conditionStack.push(r)},"begin"),popState:c(function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:c(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:c(function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},"topState"),pushState:c(function(r){this.begin(r)},"pushState"),stateStackSize:c(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:c(function(r,a,d,y){var t=y;switch(d){case 0:return r.getLogger().debug("Found block-beta"),10;break;case 1:return r.getLogger().debug("Found id-block"),29;break;case 2:return r.getLogger().debug("Found block"),10;break;case 3:r.getLogger().debug(".",a.yytext);break;case 4:r.getLogger().debug("_",a.yytext);break;case 5:return 5;case 6:return a.yytext=-1,28;break;case 7:return a.yytext=a.yytext.replace(/columns\s+/,""),r.getLogger().debug("COLUMNS (LEX)",a.yytext),28;break;case 8:this.pushState("md_string");break;case 9:return"MD_STR";case 10:this.popState();break;case 11:this.pushState("string");break;case 12:r.getLogger().debug("LEX: POPPING STR:",a.yytext),this.popState();break;case 13:return r.getLogger().debug("LEX: STR end:",a.yytext),"STR";break;case 14:return a.yytext=a.yytext.replace(/space\:/,""),r.getLogger().debug("SPACE NUM (LEX)",a.yytext),21;break;case 15:return a.yytext="1",r.getLogger().debug("COLUMNS (LEX)",a.yytext),21;break;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;break;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 21:return this.popState(),this.pushState("CLASSDEFID"),40;break;case 22:return this.popState(),41;break;case 23:return this.pushState("CLASS"),43;break;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;break;case 25:return this.popState(),45;break;case 26:return this.pushState("STYLE_STMNT"),46;break;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;break;case 28:return this.popState(),48;break;case 29:return this.pushState("acc_title"),"acc_title";break;case 30:return this.popState(),"acc_title_value";break;case 31:return this.pushState("acc_descr"),"acc_descr";break;case 32:return this.popState(),"acc_descr_value";break;case 33:this.pushState("acc_descr_multiline");break;case 34:this.popState();break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:return this.popState(),r.getLogger().debug("Lex: (("),"NODE_DEND";break;case 38:return this.popState(),r.getLogger().debug("Lex: (("),"NODE_DEND";break;case 39:return this.popState(),r.getLogger().debug("Lex: ))"),"NODE_DEND";break;case 40:return this.popState(),r.getLogger().debug("Lex: (("),"NODE_DEND";break;case 41:return this.popState(),r.getLogger().debug("Lex: (("),"NODE_DEND";break;case 42:return this.popState(),r.getLogger().debug("Lex: (-"),"NODE_DEND";break;case 43:return this.popState(),r.getLogger().debug("Lex: -)"),"NODE_DEND";break;case 44:return this.popState(),r.getLogger().debug("Lex: (("),"NODE_DEND";break;case 45:return this.popState(),r.getLogger().debug("Lex: ]]"),"NODE_DEND";break;case 46:return this.popState(),r.getLogger().debug("Lex: ("),"NODE_DEND";break;case 47:return this.popState(),r.getLogger().debug("Lex: ])"),"NODE_DEND";break;case 48:return this.popState(),r.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 49:return this.popState(),r.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 50:return this.popState(),r.getLogger().debug("Lex: )]"),"NODE_DEND";break;case 51:return this.popState(),r.getLogger().debug("Lex: )"),"NODE_DEND";break;case 52:return this.popState(),r.getLogger().debug("Lex: ]>"),"NODE_DEND";break;case 53:return this.popState(),r.getLogger().debug("Lex: ]"),"NODE_DEND";break;case 54:return r.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;break;case 55:return r.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;break;case 56:return r.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;break;case 57:return r.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 58:return r.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;break;case 59:return r.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 60:return r.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 61:return r.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 62:return r.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;break;case 63:return r.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;break;case 64:return r.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 65:return this.pushState("NODE"),35;break;case 66:return this.pushState("NODE"),35;break;case 67:return this.pushState("NODE"),35;break;case 68:return this.pushState("NODE"),35;break;case 69:return this.pushState("NODE"),35;break;case 70:return this.pushState("NODE"),35;break;case 71:return this.pushState("NODE"),35;break;case 72:return r.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;break;case 73:return this.pushState("BLOCK_ARROW"),r.getLogger().debug("LEX ARR START"),37;break;case 74:return r.getLogger().debug("Lex: NODE_ID",a.yytext),31;break;case 75:return r.getLogger().debug("Lex: EOF",a.yytext),8;break;case 76:this.pushState("md_string");break;case 77:this.pushState("md_string");break;case 78:return"NODE_DESCR";case 79:this.popState();break;case 80:r.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:r.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return r.getLogger().debug("LEX: NODE_DESCR:",a.yytext),"NODE_DESCR";break;case 83:r.getLogger().debug("LEX POPPING"),this.popState();break;case 84:r.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return a.yytext=a.yytext.replace(/^,\s*/,""),r.getLogger().debug("Lex (right): dir:",a.yytext),"DIR";break;case 86:return a.yytext=a.yytext.replace(/^,\s*/,""),r.getLogger().debug("Lex (left):",a.yytext),"DIR";break;case 87:return a.yytext=a.yytext.replace(/^,\s*/,""),r.getLogger().debug("Lex (x):",a.yytext),"DIR";break;case 88:return a.yytext=a.yytext.replace(/^,\s*/,""),r.getLogger().debug("Lex (y):",a.yytext),"DIR";break;case 89:return a.yytext=a.yytext.replace(/^,\s*/,""),r.getLogger().debug("Lex (up):",a.yytext),"DIR";break;case 90:return a.yytext=a.yytext.replace(/^,\s*/,""),r.getLogger().debug("Lex (down):",a.yytext),"DIR";break;case 91:return a.yytext="]>",r.getLogger().debug("Lex (ARROW_DIR end):",a.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";break;case 92:return r.getLogger().debug("Lex: LINK","#"+a.yytext+"#"),15;break;case 93:return r.getLogger().debug("Lex: LINK",a.yytext),15;break;case 94:return r.getLogger().debug("Lex: LINK",a.yytext),15;break;case 95:return r.getLogger().debug("Lex: LINK",a.yytext),15;break;case 96:return r.getLogger().debug("Lex: START_LINK",a.yytext),this.pushState("LLABEL"),16;break;case 97:return r.getLogger().debug("Lex: START_LINK",a.yytext),this.pushState("LLABEL"),16;break;case 98:return r.getLogger().debug("Lex: START_LINK",a.yytext),this.pushState("LLABEL"),16;break;case 99:this.pushState("md_string");break;case 100:return r.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";break;case 101:return this.popState(),r.getLogger().debug("Lex: LINK","#"+a.yytext+"#"),15;break;case 102:return this.popState(),r.getLogger().debug("Lex: LINK",a.yytext),15;break;case 103:return this.popState(),r.getLogger().debug("Lex: LINK",a.yytext),15;break;case 104:return r.getLogger().debug("Lex: COLON",a.yytext),a.yytext=a.yytext.slice(1),27;break}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}};return C})();w.lexer=N;function v(){this.yy={}}return c(v,"Parser"),v.prototype=w,w.Parser=v,new v})();oe.parser=oe;var Ze=oe,z=new Map,he=[],le=new Map,Oe="color",ze="fill",Qe="bgFill",Ae=",",G=new Map,ue="",$e=c(e=>ke.sanitizeText(e,ie()),"sanitizeText"),et=c(function(e,o=""){let l=G.get(e);l||(l={id:e,styles:[],textStyles:[]},G.set(e,l)),o?.split(Ae).forEach(n=>{let h=n.replace(/([^;]*);/,"$1").trim();if(RegExp(Oe).exec(n)){let s=h.replace(ze,Qe).replace(Oe,ze);l.textStyles.push(s)}l.styles.push(h)})},"addStyleClass"),tt=c(function(e,o=""){let l=z.get(e);o!=null&&(l.styles=o.split(Ae))},"addStyle2Node"),st=c(function(e,o){e.split(",").forEach(function(l){let n=z.get(l);if(n===void 0){let h=l.trim();n={id:h,type:"na",children:[]},z.set(h,n)}n.classes||(n.classes=[]),n.classes.push(o)})},"setCssClass"),Re=c((e,o)=>{let l=e.flat(),n=[],p=l.find(s=>s?.type==="column-setting")?.columns??-1;for(let s of l){if(typeof p=="number"&&p>0&&s.type!=="column-setting"&&typeof s.widthInColumns=="number"&&s.widthInColumns>p&&m.warn(`Block ${s.id} width ${s.widthInColumns} exceeds configured column width ${p}`),s.label&&(s.label=$e(s.label)),s.type==="classDef"){et(s.id,s.css);continue}if(s.type==="applyClass"){st(s.id,s?.styleClass??"");continue}if(s.type==="applyStyles"){s?.stylesStr&&tt(s.id,s?.stylesStr);continue}if(s.type==="column-setting")o.columns=s.columns??-1;else if(s.type==="edge"){let g=(le.get(s.id)??0)+1;le.set(s.id,g),s.id=g+"-"+s.id,he.push(s)}else{s.label||(s.type==="composite"?s.label="":s.label=s.id);let g=z.get(s.id);if(g===void 0?z.set(s.id,s):(s.type!=="na"&&(g.type=s.type),s.label!==s.id&&(g.label=s.label)),s.children&&Re(s.children,s),s.type==="space"){let x=s.width??1;for(let k=0;k<x;k++){let S=Ee(s);S.id=S.id+"-"+k,z.set(S.id,S),n.push(S)}}else g===void 0&&n.push(s)}}o.children=n},"populateBlockDatabase"),ge=[],W={id:"root",type:"composite",children:[],columns:-1},rt=c(()=>{m.debug("Clear called"),ye(),W={id:"root",type:"composite",children:[],columns:-1},z=new Map([["root",W]]),ge=[],G=new Map,he=[],le=new Map,ue=""},"clear");function Pe(e){switch(m.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return m.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}c(Pe,"typeStr2Type");function Fe(e){return m.debug("typeStr2Type",e),e==="=="?"thick":"normal"}c(Fe,"edgeTypeStr2Type");function Me(e){switch(e.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}c(Me,"edgeStrToEdgeData");function Ke(e){switch(e.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}c(Ke,"edgeStrToEdgeStartData");function Ye(e){return e.includes("==")?"thick":"normal"}c(Ye,"edgeStrToThickness");function We(e){return e.includes(".-")?"dotted":"solid"}c(We,"edgeStrToPattern");var Be=0,it=c(()=>(Be++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Be),"generateId"),at=c(e=>{W.children=e,Re(e,W),ge=W.children},"setHierarchy"),nt=c(e=>{let o=z.get(e);return o?o.columns?o.columns:o.children?o.children.length:-1:-1},"getColumns"),ot=c(()=>[...z.values()],"getBlocksFlat"),lt=c(()=>ge||[],"getBlocks"),ct=c(()=>he,"getEdges"),ht=c(e=>z.get(e),"getBlock"),ut=c(e=>{z.set(e.id,e)},"setBlock"),gt=c(e=>{ue=e},"setDiagramId"),dt=c(()=>ue,"getDiagramId"),pt=c(()=>m,"getLogger"),bt=c(function(){return G},"getClasses"),ft={getConfig:c(()=>M().block,"getConfig"),typeStr2Type:Pe,edgeTypeStr2Type:Fe,edgeStrToEdgeData:Me,edgeStrToEdgeStartData:Ke,edgeStrToThickness:Ye,edgeStrToPattern:We,getLogger:pt,getBlocksFlat:ot,getBlocks:lt,getEdges:ct,setHierarchy:at,getBlock:ht,setBlock:ut,getColumns:nt,getClasses:bt,clear:rt,generateId:it,setDiagramId:gt,getDiagramId:dt},St=ft,ne=c((e,o)=>{let l=Le,n=l(e,"r"),h=l(e,"g"),p=l(e,"b");return xe(n,h,p,o)},"fade"),xt=c(e=>`.label {
|
|
7
|
+
font-family: ${e.fontFamily};
|
|
8
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
9
|
+
}
|
|
10
|
+
.cluster-label text {
|
|
11
|
+
fill: ${e.titleColor};
|
|
12
|
+
}
|
|
13
|
+
.cluster-label span {
|
|
14
|
+
color: ${e.titleColor};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
.label text,span {
|
|
20
|
+
fill: ${e.nodeTextColor||e.textColor};
|
|
21
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.node rect,
|
|
25
|
+
.node circle,
|
|
26
|
+
.node ellipse,
|
|
27
|
+
.node polygon,
|
|
28
|
+
.node path {
|
|
29
|
+
fill: ${e.mainBkg};
|
|
30
|
+
stroke: ${e.nodeBorder};
|
|
31
|
+
stroke-width: 1px;
|
|
32
|
+
}
|
|
33
|
+
.flowchart-label text {
|
|
34
|
+
text-anchor: middle;
|
|
35
|
+
}
|
|
36
|
+
// .flowchart-label .text-outer-tspan {
|
|
37
|
+
// text-anchor: middle;
|
|
38
|
+
// }
|
|
39
|
+
// .flowchart-label .text-inner-tspan {
|
|
40
|
+
// text-anchor: start;
|
|
41
|
+
// }
|
|
42
|
+
|
|
43
|
+
.node .label {
|
|
44
|
+
text-align: center;
|
|
45
|
+
}
|
|
46
|
+
.node.clickable {
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.arrowheadPath {
|
|
51
|
+
fill: ${e.arrowheadColor};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.edgePaths .path {
|
|
55
|
+
stroke: ${e.lineColor};
|
|
56
|
+
stroke-width: 2.0px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.flowchart-link {
|
|
60
|
+
stroke: ${e.lineColor};
|
|
61
|
+
fill: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.edgeLabel {
|
|
65
|
+
background-color: ${e.edgeLabelBackground};
|
|
66
|
+
/*
|
|
67
|
+
* This is for backward compatibility with existing code that didn't
|
|
68
|
+
* add a \`<p>\` around edge labels.
|
|
69
|
+
*
|
|
70
|
+
* TODO: We should probably remove this in a future release.
|
|
71
|
+
*/
|
|
72
|
+
p {
|
|
73
|
+
margin: 0;
|
|
74
|
+
padding: 0;
|
|
75
|
+
display: inline;
|
|
76
|
+
}
|
|
77
|
+
rect {
|
|
78
|
+
opacity: 0.5;
|
|
79
|
+
background-color: ${e.edgeLabelBackground};
|
|
80
|
+
fill: ${e.edgeLabelBackground};
|
|
81
|
+
}
|
|
82
|
+
text-align: center;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* For html labels only */
|
|
86
|
+
.labelBkg {
|
|
87
|
+
background-color: ${e.edgeLabelBackground};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.node .cluster {
|
|
91
|
+
// fill: ${ne(e.mainBkg,.5)};
|
|
92
|
+
fill: ${ne(e.clusterBkg,.5)};
|
|
93
|
+
stroke: ${ne(e.clusterBorder,.2)};
|
|
94
|
+
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
|
|
95
|
+
stroke-width: 1px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.cluster text {
|
|
99
|
+
fill: ${e.titleColor};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.cluster span {
|
|
103
|
+
color: ${e.titleColor};
|
|
104
|
+
}
|
|
105
|
+
/* .cluster div {
|
|
106
|
+
color: ${e.titleColor};
|
|
107
|
+
} */
|
|
108
|
+
|
|
109
|
+
div.mermaidTooltip {
|
|
110
|
+
position: absolute;
|
|
111
|
+
text-align: center;
|
|
112
|
+
max-width: 200px;
|
|
113
|
+
padding: 2px;
|
|
114
|
+
font-family: ${e.fontFamily};
|
|
115
|
+
font-size: 12px;
|
|
116
|
+
background: ${e.tertiaryColor};
|
|
117
|
+
border: 1px solid ${e.border2};
|
|
118
|
+
border-radius: 2px;
|
|
119
|
+
pointer-events: none;
|
|
120
|
+
z-index: 100;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.flowchartTitleText {
|
|
124
|
+
text-anchor: middle;
|
|
125
|
+
font-size: 18px;
|
|
126
|
+
fill: ${e.textColor};
|
|
127
|
+
}
|
|
128
|
+
${Ce()}
|
|
129
|
+
`,"getStyles"),Lt=xt;function ce(e,o){if(e===0||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(o<0||!Number.isInteger(o))throw new Error("Position must be a non-negative integer."+o);if(e<0)return{px:o,py:0};if(e===1)return{px:0,py:o};let l=o%e,n=Math.floor(o/e);return{px:l,py:n}}c(ce,"calculateBlockPosition");var kt=c(e=>{let o=0,l=0;for(let n of e.children){let{width:h,height:p,x:s,y:g}=n.size??{width:0,height:0,x:0,y:0};if(m.debug("getMaxChildSize abc95 child:",n.id,"width:",h,"height:",p,"x:",s,"y:",g,n.type),n.type==="space")continue;let x=h/(n.widthInColumns??1);x>o&&(o=x),p>l&&(l=p)}return{width:o,height:l}},"getMaxChildSize");function q(e,o,l=0,n=0,h=8){m.debug("setBlockSizes abc95 (start)",e.id,e?.size?.x,"block width =",e?.size,"siblingWidth",l),e?.size?.width||(e.size={width:l,height:n,x:0,y:0});let p=0,s=0;if(e.children?.length>0){for(let f of e.children)q(f,o,0,0,h);let g=kt(e);p=g.width,s=g.height,m.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",p,s);for(let f of e.children)f.size&&(m.debug(`abc95 Setting size of children of ${e.id} id=${f.id} ${p} ${s} ${JSON.stringify(f.size)}`),f.size.width=p*(f.widthInColumns??1)+h*((f.widthInColumns??1)-1),f.size.height=s,f.size.x=0,f.size.y=0,m.debug(`abc95 updating size of ${e.id} children child:${f.id} maxWidth:${p} maxHeight:${s}`));for(let f of e.children)q(f,o,p,s,h);let x=e.columns??-1,k=0;for(let f of e.children)k+=f.widthInColumns??1;let S=e.children.length;x>0&&x<k&&(S=x);let b=Math.ceil(k/S),L=S*(p+h)+h,E=b*(s+h)+h;if(L<l){m.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${l} siblingHeight ${n} width ${L}`),L=l,E=n;let f=(l-S*h-h)/S,_=(n-b*h-h)/b;m.debug("Size indata abc88",e.id,"childWidth",f,"maxWidth",p),m.debug("Size indata abc88",e.id,"childHeight",_,"maxHeight",s),m.debug("Size indata abc88 xSize",S,"padding",h);for(let w of e.children)w.size&&(w.size.width=f,w.size.height=_,w.size.x=0,w.size.y=0)}if(m.debug(`abc95 (finale calc) ${e.id} xSize ${S} ySize ${b} columns ${x}${e.children.length} width=${Math.max(L,e.size?.width||0)}`),L<(e?.size?.width||0)){L=e?.size?.width||0;let f=x>0?Math.min(e.children.length,x):e.children.length;if(f>0){let _=(L-f*h-h)/f;m.debug("abc95 (growing to fit) width",e.id,L,e.size?.width,_);for(let w of e.children)w.size&&(w.size.width=_)}}e.size={width:L,height:E,x:0,y:0}}m.debug("setBlockSizes abc94 (done)",e.id,e?.size?.x,e?.size?.width,e?.size?.y,e?.size?.height)}c(q,"setBlockSizes");function de(e,o,l=8){m.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);let n=e.columns??-1;if(m.debug("layoutBlocks columns abc95",e.id,"=>",n,e),e.children&&e.children.length>0){let h=e?.children[0]?.size?.width??0,p=e.children.length*h+(e.children.length-1)*l;m.debug("widthOfChildren 88",p,"posX");let s=new Map;{let b=0;for(let L of e.children){if(!L.size)continue;let{py:E}=ce(n,b),f=s.get(E)??0;L.size.height>f&&s.set(E,L.size.height);let _=L?.widthInColumns??1;n>0&&(_=Math.min(_,n-b%n)),b+=_}}let g=new Map;{let b=0,L=[...s.keys()].sort((E,f)=>E-f);for(let E of L)g.set(E,b),b+=(s.get(E)??0)+l}let x=0;m.debug("abc91 block?.size?.x",e.id,e?.size?.x);let k=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-l,S=0;for(let b of e.children){let L=e;if(!b.size)continue;let{width:E,height:f}=b.size,{px:_,py:w}=ce(n,x);if(w!=S&&(S=w,k=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-l,m.debug("New row in layout for block",e.id," and child ",b.id,S)),m.debug(`abc89 layout blocks (child) id: ${b.id} Pos: ${x} (px, py) ${_},${w} (${L?.size?.x},${L?.size?.y}) parent: ${L.id} width: ${E}${l}`),L.size){let v=E/2;b.size.x=k+l+v,m.debug(`abc91 layout blocks (calc) px, pyid:${b.id} startingPos=X${k} new startingPosX${b.size.x} ${v} padding=${l} width=${E} halfWidth=${v} => x:${b.size.x} y:${b.size.y} ${b.widthInColumns} (width * (child?.w || 1)) / 2 ${E*(b?.widthInColumns??1)/2}`),k=b.size.x+v;let C=g.get(w)??0,u=s.get(w)??f;b.size.y=L.size.y-L.size.height/2+C+u/2+l,m.debug(`abc88 layout blocks (calc) px, pyid:${b.id}startingPosX${k}${l}${v}=>x:${b.size.x}y:${b.size.y}${b.widthInColumns}(width * (child?.w || 1)) / 2${E*(b?.widthInColumns??1)/2}`)}b.children&&de(b,o,l);let N=b?.widthInColumns??1;n>0&&(N=Math.min(N,n-x%n)),x+=N,m.debug("abc88 columnsPos",b,x)}}m.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`)}c(de,"layoutBlocks");function pe(e,{minX:o,minY:l,maxX:n,maxY:h}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){let{x:p,y:s,width:g,height:x}=e.size;p-g/2<o&&(o=p-g/2),s-x/2<l&&(l=s-x/2),p+g/2>n&&(n=p+g/2),s+x/2>h&&(h=s+x/2)}if(e.children)for(let p of e.children)({minX:o,minY:l,maxX:n,maxY:h}=pe(p,{minX:o,minY:l,maxX:n,maxY:h}));return{minX:o,minY:l,maxX:n,maxY:h}}c(pe,"findBounds");function Ve(e){let o=e.getBlock("root");if(!o)return;let l=ie()?.block?.padding??8;q(o,e,0,0,l),de(o,e,l),m.debug("getBlocks",JSON.stringify(o,null,2));let{minX:n,minY:h,maxX:p,maxY:s}=pe(o),g=s-h,x=p-n;return{x:n,y:h,width:x,height:g}}c(Ve,"layout");function be(e,o,l=!1){let n=e,h="default";(n?.classes?.length||0)>0&&(h=(n?.classes??[]).join(" ")),h=h+" flowchart-label";let p=(n?.classes??[]).flatMap(f=>o.getClasses().get(f)?.styles??[]),s=0,g="rect",x;switch(n.type){case"round":s=5,g="rect";break;case"composite":s=0,g="composite",x=0;break;case"square":g="rect";break;case"diamond":g="question";break;case"hexagon":g="hexagon";break;case"block_arrow":g="block_arrow";break;case"odd":g="rect_left_inv_arrow";break;case"lean_right":g="lean_right";break;case"lean_left":g="lean_left";break;case"trapezoid":g="trapezoid";break;case"inv_trapezoid":g="inv_trapezoid";break;case"rect_left_inv_arrow":g="rect_left_inv_arrow";break;case"circle":g="circle";break;case"ellipse":g="ellipse";break;case"stadium":g="stadium";break;case"subroutine":g="subroutine";break;case"cylinder":g="cylinder";break;case"group":g="rect";break;case"doublecircle":g="doublecircle";break;default:g="rect"}let k=we(n?.styles??[]),S=n.label,b=n.size??{width:0,height:0,x:0,y:0},L=o.getDiagramId();return{labelStyle:k.labelStyle,shape:g,label:S,labelText:S,rx:s,ry:s,class:h,cssClasses:h,cssStyles:n?.styles??[],cssCompiledStyles:p,style:k.style,id:n.id,domId:L?`${L}-${n.id}`:n.id,isGroup:!1,directions:n.directions,width:b.width||void 0,height:b.height||void 0,wrappingWidth:b.width||Number.POSITIVE_INFINITY,x:b.x,y:b.y,positioned:l,intersect:void 0,padding:x??M()?.block?.padding??0,widthInColumns:n.widthInColumns??1}}c(be,"getNodeFromBlock");async function je(e,o,l){let n=be(o,l,!1);if(o.type==="group")return;let h=M(),p=await ae(e,n,{config:h}),s=p.node()?.getBBox()??{width:0,height:0},g=l.getBlock(n.id);g.size={width:s.width,height:s.height,x:0,y:0,node:p},l.setBlock(g),p.remove()}c(je,"calculateBlockSize");async function Ue(e,o,l){let n=be(o,l,!0);if(l.getBlock(n.id).type!=="space"){let p=M();await ae(e,n,{config:p}),o.intersect=n?.intersect,_e(n)}}c(Ue,"insertBlockPositioned");async function J(e,o,l,n){for(let h of o)await n(e,h,l),h.children&&await J(e,h.children,l,n)}c(J,"performOperations");async function He(e,o,l){await J(e,o,l,je)}c(He,"calculateBlockSizes");async function Xe(e,o,l){await J(e,o,l,Ue)}c(Xe,"insertBlocks");async function Ge(e,o,l,n,h){let p=new ve({multigraph:!0,compound:!0});p.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(let s of l)s.size&&p.setNode(s.id,{width:s.size.width,height:s.size.height,intersect:s.intersect});for(let s of o)if(s.start&&s.end){let g=n.getBlock(s.start),x=n.getBlock(s.end);if(g?.size&&x?.size){let k=g.size,S=x.size,b=[{x:k.x,y:k.y},{x:k.x+(S.x-k.x)/2,y:k.y+(S.y-k.y)/2},{x:S.x,y:S.y}],L=h?`${h}-${s.id}`:s.id,E=s.thickness==="thick"?"edge-thickness-thick":"edge-thickness-normal",f=s.pattern==="dotted"?"edge-pattern-dotted":"edge-pattern-solid",_=`${E} ${f} flowchart-link LS-a1 LE-b1`;Ie(e,{...s,id:L,arrowTypeEnd:s.arrowTypeEnd,arrowTypeStart:s.arrowTypeStart,points:b,classes:_},{},"block",p.node(s.start),p.node(s.end),h),s.label&&(await De(e,{...s,label:s.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:s.arrowTypeEnd,arrowTypeStart:s.arrowTypeStart,points:b,classes:_}),Ne({...s,x:b[1].x,y:b[1].y},{originalPath:b}))}}}c(Ge,"insertEdges");var mt=c(function(e,o){return o.db.getClasses()},"getClasses"),yt=c(async function(e,o,l,n){let{securityLevel:h,block:p}=M(),s=n.db;s.setDiagramId(o);let g;h==="sandbox"&&(g=Y("#i"+o));let x=h==="sandbox"?Y(g.nodes()[0].contentDocument.body):Y("body"),k=h==="sandbox"?x.select(`[id="${o}"]`):Y(`[id="${o}"]`);Te(k,["point","circle","cross"],n.type,o);let b=s.getBlocks(),L=s.getBlocksFlat(),E=s.getEdges(),f=k.insert("g").attr("class","block");await He(f,b,s);let _=Ve(s);await Xe(f,b,s),await Ge(f,E,L,s,o);let w=f.node()?.getBBox(),N=w&&Number.isFinite(w.width)&&Number.isFinite(w.height)?w:_;if(N){let v=Math.max(1,Math.round(.125*(N.width/N.height))),C=N.height+v+10,u=N.width+10,{useMaxWidth:r}=p;me(k,C,u,!!r),m.debug("Here Bounds",_,N),k.attr("viewBox",`${N.x-5} ${N.y-5} ${N.width+10} ${N.height+10}`)}},"draw"),Et={draw:yt,getClasses:mt},Kt={parser:Ze,db:St,renderer:Et,styles:Lt};export{Kt as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-SQE76S5B.js";var s=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),c=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],d=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],m=[...c,...d],b=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),g=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),p=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),f=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function h(t){let i=t.regex,e=s(t),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},n="and or not only",a=/@-?\w[\w]*(-\w+)*/,l="[a-zA-Z-][a-zA-Z0-9_-]*",o=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[e.BLOCK_COMMENT,r,e.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+l,relevance:0},e.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+g.join("|")+")"},{begin:":(:)?("+p.join("|")+")"}]},e.CSS_VARIABLE,{className:"attribute",begin:"\\b("+f.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[e.BLOCK_COMMENT,e.HEXCOLOR,e.IMPORTANT,e.CSS_NUMBER_MODE,e.UNICODE_RANGE,...o,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...o,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},e.FUNCTION_DISPATCH]},{begin:i.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:a},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:n,attribute:b.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...o,e.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+m.join("|")+")\\b"}]}}export{h as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-SQE76S5B.js";function S(t){let n=t.regex,a=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),l="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",E="("+l+"|"+n.optional(r)+"[a-zA-Z_]\\w*"+n.optional("<[^<>]+>")+")",f=n.concat(/\batomic_/,n.either("bool","char","schar","uchar","short","ushort","int","uint","long","ulong","llong","ullong","char16_t","char32_t","wchar_t","int_least8_t","uint_least8_t","int_least16_t","uint_least16_t","int_least32_t","uint_least32_t","int_least64_t","uint_least64_t","int_fast8_t","uint_fast8_t","int_fast16_t","uint_fast16_t","int_fast32_t","uint_fast32_t","int_fast64_t","uint_fast64_t","intptr_t","uintptr_t","size_t","ptrdiff_t","intmax_t","uintmax_t"),/\b/),i={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:f}]},s={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},o={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},m={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},s,{scope:"string",begin:/<.*?>/},a,t.C_BLOCK_COMMENT_MODE]},u={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(s,{className:"string"}),a,t.C_BLOCK_COMMENT_MODE]},c=[m,u],p={className:"title",begin:n.optional(r)+t.IDENT_RE,relevance:0},d=n.optional(r)+t.IDENT_RE+"\\s*\\(",g=12,e={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},_=[...c,i,a,t.C_BLOCK_COMMENT_MODE,o,s],C={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:e,contains:_.concat([{begin:/\(/,end:/\)/,keywords:e,contains:_.concat(["self"]),relevance:0}]),relevance:0},b={begin:"("+E+"[\\*&\\s]+){1,"+g+"}"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:e,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:l,keywords:e,relevance:0},{begin:d,returnBegin:!0,contains:[t.inherit(p,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:e,relevance:0,contains:[a,t.C_BLOCK_COMMENT_MODE,s,o,i,{begin:/\(/,end:/\)/,keywords:e,relevance:0,contains:["self",a,t.C_BLOCK_COMMENT_MODE,s,o,i]}]},i,a,t.C_BLOCK_COMMENT_MODE,...c]};return{name:"C",aliases:["h"],keywords:e,disableAutodetect:!0,illegal:"</",contains:[].concat(C,b,_,[...c,{begin:t.IDENT_RE+"::",keywords:e},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{preprocessor:u,strings:s,keywords:e}}}export{S as default};
|