import{g as C}from"./__federation_shared_react-xoJ64Y1K.js";import{bR as j,bS as S,bT as A}from"./index-BbBXKozi.js";var L=j,M=function(){return L.Date.now()},R=M,B=/\s/;function F(e){for(var r=e.length;r--&&B.test(e.charAt(r)););return r}var D=F,H=D,P=/^\s+/;function U(e){return e&&e.slice(0,H(e)+1).replace(P,"")}var X=U,q=X,y=S,w=A,_=NaN,z=/^[-+]0x[0-9a-f]+$/i,G=/^0b[01]+$/i,J=/^0o[0-7]+$/i,K=parseInt;function Q(e){if(typeof e=="number")return e;if(w(e))return _;if(y(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=y(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=q(e);var i=G.test(e);return i||J.test(e)?K(e.slice(2),i?2:8):z.test(e)?_:+e}var V=Q,Y=S,x=R,$=V,Z="Expected a function",ee=Math.max,ne=Math.min;function re(e,r,i){var o,s,l,u,t,f,d=0,I=!1,m=!1,v=!0;if(typeof e!="function")throw new TypeError(Z);r=$(r)||0,Y(i)&&(I=!!i.leading,m="maxWait"in i,l=m?ee($(i.maxWait)||0,r):l,v="trailing"in i?!!i.trailing:v);function g(n){var a=o,c=s;return o=s=void 0,d=n,u=e.apply(c,a),u}function O(n){return d=n,t=setTimeout(b,r),I?g(n):u}function k(n){var a=n-f,c=n-d,E=r-a;return m?ne(E,l-c):E}function h(n){var a=n-f,c=n-d;return f===void 0||a>=r||a<0||m&&c>=l}function b(){var n=x();if(h(n))return p(n);t=setTimeout(b,k(n))}function p(n){return t=void 0,v&&o?g(n):(o=s=void 0,u)}function N(){t!==void 0&&clearTimeout(t),d=0,o=f=s=t=void 0}function W(){return t===void 0?u:p(x())}function T(){var n=x(),a=h(n);if(o=arguments,s=this,f=n,a){if(t===void 0)return O(f);if(m)return clearTimeout(t),t=setTimeout(b,r),g(f)}return t===void 0&&(t=setTimeout(b,r)),u}return T.cancel=N,T.flush=W,T}var te=re;const fe=C(te);export{te as a,fe as d,V as t}; //# sourceMappingURL=debounce-Be2j93nc.js.map