import e from "./_Stack.js";
import t from "./_baseIsEqual.js";
//#region ../../node_modules/lodash-es/_baseIsMatch.js
var n = 1, r = 2;
function i(i, a, o, s) {
	var c = o.length, l = c, u = !s;
	if (i == null) return !l;
	for (i = Object(i); c--;) {
		var d = o[c];
		if (u && d[2] ? d[1] !== i[d[0]] : !(d[0] in i)) return !1;
	}
	for (; ++c < l;) {
		d = o[c];
		var f = d[0], p = i[f], m = d[1];
		if (u && d[2]) {
			if (p === void 0 && !(f in i)) return !1;
		} else {
			var h = new e();
			if (s) var g = s(p, m, f, i, a, h);
			if (!(g === void 0 ? t(m, p, n | r, s, h) : g)) return !1;
		}
	}
	return !0;
}
//#endregion
export { i as default };
