import{r as e}from"./toString.tRXNBxtF.js";import{i as t,n,o as r,t as i}from"./isArrayLike.Crw2F5li.js";import{D as a,I as o,d as s,g as c,h as l,m as u,n as d,p as f,v as p,y as m}from"./isArrayLikeObject.B3Zf3PTL.js";import{t as h}from"./_baseIsEqual.sdZCjgvS.js";import{t as g}from"./_baseProperty.BV6HSwpm.js";var _=1,v=2;function y(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var c=n[i];if(o&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<a;){c=n[i];var l=c[0],u=e[l],d=c[1];if(o&&c[2]){if(u===void 0&&!(l in e))return!1}else{var f=new s;if(r)var p=r(u,d,l,e,t,f);if(!(p===void 0?h(d,u,_|v,r,f):p))return!1}}return!0}function b(e){return e===e&&!r(e)}function x(e){for(var t=m(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,b(i)]}return t}function S(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}function C(e){var t=x(e);return t.length==1&&t[0][2]?S(t[0][0],t[0][1]):function(n){return n===e||y(n,e,t)}}function w(e,t){return e!=null&&t in Object(e)}function T(r,i,o){i=c(i,r);for(var s=-1,u=i.length,d=!1;++s<u;){var f=l(i[s]);if(!(d=r!=null&&o(r,f)))break;r=r[f]}return d||++s!=u?d:(u=r==null?0:r.length,!!u&&n(u)&&t(f,u)&&(e(r)||a(r)))}function E(e,t){return e!=null&&T(e,t,w)}var D=1,O=2;function k(e,t){return p(e)&&b(t)?S(l(e),t):function(n){var r=f(n,e);return r===void 0&&r===t?E(n,e):h(t,r,D|O)}}function A(e){return function(t){return u(t,e)}}function j(e){return p(e)?g(l(e)):A(e)}function M(t){return typeof t==`function`?t:t==null?o:typeof t==`object`?e(t)?k(t[0],t[1]):C(t):j(t)}function N(e,t){return e&&d(e,t,m)}function P(e,t){return function(n,r){if(n==null)return n;if(!i(n))return e(n,r);for(var a=n.length,o=t?a:-1,s=Object(n);(t?o--:++o<a)&&r(s[o],o,s)!==!1;);return n}}var F=P(N);export{T as a,E as i,N as n,M as r,F as t};