@opfr/utils-type 0.9.0 → 0.10.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 +72 -71
- package/dist/index.umd.js +5 -5
- package/dist/sort-values/index.d.ts +1 -0
- package/dist/sort-values/index.d.ts.map +1 -1
- package/dist/sort-values/index.js +1 -0
- package/dist/sort-values/index.js.map +1 -1
- package/dist/sort-values/utils.d.ts +3 -0
- package/dist/sort-values/utils.d.ts.map +1 -0
- package/dist/sort-values/utils.js +10 -0
- package/dist/sort-values/utils.js.map +1 -0
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -39,7 +39,7 @@ const ru = {
|
|
|
39
39
|
color: "#fff",
|
|
40
40
|
role: "1147953458507423874"
|
|
41
41
|
}
|
|
42
|
-
}, cu = "citizen", fu = ["category", "alpha", "quantity"], Ns = {
|
|
42
|
+
}, cu = "citizen", fu = ["category", "alpha", "quantity"], gu = (e, t) => t === null ? null : e === t ? `-${e}` : t, Ns = {
|
|
43
43
|
type: "logger",
|
|
44
44
|
log(e) {
|
|
45
45
|
this.output("log", e);
|
|
@@ -774,14 +774,14 @@ let Us = [{
|
|
|
774
774
|
21: (e) => e % 100 == 1 ? 1 : e % 100 == 2 ? 2 : e % 100 == 3 || e % 100 == 4 ? 3 : 0,
|
|
775
775
|
22: (e) => e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3
|
|
776
776
|
};
|
|
777
|
-
const $s = ["v1", "v2", "v3"],
|
|
777
|
+
const $s = ["v1", "v2", "v3"], Ws = ["v4"], Sn = {
|
|
778
778
|
zero: 0,
|
|
779
779
|
one: 1,
|
|
780
780
|
two: 2,
|
|
781
781
|
few: 3,
|
|
782
782
|
many: 4,
|
|
783
783
|
other: 5
|
|
784
|
-
},
|
|
784
|
+
}, Vs = () => {
|
|
785
785
|
const e = {};
|
|
786
786
|
return Us.forEach((t) => {
|
|
787
787
|
t.lngs.forEach((n) => {
|
|
@@ -795,7 +795,7 @@ const $s = ["v1", "v2", "v3"], Vs = ["v4"], Sn = {
|
|
|
795
795
|
class Gs {
|
|
796
796
|
constructor(t) {
|
|
797
797
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
798
|
-
this.languageUtils = t, this.options = n, this.logger = Z.create("pluralResolver"), (!this.options.compatibilityJSON ||
|
|
798
|
+
this.languageUtils = t, this.options = n, this.logger = Z.create("pluralResolver"), (!this.options.compatibilityJSON || Ws.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 = Vs(), this.pluralRulesCache = {};
|
|
799
799
|
}
|
|
800
800
|
addRule(t, n) {
|
|
801
801
|
this.rules[t] = n;
|
|
@@ -1716,7 +1716,7 @@ function A(e) {
|
|
|
1716
1716
|
function oe(e) {
|
|
1717
1717
|
return typeof e == "number" || Object.prototype.toString.call(e) === "[object Number]";
|
|
1718
1718
|
}
|
|
1719
|
-
function
|
|
1719
|
+
function Ve(e) {
|
|
1720
1720
|
return e instanceof Date || Object.prototype.toString.call(e) === "[object Date]";
|
|
1721
1721
|
}
|
|
1722
1722
|
function En(e, t) {
|
|
@@ -1764,7 +1764,7 @@ Array.prototype.some ? Et = Array.prototype.some : Et = function(e) {
|
|
|
1764
1764
|
return !0;
|
|
1765
1765
|
return !1;
|
|
1766
1766
|
};
|
|
1767
|
-
function
|
|
1767
|
+
function Wt(e) {
|
|
1768
1768
|
var t = null, n = !1, s = e._d && !isNaN(e._d.getTime());
|
|
1769
1769
|
if (s && (t = _(e), n = Et.call(t.parsedDateParts, function(i) {
|
|
1770
1770
|
return i != null;
|
|
@@ -1779,7 +1779,7 @@ function ft(e) {
|
|
|
1779
1779
|
return e != null ? de(_(t), e) : _(t).userInvalidated = !0, t;
|
|
1780
1780
|
}
|
|
1781
1781
|
var On = g.momentProperties = [], Nt = !1;
|
|
1782
|
-
function
|
|
1782
|
+
function Vt(e, t) {
|
|
1783
1783
|
var n, s, i, r = On.length;
|
|
1784
1784
|
if (A(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), A(t._i) || (e._i = t._i), A(t._f) || (e._f = t._f), A(t._l) || (e._l = t._l), A(t._strict) || (e._strict = t._strict), A(t._tzm) || (e._tzm = t._tzm), A(t._isUTC) || (e._isUTC = t._isUTC), A(t._offset) || (e._offset = t._offset), A(t._pf) || (e._pf = _(t)), A(t._locale) || (e._locale = t._locale), r > 0)
|
|
1785
1785
|
for (n = 0; n < r; n++)
|
|
@@ -1787,7 +1787,7 @@ function Wt(e, t) {
|
|
|
1787
1787
|
return e;
|
|
1788
1788
|
}
|
|
1789
1789
|
function Ge(e) {
|
|
1790
|
-
|
|
1790
|
+
Vt(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), Nt === !1 && (Nt = !0, g.updateOffset(this), Nt = !1);
|
|
1791
1791
|
}
|
|
1792
1792
|
function B(e) {
|
|
1793
1793
|
return e instanceof Ge || e != null && e._isAMomentObject != null;
|
|
@@ -1795,7 +1795,7 @@ function B(e) {
|
|
|
1795
1795
|
function Fn(e) {
|
|
1796
1796
|
g.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + e);
|
|
1797
1797
|
}
|
|
1798
|
-
function
|
|
1798
|
+
function W(e, t) {
|
|
1799
1799
|
var n = !0;
|
|
1800
1800
|
return de(function() {
|
|
1801
1801
|
if (g.deprecationHandler != null && g.deprecationHandler(null, e), n) {
|
|
@@ -2012,13 +2012,13 @@ var Dn = {
|
|
|
2012
2012
|
years: "year",
|
|
2013
2013
|
year: "year"
|
|
2014
2014
|
};
|
|
2015
|
-
function
|
|
2015
|
+
function V(e) {
|
|
2016
2016
|
return typeof e == "string" ? Dn[e] || Dn[e.toLowerCase()] : void 0;
|
|
2017
2017
|
}
|
|
2018
2018
|
function Kt(e) {
|
|
2019
2019
|
var t = {}, n, s;
|
|
2020
2020
|
for (s in e)
|
|
2021
|
-
S(e, s) && (n =
|
|
2021
|
+
S(e, s) && (n = V(s), n && (t[n] = e[s]));
|
|
2022
2022
|
return t;
|
|
2023
2023
|
}
|
|
2024
2024
|
var mi = {
|
|
@@ -2128,13 +2128,13 @@ function Ie(e) {
|
|
|
2128
2128
|
g.parseTwoDigitYear = function(e) {
|
|
2129
2129
|
return v(e) + (v(e) > 68 ? 1900 : 2e3);
|
|
2130
2130
|
};
|
|
2131
|
-
var
|
|
2131
|
+
var Wn = Ne("FullYear", !0);
|
|
2132
2132
|
function ki() {
|
|
2133
2133
|
return vt(this.year());
|
|
2134
2134
|
}
|
|
2135
2135
|
function Ne(e, t) {
|
|
2136
2136
|
return function(n) {
|
|
2137
|
-
return n != null ? (
|
|
2137
|
+
return n != null ? (Vn(this, e, n), g.updateOffset(this, t), this) : Ue(this, e);
|
|
2138
2138
|
};
|
|
2139
2139
|
}
|
|
2140
2140
|
function Ue(e, t) {
|
|
@@ -2162,7 +2162,7 @@ function Ue(e, t) {
|
|
|
2162
2162
|
return NaN;
|
|
2163
2163
|
}
|
|
2164
2164
|
}
|
|
2165
|
-
function
|
|
2165
|
+
function Vn(e, t, n) {
|
|
2166
2166
|
var s, i, r, a, o;
|
|
2167
2167
|
if (!(!e.isValid() || isNaN(n))) {
|
|
2168
2168
|
switch (s = e._d, i = e._isUTC, t) {
|
|
@@ -2185,7 +2185,7 @@ function Wn(e, t, n) {
|
|
|
2185
2185
|
}
|
|
2186
2186
|
}
|
|
2187
2187
|
function Oi(e) {
|
|
2188
|
-
return e =
|
|
2188
|
+
return e = V(e), ee(this[e]) ? this[e]() : this;
|
|
2189
2189
|
}
|
|
2190
2190
|
function Mi(e, t) {
|
|
2191
2191
|
if (typeof e == "object") {
|
|
@@ -2193,7 +2193,7 @@ function Mi(e, t) {
|
|
|
2193
2193
|
var n = pi(e), s, i = n.length;
|
|
2194
2194
|
for (s = 0; s < i; s++)
|
|
2195
2195
|
this[n[s].unit](e[n[s].unit]);
|
|
2196
|
-
} else if (e =
|
|
2196
|
+
} else if (e = V(e), ee(this[e]))
|
|
2197
2197
|
return this[e](t);
|
|
2198
2198
|
return this;
|
|
2199
2199
|
}
|
|
@@ -2367,11 +2367,11 @@ function Hi() {
|
|
|
2367
2367
|
function $i() {
|
|
2368
2368
|
return this._week.doy;
|
|
2369
2369
|
}
|
|
2370
|
-
function
|
|
2370
|
+
function Wi(e) {
|
|
2371
2371
|
var t = this.localeData().week(this);
|
|
2372
2372
|
return e == null ? t : this.add((e - t) * 7, "d");
|
|
2373
2373
|
}
|
|
2374
|
-
function
|
|
2374
|
+
function Vi(e) {
|
|
2375
2375
|
var t = $e(this, 1, 4).week;
|
|
2376
2376
|
return e == null ? t : this.add((e - t) * 7, "d");
|
|
2377
2377
|
}
|
|
@@ -2599,7 +2599,7 @@ var es = {
|
|
|
2599
2599
|
weekdaysMin: Bi,
|
|
2600
2600
|
weekdaysShort: Zn,
|
|
2601
2601
|
meridiemParse: hr
|
|
2602
|
-
}, Y = {}, Ee = {},
|
|
2602
|
+
}, Y = {}, Ee = {}, We;
|
|
2603
2603
|
function gr(e, t) {
|
|
2604
2604
|
var n, s = Math.min(e.length, t.length);
|
|
2605
2605
|
for (n = 0; n < s; n += 1)
|
|
@@ -2621,7 +2621,7 @@ function mr(e) {
|
|
|
2621
2621
|
}
|
|
2622
2622
|
t++;
|
|
2623
2623
|
}
|
|
2624
|
-
return
|
|
2624
|
+
return We;
|
|
2625
2625
|
}
|
|
2626
2626
|
function pr(e) {
|
|
2627
2627
|
return !!(e && e.match("^[^/\\\\]*$"));
|
|
@@ -2630,7 +2630,7 @@ function wt(e) {
|
|
|
2630
2630
|
var t = null, n;
|
|
2631
2631
|
if (Y[e] === void 0 && typeof module < "u" && module && module.exports && pr(e))
|
|
2632
2632
|
try {
|
|
2633
|
-
t =
|
|
2633
|
+
t = We._abbr, n = require, n("./locale/" + e), ce(t);
|
|
2634
2634
|
} catch {
|
|
2635
2635
|
Y[e] = null;
|
|
2636
2636
|
}
|
|
@@ -2638,9 +2638,9 @@ function wt(e) {
|
|
|
2638
2638
|
}
|
|
2639
2639
|
function ce(e, t) {
|
|
2640
2640
|
var n;
|
|
2641
|
-
return e && (A(t) ? n = ue(e) : n = tn(e, t), n ?
|
|
2641
|
+
return e && (A(t) ? n = ue(e) : n = tn(e, t), n ? We = n : typeof console < "u" && console.warn && console.warn(
|
|
2642
2642
|
"Locale " + e + " not found. Did you forget to load it?"
|
|
2643
|
-
)),
|
|
2643
|
+
)), We._abbr;
|
|
2644
2644
|
}
|
|
2645
2645
|
function tn(e, t) {
|
|
2646
2646
|
if (t !== null) {
|
|
@@ -2677,7 +2677,7 @@ function yr(e, t) {
|
|
|
2677
2677
|
function ue(e) {
|
|
2678
2678
|
var t;
|
|
2679
2679
|
if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e)
|
|
2680
|
-
return
|
|
2680
|
+
return We;
|
|
2681
2681
|
if (!K(e)) {
|
|
2682
2682
|
if (t = wt(e), t)
|
|
2683
2683
|
return t;
|
|
@@ -2835,7 +2835,7 @@ function Cr(e) {
|
|
|
2835
2835
|
return;
|
|
2836
2836
|
e._strict ? e._isValid = !1 : g.createFromInputFallback(e);
|
|
2837
2837
|
}
|
|
2838
|
-
g.createFromInputFallback =
|
|
2838
|
+
g.createFromInputFallback = W(
|
|
2839
2839
|
"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.",
|
|
2840
2840
|
function(e) {
|
|
2841
2841
|
e._d = /* @__PURE__ */ new Date(e._i + (e._useUTC ? " UTC" : ""));
|
|
@@ -2909,7 +2909,7 @@ function Tr(e) {
|
|
|
2909
2909
|
return;
|
|
2910
2910
|
}
|
|
2911
2911
|
for (i = 0; i < u; i++)
|
|
2912
|
-
r = 0, a = !1, t =
|
|
2912
|
+
r = 0, a = !1, t = Vt({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._f = e._f[i], rn(t), Wt(t) && (a = !0), r += _(t).charsLeftOver, r += _(t).unusedTokens.length * 10, _(t).score = r, o ? r < s && (s = r, n = t) : (s == null || r < s || a) && (s = r, n = t, a && (o = !0));
|
|
2913
2913
|
de(e, n || t);
|
|
2914
2914
|
}
|
|
2915
2915
|
function Er(e) {
|
|
@@ -2929,11 +2929,11 @@ function Fr(e) {
|
|
|
2929
2929
|
}
|
|
2930
2930
|
function ss(e) {
|
|
2931
2931
|
var t = e._i, n = e._f;
|
|
2932
|
-
return e._locale = e._locale || ue(e._l), t === null || n === void 0 && t === "" ? ft({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), B(t) ? new Ge(nn(t)) : (
|
|
2932
|
+
return e._locale = e._locale || ue(e._l), t === null || n === void 0 && t === "" ? ft({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), B(t) ? new Ge(nn(t)) : (Ve(t) ? e._d = t : K(n) ? Tr(e) : n ? rn(e) : Ar(e), Wt(e) || (e._d = null), e));
|
|
2933
2933
|
}
|
|
2934
2934
|
function Ar(e) {
|
|
2935
2935
|
var t = e._i;
|
|
2936
|
-
A(t) ? e._d = new Date(g.now()) :
|
|
2936
|
+
A(t) ? e._d = new Date(g.now()) : Ve(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? Cr(e) : K(t) ? (e._a = En(t.slice(0), function(n) {
|
|
2937
2937
|
return parseInt(n, 10);
|
|
2938
2938
|
}), sn(e)) : ye(t) ? Er(e) : oe(t) ? e._d = new Date(t) : g.createFromInputFallback(e);
|
|
2939
2939
|
}
|
|
@@ -2944,13 +2944,13 @@ function is(e, t, n, s, i) {
|
|
|
2944
2944
|
function O(e, t, n, s) {
|
|
2945
2945
|
return is(e, t, n, s, !1);
|
|
2946
2946
|
}
|
|
2947
|
-
var Ir =
|
|
2947
|
+
var Ir = W(
|
|
2948
2948
|
"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
2949
2949
|
function() {
|
|
2950
2950
|
var e = O.apply(null, arguments);
|
|
2951
2951
|
return this.isValid() && e.isValid() ? e < this ? this : e : ft();
|
|
2952
2952
|
}
|
|
2953
|
-
), jr =
|
|
2953
|
+
), jr = W(
|
|
2954
2954
|
"moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
2955
2955
|
function() {
|
|
2956
2956
|
var e = O.apply(null, arguments);
|
|
@@ -2986,7 +2986,7 @@ var $r = function() {
|
|
|
2986
2986
|
"second",
|
|
2987
2987
|
"millisecond"
|
|
2988
2988
|
];
|
|
2989
|
-
function
|
|
2989
|
+
function Wr(e) {
|
|
2990
2990
|
var t, n = !1, s, i = Fe.length;
|
|
2991
2991
|
for (t in e)
|
|
2992
2992
|
if (S(e, t) && !(L.call(Fe, t) !== -1 && (e[t] == null || !isNaN(e[t]))))
|
|
@@ -2999,7 +2999,7 @@ function Vr(e) {
|
|
|
2999
2999
|
}
|
|
3000
3000
|
return !0;
|
|
3001
3001
|
}
|
|
3002
|
-
function
|
|
3002
|
+
function Vr() {
|
|
3003
3003
|
return this._isValid;
|
|
3004
3004
|
}
|
|
3005
3005
|
function Gr() {
|
|
@@ -3007,7 +3007,7 @@ function Gr() {
|
|
|
3007
3007
|
}
|
|
3008
3008
|
function St(e) {
|
|
3009
3009
|
var t = Kt(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;
|
|
3010
|
-
this._isValid =
|
|
3010
|
+
this._isValid = Wr(t), this._milliseconds = +h + l * 1e3 + // 1000
|
|
3011
3011
|
u * 6e4 + // 1000 * 60
|
|
3012
3012
|
o * 1e3 * 60 * 60, this._days = +a + r * 7, this._months = +i + s * 3 + n * 12, this._data = {}, this._locale = ue(), this._bubble();
|
|
3013
3013
|
}
|
|
@@ -3043,7 +3043,7 @@ function an(e, t) {
|
|
|
3043
3043
|
}
|
|
3044
3044
|
function on(e, t) {
|
|
3045
3045
|
var n, s;
|
|
3046
|
-
return t._isUTC ? (n = t.clone(), s = (B(e) ||
|
|
3046
|
+
return t._isUTC ? (n = t.clone(), s = (B(e) || Ve(e) ? e.valueOf() : O(e).valueOf()) - n.valueOf(), n._d.setTime(n._d.valueOf() + s), g.updateOffset(n, !1), n) : O(e).local();
|
|
3047
3047
|
}
|
|
3048
3048
|
function Ut(e) {
|
|
3049
3049
|
return -Math.round(e._d.getTimezoneOffset());
|
|
@@ -3097,7 +3097,7 @@ function ta() {
|
|
|
3097
3097
|
if (!A(this._isDSTShifted))
|
|
3098
3098
|
return this._isDSTShifted;
|
|
3099
3099
|
var e = {}, t;
|
|
3100
|
-
return
|
|
3100
|
+
return Vt(e, this), e = ss(e), e._a ? (t = e._isUTC ? X(e._a) : O(e._a), this._isDSTShifted = this.isValid() && zr(e._a, t.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
|
|
3101
3101
|
}
|
|
3102
3102
|
function na() {
|
|
3103
3103
|
return this.isValid() ? !this._isUTC : !1;
|
|
@@ -3161,14 +3161,14 @@ function us(e, t) {
|
|
|
3161
3161
|
}
|
|
3162
3162
|
function ls(e, t, n, s) {
|
|
3163
3163
|
var i = t._milliseconds, r = jt(t._days), a = jt(t._months);
|
|
3164
|
-
e.isValid() && (s = s ?? !0, a && Kn(e, Ue(e, "Month") + a * n), r &&
|
|
3164
|
+
e.isValid() && (s = s ?? !0, a && Kn(e, Ue(e, "Month") + a * n), r && Vn(e, "Date", Ue(e, "Date") + r * n), i && e._d.setTime(e._d.valueOf() + i * n), s && g.updateOffset(e, r || a));
|
|
3165
3165
|
}
|
|
3166
3166
|
var oa = us(1, "add"), ua = us(-1, "subtract");
|
|
3167
3167
|
function ds(e) {
|
|
3168
3168
|
return typeof e == "string" || e instanceof String;
|
|
3169
3169
|
}
|
|
3170
3170
|
function la(e) {
|
|
3171
|
-
return B(e) ||
|
|
3171
|
+
return B(e) || Ve(e) || ds(e) || oe(e) || ha(e) || da(e) || e === null || e === void 0;
|
|
3172
3172
|
}
|
|
3173
3173
|
function da(e) {
|
|
3174
3174
|
var t = ye(e) && !$t(e), n = !1, s = [
|
|
@@ -3236,11 +3236,11 @@ function ma() {
|
|
|
3236
3236
|
}
|
|
3237
3237
|
function pa(e, t) {
|
|
3238
3238
|
var n = B(e) ? e : O(e);
|
|
3239
|
-
return this.isValid() && n.isValid() ? (t =
|
|
3239
|
+
return this.isValid() && n.isValid() ? (t = V(t) || "millisecond", t === "millisecond" ? this.valueOf() > n.valueOf() : n.valueOf() < this.clone().startOf(t).valueOf()) : !1;
|
|
3240
3240
|
}
|
|
3241
3241
|
function ya(e, t) {
|
|
3242
3242
|
var n = B(e) ? e : O(e);
|
|
3243
|
-
return this.isValid() && n.isValid() ? (t =
|
|
3243
|
+
return this.isValid() && n.isValid() ? (t = V(t) || "millisecond", t === "millisecond" ? this.valueOf() < n.valueOf() : this.clone().endOf(t).valueOf() < n.valueOf()) : !1;
|
|
3244
3244
|
}
|
|
3245
3245
|
function _a(e, t, n, s) {
|
|
3246
3246
|
var i = B(e) ? e : O(e), r = B(t) ? t : O(t);
|
|
@@ -3248,7 +3248,7 @@ function _a(e, t, n, s) {
|
|
|
3248
3248
|
}
|
|
3249
3249
|
function va(e, t) {
|
|
3250
3250
|
var n = B(e) ? e : O(e), s;
|
|
3251
|
-
return this.isValid() && n.isValid() ? (t =
|
|
3251
|
+
return this.isValid() && n.isValid() ? (t = V(t) || "millisecond", t === "millisecond" ? this.valueOf() === n.valueOf() : (s = n.valueOf(), this.clone().startOf(t).valueOf() <= s && s <= this.clone().endOf(t).valueOf())) : !1;
|
|
3252
3252
|
}
|
|
3253
3253
|
function wa(e, t) {
|
|
3254
3254
|
return this.isSame(e, t) || this.isAfter(e, t);
|
|
@@ -3262,7 +3262,7 @@ function ba(e, t, n) {
|
|
|
3262
3262
|
return NaN;
|
|
3263
3263
|
if (s = on(e, this), !s.isValid())
|
|
3264
3264
|
return NaN;
|
|
3265
|
-
switch (i = (s.utcOffset() - this.utcOffset()) * 6e4, t =
|
|
3265
|
+
switch (i = (s.utcOffset() - this.utcOffset()) * 6e4, t = V(t), t) {
|
|
3266
3266
|
case "year":
|
|
3267
3267
|
r = nt(this, s) / 12;
|
|
3268
3268
|
break;
|
|
@@ -3342,7 +3342,7 @@ function hs(e) {
|
|
|
3342
3342
|
var t;
|
|
3343
3343
|
return e === void 0 ? this._locale._abbr : (t = ue(e), t != null && (this._locale = t), this);
|
|
3344
3344
|
}
|
|
3345
|
-
var cs =
|
|
3345
|
+
var cs = W(
|
|
3346
3346
|
"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
|
|
3347
3347
|
function(e) {
|
|
3348
3348
|
return e === void 0 ? this.localeData() : this.locale(e);
|
|
@@ -3363,7 +3363,7 @@ function ps(e, t, n) {
|
|
|
3363
3363
|
}
|
|
3364
3364
|
function La(e) {
|
|
3365
3365
|
var t, n;
|
|
3366
|
-
if (e =
|
|
3366
|
+
if (e = V(e), e === void 0 || e === "millisecond" || !this.isValid())
|
|
3367
3367
|
return this;
|
|
3368
3368
|
switch (n = this._isUTC ? ps : ms, e) {
|
|
3369
3369
|
case "year":
|
|
@@ -3414,7 +3414,7 @@ function La(e) {
|
|
|
3414
3414
|
}
|
|
3415
3415
|
function Ra(e) {
|
|
3416
3416
|
var t, n;
|
|
3417
|
-
if (e =
|
|
3417
|
+
if (e = V(e), e === void 0 || e === "millisecond" || !this.isValid())
|
|
3418
3418
|
return this;
|
|
3419
3419
|
switch (n = this._isUTC ? ps : ms, e) {
|
|
3420
3420
|
case "year":
|
|
@@ -3500,7 +3500,7 @@ function Ia() {
|
|
|
3500
3500
|
return this.isValid() ? this.toISOString() : null;
|
|
3501
3501
|
}
|
|
3502
3502
|
function ja() {
|
|
3503
|
-
return
|
|
3503
|
+
return Wt(this);
|
|
3504
3504
|
}
|
|
3505
3505
|
function Ua() {
|
|
3506
3506
|
return de({}, _(this));
|
|
@@ -3548,7 +3548,7 @@ k(["yo"], function(e, t, n, s) {
|
|
|
3548
3548
|
var i;
|
|
3549
3549
|
n._locale._eraYearOrdinalRegex && (i = e.match(n._locale._eraYearOrdinalRegex)), n._locale.eraYearOrdinalParse ? t[P] = n._locale.eraYearOrdinalParse(e, i) : t[P] = parseInt(e, 10);
|
|
3550
3550
|
});
|
|
3551
|
-
function
|
|
3551
|
+
function Wa(e, t) {
|
|
3552
3552
|
var n, s, i, r = this._eras || ue("en")._eras;
|
|
3553
3553
|
for (n = 0, s = r.length; n < s; ++n) {
|
|
3554
3554
|
switch (typeof r[n].since) {
|
|
@@ -3567,7 +3567,7 @@ function Va(e, t) {
|
|
|
3567
3567
|
}
|
|
3568
3568
|
return r;
|
|
3569
3569
|
}
|
|
3570
|
-
function
|
|
3570
|
+
function Va(e, t, n) {
|
|
3571
3571
|
var s, i, r = this.eras(), a, o, u;
|
|
3572
3572
|
for (e = e.toUpperCase(), s = 0, i = r.length; s < i; ++s)
|
|
3573
3573
|
if (a = r[s].name.toUpperCase(), o = r[s].abbr.toUpperCase(), u = r[s].narrow.toUpperCase(), n)
|
|
@@ -3856,15 +3856,15 @@ c.eraName = za;
|
|
|
3856
3856
|
c.eraNarrow = Ka;
|
|
3857
3857
|
c.eraAbbr = Ba;
|
|
3858
3858
|
c.eraYear = qa;
|
|
3859
|
-
c.year =
|
|
3859
|
+
c.year = Wn;
|
|
3860
3860
|
c.isLeapYear = ki;
|
|
3861
3861
|
c.weekYear = no;
|
|
3862
3862
|
c.isoWeekYear = so;
|
|
3863
3863
|
c.quarter = c.quarters = lo;
|
|
3864
3864
|
c.month = Bn;
|
|
3865
3865
|
c.daysInMonth = Ei;
|
|
3866
|
-
c.week = c.weeks =
|
|
3867
|
-
c.isoWeek = c.isoWeeks =
|
|
3866
|
+
c.week = c.weeks = Wi;
|
|
3867
|
+
c.isoWeek = c.isoWeeks = Vi;
|
|
3868
3868
|
c.weeksInYear = ao;
|
|
3869
3869
|
c.weeksInWeekYear = oo;
|
|
3870
3870
|
c.isoWeeksInYear = io;
|
|
@@ -3890,23 +3890,23 @@ c.isUtc = os;
|
|
|
3890
3890
|
c.isUTC = os;
|
|
3891
3891
|
c.zoneAbbr = mo;
|
|
3892
3892
|
c.zoneName = po;
|
|
3893
|
-
c.dates =
|
|
3893
|
+
c.dates = W(
|
|
3894
3894
|
"dates accessor is deprecated. Use date instead.",
|
|
3895
3895
|
_s
|
|
3896
3896
|
);
|
|
3897
|
-
c.months =
|
|
3897
|
+
c.months = W(
|
|
3898
3898
|
"months accessor is deprecated. Use month instead",
|
|
3899
3899
|
Bn
|
|
3900
3900
|
);
|
|
3901
|
-
c.years =
|
|
3901
|
+
c.years = W(
|
|
3902
3902
|
"years accessor is deprecated. Use year instead",
|
|
3903
|
-
|
|
3903
|
+
Wn
|
|
3904
3904
|
);
|
|
3905
|
-
c.zone =
|
|
3905
|
+
c.zone = W(
|
|
3906
3906
|
"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
|
|
3907
3907
|
qr
|
|
3908
3908
|
);
|
|
3909
|
-
c.isDSTShifted =
|
|
3909
|
+
c.isDSTShifted = W(
|
|
3910
3910
|
"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
|
|
3911
3911
|
ta
|
|
3912
3912
|
);
|
|
@@ -3929,8 +3929,8 @@ b.postformat = ws;
|
|
|
3929
3929
|
b.relativeTime = fi;
|
|
3930
3930
|
b.pastFuture = gi;
|
|
3931
3931
|
b.set = ei;
|
|
3932
|
-
b.eras =
|
|
3933
|
-
b.erasParse =
|
|
3932
|
+
b.eras = Wa;
|
|
3933
|
+
b.erasParse = Va;
|
|
3934
3934
|
b.erasConvertYear = Ga;
|
|
3935
3935
|
b.erasAbbrRegex = Za;
|
|
3936
3936
|
b.erasNameRegex = Ja;
|
|
@@ -4013,11 +4013,11 @@ ce("en", {
|
|
|
4013
4013
|
return e + n;
|
|
4014
4014
|
}
|
|
4015
4015
|
});
|
|
4016
|
-
g.lang =
|
|
4016
|
+
g.lang = W(
|
|
4017
4017
|
"moment.lang is deprecated. Use moment.locale instead.",
|
|
4018
4018
|
ce
|
|
4019
4019
|
);
|
|
4020
|
-
g.langData =
|
|
4020
|
+
g.langData = W(
|
|
4021
4021
|
"moment.langData is deprecated. Use moment.localeData instead.",
|
|
4022
4022
|
ue
|
|
4023
4023
|
);
|
|
@@ -4053,7 +4053,7 @@ function Yo(e) {
|
|
|
4053
4053
|
if (!this.isValid())
|
|
4054
4054
|
return NaN;
|
|
4055
4055
|
var t, n, s = this._milliseconds;
|
|
4056
|
-
if (e =
|
|
4056
|
+
if (e = V(e), e === "month" || e === "quarter" || e === "year")
|
|
4057
4057
|
switch (t = this._days + s / 864e5, n = this._months + xs(t), e) {
|
|
4058
4058
|
case "month":
|
|
4059
4059
|
return n;
|
|
@@ -4090,14 +4090,14 @@ function Io() {
|
|
|
4090
4090
|
return q(this);
|
|
4091
4091
|
}
|
|
4092
4092
|
function jo(e) {
|
|
4093
|
-
return e =
|
|
4093
|
+
return e = V(e), this.isValid() ? this[e + "s"]() : NaN;
|
|
4094
4094
|
}
|
|
4095
4095
|
function _e(e) {
|
|
4096
4096
|
return function() {
|
|
4097
4097
|
return this.isValid() ? this._data[e] : NaN;
|
|
4098
4098
|
};
|
|
4099
4099
|
}
|
|
4100
|
-
var Uo = _e("milliseconds"), Ho = _e("seconds"), $o = _e("minutes"),
|
|
4100
|
+
var Uo = _e("milliseconds"), Ho = _e("seconds"), $o = _e("minutes"), Wo = _e("hours"), Vo = _e("days"), Go = _e("months"), zo = _e("years");
|
|
4101
4101
|
function Ko() {
|
|
4102
4102
|
return $(this.days() / 7);
|
|
4103
4103
|
}
|
|
@@ -4147,7 +4147,7 @@ function xt() {
|
|
|
4147
4147
|
return o ? (s = $(e / 60), i = $(s / 60), e %= 60, s %= 60, r = $(n / 12), n %= 12, a = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", u = o < 0 ? "-" : "", l = Se(this._months) !== Se(o) ? "-" : "", h = Se(this._days) !== Se(o) ? "-" : "", f = Se(this._milliseconds) !== Se(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";
|
|
4148
4148
|
}
|
|
4149
4149
|
var w = St.prototype;
|
|
4150
|
-
w.isValid =
|
|
4150
|
+
w.isValid = Vr;
|
|
4151
4151
|
w.abs = ko;
|
|
4152
4152
|
w.add = Oo;
|
|
4153
4153
|
w.subtract = Mo;
|
|
@@ -4168,8 +4168,8 @@ w.get = jo;
|
|
|
4168
4168
|
w.milliseconds = Uo;
|
|
4169
4169
|
w.seconds = Ho;
|
|
4170
4170
|
w.minutes = $o;
|
|
4171
|
-
w.hours =
|
|
4172
|
-
w.days =
|
|
4171
|
+
w.hours = Wo;
|
|
4172
|
+
w.days = Vo;
|
|
4173
4173
|
w.weeks = Ko;
|
|
4174
4174
|
w.months = Go;
|
|
4175
4175
|
w.years = zo;
|
|
@@ -4179,7 +4179,7 @@ w.toString = xt;
|
|
|
4179
4179
|
w.toJSON = xt;
|
|
4180
4180
|
w.locale = hs;
|
|
4181
4181
|
w.localeData = fs;
|
|
4182
|
-
w.toIsoString =
|
|
4182
|
+
w.toIsoString = W(
|
|
4183
4183
|
"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
|
|
4184
4184
|
xt
|
|
4185
4185
|
);
|
|
@@ -4204,7 +4204,7 @@ g.now = $r;
|
|
|
4204
4204
|
g.utc = X;
|
|
4205
4205
|
g.unix = yo;
|
|
4206
4206
|
g.months = vo;
|
|
4207
|
-
g.isDate =
|
|
4207
|
+
g.isDate = Ve;
|
|
4208
4208
|
g.locale = ce;
|
|
4209
4209
|
g.invalid = ft;
|
|
4210
4210
|
g.duration = q;
|
|
@@ -4219,7 +4219,7 @@ g.defineLocale = tn;
|
|
|
4219
4219
|
g.updateLocale = yr;
|
|
4220
4220
|
g.locales = _r;
|
|
4221
4221
|
g.weekdaysShort = bo;
|
|
4222
|
-
g.normalizeUnits =
|
|
4222
|
+
g.normalizeUnits = V;
|
|
4223
4223
|
g.relativeTimeRounding = Jo;
|
|
4224
4224
|
g.relativeTimeThreshold = Zo;
|
|
4225
4225
|
g.calendarFormat = fa;
|
|
@@ -4329,7 +4329,7 @@ const Xo = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octob
|
|
|
4329
4329
|
}
|
|
4330
4330
|
};
|
|
4331
4331
|
g.locale("fr", tu);
|
|
4332
|
-
const nu = (e) => Math.round(5e3 * Math.pow(200, 0.01 * e) / 10) * 10, Os = (e) => e >= 1 ? Os(e - 1) + nu(e) : 0, su = (e, t = 0) => e < Os(t + 1) ? t : su(e, t + 1),
|
|
4332
|
+
const nu = (e) => Math.round(5e3 * Math.pow(200, 0.01 * e) / 10) * 10, Os = (e) => e >= 1 ? Os(e - 1) + nu(e) : 0, su = (e, t = 0) => e < Os(t + 1) ? t : su(e, t + 1), mu = ([e, t]) => t ? `${Mt("xp.user", { amount: Yt(e), emoji: Dt.xp })} ${Mt("xp.crew", { amount: Yt(t), emoji: Dt.xp })}` : Mt("xp.user", { amount: Yt(e), emoji: Dt.xp });
|
|
4333
4333
|
export {
|
|
4334
4334
|
au as CHARACTERISTICS,
|
|
4335
4335
|
Ys as CHARACTERISTIC_DEFAULT_POINT_COST,
|
|
@@ -4342,8 +4342,9 @@ export {
|
|
|
4342
4342
|
ru as RANKS,
|
|
4343
4343
|
me as RankId,
|
|
4344
4344
|
fu as SORT_VALUES,
|
|
4345
|
-
|
|
4345
|
+
mu as displayXp,
|
|
4346
4346
|
su as getCurrentLevel,
|
|
4347
|
+
gu as getNewSortValue,
|
|
4347
4348
|
Os as totalXpToLevel,
|
|
4348
4349
|
nu as xpToLevel
|
|
4349
4350
|
};
|