import{bv as e}from"./index-ip5gDR6L.js";const t=100,o=600,n={beforeMount(n,a){const r=a.value,{interval:s=t,delay:d=o}=e(r)?{}:r;let v,i;const l=()=>e(r)?r():r.handler(),u=()=>{i&&(clearTimeout(i),i=void 0),v&&(clearInterval(v),v=void 0)};n.addEventListener("mousedown",e=>{0===e.button&&(u(),l(),document.addEventListener("mouseup",()=>u(),{once:!0}),i=setTimeout(()=>{v=setInterval(()=>{l()},s)},d))})}};export{n as v};
