import { commonjsGlobal as j, getDefaultExportFromCjs as B } from "../../../_virtual/_commonjsHelpers.mjs";
import { __module as b } from "../../../_virtual/relativeTime.mjs";
(function(w, N) {
  (function(a, f) {
    w.exports = f();
  })(j, function() {
    return function(a, f, d) {
      a = a || {};
      var e = f.prototype, y = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
      function T(r, t, i, m) {
        return e.fromToBase(r, t, i, m);
      }
      d.en.relativeTime = y, e.fromToBase = function(r, t, i, m, g) {
        for (var l, s, h, c = i.$locale().relativeTime || y, p = a.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], $ = p.length, u = 0; u < $; u += 1) {
          var o = p[u];
          o.d && (l = m ? d(r).diff(i, o.d, !0) : i.diff(r, o.d, !0));
          var n = (a.rounding || Math.round)(Math.abs(l));
          if (h = l > 0, n <= o.r || !o.r) {
            n <= 1 && u > 0 && (o = p[u - 1]);
            var v = c[o.l];
            g && (n = g("" + n)), s = typeof v == "string" ? v.replace("%d", n) : v(n, t, o.l, h);
            break;
          }
        }
        if (t)
          return s;
        var M = h ? c.future : c.past;
        return typeof M == "function" ? M(s) : M.replace("%s", s);
      }, e.to = function(r, t) {
        return T(r, t, this, !0);
      }, e.from = function(r, t) {
        return T(r, t, this);
      };
      var x = function(r) {
        return r.$u ? d.utc() : d();
      };
      e.toNow = function(r) {
        return this.to(x(this), r);
      }, e.fromNow = function(r) {
        return this.from(x(this), r);
      };
    };
  });
})(b);
var E = b.exports;
const C = /* @__PURE__ */ B(E);
export {
  C as default
};
