import o from "../../../../@gilbarbara_deep-equal@0.1.2/node_modules/@gilbarbara/deep-equal/esm/index.js";
import t from "../../../../is-lite@0.8.2/node_modules/is-lite/esm/index.js";
function j() {
  for (var e = [], r = 0; r < arguments.length; r++)
    e[r] = arguments[r];
  return e.every(function(n) {
    return t.string(n) || t.array(n) || t.plainObject(n);
  });
}
function g(e, r, n) {
  return O(e, r) ? [e, r].every(t.array) ? !e.some(l(n)) && r.some(l(n)) : [e, r].every(t.plainObject) ? !Object.entries(e).some(b(n)) && Object.entries(r).some(b(n)) : r === n : !1;
}
function p(e, r, n) {
  var u = n.actual, i = n.key, f = n.previous, a = n.type, c = v(e, i), y = v(r, i), s = [c, y].every(t.number) && (a === "increased" ? c < y : c > y);
  return t.undefined(u) || (s = s && y === u), t.undefined(f) || (s = s && c === f), s;
}
function q(e, r, n) {
  var u = n.key, i = n.type, f = n.value, a = v(e, u), c = v(r, u), y = i === "added" ? a : c, s = i === "added" ? c : a;
  if (!t.nullOrUndefined(f)) {
    if (t.defined(y)) {
      if (t.array(y) || t.plainObject(y))
        return g(y, s, f);
    } else
      return o(s, f);
    return !1;
  }
  return [a, c].every(t.array) ? !s.every(d(y)) : [a, c].every(t.plainObject) ? k(Object.keys(y), Object.keys(s)) : ![a, c].every(function(m) {
    return t.primitive(m) && t.defined(m);
  }) && (i === "added" ? !t.defined(a) && t.defined(c) : t.defined(a) && !t.defined(c));
}
function w(e, r, n) {
  var u = n === void 0 ? {} : n, i = u.key, f = v(e, i), a = v(r, i);
  if (!O(f, a))
    throw new TypeError("Inputs have different types");
  if (!j(f, a))
    throw new TypeError("Inputs don't have length");
  return [f, a].every(t.plainObject) && (f = Object.keys(f), a = Object.keys(a)), [f, a];
}
function b(e) {
  return function(r) {
    var n = r[0], u = r[1];
    return t.array(e) ? o(e, u) || e.some(function(i) {
      return o(i, u) || t.array(u) && d(u)(i);
    }) : t.plainObject(e) && e[n] ? !!e[n] && o(e[n], u) : o(e, u);
  };
}
function k(e, r) {
  return r.some(function(n) {
    return !e.includes(n);
  });
}
function l(e) {
  return function(r) {
    return t.array(e) ? e.some(function(n) {
      return o(n, r) || t.array(r) && d(r)(n);
    }) : o(e, r);
  };
}
function T(e, r) {
  return t.array(e) ? e.some(function(n) {
    return o(n, r);
  }) : o(e, r);
}
function d(e) {
  return function(r) {
    return e.some(function(n) {
      return o(n, r);
    });
  };
}
function O() {
  for (var e = [], r = 0; r < arguments.length; r++)
    e[r] = arguments[r];
  return e.every(t.array) || e.every(t.number) || e.every(t.plainObject) || e.every(t.string);
}
function v(e, r) {
  if (t.plainObject(e) || t.array(e)) {
    if (t.string(r)) {
      var n = r.split(".");
      return n.reduce(function(u, i) {
        return u && u[i];
      }, e);
    }
    return t.number(r) ? e[r] : e;
  }
  return e;
}
export {
  j as canHaveLength,
  g as checkEquality,
  p as compareNumbers,
  q as compareValues,
  w as getIterables,
  b as hasEntry,
  k as hasExtraKeys,
  l as hasValue,
  T as includesOrEqualsTo,
  d as isEqualPredicate,
  O as isSameType,
  v as nested
};
//# sourceMappingURL=helpers.js.map
