import{a as y,n as g,r as _,s as v}from"./_baseIsEqual-BU8KB_Ip.js";function j(){}var w=j;function k(n,r,u,t){for(var f=n.length,a=u+(t?1:-1);t?a--:++a<f;)if(r(n[a],a,n))return a;return-1}var d=k;function q(n){return n!==n}var z=q;function A(n,r,u){for(var t=u-1,f=n.length;++t<f;)if(n[t]===r)return t;return-1}var B=A;function C(n,r,u){return r===r?B(n,r,u):d(n,z,u)}var x=C;function D(n,r){return!!(n!=null&&n.length)&&x(n,r,0)>-1}var b=D;function E(n,r,u){for(var t=-1,f=n==null?0:n.length;++t<f;)if(u(r,n[t]))return!0;return!1}var p=E,F=v&&1/g(new v([,-0]))[1]==1/0?function(n){return new v(n)}:w,G=200;function H(n,r,u){var t=-1,f=b,a=n.length,l=!0,s=[],e=s;if(u)l=!1,f=p;else if(a>=G){var c=r?null:F(n);if(c)return g(c);l=!1,f=_,e=new y}else e=r?[]:s;n:for(;++t<a;){var o=n[t],i=r?r(o):o;if(o=u||o!==0?o:0,l&&i===i){for(var h=e.length;h--;)if(e[h]===i)continue n;r&&e.push(i),s.push(o)}else f(e,i,u)||(e!==s&&e.push(i),s.push(o))}return s}var I=H;export{d as a,x as i,p as n,w as o,b as r,I as t};
