import { __require as g } from "../../../has@1.0.3/node_modules/has/src/index.js";
import q from "./core.js";
var f, d;
function y() {
  if (d)
    return f;
  d = 1;
  var p = g();
  function l(t, r) {
    for (var n = t.split("."), e = r.split(" "), s = e.length > 1 ? e[0] : "=", h = (e.length > 1 ? e[1] : e[0]).split("."), o = 0; o < 3; ++o) {
      var a = parseInt(n[o] || 0, 10), u = parseInt(h[o] || 0, 10);
      if (a !== u)
        return s === "<" ? a < u : s === ">=" ? a >= u : !1;
    }
    return s === ">=";
  }
  function i(t, r) {
    var n = r.split(/ ?&& ?/);
    if (n.length === 0)
      return !1;
    for (var e = 0; e < n.length; ++e)
      if (!l(t, n[e]))
        return !1;
    return !0;
  }
  function c(t, r) {
    if (typeof r == "boolean")
      return r;
    var n = typeof t > "u" ? process.versions && process.versions.node : t;
    if (typeof n != "string")
      throw new TypeError(typeof t > "u" ? "Unable to determine current node version" : "If provided, a valid node version is required");
    if (r && typeof r == "object") {
      for (var e = 0; e < r.length; ++e)
        if (i(n, r[e]))
          return !0;
      return !1;
    }
    return i(n, r);
  }
  var v = q;
  return f = function(r, n) {
    return p(v, r) && c(n, v[r]);
  }, f;
}
export {
  y as __require
};
//# sourceMappingURL=index.js.map
