function n(e){if(e instanceof MouseEvent)return{x:e.clientX,y:e.clientY};if(e instanceof Element){const t=e.getBoundingClientRect();return{x:t.left+t.width/2,y:t.top+t.height/2}}return e}export{n as r};
