import{g as l,b as c,e as a}from"./index-deffec86.js";var s;const f=typeof window<"u",g=e=>typeof e=="string",T=()=>{};f&&((s=window==null?void 0:window.navigator)==null?void 0:s.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function p(e,i){function n(...t){e(()=>i.apply(this,t),{fn:i,thisArg:this,args:t})}return n}function d(e,i={}){let n,t;return o=>{const u=a(e),r=a(i.maxWait);if(n&&clearTimeout(n),u<=0||r!==void 0&&r<=0)return t&&(clearTimeout(t),t=null),o();r&&!t&&(t=setTimeout(()=>{n&&clearTimeout(n),t=null,o()},r)),n=setTimeout(()=>{t&&clearTimeout(t),t=null,o()},u)}}function h(e){return l()?(c(e),!0):!1}function v(e,i=200,n={}){return p(d(i,n),e)}export{g as a,f as i,T as n,h as t,v as u};
