@opfr/utils-lang 0.13.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,2646 +1,71 @@
1
- const Ui = (e) => new Intl.NumberFormat("de-DE").format(e), Os = (e, t, s = Math.random) => Math.floor(s() * (t - e) + e), Hi = (e) => {
1
+ import u from "moment";
2
+ const w = (e) => new Intl.NumberFormat("de-DE").format(e), h = (e, t, r = Math.random) => Math.floor(r() * (t - e) + e), L = (e) => {
2
3
  let t = e;
3
- const s = 2147483648, r = 1103515245, n = 12345;
4
- return () => (t = (r * t + n) % s, t / (s - 1));
5
- }, Ei = (e, t, s) => Math.max(t, Math.min(e, s)), Ai = (e) => typeof e == "number", ji = (e, t) => e.reduce((s, r, n) => {
6
- const a = Math.floor(n / t);
7
- return (s[a] || (s[a] = [])).push(r), s;
8
- }, []), Vi = (e, t) => e.reduce(
9
- (s, r) => ((s[t(r)] = s[t(r)] || []).push(r), s),
4
+ const r = 2147483648, n = 1103515245, s = 12345;
5
+ return () => (t = (n * t + s) % r, t / (r - 1));
6
+ }, I = (e, t, r) => Math.max(t, Math.min(e, r)), T = (e) => typeof e == "number", x = (e, t) => e.reduce((r, n, s) => {
7
+ const o = Math.floor(s / t);
8
+ return (r[o] || (r[o] = [])).push(n), r;
9
+ }, []), E = (e, t) => e.reduce(
10
+ (r, n) => ((r[t(n)] = r[t(n)] || []).push(n), r),
10
11
  {}
11
- ), Gi = (e, t) => e.reduce((s, r) => s.find(([n]) => n === t(r)) ? s.map(([n, a]) => [
12
- n,
13
- n === t(r) ? a + 1 : a
14
- ]) : [...s, [t(r), 1]], []), $i = (e, t) => [...e].sort((s, r) => t(s) < t(r) ? -1 : t(s) > t(r) ? 1 : 0), zi = (e, t, s = (r) => r) => e.filter((r) => t.some((n) => s(n) === s(r))), Zi = (e, t, s = (r) => r) => e.filter((r) => !t.some((n) => s(n) === s(r))), Bi = (e, t) => [...new Set(e.map((s) => t(s)))], qi = (e, t) => e.filter(
15
- (s, r, n) => r === n.findIndex((a) => t(a) === t(s))
16
- ), Ji = (e) => {
12
+ ), $ = (e, t) => e.reduce((r, n) => r.find(([s]) => s === t(n)) ? r.map(([s, o]) => [
13
+ s,
14
+ s === t(n) ? o + 1 : o
15
+ ]) : [...r, [t(n), 1]], []), O = (e, t) => [...e].sort((r, n) => t(r) < t(n) ? -1 : t(r) > t(n) ? 1 : 0), A = (e, t, r = (n) => n) => e.filter((n) => t.some((s) => r(s) === r(n))), C = (e, t, r = (n) => n) => e.filter((n) => !t.some((s) => r(s) === r(n))), P = (e, t) => [...new Set(e.map((r) => t(r)))], H = (e, t) => e.filter(
16
+ (r, n, s) => n === s.findIndex((o) => t(o) === t(r))
17
+ ), W = (e) => {
17
18
  for (let t = e.length - 1; t > 0; t--) {
18
- const s = Math.floor(Math.random() * (t + 1));
19
- [e[t], e[s]] = [e[s], e[t]];
19
+ const r = Math.floor(Math.random() * (t + 1));
20
+ [e[t], e[r]] = [e[r], e[t]];
20
21
  }
21
22
  return e;
22
- }, Qi = (e) => e.filter((t) => t != null), Xi = (e, t, s) => [
23
+ }, B = (e) => e.filter((t) => t != null), R = (e, t, r) => [
23
24
  ...e,
24
- ...Rt(t, s)
25
- ], Ki = (e, t, s) => [...Rt(t, s), ...e], eo = (e, t, s) => [...e, ...Ts(t, s)], Rt = (e, t) => t ? [e] : [], Ts = (e, t) => t ? e : [], bs = (e) => e[Os(0, e.length)], to = (e, t) => Array.from({
25
+ ...m(t, r)
26
+ ], F = (e, t, r) => [...m(t, r), ...e], N = (e, t, r) => [...e, ...p(t, r)], m = (e, t) => t ? [e] : [], p = (e, t) => t ? e : [], M = (e) => e[h(0, e.length)], z = (e, t) => Array.from({
26
27
  length: t
27
- }).map(() => bs(e)).reduce(
28
- (s, r) => ({ ...s, [r]: (s[r] ?? 0) + 1 }),
28
+ }).map(() => M(e)).reduce(
29
+ (r, n) => ({ ...r, [n]: (r[n] ?? 0) + 1 }),
29
30
  {}
30
- ), so = ({ start: e = 0, stop: t, step: s = 1 }) => {
31
- if (s === 0)
31
+ ), q = ({ start: e = 0, stop: t, step: r = 1 }) => {
32
+ if (r === 0)
32
33
  throw new RangeError("step cannot be equal to 0");
33
- if (s > 0 && e >= t || s < 0 && e <= t) return [];
34
- const n = [];
35
- for (let a = e; s > 0 ? a < t : a > t; a += s)
36
- n.push(a);
37
- return n;
38
- }, ro = (e) => Object.fromEntries(e), xs = " ", Ws = " ", no = (e, t = "") => e.split(t).join(xs), ao = (e, t = "") => e.split(t).join(Ws), io = (e, t) => e.length > t ? e.slice(0, t - 3) + "..." : e, Ns = (e) => e && e[0].toUpperCase() + e.slice(1), Ft = (e) => e.split(" ").map(Ns).join(" "), oo = (e) => /^\d+$/.test(e), lo = (e) => e !== Math.round(e) || e < 1 || e === 1 / 0 || e === -1 / 0 ? null : e === 1 ? "1er" : `${e}ème`, uo = (e) => e.trim().replace(/\s+/gi, " "), ho = (e) => {
39
- const t = e.split(" "), r = ((n) => {
40
- let a = 1 / 0;
41
- for (let i = 0; i < n.length; i++) {
42
- const u = Math.abs(
43
- n.slice(0, i + 1).join(" ").length - n.slice(i + 1).join(" ").length
34
+ if (r > 0 && e >= t || r < 0 && e <= t) return [];
35
+ const s = [];
36
+ for (let o = e; r > 0 ? o < t : o > t; o += r)
37
+ s.push(o);
38
+ return s;
39
+ }, U = (e) => Object.fromEntries(e), _ = " ", g = " ", G = (e, t = "") => e.split(t).join(_), k = (e, t = "") => e.split(t).join(g), J = (e, t) => e.length > t ? e.slice(0, t - 3) + "..." : e, j = (e) => e && e[0].toUpperCase() + e.slice(1), f = (e) => e.split(" ").map(j).join(" "), K = (e) => /^\d+$/.test(e), Q = (e) => e !== Math.round(e) || e < 1 || e === 1 / 0 || e === -1 / 0 ? null : e === 1 ? "1er" : `${e}ème`, V = (e) => e.trim().replace(/\s+/gi, " "), X = (e) => {
40
+ const t = e.split(" "), n = ((s) => {
41
+ let o = 1 / 0;
42
+ for (let i = 0; i < s.length; i++) {
43
+ const a = Math.abs(
44
+ s.slice(0, i + 1).join(" ").length - s.slice(i + 1).join(" ").length
44
45
  );
45
- if (u <= a) a = u;
46
+ if (a <= o) o = a;
46
47
  else return i - 1;
47
48
  }
48
- return a;
49
+ return o;
49
50
  })(t);
50
- return t.length === 1 ? [t[0]] : [t.slice(0, r + 1), t.slice(r + 1)].map(
51
- (n) => n.join(" ")
51
+ return t.length === 1 ? [t[0]] : [t.slice(0, n + 1), t.slice(n + 1)].map(
52
+ (s) => s.join(" ")
52
53
  );
53
- }, Ps = (e) => typeof e == "string", Rs = (e) => {
54
+ }, D = (e) => typeof e == "string", v = (e) => {
54
55
  const t = e.replace(
55
56
  /[^a-zA-Z0-9]+(.)/g,
56
- (s, r) => r.toUpperCase()
57
+ (r, n) => n.toUpperCase()
57
58
  );
58
59
  return `${t.charAt(0).toLowerCase()}${t.slice(1)}`;
59
- }, fo = (e) => {
60
- const t = Rs(e);
60
+ }, Z = (e) => {
61
+ const t = v(e);
61
62
  return `${t.charAt(0).toUpperCase()}${t.slice(1)}`;
62
- }, co = (e) => e != null, mo = (e) => Ps(e) ? /^[\],:{}\s]*$/.test(
63
+ }, ee = (e) => e != null, te = (e) => D(e) ? /^[\],:{}\s]*$/.test(
63
64
  e.replace(/\\["\\\/bfnrtu]/g, "@").replace(
64
65
  /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
65
66
  "]"
66
67
  ).replace(/(?:^|:|,)(?:\s*\[)+/g, "")
67
- ) : !1;
68
- //! moment.js
69
- //! version : 2.30.1
70
- //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
71
- //! license : MIT
72
- //! momentjs.com
73
- var Lt;
74
- function l() {
75
- return Lt.apply(null, arguments);
76
- }
77
- function Fs(e) {
78
- Lt = e;
79
- }
80
- function R(e) {
81
- return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]";
82
- }
83
- function se(e) {
84
- return e != null && Object.prototype.toString.call(e) === "[object Object]";
85
- }
86
- function w(e, t) {
87
- return Object.prototype.hasOwnProperty.call(e, t);
88
- }
89
- function rt(e) {
90
- if (Object.getOwnPropertyNames)
91
- return Object.getOwnPropertyNames(e).length === 0;
92
- var t;
93
- for (t in e)
94
- if (w(e, t))
95
- return !1;
96
- return !0;
97
- }
98
- function T(e) {
99
- return e === void 0;
100
- }
101
- function Z(e) {
102
- return typeof e == "number" || Object.prototype.toString.call(e) === "[object Number]";
103
- }
104
- function De(e) {
105
- return e instanceof Date || Object.prototype.toString.call(e) === "[object Date]";
106
- }
107
- function Ct(e, t) {
108
- var s = [], r, n = e.length;
109
- for (r = 0; r < n; ++r)
110
- s.push(t(e[r], r));
111
- return s;
112
- }
113
- function Q(e, t) {
114
- for (var s in t)
115
- w(t, s) && (e[s] = t[s]);
116
- return w(t, "toString") && (e.toString = t.toString), w(t, "valueOf") && (e.valueOf = t.valueOf), e;
117
- }
118
- function U(e, t, s, r) {
119
- return as(e, t, s, r, !0).utc();
120
- }
121
- function Ls() {
122
- return {
123
- empty: !1,
124
- unusedTokens: [],
125
- unusedInput: [],
126
- overflow: -2,
127
- charsLeftOver: 0,
128
- nullInput: !1,
129
- invalidEra: null,
130
- invalidMonth: null,
131
- invalidFormat: !1,
132
- userInvalidated: !1,
133
- iso: !1,
134
- parsedDateParts: [],
135
- era: null,
136
- meridiem: null,
137
- rfc2822: !1,
138
- weekdayMismatch: !1
139
- };
140
- }
141
- function c(e) {
142
- return e._pf == null && (e._pf = Ls()), e._pf;
143
- }
144
- var Je;
145
- Array.prototype.some ? Je = Array.prototype.some : Je = function(e) {
146
- var t = Object(this), s = t.length >>> 0, r;
147
- for (r = 0; r < s; r++)
148
- if (r in t && e.call(this, t[r], r, t))
149
- return !0;
150
- return !1;
151
- };
152
- function nt(e) {
153
- var t = null, s = !1, r = e._d && !isNaN(e._d.getTime());
154
- if (r && (t = c(e), s = Je.call(t.parsedDateParts, function(n) {
155
- return n != null;
156
- }), r = t.overflow < 0 && !t.empty && !t.invalidEra && !t.invalidMonth && !t.invalidWeekday && !t.weekdayMismatch && !t.nullInput && !t.invalidFormat && !t.userInvalidated && (!t.meridiem || t.meridiem && s), e._strict && (r = r && t.charsLeftOver === 0 && t.unusedTokens.length === 0 && t.bigHour === void 0)), Object.isFrozen == null || !Object.isFrozen(e))
157
- e._isValid = r;
158
- else
159
- return r;
160
- return e._isValid;
161
- }
162
- function Fe(e) {
163
- var t = U(NaN);
164
- return e != null ? Q(c(t), e) : c(t).userInvalidated = !0, t;
165
- }
166
- var Ot = l.momentProperties = [], $e = !1;
167
- function at(e, t) {
168
- var s, r, n, a = Ot.length;
169
- if (T(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), T(t._i) || (e._i = t._i), T(t._f) || (e._f = t._f), T(t._l) || (e._l = t._l), T(t._strict) || (e._strict = t._strict), T(t._tzm) || (e._tzm = t._tzm), T(t._isUTC) || (e._isUTC = t._isUTC), T(t._offset) || (e._offset = t._offset), T(t._pf) || (e._pf = c(t)), T(t._locale) || (e._locale = t._locale), a > 0)
170
- for (s = 0; s < a; s++)
171
- r = Ot[s], n = t[r], T(n) || (e[r] = n);
172
- return e;
173
- }
174
- function Se(e) {
175
- at(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), $e === !1 && ($e = !0, l.updateOffset(this), $e = !1);
176
- }
177
- function F(e) {
178
- return e instanceof Se || e != null && e._isAMomentObject != null;
179
- }
180
- function It(e) {
181
- l.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + e);
182
- }
183
- function W(e, t) {
184
- var s = !0;
185
- return Q(function() {
186
- if (l.deprecationHandler != null && l.deprecationHandler(null, e), s) {
187
- var r = [], n, a, i, u = arguments.length;
188
- for (a = 0; a < u; a++) {
189
- if (n = "", typeof arguments[a] == "object") {
190
- n += `
191
- [` + a + "] ";
192
- for (i in arguments[0])
193
- w(arguments[0], i) && (n += i + ": " + arguments[0][i] + ", ");
194
- n = n.slice(0, -2);
195
- } else
196
- n = arguments[a];
197
- r.push(n);
198
- }
199
- It(
200
- e + `
201
- Arguments: ` + Array.prototype.slice.call(r).join("") + `
202
- ` + new Error().stack
203
- ), s = !1;
204
- }
205
- return t.apply(this, arguments);
206
- }, t);
207
- }
208
- var Tt = {};
209
- function Ut(e, t) {
210
- l.deprecationHandler != null && l.deprecationHandler(e, t), Tt[e] || (It(t), Tt[e] = !0);
211
- }
212
- l.suppressDeprecationWarnings = !1;
213
- l.deprecationHandler = null;
214
- function H(e) {
215
- return typeof Function < "u" && e instanceof Function || Object.prototype.toString.call(e) === "[object Function]";
216
- }
217
- function Cs(e) {
218
- var t, s;
219
- for (s in e)
220
- w(e, s) && (t = e[s], H(t) ? this[s] = t : this["_" + s] = t);
221
- this._config = e, this._dayOfMonthOrdinalParseLenient = new RegExp(
222
- (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
223
- );
224
- }
225
- function Qe(e, t) {
226
- var s = Q({}, e), r;
227
- for (r in t)
228
- w(t, r) && (se(e[r]) && se(t[r]) ? (s[r] = {}, Q(s[r], e[r]), Q(s[r], t[r])) : t[r] != null ? s[r] = t[r] : delete s[r]);
229
- for (r in e)
230
- w(e, r) && !w(t, r) && se(e[r]) && (s[r] = Q({}, s[r]));
231
- return s;
232
- }
233
- function it(e) {
234
- e != null && this.set(e);
235
- }
236
- var Xe;
237
- Object.keys ? Xe = Object.keys : Xe = function(e) {
238
- var t, s = [];
239
- for (t in e)
240
- w(e, t) && s.push(t);
241
- return s;
242
- };
243
- var Is = {
244
- sameDay: "[Today at] LT",
245
- nextDay: "[Tomorrow at] LT",
246
- nextWeek: "dddd [at] LT",
247
- lastDay: "[Yesterday at] LT",
248
- lastWeek: "[Last] dddd [at] LT",
249
- sameElse: "L"
250
- };
251
- function Us(e, t, s) {
252
- var r = this._calendar[e] || this._calendar.sameElse;
253
- return H(r) ? r.call(t, s) : r;
254
- }
255
- function I(e, t, s) {
256
- var r = "" + Math.abs(e), n = t - r.length, a = e >= 0;
257
- return (a ? s ? "+" : "" : "-") + Math.pow(10, Math.max(0, n)).toString().substr(1) + r;
258
- }
259
- var ot = /(\[[^\[]*\])|(\\)?([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, ve = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, ze = {}, oe = {};
260
- function h(e, t, s, r) {
261
- var n = r;
262
- typeof r == "string" && (n = function() {
263
- return this[r]();
264
- }), e && (oe[e] = n), t && (oe[t[0]] = function() {
265
- return I(n.apply(this, arguments), t[1], t[2]);
266
- }), s && (oe[s] = function() {
267
- return this.localeData().ordinal(
268
- n.apply(this, arguments),
269
- e
270
- );
271
- });
272
- }
273
- function Hs(e) {
274
- return e.match(/\[[\s\S]/) ? e.replace(/^\[|\]$/g, "") : e.replace(/\\/g, "");
275
- }
276
- function Es(e) {
277
- var t = e.match(ot), s, r;
278
- for (s = 0, r = t.length; s < r; s++)
279
- oe[t[s]] ? t[s] = oe[t[s]] : t[s] = Hs(t[s]);
280
- return function(n) {
281
- var a = "", i;
282
- for (i = 0; i < r; i++)
283
- a += H(t[i]) ? t[i].call(n, e) : t[i];
284
- return a;
285
- };
286
- }
287
- function Oe(e, t) {
288
- return e.isValid() ? (t = Ht(t, e.localeData()), ze[t] = ze[t] || Es(t), ze[t](e)) : e.localeData().invalidDate();
289
- }
290
- function Ht(e, t) {
291
- var s = 5;
292
- function r(n) {
293
- return t.longDateFormat(n) || n;
294
- }
295
- for (ve.lastIndex = 0; s >= 0 && ve.test(e); )
296
- e = e.replace(
297
- ve,
298
- r
299
- ), ve.lastIndex = 0, s -= 1;
300
- return e;
301
- }
302
- var As = {
303
- LTS: "h:mm:ss A",
304
- LT: "h:mm A",
305
- L: "MM/DD/YYYY",
306
- LL: "MMMM D, YYYY",
307
- LLL: "MMMM D, YYYY h:mm A",
308
- LLLL: "dddd, MMMM D, YYYY h:mm A"
309
- };
310
- function js(e) {
311
- var t = this._longDateFormat[e], s = this._longDateFormat[e.toUpperCase()];
312
- return t || !s ? t : (this._longDateFormat[e] = s.match(ot).map(function(r) {
313
- return r === "MMMM" || r === "MM" || r === "DD" || r === "dddd" ? r.slice(1) : r;
314
- }).join(""), this._longDateFormat[e]);
315
- }
316
- var Vs = "Invalid date";
317
- function Gs() {
318
- return this._invalidDate;
319
- }
320
- var $s = "%d", zs = /\d{1,2}/;
321
- function Zs(e) {
322
- return this._ordinal.replace("%d", e);
323
- }
324
- var Bs = {
325
- future: "in %s",
326
- past: "%s ago",
327
- s: "a few seconds",
328
- ss: "%d seconds",
329
- m: "a minute",
330
- mm: "%d minutes",
331
- h: "an hour",
332
- hh: "%d hours",
333
- d: "a day",
334
- dd: "%d days",
335
- w: "a week",
336
- ww: "%d weeks",
337
- M: "a month",
338
- MM: "%d months",
339
- y: "a year",
340
- yy: "%d years"
341
- };
342
- function qs(e, t, s, r) {
343
- var n = this._relativeTime[s];
344
- return H(n) ? n(e, t, s, r) : n.replace(/%d/i, e);
345
- }
346
- function Js(e, t) {
347
- var s = this._relativeTime[e > 0 ? "future" : "past"];
348
- return H(s) ? s(t) : s.replace(/%s/i, t);
349
- }
350
- var bt = {
351
- D: "date",
352
- dates: "date",
353
- date: "date",
354
- d: "day",
355
- days: "day",
356
- day: "day",
357
- e: "weekday",
358
- weekdays: "weekday",
359
- weekday: "weekday",
360
- E: "isoWeekday",
361
- isoweekdays: "isoWeekday",
362
- isoweekday: "isoWeekday",
363
- DDD: "dayOfYear",
364
- dayofyears: "dayOfYear",
365
- dayofyear: "dayOfYear",
366
- h: "hour",
367
- hours: "hour",
368
- hour: "hour",
369
- ms: "millisecond",
370
- milliseconds: "millisecond",
371
- millisecond: "millisecond",
372
- m: "minute",
373
- minutes: "minute",
374
- minute: "minute",
375
- M: "month",
376
- months: "month",
377
- month: "month",
378
- Q: "quarter",
379
- quarters: "quarter",
380
- quarter: "quarter",
381
- s: "second",
382
- seconds: "second",
383
- second: "second",
384
- gg: "weekYear",
385
- weekyears: "weekYear",
386
- weekyear: "weekYear",
387
- GG: "isoWeekYear",
388
- isoweekyears: "isoWeekYear",
389
- isoweekyear: "isoWeekYear",
390
- w: "week",
391
- weeks: "week",
392
- week: "week",
393
- W: "isoWeek",
394
- isoweeks: "isoWeek",
395
- isoweek: "isoWeek",
396
- y: "year",
397
- years: "year",
398
- year: "year"
399
- };
400
- function N(e) {
401
- return typeof e == "string" ? bt[e] || bt[e.toLowerCase()] : void 0;
402
- }
403
- function lt(e) {
404
- var t = {}, s, r;
405
- for (r in e)
406
- w(e, r) && (s = N(r), s && (t[s] = e[r]));
407
- return t;
408
- }
409
- var Qs = {
410
- date: 9,
411
- day: 11,
412
- weekday: 11,
413
- isoWeekday: 11,
414
- dayOfYear: 4,
415
- hour: 13,
416
- millisecond: 16,
417
- minute: 14,
418
- month: 8,
419
- quarter: 7,
420
- second: 15,
421
- weekYear: 1,
422
- isoWeekYear: 1,
423
- week: 5,
424
- isoWeek: 5,
425
- year: 1
426
- };
427
- function Xs(e) {
428
- var t = [], s;
429
- for (s in e)
430
- w(e, s) && t.push({ unit: s, priority: Qs[s] });
431
- return t.sort(function(r, n) {
432
- return r.priority - n.priority;
433
- }), t;
434
- }
435
- var Et = /\d/, b = /\d\d/, At = /\d{3}/, ut = /\d{4}/, Le = /[+-]?\d{6}/, S = /\d\d?/, jt = /\d\d\d\d?/, Vt = /\d\d\d\d\d\d?/, Ce = /\d{1,3}/, dt = /\d{1,4}/, Ie = /[+-]?\d{1,6}/, de = /\d+/, Ue = /[+-]?\d+/, Ks = /Z|[+-]\d\d:?\d\d/gi, He = /Z|[+-]\d\d(?::?\d\d)?/gi, er = /[+-]?\d+(\.\d{1,3})?/, ke = /[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, he = /^[1-9]\d?/, ht = /^([1-9]\d|\d)/, xe;
436
- xe = {};
437
- function d(e, t, s) {
438
- xe[e] = H(t) ? t : function(r, n) {
439
- return r && s ? s : t;
440
- };
441
- }
442
- function tr(e, t) {
443
- return w(xe, e) ? xe[e](t._strict, t._locale) : new RegExp(sr(e));
444
- }
445
- function sr(e) {
446
- return $(
447
- e.replace("\\", "").replace(
448
- /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
449
- function(t, s, r, n, a) {
450
- return s || r || n || a;
451
- }
452
- )
453
- );
454
- }
455
- function $(e) {
456
- return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
457
- }
458
- function x(e) {
459
- return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
460
- }
461
- function m(e) {
462
- var t = +e, s = 0;
463
- return t !== 0 && isFinite(t) && (s = x(t)), s;
464
- }
465
- var Ke = {};
466
- function g(e, t) {
467
- var s, r = t, n;
468
- for (typeof e == "string" && (e = [e]), Z(t) && (r = function(a, i) {
469
- i[t] = m(a);
470
- }), n = e.length, s = 0; s < n; s++)
471
- Ke[e[s]] = r;
472
- }
473
- function pe(e, t) {
474
- g(e, function(s, r, n, a) {
475
- n._w = n._w || {}, t(s, n._w, n, a);
476
- });
477
- }
478
- function rr(e, t, s) {
479
- t != null && w(Ke, e) && Ke[e](t, s._a, s, e);
480
- }
481
- function Ee(e) {
482
- return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
483
- }
484
- var Y = 0, V = 1, C = 2, v = 3, P = 4, G = 5, te = 6, nr = 7, ar = 8;
485
- h("Y", 0, 0, function() {
486
- var e = this.year();
487
- return e <= 9999 ? I(e, 4) : "+" + e;
488
- });
489
- h(0, ["YY", 2], 0, function() {
490
- return this.year() % 100;
491
- });
492
- h(0, ["YYYY", 4], 0, "year");
493
- h(0, ["YYYYY", 5], 0, "year");
494
- h(0, ["YYYYYY", 6, !0], 0, "year");
495
- d("Y", Ue);
496
- d("YY", S, b);
497
- d("YYYY", dt, ut);
498
- d("YYYYY", Ie, Le);
499
- d("YYYYYY", Ie, Le);
500
- g(["YYYYY", "YYYYYY"], Y);
501
- g("YYYY", function(e, t) {
502
- t[Y] = e.length === 2 ? l.parseTwoDigitYear(e) : m(e);
503
- });
504
- g("YY", function(e, t) {
505
- t[Y] = l.parseTwoDigitYear(e);
506
- });
507
- g("Y", function(e, t) {
508
- t[Y] = parseInt(e, 10);
509
- });
510
- function _e(e) {
511
- return Ee(e) ? 366 : 365;
512
- }
513
- l.parseTwoDigitYear = function(e) {
514
- return m(e) + (m(e) > 68 ? 1900 : 2e3);
515
- };
516
- var Gt = fe("FullYear", !0);
517
- function ir() {
518
- return Ee(this.year());
519
- }
520
- function fe(e, t) {
521
- return function(s) {
522
- return s != null ? ($t(this, e, s), l.updateOffset(this, t), this) : ye(this, e);
523
- };
524
- }
525
- function ye(e, t) {
526
- if (!e.isValid())
527
- return NaN;
528
- var s = e._d, r = e._isUTC;
529
- switch (t) {
530
- case "Milliseconds":
531
- return r ? s.getUTCMilliseconds() : s.getMilliseconds();
532
- case "Seconds":
533
- return r ? s.getUTCSeconds() : s.getSeconds();
534
- case "Minutes":
535
- return r ? s.getUTCMinutes() : s.getMinutes();
536
- case "Hours":
537
- return r ? s.getUTCHours() : s.getHours();
538
- case "Date":
539
- return r ? s.getUTCDate() : s.getDate();
540
- case "Day":
541
- return r ? s.getUTCDay() : s.getDay();
542
- case "Month":
543
- return r ? s.getUTCMonth() : s.getMonth();
544
- case "FullYear":
545
- return r ? s.getUTCFullYear() : s.getFullYear();
546
- default:
547
- return NaN;
548
- }
549
- }
550
- function $t(e, t, s) {
551
- var r, n, a, i, u;
552
- if (!(!e.isValid() || isNaN(s))) {
553
- switch (r = e._d, n = e._isUTC, t) {
554
- case "Milliseconds":
555
- return void (n ? r.setUTCMilliseconds(s) : r.setMilliseconds(s));
556
- case "Seconds":
557
- return void (n ? r.setUTCSeconds(s) : r.setSeconds(s));
558
- case "Minutes":
559
- return void (n ? r.setUTCMinutes(s) : r.setMinutes(s));
560
- case "Hours":
561
- return void (n ? r.setUTCHours(s) : r.setHours(s));
562
- case "Date":
563
- return void (n ? r.setUTCDate(s) : r.setDate(s));
564
- case "FullYear":
565
- break;
566
- default:
567
- return;
568
- }
569
- a = s, i = e.month(), u = e.date(), u = u === 29 && i === 1 && !Ee(a) ? 28 : u, n ? r.setUTCFullYear(a, i, u) : r.setFullYear(a, i, u);
570
- }
571
- }
572
- function or(e) {
573
- return e = N(e), H(this[e]) ? this[e]() : this;
574
- }
575
- function lr(e, t) {
576
- if (typeof e == "object") {
577
- e = lt(e);
578
- var s = Xs(e), r, n = s.length;
579
- for (r = 0; r < n; r++)
580
- this[s[r].unit](e[s[r].unit]);
581
- } else if (e = N(e), H(this[e]))
582
- return this[e](t);
583
- return this;
584
- }
585
- function ur(e, t) {
586
- return (e % t + t) % t;
587
- }
588
- var p;
589
- Array.prototype.indexOf ? p = Array.prototype.indexOf : p = function(e) {
590
- var t;
591
- for (t = 0; t < this.length; ++t)
592
- if (this[t] === e)
593
- return t;
594
- return -1;
595
- };
596
- function ft(e, t) {
597
- if (isNaN(e) || isNaN(t))
598
- return NaN;
599
- var s = ur(t, 12);
600
- return e += (t - s) / 12, s === 1 ? Ee(e) ? 29 : 28 : 31 - s % 7 % 2;
601
- }
602
- h("M", ["MM", 2], "Mo", function() {
603
- return this.month() + 1;
604
- });
605
- h("MMM", 0, 0, function(e) {
606
- return this.localeData().monthsShort(this, e);
607
- });
608
- h("MMMM", 0, 0, function(e) {
609
- return this.localeData().months(this, e);
610
- });
611
- d("M", S, he);
612
- d("MM", S, b);
613
- d("MMM", function(e, t) {
614
- return t.monthsShortRegex(e);
615
- });
616
- d("MMMM", function(e, t) {
617
- return t.monthsRegex(e);
618
- });
619
- g(["M", "MM"], function(e, t) {
620
- t[V] = m(e) - 1;
621
- });
622
- g(["MMM", "MMMM"], function(e, t, s, r) {
623
- var n = s._locale.monthsParse(e, r, s._strict);
624
- n != null ? t[V] = n : c(s).invalidMonth = e;
625
- });
626
- var dr = "January_February_March_April_May_June_July_August_September_October_November_December".split(
627
- "_"
628
- ), zt = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), Zt = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, hr = ke, fr = ke;
629
- function cr(e, t) {
630
- return e ? R(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || Zt).test(t) ? "format" : "standalone"][e.month()] : R(this._months) ? this._months : this._months.standalone;
631
- }
632
- function mr(e, t) {
633
- return e ? R(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[Zt.test(t) ? "format" : "standalone"][e.month()] : R(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
634
- }
635
- function _r(e, t, s) {
636
- var r, n, a, i = e.toLocaleLowerCase();
637
- if (!this._monthsParse)
638
- for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], r = 0; r < 12; ++r)
639
- a = U([2e3, r]), this._shortMonthsParse[r] = this.monthsShort(
640
- a,
641
- ""
642
- ).toLocaleLowerCase(), this._longMonthsParse[r] = this.months(a, "").toLocaleLowerCase();
643
- return s ? t === "MMM" ? (n = p.call(this._shortMonthsParse, i), n !== -1 ? n : null) : (n = p.call(this._longMonthsParse, i), n !== -1 ? n : null) : t === "MMM" ? (n = p.call(this._shortMonthsParse, i), n !== -1 ? n : (n = p.call(this._longMonthsParse, i), n !== -1 ? n : null)) : (n = p.call(this._longMonthsParse, i), n !== -1 ? n : (n = p.call(this._shortMonthsParse, i), n !== -1 ? n : null));
644
- }
645
- function yr(e, t, s) {
646
- var r, n, a;
647
- if (this._monthsParseExact)
648
- return _r.call(this, e, t, s);
649
- for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), r = 0; r < 12; r++) {
650
- if (n = U([2e3, r]), s && !this._longMonthsParse[r] && (this._longMonthsParse[r] = new RegExp(
651
- "^" + this.months(n, "").replace(".", "") + "$",
652
- "i"
653
- ), this._shortMonthsParse[r] = new RegExp(
654
- "^" + this.monthsShort(n, "").replace(".", "") + "$",
655
- "i"
656
- )), !s && !this._monthsParse[r] && (a = "^" + this.months(n, "") + "|^" + this.monthsShort(n, ""), this._monthsParse[r] = new RegExp(a.replace(".", ""), "i")), s && t === "MMMM" && this._longMonthsParse[r].test(e))
657
- return r;
658
- if (s && t === "MMM" && this._shortMonthsParse[r].test(e))
659
- return r;
660
- if (!s && this._monthsParse[r].test(e))
661
- return r;
662
- }
663
- }
664
- function Bt(e, t) {
665
- if (!e.isValid())
666
- return e;
667
- if (typeof t == "string") {
668
- if (/^\d+$/.test(t))
669
- t = m(t);
670
- else if (t = e.localeData().monthsParse(t), !Z(t))
671
- return e;
672
- }
673
- var s = t, r = e.date();
674
- return r = r < 29 ? r : Math.min(r, ft(e.year(), s)), e._isUTC ? e._d.setUTCMonth(s, r) : e._d.setMonth(s, r), e;
675
- }
676
- function qt(e) {
677
- return e != null ? (Bt(this, e), l.updateOffset(this, !0), this) : ye(this, "Month");
678
- }
679
- function wr() {
680
- return ft(this.year(), this.month());
681
- }
682
- function Mr(e) {
683
- return this._monthsParseExact ? (w(this, "_monthsRegex") || Jt.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (w(this, "_monthsShortRegex") || (this._monthsShortRegex = hr), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex);
684
- }
685
- function gr(e) {
686
- return this._monthsParseExact ? (w(this, "_monthsRegex") || Jt.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : (w(this, "_monthsRegex") || (this._monthsRegex = fr), this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex);
687
- }
688
- function Jt() {
689
- function e(f, _) {
690
- return _.length - f.length;
691
- }
692
- var t = [], s = [], r = [], n, a, i, u;
693
- for (n = 0; n < 12; n++)
694
- a = U([2e3, n]), i = $(this.monthsShort(a, "")), u = $(this.months(a, "")), t.push(i), s.push(u), r.push(u), r.push(i);
695
- t.sort(e), s.sort(e), r.sort(e), this._monthsRegex = new RegExp("^(" + r.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(
696
- "^(" + s.join("|") + ")",
697
- "i"
698
- ), this._monthsShortStrictRegex = new RegExp(
699
- "^(" + t.join("|") + ")",
700
- "i"
701
- );
702
- }
703
- function Dr(e, t, s, r, n, a, i) {
704
- var u;
705
- return e < 100 && e >= 0 ? (u = new Date(e + 400, t, s, r, n, a, i), isFinite(u.getFullYear()) && u.setFullYear(e)) : u = new Date(e, t, s, r, n, a, i), u;
706
- }
707
- function we(e) {
708
- var t, s;
709
- return e < 100 && e >= 0 ? (s = Array.prototype.slice.call(arguments), s[0] = e + 400, t = new Date(Date.UTC.apply(null, s)), isFinite(t.getUTCFullYear()) && t.setUTCFullYear(e)) : t = new Date(Date.UTC.apply(null, arguments)), t;
710
- }
711
- function We(e, t, s) {
712
- var r = 7 + t - s, n = (7 + we(e, 0, r).getUTCDay() - t) % 7;
713
- return -n + r - 1;
714
- }
715
- function Qt(e, t, s, r, n) {
716
- var a = (7 + s - r) % 7, i = We(e, r, n), u = 1 + 7 * (t - 1) + a + i, f, _;
717
- return u <= 0 ? (f = e - 1, _ = _e(f) + u) : u > _e(e) ? (f = e + 1, _ = u - _e(e)) : (f = e, _ = u), {
718
- year: f,
719
- dayOfYear: _
720
- };
721
- }
722
- function Me(e, t, s) {
723
- var r = We(e.year(), t, s), n = Math.floor((e.dayOfYear() - r - 1) / 7) + 1, a, i;
724
- return n < 1 ? (i = e.year() - 1, a = n + z(i, t, s)) : n > z(e.year(), t, s) ? (a = n - z(e.year(), t, s), i = e.year() + 1) : (i = e.year(), a = n), {
725
- week: a,
726
- year: i
727
- };
728
- }
729
- function z(e, t, s) {
730
- var r = We(e, t, s), n = We(e + 1, t, s);
731
- return (_e(e) - r + n) / 7;
732
- }
733
- h("w", ["ww", 2], "wo", "week");
734
- h("W", ["WW", 2], "Wo", "isoWeek");
735
- d("w", S, he);
736
- d("ww", S, b);
737
- d("W", S, he);
738
- d("WW", S, b);
739
- pe(
740
- ["w", "ww", "W", "WW"],
741
- function(e, t, s, r) {
742
- t[r.substr(0, 1)] = m(e);
743
- }
744
- );
745
- function Sr(e) {
746
- return Me(e, this._week.dow, this._week.doy).week;
747
- }
748
- var kr = {
749
- dow: 0,
750
- // Sunday is the first day of the week.
751
- doy: 6
752
- // The week that contains Jan 6th is the first week of the year.
753
- };
754
- function pr() {
755
- return this._week.dow;
756
- }
757
- function vr() {
758
- return this._week.doy;
759
- }
760
- function Yr(e) {
761
- var t = this.localeData().week(this);
762
- return e == null ? t : this.add((e - t) * 7, "d");
763
- }
764
- function Or(e) {
765
- var t = Me(this, 1, 4).week;
766
- return e == null ? t : this.add((e - t) * 7, "d");
767
- }
768
- h("d", 0, "do", "day");
769
- h("dd", 0, 0, function(e) {
770
- return this.localeData().weekdaysMin(this, e);
771
- });
772
- h("ddd", 0, 0, function(e) {
773
- return this.localeData().weekdaysShort(this, e);
774
- });
775
- h("dddd", 0, 0, function(e) {
776
- return this.localeData().weekdays(this, e);
777
- });
778
- h("e", 0, 0, "weekday");
779
- h("E", 0, 0, "isoWeekday");
780
- d("d", S);
781
- d("e", S);
782
- d("E", S);
783
- d("dd", function(e, t) {
784
- return t.weekdaysMinRegex(e);
785
- });
786
- d("ddd", function(e, t) {
787
- return t.weekdaysShortRegex(e);
788
- });
789
- d("dddd", function(e, t) {
790
- return t.weekdaysRegex(e);
791
- });
792
- pe(["dd", "ddd", "dddd"], function(e, t, s, r) {
793
- var n = s._locale.weekdaysParse(e, r, s._strict);
794
- n != null ? t.d = n : c(s).invalidWeekday = e;
795
- });
796
- pe(["d", "e", "E"], function(e, t, s, r) {
797
- t[r] = m(e);
798
- });
799
- function Tr(e, t) {
800
- return typeof e != "string" ? e : isNaN(e) ? (e = t.weekdaysParse(e), typeof e == "number" ? e : null) : parseInt(e, 10);
801
- }
802
- function br(e, t) {
803
- return typeof e == "string" ? t.weekdaysParse(e) % 7 || 7 : isNaN(e) ? null : e;
804
- }
805
- function ct(e, t) {
806
- return e.slice(t, 7).concat(e.slice(0, t));
807
- }
808
- var xr = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), Xt = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), Wr = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), Nr = ke, Pr = ke, Rr = ke;
809
- function Fr(e, t) {
810
- var s = R(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
811
- return e === !0 ? ct(s, this._week.dow) : e ? s[e.day()] : s;
812
- }
813
- function Lr(e) {
814
- return e === !0 ? ct(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort;
815
- }
816
- function Cr(e) {
817
- return e === !0 ? ct(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin;
818
- }
819
- function Ir(e, t, s) {
820
- var r, n, a, i = e.toLocaleLowerCase();
821
- if (!this._weekdaysParse)
822
- for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], r = 0; r < 7; ++r)
823
- a = U([2e3, 1]).day(r), this._minWeekdaysParse[r] = this.weekdaysMin(
824
- a,
825
- ""
826
- ).toLocaleLowerCase(), this._shortWeekdaysParse[r] = this.weekdaysShort(
827
- a,
828
- ""
829
- ).toLocaleLowerCase(), this._weekdaysParse[r] = this.weekdays(a, "").toLocaleLowerCase();
830
- return s ? t === "dddd" ? (n = p.call(this._weekdaysParse, i), n !== -1 ? n : null) : t === "ddd" ? (n = p.call(this._shortWeekdaysParse, i), n !== -1 ? n : null) : (n = p.call(this._minWeekdaysParse, i), n !== -1 ? n : null) : t === "dddd" ? (n = p.call(this._weekdaysParse, i), n !== -1 || (n = p.call(this._shortWeekdaysParse, i), n !== -1) ? n : (n = p.call(this._minWeekdaysParse, i), n !== -1 ? n : null)) : t === "ddd" ? (n = p.call(this._shortWeekdaysParse, i), n !== -1 || (n = p.call(this._weekdaysParse, i), n !== -1) ? n : (n = p.call(this._minWeekdaysParse, i), n !== -1 ? n : null)) : (n = p.call(this._minWeekdaysParse, i), n !== -1 || (n = p.call(this._weekdaysParse, i), n !== -1) ? n : (n = p.call(this._shortWeekdaysParse, i), n !== -1 ? n : null));
831
- }
832
- function Ur(e, t, s) {
833
- var r, n, a;
834
- if (this._weekdaysParseExact)
835
- return Ir.call(this, e, t, s);
836
- for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), r = 0; r < 7; r++) {
837
- if (n = U([2e3, 1]).day(r), s && !this._fullWeekdaysParse[r] && (this._fullWeekdaysParse[r] = new RegExp(
838
- "^" + this.weekdays(n, "").replace(".", "\\.?") + "$",
839
- "i"
840
- ), this._shortWeekdaysParse[r] = new RegExp(
841
- "^" + this.weekdaysShort(n, "").replace(".", "\\.?") + "$",
842
- "i"
843
- ), this._minWeekdaysParse[r] = new RegExp(
844
- "^" + this.weekdaysMin(n, "").replace(".", "\\.?") + "$",
845
- "i"
846
- )), this._weekdaysParse[r] || (a = "^" + this.weekdays(n, "") + "|^" + this.weekdaysShort(n, "") + "|^" + this.weekdaysMin(n, ""), this._weekdaysParse[r] = new RegExp(a.replace(".", ""), "i")), s && t === "dddd" && this._fullWeekdaysParse[r].test(e))
847
- return r;
848
- if (s && t === "ddd" && this._shortWeekdaysParse[r].test(e))
849
- return r;
850
- if (s && t === "dd" && this._minWeekdaysParse[r].test(e))
851
- return r;
852
- if (!s && this._weekdaysParse[r].test(e))
853
- return r;
854
- }
855
- }
856
- function Hr(e) {
857
- if (!this.isValid())
858
- return e != null ? this : NaN;
859
- var t = ye(this, "Day");
860
- return e != null ? (e = Tr(e, this.localeData()), this.add(e - t, "d")) : t;
861
- }
862
- function Er(e) {
863
- if (!this.isValid())
864
- return e != null ? this : NaN;
865
- var t = (this.day() + 7 - this.localeData()._week.dow) % 7;
866
- return e == null ? t : this.add(e - t, "d");
867
- }
868
- function Ar(e) {
869
- if (!this.isValid())
870
- return e != null ? this : NaN;
871
- if (e != null) {
872
- var t = br(e, this.localeData());
873
- return this.day(this.day() % 7 ? t : t - 7);
874
- } else
875
- return this.day() || 7;
876
- }
877
- function jr(e) {
878
- return this._weekdaysParseExact ? (w(this, "_weekdaysRegex") || mt.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex) : (w(this, "_weekdaysRegex") || (this._weekdaysRegex = Nr), this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex);
879
- }
880
- function Vr(e) {
881
- return this._weekdaysParseExact ? (w(this, "_weekdaysRegex") || mt.call(this), e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (w(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = Pr), this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex);
882
- }
883
- function Gr(e) {
884
- return this._weekdaysParseExact ? (w(this, "_weekdaysRegex") || mt.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (w(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = Rr), this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
885
- }
886
- function mt() {
887
- function e(O, E) {
888
- return E.length - O.length;
889
- }
890
- var t = [], s = [], r = [], n = [], a, i, u, f, _;
891
- for (a = 0; a < 7; a++)
892
- i = U([2e3, 1]).day(a), u = $(this.weekdaysMin(i, "")), f = $(this.weekdaysShort(i, "")), _ = $(this.weekdays(i, "")), t.push(u), s.push(f), r.push(_), n.push(u), n.push(f), n.push(_);
893
- t.sort(e), s.sort(e), r.sort(e), n.sort(e), this._weekdaysRegex = new RegExp("^(" + n.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
894
- "^(" + r.join("|") + ")",
895
- "i"
896
- ), this._weekdaysShortStrictRegex = new RegExp(
897
- "^(" + s.join("|") + ")",
898
- "i"
899
- ), this._weekdaysMinStrictRegex = new RegExp(
900
- "^(" + t.join("|") + ")",
901
- "i"
902
- );
903
- }
904
- function _t() {
905
- return this.hours() % 12 || 12;
906
- }
907
- function $r() {
908
- return this.hours() || 24;
909
- }
910
- h("H", ["HH", 2], 0, "hour");
911
- h("h", ["hh", 2], 0, _t);
912
- h("k", ["kk", 2], 0, $r);
913
- h("hmm", 0, 0, function() {
914
- return "" + _t.apply(this) + I(this.minutes(), 2);
915
- });
916
- h("hmmss", 0, 0, function() {
917
- return "" + _t.apply(this) + I(this.minutes(), 2) + I(this.seconds(), 2);
918
- });
919
- h("Hmm", 0, 0, function() {
920
- return "" + this.hours() + I(this.minutes(), 2);
921
- });
922
- h("Hmmss", 0, 0, function() {
923
- return "" + this.hours() + I(this.minutes(), 2) + I(this.seconds(), 2);
924
- });
925
- function Kt(e, t) {
926
- h(e, 0, 0, function() {
927
- return this.localeData().meridiem(
928
- this.hours(),
929
- this.minutes(),
930
- t
931
- );
932
- });
933
- }
934
- Kt("a", !0);
935
- Kt("A", !1);
936
- function es(e, t) {
937
- return t._meridiemParse;
938
- }
939
- d("a", es);
940
- d("A", es);
941
- d("H", S, ht);
942
- d("h", S, he);
943
- d("k", S, he);
944
- d("HH", S, b);
945
- d("hh", S, b);
946
- d("kk", S, b);
947
- d("hmm", jt);
948
- d("hmmss", Vt);
949
- d("Hmm", jt);
950
- d("Hmmss", Vt);
951
- g(["H", "HH"], v);
952
- g(["k", "kk"], function(e, t, s) {
953
- var r = m(e);
954
- t[v] = r === 24 ? 0 : r;
955
- });
956
- g(["a", "A"], function(e, t, s) {
957
- s._isPm = s._locale.isPM(e), s._meridiem = e;
958
- });
959
- g(["h", "hh"], function(e, t, s) {
960
- t[v] = m(e), c(s).bigHour = !0;
961
- });
962
- g("hmm", function(e, t, s) {
963
- var r = e.length - 2;
964
- t[v] = m(e.substr(0, r)), t[P] = m(e.substr(r)), c(s).bigHour = !0;
965
- });
966
- g("hmmss", function(e, t, s) {
967
- var r = e.length - 4, n = e.length - 2;
968
- t[v] = m(e.substr(0, r)), t[P] = m(e.substr(r, 2)), t[G] = m(e.substr(n)), c(s).bigHour = !0;
969
- });
970
- g("Hmm", function(e, t, s) {
971
- var r = e.length - 2;
972
- t[v] = m(e.substr(0, r)), t[P] = m(e.substr(r));
973
- });
974
- g("Hmmss", function(e, t, s) {
975
- var r = e.length - 4, n = e.length - 2;
976
- t[v] = m(e.substr(0, r)), t[P] = m(e.substr(r, 2)), t[G] = m(e.substr(n));
977
- });
978
- function zr(e) {
979
- return (e + "").toLowerCase().charAt(0) === "p";
980
- }
981
- var Zr = /[ap]\.?m?\.?/i, Br = fe("Hours", !0);
982
- function qr(e, t, s) {
983
- return e > 11 ? s ? "pm" : "PM" : s ? "am" : "AM";
984
- }
985
- var ts = {
986
- calendar: Is,
987
- longDateFormat: As,
988
- invalidDate: Vs,
989
- ordinal: $s,
990
- dayOfMonthOrdinalParse: zs,
991
- relativeTime: Bs,
992
- months: dr,
993
- monthsShort: zt,
994
- week: kr,
995
- weekdays: xr,
996
- weekdaysMin: Wr,
997
- weekdaysShort: Xt,
998
- meridiemParse: Zr
999
- }, k = {}, ce = {}, ge;
1000
- function Jr(e, t) {
1001
- var s, r = Math.min(e.length, t.length);
1002
- for (s = 0; s < r; s += 1)
1003
- if (e[s] !== t[s])
1004
- return s;
1005
- return r;
1006
- }
1007
- function xt(e) {
1008
- return e && e.toLowerCase().replace("_", "-");
1009
- }
1010
- function Qr(e) {
1011
- for (var t = 0, s, r, n, a; t < e.length; ) {
1012
- for (a = xt(e[t]).split("-"), s = a.length, r = xt(e[t + 1]), r = r ? r.split("-") : null; s > 0; ) {
1013
- if (n = Ae(a.slice(0, s).join("-")), n)
1014
- return n;
1015
- if (r && r.length >= s && Jr(a, r) >= s - 1)
1016
- break;
1017
- s--;
1018
- }
1019
- t++;
1020
- }
1021
- return ge;
1022
- }
1023
- function Xr(e) {
1024
- return !!(e && e.match("^[^/\\\\]*$"));
1025
- }
1026
- function Ae(e) {
1027
- var t = null, s;
1028
- if (k[e] === void 0 && typeof module < "u" && module && module.exports && Xr(e))
1029
- try {
1030
- t = ge._abbr, s = require, s("./locale/" + e), K(t);
1031
- } catch {
1032
- k[e] = null;
1033
- }
1034
- return k[e];
1035
- }
1036
- function K(e, t) {
1037
- var s;
1038
- return e && (T(t) ? s = B(e) : s = yt(e, t), s ? ge = s : typeof console < "u" && console.warn && console.warn(
1039
- "Locale " + e + " not found. Did you forget to load it?"
1040
- )), ge._abbr;
1041
- }
1042
- function yt(e, t) {
1043
- if (t !== null) {
1044
- var s, r = ts;
1045
- if (t.abbr = e, k[e] != null)
1046
- Ut(
1047
- "defineLocaleOverride",
1048
- "use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."
1049
- ), r = k[e]._config;
1050
- else if (t.parentLocale != null)
1051
- if (k[t.parentLocale] != null)
1052
- r = k[t.parentLocale]._config;
1053
- else if (s = Ae(t.parentLocale), s != null)
1054
- r = s._config;
1055
- else
1056
- return ce[t.parentLocale] || (ce[t.parentLocale] = []), ce[t.parentLocale].push({
1057
- name: e,
1058
- config: t
1059
- }), null;
1060
- return k[e] = new it(Qe(r, t)), ce[e] && ce[e].forEach(function(n) {
1061
- yt(n.name, n.config);
1062
- }), K(e), k[e];
1063
- } else
1064
- return delete k[e], null;
1065
- }
1066
- function Kr(e, t) {
1067
- if (t != null) {
1068
- var s, r, n = ts;
1069
- k[e] != null && k[e].parentLocale != null ? k[e].set(Qe(k[e]._config, t)) : (r = Ae(e), r != null && (n = r._config), t = Qe(n, t), r == null && (t.abbr = e), s = new it(t), s.parentLocale = k[e], k[e] = s), K(e);
1070
- } else
1071
- k[e] != null && (k[e].parentLocale != null ? (k[e] = k[e].parentLocale, e === K() && K(e)) : k[e] != null && delete k[e]);
1072
- return k[e];
1073
- }
1074
- function B(e) {
1075
- var t;
1076
- if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e)
1077
- return ge;
1078
- if (!R(e)) {
1079
- if (t = Ae(e), t)
1080
- return t;
1081
- e = [e];
1082
- }
1083
- return Qr(e);
1084
- }
1085
- function en() {
1086
- return Xe(k);
1087
- }
1088
- function wt(e) {
1089
- var t, s = e._a;
1090
- return s && c(e).overflow === -2 && (t = s[V] < 0 || s[V] > 11 ? V : s[C] < 1 || s[C] > ft(s[Y], s[V]) ? C : s[v] < 0 || s[v] > 24 || s[v] === 24 && (s[P] !== 0 || s[G] !== 0 || s[te] !== 0) ? v : s[P] < 0 || s[P] > 59 ? P : s[G] < 0 || s[G] > 59 ? G : s[te] < 0 || s[te] > 999 ? te : -1, c(e)._overflowDayOfYear && (t < Y || t > C) && (t = C), c(e)._overflowWeeks && t === -1 && (t = nr), c(e)._overflowWeekday && t === -1 && (t = ar), c(e).overflow = t), e;
1091
- }
1092
- var tn = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, sn = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, rn = /Z|[+-]\d\d(?::?\d\d)?/, Ye = [
1093
- ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
1094
- ["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
1095
- ["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
1096
- ["GGGG-[W]WW", /\d{4}-W\d\d/, !1],
1097
- ["YYYY-DDD", /\d{4}-\d{3}/],
1098
- ["YYYY-MM", /\d{4}-\d\d/, !1],
1099
- ["YYYYYYMMDD", /[+-]\d{10}/],
1100
- ["YYYYMMDD", /\d{8}/],
1101
- ["GGGG[W]WWE", /\d{4}W\d{3}/],
1102
- ["GGGG[W]WW", /\d{4}W\d{2}/, !1],
1103
- ["YYYYDDD", /\d{7}/],
1104
- ["YYYYMM", /\d{6}/, !1],
1105
- ["YYYY", /\d{4}/, !1]
1106
- ], Ze = [
1107
- ["HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/],
1108
- ["HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/],
1109
- ["HH:mm:ss", /\d\d:\d\d:\d\d/],
1110
- ["HH:mm", /\d\d:\d\d/],
1111
- ["HHmmss.SSSS", /\d\d\d\d\d\d\.\d+/],
1112
- ["HHmmss,SSSS", /\d\d\d\d\d\d,\d+/],
1113
- ["HHmmss", /\d\d\d\d\d\d/],
1114
- ["HHmm", /\d\d\d\d/],
1115
- ["HH", /\d\d/]
1116
- ], nn = /^\/?Date\((-?\d+)/i, an = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/, on = {
1117
- UT: 0,
1118
- GMT: 0,
1119
- EDT: -4 * 60,
1120
- EST: -5 * 60,
1121
- CDT: -5 * 60,
1122
- CST: -6 * 60,
1123
- MDT: -6 * 60,
1124
- MST: -7 * 60,
1125
- PDT: -7 * 60,
1126
- PST: -8 * 60
1127
- };
1128
- function ss(e) {
1129
- var t, s, r = e._i, n = tn.exec(r) || sn.exec(r), a, i, u, f, _ = Ye.length, O = Ze.length;
1130
- if (n) {
1131
- for (c(e).iso = !0, t = 0, s = _; t < s; t++)
1132
- if (Ye[t][1].exec(n[1])) {
1133
- i = Ye[t][0], a = Ye[t][2] !== !1;
1134
- break;
1135
- }
1136
- if (i == null) {
1137
- e._isValid = !1;
1138
- return;
1139
- }
1140
- if (n[3]) {
1141
- for (t = 0, s = O; t < s; t++)
1142
- if (Ze[t][1].exec(n[3])) {
1143
- u = (n[2] || " ") + Ze[t][0];
1144
- break;
1145
- }
1146
- if (u == null) {
1147
- e._isValid = !1;
1148
- return;
1149
- }
1150
- }
1151
- if (!a && u != null) {
1152
- e._isValid = !1;
1153
- return;
1154
- }
1155
- if (n[4])
1156
- if (rn.exec(n[4]))
1157
- f = "Z";
1158
- else {
1159
- e._isValid = !1;
1160
- return;
1161
- }
1162
- e._f = i + (u || "") + (f || ""), gt(e);
1163
- } else
1164
- e._isValid = !1;
1165
- }
1166
- function ln(e, t, s, r, n, a) {
1167
- var i = [
1168
- un(e),
1169
- zt.indexOf(t),
1170
- parseInt(s, 10),
1171
- parseInt(r, 10),
1172
- parseInt(n, 10)
1173
- ];
1174
- return a && i.push(parseInt(a, 10)), i;
1175
- }
1176
- function un(e) {
1177
- var t = parseInt(e, 10);
1178
- return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t;
1179
- }
1180
- function dn(e) {
1181
- return e.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "");
1182
- }
1183
- function hn(e, t, s) {
1184
- if (e) {
1185
- var r = Xt.indexOf(e), n = new Date(
1186
- t[0],
1187
- t[1],
1188
- t[2]
1189
- ).getDay();
1190
- if (r !== n)
1191
- return c(s).weekdayMismatch = !0, s._isValid = !1, !1;
1192
- }
1193
- return !0;
1194
- }
1195
- function fn(e, t, s) {
1196
- if (e)
1197
- return on[e];
1198
- if (t)
1199
- return 0;
1200
- var r = parseInt(s, 10), n = r % 100, a = (r - n) / 100;
1201
- return a * 60 + n;
1202
- }
1203
- function rs(e) {
1204
- var t = an.exec(dn(e._i)), s;
1205
- if (t) {
1206
- if (s = ln(
1207
- t[4],
1208
- t[3],
1209
- t[2],
1210
- t[5],
1211
- t[6],
1212
- t[7]
1213
- ), !hn(t[1], s, e))
1214
- return;
1215
- e._a = s, e._tzm = fn(t[8], t[9], t[10]), e._d = we.apply(null, e._a), e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), c(e).rfc2822 = !0;
1216
- } else
1217
- e._isValid = !1;
1218
- }
1219
- function cn(e) {
1220
- var t = nn.exec(e._i);
1221
- if (t !== null) {
1222
- e._d = /* @__PURE__ */ new Date(+t[1]);
1223
- return;
1224
- }
1225
- if (ss(e), e._isValid === !1)
1226
- delete e._isValid;
1227
- else
1228
- return;
1229
- if (rs(e), e._isValid === !1)
1230
- delete e._isValid;
1231
- else
1232
- return;
1233
- e._strict ? e._isValid = !1 : l.createFromInputFallback(e);
1234
- }
1235
- l.createFromInputFallback = W(
1236
- "value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",
1237
- function(e) {
1238
- e._d = /* @__PURE__ */ new Date(e._i + (e._useUTC ? " UTC" : ""));
1239
- }
1240
- );
1241
- function ae(e, t, s) {
1242
- return e ?? t ?? s;
1243
- }
1244
- function mn(e) {
1245
- var t = new Date(l.now());
1246
- return e._useUTC ? [
1247
- t.getUTCFullYear(),
1248
- t.getUTCMonth(),
1249
- t.getUTCDate()
1250
- ] : [t.getFullYear(), t.getMonth(), t.getDate()];
1251
- }
1252
- function Mt(e) {
1253
- var t, s, r = [], n, a, i;
1254
- if (!e._d) {
1255
- for (n = mn(e), e._w && e._a[C] == null && e._a[V] == null && _n(e), e._dayOfYear != null && (i = ae(e._a[Y], n[Y]), (e._dayOfYear > _e(i) || e._dayOfYear === 0) && (c(e)._overflowDayOfYear = !0), s = we(i, 0, e._dayOfYear), e._a[V] = s.getUTCMonth(), e._a[C] = s.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
1256
- e._a[t] = r[t] = n[t];
1257
- for (; t < 7; t++)
1258
- e._a[t] = r[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
1259
- e._a[v] === 24 && e._a[P] === 0 && e._a[G] === 0 && e._a[te] === 0 && (e._nextDay = !0, e._a[v] = 0), e._d = (e._useUTC ? we : Dr).apply(
1260
- null,
1261
- r
1262
- ), a = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[v] = 24), e._w && typeof e._w.d < "u" && e._w.d !== a && (c(e).weekdayMismatch = !0);
1263
- }
1264
- }
1265
- function _n(e) {
1266
- var t, s, r, n, a, i, u, f, _;
1267
- t = e._w, t.GG != null || t.W != null || t.E != null ? (a = 1, i = 4, s = ae(
1268
- t.GG,
1269
- e._a[Y],
1270
- Me(D(), 1, 4).year
1271
- ), r = ae(t.W, 1), n = ae(t.E, 1), (n < 1 || n > 7) && (f = !0)) : (a = e._locale._week.dow, i = e._locale._week.doy, _ = Me(D(), a, i), s = ae(t.gg, e._a[Y], _.year), r = ae(t.w, _.week), t.d != null ? (n = t.d, (n < 0 || n > 6) && (f = !0)) : t.e != null ? (n = t.e + a, (t.e < 0 || t.e > 6) && (f = !0)) : n = a), r < 1 || r > z(s, a, i) ? c(e)._overflowWeeks = !0 : f != null ? c(e)._overflowWeekday = !0 : (u = Qt(s, r, n, a, i), e._a[Y] = u.year, e._dayOfYear = u.dayOfYear);
1272
- }
1273
- l.ISO_8601 = function() {
1274
- };
1275
- l.RFC_2822 = function() {
1276
- };
1277
- function gt(e) {
1278
- if (e._f === l.ISO_8601) {
1279
- ss(e);
1280
- return;
1281
- }
1282
- if (e._f === l.RFC_2822) {
1283
- rs(e);
1284
- return;
1285
- }
1286
- e._a = [], c(e).empty = !0;
1287
- var t = "" + e._i, s, r, n, a, i, u = t.length, f = 0, _, O;
1288
- for (n = Ht(e._f, e._locale).match(ot) || [], O = n.length, s = 0; s < O; s++)
1289
- a = n[s], r = (t.match(tr(a, e)) || [])[0], r && (i = t.substr(0, t.indexOf(r)), i.length > 0 && c(e).unusedInput.push(i), t = t.slice(
1290
- t.indexOf(r) + r.length
1291
- ), f += r.length), oe[a] ? (r ? c(e).empty = !1 : c(e).unusedTokens.push(a), rr(a, r, e)) : e._strict && !r && c(e).unusedTokens.push(a);
1292
- c(e).charsLeftOver = u - f, t.length > 0 && c(e).unusedInput.push(t), e._a[v] <= 12 && c(e).bigHour === !0 && e._a[v] > 0 && (c(e).bigHour = void 0), c(e).parsedDateParts = e._a.slice(0), c(e).meridiem = e._meridiem, e._a[v] = yn(
1293
- e._locale,
1294
- e._a[v],
1295
- e._meridiem
1296
- ), _ = c(e).era, _ !== null && (e._a[Y] = e._locale.erasConvertYear(_, e._a[Y])), Mt(e), wt(e);
1297
- }
1298
- function yn(e, t, s) {
1299
- var r;
1300
- return s == null ? t : e.meridiemHour != null ? e.meridiemHour(t, s) : (e.isPM != null && (r = e.isPM(s), r && t < 12 && (t += 12), !r && t === 12 && (t = 0)), t);
1301
- }
1302
- function wn(e) {
1303
- var t, s, r, n, a, i, u = !1, f = e._f.length;
1304
- if (f === 0) {
1305
- c(e).invalidFormat = !0, e._d = /* @__PURE__ */ new Date(NaN);
1306
- return;
1307
- }
1308
- for (n = 0; n < f; n++)
1309
- a = 0, i = !1, t = at({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._f = e._f[n], gt(t), nt(t) && (i = !0), a += c(t).charsLeftOver, a += c(t).unusedTokens.length * 10, c(t).score = a, u ? a < r && (r = a, s = t) : (r == null || a < r || i) && (r = a, s = t, i && (u = !0));
1310
- Q(e, s || t);
1311
- }
1312
- function Mn(e) {
1313
- if (!e._d) {
1314
- var t = lt(e._i), s = t.day === void 0 ? t.date : t.day;
1315
- e._a = Ct(
1316
- [t.year, t.month, s, t.hour, t.minute, t.second, t.millisecond],
1317
- function(r) {
1318
- return r && parseInt(r, 10);
1319
- }
1320
- ), Mt(e);
1321
- }
1322
- }
1323
- function gn(e) {
1324
- var t = new Se(wt(ns(e)));
1325
- return t._nextDay && (t.add(1, "d"), t._nextDay = void 0), t;
1326
- }
1327
- function ns(e) {
1328
- var t = e._i, s = e._f;
1329
- return e._locale = e._locale || B(e._l), t === null || s === void 0 && t === "" ? Fe({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), F(t) ? new Se(wt(t)) : (De(t) ? e._d = t : R(s) ? wn(e) : s ? gt(e) : Dn(e), nt(e) || (e._d = null), e));
1330
- }
1331
- function Dn(e) {
1332
- var t = e._i;
1333
- T(t) ? e._d = new Date(l.now()) : De(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? cn(e) : R(t) ? (e._a = Ct(t.slice(0), function(s) {
1334
- return parseInt(s, 10);
1335
- }), Mt(e)) : se(t) ? Mn(e) : Z(t) ? e._d = new Date(t) : l.createFromInputFallback(e);
1336
- }
1337
- function as(e, t, s, r, n) {
1338
- var a = {};
1339
- return (t === !0 || t === !1) && (r = t, t = void 0), (s === !0 || s === !1) && (r = s, s = void 0), (se(e) && rt(e) || R(e) && e.length === 0) && (e = void 0), a._isAMomentObject = !0, a._useUTC = a._isUTC = n, a._l = s, a._i = e, a._f = t, a._strict = r, gn(a);
1340
- }
1341
- function D(e, t, s, r) {
1342
- return as(e, t, s, r, !1);
1343
- }
1344
- var Sn = W(
1345
- "moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
1346
- function() {
1347
- var e = D.apply(null, arguments);
1348
- return this.isValid() && e.isValid() ? e < this ? this : e : Fe();
1349
- }
1350
- ), kn = W(
1351
- "moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
1352
- function() {
1353
- var e = D.apply(null, arguments);
1354
- return this.isValid() && e.isValid() ? e > this ? this : e : Fe();
1355
- }
1356
- );
1357
- function is(e, t) {
1358
- var s, r;
1359
- if (t.length === 1 && R(t[0]) && (t = t[0]), !t.length)
1360
- return D();
1361
- for (s = t[0], r = 1; r < t.length; ++r)
1362
- (!t[r].isValid() || t[r][e](s)) && (s = t[r]);
1363
- return s;
1364
- }
1365
- function pn() {
1366
- var e = [].slice.call(arguments, 0);
1367
- return is("isBefore", e);
1368
- }
1369
- function vn() {
1370
- var e = [].slice.call(arguments, 0);
1371
- return is("isAfter", e);
1372
- }
1373
- var Yn = function() {
1374
- return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
1375
- }, me = [
1376
- "year",
1377
- "quarter",
1378
- "month",
1379
- "week",
1380
- "day",
1381
- "hour",
1382
- "minute",
1383
- "second",
1384
- "millisecond"
1385
- ];
1386
- function On(e) {
1387
- var t, s = !1, r, n = me.length;
1388
- for (t in e)
1389
- if (w(e, t) && !(p.call(me, t) !== -1 && (e[t] == null || !isNaN(e[t]))))
1390
- return !1;
1391
- for (r = 0; r < n; ++r)
1392
- if (e[me[r]]) {
1393
- if (s)
1394
- return !1;
1395
- parseFloat(e[me[r]]) !== m(e[me[r]]) && (s = !0);
1396
- }
1397
- return !0;
1398
- }
1399
- function Tn() {
1400
- return this._isValid;
1401
- }
1402
- function bn() {
1403
- return L(NaN);
1404
- }
1405
- function je(e) {
1406
- var t = lt(e), s = t.year || 0, r = t.quarter || 0, n = t.month || 0, a = t.week || t.isoWeek || 0, i = t.day || 0, u = t.hour || 0, f = t.minute || 0, _ = t.second || 0, O = t.millisecond || 0;
1407
- this._isValid = On(t), this._milliseconds = +O + _ * 1e3 + // 1000
1408
- f * 6e4 + // 1000 * 60
1409
- u * 1e3 * 60 * 60, this._days = +i + a * 7, this._months = +n + r * 3 + s * 12, this._data = {}, this._locale = B(), this._bubble();
1410
- }
1411
- function Te(e) {
1412
- return e instanceof je;
1413
- }
1414
- function et(e) {
1415
- return e < 0 ? Math.round(-1 * e) * -1 : Math.round(e);
1416
- }
1417
- function xn(e, t, s) {
1418
- var r = Math.min(e.length, t.length), n = Math.abs(e.length - t.length), a = 0, i;
1419
- for (i = 0; i < r; i++)
1420
- m(e[i]) !== m(t[i]) && a++;
1421
- return a + n;
1422
- }
1423
- function os(e, t) {
1424
- h(e, 0, 0, function() {
1425
- var s = this.utcOffset(), r = "+";
1426
- return s < 0 && (s = -s, r = "-"), r + I(~~(s / 60), 2) + t + I(~~s % 60, 2);
1427
- });
1428
- }
1429
- os("Z", ":");
1430
- os("ZZ", "");
1431
- d("Z", He);
1432
- d("ZZ", He);
1433
- g(["Z", "ZZ"], function(e, t, s) {
1434
- s._useUTC = !0, s._tzm = Dt(He, e);
1435
- });
1436
- var Wn = /([\+\-]|\d\d)/gi;
1437
- function Dt(e, t) {
1438
- var s = (t || "").match(e), r, n, a;
1439
- return s === null ? null : (r = s[s.length - 1] || [], n = (r + "").match(Wn) || ["-", 0, 0], a = +(n[1] * 60) + m(n[2]), a === 0 ? 0 : n[0] === "+" ? a : -a);
1440
- }
1441
- function St(e, t) {
1442
- var s, r;
1443
- return t._isUTC ? (s = t.clone(), r = (F(e) || De(e) ? e.valueOf() : D(e).valueOf()) - s.valueOf(), s._d.setTime(s._d.valueOf() + r), l.updateOffset(s, !1), s) : D(e).local();
1444
- }
1445
- function tt(e) {
1446
- return -Math.round(e._d.getTimezoneOffset());
1447
- }
1448
- l.updateOffset = function() {
1449
- };
1450
- function Nn(e, t, s) {
1451
- var r = this._offset || 0, n;
1452
- if (!this.isValid())
1453
- return e != null ? this : NaN;
1454
- if (e != null) {
1455
- if (typeof e == "string") {
1456
- if (e = Dt(He, e), e === null)
1457
- return this;
1458
- } else Math.abs(e) < 16 && !s && (e = e * 60);
1459
- return !this._isUTC && t && (n = tt(this)), this._offset = e, this._isUTC = !0, n != null && this.add(n, "m"), r !== e && (!t || this._changeInProgress ? ds(
1460
- this,
1461
- L(e - r, "m"),
1462
- 1,
1463
- !1
1464
- ) : this._changeInProgress || (this._changeInProgress = !0, l.updateOffset(this, !0), this._changeInProgress = null)), this;
1465
- } else
1466
- return this._isUTC ? r : tt(this);
1467
- }
1468
- function Pn(e, t) {
1469
- return e != null ? (typeof e != "string" && (e = -e), this.utcOffset(e, t), this) : -this.utcOffset();
1470
- }
1471
- function Rn(e) {
1472
- return this.utcOffset(0, e);
1473
- }
1474
- function Fn(e) {
1475
- return this._isUTC && (this.utcOffset(0, e), this._isUTC = !1, e && this.subtract(tt(this), "m")), this;
1476
- }
1477
- function Ln() {
1478
- if (this._tzm != null)
1479
- this.utcOffset(this._tzm, !1, !0);
1480
- else if (typeof this._i == "string") {
1481
- var e = Dt(Ks, this._i);
1482
- e != null ? this.utcOffset(e) : this.utcOffset(0, !0);
1483
- }
1484
- return this;
1485
- }
1486
- function Cn(e) {
1487
- return this.isValid() ? (e = e ? D(e).utcOffset() : 0, (this.utcOffset() - e) % 60 === 0) : !1;
1488
- }
1489
- function In() {
1490
- return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
1491
- }
1492
- function Un() {
1493
- if (!T(this._isDSTShifted))
1494
- return this._isDSTShifted;
1495
- var e = {}, t;
1496
- return at(e, this), e = ns(e), e._a ? (t = e._isUTC ? U(e._a) : D(e._a), this._isDSTShifted = this.isValid() && xn(e._a, t.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
1497
- }
1498
- function Hn() {
1499
- return this.isValid() ? !this._isUTC : !1;
1500
- }
1501
- function En() {
1502
- return this.isValid() ? this._isUTC : !1;
1503
- }
1504
- function ls() {
1505
- return this.isValid() ? this._isUTC && this._offset === 0 : !1;
1506
- }
1507
- var An = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, jn = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
1508
- function L(e, t) {
1509
- var s = e, r = null, n, a, i;
1510
- return Te(e) ? s = {
1511
- ms: e._milliseconds,
1512
- d: e._days,
1513
- M: e._months
1514
- } : Z(e) || !isNaN(+e) ? (s = {}, t ? s[t] = +e : s.milliseconds = +e) : (r = An.exec(e)) ? (n = r[1] === "-" ? -1 : 1, s = {
1515
- y: 0,
1516
- d: m(r[C]) * n,
1517
- h: m(r[v]) * n,
1518
- m: m(r[P]) * n,
1519
- s: m(r[G]) * n,
1520
- ms: m(et(r[te] * 1e3)) * n
1521
- // the millisecond decimal point is included in the match
1522
- }) : (r = jn.exec(e)) ? (n = r[1] === "-" ? -1 : 1, s = {
1523
- y: ee(r[2], n),
1524
- M: ee(r[3], n),
1525
- w: ee(r[4], n),
1526
- d: ee(r[5], n),
1527
- h: ee(r[6], n),
1528
- m: ee(r[7], n),
1529
- s: ee(r[8], n)
1530
- }) : s == null ? s = {} : typeof s == "object" && ("from" in s || "to" in s) && (i = Vn(
1531
- D(s.from),
1532
- D(s.to)
1533
- ), s = {}, s.ms = i.milliseconds, s.M = i.months), a = new je(s), Te(e) && w(e, "_locale") && (a._locale = e._locale), Te(e) && w(e, "_isValid") && (a._isValid = e._isValid), a;
1534
- }
1535
- L.fn = je.prototype;
1536
- L.invalid = bn;
1537
- function ee(e, t) {
1538
- var s = e && parseFloat(e.replace(",", "."));
1539
- return (isNaN(s) ? 0 : s) * t;
1540
- }
1541
- function Wt(e, t) {
1542
- var s = {};
1543
- return s.months = t.month() - e.month() + (t.year() - e.year()) * 12, e.clone().add(s.months, "M").isAfter(t) && --s.months, s.milliseconds = +t - +e.clone().add(s.months, "M"), s;
1544
- }
1545
- function Vn(e, t) {
1546
- var s;
1547
- return e.isValid() && t.isValid() ? (t = St(t, e), e.isBefore(t) ? s = Wt(e, t) : (s = Wt(t, e), s.milliseconds = -s.milliseconds, s.months = -s.months), s) : { milliseconds: 0, months: 0 };
1548
- }
1549
- function us(e, t) {
1550
- return function(s, r) {
1551
- var n, a;
1552
- return r !== null && !isNaN(+r) && (Ut(
1553
- t,
1554
- "moment()." + t + "(period, number) is deprecated. Please use moment()." + t + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
1555
- ), a = s, s = r, r = a), n = L(s, r), ds(this, n, e), this;
1556
- };
1557
- }
1558
- function ds(e, t, s, r) {
1559
- var n = t._milliseconds, a = et(t._days), i = et(t._months);
1560
- e.isValid() && (r = r ?? !0, i && Bt(e, ye(e, "Month") + i * s), a && $t(e, "Date", ye(e, "Date") + a * s), n && e._d.setTime(e._d.valueOf() + n * s), r && l.updateOffset(e, a || i));
1561
- }
1562
- var Gn = us(1, "add"), $n = us(-1, "subtract");
1563
- function hs(e) {
1564
- return typeof e == "string" || e instanceof String;
1565
- }
1566
- function zn(e) {
1567
- return F(e) || De(e) || hs(e) || Z(e) || Bn(e) || Zn(e) || e === null || e === void 0;
1568
- }
1569
- function Zn(e) {
1570
- var t = se(e) && !rt(e), s = !1, r = [
1571
- "years",
1572
- "year",
1573
- "y",
1574
- "months",
1575
- "month",
1576
- "M",
1577
- "days",
1578
- "day",
1579
- "d",
1580
- "dates",
1581
- "date",
1582
- "D",
1583
- "hours",
1584
- "hour",
1585
- "h",
1586
- "minutes",
1587
- "minute",
1588
- "m",
1589
- "seconds",
1590
- "second",
1591
- "s",
1592
- "milliseconds",
1593
- "millisecond",
1594
- "ms"
1595
- ], n, a, i = r.length;
1596
- for (n = 0; n < i; n += 1)
1597
- a = r[n], s = s || w(e, a);
1598
- return t && s;
1599
- }
1600
- function Bn(e) {
1601
- var t = R(e), s = !1;
1602
- return t && (s = e.filter(function(r) {
1603
- return !Z(r) && hs(e);
1604
- }).length === 0), t && s;
1605
- }
1606
- function qn(e) {
1607
- var t = se(e) && !rt(e), s = !1, r = [
1608
- "sameDay",
1609
- "nextDay",
1610
- "lastDay",
1611
- "nextWeek",
1612
- "lastWeek",
1613
- "sameElse"
1614
- ], n, a;
1615
- for (n = 0; n < r.length; n += 1)
1616
- a = r[n], s = s || w(e, a);
1617
- return t && s;
1618
- }
1619
- function Jn(e, t) {
1620
- var s = e.diff(t, "days", !0);
1621
- return s < -6 ? "sameElse" : s < -1 ? "lastWeek" : s < 0 ? "lastDay" : s < 1 ? "sameDay" : s < 2 ? "nextDay" : s < 7 ? "nextWeek" : "sameElse";
1622
- }
1623
- function Qn(e, t) {
1624
- arguments.length === 1 && (arguments[0] ? zn(arguments[0]) ? (e = arguments[0], t = void 0) : qn(arguments[0]) && (t = arguments[0], e = void 0) : (e = void 0, t = void 0));
1625
- var s = e || D(), r = St(s, this).startOf("day"), n = l.calendarFormat(this, r) || "sameElse", a = t && (H(t[n]) ? t[n].call(this, s) : t[n]);
1626
- return this.format(
1627
- a || this.localeData().calendar(n, this, D(s))
1628
- );
1629
- }
1630
- function Xn() {
1631
- return new Se(this);
1632
- }
1633
- function Kn(e, t) {
1634
- var s = F(e) ? e : D(e);
1635
- return this.isValid() && s.isValid() ? (t = N(t) || "millisecond", t === "millisecond" ? this.valueOf() > s.valueOf() : s.valueOf() < this.clone().startOf(t).valueOf()) : !1;
1636
- }
1637
- function ea(e, t) {
1638
- var s = F(e) ? e : D(e);
1639
- return this.isValid() && s.isValid() ? (t = N(t) || "millisecond", t === "millisecond" ? this.valueOf() < s.valueOf() : this.clone().endOf(t).valueOf() < s.valueOf()) : !1;
1640
- }
1641
- function ta(e, t, s, r) {
1642
- var n = F(e) ? e : D(e), a = F(t) ? t : D(t);
1643
- return this.isValid() && n.isValid() && a.isValid() ? (r = r || "()", (r[0] === "(" ? this.isAfter(n, s) : !this.isBefore(n, s)) && (r[1] === ")" ? this.isBefore(a, s) : !this.isAfter(a, s))) : !1;
1644
- }
1645
- function sa(e, t) {
1646
- var s = F(e) ? e : D(e), r;
1647
- return this.isValid() && s.isValid() ? (t = N(t) || "millisecond", t === "millisecond" ? this.valueOf() === s.valueOf() : (r = s.valueOf(), this.clone().startOf(t).valueOf() <= r && r <= this.clone().endOf(t).valueOf())) : !1;
1648
- }
1649
- function ra(e, t) {
1650
- return this.isSame(e, t) || this.isAfter(e, t);
1651
- }
1652
- function na(e, t) {
1653
- return this.isSame(e, t) || this.isBefore(e, t);
1654
- }
1655
- function aa(e, t, s) {
1656
- var r, n, a;
1657
- if (!this.isValid())
1658
- return NaN;
1659
- if (r = St(e, this), !r.isValid())
1660
- return NaN;
1661
- switch (n = (r.utcOffset() - this.utcOffset()) * 6e4, t = N(t), t) {
1662
- case "year":
1663
- a = be(this, r) / 12;
1664
- break;
1665
- case "month":
1666
- a = be(this, r);
1667
- break;
1668
- case "quarter":
1669
- a = be(this, r) / 3;
1670
- break;
1671
- case "second":
1672
- a = (this - r) / 1e3;
1673
- break;
1674
- case "minute":
1675
- a = (this - r) / 6e4;
1676
- break;
1677
- case "hour":
1678
- a = (this - r) / 36e5;
1679
- break;
1680
- case "day":
1681
- a = (this - r - n) / 864e5;
1682
- break;
1683
- case "week":
1684
- a = (this - r - n) / 6048e5;
1685
- break;
1686
- default:
1687
- a = this - r;
1688
- }
1689
- return s ? a : x(a);
1690
- }
1691
- function be(e, t) {
1692
- if (e.date() < t.date())
1693
- return -be(t, e);
1694
- var s = (t.year() - e.year()) * 12 + (t.month() - e.month()), r = e.clone().add(s, "months"), n, a;
1695
- return t - r < 0 ? (n = e.clone().add(s - 1, "months"), a = (t - r) / (r - n)) : (n = e.clone().add(s + 1, "months"), a = (t - r) / (n - r)), -(s + a) || 0;
1696
- }
1697
- l.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
1698
- l.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
1699
- function ia() {
1700
- return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
1701
- }
1702
- function oa(e) {
1703
- if (!this.isValid())
1704
- return null;
1705
- var t = e !== !0, s = t ? this.clone().utc() : this;
1706
- return s.year() < 0 || s.year() > 9999 ? Oe(
1707
- s,
1708
- t ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"
1709
- ) : H(Date.prototype.toISOString) ? t ? this.toDate().toISOString() : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", Oe(s, "Z")) : Oe(
1710
- s,
1711
- t ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"
1712
- );
1713
- }
1714
- function la() {
1715
- if (!this.isValid())
1716
- return "moment.invalid(/* " + this._i + " */)";
1717
- var e = "moment", t = "", s, r, n, a;
1718
- return this.isLocal() || (e = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", t = "Z"), s = "[" + e + '("]', r = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", n = "-MM-DD[T]HH:mm:ss.SSS", a = t + '[")]', this.format(s + r + n + a);
1719
- }
1720
- function ua(e) {
1721
- e || (e = this.isUtc() ? l.defaultFormatUtc : l.defaultFormat);
1722
- var t = Oe(this, e);
1723
- return this.localeData().postformat(t);
1724
- }
1725
- function da(e, t) {
1726
- return this.isValid() && (F(e) && e.isValid() || D(e).isValid()) ? L({ to: this, from: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
1727
- }
1728
- function ha(e) {
1729
- return this.from(D(), e);
1730
- }
1731
- function fa(e, t) {
1732
- return this.isValid() && (F(e) && e.isValid() || D(e).isValid()) ? L({ from: this, to: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
1733
- }
1734
- function ca(e) {
1735
- return this.to(D(), e);
1736
- }
1737
- function fs(e) {
1738
- var t;
1739
- return e === void 0 ? this._locale._abbr : (t = B(e), t != null && (this._locale = t), this);
1740
- }
1741
- var cs = W(
1742
- "moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
1743
- function(e) {
1744
- return e === void 0 ? this.localeData() : this.locale(e);
1745
- }
1746
- );
1747
- function ms() {
1748
- return this._locale;
1749
- }
1750
- var Ne = 1e3, le = 60 * Ne, Pe = 60 * le, _s = (365 * 400 + 97) * 24 * Pe;
1751
- function ue(e, t) {
1752
- return (e % t + t) % t;
1753
- }
1754
- function ys(e, t, s) {
1755
- return e < 100 && e >= 0 ? new Date(e + 400, t, s) - _s : new Date(e, t, s).valueOf();
1756
- }
1757
- function ws(e, t, s) {
1758
- return e < 100 && e >= 0 ? Date.UTC(e + 400, t, s) - _s : Date.UTC(e, t, s);
1759
- }
1760
- function ma(e) {
1761
- var t, s;
1762
- if (e = N(e), e === void 0 || e === "millisecond" || !this.isValid())
1763
- return this;
1764
- switch (s = this._isUTC ? ws : ys, e) {
1765
- case "year":
1766
- t = s(this.year(), 0, 1);
1767
- break;
1768
- case "quarter":
1769
- t = s(
1770
- this.year(),
1771
- this.month() - this.month() % 3,
1772
- 1
1773
- );
1774
- break;
1775
- case "month":
1776
- t = s(this.year(), this.month(), 1);
1777
- break;
1778
- case "week":
1779
- t = s(
1780
- this.year(),
1781
- this.month(),
1782
- this.date() - this.weekday()
1783
- );
1784
- break;
1785
- case "isoWeek":
1786
- t = s(
1787
- this.year(),
1788
- this.month(),
1789
- this.date() - (this.isoWeekday() - 1)
1790
- );
1791
- break;
1792
- case "day":
1793
- case "date":
1794
- t = s(this.year(), this.month(), this.date());
1795
- break;
1796
- case "hour":
1797
- t = this._d.valueOf(), t -= ue(
1798
- t + (this._isUTC ? 0 : this.utcOffset() * le),
1799
- Pe
1800
- );
1801
- break;
1802
- case "minute":
1803
- t = this._d.valueOf(), t -= ue(t, le);
1804
- break;
1805
- case "second":
1806
- t = this._d.valueOf(), t -= ue(t, Ne);
1807
- break;
1808
- }
1809
- return this._d.setTime(t), l.updateOffset(this, !0), this;
1810
- }
1811
- function _a(e) {
1812
- var t, s;
1813
- if (e = N(e), e === void 0 || e === "millisecond" || !this.isValid())
1814
- return this;
1815
- switch (s = this._isUTC ? ws : ys, e) {
1816
- case "year":
1817
- t = s(this.year() + 1, 0, 1) - 1;
1818
- break;
1819
- case "quarter":
1820
- t = s(
1821
- this.year(),
1822
- this.month() - this.month() % 3 + 3,
1823
- 1
1824
- ) - 1;
1825
- break;
1826
- case "month":
1827
- t = s(this.year(), this.month() + 1, 1) - 1;
1828
- break;
1829
- case "week":
1830
- t = s(
1831
- this.year(),
1832
- this.month(),
1833
- this.date() - this.weekday() + 7
1834
- ) - 1;
1835
- break;
1836
- case "isoWeek":
1837
- t = s(
1838
- this.year(),
1839
- this.month(),
1840
- this.date() - (this.isoWeekday() - 1) + 7
1841
- ) - 1;
1842
- break;
1843
- case "day":
1844
- case "date":
1845
- t = s(this.year(), this.month(), this.date() + 1) - 1;
1846
- break;
1847
- case "hour":
1848
- t = this._d.valueOf(), t += Pe - ue(
1849
- t + (this._isUTC ? 0 : this.utcOffset() * le),
1850
- Pe
1851
- ) - 1;
1852
- break;
1853
- case "minute":
1854
- t = this._d.valueOf(), t += le - ue(t, le) - 1;
1855
- break;
1856
- case "second":
1857
- t = this._d.valueOf(), t += Ne - ue(t, Ne) - 1;
1858
- break;
1859
- }
1860
- return this._d.setTime(t), l.updateOffset(this, !0), this;
1861
- }
1862
- function ya() {
1863
- return this._d.valueOf() - (this._offset || 0) * 6e4;
1864
- }
1865
- function wa() {
1866
- return Math.floor(this.valueOf() / 1e3);
1867
- }
1868
- function Ma() {
1869
- return new Date(this.valueOf());
1870
- }
1871
- function ga() {
1872
- var e = this;
1873
- return [
1874
- e.year(),
1875
- e.month(),
1876
- e.date(),
1877
- e.hour(),
1878
- e.minute(),
1879
- e.second(),
1880
- e.millisecond()
1881
- ];
1882
- }
1883
- function Da() {
1884
- var e = this;
1885
- return {
1886
- years: e.year(),
1887
- months: e.month(),
1888
- date: e.date(),
1889
- hours: e.hours(),
1890
- minutes: e.minutes(),
1891
- seconds: e.seconds(),
1892
- milliseconds: e.milliseconds()
1893
- };
1894
- }
1895
- function Sa() {
1896
- return this.isValid() ? this.toISOString() : null;
1897
- }
1898
- function ka() {
1899
- return nt(this);
1900
- }
1901
- function pa() {
1902
- return Q({}, c(this));
1903
- }
1904
- function va() {
1905
- return c(this).overflow;
1906
- }
1907
- function Ya() {
1908
- return {
1909
- input: this._i,
1910
- format: this._f,
1911
- locale: this._locale,
1912
- isUTC: this._isUTC,
1913
- strict: this._strict
1914
- };
1915
- }
1916
- h("N", 0, 0, "eraAbbr");
1917
- h("NN", 0, 0, "eraAbbr");
1918
- h("NNN", 0, 0, "eraAbbr");
1919
- h("NNNN", 0, 0, "eraName");
1920
- h("NNNNN", 0, 0, "eraNarrow");
1921
- h("y", ["y", 1], "yo", "eraYear");
1922
- h("y", ["yy", 2], 0, "eraYear");
1923
- h("y", ["yyy", 3], 0, "eraYear");
1924
- h("y", ["yyyy", 4], 0, "eraYear");
1925
- d("N", kt);
1926
- d("NN", kt);
1927
- d("NNN", kt);
1928
- d("NNNN", Ca);
1929
- d("NNNNN", Ia);
1930
- g(
1931
- ["N", "NN", "NNN", "NNNN", "NNNNN"],
1932
- function(e, t, s, r) {
1933
- var n = s._locale.erasParse(e, r, s._strict);
1934
- n ? c(s).era = n : c(s).invalidEra = e;
1935
- }
1936
- );
1937
- d("y", de);
1938
- d("yy", de);
1939
- d("yyy", de);
1940
- d("yyyy", de);
1941
- d("yo", Ua);
1942
- g(["y", "yy", "yyy", "yyyy"], Y);
1943
- g(["yo"], function(e, t, s, r) {
1944
- var n;
1945
- s._locale._eraYearOrdinalRegex && (n = e.match(s._locale._eraYearOrdinalRegex)), s._locale.eraYearOrdinalParse ? t[Y] = s._locale.eraYearOrdinalParse(e, n) : t[Y] = parseInt(e, 10);
1946
- });
1947
- function Oa(e, t) {
1948
- var s, r, n, a = this._eras || B("en")._eras;
1949
- for (s = 0, r = a.length; s < r; ++s) {
1950
- switch (typeof a[s].since) {
1951
- case "string":
1952
- n = l(a[s].since).startOf("day"), a[s].since = n.valueOf();
1953
- break;
1954
- }
1955
- switch (typeof a[s].until) {
1956
- case "undefined":
1957
- a[s].until = 1 / 0;
1958
- break;
1959
- case "string":
1960
- n = l(a[s].until).startOf("day").valueOf(), a[s].until = n.valueOf();
1961
- break;
1962
- }
1963
- }
1964
- return a;
1965
- }
1966
- function Ta(e, t, s) {
1967
- var r, n, a = this.eras(), i, u, f;
1968
- for (e = e.toUpperCase(), r = 0, n = a.length; r < n; ++r)
1969
- if (i = a[r].name.toUpperCase(), u = a[r].abbr.toUpperCase(), f = a[r].narrow.toUpperCase(), s)
1970
- switch (t) {
1971
- case "N":
1972
- case "NN":
1973
- case "NNN":
1974
- if (u === e)
1975
- return a[r];
1976
- break;
1977
- case "NNNN":
1978
- if (i === e)
1979
- return a[r];
1980
- break;
1981
- case "NNNNN":
1982
- if (f === e)
1983
- return a[r];
1984
- break;
1985
- }
1986
- else if ([i, u, f].indexOf(e) >= 0)
1987
- return a[r];
1988
- }
1989
- function ba(e, t) {
1990
- var s = e.since <= e.until ? 1 : -1;
1991
- return t === void 0 ? l(e.since).year() : l(e.since).year() + (t - e.offset) * s;
1992
- }
1993
- function xa() {
1994
- var e, t, s, r = this.localeData().eras();
1995
- for (e = 0, t = r.length; e < t; ++e)
1996
- if (s = this.clone().startOf("day").valueOf(), r[e].since <= s && s <= r[e].until || r[e].until <= s && s <= r[e].since)
1997
- return r[e].name;
1998
- return "";
1999
- }
2000
- function Wa() {
2001
- var e, t, s, r = this.localeData().eras();
2002
- for (e = 0, t = r.length; e < t; ++e)
2003
- if (s = this.clone().startOf("day").valueOf(), r[e].since <= s && s <= r[e].until || r[e].until <= s && s <= r[e].since)
2004
- return r[e].narrow;
2005
- return "";
2006
- }
2007
- function Na() {
2008
- var e, t, s, r = this.localeData().eras();
2009
- for (e = 0, t = r.length; e < t; ++e)
2010
- if (s = this.clone().startOf("day").valueOf(), r[e].since <= s && s <= r[e].until || r[e].until <= s && s <= r[e].since)
2011
- return r[e].abbr;
2012
- return "";
2013
- }
2014
- function Pa() {
2015
- var e, t, s, r, n = this.localeData().eras();
2016
- for (e = 0, t = n.length; e < t; ++e)
2017
- if (s = n[e].since <= n[e].until ? 1 : -1, r = this.clone().startOf("day").valueOf(), n[e].since <= r && r <= n[e].until || n[e].until <= r && r <= n[e].since)
2018
- return (this.year() - l(n[e].since).year()) * s + n[e].offset;
2019
- return this.year();
2020
- }
2021
- function Ra(e) {
2022
- return w(this, "_erasNameRegex") || pt.call(this), e ? this._erasNameRegex : this._erasRegex;
2023
- }
2024
- function Fa(e) {
2025
- return w(this, "_erasAbbrRegex") || pt.call(this), e ? this._erasAbbrRegex : this._erasRegex;
2026
- }
2027
- function La(e) {
2028
- return w(this, "_erasNarrowRegex") || pt.call(this), e ? this._erasNarrowRegex : this._erasRegex;
2029
- }
2030
- function kt(e, t) {
2031
- return t.erasAbbrRegex(e);
2032
- }
2033
- function Ca(e, t) {
2034
- return t.erasNameRegex(e);
2035
- }
2036
- function Ia(e, t) {
2037
- return t.erasNarrowRegex(e);
2038
- }
2039
- function Ua(e, t) {
2040
- return t._eraYearOrdinalRegex || de;
2041
- }
2042
- function pt() {
2043
- var e = [], t = [], s = [], r = [], n, a, i, u, f, _ = this.eras();
2044
- for (n = 0, a = _.length; n < a; ++n)
2045
- i = $(_[n].name), u = $(_[n].abbr), f = $(_[n].narrow), t.push(i), e.push(u), s.push(f), r.push(i), r.push(u), r.push(f);
2046
- this._erasRegex = new RegExp("^(" + r.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + t.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + e.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp(
2047
- "^(" + s.join("|") + ")",
2048
- "i"
2049
- );
2050
- }
2051
- h(0, ["gg", 2], 0, function() {
2052
- return this.weekYear() % 100;
2053
- });
2054
- h(0, ["GG", 2], 0, function() {
2055
- return this.isoWeekYear() % 100;
2056
- });
2057
- function Ve(e, t) {
2058
- h(0, [e, e.length], 0, t);
2059
- }
2060
- Ve("gggg", "weekYear");
2061
- Ve("ggggg", "weekYear");
2062
- Ve("GGGG", "isoWeekYear");
2063
- Ve("GGGGG", "isoWeekYear");
2064
- d("G", Ue);
2065
- d("g", Ue);
2066
- d("GG", S, b);
2067
- d("gg", S, b);
2068
- d("GGGG", dt, ut);
2069
- d("gggg", dt, ut);
2070
- d("GGGGG", Ie, Le);
2071
- d("ggggg", Ie, Le);
2072
- pe(
2073
- ["gggg", "ggggg", "GGGG", "GGGGG"],
2074
- function(e, t, s, r) {
2075
- t[r.substr(0, 2)] = m(e);
2076
- }
2077
- );
2078
- pe(["gg", "GG"], function(e, t, s, r) {
2079
- t[r] = l.parseTwoDigitYear(e);
2080
- });
2081
- function Ha(e) {
2082
- return Ms.call(
2083
- this,
2084
- e,
2085
- this.week(),
2086
- this.weekday() + this.localeData()._week.dow,
2087
- this.localeData()._week.dow,
2088
- this.localeData()._week.doy
2089
- );
2090
- }
2091
- function Ea(e) {
2092
- return Ms.call(
2093
- this,
2094
- e,
2095
- this.isoWeek(),
2096
- this.isoWeekday(),
2097
- 1,
2098
- 4
2099
- );
2100
- }
2101
- function Aa() {
2102
- return z(this.year(), 1, 4);
2103
- }
2104
- function ja() {
2105
- return z(this.isoWeekYear(), 1, 4);
2106
- }
2107
- function Va() {
2108
- var e = this.localeData()._week;
2109
- return z(this.year(), e.dow, e.doy);
2110
- }
2111
- function Ga() {
2112
- var e = this.localeData()._week;
2113
- return z(this.weekYear(), e.dow, e.doy);
2114
- }
2115
- function Ms(e, t, s, r, n) {
2116
- var a;
2117
- return e == null ? Me(this, r, n).year : (a = z(e, r, n), t > a && (t = a), $a.call(this, e, t, s, r, n));
2118
- }
2119
- function $a(e, t, s, r, n) {
2120
- var a = Qt(e, t, s, r, n), i = we(a.year, 0, a.dayOfYear);
2121
- return this.year(i.getUTCFullYear()), this.month(i.getUTCMonth()), this.date(i.getUTCDate()), this;
2122
- }
2123
- h("Q", 0, "Qo", "quarter");
2124
- d("Q", Et);
2125
- g("Q", function(e, t) {
2126
- t[V] = (m(e) - 1) * 3;
2127
- });
2128
- function za(e) {
2129
- return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + this.month() % 3);
2130
- }
2131
- h("D", ["DD", 2], "Do", "date");
2132
- d("D", S, he);
2133
- d("DD", S, b);
2134
- d("Do", function(e, t) {
2135
- return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient;
2136
- });
2137
- g(["D", "DD"], C);
2138
- g("Do", function(e, t) {
2139
- t[C] = m(e.match(S)[0]);
2140
- });
2141
- var gs = fe("Date", !0);
2142
- h("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
2143
- d("DDD", Ce);
2144
- d("DDDD", At);
2145
- g(["DDD", "DDDD"], function(e, t, s) {
2146
- s._dayOfYear = m(e);
2147
- });
2148
- function Za(e) {
2149
- var t = Math.round(
2150
- (this.clone().startOf("day") - this.clone().startOf("year")) / 864e5
2151
- ) + 1;
2152
- return e == null ? t : this.add(e - t, "d");
2153
- }
2154
- h("m", ["mm", 2], 0, "minute");
2155
- d("m", S, ht);
2156
- d("mm", S, b);
2157
- g(["m", "mm"], P);
2158
- var Ba = fe("Minutes", !1);
2159
- h("s", ["ss", 2], 0, "second");
2160
- d("s", S, ht);
2161
- d("ss", S, b);
2162
- g(["s", "ss"], G);
2163
- var qa = fe("Seconds", !1);
2164
- h("S", 0, 0, function() {
2165
- return ~~(this.millisecond() / 100);
2166
- });
2167
- h(0, ["SS", 2], 0, function() {
2168
- return ~~(this.millisecond() / 10);
2169
- });
2170
- h(0, ["SSS", 3], 0, "millisecond");
2171
- h(0, ["SSSS", 4], 0, function() {
2172
- return this.millisecond() * 10;
2173
- });
2174
- h(0, ["SSSSS", 5], 0, function() {
2175
- return this.millisecond() * 100;
2176
- });
2177
- h(0, ["SSSSSS", 6], 0, function() {
2178
- return this.millisecond() * 1e3;
2179
- });
2180
- h(0, ["SSSSSSS", 7], 0, function() {
2181
- return this.millisecond() * 1e4;
2182
- });
2183
- h(0, ["SSSSSSSS", 8], 0, function() {
2184
- return this.millisecond() * 1e5;
2185
- });
2186
- h(0, ["SSSSSSSSS", 9], 0, function() {
2187
- return this.millisecond() * 1e6;
2188
- });
2189
- d("S", Ce, Et);
2190
- d("SS", Ce, b);
2191
- d("SSS", Ce, At);
2192
- var X, Ds;
2193
- for (X = "SSSS"; X.length <= 9; X += "S")
2194
- d(X, de);
2195
- function Ja(e, t) {
2196
- t[te] = m(("0." + e) * 1e3);
2197
- }
2198
- for (X = "S"; X.length <= 9; X += "S")
2199
- g(X, Ja);
2200
- Ds = fe("Milliseconds", !1);
2201
- h("z", 0, 0, "zoneAbbr");
2202
- h("zz", 0, 0, "zoneName");
2203
- function Qa() {
2204
- return this._isUTC ? "UTC" : "";
2205
- }
2206
- function Xa() {
2207
- return this._isUTC ? "Coordinated Universal Time" : "";
2208
- }
2209
- var o = Se.prototype;
2210
- o.add = Gn;
2211
- o.calendar = Qn;
2212
- o.clone = Xn;
2213
- o.diff = aa;
2214
- o.endOf = _a;
2215
- o.format = ua;
2216
- o.from = da;
2217
- o.fromNow = ha;
2218
- o.to = fa;
2219
- o.toNow = ca;
2220
- o.get = or;
2221
- o.invalidAt = va;
2222
- o.isAfter = Kn;
2223
- o.isBefore = ea;
2224
- o.isBetween = ta;
2225
- o.isSame = sa;
2226
- o.isSameOrAfter = ra;
2227
- o.isSameOrBefore = na;
2228
- o.isValid = ka;
2229
- o.lang = cs;
2230
- o.locale = fs;
2231
- o.localeData = ms;
2232
- o.max = kn;
2233
- o.min = Sn;
2234
- o.parsingFlags = pa;
2235
- o.set = lr;
2236
- o.startOf = ma;
2237
- o.subtract = $n;
2238
- o.toArray = ga;
2239
- o.toObject = Da;
2240
- o.toDate = Ma;
2241
- o.toISOString = oa;
2242
- o.inspect = la;
2243
- typeof Symbol < "u" && Symbol.for != null && (o[Symbol.for("nodejs.util.inspect.custom")] = function() {
2244
- return "Moment<" + this.format() + ">";
2245
- });
2246
- o.toJSON = Sa;
2247
- o.toString = ia;
2248
- o.unix = wa;
2249
- o.valueOf = ya;
2250
- o.creationData = Ya;
2251
- o.eraName = xa;
2252
- o.eraNarrow = Wa;
2253
- o.eraAbbr = Na;
2254
- o.eraYear = Pa;
2255
- o.year = Gt;
2256
- o.isLeapYear = ir;
2257
- o.weekYear = Ha;
2258
- o.isoWeekYear = Ea;
2259
- o.quarter = o.quarters = za;
2260
- o.month = qt;
2261
- o.daysInMonth = wr;
2262
- o.week = o.weeks = Yr;
2263
- o.isoWeek = o.isoWeeks = Or;
2264
- o.weeksInYear = Va;
2265
- o.weeksInWeekYear = Ga;
2266
- o.isoWeeksInYear = Aa;
2267
- o.isoWeeksInISOWeekYear = ja;
2268
- o.date = gs;
2269
- o.day = o.days = Hr;
2270
- o.weekday = Er;
2271
- o.isoWeekday = Ar;
2272
- o.dayOfYear = Za;
2273
- o.hour = o.hours = Br;
2274
- o.minute = o.minutes = Ba;
2275
- o.second = o.seconds = qa;
2276
- o.millisecond = o.milliseconds = Ds;
2277
- o.utcOffset = Nn;
2278
- o.utc = Rn;
2279
- o.local = Fn;
2280
- o.parseZone = Ln;
2281
- o.hasAlignedHourOffset = Cn;
2282
- o.isDST = In;
2283
- o.isLocal = Hn;
2284
- o.isUtcOffset = En;
2285
- o.isUtc = ls;
2286
- o.isUTC = ls;
2287
- o.zoneAbbr = Qa;
2288
- o.zoneName = Xa;
2289
- o.dates = W(
2290
- "dates accessor is deprecated. Use date instead.",
2291
- gs
2292
- );
2293
- o.months = W(
2294
- "months accessor is deprecated. Use month instead",
2295
- qt
2296
- );
2297
- o.years = W(
2298
- "years accessor is deprecated. Use year instead",
2299
- Gt
2300
- );
2301
- o.zone = W(
2302
- "moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
2303
- Pn
2304
- );
2305
- o.isDSTShifted = W(
2306
- "isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
2307
- Un
2308
- );
2309
- function Ka(e) {
2310
- return D(e * 1e3);
2311
- }
2312
- function ei() {
2313
- return D.apply(null, arguments).parseZone();
2314
- }
2315
- function Ss(e) {
2316
- return e;
2317
- }
2318
- var M = it.prototype;
2319
- M.calendar = Us;
2320
- M.longDateFormat = js;
2321
- M.invalidDate = Gs;
2322
- M.ordinal = Zs;
2323
- M.preparse = Ss;
2324
- M.postformat = Ss;
2325
- M.relativeTime = qs;
2326
- M.pastFuture = Js;
2327
- M.set = Cs;
2328
- M.eras = Oa;
2329
- M.erasParse = Ta;
2330
- M.erasConvertYear = ba;
2331
- M.erasAbbrRegex = Fa;
2332
- M.erasNameRegex = Ra;
2333
- M.erasNarrowRegex = La;
2334
- M.months = cr;
2335
- M.monthsShort = mr;
2336
- M.monthsParse = yr;
2337
- M.monthsRegex = gr;
2338
- M.monthsShortRegex = Mr;
2339
- M.week = Sr;
2340
- M.firstDayOfYear = vr;
2341
- M.firstDayOfWeek = pr;
2342
- M.weekdays = Fr;
2343
- M.weekdaysMin = Cr;
2344
- M.weekdaysShort = Lr;
2345
- M.weekdaysParse = Ur;
2346
- M.weekdaysRegex = jr;
2347
- M.weekdaysShortRegex = Vr;
2348
- M.weekdaysMinRegex = Gr;
2349
- M.isPM = zr;
2350
- M.meridiem = qr;
2351
- function Re(e, t, s, r) {
2352
- var n = B(), a = U().set(r, t);
2353
- return n[s](a, e);
2354
- }
2355
- function ks(e, t, s) {
2356
- if (Z(e) && (t = e, e = void 0), e = e || "", t != null)
2357
- return Re(e, t, s, "month");
2358
- var r, n = [];
2359
- for (r = 0; r < 12; r++)
2360
- n[r] = Re(e, r, s, "month");
2361
- return n;
2362
- }
2363
- function vt(e, t, s, r) {
2364
- typeof e == "boolean" ? (Z(t) && (s = t, t = void 0), t = t || "") : (t = e, s = t, e = !1, Z(t) && (s = t, t = void 0), t = t || "");
2365
- var n = B(), a = e ? n._week.dow : 0, i, u = [];
2366
- if (s != null)
2367
- return Re(t, (s + a) % 7, r, "day");
2368
- for (i = 0; i < 7; i++)
2369
- u[i] = Re(t, (i + a) % 7, r, "day");
2370
- return u;
2371
- }
2372
- function ti(e, t) {
2373
- return ks(e, t, "months");
2374
- }
2375
- function si(e, t) {
2376
- return ks(e, t, "monthsShort");
2377
- }
2378
- function ri(e, t, s) {
2379
- return vt(e, t, s, "weekdays");
2380
- }
2381
- function ni(e, t, s) {
2382
- return vt(e, t, s, "weekdaysShort");
2383
- }
2384
- function ai(e, t, s) {
2385
- return vt(e, t, s, "weekdaysMin");
2386
- }
2387
- K("en", {
2388
- eras: [
2389
- {
2390
- since: "0001-01-01",
2391
- until: 1 / 0,
2392
- offset: 1,
2393
- name: "Anno Domini",
2394
- narrow: "AD",
2395
- abbr: "AD"
2396
- },
2397
- {
2398
- since: "0000-12-31",
2399
- until: -1 / 0,
2400
- offset: 1,
2401
- name: "Before Christ",
2402
- narrow: "BC",
2403
- abbr: "BC"
2404
- }
2405
- ],
2406
- dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
2407
- ordinal: function(e) {
2408
- var t = e % 10, s = m(e % 100 / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" : t === 3 ? "rd" : "th";
2409
- return e + s;
2410
- }
2411
- });
2412
- l.lang = W(
2413
- "moment.lang is deprecated. Use moment.locale instead.",
2414
- K
2415
- );
2416
- l.langData = W(
2417
- "moment.langData is deprecated. Use moment.localeData instead.",
2418
- B
2419
- );
2420
- var A = Math.abs;
2421
- function ii() {
2422
- var e = this._data;
2423
- return this._milliseconds = A(this._milliseconds), this._days = A(this._days), this._months = A(this._months), e.milliseconds = A(e.milliseconds), e.seconds = A(e.seconds), e.minutes = A(e.minutes), e.hours = A(e.hours), e.months = A(e.months), e.years = A(e.years), this;
2424
- }
2425
- function ps(e, t, s, r) {
2426
- var n = L(t, s);
2427
- return e._milliseconds += r * n._milliseconds, e._days += r * n._days, e._months += r * n._months, e._bubble();
2428
- }
2429
- function oi(e, t) {
2430
- return ps(this, e, t, 1);
2431
- }
2432
- function li(e, t) {
2433
- return ps(this, e, t, -1);
2434
- }
2435
- function Nt(e) {
2436
- return e < 0 ? Math.floor(e) : Math.ceil(e);
2437
- }
2438
- function ui() {
2439
- var e = this._milliseconds, t = this._days, s = this._months, r = this._data, n, a, i, u, f;
2440
- return e >= 0 && t >= 0 && s >= 0 || e <= 0 && t <= 0 && s <= 0 || (e += Nt(st(s) + t) * 864e5, t = 0, s = 0), r.milliseconds = e % 1e3, n = x(e / 1e3), r.seconds = n % 60, a = x(n / 60), r.minutes = a % 60, i = x(a / 60), r.hours = i % 24, t += x(i / 24), f = x(vs(t)), s += f, t -= Nt(st(f)), u = x(s / 12), s %= 12, r.days = t, r.months = s, r.years = u, this;
2441
- }
2442
- function vs(e) {
2443
- return e * 4800 / 146097;
2444
- }
2445
- function st(e) {
2446
- return e * 146097 / 4800;
2447
- }
2448
- function di(e) {
2449
- if (!this.isValid())
2450
- return NaN;
2451
- var t, s, r = this._milliseconds;
2452
- if (e = N(e), e === "month" || e === "quarter" || e === "year")
2453
- switch (t = this._days + r / 864e5, s = this._months + vs(t), e) {
2454
- case "month":
2455
- return s;
2456
- case "quarter":
2457
- return s / 3;
2458
- case "year":
2459
- return s / 12;
2460
- }
2461
- else
2462
- switch (t = this._days + Math.round(st(this._months)), e) {
2463
- case "week":
2464
- return t / 7 + r / 6048e5;
2465
- case "day":
2466
- return t + r / 864e5;
2467
- case "hour":
2468
- return t * 24 + r / 36e5;
2469
- case "minute":
2470
- return t * 1440 + r / 6e4;
2471
- case "second":
2472
- return t * 86400 + r / 1e3;
2473
- case "millisecond":
2474
- return Math.floor(t * 864e5) + r;
2475
- default:
2476
- throw new Error("Unknown unit " + e);
2477
- }
2478
- }
2479
- function q(e) {
2480
- return function() {
2481
- return this.as(e);
2482
- };
2483
- }
2484
- var Ys = q("ms"), hi = q("s"), fi = q("m"), ci = q("h"), mi = q("d"), _i = q("w"), yi = q("M"), wi = q("Q"), Mi = q("y"), gi = Ys;
2485
- function Di() {
2486
- return L(this);
2487
- }
2488
- function Si(e) {
2489
- return e = N(e), this.isValid() ? this[e + "s"]() : NaN;
2490
- }
2491
- function re(e) {
2492
- return function() {
2493
- return this.isValid() ? this._data[e] : NaN;
2494
- };
2495
- }
2496
- var ki = re("milliseconds"), pi = re("seconds"), vi = re("minutes"), Yi = re("hours"), Oi = re("days"), Ti = re("months"), bi = re("years");
2497
- function xi() {
2498
- return x(this.days() / 7);
2499
- }
2500
- var j = Math.round, ie = {
2501
- ss: 44,
2502
- // a few seconds to seconds
2503
- s: 45,
2504
- // seconds to minute
2505
- m: 45,
2506
- // minutes to hour
2507
- h: 22,
2508
- // hours to day
2509
- d: 26,
2510
- // days to month/week
2511
- w: null,
2512
- // weeks to month
2513
- M: 11
2514
- // months to year
2515
- };
2516
- function Wi(e, t, s, r, n) {
2517
- return n.relativeTime(t || 1, !!s, e, r);
2518
- }
2519
- function Ni(e, t, s, r) {
2520
- var n = L(e).abs(), a = j(n.as("s")), i = j(n.as("m")), u = j(n.as("h")), f = j(n.as("d")), _ = j(n.as("M")), O = j(n.as("w")), E = j(n.as("y")), J = a <= s.ss && ["s", a] || a < s.s && ["ss", a] || i <= 1 && ["m"] || i < s.m && ["mm", i] || u <= 1 && ["h"] || u < s.h && ["hh", u] || f <= 1 && ["d"] || f < s.d && ["dd", f];
2521
- return s.w != null && (J = J || O <= 1 && ["w"] || O < s.w && ["ww", O]), J = J || _ <= 1 && ["M"] || _ < s.M && ["MM", _] || E <= 1 && ["y"] || ["yy", E], J[2] = t, J[3] = +e > 0, J[4] = r, Wi.apply(null, J);
2522
- }
2523
- function Pi(e) {
2524
- return e === void 0 ? j : typeof e == "function" ? (j = e, !0) : !1;
2525
- }
2526
- function Ri(e, t) {
2527
- return ie[e] === void 0 ? !1 : t === void 0 ? ie[e] : (ie[e] = t, e === "s" && (ie.ss = t - 1), !0);
2528
- }
2529
- function Fi(e, t) {
2530
- if (!this.isValid())
2531
- return this.localeData().invalidDate();
2532
- var s = !1, r = ie, n, a;
2533
- return typeof e == "object" && (t = e, e = !1), typeof e == "boolean" && (s = e), typeof t == "object" && (r = Object.assign({}, ie, t), t.s != null && t.ss == null && (r.ss = t.s - 1)), n = this.localeData(), a = Ni(this, !s, r, n), s && (a = n.pastFuture(+this, a)), n.postformat(a);
2534
- }
2535
- var Be = Math.abs;
2536
- function ne(e) {
2537
- return (e > 0) - (e < 0) || +e;
2538
- }
2539
- function Ge() {
2540
- if (!this.isValid())
2541
- return this.localeData().invalidDate();
2542
- var e = Be(this._milliseconds) / 1e3, t = Be(this._days), s = Be(this._months), r, n, a, i, u = this.asSeconds(), f, _, O, E;
2543
- return u ? (r = x(e / 60), n = x(r / 60), e %= 60, r %= 60, a = x(s / 12), s %= 12, i = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", f = u < 0 ? "-" : "", _ = ne(this._months) !== ne(u) ? "-" : "", O = ne(this._days) !== ne(u) ? "-" : "", E = ne(this._milliseconds) !== ne(u) ? "-" : "", f + "P" + (a ? _ + a + "Y" : "") + (s ? _ + s + "M" : "") + (t ? O + t + "D" : "") + (n || r || e ? "T" : "") + (n ? E + n + "H" : "") + (r ? E + r + "M" : "") + (e ? E + i + "S" : "")) : "P0D";
2544
- }
2545
- var y = je.prototype;
2546
- y.isValid = Tn;
2547
- y.abs = ii;
2548
- y.add = oi;
2549
- y.subtract = li;
2550
- y.as = di;
2551
- y.asMilliseconds = Ys;
2552
- y.asSeconds = hi;
2553
- y.asMinutes = fi;
2554
- y.asHours = ci;
2555
- y.asDays = mi;
2556
- y.asWeeks = _i;
2557
- y.asMonths = yi;
2558
- y.asQuarters = wi;
2559
- y.asYears = Mi;
2560
- y.valueOf = gi;
2561
- y._bubble = ui;
2562
- y.clone = Di;
2563
- y.get = Si;
2564
- y.milliseconds = ki;
2565
- y.seconds = pi;
2566
- y.minutes = vi;
2567
- y.hours = Yi;
2568
- y.days = Oi;
2569
- y.weeks = xi;
2570
- y.months = Ti;
2571
- y.years = bi;
2572
- y.humanize = Fi;
2573
- y.toISOString = Ge;
2574
- y.toString = Ge;
2575
- y.toJSON = Ge;
2576
- y.locale = fs;
2577
- y.localeData = ms;
2578
- y.toIsoString = W(
2579
- "toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
2580
- Ge
2581
- );
2582
- y.lang = cs;
2583
- h("X", 0, 0, "unix");
2584
- h("x", 0, 0, "valueOf");
2585
- d("x", Ue);
2586
- d("X", er);
2587
- g("X", function(e, t, s) {
2588
- s._d = new Date(parseFloat(e) * 1e3);
2589
- });
2590
- g("x", function(e, t, s) {
2591
- s._d = new Date(m(e));
2592
- });
2593
- //! moment.js
2594
- l.version = "2.30.1";
2595
- Fs(D);
2596
- l.fn = o;
2597
- l.min = pn;
2598
- l.max = vn;
2599
- l.now = Yn;
2600
- l.utc = U;
2601
- l.unix = Ka;
2602
- l.months = ti;
2603
- l.isDate = De;
2604
- l.locale = K;
2605
- l.invalid = Fe;
2606
- l.duration = L;
2607
- l.isMoment = F;
2608
- l.weekdays = ri;
2609
- l.parseZone = ei;
2610
- l.localeData = B;
2611
- l.isDuration = Te;
2612
- l.monthsShort = si;
2613
- l.weekdaysMin = ai;
2614
- l.defineLocale = yt;
2615
- l.updateLocale = Kr;
2616
- l.locales = en;
2617
- l.weekdaysShort = ni;
2618
- l.normalizeUnits = N;
2619
- l.relativeTimeRounding = Pi;
2620
- l.relativeTimeThreshold = Ri;
2621
- l.calendarFormat = Jn;
2622
- l.prototype = o;
2623
- l.HTML5_FMT = {
2624
- DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
2625
- // <input type="datetime-local" />
2626
- DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
2627
- // <input type="datetime-local" step="1" />
2628
- DATETIME_LOCAL_MS: "YYYY-MM-DDTHH:mm:ss.SSS",
2629
- // <input type="datetime-local" step="0.001" />
2630
- DATE: "YYYY-MM-DD",
2631
- // <input type="date" />
2632
- TIME: "HH:mm",
2633
- // <input type="time" />
2634
- TIME_SECONDS: "HH:mm:ss",
2635
- // <input type="time" step="1" />
2636
- TIME_MS: "HH:mm:ss.SSS",
2637
- // <input type="time" step="0.001" />
2638
- WEEK: "GGGG-[W]WW",
2639
- // <input type="week" />
2640
- MONTH: "YYYY-MM"
2641
- // <input type="month" />
2642
- };
2643
- const Li = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, Ci = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i, Pt = /(janv\.?|févr\.?|avr\.?|juil\.?|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, qe = [
68
+ ) : !1, y = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, Y = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i, d = /(janv\.?|févr\.?|avr\.?|juil\.?|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, c = [
2644
69
  /^janv/i,
2645
70
  /^févr/i,
2646
71
  /^mars/i,
@@ -2653,18 +78,18 @@ const Li = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octob
2653
78
  /^oct/i,
2654
79
  /^nov/i,
2655
80
  /^déc/i
2656
- ], Ii = {
81
+ ], S = {
2657
82
  months: "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split(
2658
83
  "_"
2659
84
  ),
2660
85
  monthsShort: "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),
2661
- monthsRegex: Pt,
2662
- monthsShortRegex: Pt,
2663
- monthsStrictRegex: Li,
2664
- monthsShortStrictRegex: Ci,
2665
- monthsParse: qe,
2666
- longMonthsParse: qe,
2667
- shortMonthsParse: qe,
86
+ monthsRegex: d,
87
+ monthsShortRegex: d,
88
+ monthsStrictRegex: y,
89
+ monthsShortStrictRegex: Y,
90
+ monthsParse: c,
91
+ longMonthsParse: c,
92
+ shortMonthsParse: c,
2668
93
  weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),
2669
94
  weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"),
2670
95
  weekdaysMin: "di_lu_ma_me_je_ve_sa".split("_"),
@@ -2724,127 +149,127 @@ const Li = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octob
2724
149
  doy: 4
2725
150
  }
2726
151
  };
2727
- l.locale("fr", Ii);
2728
- const _o = (e) => new Date(e).toString() !== "Invalid Date", yo = (e, t) => Math.abs(
152
+ u.locale("fr", S);
153
+ const re = (e) => new Date(e).toString() !== "Invalid Date", ne = (e, t) => Math.abs(
2729
154
  Math.ceil((t.getTime() - e.getTime()) / (1e3 * 60 * 60 * 24))
2730
- ), wo = (e) => Ft(l(e).format("DD MMMM YYYY")), Mo = (e) => Ft(l(e).format("dddd DD MMMM YYYY")), go = (e, t, s = !0) => (s ? e.getFullYear() === t.getFullYear() : !0) && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Do = () => l().locale("fr").subtract(1, "days").toDate(), So = (e) => /* @__PURE__ */ new Date() > e, ko = (e = /* @__PURE__ */ new Date(), t = 1) => {
2731
- const s = t * 60 * 1e3;
2732
- return new Date(Math.round(e.getTime() / s) * s);
2733
- }, po = (e) => {
2734
- const t = [], s = l.duration(e);
2735
- if (!(!s || s.toISOString() === "P0D")) {
2736
- if (s.years() >= 1) {
2737
- const r = Math.floor(s.years());
2738
- t.push(r + " " + (r > 1 ? "années" : "année"));
155
+ ), se = (e) => f(u(e).format("DD MMMM YYYY")), oe = (e) => f(u(e).format("dddd DD MMMM YYYY")), ie = (e, t, r = !0) => (r ? e.getFullYear() === t.getFullYear() : !0) && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), ae = () => u().locale("fr").subtract(1, "days").toDate(), ue = (e) => /* @__PURE__ */ new Date() > e, ce = (e = /* @__PURE__ */ new Date(), t = 1) => {
156
+ const r = t * 60 * 1e3;
157
+ return new Date(Math.round(e.getTime() / r) * r);
158
+ }, le = (e) => {
159
+ const t = [], r = u.duration(e);
160
+ if (!(!r || r.toISOString() === "P0D")) {
161
+ if (r.years() >= 1) {
162
+ const n = Math.floor(r.years());
163
+ t.push(n + " " + (n > 1 ? "années" : "année"));
2739
164
  }
2740
- if (s.months() >= 1) {
2741
- const r = Math.floor(s.months());
2742
- t.push(r + " mois");
165
+ if (r.months() >= 1) {
166
+ const n = Math.floor(r.months());
167
+ t.push(n + " mois");
2743
168
  }
2744
- if (s.days() >= 1) {
2745
- const r = Math.floor(s.days());
2746
- t.push(r + " " + (r > 1 ? "jours" : "jour"));
169
+ if (r.days() >= 1) {
170
+ const n = Math.floor(r.days());
171
+ t.push(n + " " + (n > 1 ? "jours" : "jour"));
2747
172
  }
2748
- if (s.hours() >= 1) {
2749
- const r = Math.floor(s.hours());
2750
- t.push(r + " " + (r > 1 ? "heures" : "heure"));
173
+ if (r.hours() >= 1) {
174
+ const n = Math.floor(r.hours());
175
+ t.push(n + " " + (n > 1 ? "heures" : "heure"));
2751
176
  }
2752
- if (s.minutes() >= 1) {
2753
- const r = Math.floor(s.minutes());
2754
- t.push(r + " " + (r > 1 ? "minutes" : "minute"));
177
+ if (r.minutes() >= 1) {
178
+ const n = Math.floor(r.minutes());
179
+ t.push(n + " " + (n > 1 ? "minutes" : "minute"));
2755
180
  }
2756
- if (s.seconds() >= 1) {
2757
- const r = Math.floor(s.seconds());
2758
- t.push(r + " " + (r > 1 ? "secondes" : "seconde"));
181
+ if (r.seconds() >= 1) {
182
+ const n = Math.floor(r.seconds());
183
+ t.push(n + " " + (n > 1 ? "secondes" : "seconde"));
2759
184
  }
2760
185
  return t.join(", ");
2761
186
  }
2762
- }, Yt = /^([1-9][0-9]?)([hmd])$/i, vo = (e) => !!e && Yt.test(e), Yo = (e) => {
2763
- const t = Yt.exec(e);
187
+ }, l = /^([1-9][0-9]?)([hmd])$/i, de = (e) => !!e && l.test(e), me = (e) => {
188
+ const t = l.exec(e);
2764
189
  if (!t)
2765
190
  return null;
2766
- const [, s, r] = t, n = parseInt(s, 10), a = 1e3 * 60;
2767
- if (r === "m") return a * n;
2768
- if (r === "h") return a * 60 * n;
2769
- if (r === "d") return a * 60 * 24 * n;
2770
- }, Oo = (e) => {
2771
- const t = Yt.exec(e);
191
+ const [, r, n] = t, s = parseInt(r, 10), o = 1e3 * 60;
192
+ if (n === "m") return o * s;
193
+ if (n === "h") return o * 60 * s;
194
+ if (n === "d") return o * 60 * 24 * s;
195
+ }, fe = (e) => {
196
+ const t = l.exec(e);
2772
197
  if (!t)
2773
198
  return null;
2774
- const [, s, r] = t, n = parseInt(s, 10);
2775
- if (r === "m") return `${n} minute${n > 1 ? "s" : ""}`;
2776
- if (r === "h") return `${n} heure${n > 1 ? "s" : ""}`;
2777
- if (r === "d") return `${n} jour${n > 1 ? "s" : ""}`;
2778
- }, To = (e) => typeof e == "function", bo = (e, t, s) => {
2779
- const r = { ...e }, n = Object.entries(e);
2780
- for (const [a, i] of n) {
2781
- const u = t[a];
2782
- u ? r[a] = s(i, u) : r[a] = i;
199
+ const [, r, n] = t, s = parseInt(r, 10);
200
+ if (n === "m") return `${s} minute${s > 1 ? "s" : ""}`;
201
+ if (n === "h") return `${s} heure${s > 1 ? "s" : ""}`;
202
+ if (n === "d") return `${s} jour${s > 1 ? "s" : ""}`;
203
+ }, he = (e) => typeof e == "function", pe = (e, t, r) => {
204
+ const n = { ...e }, s = Object.entries(e);
205
+ for (const [o, i] of s) {
206
+ const a = t[o];
207
+ a ? n[o] = r(i, a) : n[o] = i;
2783
208
  }
2784
- return r;
2785
- }, xo = (e) => e instanceof Object, Wo = (e, t) => t.reduce(
2786
- (s, r) => ({
2787
- ...s,
2788
- [r]: e[r]
209
+ return n;
210
+ }, Me = (e) => e instanceof Object, _e = (e, t) => t.reduce(
211
+ (r, n) => ({
212
+ ...r,
213
+ [n]: e[n]
2789
214
  }),
2790
215
  {}
2791
- ), No = (e) => Object.entries(e);
216
+ ), ge = (e) => Object.entries(e);
2792
217
  export {
2793
- xs as TIGHT_SPACE,
2794
- Ws as WIDE_SPACE,
2795
- ro as arrayToRecord,
2796
- ho as breakWords,
2797
- Rs as camelcase,
2798
- Ns as capitalize,
2799
- Ft as capitalizeAllWords,
2800
- Ei as clamp,
2801
- yo as dateDiff,
2802
- Yo as durationToMs,
2803
- io as ellipsis,
2804
- Zi as exclude,
2805
- no as fillWithTightSpaces,
2806
- ao as fillWithWideSpaces,
2807
- Wo as filterKeys,
2808
- Qi as filterNullAndUndefined,
2809
- wo as formatDate,
2810
- Mo as formatDateWithDay,
2811
- Oo as formatDuration,
2812
- Ui as formatNumber,
2813
- Vi as groupBy,
2814
- Gi as groupByOccurrence,
2815
- So as hasExpire,
2816
- eo as includeArrayIf,
2817
- Ki as includeBeginIf,
2818
- Xi as includeIf,
2819
- Ts as insertArrayIf,
2820
- Rt as insertIf,
2821
- co as isDefined,
2822
- vo as isDuration,
2823
- To as isFunction,
2824
- mo as isJSON,
2825
- Ai as isNumber,
2826
- xo as isObject,
2827
- oo as isPositiveInteger,
2828
- Ps as isString,
2829
- _o as isValidDate,
2830
- bo as mergeObjects,
2831
- zi as mutuallyInclusive,
2832
- lo as numberToOrdinal,
2833
- ji as paginate,
2834
- fo as pascalCase,
2835
- bs as pickFrom,
2836
- to as pickFromNth,
2837
- po as precise,
2838
- Os as randomBetween,
2839
- so as range,
2840
- No as recordToArray,
2841
- ko as roundDate,
2842
- go as sameDay,
2843
- Hi as seededRandom,
2844
- Ji as shuffle,
2845
- $i as sortBy,
2846
- uo as trim,
2847
- Bi as unique,
2848
- qi as uniquePreserve,
2849
- Do as yesterday
218
+ _ as TIGHT_SPACE,
219
+ g as WIDE_SPACE,
220
+ U as arrayToRecord,
221
+ X as breakWords,
222
+ v as camelcase,
223
+ j as capitalize,
224
+ f as capitalizeAllWords,
225
+ I as clamp,
226
+ ne as dateDiff,
227
+ me as durationToMs,
228
+ J as ellipsis,
229
+ C as exclude,
230
+ G as fillWithTightSpaces,
231
+ k as fillWithWideSpaces,
232
+ _e as filterKeys,
233
+ B as filterNullAndUndefined,
234
+ se as formatDate,
235
+ oe as formatDateWithDay,
236
+ fe as formatDuration,
237
+ w as formatNumber,
238
+ E as groupBy,
239
+ $ as groupByOccurrence,
240
+ ue as hasExpire,
241
+ N as includeArrayIf,
242
+ F as includeBeginIf,
243
+ R as includeIf,
244
+ p as insertArrayIf,
245
+ m as insertIf,
246
+ ee as isDefined,
247
+ de as isDuration,
248
+ he as isFunction,
249
+ te as isJSON,
250
+ T as isNumber,
251
+ Me as isObject,
252
+ K as isPositiveInteger,
253
+ D as isString,
254
+ re as isValidDate,
255
+ pe as mergeObjects,
256
+ A as mutuallyInclusive,
257
+ Q as numberToOrdinal,
258
+ x as paginate,
259
+ Z as pascalCase,
260
+ M as pickFrom,
261
+ z as pickFromNth,
262
+ le as precise,
263
+ h as randomBetween,
264
+ q as range,
265
+ ge as recordToArray,
266
+ ce as roundDate,
267
+ ie as sameDay,
268
+ L as seededRandom,
269
+ W as shuffle,
270
+ O as sortBy,
271
+ V as trim,
272
+ P as unique,
273
+ H as uniquePreserve,
274
+ ae as yesterday
2850
275
  };