UNPKG

lakutata

Version:

An IoC-based universal application framework.

1,335 lines (1,312 loc) 882 kB
"use strict"; const M = require("./Package.5.cjs"); const z = require("./Package.7.cjs"); var b = { exports: {} }; var p = { exports: {} }; var O = { exports: {} }; var A = O.exports; var c; function o() { if (c) return O.exports; c = 1; (function(b, p) { (function(M, z) { "object" === "object" && "object" !== "undefined" ? b.exports = z() : typeof undefined === "function" && undefined.amd ? undefined(z) : M.moment = z(); })(M.commonjsGlobal, (function() { "use strict"; var M; function p() { return M.apply(null, arguments); } function O(z) { M = z; } function A(M) { return M instanceof Array || Object.prototype.toString.call(M) === "[object Array]"; } function c(M) { return M != null && Object.prototype.toString.call(M) === "[object Object]"; } function o(M, z) { return Object.prototype.hasOwnProperty.call(M, z); } function q(M) { if (Object.getOwnPropertyNames) { return Object.getOwnPropertyNames(M).length === 0; } else { var z; for (z in M) { if (o(M, z)) { return false; } } return true; } } function W(M) { return M === void 0; } function d(M) { return typeof M === "number" || Object.prototype.toString.call(M) === "[object Number]"; } function n(M) { return M instanceof Date || Object.prototype.toString.call(M) === "[object Date]"; } function a(M, z) { var b = [], p, O = M.length; for (p = 0; p < O; ++p) { b.push(z(M[p], p)); } return b; } function e(M, z) { for (var b in z) { if (o(z, b)) { M[b] = z[b]; } } if (o(z, "toString")) { M.toString = z.toString; } if (o(z, "valueOf")) { M.valueOf = z.valueOf; } return M; } function i(M, z, b, p) { return Kb(M, z, b, p, true).utc(); } function R() { return { empty: false, unusedTokens: [], unusedInput: [], overflow: -2, charsLeftOver: 0, nullInput: false, invalidEra: null, invalidMonth: null, invalidFormat: false, userInvalidated: false, iso: false, parsedDateParts: [], era: null, meridiem: null, rfc2822: false, weekdayMismatch: false }; } function r(M) { if (M._pf == null) { M._pf = R(); } return M._pf; } var f; if (Array.prototype.some) { f = Array.prototype.some; } else { f = function(M) { var z = Object(this), b = z.length >>> 0, p; for (p = 0; p < b; p++) { if (p in z && M.call(this, z[p], p, z)) { return true; } } return false; }; } function t(M) { var z = null, b = false, p = M._d && !isNaN(M._d.getTime()); if (p) { z = r(M); b = f.call(z.parsedDateParts, (function(M) { return M != null; })); p = z.overflow < 0 && !z.empty && !z.invalidEra && !z.invalidMonth && !z.invalidWeekday && !z.weekdayMismatch && !z.nullInput && !z.invalidFormat && !z.userInvalidated && (!z.meridiem || z.meridiem && b); if (M._strict) { p = p && z.charsLeftOver === 0 && z.unusedTokens.length === 0 && z.bigHour === undefined; } } if (Object.isFrozen == null || !Object.isFrozen(M)) { M._isValid = p; } else { return p; } return M._isValid; } function L(M) { var z = i(NaN); if (M != null) { e(r(z), M); } else { r(z).userInvalidated = true; } return z; } var u = p.momentProperties = [], s = false; function N(M, z) { var b, p, O, A = u.length; if (!W(z._isAMomentObject)) { M._isAMomentObject = z._isAMomentObject; } if (!W(z._i)) { M._i = z._i; } if (!W(z._f)) { M._f = z._f; } if (!W(z._l)) { M._l = z._l; } if (!W(z._strict)) { M._strict = z._strict; } if (!W(z._tzm)) { M._tzm = z._tzm; } if (!W(z._isUTC)) { M._isUTC = z._isUTC; } if (!W(z._offset)) { M._offset = z._offset; } if (!W(z._pf)) { M._pf = r(z); } if (!W(z._locale)) { M._locale = z._locale; } if (A > 0) { for (b = 0; b < A; b++) { p = u[b]; O = z[p]; if (!W(O)) { M[p] = O; } } } return M; } function B(M) { N(this, M); this._d = new Date(M._d != null ? M._d.getTime() : NaN); if (!this.isValid()) { this._d = new Date(NaN); } if (s === false) { s = true; p.updateOffset(this); s = false; } } function l(M) { return M instanceof B || M != null && M._isAMomentObject != null; } function X(M) { if (p.suppressDeprecationWarnings === false && typeof console !== "undefined" && console.warn) { console.warn("Deprecation warning: " + M); } } function h(M, z) { var b = true; return e((function() { if (p.deprecationHandler != null) { p.deprecationHandler(null, M); } if (b) { var O = [], A, c, q, W = arguments.length; for (c = 0; c < W; c++) { A = ""; if (typeof arguments[c] === "object") { A += "\n[" + c + "] "; for (q in arguments[0]) { if (o(arguments[0], q)) { A += q + ": " + arguments[0][q] + ", "; } } A = A.slice(0, -2); } else { A = arguments[c]; } O.push(A); } X(M + "\nArguments: " + Array.prototype.slice.call(O).join("") + "\n" + (new Error).stack); b = false; } return z.apply(this, arguments); }), z); } var T = {}; function m(M, z) { if (p.deprecationHandler != null) { p.deprecationHandler(M, z); } if (!T[M]) { X(z); T[M] = true; } } p.suppressDeprecationWarnings = false; p.deprecationHandler = null; function g(M) { return typeof Function !== "undefined" && M instanceof Function || Object.prototype.toString.call(M) === "[object Function]"; } function S(M) { var z, b; for (b in M) { if (o(M, b)) { z = M[b]; if (g(z)) { this[b] = z; } else { this["_" + b] = z; } } } this._config = M; this._dayOfMonthOrdinalParseLenient = new RegExp((this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source); } function _(M, z) { var b = e({}, M), p; for (p in z) { if (o(z, p)) { if (c(M[p]) && c(z[p])) { b[p] = {}; e(b[p], M[p]); e(b[p], z[p]); } else if (z[p] != null) { b[p] = z[p]; } else { delete b[p]; } } } for (p in M) { if (o(M, p) && !o(z, p) && c(M[p])) { b[p] = e({}, b[p]); } } return b; } function E(M) { if (M != null) { this.set(M); } } var C; if (Object.keys) { C = Object.keys; } else { C = function(M) { var z, b = []; for (z in M) { if (o(M, z)) { b.push(z); } } return b; }; } var y = { sameDay: "[Today at] LT", nextDay: "[Tomorrow at] LT", nextWeek: "dddd [at] LT", lastDay: "[Yesterday at] LT", lastWeek: "[Last] dddd [at] LT", sameElse: "L" }; function D(M, z, b) { var p = this._calendar[M] || this._calendar["sameElse"]; return g(p) ? p.call(z, b) : p; } function w(M, z, b) { var p = "" + Math.abs(M), O = z - p.length, A = M >= 0; return (A ? b ? "+" : "" : "-") + Math.pow(10, Math.max(0, O)).toString().substr(1) + p; } var k = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, v = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, P = {}, U = {}; function x(M, z, b, p) { var O = p; if (typeof p === "string") { O = function() { return this[p](); }; } if (M) { U[M] = O; } if (z) { U[z[0]] = function() { return w(O.apply(this, arguments), z[1], z[2]); }; } if (b) { U[b] = function() { return this.localeData().ordinal(O.apply(this, arguments), M); }; } } function H(M) { if (M.match(/\[[\s\S]/)) { return M.replace(/^\[|\]$/g, ""); } return M.replace(/\\/g, ""); } function I(M) { var z = M.match(k), b, p; for (b = 0, p = z.length; b < p; b++) { if (U[z[b]]) { z[b] = U[z[b]]; } else { z[b] = H(z[b]); } } return function(b) { var O = "", A; for (A = 0; A < p; A++) { O += g(z[A]) ? z[A].call(b, M) : z[A]; } return O; }; } function Y(M, z) { if (!M.isValid()) { return M.localeData().invalidDate(); } z = j(z, M.localeData()); P[z] = P[z] || I(z); return P[z](M); } function j(M, z) { var b = 5; function p(M) { return z.longDateFormat(M) || M; } v.lastIndex = 0; while (b >= 0 && v.test(M)) { M = M.replace(v, p); v.lastIndex = 0; b -= 1; } return M; } var G = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }; function F(M) { var z = this._longDateFormat[M], b = this._longDateFormat[M.toUpperCase()]; if (z || !b) { return z; } this._longDateFormat[M] = b.match(k).map((function(M) { if (M === "MMMM" || M === "MM" || M === "DD" || M === "dddd") { return M.slice(1); } return M; })).join(""); return this._longDateFormat[M]; } var K = "Invalid date"; function V() { return this._invalidDate; } var Q = "%d", J = /\d{1,2}/; function Z(M) { return this._ordinal.replace("%d", M); } var $ = { future: "in %s", past: "%s ago", s: "a few seconds", ss: "%d seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", w: "a week", ww: "%d weeks", M: "a month", MM: "%d months", y: "a year", yy: "%d years" }; function MM(M, z, b, p) { var O = this._relativeTime[b]; return g(O) ? O(M, z, b, p) : O.replace(/%d/i, M); } function zM(M, z) { var b = this._relativeTime[M > 0 ? "future" : "past"]; return g(b) ? b(z) : b.replace(/%s/i, z); } var bM = { D: "date", dates: "date", date: "date", d: "day", days: "day", day: "day", e: "weekday", weekdays: "weekday", weekday: "weekday", E: "isoWeekday", isoweekdays: "isoWeekday", isoweekday: "isoWeekday", DDD: "dayOfYear", dayofyears: "dayOfYear", dayofyear: "dayOfYear", h: "hour", hours: "hour", hour: "hour", ms: "millisecond", milliseconds: "millisecond", millisecond: "millisecond", m: "minute", minutes: "minute", minute: "minute", M: "month", months: "month", month: "month", Q: "quarter", quarters: "quarter", quarter: "quarter", s: "second", seconds: "second", second: "second", gg: "weekYear", weekyears: "weekYear", weekyear: "weekYear", GG: "isoWeekYear", isoweekyears: "isoWeekYear", isoweekyear: "isoWeekYear", w: "week", weeks: "week", week: "week", W: "isoWeek", isoweeks: "isoWeek", isoweek: "isoWeek", y: "year", years: "year", year: "year" }; function pM(M) { return typeof M === "string" ? bM[M] || bM[M.toLowerCase()] : undefined; } function OM(M) { var z = {}, b, p; for (p in M) { if (o(M, p)) { b = pM(p); if (b) { z[b] = M[p]; } } } return z; } var AM = { date: 9, day: 11, weekday: 11, isoWeekday: 11, dayOfYear: 4, hour: 13, millisecond: 16, minute: 14, month: 8, quarter: 7, second: 15, weekYear: 1, isoWeekYear: 1, week: 5, isoWeek: 5, year: 1 }; function cM(M) { var z = [], b; for (b in M) { if (o(M, b)) { z.push({ unit: b, priority: AM[b] }); } } z.sort((function(M, z) { return M.priority - z.priority; })); return z; } var oM = /\d/, qM = /\d\d/, WM = /\d{3}/, dM = /\d{4}/, nM = /[+-]?\d{6}/, aM = /\d\d?/, eM = /\d\d\d\d?/, iM = /\d\d\d\d\d\d?/, RM = /\d{1,3}/, rM = /\d{1,4}/, fM = /[+-]?\d{1,6}/, tM = /\d+/, LM = /[+-]?\d+/, uM = /Z|[+-]\d\d:?\d\d/gi, sM = /Z|[+-]\d\d(?::?\d\d)?/gi, NM = /[+-]?\d+(\.\d{1,3})?/, BM = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, lM = /^[1-9]\d?/, XM = /^([1-9]\d|\d)/, hM; hM = {}; function TM(M, z, b) { hM[M] = g(z) ? z : function(M, p) { return M && b ? b : z; }; } function mM(M, z) { if (!o(hM, M)) { return new RegExp(gM(M)); } return hM[M](z._strict, z._locale); } function gM(M) { return SM(M.replace("\\", "").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, (function(M, z, b, p, O) { return z || b || p || O; }))); } function SM(M) { return M.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"); } function _M(M) { if (M < 0) { return Math.ceil(M) || 0; } else { return Math.floor(M); } } function EM(M) { var z = +M, b = 0; if (z !== 0 && isFinite(z)) { b = _M(z); } return b; } var CM = {}; function yM(M, z) { var b, p = z, O; if (typeof M === "string") { M = [ M ]; } if (d(z)) { p = function(M, b) { b[z] = EM(M); }; } O = M.length; for (b = 0; b < O; b++) { CM[M[b]] = p; } } function DM(M, z) { yM(M, (function(M, b, p, O) { p._w = p._w || {}; z(M, p._w, p, O); })); } function wM(M, z, b) { if (z != null && o(CM, M)) { CM[M](z, b._a, b, M); } } function kM(M) { return M % 4 === 0 && M % 100 !== 0 || M % 400 === 0; } var vM = 0, PM = 1, UM = 2, xM = 3, HM = 4, IM = 5, YM = 6, jM = 7, GM = 8; x("Y", 0, 0, (function() { var M = this.year(); return M <= 9999 ? w(M, 4) : "+" + M; })); x(0, [ "YY", 2 ], 0, (function() { return this.year() % 100; })); x(0, [ "YYYY", 4 ], 0, "year"); x(0, [ "YYYYY", 5 ], 0, "year"); x(0, [ "YYYYYY", 6, true ], 0, "year"); TM("Y", LM); TM("YY", aM, qM); TM("YYYY", rM, dM); TM("YYYYY", fM, nM); TM("YYYYYY", fM, nM); yM([ "YYYYY", "YYYYYY" ], vM); yM("YYYY", (function(M, z) { z[vM] = M.length === 2 ? p.parseTwoDigitYear(M) : EM(M); })); yM("YY", (function(M, z) { z[vM] = p.parseTwoDigitYear(M); })); yM("Y", (function(M, z) { z[vM] = parseInt(M, 10); })); function FM(M) { return kM(M) ? 366 : 365; } p.parseTwoDigitYear = function(M) { return EM(M) + (EM(M) > 68 ? 1900 : 2e3); }; var KM = QM("FullYear", true); function VM() { return kM(this.year()); } function QM(M, z) { return function(b) { if (b != null) { ZM(this, M, b); p.updateOffset(this, z); return this; } else { return JM(this, M); } }; } function JM(M, z) { if (!M.isValid()) { return NaN; } var b = M._d, p = M._isUTC; switch (z) { case "Milliseconds": return p ? b.getUTCMilliseconds() : b.getMilliseconds(); case "Seconds": return p ? b.getUTCSeconds() : b.getSeconds(); case "Minutes": return p ? b.getUTCMinutes() : b.getMinutes(); case "Hours": return p ? b.getUTCHours() : b.getHours(); case "Date": return p ? b.getUTCDate() : b.getDate(); case "Day": return p ? b.getUTCDay() : b.getDay(); case "Month": return p ? b.getUTCMonth() : b.getMonth(); case "FullYear": return p ? b.getUTCFullYear() : b.getFullYear(); default: return NaN; } } function ZM(M, z, b) { var p, O, A, c, o; if (!M.isValid() || isNaN(b)) { return; } p = M._d; O = M._isUTC; switch (z) { case "Milliseconds": return void (O ? p.setUTCMilliseconds(b) : p.setMilliseconds(b)); case "Seconds": return void (O ? p.setUTCSeconds(b) : p.setSeconds(b)); case "Minutes": return void (O ? p.setUTCMinutes(b) : p.setMinutes(b)); case "Hours": return void (O ? p.setUTCHours(b) : p.setHours(b)); case "Date": return void (O ? p.setUTCDate(b) : p.setDate(b)); case "FullYear": break; default: return; } A = b; c = M.month(); o = M.date(); o = o === 29 && c === 1 && !kM(A) ? 28 : o; void (O ? p.setUTCFullYear(A, c, o) : p.setFullYear(A, c, o)); } function $M(M) { M = pM(M); if (g(this[M])) { return this[M](); } return this; } function Mz(M, z) { if (typeof M === "object") { M = OM(M); var b = cM(M), p, O = b.length; for (p = 0; p < O; p++) { this[b[p].unit](M[b[p].unit]); } } else { M = pM(M); if (g(this[M])) { return this[M](z); } } return this; } function zz(M, z) { return (M % z + z) % z; } var bz; if (Array.prototype.indexOf) { bz = Array.prototype.indexOf; } else { bz = function(M) { var z; for (z = 0; z < this.length; ++z) { if (this[z] === M) { return z; } } return -1; }; } function pz(M, z) { if (isNaN(M) || isNaN(z)) { return NaN; } var b = zz(z, 12); M += (z - b) / 12; return b === 1 ? kM(M) ? 29 : 28 : 31 - b % 7 % 2; } x("M", [ "MM", 2 ], "Mo", (function() { return this.month() + 1; })); x("MMM", 0, 0, (function(M) { return this.localeData().monthsShort(this, M); })); x("MMMM", 0, 0, (function(M) { return this.localeData().months(this, M); })); TM("M", aM, lM); TM("MM", aM, qM); TM("MMM", (function(M, z) { return z.monthsShortRegex(M); })); TM("MMMM", (function(M, z) { return z.monthsRegex(M); })); yM([ "M", "MM" ], (function(M, z) { z[PM] = EM(M) - 1; })); yM([ "MMM", "MMMM" ], (function(M, z, b, p) { var O = b._locale.monthsParse(M, p, b._strict); if (O != null) { z[PM] = O; } else { r(b).invalidMonth = M; } })); var Oz = "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), Az = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), cz = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, oz = BM, qz = BM; function Wz(M, z) { if (!M) { return A(this._months) ? this._months : this._months["standalone"]; } return A(this._months) ? this._months[M.month()] : this._months[(this._months.isFormat || cz).test(z) ? "format" : "standalone"][M.month()]; } function dz(M, z) { if (!M) { return A(this._monthsShort) ? this._monthsShort : this._monthsShort["standalone"]; } return A(this._monthsShort) ? this._monthsShort[M.month()] : this._monthsShort[cz.test(z) ? "format" : "standalone"][M.month()]; } function nz(M, z, b) { var p, O, A, c = M.toLocaleLowerCase(); if (!this._monthsParse) { this._monthsParse = []; this._longMonthsParse = []; this._shortMonthsParse = []; for (p = 0; p < 12; ++p) { A = i([ 2e3, p ]); this._shortMonthsParse[p] = this.monthsShort(A, "").toLocaleLowerCase(); this._longMonthsParse[p] = this.months(A, "").toLocaleLowerCase(); } } if (b) { if (z === "MMM") { O = bz.call(this._shortMonthsParse, c); return O !== -1 ? O : null; } else { O = bz.call(this._longMonthsParse, c); return O !== -1 ? O : null; } } else { if (z === "MMM") { O = bz.call(this._shortMonthsParse, c); if (O !== -1) { return O; } O = bz.call(this._longMonthsParse, c); return O !== -1 ? O : null; } else { O = bz.call(this._longMonthsParse, c); if (O !== -1) { return O; } O = bz.call(this._shortMonthsParse, c); return O !== -1 ? O : null; } } } function az(M, z, b) { var p, O, A; if (this._monthsParseExact) { return nz.call(this, M, z, b); } if (!this._monthsParse) { this._monthsParse = []; this._longMonthsParse = []; this._shortMonthsParse = []; } for (p = 0; p < 12; p++) { O = i([ 2e3, p ]); if (b && !this._longMonthsParse[p]) { this._longMonthsParse[p] = new RegExp("^" + this.months(O, "").replace(".", "") + "$", "i"); this._shortMonthsParse[p] = new RegExp("^" + this.monthsShort(O, "").replace(".", "") + "$", "i"); } if (!b && !this._monthsParse[p]) { A = "^" + this.months(O, "") + "|^" + this.monthsShort(O, ""); this._monthsParse[p] = new RegExp(A.replace(".", ""), "i"); } if (b && z === "MMMM" && this._longMonthsParse[p].test(M)) { return p; } else if (b && z === "MMM" && this._shortMonthsParse[p].test(M)) { return p; } else if (!b && this._monthsParse[p].test(M)) { return p; } } } function ez(M, z) { if (!M.isValid()) { return M; } if (typeof z === "string") { if (/^\d+$/.test(z)) { z = EM(z); } else { z = M.localeData().monthsParse(z); if (!d(z)) { return M; } } } var b = z, p = M.date(); p = p < 29 ? p : Math.min(p, pz(M.year(), b)); void (M._isUTC ? M._d.setUTCMonth(b, p) : M._d.setMonth(b, p)); return M; } function iz(M) { if (M != null) { ez(this, M); p.updateOffset(this, true); return this; } else { return JM(this, "Month"); } } function Rz() { return pz(this.year(), this.month()); } function rz(M) { if (this._monthsParseExact) { if (!o(this, "_monthsRegex")) { tz.call(this); } if (M) { return this._monthsShortStrictRegex; } else { return this._monthsShortRegex; } } else { if (!o(this, "_monthsShortRegex")) { this._monthsShortRegex = oz; } return this._monthsShortStrictRegex && M ? this._monthsShortStrictRegex : this._monthsShortRegex; } } function fz(M) { if (this._monthsParseExact) { if (!o(this, "_monthsRegex")) { tz.call(this); } if (M) { return this._monthsStrictRegex; } else { return this._monthsRegex; } } else { if (!o(this, "_monthsRegex")) { this._monthsRegex = qz; } return this._monthsStrictRegex && M ? this._monthsStrictRegex : this._monthsRegex; } } function tz() { function M(M, z) { return z.length - M.length; } var z = [], b = [], p = [], O, A, c, o; for (O = 0; O < 12; O++) { A = i([ 2e3, O ]); c = SM(this.monthsShort(A, "")); o = SM(this.months(A, "")); z.push(c); b.push(o); p.push(o); p.push(c); } z.sort(M); b.sort(M); p.sort(M); this._monthsRegex = new RegExp("^(" + p.join("|") + ")", "i"); this._monthsShortRegex = this._monthsRegex; this._monthsStrictRegex = new RegExp("^(" + b.join("|") + ")", "i"); this._monthsShortStrictRegex = new RegExp("^(" + z.join("|") + ")", "i"); } function Lz(M, z, b, p, O, A, c) { var o; if (M < 100 && M >= 0) { o = new Date(M + 400, z, b, p, O, A, c); if (isFinite(o.getFullYear())) { o.setFullYear(M); } } else { o = new Date(M, z, b, p, O, A, c); } return o; } function uz(M) { var z, b; if (M < 100 && M >= 0) { b = Array.prototype.slice.call(arguments); b[0] = M + 400; z = new Date(Date.UTC.apply(null, b)); if (isFinite(z.getUTCFullYear())) { z.setUTCFullYear(M); } } else { z = new Date(Date.UTC.apply(null, arguments)); } return z; } function sz(M, z, b) { var p = 7 + z - b, O = (7 + uz(M, 0, p).getUTCDay() - z) % 7; return -O + p - 1; } function Nz(M, z, b, p, O) { var A = (7 + b - p) % 7, c = sz(M, p, O), o = 1 + 7 * (z - 1) + A + c, q, W; if (o <= 0) { q = M - 1; W = FM(q) + o; } else if (o > FM(M)) { q = M + 1; W = o - FM(M); } else { q = M; W = o; } return { year: q, dayOfYear: W }; } function Bz(M, z, b) { var p = sz(M.year(), z, b), O = Math.floor((M.dayOfYear() - p - 1) / 7) + 1, A, c; if (O < 1) { c = M.year() - 1; A = O + lz(c, z, b); } else if (O > lz(M.year(), z, b)) { A = O - lz(M.year(), z, b); c = M.year() + 1; } else { c = M.year(); A = O; } return { week: A, year: c }; } function lz(M, z, b) { var p = sz(M, z, b), O = sz(M + 1, z, b); return (FM(M) - p + O) / 7; } x("w", [ "ww", 2 ], "wo", "week"); x("W", [ "WW", 2 ], "Wo", "isoWeek"); TM("w", aM, lM); TM("ww", aM, qM); TM("W", aM, lM); TM("WW", aM, qM); DM([ "w", "ww", "W", "WW" ], (function(M, z, b, p) { z[p.substr(0, 1)] = EM(M); })); function Xz(M) { return Bz(M, this._week.dow, this._week.doy).week; } var hz = { dow: 0, doy: 6 }; function Tz() { return this._week.dow; } function mz() { return this._week.doy; } function gz(M) { var z = this.localeData().week(this); return M == null ? z : this.add((M - z) * 7, "d"); } function Sz(M) { var z = Bz(this, 1, 4).week; return M == null ? z : this.add((M - z) * 7, "d"); } x("d", 0, "do", "day"); x("dd", 0, 0, (function(M) { return this.localeData().weekdaysMin(this, M); })); x("ddd", 0, 0, (function(M) { return this.localeData().weekdaysShort(this, M); })); x("dddd", 0, 0, (function(M) { return this.localeData().weekdays(this, M); })); x("e", 0, 0, "weekday"); x("E", 0, 0, "isoWeekday"); TM("d", aM); TM("e", aM); TM("E", aM); TM("dd", (function(M, z) { return z.weekdaysMinRegex(M); })); TM("ddd", (function(M, z) { return z.weekdaysShortRegex(M); })); TM("dddd", (function(M, z) { return z.weekdaysRegex(M); })); DM([ "dd", "ddd", "dddd" ], (function(M, z, b, p) { var O = b._locale.weekdaysParse(M, p, b._strict); if (O != null) { z.d = O; } else { r(b).invalidWeekday = M; } })); DM([ "d", "e", "E" ], (function(M, z, b, p) { z[p] = EM(M); })); function _z(M, z) { if (typeof M !== "string") { return M; } if (!isNaN(M)) { return parseInt(M, 10); } M = z.weekdaysParse(M); if (typeof M === "number") { return M; } return null; } function Ez(M, z) { if (typeof M === "string") { return z.weekdaysParse(M) % 7 || 7; } return isNaN(M) ? null : M; } function Cz(M, z) { return M.slice(z, 7).concat(M.slice(0, z)); } var yz = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), Dz = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), wz = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), kz = BM, vz = BM, Pz = BM; function Uz(M, z) { var b = A(this._weekdays) ? this._weekdays : this._weekdays[M && M !== true && this._weekdays.isFormat.test(z) ? "format" : "standalone"]; return M === true ? Cz(b, this._week.dow) : M ? b[M.day()] : b; } function xz(M) { return M === true ? Cz(this._weekdaysShort, this._week.dow) : M ? this._weekdaysShort[M.day()] : this._weekdaysShort; } function Hz(M) { return M === true ? Cz(this._weekdaysMin, this._week.dow) : M ? this._weekdaysMin[M.day()] : this._weekdaysMin; } function Iz(M, z, b) { var p, O, A, c = M.toLocaleLowerCase(); if (!this._weekdaysParse) { this._weekdaysParse = []; this._shortWeekdaysParse = []; this._minWeekdaysParse = []; for (p = 0; p < 7; ++p) { A = i([ 2e3, 1 ]).day(p); this._minWeekdaysParse[p] = this.weekdaysMin(A, "").toLocaleLowerCase(); this._shortWeekdaysParse[p] = this.weekdaysShort(A, "").toLocaleLowerCase(); this._weekdaysParse[p] = this.weekdays(A, "").toLocaleLowerCase(); } } if (b) { if (z === "dddd") { O = bz.call(this._weekdaysParse, c); return O !== -1 ? O : null; } else if (z === "ddd") { O = bz.call(this._shortWeekdaysParse, c); return O !== -1 ? O : null; } else { O = bz.call(this._minWeekdaysParse, c); return O !== -1 ? O : null; } } else { if (z === "dddd") { O = bz.call(this._weekdaysParse, c); if (O !== -1) { return O; } O = bz.call(this._shortWeekdaysParse, c); if (O !== -1) { return O; } O = bz.call(this._minWeekdaysParse, c); return O !== -1 ? O : null; } else if (z === "ddd") { O = bz.call(this._shortWeekdaysParse, c); if (O !== -1) { return O; } O = bz.call(this._weekdaysParse, c); if (O !== -1) { return O; } O = bz.call(this._minWeekdaysParse, c); return O !== -1 ? O : null; } else { O = bz.call(this._minWeekdaysParse, c); if (O !== -1) { return O; } O = bz.call(this._weekdaysParse, c); if (O !== -1) { return O; } O = bz.call(this._shortWeekdaysParse, c); return O !== -1 ? O : null; } } } function Yz(M, z, b) { var p, O, A; if (this._weekdaysParseExact) { return Iz.call(this, M, z, b); } if (!this._weekdaysParse) { this._weekdaysParse = []; this._minWeekdaysParse = []; this._shortWeekdaysParse = []; this._fullWeekdaysParse = []; } for (p = 0; p < 7; p++) { O = i([ 2e3, 1 ]).day(p); if (b && !this._fullWeekdaysParse[p]) { this._fullWeekdaysParse[p] = new RegExp("^" + this.weekdays(O, "").replace(".", "\\.?") + "$", "i"); this._shortWeekdaysParse[p] = new RegExp("^" + this.weekdaysShort(O, "").replace(".", "\\.?") + "$", "i"); this._minWeekdaysParse[p] = new RegExp("^" + this.weekdaysMin(O, "").replace(".", "\\.?") + "$", "i"); } if (!this._weekdaysParse[p]) { A = "^" + this.weekdays(O, "") + "|^" + this.weekdaysShort(O, "") + "|^" + this.weekdaysMin(O, ""); this._weekdaysParse[p] = new RegExp(A.replace(".", ""), "i"); } if (b && z === "dddd" && this._fullWeekdaysParse[p].test(M)) { return p; } else if (b && z === "ddd" && this._shortWeekdaysParse[p].test(M)) { return p; } else if (b && z === "dd" && this._minWeekdaysParse[p].test(M)) { return p; } else if (!b && this._weekdaysParse[p].test(M)) { return p; } } } function jz(M) { if (!this.isValid()) { return M != null ? this : NaN; } var z = JM(this, "Day"); if (M != null) { M = _z(M, this.localeData()); return this.add(M - z, "d"); } else { return z; } } function Gz(M) { if (!this.isValid()) { return M != null ? this : NaN; } var z = (this.day() + 7 - this.localeData()._week.dow) % 7; return M == null ? z : this.add(M - z, "d"); } function Fz(M) { if (!this.isValid()) { return M != null ? this : NaN; } if (M != null) { var z = Ez(M, this.localeData()); return this.day(this.day() % 7 ? z : z - 7); } else { return this.day() || 7; } } function Kz(M) { if (this._weekdaysParseExact) { if (!o(this, "_weekdaysRegex")) { Jz.call(this); } if (M) { return this._weekdaysStrictRegex; } else { return this._weekdaysRegex; } } else { if (!o(this, "_weekdaysRegex")) { this._weekdaysRegex = kz; } return this._weekdaysStrictRegex && M ? this._weekdaysStrictRegex : this._weekdaysRegex; } } function Vz(M) { if (this._weekdaysParseExact) { if (!o(this, "_weekdaysRegex")) { Jz.call(this); } if (M) { return this._weekdaysShortStrictRegex; } else { return this._weekdaysShortRegex; } } else { if (!o(this, "_weekdaysShortRegex")) { this._weekdaysShortRegex = vz; } return this._weekdaysShortStrictRegex && M ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex; } } function Qz(M) { if (this._weekdaysParseExact) { if (!o(this, "_weekdaysRegex")) { Jz.call(this); } if (M) { return this._weekdaysMinStrictRegex; } else { return this._weekdaysMinRegex; } } else { if (!o(this, "_weekdaysMinRegex")) { this._weekdaysMinRegex = Pz; } return this._weekdaysMinStrictRegex && M ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex; } } function Jz() { function M(M, z) { return z.length - M.length; } var z = [], b = [], p = [], O = [], A, c, o, q, W; for (A = 0; A < 7; A++) { c = i([ 2e3, 1 ]).day(A); o = SM(this.weekdaysMin(c, "")); q = SM(this.weekdaysShort(c, "")); W = SM(this.weekdays(c, "")); z.push(o);