mio-previewer 0.1.2 → 0.1.4
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/dist/AlertPlugin-B74_-nlo.cjs +3 -0
- package/dist/AlertPlugin-DUG0ldg_.js +66 -0
- package/dist/{MdRenderer.vue_vue_type_style_index_0_lang-ClzqKjX4.js → MdRenderer.vue_vue_type_style_index_0_lang-B26E5SLd.js} +1 -1
- package/dist/{MdRenderer.vue_vue_type_style_index_0_lang-Dpnz3CdM.cjs → MdRenderer.vue_vue_type_style_index_0_lang-CT8VuqF6.cjs} +1 -1
- package/dist/{_basePickBy-nvL1-X4h.js → _basePickBy-ClXR16YL.js} +11 -11
- package/dist/_basePickBy-wjzVR2ZI.cjs +1 -0
- package/dist/_baseUniq-BtmrXn_-.cjs +1 -0
- package/dist/{_baseUniq-Cwhfu1XM.js → _baseUniq-BvAvxwqe.js} +13 -13
- package/dist/arc-CBMtpv9r.cjs +1 -0
- package/dist/{arc-C9I4pYLv.js → arc-Hx3N9DvE.js} +1 -1
- package/dist/{architecture-O4VJ6CD3-dKuizgWO.cjs → architecture-O4VJ6CD3-BNArGrzK.cjs} +1 -1
- package/dist/{architecture-O4VJ6CD3-D00QJU0o.js → architecture-O4VJ6CD3-xCUefH5y.js} +1 -1
- package/dist/{architectureDiagram-VXUJARFQ-VWr1UuPv.js → architectureDiagram-VXUJARFQ-B6mJb2i9.js} +20 -21
- package/dist/architectureDiagram-VXUJARFQ-BJuzZIv9.cjs +36 -0
- package/dist/{blockDiagram-VD42YOAC-DuC96I2Q.js → blockDiagram-VD42YOAC-BGxFHnMs.js} +5 -5
- package/dist/{blockDiagram-VD42YOAC-EC2x5LwN.cjs → blockDiagram-VD42YOAC-CG3089Xu.cjs} +1 -1
- package/dist/{c4Diagram-YG6GDRKO-Dm5d0BWL.cjs → c4Diagram-YG6GDRKO-Cmg_2WS3.cjs} +1 -1
- package/dist/{c4Diagram-YG6GDRKO-OB8wIuF8.js → c4Diagram-YG6GDRKO-Rr7zONcv.js} +2 -2
- package/dist/channel-BleEicRr.cjs +1 -0
- package/dist/{channel-C-uR528Z.js → channel-DgGKpNRA.js} +1 -1
- package/dist/{chunk-4BX2VUAB-j8LeaMvy.js → chunk-4BX2VUAB-BbICN0Ec.js} +1 -1
- package/dist/chunk-4BX2VUAB-Bt9zCVip.cjs +1 -0
- package/dist/chunk-55IACEB6-CBJvnwMn.cjs +1 -0
- package/dist/{chunk-55IACEB6-IYAIzfR4.js → chunk-55IACEB6-DYOSrdgH.js} +1 -1
- package/dist/{chunk-B4BG7PRW-DB5df3Iz.js → chunk-B4BG7PRW-TxrPoDdp.js} +4 -4
- package/dist/{chunk-B4BG7PRW-CpqTB0S5.cjs → chunk-B4BG7PRW-l7q-a31H.cjs} +1 -1
- package/dist/{chunk-DI55MBZ5-wqsoqtNw.cjs → chunk-DI55MBZ5-Bp0pNyM4.cjs} +1 -1
- package/dist/{chunk-DI55MBZ5-BoFZpvY3.js → chunk-DI55MBZ5-CsB2AXBx.js} +3 -3
- package/dist/{chunk-FMBD7UC4-BZS_4hun.cjs → chunk-FMBD7UC4-BcpCv0n4.cjs} +1 -1
- package/dist/{chunk-FMBD7UC4-CdmoYYnM.js → chunk-FMBD7UC4-D5PKNbki.js} +1 -1
- package/dist/chunk-QN33PNHL-B1Px0282.cjs +1 -0
- package/dist/{chunk-QN33PNHL-BuyP9RXS.js → chunk-QN33PNHL-B5zdVrte.js} +1 -1
- package/dist/{chunk-QZHKN3VN-15dJyQk0.js → chunk-QZHKN3VN-C-Vfb6xz.js} +1 -1
- package/dist/chunk-QZHKN3VN-Dg1DeAnJ.cjs +1 -0
- package/dist/chunk-TZMSLE5B-Bd4ivTqX.cjs +1 -0
- package/dist/{chunk-TZMSLE5B-BgFWf03M.js → chunk-TZMSLE5B-xm8uzxSg.js} +1 -1
- package/dist/{classDiagram-2ON5EDUG-BQz3UzKi.js → classDiagram-2ON5EDUG-CK_iHiNY.js} +2 -2
- package/dist/classDiagram-2ON5EDUG-DaNkCwSZ.cjs +1 -0
- package/dist/{classDiagram-v2-WZHVMYZB-BQz3UzKi.js → classDiagram-v2-WZHVMYZB-CK_iHiNY.js} +2 -2
- package/dist/classDiagram-v2-WZHVMYZB-DaNkCwSZ.cjs +1 -0
- package/dist/{clone-D6h_cwF4.js → clone-Bha0jTOw.js} +1 -1
- package/dist/clone-C1QAYyzI.cjs +1 -0
- package/dist/cose-bilkent-S5V4N54A-CV1wgztW.cjs +1 -0
- package/dist/{cose-bilkent-S5V4N54A-D2q7jBXB.js → cose-bilkent-S5V4N54A-hCsgqyKM.js} +5 -6
- package/dist/{plugin-mermaid-y4lbJ7sL.js → custom-B4yTjcNy.js} +8845 -5380
- package/dist/custom-DUStvHau.cjs +263 -0
- package/dist/{dagre-6UL2VRFP-Cfh4UdSr.js → dagre-6UL2VRFP-DgeWg1SE.js} +108 -108
- package/dist/dagre-6UL2VRFP-yXKAxpPT.cjs +4 -0
- package/dist/{diagram-PSM6KHXK-BZDEX43o.js → diagram-PSM6KHXK-Cvtq1BMM.js} +16 -16
- package/dist/diagram-PSM6KHXK-D8-R7SoU.cjs +24 -0
- package/dist/diagram-QEK2KX5R-BJwfOJRv.cjs +43 -0
- package/dist/{diagram-QEK2KX5R-Dda_FEDc.js → diagram-QEK2KX5R-Bk1U0LhS.js} +3 -3
- package/dist/{diagram-S2PKOQOG-Cnw4b7LB.js → diagram-S2PKOQOG-C1GhQvXr.js} +3 -3
- package/dist/diagram-S2PKOQOG-CrU1lFAd.cjs +24 -0
- package/dist/entries/md.cjs.js +1 -1
- package/dist/entries/md.es.js +1 -1
- package/dist/{erDiagram-Q2GNP2WA-qAdA8fbE.js → erDiagram-Q2GNP2WA-BW644HGe.js} +4 -4
- package/dist/{erDiagram-Q2GNP2WA-DE4JLeNF.cjs → erDiagram-Q2GNP2WA-DwCMcLlJ.cjs} +1 -1
- package/dist/{flowDiagram-NV44I4VS-j3dB-fjF.cjs → flowDiagram-NV44I4VS-CwBt-lqk.cjs} +1 -1
- package/dist/{flowDiagram-NV44I4VS-C7YBx4JP.js → flowDiagram-NV44I4VS-wXa2zQjd.js} +5 -5
- package/dist/ganttDiagram-LVOFAZNH-CFZ-PmU5.cjs +267 -0
- package/dist/{ganttDiagram-LVOFAZNH-BL-Yjadx.js → ganttDiagram-LVOFAZNH-DEQvlmR2.js} +55 -56
- package/dist/{gitGraph-ZV4HHKMB-Dr9sn7R3.js → gitGraph-ZV4HHKMB-Bd_PHDMp.js} +1 -1
- package/dist/{gitGraph-ZV4HHKMB-DyXW77WY.cjs → gitGraph-ZV4HHKMB-CbfGP-N9.cjs} +1 -1
- package/dist/gitGraphDiagram-NY62KEGX-j4D9jXL4.cjs +65 -0
- package/dist/{gitGraphDiagram-NY62KEGX-DFn7h5BH.js → gitGraphDiagram-NY62KEGX-xl70htLN.js} +4 -4
- package/dist/graph-6iViBDku.cjs +1 -0
- package/dist/{graph-DiGqaw_6.js → graph-D6yOZd92.js} +7 -7
- package/dist/info-63CPKGFF-du1jd1Lv.js +5 -0
- package/dist/{info-63CPKGFF-BGxbI0Qv.cjs → info-63CPKGFF-gOwyweiZ.cjs} +1 -1
- package/dist/{infoDiagram-F6ZHWCRC-DOtGa28U.js → infoDiagram-F6ZHWCRC-BfGS0mg6.js} +2 -2
- package/dist/infoDiagram-F6ZHWCRC-Vx_DX2z8.cjs +2 -0
- package/dist/{journeyDiagram-XKPGCS4Q-bJncB3oe.js → journeyDiagram-XKPGCS4Q-C74m57vy.js} +4 -4
- package/dist/{journeyDiagram-XKPGCS4Q-h-CtcfbS.cjs → journeyDiagram-XKPGCS4Q-Cwfm3gkE.cjs} +1 -1
- package/dist/{kanban-definition-3W4ZIXB7-C3y0C_bw.cjs → kanban-definition-3W4ZIXB7-CgUhoGem.cjs} +3 -3
- package/dist/{kanban-definition-3W4ZIXB7-nMPCi8GW.js → kanban-definition-3W4ZIXB7-Zs307aAz.js} +2 -2
- package/dist/{layout-CHaNS4g6.js → layout-BVJXml4k.js} +33 -33
- package/dist/layout-DiSbzXpp.cjs +1 -0
- package/dist/{linear-CPFNaVnw.js → linear-BE7L7Wq8.js} +5 -5
- package/dist/linear-CF8o0osj.cjs +1 -0
- package/dist/{mermaid-parser.core-CkQKh-yb.js → mermaid-parser.core-CvS4VcbX.js} +11 -11
- package/dist/{mermaid-parser.core-CR8Rcyps.cjs → mermaid-parser.core-D8AljRep.cjs} +2 -2
- package/dist/{mindmap-definition-VGOIOE7T-C63AEIdU.js → mindmap-definition-VGOIOE7T-BAXsNT0n.js} +3 -3
- package/dist/{mindmap-definition-VGOIOE7T-CHI9UFtA.cjs → mindmap-definition-VGOIOE7T-BidsJOPm.cjs} +1 -1
- package/dist/mio-previewer.cjs.js +2 -2
- package/dist/mio-previewer.css +1 -1
- package/dist/mio-previewer.es.js +12 -4
- package/dist/{packet-HUATNLJX-dnmrn2-l.js → packet-HUATNLJX-B1eLognS.js} +1 -1
- package/dist/{packet-HUATNLJX-BeAGxpDF.cjs → packet-HUATNLJX-CgY4KC5-.cjs} +1 -1
- package/dist/{pie-WTHONI2E-BifrFKgo.cjs → pie-WTHONI2E-DBm7_2Ma.cjs} +1 -1
- package/dist/pie-WTHONI2E-RplLoGbc.js +5 -0
- package/dist/{pieDiagram-ADFJNKIX-CEMFAt9B.js → pieDiagram-ADFJNKIX-CWK1C9xc.js} +4 -4
- package/dist/{pieDiagram-ADFJNKIX-B9OONHi_.cjs → pieDiagram-ADFJNKIX-DTKW3svv.cjs} +1 -1
- package/dist/plugins/custom.cjs.js +1 -0
- package/dist/plugins/custom.es.js +6 -0
- package/dist/plugins/markdown-it.cjs.js +1 -0
- package/dist/{entries/plugin-katex.es.js → plugins/markdown-it.es.js} +20 -7
- package/dist/{quadrantDiagram-AYHSOK5B-DobvzsAU.js → quadrantDiagram-AYHSOK5B-BNrGATyu.js} +2 -2
- package/dist/{quadrantDiagram-AYHSOK5B-DqXDgyBD.cjs → quadrantDiagram-AYHSOK5B-qLZyIHgG.cjs} +3 -3
- package/dist/radar-NJJJXTRR-DRmyBDWp.js +5 -0
- package/dist/{radar-NJJJXTRR-BPN19Spv.cjs → radar-NJJJXTRR-EpcDInzR.cjs} +1 -1
- package/dist/{requirementDiagram-UZGBJVZJ-CVbmNF7M.cjs → requirementDiagram-UZGBJVZJ-BTCSXGaW.cjs} +1 -1
- package/dist/{requirementDiagram-UZGBJVZJ-M-MPvTnX.js → requirementDiagram-UZGBJVZJ-CkxxLi7P.js} +3 -3
- package/dist/sankeyDiagram-TZEHDZUN-BNlI2aP-.cjs +10 -0
- package/dist/{sankeyDiagram-TZEHDZUN-Czsin99f.js → sankeyDiagram-TZEHDZUN-DJ1q5E3K.js} +1 -1
- package/dist/{sequenceDiagram-WL72ISMW-DApIQwP-.cjs → sequenceDiagram-WL72ISMW-CjMzI1c2.cjs} +1 -1
- package/dist/{sequenceDiagram-WL72ISMW-BJByNQsK.js → sequenceDiagram-WL72ISMW-nQ6UBL1y.js} +3 -3
- package/dist/stateDiagram-FKZM4ZOC-BBEPk90z.cjs +1 -0
- package/dist/{stateDiagram-FKZM4ZOC-jAiBDhVn.js → stateDiagram-FKZM4ZOC-Dr_-m8dE.js} +4 -4
- package/dist/{stateDiagram-v2-4FDKWEC3-umSVoFht.js → stateDiagram-v2-4FDKWEC3-CG--f0tc.js} +2 -2
- package/dist/stateDiagram-v2-4FDKWEC3-D7NtOxif.cjs +1 -0
- package/dist/{timeline-definition-IT6M3QCI-BfAvK0gf.cjs → timeline-definition-IT6M3QCI-2DClSZLV.cjs} +3 -3
- package/dist/{timeline-definition-IT6M3QCI-I--lBLTi.js → timeline-definition-IT6M3QCI-d0F8eBhC.js} +2 -2
- package/dist/{treemap-75Q7IDZK-bjql9DgL.js → treemap-75Q7IDZK-BBuuvHE0.js} +1 -1
- package/dist/{treemap-75Q7IDZK-DNt-zuL8.cjs → treemap-75Q7IDZK-CI86AmBT.cjs} +1 -1
- package/dist/types/entries/plugins/custom.d.ts +3 -0
- package/dist/types/entries/plugins/markdown-it.d.ts +2 -0
- package/dist/types/helpers/containerHelpers.d.ts +11 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/plugins/AlertPlugin.d.ts +10 -8
- package/dist/{xychartDiagram-PRI3JC2R-BN9e47xe.cjs → xychartDiagram-PRI3JC2R-BkUjTJNu.cjs} +1 -1
- package/dist/{xychartDiagram-PRI3JC2R-XrOK_egj.js → xychartDiagram-PRI3JC2R-DLXTvnDG.js} +2 -2
- package/package.json +12 -32
- package/dist/_basePickBy-CZxbwAvt.cjs +0 -1
- package/dist/_baseUniq-DunUk-cd.cjs +0 -1
- package/dist/_commonjsHelpers-DKOUU3wS.cjs +0 -1
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/arc-fCflz0gB.cjs +0 -1
- package/dist/architectureDiagram-VXUJARFQ-DQ-YD3RX.cjs +0 -36
- package/dist/channel-YfH5CBV-.cjs +0 -1
- package/dist/chunk-4BX2VUAB-3Liht_XN.cjs +0 -1
- package/dist/chunk-55IACEB6-Dm3mi3ha.cjs +0 -1
- package/dist/chunk-QN33PNHL-CHI_-zix.cjs +0 -1
- package/dist/chunk-QZHKN3VN-DfH9qQ3T.cjs +0 -1
- package/dist/chunk-TZMSLE5B-qIo1h7Gz.cjs +0 -1
- package/dist/classDiagram-2ON5EDUG-CZWeacVd.cjs +0 -1
- package/dist/classDiagram-v2-WZHVMYZB-CZWeacVd.cjs +0 -1
- package/dist/clone-ByeQKKoW.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-5dO3qpr4.cjs +0 -1
- package/dist/dagre-6UL2VRFP-DS2Ki9Dv.cjs +0 -4
- package/dist/diagram-PSM6KHXK-CTsP6f2a.cjs +0 -24
- package/dist/diagram-QEK2KX5R-BDKMNi97.cjs +0 -43
- package/dist/diagram-S2PKOQOG-CmfsKOvs.cjs +0 -24
- package/dist/entries/plugin-alert.cjs.js +0 -1
- package/dist/entries/plugin-alert.es.js +0 -27
- package/dist/entries/plugin-codeblock.cjs.js +0 -9
- package/dist/entries/plugin-codeblock.es.js +0 -3441
- package/dist/entries/plugin-emoji.cjs.js +0 -1
- package/dist/entries/plugin-emoji.es.js +0 -28
- package/dist/entries/plugin-katex.cjs.js +0 -1
- package/dist/entries/plugin-mermaid.cjs.js +0 -1
- package/dist/entries/plugin-mermaid.es.js +0 -4
- package/dist/ganttDiagram-LVOFAZNH-CBhzET57.cjs +0 -267
- package/dist/gitGraphDiagram-NY62KEGX-DDklxVnY.cjs +0 -65
- package/dist/graph-CHoeKkVR.cjs +0 -1
- package/dist/info-63CPKGFF-xflgSxfH.js +0 -5
- package/dist/infoDiagram-F6ZHWCRC-Duylo4r7.cjs +0 -2
- package/dist/layout-BG4AbhIW.cjs +0 -1
- package/dist/linear-Bqd4C_Yb.cjs +0 -1
- package/dist/pie-WTHONI2E-BKoHQt0i.js +0 -5
- package/dist/plugin-mermaid-FTki7cN8.cjs +0 -255
- package/dist/radar-NJJJXTRR-Bj9rI8mr.js +0 -5
- package/dist/sankeyDiagram-TZEHDZUN-C-ESiLJA.cjs +0 -10
- package/dist/stateDiagram-FKZM4ZOC-BuKL2w66.cjs +0 -1
- package/dist/stateDiagram-v2-4FDKWEC3-Ct5PFxdd.cjs +0 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./custom-DUStvHau.cjs"),L=require("./chunk-4BX2VUAB-Bt9zCVip.cjs"),O=require("./mermaid-parser.core-D8AljRep.cjs");var h={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y={axes:[],curves:[],options:h},p=structuredClone(y),S=n.defaultConfig_default.radar,k=n.__name(()=>n.cleanAndMerge({...S,...n.getConfig().radar}),"getConfig"),f=n.__name(()=>p.axes,"getAxes"),D=n.__name(()=>p.curves,"getCurves"),R=n.__name(()=>p.options,"getOptions"),I=n.__name(a=>{p.axes=a.map(e=>({name:e.name,label:e.label??e.name}))},"setAxes"),E=n.__name(a=>{p.curves=a.map(e=>({name:e.name,label:e.label??e.name,entries:F(e.entries)}))},"setCurves"),F=n.__name(a=>{if(a[0].axis==null)return a.map(t=>t.value);const e=f();if(e.length===0)throw new Error("Axes must be populated before curves for reference entries");return e.map(t=>{const r=a.find(s=>s.axis?.$refText===t.name);if(r===void 0)throw new Error("Missing entry for axis "+t.label);return r.value})},"computeCurveEntries"),P=n.__name(a=>{const e=a.reduce((t,r)=>(t[r.name]=r,t),{});p.options={showLegend:e.showLegend?.value??h.showLegend,ticks:e.ticks?.value??h.ticks,max:e.max?.value??h.max,min:e.min?.value??h.min,graticule:e.graticule?.value??h.graticule}},"setOptions"),G=n.__name(()=>{n.clear(),p=structuredClone(y)},"clear"),_={getAxes:f,getCurves:D,getOptions:R,setAxes:I,setCurves:E,setOptions:P,getConfig:k,clear:G,setAccTitle:n.setAccTitle,getAccTitle:n.getAccTitle,setDiagramTitle:n.setDiagramTitle,getDiagramTitle:n.getDiagramTitle,getAccDescription:n.getAccDescription,setAccDescription:n.setAccDescription},z=n.__name(a=>{L.populateCommonDb(a,_);const{axes:e,curves:t,options:r}=a;_.setAxes(e),_.setCurves(t),_.setOptions(r)},"populate"),B={parse:n.__name(async a=>{const e=await O.parse("radar",a);n.log.debug(e),z(e)},"parse")},V=n.__name((a,e,t,r)=>{const s=r.db,o=s.getAxes(),l=s.getCurves(),i=s.getOptions(),c=s.getConfig(),d=s.getDiagramTitle(),m=n.selectSvgElement(e),u=W(m,c),g=i.max??Math.max(...l.map($=>Math.max(...$.entries))),x=i.min,v=Math.min(c.width,c.height)/2;j(u,o,v,i.ticks,i.graticule),q(u,o,v,c),C(u,o,l,x,g,i.graticule,c),A(u,l,i.showLegend,c),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-c.height/2-c.marginTop)},"draw"),W=n.__name((a,e)=>{const t=e.width+e.marginLeft+e.marginRight,r=e.height+e.marginTop+e.marginBottom,s={x:e.marginLeft+e.width/2,y:e.marginTop+e.height/2};return a.attr("viewbox",`0 0 ${t} ${r}`).attr("width",t).attr("height",r),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),j=n.__name((a,e,t,r,s)=>{if(s==="circle")for(let o=0;o<r;o++){const l=t*(o+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const o=e.length;for(let l=0;l<r;l++){const i=t*(l+1)/r,c=e.map((d,m)=>{const u=2*m*Math.PI/o-Math.PI/2,g=i*Math.cos(u),x=i*Math.sin(u);return`${g},${x}`}).join(" ");a.append("polygon").attr("points",c).attr("class","radarGraticule")}}},"drawGraticule"),q=n.__name((a,e,t,r)=>{const s=e.length;for(let o=0;o<s;o++){const l=e[o].label,i=2*o*Math.PI/s-Math.PI/2;a.append("line").attr("x1",0).attr("y1",0).attr("x2",t*r.axisScaleFactor*Math.cos(i)).attr("y2",t*r.axisScaleFactor*Math.sin(i)).attr("class","radarAxisLine"),a.append("text").text(l).attr("x",t*r.axisLabelFactor*Math.cos(i)).attr("y",t*r.axisLabelFactor*Math.sin(i)).attr("class","radarAxisLabel")}},"drawAxes");function C(a,e,t,r,s,o,l){const i=e.length,c=Math.min(l.width,l.height)/2;t.forEach((d,m)=>{if(d.entries.length!==i)return;const u=d.entries.map((g,x)=>{const v=2*Math.PI*x/i-Math.PI/2,$=w(g,r,s,c),M=$*Math.cos(v),T=$*Math.sin(v);return{x:M,y:T}});o==="circle"?a.append("path").attr("d",b(u,l.curveTension)).attr("class",`radarCurve-${m}`):o==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${m}`)})}n.__name(C,"drawCurves");function w(a,e,t,r){const s=Math.min(Math.max(a,e),t);return r*(s-e)/(t-e)}n.__name(w,"relativeRadius");function b(a,e){const t=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<t;s++){const o=a[(s-1+t)%t],l=a[s],i=a[(s+1)%t],c=a[(s+2)%t],d={x:l.x+(i.x-o.x)*e,y:l.y+(i.y-o.y)*e},m={x:i.x-(c.x-l.x)*e,y:i.y-(c.y-l.y)*e};r+=` C${d.x},${d.y} ${m.x},${m.y} ${i.x},${i.y}`}return`${r} Z`}n.__name(b,"closedRoundCurve");function A(a,e,t,r){if(!t)return;const s=(r.width/2+r.marginRight)*3/4,o=-(r.height/2+r.marginTop)*3/4,l=20;e.forEach((i,c)=>{const d=a.append("g").attr("transform",`translate(${s}, ${o+c*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${c}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(i.label)})}n.__name(A,"drawLegend");var H={draw:V},U=n.__name((a,e)=>{let t="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];t+=`
|
|
2
|
+
.radarCurve-${r} {
|
|
3
|
+
color: ${s};
|
|
4
|
+
fill: ${s};
|
|
5
|
+
fill-opacity: ${e.curveOpacity};
|
|
6
|
+
stroke: ${s};
|
|
7
|
+
stroke-width: ${e.curveStrokeWidth};
|
|
8
|
+
}
|
|
9
|
+
.radarLegendBox-${r} {
|
|
10
|
+
fill: ${s};
|
|
11
|
+
fill-opacity: ${e.curveOpacity};
|
|
12
|
+
stroke: ${s};
|
|
13
|
+
}
|
|
14
|
+
`}return t},"genIndexStyles"),X=n.__name(a=>{const e=n.getThemeVariables3(),t=n.getConfig(),r=n.cleanAndMerge(e,t.themeVariables),s=n.cleanAndMerge(r.radar,a);return{themeVariables:r,radarOptions:s}},"buildRadarStyleOptions"),N=n.__name(({radar:a}={})=>{const{themeVariables:e,radarOptions:t}=X(a);return`
|
|
15
|
+
.radarTitle {
|
|
16
|
+
font-size: ${e.fontSize};
|
|
17
|
+
color: ${e.titleColor};
|
|
18
|
+
dominant-baseline: hanging;
|
|
19
|
+
text-anchor: middle;
|
|
20
|
+
}
|
|
21
|
+
.radarAxisLine {
|
|
22
|
+
stroke: ${t.axisColor};
|
|
23
|
+
stroke-width: ${t.axisStrokeWidth};
|
|
24
|
+
}
|
|
25
|
+
.radarAxisLabel {
|
|
26
|
+
dominant-baseline: middle;
|
|
27
|
+
text-anchor: middle;
|
|
28
|
+
font-size: ${t.axisLabelFontSize}px;
|
|
29
|
+
color: ${t.axisColor};
|
|
30
|
+
}
|
|
31
|
+
.radarGraticule {
|
|
32
|
+
fill: ${t.graticuleColor};
|
|
33
|
+
fill-opacity: ${t.graticuleOpacity};
|
|
34
|
+
stroke: ${t.graticuleColor};
|
|
35
|
+
stroke-width: ${t.graticuleStrokeWidth};
|
|
36
|
+
}
|
|
37
|
+
.radarLegendText {
|
|
38
|
+
text-anchor: start;
|
|
39
|
+
font-size: ${t.legendFontSize}px;
|
|
40
|
+
dominant-baseline: hanging;
|
|
41
|
+
}
|
|
42
|
+
${U(e,t)}
|
|
43
|
+
`},"styles"),Y={parser:B,db:_,renderer:H,styles:N};exports.diagram=Y;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as l, s as k, g as R, q as E, p as F, a as I, b as _, H as D, y as G, D as f, E as C, F as P, l as z, K as H } from "./
|
|
2
|
-
import { p as V } from "./chunk-4BX2VUAB-
|
|
3
|
-
import { p as W } from "./mermaid-parser.core-
|
|
1
|
+
import { _ as l, s as k, g as R, q as E, p as F, a as I, b as _, H as D, y as G, D as f, E as C, F as P, l as z, K as H } from "./custom-B4yTjcNy.js";
|
|
2
|
+
import { p as V } from "./chunk-4BX2VUAB-BbICN0Ec.js";
|
|
3
|
+
import { p as W } from "./mermaid-parser.core-CvS4VcbX.js";
|
|
4
4
|
var x = {
|
|
5
5
|
showLegend: !0,
|
|
6
6
|
ticks: 5,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as b, D as m, H as B, e as C, l as w, b as S, a as D, p as T, q as E, g as F, s as P, E as z, F as A, y as W } from "./
|
|
2
|
-
import { p as _ } from "./chunk-4BX2VUAB-
|
|
3
|
-
import { p as N } from "./mermaid-parser.core-
|
|
1
|
+
import { _ as b, D as m, H as B, e as C, l as w, b as S, a as D, p as T, q as E, g as F, s as P, E as z, F as A, y as W } from "./custom-B4yTjcNy.js";
|
|
2
|
+
import { p as _ } from "./chunk-4BX2VUAB-BbICN0Ec.js";
|
|
3
|
+
import { p as N } from "./mermaid-parser.core-CvS4VcbX.js";
|
|
4
4
|
var L = A.packet, u, v = (u = class {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.packet = [], this.setAccTitle = S, this.getAccTitle = D, this.setDiagramTitle = T, this.getDiagramTitle = E, this.getAccDescription = F, this.setAccDescription = P;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./custom-DUStvHau.cjs"),x=require("./chunk-4BX2VUAB-Bt9zCVip.cjs"),B=require("./mermaid-parser.core-D8AljRep.cjs");var $=a.defaultConfig_default.packet,b,m=(b=class{constructor(){this.packet=[],this.setAccTitle=a.setAccTitle,this.getAccTitle=a.getAccTitle,this.setDiagramTitle=a.setDiagramTitle,this.getDiagramTitle=a.getDiagramTitle,this.getAccDescription=a.getAccDescription,this.setAccDescription=a.setAccDescription}getConfig(){const t=a.cleanAndMerge({...$,...a.getConfig().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){a.clear(),this.packet=[]}},a.__name(b,"PacketDB"),b),C=1e4,_=a.__name((e,t)=>{x.populateCommonDb(e,t);let o=-1,i=[],l=1;const{bitsPerRow:c}=t.getConfig();for(let{start:r,end:n,bits:p,label:d}of e.blocks){if(r!==void 0&&n!==void 0&&n<r)throw new Error(`Packet block ${r} - ${n} is invalid. End must be greater than start.`);if(r??=o+1,r!==o+1)throw new Error(`Packet block ${r} - ${n??r} is not contiguous. It should start from ${o+1}.`);if(p===0)throw new Error(`Packet block ${r} is invalid. Cannot have a zero bit field.`);for(n??=r+(p??1)-1,p??=n-r+1,o=n,a.log.debug(`Packet block ${r} - ${o} with label ${d}`);i.length<=c+1&&t.getPacket().length<C;){const[g,s]=S({start:r,end:n,bits:p,label:d},l,c);if(i.push(g),g.end+1===l*c&&(t.pushWord(i),i=[],l++),!s)break;({start:r,end:n,bits:p,label:d}=s)}}t.pushWord(i)},"populate"),S=a.__name((e,t,o)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*o)return[e,void 0];const i=t*o-1,l=t*o;return[{start:e.start,end:i,label:e.label,bits:i-e.start},{start:l,end:e.end,label:e.label,bits:e.end-l}]},"getNextFittingBlock"),w={parser:{yy:void 0},parse:a.__name(async e=>{const t=await B.parse("packet",e),o=w.parser?.yy;if(!(o instanceof m))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");a.log.debug(t),_(t,o)},"parse")},P=a.__name((e,t,o,i)=>{const l=i.db,c=l.getConfig(),{rowHeight:r,paddingY:n,bitWidth:p,bitsPerRow:d}=c,g=l.getPacket(),s=l.getDiagramTitle(),k=r+n,h=k*(g.length+1)-(s?0:r),u=p*d+2,f=a.selectSvgElement(t);f.attr("viewbox",`0 0 ${u} ${h}`),a.configureSvgSize(f,h,u,c.useMaxWidth);for(const[v,y]of g.entries())T(f,y,v,c);f.append("text").text(s).attr("x",u/2).attr("y",h-k/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),T=a.__name((e,t,o,{rowHeight:i,paddingX:l,paddingY:c,bitWidth:r,bitsPerRow:n,showBits:p})=>{const d=e.append("g"),g=o*(i+c)+c;for(const s of t){const k=s.start%n*r+1,h=(s.end-s.start+1)*r-l;if(d.append("rect").attr("x",k).attr("y",g).attr("width",h).attr("height",i).attr("class","packetBlock"),d.append("text").attr("x",k+h/2).attr("y",g+i/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(s.label),!p)continue;const u=s.end===s.start,f=g-2;d.append("text").attr("x",k+(u?h/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",u?"middle":"start").text(s.start),u||d.append("text").attr("x",k+h).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(s.end)}},"drawWord"),D={draw:P},A={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},z=a.__name(({packet:e}={})=>{const t=a.cleanAndMerge(A,e);return`
|
|
2
|
+
.packetByte {
|
|
3
|
+
font-size: ${t.byteFontSize};
|
|
4
|
+
}
|
|
5
|
+
.packetByte.start {
|
|
6
|
+
fill: ${t.startByteColor};
|
|
7
|
+
}
|
|
8
|
+
.packetByte.end {
|
|
9
|
+
fill: ${t.endByteColor};
|
|
10
|
+
}
|
|
11
|
+
.packetLabel {
|
|
12
|
+
fill: ${t.labelColor};
|
|
13
|
+
font-size: ${t.labelFontSize};
|
|
14
|
+
}
|
|
15
|
+
.packetTitle {
|
|
16
|
+
fill: ${t.titleColor};
|
|
17
|
+
font-size: ${t.titleFontSize};
|
|
18
|
+
}
|
|
19
|
+
.packetBlock {
|
|
20
|
+
stroke: ${t.blockStrokeColor};
|
|
21
|
+
stroke-width: ${t.blockStrokeWidth};
|
|
22
|
+
fill: ${t.blockFillColor};
|
|
23
|
+
}
|
|
24
|
+
`},"styles"),E={parser:w,get db(){return new m},renderer:D,styles:z};exports.diagram=E;
|
package/dist/entries/md.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../MdRenderer.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../MdRenderer.vue_vue_type_style_index_0_lang-CT8VuqF6.cjs");exports.MdRenderer=e._sfc_main;exports.default=e._sfc_main;
|
package/dist/entries/md.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as Dt } from "./chunk-55IACEB6-
|
|
2
|
-
import { s as wt } from "./chunk-QN33PNHL-
|
|
3
|
-
import { _ as u, b as Vt, a as Lt, s as Mt, g as Bt, p as Ft, q as Yt, c as tt, l as D, y as Pt, x as zt, A as Gt, B as Kt, o as Zt, r as Ut, d as jt, u as Wt } from "./
|
|
4
|
-
import { c as Qt } from "./channel-
|
|
1
|
+
import { g as Dt } from "./chunk-55IACEB6-DYOSrdgH.js";
|
|
2
|
+
import { s as wt } from "./chunk-QN33PNHL-B5zdVrte.js";
|
|
3
|
+
import { _ as u, b as Vt, a as Lt, s as Mt, g as Bt, p as Ft, q as Yt, c as tt, l as D, y as Pt, x as zt, A as Gt, B as Kt, o as Zt, r as Ut, d as jt, u as Wt } from "./custom-B4yTjcNy.js";
|
|
4
|
+
import { c as Qt } from "./channel-DgGKpNRA.js";
|
|
5
5
|
var dt = (function() {
|
|
6
6
|
var s = /* @__PURE__ */ u(function(R, n, a, c) {
|
|
7
7
|
for (a = a || {}, c = R.length; c--; a[R[c]] = n) ;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const xt=require("./chunk-55IACEB6-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const xt=require("./chunk-55IACEB6-CBJvnwMn.cjs"),vt=require("./chunk-QN33PNHL-B1Px0282.cjs"),a=require("./custom-DUStvHau.cjs"),Dt=require("./channel-BleEicRr.cjs");var ht=(function(){var s=a.__name(function(R,r,c,l){for(c=c||{},l=R.length;l--;c[R[l]]=r);return c},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],o=[1,10],d=[1,11],h=[1,12],u=[1,13],f=[1,20],y=[1,21],k=[1,22],w=[1,23],K=[1,24],S=[1,19],$=[1,25],Z=[1,26],T=[1,18],L=[1,33],tt=[1,34],et=[1,35],st=[1,36],it=[1,37],ut=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],O=[1,42],N=[1,43],V=[1,52],M=[40,50,68,69],B=[1,63],F=[1,61],A=[1,58],P=[1,62],Y=[1,64],U=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],dt=[63,64,65,66,67],_t=[1,81],pt=[1,80],ft=[1,78],yt=[1,79],gt=[6,10,42,47],x=[6,10,13,41,42,47,48,49],j=[1,89],W=[1,88],q=[1,87],z=[19,56],mt=[1,98],bt=[1,97],nt=[19,56,58,60],rt={trace:a.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:a.__name(function(r,c,l,n,_,t,G){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 5:this.$=t[e];break;case 6:case 7:this.$=[];break;case 8:n.addEntity(t[e-4]),n.addEntity(t[e-2]),n.addRelationship(t[e-4],t[e],t[e-2],t[e-3]);break;case 9:n.addEntity(t[e-8]),n.addEntity(t[e-4]),n.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),n.setClass([t[e-8]],t[e-6]),n.setClass([t[e-4]],t[e-2]);break;case 10:n.addEntity(t[e-6]),n.addEntity(t[e-2]),n.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),n.setClass([t[e-6]],t[e-4]);break;case 11:n.addEntity(t[e-6]),n.addEntity(t[e-4]),n.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),n.setClass([t[e-4]],t[e-2]);break;case 12:n.addEntity(t[e-3]),n.addAttributes(t[e-3],t[e-1]);break;case 13:n.addEntity(t[e-5]),n.addAttributes(t[e-5],t[e-1]),n.setClass([t[e-5]],t[e-3]);break;case 14:n.addEntity(t[e-2]);break;case 15:n.addEntity(t[e-4]),n.setClass([t[e-4]],t[e-2]);break;case 16:n.addEntity(t[e]);break;case 17:n.addEntity(t[e-2]),n.setClass([t[e-2]],t[e]);break;case 18:n.addEntity(t[e-6],t[e-4]),n.addAttributes(t[e-6],t[e-1]);break;case 19:n.addEntity(t[e-8],t[e-6]),n.addAttributes(t[e-8],t[e-1]),n.setClass([t[e-8]],t[e-3]);break;case 20:n.addEntity(t[e-5],t[e-3]);break;case 21:n.addEntity(t[e-7],t[e-5]),n.setClass([t[e-7]],t[e-2]);break;case 22:n.addEntity(t[e-3],t[e-1]);break;case 23:n.addEntity(t[e-5],t[e-3]),n.setClass([t[e-5]],t[e]);break;case 24:case 25:this.$=t[e].trim(),n.setAccTitle(this.$);break;case 26:case 27:this.$=t[e].trim(),n.setAccDescription(this.$);break;case 32:n.setDirection("TB");break;case 33:n.setDirection("BT");break;case 34:n.setDirection("RL");break;case 35:n.setDirection("LR");break;case 36:this.$=t[e-3],n.addClass(t[e-2],t[e-1]);break;case 37:case 38:case 56:case 64:this.$=[t[e]];break;case 39:case 40:this.$=t[e-2].concat([t[e]]);break;case 41:this.$=t[e-2],n.setClass(t[e-1],t[e]);break;case 42:this.$=t[e-3],n.addCssStyles(t[e-2],t[e-1]);break;case 43:this.$=[t[e]];break;case 44:t[e-2].push(t[e]),this.$=t[e-2];break;case 46:this.$=t[e-1]+t[e];break;case 54:case 76:case 77:this.$=t[e].replace(/"/g,"");break;case 55:case 78:this.$=t[e];break;case 57:t[e].push(t[e-1]),this.$=t[e];break;case 58:this.$={type:t[e-1],name:t[e]};break;case 59:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 60:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 61:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 62:case 63:case 66:this.$=t[e];break;case 65:t[e-2].push(t[e]),this.$=t[e-2];break;case 67:this.$=t[e].replace(/"/g,"");break;case 68:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 69:this.$=n.Cardinality.ZERO_OR_ONE;break;case 70:this.$=n.Cardinality.ZERO_OR_MORE;break;case 71:this.$=n.Cardinality.ONE_OR_MORE;break;case 72:this.$=n.Cardinality.ONLY_ONE;break;case 73:this.$=n.Cardinality.MD_PARENT;break;case 74:this.$=n.Identification.NON_IDENTIFYING;break;case 75:this.$=n.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:o,24:d,26:h,28:u,29:14,30:15,31:16,32:17,33:f,34:y,35:k,36:w,37:K,40:S,43:$,44:Z,50:T},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:27,11:9,22:o,24:d,26:h,28:u,29:14,30:15,31:16,32:17,33:f,34:y,35:k,36:w,37:K,40:S,43:$,44:Z,50:T},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:28,61:32,15:[1,29],17:[1,30],20:[1,31],63:L,64:tt,65:et,66:st,67:it}),{23:[1,38]},{25:[1,39]},{27:[1,40]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(ut,[2,54]),s(ut,[2,55]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:41,40:O,41:N},{16:44,40:O,41:N},{16:45,40:O,41:N},s(i,[2,4]),{11:46,40:S,50:T},{16:47,40:O,41:N},{18:48,19:[1,49],51:50,52:51,56:V},{11:53,40:S,50:T},{62:54,68:[1,55],69:[1,56]},s(M,[2,69]),s(M,[2,70]),s(M,[2,71]),s(M,[2,72]),s(M,[2,73]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:B,38:57,41:F,42:A,45:59,46:60,48:P,49:Y},s(U,[2,37]),s(U,[2,38]),{16:65,40:O,41:N,42:A},{13:B,38:66,41:F,42:A,45:59,46:60,48:P,49:Y},{13:[1,67],15:[1,68]},s(i,[2,17],{61:32,12:69,17:[1,70],42:A,63:L,64:tt,65:et,66:st,67:it}),{19:[1,71]},s(i,[2,14]),{18:72,19:[2,56],51:50,52:51,56:V},{53:73,56:[1,74]},{56:[2,62]},{21:[1,75]},{61:76,63:L,64:tt,65:et,66:st,67:it},s(dt,[2,74]),s(dt,[2,75]),{6:_t,10:pt,39:77,42:ft,47:yt},{40:[1,82],41:[1,83]},s(gt,[2,43],{46:84,13:B,41:F,48:P,49:Y}),s(x,[2,45]),s(x,[2,50]),s(x,[2,51]),s(x,[2,52]),s(x,[2,53]),s(i,[2,41],{42:A}),{6:_t,10:pt,39:85,42:ft,47:yt},{14:86,40:j,50:W,70:q},{16:90,40:O,41:N},{11:91,40:S,50:T},{18:92,19:[1,93],51:50,52:51,56:V},s(i,[2,12]),{19:[2,57]},s(z,[2,58],{54:94,55:95,57:96,59:mt,60:bt}),s([19,56,59,60],[2,63]),s(i,[2,22],{15:[1,100],17:[1,99]}),s([40,50],[2,68]),s(i,[2,36]),{13:B,41:F,45:101,46:60,48:P,49:Y},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(U,[2,39]),s(U,[2,40]),s(x,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,76]),s(i,[2,77]),s(i,[2,78]),{13:[1,102],42:A},{13:[1,104],15:[1,103]},{19:[1,105]},s(i,[2,15]),s(z,[2,59],{55:106,58:[1,107],60:bt}),s(z,[2,60]),s(nt,[2,64]),s(z,[2,67]),s(nt,[2,66]),{18:108,19:[1,109],51:50,52:51,56:V},{16:110,40:O,41:N},s(gt,[2,44],{46:84,13:B,41:F,48:P,49:Y}),{14:111,40:j,50:W,70:q},{16:112,40:O,41:N},{14:113,40:j,50:W,70:q},s(i,[2,13]),s(z,[2,61]),{57:114,59:mt},{19:[1,115]},s(i,[2,20]),s(i,[2,23],{17:[1,116],42:A}),s(i,[2,11]),{13:[1,117],42:A},s(i,[2,10]),s(nt,[2,65]),s(i,[2,18]),{18:118,19:[1,119],51:50,52:51,56:V},{14:120,40:j,50:W,70:q},{19:[1,121]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{52:[2,62],72:[2,57]},parseError:a.__name(function(r,c){if(c.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=c,l}},"parseError"),parse:a.__name(function(r){var c=this,l=[0],n=[],_=[null],t=[],G=this.table,e="",X=0,kt=0,At=2,Et=1,Rt=t.slice.call(arguments,1),p=Object.create(this.lexer),C={yy:{}};for(var at in this.yy)Object.prototype.hasOwnProperty.call(this.yy,at)&&(C.yy[at]=this.yy[at]);p.setInput(r,C.yy),C.yy.lexer=p,C.yy.parser=this,typeof p.yylloc>"u"&&(p.yylloc={});var ct=p.yylloc;t.push(ct);var Ct=p.options&&p.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function It(m){l.length=l.length-2*m,_.length=_.length-m,t.length=t.length-m}a.__name(It,"popStack");function St(){var m;return m=n.pop()||p.lex()||Et,typeof m!="number"&&(m instanceof Array&&(n=m,m=n.pop()),m=c.symbols_[m]||m),m}a.__name(St,"lex");for(var g,I,b,lt,v={},H,E,Tt,J;;){if(I=l[l.length-1],this.defaultActions[I]?b=this.defaultActions[I]:((g===null||typeof g>"u")&&(g=St()),b=G[I]&&G[I][g]),typeof b>"u"||!b.length||!b[0]){var ot="";J=[];for(H in G[I])this.terminals_[H]&&H>At&&J.push("'"+this.terminals_[H]+"'");p.showPosition?ot="Parse error on line "+(X+1)+`:
|
|
2
2
|
`+p.showPosition()+`
|
|
3
3
|
Expecting `+J.join(", ")+", got '"+(this.terminals_[g]||g)+"'":ot="Parse error on line "+(X+1)+": Unexpected "+(g==Et?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(ot,{text:p.match,token:this.terminals_[g]||g,line:p.yylineno,loc:ct,expected:J})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+g);switch(b[0]){case 1:l.push(g),_.push(p.yytext),t.push(p.yylloc),l.push(b[1]),g=null,kt=p.yyleng,e=p.yytext,X=p.yylineno,ct=p.yylloc;break;case 2:if(E=this.productions_[b[1]][1],v.$=_[_.length-E],v._$={first_line:t[t.length-(E||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(E||1)].first_column,last_column:t[t.length-1].last_column},Ct&&(v._$.range=[t[t.length-(E||1)].range[0],t[t.length-1].range[1]]),lt=this.performAction.apply(v,[e,kt,X,C.yy,b[1],_,t].concat(Rt)),typeof lt<"u")return lt;E&&(l=l.slice(0,-1*E*2),_=_.slice(0,-1*E),t=t.slice(0,-1*E)),l.push(this.productions_[b[1]][0]),_.push(v.$),t.push(v._$),Tt=G[l[l.length-2]][l[l.length-1]],l.push(Tt);break;case 3:return!0}}return!0},"parse")},Nt=(function(){var R={EOF:1,parseError:a.__name(function(c,l){if(this.yy.parser)this.yy.parser.parseError(c,l);else throw new Error(c)},"parseError"),setInput:a.__name(function(r,c){return this.yy=c||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:a.__name(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var c=r.match(/(?:\r\n?|\n).*/g);return c?(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:a.__name(function(r){var c=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var n=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 _=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===n.length?this.yylloc.first_column:0)+n[n.length-l.length].length-l[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:a.__name(function(){return this._more=!0,this},"more"),reject:a.__name(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
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a.__name(function(r){this.unput(this.match.slice(r))},"less"),pastInput:a.__name(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:a.__name(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:a.__name(function(){var r=this.pastInput(),c=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ut=require("./chunk-FMBD7UC4-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ut=require("./chunk-FMBD7UC4-BcpCv0n4.cjs"),l=require("./custom-DUStvHau.cjs"),Wt=require("./chunk-55IACEB6-CBJvnwMn.cjs"),jt=require("./chunk-QN33PNHL-B1Px0282.cjs"),zt=require("./channel-BleEicRr.cjs");var qt="flowchart-",Ie,Kt=(Ie=class{constructor(){this.vertexCounter=0,this.config=l.getConfig2(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=l.setAccTitle,this.setAccDescription=l.setAccDescription,this.setDiagramTitle=l.setDiagramTitle,this.getAccTitle=l.getAccTitle,this.getAccDescription=l.getAccDescription,this.getDiagramTitle=l.getDiagramTitle,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return l.common_default.sanitizeText(i,this.config)}lookUpDomId(i){for(const r of this.vertices.values())if(r.id===i)return r.domId;return i}addVertex(i,r,n,a,c,b,h={},A){if(!i||i.trim().length===0)return;let u;if(A!==void 0){let m;A.includes(`
|
|
2
2
|
`)?m=A+`
|
|
3
3
|
`:m=`{
|
|
4
4
|
`+A+`
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as qt } from "./chunk-FMBD7UC4-
|
|
2
|
-
import { _ as m, n as Ot, l as $, c as b1, d as E1, o as Ht, r as Xt, u as it, b as Qt, s as Jt, p as Zt, a as $t, g as te, q as ee, k as se, t as ie, J as re, v as ae, x as st, y as ne, z as ue, A as oe } from "./
|
|
3
|
-
import { g as le } from "./chunk-55IACEB6-
|
|
4
|
-
import { s as ce } from "./chunk-QN33PNHL-
|
|
5
|
-
import { c as he } from "./channel-
|
|
1
|
+
import { g as qt } from "./chunk-FMBD7UC4-D5PKNbki.js";
|
|
2
|
+
import { _ as m, n as Ot, l as $, c as b1, d as E1, o as Ht, r as Xt, u as it, b as Qt, s as Jt, p as Zt, a as $t, g as te, q as ee, k as se, t as ie, J as re, v as ae, x as st, y as ne, z as ue, A as oe } from "./custom-B4yTjcNy.js";
|
|
3
|
+
import { g as le } from "./chunk-55IACEB6-DYOSrdgH.js";
|
|
4
|
+
import { s as ce } from "./chunk-QN33PNHL-B5zdVrte.js";
|
|
5
|
+
import { c as he } from "./channel-DgGKpNRA.js";
|
|
6
6
|
var de = "flowchart-", G1, pe = (G1 = class {
|
|
7
7
|
// cspell:ignore funs
|
|
8
8
|
constructor() {
|