import{U as r,g as e,a as n,i as t,S as a,b as i}from"./_Uint8Array.js";import{M as o,S as u,e as c,a as f,i as s}from"./_MapCache.js";function v(r){var e=-1,n=null==r?0:r.length;for(this.__data__=new o;++e<n;)this.add(r[e])}function b(r,e){for(var n=-1,t=null==r?0:r.length;++n<t;)if(e(r[n],n,r))return!0;return!1}function j(r,e,n,t,a,i){var o=1&n,u=r.length,c=e.length;if(u!=c&&!(o&&c>u))return!1;var f=i.get(r),s=i.get(e);if(f&&s)return f==e&&s==r;var j=-1,_=!0,l=2&n?new v:void 0;for(i.set(r,e),i.set(e,r);++j<u;){var p=r[j],w=e[j];if(t)var d=o?t(w,p,j,e,r,i):t(p,w,j,r,e,i);if(void 0!==d){if(d)continue;_=!1;break}if(l){if(!b(e,(function(r,e){if(!l.has(e)&&(p===r||a(p,r,n,t,i)))return l.push(e)}))){_=!1;break}}else if(p!==w&&!a(p,w,n,t,i)){_=!1;break}}return i.delete(r),i.delete(e),_}function _(r){var e=-1,n=Array(r.size);return r.forEach((function(r,t){n[++e]=[t,r]})),n}function l(r){var e=-1,n=Array(r.size);return r.forEach((function(r){n[++e]=r})),n}v.prototype.add=v.prototype.push=function(r){return this.__data__.set(r,"__lodash_hash_undefined__"),this},v.prototype.has=function(r){return this.__data__.has(r)};var p=u?u.prototype:void 0,w=p?p.valueOf:void 0,d=Object.prototype.hasOwnProperty,h="[object Arguments]",y="[object Array]",m="[object Object]",A=Object.prototype.hasOwnProperty;function S(o,u,v,b,p){return o===u||(null==o||null==u||!s(o)&&!s(u)?o!=o&&u!=u:function(o,u,s,v,b,p){var S=f(o),g=f(u),k=S?y:n(o),M=g?y:n(u),O=(k=k==h?m:k)==m,x=(M=M==h?m:M)==m,B=k==M;if(B&&t(o)){if(!t(u))return!1;S=!0,O=!1}if(B&&!O)return p||(p=new a),S||i(o)?j(o,u,s,v,b,p):function(e,n,t,a,i,o,u){switch(t){case"[object DataView]":if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=n.byteLength||!o(new r(e),new r(n)));case"[object Boolean]":case"[object Date]":case"[object Number]":return c(+e,+n);case"[object Error]":return e.name==n.name&&e.message==n.message;case"[object RegExp]":case"[object String]":return e==n+"";case"[object Map]":var f=_;case"[object Set]":if(f||(f=l),e.size!=n.size&&!(1&a))return!1;var s=u.get(e);if(s)return s==n;a|=2,u.set(e,n);var v=j(f(e),f(n),a,i,o,u);return u.delete(e),v;case"[object Symbol]":if(w)return w.call(e)==w.call(n)}return!1}(o,u,k,s,v,b,p);if(!(1&s)){var D=O&&A.call(o,"__wrapped__"),E=x&&A.call(u,"__wrapped__");if(D||E){var U=D?o.value():o,C=E?u.value():u;return p||(p=new a),b(U,C,s,v,p)}}return!!B&&(p||(p=new a),function(r,n,t,a,i,o){var u=1&t,c=e(r),f=c.length;if(f!=e(n).length&&!u)return!1;for(var s=f;s--;){var v=c[s];if(!(u?v in n:d.call(n,v)))return!1}var b=o.get(r),j=o.get(n);if(b&&j)return b==n&&j==r;var _=!0;o.set(r,n),o.set(n,r);for(var l=u;++s<f;){var p=r[v=c[s]],w=n[v];if(a)var h=u?a(w,p,v,n,r,o):a(p,w,v,r,n,o);if(!(void 0===h?p===w||i(p,w,t,a,o):h)){_=!1;break}l||(l="constructor"==v)}if(_&&!l){var y=r.constructor,m=n.constructor;y==m||!("constructor"in r)||!("constructor"in n)||"function"==typeof y&&y instanceof y&&"function"==typeof m&&m instanceof m||(_=!1)}return o.delete(r),o.delete(n),_}(o,u,s,v,b,p))}(o,u,v,b,S,p))}export{S as b}