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