"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const _commonjsHelpers = require("../../../../../../_virtual/_commonjsHelpers.cjs");
const minMax$1 = require("../../../../../../_virtual/minMax.cjs");
(function(module2, exports2) {
  !function(e, n) {
    module2.exports = n();
  }(_commonjsHelpers.commonjsGlobal, function() {
    return function(e, n, t) {
      var i = function(e2, n2) {
        if (!n2 || !n2.length || 1 === n2.length && !n2[0] || 1 === n2.length && Array.isArray(n2[0]) && !n2[0].length) return null;
        var t2;
        1 === n2.length && n2[0].length > 0 && (n2 = n2[0]);
        t2 = (n2 = n2.filter(function(e3) {
          return e3;
        }))[0];
        for (var i2 = 1; i2 < n2.length; i2 += 1) n2[i2].isValid() && !n2[i2][e2](t2) || (t2 = n2[i2]);
        return t2;
      };
      t.max = function() {
        var e2 = [].slice.call(arguments, 0);
        return i("isAfter", e2);
      }, t.min = function() {
        var e2 = [].slice.call(arguments, 0);
        return i("isBefore", e2);
      };
    };
  });
})(minMax$1.__module);
var minMaxExports = minMax$1.__module.exports;
const minMax = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(minMaxExports);
exports.default = minMax;
