import { __require as requireDatepart } from './datepart.mjs';

var meridiem;
var hasRequiredMeridiem;
function requireMeridiem() {
  if (hasRequiredMeridiem) return meridiem;
  hasRequiredMeridiem = 1;
  const DatePart = requireDatepart();
  class Meridiem extends DatePart {
    constructor(opts = {}) {
      super(opts);
    }
    up() {
      this.date.setHours((this.date.getHours() + 12) % 24);
    }
    down() {
      this.up();
    }
    toString() {
      let meridiem = this.date.getHours() > 12 ? 'pm' : 'am';
      return /\A/.test(this.token) ? meridiem.toUpperCase() : meridiem;
    }
  }
  meridiem = Meridiem;
  return meridiem;
}

export { requireMeridiem as __require };
