var ie=typeof global=="object"&&global&&global.Object===Object&&global,Ke=typeof self=="object"&&self&&self.Object===Object&&self,O=ie||Ke||Function("return this")(),E=O.Symbol,fe=Object.prototype,Je=fe.hasOwnProperty,Xe=fe.toString,H=E?E.toStringTag:void 0;function Ye(r){var e=Je.call(r,H),n=r[H];try{r[H]=void 0;var t=!0}catch{}var a=Xe.call(r);return t&&(e?r[H]=n:delete r[H]),a}var qe=Object.prototype,Qe=qe.toString;function Ve(r){return Qe.call(r)}var ke="[object Null]",rn="[object Undefined]",Pr=E?E.toStringTag:void 0;function M(r){return r==null?r===void 0?rn:ke:Pr&&Pr in Object(r)?Ye(r):Ve(r)}function C(r){return r!=null&&typeof r=="object"}var en="[object Symbol]";function rr(r){return typeof r=="symbol"||C(r)&&M(r)==en}function oe(r,e){for(var n=-1,t=r==null?0:r.length,a=Array(t);++n0){if(++e>=Ln)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}function Fn(r){return function(){return r}}var Y=function(){try{var r=U(Object,"defineProperty");return r({},"",{}),r}catch{}}(),jn=Y?function(r,e){return Y(r,"toString",{configurable:!0,enumerable:!1,value:Fn(e),writable:!0})}:vr;const Gn=jn;var Hn=Dn(Gn),zn=9007199254740991,Bn=/^(?:0|[1-9]\d*)$/;function xr(r,e){var n=typeof r;return e=e??zn,!!e&&(n=="number"||n!="symbol"&&Bn.test(r))&&r>-1&&r%1==0&&r-1&&r%1==0&&r<=qn}function j(r){return r!=null&&_r(r.length)&&!br(r)}function Qn(r,e,n){if(!_(n))return!1;var t=typeof e;return(t=="number"?j(n)&&xr(e,n.length):t=="string"&&e in n)?Z(n[e],r):!1}function Vn(r){return Yn(function(e,n){var t=-1,a=n.length,u=a>1?n[a-1]:void 0,f=a>2?n[2]:void 0;for(u=r.length>3&&typeof u=="function"?(a--,u):void 0,f&&Qn(n[0],n[1],f)&&(u=a<3?void 0:u,a=1),e=Object(e);++t-1}function sa(r,e){var n=this.__data__,t=er(n,r);return t<0?(++this.size,n.push([r,e])):n[t][1]=e,this}function $(r){var e=-1,n=r==null?0:r.length;for(this.clear();++ea?0:a+e),n=n>a?a:n,n<0&&(n+=a),a=e>n?0:n-e>>>0,e>>>=0;for(var u=Array(a);++t=t?r:Ra(r,e,n)}var Ma="\\ud800-\\udfff",La="\\u0300-\\u036f",Ua="\\ufe20-\\ufe2f",Na="\\u20d0-\\u20ff",Da=La+Ua+Na,Fa="\\ufe0e\\ufe0f",ja="\\u200d",Ga=RegExp("["+ja+Ma+Da+Fa+"]");function _e(r){return Ga.test(r)}function Ha(r){return r.split("")}var Oe="\\ud800-\\udfff",za="\\u0300-\\u036f",Ba="\\ufe20-\\ufe2f",Wa="\\u20d0-\\u20ff",Za=za+Ba+Wa,Ka="\\ufe0e\\ufe0f",Ja="["+Oe+"]",sr="["+Za+"]",cr="\\ud83c[\\udffb-\\udfff]",Xa="(?:"+sr+"|"+cr+")",Te="[^"+Oe+"]",me="(?:\\ud83c[\\udde6-\\uddff]){2}",Ae="[\\ud800-\\udbff][\\udc00-\\udfff]",Ya="\\u200d",$e=Xa+"?",we="["+Ka+"]?",qa="(?:"+Ya+"(?:"+[Te,me,Ae].join("|")+")"+we+$e+")*",Qa=we+$e+qa,Va="(?:"+[Te+sr+"?",sr,me,Ae,Ja].join("|")+")",ka=RegExp(cr+"(?="+cr+")|"+Va+Qa,"g");function ru(r){return r.match(ka)||[]}function eu(r){return _e(r)?ru(r):Ha(r)}function nu(r){return function(e){e=F(e);var n=_e(e)?eu(e):void 0,t=n?n[0]:e.charAt(0),a=n?Ia(n,1).join(""):e.slice(1);return t[r]()+a}}var wf=nu("toUpperCase");function tu(r,e,n,t){var a=-1,u=r==null?0:r.length;for(t&&u&&(n=r[++a]);++ai))return!1;var s=u.get(r),c=u.get(e);if(s&&c)return s==e&&c==r;var l=-1,d=!0,h=n&Si?new k:void 0;for(u.set(r,e),u.set(e,r);++l=e||P<0||l&&G>=u}function x(){var g=fr();if(T(g))return m(g);i=setTimeout(x,b(g))}function m(g){return i=void 0,d&&t?h(g):(t=a=void 0,f)}function K(){i!==void 0&&clearTimeout(i),s=0,t=o=a=i=void 0}function N(){return i===void 0?f:m(fr())}function S(){var g=fr(),P=T(g);if(t=arguments,a=this,o=g,P){if(i===void 0)return v(o);if(l)return clearTimeout(i),i=setTimeout(x,e),h(o)}return i===void 0&&(i=setTimeout(x,e)),f}return S.cancel=K,S.flush=N,S}function gr(r,e,n){(n!==void 0&&!Z(r[e],n)||n===void 0&&!(e in r))&&yr(r,e,n)}function Of(r){return C(r)&&j(r)}function hr(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}function Tf(r){return Jn(r,he(r))}function mf(r,e,n,t,a,u,f){var i=hr(r,n),o=hr(e,n),s=f.get(o);if(s){gr(r,n,s);return}var c=u?u(i,o,n+"",r,e,f):void 0,l=c===void 0;if(l){var d=y(o),h=!d&&Q(o),v=!d&&!h&&Tr(o);c=o,d||h||v?y(i)?c=i:Of(i)?c=Mn(i):h?(l=!1,c=ti(o,!0)):v?(l=!1,c=yi(o,!0)):c=[]:Ca(o)||q(o)?(c=i,q(i)?c=Tf(i):(!_(i)||br(i))&&(c=_i(o))):l=!1}l&&(f.set(o,c),a(c,o,t,u,f),f.delete(o)),gr(r,n,c)}function Ze(r,e,n,t,a){r!==e&&We(e,function(u,f){if(a||(a=new A),_(u))mf(r,e,f,n,Ze,t,a);else{var i=t?t(hr(r,f),u,f+"",r,e,a):void 0;i===void 0&&(i=u),gr(r,f,i)}},he)}function Af(r,e){var n=-1,t=j(r)?Array(r.length):[];return vf(r,function(a,u,f){t[++n]=e(a,u,f)}),t}function Sf(r,e){var n=y(r)?oe:Af;return n(r,lf(e))}var Pf=Ku(function(r,e,n){return r+(n?"-":"")+e.toLowerCase()}),Ef=Vn(function(r,e,n){Ze(r,e,n)}),Cf=Yu("round"),$f="Expected a function";function Rf(r,e,n){var t=!0,a=!0;if(typeof r!="function")throw new TypeError($f);return _(n)&&(t="leading"in n?!!n.leading:t,a="trailing"in n?!!n.trailing:a),_f(r,e,{leading:t,maxWait:e,trailing:a})}export{Sf as a,ma as g,Pf as k,Ef as m,Cf as r,Rf as t,wf as u};