@opfr/utils-type 0.10.1 → 0.11.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 +1487 -1581
- package/dist/index.umd.js +5 -5
- package/package.json +5 -5
package/dist/index.es.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
var
|
|
2
|
-
const
|
|
3
|
-
BASIC: { color: "#fff", strength: 0, id:
|
|
4
|
-
COMMON: { color: "#813D31", strength: 1, id:
|
|
5
|
-
RARE: { color: "#5B6870", strength: 2, id:
|
|
6
|
-
EPIC: { color: "#C46619", strength: 3, id:
|
|
7
|
-
LEGENDARY: { color: "#88A3CB", strength: 4, id:
|
|
8
|
-
MYTHIC: { color: "#F6bF62", strength: 5, id:
|
|
9
|
-
},
|
|
1
|
+
var pe = /* @__PURE__ */ ((e) => (e.BASIC = "BASIC", e.COMMON = "COMMON", e.RARE = "RARE", e.EPIC = "EPIC", e.LEGENDARY = "LEGENDARY", e.MYTHIC = "MYTHIC", e))(pe || {});
|
|
2
|
+
const au = {
|
|
3
|
+
BASIC: { color: "#fff", strength: 0, id: pe.BASIC },
|
|
4
|
+
COMMON: { color: "#813D31", strength: 1, id: pe.COMMON },
|
|
5
|
+
RARE: { color: "#5B6870", strength: 2, id: pe.RARE },
|
|
6
|
+
EPIC: { color: "#C46619", strength: 3, id: pe.EPIC },
|
|
7
|
+
LEGENDARY: { color: "#88A3CB", strength: 4, id: pe.LEGENDARY },
|
|
8
|
+
MYTHIC: { color: "#F6bF62", strength: 5, id: pe.MYTHIC }
|
|
9
|
+
}, ou = [
|
|
10
10
|
"vitality",
|
|
11
11
|
"strength",
|
|
12
12
|
"agility",
|
|
13
13
|
"intelligence",
|
|
14
14
|
"chance",
|
|
15
15
|
"wisdom"
|
|
16
|
-
],
|
|
16
|
+
], uu = 10, Ns = 1, lu = [
|
|
17
17
|
[200, 4],
|
|
18
18
|
[100, 3],
|
|
19
19
|
[50, 2],
|
|
20
|
-
[0,
|
|
21
|
-
],
|
|
20
|
+
[0, Ns]
|
|
21
|
+
], du = 100, hu = 10, cu = {
|
|
22
22
|
pirate: {
|
|
23
23
|
name: "pirate",
|
|
24
24
|
color: "#8A1623",
|
|
@@ -39,7 +39,115 @@ const nu = {
|
|
|
39
39
|
color: "#fff",
|
|
40
40
|
role: "1147953458507423874"
|
|
41
41
|
}
|
|
42
|
-
},
|
|
42
|
+
}, fu = "citizen", gu = ["category", "alpha", "quantity"], mu = (e, t) => t === null ? null : e === t ? `-${e}` : t, _ = (e) => typeof e == "string", Fe = () => {
|
|
43
|
+
let e, t;
|
|
44
|
+
const n = new Promise((s, i) => {
|
|
45
|
+
e = s, t = i;
|
|
46
|
+
});
|
|
47
|
+
return n.resolve = e, n.reject = t, n;
|
|
48
|
+
}, mn = (e) => e == null ? "" : "" + e, Cs = (e, t, n) => {
|
|
49
|
+
e.forEach((s) => {
|
|
50
|
+
t[s] && (n[s] = t[s]);
|
|
51
|
+
});
|
|
52
|
+
}, Ls = /###/g, pn = (e) => e && e.indexOf("###") > -1 ? e.replace(Ls, ".") : e, yn = (e) => !e || _(e), je = (e, t, n) => {
|
|
53
|
+
const s = _(t) ? t.split(".") : t;
|
|
54
|
+
let i = 0;
|
|
55
|
+
for (; i < s.length - 1; ) {
|
|
56
|
+
if (yn(e)) return {};
|
|
57
|
+
const r = pn(s[i]);
|
|
58
|
+
!e[r] && n && (e[r] = new n()), Object.prototype.hasOwnProperty.call(e, r) ? e = e[r] : e = {}, ++i;
|
|
59
|
+
}
|
|
60
|
+
return yn(e) ? {} : {
|
|
61
|
+
obj: e,
|
|
62
|
+
k: pn(s[i])
|
|
63
|
+
};
|
|
64
|
+
}, _n = (e, t, n) => {
|
|
65
|
+
const {
|
|
66
|
+
obj: s,
|
|
67
|
+
k: i
|
|
68
|
+
} = je(e, t, Object);
|
|
69
|
+
if (s !== void 0 || t.length === 1) {
|
|
70
|
+
s[i] = n;
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
let r = t[t.length - 1], a = t.slice(0, t.length - 1), o = je(e, a, Object);
|
|
74
|
+
for (; o.obj === void 0 && a.length; )
|
|
75
|
+
r = `${a[a.length - 1]}.${r}`, a = a.slice(0, a.length - 1), o = je(e, a, Object), o && o.obj && typeof o.obj[`${o.k}.${r}`] < "u" && (o.obj = void 0);
|
|
76
|
+
o.obj[`${o.k}.${r}`] = n;
|
|
77
|
+
}, Rs = (e, t, n, s) => {
|
|
78
|
+
const {
|
|
79
|
+
obj: i,
|
|
80
|
+
k: r
|
|
81
|
+
} = je(e, t, Object);
|
|
82
|
+
i[r] = i[r] || [], i[r].push(n);
|
|
83
|
+
}, it = (e, t) => {
|
|
84
|
+
const {
|
|
85
|
+
obj: n,
|
|
86
|
+
k: s
|
|
87
|
+
} = je(e, t);
|
|
88
|
+
if (n)
|
|
89
|
+
return n[s];
|
|
90
|
+
}, Ps = (e, t, n) => {
|
|
91
|
+
const s = it(e, n);
|
|
92
|
+
return s !== void 0 ? s : it(t, n);
|
|
93
|
+
}, Pn = (e, t, n) => {
|
|
94
|
+
for (const s in t)
|
|
95
|
+
s !== "__proto__" && s !== "constructor" && (s in e ? _(e[s]) || e[s] instanceof String || _(t[s]) || t[s] instanceof String ? n && (e[s] = t[s]) : Pn(e[s], t[s], n) : e[s] = t[s]);
|
|
96
|
+
return e;
|
|
97
|
+
}, we = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
98
|
+
var Ts = {
|
|
99
|
+
"&": "&",
|
|
100
|
+
"<": "<",
|
|
101
|
+
">": ">",
|
|
102
|
+
'"': """,
|
|
103
|
+
"'": "'",
|
|
104
|
+
"/": "/"
|
|
105
|
+
};
|
|
106
|
+
const Es = (e) => _(e) ? e.replace(/[&<>"'\/]/g, (t) => Ts[t]) : e;
|
|
107
|
+
class Fs {
|
|
108
|
+
constructor(t) {
|
|
109
|
+
this.capacity = t, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
110
|
+
}
|
|
111
|
+
getRegExp(t) {
|
|
112
|
+
const n = this.regExpMap.get(t);
|
|
113
|
+
if (n !== void 0)
|
|
114
|
+
return n;
|
|
115
|
+
const s = new RegExp(t);
|
|
116
|
+
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(t, s), this.regExpQueue.push(t), s;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
const As = [" ", ",", "?", "!", ";"], Is = new Fs(20), js = (e, t, n) => {
|
|
120
|
+
t = t || "", n = n || "";
|
|
121
|
+
const s = As.filter((a) => t.indexOf(a) < 0 && n.indexOf(a) < 0);
|
|
122
|
+
if (s.length === 0) return !0;
|
|
123
|
+
const i = Is.getRegExp(`(${s.map((a) => a === "?" ? "\\?" : a).join("|")})`);
|
|
124
|
+
let r = !i.test(e);
|
|
125
|
+
if (!r) {
|
|
126
|
+
const a = e.indexOf(n);
|
|
127
|
+
a > 0 && !i.test(e.substring(0, a)) && (r = !0);
|
|
128
|
+
}
|
|
129
|
+
return r;
|
|
130
|
+
}, Et = function(e, t) {
|
|
131
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
|
132
|
+
if (!e) return;
|
|
133
|
+
if (e[t]) return e[t];
|
|
134
|
+
const s = t.split(n);
|
|
135
|
+
let i = e;
|
|
136
|
+
for (let r = 0; r < s.length; ) {
|
|
137
|
+
if (!i || typeof i != "object")
|
|
138
|
+
return;
|
|
139
|
+
let a, o = "";
|
|
140
|
+
for (let u = r; u < s.length; ++u)
|
|
141
|
+
if (u !== r && (o += n), o += s[u], a = i[o], a !== void 0) {
|
|
142
|
+
if (["string", "number", "boolean"].indexOf(typeof a) > -1 && u < s.length - 1)
|
|
143
|
+
continue;
|
|
144
|
+
r += u - r + 1;
|
|
145
|
+
break;
|
|
146
|
+
}
|
|
147
|
+
i = a;
|
|
148
|
+
}
|
|
149
|
+
return i;
|
|
150
|
+
}, rt = (e) => e && e.replace("_", "-"), Us = {
|
|
43
151
|
type: "logger",
|
|
44
152
|
log(e) {
|
|
45
153
|
this.output("log", e);
|
|
@@ -54,14 +162,14 @@ const nu = {
|
|
|
54
162
|
console && console[e] && console[e].apply(console, t);
|
|
55
163
|
}
|
|
56
164
|
};
|
|
57
|
-
class
|
|
165
|
+
class at {
|
|
58
166
|
constructor(t) {
|
|
59
167
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
60
168
|
this.init(t, n);
|
|
61
169
|
}
|
|
62
170
|
init(t) {
|
|
63
171
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
64
|
-
this.prefix = n.prefix || "i18next:", this.logger = t ||
|
|
172
|
+
this.prefix = n.prefix || "i18next:", this.logger = t || Us, this.options = n, this.debug = n.debug;
|
|
65
173
|
}
|
|
66
174
|
log() {
|
|
67
175
|
for (var t = arguments.length, n = new Array(t), s = 0; s < t; s++)
|
|
@@ -84,20 +192,20 @@ class st {
|
|
|
84
192
|
return this.forward(n, "warn", "WARNING DEPRECATED: ", !0);
|
|
85
193
|
}
|
|
86
194
|
forward(t, n, s, i) {
|
|
87
|
-
return i && !this.debug ? null : (
|
|
195
|
+
return i && !this.debug ? null : (_(t[0]) && (t[0] = `${s}${this.prefix} ${t[0]}`), this.logger[n](t));
|
|
88
196
|
}
|
|
89
197
|
create(t) {
|
|
90
|
-
return new
|
|
198
|
+
return new at(this.logger, {
|
|
91
199
|
prefix: `${this.prefix}:${t}:`,
|
|
92
200
|
...this.options
|
|
93
201
|
});
|
|
94
202
|
}
|
|
95
203
|
clone(t) {
|
|
96
|
-
return t = t || this.options, t.prefix = t.prefix || this.prefix, new
|
|
204
|
+
return t = t || this.options, t.prefix = t.prefix || this.prefix, new at(this.logger, t);
|
|
97
205
|
}
|
|
98
206
|
}
|
|
99
|
-
var
|
|
100
|
-
class
|
|
207
|
+
var Q = new at();
|
|
208
|
+
class ft {
|
|
101
209
|
constructor() {
|
|
102
210
|
this.observers = {};
|
|
103
211
|
}
|
|
@@ -131,147 +239,7 @@ class ct {
|
|
|
131
239
|
});
|
|
132
240
|
}
|
|
133
241
|
}
|
|
134
|
-
|
|
135
|
-
let e, t;
|
|
136
|
-
const n = new Promise((s, i) => {
|
|
137
|
-
e = s, t = i;
|
|
138
|
-
});
|
|
139
|
-
return n.resolve = e, n.reject = t, n;
|
|
140
|
-
}
|
|
141
|
-
function fn(e) {
|
|
142
|
-
return e == null ? "" : "" + e;
|
|
143
|
-
}
|
|
144
|
-
function Ds(e, t, n) {
|
|
145
|
-
e.forEach((s) => {
|
|
146
|
-
t[s] && (n[s] = t[s]);
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
const Ys = /###/g;
|
|
150
|
-
function Ae(e, t, n) {
|
|
151
|
-
function s(o) {
|
|
152
|
-
return o && o.indexOf("###") > -1 ? o.replace(Ys, ".") : o;
|
|
153
|
-
}
|
|
154
|
-
function i() {
|
|
155
|
-
return !e || typeof e == "string";
|
|
156
|
-
}
|
|
157
|
-
const r = typeof t != "string" ? t : t.split(".");
|
|
158
|
-
let a = 0;
|
|
159
|
-
for (; a < r.length - 1; ) {
|
|
160
|
-
if (i())
|
|
161
|
-
return {};
|
|
162
|
-
const o = s(r[a]);
|
|
163
|
-
!e[o] && n && (e[o] = new n()), Object.prototype.hasOwnProperty.call(e, o) ? e = e[o] : e = {}, ++a;
|
|
164
|
-
}
|
|
165
|
-
return i() ? {} : {
|
|
166
|
-
obj: e,
|
|
167
|
-
k: s(r[a])
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
function gn(e, t, n) {
|
|
171
|
-
const {
|
|
172
|
-
obj: s,
|
|
173
|
-
k: i
|
|
174
|
-
} = Ae(e, t, Object);
|
|
175
|
-
if (s !== void 0 || t.length === 1) {
|
|
176
|
-
s[i] = n;
|
|
177
|
-
return;
|
|
178
|
-
}
|
|
179
|
-
let r = t[t.length - 1], a = t.slice(0, t.length - 1), o = Ae(e, a, Object);
|
|
180
|
-
for (; o.obj === void 0 && a.length; )
|
|
181
|
-
r = `${a[a.length - 1]}.${r}`, a = a.slice(0, a.length - 1), o = Ae(e, a, Object), o && o.obj && typeof o.obj[`${o.k}.${r}`] < "u" && (o.obj = void 0);
|
|
182
|
-
o.obj[`${o.k}.${r}`] = n;
|
|
183
|
-
}
|
|
184
|
-
function Ns(e, t, n, s) {
|
|
185
|
-
const {
|
|
186
|
-
obj: i,
|
|
187
|
-
k: r
|
|
188
|
-
} = Ae(e, t, Object);
|
|
189
|
-
i[r] = i[r] || [], i[r].push(n);
|
|
190
|
-
}
|
|
191
|
-
function it(e, t) {
|
|
192
|
-
const {
|
|
193
|
-
obj: n,
|
|
194
|
-
k: s
|
|
195
|
-
} = Ae(e, t);
|
|
196
|
-
if (n)
|
|
197
|
-
return n[s];
|
|
198
|
-
}
|
|
199
|
-
function Cs(e, t, n) {
|
|
200
|
-
const s = it(e, n);
|
|
201
|
-
return s !== void 0 ? s : it(t, n);
|
|
202
|
-
}
|
|
203
|
-
function Nn(e, t, n) {
|
|
204
|
-
for (const s in t)
|
|
205
|
-
s !== "__proto__" && s !== "constructor" && (s in e ? typeof e[s] == "string" || e[s] instanceof String || typeof t[s] == "string" || t[s] instanceof String ? n && (e[s] = t[s]) : Nn(e[s], t[s], n) : e[s] = t[s]);
|
|
206
|
-
return e;
|
|
207
|
-
}
|
|
208
|
-
function ve(e) {
|
|
209
|
-
return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
210
|
-
}
|
|
211
|
-
var Ls = {
|
|
212
|
-
"&": "&",
|
|
213
|
-
"<": "<",
|
|
214
|
-
">": ">",
|
|
215
|
-
'"': """,
|
|
216
|
-
"'": "'",
|
|
217
|
-
"/": "/"
|
|
218
|
-
};
|
|
219
|
-
function Rs(e) {
|
|
220
|
-
return typeof e == "string" ? e.replace(/[&<>"'\/]/g, (t) => Ls[t]) : e;
|
|
221
|
-
}
|
|
222
|
-
class Ps {
|
|
223
|
-
constructor(t) {
|
|
224
|
-
this.capacity = t, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
225
|
-
}
|
|
226
|
-
getRegExp(t) {
|
|
227
|
-
const n = this.regExpMap.get(t);
|
|
228
|
-
if (n !== void 0)
|
|
229
|
-
return n;
|
|
230
|
-
const s = new RegExp(t);
|
|
231
|
-
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(t, s), this.regExpQueue.push(t), s;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
const Ts = [" ", ",", "?", "!", ";"], Es = new Ps(20);
|
|
235
|
-
function Fs(e, t, n) {
|
|
236
|
-
t = t || "", n = n || "";
|
|
237
|
-
const s = Ts.filter((a) => t.indexOf(a) < 0 && n.indexOf(a) < 0);
|
|
238
|
-
if (s.length === 0)
|
|
239
|
-
return !0;
|
|
240
|
-
const i = Es.getRegExp(`(${s.map((a) => a === "?" ? "\\?" : a).join("|")})`);
|
|
241
|
-
let r = !i.test(e);
|
|
242
|
-
if (!r) {
|
|
243
|
-
const a = e.indexOf(n);
|
|
244
|
-
a > 0 && !i.test(e.substring(0, a)) && (r = !0);
|
|
245
|
-
}
|
|
246
|
-
return r;
|
|
247
|
-
}
|
|
248
|
-
function Pt(e, t) {
|
|
249
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
|
250
|
-
if (!e)
|
|
251
|
-
return;
|
|
252
|
-
if (e[t])
|
|
253
|
-
return e[t];
|
|
254
|
-
const s = t.split(n);
|
|
255
|
-
let i = e;
|
|
256
|
-
for (let r = 0; r < s.length; ) {
|
|
257
|
-
if (!i || typeof i != "object")
|
|
258
|
-
return;
|
|
259
|
-
let a, o = "";
|
|
260
|
-
for (let u = r; u < s.length; ++u)
|
|
261
|
-
if (u !== r && (o += n), o += s[u], a = i[o], a !== void 0) {
|
|
262
|
-
if (["string", "number", "boolean"].indexOf(typeof a) > -1 && u < s.length - 1)
|
|
263
|
-
continue;
|
|
264
|
-
r += u - r + 1;
|
|
265
|
-
break;
|
|
266
|
-
}
|
|
267
|
-
i = a;
|
|
268
|
-
}
|
|
269
|
-
return i;
|
|
270
|
-
}
|
|
271
|
-
function rt(e) {
|
|
272
|
-
return e && e.indexOf("_") > 0 ? e.replace("_", "-") : e;
|
|
273
|
-
}
|
|
274
|
-
class mn extends ct {
|
|
242
|
+
class vn extends ft {
|
|
275
243
|
constructor(t) {
|
|
276
244
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
277
245
|
ns: ["translation"],
|
|
@@ -290,9 +258,9 @@ class mn extends ct {
|
|
|
290
258
|
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
291
259
|
const r = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator, a = i.ignoreJSONStructure !== void 0 ? i.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
292
260
|
let o;
|
|
293
|
-
t.indexOf(".") > -1 ? o = t.split(".") : (o = [t, n], s && (Array.isArray(s) ? o.push(...s) :
|
|
261
|
+
t.indexOf(".") > -1 ? o = t.split(".") : (o = [t, n], s && (Array.isArray(s) ? o.push(...s) : _(s) && r ? o.push(...s.split(r)) : o.push(s)));
|
|
294
262
|
const u = it(this.data, o);
|
|
295
|
-
return !u && !n && !s && t.indexOf(".") > -1 && (t = o[0], n = o[1], s = o.slice(2).join(".")), u || !a ||
|
|
263
|
+
return !u && !n && !s && t.indexOf(".") > -1 && (t = o[0], n = o[1], s = o.slice(2).join(".")), u || !a || !_(s) ? u : Et(this.data && this.data[t] && this.data[t][n], s, r);
|
|
296
264
|
}
|
|
297
265
|
addResource(t, n, s, i) {
|
|
298
266
|
let r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
@@ -300,14 +268,14 @@ class mn extends ct {
|
|
|
300
268
|
};
|
|
301
269
|
const a = r.keySeparator !== void 0 ? r.keySeparator : this.options.keySeparator;
|
|
302
270
|
let o = [t, n];
|
|
303
|
-
s && (o = o.concat(a ? s.split(a) : s)), t.indexOf(".") > -1 && (o = t.split("."), i = n, n = o[1]), this.addNamespaces(n),
|
|
271
|
+
s && (o = o.concat(a ? s.split(a) : s)), t.indexOf(".") > -1 && (o = t.split("."), i = n, n = o[1]), this.addNamespaces(n), _n(this.data, o, i), r.silent || this.emit("added", t, n, s, i);
|
|
304
272
|
}
|
|
305
273
|
addResources(t, n, s) {
|
|
306
274
|
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
|
307
275
|
silent: !1
|
|
308
276
|
};
|
|
309
277
|
for (const r in s)
|
|
310
|
-
(
|
|
278
|
+
(_(s[r]) || Array.isArray(s[r])) && this.addResource(t, n, r, s[r], {
|
|
311
279
|
silent: !0
|
|
312
280
|
});
|
|
313
281
|
i.silent || this.emit("added", t, n, s);
|
|
@@ -319,10 +287,10 @@ class mn extends ct {
|
|
|
319
287
|
}, o = [t, n];
|
|
320
288
|
t.indexOf(".") > -1 && (o = t.split("."), i = s, s = n, n = o[1]), this.addNamespaces(n);
|
|
321
289
|
let u = it(this.data, o) || {};
|
|
322
|
-
a.skipCopy || (s = JSON.parse(JSON.stringify(s))), i ?
|
|
290
|
+
a.skipCopy || (s = JSON.parse(JSON.stringify(s))), i ? Pn(u, s, r) : u = {
|
|
323
291
|
...u,
|
|
324
292
|
...s
|
|
325
|
-
},
|
|
293
|
+
}, _n(this.data, o, u), a.silent || this.emit("added", t, n, s);
|
|
326
294
|
}
|
|
327
295
|
removeResourceBundle(t, n) {
|
|
328
296
|
this.hasResourceBundle(t, n) && delete this.data[t][n], this.removeNamespaces(n), this.emit("removed", t, n);
|
|
@@ -346,7 +314,7 @@ class mn extends ct {
|
|
|
346
314
|
return this.data;
|
|
347
315
|
}
|
|
348
316
|
}
|
|
349
|
-
var
|
|
317
|
+
var Tn = {
|
|
350
318
|
processors: {},
|
|
351
319
|
addPostProcessor(e) {
|
|
352
320
|
this.processors[e.name] = e;
|
|
@@ -357,11 +325,11 @@ var Cn = {
|
|
|
357
325
|
}), t;
|
|
358
326
|
}
|
|
359
327
|
};
|
|
360
|
-
const
|
|
361
|
-
class
|
|
328
|
+
const wn = {};
|
|
329
|
+
class ot extends ft {
|
|
362
330
|
constructor(t) {
|
|
363
331
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
364
|
-
super(),
|
|
332
|
+
super(), Cs(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], t, this), this.options = n, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = Q.create("translator");
|
|
365
333
|
}
|
|
366
334
|
changeLanguage(t) {
|
|
367
335
|
t && (this.language = t);
|
|
@@ -380,7 +348,7 @@ class at extends ct {
|
|
|
380
348
|
s === void 0 && (s = ":");
|
|
381
349
|
const i = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator;
|
|
382
350
|
let r = n.ns || this.options.defaultNS || [];
|
|
383
|
-
const a = s && t.indexOf(s) > -1, o = !this.options.userDefinedKeySeparator && !n.keySeparator && !this.options.userDefinedNsSeparator && !n.nsSeparator && !
|
|
351
|
+
const a = s && t.indexOf(s) > -1, o = !this.options.userDefinedKeySeparator && !n.keySeparator && !this.options.userDefinedNsSeparator && !n.nsSeparator && !js(t, s, i);
|
|
384
352
|
if (a && !o) {
|
|
385
353
|
const u = t.match(this.interpolator.nestingRegexp);
|
|
386
354
|
if (u && u.length > 0)
|
|
@@ -391,7 +359,7 @@ class at extends ct {
|
|
|
391
359
|
const l = t.split(s);
|
|
392
360
|
(s !== i || s === i && this.options.ns.indexOf(l[0]) > -1) && (r = l.shift()), t = l.join(i);
|
|
393
361
|
}
|
|
394
|
-
return
|
|
362
|
+
return _(r) && (r = [r]), {
|
|
395
363
|
key: t,
|
|
396
364
|
namespaces: r
|
|
397
365
|
};
|
|
@@ -399,8 +367,7 @@ class at extends ct {
|
|
|
399
367
|
translate(t, n, s) {
|
|
400
368
|
if (typeof n != "object" && this.options.overloadTranslationOptionHandler && (n = this.options.overloadTranslationOptionHandler(arguments)), typeof n == "object" && (n = {
|
|
401
369
|
...n
|
|
402
|
-
}), n || (n = {}), t == null)
|
|
403
|
-
return "";
|
|
370
|
+
}), n || (n = {}), t == null) return "";
|
|
404
371
|
Array.isArray(t) || (t = [String(t)]);
|
|
405
372
|
const i = n.returnDetails !== void 0 ? n.returnDetails : this.options.returnDetails, r = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, {
|
|
406
373
|
key: a,
|
|
@@ -408,15 +375,15 @@ class at extends ct {
|
|
|
408
375
|
} = this.extractFromKey(t[t.length - 1], n), u = o[o.length - 1], l = n.lng || this.language, h = n.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
409
376
|
if (l && l.toLowerCase() === "cimode") {
|
|
410
377
|
if (h) {
|
|
411
|
-
const
|
|
378
|
+
const L = n.nsSeparator || this.options.nsSeparator;
|
|
412
379
|
return i ? {
|
|
413
|
-
res: `${u}${
|
|
380
|
+
res: `${u}${L}${a}`,
|
|
414
381
|
usedKey: a,
|
|
415
382
|
exactUsedKey: a,
|
|
416
383
|
usedLng: l,
|
|
417
384
|
usedNS: u,
|
|
418
385
|
usedParams: this.getUsedParamsDetails(n)
|
|
419
|
-
} : `${u}${
|
|
386
|
+
} : `${u}${L}${a}`;
|
|
420
387
|
}
|
|
421
388
|
return i ? {
|
|
422
389
|
res: a,
|
|
@@ -429,65 +396,64 @@ class at extends ct {
|
|
|
429
396
|
}
|
|
430
397
|
const f = this.resolve(t, n);
|
|
431
398
|
let d = f && f.res;
|
|
432
|
-
const
|
|
433
|
-
if (
|
|
399
|
+
const y = f && f.usedKey || a, k = f && f.exactUsedKey || a, C = Object.prototype.toString.apply(d), Y = ["[object Number]", "[object Function]", "[object RegExp]"], j = n.joinArrays !== void 0 ? n.joinArrays : this.options.joinArrays, E = !this.i18nFormat || this.i18nFormat.handleAsObject, Le = !_(d) && typeof d != "boolean" && typeof d != "number";
|
|
400
|
+
if (E && d && Le && Y.indexOf(C) < 0 && !(_(j) && Array.isArray(d))) {
|
|
434
401
|
if (!n.returnObjects && !this.options.returnObjects) {
|
|
435
402
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
436
|
-
const
|
|
403
|
+
const L = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(y, d, {
|
|
437
404
|
...n,
|
|
438
405
|
ns: o
|
|
439
406
|
}) : `key '${a} (${this.language})' returned an object instead of string.`;
|
|
440
|
-
return i ? (f.res =
|
|
407
|
+
return i ? (f.res = L, f.usedParams = this.getUsedParamsDetails(n), f) : L;
|
|
441
408
|
}
|
|
442
409
|
if (r) {
|
|
443
|
-
const
|
|
410
|
+
const L = Array.isArray(d), U = L ? [] : {}, z = L ? k : y;
|
|
444
411
|
for (const F in d)
|
|
445
412
|
if (Object.prototype.hasOwnProperty.call(d, F)) {
|
|
446
|
-
const
|
|
447
|
-
|
|
413
|
+
const Je = `${z}${r}${F}`;
|
|
414
|
+
U[F] = this.translate(Je, {
|
|
448
415
|
...n,
|
|
449
416
|
joinArrays: !1,
|
|
450
417
|
ns: o
|
|
451
|
-
}),
|
|
418
|
+
}), U[F] === Je && (U[F] = d[F]);
|
|
452
419
|
}
|
|
453
|
-
d =
|
|
420
|
+
d = U;
|
|
454
421
|
}
|
|
455
|
-
} else if (
|
|
456
|
-
d = d.join(
|
|
422
|
+
} else if (E && _(j) && Array.isArray(d))
|
|
423
|
+
d = d.join(j), d && (d = this.extendTranslation(d, t, n, s));
|
|
457
424
|
else {
|
|
458
|
-
let
|
|
459
|
-
const
|
|
425
|
+
let L = !1, U = !1;
|
|
426
|
+
const z = n.count !== void 0 && !_(n.count), F = ot.hasDefaultValue(n), Je = z ? this.pluralResolver.getSuffix(l, n.count, n) : "", Ds = n.ordinal && z ? this.pluralResolver.getSuffix(l, n.count, {
|
|
460
427
|
ordinal: !1
|
|
461
|
-
}) : "",
|
|
462
|
-
!this.isValidLookup(d) && F && (
|
|
463
|
-
const
|
|
464
|
-
if (
|
|
465
|
-
if (this.logger.log(
|
|
466
|
-
const
|
|
428
|
+
}) : "", cn = z && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), Re = cn && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${Je}`] || n[`defaultValue${Ds}`] || n.defaultValue;
|
|
429
|
+
!this.isValidLookup(d) && F && (L = !0, d = Re), this.isValidLookup(d) || (U = !0, d = a);
|
|
430
|
+
const Ys = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && U ? void 0 : d, Pe = F && Re !== d && this.options.updateMissing;
|
|
431
|
+
if (U || L || Pe) {
|
|
432
|
+
if (this.logger.log(Pe ? "updateKey" : "missingKey", l, u, a, Pe ? Re : d), r) {
|
|
433
|
+
const H = this.resolve(a, {
|
|
467
434
|
...n,
|
|
468
435
|
keySeparator: !1
|
|
469
436
|
});
|
|
470
|
-
|
|
437
|
+
H && H.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
471
438
|
}
|
|
472
|
-
let
|
|
473
|
-
const
|
|
474
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
475
|
-
for (let
|
|
476
|
-
|
|
477
|
-
else
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(U, u, fe, cn, Le, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(U, u, fe, cn, Le, n), this.emit("missingKey", U, u, fe, d);
|
|
439
|
+
let Te = [];
|
|
440
|
+
const Ze = this.languageUtils.getFallbackCodes(this.options.fallbackLng, n.lng || this.language);
|
|
441
|
+
if (this.options.saveMissingTo === "fallback" && Ze && Ze[0])
|
|
442
|
+
for (let H = 0; H < Ze.length; H++)
|
|
443
|
+
Te.push(Ze[H]);
|
|
444
|
+
else this.options.saveMissingTo === "all" ? Te = this.languageUtils.toResolveHierarchy(n.lng || this.language) : Te.push(n.lng || this.language);
|
|
445
|
+
const fn = (H, ge, Ee) => {
|
|
446
|
+
const gn = F && Ee !== d ? Ee : Ys;
|
|
447
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(H, u, ge, gn, Pe, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(H, u, ge, gn, Pe, n), this.emit("missingKey", H, u, ge, d);
|
|
482
448
|
};
|
|
483
|
-
this.options.saveMissing && (this.options.saveMissingPlurals &&
|
|
484
|
-
const
|
|
485
|
-
|
|
486
|
-
|
|
449
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && z ? Te.forEach((H) => {
|
|
450
|
+
const ge = this.pluralResolver.getSuffixes(H, n);
|
|
451
|
+
cn && n[`defaultValue${this.options.pluralSeparator}zero`] && ge.indexOf(`${this.options.pluralSeparator}zero`) < 0 && ge.push(`${this.options.pluralSeparator}zero`), ge.forEach((Ee) => {
|
|
452
|
+
fn([H], a + Ee, n[`defaultValue${Ee}`] || Re);
|
|
487
453
|
});
|
|
488
|
-
}) :
|
|
454
|
+
}) : fn(Te, a, Re));
|
|
489
455
|
}
|
|
490
|
-
d = this.extendTranslation(d, t, n, f, s),
|
|
456
|
+
d = this.extendTranslation(d, t, n, f, s), U && d === a && this.options.appendNamespaceToMissingKey && (d = `${u}:${a}`), (U || L) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? d = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${u}:${a}` : a, L ? d : void 0) : d = this.options.parseMissingKeyHandler(d));
|
|
491
457
|
}
|
|
492
458
|
return i ? (f.res = d, f.usedParams = this.getUsedParamsDetails(n), f) : d;
|
|
493
459
|
}
|
|
@@ -508,28 +474,28 @@ class at extends ct {
|
|
|
508
474
|
...s.interpolation
|
|
509
475
|
}
|
|
510
476
|
});
|
|
511
|
-
const l =
|
|
477
|
+
const l = _(t) && (s && s.interpolation && s.interpolation.skipOnVariables !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
|
512
478
|
let h;
|
|
513
479
|
if (l) {
|
|
514
480
|
const d = t.match(this.interpolator.nestingRegexp);
|
|
515
481
|
h = d && d.length;
|
|
516
482
|
}
|
|
517
|
-
let f = s.replace &&
|
|
483
|
+
let f = s.replace && !_(s.replace) ? s.replace : s;
|
|
518
484
|
if (this.options.interpolation.defaultVariables && (f = {
|
|
519
485
|
...this.options.interpolation.defaultVariables,
|
|
520
486
|
...f
|
|
521
487
|
}), t = this.interpolator.interpolate(t, f, s.lng || this.language || i.usedLng, s), l) {
|
|
522
|
-
const d = t.match(this.interpolator.nestingRegexp),
|
|
523
|
-
h <
|
|
488
|
+
const d = t.match(this.interpolator.nestingRegexp), y = d && d.length;
|
|
489
|
+
h < y && (s.nest = !1);
|
|
524
490
|
}
|
|
525
491
|
!s.lng && this.options.compatibilityAPI !== "v1" && i && i.res && (s.lng = this.language || i.usedLng), s.nest !== !1 && (t = this.interpolator.nest(t, function() {
|
|
526
|
-
for (var d = arguments.length,
|
|
527
|
-
|
|
528
|
-
return r && r[0] ===
|
|
492
|
+
for (var d = arguments.length, y = new Array(d), k = 0; k < d; k++)
|
|
493
|
+
y[k] = arguments[k];
|
|
494
|
+
return r && r[0] === y[0] && !s.context ? (a.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${n[0]}`), null) : a.translate(...y, n);
|
|
529
495
|
}, s)), s.interpolation && this.interpolator.reset();
|
|
530
496
|
}
|
|
531
|
-
const o = s.postProcess || this.options.postProcess, u =
|
|
532
|
-
return t != null && u && u.length && s.applyPostProcessor !== !1 && (t =
|
|
497
|
+
const o = s.postProcess || this.options.postProcess, u = _(o) ? [o] : o;
|
|
498
|
+
return t != null && u && u.length && s.applyPostProcessor !== !1 && (t = Tn.handle(u, t, n, this.options && this.options.postProcessPassResolved ? {
|
|
533
499
|
i18nResolved: {
|
|
534
500
|
...i,
|
|
535
501
|
usedParams: this.getUsedParamsDetails(s)
|
|
@@ -539,34 +505,32 @@ class at extends ct {
|
|
|
539
505
|
}
|
|
540
506
|
resolve(t) {
|
|
541
507
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, i, r, a, o;
|
|
542
|
-
return
|
|
543
|
-
if (this.isValidLookup(s))
|
|
544
|
-
return;
|
|
508
|
+
return _(t) && (t = [t]), t.forEach((u) => {
|
|
509
|
+
if (this.isValidLookup(s)) return;
|
|
545
510
|
const l = this.extractFromKey(u, n), h = l.key;
|
|
546
511
|
i = h;
|
|
547
512
|
let f = l.namespaces;
|
|
548
513
|
this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
|
|
549
|
-
const d = n.count !== void 0 &&
|
|
550
|
-
f.forEach((
|
|
551
|
-
this.isValidLookup(s) || (o =
|
|
552
|
-
if (this.isValidLookup(s))
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
const P = [h];
|
|
514
|
+
const d = n.count !== void 0 && !_(n.count), y = d && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), k = n.context !== void 0 && (_(n.context) || typeof n.context == "number") && n.context !== "", C = n.lngs ? n.lngs : this.languageUtils.toResolveHierarchy(n.lng || this.language, n.fallbackLng);
|
|
515
|
+
f.forEach((Y) => {
|
|
516
|
+
this.isValidLookup(s) || (o = Y, !wn[`${C[0]}-${Y}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (wn[`${C[0]}-${Y}`] = !0, this.logger.warn(`key "${i}" for languages "${C.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), C.forEach((j) => {
|
|
517
|
+
if (this.isValidLookup(s)) return;
|
|
518
|
+
a = j;
|
|
519
|
+
const E = [h];
|
|
556
520
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
|
557
|
-
this.i18nFormat.addLookupKeys(
|
|
521
|
+
this.i18nFormat.addLookupKeys(E, h, j, Y, n);
|
|
558
522
|
else {
|
|
559
|
-
let
|
|
560
|
-
d && (
|
|
561
|
-
const
|
|
562
|
-
if (d && (
|
|
523
|
+
let L;
|
|
524
|
+
d && (L = this.pluralResolver.getSuffix(j, n.count, n));
|
|
525
|
+
const U = `${this.options.pluralSeparator}zero`, z = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
526
|
+
if (d && (E.push(h + L), n.ordinal && L.indexOf(z) === 0 && E.push(h + L.replace(z, this.options.pluralSeparator)), y && E.push(h + U)), k) {
|
|
563
527
|
const F = `${h}${this.options.contextSeparator}${n.context}`;
|
|
564
|
-
|
|
528
|
+
E.push(F), d && (E.push(F + L), n.ordinal && L.indexOf(z) === 0 && E.push(F + L.replace(z, this.options.pluralSeparator)), y && E.push(F + U));
|
|
565
529
|
}
|
|
566
530
|
}
|
|
567
|
-
let
|
|
568
|
-
for (;
|
|
569
|
-
this.isValidLookup(s) || (r =
|
|
531
|
+
let Le;
|
|
532
|
+
for (; Le = E.pop(); )
|
|
533
|
+
this.isValidLookup(s) || (r = Le, s = this.getResource(j, Y, Le, n));
|
|
570
534
|
}));
|
|
571
535
|
});
|
|
572
536
|
}), {
|
|
@@ -586,7 +550,7 @@ class at extends ct {
|
|
|
586
550
|
}
|
|
587
551
|
getUsedParamsDetails() {
|
|
588
552
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
589
|
-
const n = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], s = t.replace &&
|
|
553
|
+
const n = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], s = t.replace && !_(t.replace);
|
|
590
554
|
let i = s ? t.replace : t;
|
|
591
555
|
if (s && typeof t.count < "u" && (i.count = t.count), this.options.interpolation.defaultVariables && (i = {
|
|
592
556
|
...this.options.interpolation.defaultVariables,
|
|
@@ -608,30 +572,32 @@ class at extends ct {
|
|
|
608
572
|
return !1;
|
|
609
573
|
}
|
|
610
574
|
}
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
}
|
|
614
|
-
class yn {
|
|
575
|
+
const Ot = (e) => e.charAt(0).toUpperCase() + e.slice(1);
|
|
576
|
+
class Sn {
|
|
615
577
|
constructor(t) {
|
|
616
|
-
this.options = t, this.supportedLngs = this.options.supportedLngs || !1, this.logger =
|
|
578
|
+
this.options = t, this.supportedLngs = this.options.supportedLngs || !1, this.logger = Q.create("languageUtils");
|
|
617
579
|
}
|
|
618
580
|
getScriptPartFromCode(t) {
|
|
619
|
-
if (t = rt(t), !t || t.indexOf("-") < 0)
|
|
620
|
-
return null;
|
|
581
|
+
if (t = rt(t), !t || t.indexOf("-") < 0) return null;
|
|
621
582
|
const n = t.split("-");
|
|
622
583
|
return n.length === 2 || (n.pop(), n[n.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(n.join("-"));
|
|
623
584
|
}
|
|
624
585
|
getLanguagePartFromCode(t) {
|
|
625
|
-
if (t = rt(t), !t || t.indexOf("-") < 0)
|
|
626
|
-
return t;
|
|
586
|
+
if (t = rt(t), !t || t.indexOf("-") < 0) return t;
|
|
627
587
|
const n = t.split("-");
|
|
628
588
|
return this.formatLanguageCode(n[0]);
|
|
629
589
|
}
|
|
630
590
|
formatLanguageCode(t) {
|
|
631
|
-
if (
|
|
591
|
+
if (_(t) && t.indexOf("-") > -1) {
|
|
592
|
+
if (typeof Intl < "u" && typeof Intl.getCanonicalLocales < "u")
|
|
593
|
+
try {
|
|
594
|
+
let i = Intl.getCanonicalLocales(t)[0];
|
|
595
|
+
if (i && this.options.lowerCaseLng && (i = i.toLowerCase()), i) return i;
|
|
596
|
+
} catch {
|
|
597
|
+
}
|
|
632
598
|
const n = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
|
|
633
599
|
let s = t.split("-");
|
|
634
|
-
return this.options.lowerCaseLng ? s = s.map((i) => i.toLowerCase()) : s.length === 2 ? (s[0] = s[0].toLowerCase(), s[1] = s[1].toUpperCase(), n.indexOf(s[1].toLowerCase()) > -1 && (s[1] =
|
|
600
|
+
return this.options.lowerCaseLng ? s = s.map((i) => i.toLowerCase()) : s.length === 2 ? (s[0] = s[0].toLowerCase(), s[1] = s[1].toUpperCase(), n.indexOf(s[1].toLowerCase()) > -1 && (s[1] = Ot(s[1].toLowerCase()))) : s.length === 3 && (s[0] = s[0].toLowerCase(), s[1].length === 2 && (s[1] = s[1].toUpperCase()), s[0] !== "sgn" && s[2].length === 2 && (s[2] = s[2].toUpperCase()), n.indexOf(s[1].toLowerCase()) > -1 && (s[1] = Ot(s[1].toLowerCase())), n.indexOf(s[2].toLowerCase()) > -1 && (s[2] = Ot(s[2].toLowerCase()))), s.join("-");
|
|
635
601
|
}
|
|
636
602
|
return this.options.cleanCode || this.options.lowerCaseLng ? t.toLowerCase() : t;
|
|
637
603
|
}
|
|
@@ -639,35 +605,27 @@ class yn {
|
|
|
639
605
|
return (this.options.load === "languageOnly" || this.options.nonExplicitSupportedLngs) && (t = this.getLanguagePartFromCode(t)), !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(t) > -1;
|
|
640
606
|
}
|
|
641
607
|
getBestMatchFromCodes(t) {
|
|
642
|
-
if (!t)
|
|
643
|
-
return null;
|
|
608
|
+
if (!t) return null;
|
|
644
609
|
let n;
|
|
645
610
|
return t.forEach((s) => {
|
|
646
|
-
if (n)
|
|
647
|
-
return;
|
|
611
|
+
if (n) return;
|
|
648
612
|
const i = this.formatLanguageCode(s);
|
|
649
613
|
(!this.options.supportedLngs || this.isSupportedCode(i)) && (n = i);
|
|
650
614
|
}), !n && this.options.supportedLngs && t.forEach((s) => {
|
|
651
|
-
if (n)
|
|
652
|
-
return;
|
|
615
|
+
if (n) return;
|
|
653
616
|
const i = this.getLanguagePartFromCode(s);
|
|
654
|
-
if (this.isSupportedCode(i))
|
|
655
|
-
return n = i;
|
|
617
|
+
if (this.isSupportedCode(i)) return n = i;
|
|
656
618
|
n = this.options.supportedLngs.find((r) => {
|
|
657
|
-
if (r === i)
|
|
658
|
-
return r;
|
|
619
|
+
if (r === i) return r;
|
|
659
620
|
if (!(r.indexOf("-") < 0 && i.indexOf("-") < 0) && (r.indexOf("-") > 0 && i.indexOf("-") < 0 && r.substring(0, r.indexOf("-")) === i || r.indexOf(i) === 0 && i.length > 1))
|
|
660
621
|
return r;
|
|
661
622
|
});
|
|
662
623
|
}), n || (n = this.getFallbackCodes(this.options.fallbackLng)[0]), n;
|
|
663
624
|
}
|
|
664
625
|
getFallbackCodes(t, n) {
|
|
665
|
-
if (!t)
|
|
666
|
-
|
|
667
|
-
if (
|
|
668
|
-
return t;
|
|
669
|
-
if (!n)
|
|
670
|
-
return t.default || [];
|
|
626
|
+
if (!t) return [];
|
|
627
|
+
if (typeof t == "function" && (t = t(n)), _(t) && (t = [t]), Array.isArray(t)) return t;
|
|
628
|
+
if (!n) return t.default || [];
|
|
671
629
|
let s = t[n];
|
|
672
630
|
return s || (s = t[this.getScriptPartFromCode(n)]), s || (s = t[this.formatLanguageCode(n)]), s || (s = t[this.getLanguagePartFromCode(n)]), s || (s = t.default), s || [];
|
|
673
631
|
}
|
|
@@ -675,12 +633,12 @@ class yn {
|
|
|
675
633
|
const s = this.getFallbackCodes(n || this.options.fallbackLng || [], t), i = [], r = (a) => {
|
|
676
634
|
a && (this.isSupportedCode(a) ? i.push(a) : this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`));
|
|
677
635
|
};
|
|
678
|
-
return
|
|
636
|
+
return _(t) && (t.indexOf("-") > -1 || t.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && r(this.formatLanguageCode(t)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && r(this.getScriptPartFromCode(t)), this.options.load !== "currentOnly" && r(this.getLanguagePartFromCode(t))) : _(t) && r(this.formatLanguageCode(t)), s.forEach((a) => {
|
|
679
637
|
i.indexOf(a) < 0 && r(this.formatLanguageCode(a));
|
|
680
638
|
}), i;
|
|
681
639
|
}
|
|
682
640
|
}
|
|
683
|
-
let
|
|
641
|
+
let Hs = [{
|
|
684
642
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
|
685
643
|
nr: [1, 2],
|
|
686
644
|
fc: 1
|
|
@@ -772,108 +730,73 @@ let As = [{
|
|
|
772
730
|
lngs: ["he", "iw"],
|
|
773
731
|
nr: [1, 2, 20, 21],
|
|
774
732
|
fc: 22
|
|
775
|
-
}],
|
|
776
|
-
1:
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
return e == 1 ? 0 : e == 2 ? 1 : e != 8 && e != 11 ? 2 : 3;
|
|
799
|
-
},
|
|
800
|
-
9: function(e) {
|
|
801
|
-
return +(e >= 2);
|
|
802
|
-
},
|
|
803
|
-
10: function(e) {
|
|
804
|
-
return e == 1 ? 0 : e == 2 ? 1 : e < 7 ? 2 : e < 11 ? 3 : 4;
|
|
805
|
-
},
|
|
806
|
-
11: function(e) {
|
|
807
|
-
return e == 1 || e == 11 ? 0 : e == 2 || e == 12 ? 1 : e > 2 && e < 20 ? 2 : 3;
|
|
808
|
-
},
|
|
809
|
-
12: function(e) {
|
|
810
|
-
return +(e % 10 != 1 || e % 100 == 11);
|
|
811
|
-
},
|
|
812
|
-
13: function(e) {
|
|
813
|
-
return +(e !== 0);
|
|
814
|
-
},
|
|
815
|
-
14: function(e) {
|
|
816
|
-
return e == 1 ? 0 : e == 2 ? 1 : e == 3 ? 2 : 3;
|
|
817
|
-
},
|
|
818
|
-
15: function(e) {
|
|
819
|
-
return e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2;
|
|
820
|
-
},
|
|
821
|
-
16: function(e) {
|
|
822
|
-
return e % 10 == 1 && e % 100 != 11 ? 0 : e !== 0 ? 1 : 2;
|
|
823
|
-
},
|
|
824
|
-
17: function(e) {
|
|
825
|
-
return e == 1 || e % 10 == 1 && e % 100 != 11 ? 0 : 1;
|
|
826
|
-
},
|
|
827
|
-
18: function(e) {
|
|
828
|
-
return e == 0 ? 0 : e == 1 ? 1 : 2;
|
|
829
|
-
},
|
|
830
|
-
19: function(e) {
|
|
831
|
-
return e == 1 ? 0 : e == 0 || e % 100 > 1 && e % 100 < 11 ? 1 : e % 100 > 10 && e % 100 < 20 ? 2 : 3;
|
|
832
|
-
},
|
|
833
|
-
20: function(e) {
|
|
834
|
-
return e == 1 ? 0 : e == 0 || e % 100 > 0 && e % 100 < 20 ? 1 : 2;
|
|
835
|
-
},
|
|
836
|
-
21: function(e) {
|
|
837
|
-
return e % 100 == 1 ? 1 : e % 100 == 2 ? 2 : e % 100 == 3 || e % 100 == 4 ? 3 : 0;
|
|
838
|
-
},
|
|
839
|
-
22: function(e) {
|
|
840
|
-
return e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3;
|
|
841
|
-
}
|
|
733
|
+
}], $s = {
|
|
734
|
+
1: (e) => +(e > 1),
|
|
735
|
+
2: (e) => +(e != 1),
|
|
736
|
+
3: (e) => 0,
|
|
737
|
+
4: (e) => e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2,
|
|
738
|
+
5: (e) => e == 0 ? 0 : e == 1 ? 1 : e == 2 ? 2 : e % 100 >= 3 && e % 100 <= 10 ? 3 : e % 100 >= 11 ? 4 : 5,
|
|
739
|
+
6: (e) => e == 1 ? 0 : e >= 2 && e <= 4 ? 1 : 2,
|
|
740
|
+
7: (e) => e == 1 ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2,
|
|
741
|
+
8: (e) => e == 1 ? 0 : e == 2 ? 1 : e != 8 && e != 11 ? 2 : 3,
|
|
742
|
+
9: (e) => +(e >= 2),
|
|
743
|
+
10: (e) => e == 1 ? 0 : e == 2 ? 1 : e < 7 ? 2 : e < 11 ? 3 : 4,
|
|
744
|
+
11: (e) => e == 1 || e == 11 ? 0 : e == 2 || e == 12 ? 1 : e > 2 && e < 20 ? 2 : 3,
|
|
745
|
+
12: (e) => +(e % 10 != 1 || e % 100 == 11),
|
|
746
|
+
13: (e) => +(e !== 0),
|
|
747
|
+
14: (e) => e == 1 ? 0 : e == 2 ? 1 : e == 3 ? 2 : 3,
|
|
748
|
+
15: (e) => e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2,
|
|
749
|
+
16: (e) => e % 10 == 1 && e % 100 != 11 ? 0 : e !== 0 ? 1 : 2,
|
|
750
|
+
17: (e) => e == 1 || e % 10 == 1 && e % 100 != 11 ? 0 : 1,
|
|
751
|
+
18: (e) => e == 0 ? 0 : e == 1 ? 1 : 2,
|
|
752
|
+
19: (e) => e == 1 ? 0 : e == 0 || e % 100 > 1 && e % 100 < 11 ? 1 : e % 100 > 10 && e % 100 < 20 ? 2 : 3,
|
|
753
|
+
20: (e) => e == 1 ? 0 : e == 0 || e % 100 > 0 && e % 100 < 20 ? 1 : 2,
|
|
754
|
+
21: (e) => e % 100 == 1 ? 1 : e % 100 == 2 ? 2 : e % 100 == 3 || e % 100 == 4 ? 3 : 0,
|
|
755
|
+
22: (e) => e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3
|
|
842
756
|
};
|
|
843
|
-
const
|
|
757
|
+
const Ws = ["v1", "v2", "v3"], Vs = ["v4"], bn = {
|
|
844
758
|
zero: 0,
|
|
845
759
|
one: 1,
|
|
846
760
|
two: 2,
|
|
847
761
|
few: 3,
|
|
848
762
|
many: 4,
|
|
849
763
|
other: 5
|
|
850
|
-
}
|
|
851
|
-
function Hs() {
|
|
764
|
+
}, Gs = () => {
|
|
852
765
|
const e = {};
|
|
853
|
-
return
|
|
766
|
+
return Hs.forEach((t) => {
|
|
854
767
|
t.lngs.forEach((n) => {
|
|
855
768
|
e[n] = {
|
|
856
769
|
numbers: t.nr,
|
|
857
|
-
plurals:
|
|
770
|
+
plurals: $s[t.fc]
|
|
858
771
|
};
|
|
859
772
|
});
|
|
860
773
|
}), e;
|
|
861
|
-
}
|
|
862
|
-
class
|
|
774
|
+
};
|
|
775
|
+
class zs {
|
|
863
776
|
constructor(t) {
|
|
864
777
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
865
|
-
this.languageUtils = t, this.options = n, this.logger =
|
|
778
|
+
this.languageUtils = t, this.options = n, this.logger = Q.create("pluralResolver"), (!this.options.compatibilityJSON || Vs.includes(this.options.compatibilityJSON)) && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = Gs(), this.pluralRulesCache = {};
|
|
866
779
|
}
|
|
867
780
|
addRule(t, n) {
|
|
868
781
|
this.rules[t] = n;
|
|
869
782
|
}
|
|
783
|
+
clearCache() {
|
|
784
|
+
this.pluralRulesCache = {};
|
|
785
|
+
}
|
|
870
786
|
getRule(t) {
|
|
871
787
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
872
788
|
if (this.shouldUseIntlApi())
|
|
873
789
|
try {
|
|
874
|
-
|
|
875
|
-
|
|
790
|
+
const s = rt(t === "dev" ? "en" : t), i = n.ordinal ? "ordinal" : "cardinal", r = JSON.stringify({
|
|
791
|
+
cleanedCode: s,
|
|
792
|
+
type: i
|
|
793
|
+
});
|
|
794
|
+
if (r in this.pluralRulesCache)
|
|
795
|
+
return this.pluralRulesCache[r];
|
|
796
|
+
const a = new Intl.PluralRules(s, {
|
|
797
|
+
type: i
|
|
876
798
|
});
|
|
799
|
+
return this.pluralRulesCache[r] = a, a;
|
|
877
800
|
} catch {
|
|
878
801
|
return;
|
|
879
802
|
}
|
|
@@ -891,7 +814,7 @@ class $s {
|
|
|
891
814
|
getSuffixes(t) {
|
|
892
815
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
893
816
|
const s = this.getRule(t, n);
|
|
894
|
-
return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((i, r) =>
|
|
817
|
+
return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((i, r) => bn[i] - bn[r]).map((i) => `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${i}`) : s.numbers.map((i) => this.getSuffix(t, i, n)) : [];
|
|
895
818
|
}
|
|
896
819
|
getSuffix(t, n) {
|
|
897
820
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -906,17 +829,17 @@ class $s {
|
|
|
906
829
|
return this.options.compatibilityJSON === "v1" ? i === 1 ? "" : typeof i == "number" ? `_plural_${i.toString()}` : r() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && t.numbers.length === 2 && t.numbers[0] === 1 ? r() : this.options.prepend && s.toString() ? this.options.prepend + s.toString() : s.toString();
|
|
907
830
|
}
|
|
908
831
|
shouldUseIntlApi() {
|
|
909
|
-
return !
|
|
832
|
+
return !Ws.includes(this.options.compatibilityJSON);
|
|
910
833
|
}
|
|
911
834
|
}
|
|
912
|
-
function
|
|
913
|
-
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, r =
|
|
914
|
-
return !r && i &&
|
|
915
|
-
}
|
|
916
|
-
class
|
|
835
|
+
const xn = function(e, t, n) {
|
|
836
|
+
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, r = Ps(e, t, n);
|
|
837
|
+
return !r && i && _(n) && (r = Et(e, n, s), r === void 0 && (r = Et(t, n, s))), r;
|
|
838
|
+
}, Mt = (e) => e.replace(/\$/g, "$$$$");
|
|
839
|
+
class Ks {
|
|
917
840
|
constructor() {
|
|
918
841
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
919
|
-
this.logger =
|
|
842
|
+
this.logger = Q.create("interpolator"), this.options = t, this.format = t.interpolation && t.interpolation.format || ((n) => n), this.init(t);
|
|
920
843
|
}
|
|
921
844
|
init() {
|
|
922
845
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -935,14 +858,14 @@ class Ws {
|
|
|
935
858
|
unescapeSuffix: h,
|
|
936
859
|
unescapePrefix: f,
|
|
937
860
|
nestingPrefix: d,
|
|
938
|
-
nestingPrefixEscaped:
|
|
939
|
-
nestingSuffix:
|
|
940
|
-
nestingSuffixEscaped:
|
|
941
|
-
nestingOptionsSeparator:
|
|
942
|
-
maxReplaces:
|
|
943
|
-
alwaysFormat:
|
|
861
|
+
nestingPrefixEscaped: y,
|
|
862
|
+
nestingSuffix: k,
|
|
863
|
+
nestingSuffixEscaped: C,
|
|
864
|
+
nestingOptionsSeparator: Y,
|
|
865
|
+
maxReplaces: j,
|
|
866
|
+
alwaysFormat: E
|
|
944
867
|
} = t.interpolation;
|
|
945
|
-
this.escape = n !== void 0 ? n :
|
|
868
|
+
this.escape = n !== void 0 ? n : Es, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = r ? we(r) : a || "{{", this.suffix = o ? we(o) : u || "}}", this.formatSeparator = l || ",", this.unescapePrefix = h ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : h || "", this.nestingPrefix = d ? we(d) : y || we("$t("), this.nestingSuffix = k ? we(k) : C || we(")"), this.nestingOptionsSeparator = Y || ",", this.maxReplaces = j || 1e3, this.alwaysFormat = E !== void 0 ? E : !1, this.resetRegExp();
|
|
946
869
|
}
|
|
947
870
|
reset() {
|
|
948
871
|
this.options && this.init(this.options);
|
|
@@ -953,90 +876,83 @@ class Ws {
|
|
|
953
876
|
}
|
|
954
877
|
interpolate(t, n, s, i) {
|
|
955
878
|
let r, a, o;
|
|
956
|
-
const u = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}
|
|
957
|
-
function l(y) {
|
|
958
|
-
return y.replace(/\$/g, "$$$$");
|
|
959
|
-
}
|
|
960
|
-
const h = (y) => {
|
|
879
|
+
const u = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (y) => {
|
|
961
880
|
if (y.indexOf(this.formatSeparator) < 0) {
|
|
962
|
-
const
|
|
963
|
-
return this.alwaysFormat ? this.format(
|
|
881
|
+
const j = xn(n, u, y, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
882
|
+
return this.alwaysFormat ? this.format(j, void 0, s, {
|
|
964
883
|
...i,
|
|
965
884
|
...n,
|
|
966
885
|
interpolationkey: y
|
|
967
|
-
}) :
|
|
886
|
+
}) : j;
|
|
968
887
|
}
|
|
969
|
-
const
|
|
970
|
-
return this.format(
|
|
888
|
+
const k = y.split(this.formatSeparator), C = k.shift().trim(), Y = k.join(this.formatSeparator).trim();
|
|
889
|
+
return this.format(xn(n, u, C, this.options.keySeparator, this.options.ignoreJSONStructure), Y, s, {
|
|
971
890
|
...i,
|
|
972
891
|
...n,
|
|
973
|
-
interpolationkey:
|
|
892
|
+
interpolationkey: C
|
|
974
893
|
});
|
|
975
894
|
};
|
|
976
895
|
this.resetRegExp();
|
|
977
|
-
const
|
|
896
|
+
const h = i && i.missingInterpolationHandler || this.options.missingInterpolationHandler, f = i && i.interpolation && i.interpolation.skipOnVariables !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
978
897
|
return [{
|
|
979
898
|
regex: this.regexpUnescape,
|
|
980
|
-
safeValue: (y) =>
|
|
899
|
+
safeValue: (y) => Mt(y)
|
|
981
900
|
}, {
|
|
982
901
|
regex: this.regexp,
|
|
983
|
-
safeValue: (y) => this.escapeValue ?
|
|
902
|
+
safeValue: (y) => this.escapeValue ? Mt(this.escape(y)) : Mt(y)
|
|
984
903
|
}].forEach((y) => {
|
|
985
904
|
for (o = 0; r = y.regex.exec(t); ) {
|
|
986
|
-
const
|
|
987
|
-
if (a =
|
|
988
|
-
if (typeof
|
|
989
|
-
const
|
|
990
|
-
a =
|
|
991
|
-
} else if (i && Object.prototype.hasOwnProperty.call(i,
|
|
905
|
+
const k = r[1].trim();
|
|
906
|
+
if (a = l(k), a === void 0)
|
|
907
|
+
if (typeof h == "function") {
|
|
908
|
+
const Y = h(t, r, i);
|
|
909
|
+
a = _(Y) ? Y : "";
|
|
910
|
+
} else if (i && Object.prototype.hasOwnProperty.call(i, k))
|
|
992
911
|
a = "";
|
|
993
|
-
else if (
|
|
912
|
+
else if (f) {
|
|
994
913
|
a = r[0];
|
|
995
914
|
continue;
|
|
996
915
|
} else
|
|
997
|
-
this.logger.warn(`missed to pass in variable ${
|
|
998
|
-
else
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
if (t = t.replace(r[0], D), d ? (y.regex.lastIndex += a.length, y.regex.lastIndex -= r[0].length) : y.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
|
916
|
+
this.logger.warn(`missed to pass in variable ${k} for interpolating ${t}`), a = "";
|
|
917
|
+
else !_(a) && !this.useRawValueToEscape && (a = mn(a));
|
|
918
|
+
const C = y.safeValue(a);
|
|
919
|
+
if (t = t.replace(r[0], C), f ? (y.regex.lastIndex += a.length, y.regex.lastIndex -= r[0].length) : y.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
|
1002
920
|
break;
|
|
1003
921
|
}
|
|
1004
922
|
}), t;
|
|
1005
923
|
}
|
|
1006
924
|
nest(t, n) {
|
|
1007
925
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i, r, a;
|
|
1008
|
-
|
|
926
|
+
const o = (u, l) => {
|
|
1009
927
|
const h = this.nestingOptionsSeparator;
|
|
1010
|
-
if (u.indexOf(h) < 0)
|
|
1011
|
-
return u;
|
|
928
|
+
if (u.indexOf(h) < 0) return u;
|
|
1012
929
|
const f = u.split(new RegExp(`${h}[ ]*{`));
|
|
1013
930
|
let d = `{${f[1]}`;
|
|
1014
931
|
u = f[0], d = this.interpolate(d, a);
|
|
1015
|
-
const
|
|
1016
|
-
(
|
|
932
|
+
const y = d.match(/'/g), k = d.match(/"/g);
|
|
933
|
+
(y && y.length % 2 === 0 && !k || k.length % 2 !== 0) && (d = d.replace(/'/g, '"'));
|
|
1017
934
|
try {
|
|
1018
935
|
a = JSON.parse(d), l && (a = {
|
|
1019
936
|
...l,
|
|
1020
937
|
...a
|
|
1021
938
|
});
|
|
1022
|
-
} catch (
|
|
1023
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${u}`,
|
|
939
|
+
} catch (C) {
|
|
940
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${u}`, C), `${u}${h}${d}`;
|
|
1024
941
|
}
|
|
1025
942
|
return a.defaultValue && a.defaultValue.indexOf(this.prefix) > -1 && delete a.defaultValue, u;
|
|
1026
|
-
}
|
|
943
|
+
};
|
|
1027
944
|
for (; i = this.nestingRegexp.exec(t); ) {
|
|
1028
945
|
let u = [];
|
|
1029
946
|
a = {
|
|
1030
947
|
...s
|
|
1031
|
-
}, a = a.replace &&
|
|
948
|
+
}, a = a.replace && !_(a.replace) ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
|
|
1032
949
|
let l = !1;
|
|
1033
950
|
if (i[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(i[1])) {
|
|
1034
951
|
const h = i[1].split(this.formatSeparator).map((f) => f.trim());
|
|
1035
952
|
i[1] = h.shift(), u = h, l = !0;
|
|
1036
953
|
}
|
|
1037
|
-
if (r = n(o.call(this, i[1].trim(), a), a), r && i[0] === t &&
|
|
1038
|
-
|
|
1039
|
-
typeof r != "string" && (r = fn(r)), r || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`), r = ""), l && (r = u.reduce((h, f) => this.format(h, f, s.lng, {
|
|
954
|
+
if (r = n(o.call(this, i[1].trim(), a), a), r && i[0] === t && !_(r)) return r;
|
|
955
|
+
_(r) || (r = mn(r)), r || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`), r = ""), l && (r = u.reduce((h, f) => this.format(h, f, s.lng, {
|
|
1040
956
|
...s,
|
|
1041
957
|
interpolationkey: i[1].trim()
|
|
1042
958
|
}), r.trim())), t = t.replace(i[0], r), this.regexp.lastIndex = 0;
|
|
@@ -1044,7 +960,7 @@ class Ws {
|
|
|
1044
960
|
return t;
|
|
1045
961
|
}
|
|
1046
962
|
}
|
|
1047
|
-
|
|
963
|
+
const Bs = (e) => {
|
|
1048
964
|
let t = e.toLowerCase().trim();
|
|
1049
965
|
const n = {};
|
|
1050
966
|
if (e.indexOf("(") > -1) {
|
|
@@ -1062,45 +978,49 @@ function Vs(e) {
|
|
|
1062
978
|
formatName: t,
|
|
1063
979
|
formatOptions: n
|
|
1064
980
|
};
|
|
1065
|
-
}
|
|
1066
|
-
function we(e) {
|
|
981
|
+
}, Se = (e) => {
|
|
1067
982
|
const t = {};
|
|
1068
|
-
return
|
|
1069
|
-
|
|
983
|
+
return (n, s, i) => {
|
|
984
|
+
let r = i;
|
|
985
|
+
i && i.interpolationkey && i.formatParams && i.formatParams[i.interpolationkey] && i[i.interpolationkey] && (r = {
|
|
986
|
+
...r,
|
|
987
|
+
[i.interpolationkey]: void 0
|
|
988
|
+
});
|
|
989
|
+
const a = s + JSON.stringify(r);
|
|
1070
990
|
let o = t[a];
|
|
1071
|
-
return o || (o = e(rt(
|
|
991
|
+
return o || (o = e(rt(s), i), t[a] = o), o(n);
|
|
1072
992
|
};
|
|
1073
|
-
}
|
|
1074
|
-
class
|
|
993
|
+
};
|
|
994
|
+
class qs {
|
|
1075
995
|
constructor() {
|
|
1076
996
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1077
|
-
this.logger =
|
|
1078
|
-
number:
|
|
997
|
+
this.logger = Q.create("formatter"), this.options = t, this.formats = {
|
|
998
|
+
number: Se((n, s) => {
|
|
1079
999
|
const i = new Intl.NumberFormat(n, {
|
|
1080
1000
|
...s
|
|
1081
1001
|
});
|
|
1082
1002
|
return (r) => i.format(r);
|
|
1083
1003
|
}),
|
|
1084
|
-
currency:
|
|
1004
|
+
currency: Se((n, s) => {
|
|
1085
1005
|
const i = new Intl.NumberFormat(n, {
|
|
1086
1006
|
...s,
|
|
1087
1007
|
style: "currency"
|
|
1088
1008
|
});
|
|
1089
1009
|
return (r) => i.format(r);
|
|
1090
1010
|
}),
|
|
1091
|
-
datetime:
|
|
1011
|
+
datetime: Se((n, s) => {
|
|
1092
1012
|
const i = new Intl.DateTimeFormat(n, {
|
|
1093
1013
|
...s
|
|
1094
1014
|
});
|
|
1095
1015
|
return (r) => i.format(r);
|
|
1096
1016
|
}),
|
|
1097
|
-
relativetime:
|
|
1017
|
+
relativetime: Se((n, s) => {
|
|
1098
1018
|
const i = new Intl.RelativeTimeFormat(n, {
|
|
1099
1019
|
...s
|
|
1100
1020
|
});
|
|
1101
1021
|
return (r) => i.format(r, s.range || "day");
|
|
1102
1022
|
}),
|
|
1103
|
-
list:
|
|
1023
|
+
list: Se((n, s) => {
|
|
1104
1024
|
const i = new Intl.ListFormat(n, {
|
|
1105
1025
|
...s
|
|
1106
1026
|
});
|
|
@@ -1109,29 +1029,34 @@ class Gs {
|
|
|
1109
1029
|
}, this.init(t);
|
|
1110
1030
|
}
|
|
1111
1031
|
init(t) {
|
|
1112
|
-
|
|
1032
|
+
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
1113
1033
|
interpolation: {}
|
|
1114
|
-
}
|
|
1115
|
-
this.formatSeparator =
|
|
1034
|
+
};
|
|
1035
|
+
this.formatSeparator = n.interpolation.formatSeparator || ",";
|
|
1116
1036
|
}
|
|
1117
1037
|
add(t, n) {
|
|
1118
1038
|
this.formats[t.toLowerCase().trim()] = n;
|
|
1119
1039
|
}
|
|
1120
1040
|
addCached(t, n) {
|
|
1121
|
-
this.formats[t.toLowerCase().trim()] =
|
|
1041
|
+
this.formats[t.toLowerCase().trim()] = Se(n);
|
|
1122
1042
|
}
|
|
1123
1043
|
format(t, n, s) {
|
|
1124
1044
|
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
1125
|
-
|
|
1045
|
+
const r = n.split(this.formatSeparator);
|
|
1046
|
+
if (r.length > 1 && r[0].indexOf("(") > 1 && r[0].indexOf(")") < 0 && r.find((o) => o.indexOf(")") > -1)) {
|
|
1047
|
+
const o = r.findIndex((u) => u.indexOf(")") > -1);
|
|
1048
|
+
r[0] = [r[0], ...r.splice(1, o)].join(this.formatSeparator);
|
|
1049
|
+
}
|
|
1050
|
+
return r.reduce((o, u) => {
|
|
1126
1051
|
const {
|
|
1127
1052
|
formatName: l,
|
|
1128
1053
|
formatOptions: h
|
|
1129
|
-
} =
|
|
1054
|
+
} = Bs(u);
|
|
1130
1055
|
if (this.formats[l]) {
|
|
1131
1056
|
let f = o;
|
|
1132
1057
|
try {
|
|
1133
|
-
const d = i && i.formatParams && i.formatParams[i.interpolationkey] || {},
|
|
1134
|
-
f = this.formats[l](o,
|
|
1058
|
+
const d = i && i.formatParams && i.formatParams[i.interpolationkey] || {}, y = d.locale || d.lng || i.locale || i.lng || s;
|
|
1059
|
+
f = this.formats[l](o, y, {
|
|
1135
1060
|
...h,
|
|
1136
1061
|
...i,
|
|
1137
1062
|
...d
|
|
@@ -1146,13 +1071,13 @@ class Gs {
|
|
|
1146
1071
|
}, t);
|
|
1147
1072
|
}
|
|
1148
1073
|
}
|
|
1149
|
-
|
|
1074
|
+
const Js = (e, t) => {
|
|
1150
1075
|
e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
|
|
1151
|
-
}
|
|
1152
|
-
class
|
|
1076
|
+
};
|
|
1077
|
+
class Zs extends ft {
|
|
1153
1078
|
constructor(t, n, s) {
|
|
1154
1079
|
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
1155
|
-
super(), this.backend = t, this.store = n, this.services = s, this.languageUtils = s.languageUtils, this.options = i, this.logger =
|
|
1080
|
+
super(), this.backend = t, this.store = n, this.services = s, this.languageUtils = s.languageUtils, this.options = i, this.logger = Q.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = i.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = i.maxRetries >= 0 ? i.maxRetries : 5, this.retryTimeout = i.retryTimeout >= 1 ? i.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(s, i.backend, i);
|
|
1156
1081
|
}
|
|
1157
1082
|
queueLoad(t, n, s, i) {
|
|
1158
1083
|
const r = {}, a = {}, o = {}, u = {};
|
|
@@ -1177,12 +1102,12 @@ class Ks extends ct {
|
|
|
1177
1102
|
}
|
|
1178
1103
|
loaded(t, n, s) {
|
|
1179
1104
|
const i = t.split("|"), r = i[0], a = i[1];
|
|
1180
|
-
n && this.emit("failedLoading", r, a, n), s && this.store.addResourceBundle(r, a, s, void 0, void 0, {
|
|
1105
|
+
n && this.emit("failedLoading", r, a, n), !n && s && this.store.addResourceBundle(r, a, s, void 0, void 0, {
|
|
1181
1106
|
skipCopy: !0
|
|
1182
|
-
}), this.state[t] = n ? -1 : 2;
|
|
1107
|
+
}), this.state[t] = n ? -1 : 2, n && s && (this.state[t] = 0);
|
|
1183
1108
|
const o = {};
|
|
1184
1109
|
this.queue.forEach((u) => {
|
|
1185
|
-
|
|
1110
|
+
Rs(u.loaded, [r], a), Js(u, t), n && u.errors.push(n), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((l) => {
|
|
1186
1111
|
o[l] || (o[l] = {});
|
|
1187
1112
|
const h = u.loaded[l];
|
|
1188
1113
|
h.length && h.forEach((f) => {
|
|
@@ -1193,8 +1118,7 @@ class Ks extends ct {
|
|
|
1193
1118
|
}
|
|
1194
1119
|
read(t, n, s) {
|
|
1195
1120
|
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, a = arguments.length > 5 ? arguments[5] : void 0;
|
|
1196
|
-
if (!t.length)
|
|
1197
|
-
return a(null, {});
|
|
1121
|
+
if (!t.length) return a(null, {});
|
|
1198
1122
|
if (this.readingCalls >= this.maxParallelReads) {
|
|
1199
1123
|
this.waitingReads.push({
|
|
1200
1124
|
lng: t,
|
|
@@ -1235,7 +1159,7 @@ class Ks extends ct {
|
|
|
1235
1159
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = arguments.length > 3 ? arguments[3] : void 0;
|
|
1236
1160
|
if (!this.backend)
|
|
1237
1161
|
return this.logger.warn("No backend was added via i18next.use. Will not load resources."), i && i();
|
|
1238
|
-
|
|
1162
|
+
_(t) && (t = this.languageUtils.toResolveHierarchy(t)), _(n) && (n = [n]);
|
|
1239
1163
|
const r = this.queueLoad(t, n, s, i);
|
|
1240
1164
|
if (!r.toLoad.length)
|
|
1241
1165
|
return r.pending.length || i(), null;
|
|
@@ -1285,81 +1209,74 @@ class Ks extends ct {
|
|
|
1285
1209
|
}
|
|
1286
1210
|
}
|
|
1287
1211
|
}
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
});
|
|
1329
|
-
}
|
|
1330
|
-
return n;
|
|
1331
|
-
},
|
|
1332
|
-
interpolation: {
|
|
1333
|
-
escapeValue: !0,
|
|
1334
|
-
format: (e) => e,
|
|
1335
|
-
prefix: "{{",
|
|
1336
|
-
suffix: "}}",
|
|
1337
|
-
formatSeparator: ",",
|
|
1338
|
-
unescapePrefix: "-",
|
|
1339
|
-
nestingPrefix: "$t(",
|
|
1340
|
-
nestingSuffix: ")",
|
|
1341
|
-
nestingOptionsSeparator: ",",
|
|
1342
|
-
maxReplaces: 1e3,
|
|
1343
|
-
skipOnVariables: !0
|
|
1212
|
+
const kn = () => ({
|
|
1213
|
+
debug: !1,
|
|
1214
|
+
initImmediate: !0,
|
|
1215
|
+
ns: ["translation"],
|
|
1216
|
+
defaultNS: ["translation"],
|
|
1217
|
+
fallbackLng: ["dev"],
|
|
1218
|
+
fallbackNS: !1,
|
|
1219
|
+
supportedLngs: !1,
|
|
1220
|
+
nonExplicitSupportedLngs: !1,
|
|
1221
|
+
load: "all",
|
|
1222
|
+
preload: !1,
|
|
1223
|
+
simplifyPluralSuffix: !0,
|
|
1224
|
+
keySeparator: ".",
|
|
1225
|
+
nsSeparator: ":",
|
|
1226
|
+
pluralSeparator: "_",
|
|
1227
|
+
contextSeparator: "_",
|
|
1228
|
+
partialBundledLanguages: !1,
|
|
1229
|
+
saveMissing: !1,
|
|
1230
|
+
updateMissing: !1,
|
|
1231
|
+
saveMissingTo: "fallback",
|
|
1232
|
+
saveMissingPlurals: !0,
|
|
1233
|
+
missingKeyHandler: !1,
|
|
1234
|
+
missingInterpolationHandler: !1,
|
|
1235
|
+
postProcess: !1,
|
|
1236
|
+
postProcessPassResolved: !1,
|
|
1237
|
+
returnNull: !1,
|
|
1238
|
+
returnEmptyString: !0,
|
|
1239
|
+
returnObjects: !1,
|
|
1240
|
+
joinArrays: !1,
|
|
1241
|
+
returnedObjectHandler: !1,
|
|
1242
|
+
parseMissingKeyHandler: !1,
|
|
1243
|
+
appendNamespaceToMissingKey: !1,
|
|
1244
|
+
appendNamespaceToCIMode: !1,
|
|
1245
|
+
overloadTranslationOptionHandler: (e) => {
|
|
1246
|
+
let t = {};
|
|
1247
|
+
if (typeof e[1] == "object" && (t = e[1]), _(e[1]) && (t.defaultValue = e[1]), _(e[2]) && (t.tDescription = e[2]), typeof e[2] == "object" || typeof e[3] == "object") {
|
|
1248
|
+
const n = e[3] || e[2];
|
|
1249
|
+
Object.keys(n).forEach((s) => {
|
|
1250
|
+
t[s] = n[s];
|
|
1251
|
+
});
|
|
1344
1252
|
}
|
|
1345
|
-
|
|
1346
|
-
}
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
}
|
|
1352
|
-
|
|
1253
|
+
return t;
|
|
1254
|
+
},
|
|
1255
|
+
interpolation: {
|
|
1256
|
+
escapeValue: !0,
|
|
1257
|
+
format: (e) => e,
|
|
1258
|
+
prefix: "{{",
|
|
1259
|
+
suffix: "}}",
|
|
1260
|
+
formatSeparator: ",",
|
|
1261
|
+
unescapePrefix: "-",
|
|
1262
|
+
nestingPrefix: "$t(",
|
|
1263
|
+
nestingSuffix: ")",
|
|
1264
|
+
nestingOptionsSeparator: ",",
|
|
1265
|
+
maxReplaces: 1e3,
|
|
1266
|
+
skipOnVariables: !0
|
|
1267
|
+
}
|
|
1268
|
+
}), On = (e) => (_(e.ns) && (e.ns = [e.ns]), _(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), _(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs && e.supportedLngs.indexOf("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), e), Qe = () => {
|
|
1269
|
+
}, Qs = (e) => {
|
|
1353
1270
|
Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((n) => {
|
|
1354
1271
|
typeof e[n] == "function" && (e[n] = e[n].bind(e));
|
|
1355
1272
|
});
|
|
1356
|
-
}
|
|
1357
|
-
class
|
|
1273
|
+
};
|
|
1274
|
+
class He extends ft {
|
|
1358
1275
|
constructor() {
|
|
1359
1276
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
|
1360
|
-
if (super(), this.options =
|
|
1277
|
+
if (super(), this.options = On(t), this.services = {}, this.logger = Q, this.modules = {
|
|
1361
1278
|
external: []
|
|
1362
|
-
},
|
|
1279
|
+
}, Qs(this), n && !this.isInitialized && !t.isClone) {
|
|
1363
1280
|
if (!this.options.initImmediate)
|
|
1364
1281
|
return this.init(t, n), this;
|
|
1365
1282
|
setTimeout(() => {
|
|
@@ -1370,45 +1287,43 @@ class Ie extends ct {
|
|
|
1370
1287
|
init() {
|
|
1371
1288
|
var t = this;
|
|
1372
1289
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = arguments.length > 1 ? arguments[1] : void 0;
|
|
1373
|
-
this.isInitializing = !0, typeof n == "function" && (s = n, n = {}), !n.defaultNS && n.defaultNS !== !1 && n.ns && (
|
|
1374
|
-
const i =
|
|
1290
|
+
this.isInitializing = !0, typeof n == "function" && (s = n, n = {}), !n.defaultNS && n.defaultNS !== !1 && n.ns && (_(n.ns) ? n.defaultNS = n.ns : n.ns.indexOf("translation") < 0 && (n.defaultNS = n.ns[0]));
|
|
1291
|
+
const i = kn();
|
|
1375
1292
|
this.options = {
|
|
1376
1293
|
...i,
|
|
1377
1294
|
...this.options,
|
|
1378
|
-
...
|
|
1295
|
+
...On(n)
|
|
1379
1296
|
}, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
|
|
1380
1297
|
...i.interpolation,
|
|
1381
1298
|
...this.options.interpolation
|
|
1382
1299
|
}), n.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = n.keySeparator), n.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = n.nsSeparator);
|
|
1383
|
-
|
|
1384
|
-
return h ? typeof h == "function" ? new h() : h : null;
|
|
1385
|
-
}
|
|
1300
|
+
const r = (h) => h ? typeof h == "function" ? new h() : h : null;
|
|
1386
1301
|
if (!this.options.isClone) {
|
|
1387
|
-
this.modules.logger ?
|
|
1302
|
+
this.modules.logger ? Q.init(r(this.modules.logger), this.options) : Q.init(null, this.options);
|
|
1388
1303
|
let h;
|
|
1389
|
-
this.modules.formatter ? h = this.modules.formatter : typeof Intl < "u" && (h =
|
|
1390
|
-
const f = new
|
|
1391
|
-
this.store = new
|
|
1304
|
+
this.modules.formatter ? h = this.modules.formatter : typeof Intl < "u" && (h = qs);
|
|
1305
|
+
const f = new Sn(this.options);
|
|
1306
|
+
this.store = new vn(this.options.resources, this.options);
|
|
1392
1307
|
const d = this.services;
|
|
1393
|
-
d.logger =
|
|
1308
|
+
d.logger = Q, d.resourceStore = this.store, d.languageUtils = f, d.pluralResolver = new zs(f, {
|
|
1394
1309
|
prepend: this.options.pluralSeparator,
|
|
1395
1310
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
1396
1311
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
1397
|
-
}), h && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (d.formatter = r(h), d.formatter.init(d, this.options), this.options.interpolation.format = d.formatter.format.bind(d.formatter)), d.interpolator = new
|
|
1312
|
+
}), h && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (d.formatter = r(h), d.formatter.init(d, this.options), this.options.interpolation.format = d.formatter.format.bind(d.formatter)), d.interpolator = new Ks(this.options), d.utils = {
|
|
1398
1313
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
1399
|
-
}, d.backendConnector = new
|
|
1400
|
-
for (var
|
|
1401
|
-
|
|
1402
|
-
t.emit(
|
|
1403
|
-
}), this.modules.languageDetector && (d.languageDetector = r(this.modules.languageDetector), d.languageDetector.init && d.languageDetector.init(d, this.options.detection, this.options)), this.modules.i18nFormat && (d.i18nFormat = r(this.modules.i18nFormat), d.i18nFormat.init && d.i18nFormat.init(this)), this.translator = new
|
|
1404
|
-
for (var
|
|
1405
|
-
|
|
1406
|
-
t.emit(
|
|
1407
|
-
}), this.modules.external.forEach((
|
|
1408
|
-
|
|
1314
|
+
}, d.backendConnector = new Zs(r(this.modules.backend), d.resourceStore, d, this.options), d.backendConnector.on("*", function(y) {
|
|
1315
|
+
for (var k = arguments.length, C = new Array(k > 1 ? k - 1 : 0), Y = 1; Y < k; Y++)
|
|
1316
|
+
C[Y - 1] = arguments[Y];
|
|
1317
|
+
t.emit(y, ...C);
|
|
1318
|
+
}), this.modules.languageDetector && (d.languageDetector = r(this.modules.languageDetector), d.languageDetector.init && d.languageDetector.init(d, this.options.detection, this.options)), this.modules.i18nFormat && (d.i18nFormat = r(this.modules.i18nFormat), d.i18nFormat.init && d.i18nFormat.init(this)), this.translator = new ot(this.services, this.options), this.translator.on("*", function(y) {
|
|
1319
|
+
for (var k = arguments.length, C = new Array(k > 1 ? k - 1 : 0), Y = 1; Y < k; Y++)
|
|
1320
|
+
C[Y - 1] = arguments[Y];
|
|
1321
|
+
t.emit(y, ...C);
|
|
1322
|
+
}), this.modules.external.forEach((y) => {
|
|
1323
|
+
y.init && y.init(this);
|
|
1409
1324
|
});
|
|
1410
1325
|
}
|
|
1411
|
-
if (this.format = this.options.interpolation.format, s || (s =
|
|
1326
|
+
if (this.format = this.options.interpolation.format, s || (s = Qe), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
1412
1327
|
const h = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
1413
1328
|
h.length > 0 && h[0] !== "dev" && (this.options.lng = h[0]);
|
|
1414
1329
|
}
|
|
@@ -1421,25 +1336,22 @@ class Ie extends ct {
|
|
|
1421
1336
|
return t.store[h](...arguments), t;
|
|
1422
1337
|
};
|
|
1423
1338
|
});
|
|
1424
|
-
const u =
|
|
1339
|
+
const u = Fe(), l = () => {
|
|
1425
1340
|
const h = (f, d) => {
|
|
1426
1341
|
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), u.resolve(d), s(f, d);
|
|
1427
1342
|
};
|
|
1428
|
-
if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized)
|
|
1429
|
-
return h(null, this.t.bind(this));
|
|
1343
|
+
if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized) return h(null, this.t.bind(this));
|
|
1430
1344
|
this.changeLanguage(this.options.lng, h);
|
|
1431
1345
|
};
|
|
1432
1346
|
return this.options.resources || !this.options.initImmediate ? l() : setTimeout(l, 0), u;
|
|
1433
1347
|
}
|
|
1434
1348
|
loadResources(t) {
|
|
1435
|
-
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
1436
|
-
const i =
|
|
1349
|
+
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Qe;
|
|
1350
|
+
const i = _(t) ? t : this.language;
|
|
1437
1351
|
if (typeof t == "function" && (s = t), !this.options.resources || this.options.partialBundledLanguages) {
|
|
1438
|
-
if (i && i.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0))
|
|
1439
|
-
return s();
|
|
1352
|
+
if (i && i.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return s();
|
|
1440
1353
|
const r = [], a = (o) => {
|
|
1441
|
-
if (!o || o === "cimode")
|
|
1442
|
-
return;
|
|
1354
|
+
if (!o || o === "cimode") return;
|
|
1443
1355
|
this.services.languageUtils.toResolveHierarchy(o).forEach((l) => {
|
|
1444
1356
|
l !== "cimode" && r.indexOf(l) < 0 && r.push(l);
|
|
1445
1357
|
});
|
|
@@ -1451,17 +1363,15 @@ class Ie extends ct {
|
|
|
1451
1363
|
s(null);
|
|
1452
1364
|
}
|
|
1453
1365
|
reloadResources(t, n, s) {
|
|
1454
|
-
const i =
|
|
1455
|
-
return t || (t = this.languages), n || (n = this.options.ns), s || (s =
|
|
1366
|
+
const i = Fe();
|
|
1367
|
+
return typeof t == "function" && (s = t, t = void 0), typeof n == "function" && (s = n, n = void 0), t || (t = this.languages), n || (n = this.options.ns), s || (s = Qe), this.services.backendConnector.reload(t, n, (r) => {
|
|
1456
1368
|
i.resolve(), s(r);
|
|
1457
1369
|
}), i;
|
|
1458
1370
|
}
|
|
1459
1371
|
use(t) {
|
|
1460
|
-
if (!t)
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
1464
|
-
return t.type === "backend" && (this.modules.backend = t), (t.type === "logger" || t.log && t.warn && t.error) && (this.modules.logger = t), t.type === "languageDetector" && (this.modules.languageDetector = t), t.type === "i18nFormat" && (this.modules.i18nFormat = t), t.type === "postProcessor" && Cn.addPostProcessor(t), t.type === "formatter" && (this.modules.formatter = t), t.type === "3rdParty" && this.modules.external.push(t), this;
|
|
1372
|
+
if (!t) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
1373
|
+
if (!t.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
1374
|
+
return t.type === "backend" && (this.modules.backend = t), (t.type === "logger" || t.log && t.warn && t.error) && (this.modules.logger = t), t.type === "languageDetector" && (this.modules.languageDetector = t), t.type === "i18nFormat" && (this.modules.i18nFormat = t), t.type === "postProcessor" && Tn.addPostProcessor(t), t.type === "formatter" && (this.modules.formatter = t), t.type === "3rdParty" && this.modules.external.push(t), this;
|
|
1465
1375
|
}
|
|
1466
1376
|
setResolvedLanguage(t) {
|
|
1467
1377
|
if (!(!t || !this.languages) && !(["cimode", "dev"].indexOf(t) > -1))
|
|
@@ -1476,7 +1386,7 @@ class Ie extends ct {
|
|
|
1476
1386
|
changeLanguage(t, n) {
|
|
1477
1387
|
var s = this;
|
|
1478
1388
|
this.isLanguageChangingTo = t;
|
|
1479
|
-
const i =
|
|
1389
|
+
const i = Fe();
|
|
1480
1390
|
this.emit("languageChanging", t);
|
|
1481
1391
|
const r = (u) => {
|
|
1482
1392
|
this.language = u, this.languages = this.services.languageUtils.toResolveHierarchy(u), this.resolvedLanguage = void 0, this.setResolvedLanguage(u);
|
|
@@ -1488,7 +1398,7 @@ class Ie extends ct {
|
|
|
1488
1398
|
});
|
|
1489
1399
|
}, o = (u) => {
|
|
1490
1400
|
!t && !u && this.services.languageDetector && (u = []);
|
|
1491
|
-
const l =
|
|
1401
|
+
const l = _(u) ? u : this.services.languageUtils.getBestMatchFromCodes(u);
|
|
1492
1402
|
l && (this.language || r(l), this.translator.language || this.translator.changeLanguage(l), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(l)), this.loadResources(l, (h) => {
|
|
1493
1403
|
a(h, l);
|
|
1494
1404
|
});
|
|
@@ -1509,10 +1419,10 @@ class Ie extends ct {
|
|
|
1509
1419
|
};
|
|
1510
1420
|
u.lng = u.lng || r.lng, u.lngs = u.lngs || r.lngs, u.ns = u.ns || r.ns, u.keyPrefix !== "" && (u.keyPrefix = u.keyPrefix || s || r.keyPrefix);
|
|
1511
1421
|
const d = i.options.keySeparator || ".";
|
|
1512
|
-
let
|
|
1513
|
-
return u.keyPrefix && Array.isArray(a) ?
|
|
1422
|
+
let y;
|
|
1423
|
+
return u.keyPrefix && Array.isArray(a) ? y = a.map((k) => `${u.keyPrefix}${d}${k}`) : y = u.keyPrefix ? `${u.keyPrefix}${d}${a}` : a, i.t(y, u);
|
|
1514
1424
|
};
|
|
1515
|
-
return
|
|
1425
|
+
return _(t) ? r.lng = t : r.lngs = t, r.ns = n, r.keyPrefix = s, r;
|
|
1516
1426
|
}
|
|
1517
1427
|
t() {
|
|
1518
1428
|
return this.translator && this.translator.translate(...arguments);
|
|
@@ -1530,61 +1440,58 @@ class Ie extends ct {
|
|
|
1530
1440
|
if (!this.languages || !this.languages.length)
|
|
1531
1441
|
return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
|
|
1532
1442
|
const s = n.lng || this.resolvedLanguage || this.languages[0], i = this.options ? this.options.fallbackLng : !1, r = this.languages[this.languages.length - 1];
|
|
1533
|
-
if (s.toLowerCase() === "cimode")
|
|
1534
|
-
return !0;
|
|
1443
|
+
if (s.toLowerCase() === "cimode") return !0;
|
|
1535
1444
|
const a = (o, u) => {
|
|
1536
1445
|
const l = this.services.backendConnector.state[`${o}|${u}`];
|
|
1537
|
-
return l === -1 || l === 2;
|
|
1446
|
+
return l === -1 || l === 0 || l === 2;
|
|
1538
1447
|
};
|
|
1539
1448
|
if (n.precheck) {
|
|
1540
1449
|
const o = n.precheck(this, a);
|
|
1541
|
-
if (o !== void 0)
|
|
1542
|
-
return o;
|
|
1450
|
+
if (o !== void 0) return o;
|
|
1543
1451
|
}
|
|
1544
1452
|
return !!(this.hasResourceBundle(s, t) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(s, t) && (!i || a(r, t)));
|
|
1545
1453
|
}
|
|
1546
1454
|
loadNamespaces(t, n) {
|
|
1547
|
-
const s =
|
|
1548
|
-
return this.options.ns ? (
|
|
1455
|
+
const s = Fe();
|
|
1456
|
+
return this.options.ns ? (_(t) && (t = [t]), t.forEach((i) => {
|
|
1549
1457
|
this.options.ns.indexOf(i) < 0 && this.options.ns.push(i);
|
|
1550
1458
|
}), this.loadResources((i) => {
|
|
1551
1459
|
s.resolve(), n && n(i);
|
|
1552
1460
|
}), s) : (n && n(), Promise.resolve());
|
|
1553
1461
|
}
|
|
1554
1462
|
loadLanguages(t, n) {
|
|
1555
|
-
const s =
|
|
1556
|
-
|
|
1463
|
+
const s = Fe();
|
|
1464
|
+
_(t) && (t = [t]);
|
|
1557
1465
|
const i = this.options.preload || [], r = t.filter((a) => i.indexOf(a) < 0 && this.services.languageUtils.isSupportedCode(a));
|
|
1558
1466
|
return r.length ? (this.options.preload = i.concat(r), this.loadResources((a) => {
|
|
1559
1467
|
s.resolve(), n && n(a);
|
|
1560
1468
|
}), s) : (n && n(), Promise.resolve());
|
|
1561
1469
|
}
|
|
1562
1470
|
dir(t) {
|
|
1563
|
-
if (t || (t = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !t)
|
|
1564
|
-
|
|
1565
|
-
const n = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], s = this.services && this.services.languageUtils || new yn(wn());
|
|
1471
|
+
if (t || (t = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !t) return "rtl";
|
|
1472
|
+
const n = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], s = this.services && this.services.languageUtils || new Sn(kn());
|
|
1566
1473
|
return n.indexOf(s.getLanguagePartFromCode(t)) > -1 || t.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
1567
1474
|
}
|
|
1568
1475
|
static createInstance() {
|
|
1569
1476
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
|
1570
|
-
return new
|
|
1477
|
+
return new He(t, n);
|
|
1571
1478
|
}
|
|
1572
1479
|
cloneInstance() {
|
|
1573
|
-
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
1480
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Qe;
|
|
1574
1481
|
const s = t.forkResourceStore;
|
|
1575
1482
|
s && delete t.forkResourceStore;
|
|
1576
1483
|
const i = {
|
|
1577
1484
|
...this.options,
|
|
1578
1485
|
...t,
|
|
1579
1486
|
isClone: !0
|
|
1580
|
-
}, r = new
|
|
1487
|
+
}, r = new He(i);
|
|
1581
1488
|
return (t.debug !== void 0 || t.prefix !== void 0) && (r.logger = r.logger.clone(t)), ["store", "services", "language"].forEach((o) => {
|
|
1582
1489
|
r[o] = this[o];
|
|
1583
1490
|
}), r.services = {
|
|
1584
1491
|
...this.services
|
|
1585
1492
|
}, r.services.utils = {
|
|
1586
1493
|
hasLoadedNamespace: r.hasLoadedNamespace.bind(r)
|
|
1587
|
-
}, s && (r.store = new
|
|
1494
|
+
}, s && (r.store = new vn(this.store.data, i), r.services.resourceStore = r.store), r.translator = new ot(r.services, i), r.translator.on("*", function(o) {
|
|
1588
1495
|
for (var u = arguments.length, l = new Array(u > 1 ? u - 1 : 0), h = 1; h < u; h++)
|
|
1589
1496
|
l[h - 1] = arguments[h];
|
|
1590
1497
|
r.emit(o, ...l);
|
|
@@ -1602,8 +1509,8 @@ class Ie extends ct {
|
|
|
1602
1509
|
};
|
|
1603
1510
|
}
|
|
1604
1511
|
}
|
|
1605
|
-
const A =
|
|
1606
|
-
A.createInstance =
|
|
1512
|
+
const A = He.createInstance();
|
|
1513
|
+
A.createInstance = He.createInstance;
|
|
1607
1514
|
A.createInstance;
|
|
1608
1515
|
A.dir;
|
|
1609
1516
|
A.init;
|
|
@@ -1612,13 +1519,13 @@ A.reloadResources;
|
|
|
1612
1519
|
A.use;
|
|
1613
1520
|
A.changeLanguage;
|
|
1614
1521
|
A.getFixedT;
|
|
1615
|
-
const
|
|
1522
|
+
const Dt = A.t;
|
|
1616
1523
|
A.exists;
|
|
1617
1524
|
A.setDefaultNamespace;
|
|
1618
1525
|
A.hasLoadedNamespace;
|
|
1619
1526
|
A.loadNamespaces;
|
|
1620
1527
|
A.loadLanguages;
|
|
1621
|
-
const
|
|
1528
|
+
const Yt = {
|
|
1622
1529
|
d1: "<:d1:1159542168738873455>",
|
|
1623
1530
|
d2: "<:d2:1159542071049334814>",
|
|
1624
1531
|
d3: "<:d3:1159542073914032191>",
|
|
@@ -1740,61 +1647,61 @@ const Mt = {
|
|
|
1740
1647
|
equipment_adventurer_helmet: "<:Casque_cuir:1256965718432550953>",
|
|
1741
1648
|
equipment_adventurer_weapon: "<:Dague_cuir:1256965714141515837>",
|
|
1742
1649
|
equipment_adventurer_belt: "<:Ceinture_cuir:1256965593333108838>"
|
|
1743
|
-
},
|
|
1650
|
+
}, Nt = (e) => new Intl.NumberFormat("de-DE").format(e);
|
|
1744
1651
|
//! moment.js
|
|
1745
1652
|
//! version : 2.30.1
|
|
1746
1653
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
1747
1654
|
//! license : MIT
|
|
1748
1655
|
//! momentjs.com
|
|
1749
|
-
var
|
|
1656
|
+
var En;
|
|
1750
1657
|
function g() {
|
|
1751
|
-
return
|
|
1658
|
+
return En.apply(null, arguments);
|
|
1752
1659
|
}
|
|
1753
|
-
function
|
|
1754
|
-
|
|
1660
|
+
function Xs(e) {
|
|
1661
|
+
En = e;
|
|
1755
1662
|
}
|
|
1756
|
-
function
|
|
1663
|
+
function B(e) {
|
|
1757
1664
|
return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]";
|
|
1758
1665
|
}
|
|
1759
|
-
function
|
|
1666
|
+
function _e(e) {
|
|
1760
1667
|
return e != null && Object.prototype.toString.call(e) === "[object Object]";
|
|
1761
1668
|
}
|
|
1762
|
-
function
|
|
1669
|
+
function b(e, t) {
|
|
1763
1670
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
1764
1671
|
}
|
|
1765
|
-
function
|
|
1672
|
+
function Wt(e) {
|
|
1766
1673
|
if (Object.getOwnPropertyNames)
|
|
1767
1674
|
return Object.getOwnPropertyNames(e).length === 0;
|
|
1768
1675
|
var t;
|
|
1769
1676
|
for (t in e)
|
|
1770
|
-
if (
|
|
1677
|
+
if (b(e, t))
|
|
1771
1678
|
return !1;
|
|
1772
1679
|
return !0;
|
|
1773
1680
|
}
|
|
1774
|
-
function
|
|
1681
|
+
function I(e) {
|
|
1775
1682
|
return e === void 0;
|
|
1776
1683
|
}
|
|
1777
|
-
function
|
|
1684
|
+
function ue(e) {
|
|
1778
1685
|
return typeof e == "number" || Object.prototype.toString.call(e) === "[object Number]";
|
|
1779
1686
|
}
|
|
1780
|
-
function
|
|
1687
|
+
function ze(e) {
|
|
1781
1688
|
return e instanceof Date || Object.prototype.toString.call(e) === "[object Date]";
|
|
1782
1689
|
}
|
|
1783
|
-
function
|
|
1690
|
+
function Fn(e, t) {
|
|
1784
1691
|
var n = [], s, i = e.length;
|
|
1785
1692
|
for (s = 0; s < i; ++s)
|
|
1786
1693
|
n.push(t(e[s], s));
|
|
1787
1694
|
return n;
|
|
1788
1695
|
}
|
|
1789
|
-
function
|
|
1696
|
+
function he(e, t) {
|
|
1790
1697
|
for (var n in t)
|
|
1791
|
-
|
|
1792
|
-
return
|
|
1698
|
+
b(t, n) && (e[n] = t[n]);
|
|
1699
|
+
return b(t, "toString") && (e.toString = t.toString), b(t, "valueOf") && (e.valueOf = t.valueOf), e;
|
|
1793
1700
|
}
|
|
1794
|
-
function
|
|
1795
|
-
return
|
|
1701
|
+
function ee(e, t, n, s) {
|
|
1702
|
+
return rs(e, t, n, s, !0).utc();
|
|
1796
1703
|
}
|
|
1797
|
-
function
|
|
1704
|
+
function ei() {
|
|
1798
1705
|
return {
|
|
1799
1706
|
empty: !1,
|
|
1800
1707
|
unusedTokens: [],
|
|
@@ -1814,20 +1721,20 @@ function Js() {
|
|
|
1814
1721
|
weekdayMismatch: !1
|
|
1815
1722
|
};
|
|
1816
1723
|
}
|
|
1817
|
-
function
|
|
1818
|
-
return e._pf == null && (e._pf =
|
|
1724
|
+
function v(e) {
|
|
1725
|
+
return e._pf == null && (e._pf = ei()), e._pf;
|
|
1819
1726
|
}
|
|
1820
|
-
var
|
|
1821
|
-
Array.prototype.some ?
|
|
1727
|
+
var Ft;
|
|
1728
|
+
Array.prototype.some ? Ft = Array.prototype.some : Ft = function(e) {
|
|
1822
1729
|
var t = Object(this), n = t.length >>> 0, s;
|
|
1823
1730
|
for (s = 0; s < n; s++)
|
|
1824
1731
|
if (s in t && e.call(this, t[s], s, t))
|
|
1825
1732
|
return !0;
|
|
1826
1733
|
return !1;
|
|
1827
1734
|
};
|
|
1828
|
-
function
|
|
1735
|
+
function Vt(e) {
|
|
1829
1736
|
var t = null, n = !1, s = e._d && !isNaN(e._d.getTime());
|
|
1830
|
-
if (s && (t =
|
|
1737
|
+
if (s && (t = v(e), n = Ft.call(t.parsedDateParts, function(i) {
|
|
1831
1738
|
return i != null;
|
|
1832
1739
|
}), s = t.overflow < 0 && !t.empty && !t.invalidEra && !t.invalidMonth && !t.invalidWeekday && !t.weekdayMismatch && !t.nullInput && !t.invalidFormat && !t.userInvalidated && (!t.meridiem || t.meridiem && n), e._strict && (s = s && t.charsLeftOver === 0 && t.unusedTokens.length === 0 && t.bigHour === void 0)), Object.isFrozen == null || !Object.isFrozen(e))
|
|
1833
1740
|
e._isValid = s;
|
|
@@ -1835,30 +1742,30 @@ function $t(e) {
|
|
|
1835
1742
|
return s;
|
|
1836
1743
|
return e._isValid;
|
|
1837
1744
|
}
|
|
1838
|
-
function
|
|
1839
|
-
var t =
|
|
1840
|
-
return e != null ?
|
|
1745
|
+
function gt(e) {
|
|
1746
|
+
var t = ee(NaN);
|
|
1747
|
+
return e != null ? he(v(t), e) : v(t).userInvalidated = !0, t;
|
|
1841
1748
|
}
|
|
1842
|
-
var
|
|
1843
|
-
function
|
|
1844
|
-
var n, s, i, r =
|
|
1845
|
-
if (
|
|
1749
|
+
var Mn = g.momentProperties = [], Ct = !1;
|
|
1750
|
+
function Gt(e, t) {
|
|
1751
|
+
var n, s, i, r = Mn.length;
|
|
1752
|
+
if (I(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), I(t._i) || (e._i = t._i), I(t._f) || (e._f = t._f), I(t._l) || (e._l = t._l), I(t._strict) || (e._strict = t._strict), I(t._tzm) || (e._tzm = t._tzm), I(t._isUTC) || (e._isUTC = t._isUTC), I(t._offset) || (e._offset = t._offset), I(t._pf) || (e._pf = v(t)), I(t._locale) || (e._locale = t._locale), r > 0)
|
|
1846
1753
|
for (n = 0; n < r; n++)
|
|
1847
|
-
s =
|
|
1754
|
+
s = Mn[n], i = t[s], I(i) || (e[s] = i);
|
|
1848
1755
|
return e;
|
|
1849
1756
|
}
|
|
1850
|
-
function
|
|
1851
|
-
|
|
1757
|
+
function Ke(e) {
|
|
1758
|
+
Gt(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), Ct === !1 && (Ct = !0, g.updateOffset(this), Ct = !1);
|
|
1852
1759
|
}
|
|
1853
|
-
function
|
|
1854
|
-
return e instanceof
|
|
1760
|
+
function q(e) {
|
|
1761
|
+
return e instanceof Ke || e != null && e._isAMomentObject != null;
|
|
1855
1762
|
}
|
|
1856
|
-
function
|
|
1763
|
+
function An(e) {
|
|
1857
1764
|
g.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + e);
|
|
1858
1765
|
}
|
|
1859
|
-
function
|
|
1766
|
+
function V(e, t) {
|
|
1860
1767
|
var n = !0;
|
|
1861
|
-
return
|
|
1768
|
+
return he(function() {
|
|
1862
1769
|
if (g.deprecationHandler != null && g.deprecationHandler(null, e), n) {
|
|
1863
1770
|
var s = [], i, r, a, o = arguments.length;
|
|
1864
1771
|
for (r = 0; r < o; r++) {
|
|
@@ -1866,13 +1773,13 @@ function W(e, t) {
|
|
|
1866
1773
|
i += `
|
|
1867
1774
|
[` + r + "] ";
|
|
1868
1775
|
for (a in arguments[0])
|
|
1869
|
-
|
|
1776
|
+
b(arguments[0], a) && (i += a + ": " + arguments[0][a] + ", ");
|
|
1870
1777
|
i = i.slice(0, -2);
|
|
1871
1778
|
} else
|
|
1872
1779
|
i = arguments[r];
|
|
1873
1780
|
s.push(i);
|
|
1874
1781
|
}
|
|
1875
|
-
|
|
1782
|
+
An(
|
|
1876
1783
|
e + `
|
|
1877
1784
|
Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
1878
1785
|
` + new Error().stack
|
|
@@ -1881,42 +1788,42 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1881
1788
|
return t.apply(this, arguments);
|
|
1882
1789
|
}, t);
|
|
1883
1790
|
}
|
|
1884
|
-
var
|
|
1885
|
-
function
|
|
1886
|
-
g.deprecationHandler != null && g.deprecationHandler(e, t),
|
|
1791
|
+
var Dn = {};
|
|
1792
|
+
function In(e, t) {
|
|
1793
|
+
g.deprecationHandler != null && g.deprecationHandler(e, t), Dn[e] || (An(t), Dn[e] = !0);
|
|
1887
1794
|
}
|
|
1888
1795
|
g.suppressDeprecationWarnings = !1;
|
|
1889
1796
|
g.deprecationHandler = null;
|
|
1890
|
-
function
|
|
1797
|
+
function te(e) {
|
|
1891
1798
|
return typeof Function < "u" && e instanceof Function || Object.prototype.toString.call(e) === "[object Function]";
|
|
1892
1799
|
}
|
|
1893
|
-
function
|
|
1800
|
+
function ti(e) {
|
|
1894
1801
|
var t, n;
|
|
1895
1802
|
for (n in e)
|
|
1896
|
-
|
|
1803
|
+
b(e, n) && (t = e[n], te(t) ? this[n] = t : this["_" + n] = t);
|
|
1897
1804
|
this._config = e, this._dayOfMonthOrdinalParseLenient = new RegExp(
|
|
1898
1805
|
(this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
|
|
1899
1806
|
);
|
|
1900
1807
|
}
|
|
1901
|
-
function
|
|
1902
|
-
var n =
|
|
1808
|
+
function At(e, t) {
|
|
1809
|
+
var n = he({}, e), s;
|
|
1903
1810
|
for (s in t)
|
|
1904
|
-
|
|
1811
|
+
b(t, s) && (_e(e[s]) && _e(t[s]) ? (n[s] = {}, he(n[s], e[s]), he(n[s], t[s])) : t[s] != null ? n[s] = t[s] : delete n[s]);
|
|
1905
1812
|
for (s in e)
|
|
1906
|
-
|
|
1813
|
+
b(e, s) && !b(t, s) && _e(e[s]) && (n[s] = he({}, n[s]));
|
|
1907
1814
|
return n;
|
|
1908
1815
|
}
|
|
1909
|
-
function
|
|
1816
|
+
function zt(e) {
|
|
1910
1817
|
e != null && this.set(e);
|
|
1911
1818
|
}
|
|
1912
|
-
var
|
|
1913
|
-
Object.keys ?
|
|
1819
|
+
var It;
|
|
1820
|
+
Object.keys ? It = Object.keys : It = function(e) {
|
|
1914
1821
|
var t, n = [];
|
|
1915
1822
|
for (t in e)
|
|
1916
|
-
|
|
1823
|
+
b(e, t) && n.push(t);
|
|
1917
1824
|
return n;
|
|
1918
1825
|
};
|
|
1919
|
-
var
|
|
1826
|
+
var ni = {
|
|
1920
1827
|
sameDay: "[Today at] LT",
|
|
1921
1828
|
nextDay: "[Tomorrow at] LT",
|
|
1922
1829
|
nextWeek: "dddd [at] LT",
|
|
@@ -1924,58 +1831,58 @@ var Qs = {
|
|
|
1924
1831
|
lastWeek: "[Last] dddd [at] LT",
|
|
1925
1832
|
sameElse: "L"
|
|
1926
1833
|
};
|
|
1927
|
-
function
|
|
1834
|
+
function si(e, t, n) {
|
|
1928
1835
|
var s = this._calendar[e] || this._calendar.sameElse;
|
|
1929
|
-
return
|
|
1836
|
+
return te(s) ? s.call(t, n) : s;
|
|
1930
1837
|
}
|
|
1931
|
-
function
|
|
1838
|
+
function X(e, t, n) {
|
|
1932
1839
|
var s = "" + Math.abs(e), i = t - s.length, r = e >= 0;
|
|
1933
1840
|
return (r ? n ? "+" : "" : "-") + Math.pow(10, Math.max(0, i)).toString().substr(1) + s;
|
|
1934
1841
|
}
|
|
1935
|
-
var
|
|
1842
|
+
var Kt = /(\[[^\[]*\])|(\\)?([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, Xe = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, Lt = {}, Oe = {};
|
|
1936
1843
|
function p(e, t, n, s) {
|
|
1937
1844
|
var i = s;
|
|
1938
1845
|
typeof s == "string" && (i = function() {
|
|
1939
1846
|
return this[s]();
|
|
1940
|
-
}), e && (
|
|
1941
|
-
return
|
|
1942
|
-
}), n && (
|
|
1847
|
+
}), e && (Oe[e] = i), t && (Oe[t[0]] = function() {
|
|
1848
|
+
return X(i.apply(this, arguments), t[1], t[2]);
|
|
1849
|
+
}), n && (Oe[n] = function() {
|
|
1943
1850
|
return this.localeData().ordinal(
|
|
1944
1851
|
i.apply(this, arguments),
|
|
1945
1852
|
e
|
|
1946
1853
|
);
|
|
1947
1854
|
});
|
|
1948
1855
|
}
|
|
1949
|
-
function
|
|
1856
|
+
function ii(e) {
|
|
1950
1857
|
return e.match(/\[[\s\S]/) ? e.replace(/^\[|\]$/g, "") : e.replace(/\\/g, "");
|
|
1951
1858
|
}
|
|
1952
|
-
function
|
|
1953
|
-
var t = e.match(
|
|
1859
|
+
function ri(e) {
|
|
1860
|
+
var t = e.match(Kt), n, s;
|
|
1954
1861
|
for (n = 0, s = t.length; n < s; n++)
|
|
1955
|
-
|
|
1862
|
+
Oe[t[n]] ? t[n] = Oe[t[n]] : t[n] = ii(t[n]);
|
|
1956
1863
|
return function(i) {
|
|
1957
1864
|
var r = "", a;
|
|
1958
1865
|
for (a = 0; a < s; a++)
|
|
1959
|
-
r +=
|
|
1866
|
+
r += te(t[a]) ? t[a].call(i, e) : t[a];
|
|
1960
1867
|
return r;
|
|
1961
1868
|
};
|
|
1962
1869
|
}
|
|
1963
|
-
function
|
|
1964
|
-
return e.isValid() ? (t =
|
|
1870
|
+
function tt(e, t) {
|
|
1871
|
+
return e.isValid() ? (t = jn(t, e.localeData()), Lt[t] = Lt[t] || ri(t), Lt[t](e)) : e.localeData().invalidDate();
|
|
1965
1872
|
}
|
|
1966
|
-
function
|
|
1873
|
+
function jn(e, t) {
|
|
1967
1874
|
var n = 5;
|
|
1968
1875
|
function s(i) {
|
|
1969
1876
|
return t.longDateFormat(i) || i;
|
|
1970
1877
|
}
|
|
1971
|
-
for (
|
|
1878
|
+
for (Xe.lastIndex = 0; n >= 0 && Xe.test(e); )
|
|
1972
1879
|
e = e.replace(
|
|
1973
|
-
|
|
1880
|
+
Xe,
|
|
1974
1881
|
s
|
|
1975
|
-
),
|
|
1882
|
+
), Xe.lastIndex = 0, n -= 1;
|
|
1976
1883
|
return e;
|
|
1977
1884
|
}
|
|
1978
|
-
var
|
|
1885
|
+
var ai = {
|
|
1979
1886
|
LTS: "h:mm:ss A",
|
|
1980
1887
|
LT: "h:mm A",
|
|
1981
1888
|
L: "MM/DD/YYYY",
|
|
@@ -1983,21 +1890,21 @@ var ni = {
|
|
|
1983
1890
|
LLL: "MMMM D, YYYY h:mm A",
|
|
1984
1891
|
LLLL: "dddd, MMMM D, YYYY h:mm A"
|
|
1985
1892
|
};
|
|
1986
|
-
function
|
|
1893
|
+
function oi(e) {
|
|
1987
1894
|
var t = this._longDateFormat[e], n = this._longDateFormat[e.toUpperCase()];
|
|
1988
|
-
return t || !n ? t : (this._longDateFormat[e] = n.match(
|
|
1895
|
+
return t || !n ? t : (this._longDateFormat[e] = n.match(Kt).map(function(s) {
|
|
1989
1896
|
return s === "MMMM" || s === "MM" || s === "DD" || s === "dddd" ? s.slice(1) : s;
|
|
1990
1897
|
}).join(""), this._longDateFormat[e]);
|
|
1991
1898
|
}
|
|
1992
|
-
var
|
|
1993
|
-
function
|
|
1899
|
+
var ui = "Invalid date";
|
|
1900
|
+
function li() {
|
|
1994
1901
|
return this._invalidDate;
|
|
1995
1902
|
}
|
|
1996
|
-
var
|
|
1997
|
-
function
|
|
1903
|
+
var di = "%d", hi = /\d{1,2}/;
|
|
1904
|
+
function ci(e) {
|
|
1998
1905
|
return this._ordinal.replace("%d", e);
|
|
1999
1906
|
}
|
|
2000
|
-
var
|
|
1907
|
+
var fi = {
|
|
2001
1908
|
future: "in %s",
|
|
2002
1909
|
past: "%s ago",
|
|
2003
1910
|
s: "a few seconds",
|
|
@@ -2015,15 +1922,15 @@ var li = {
|
|
|
2015
1922
|
y: "a year",
|
|
2016
1923
|
yy: "%d years"
|
|
2017
1924
|
};
|
|
2018
|
-
function
|
|
1925
|
+
function gi(e, t, n, s) {
|
|
2019
1926
|
var i = this._relativeTime[n];
|
|
2020
|
-
return
|
|
1927
|
+
return te(i) ? i(e, t, n, s) : i.replace(/%d/i, e);
|
|
2021
1928
|
}
|
|
2022
|
-
function
|
|
1929
|
+
function mi(e, t) {
|
|
2023
1930
|
var n = this._relativeTime[e > 0 ? "future" : "past"];
|
|
2024
|
-
return
|
|
1931
|
+
return te(n) ? n(t) : n.replace(/%s/i, t);
|
|
2025
1932
|
}
|
|
2026
|
-
var
|
|
1933
|
+
var Yn = {
|
|
2027
1934
|
D: "date",
|
|
2028
1935
|
dates: "date",
|
|
2029
1936
|
date: "date",
|
|
@@ -2073,16 +1980,16 @@ var kn = {
|
|
|
2073
1980
|
years: "year",
|
|
2074
1981
|
year: "year"
|
|
2075
1982
|
};
|
|
2076
|
-
function
|
|
2077
|
-
return typeof e == "string" ?
|
|
1983
|
+
function G(e) {
|
|
1984
|
+
return typeof e == "string" ? Yn[e] || Yn[e.toLowerCase()] : void 0;
|
|
2078
1985
|
}
|
|
2079
|
-
function
|
|
1986
|
+
function Bt(e) {
|
|
2080
1987
|
var t = {}, n, s;
|
|
2081
1988
|
for (s in e)
|
|
2082
|
-
|
|
1989
|
+
b(e, s) && (n = G(s), n && (t[n] = e[s]));
|
|
2083
1990
|
return t;
|
|
2084
1991
|
}
|
|
2085
|
-
var
|
|
1992
|
+
var pi = {
|
|
2086
1993
|
date: 9,
|
|
2087
1994
|
day: 11,
|
|
2088
1995
|
weekday: 11,
|
|
@@ -2100,26 +2007,26 @@ var ci = {
|
|
|
2100
2007
|
isoWeek: 5,
|
|
2101
2008
|
year: 1
|
|
2102
2009
|
};
|
|
2103
|
-
function
|
|
2010
|
+
function yi(e) {
|
|
2104
2011
|
var t = [], n;
|
|
2105
2012
|
for (n in e)
|
|
2106
|
-
|
|
2013
|
+
b(e, n) && t.push({ unit: n, priority: pi[n] });
|
|
2107
2014
|
return t.sort(function(s, i) {
|
|
2108
2015
|
return s.priority - i.priority;
|
|
2109
2016
|
}), t;
|
|
2110
2017
|
}
|
|
2111
|
-
var
|
|
2112
|
-
|
|
2018
|
+
var Un = /\d/, $ = /\d\d/, Hn = /\d{3}/, qt = /\d{4}/, mt = /[+-]?\d{6}/, D = /\d\d?/, $n = /\d\d\d\d?/, Wn = /\d\d\d\d\d\d?/, pt = /\d{1,3}/, Jt = /\d{1,4}/, yt = /[+-]?\d{1,6}/, Ye = /\d+/, _t = /[+-]?\d+/, _i = /Z|[+-]\d\d:?\d\d/gi, vt = /Z|[+-]\d\d(?::?\d\d)?/gi, vi = /[+-]?\d+(\.\d{1,3})?/, Be = /[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, Ne = /^[1-9]\d?/, Zt = /^([1-9]\d|\d)/, ut;
|
|
2019
|
+
ut = {};
|
|
2113
2020
|
function m(e, t, n) {
|
|
2114
|
-
|
|
2021
|
+
ut[e] = te(t) ? t : function(s, i) {
|
|
2115
2022
|
return s && n ? n : t;
|
|
2116
2023
|
};
|
|
2117
2024
|
}
|
|
2118
|
-
function
|
|
2119
|
-
return
|
|
2025
|
+
function wi(e, t) {
|
|
2026
|
+
return b(ut, e) ? ut[e](t._strict, t._locale) : new RegExp(Si(e));
|
|
2120
2027
|
}
|
|
2121
|
-
function
|
|
2122
|
-
return
|
|
2028
|
+
function Si(e) {
|
|
2029
|
+
return ae(
|
|
2123
2030
|
e.replace("\\", "").replace(
|
|
2124
2031
|
/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
|
|
2125
2032
|
function(t, n, s, i, r) {
|
|
@@ -2128,39 +2035,39 @@ function yi(e) {
|
|
|
2128
2035
|
)
|
|
2129
2036
|
);
|
|
2130
2037
|
}
|
|
2131
|
-
function
|
|
2038
|
+
function ae(e) {
|
|
2132
2039
|
return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
2133
2040
|
}
|
|
2134
|
-
function
|
|
2041
|
+
function W(e) {
|
|
2135
2042
|
return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
|
|
2136
2043
|
}
|
|
2137
|
-
function
|
|
2044
|
+
function w(e) {
|
|
2138
2045
|
var t = +e, n = 0;
|
|
2139
|
-
return t !== 0 && isFinite(t) && (n =
|
|
2046
|
+
return t !== 0 && isFinite(t) && (n = W(t)), n;
|
|
2140
2047
|
}
|
|
2141
|
-
var
|
|
2142
|
-
function
|
|
2048
|
+
var jt = {};
|
|
2049
|
+
function O(e, t) {
|
|
2143
2050
|
var n, s = t, i;
|
|
2144
|
-
for (typeof e == "string" && (e = [e]),
|
|
2145
|
-
a[t] =
|
|
2051
|
+
for (typeof e == "string" && (e = [e]), ue(t) && (s = function(r, a) {
|
|
2052
|
+
a[t] = w(r);
|
|
2146
2053
|
}), i = e.length, n = 0; n < i; n++)
|
|
2147
|
-
|
|
2054
|
+
jt[e[n]] = s;
|
|
2148
2055
|
}
|
|
2149
|
-
function
|
|
2150
|
-
|
|
2056
|
+
function qe(e, t) {
|
|
2057
|
+
O(e, function(n, s, i, r) {
|
|
2151
2058
|
i._w = i._w || {}, t(n, i._w, i, r);
|
|
2152
2059
|
});
|
|
2153
2060
|
}
|
|
2154
|
-
function
|
|
2155
|
-
t != null &&
|
|
2061
|
+
function bi(e, t, n) {
|
|
2062
|
+
t != null && b(jt, e) && jt[e](t, n._a, n, e);
|
|
2156
2063
|
}
|
|
2157
|
-
function
|
|
2064
|
+
function wt(e) {
|
|
2158
2065
|
return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
|
|
2159
2066
|
}
|
|
2160
|
-
var T = 0,
|
|
2067
|
+
var T = 0, ie = 1, Z = 2, P = 3, K = 4, re = 5, ye = 6, xi = 7, ki = 8;
|
|
2161
2068
|
p("Y", 0, 0, function() {
|
|
2162
2069
|
var e = this.year();
|
|
2163
|
-
return e <= 9999 ?
|
|
2070
|
+
return e <= 9999 ? X(e, 4) : "+" + e;
|
|
2164
2071
|
});
|
|
2165
2072
|
p(0, ["YY", 2], 0, function() {
|
|
2166
2073
|
return this.year() % 100;
|
|
@@ -2168,37 +2075,37 @@ p(0, ["YY", 2], 0, function() {
|
|
|
2168
2075
|
p(0, ["YYYY", 4], 0, "year");
|
|
2169
2076
|
p(0, ["YYYYY", 5], 0, "year");
|
|
2170
2077
|
p(0, ["YYYYYY", 6, !0], 0, "year");
|
|
2171
|
-
m("Y",
|
|
2172
|
-
m("YY",
|
|
2173
|
-
m("YYYY",
|
|
2174
|
-
m("YYYYY",
|
|
2175
|
-
m("YYYYYY",
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
t[T] = e.length === 2 ? g.parseTwoDigitYear(e) :
|
|
2078
|
+
m("Y", _t);
|
|
2079
|
+
m("YY", D, $);
|
|
2080
|
+
m("YYYY", Jt, qt);
|
|
2081
|
+
m("YYYYY", yt, mt);
|
|
2082
|
+
m("YYYYYY", yt, mt);
|
|
2083
|
+
O(["YYYYY", "YYYYYY"], T);
|
|
2084
|
+
O("YYYY", function(e, t) {
|
|
2085
|
+
t[T] = e.length === 2 ? g.parseTwoDigitYear(e) : w(e);
|
|
2179
2086
|
});
|
|
2180
|
-
|
|
2087
|
+
O("YY", function(e, t) {
|
|
2181
2088
|
t[T] = g.parseTwoDigitYear(e);
|
|
2182
2089
|
});
|
|
2183
|
-
|
|
2090
|
+
O("Y", function(e, t) {
|
|
2184
2091
|
t[T] = parseInt(e, 10);
|
|
2185
2092
|
});
|
|
2186
|
-
function
|
|
2187
|
-
return
|
|
2093
|
+
function Ue(e) {
|
|
2094
|
+
return wt(e) ? 366 : 365;
|
|
2188
2095
|
}
|
|
2189
2096
|
g.parseTwoDigitYear = function(e) {
|
|
2190
|
-
return
|
|
2097
|
+
return w(e) + (w(e) > 68 ? 1900 : 2e3);
|
|
2191
2098
|
};
|
|
2192
|
-
var
|
|
2193
|
-
function
|
|
2194
|
-
return
|
|
2099
|
+
var Vn = Ce("FullYear", !0);
|
|
2100
|
+
function Oi() {
|
|
2101
|
+
return wt(this.year());
|
|
2195
2102
|
}
|
|
2196
|
-
function
|
|
2103
|
+
function Ce(e, t) {
|
|
2197
2104
|
return function(n) {
|
|
2198
|
-
return n != null ? (
|
|
2105
|
+
return n != null ? (Gn(this, e, n), g.updateOffset(this, t), this) : $e(this, e);
|
|
2199
2106
|
};
|
|
2200
2107
|
}
|
|
2201
|
-
function
|
|
2108
|
+
function $e(e, t) {
|
|
2202
2109
|
if (!e.isValid())
|
|
2203
2110
|
return NaN;
|
|
2204
2111
|
var n = e._d, s = e._isUTC;
|
|
@@ -2223,7 +2130,7 @@ function Ue(e, t) {
|
|
|
2223
2130
|
return NaN;
|
|
2224
2131
|
}
|
|
2225
2132
|
}
|
|
2226
|
-
function
|
|
2133
|
+
function Gn(e, t, n) {
|
|
2227
2134
|
var s, i, r, a, o;
|
|
2228
2135
|
if (!(!e.isValid() || isNaN(n))) {
|
|
2229
2136
|
switch (s = e._d, i = e._isUTC, t) {
|
|
@@ -2242,38 +2149,38 @@ function Hn(e, t, n) {
|
|
|
2242
2149
|
default:
|
|
2243
2150
|
return;
|
|
2244
2151
|
}
|
|
2245
|
-
r = n, a = e.month(), o = e.date(), o = o === 29 && a === 1 && !
|
|
2152
|
+
r = n, a = e.month(), o = e.date(), o = o === 29 && a === 1 && !wt(r) ? 28 : o, i ? s.setUTCFullYear(r, a, o) : s.setFullYear(r, a, o);
|
|
2246
2153
|
}
|
|
2247
2154
|
}
|
|
2248
|
-
function
|
|
2249
|
-
return e =
|
|
2155
|
+
function Mi(e) {
|
|
2156
|
+
return e = G(e), te(this[e]) ? this[e]() : this;
|
|
2250
2157
|
}
|
|
2251
|
-
function
|
|
2158
|
+
function Di(e, t) {
|
|
2252
2159
|
if (typeof e == "object") {
|
|
2253
|
-
e =
|
|
2254
|
-
var n =
|
|
2160
|
+
e = Bt(e);
|
|
2161
|
+
var n = yi(e), s, i = n.length;
|
|
2255
2162
|
for (s = 0; s < i; s++)
|
|
2256
2163
|
this[n[s].unit](e[n[s].unit]);
|
|
2257
|
-
} else if (e =
|
|
2164
|
+
} else if (e = G(e), te(this[e]))
|
|
2258
2165
|
return this[e](t);
|
|
2259
2166
|
return this;
|
|
2260
2167
|
}
|
|
2261
|
-
function
|
|
2168
|
+
function Yi(e, t) {
|
|
2262
2169
|
return (e % t + t) % t;
|
|
2263
2170
|
}
|
|
2264
|
-
var
|
|
2265
|
-
Array.prototype.indexOf ?
|
|
2171
|
+
var R;
|
|
2172
|
+
Array.prototype.indexOf ? R = Array.prototype.indexOf : R = function(e) {
|
|
2266
2173
|
var t;
|
|
2267
2174
|
for (t = 0; t < this.length; ++t)
|
|
2268
2175
|
if (this[t] === e)
|
|
2269
2176
|
return t;
|
|
2270
2177
|
return -1;
|
|
2271
2178
|
};
|
|
2272
|
-
function
|
|
2179
|
+
function Qt(e, t) {
|
|
2273
2180
|
if (isNaN(e) || isNaN(t))
|
|
2274
2181
|
return NaN;
|
|
2275
|
-
var n =
|
|
2276
|
-
return e += (t - n) / 12, n === 1 ?
|
|
2182
|
+
var n = Yi(t, 12);
|
|
2183
|
+
return e += (t - n) / 12, n === 1 ? wt(e) ? 29 : 28 : 31 - n % 7 % 2;
|
|
2277
2184
|
}
|
|
2278
2185
|
p("M", ["MM", 2], "Mo", function() {
|
|
2279
2186
|
return this.month() + 1;
|
|
@@ -2284,46 +2191,46 @@ p("MMM", 0, 0, function(e) {
|
|
|
2284
2191
|
p("MMMM", 0, 0, function(e) {
|
|
2285
2192
|
return this.localeData().months(this, e);
|
|
2286
2193
|
});
|
|
2287
|
-
m("M",
|
|
2288
|
-
m("MM",
|
|
2194
|
+
m("M", D, Ne);
|
|
2195
|
+
m("MM", D, $);
|
|
2289
2196
|
m("MMM", function(e, t) {
|
|
2290
2197
|
return t.monthsShortRegex(e);
|
|
2291
2198
|
});
|
|
2292
2199
|
m("MMMM", function(e, t) {
|
|
2293
2200
|
return t.monthsRegex(e);
|
|
2294
2201
|
});
|
|
2295
|
-
|
|
2296
|
-
t[
|
|
2202
|
+
O(["M", "MM"], function(e, t) {
|
|
2203
|
+
t[ie] = w(e) - 1;
|
|
2297
2204
|
});
|
|
2298
|
-
|
|
2205
|
+
O(["MMM", "MMMM"], function(e, t, n, s) {
|
|
2299
2206
|
var i = n._locale.monthsParse(e, s, n._strict);
|
|
2300
|
-
i != null ? t[
|
|
2207
|
+
i != null ? t[ie] = i : v(n).invalidMonth = e;
|
|
2301
2208
|
});
|
|
2302
|
-
var
|
|
2209
|
+
var Ni = "January_February_March_April_May_June_July_August_September_October_November_December".split(
|
|
2303
2210
|
"_"
|
|
2304
|
-
),
|
|
2305
|
-
function
|
|
2306
|
-
return e ?
|
|
2211
|
+
), zn = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), Kn = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, Ci = Be, Li = Be;
|
|
2212
|
+
function Ri(e, t) {
|
|
2213
|
+
return e ? B(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || Kn).test(t) ? "format" : "standalone"][e.month()] : B(this._months) ? this._months : this._months.standalone;
|
|
2307
2214
|
}
|
|
2308
|
-
function
|
|
2309
|
-
return e ?
|
|
2215
|
+
function Pi(e, t) {
|
|
2216
|
+
return e ? B(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[Kn.test(t) ? "format" : "standalone"][e.month()] : B(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
|
|
2310
2217
|
}
|
|
2311
|
-
function
|
|
2218
|
+
function Ti(e, t, n) {
|
|
2312
2219
|
var s, i, r, a = e.toLocaleLowerCase();
|
|
2313
2220
|
if (!this._monthsParse)
|
|
2314
2221
|
for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], s = 0; s < 12; ++s)
|
|
2315
|
-
r =
|
|
2222
|
+
r = ee([2e3, s]), this._shortMonthsParse[s] = this.monthsShort(
|
|
2316
2223
|
r,
|
|
2317
2224
|
""
|
|
2318
2225
|
).toLocaleLowerCase(), this._longMonthsParse[s] = this.months(r, "").toLocaleLowerCase();
|
|
2319
|
-
return n ? t === "MMM" ? (i =
|
|
2226
|
+
return n ? t === "MMM" ? (i = R.call(this._shortMonthsParse, a), i !== -1 ? i : null) : (i = R.call(this._longMonthsParse, a), i !== -1 ? i : null) : t === "MMM" ? (i = R.call(this._shortMonthsParse, a), i !== -1 ? i : (i = R.call(this._longMonthsParse, a), i !== -1 ? i : null)) : (i = R.call(this._longMonthsParse, a), i !== -1 ? i : (i = R.call(this._shortMonthsParse, a), i !== -1 ? i : null));
|
|
2320
2227
|
}
|
|
2321
|
-
function
|
|
2228
|
+
function Ei(e, t, n) {
|
|
2322
2229
|
var s, i, r;
|
|
2323
2230
|
if (this._monthsParseExact)
|
|
2324
|
-
return
|
|
2231
|
+
return Ti.call(this, e, t, n);
|
|
2325
2232
|
for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), s = 0; s < 12; s++)
|
|
2326
|
-
if (i =
|
|
2233
|
+
if (i = ee([2e3, s]), n && !this._longMonthsParse[s] && (this._longMonthsParse[s] = new RegExp(
|
|
2327
2234
|
"^" + this.months(i, "").replace(".", "") + "$",
|
|
2328
2235
|
"i"
|
|
2329
2236
|
), this._shortMonthsParse[s] = new RegExp(
|
|
@@ -2332,37 +2239,37 @@ function Li(e, t, n) {
|
|
|
2332
2239
|
)), !n && !this._monthsParse[s] && (r = "^" + this.months(i, "") + "|^" + this.monthsShort(i, ""), this._monthsParse[s] = new RegExp(r.replace(".", ""), "i")), n && t === "MMMM" && this._longMonthsParse[s].test(e) || n && t === "MMM" && this._shortMonthsParse[s].test(e) || !n && this._monthsParse[s].test(e))
|
|
2333
2240
|
return s;
|
|
2334
2241
|
}
|
|
2335
|
-
function
|
|
2242
|
+
function Bn(e, t) {
|
|
2336
2243
|
if (!e.isValid())
|
|
2337
2244
|
return e;
|
|
2338
2245
|
if (typeof t == "string") {
|
|
2339
2246
|
if (/^\d+$/.test(t))
|
|
2340
|
-
t =
|
|
2341
|
-
else if (t = e.localeData().monthsParse(t), !
|
|
2247
|
+
t = w(t);
|
|
2248
|
+
else if (t = e.localeData().monthsParse(t), !ue(t))
|
|
2342
2249
|
return e;
|
|
2343
2250
|
}
|
|
2344
2251
|
var n = t, s = e.date();
|
|
2345
|
-
return s = s < 29 ? s : Math.min(s,
|
|
2252
|
+
return s = s < 29 ? s : Math.min(s, Qt(e.year(), n)), e._isUTC ? e._d.setUTCMonth(n, s) : e._d.setMonth(n, s), e;
|
|
2346
2253
|
}
|
|
2347
|
-
function
|
|
2348
|
-
return e != null ? (
|
|
2254
|
+
function qn(e) {
|
|
2255
|
+
return e != null ? (Bn(this, e), g.updateOffset(this, !0), this) : $e(this, "Month");
|
|
2349
2256
|
}
|
|
2350
|
-
function
|
|
2351
|
-
return
|
|
2257
|
+
function Fi() {
|
|
2258
|
+
return Qt(this.year(), this.month());
|
|
2352
2259
|
}
|
|
2353
|
-
function
|
|
2354
|
-
return this._monthsParseExact ? (
|
|
2260
|
+
function Ai(e) {
|
|
2261
|
+
return this._monthsParseExact ? (b(this, "_monthsRegex") || Jn.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (b(this, "_monthsShortRegex") || (this._monthsShortRegex = Ci), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex);
|
|
2355
2262
|
}
|
|
2356
|
-
function
|
|
2357
|
-
return this._monthsParseExact ? (
|
|
2263
|
+
function Ii(e) {
|
|
2264
|
+
return this._monthsParseExact ? (b(this, "_monthsRegex") || Jn.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : (b(this, "_monthsRegex") || (this._monthsRegex = Li), this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex);
|
|
2358
2265
|
}
|
|
2359
|
-
function
|
|
2266
|
+
function Jn() {
|
|
2360
2267
|
function e(u, l) {
|
|
2361
2268
|
return l.length - u.length;
|
|
2362
2269
|
}
|
|
2363
2270
|
var t = [], n = [], s = [], i, r, a, o;
|
|
2364
2271
|
for (i = 0; i < 12; i++)
|
|
2365
|
-
r =
|
|
2272
|
+
r = ee([2e3, i]), a = ae(this.monthsShort(r, "")), o = ae(this.months(r, "")), t.push(a), n.push(o), s.push(o), s.push(a);
|
|
2366
2273
|
t.sort(e), n.sort(e), s.sort(e), this._monthsRegex = new RegExp("^(" + s.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(
|
|
2367
2274
|
"^(" + n.join("|") + ")",
|
|
2368
2275
|
"i"
|
|
@@ -2371,69 +2278,69 @@ function zn() {
|
|
|
2371
2278
|
"i"
|
|
2372
2279
|
);
|
|
2373
2280
|
}
|
|
2374
|
-
function
|
|
2281
|
+
function ji(e, t, n, s, i, r, a) {
|
|
2375
2282
|
var o;
|
|
2376
2283
|
return e < 100 && e >= 0 ? (o = new Date(e + 400, t, n, s, i, r, a), isFinite(o.getFullYear()) && o.setFullYear(e)) : o = new Date(e, t, n, s, i, r, a), o;
|
|
2377
2284
|
}
|
|
2378
|
-
function
|
|
2285
|
+
function We(e) {
|
|
2379
2286
|
var t, n;
|
|
2380
2287
|
return e < 100 && e >= 0 ? (n = Array.prototype.slice.call(arguments), n[0] = e + 400, t = new Date(Date.UTC.apply(null, n)), isFinite(t.getUTCFullYear()) && t.setUTCFullYear(e)) : t = new Date(Date.UTC.apply(null, arguments)), t;
|
|
2381
2288
|
}
|
|
2382
|
-
function
|
|
2383
|
-
var s = 7 + t - n, i = (7 +
|
|
2289
|
+
function lt(e, t, n) {
|
|
2290
|
+
var s = 7 + t - n, i = (7 + We(e, 0, s).getUTCDay() - t) % 7;
|
|
2384
2291
|
return -i + s - 1;
|
|
2385
2292
|
}
|
|
2386
|
-
function
|
|
2387
|
-
var r = (7 + n - s) % 7, a =
|
|
2388
|
-
return o <= 0 ? (u = e - 1, l =
|
|
2293
|
+
function Zn(e, t, n, s, i) {
|
|
2294
|
+
var r = (7 + n - s) % 7, a = lt(e, s, i), o = 1 + 7 * (t - 1) + r + a, u, l;
|
|
2295
|
+
return o <= 0 ? (u = e - 1, l = Ue(u) + o) : o > Ue(e) ? (u = e + 1, l = o - Ue(e)) : (u = e, l = o), {
|
|
2389
2296
|
year: u,
|
|
2390
2297
|
dayOfYear: l
|
|
2391
2298
|
};
|
|
2392
2299
|
}
|
|
2393
|
-
function
|
|
2394
|
-
var s =
|
|
2395
|
-
return i < 1 ? (a = e.year() - 1, r = i +
|
|
2300
|
+
function Ve(e, t, n) {
|
|
2301
|
+
var s = lt(e.year(), t, n), i = Math.floor((e.dayOfYear() - s - 1) / 7) + 1, r, a;
|
|
2302
|
+
return i < 1 ? (a = e.year() - 1, r = i + oe(a, t, n)) : i > oe(e.year(), t, n) ? (r = i - oe(e.year(), t, n), a = e.year() + 1) : (a = e.year(), r = i), {
|
|
2396
2303
|
week: r,
|
|
2397
2304
|
year: a
|
|
2398
2305
|
};
|
|
2399
2306
|
}
|
|
2400
|
-
function
|
|
2401
|
-
var s =
|
|
2402
|
-
return (
|
|
2307
|
+
function oe(e, t, n) {
|
|
2308
|
+
var s = lt(e, t, n), i = lt(e + 1, t, n);
|
|
2309
|
+
return (Ue(e) - s + i) / 7;
|
|
2403
2310
|
}
|
|
2404
2311
|
p("w", ["ww", 2], "wo", "week");
|
|
2405
2312
|
p("W", ["WW", 2], "Wo", "isoWeek");
|
|
2406
|
-
m("w",
|
|
2407
|
-
m("ww",
|
|
2408
|
-
m("W",
|
|
2409
|
-
m("WW",
|
|
2410
|
-
|
|
2313
|
+
m("w", D, Ne);
|
|
2314
|
+
m("ww", D, $);
|
|
2315
|
+
m("W", D, Ne);
|
|
2316
|
+
m("WW", D, $);
|
|
2317
|
+
qe(
|
|
2411
2318
|
["w", "ww", "W", "WW"],
|
|
2412
2319
|
function(e, t, n, s) {
|
|
2413
|
-
t[s.substr(0, 1)] =
|
|
2320
|
+
t[s.substr(0, 1)] = w(e);
|
|
2414
2321
|
}
|
|
2415
2322
|
);
|
|
2416
|
-
function
|
|
2417
|
-
return
|
|
2323
|
+
function Ui(e) {
|
|
2324
|
+
return Ve(e, this._week.dow, this._week.doy).week;
|
|
2418
2325
|
}
|
|
2419
|
-
var
|
|
2326
|
+
var Hi = {
|
|
2420
2327
|
dow: 0,
|
|
2421
2328
|
// Sunday is the first day of the week.
|
|
2422
2329
|
doy: 6
|
|
2423
2330
|
// The week that contains Jan 6th is the first week of the year.
|
|
2424
2331
|
};
|
|
2425
|
-
function
|
|
2332
|
+
function $i() {
|
|
2426
2333
|
return this._week.dow;
|
|
2427
2334
|
}
|
|
2428
|
-
function
|
|
2335
|
+
function Wi() {
|
|
2429
2336
|
return this._week.doy;
|
|
2430
2337
|
}
|
|
2431
|
-
function
|
|
2338
|
+
function Vi(e) {
|
|
2432
2339
|
var t = this.localeData().week(this);
|
|
2433
2340
|
return e == null ? t : this.add((e - t) * 7, "d");
|
|
2434
2341
|
}
|
|
2435
|
-
function
|
|
2436
|
-
var t =
|
|
2342
|
+
function Gi(e) {
|
|
2343
|
+
var t = Ve(this, 1, 4).week;
|
|
2437
2344
|
return e == null ? t : this.add((e - t) * 7, "d");
|
|
2438
2345
|
}
|
|
2439
2346
|
p("d", 0, "do", "day");
|
|
@@ -2448,9 +2355,9 @@ p("dddd", 0, 0, function(e) {
|
|
|
2448
2355
|
});
|
|
2449
2356
|
p("e", 0, 0, "weekday");
|
|
2450
2357
|
p("E", 0, 0, "isoWeekday");
|
|
2451
|
-
m("d",
|
|
2452
|
-
m("e",
|
|
2453
|
-
m("E",
|
|
2358
|
+
m("d", D);
|
|
2359
|
+
m("e", D);
|
|
2360
|
+
m("E", D);
|
|
2454
2361
|
m("dd", function(e, t) {
|
|
2455
2362
|
return t.weekdaysMinRegex(e);
|
|
2456
2363
|
});
|
|
@@ -2460,52 +2367,52 @@ m("ddd", function(e, t) {
|
|
|
2460
2367
|
m("dddd", function(e, t) {
|
|
2461
2368
|
return t.weekdaysRegex(e);
|
|
2462
2369
|
});
|
|
2463
|
-
|
|
2370
|
+
qe(["dd", "ddd", "dddd"], function(e, t, n, s) {
|
|
2464
2371
|
var i = n._locale.weekdaysParse(e, s, n._strict);
|
|
2465
|
-
i != null ? t.d = i :
|
|
2372
|
+
i != null ? t.d = i : v(n).invalidWeekday = e;
|
|
2466
2373
|
});
|
|
2467
|
-
|
|
2468
|
-
t[s] =
|
|
2374
|
+
qe(["d", "e", "E"], function(e, t, n, s) {
|
|
2375
|
+
t[s] = w(e);
|
|
2469
2376
|
});
|
|
2470
|
-
function
|
|
2377
|
+
function zi(e, t) {
|
|
2471
2378
|
return typeof e != "string" ? e : isNaN(e) ? (e = t.weekdaysParse(e), typeof e == "number" ? e : null) : parseInt(e, 10);
|
|
2472
2379
|
}
|
|
2473
|
-
function
|
|
2380
|
+
function Ki(e, t) {
|
|
2474
2381
|
return typeof e == "string" ? t.weekdaysParse(e) % 7 || 7 : isNaN(e) ? null : e;
|
|
2475
2382
|
}
|
|
2476
|
-
function
|
|
2383
|
+
function Xt(e, t) {
|
|
2477
2384
|
return e.slice(t, 7).concat(e.slice(0, t));
|
|
2478
2385
|
}
|
|
2479
|
-
var
|
|
2480
|
-
function
|
|
2481
|
-
var n =
|
|
2482
|
-
return e === !0 ?
|
|
2386
|
+
var Bi = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), Qn = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), qi = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), Ji = Be, Zi = Be, Qi = Be;
|
|
2387
|
+
function Xi(e, t) {
|
|
2388
|
+
var n = B(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
|
|
2389
|
+
return e === !0 ? Xt(n, this._week.dow) : e ? n[e.day()] : n;
|
|
2483
2390
|
}
|
|
2484
|
-
function
|
|
2485
|
-
return e === !0 ?
|
|
2391
|
+
function er(e) {
|
|
2392
|
+
return e === !0 ? Xt(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort;
|
|
2486
2393
|
}
|
|
2487
|
-
function
|
|
2488
|
-
return e === !0 ?
|
|
2394
|
+
function tr(e) {
|
|
2395
|
+
return e === !0 ? Xt(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin;
|
|
2489
2396
|
}
|
|
2490
|
-
function
|
|
2397
|
+
function nr(e, t, n) {
|
|
2491
2398
|
var s, i, r, a = e.toLocaleLowerCase();
|
|
2492
2399
|
if (!this._weekdaysParse)
|
|
2493
2400
|
for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], s = 0; s < 7; ++s)
|
|
2494
|
-
r =
|
|
2401
|
+
r = ee([2e3, 1]).day(s), this._minWeekdaysParse[s] = this.weekdaysMin(
|
|
2495
2402
|
r,
|
|
2496
2403
|
""
|
|
2497
2404
|
).toLocaleLowerCase(), this._shortWeekdaysParse[s] = this.weekdaysShort(
|
|
2498
2405
|
r,
|
|
2499
2406
|
""
|
|
2500
2407
|
).toLocaleLowerCase(), this._weekdaysParse[s] = this.weekdays(r, "").toLocaleLowerCase();
|
|
2501
|
-
return n ? t === "dddd" ? (i =
|
|
2408
|
+
return n ? t === "dddd" ? (i = R.call(this._weekdaysParse, a), i !== -1 ? i : null) : t === "ddd" ? (i = R.call(this._shortWeekdaysParse, a), i !== -1 ? i : null) : (i = R.call(this._minWeekdaysParse, a), i !== -1 ? i : null) : t === "dddd" ? (i = R.call(this._weekdaysParse, a), i !== -1 || (i = R.call(this._shortWeekdaysParse, a), i !== -1) ? i : (i = R.call(this._minWeekdaysParse, a), i !== -1 ? i : null)) : t === "ddd" ? (i = R.call(this._shortWeekdaysParse, a), i !== -1 || (i = R.call(this._weekdaysParse, a), i !== -1) ? i : (i = R.call(this._minWeekdaysParse, a), i !== -1 ? i : null)) : (i = R.call(this._minWeekdaysParse, a), i !== -1 || (i = R.call(this._weekdaysParse, a), i !== -1) ? i : (i = R.call(this._shortWeekdaysParse, a), i !== -1 ? i : null));
|
|
2502
2409
|
}
|
|
2503
|
-
function
|
|
2410
|
+
function sr(e, t, n) {
|
|
2504
2411
|
var s, i, r;
|
|
2505
2412
|
if (this._weekdaysParseExact)
|
|
2506
|
-
return
|
|
2413
|
+
return nr.call(this, e, t, n);
|
|
2507
2414
|
for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), s = 0; s < 7; s++)
|
|
2508
|
-
if (i =
|
|
2415
|
+
if (i = ee([2e3, 1]).day(s), n && !this._fullWeekdaysParse[s] && (this._fullWeekdaysParse[s] = new RegExp(
|
|
2509
2416
|
"^" + this.weekdays(i, "").replace(".", "\\.?") + "$",
|
|
2510
2417
|
"i"
|
|
2511
2418
|
), this._shortWeekdaysParse[s] = new RegExp(
|
|
@@ -2517,43 +2424,43 @@ function Xi(e, t, n) {
|
|
|
2517
2424
|
)), this._weekdaysParse[s] || (r = "^" + this.weekdays(i, "") + "|^" + this.weekdaysShort(i, "") + "|^" + this.weekdaysMin(i, ""), this._weekdaysParse[s] = new RegExp(r.replace(".", ""), "i")), n && t === "dddd" && this._fullWeekdaysParse[s].test(e) || n && t === "ddd" && this._shortWeekdaysParse[s].test(e) || n && t === "dd" && this._minWeekdaysParse[s].test(e) || !n && this._weekdaysParse[s].test(e))
|
|
2518
2425
|
return s;
|
|
2519
2426
|
}
|
|
2520
|
-
function
|
|
2427
|
+
function ir(e) {
|
|
2521
2428
|
if (!this.isValid())
|
|
2522
2429
|
return e != null ? this : NaN;
|
|
2523
|
-
var t =
|
|
2524
|
-
return e != null ? (e =
|
|
2430
|
+
var t = $e(this, "Day");
|
|
2431
|
+
return e != null ? (e = zi(e, this.localeData()), this.add(e - t, "d")) : t;
|
|
2525
2432
|
}
|
|
2526
|
-
function
|
|
2433
|
+
function rr(e) {
|
|
2527
2434
|
if (!this.isValid())
|
|
2528
2435
|
return e != null ? this : NaN;
|
|
2529
2436
|
var t = (this.day() + 7 - this.localeData()._week.dow) % 7;
|
|
2530
2437
|
return e == null ? t : this.add(e - t, "d");
|
|
2531
2438
|
}
|
|
2532
|
-
function
|
|
2439
|
+
function ar(e) {
|
|
2533
2440
|
if (!this.isValid())
|
|
2534
2441
|
return e != null ? this : NaN;
|
|
2535
2442
|
if (e != null) {
|
|
2536
|
-
var t =
|
|
2443
|
+
var t = Ki(e, this.localeData());
|
|
2537
2444
|
return this.day(this.day() % 7 ? t : t - 7);
|
|
2538
2445
|
} else
|
|
2539
2446
|
return this.day() || 7;
|
|
2540
2447
|
}
|
|
2541
|
-
function
|
|
2542
|
-
return this._weekdaysParseExact ? (
|
|
2448
|
+
function or(e) {
|
|
2449
|
+
return this._weekdaysParseExact ? (b(this, "_weekdaysRegex") || en.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex) : (b(this, "_weekdaysRegex") || (this._weekdaysRegex = Ji), this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex);
|
|
2543
2450
|
}
|
|
2544
|
-
function
|
|
2545
|
-
return this._weekdaysParseExact ? (
|
|
2451
|
+
function ur(e) {
|
|
2452
|
+
return this._weekdaysParseExact ? (b(this, "_weekdaysRegex") || en.call(this), e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (b(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = Zi), this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex);
|
|
2546
2453
|
}
|
|
2547
|
-
function
|
|
2548
|
-
return this._weekdaysParseExact ? (
|
|
2454
|
+
function lr(e) {
|
|
2455
|
+
return this._weekdaysParseExact ? (b(this, "_weekdaysRegex") || en.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (b(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = Qi), this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
|
|
2549
2456
|
}
|
|
2550
|
-
function
|
|
2457
|
+
function en() {
|
|
2551
2458
|
function e(h, f) {
|
|
2552
2459
|
return f.length - h.length;
|
|
2553
2460
|
}
|
|
2554
2461
|
var t = [], n = [], s = [], i = [], r, a, o, u, l;
|
|
2555
2462
|
for (r = 0; r < 7; r++)
|
|
2556
|
-
a =
|
|
2463
|
+
a = ee([2e3, 1]).day(r), o = ae(this.weekdaysMin(a, "")), u = ae(this.weekdaysShort(a, "")), l = ae(this.weekdays(a, "")), t.push(o), n.push(u), s.push(l), i.push(o), i.push(u), i.push(l);
|
|
2557
2464
|
t.sort(e), n.sort(e), s.sort(e), i.sort(e), this._weekdaysRegex = new RegExp("^(" + i.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
|
|
2558
2465
|
"^(" + s.join("|") + ")",
|
|
2559
2466
|
"i"
|
|
@@ -2565,28 +2472,28 @@ function Qt() {
|
|
|
2565
2472
|
"i"
|
|
2566
2473
|
);
|
|
2567
2474
|
}
|
|
2568
|
-
function
|
|
2475
|
+
function tn() {
|
|
2569
2476
|
return this.hours() % 12 || 12;
|
|
2570
2477
|
}
|
|
2571
|
-
function
|
|
2478
|
+
function dr() {
|
|
2572
2479
|
return this.hours() || 24;
|
|
2573
2480
|
}
|
|
2574
2481
|
p("H", ["HH", 2], 0, "hour");
|
|
2575
|
-
p("h", ["hh", 2], 0,
|
|
2576
|
-
p("k", ["kk", 2], 0,
|
|
2482
|
+
p("h", ["hh", 2], 0, tn);
|
|
2483
|
+
p("k", ["kk", 2], 0, dr);
|
|
2577
2484
|
p("hmm", 0, 0, function() {
|
|
2578
|
-
return "" +
|
|
2485
|
+
return "" + tn.apply(this) + X(this.minutes(), 2);
|
|
2579
2486
|
});
|
|
2580
2487
|
p("hmmss", 0, 0, function() {
|
|
2581
|
-
return "" +
|
|
2488
|
+
return "" + tn.apply(this) + X(this.minutes(), 2) + X(this.seconds(), 2);
|
|
2582
2489
|
});
|
|
2583
2490
|
p("Hmm", 0, 0, function() {
|
|
2584
|
-
return "" + this.hours() +
|
|
2491
|
+
return "" + this.hours() + X(this.minutes(), 2);
|
|
2585
2492
|
});
|
|
2586
2493
|
p("Hmmss", 0, 0, function() {
|
|
2587
|
-
return "" + this.hours() +
|
|
2494
|
+
return "" + this.hours() + X(this.minutes(), 2) + X(this.seconds(), 2);
|
|
2588
2495
|
});
|
|
2589
|
-
function
|
|
2496
|
+
function Xn(e, t) {
|
|
2590
2497
|
p(e, 0, 0, function() {
|
|
2591
2498
|
return this.localeData().meridiem(
|
|
2592
2499
|
this.hours(),
|
|
@@ -2595,165 +2502,165 @@ function qn(e, t) {
|
|
|
2595
2502
|
);
|
|
2596
2503
|
});
|
|
2597
2504
|
}
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
function
|
|
2505
|
+
Xn("a", !0);
|
|
2506
|
+
Xn("A", !1);
|
|
2507
|
+
function es(e, t) {
|
|
2601
2508
|
return t._meridiemParse;
|
|
2602
2509
|
}
|
|
2603
|
-
m("a",
|
|
2604
|
-
m("A",
|
|
2605
|
-
m("H",
|
|
2606
|
-
m("h",
|
|
2607
|
-
m("k",
|
|
2608
|
-
m("HH",
|
|
2609
|
-
m("hh",
|
|
2610
|
-
m("kk",
|
|
2611
|
-
m("hmm",
|
|
2612
|
-
m("hmmss",
|
|
2613
|
-
m("Hmm",
|
|
2614
|
-
m("Hmmss",
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
var s =
|
|
2618
|
-
t[
|
|
2510
|
+
m("a", es);
|
|
2511
|
+
m("A", es);
|
|
2512
|
+
m("H", D, Zt);
|
|
2513
|
+
m("h", D, Ne);
|
|
2514
|
+
m("k", D, Ne);
|
|
2515
|
+
m("HH", D, $);
|
|
2516
|
+
m("hh", D, $);
|
|
2517
|
+
m("kk", D, $);
|
|
2518
|
+
m("hmm", $n);
|
|
2519
|
+
m("hmmss", Wn);
|
|
2520
|
+
m("Hmm", $n);
|
|
2521
|
+
m("Hmmss", Wn);
|
|
2522
|
+
O(["H", "HH"], P);
|
|
2523
|
+
O(["k", "kk"], function(e, t, n) {
|
|
2524
|
+
var s = w(e);
|
|
2525
|
+
t[P] = s === 24 ? 0 : s;
|
|
2619
2526
|
});
|
|
2620
|
-
|
|
2527
|
+
O(["a", "A"], function(e, t, n) {
|
|
2621
2528
|
n._isPm = n._locale.isPM(e), n._meridiem = e;
|
|
2622
2529
|
});
|
|
2623
|
-
|
|
2624
|
-
t[
|
|
2530
|
+
O(["h", "hh"], function(e, t, n) {
|
|
2531
|
+
t[P] = w(e), v(n).bigHour = !0;
|
|
2625
2532
|
});
|
|
2626
|
-
|
|
2533
|
+
O("hmm", function(e, t, n) {
|
|
2627
2534
|
var s = e.length - 2;
|
|
2628
|
-
t[
|
|
2535
|
+
t[P] = w(e.substr(0, s)), t[K] = w(e.substr(s)), v(n).bigHour = !0;
|
|
2629
2536
|
});
|
|
2630
|
-
|
|
2537
|
+
O("hmmss", function(e, t, n) {
|
|
2631
2538
|
var s = e.length - 4, i = e.length - 2;
|
|
2632
|
-
t[
|
|
2539
|
+
t[P] = w(e.substr(0, s)), t[K] = w(e.substr(s, 2)), t[re] = w(e.substr(i)), v(n).bigHour = !0;
|
|
2633
2540
|
});
|
|
2634
|
-
|
|
2541
|
+
O("Hmm", function(e, t, n) {
|
|
2635
2542
|
var s = e.length - 2;
|
|
2636
|
-
t[
|
|
2543
|
+
t[P] = w(e.substr(0, s)), t[K] = w(e.substr(s));
|
|
2637
2544
|
});
|
|
2638
|
-
|
|
2545
|
+
O("Hmmss", function(e, t, n) {
|
|
2639
2546
|
var s = e.length - 4, i = e.length - 2;
|
|
2640
|
-
t[
|
|
2547
|
+
t[P] = w(e.substr(0, s)), t[K] = w(e.substr(s, 2)), t[re] = w(e.substr(i));
|
|
2641
2548
|
});
|
|
2642
|
-
function
|
|
2549
|
+
function hr(e) {
|
|
2643
2550
|
return (e + "").toLowerCase().charAt(0) === "p";
|
|
2644
2551
|
}
|
|
2645
|
-
var
|
|
2646
|
-
function
|
|
2552
|
+
var cr = /[ap]\.?m?\.?/i, fr = Ce("Hours", !0);
|
|
2553
|
+
function gr(e, t, n) {
|
|
2647
2554
|
return e > 11 ? n ? "pm" : "PM" : n ? "am" : "AM";
|
|
2648
2555
|
}
|
|
2649
|
-
var
|
|
2650
|
-
calendar:
|
|
2651
|
-
longDateFormat:
|
|
2652
|
-
invalidDate:
|
|
2653
|
-
ordinal:
|
|
2654
|
-
dayOfMonthOrdinalParse:
|
|
2655
|
-
relativeTime:
|
|
2656
|
-
months:
|
|
2657
|
-
monthsShort:
|
|
2658
|
-
week:
|
|
2659
|
-
weekdays:
|
|
2660
|
-
weekdaysMin:
|
|
2661
|
-
weekdaysShort:
|
|
2662
|
-
meridiemParse:
|
|
2663
|
-
},
|
|
2664
|
-
function
|
|
2556
|
+
var ts = {
|
|
2557
|
+
calendar: ni,
|
|
2558
|
+
longDateFormat: ai,
|
|
2559
|
+
invalidDate: ui,
|
|
2560
|
+
ordinal: di,
|
|
2561
|
+
dayOfMonthOrdinalParse: hi,
|
|
2562
|
+
relativeTime: fi,
|
|
2563
|
+
months: Ni,
|
|
2564
|
+
monthsShort: zn,
|
|
2565
|
+
week: Hi,
|
|
2566
|
+
weekdays: Bi,
|
|
2567
|
+
weekdaysMin: qi,
|
|
2568
|
+
weekdaysShort: Qn,
|
|
2569
|
+
meridiemParse: cr
|
|
2570
|
+
}, N = {}, Ae = {}, Ge;
|
|
2571
|
+
function mr(e, t) {
|
|
2665
2572
|
var n, s = Math.min(e.length, t.length);
|
|
2666
2573
|
for (n = 0; n < s; n += 1)
|
|
2667
2574
|
if (e[n] !== t[n])
|
|
2668
2575
|
return n;
|
|
2669
2576
|
return s;
|
|
2670
2577
|
}
|
|
2671
|
-
function
|
|
2578
|
+
function Nn(e) {
|
|
2672
2579
|
return e && e.toLowerCase().replace("_", "-");
|
|
2673
2580
|
}
|
|
2674
|
-
function
|
|
2581
|
+
function pr(e) {
|
|
2675
2582
|
for (var t = 0, n, s, i, r; t < e.length; ) {
|
|
2676
|
-
for (r =
|
|
2677
|
-
if (i =
|
|
2583
|
+
for (r = Nn(e[t]).split("-"), n = r.length, s = Nn(e[t + 1]), s = s ? s.split("-") : null; n > 0; ) {
|
|
2584
|
+
if (i = St(r.slice(0, n).join("-")), i)
|
|
2678
2585
|
return i;
|
|
2679
|
-
if (s && s.length >= n &&
|
|
2586
|
+
if (s && s.length >= n && mr(r, s) >= n - 1)
|
|
2680
2587
|
break;
|
|
2681
2588
|
n--;
|
|
2682
2589
|
}
|
|
2683
2590
|
t++;
|
|
2684
2591
|
}
|
|
2685
|
-
return
|
|
2592
|
+
return Ge;
|
|
2686
2593
|
}
|
|
2687
|
-
function
|
|
2594
|
+
function yr(e) {
|
|
2688
2595
|
return !!(e && e.match("^[^/\\\\]*$"));
|
|
2689
2596
|
}
|
|
2690
|
-
function
|
|
2597
|
+
function St(e) {
|
|
2691
2598
|
var t = null, n;
|
|
2692
|
-
if (
|
|
2599
|
+
if (N[e] === void 0 && typeof module < "u" && module && module.exports && yr(e))
|
|
2693
2600
|
try {
|
|
2694
|
-
t =
|
|
2601
|
+
t = Ge._abbr, n = require, n("./locale/" + e), fe(t);
|
|
2695
2602
|
} catch {
|
|
2696
|
-
|
|
2603
|
+
N[e] = null;
|
|
2697
2604
|
}
|
|
2698
|
-
return
|
|
2605
|
+
return N[e];
|
|
2699
2606
|
}
|
|
2700
|
-
function
|
|
2607
|
+
function fe(e, t) {
|
|
2701
2608
|
var n;
|
|
2702
|
-
return e && (
|
|
2609
|
+
return e && (I(t) ? n = le(e) : n = nn(e, t), n ? Ge = n : typeof console < "u" && console.warn && console.warn(
|
|
2703
2610
|
"Locale " + e + " not found. Did you forget to load it?"
|
|
2704
|
-
)),
|
|
2611
|
+
)), Ge._abbr;
|
|
2705
2612
|
}
|
|
2706
|
-
function
|
|
2613
|
+
function nn(e, t) {
|
|
2707
2614
|
if (t !== null) {
|
|
2708
|
-
var n, s =
|
|
2709
|
-
if (t.abbr = e,
|
|
2710
|
-
|
|
2615
|
+
var n, s = ts;
|
|
2616
|
+
if (t.abbr = e, N[e] != null)
|
|
2617
|
+
In(
|
|
2711
2618
|
"defineLocaleOverride",
|
|
2712
2619
|
"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."
|
|
2713
|
-
), s =
|
|
2620
|
+
), s = N[e]._config;
|
|
2714
2621
|
else if (t.parentLocale != null)
|
|
2715
|
-
if (
|
|
2716
|
-
s =
|
|
2717
|
-
else if (n =
|
|
2622
|
+
if (N[t.parentLocale] != null)
|
|
2623
|
+
s = N[t.parentLocale]._config;
|
|
2624
|
+
else if (n = St(t.parentLocale), n != null)
|
|
2718
2625
|
s = n._config;
|
|
2719
2626
|
else
|
|
2720
|
-
return
|
|
2627
|
+
return Ae[t.parentLocale] || (Ae[t.parentLocale] = []), Ae[t.parentLocale].push({
|
|
2721
2628
|
name: e,
|
|
2722
2629
|
config: t
|
|
2723
2630
|
}), null;
|
|
2724
|
-
return
|
|
2725
|
-
|
|
2726
|
-
}),
|
|
2631
|
+
return N[e] = new zt(At(s, t)), Ae[e] && Ae[e].forEach(function(i) {
|
|
2632
|
+
nn(i.name, i.config);
|
|
2633
|
+
}), fe(e), N[e];
|
|
2727
2634
|
} else
|
|
2728
|
-
return delete
|
|
2635
|
+
return delete N[e], null;
|
|
2729
2636
|
}
|
|
2730
|
-
function
|
|
2637
|
+
function _r(e, t) {
|
|
2731
2638
|
if (t != null) {
|
|
2732
|
-
var n, s, i =
|
|
2733
|
-
|
|
2639
|
+
var n, s, i = ts;
|
|
2640
|
+
N[e] != null && N[e].parentLocale != null ? N[e].set(At(N[e]._config, t)) : (s = St(e), s != null && (i = s._config), t = At(i, t), s == null && (t.abbr = e), n = new zt(t), n.parentLocale = N[e], N[e] = n), fe(e);
|
|
2734
2641
|
} else
|
|
2735
|
-
|
|
2736
|
-
return
|
|
2642
|
+
N[e] != null && (N[e].parentLocale != null ? (N[e] = N[e].parentLocale, e === fe() && fe(e)) : N[e] != null && delete N[e]);
|
|
2643
|
+
return N[e];
|
|
2737
2644
|
}
|
|
2738
|
-
function
|
|
2645
|
+
function le(e) {
|
|
2739
2646
|
var t;
|
|
2740
2647
|
if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e)
|
|
2741
|
-
return
|
|
2742
|
-
if (!
|
|
2743
|
-
if (t =
|
|
2648
|
+
return Ge;
|
|
2649
|
+
if (!B(e)) {
|
|
2650
|
+
if (t = St(e), t)
|
|
2744
2651
|
return t;
|
|
2745
2652
|
e = [e];
|
|
2746
2653
|
}
|
|
2747
|
-
return
|
|
2654
|
+
return pr(e);
|
|
2748
2655
|
}
|
|
2749
|
-
function
|
|
2750
|
-
return
|
|
2656
|
+
function vr() {
|
|
2657
|
+
return It(N);
|
|
2751
2658
|
}
|
|
2752
|
-
function
|
|
2659
|
+
function sn(e) {
|
|
2753
2660
|
var t, n = e._a;
|
|
2754
|
-
return n &&
|
|
2661
|
+
return n && v(e).overflow === -2 && (t = n[ie] < 0 || n[ie] > 11 ? ie : n[Z] < 1 || n[Z] > Qt(n[T], n[ie]) ? Z : n[P] < 0 || n[P] > 24 || n[P] === 24 && (n[K] !== 0 || n[re] !== 0 || n[ye] !== 0) ? P : n[K] < 0 || n[K] > 59 ? K : n[re] < 0 || n[re] > 59 ? re : n[ye] < 0 || n[ye] > 999 ? ye : -1, v(e)._overflowDayOfYear && (t < T || t > Z) && (t = Z), v(e)._overflowWeeks && t === -1 && (t = xi), v(e)._overflowWeekday && t === -1 && (t = ki), v(e).overflow = t), e;
|
|
2755
2662
|
}
|
|
2756
|
-
var
|
|
2663
|
+
var wr = /^\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)?)?$/, Sr = /^\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)?)?$/, br = /Z|[+-]\d\d(?::?\d\d)?/, et = [
|
|
2757
2664
|
["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
|
|
2758
2665
|
["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
|
|
2759
2666
|
["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
|
|
@@ -2767,7 +2674,7 @@ var pr = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
|
|
|
2767
2674
|
["YYYYDDD", /\d{7}/],
|
|
2768
2675
|
["YYYYMM", /\d{6}/, !1],
|
|
2769
2676
|
["YYYY", /\d{4}/, !1]
|
|
2770
|
-
],
|
|
2677
|
+
], Rt = [
|
|
2771
2678
|
["HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/],
|
|
2772
2679
|
["HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/],
|
|
2773
2680
|
["HH:mm:ss", /\d\d:\d\d:\d\d/],
|
|
@@ -2777,7 +2684,7 @@ var pr = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
|
|
|
2777
2684
|
["HHmmss", /\d\d\d\d\d\d/],
|
|
2778
2685
|
["HHmm", /\d\d\d\d/],
|
|
2779
2686
|
["HH", /\d\d/]
|
|
2780
|
-
],
|
|
2687
|
+
], xr = /^\/?Date\((-?\d+)/i, kr = /^(?:(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}))$/, Or = {
|
|
2781
2688
|
UT: 0,
|
|
2782
2689
|
GMT: 0,
|
|
2783
2690
|
EDT: -4 * 60,
|
|
@@ -2789,12 +2696,12 @@ var pr = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
|
|
|
2789
2696
|
PDT: -7 * 60,
|
|
2790
2697
|
PST: -8 * 60
|
|
2791
2698
|
};
|
|
2792
|
-
function
|
|
2793
|
-
var t, n, s = e._i, i =
|
|
2699
|
+
function ns(e) {
|
|
2700
|
+
var t, n, s = e._i, i = wr.exec(s) || Sr.exec(s), r, a, o, u, l = et.length, h = Rt.length;
|
|
2794
2701
|
if (i) {
|
|
2795
|
-
for (
|
|
2796
|
-
if (
|
|
2797
|
-
a =
|
|
2702
|
+
for (v(e).iso = !0, t = 0, n = l; t < n; t++)
|
|
2703
|
+
if (et[t][1].exec(i[1])) {
|
|
2704
|
+
a = et[t][0], r = et[t][2] !== !1;
|
|
2798
2705
|
break;
|
|
2799
2706
|
}
|
|
2800
2707
|
if (a == null) {
|
|
@@ -2803,8 +2710,8 @@ function Qn(e) {
|
|
|
2803
2710
|
}
|
|
2804
2711
|
if (i[3]) {
|
|
2805
2712
|
for (t = 0, n = h; t < n; t++)
|
|
2806
|
-
if (
|
|
2807
|
-
o = (i[2] || " ") +
|
|
2713
|
+
if (Rt[t][1].exec(i[3])) {
|
|
2714
|
+
o = (i[2] || " ") + Rt[t][0];
|
|
2808
2715
|
break;
|
|
2809
2716
|
}
|
|
2810
2717
|
if (o == null) {
|
|
@@ -2817,95 +2724,95 @@ function Qn(e) {
|
|
|
2817
2724
|
return;
|
|
2818
2725
|
}
|
|
2819
2726
|
if (i[4])
|
|
2820
|
-
if (
|
|
2727
|
+
if (br.exec(i[4]))
|
|
2821
2728
|
u = "Z";
|
|
2822
2729
|
else {
|
|
2823
2730
|
e._isValid = !1;
|
|
2824
2731
|
return;
|
|
2825
2732
|
}
|
|
2826
|
-
e._f = a + (o || "") + (u || ""),
|
|
2733
|
+
e._f = a + (o || "") + (u || ""), an(e);
|
|
2827
2734
|
} else
|
|
2828
2735
|
e._isValid = !1;
|
|
2829
2736
|
}
|
|
2830
|
-
function
|
|
2737
|
+
function Mr(e, t, n, s, i, r) {
|
|
2831
2738
|
var a = [
|
|
2832
|
-
|
|
2833
|
-
|
|
2739
|
+
Dr(e),
|
|
2740
|
+
zn.indexOf(t),
|
|
2834
2741
|
parseInt(n, 10),
|
|
2835
2742
|
parseInt(s, 10),
|
|
2836
2743
|
parseInt(i, 10)
|
|
2837
2744
|
];
|
|
2838
2745
|
return r && a.push(parseInt(r, 10)), a;
|
|
2839
2746
|
}
|
|
2840
|
-
function
|
|
2747
|
+
function Dr(e) {
|
|
2841
2748
|
var t = parseInt(e, 10);
|
|
2842
2749
|
return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t;
|
|
2843
2750
|
}
|
|
2844
|
-
function
|
|
2751
|
+
function Yr(e) {
|
|
2845
2752
|
return e.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "");
|
|
2846
2753
|
}
|
|
2847
|
-
function
|
|
2754
|
+
function Nr(e, t, n) {
|
|
2848
2755
|
if (e) {
|
|
2849
|
-
var s =
|
|
2756
|
+
var s = Qn.indexOf(e), i = new Date(
|
|
2850
2757
|
t[0],
|
|
2851
2758
|
t[1],
|
|
2852
2759
|
t[2]
|
|
2853
2760
|
).getDay();
|
|
2854
2761
|
if (s !== i)
|
|
2855
|
-
return
|
|
2762
|
+
return v(n).weekdayMismatch = !0, n._isValid = !1, !1;
|
|
2856
2763
|
}
|
|
2857
2764
|
return !0;
|
|
2858
2765
|
}
|
|
2859
|
-
function
|
|
2766
|
+
function Cr(e, t, n) {
|
|
2860
2767
|
if (e)
|
|
2861
|
-
return
|
|
2768
|
+
return Or[e];
|
|
2862
2769
|
if (t)
|
|
2863
2770
|
return 0;
|
|
2864
2771
|
var s = parseInt(n, 10), i = s % 100, r = (s - i) / 100;
|
|
2865
2772
|
return r * 60 + i;
|
|
2866
2773
|
}
|
|
2867
|
-
function
|
|
2868
|
-
var t =
|
|
2774
|
+
function ss(e) {
|
|
2775
|
+
var t = kr.exec(Yr(e._i)), n;
|
|
2869
2776
|
if (t) {
|
|
2870
|
-
if (n =
|
|
2777
|
+
if (n = Mr(
|
|
2871
2778
|
t[4],
|
|
2872
2779
|
t[3],
|
|
2873
2780
|
t[2],
|
|
2874
2781
|
t[5],
|
|
2875
2782
|
t[6],
|
|
2876
2783
|
t[7]
|
|
2877
|
-
), !
|
|
2784
|
+
), !Nr(t[1], n, e))
|
|
2878
2785
|
return;
|
|
2879
|
-
e._a = n, e._tzm =
|
|
2786
|
+
e._a = n, e._tzm = Cr(t[8], t[9], t[10]), e._d = We.apply(null, e._a), e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), v(e).rfc2822 = !0;
|
|
2880
2787
|
} else
|
|
2881
2788
|
e._isValid = !1;
|
|
2882
2789
|
}
|
|
2883
|
-
function
|
|
2884
|
-
var t =
|
|
2790
|
+
function Lr(e) {
|
|
2791
|
+
var t = xr.exec(e._i);
|
|
2885
2792
|
if (t !== null) {
|
|
2886
2793
|
e._d = /* @__PURE__ */ new Date(+t[1]);
|
|
2887
2794
|
return;
|
|
2888
2795
|
}
|
|
2889
|
-
if (
|
|
2796
|
+
if (ns(e), e._isValid === !1)
|
|
2890
2797
|
delete e._isValid;
|
|
2891
2798
|
else
|
|
2892
2799
|
return;
|
|
2893
|
-
if (
|
|
2800
|
+
if (ss(e), e._isValid === !1)
|
|
2894
2801
|
delete e._isValid;
|
|
2895
2802
|
else
|
|
2896
2803
|
return;
|
|
2897
2804
|
e._strict ? e._isValid = !1 : g.createFromInputFallback(e);
|
|
2898
2805
|
}
|
|
2899
|
-
g.createFromInputFallback =
|
|
2806
|
+
g.createFromInputFallback = V(
|
|
2900
2807
|
"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.",
|
|
2901
2808
|
function(e) {
|
|
2902
2809
|
e._d = /* @__PURE__ */ new Date(e._i + (e._useUTC ? " UTC" : ""));
|
|
2903
2810
|
}
|
|
2904
2811
|
);
|
|
2905
|
-
function
|
|
2812
|
+
function xe(e, t, n) {
|
|
2906
2813
|
return e ?? t ?? n;
|
|
2907
2814
|
}
|
|
2908
|
-
function
|
|
2815
|
+
function Rr(e) {
|
|
2909
2816
|
var t = new Date(g.now());
|
|
2910
2817
|
return e._useUTC ? [
|
|
2911
2818
|
t.getUTCFullYear(),
|
|
@@ -2913,130 +2820,130 @@ function Yr(e) {
|
|
|
2913
2820
|
t.getUTCDate()
|
|
2914
2821
|
] : [t.getFullYear(), t.getMonth(), t.getDate()];
|
|
2915
2822
|
}
|
|
2916
|
-
function
|
|
2823
|
+
function rn(e) {
|
|
2917
2824
|
var t, n, s = [], i, r, a;
|
|
2918
2825
|
if (!e._d) {
|
|
2919
|
-
for (i =
|
|
2826
|
+
for (i = Rr(e), e._w && e._a[Z] == null && e._a[ie] == null && Pr(e), e._dayOfYear != null && (a = xe(e._a[T], i[T]), (e._dayOfYear > Ue(a) || e._dayOfYear === 0) && (v(e)._overflowDayOfYear = !0), n = We(a, 0, e._dayOfYear), e._a[ie] = n.getUTCMonth(), e._a[Z] = n.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
|
|
2920
2827
|
e._a[t] = s[t] = i[t];
|
|
2921
2828
|
for (; t < 7; t++)
|
|
2922
2829
|
e._a[t] = s[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
|
|
2923
|
-
e._a[
|
|
2830
|
+
e._a[P] === 24 && e._a[K] === 0 && e._a[re] === 0 && e._a[ye] === 0 && (e._nextDay = !0, e._a[P] = 0), e._d = (e._useUTC ? We : ji).apply(
|
|
2924
2831
|
null,
|
|
2925
2832
|
s
|
|
2926
|
-
), r = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[
|
|
2833
|
+
), r = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[P] = 24), e._w && typeof e._w.d < "u" && e._w.d !== r && (v(e).weekdayMismatch = !0);
|
|
2927
2834
|
}
|
|
2928
2835
|
}
|
|
2929
|
-
function
|
|
2836
|
+
function Pr(e) {
|
|
2930
2837
|
var t, n, s, i, r, a, o, u, l;
|
|
2931
|
-
t = e._w, t.GG != null || t.W != null || t.E != null ? (r = 1, a = 4, n =
|
|
2838
|
+
t = e._w, t.GG != null || t.W != null || t.E != null ? (r = 1, a = 4, n = xe(
|
|
2932
2839
|
t.GG,
|
|
2933
2840
|
e._a[T],
|
|
2934
|
-
|
|
2935
|
-
), s =
|
|
2841
|
+
Ve(M(), 1, 4).year
|
|
2842
|
+
), s = xe(t.W, 1), i = xe(t.E, 1), (i < 1 || i > 7) && (u = !0)) : (r = e._locale._week.dow, a = e._locale._week.doy, l = Ve(M(), r, a), n = xe(t.gg, e._a[T], l.year), s = xe(t.w, l.week), t.d != null ? (i = t.d, (i < 0 || i > 6) && (u = !0)) : t.e != null ? (i = t.e + r, (t.e < 0 || t.e > 6) && (u = !0)) : i = r), s < 1 || s > oe(n, r, a) ? v(e)._overflowWeeks = !0 : u != null ? v(e)._overflowWeekday = !0 : (o = Zn(n, s, i, r, a), e._a[T] = o.year, e._dayOfYear = o.dayOfYear);
|
|
2936
2843
|
}
|
|
2937
2844
|
g.ISO_8601 = function() {
|
|
2938
2845
|
};
|
|
2939
2846
|
g.RFC_2822 = function() {
|
|
2940
2847
|
};
|
|
2941
|
-
function
|
|
2848
|
+
function an(e) {
|
|
2942
2849
|
if (e._f === g.ISO_8601) {
|
|
2943
|
-
|
|
2850
|
+
ns(e);
|
|
2944
2851
|
return;
|
|
2945
2852
|
}
|
|
2946
2853
|
if (e._f === g.RFC_2822) {
|
|
2947
|
-
|
|
2854
|
+
ss(e);
|
|
2948
2855
|
return;
|
|
2949
2856
|
}
|
|
2950
|
-
e._a = [],
|
|
2857
|
+
e._a = [], v(e).empty = !0;
|
|
2951
2858
|
var t = "" + e._i, n, s, i, r, a, o = t.length, u = 0, l, h;
|
|
2952
|
-
for (i =
|
|
2953
|
-
r = i[n], s = (t.match(
|
|
2859
|
+
for (i = jn(e._f, e._locale).match(Kt) || [], h = i.length, n = 0; n < h; n++)
|
|
2860
|
+
r = i[n], s = (t.match(wi(r, e)) || [])[0], s && (a = t.substr(0, t.indexOf(s)), a.length > 0 && v(e).unusedInput.push(a), t = t.slice(
|
|
2954
2861
|
t.indexOf(s) + s.length
|
|
2955
|
-
), u += s.length),
|
|
2956
|
-
|
|
2862
|
+
), u += s.length), Oe[r] ? (s ? v(e).empty = !1 : v(e).unusedTokens.push(r), bi(r, s, e)) : e._strict && !s && v(e).unusedTokens.push(r);
|
|
2863
|
+
v(e).charsLeftOver = o - u, t.length > 0 && v(e).unusedInput.push(t), e._a[P] <= 12 && v(e).bigHour === !0 && e._a[P] > 0 && (v(e).bigHour = void 0), v(e).parsedDateParts = e._a.slice(0), v(e).meridiem = e._meridiem, e._a[P] = Tr(
|
|
2957
2864
|
e._locale,
|
|
2958
|
-
e._a[
|
|
2865
|
+
e._a[P],
|
|
2959
2866
|
e._meridiem
|
|
2960
|
-
), l =
|
|
2867
|
+
), l = v(e).era, l !== null && (e._a[T] = e._locale.erasConvertYear(l, e._a[T])), rn(e), sn(e);
|
|
2961
2868
|
}
|
|
2962
|
-
function
|
|
2869
|
+
function Tr(e, t, n) {
|
|
2963
2870
|
var s;
|
|
2964
2871
|
return n == null ? t : e.meridiemHour != null ? e.meridiemHour(t, n) : (e.isPM != null && (s = e.isPM(n), s && t < 12 && (t += 12), !s && t === 12 && (t = 0)), t);
|
|
2965
2872
|
}
|
|
2966
|
-
function
|
|
2873
|
+
function Er(e) {
|
|
2967
2874
|
var t, n, s, i, r, a, o = !1, u = e._f.length;
|
|
2968
2875
|
if (u === 0) {
|
|
2969
|
-
|
|
2876
|
+
v(e).invalidFormat = !0, e._d = /* @__PURE__ */ new Date(NaN);
|
|
2970
2877
|
return;
|
|
2971
2878
|
}
|
|
2972
2879
|
for (i = 0; i < u; i++)
|
|
2973
|
-
r = 0, a = !1, t =
|
|
2974
|
-
|
|
2880
|
+
r = 0, a = !1, t = Gt({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._f = e._f[i], an(t), Vt(t) && (a = !0), r += v(t).charsLeftOver, r += v(t).unusedTokens.length * 10, v(t).score = r, o ? r < s && (s = r, n = t) : (s == null || r < s || a) && (s = r, n = t, a && (o = !0));
|
|
2881
|
+
he(e, n || t);
|
|
2975
2882
|
}
|
|
2976
|
-
function
|
|
2883
|
+
function Fr(e) {
|
|
2977
2884
|
if (!e._d) {
|
|
2978
|
-
var t =
|
|
2979
|
-
e._a =
|
|
2885
|
+
var t = Bt(e._i), n = t.day === void 0 ? t.date : t.day;
|
|
2886
|
+
e._a = Fn(
|
|
2980
2887
|
[t.year, t.month, n, t.hour, t.minute, t.second, t.millisecond],
|
|
2981
2888
|
function(s) {
|
|
2982
2889
|
return s && parseInt(s, 10);
|
|
2983
2890
|
}
|
|
2984
|
-
),
|
|
2891
|
+
), rn(e);
|
|
2985
2892
|
}
|
|
2986
2893
|
}
|
|
2987
|
-
function
|
|
2988
|
-
var t = new
|
|
2894
|
+
function Ar(e) {
|
|
2895
|
+
var t = new Ke(sn(is(e)));
|
|
2989
2896
|
return t._nextDay && (t.add(1, "d"), t._nextDay = void 0), t;
|
|
2990
2897
|
}
|
|
2991
|
-
function
|
|
2898
|
+
function is(e) {
|
|
2992
2899
|
var t = e._i, n = e._f;
|
|
2993
|
-
return e._locale = e._locale ||
|
|
2900
|
+
return e._locale = e._locale || le(e._l), t === null || n === void 0 && t === "" ? gt({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), q(t) ? new Ke(sn(t)) : (ze(t) ? e._d = t : B(n) ? Er(e) : n ? an(e) : Ir(e), Vt(e) || (e._d = null), e));
|
|
2994
2901
|
}
|
|
2995
|
-
function
|
|
2902
|
+
function Ir(e) {
|
|
2996
2903
|
var t = e._i;
|
|
2997
|
-
|
|
2904
|
+
I(t) ? e._d = new Date(g.now()) : ze(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? Lr(e) : B(t) ? (e._a = Fn(t.slice(0), function(n) {
|
|
2998
2905
|
return parseInt(n, 10);
|
|
2999
|
-
}),
|
|
2906
|
+
}), rn(e)) : _e(t) ? Fr(e) : ue(t) ? e._d = new Date(t) : g.createFromInputFallback(e);
|
|
3000
2907
|
}
|
|
3001
|
-
function
|
|
2908
|
+
function rs(e, t, n, s, i) {
|
|
3002
2909
|
var r = {};
|
|
3003
|
-
return (t === !0 || t === !1) && (s = t, t = void 0), (n === !0 || n === !1) && (s = n, n = void 0), (
|
|
2910
|
+
return (t === !0 || t === !1) && (s = t, t = void 0), (n === !0 || n === !1) && (s = n, n = void 0), (_e(e) && Wt(e) || B(e) && e.length === 0) && (e = void 0), r._isAMomentObject = !0, r._useUTC = r._isUTC = i, r._l = n, r._i = e, r._f = t, r._strict = s, Ar(r);
|
|
3004
2911
|
}
|
|
3005
|
-
function
|
|
3006
|
-
return
|
|
2912
|
+
function M(e, t, n, s) {
|
|
2913
|
+
return rs(e, t, n, s, !1);
|
|
3007
2914
|
}
|
|
3008
|
-
var
|
|
2915
|
+
var jr = V(
|
|
3009
2916
|
"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
3010
2917
|
function() {
|
|
3011
|
-
var e =
|
|
3012
|
-
return this.isValid() && e.isValid() ? e < this ? this : e :
|
|
2918
|
+
var e = M.apply(null, arguments);
|
|
2919
|
+
return this.isValid() && e.isValid() ? e < this ? this : e : gt();
|
|
3013
2920
|
}
|
|
3014
|
-
),
|
|
2921
|
+
), Ur = V(
|
|
3015
2922
|
"moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
3016
2923
|
function() {
|
|
3017
|
-
var e =
|
|
3018
|
-
return this.isValid() && e.isValid() ? e > this ? this : e :
|
|
2924
|
+
var e = M.apply(null, arguments);
|
|
2925
|
+
return this.isValid() && e.isValid() ? e > this ? this : e : gt();
|
|
3019
2926
|
}
|
|
3020
2927
|
);
|
|
3021
|
-
function
|
|
2928
|
+
function as(e, t) {
|
|
3022
2929
|
var n, s;
|
|
3023
|
-
if (t.length === 1 &&
|
|
3024
|
-
return
|
|
2930
|
+
if (t.length === 1 && B(t[0]) && (t = t[0]), !t.length)
|
|
2931
|
+
return M();
|
|
3025
2932
|
for (n = t[0], s = 1; s < t.length; ++s)
|
|
3026
2933
|
(!t[s].isValid() || t[s][e](n)) && (n = t[s]);
|
|
3027
2934
|
return n;
|
|
3028
2935
|
}
|
|
3029
|
-
function
|
|
2936
|
+
function Hr() {
|
|
3030
2937
|
var e = [].slice.call(arguments, 0);
|
|
3031
|
-
return
|
|
2938
|
+
return as("isBefore", e);
|
|
3032
2939
|
}
|
|
3033
|
-
function
|
|
2940
|
+
function $r() {
|
|
3034
2941
|
var e = [].slice.call(arguments, 0);
|
|
3035
|
-
return
|
|
2942
|
+
return as("isAfter", e);
|
|
3036
2943
|
}
|
|
3037
|
-
var
|
|
2944
|
+
var Wr = function() {
|
|
3038
2945
|
return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
|
|
3039
|
-
},
|
|
2946
|
+
}, Ie = [
|
|
3040
2947
|
"year",
|
|
3041
2948
|
"quarter",
|
|
3042
2949
|
"month",
|
|
@@ -3047,192 +2954,191 @@ var Ir = function() {
|
|
|
3047
2954
|
"second",
|
|
3048
2955
|
"millisecond"
|
|
3049
2956
|
];
|
|
3050
|
-
function
|
|
3051
|
-
var t, n = !1, s, i =
|
|
2957
|
+
function Vr(e) {
|
|
2958
|
+
var t, n = !1, s, i = Ie.length;
|
|
3052
2959
|
for (t in e)
|
|
3053
|
-
if (
|
|
2960
|
+
if (b(e, t) && !(R.call(Ie, t) !== -1 && (e[t] == null || !isNaN(e[t]))))
|
|
3054
2961
|
return !1;
|
|
3055
2962
|
for (s = 0; s < i; ++s)
|
|
3056
|
-
if (e[
|
|
2963
|
+
if (e[Ie[s]]) {
|
|
3057
2964
|
if (n)
|
|
3058
2965
|
return !1;
|
|
3059
|
-
parseFloat(e[
|
|
2966
|
+
parseFloat(e[Ie[s]]) !== w(e[Ie[s]]) && (n = !0);
|
|
3060
2967
|
}
|
|
3061
2968
|
return !0;
|
|
3062
2969
|
}
|
|
3063
|
-
function
|
|
2970
|
+
function Gr() {
|
|
3064
2971
|
return this._isValid;
|
|
3065
2972
|
}
|
|
3066
|
-
function
|
|
3067
|
-
return
|
|
2973
|
+
function zr() {
|
|
2974
|
+
return J(NaN);
|
|
3068
2975
|
}
|
|
3069
|
-
function
|
|
3070
|
-
var t =
|
|
3071
|
-
this._isValid =
|
|
2976
|
+
function bt(e) {
|
|
2977
|
+
var t = Bt(e), n = t.year || 0, s = t.quarter || 0, i = t.month || 0, r = t.week || t.isoWeek || 0, a = t.day || 0, o = t.hour || 0, u = t.minute || 0, l = t.second || 0, h = t.millisecond || 0;
|
|
2978
|
+
this._isValid = Vr(t), this._milliseconds = +h + l * 1e3 + // 1000
|
|
3072
2979
|
u * 6e4 + // 1000 * 60
|
|
3073
|
-
o * 1e3 * 60 * 60, this._days = +a + r * 7, this._months = +i + s * 3 + n * 12, this._data = {}, this._locale =
|
|
2980
|
+
o * 1e3 * 60 * 60, this._days = +a + r * 7, this._months = +i + s * 3 + n * 12, this._data = {}, this._locale = le(), this._bubble();
|
|
3074
2981
|
}
|
|
3075
|
-
function
|
|
3076
|
-
return e instanceof
|
|
2982
|
+
function nt(e) {
|
|
2983
|
+
return e instanceof bt;
|
|
3077
2984
|
}
|
|
3078
|
-
function
|
|
2985
|
+
function Ut(e) {
|
|
3079
2986
|
return e < 0 ? Math.round(-1 * e) * -1 : Math.round(e);
|
|
3080
2987
|
}
|
|
3081
|
-
function
|
|
2988
|
+
function Kr(e, t, n) {
|
|
3082
2989
|
var s = Math.min(e.length, t.length), i = Math.abs(e.length - t.length), r = 0, a;
|
|
3083
2990
|
for (a = 0; a < s; a++)
|
|
3084
|
-
|
|
2991
|
+
w(e[a]) !== w(t[a]) && r++;
|
|
3085
2992
|
return r + i;
|
|
3086
2993
|
}
|
|
3087
|
-
function
|
|
2994
|
+
function os(e, t) {
|
|
3088
2995
|
p(e, 0, 0, function() {
|
|
3089
2996
|
var n = this.utcOffset(), s = "+";
|
|
3090
|
-
return n < 0 && (n = -n, s = "-"), s +
|
|
2997
|
+
return n < 0 && (n = -n, s = "-"), s + X(~~(n / 60), 2) + t + X(~~n % 60, 2);
|
|
3091
2998
|
});
|
|
3092
2999
|
}
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
m("Z",
|
|
3096
|
-
m("ZZ",
|
|
3097
|
-
|
|
3098
|
-
n._useUTC = !0, n._tzm =
|
|
3000
|
+
os("Z", ":");
|
|
3001
|
+
os("ZZ", "");
|
|
3002
|
+
m("Z", vt);
|
|
3003
|
+
m("ZZ", vt);
|
|
3004
|
+
O(["Z", "ZZ"], function(e, t, n) {
|
|
3005
|
+
n._useUTC = !0, n._tzm = on(vt, e);
|
|
3099
3006
|
});
|
|
3100
|
-
var
|
|
3101
|
-
function
|
|
3007
|
+
var Br = /([\+\-]|\d\d)/gi;
|
|
3008
|
+
function on(e, t) {
|
|
3102
3009
|
var n = (t || "").match(e), s, i, r;
|
|
3103
|
-
return n === null ? null : (s = n[n.length - 1] || [], i = (s + "").match(
|
|
3010
|
+
return n === null ? null : (s = n[n.length - 1] || [], i = (s + "").match(Br) || ["-", 0, 0], r = +(i[1] * 60) + w(i[2]), r === 0 ? 0 : i[0] === "+" ? r : -r);
|
|
3104
3011
|
}
|
|
3105
|
-
function
|
|
3012
|
+
function un(e, t) {
|
|
3106
3013
|
var n, s;
|
|
3107
|
-
return t._isUTC ? (n = t.clone(), s = (
|
|
3014
|
+
return t._isUTC ? (n = t.clone(), s = (q(e) || ze(e) ? e.valueOf() : M(e).valueOf()) - n.valueOf(), n._d.setTime(n._d.valueOf() + s), g.updateOffset(n, !1), n) : M(e).local();
|
|
3108
3015
|
}
|
|
3109
|
-
function
|
|
3016
|
+
function Ht(e) {
|
|
3110
3017
|
return -Math.round(e._d.getTimezoneOffset());
|
|
3111
3018
|
}
|
|
3112
3019
|
g.updateOffset = function() {
|
|
3113
3020
|
};
|
|
3114
|
-
function
|
|
3021
|
+
function qr(e, t, n) {
|
|
3115
3022
|
var s = this._offset || 0, i;
|
|
3116
3023
|
if (!this.isValid())
|
|
3117
3024
|
return e != null ? this : NaN;
|
|
3118
3025
|
if (e != null) {
|
|
3119
3026
|
if (typeof e == "string") {
|
|
3120
|
-
if (e =
|
|
3027
|
+
if (e = on(vt, e), e === null)
|
|
3121
3028
|
return this;
|
|
3122
|
-
} else
|
|
3123
|
-
|
|
3124
|
-
return !this._isUTC && t && (i = It(this)), this._offset = e, this._isUTC = !0, i != null && this.add(i, "m"), s !== e && (!t || this._changeInProgress ? as(
|
|
3029
|
+
} else Math.abs(e) < 16 && !n && (e = e * 60);
|
|
3030
|
+
return !this._isUTC && t && (i = Ht(this)), this._offset = e, this._isUTC = !0, i != null && this.add(i, "m"), s !== e && (!t || this._changeInProgress ? ds(
|
|
3125
3031
|
this,
|
|
3126
|
-
|
|
3032
|
+
J(e - s, "m"),
|
|
3127
3033
|
1,
|
|
3128
3034
|
!1
|
|
3129
3035
|
) : this._changeInProgress || (this._changeInProgress = !0, g.updateOffset(this, !0), this._changeInProgress = null)), this;
|
|
3130
3036
|
} else
|
|
3131
|
-
return this._isUTC ? s :
|
|
3037
|
+
return this._isUTC ? s : Ht(this);
|
|
3132
3038
|
}
|
|
3133
|
-
function
|
|
3039
|
+
function Jr(e, t) {
|
|
3134
3040
|
return e != null ? (typeof e != "string" && (e = -e), this.utcOffset(e, t), this) : -this.utcOffset();
|
|
3135
3041
|
}
|
|
3136
|
-
function
|
|
3042
|
+
function Zr(e) {
|
|
3137
3043
|
return this.utcOffset(0, e);
|
|
3138
3044
|
}
|
|
3139
|
-
function
|
|
3140
|
-
return this._isUTC && (this.utcOffset(0, e), this._isUTC = !1, e && this.subtract(
|
|
3045
|
+
function Qr(e) {
|
|
3046
|
+
return this._isUTC && (this.utcOffset(0, e), this._isUTC = !1, e && this.subtract(Ht(this), "m")), this;
|
|
3141
3047
|
}
|
|
3142
|
-
function
|
|
3048
|
+
function Xr() {
|
|
3143
3049
|
if (this._tzm != null)
|
|
3144
3050
|
this.utcOffset(this._tzm, !1, !0);
|
|
3145
3051
|
else if (typeof this._i == "string") {
|
|
3146
|
-
var e =
|
|
3052
|
+
var e = on(_i, this._i);
|
|
3147
3053
|
e != null ? this.utcOffset(e) : this.utcOffset(0, !0);
|
|
3148
3054
|
}
|
|
3149
3055
|
return this;
|
|
3150
3056
|
}
|
|
3151
|
-
function
|
|
3152
|
-
return this.isValid() ? (e = e ?
|
|
3057
|
+
function ea(e) {
|
|
3058
|
+
return this.isValid() ? (e = e ? M(e).utcOffset() : 0, (this.utcOffset() - e) % 60 === 0) : !1;
|
|
3153
3059
|
}
|
|
3154
|
-
function
|
|
3060
|
+
function ta() {
|
|
3155
3061
|
return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
|
|
3156
3062
|
}
|
|
3157
|
-
function
|
|
3158
|
-
if (!
|
|
3063
|
+
function na() {
|
|
3064
|
+
if (!I(this._isDSTShifted))
|
|
3159
3065
|
return this._isDSTShifted;
|
|
3160
3066
|
var e = {}, t;
|
|
3161
|
-
return
|
|
3067
|
+
return Gt(e, this), e = is(e), e._a ? (t = e._isUTC ? ee(e._a) : M(e._a), this._isDSTShifted = this.isValid() && Kr(e._a, t.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
|
|
3162
3068
|
}
|
|
3163
|
-
function
|
|
3069
|
+
function sa() {
|
|
3164
3070
|
return this.isValid() ? !this._isUTC : !1;
|
|
3165
3071
|
}
|
|
3166
|
-
function
|
|
3072
|
+
function ia() {
|
|
3167
3073
|
return this.isValid() ? this._isUTC : !1;
|
|
3168
3074
|
}
|
|
3169
|
-
function
|
|
3075
|
+
function us() {
|
|
3170
3076
|
return this.isValid() ? this._isUTC && this._offset === 0 : !1;
|
|
3171
3077
|
}
|
|
3172
|
-
var
|
|
3173
|
-
function
|
|
3078
|
+
var ra = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, aa = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
|
|
3079
|
+
function J(e, t) {
|
|
3174
3080
|
var n = e, s = null, i, r, a;
|
|
3175
|
-
return
|
|
3081
|
+
return nt(e) ? n = {
|
|
3176
3082
|
ms: e._milliseconds,
|
|
3177
3083
|
d: e._days,
|
|
3178
3084
|
M: e._months
|
|
3179
|
-
} :
|
|
3085
|
+
} : ue(e) || !isNaN(+e) ? (n = {}, t ? n[t] = +e : n.milliseconds = +e) : (s = ra.exec(e)) ? (i = s[1] === "-" ? -1 : 1, n = {
|
|
3180
3086
|
y: 0,
|
|
3181
|
-
d:
|
|
3182
|
-
h:
|
|
3183
|
-
m:
|
|
3184
|
-
s:
|
|
3185
|
-
ms:
|
|
3087
|
+
d: w(s[Z]) * i,
|
|
3088
|
+
h: w(s[P]) * i,
|
|
3089
|
+
m: w(s[K]) * i,
|
|
3090
|
+
s: w(s[re]) * i,
|
|
3091
|
+
ms: w(Ut(s[ye] * 1e3)) * i
|
|
3186
3092
|
// the millisecond decimal point is included in the match
|
|
3187
|
-
}) : (s =
|
|
3188
|
-
y:
|
|
3189
|
-
M:
|
|
3190
|
-
w:
|
|
3191
|
-
d:
|
|
3192
|
-
h:
|
|
3193
|
-
m:
|
|
3194
|
-
s:
|
|
3195
|
-
}) : n == null ? n = {} : typeof n == "object" && ("from" in n || "to" in n) && (a =
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
), n = {}, n.ms = a.milliseconds, n.M = a.months), r = new
|
|
3199
|
-
}
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
function
|
|
3093
|
+
}) : (s = aa.exec(e)) ? (i = s[1] === "-" ? -1 : 1, n = {
|
|
3094
|
+
y: me(s[2], i),
|
|
3095
|
+
M: me(s[3], i),
|
|
3096
|
+
w: me(s[4], i),
|
|
3097
|
+
d: me(s[5], i),
|
|
3098
|
+
h: me(s[6], i),
|
|
3099
|
+
m: me(s[7], i),
|
|
3100
|
+
s: me(s[8], i)
|
|
3101
|
+
}) : n == null ? n = {} : typeof n == "object" && ("from" in n || "to" in n) && (a = oa(
|
|
3102
|
+
M(n.from),
|
|
3103
|
+
M(n.to)
|
|
3104
|
+
), n = {}, n.ms = a.milliseconds, n.M = a.months), r = new bt(n), nt(e) && b(e, "_locale") && (r._locale = e._locale), nt(e) && b(e, "_isValid") && (r._isValid = e._isValid), r;
|
|
3105
|
+
}
|
|
3106
|
+
J.fn = bt.prototype;
|
|
3107
|
+
J.invalid = zr;
|
|
3108
|
+
function me(e, t) {
|
|
3203
3109
|
var n = e && parseFloat(e.replace(",", "."));
|
|
3204
3110
|
return (isNaN(n) ? 0 : n) * t;
|
|
3205
3111
|
}
|
|
3206
|
-
function
|
|
3112
|
+
function Cn(e, t) {
|
|
3207
3113
|
var n = {};
|
|
3208
3114
|
return n.months = t.month() - e.month() + (t.year() - e.year()) * 12, e.clone().add(n.months, "M").isAfter(t) && --n.months, n.milliseconds = +t - +e.clone().add(n.months, "M"), n;
|
|
3209
3115
|
}
|
|
3210
|
-
function
|
|
3116
|
+
function oa(e, t) {
|
|
3211
3117
|
var n;
|
|
3212
|
-
return e.isValid() && t.isValid() ? (t =
|
|
3118
|
+
return e.isValid() && t.isValid() ? (t = un(t, e), e.isBefore(t) ? n = Cn(e, t) : (n = Cn(t, e), n.milliseconds = -n.milliseconds, n.months = -n.months), n) : { milliseconds: 0, months: 0 };
|
|
3213
3119
|
}
|
|
3214
|
-
function
|
|
3120
|
+
function ls(e, t) {
|
|
3215
3121
|
return function(n, s) {
|
|
3216
3122
|
var i, r;
|
|
3217
|
-
return s !== null && !isNaN(+s) && (
|
|
3123
|
+
return s !== null && !isNaN(+s) && (In(
|
|
3218
3124
|
t,
|
|
3219
3125
|
"moment()." + t + "(period, number) is deprecated. Please use moment()." + t + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
|
|
3220
|
-
), r = n, n = s, s = r), i =
|
|
3126
|
+
), r = n, n = s, s = r), i = J(n, s), ds(this, i, e), this;
|
|
3221
3127
|
};
|
|
3222
3128
|
}
|
|
3223
|
-
function
|
|
3224
|
-
var i = t._milliseconds, r =
|
|
3225
|
-
e.isValid() && (s = s ?? !0, a &&
|
|
3129
|
+
function ds(e, t, n, s) {
|
|
3130
|
+
var i = t._milliseconds, r = Ut(t._days), a = Ut(t._months);
|
|
3131
|
+
e.isValid() && (s = s ?? !0, a && Bn(e, $e(e, "Month") + a * n), r && Gn(e, "Date", $e(e, "Date") + r * n), i && e._d.setTime(e._d.valueOf() + i * n), s && g.updateOffset(e, r || a));
|
|
3226
3132
|
}
|
|
3227
|
-
var
|
|
3228
|
-
function
|
|
3133
|
+
var ua = ls(1, "add"), la = ls(-1, "subtract");
|
|
3134
|
+
function hs(e) {
|
|
3229
3135
|
return typeof e == "string" || e instanceof String;
|
|
3230
3136
|
}
|
|
3231
|
-
function
|
|
3232
|
-
return
|
|
3137
|
+
function da(e) {
|
|
3138
|
+
return q(e) || ze(e) || hs(e) || ue(e) || ca(e) || ha(e) || e === null || e === void 0;
|
|
3233
3139
|
}
|
|
3234
|
-
function
|
|
3235
|
-
var t =
|
|
3140
|
+
function ha(e) {
|
|
3141
|
+
var t = _e(e) && !Wt(e), n = !1, s = [
|
|
3236
3142
|
"years",
|
|
3237
3143
|
"year",
|
|
3238
3144
|
"y",
|
|
@@ -3259,17 +3165,17 @@ function oa(e) {
|
|
|
3259
3165
|
"ms"
|
|
3260
3166
|
], i, r, a = s.length;
|
|
3261
3167
|
for (i = 0; i < a; i += 1)
|
|
3262
|
-
r = s[i], n = n ||
|
|
3168
|
+
r = s[i], n = n || b(e, r);
|
|
3263
3169
|
return t && n;
|
|
3264
3170
|
}
|
|
3265
|
-
function
|
|
3266
|
-
var t =
|
|
3171
|
+
function ca(e) {
|
|
3172
|
+
var t = B(e), n = !1;
|
|
3267
3173
|
return t && (n = e.filter(function(s) {
|
|
3268
|
-
return !
|
|
3174
|
+
return !ue(s) && hs(e);
|
|
3269
3175
|
}).length === 0), t && n;
|
|
3270
3176
|
}
|
|
3271
|
-
function
|
|
3272
|
-
var t =
|
|
3177
|
+
function fa(e) {
|
|
3178
|
+
var t = _e(e) && !Wt(e), n = !1, s = [
|
|
3273
3179
|
"sameDay",
|
|
3274
3180
|
"nextDay",
|
|
3275
3181
|
"lastDay",
|
|
@@ -3278,60 +3184,60 @@ function la(e) {
|
|
|
3278
3184
|
"sameElse"
|
|
3279
3185
|
], i, r;
|
|
3280
3186
|
for (i = 0; i < s.length; i += 1)
|
|
3281
|
-
r = s[i], n = n ||
|
|
3187
|
+
r = s[i], n = n || b(e, r);
|
|
3282
3188
|
return t && n;
|
|
3283
3189
|
}
|
|
3284
|
-
function
|
|
3190
|
+
function ga(e, t) {
|
|
3285
3191
|
var n = e.diff(t, "days", !0);
|
|
3286
3192
|
return n < -6 ? "sameElse" : n < -1 ? "lastWeek" : n < 0 ? "lastDay" : n < 1 ? "sameDay" : n < 2 ? "nextDay" : n < 7 ? "nextWeek" : "sameElse";
|
|
3287
3193
|
}
|
|
3288
|
-
function
|
|
3289
|
-
arguments.length === 1 && (arguments[0] ?
|
|
3290
|
-
var n = e ||
|
|
3194
|
+
function ma(e, t) {
|
|
3195
|
+
arguments.length === 1 && (arguments[0] ? da(arguments[0]) ? (e = arguments[0], t = void 0) : fa(arguments[0]) && (t = arguments[0], e = void 0) : (e = void 0, t = void 0));
|
|
3196
|
+
var n = e || M(), s = un(n, this).startOf("day"), i = g.calendarFormat(this, s) || "sameElse", r = t && (te(t[i]) ? t[i].call(this, n) : t[i]);
|
|
3291
3197
|
return this.format(
|
|
3292
|
-
r || this.localeData().calendar(i, this,
|
|
3198
|
+
r || this.localeData().calendar(i, this, M(n))
|
|
3293
3199
|
);
|
|
3294
3200
|
}
|
|
3295
|
-
function
|
|
3296
|
-
return new
|
|
3201
|
+
function pa() {
|
|
3202
|
+
return new Ke(this);
|
|
3297
3203
|
}
|
|
3298
|
-
function
|
|
3299
|
-
var n =
|
|
3300
|
-
return this.isValid() && n.isValid() ? (t =
|
|
3204
|
+
function ya(e, t) {
|
|
3205
|
+
var n = q(e) ? e : M(e);
|
|
3206
|
+
return this.isValid() && n.isValid() ? (t = G(t) || "millisecond", t === "millisecond" ? this.valueOf() > n.valueOf() : n.valueOf() < this.clone().startOf(t).valueOf()) : !1;
|
|
3301
3207
|
}
|
|
3302
|
-
function
|
|
3303
|
-
var n =
|
|
3304
|
-
return this.isValid() && n.isValid() ? (t =
|
|
3208
|
+
function _a(e, t) {
|
|
3209
|
+
var n = q(e) ? e : M(e);
|
|
3210
|
+
return this.isValid() && n.isValid() ? (t = G(t) || "millisecond", t === "millisecond" ? this.valueOf() < n.valueOf() : this.clone().endOf(t).valueOf() < n.valueOf()) : !1;
|
|
3305
3211
|
}
|
|
3306
|
-
function
|
|
3307
|
-
var i =
|
|
3212
|
+
function va(e, t, n, s) {
|
|
3213
|
+
var i = q(e) ? e : M(e), r = q(t) ? t : M(t);
|
|
3308
3214
|
return this.isValid() && i.isValid() && r.isValid() ? (s = s || "()", (s[0] === "(" ? this.isAfter(i, n) : !this.isBefore(i, n)) && (s[1] === ")" ? this.isBefore(r, n) : !this.isAfter(r, n))) : !1;
|
|
3309
3215
|
}
|
|
3310
|
-
function
|
|
3311
|
-
var n =
|
|
3312
|
-
return this.isValid() && n.isValid() ? (t =
|
|
3216
|
+
function wa(e, t) {
|
|
3217
|
+
var n = q(e) ? e : M(e), s;
|
|
3218
|
+
return this.isValid() && n.isValid() ? (t = G(t) || "millisecond", t === "millisecond" ? this.valueOf() === n.valueOf() : (s = n.valueOf(), this.clone().startOf(t).valueOf() <= s && s <= this.clone().endOf(t).valueOf())) : !1;
|
|
3313
3219
|
}
|
|
3314
|
-
function
|
|
3220
|
+
function Sa(e, t) {
|
|
3315
3221
|
return this.isSame(e, t) || this.isAfter(e, t);
|
|
3316
3222
|
}
|
|
3317
|
-
function
|
|
3223
|
+
function ba(e, t) {
|
|
3318
3224
|
return this.isSame(e, t) || this.isBefore(e, t);
|
|
3319
3225
|
}
|
|
3320
|
-
function
|
|
3226
|
+
function xa(e, t, n) {
|
|
3321
3227
|
var s, i, r;
|
|
3322
3228
|
if (!this.isValid())
|
|
3323
3229
|
return NaN;
|
|
3324
|
-
if (s =
|
|
3230
|
+
if (s = un(e, this), !s.isValid())
|
|
3325
3231
|
return NaN;
|
|
3326
|
-
switch (i = (s.utcOffset() - this.utcOffset()) * 6e4, t =
|
|
3232
|
+
switch (i = (s.utcOffset() - this.utcOffset()) * 6e4, t = G(t), t) {
|
|
3327
3233
|
case "year":
|
|
3328
|
-
r =
|
|
3234
|
+
r = st(this, s) / 12;
|
|
3329
3235
|
break;
|
|
3330
3236
|
case "month":
|
|
3331
|
-
r =
|
|
3237
|
+
r = st(this, s);
|
|
3332
3238
|
break;
|
|
3333
3239
|
case "quarter":
|
|
3334
|
-
r =
|
|
3240
|
+
r = st(this, s) / 3;
|
|
3335
3241
|
break;
|
|
3336
3242
|
case "second":
|
|
3337
3243
|
r = (this - s) / 1e3;
|
|
@@ -3351,82 +3257,82 @@ function va(e, t, n) {
|
|
|
3351
3257
|
default:
|
|
3352
3258
|
r = this - s;
|
|
3353
3259
|
}
|
|
3354
|
-
return n ? r :
|
|
3260
|
+
return n ? r : W(r);
|
|
3355
3261
|
}
|
|
3356
|
-
function
|
|
3262
|
+
function st(e, t) {
|
|
3357
3263
|
if (e.date() < t.date())
|
|
3358
|
-
return -
|
|
3264
|
+
return -st(t, e);
|
|
3359
3265
|
var n = (t.year() - e.year()) * 12 + (t.month() - e.month()), s = e.clone().add(n, "months"), i, r;
|
|
3360
3266
|
return t - s < 0 ? (i = e.clone().add(n - 1, "months"), r = (t - s) / (s - i)) : (i = e.clone().add(n + 1, "months"), r = (t - s) / (i - s)), -(n + r) || 0;
|
|
3361
3267
|
}
|
|
3362
3268
|
g.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
|
|
3363
3269
|
g.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
3364
|
-
function
|
|
3270
|
+
function ka() {
|
|
3365
3271
|
return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
|
|
3366
3272
|
}
|
|
3367
|
-
function
|
|
3273
|
+
function Oa(e) {
|
|
3368
3274
|
if (!this.isValid())
|
|
3369
3275
|
return null;
|
|
3370
3276
|
var t = e !== !0, n = t ? this.clone().utc() : this;
|
|
3371
|
-
return n.year() < 0 || n.year() > 9999 ?
|
|
3277
|
+
return n.year() < 0 || n.year() > 9999 ? tt(
|
|
3372
3278
|
n,
|
|
3373
3279
|
t ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"
|
|
3374
|
-
) :
|
|
3280
|
+
) : te(Date.prototype.toISOString) ? t ? this.toDate().toISOString() : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", tt(n, "Z")) : tt(
|
|
3375
3281
|
n,
|
|
3376
3282
|
t ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"
|
|
3377
3283
|
);
|
|
3378
3284
|
}
|
|
3379
|
-
function
|
|
3285
|
+
function Ma() {
|
|
3380
3286
|
if (!this.isValid())
|
|
3381
3287
|
return "moment.invalid(/* " + this._i + " */)";
|
|
3382
3288
|
var e = "moment", t = "", n, s, i, r;
|
|
3383
3289
|
return this.isLocal() || (e = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", t = "Z"), n = "[" + e + '("]', s = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", i = "-MM-DD[T]HH:mm:ss.SSS", r = t + '[")]', this.format(n + s + i + r);
|
|
3384
3290
|
}
|
|
3385
|
-
function
|
|
3291
|
+
function Da(e) {
|
|
3386
3292
|
e || (e = this.isUtc() ? g.defaultFormatUtc : g.defaultFormat);
|
|
3387
|
-
var t =
|
|
3293
|
+
var t = tt(this, e);
|
|
3388
3294
|
return this.localeData().postformat(t);
|
|
3389
3295
|
}
|
|
3390
|
-
function
|
|
3391
|
-
return this.isValid() && (
|
|
3296
|
+
function Ya(e, t) {
|
|
3297
|
+
return this.isValid() && (q(e) && e.isValid() || M(e).isValid()) ? J({ to: this, from: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
|
|
3392
3298
|
}
|
|
3393
|
-
function
|
|
3394
|
-
return this.from(
|
|
3299
|
+
function Na(e) {
|
|
3300
|
+
return this.from(M(), e);
|
|
3395
3301
|
}
|
|
3396
|
-
function
|
|
3397
|
-
return this.isValid() && (
|
|
3302
|
+
function Ca(e, t) {
|
|
3303
|
+
return this.isValid() && (q(e) && e.isValid() || M(e).isValid()) ? J({ from: this, to: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
|
|
3398
3304
|
}
|
|
3399
|
-
function
|
|
3400
|
-
return this.to(
|
|
3305
|
+
function La(e) {
|
|
3306
|
+
return this.to(M(), e);
|
|
3401
3307
|
}
|
|
3402
|
-
function
|
|
3308
|
+
function cs(e) {
|
|
3403
3309
|
var t;
|
|
3404
|
-
return e === void 0 ? this._locale._abbr : (t =
|
|
3310
|
+
return e === void 0 ? this._locale._abbr : (t = le(e), t != null && (this._locale = t), this);
|
|
3405
3311
|
}
|
|
3406
|
-
var
|
|
3312
|
+
var fs = V(
|
|
3407
3313
|
"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
|
|
3408
3314
|
function(e) {
|
|
3409
3315
|
return e === void 0 ? this.localeData() : this.locale(e);
|
|
3410
3316
|
}
|
|
3411
3317
|
);
|
|
3412
|
-
function
|
|
3318
|
+
function gs() {
|
|
3413
3319
|
return this._locale;
|
|
3414
3320
|
}
|
|
3415
|
-
var
|
|
3416
|
-
function
|
|
3321
|
+
var dt = 1e3, Me = 60 * dt, ht = 60 * Me, ms = (365 * 400 + 97) * 24 * ht;
|
|
3322
|
+
function De(e, t) {
|
|
3417
3323
|
return (e % t + t) % t;
|
|
3418
3324
|
}
|
|
3419
|
-
function
|
|
3420
|
-
return e < 100 && e >= 0 ? new Date(e + 400, t, n) -
|
|
3325
|
+
function ps(e, t, n) {
|
|
3326
|
+
return e < 100 && e >= 0 ? new Date(e + 400, t, n) - ms : new Date(e, t, n).valueOf();
|
|
3421
3327
|
}
|
|
3422
|
-
function
|
|
3423
|
-
return e < 100 && e >= 0 ? Date.UTC(e + 400, t, n) -
|
|
3328
|
+
function ys(e, t, n) {
|
|
3329
|
+
return e < 100 && e >= 0 ? Date.UTC(e + 400, t, n) - ms : Date.UTC(e, t, n);
|
|
3424
3330
|
}
|
|
3425
|
-
function
|
|
3331
|
+
function Ra(e) {
|
|
3426
3332
|
var t, n;
|
|
3427
|
-
if (e =
|
|
3333
|
+
if (e = G(e), e === void 0 || e === "millisecond" || !this.isValid())
|
|
3428
3334
|
return this;
|
|
3429
|
-
switch (n = this._isUTC ?
|
|
3335
|
+
switch (n = this._isUTC ? ys : ps, e) {
|
|
3430
3336
|
case "year":
|
|
3431
3337
|
t = n(this.year(), 0, 1);
|
|
3432
3338
|
break;
|
|
@@ -3459,25 +3365,25 @@ function Ya(e) {
|
|
|
3459
3365
|
t = n(this.year(), this.month(), this.date());
|
|
3460
3366
|
break;
|
|
3461
3367
|
case "hour":
|
|
3462
|
-
t = this._d.valueOf(), t -=
|
|
3463
|
-
t + (this._isUTC ? 0 : this.utcOffset() *
|
|
3464
|
-
|
|
3368
|
+
t = this._d.valueOf(), t -= De(
|
|
3369
|
+
t + (this._isUTC ? 0 : this.utcOffset() * Me),
|
|
3370
|
+
ht
|
|
3465
3371
|
);
|
|
3466
3372
|
break;
|
|
3467
3373
|
case "minute":
|
|
3468
|
-
t = this._d.valueOf(), t -=
|
|
3374
|
+
t = this._d.valueOf(), t -= De(t, Me);
|
|
3469
3375
|
break;
|
|
3470
3376
|
case "second":
|
|
3471
|
-
t = this._d.valueOf(), t -=
|
|
3377
|
+
t = this._d.valueOf(), t -= De(t, dt);
|
|
3472
3378
|
break;
|
|
3473
3379
|
}
|
|
3474
3380
|
return this._d.setTime(t), g.updateOffset(this, !0), this;
|
|
3475
3381
|
}
|
|
3476
|
-
function
|
|
3382
|
+
function Pa(e) {
|
|
3477
3383
|
var t, n;
|
|
3478
|
-
if (e =
|
|
3384
|
+
if (e = G(e), e === void 0 || e === "millisecond" || !this.isValid())
|
|
3479
3385
|
return this;
|
|
3480
|
-
switch (n = this._isUTC ?
|
|
3386
|
+
switch (n = this._isUTC ? ys : ps, e) {
|
|
3481
3387
|
case "year":
|
|
3482
3388
|
t = n(this.year() + 1, 0, 1) - 1;
|
|
3483
3389
|
break;
|
|
@@ -3510,30 +3416,30 @@ function Na(e) {
|
|
|
3510
3416
|
t = n(this.year(), this.month(), this.date() + 1) - 1;
|
|
3511
3417
|
break;
|
|
3512
3418
|
case "hour":
|
|
3513
|
-
t = this._d.valueOf(), t +=
|
|
3514
|
-
t + (this._isUTC ? 0 : this.utcOffset() *
|
|
3515
|
-
|
|
3419
|
+
t = this._d.valueOf(), t += ht - De(
|
|
3420
|
+
t + (this._isUTC ? 0 : this.utcOffset() * Me),
|
|
3421
|
+
ht
|
|
3516
3422
|
) - 1;
|
|
3517
3423
|
break;
|
|
3518
3424
|
case "minute":
|
|
3519
|
-
t = this._d.valueOf(), t +=
|
|
3425
|
+
t = this._d.valueOf(), t += Me - De(t, Me) - 1;
|
|
3520
3426
|
break;
|
|
3521
3427
|
case "second":
|
|
3522
|
-
t = this._d.valueOf(), t +=
|
|
3428
|
+
t = this._d.valueOf(), t += dt - De(t, dt) - 1;
|
|
3523
3429
|
break;
|
|
3524
3430
|
}
|
|
3525
3431
|
return this._d.setTime(t), g.updateOffset(this, !0), this;
|
|
3526
3432
|
}
|
|
3527
|
-
function
|
|
3433
|
+
function Ta() {
|
|
3528
3434
|
return this._d.valueOf() - (this._offset || 0) * 6e4;
|
|
3529
3435
|
}
|
|
3530
|
-
function
|
|
3436
|
+
function Ea() {
|
|
3531
3437
|
return Math.floor(this.valueOf() / 1e3);
|
|
3532
3438
|
}
|
|
3533
|
-
function
|
|
3439
|
+
function Fa() {
|
|
3534
3440
|
return new Date(this.valueOf());
|
|
3535
3441
|
}
|
|
3536
|
-
function
|
|
3442
|
+
function Aa() {
|
|
3537
3443
|
var e = this;
|
|
3538
3444
|
return [
|
|
3539
3445
|
e.year(),
|
|
@@ -3545,7 +3451,7 @@ function Pa() {
|
|
|
3545
3451
|
e.millisecond()
|
|
3546
3452
|
];
|
|
3547
3453
|
}
|
|
3548
|
-
function
|
|
3454
|
+
function Ia() {
|
|
3549
3455
|
var e = this;
|
|
3550
3456
|
return {
|
|
3551
3457
|
years: e.year(),
|
|
@@ -3557,19 +3463,19 @@ function Ta() {
|
|
|
3557
3463
|
milliseconds: e.milliseconds()
|
|
3558
3464
|
};
|
|
3559
3465
|
}
|
|
3560
|
-
function
|
|
3466
|
+
function ja() {
|
|
3561
3467
|
return this.isValid() ? this.toISOString() : null;
|
|
3562
3468
|
}
|
|
3563
|
-
function
|
|
3564
|
-
return
|
|
3469
|
+
function Ua() {
|
|
3470
|
+
return Vt(this);
|
|
3565
3471
|
}
|
|
3566
|
-
function
|
|
3567
|
-
return
|
|
3472
|
+
function Ha() {
|
|
3473
|
+
return he({}, v(this));
|
|
3568
3474
|
}
|
|
3569
|
-
function
|
|
3570
|
-
return
|
|
3475
|
+
function $a() {
|
|
3476
|
+
return v(this).overflow;
|
|
3571
3477
|
}
|
|
3572
|
-
function
|
|
3478
|
+
function Wa() {
|
|
3573
3479
|
return {
|
|
3574
3480
|
input: this._i,
|
|
3575
3481
|
format: this._f,
|
|
@@ -3587,30 +3493,30 @@ p("y", ["y", 1], "yo", "eraYear");
|
|
|
3587
3493
|
p("y", ["yy", 2], 0, "eraYear");
|
|
3588
3494
|
p("y", ["yyy", 3], 0, "eraYear");
|
|
3589
3495
|
p("y", ["yyyy", 4], 0, "eraYear");
|
|
3590
|
-
m("N",
|
|
3591
|
-
m("NN",
|
|
3592
|
-
m("NNN",
|
|
3593
|
-
m("NNNN",
|
|
3594
|
-
m("NNNNN",
|
|
3595
|
-
|
|
3496
|
+
m("N", ln);
|
|
3497
|
+
m("NN", ln);
|
|
3498
|
+
m("NNN", ln);
|
|
3499
|
+
m("NNNN", eo);
|
|
3500
|
+
m("NNNNN", to);
|
|
3501
|
+
O(
|
|
3596
3502
|
["N", "NN", "NNN", "NNNN", "NNNNN"],
|
|
3597
3503
|
function(e, t, n, s) {
|
|
3598
3504
|
var i = n._locale.erasParse(e, s, n._strict);
|
|
3599
|
-
i ?
|
|
3505
|
+
i ? v(n).era = i : v(n).invalidEra = e;
|
|
3600
3506
|
}
|
|
3601
3507
|
);
|
|
3602
|
-
m("y",
|
|
3603
|
-
m("yy",
|
|
3604
|
-
m("yyy",
|
|
3605
|
-
m("yyyy",
|
|
3606
|
-
m("yo",
|
|
3607
|
-
|
|
3608
|
-
|
|
3508
|
+
m("y", Ye);
|
|
3509
|
+
m("yy", Ye);
|
|
3510
|
+
m("yyy", Ye);
|
|
3511
|
+
m("yyyy", Ye);
|
|
3512
|
+
m("yo", no);
|
|
3513
|
+
O(["y", "yy", "yyy", "yyyy"], T);
|
|
3514
|
+
O(["yo"], function(e, t, n, s) {
|
|
3609
3515
|
var i;
|
|
3610
3516
|
n._locale._eraYearOrdinalRegex && (i = e.match(n._locale._eraYearOrdinalRegex)), n._locale.eraYearOrdinalParse ? t[T] = n._locale.eraYearOrdinalParse(e, i) : t[T] = parseInt(e, 10);
|
|
3611
3517
|
});
|
|
3612
|
-
function
|
|
3613
|
-
var n, s, i, r = this._eras ||
|
|
3518
|
+
function Va(e, t) {
|
|
3519
|
+
var n, s, i, r = this._eras || le("en")._eras;
|
|
3614
3520
|
for (n = 0, s = r.length; n < s; ++n) {
|
|
3615
3521
|
switch (typeof r[n].since) {
|
|
3616
3522
|
case "string":
|
|
@@ -3628,7 +3534,7 @@ function Ua(e, t) {
|
|
|
3628
3534
|
}
|
|
3629
3535
|
return r;
|
|
3630
3536
|
}
|
|
3631
|
-
function
|
|
3537
|
+
function Ga(e, t, n) {
|
|
3632
3538
|
var s, i, r = this.eras(), a, o, u;
|
|
3633
3539
|
for (e = e.toUpperCase(), s = 0, i = r.length; s < i; ++s)
|
|
3634
3540
|
if (a = r[s].name.toUpperCase(), o = r[s].abbr.toUpperCase(), u = r[s].narrow.toUpperCase(), n)
|
|
@@ -3651,63 +3557,63 @@ function Ha(e, t, n) {
|
|
|
3651
3557
|
else if ([a, o, u].indexOf(e) >= 0)
|
|
3652
3558
|
return r[s];
|
|
3653
3559
|
}
|
|
3654
|
-
function
|
|
3560
|
+
function za(e, t) {
|
|
3655
3561
|
var n = e.since <= e.until ? 1 : -1;
|
|
3656
3562
|
return t === void 0 ? g(e.since).year() : g(e.since).year() + (t - e.offset) * n;
|
|
3657
3563
|
}
|
|
3658
|
-
function
|
|
3564
|
+
function Ka() {
|
|
3659
3565
|
var e, t, n, s = this.localeData().eras();
|
|
3660
3566
|
for (e = 0, t = s.length; e < t; ++e)
|
|
3661
3567
|
if (n = this.clone().startOf("day").valueOf(), s[e].since <= n && n <= s[e].until || s[e].until <= n && n <= s[e].since)
|
|
3662
3568
|
return s[e].name;
|
|
3663
3569
|
return "";
|
|
3664
3570
|
}
|
|
3665
|
-
function
|
|
3571
|
+
function Ba() {
|
|
3666
3572
|
var e, t, n, s = this.localeData().eras();
|
|
3667
3573
|
for (e = 0, t = s.length; e < t; ++e)
|
|
3668
3574
|
if (n = this.clone().startOf("day").valueOf(), s[e].since <= n && n <= s[e].until || s[e].until <= n && n <= s[e].since)
|
|
3669
3575
|
return s[e].narrow;
|
|
3670
3576
|
return "";
|
|
3671
3577
|
}
|
|
3672
|
-
function
|
|
3578
|
+
function qa() {
|
|
3673
3579
|
var e, t, n, s = this.localeData().eras();
|
|
3674
3580
|
for (e = 0, t = s.length; e < t; ++e)
|
|
3675
3581
|
if (n = this.clone().startOf("day").valueOf(), s[e].since <= n && n <= s[e].until || s[e].until <= n && n <= s[e].since)
|
|
3676
3582
|
return s[e].abbr;
|
|
3677
3583
|
return "";
|
|
3678
3584
|
}
|
|
3679
|
-
function
|
|
3585
|
+
function Ja() {
|
|
3680
3586
|
var e, t, n, s, i = this.localeData().eras();
|
|
3681
3587
|
for (e = 0, t = i.length; e < t; ++e)
|
|
3682
3588
|
if (n = i[e].since <= i[e].until ? 1 : -1, s = this.clone().startOf("day").valueOf(), i[e].since <= s && s <= i[e].until || i[e].until <= s && s <= i[e].since)
|
|
3683
3589
|
return (this.year() - g(i[e].since).year()) * n + i[e].offset;
|
|
3684
3590
|
return this.year();
|
|
3685
3591
|
}
|
|
3686
|
-
function
|
|
3687
|
-
return
|
|
3592
|
+
function Za(e) {
|
|
3593
|
+
return b(this, "_erasNameRegex") || dn.call(this), e ? this._erasNameRegex : this._erasRegex;
|
|
3688
3594
|
}
|
|
3689
|
-
function
|
|
3690
|
-
return
|
|
3595
|
+
function Qa(e) {
|
|
3596
|
+
return b(this, "_erasAbbrRegex") || dn.call(this), e ? this._erasAbbrRegex : this._erasRegex;
|
|
3691
3597
|
}
|
|
3692
|
-
function
|
|
3693
|
-
return
|
|
3598
|
+
function Xa(e) {
|
|
3599
|
+
return b(this, "_erasNarrowRegex") || dn.call(this), e ? this._erasNarrowRegex : this._erasRegex;
|
|
3694
3600
|
}
|
|
3695
|
-
function
|
|
3601
|
+
function ln(e, t) {
|
|
3696
3602
|
return t.erasAbbrRegex(e);
|
|
3697
3603
|
}
|
|
3698
|
-
function
|
|
3604
|
+
function eo(e, t) {
|
|
3699
3605
|
return t.erasNameRegex(e);
|
|
3700
3606
|
}
|
|
3701
|
-
function
|
|
3607
|
+
function to(e, t) {
|
|
3702
3608
|
return t.erasNarrowRegex(e);
|
|
3703
3609
|
}
|
|
3704
|
-
function
|
|
3705
|
-
return t._eraYearOrdinalRegex ||
|
|
3610
|
+
function no(e, t) {
|
|
3611
|
+
return t._eraYearOrdinalRegex || Ye;
|
|
3706
3612
|
}
|
|
3707
|
-
function
|
|
3613
|
+
function dn() {
|
|
3708
3614
|
var e = [], t = [], n = [], s = [], i, r, a, o, u, l = this.eras();
|
|
3709
3615
|
for (i = 0, r = l.length; i < r; ++i)
|
|
3710
|
-
a =
|
|
3616
|
+
a = ae(l[i].name), o = ae(l[i].abbr), u = ae(l[i].narrow), t.push(a), e.push(o), n.push(u), s.push(a), s.push(o), s.push(u);
|
|
3711
3617
|
this._erasRegex = new RegExp("^(" + s.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + t.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + e.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp(
|
|
3712
3618
|
"^(" + n.join("|") + ")",
|
|
3713
3619
|
"i"
|
|
@@ -3719,32 +3625,32 @@ p(0, ["gg", 2], 0, function() {
|
|
|
3719
3625
|
p(0, ["GG", 2], 0, function() {
|
|
3720
3626
|
return this.isoWeekYear() % 100;
|
|
3721
3627
|
});
|
|
3722
|
-
function
|
|
3628
|
+
function xt(e, t) {
|
|
3723
3629
|
p(0, [e, e.length], 0, t);
|
|
3724
3630
|
}
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
m("G",
|
|
3730
|
-
m("g",
|
|
3731
|
-
m("GG",
|
|
3732
|
-
m("gg",
|
|
3733
|
-
m("GGGG",
|
|
3734
|
-
m("gggg",
|
|
3735
|
-
m("GGGGG",
|
|
3736
|
-
m("ggggg",
|
|
3737
|
-
|
|
3631
|
+
xt("gggg", "weekYear");
|
|
3632
|
+
xt("ggggg", "weekYear");
|
|
3633
|
+
xt("GGGG", "isoWeekYear");
|
|
3634
|
+
xt("GGGGG", "isoWeekYear");
|
|
3635
|
+
m("G", _t);
|
|
3636
|
+
m("g", _t);
|
|
3637
|
+
m("GG", D, $);
|
|
3638
|
+
m("gg", D, $);
|
|
3639
|
+
m("GGGG", Jt, qt);
|
|
3640
|
+
m("gggg", Jt, qt);
|
|
3641
|
+
m("GGGGG", yt, mt);
|
|
3642
|
+
m("ggggg", yt, mt);
|
|
3643
|
+
qe(
|
|
3738
3644
|
["gggg", "ggggg", "GGGG", "GGGGG"],
|
|
3739
3645
|
function(e, t, n, s) {
|
|
3740
|
-
t[s.substr(0, 2)] =
|
|
3646
|
+
t[s.substr(0, 2)] = w(e);
|
|
3741
3647
|
}
|
|
3742
3648
|
);
|
|
3743
|
-
|
|
3649
|
+
qe(["gg", "GG"], function(e, t, n, s) {
|
|
3744
3650
|
t[s] = g.parseTwoDigitYear(e);
|
|
3745
3651
|
});
|
|
3746
|
-
function
|
|
3747
|
-
return
|
|
3652
|
+
function so(e) {
|
|
3653
|
+
return _s.call(
|
|
3748
3654
|
this,
|
|
3749
3655
|
e,
|
|
3750
3656
|
this.week(),
|
|
@@ -3753,8 +3659,8 @@ function Xa(e) {
|
|
|
3753
3659
|
this.localeData()._week.doy
|
|
3754
3660
|
);
|
|
3755
3661
|
}
|
|
3756
|
-
function
|
|
3757
|
-
return
|
|
3662
|
+
function io(e) {
|
|
3663
|
+
return _s.call(
|
|
3758
3664
|
this,
|
|
3759
3665
|
e,
|
|
3760
3666
|
this.isoWeek(),
|
|
@@ -3763,69 +3669,69 @@ function eo(e) {
|
|
|
3763
3669
|
4
|
|
3764
3670
|
);
|
|
3765
3671
|
}
|
|
3766
|
-
function
|
|
3767
|
-
return
|
|
3672
|
+
function ro() {
|
|
3673
|
+
return oe(this.year(), 1, 4);
|
|
3768
3674
|
}
|
|
3769
|
-
function
|
|
3770
|
-
return
|
|
3675
|
+
function ao() {
|
|
3676
|
+
return oe(this.isoWeekYear(), 1, 4);
|
|
3771
3677
|
}
|
|
3772
|
-
function
|
|
3678
|
+
function oo() {
|
|
3773
3679
|
var e = this.localeData()._week;
|
|
3774
|
-
return
|
|
3680
|
+
return oe(this.year(), e.dow, e.doy);
|
|
3775
3681
|
}
|
|
3776
|
-
function
|
|
3682
|
+
function uo() {
|
|
3777
3683
|
var e = this.localeData()._week;
|
|
3778
|
-
return
|
|
3684
|
+
return oe(this.weekYear(), e.dow, e.doy);
|
|
3779
3685
|
}
|
|
3780
|
-
function
|
|
3686
|
+
function _s(e, t, n, s, i) {
|
|
3781
3687
|
var r;
|
|
3782
|
-
return e == null ?
|
|
3688
|
+
return e == null ? Ve(this, s, i).year : (r = oe(e, s, i), t > r && (t = r), lo.call(this, e, t, n, s, i));
|
|
3783
3689
|
}
|
|
3784
|
-
function
|
|
3785
|
-
var r =
|
|
3690
|
+
function lo(e, t, n, s, i) {
|
|
3691
|
+
var r = Zn(e, t, n, s, i), a = We(r.year, 0, r.dayOfYear);
|
|
3786
3692
|
return this.year(a.getUTCFullYear()), this.month(a.getUTCMonth()), this.date(a.getUTCDate()), this;
|
|
3787
3693
|
}
|
|
3788
3694
|
p("Q", 0, "Qo", "quarter");
|
|
3789
|
-
m("Q",
|
|
3790
|
-
|
|
3791
|
-
t[
|
|
3695
|
+
m("Q", Un);
|
|
3696
|
+
O("Q", function(e, t) {
|
|
3697
|
+
t[ie] = (w(e) - 1) * 3;
|
|
3792
3698
|
});
|
|
3793
|
-
function
|
|
3699
|
+
function ho(e) {
|
|
3794
3700
|
return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + this.month() % 3);
|
|
3795
3701
|
}
|
|
3796
3702
|
p("D", ["DD", 2], "Do", "date");
|
|
3797
|
-
m("D",
|
|
3798
|
-
m("DD",
|
|
3703
|
+
m("D", D, Ne);
|
|
3704
|
+
m("DD", D, $);
|
|
3799
3705
|
m("Do", function(e, t) {
|
|
3800
3706
|
return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient;
|
|
3801
3707
|
});
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
t[
|
|
3708
|
+
O(["D", "DD"], Z);
|
|
3709
|
+
O("Do", function(e, t) {
|
|
3710
|
+
t[Z] = w(e.match(D)[0]);
|
|
3805
3711
|
});
|
|
3806
|
-
var
|
|
3712
|
+
var vs = Ce("Date", !0);
|
|
3807
3713
|
p("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
|
|
3808
|
-
m("DDD",
|
|
3809
|
-
m("DDDD",
|
|
3810
|
-
|
|
3811
|
-
n._dayOfYear =
|
|
3714
|
+
m("DDD", pt);
|
|
3715
|
+
m("DDDD", Hn);
|
|
3716
|
+
O(["DDD", "DDDD"], function(e, t, n) {
|
|
3717
|
+
n._dayOfYear = w(e);
|
|
3812
3718
|
});
|
|
3813
|
-
function
|
|
3719
|
+
function co(e) {
|
|
3814
3720
|
var t = Math.round(
|
|
3815
3721
|
(this.clone().startOf("day") - this.clone().startOf("year")) / 864e5
|
|
3816
3722
|
) + 1;
|
|
3817
3723
|
return e == null ? t : this.add(e - t, "d");
|
|
3818
3724
|
}
|
|
3819
3725
|
p("m", ["mm", 2], 0, "minute");
|
|
3820
|
-
m("m",
|
|
3821
|
-
m("mm",
|
|
3822
|
-
|
|
3823
|
-
var
|
|
3726
|
+
m("m", D, Zt);
|
|
3727
|
+
m("mm", D, $);
|
|
3728
|
+
O(["m", "mm"], K);
|
|
3729
|
+
var fo = Ce("Minutes", !1);
|
|
3824
3730
|
p("s", ["ss", 2], 0, "second");
|
|
3825
|
-
m("s",
|
|
3826
|
-
m("ss",
|
|
3827
|
-
|
|
3828
|
-
var
|
|
3731
|
+
m("s", D, Zt);
|
|
3732
|
+
m("ss", D, $);
|
|
3733
|
+
O(["s", "ss"], re);
|
|
3734
|
+
var go = Ce("Seconds", !1);
|
|
3829
3735
|
p("S", 0, 0, function() {
|
|
3830
3736
|
return ~~(this.millisecond() / 100);
|
|
3831
3737
|
});
|
|
@@ -3851,205 +3757,205 @@ p(0, ["SSSSSSSS", 8], 0, function() {
|
|
|
3851
3757
|
p(0, ["SSSSSSSSS", 9], 0, function() {
|
|
3852
3758
|
return this.millisecond() * 1e6;
|
|
3853
3759
|
});
|
|
3854
|
-
m("S",
|
|
3855
|
-
m("SS",
|
|
3856
|
-
m("SSS",
|
|
3857
|
-
var
|
|
3858
|
-
for (
|
|
3859
|
-
m(
|
|
3860
|
-
function
|
|
3861
|
-
t[
|
|
3862
|
-
}
|
|
3863
|
-
for (
|
|
3864
|
-
|
|
3865
|
-
|
|
3760
|
+
m("S", pt, Un);
|
|
3761
|
+
m("SS", pt, $);
|
|
3762
|
+
m("SSS", pt, Hn);
|
|
3763
|
+
var ce, ws;
|
|
3764
|
+
for (ce = "SSSS"; ce.length <= 9; ce += "S")
|
|
3765
|
+
m(ce, Ye);
|
|
3766
|
+
function mo(e, t) {
|
|
3767
|
+
t[ye] = w(("0." + e) * 1e3);
|
|
3768
|
+
}
|
|
3769
|
+
for (ce = "S"; ce.length <= 9; ce += "S")
|
|
3770
|
+
O(ce, mo);
|
|
3771
|
+
ws = Ce("Milliseconds", !1);
|
|
3866
3772
|
p("z", 0, 0, "zoneAbbr");
|
|
3867
3773
|
p("zz", 0, 0, "zoneName");
|
|
3868
|
-
function
|
|
3774
|
+
function po() {
|
|
3869
3775
|
return this._isUTC ? "UTC" : "";
|
|
3870
3776
|
}
|
|
3871
|
-
function
|
|
3777
|
+
function yo() {
|
|
3872
3778
|
return this._isUTC ? "Coordinated Universal Time" : "";
|
|
3873
3779
|
}
|
|
3874
|
-
var c =
|
|
3875
|
-
c.add =
|
|
3876
|
-
c.calendar =
|
|
3877
|
-
c.clone =
|
|
3878
|
-
c.diff =
|
|
3879
|
-
c.endOf =
|
|
3880
|
-
c.format =
|
|
3881
|
-
c.from =
|
|
3882
|
-
c.fromNow =
|
|
3883
|
-
c.to =
|
|
3884
|
-
c.toNow =
|
|
3885
|
-
c.get =
|
|
3886
|
-
c.invalidAt =
|
|
3887
|
-
c.isAfter =
|
|
3888
|
-
c.isBefore =
|
|
3889
|
-
c.isBetween =
|
|
3890
|
-
c.isSame =
|
|
3891
|
-
c.isSameOrAfter =
|
|
3892
|
-
c.isSameOrBefore =
|
|
3893
|
-
c.isValid =
|
|
3894
|
-
c.lang =
|
|
3895
|
-
c.locale =
|
|
3896
|
-
c.localeData =
|
|
3897
|
-
c.max =
|
|
3898
|
-
c.min =
|
|
3899
|
-
c.parsingFlags =
|
|
3900
|
-
c.set =
|
|
3901
|
-
c.startOf =
|
|
3902
|
-
c.subtract =
|
|
3903
|
-
c.toArray =
|
|
3904
|
-
c.toObject =
|
|
3905
|
-
c.toDate =
|
|
3906
|
-
c.toISOString =
|
|
3907
|
-
c.inspect =
|
|
3780
|
+
var c = Ke.prototype;
|
|
3781
|
+
c.add = ua;
|
|
3782
|
+
c.calendar = ma;
|
|
3783
|
+
c.clone = pa;
|
|
3784
|
+
c.diff = xa;
|
|
3785
|
+
c.endOf = Pa;
|
|
3786
|
+
c.format = Da;
|
|
3787
|
+
c.from = Ya;
|
|
3788
|
+
c.fromNow = Na;
|
|
3789
|
+
c.to = Ca;
|
|
3790
|
+
c.toNow = La;
|
|
3791
|
+
c.get = Mi;
|
|
3792
|
+
c.invalidAt = $a;
|
|
3793
|
+
c.isAfter = ya;
|
|
3794
|
+
c.isBefore = _a;
|
|
3795
|
+
c.isBetween = va;
|
|
3796
|
+
c.isSame = wa;
|
|
3797
|
+
c.isSameOrAfter = Sa;
|
|
3798
|
+
c.isSameOrBefore = ba;
|
|
3799
|
+
c.isValid = Ua;
|
|
3800
|
+
c.lang = fs;
|
|
3801
|
+
c.locale = cs;
|
|
3802
|
+
c.localeData = gs;
|
|
3803
|
+
c.max = Ur;
|
|
3804
|
+
c.min = jr;
|
|
3805
|
+
c.parsingFlags = Ha;
|
|
3806
|
+
c.set = Di;
|
|
3807
|
+
c.startOf = Ra;
|
|
3808
|
+
c.subtract = la;
|
|
3809
|
+
c.toArray = Aa;
|
|
3810
|
+
c.toObject = Ia;
|
|
3811
|
+
c.toDate = Fa;
|
|
3812
|
+
c.toISOString = Oa;
|
|
3813
|
+
c.inspect = Ma;
|
|
3908
3814
|
typeof Symbol < "u" && Symbol.for != null && (c[Symbol.for("nodejs.util.inspect.custom")] = function() {
|
|
3909
3815
|
return "Moment<" + this.format() + ">";
|
|
3910
3816
|
});
|
|
3911
|
-
c.toJSON =
|
|
3912
|
-
c.toString =
|
|
3913
|
-
c.unix =
|
|
3914
|
-
c.valueOf =
|
|
3915
|
-
c.creationData =
|
|
3916
|
-
c.eraName =
|
|
3917
|
-
c.eraNarrow =
|
|
3918
|
-
c.eraAbbr =
|
|
3919
|
-
c.eraYear =
|
|
3920
|
-
c.year =
|
|
3921
|
-
c.isLeapYear =
|
|
3922
|
-
c.weekYear =
|
|
3923
|
-
c.isoWeekYear =
|
|
3924
|
-
c.quarter = c.quarters =
|
|
3925
|
-
c.month =
|
|
3926
|
-
c.daysInMonth =
|
|
3927
|
-
c.week = c.weeks =
|
|
3928
|
-
c.isoWeek = c.isoWeeks =
|
|
3929
|
-
c.weeksInYear =
|
|
3930
|
-
c.weeksInWeekYear =
|
|
3931
|
-
c.isoWeeksInYear =
|
|
3932
|
-
c.isoWeeksInISOWeekYear =
|
|
3933
|
-
c.date =
|
|
3934
|
-
c.day = c.days =
|
|
3935
|
-
c.weekday =
|
|
3936
|
-
c.isoWeekday =
|
|
3937
|
-
c.dayOfYear =
|
|
3938
|
-
c.hour = c.hours =
|
|
3939
|
-
c.minute = c.minutes =
|
|
3940
|
-
c.second = c.seconds =
|
|
3941
|
-
c.millisecond = c.milliseconds =
|
|
3942
|
-
c.utcOffset =
|
|
3943
|
-
c.utc =
|
|
3944
|
-
c.local =
|
|
3945
|
-
c.parseZone =
|
|
3946
|
-
c.hasAlignedHourOffset =
|
|
3947
|
-
c.isDST =
|
|
3948
|
-
c.isLocal =
|
|
3949
|
-
c.isUtcOffset =
|
|
3950
|
-
c.isUtc =
|
|
3951
|
-
c.isUTC =
|
|
3952
|
-
c.zoneAbbr =
|
|
3953
|
-
c.zoneName =
|
|
3954
|
-
c.dates =
|
|
3817
|
+
c.toJSON = ja;
|
|
3818
|
+
c.toString = ka;
|
|
3819
|
+
c.unix = Ea;
|
|
3820
|
+
c.valueOf = Ta;
|
|
3821
|
+
c.creationData = Wa;
|
|
3822
|
+
c.eraName = Ka;
|
|
3823
|
+
c.eraNarrow = Ba;
|
|
3824
|
+
c.eraAbbr = qa;
|
|
3825
|
+
c.eraYear = Ja;
|
|
3826
|
+
c.year = Vn;
|
|
3827
|
+
c.isLeapYear = Oi;
|
|
3828
|
+
c.weekYear = so;
|
|
3829
|
+
c.isoWeekYear = io;
|
|
3830
|
+
c.quarter = c.quarters = ho;
|
|
3831
|
+
c.month = qn;
|
|
3832
|
+
c.daysInMonth = Fi;
|
|
3833
|
+
c.week = c.weeks = Vi;
|
|
3834
|
+
c.isoWeek = c.isoWeeks = Gi;
|
|
3835
|
+
c.weeksInYear = oo;
|
|
3836
|
+
c.weeksInWeekYear = uo;
|
|
3837
|
+
c.isoWeeksInYear = ro;
|
|
3838
|
+
c.isoWeeksInISOWeekYear = ao;
|
|
3839
|
+
c.date = vs;
|
|
3840
|
+
c.day = c.days = ir;
|
|
3841
|
+
c.weekday = rr;
|
|
3842
|
+
c.isoWeekday = ar;
|
|
3843
|
+
c.dayOfYear = co;
|
|
3844
|
+
c.hour = c.hours = fr;
|
|
3845
|
+
c.minute = c.minutes = fo;
|
|
3846
|
+
c.second = c.seconds = go;
|
|
3847
|
+
c.millisecond = c.milliseconds = ws;
|
|
3848
|
+
c.utcOffset = qr;
|
|
3849
|
+
c.utc = Zr;
|
|
3850
|
+
c.local = Qr;
|
|
3851
|
+
c.parseZone = Xr;
|
|
3852
|
+
c.hasAlignedHourOffset = ea;
|
|
3853
|
+
c.isDST = ta;
|
|
3854
|
+
c.isLocal = sa;
|
|
3855
|
+
c.isUtcOffset = ia;
|
|
3856
|
+
c.isUtc = us;
|
|
3857
|
+
c.isUTC = us;
|
|
3858
|
+
c.zoneAbbr = po;
|
|
3859
|
+
c.zoneName = yo;
|
|
3860
|
+
c.dates = V(
|
|
3955
3861
|
"dates accessor is deprecated. Use date instead.",
|
|
3956
|
-
|
|
3862
|
+
vs
|
|
3957
3863
|
);
|
|
3958
|
-
c.months =
|
|
3864
|
+
c.months = V(
|
|
3959
3865
|
"months accessor is deprecated. Use month instead",
|
|
3960
|
-
|
|
3866
|
+
qn
|
|
3961
3867
|
);
|
|
3962
|
-
c.years =
|
|
3868
|
+
c.years = V(
|
|
3963
3869
|
"years accessor is deprecated. Use year instead",
|
|
3964
|
-
|
|
3870
|
+
Vn
|
|
3965
3871
|
);
|
|
3966
|
-
c.zone =
|
|
3872
|
+
c.zone = V(
|
|
3967
3873
|
"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
|
|
3968
|
-
|
|
3874
|
+
Jr
|
|
3969
3875
|
);
|
|
3970
|
-
c.isDSTShifted =
|
|
3876
|
+
c.isDSTShifted = V(
|
|
3971
3877
|
"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
|
|
3972
|
-
|
|
3878
|
+
na
|
|
3973
3879
|
);
|
|
3974
|
-
function
|
|
3975
|
-
return
|
|
3880
|
+
function _o(e) {
|
|
3881
|
+
return M(e * 1e3);
|
|
3976
3882
|
}
|
|
3977
|
-
function
|
|
3978
|
-
return
|
|
3883
|
+
function vo() {
|
|
3884
|
+
return M.apply(null, arguments).parseZone();
|
|
3979
3885
|
}
|
|
3980
|
-
function
|
|
3886
|
+
function Ss(e) {
|
|
3981
3887
|
return e;
|
|
3982
3888
|
}
|
|
3983
|
-
var
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
function
|
|
4017
|
-
var i =
|
|
3889
|
+
var x = zt.prototype;
|
|
3890
|
+
x.calendar = si;
|
|
3891
|
+
x.longDateFormat = oi;
|
|
3892
|
+
x.invalidDate = li;
|
|
3893
|
+
x.ordinal = ci;
|
|
3894
|
+
x.preparse = Ss;
|
|
3895
|
+
x.postformat = Ss;
|
|
3896
|
+
x.relativeTime = gi;
|
|
3897
|
+
x.pastFuture = mi;
|
|
3898
|
+
x.set = ti;
|
|
3899
|
+
x.eras = Va;
|
|
3900
|
+
x.erasParse = Ga;
|
|
3901
|
+
x.erasConvertYear = za;
|
|
3902
|
+
x.erasAbbrRegex = Qa;
|
|
3903
|
+
x.erasNameRegex = Za;
|
|
3904
|
+
x.erasNarrowRegex = Xa;
|
|
3905
|
+
x.months = Ri;
|
|
3906
|
+
x.monthsShort = Pi;
|
|
3907
|
+
x.monthsParse = Ei;
|
|
3908
|
+
x.monthsRegex = Ii;
|
|
3909
|
+
x.monthsShortRegex = Ai;
|
|
3910
|
+
x.week = Ui;
|
|
3911
|
+
x.firstDayOfYear = Wi;
|
|
3912
|
+
x.firstDayOfWeek = $i;
|
|
3913
|
+
x.weekdays = Xi;
|
|
3914
|
+
x.weekdaysMin = tr;
|
|
3915
|
+
x.weekdaysShort = er;
|
|
3916
|
+
x.weekdaysParse = sr;
|
|
3917
|
+
x.weekdaysRegex = or;
|
|
3918
|
+
x.weekdaysShortRegex = ur;
|
|
3919
|
+
x.weekdaysMinRegex = lr;
|
|
3920
|
+
x.isPM = hr;
|
|
3921
|
+
x.meridiem = gr;
|
|
3922
|
+
function ct(e, t, n, s) {
|
|
3923
|
+
var i = le(), r = ee().set(s, t);
|
|
4018
3924
|
return i[n](r, e);
|
|
4019
3925
|
}
|
|
4020
|
-
function
|
|
4021
|
-
if (
|
|
4022
|
-
return
|
|
3926
|
+
function bs(e, t, n) {
|
|
3927
|
+
if (ue(e) && (t = e, e = void 0), e = e || "", t != null)
|
|
3928
|
+
return ct(e, t, n, "month");
|
|
4023
3929
|
var s, i = [];
|
|
4024
3930
|
for (s = 0; s < 12; s++)
|
|
4025
|
-
i[s] =
|
|
3931
|
+
i[s] = ct(e, s, n, "month");
|
|
4026
3932
|
return i;
|
|
4027
3933
|
}
|
|
4028
|
-
function
|
|
4029
|
-
typeof e == "boolean" ? (
|
|
4030
|
-
var i =
|
|
3934
|
+
function hn(e, t, n, s) {
|
|
3935
|
+
typeof e == "boolean" ? (ue(t) && (n = t, t = void 0), t = t || "") : (t = e, n = t, e = !1, ue(t) && (n = t, t = void 0), t = t || "");
|
|
3936
|
+
var i = le(), r = e ? i._week.dow : 0, a, o = [];
|
|
4031
3937
|
if (n != null)
|
|
4032
|
-
return
|
|
3938
|
+
return ct(t, (n + r) % 7, s, "day");
|
|
4033
3939
|
for (a = 0; a < 7; a++)
|
|
4034
|
-
o[a] =
|
|
3940
|
+
o[a] = ct(t, (a + r) % 7, s, "day");
|
|
4035
3941
|
return o;
|
|
4036
3942
|
}
|
|
4037
|
-
function
|
|
4038
|
-
return
|
|
3943
|
+
function wo(e, t) {
|
|
3944
|
+
return bs(e, t, "months");
|
|
4039
3945
|
}
|
|
4040
|
-
function
|
|
4041
|
-
return
|
|
3946
|
+
function So(e, t) {
|
|
3947
|
+
return bs(e, t, "monthsShort");
|
|
4042
3948
|
}
|
|
4043
|
-
function
|
|
4044
|
-
return
|
|
3949
|
+
function bo(e, t, n) {
|
|
3950
|
+
return hn(e, t, n, "weekdays");
|
|
4045
3951
|
}
|
|
4046
|
-
function
|
|
4047
|
-
return
|
|
3952
|
+
function xo(e, t, n) {
|
|
3953
|
+
return hn(e, t, n, "weekdaysShort");
|
|
4048
3954
|
}
|
|
4049
|
-
function
|
|
4050
|
-
return
|
|
3955
|
+
function ko(e, t, n) {
|
|
3956
|
+
return hn(e, t, n, "weekdaysMin");
|
|
4051
3957
|
}
|
|
4052
|
-
|
|
3958
|
+
fe("en", {
|
|
4053
3959
|
eras: [
|
|
4054
3960
|
{
|
|
4055
3961
|
since: "0001-01-01",
|
|
@@ -4070,52 +3976,52 @@ ce("en", {
|
|
|
4070
3976
|
],
|
|
4071
3977
|
dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
|
|
4072
3978
|
ordinal: function(e) {
|
|
4073
|
-
var t = e % 10, n =
|
|
3979
|
+
var t = e % 10, n = w(e % 100 / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" : t === 3 ? "rd" : "th";
|
|
4074
3980
|
return e + n;
|
|
4075
3981
|
}
|
|
4076
3982
|
});
|
|
4077
|
-
g.lang =
|
|
3983
|
+
g.lang = V(
|
|
4078
3984
|
"moment.lang is deprecated. Use moment.locale instead.",
|
|
4079
|
-
|
|
3985
|
+
fe
|
|
4080
3986
|
);
|
|
4081
|
-
g.langData =
|
|
3987
|
+
g.langData = V(
|
|
4082
3988
|
"moment.langData is deprecated. Use moment.localeData instead.",
|
|
4083
|
-
|
|
3989
|
+
le
|
|
4084
3990
|
);
|
|
4085
|
-
var
|
|
4086
|
-
function
|
|
3991
|
+
var ne = Math.abs;
|
|
3992
|
+
function Oo() {
|
|
4087
3993
|
var e = this._data;
|
|
4088
|
-
return this._milliseconds =
|
|
3994
|
+
return this._milliseconds = ne(this._milliseconds), this._days = ne(this._days), this._months = ne(this._months), e.milliseconds = ne(e.milliseconds), e.seconds = ne(e.seconds), e.minutes = ne(e.minutes), e.hours = ne(e.hours), e.months = ne(e.months), e.years = ne(e.years), this;
|
|
4089
3995
|
}
|
|
4090
|
-
function
|
|
4091
|
-
var i =
|
|
3996
|
+
function xs(e, t, n, s) {
|
|
3997
|
+
var i = J(t, n);
|
|
4092
3998
|
return e._milliseconds += s * i._milliseconds, e._days += s * i._days, e._months += s * i._months, e._bubble();
|
|
4093
3999
|
}
|
|
4094
|
-
function
|
|
4095
|
-
return
|
|
4000
|
+
function Mo(e, t) {
|
|
4001
|
+
return xs(this, e, t, 1);
|
|
4096
4002
|
}
|
|
4097
|
-
function
|
|
4098
|
-
return
|
|
4003
|
+
function Do(e, t) {
|
|
4004
|
+
return xs(this, e, t, -1);
|
|
4099
4005
|
}
|
|
4100
|
-
function
|
|
4006
|
+
function Ln(e) {
|
|
4101
4007
|
return e < 0 ? Math.floor(e) : Math.ceil(e);
|
|
4102
4008
|
}
|
|
4103
|
-
function
|
|
4009
|
+
function Yo() {
|
|
4104
4010
|
var e = this._milliseconds, t = this._days, n = this._months, s = this._data, i, r, a, o, u;
|
|
4105
|
-
return e >= 0 && t >= 0 && n >= 0 || e <= 0 && t <= 0 && n <= 0 || (e +=
|
|
4011
|
+
return e >= 0 && t >= 0 && n >= 0 || e <= 0 && t <= 0 && n <= 0 || (e += Ln($t(n) + t) * 864e5, t = 0, n = 0), s.milliseconds = e % 1e3, i = W(e / 1e3), s.seconds = i % 60, r = W(i / 60), s.minutes = r % 60, a = W(r / 60), s.hours = a % 24, t += W(a / 24), u = W(ks(t)), n += u, t -= Ln($t(u)), o = W(n / 12), n %= 12, s.days = t, s.months = n, s.years = o, this;
|
|
4106
4012
|
}
|
|
4107
|
-
function
|
|
4013
|
+
function ks(e) {
|
|
4108
4014
|
return e * 4800 / 146097;
|
|
4109
4015
|
}
|
|
4110
|
-
function
|
|
4016
|
+
function $t(e) {
|
|
4111
4017
|
return e * 146097 / 4800;
|
|
4112
4018
|
}
|
|
4113
|
-
function
|
|
4019
|
+
function No(e) {
|
|
4114
4020
|
if (!this.isValid())
|
|
4115
4021
|
return NaN;
|
|
4116
4022
|
var t, n, s = this._milliseconds;
|
|
4117
|
-
if (e =
|
|
4118
|
-
switch (t = this._days + s / 864e5, n = this._months +
|
|
4023
|
+
if (e = G(e), e === "month" || e === "quarter" || e === "year")
|
|
4024
|
+
switch (t = this._days + s / 864e5, n = this._months + ks(t), e) {
|
|
4119
4025
|
case "month":
|
|
4120
4026
|
return n;
|
|
4121
4027
|
case "quarter":
|
|
@@ -4124,7 +4030,7 @@ function Oo(e) {
|
|
|
4124
4030
|
return n / 12;
|
|
4125
4031
|
}
|
|
4126
4032
|
else
|
|
4127
|
-
switch (t = this._days + Math.round(
|
|
4033
|
+
switch (t = this._days + Math.round($t(this._months)), e) {
|
|
4128
4034
|
case "week":
|
|
4129
4035
|
return t / 7 + s / 6048e5;
|
|
4130
4036
|
case "day":
|
|
@@ -4141,28 +4047,28 @@ function Oo(e) {
|
|
|
4141
4047
|
throw new Error("Unknown unit " + e);
|
|
4142
4048
|
}
|
|
4143
4049
|
}
|
|
4144
|
-
function
|
|
4050
|
+
function de(e) {
|
|
4145
4051
|
return function() {
|
|
4146
4052
|
return this.as(e);
|
|
4147
4053
|
};
|
|
4148
4054
|
}
|
|
4149
|
-
var
|
|
4150
|
-
function
|
|
4151
|
-
return
|
|
4055
|
+
var Os = de("ms"), Co = de("s"), Lo = de("m"), Ro = de("h"), Po = de("d"), To = de("w"), Eo = de("M"), Fo = de("Q"), Ao = de("y"), Io = Os;
|
|
4056
|
+
function jo() {
|
|
4057
|
+
return J(this);
|
|
4152
4058
|
}
|
|
4153
|
-
function
|
|
4154
|
-
return e =
|
|
4059
|
+
function Uo(e) {
|
|
4060
|
+
return e = G(e), this.isValid() ? this[e + "s"]() : NaN;
|
|
4155
4061
|
}
|
|
4156
|
-
function
|
|
4062
|
+
function ve(e) {
|
|
4157
4063
|
return function() {
|
|
4158
4064
|
return this.isValid() ? this._data[e] : NaN;
|
|
4159
4065
|
};
|
|
4160
4066
|
}
|
|
4161
|
-
var
|
|
4162
|
-
function
|
|
4163
|
-
return
|
|
4067
|
+
var Ho = ve("milliseconds"), $o = ve("seconds"), Wo = ve("minutes"), Vo = ve("hours"), Go = ve("days"), zo = ve("months"), Ko = ve("years");
|
|
4068
|
+
function Bo() {
|
|
4069
|
+
return W(this.days() / 7);
|
|
4164
4070
|
}
|
|
4165
|
-
var
|
|
4071
|
+
var se = Math.round, ke = {
|
|
4166
4072
|
ss: 44,
|
|
4167
4073
|
// a few seconds to seconds
|
|
4168
4074
|
s: 45,
|
|
@@ -4178,112 +4084,112 @@ var ne = Math.round, xe = {
|
|
|
4178
4084
|
M: 11
|
|
4179
4085
|
// months to year
|
|
4180
4086
|
};
|
|
4181
|
-
function
|
|
4087
|
+
function qo(e, t, n, s, i) {
|
|
4182
4088
|
return i.relativeTime(t || 1, !!n, e, s);
|
|
4183
4089
|
}
|
|
4184
|
-
function
|
|
4185
|
-
var i =
|
|
4186
|
-
return n.w != null && (d = d || h <= 1 && ["w"] || h < n.w && ["ww", h]), d = d || l <= 1 && ["M"] || l < n.M && ["MM", l] || f <= 1 && ["y"] || ["yy", f], d[2] = t, d[3] = +e > 0, d[4] = s,
|
|
4090
|
+
function Jo(e, t, n, s) {
|
|
4091
|
+
var i = J(e).abs(), r = se(i.as("s")), a = se(i.as("m")), o = se(i.as("h")), u = se(i.as("d")), l = se(i.as("M")), h = se(i.as("w")), f = se(i.as("y")), d = r <= n.ss && ["s", r] || r < n.s && ["ss", r] || a <= 1 && ["m"] || a < n.m && ["mm", a] || o <= 1 && ["h"] || o < n.h && ["hh", o] || u <= 1 && ["d"] || u < n.d && ["dd", u];
|
|
4092
|
+
return n.w != null && (d = d || h <= 1 && ["w"] || h < n.w && ["ww", h]), d = d || l <= 1 && ["M"] || l < n.M && ["MM", l] || f <= 1 && ["y"] || ["yy", f], d[2] = t, d[3] = +e > 0, d[4] = s, qo.apply(null, d);
|
|
4187
4093
|
}
|
|
4188
|
-
function
|
|
4189
|
-
return e === void 0 ?
|
|
4094
|
+
function Zo(e) {
|
|
4095
|
+
return e === void 0 ? se : typeof e == "function" ? (se = e, !0) : !1;
|
|
4190
4096
|
}
|
|
4191
|
-
function
|
|
4192
|
-
return
|
|
4097
|
+
function Qo(e, t) {
|
|
4098
|
+
return ke[e] === void 0 ? !1 : t === void 0 ? ke[e] : (ke[e] = t, e === "s" && (ke.ss = t - 1), !0);
|
|
4193
4099
|
}
|
|
4194
|
-
function
|
|
4100
|
+
function Xo(e, t) {
|
|
4195
4101
|
if (!this.isValid())
|
|
4196
4102
|
return this.localeData().invalidDate();
|
|
4197
|
-
var n = !1, s =
|
|
4198
|
-
return typeof e == "object" && (t = e, e = !1), typeof e == "boolean" && (n = e), typeof t == "object" && (s = Object.assign({},
|
|
4103
|
+
var n = !1, s = ke, i, r;
|
|
4104
|
+
return typeof e == "object" && (t = e, e = !1), typeof e == "boolean" && (n = e), typeof t == "object" && (s = Object.assign({}, ke, t), t.s != null && t.ss == null && (s.ss = t.s - 1)), i = this.localeData(), r = Jo(this, !n, s, i), n && (r = i.pastFuture(+this, r)), i.postformat(r);
|
|
4199
4105
|
}
|
|
4200
|
-
var
|
|
4201
|
-
function
|
|
4106
|
+
var Pt = Math.abs;
|
|
4107
|
+
function be(e) {
|
|
4202
4108
|
return (e > 0) - (e < 0) || +e;
|
|
4203
4109
|
}
|
|
4204
|
-
function
|
|
4110
|
+
function kt() {
|
|
4205
4111
|
if (!this.isValid())
|
|
4206
4112
|
return this.localeData().invalidDate();
|
|
4207
|
-
var e =
|
|
4208
|
-
return o ? (s =
|
|
4209
|
-
}
|
|
4210
|
-
var
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4113
|
+
var e = Pt(this._milliseconds) / 1e3, t = Pt(this._days), n = Pt(this._months), s, i, r, a, o = this.asSeconds(), u, l, h, f;
|
|
4114
|
+
return o ? (s = W(e / 60), i = W(s / 60), e %= 60, s %= 60, r = W(n / 12), n %= 12, a = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", u = o < 0 ? "-" : "", l = be(this._months) !== be(o) ? "-" : "", h = be(this._days) !== be(o) ? "-" : "", f = be(this._milliseconds) !== be(o) ? "-" : "", u + "P" + (r ? l + r + "Y" : "") + (n ? l + n + "M" : "") + (t ? h + t + "D" : "") + (i || s || e ? "T" : "") + (i ? f + i + "H" : "") + (s ? f + s + "M" : "") + (e ? f + a + "S" : "")) : "P0D";
|
|
4115
|
+
}
|
|
4116
|
+
var S = bt.prototype;
|
|
4117
|
+
S.isValid = Gr;
|
|
4118
|
+
S.abs = Oo;
|
|
4119
|
+
S.add = Mo;
|
|
4120
|
+
S.subtract = Do;
|
|
4121
|
+
S.as = No;
|
|
4122
|
+
S.asMilliseconds = Os;
|
|
4123
|
+
S.asSeconds = Co;
|
|
4124
|
+
S.asMinutes = Lo;
|
|
4125
|
+
S.asHours = Ro;
|
|
4126
|
+
S.asDays = Po;
|
|
4127
|
+
S.asWeeks = To;
|
|
4128
|
+
S.asMonths = Eo;
|
|
4129
|
+
S.asQuarters = Fo;
|
|
4130
|
+
S.asYears = Ao;
|
|
4131
|
+
S.valueOf = Io;
|
|
4132
|
+
S._bubble = Yo;
|
|
4133
|
+
S.clone = jo;
|
|
4134
|
+
S.get = Uo;
|
|
4135
|
+
S.milliseconds = Ho;
|
|
4136
|
+
S.seconds = $o;
|
|
4137
|
+
S.minutes = Wo;
|
|
4138
|
+
S.hours = Vo;
|
|
4139
|
+
S.days = Go;
|
|
4140
|
+
S.weeks = Bo;
|
|
4141
|
+
S.months = zo;
|
|
4142
|
+
S.years = Ko;
|
|
4143
|
+
S.humanize = Xo;
|
|
4144
|
+
S.toISOString = kt;
|
|
4145
|
+
S.toString = kt;
|
|
4146
|
+
S.toJSON = kt;
|
|
4147
|
+
S.locale = cs;
|
|
4148
|
+
S.localeData = gs;
|
|
4149
|
+
S.toIsoString = V(
|
|
4244
4150
|
"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
|
|
4245
|
-
|
|
4151
|
+
kt
|
|
4246
4152
|
);
|
|
4247
|
-
|
|
4153
|
+
S.lang = fs;
|
|
4248
4154
|
p("X", 0, 0, "unix");
|
|
4249
4155
|
p("x", 0, 0, "valueOf");
|
|
4250
|
-
m("x",
|
|
4251
|
-
m("X",
|
|
4252
|
-
|
|
4156
|
+
m("x", _t);
|
|
4157
|
+
m("X", vi);
|
|
4158
|
+
O("X", function(e, t, n) {
|
|
4253
4159
|
n._d = new Date(parseFloat(e) * 1e3);
|
|
4254
4160
|
});
|
|
4255
|
-
|
|
4256
|
-
n._d = new Date(
|
|
4161
|
+
O("x", function(e, t, n) {
|
|
4162
|
+
n._d = new Date(w(e));
|
|
4257
4163
|
});
|
|
4258
4164
|
//! moment.js
|
|
4259
4165
|
g.version = "2.30.1";
|
|
4260
|
-
|
|
4166
|
+
Xs(M);
|
|
4261
4167
|
g.fn = c;
|
|
4262
|
-
g.min =
|
|
4263
|
-
g.max =
|
|
4264
|
-
g.now =
|
|
4265
|
-
g.utc =
|
|
4266
|
-
g.unix =
|
|
4267
|
-
g.months =
|
|
4268
|
-
g.isDate =
|
|
4269
|
-
g.locale =
|
|
4270
|
-
g.invalid =
|
|
4271
|
-
g.duration =
|
|
4272
|
-
g.isMoment =
|
|
4273
|
-
g.weekdays =
|
|
4274
|
-
g.parseZone =
|
|
4275
|
-
g.localeData =
|
|
4276
|
-
g.isDuration =
|
|
4277
|
-
g.monthsShort =
|
|
4278
|
-
g.weekdaysMin =
|
|
4279
|
-
g.defineLocale =
|
|
4280
|
-
g.updateLocale =
|
|
4281
|
-
g.locales =
|
|
4282
|
-
g.weekdaysShort =
|
|
4283
|
-
g.normalizeUnits =
|
|
4284
|
-
g.relativeTimeRounding =
|
|
4285
|
-
g.relativeTimeThreshold =
|
|
4286
|
-
g.calendarFormat =
|
|
4168
|
+
g.min = Hr;
|
|
4169
|
+
g.max = $r;
|
|
4170
|
+
g.now = Wr;
|
|
4171
|
+
g.utc = ee;
|
|
4172
|
+
g.unix = _o;
|
|
4173
|
+
g.months = wo;
|
|
4174
|
+
g.isDate = ze;
|
|
4175
|
+
g.locale = fe;
|
|
4176
|
+
g.invalid = gt;
|
|
4177
|
+
g.duration = J;
|
|
4178
|
+
g.isMoment = q;
|
|
4179
|
+
g.weekdays = bo;
|
|
4180
|
+
g.parseZone = vo;
|
|
4181
|
+
g.localeData = le;
|
|
4182
|
+
g.isDuration = nt;
|
|
4183
|
+
g.monthsShort = So;
|
|
4184
|
+
g.weekdaysMin = ko;
|
|
4185
|
+
g.defineLocale = nn;
|
|
4186
|
+
g.updateLocale = _r;
|
|
4187
|
+
g.locales = vr;
|
|
4188
|
+
g.weekdaysShort = xo;
|
|
4189
|
+
g.normalizeUnits = G;
|
|
4190
|
+
g.relativeTimeRounding = Zo;
|
|
4191
|
+
g.relativeTimeThreshold = Qo;
|
|
4192
|
+
g.calendarFormat = ga;
|
|
4287
4193
|
g.prototype = c;
|
|
4288
4194
|
g.HTML5_FMT = {
|
|
4289
4195
|
DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
|
|
@@ -4305,7 +4211,7 @@ g.HTML5_FMT = {
|
|
|
4305
4211
|
MONTH: "YYYY-MM"
|
|
4306
4212
|
// <input type="month" />
|
|
4307
4213
|
};
|
|
4308
|
-
const
|
|
4214
|
+
const eu = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, tu = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i, Rn = /(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, Tt = [
|
|
4309
4215
|
/^janv/i,
|
|
4310
4216
|
/^févr/i,
|
|
4311
4217
|
/^mars/i,
|
|
@@ -4318,18 +4224,18 @@ const Jo = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octob
|
|
|
4318
4224
|
/^oct/i,
|
|
4319
4225
|
/^nov/i,
|
|
4320
4226
|
/^déc/i
|
|
4321
|
-
],
|
|
4227
|
+
], nu = {
|
|
4322
4228
|
months: "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split(
|
|
4323
4229
|
"_"
|
|
4324
4230
|
),
|
|
4325
4231
|
monthsShort: "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),
|
|
4326
|
-
monthsRegex:
|
|
4327
|
-
monthsShortRegex:
|
|
4328
|
-
monthsStrictRegex:
|
|
4329
|
-
monthsShortStrictRegex:
|
|
4330
|
-
monthsParse:
|
|
4331
|
-
longMonthsParse:
|
|
4332
|
-
shortMonthsParse:
|
|
4232
|
+
monthsRegex: Rn,
|
|
4233
|
+
monthsShortRegex: Rn,
|
|
4234
|
+
monthsStrictRegex: eu,
|
|
4235
|
+
monthsShortStrictRegex: tu,
|
|
4236
|
+
monthsParse: Tt,
|
|
4237
|
+
longMonthsParse: Tt,
|
|
4238
|
+
shortMonthsParse: Tt,
|
|
4333
4239
|
weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),
|
|
4334
4240
|
weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"),
|
|
4335
4241
|
weekdaysMin: "di_lu_ma_me_je_ve_sa".split("_"),
|
|
@@ -4389,23 +4295,23 @@ const Jo = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octob
|
|
|
4389
4295
|
doy: 4
|
|
4390
4296
|
}
|
|
4391
4297
|
};
|
|
4392
|
-
g.locale("fr",
|
|
4393
|
-
const
|
|
4298
|
+
g.locale("fr", nu);
|
|
4299
|
+
const su = (e) => Math.round(5e3 * Math.pow(200, 0.01 * e) / 10) * 10, Ms = (e) => e >= 1 ? Ms(e - 1) + su(e) : 0, iu = (e, t = 0) => e < Ms(t + 1) ? t : iu(e, t + 1), pu = ([e, t]) => t ? `${Dt("xp.user", { amount: Nt(e), emoji: Yt.xp })} ${Dt("xp.crew", { amount: Nt(t), emoji: Yt.xp })}` : Dt("xp.user", { amount: Nt(e), emoji: Yt.xp });
|
|
4394
4300
|
export {
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4301
|
+
ou as CHARACTERISTICS,
|
|
4302
|
+
Ns as CHARACTERISTIC_DEFAULT_POINT_COST,
|
|
4303
|
+
lu as CHARACTERISTIC_POINT_COSTS,
|
|
4304
|
+
uu as CHARACTERISTIC_POINT_PER_LEVEL,
|
|
4305
|
+
fu as DEFAULT_FACTION,
|
|
4306
|
+
du as DEFAULT_MAX_HP,
|
|
4307
|
+
cu as FACTIONS,
|
|
4308
|
+
hu as HP_PER_VITALITY,
|
|
4309
|
+
au as RANKS,
|
|
4310
|
+
pe as RankId,
|
|
4311
|
+
gu as SORT_VALUES,
|
|
4312
|
+
pu as displayXp,
|
|
4313
|
+
iu as getCurrentLevel,
|
|
4314
|
+
mu as getNewSortValue,
|
|
4315
|
+
Ms as totalXpToLevel,
|
|
4316
|
+
su as xpToLevel
|
|
4411
4317
|
};
|