import{B as P,i as R,C as O,e as E,a as g,k as L,D as C}from"./isArrayLikeObject.7c69e632.js";import{b as A}from"./_baseIsEqual.118be5ff.js";import{k as I}from"./_getAllKeys.d4dd627a.js";import{c as M,t as o,i as h,g as d,b as x}from"./get.5bf9ffd1.js";var D=1,w=2;function G(n,r,t,i){var e=t.length,s=e,f=!i;if(n==null)return!s;for(n=Object(n);e--;){var u=t[e];if(f&&u[2]?u[1]!==n[u[0]]:!(u[0]in n))return!1}for(;++e<s;){u=t[e];var a=u[0],l=n[a],p=u[1];if(f&&u[2]){if(l===void 0&&!(a in n))return!1}else{var _=new P;if(i)var c=i(l,p,a,n,r,_);if(!(c===void 0?A(p,l,D|w,i,_):c))return!1}}return!0}function m(n){return n===n&&!R(n)}function F(n){for(var r=I(n),t=r.length;t--;){var i=r[t],e=n[i];r[t]=[i,e,m(e)]}return r}function y(n,r){return function(t){return t==null?!1:t[n]===r&&(r!==void 0||n in Object(t))}}function S(n){var r=F(n);return r.length==1&&r[0][2]?y(r[0][0],r[0][1]):function(t){return t===n||G(t,n,r)}}function U(n,r){return n!=null&&r in Object(n)}function v(n,r,t){r=M(r,n);for(var i=-1,e=r.length,s=!1;++i<e;){var f=o(r[i]);if(!(s=n!=null&&t(n,f)))break;n=n[f]}return s||++i!=e?s:(e=n==null?0:n.length,!!e&&O(e)&&E(f,e)&&(g(n)||L(n)))}function K(n,r){return n!=null&&v(n,r,U)}var N=1,T=2;function $(n,r){return h(n)&&m(r)?y(o(n),r):function(t){var i=d(t,n);return i===void 0&&i===r?K(t,n):A(r,i,N|T)}}function q(n){return function(r){return r==null?void 0:r[n]}}function B(n){return function(r){return x(r,n)}}function H(n){return h(n)?q(o(n)):B(n)}function Y(n){return typeof n=="function"?n:n==null?C:typeof n=="object"?g(n)?$(n[0],n[1]):S(n):H(n)}export{Y as b,K as h};
