function throttle(t,e,i){if(e===void 0){e=250}var n=0;var o;return function(){var r=[];for(var a=0;a<arguments.length;a++){r[a]=arguments[a]}var f=i||this;var s=Date.now();if(s-n>e){t.apply(this,r);n=s}else{clearTimeout(o);o=setTimeout((function(){n=s;t.apply(f,r)}),e)}}}function debounce(t,e,i){if(e===void 0){e=250}var n;return function(){var o=[];for(var r=0;r<arguments.length;r++){o[r]=arguments[r]}var a=i||this;clearTimeout(n);n=setTimeout((function(){t.apply(a,o)}),e)}}function isVisible(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}export{debounce as d,isVisible as i,throttle as t};
//# sourceMappingURL=index-d1b03e47.js.map