import{_ as l,m as i,r as n}from"./katex-D8o5-F7C.d_mIDReB.js";var d=n(),c=l((s,t)=>{let r=s.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),t.name&&r.attr("name",t.name),t.rx&&r.attr("rx",t.rx),t.ry&&r.attr("ry",t.ry),t.attrs!==void 0)for(let e in t.attrs)r.attr(e,t.attrs[e]);return t.class&&r.attr("class",t.class),r},"drawRect"),h=l((s,t)=>{c(s,{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()},"drawBackgroundRect"),y=l((s,t)=>{let r=t.text.replace(i," "),e=s.append("text");e.attr("x",t.x),e.attr("y",t.y),e.attr("class","legend"),e.style("text-anchor",t.anchor),t.class&&e.attr("class",t.class);let a=e.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(r),e},"drawText"),p=l((s,t,r,e)=>{let a=s.append("image");a.attr("x",t),a.attr("y",r);let x=(0,d.sanitizeUrl)(e);a.attr("xlink:href",x)},"drawImage"),o=l((s,t,r,e)=>{let a=s.append("use");a.attr("x",t),a.attr("y",r);let x=(0,d.sanitizeUrl)(e);a.attr("xlink:href",`#${x}`)},"drawEmbeddedImage"),w=l(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),m=l(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");export{h as a,m as b,o as c,c as d,p as e,y as f,w as g};
