"use strict";
(self["webpackChunkEntryScapeRegistry"] = self["webpackChunkEntryScapeRegistry"] || []).push([["chartjs-adapter-moment"],{

/***/ "./node_modules/.pnpm/chartjs-adapter-moment@1.0.1_chart.js@4.5.1_moment@2.30.1/node_modules/chartjs-adapter-moment/dist/chartjs-adapter-moment.esm.js"
/*!*************************************************************************************************************************************************************!*\
  !*** ./node_modules/.pnpm/chartjs-adapter-moment@1.0.1_chart.js@4.5.1_moment@2.30.1/node_modules/chartjs-adapter-moment/dist/chartjs-adapter-moment.esm.js ***!
  \*************************************************************************************************************************************************************/
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

__webpack_require__.r(__webpack_exports__);
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ "./node_modules/.pnpm/moment@2.30.1/node_modules/moment/moment.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var chart_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! chart.js */ "./node_modules/.pnpm/chart.js@4.5.1/node_modules/chart.js/dist/chart.js");
/*!
  * chartjs-adapter-moment v1.0.1
  * https://www.chartjs.org
  * (c) 2022 chartjs-adapter-moment Contributors
  * Released under the MIT license
  */



const FORMATS = {
  datetime: 'MMM D, YYYY, h:mm:ss a',
  millisecond: 'h:mm:ss.SSS a',
  second: 'h:mm:ss a',
  minute: 'h:mm a',
  hour: 'hA',
  day: 'MMM D',
  week: 'll',
  month: 'MMM YYYY',
  quarter: '[Q]Q - YYYY',
  year: 'YYYY'
};

chart_js__WEBPACK_IMPORTED_MODULE_1__._adapters._date.override(typeof (moment__WEBPACK_IMPORTED_MODULE_0___default()) === 'function' ? {
  _id: 'moment', // DEBUG ONLY

  formats: function() {
    return FORMATS;
  },

  parse: function(value, format) {
    if (typeof value === 'string' && typeof format === 'string') {
      value = moment__WEBPACK_IMPORTED_MODULE_0___default()(value, format);
    } else if (!(value instanceof (moment__WEBPACK_IMPORTED_MODULE_0___default()))) {
      value = moment__WEBPACK_IMPORTED_MODULE_0___default()(value);
    }
    return value.isValid() ? value.valueOf() : null;
  },

  format: function(time, format) {
    return moment__WEBPACK_IMPORTED_MODULE_0___default()(time).format(format);
  },

  add: function(time, amount, unit) {
    return moment__WEBPACK_IMPORTED_MODULE_0___default()(time).add(amount, unit).valueOf();
  },

  diff: function(max, min, unit) {
    return moment__WEBPACK_IMPORTED_MODULE_0___default()(max).diff(moment__WEBPACK_IMPORTED_MODULE_0___default()(min), unit);
  },

  startOf: function(time, unit, weekday) {
    time = moment__WEBPACK_IMPORTED_MODULE_0___default()(time);
    if (unit === 'isoWeek') {
      weekday = Math.trunc(Math.min(Math.max(0, weekday), 6));
      return time.isoWeekday(weekday).startOf('day').valueOf();
    }
    return time.startOf(unit).valueOf();
  },

  endOf: function(time, unit) {
    return moment__WEBPACK_IMPORTED_MODULE_0___default()(time).endOf(unit).valueOf();
  }
} : {});


/***/ }

}]);
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhcnRqcy1hZGFwdGVyLW1vbWVudC40OTU4ZDMyNDJhNDkzMzUwOGIxYy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUN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