import{dQ as E,dC as C,dR as O,d8 as M,bH as _,dS as P,dT as h,dU as g,dV as y,b6 as I}from"./index-c51caa49.js";import{c as L}from"./index-0b77d27e.js";function D(n,r,e){var i=n==null?void 0:E(n,r);return i===void 0?e:i}var G=1,m=2;function w(n,r,e,i){var t=e.length,d=t,o=!i;if(n==null)return!d;for(n=Object(n);t--;){var f=e[t];if(o&&f[2]?f[1]!==n[f[0]]:!(f[0]in n))return!1}for(;++t<d;){f=e[t];var u=f[0],s=n[u],A=f[1];if(o&&f[2]){if(s===void 0&&!(u in n))return!1}else{var a=new C;if(i)var R=i(s,A,u,n,r,a);if(!(R===void 0?O(A,s,G|m,i,a):R))return!1}}return!0}function l(n){return n===n&&!M(n)}function F(n){for(var r=_(n),e=r.length;e--;){var i=r[e],t=n[i];r[e]=[i,t,l(t)]}return r}function p(n,r){return function(e){return e==null?!1:e[n]===r&&(r!==void 0||n in Object(e))}}function S(n){var r=F(n);return r.length==1&&r[0][2]?p(r[0][0],r[0][1]):function(e){return e===n||w(e,n,r)}}var b=1,c=2;function T(n,r){return P(n)&&l(r)?p(h(n),r):function(e){var i=D(e,n);return i===void 0&&i===r?g(e,n):O(r,i,b|c)}}function U(n){return function(r){return E(r,n)}}function x(n){return P(n)?L(h(n)):U(n)}function $(n){return typeof n=="function"?n:n==null?y:typeof n=="object"?I(n)?T(n[0],n[1]):S(n):x(n)}export{$ as b};