import{getClientSize as l}from"../../vc-util/Dom/css.mjs";function u(f,e,r,o){const i=e+r,n=(r-o)/2;if(r>o){if(e>0)return{[f]:n};if(e<0&&i<o)return{[f]:-n}}else if(e<0||i>o)return{[f]:e<0?n:-n};return{}}function x(f,e,r,o){const{width:i,height:n}=l();let t=null;return f<=i&&e<=n?t={x:0,y:0}:(f>i||e>n)&&(t={...u("x",r,f,i),...u("y",o,e,n)}),t}export{x as default};
