function t(t,e=300){if("function"!=typeof t)throw new TypeError("func must be a function");let o;return isNaN(e)&&(e=300),function(...n){o&&(clearTimeout(o),o=void 0),o=setTimeout(()=>{clearTimeout(o),o=void 0,t.apply(null,n)},e)}}export{t as d};