import e from "./_getAllKeys.js";
//#region ../../node_modules/lodash-es/_equalObjects.js
var t = 1, n = Object.prototype.hasOwnProperty;
function r(r, i, a, o, s, c) {
	var l = a & t, u = e(r), d = u.length;
	if (d != e(i).length && !l) return !1;
	for (var f = d; f--;) {
		var p = u[f];
		if (!(l ? p in i : n.call(i, p))) return !1;
	}
	var m = c.get(r), h = c.get(i);
	if (m && h) return m == i && h == r;
	var g = !0;
	c.set(r, i), c.set(i, r);
	for (var _ = l; ++f < d;) {
		p = u[f];
		var v = r[p], y = i[p];
		if (o) var b = l ? o(y, v, p, i, r, c) : o(v, y, p, r, i, c);
		if (!(b === void 0 ? v === y || s(v, y, a, o, c) : b)) {
			g = !1;
			break;
		}
		_ ||= p == "constructor";
	}
	if (g && !_) {
		var x = r.constructor, S = i.constructor;
		x != S && "constructor" in r && "constructor" in i && !(typeof x == "function" && x instanceof x && typeof S == "function" && S instanceof S) && (g = !1);
	}
	return c.delete(r), c.delete(i), g;
}
//#endregion
export { r as default };
