import{q as A}from"./index-TUFJsQwj.js";/*!
 * KoliBri - The accessible HTML-Standard
 */const lt=(t,e,r)=>{A(t,"_hasCounter",e,r)};var B=typeof global=="object"&&global&&global.Object===Object&&global;const M=B;var R=typeof self=="object"&&self&&self.Object===Object&&self,F=M||R||Function("return this")();const C=F;var G=C.Symbol;const y=G;var W=Object.prototype,_=W.hasOwnProperty,H=W.toString,g=y?y.toStringTag:void 0;function U(t){var e=_.call(t,g),r=t[g];try{t[g]=void 0;var o=!0}catch{}var f=H.call(t);return o&&(e?t[g]=r:delete t[g]),f}var q=Object.prototype,D=q.toString;function X(t){return D.call(t)}var z="[object Null]",J="[object Undefined]",$=y?y.toStringTag:void 0;function K(t){return t==null?t===void 0?J:z:$&&$ in Object(t)?U(t):X(t)}function Q(t){return t!=null&&typeof t=="object"}var V="[object Symbol]";function Y(t){return typeof t=="symbol"||Q(t)&&K(t)==V}var Z=/\s/;function tt(t){for(var e=t.length;e--&&Z.test(t.charAt(e)););return e}var et=/^\s+/;function nt(t){return t&&t.slice(0,tt(t)+1).replace(et,"")}function v(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var E=NaN,rt=/^[-+]0x[0-9a-f]+$/i,it=/^0b[01]+$/i,ot=/^0o[0-7]+$/i,at=parseInt;function k(t){if(typeof t=="number")return t;if(Y(t))return E;if(v(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=v(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=nt(t);var r=it.test(t);return r||ot.test(t)?at(t.slice(2),r?2:8):rt.test(t)?E:+t}var ft=function(){return C.Date.now()};const S=ft;var ct="Expected a function",ut=Math.max,st=Math.min;function bt(t,e,r){var o,f,s,u,i,c,d=0,O=!1,l=!1,T=!0;if(typeof t!="function")throw new TypeError(ct);e=k(e)||0,v(r)&&(O=!!r.leading,l="maxWait"in r,s=l?ut(k(r.maxWait)||0,e):s,T="trailing"in r?!!r.trailing:T);function j(n){var a=o,b=f;return o=f=void 0,d=n,u=t.apply(b,a),u}function L(n){return d=n,i=setTimeout(m,e),O?j(n):u}function N(n){var a=n-c,b=n-d,I=e-a;return l?st(I,s-b):I}function h(n){var a=n-c,b=n-d;return c===void 0||a>=e||a<0||l&&b>=s}function m(){var n=S();if(h(n))return x(n);i=setTimeout(m,N(n))}function x(n){return i=void 0,T&&o?j(n):(o=f=void 0,u)}function P(){i!==void 0&&clearTimeout(i),d=0,o=c=f=i=void 0}function w(){return i===void 0?u:x(S())}function p(){var n=S(),a=h(n);if(o=arguments,f=this,c=n,a){if(i===void 0)return L(c);if(l)return clearTimeout(i),i=setTimeout(m,e),j(c)}return i===void 0&&(i=setTimeout(m,e)),u}return p.cancel=P,p.flush=w,p}export{bt as d,lt as v};
//# sourceMappingURL=debounce-99d34c2d-s20VFQLr.js.map
