import{b8 as K,b9 as J,ba as Q,bb as D,bc as X,bd as I,be as G,b5 as $,b2 as x,bf as E,b3 as m,Y as b,bg as C,Z as W,bh as z,bi as c,bj as q,bk as o}from"./index-F5308wi0.js";import{h}from"./hasIn-C3MZ1Y6C.js";function V(n,r,e){var f=n==null?void 0:K(n,r);return f===void 0?e:f}function j(n,r){for(var e=-1,f=n==null?0:n.length;++e<f;)if(r(n[e],e,n))return!0;return!1}var k=1,nn=2;function H(n,r,e,f,u,i){var a=e&k,t=n.length,s=r.length;if(t!=s&&!(a&&s>t))return!1;var g=i.get(n),v=i.get(r);if(g&&v)return g==r&&v==n;var A=-1,l=!0,P=e&nn?new J:void 0;for(i.set(n,r),i.set(r,n);++A<t;){var d=n[A],O=r[A];if(f)var p=a?f(O,d,A,r,n,i):f(d,O,A,n,r,i);if(p!==void 0){if(p)continue;l=!1;break}if(P){if(!j(r,function(T,_){if(!Q(P,_)&&(d===T||u(d,T,e,f,i)))return P.push(_)})){l=!1;break}}else if(!(d===O||u(d,O,e,f,i))){l=!1;break}}return i.delete(n),i.delete(r),l}function rn(n){var r=-1,e=Array(n.size);return n.forEach(function(f,u){e[++r]=[u,f]}),e}function en(n){var r=-1,e=Array(n.size);return n.forEach(function(f){e[++r]=f}),e}var fn=1,an=2,un="[object Boolean]",sn="[object Date]",tn="[object Error]",ln="[object Map]",gn="[object Number]",An="[object RegExp]",vn="[object Set]",dn="[object String]",On="[object Symbol]",Pn="[object ArrayBuffer]",pn="[object DataView]",B=D?D.prototype:void 0,w=B?B.valueOf:void 0;function Tn(n,r,e,f,u,i,a){switch(e){case pn:if(n.byteLength!=r.byteLength||n.byteOffset!=r.byteOffset)return!1;n=n.buffer,r=r.buffer;case Pn:return!(n.byteLength!=r.byteLength||!i(new I(n),new I(r)));case un:case sn:case gn:return X(+n,+r);case tn:return n.name==r.name&&n.message==r.message;case An:case dn:return n==r+"";case ln:var t=rn;case vn:var s=f&fn;if(t||(t=en),n.size!=r.size&&!s)return!1;var g=a.get(n);if(g)return g==r;f|=an,a.set(n,r);var v=H(t(n),t(r),f,u,i,a);return a.delete(n),v;case On:if(w)return w.call(n)==w.call(r)}return!1}var _n=1,yn=Object.prototype,Ln=yn.hasOwnProperty;function Rn(n,r,e,f,u,i){var a=e&_n,t=G(n),s=t.length,g=G(r),v=g.length;if(s!=v&&!a)return!1;for(var A=s;A--;){var l=t[A];if(!(a?l in r:Ln.call(r,l)))return!1}var P=i.get(n),d=i.get(r);if(P&&d)return P==r&&d==n;var O=!0;i.set(n,r),i.set(r,n);for(var p=a;++A<s;){l=t[A];var T=n[l],_=r[l];if(f)var S=a?f(_,T,l,r,n,i):f(T,_,l,n,r,i);if(!(S===void 0?T===_||u(T,_,e,f,i):S)){O=!1;break}p||(p=l=="constructor")}if(O&&!p){var y=n.constructor,L=r.constructor;y!=L&&"constructor"in n&&"constructor"in r&&!(typeof y=="function"&&y instanceof y&&typeof L=="function"&&L instanceof L)&&(O=!1)}return i.delete(n),i.delete(r),O}var En=1,F="[object Arguments]",N="[object Array]",R="[object Object]",wn=Object.prototype,U=wn.hasOwnProperty;function bn(n,r,e,f,u,i){var a=b(n),t=b(r),s=a?N:$(n),g=t?N:$(r);s=s==F?R:s,g=g==F?R:g;var v=s==R,A=g==R,l=s==g;if(l&&x(n)){if(!x(r))return!1;a=!0,v=!1}if(l&&!v)return i||(i=new E),a||m(n)?H(n,r,e,f,u,i):Tn(n,r,s,e,f,u,i);if(!(e&En)){var P=v&&U.call(n,"__wrapped__"),d=A&&U.call(r,"__wrapped__");if(P||d){var O=P?n.value():n,p=d?r.value():r;return i||(i=new E),u(O,p,e,f,i)}}return l?(i||(i=new E),Rn(n,r,e,f,u,i)):!1}function M(n,r,e,f,u){return n===r?!0:n==null||r==null||!C(n)&&!C(r)?n!==n&&r!==r:bn(n,r,e,f,M,u)}var Mn=1,Sn=2;function Dn(n,r,e,f){var u=e.length,i=u;if(n==null)return!i;for(n=Object(n);u--;){var a=e[u];if(a[2]?a[1]!==n[a[0]]:!(a[0]in n))return!1}for(;++u<i;){a=e[u];var t=a[0],s=n[t],g=a[1];if(a[2]){if(s===void 0&&!(t in n))return!1}else{var v=new E,A;if(!(A===void 0?M(g,s,Mn|Sn,f,v):A))return!1}}return!0}function Y(n){return n===n&&!W(n)}function In(n){for(var r=z(n),e=r.length;e--;){var f=r[e],u=n[f];r[e]=[f,u,Y(u)]}return r}function Z(n,r){return function(e){return e==null?!1:e[n]===r&&(r!==void 0||n in Object(e))}}function Gn(n){var r=In(n);return r.length==1&&r[0][2]?Z(r[0][0],r[0][1]):function(e){return e===n||Dn(e,n,r)}}var $n=1,xn=2;function Cn(n,r){return c(n)&&Y(r)?Z(q(n),r):function(e){var f=V(e,n);return f===void 0&&f===r?h(e,n):M(r,f,$n|xn)}}function Bn(n){return function(r){return r==null?void 0:r[n]}}function Fn(n){return function(r){return K(r,n)}}function Nn(n){return c(n)?Bn(q(n)):Fn(n)}function cn(n){return typeof n=="function"?n:n==null?o:typeof n=="object"?b(n)?Cn(n[0],n[1]):Gn(n):Nn(n)}export{M as a,cn as b,en as s};