import{ht as e}from"./xY0c-UfG.js";var t=e({entity:null,pos:{x:0,y:0},flipX:!1,flipY:!1,options:{}});function n(e,n){t.flipX=e+10+200>window.innerWidth,t.flipY=n+10+80>window.innerHeight,t.pos={x:t.flipX?e-10:e+10,y:t.flipY?n-10:n+10}}function r(e,r,i={}){t.entity=r,t.options=i,n(e.clientX,e.clientY)}function i(e){t.entity&&n(e.clientX,e.clientY)}function a(){t.entity=null,t.options={}}export{r as i,a as n,i as r,t};