import{B as e,w as t}from"./mermaid-7ea9cbd6-CTdxebQd.js";var n=e(),r=(e,t)=>{let n=e.append(`rect`);if(n.attr(`x`,t.x),n.attr(`y`,t.y),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`width`,t.width),n.attr(`height`,t.height),t.name&&n.attr(`name`,t.name),t.rx!==void 0&&n.attr(`rx`,t.rx),t.ry!==void 0&&n.attr(`ry`,t.ry),t.attrs!==void 0)for(let e in t.attrs)n.attr(e,t.attrs[e]);return t.class!==void 0&&n.attr(`class`,t.class),n},i=(e,t)=>{r(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:`rect`}).lower()},a=(e,n)=>{let r=n.text.replace(t,` `),i=e.append(`text`);i.attr(`x`,n.x),i.attr(`y`,n.y),i.attr(`class`,`legend`),i.style(`text-anchor`,n.anchor),n.class!==void 0&&i.attr(`class`,n.class);let a=i.append(`tspan`);return a.attr(`x`,n.x+n.textMargin*2),a.text(r),i},o=(e,t,r,i)=>{let a=e.append(`image`);a.attr(`x`,t),a.attr(`y`,r);let o=(0,n.sanitizeUrl)(i);a.attr(`xlink:href`,o)},s=(e,t,r,i)=>{let a=e.append(`use`);a.attr(`x`,t),a.attr(`y`,r);let o=(0,n.sanitizeUrl)(i);a.attr(`xlink:href`,`#${o}`)},c=()=>({x:0,y:0,width:100,height:100,fill:`#EDF2AE`,stroke:`#666`,anchor:`start`,rx:0,ry:0}),l=()=>({x:0,y:0,width:100,height:100,"text-anchor":`start`,style:`#666`,textMargin:0,rx:0,ry:0,tspan:!0});export{a,r as i,s as n,c as o,o as r,l as s,i as t};