"use strict";function y(t,i){t=t||10;const d=new Array(t),f=new Array(t);let e=0,r=0,c;return i=i!==void 0?i:1e3,function(h){const n=Date.now(),s=f[r];c||(c=n),d[e]=h,f[e]=n;let o=r,w=0;for(;o!==e;)w+=d[o++],o=o%t;if(e=(e+1)%t,e===r&&(r=(r+1)%t),n-c<i)return;const a=s&&n-s;return a?Math.round(w*1e3/a):void 0}}module.exports=y;
//# sourceMappingURL=index.cjs461.js.map
