"use strict"; import{b as h}from"./chunk-IVQLRXYF.mjs";import{c as i}from"./chunk-AXW634CS.mjs";var $=i(function(n,o){for(let t of o)n.attr(t[0],t[1])},"d3Attrs"),l=i(function(n,o,t){let e=new Map;return t?(e.set("width","100%"),e.set("style",`max-width: ${o}px;`)):(e.set("height",n),e.set("width",o)),e},"calculateSvgSizeAttrs"),a=i(function(n,o,t,e){let s=l(o,t,e);$(n,s)},"configureSvgSize"),B=i(function(n,o,t,e){let s=o.node().getBBox(),u=s.width,x=s.height;h.info(`SVG bounds: ${u}x${x}`,s);let r=0,c=0;h.info(`Graph bounds: ${r}x${c}`,n),r=u+t*2,c=x+t*2,h.info(`Calculated bounds: ${r}x${c}`),a(o,c,r,e);let f=`${s.x-t} ${s.y-t} ${s.width+2*t} ${s.height+2*t}`;o.attr("viewBox",f)},"setupGraphViewbox");export{a,B as b};