const t=t=>parseInt(t.slice(0,-2),10),d=(d,n=16)=>{if("undefined"==typeof window||void 0===d)return{top:n,right:n,bottom:n,left:n};const o=window.getComputedStyle(d);return{top:t(o.getPropertyValue("padding-top")),right:t(o.getPropertyValue("padding-right")),bottom:t(o.getPropertyValue("padding-bottom")),left:t(o.getPropertyValue("padding-left"))}},n=d=>{if("undefined"==typeof window)return d.clientWidth;const n=window.getComputedStyle(d);return t(n.getPropertyValue("width"))+t(n.getPropertyValue("padding-left"))+t(n.getPropertyValue("padding-left"))};export{d as a,n as g}