60p82u21t54k 0.2.33 → 0.2.34
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/60p82u21t54k.es.js +362 -375
- package/dist/60p82u21t54k.umd.js +1 -1
- package/dist/api/api.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/60p82u21t54k.es.js
CHANGED
|
@@ -76,9 +76,9 @@ const wa = (e) => {
|
|
|
76
76
|
__proto__: null,
|
|
77
77
|
getConfig: ht,
|
|
78
78
|
setConfig: wa
|
|
79
|
-
}, Symbol.toStringTag, { value: "Module" })), aa = 6048e5, Pa = 864e5,
|
|
79
|
+
}, Symbol.toStringTag, { value: "Module" })), aa = 6048e5, Pa = 864e5, xa = 6e4, Ra = 36e5, ka = 1e3, kt = Symbol.for("constructDateFrom");
|
|
80
80
|
function E(e, a) {
|
|
81
|
-
return typeof e == "function" ? e(a) : e && typeof e == "object" &&
|
|
81
|
+
return typeof e == "function" ? e(a) : e && typeof e == "object" && kt in e ? e[kt](a) : e instanceof Date ? new e.constructor(a) : new Date(a);
|
|
82
82
|
}
|
|
83
83
|
function W(e, a) {
|
|
84
84
|
return E(a || e, e);
|
|
@@ -87,27 +87,27 @@ function na(e, a, t) {
|
|
|
87
87
|
const n = W(e, t == null ? void 0 : t.in);
|
|
88
88
|
return isNaN(a) ? E((t == null ? void 0 : t.in) || e, NaN) : (a && n.setDate(n.getDate() + a), n);
|
|
89
89
|
}
|
|
90
|
-
let
|
|
91
|
-
function
|
|
92
|
-
return
|
|
90
|
+
let Oa = {};
|
|
91
|
+
function ke() {
|
|
92
|
+
return Oa;
|
|
93
93
|
}
|
|
94
94
|
function fe(e, a) {
|
|
95
95
|
var d, g, p, h;
|
|
96
|
-
const t =
|
|
96
|
+
const t = ke(), n = (a == null ? void 0 : a.weekStartsOn) ?? ((g = (d = a == null ? void 0 : a.locale) == null ? void 0 : d.options) == null ? void 0 : g.weekStartsOn) ?? t.weekStartsOn ?? ((h = (p = t.locale) == null ? void 0 : p.options) == null ? void 0 : h.weekStartsOn) ?? 0, r = W(e, a == null ? void 0 : a.in), s = r.getDay(), i = (s < n ? 7 : 0) + s - n;
|
|
97
97
|
return r.setDate(r.getDate() - i), r.setHours(0, 0, 0, 0), r;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function xe(e, a) {
|
|
100
100
|
return fe(e, { ...a, weekStartsOn: 1 });
|
|
101
101
|
}
|
|
102
102
|
function ra(e, a) {
|
|
103
103
|
const t = W(e, a == null ? void 0 : a.in), n = t.getFullYear(), r = E(t, 0);
|
|
104
104
|
r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
105
|
-
const s =
|
|
105
|
+
const s = xe(r), i = E(t, 0);
|
|
106
106
|
i.setFullYear(n, 0, 4), i.setHours(0, 0, 0, 0);
|
|
107
|
-
const d =
|
|
107
|
+
const d = xe(i);
|
|
108
108
|
return t.getTime() >= s.getTime() ? n + 1 : t.getTime() >= d.getTime() ? n : n - 1;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function Ee(e) {
|
|
111
111
|
const a = W(e), t = new Date(
|
|
112
112
|
Date.UTC(
|
|
113
113
|
a.getFullYear(),
|
|
@@ -128,7 +128,7 @@ function Ma(e, ...a) {
|
|
|
128
128
|
);
|
|
129
129
|
return a.map(t);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Ot(e, a) {
|
|
132
132
|
const t = W(e, a == null ? void 0 : a.in);
|
|
133
133
|
return t.setHours(0, 0, 0, 0), t;
|
|
134
134
|
}
|
|
@@ -137,12 +137,12 @@ function Sa(e, a, t) {
|
|
|
137
137
|
t == null ? void 0 : t.in,
|
|
138
138
|
e,
|
|
139
139
|
a
|
|
140
|
-
), s =
|
|
140
|
+
), s = Ot(n), i = Ot(r), d = +s - Ee(s), g = +i - Ee(i);
|
|
141
141
|
return Math.round((d - g) / Pa);
|
|
142
142
|
}
|
|
143
143
|
function Ia(e, a) {
|
|
144
144
|
const t = ra(e, a), n = E(e, 0);
|
|
145
|
-
return n.setFullYear(t, 0, 4), n.setHours(0, 0, 0, 0),
|
|
145
|
+
return n.setFullYear(t, 0, 4), n.setHours(0, 0, 0, 0), xe(n);
|
|
146
146
|
}
|
|
147
147
|
function ja(e) {
|
|
148
148
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
@@ -263,7 +263,7 @@ const Ga = {
|
|
|
263
263
|
nextWeek: "eeee 'at' p",
|
|
264
264
|
other: "P"
|
|
265
265
|
}, qa = (e, a, t, n) => Ya[e];
|
|
266
|
-
function
|
|
266
|
+
function Ne(e) {
|
|
267
267
|
return (a, t) => {
|
|
268
268
|
const n = t != null && t.context ? String(t.context) : "standalone";
|
|
269
269
|
let r;
|
|
@@ -405,31 +405,31 @@ const Ha = {
|
|
|
405
405
|
return t + "th";
|
|
406
406
|
}, Xa = {
|
|
407
407
|
ordinalNumber: Qa,
|
|
408
|
-
era:
|
|
408
|
+
era: Ne({
|
|
409
409
|
values: Ha,
|
|
410
410
|
defaultWidth: "wide"
|
|
411
411
|
}),
|
|
412
|
-
quarter:
|
|
412
|
+
quarter: Ne({
|
|
413
413
|
values: Ba,
|
|
414
414
|
defaultWidth: "wide",
|
|
415
415
|
argumentCallback: (e) => e - 1
|
|
416
416
|
}),
|
|
417
|
-
month:
|
|
417
|
+
month: Ne({
|
|
418
418
|
values: Ua,
|
|
419
419
|
defaultWidth: "wide"
|
|
420
420
|
}),
|
|
421
|
-
day:
|
|
421
|
+
day: Ne({
|
|
422
422
|
values: $a,
|
|
423
423
|
defaultWidth: "wide"
|
|
424
424
|
}),
|
|
425
|
-
dayPeriod:
|
|
425
|
+
dayPeriod: Ne({
|
|
426
426
|
values: Va,
|
|
427
427
|
defaultWidth: "wide",
|
|
428
428
|
formattingValues: Aa,
|
|
429
429
|
defaultFormattingWidth: "wide"
|
|
430
430
|
})
|
|
431
431
|
};
|
|
432
|
-
function
|
|
432
|
+
function Le(e) {
|
|
433
433
|
return (a, t = {}) => {
|
|
434
434
|
const n = t.width, r = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], s = a.match(r);
|
|
435
435
|
if (!s)
|
|
@@ -542,32 +542,32 @@ const en = /^(\d+)(th|st|nd|rd)?/i, tn = /\d+/i, an = {
|
|
|
542
542
|
parsePattern: tn,
|
|
543
543
|
valueCallback: (e) => parseInt(e, 10)
|
|
544
544
|
}),
|
|
545
|
-
era:
|
|
545
|
+
era: Le({
|
|
546
546
|
matchPatterns: an,
|
|
547
547
|
defaultMatchWidth: "wide",
|
|
548
548
|
parsePatterns: nn,
|
|
549
549
|
defaultParseWidth: "any"
|
|
550
550
|
}),
|
|
551
|
-
quarter:
|
|
551
|
+
quarter: Le({
|
|
552
552
|
matchPatterns: rn,
|
|
553
553
|
defaultMatchWidth: "wide",
|
|
554
554
|
parsePatterns: sn,
|
|
555
555
|
defaultParseWidth: "any",
|
|
556
556
|
valueCallback: (e) => e + 1
|
|
557
557
|
}),
|
|
558
|
-
month:
|
|
558
|
+
month: Le({
|
|
559
559
|
matchPatterns: on,
|
|
560
560
|
defaultMatchWidth: "wide",
|
|
561
561
|
parsePatterns: un,
|
|
562
562
|
defaultParseWidth: "any"
|
|
563
563
|
}),
|
|
564
|
-
day:
|
|
564
|
+
day: Le({
|
|
565
565
|
matchPatterns: ln,
|
|
566
566
|
defaultMatchWidth: "wide",
|
|
567
567
|
parsePatterns: cn,
|
|
568
568
|
defaultParseWidth: "any"
|
|
569
569
|
}),
|
|
570
|
-
dayPeriod:
|
|
570
|
+
dayPeriod: Le({
|
|
571
571
|
matchPatterns: dn,
|
|
572
572
|
defaultMatchWidth: "any",
|
|
573
573
|
parsePatterns: mn,
|
|
@@ -590,12 +590,12 @@ function fn(e, a) {
|
|
|
590
590
|
return Sa(t, Na(t)) + 1;
|
|
591
591
|
}
|
|
592
592
|
function oa(e, a) {
|
|
593
|
-
const t = W(e, a == null ? void 0 : a.in), n = +
|
|
593
|
+
const t = W(e, a == null ? void 0 : a.in), n = +xe(t) - +Ia(t);
|
|
594
594
|
return Math.round(n / aa) + 1;
|
|
595
595
|
}
|
|
596
596
|
function _t(e, a) {
|
|
597
597
|
var h, w, _, b;
|
|
598
|
-
const t = W(e, a == null ? void 0 : a.in), n = t.getFullYear(), r =
|
|
598
|
+
const t = W(e, a == null ? void 0 : a.in), n = t.getFullYear(), r = ke(), s = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((w = (h = a == null ? void 0 : a.locale) == null ? void 0 : h.options) == null ? void 0 : w.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((b = (_ = r.locale) == null ? void 0 : _.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, i = E((a == null ? void 0 : a.in) || e, 0);
|
|
599
599
|
i.setFullYear(n + 1, 0, s), i.setHours(0, 0, 0, 0);
|
|
600
600
|
const d = fe(i, a), g = E((a == null ? void 0 : a.in) || e, 0);
|
|
601
601
|
g.setFullYear(n, 0, s), g.setHours(0, 0, 0, 0);
|
|
@@ -604,14 +604,14 @@ function _t(e, a) {
|
|
|
604
604
|
}
|
|
605
605
|
function pn(e, a) {
|
|
606
606
|
var d, g, p, h;
|
|
607
|
-
const t =
|
|
607
|
+
const t = ke(), n = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((g = (d = a == null ? void 0 : a.locale) == null ? void 0 : d.options) == null ? void 0 : g.firstWeekContainsDate) ?? t.firstWeekContainsDate ?? ((h = (p = t.locale) == null ? void 0 : p.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, r = _t(e, a), s = E((a == null ? void 0 : a.in) || e, 0);
|
|
608
608
|
return s.setFullYear(r, 0, n), s.setHours(0, 0, 0, 0), fe(s, a);
|
|
609
609
|
}
|
|
610
610
|
function ia(e, a) {
|
|
611
611
|
const t = W(e, a == null ? void 0 : a.in), n = +fe(t, a) - +pn(t, a);
|
|
612
612
|
return Math.round(n / aa) + 1;
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function k(e, a) {
|
|
615
615
|
const t = e < 0 ? "-" : "", n = Math.abs(e).toString().padStart(a, "0");
|
|
616
616
|
return t + n;
|
|
617
617
|
}
|
|
@@ -619,16 +619,16 @@ const ge = {
|
|
|
619
619
|
// Year
|
|
620
620
|
y(e, a) {
|
|
621
621
|
const t = e.getFullYear(), n = t > 0 ? t : 1 - t;
|
|
622
|
-
return
|
|
622
|
+
return k(a === "yy" ? n % 100 : n, a.length);
|
|
623
623
|
},
|
|
624
624
|
// Month
|
|
625
625
|
M(e, a) {
|
|
626
626
|
const t = e.getMonth();
|
|
627
|
-
return a === "M" ? String(t + 1) :
|
|
627
|
+
return a === "M" ? String(t + 1) : k(t + 1, 2);
|
|
628
628
|
},
|
|
629
629
|
// Day of the month
|
|
630
630
|
d(e, a) {
|
|
631
|
-
return
|
|
631
|
+
return k(e.getDate(), a.length);
|
|
632
632
|
},
|
|
633
633
|
// AM or PM
|
|
634
634
|
a(e, a) {
|
|
@@ -648,28 +648,28 @@ const ge = {
|
|
|
648
648
|
},
|
|
649
649
|
// Hour [1-12]
|
|
650
650
|
h(e, a) {
|
|
651
|
-
return
|
|
651
|
+
return k(e.getHours() % 12 || 12, a.length);
|
|
652
652
|
},
|
|
653
653
|
// Hour [0-23]
|
|
654
654
|
H(e, a) {
|
|
655
|
-
return
|
|
655
|
+
return k(e.getHours(), a.length);
|
|
656
656
|
},
|
|
657
657
|
// Minute
|
|
658
658
|
m(e, a) {
|
|
659
|
-
return
|
|
659
|
+
return k(e.getMinutes(), a.length);
|
|
660
660
|
},
|
|
661
661
|
// Second
|
|
662
662
|
s(e, a) {
|
|
663
|
-
return
|
|
663
|
+
return k(e.getSeconds(), a.length);
|
|
664
664
|
},
|
|
665
665
|
// Fraction of second
|
|
666
666
|
S(e, a) {
|
|
667
667
|
const t = a.length, n = e.getMilliseconds(), r = Math.trunc(
|
|
668
668
|
n * Math.pow(10, t - 3)
|
|
669
669
|
);
|
|
670
|
-
return
|
|
670
|
+
return k(r, a.length);
|
|
671
671
|
}
|
|
672
|
-
},
|
|
672
|
+
}, we = {
|
|
673
673
|
midnight: "midnight",
|
|
674
674
|
noon: "noon",
|
|
675
675
|
morning: "morning",
|
|
@@ -708,14 +708,14 @@ const ge = {
|
|
|
708
708
|
const r = _t(e, n), s = r > 0 ? r : 1 - r;
|
|
709
709
|
if (a === "YY") {
|
|
710
710
|
const i = s % 100;
|
|
711
|
-
return
|
|
711
|
+
return k(i, 2);
|
|
712
712
|
}
|
|
713
|
-
return a === "Yo" ? t.ordinalNumber(s, { unit: "year" }) :
|
|
713
|
+
return a === "Yo" ? t.ordinalNumber(s, { unit: "year" }) : k(s, a.length);
|
|
714
714
|
},
|
|
715
715
|
// ISO week-numbering year
|
|
716
716
|
R: function(e, a) {
|
|
717
717
|
const t = ra(e);
|
|
718
|
-
return
|
|
718
|
+
return k(t, a.length);
|
|
719
719
|
},
|
|
720
720
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
721
721
|
// The main difference between `y` and `u` localizers are B.C. years:
|
|
@@ -728,7 +728,7 @@ const ge = {
|
|
|
728
728
|
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
729
729
|
u: function(e, a) {
|
|
730
730
|
const t = e.getFullYear();
|
|
731
|
-
return
|
|
731
|
+
return k(t, a.length);
|
|
732
732
|
},
|
|
733
733
|
// Quarter
|
|
734
734
|
Q: function(e, a, t) {
|
|
@@ -739,7 +739,7 @@ const ge = {
|
|
|
739
739
|
return String(n);
|
|
740
740
|
// 01, 02, 03, 04
|
|
741
741
|
case "QQ":
|
|
742
|
-
return
|
|
742
|
+
return k(n, 2);
|
|
743
743
|
// 1st, 2nd, 3rd, 4th
|
|
744
744
|
case "Qo":
|
|
745
745
|
return t.ordinalNumber(n, { unit: "quarter" });
|
|
@@ -773,7 +773,7 @@ const ge = {
|
|
|
773
773
|
return String(n);
|
|
774
774
|
// 01, 02, 03, 04
|
|
775
775
|
case "qq":
|
|
776
|
-
return
|
|
776
|
+
return k(n, 2);
|
|
777
777
|
// 1st, 2nd, 3rd, 4th
|
|
778
778
|
case "qo":
|
|
779
779
|
return t.ordinalNumber(n, { unit: "quarter" });
|
|
@@ -835,7 +835,7 @@ const ge = {
|
|
|
835
835
|
return String(n + 1);
|
|
836
836
|
// 01, 02, ..., 12
|
|
837
837
|
case "LL":
|
|
838
|
-
return
|
|
838
|
+
return k(n + 1, 2);
|
|
839
839
|
// 1st, 2nd, ..., 12th
|
|
840
840
|
case "Lo":
|
|
841
841
|
return t.ordinalNumber(n + 1, { unit: "month" });
|
|
@@ -860,12 +860,12 @@ const ge = {
|
|
|
860
860
|
// Local week of year
|
|
861
861
|
w: function(e, a, t, n) {
|
|
862
862
|
const r = ia(e, n);
|
|
863
|
-
return a === "wo" ? t.ordinalNumber(r, { unit: "week" }) :
|
|
863
|
+
return a === "wo" ? t.ordinalNumber(r, { unit: "week" }) : k(r, a.length);
|
|
864
864
|
},
|
|
865
865
|
// ISO week of year
|
|
866
866
|
I: function(e, a, t) {
|
|
867
867
|
const n = oa(e);
|
|
868
|
-
return a === "Io" ? t.ordinalNumber(n, { unit: "week" }) :
|
|
868
|
+
return a === "Io" ? t.ordinalNumber(n, { unit: "week" }) : k(n, a.length);
|
|
869
869
|
},
|
|
870
870
|
// Day of the month
|
|
871
871
|
d: function(e, a, t) {
|
|
@@ -874,7 +874,7 @@ const ge = {
|
|
|
874
874
|
// Day of year
|
|
875
875
|
D: function(e, a, t) {
|
|
876
876
|
const n = fn(e);
|
|
877
|
-
return a === "Do" ? t.ordinalNumber(n, { unit: "dayOfYear" }) :
|
|
877
|
+
return a === "Do" ? t.ordinalNumber(n, { unit: "dayOfYear" }) : k(n, a.length);
|
|
878
878
|
},
|
|
879
879
|
// Day of week
|
|
880
880
|
E: function(e, a, t) {
|
|
@@ -918,7 +918,7 @@ const ge = {
|
|
|
918
918
|
return String(s);
|
|
919
919
|
// Padded numerical value
|
|
920
920
|
case "ee":
|
|
921
|
-
return
|
|
921
|
+
return k(s, 2);
|
|
922
922
|
// 1st, 2nd, ..., 7th
|
|
923
923
|
case "eo":
|
|
924
924
|
return t.ordinalNumber(s, { unit: "day" });
|
|
@@ -957,7 +957,7 @@ const ge = {
|
|
|
957
957
|
return String(s);
|
|
958
958
|
// Padded numerical value
|
|
959
959
|
case "cc":
|
|
960
|
-
return
|
|
960
|
+
return k(s, a.length);
|
|
961
961
|
// 1st, 2nd, ..., 7th
|
|
962
962
|
case "co":
|
|
963
963
|
return t.ordinalNumber(s, { unit: "day" });
|
|
@@ -996,7 +996,7 @@ const ge = {
|
|
|
996
996
|
return String(r);
|
|
997
997
|
// 02
|
|
998
998
|
case "ii":
|
|
999
|
-
return
|
|
999
|
+
return k(r, a.length);
|
|
1000
1000
|
// 2nd
|
|
1001
1001
|
case "io":
|
|
1002
1002
|
return t.ordinalNumber(r, { unit: "day" });
|
|
@@ -1059,7 +1059,7 @@ const ge = {
|
|
|
1059
1059
|
b: function(e, a, t) {
|
|
1060
1060
|
const n = e.getHours();
|
|
1061
1061
|
let r;
|
|
1062
|
-
switch (n === 12 ? r =
|
|
1062
|
+
switch (n === 12 ? r = we.noon : n === 0 ? r = we.midnight : r = n / 12 >= 1 ? "pm" : "am", a) {
|
|
1063
1063
|
case "b":
|
|
1064
1064
|
case "bb":
|
|
1065
1065
|
return t.dayPeriod(r, {
|
|
@@ -1088,7 +1088,7 @@ const ge = {
|
|
|
1088
1088
|
B: function(e, a, t) {
|
|
1089
1089
|
const n = e.getHours();
|
|
1090
1090
|
let r;
|
|
1091
|
-
switch (n >= 17 ? r =
|
|
1091
|
+
switch (n >= 17 ? r = we.evening : n >= 12 ? r = we.afternoon : n >= 4 ? r = we.morning : r = we.night, a) {
|
|
1092
1092
|
case "B":
|
|
1093
1093
|
case "BB":
|
|
1094
1094
|
case "BBB":
|
|
@@ -1124,12 +1124,12 @@ const ge = {
|
|
|
1124
1124
|
// Hour [0-11]
|
|
1125
1125
|
K: function(e, a, t) {
|
|
1126
1126
|
const n = e.getHours() % 12;
|
|
1127
|
-
return a === "Ko" ? t.ordinalNumber(n, { unit: "hour" }) :
|
|
1127
|
+
return a === "Ko" ? t.ordinalNumber(n, { unit: "hour" }) : k(n, a.length);
|
|
1128
1128
|
},
|
|
1129
1129
|
// Hour [1-24]
|
|
1130
1130
|
k: function(e, a, t) {
|
|
1131
1131
|
let n = e.getHours();
|
|
1132
|
-
return n === 0 && (n = 24), a === "ko" ? t.ordinalNumber(n, { unit: "hour" }) :
|
|
1132
|
+
return n === 0 && (n = 24), a === "ko" ? t.ordinalNumber(n, { unit: "hour" }) : k(n, a.length);
|
|
1133
1133
|
},
|
|
1134
1134
|
// Minute
|
|
1135
1135
|
m: function(e, a, t) {
|
|
@@ -1224,22 +1224,22 @@ const ge = {
|
|
|
1224
1224
|
// Seconds timestamp
|
|
1225
1225
|
t: function(e, a, t) {
|
|
1226
1226
|
const n = Math.trunc(+e / 1e3);
|
|
1227
|
-
return
|
|
1227
|
+
return k(n, a.length);
|
|
1228
1228
|
},
|
|
1229
1229
|
// Milliseconds timestamp
|
|
1230
1230
|
T: function(e, a, t) {
|
|
1231
|
-
return
|
|
1231
|
+
return k(+e, a.length);
|
|
1232
1232
|
}
|
|
1233
1233
|
};
|
|
1234
1234
|
function St(e, a = "") {
|
|
1235
1235
|
const t = e > 0 ? "-" : "+", n = Math.abs(e), r = Math.trunc(n / 60), s = n % 60;
|
|
1236
|
-
return s === 0 ? t + String(r) : t + String(r) + a +
|
|
1236
|
+
return s === 0 ? t + String(r) : t + String(r) + a + k(s, 2);
|
|
1237
1237
|
}
|
|
1238
1238
|
function It(e, a) {
|
|
1239
|
-
return e % 60 === 0 ? (e > 0 ? "-" : "+") +
|
|
1239
|
+
return e % 60 === 0 ? (e > 0 ? "-" : "+") + k(Math.abs(e) / 60, 2) : he(e, a);
|
|
1240
1240
|
}
|
|
1241
1241
|
function he(e, a = "") {
|
|
1242
|
-
const t = e > 0 ? "-" : "+", n = Math.abs(e), r =
|
|
1242
|
+
const t = e > 0 ? "-" : "+", n = Math.abs(e), r = k(Math.trunc(n / 60), 2), s = k(n % 60, 2);
|
|
1243
1243
|
return t + r + a + s;
|
|
1244
1244
|
}
|
|
1245
1245
|
const jt = (e, a) => {
|
|
@@ -1305,10 +1305,10 @@ function Tn(e, a, t) {
|
|
|
1305
1305
|
const n = e[0] === "Y" ? "years" : "days of the month";
|
|
1306
1306
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${a}\`) for formatting ${n} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1307
1307
|
}
|
|
1308
|
-
const vn = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, wn = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Dn = /^'([^]*?)'?$/, Pn = /''/g,
|
|
1309
|
-
function
|
|
1310
|
-
var h, w, _, b,
|
|
1311
|
-
const n =
|
|
1308
|
+
const vn = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, wn = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Dn = /^'([^]*?)'?$/, Pn = /''/g, xn = /[a-zA-Z]/;
|
|
1309
|
+
function Rn(e, a, t) {
|
|
1310
|
+
var h, w, _, b, O, C, V, A;
|
|
1311
|
+
const n = ke(), r = (t == null ? void 0 : t.locale) ?? n.locale ?? sa, s = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((w = (h = t == null ? void 0 : t.locale) == null ? void 0 : h.options) == null ? void 0 : w.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((b = (_ = n.locale) == null ? void 0 : _.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, i = (t == null ? void 0 : t.weekStartsOn) ?? ((C = (O = t == null ? void 0 : t.locale) == null ? void 0 : O.options) == null ? void 0 : C.weekStartsOn) ?? n.weekStartsOn ?? ((A = (V = n.locale) == null ? void 0 : V.options) == null ? void 0 : A.weekStartsOn) ?? 0, d = W(e, t == null ? void 0 : t.in);
|
|
1312
1312
|
if (!Ca(d))
|
|
1313
1313
|
throw new RangeError("Invalid time value");
|
|
1314
1314
|
let g = a.match(wn).map((I) => {
|
|
@@ -1323,10 +1323,10 @@ function xn(e, a, t) {
|
|
|
1323
1323
|
return { isToken: !1, value: "'" };
|
|
1324
1324
|
const M = I[0];
|
|
1325
1325
|
if (M === "'")
|
|
1326
|
-
return { isToken: !1, value:
|
|
1326
|
+
return { isToken: !1, value: kn(I) };
|
|
1327
1327
|
if (Mt[M])
|
|
1328
1328
|
return { isToken: !0, value: I };
|
|
1329
|
-
if (M.match(
|
|
1329
|
+
if (M.match(xn))
|
|
1330
1330
|
throw new RangeError(
|
|
1331
1331
|
"Format string contains an unescaped latin alphabet character `" + M + "`"
|
|
1332
1332
|
);
|
|
@@ -1346,14 +1346,14 @@ function xn(e, a, t) {
|
|
|
1346
1346
|
return T(d, M, r.localize, p);
|
|
1347
1347
|
}).join("");
|
|
1348
1348
|
}
|
|
1349
|
-
function
|
|
1349
|
+
function kn(e) {
|
|
1350
1350
|
const a = e.match(Dn);
|
|
1351
1351
|
return a ? a[1].replace(Pn, "'") : e;
|
|
1352
1352
|
}
|
|
1353
1353
|
function da() {
|
|
1354
|
-
return Object.assign({},
|
|
1354
|
+
return Object.assign({}, ke());
|
|
1355
1355
|
}
|
|
1356
|
-
function
|
|
1356
|
+
function On(e, a) {
|
|
1357
1357
|
const t = W(e, a == null ? void 0 : a.in).getDay();
|
|
1358
1358
|
return t === 0 ? 7 : t;
|
|
1359
1359
|
}
|
|
@@ -1401,7 +1401,7 @@ class Cn extends ma {
|
|
|
1401
1401
|
return n.timestampIsSet ? t : E(t, Mn(t, this.context));
|
|
1402
1402
|
}
|
|
1403
1403
|
}
|
|
1404
|
-
class
|
|
1404
|
+
class x {
|
|
1405
1405
|
run(a, t, n, r) {
|
|
1406
1406
|
const s = this.parse(a, t, n, r);
|
|
1407
1407
|
return s ? {
|
|
@@ -1419,7 +1419,7 @@ class R {
|
|
|
1419
1419
|
return !0;
|
|
1420
1420
|
}
|
|
1421
1421
|
}
|
|
1422
|
-
class Nn extends
|
|
1422
|
+
class Nn extends x {
|
|
1423
1423
|
constructor() {
|
|
1424
1424
|
super(...arguments);
|
|
1425
1425
|
y(this, "priority", 140);
|
|
@@ -1514,7 +1514,7 @@ function ne(e, a) {
|
|
|
1514
1514
|
};
|
|
1515
1515
|
const n = t[1] === "+" ? 1 : -1, r = t[2] ? parseInt(t[2], 10) : 0, s = t[3] ? parseInt(t[3], 10) : 0, i = t[5] ? parseInt(t[5], 10) : 0;
|
|
1516
1516
|
return {
|
|
1517
|
-
value: n * (r *
|
|
1517
|
+
value: n * (r * Ra + s * xa + i * ka),
|
|
1518
1518
|
rest: a.slice(t[0].length)
|
|
1519
1519
|
};
|
|
1520
1520
|
}
|
|
@@ -1535,7 +1535,7 @@ function L(e, a) {
|
|
|
1535
1535
|
return j(new RegExp("^\\d{1," + e + "}"), a);
|
|
1536
1536
|
}
|
|
1537
1537
|
}
|
|
1538
|
-
function
|
|
1538
|
+
function Ye(e, a) {
|
|
1539
1539
|
switch (e) {
|
|
1540
1540
|
case 1:
|
|
1541
1541
|
return j(F.singleDigitSigned, a);
|
|
@@ -1580,7 +1580,7 @@ function fa(e, a) {
|
|
|
1580
1580
|
function pa(e) {
|
|
1581
1581
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
1582
1582
|
}
|
|
1583
|
-
class Ln extends
|
|
1583
|
+
class Ln extends x {
|
|
1584
1584
|
constructor() {
|
|
1585
1585
|
super(...arguments);
|
|
1586
1586
|
y(this, "priority", 130);
|
|
@@ -1621,7 +1621,7 @@ class Ln extends R {
|
|
|
1621
1621
|
return t.setFullYear(i, 0, 1), t.setHours(0, 0, 0, 0), t;
|
|
1622
1622
|
}
|
|
1623
1623
|
}
|
|
1624
|
-
class Fn extends
|
|
1624
|
+
class Fn extends x {
|
|
1625
1625
|
constructor() {
|
|
1626
1626
|
super(...arguments);
|
|
1627
1627
|
y(this, "priority", 130);
|
|
@@ -1680,7 +1680,7 @@ class Fn extends R {
|
|
|
1680
1680
|
return t.setFullYear(d, 0, s.firstWeekContainsDate), t.setHours(0, 0, 0, 0), fe(t, s);
|
|
1681
1681
|
}
|
|
1682
1682
|
}
|
|
1683
|
-
class Gn extends
|
|
1683
|
+
class Gn extends x {
|
|
1684
1684
|
constructor() {
|
|
1685
1685
|
super(...arguments);
|
|
1686
1686
|
y(this, "priority", 130);
|
|
@@ -1703,27 +1703,27 @@ class Gn extends R {
|
|
|
1703
1703
|
]);
|
|
1704
1704
|
}
|
|
1705
1705
|
parse(t, n) {
|
|
1706
|
-
return
|
|
1706
|
+
return Ye(n === "R" ? 4 : n.length, t);
|
|
1707
1707
|
}
|
|
1708
1708
|
set(t, n, r) {
|
|
1709
1709
|
const s = E(t, 0);
|
|
1710
|
-
return s.setFullYear(r, 0, 4), s.setHours(0, 0, 0, 0),
|
|
1710
|
+
return s.setFullYear(r, 0, 4), s.setHours(0, 0, 0, 0), xe(s);
|
|
1711
1711
|
}
|
|
1712
1712
|
}
|
|
1713
|
-
class zn extends
|
|
1713
|
+
class zn extends x {
|
|
1714
1714
|
constructor() {
|
|
1715
1715
|
super(...arguments);
|
|
1716
1716
|
y(this, "priority", 130);
|
|
1717
1717
|
y(this, "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]);
|
|
1718
1718
|
}
|
|
1719
1719
|
parse(t, n) {
|
|
1720
|
-
return
|
|
1720
|
+
return Ye(n === "u" ? 4 : n.length, t);
|
|
1721
1721
|
}
|
|
1722
1722
|
set(t, n, r) {
|
|
1723
1723
|
return t.setFullYear(r, 0, 1), t.setHours(0, 0, 0, 0), t;
|
|
1724
1724
|
}
|
|
1725
1725
|
}
|
|
1726
|
-
class Wn extends
|
|
1726
|
+
class Wn extends x {
|
|
1727
1727
|
constructor() {
|
|
1728
1728
|
super(...arguments);
|
|
1729
1729
|
y(this, "priority", 120);
|
|
@@ -1790,7 +1790,7 @@ class Wn extends R {
|
|
|
1790
1790
|
return t.setMonth((r - 1) * 3, 1), t.setHours(0, 0, 0, 0), t;
|
|
1791
1791
|
}
|
|
1792
1792
|
}
|
|
1793
|
-
class En extends
|
|
1793
|
+
class En extends x {
|
|
1794
1794
|
constructor() {
|
|
1795
1795
|
super(...arguments);
|
|
1796
1796
|
y(this, "priority", 120);
|
|
@@ -1857,7 +1857,7 @@ class En extends R {
|
|
|
1857
1857
|
return t.setMonth((r - 1) * 3, 1), t.setHours(0, 0, 0, 0), t;
|
|
1858
1858
|
}
|
|
1859
1859
|
}
|
|
1860
|
-
class Yn extends
|
|
1860
|
+
class Yn extends x {
|
|
1861
1861
|
constructor() {
|
|
1862
1862
|
super(...arguments);
|
|
1863
1863
|
y(this, "incompatibleTokens", [
|
|
@@ -1925,7 +1925,7 @@ class Yn extends R {
|
|
|
1925
1925
|
return t.setMonth(r, 1), t.setHours(0, 0, 0, 0), t;
|
|
1926
1926
|
}
|
|
1927
1927
|
}
|
|
1928
|
-
class qn extends
|
|
1928
|
+
class qn extends x {
|
|
1929
1929
|
constructor() {
|
|
1930
1930
|
super(...arguments);
|
|
1931
1931
|
y(this, "priority", 110);
|
|
@@ -1997,7 +1997,7 @@ function Hn(e, a, t) {
|
|
|
1997
1997
|
const n = W(e, t == null ? void 0 : t.in), r = ia(n, t) - a;
|
|
1998
1998
|
return n.setDate(n.getDate() - r * 7), W(n, t == null ? void 0 : t.in);
|
|
1999
1999
|
}
|
|
2000
|
-
class Bn extends
|
|
2000
|
+
class Bn extends x {
|
|
2001
2001
|
constructor() {
|
|
2002
2002
|
super(...arguments);
|
|
2003
2003
|
y(this, "priority", 100);
|
|
@@ -2038,7 +2038,7 @@ function Un(e, a, t) {
|
|
|
2038
2038
|
const n = W(e, t == null ? void 0 : t.in), r = oa(n, t) - a;
|
|
2039
2039
|
return n.setDate(n.getDate() - r * 7), n;
|
|
2040
2040
|
}
|
|
2041
|
-
class $n extends
|
|
2041
|
+
class $n extends x {
|
|
2042
2042
|
constructor() {
|
|
2043
2043
|
super(...arguments);
|
|
2044
2044
|
y(this, "priority", 100);
|
|
@@ -2073,7 +2073,7 @@ class $n extends R {
|
|
|
2073
2073
|
return n >= 1 && n <= 53;
|
|
2074
2074
|
}
|
|
2075
2075
|
set(t, n, r) {
|
|
2076
|
-
return
|
|
2076
|
+
return xe(Un(t, r));
|
|
2077
2077
|
}
|
|
2078
2078
|
}
|
|
2079
2079
|
const Vn = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], An = [
|
|
@@ -2090,7 +2090,7 @@ const Vn = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], An = [
|
|
|
2090
2090
|
30,
|
|
2091
2091
|
31
|
|
2092
2092
|
];
|
|
2093
|
-
class Qn extends
|
|
2093
|
+
class Qn extends x {
|
|
2094
2094
|
constructor() {
|
|
2095
2095
|
super(...arguments);
|
|
2096
2096
|
y(this, "priority", 90);
|
|
@@ -2128,7 +2128,7 @@ class Qn extends R {
|
|
|
2128
2128
|
return t.setDate(r), t.setHours(0, 0, 0, 0), t;
|
|
2129
2129
|
}
|
|
2130
2130
|
}
|
|
2131
|
-
class Xn extends
|
|
2131
|
+
class Xn extends x {
|
|
2132
2132
|
constructor() {
|
|
2133
2133
|
super(...arguments);
|
|
2134
2134
|
y(this, "priority", 90);
|
|
@@ -2171,11 +2171,11 @@ class Xn extends R {
|
|
|
2171
2171
|
}
|
|
2172
2172
|
}
|
|
2173
2173
|
function vt(e, a, t) {
|
|
2174
|
-
var w, _, b,
|
|
2175
|
-
const n =
|
|
2174
|
+
var w, _, b, O;
|
|
2175
|
+
const n = ke(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((_ = (w = t == null ? void 0 : t.locale) == null ? void 0 : w.options) == null ? void 0 : _.weekStartsOn) ?? n.weekStartsOn ?? ((O = (b = n.locale) == null ? void 0 : b.options) == null ? void 0 : O.weekStartsOn) ?? 0, s = W(e, t == null ? void 0 : t.in), i = s.getDay(), g = (a % 7 + 7) % 7, p = 7 - r, h = a < 0 || a > 6 ? a - (i + p) % 7 : (g + p) % 7 - (i + p) % 7;
|
|
2176
2176
|
return na(s, h, t);
|
|
2177
2177
|
}
|
|
2178
|
-
class Zn extends
|
|
2178
|
+
class Zn extends x {
|
|
2179
2179
|
constructor() {
|
|
2180
2180
|
super(...arguments);
|
|
2181
2181
|
y(this, "priority", 90);
|
|
@@ -2216,7 +2216,7 @@ class Zn extends R {
|
|
|
2216
2216
|
return t = vt(t, r, s), t.setHours(0, 0, 0, 0), t;
|
|
2217
2217
|
}
|
|
2218
2218
|
}
|
|
2219
|
-
class Jn extends
|
|
2219
|
+
class Jn extends x {
|
|
2220
2220
|
constructor() {
|
|
2221
2221
|
super(...arguments);
|
|
2222
2222
|
y(this, "priority", 90);
|
|
@@ -2287,7 +2287,7 @@ class Jn extends R {
|
|
|
2287
2287
|
return t = vt(t, r, s), t.setHours(0, 0, 0, 0), t;
|
|
2288
2288
|
}
|
|
2289
2289
|
}
|
|
2290
|
-
class Kn extends
|
|
2290
|
+
class Kn extends x {
|
|
2291
2291
|
constructor() {
|
|
2292
2292
|
super(...arguments);
|
|
2293
2293
|
y(this, "priority", 90);
|
|
@@ -2359,10 +2359,10 @@ class Kn extends R {
|
|
|
2359
2359
|
}
|
|
2360
2360
|
}
|
|
2361
2361
|
function er(e, a, t) {
|
|
2362
|
-
const n = W(e, t == null ? void 0 : t.in), r =
|
|
2362
|
+
const n = W(e, t == null ? void 0 : t.in), r = On(n, t), s = a - r;
|
|
2363
2363
|
return na(n, s, t);
|
|
2364
2364
|
}
|
|
2365
|
-
class tr extends
|
|
2365
|
+
class tr extends x {
|
|
2366
2366
|
constructor() {
|
|
2367
2367
|
super(...arguments);
|
|
2368
2368
|
y(this, "priority", 90);
|
|
@@ -2458,7 +2458,7 @@ class tr extends R {
|
|
|
2458
2458
|
return t = er(t, r), t.setHours(0, 0, 0, 0), t;
|
|
2459
2459
|
}
|
|
2460
2460
|
}
|
|
2461
|
-
class ar extends
|
|
2461
|
+
class ar extends x {
|
|
2462
2462
|
constructor() {
|
|
2463
2463
|
super(...arguments);
|
|
2464
2464
|
y(this, "priority", 80);
|
|
@@ -2499,7 +2499,7 @@ class ar extends R {
|
|
|
2499
2499
|
return t.setHours(Tt(r), 0, 0, 0), t;
|
|
2500
2500
|
}
|
|
2501
2501
|
}
|
|
2502
|
-
class nr extends
|
|
2502
|
+
class nr extends x {
|
|
2503
2503
|
constructor() {
|
|
2504
2504
|
super(...arguments);
|
|
2505
2505
|
y(this, "priority", 80);
|
|
@@ -2540,7 +2540,7 @@ class nr extends R {
|
|
|
2540
2540
|
return t.setHours(Tt(r), 0, 0, 0), t;
|
|
2541
2541
|
}
|
|
2542
2542
|
}
|
|
2543
|
-
class rr extends
|
|
2543
|
+
class rr extends x {
|
|
2544
2544
|
constructor() {
|
|
2545
2545
|
super(...arguments);
|
|
2546
2546
|
y(this, "priority", 80);
|
|
@@ -2581,7 +2581,7 @@ class rr extends R {
|
|
|
2581
2581
|
return t.setHours(Tt(r), 0, 0, 0), t;
|
|
2582
2582
|
}
|
|
2583
2583
|
}
|
|
2584
|
-
class sr extends
|
|
2584
|
+
class sr extends x {
|
|
2585
2585
|
constructor() {
|
|
2586
2586
|
super(...arguments);
|
|
2587
2587
|
y(this, "priority", 70);
|
|
@@ -2605,7 +2605,7 @@ class sr extends R {
|
|
|
2605
2605
|
return s && r < 12 ? t.setHours(r + 12, 0, 0, 0) : !s && r === 12 ? t.setHours(0, 0, 0, 0) : t.setHours(r, 0, 0, 0), t;
|
|
2606
2606
|
}
|
|
2607
2607
|
}
|
|
2608
|
-
class or extends
|
|
2608
|
+
class or extends x {
|
|
2609
2609
|
constructor() {
|
|
2610
2610
|
super(...arguments);
|
|
2611
2611
|
y(this, "priority", 70);
|
|
@@ -2628,7 +2628,7 @@ class or extends R {
|
|
|
2628
2628
|
return t.setHours(r, 0, 0, 0), t;
|
|
2629
2629
|
}
|
|
2630
2630
|
}
|
|
2631
|
-
class ir extends
|
|
2631
|
+
class ir extends x {
|
|
2632
2632
|
constructor() {
|
|
2633
2633
|
super(...arguments);
|
|
2634
2634
|
y(this, "priority", 70);
|
|
@@ -2651,7 +2651,7 @@ class ir extends R {
|
|
|
2651
2651
|
return t.getHours() >= 12 && r < 12 ? t.setHours(r + 12, 0, 0, 0) : t.setHours(r, 0, 0, 0), t;
|
|
2652
2652
|
}
|
|
2653
2653
|
}
|
|
2654
|
-
class ur extends
|
|
2654
|
+
class ur extends x {
|
|
2655
2655
|
constructor() {
|
|
2656
2656
|
super(...arguments);
|
|
2657
2657
|
y(this, "priority", 70);
|
|
@@ -2675,7 +2675,7 @@ class ur extends R {
|
|
|
2675
2675
|
return t.setHours(s, 0, 0, 0), t;
|
|
2676
2676
|
}
|
|
2677
2677
|
}
|
|
2678
|
-
class lr extends
|
|
2678
|
+
class lr extends x {
|
|
2679
2679
|
constructor() {
|
|
2680
2680
|
super(...arguments);
|
|
2681
2681
|
y(this, "priority", 60);
|
|
@@ -2698,7 +2698,7 @@ class lr extends R {
|
|
|
2698
2698
|
return t.setMinutes(r, 0, 0), t;
|
|
2699
2699
|
}
|
|
2700
2700
|
}
|
|
2701
|
-
class cr extends
|
|
2701
|
+
class cr extends x {
|
|
2702
2702
|
constructor() {
|
|
2703
2703
|
super(...arguments);
|
|
2704
2704
|
y(this, "priority", 50);
|
|
@@ -2721,7 +2721,7 @@ class cr extends R {
|
|
|
2721
2721
|
return t.setSeconds(r, 0), t;
|
|
2722
2722
|
}
|
|
2723
2723
|
}
|
|
2724
|
-
class dr extends
|
|
2724
|
+
class dr extends x {
|
|
2725
2725
|
constructor() {
|
|
2726
2726
|
super(...arguments);
|
|
2727
2727
|
y(this, "priority", 30);
|
|
@@ -2735,7 +2735,7 @@ class dr extends R {
|
|
|
2735
2735
|
return t.setMilliseconds(r), t;
|
|
2736
2736
|
}
|
|
2737
2737
|
}
|
|
2738
|
-
class mr extends
|
|
2738
|
+
class mr extends x {
|
|
2739
2739
|
constructor() {
|
|
2740
2740
|
super(...arguments);
|
|
2741
2741
|
y(this, "priority", 10);
|
|
@@ -2768,11 +2768,11 @@ class mr extends R {
|
|
|
2768
2768
|
set(t, n, r) {
|
|
2769
2769
|
return n.timestampIsSet ? t : E(
|
|
2770
2770
|
t,
|
|
2771
|
-
t.getTime() -
|
|
2771
|
+
t.getTime() - Ee(t) - r
|
|
2772
2772
|
);
|
|
2773
2773
|
}
|
|
2774
2774
|
}
|
|
2775
|
-
class gr extends
|
|
2775
|
+
class gr extends x {
|
|
2776
2776
|
constructor() {
|
|
2777
2777
|
super(...arguments);
|
|
2778
2778
|
y(this, "priority", 10);
|
|
@@ -2805,11 +2805,11 @@ class gr extends R {
|
|
|
2805
2805
|
set(t, n, r) {
|
|
2806
2806
|
return n.timestampIsSet ? t : E(
|
|
2807
2807
|
t,
|
|
2808
|
-
t.getTime() -
|
|
2808
|
+
t.getTime() - Ee(t) - r
|
|
2809
2809
|
);
|
|
2810
2810
|
}
|
|
2811
2811
|
}
|
|
2812
|
-
class fr extends
|
|
2812
|
+
class fr extends x {
|
|
2813
2813
|
constructor() {
|
|
2814
2814
|
super(...arguments);
|
|
2815
2815
|
y(this, "priority", 40);
|
|
@@ -2822,7 +2822,7 @@ class fr extends R {
|
|
|
2822
2822
|
return [E(t, r * 1e3), { timestampIsSet: !0 }];
|
|
2823
2823
|
}
|
|
2824
2824
|
}
|
|
2825
|
-
class pr extends
|
|
2825
|
+
class pr extends x {
|
|
2826
2826
|
constructor() {
|
|
2827
2827
|
super(...arguments);
|
|
2828
2828
|
y(this, "priority", 20);
|
|
@@ -2875,21 +2875,21 @@ function Dr(e, a, t, n) {
|
|
|
2875
2875
|
weekStartsOn: g,
|
|
2876
2876
|
locale: i
|
|
2877
2877
|
}, h = [new Cn(n == null ? void 0 : n.in, t)], w = a.match(hr).map((T) => {
|
|
2878
|
-
const
|
|
2879
|
-
if (
|
|
2880
|
-
const Y = pt[
|
|
2878
|
+
const R = T[0];
|
|
2879
|
+
if (R in pt) {
|
|
2880
|
+
const Y = pt[R];
|
|
2881
2881
|
return Y(T, i.formatLong);
|
|
2882
2882
|
}
|
|
2883
2883
|
return T;
|
|
2884
2884
|
}).join("").match(yr), _ = [];
|
|
2885
2885
|
for (let T of w) {
|
|
2886
2886
|
ca(T) && bt(T, a, e), la(T) && bt(T, a, e);
|
|
2887
|
-
const
|
|
2887
|
+
const R = T[0], Y = br[R];
|
|
2888
2888
|
if (Y) {
|
|
2889
2889
|
const { incompatibleTokens: le } = Y;
|
|
2890
2890
|
if (Array.isArray(le)) {
|
|
2891
2891
|
const ce = _.find(
|
|
2892
|
-
(de) => le.includes(de.token) || de.token ===
|
|
2892
|
+
(de) => le.includes(de.token) || de.token === R
|
|
2893
2893
|
);
|
|
2894
2894
|
if (ce)
|
|
2895
2895
|
throw new RangeError(
|
|
@@ -2899,7 +2899,7 @@ function Dr(e, a, t, n) {
|
|
|
2899
2899
|
throw new RangeError(
|
|
2900
2900
|
`The format string mustn't contain \`${T}\` and any other token at the same time`
|
|
2901
2901
|
);
|
|
2902
|
-
_.push({ token:
|
|
2902
|
+
_.push({ token: R, fullToken: T });
|
|
2903
2903
|
const se = Y.run(
|
|
2904
2904
|
e,
|
|
2905
2905
|
T,
|
|
@@ -2910,11 +2910,11 @@ function Dr(e, a, t, n) {
|
|
|
2910
2910
|
return r();
|
|
2911
2911
|
h.push(se.setter), e = se.rest;
|
|
2912
2912
|
} else {
|
|
2913
|
-
if (
|
|
2913
|
+
if (R.match(wr))
|
|
2914
2914
|
throw new RangeError(
|
|
2915
|
-
"Format string contains an unescaped latin alphabet character `" +
|
|
2915
|
+
"Format string contains an unescaped latin alphabet character `" + R + "`"
|
|
2916
2916
|
);
|
|
2917
|
-
if (T === "''" ? T = "'" :
|
|
2917
|
+
if (T === "''" ? T = "'" : R === "'" && (T = Pr(T)), e.indexOf(T) === 0)
|
|
2918
2918
|
e = e.slice(T.length);
|
|
2919
2919
|
else
|
|
2920
2920
|
return r();
|
|
@@ -2922,44 +2922,44 @@ function Dr(e, a, t, n) {
|
|
|
2922
2922
|
}
|
|
2923
2923
|
if (e.length > 0 && vr.test(e))
|
|
2924
2924
|
return r();
|
|
2925
|
-
const b = h.map((T) => T.priority).sort((T,
|
|
2926
|
-
(T) => h.filter((
|
|
2925
|
+
const b = h.map((T) => T.priority).sort((T, R) => R - T).filter((T, R, Y) => Y.indexOf(T) === R).map(
|
|
2926
|
+
(T) => h.filter((R) => R.priority === T).sort((R, Y) => Y.subPriority - R.subPriority)
|
|
2927
2927
|
).map((T) => T[0]);
|
|
2928
|
-
let
|
|
2929
|
-
if (isNaN(+
|
|
2928
|
+
let O = W(t, n == null ? void 0 : n.in);
|
|
2929
|
+
if (isNaN(+O)) return r();
|
|
2930
2930
|
const C = {};
|
|
2931
2931
|
for (const T of b) {
|
|
2932
|
-
if (!T.validate(
|
|
2932
|
+
if (!T.validate(O, p))
|
|
2933
2933
|
return r();
|
|
2934
|
-
const
|
|
2935
|
-
Array.isArray(
|
|
2934
|
+
const R = T.set(O, C, p);
|
|
2935
|
+
Array.isArray(R) ? (O = R[0], Object.assign(C, R[1])) : O = R;
|
|
2936
2936
|
}
|
|
2937
|
-
return
|
|
2937
|
+
return O;
|
|
2938
2938
|
}
|
|
2939
2939
|
function Pr(e) {
|
|
2940
2940
|
return e.match(_r)[1].replace(Tr, "'");
|
|
2941
2941
|
}
|
|
2942
2942
|
function Ct(e, a, t) {
|
|
2943
|
-
const n = da(), r =
|
|
2944
|
-
return "formatToParts" in r ?
|
|
2943
|
+
const n = da(), r = kr(e, t.timeZone, t.locale ?? n.locale);
|
|
2944
|
+
return "formatToParts" in r ? xr(r, a) : Rr(r, a);
|
|
2945
2945
|
}
|
|
2946
|
-
function
|
|
2946
|
+
function xr(e, a) {
|
|
2947
2947
|
const t = e.formatToParts(a);
|
|
2948
2948
|
for (let n = t.length - 1; n >= 0; --n)
|
|
2949
2949
|
if (t[n].type === "timeZoneName")
|
|
2950
2950
|
return t[n].value;
|
|
2951
2951
|
}
|
|
2952
|
-
function
|
|
2952
|
+
function Rr(e, a) {
|
|
2953
2953
|
const t = e.format(a).replace(/\u200E/g, ""), n = / [\w-+ ]+$/.exec(t);
|
|
2954
2954
|
return n ? n[0].substr(1) : "";
|
|
2955
2955
|
}
|
|
2956
|
-
function
|
|
2956
|
+
function kr(e, a, t) {
|
|
2957
2957
|
return new Intl.DateTimeFormat(t ? [t.code, "en-US"] : void 0, {
|
|
2958
2958
|
timeZone: a,
|
|
2959
2959
|
timeZoneName: e
|
|
2960
2960
|
});
|
|
2961
2961
|
}
|
|
2962
|
-
function
|
|
2962
|
+
function Or(e, a) {
|
|
2963
2963
|
const t = Cr(a);
|
|
2964
2964
|
return "formatToParts" in t ? Sr(t, e) : Ir(t, e);
|
|
2965
2965
|
}
|
|
@@ -3036,7 +3036,7 @@ const Lt = 36e5, Nr = 6e4, ut = {
|
|
|
3036
3036
|
timezoneHH: /^([+-]\d{2})$/,
|
|
3037
3037
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
3038
3038
|
};
|
|
3039
|
-
function
|
|
3039
|
+
function Ve(e, a, t) {
|
|
3040
3040
|
if (!e)
|
|
3041
3041
|
return 0;
|
|
3042
3042
|
let n = ut.timezoneZ.exec(e);
|
|
@@ -3061,7 +3061,7 @@ function Lr(e) {
|
|
|
3061
3061
|
return wt(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
|
|
3062
3062
|
}
|
|
3063
3063
|
function yt(e, a) {
|
|
3064
|
-
const t =
|
|
3064
|
+
const t = Or(e, a), n = wt(t[0], t[1] - 1, t[2], t[3] % 24, t[4], t[5], 0).getTime();
|
|
3065
3065
|
let r = e.getTime();
|
|
3066
3066
|
const s = r % 1e3;
|
|
3067
3067
|
return r -= s >= 0 ? s : 1e3 + s, n - r;
|
|
@@ -3103,7 +3103,7 @@ const zr = 60 * 1e3, Wr = {
|
|
|
3103
3103
|
// so this token always has the same output as `XX`
|
|
3104
3104
|
case "XXXX":
|
|
3105
3105
|
case "XX":
|
|
3106
|
-
return
|
|
3106
|
+
return De(n);
|
|
3107
3107
|
// Hours, minutes and optional seconds with `:` delimeter
|
|
3108
3108
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
3109
3109
|
// so this token always has the same output as `XXX`
|
|
@@ -3111,7 +3111,7 @@ const zr = 60 * 1e3, Wr = {
|
|
|
3111
3111
|
case "XXX":
|
|
3112
3112
|
// Hours and minutes with `:` delimeter
|
|
3113
3113
|
default:
|
|
3114
|
-
return
|
|
3114
|
+
return De(n, ":");
|
|
3115
3115
|
}
|
|
3116
3116
|
},
|
|
3117
3117
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
@@ -3126,7 +3126,7 @@ const zr = 60 * 1e3, Wr = {
|
|
|
3126
3126
|
// so this token always has the same output as `xx`
|
|
3127
3127
|
case "xxxx":
|
|
3128
3128
|
case "xx":
|
|
3129
|
-
return
|
|
3129
|
+
return De(n);
|
|
3130
3130
|
// Hours, minutes and optional seconds with `:` delimeter
|
|
3131
3131
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
3132
3132
|
// so this token always has the same output as `xxx`
|
|
@@ -3134,7 +3134,7 @@ const zr = 60 * 1e3, Wr = {
|
|
|
3134
3134
|
case "xxx":
|
|
3135
3135
|
// Hours and minutes with `:` delimeter
|
|
3136
3136
|
default:
|
|
3137
|
-
return
|
|
3137
|
+
return De(n, ":");
|
|
3138
3138
|
}
|
|
3139
3139
|
},
|
|
3140
3140
|
// Timezone (GMT)
|
|
@@ -3149,7 +3149,7 @@ const zr = 60 * 1e3, Wr = {
|
|
|
3149
3149
|
// Long
|
|
3150
3150
|
case "OOOO":
|
|
3151
3151
|
default:
|
|
3152
|
-
return "GMT" +
|
|
3152
|
+
return "GMT" + De(n, ":");
|
|
3153
3153
|
}
|
|
3154
3154
|
},
|
|
3155
3155
|
// Timezone (specific non-location)
|
|
@@ -3168,28 +3168,28 @@ const zr = 60 * 1e3, Wr = {
|
|
|
3168
3168
|
}
|
|
3169
3169
|
};
|
|
3170
3170
|
function lt(e, a) {
|
|
3171
|
-
const t = e ?
|
|
3171
|
+
const t = e ? Ve(e, a, !0) / zr : (a == null ? void 0 : a.getTimezoneOffset()) ?? 0;
|
|
3172
3172
|
if (Number.isNaN(t))
|
|
3173
3173
|
throw new RangeError("Invalid time zone specified: " + e);
|
|
3174
3174
|
return t;
|
|
3175
3175
|
}
|
|
3176
|
-
function
|
|
3176
|
+
function qe(e, a) {
|
|
3177
3177
|
const t = e < 0 ? "-" : "";
|
|
3178
3178
|
let n = Math.abs(e).toString();
|
|
3179
3179
|
for (; n.length < a; )
|
|
3180
3180
|
n = "0" + n;
|
|
3181
3181
|
return t + n;
|
|
3182
3182
|
}
|
|
3183
|
-
function
|
|
3184
|
-
const t = e > 0 ? "-" : "+", n = Math.abs(e), r =
|
|
3183
|
+
function De(e, a = "") {
|
|
3184
|
+
const t = e > 0 ? "-" : "+", n = Math.abs(e), r = qe(Math.floor(n / 60), 2), s = qe(Math.floor(n % 60), 2);
|
|
3185
3185
|
return t + r + a + s;
|
|
3186
3186
|
}
|
|
3187
3187
|
function zt(e, a) {
|
|
3188
|
-
return e % 60 === 0 ? (e > 0 ? "-" : "+") +
|
|
3188
|
+
return e % 60 === 0 ? (e > 0 ? "-" : "+") + qe(Math.abs(e) / 60, 2) : De(e, a);
|
|
3189
3189
|
}
|
|
3190
3190
|
function Er(e, a = "") {
|
|
3191
3191
|
const t = e > 0 ? "-" : "+", n = Math.abs(e), r = Math.floor(n / 60), s = n % 60;
|
|
3192
|
-
return s === 0 ? t + String(r) : t + String(r) + a +
|
|
3192
|
+
return s === 0 ? t + String(r) : t + String(r) + a + qe(s, 2);
|
|
3193
3193
|
}
|
|
3194
3194
|
function Wt(e) {
|
|
3195
3195
|
const a = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
|
|
@@ -3229,7 +3229,7 @@ const ba = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)
|
|
|
3229
3229
|
// time zone tokens (to identify the presence of a tz)
|
|
3230
3230
|
timeZone: ba
|
|
3231
3231
|
};
|
|
3232
|
-
function
|
|
3232
|
+
function He(e, a = {}) {
|
|
3233
3233
|
if (arguments.length < 1)
|
|
3234
3234
|
throw new TypeError("1 argument required, but only " + arguments.length + " present");
|
|
3235
3235
|
if (e === null)
|
|
@@ -3252,7 +3252,7 @@ function Ve(e, a = {}) {
|
|
|
3252
3252
|
if (n.time && (g = Ur(n.time), g === null || isNaN(g)))
|
|
3253
3253
|
return /* @__PURE__ */ new Date(NaN);
|
|
3254
3254
|
if (n.timeZone || a.timeZone) {
|
|
3255
|
-
if (p =
|
|
3255
|
+
if (p = Ve(n.timeZone || a.timeZone, new Date(d + g)), isNaN(p))
|
|
3256
3256
|
return /* @__PURE__ */ new Date(NaN);
|
|
3257
3257
|
} else
|
|
3258
3258
|
p = Wt(new Date(d + g)), p = Wt(new Date(d + g + p));
|
|
@@ -3373,7 +3373,7 @@ function Xr(e, a, t = {}) {
|
|
|
3373
3373
|
a = String(a);
|
|
3374
3374
|
const n = a.match(Qr);
|
|
3375
3375
|
if (n) {
|
|
3376
|
-
const r =
|
|
3376
|
+
const r = He(t.originalDate || e, t);
|
|
3377
3377
|
a = n.reduce(function(s, i) {
|
|
3378
3378
|
if (i[0] === "'")
|
|
3379
3379
|
return s;
|
|
@@ -3381,18 +3381,18 @@ function Xr(e, a, t = {}) {
|
|
|
3381
3381
|
return g ? p.substring(0, d - 1) + p.substring(d + 1) : p;
|
|
3382
3382
|
}, a);
|
|
3383
3383
|
}
|
|
3384
|
-
return
|
|
3384
|
+
return Rn(e, a, t);
|
|
3385
3385
|
}
|
|
3386
3386
|
function Zr(e, a, t) {
|
|
3387
|
-
e =
|
|
3388
|
-
const n =
|
|
3387
|
+
e = He(e, t);
|
|
3388
|
+
const n = Ve(a, e, !0), r = new Date(e.getTime() - n), s = /* @__PURE__ */ new Date(0);
|
|
3389
3389
|
return s.setFullYear(r.getUTCFullYear(), r.getUTCMonth(), r.getUTCDate()), s.setHours(r.getUTCHours(), r.getUTCMinutes(), r.getUTCSeconds(), r.getUTCMilliseconds()), s;
|
|
3390
3390
|
}
|
|
3391
3391
|
function Jr(e, a, t) {
|
|
3392
3392
|
if (typeof e == "string" && !e.match(ba))
|
|
3393
|
-
return
|
|
3394
|
-
e =
|
|
3395
|
-
const n = wt(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), r =
|
|
3393
|
+
return He(e, { ...t, timeZone: a });
|
|
3394
|
+
e = He(e, t);
|
|
3395
|
+
const n = wt(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), r = Ve(a, new Date(n));
|
|
3396
3396
|
return new Date(n + r);
|
|
3397
3397
|
}
|
|
3398
3398
|
const Kr = (e) => new TextEncoder().encode(e), es = (e) => {
|
|
@@ -3404,15 +3404,15 @@ const Kr = (e) => new TextEncoder().encode(e), es = (e) => {
|
|
|
3404
3404
|
}, ue = (e) => {
|
|
3405
3405
|
const { timezone: a } = ht(), t = 24 - a, n = (/* @__PURE__ */ new Date()).getTimezoneOffset() / 60, r = t - n;
|
|
3406
3406
|
return e.setDate(a < 0 ? e.getDate() - 1 : e.getDate()), e.setHours(r), e;
|
|
3407
|
-
},
|
|
3407
|
+
}, Ae = (e) => {
|
|
3408
3408
|
const a = /* @__PURE__ */ new Date(), t = a.getFullYear(), n = a.getMonth();
|
|
3409
3409
|
return ue(
|
|
3410
3410
|
new Date(n - 1 < 0 ? t - 1 : t, n - 1 < 0 ? 12 : n - 1, e)
|
|
3411
3411
|
);
|
|
3412
|
-
},
|
|
3412
|
+
}, Qe = (e) => {
|
|
3413
3413
|
const a = /* @__PURE__ */ new Date(), t = a.getFullYear(), n = a.getMonth();
|
|
3414
3414
|
return ue(new Date(t, n, e));
|
|
3415
|
-
},
|
|
3415
|
+
}, Xe = (e) => {
|
|
3416
3416
|
const a = /* @__PURE__ */ new Date(), t = a.getFullYear(), n = a.getMonth();
|
|
3417
3417
|
return ue(
|
|
3418
3418
|
new Date(n + 1 > 12 ? t + 1 : t, n + 1 > 12 ? 1 : n + 1, e)
|
|
@@ -3435,7 +3435,7 @@ const Kr = (e) => new TextEncoder().encode(e), es = (e) => {
|
|
|
3435
3435
|
}, os = () => {
|
|
3436
3436
|
const e = /* @__PURE__ */ new Date();
|
|
3437
3437
|
return e.setDate(e.getDate() + 1), e.setHours(12, 0, 0, 0), ue(e);
|
|
3438
|
-
},
|
|
3438
|
+
}, Oe = (e, a, t) => {
|
|
3439
3439
|
const n = /* @__PURE__ */ new Date(), r = e.getTime() - a.getTime(), s = t.getTime() - e.getTime();
|
|
3440
3440
|
let i = 0, d = 0, g = 0;
|
|
3441
3441
|
return n.getTime() > e.getTime() ? (i = t.getTime() - n.getTime(), d = n.getTime() - e.getTime(), g = Math.min(
|
|
@@ -3449,17 +3449,17 @@ const Kr = (e) => new TextEncoder().encode(e), es = (e) => {
|
|
|
3449
3449
|
percentage: g
|
|
3450
3450
|
};
|
|
3451
3451
|
}, is = () => {
|
|
3452
|
-
const { remainingTime: e, percentage: a } =
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3452
|
+
const { remainingTime: e, percentage: a } = Oe(
|
|
3453
|
+
Qe(1),
|
|
3454
|
+
Ae(1),
|
|
3455
|
+
Xe(1)
|
|
3456
3456
|
);
|
|
3457
3457
|
return {
|
|
3458
3458
|
monthRemainingTime: e,
|
|
3459
3459
|
monthProgressPercentage: a
|
|
3460
3460
|
};
|
|
3461
3461
|
}, us = () => {
|
|
3462
|
-
const { remainingTime: e, percentage: a } =
|
|
3462
|
+
const { remainingTime: e, percentage: a } = Oe(
|
|
3463
3463
|
as(),
|
|
3464
3464
|
ts(),
|
|
3465
3465
|
ns()
|
|
@@ -3469,7 +3469,7 @@ const Kr = (e) => new TextEncoder().encode(e), es = (e) => {
|
|
|
3469
3469
|
weekProgressPercentage: a
|
|
3470
3470
|
};
|
|
3471
3471
|
}, ls = () => {
|
|
3472
|
-
const { remainingTime: e, percentage: a } =
|
|
3472
|
+
const { remainingTime: e, percentage: a } = Oe(
|
|
3473
3473
|
ss(),
|
|
3474
3474
|
rs(),
|
|
3475
3475
|
os()
|
|
@@ -3479,36 +3479,36 @@ const Kr = (e) => new TextEncoder().encode(e), es = (e) => {
|
|
|
3479
3479
|
dayProgressPercentage: a
|
|
3480
3480
|
};
|
|
3481
3481
|
}, cs = () => {
|
|
3482
|
-
const { remainingTime: e, percentage: a } =
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3482
|
+
const { remainingTime: e, percentage: a } = Oe(
|
|
3483
|
+
Qe(5),
|
|
3484
|
+
Ae(5),
|
|
3485
|
+
Xe(5)
|
|
3486
3486
|
);
|
|
3487
3487
|
return {
|
|
3488
3488
|
remainingTimeTo5th: e,
|
|
3489
3489
|
progressPercentageTo5th: a
|
|
3490
3490
|
};
|
|
3491
3491
|
}, ds = () => {
|
|
3492
|
-
const { remainingTime: e, percentage: a } =
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3492
|
+
const { remainingTime: e, percentage: a } = Oe(
|
|
3493
|
+
Qe(10),
|
|
3494
|
+
Ae(10),
|
|
3495
|
+
Xe(10)
|
|
3496
3496
|
);
|
|
3497
3497
|
return {
|
|
3498
3498
|
remainingTimeTo10th: e,
|
|
3499
3499
|
progressPercentageTo10th: a
|
|
3500
3500
|
};
|
|
3501
3501
|
}, ms = () => {
|
|
3502
|
-
const { remainingTime: e, percentage: a } =
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3502
|
+
const { remainingTime: e, percentage: a } = Oe(
|
|
3503
|
+
Qe(20),
|
|
3504
|
+
Ae(20),
|
|
3505
|
+
Xe(20)
|
|
3506
3506
|
);
|
|
3507
3507
|
return {
|
|
3508
3508
|
remainingTimeTo20th: e,
|
|
3509
3509
|
progressPercentageTo20th: a
|
|
3510
3510
|
};
|
|
3511
|
-
}, gs = () => Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
3511
|
+
}, gs = () => Intl.DateTimeFormat().resolvedOptions().timeZone, Be = (e) => {
|
|
3512
3512
|
try {
|
|
3513
3513
|
const { timezone: a } = ht(), t = `Etc/GMT${a > 0 ? `-${a}` : `+${Math.abs(a)}`}`, n = Dr(e, "yyyy-MM-dd HH:mm:ss", /* @__PURE__ */ new Date());
|
|
3514
3514
|
if (isNaN(n.getTime()))
|
|
@@ -3523,7 +3523,7 @@ const Kr = (e) => new TextEncoder().encode(e), es = (e) => {
|
|
|
3523
3523
|
return `${r}-${s}-${i} ${d}:${g}:${p}`;
|
|
3524
3524
|
}, fs = () => Date.now(), ps = (e) => new Date(e).getTime(), Bt = (e, a = 0) => {
|
|
3525
3525
|
const t = fs(), n = ps(
|
|
3526
|
-
ha(
|
|
3526
|
+
ha(Be(e))
|
|
3527
3527
|
);
|
|
3528
3528
|
if (t > n) {
|
|
3529
3529
|
const r = n + a * 60 * 1e3;
|
|
@@ -3535,7 +3535,7 @@ const Kr = (e) => new TextEncoder().encode(e), es = (e) => {
|
|
|
3535
3535
|
return `${e || ""}`;
|
|
3536
3536
|
const t = `0${a ? "." + "0".repeat(a) : ""}`, n = parseFloat(e);
|
|
3537
3537
|
return isNaN(n) || typeof e == "string" && /[^\d.,]/.test(e) ? `${t}` : `${n.toFixed(a).replace(/\B(?=(\d{3})+(?!\d))/g, ",")}`;
|
|
3538
|
-
},
|
|
3538
|
+
}, Re = (e, a, t) => {
|
|
3539
3539
|
const n = [
|
|
3540
3540
|
42563,
|
|
3541
3541
|
42564,
|
|
@@ -3564,7 +3564,7 @@ var ie = /* @__PURE__ */ ((e) => (e.default = "default", e.pay = "pay", e.auto =
|
|
|
3564
3564
|
const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3565
3565
|
__proto__: null,
|
|
3566
3566
|
PaymentType: ie
|
|
3567
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3567
|
+
}, Symbol.toStringTag, { value: "Module" })), Ze = {
|
|
3568
3568
|
depositBank: !1,
|
|
3569
3569
|
depositDateTime: !1,
|
|
3570
3570
|
depositDetail: !1,
|
|
@@ -3578,7 +3578,7 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3578
3578
|
type: ie.unknown,
|
|
3579
3579
|
promo: [],
|
|
3580
3580
|
bank: [],
|
|
3581
|
-
requiredField:
|
|
3581
|
+
requiredField: Ze,
|
|
3582
3582
|
hintMsg: ""
|
|
3583
3583
|
}, hs = (e) => {
|
|
3584
3584
|
var a;
|
|
@@ -3628,7 +3628,7 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3628
3628
|
paymentList: n
|
|
3629
3629
|
};
|
|
3630
3630
|
})) ?? [];
|
|
3631
|
-
},
|
|
3631
|
+
}, Je = (e) => {
|
|
3632
3632
|
const a = {
|
|
3633
3633
|
id: -1,
|
|
3634
3634
|
name: "excludePromo",
|
|
@@ -3643,7 +3643,7 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3643
3643
|
dailyBonus: n.dtype === "5" && n.type === "D"
|
|
3644
3644
|
}));
|
|
3645
3645
|
return [a, ...t];
|
|
3646
|
-
},
|
|
3646
|
+
}, Fe = (e, a, t, n) => {
|
|
3647
3647
|
let r, s;
|
|
3648
3648
|
return t > 0 ? r = e > 0 ? Math.max(t, e) : t : r = Math.max(e, 0), n > 0 ? s = a > 0 ? Math.min(n, a) : n : s = Math.max(a, 0), { amountList: ["50", "100", "300", "500"], minAmount: r, maxAmount: s };
|
|
3649
3649
|
}, Ut = (e, a, t) => {
|
|
@@ -3654,9 +3654,9 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3654
3654
|
name: "manualMethod",
|
|
3655
3655
|
pathName: e,
|
|
3656
3656
|
type: n,
|
|
3657
|
-
promo:
|
|
3657
|
+
promo: Je(a.promo),
|
|
3658
3658
|
bank: a.bank.map((s) => {
|
|
3659
|
-
const i = s.list && s.list.length > 0 ? s.list[0].mintransaction ?? "0.00" : "0.00", d = s.list && s.list.length > 0 ? s.list[0].maxtransaction ?? "0.00" : "0.00", { amountList: g, minAmount: p, maxAmount: h } =
|
|
3659
|
+
const i = s.list && s.list.length > 0 ? s.list[0].mintransaction ?? "0.00" : "0.00", d = s.list && s.list.length > 0 ? s.list[0].maxtransaction ?? "0.00" : "0.00", { amountList: g, minAmount: p, maxAmount: h } = Fe(
|
|
3660
3660
|
Number(i),
|
|
3661
3661
|
Number(d),
|
|
3662
3662
|
t.mdBankLevelDetail.deposit_min,
|
|
@@ -3692,13 +3692,13 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3692
3692
|
name: "onlineBankingMethod",
|
|
3693
3693
|
pathName: e,
|
|
3694
3694
|
type: n,
|
|
3695
|
-
promo:
|
|
3695
|
+
promo: Je(a.promo),
|
|
3696
3696
|
bank: a.banklist.map((s) => {
|
|
3697
3697
|
let i = "0.00", d = "0.00";
|
|
3698
3698
|
const g = s.bankindex ?? 0;
|
|
3699
3699
|
for (let C = 0; C < t.mdGatewayMinMax.length; C++)
|
|
3700
3700
|
t.mdGatewayMinMax[C].bankindex == g.toString() && (i = t.mdGatewayMinMax[C].min, d = t.mdGatewayMinMax[C].max);
|
|
3701
|
-
const { amountList: p, minAmount: h, maxAmount: w } =
|
|
3701
|
+
const { amountList: p, minAmount: h, maxAmount: w } = Fe(
|
|
3702
3702
|
Number(i),
|
|
3703
3703
|
Number(d),
|
|
3704
3704
|
t.mdBankLevelDetail.onlinepayment_min,
|
|
@@ -3710,7 +3710,7 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3710
3710
|
min: h,
|
|
3711
3711
|
max: w
|
|
3712
3712
|
}, b = s.pg.map((C) => {
|
|
3713
|
-
const V = C.mintransaction ?? "0.00", A = C.maxtransaction ?? "0.00", { amountList: I, minAmount: M, maxAmount: T } =
|
|
3713
|
+
const V = C.mintransaction ?? "0.00", A = C.maxtransaction ?? "0.00", { amountList: I, minAmount: M, maxAmount: T } = Fe(
|
|
3714
3714
|
Number(V),
|
|
3715
3715
|
Number(A),
|
|
3716
3716
|
t.mdBankLevelDetail.onlinepayment_min,
|
|
@@ -3733,7 +3733,7 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3733
3733
|
gateway: [_, ...b]
|
|
3734
3734
|
};
|
|
3735
3735
|
}),
|
|
3736
|
-
requiredField:
|
|
3736
|
+
requiredField: Ze,
|
|
3737
3737
|
hintMsg: ""
|
|
3738
3738
|
};
|
|
3739
3739
|
}, Ts = (e, a, t, n) => {
|
|
@@ -3743,7 +3743,7 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3743
3743
|
const i = n.mdGatewayMinMax ?? [];
|
|
3744
3744
|
if (t.bank.length > 0 && n.mdPGSelection === "1")
|
|
3745
3745
|
s = t.bank.map((g) => {
|
|
3746
|
-
const { amountList: p, minAmount: h, maxAmount: w } =
|
|
3746
|
+
const { amountList: p, minAmount: h, maxAmount: w } = Fe(
|
|
3747
3747
|
g.mintransaction ?? 0,
|
|
3748
3748
|
g.maxtransaction ?? 0,
|
|
3749
3749
|
n.mdBankLevelDetail.onlinepayment_min,
|
|
@@ -3759,9 +3759,9 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3759
3759
|
});
|
|
3760
3760
|
else {
|
|
3761
3761
|
let g = "0.00", p = "0.00";
|
|
3762
|
-
for (let
|
|
3763
|
-
i[
|
|
3764
|
-
const { amountList: h, minAmount: w, maxAmount: _ } =
|
|
3762
|
+
for (let O = 0; O < i.length; O++)
|
|
3763
|
+
i[O].bankindex === a.toString() && (g = i[O].min, p = i[O].max);
|
|
3764
|
+
const { amountList: h, minAmount: w, maxAmount: _ } = Fe(
|
|
3765
3765
|
Number(g),
|
|
3766
3766
|
Number(p),
|
|
3767
3767
|
n.mdBankLevelDetail.onlinepayment_min,
|
|
@@ -3780,9 +3780,9 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3780
3780
|
name: "autoMethod",
|
|
3781
3781
|
pathName: e,
|
|
3782
3782
|
type: r,
|
|
3783
|
-
promo:
|
|
3783
|
+
promo: Je(t.promo),
|
|
3784
3784
|
bank: s,
|
|
3785
|
-
requiredField:
|
|
3785
|
+
requiredField: Ze,
|
|
3786
3786
|
hintMsg: ""
|
|
3787
3787
|
};
|
|
3788
3788
|
}, vs = (e, a, t) => {
|
|
@@ -3792,7 +3792,7 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3792
3792
|
name: "fixAmountMethod",
|
|
3793
3793
|
pathName: e,
|
|
3794
3794
|
type: n,
|
|
3795
|
-
promo:
|
|
3795
|
+
promo: Je(t.promo),
|
|
3796
3796
|
bank: t.bank.map((s) => {
|
|
3797
3797
|
const i = s.amtlist.map(Number).sort((g, p) => g - p);
|
|
3798
3798
|
return {
|
|
@@ -3803,7 +3803,7 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3803
3803
|
max: i.length > 0 ? i[i.length - 1] : 0
|
|
3804
3804
|
};
|
|
3805
3805
|
}),
|
|
3806
|
-
requiredField:
|
|
3806
|
+
requiredField: Ze,
|
|
3807
3807
|
hintMsg: ""
|
|
3808
3808
|
};
|
|
3809
3809
|
}, ws = (e) => (e == null ? void 0 : e.map((a) => ({
|
|
@@ -3840,7 +3840,7 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3840
3840
|
trial: (h.flag & 4) > 0,
|
|
3841
3841
|
new: (h.flag & 8) > 0
|
|
3842
3842
|
},
|
|
3843
|
-
imageUrl: `${e.mdDomains[h.mdDomains_id]}${
|
|
3843
|
+
imageUrl: `${e.mdDomains[h.mdDomains_id]}${Re(h.img, h.id_GameMaster, `?ts=${h.filemtime}`)}`,
|
|
3844
3844
|
logoUrl: `/image/platform_logo/${h.img.split("/").pop()}?v=1`,
|
|
3845
3845
|
rate: "0.00",
|
|
3846
3846
|
jackpotAmount: ""
|
|
@@ -3861,7 +3861,7 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3861
3861
|
trial: (d.flag ?? 0) > 0,
|
|
3862
3862
|
new: (d.flag ?? 0) > 0
|
|
3863
3863
|
},
|
|
3864
|
-
imageUrl: e.mdDomains && e.mdDomains.length > 0 ? `${e.mdDomains[d.mdDomains_id ?? 0]}${
|
|
3864
|
+
imageUrl: e.mdDomains && e.mdDomains.length > 0 ? `${e.mdDomains[d.mdDomains_id ?? 0]}${Re(d.img ?? "", d.id ?? 0, `?ts=${d.filemtime}`)}` : "",
|
|
3865
3865
|
logoUrl: d.img ? `/image/platform_logo/${d.img.split("/").pop()}?v=1` : "",
|
|
3866
3866
|
rate: "0.00",
|
|
3867
3867
|
jackpotAmount: d.jackpotAmount ?? ""
|
|
@@ -3869,9 +3869,9 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3869
3869
|
},
|
|
3870
3870
|
trialGameList: []
|
|
3871
3871
|
};
|
|
3872
|
-
},
|
|
3872
|
+
}, xs = (e) => ({
|
|
3873
3873
|
list: e.mdGrade.map((a) => {
|
|
3874
|
-
var t, n, r, s, i, d, g, p, h, w, _, b,
|
|
3874
|
+
var t, n, r, s, i, d, g, p, h, w, _, b, O, C, V, A, I, M, T, R, Y, le, se, ce, de, Me, Se, te, Ge, Ke, et, tt, at, nt, Ie, Te, rt, ve, st, ze, We, o, m, v, u, l, D, z, U, X, N, K, q, Z, H, J, Q, me, pe, je, be, Ce, f, Rt;
|
|
3875
3875
|
return {
|
|
3876
3876
|
id: a.gradeindex,
|
|
3877
3877
|
is_current_level: !1,
|
|
@@ -3907,33 +3907,33 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3907
3907
|
isShow: !0,
|
|
3908
3908
|
bonus: P(((w = (h = a.benefit) == null ? void 0 : h.monthly) == null ? void 0 : w.bonus) ?? "0"),
|
|
3909
3909
|
bonus_name: ((b = (_ = a.benefit) == null ? void 0 : _.monthly) == null ? void 0 : b.bonus_name) ?? "",
|
|
3910
|
-
turnover: P(((C = (
|
|
3910
|
+
turnover: P(((C = (O = a.benefit) == null ? void 0 : O.monthly) == null ? void 0 : C.turnover) ?? "0"),
|
|
3911
3911
|
turnover_name: ((A = (V = a.benefit) == null ? void 0 : V.monthly) == null ? void 0 : A.turnover_name) ?? ""
|
|
3912
3912
|
},
|
|
3913
3913
|
weekly: {
|
|
3914
3914
|
isShow: !0,
|
|
3915
3915
|
bonus: P(((M = (I = a.benefit) == null ? void 0 : I.weekly) == null ? void 0 : M.bonus) ?? "0"),
|
|
3916
|
-
bonus_name: ((
|
|
3916
|
+
bonus_name: ((R = (T = a.benefit) == null ? void 0 : T.weekly) == null ? void 0 : R.bonus_name) ?? "",
|
|
3917
3917
|
turnover: P(((le = (Y = a.benefit) == null ? void 0 : Y.weekly) == null ? void 0 : le.turnover) ?? "0"),
|
|
3918
3918
|
turnover_name: ((ce = (se = a.benefit) == null ? void 0 : se.weekly) == null ? void 0 : ce.turnover_name) ?? ""
|
|
3919
3919
|
},
|
|
3920
3920
|
upgrade: {
|
|
3921
3921
|
isShow: !0,
|
|
3922
|
-
bonus: P(((
|
|
3923
|
-
bonus_name: ((te = (
|
|
3924
|
-
turnover: P(((
|
|
3925
|
-
turnover_name: ((
|
|
3922
|
+
bonus: P(((Me = (de = a.benefit) == null ? void 0 : de.upgrade) == null ? void 0 : Me.bonus) ?? "0"),
|
|
3923
|
+
bonus_name: ((te = (Se = a.benefit) == null ? void 0 : Se.upgrade) == null ? void 0 : te.bonus_name) ?? "",
|
|
3924
|
+
turnover: P(((Ke = (Ge = a.benefit) == null ? void 0 : Ge.upgrade) == null ? void 0 : Ke.turnover) ?? "0"),
|
|
3925
|
+
turnover_name: ((tt = (et = a.benefit) == null ? void 0 : et.upgrade) == null ? void 0 : tt.turnover_name) ?? ""
|
|
3926
3926
|
},
|
|
3927
3927
|
birthday: {
|
|
3928
3928
|
isShow: !0,
|
|
3929
|
-
bonus: P(((
|
|
3930
|
-
bonus_name: ((
|
|
3931
|
-
turnover: P(((
|
|
3932
|
-
turnover_name: ((
|
|
3929
|
+
bonus: P(((nt = (at = a.benefit) == null ? void 0 : at.birthday) == null ? void 0 : nt.bonus) ?? "0"),
|
|
3930
|
+
bonus_name: ((Te = (Ie = a.benefit) == null ? void 0 : Ie.birthday) == null ? void 0 : Te.bonus_name) ?? "",
|
|
3931
|
+
turnover: P(((ve = (rt = a.benefit) == null ? void 0 : rt.birthday) == null ? void 0 : ve.turnover) ?? "0"),
|
|
3932
|
+
turnover_name: ((ze = (st = a.benefit) == null ? void 0 : st.birthday) == null ? void 0 : ze.turnover_name) ?? ""
|
|
3933
3933
|
},
|
|
3934
3934
|
salary_1st: {
|
|
3935
3935
|
isShow: !0,
|
|
3936
|
-
bonus: P(((o = (
|
|
3936
|
+
bonus: P(((o = (We = a.benefit) == null ? void 0 : We.salary_1st) == null ? void 0 : o.bonus) ?? "0"),
|
|
3937
3937
|
bonus_name: ((v = (m = a.benefit) == null ? void 0 : m.salary_1st) == null ? void 0 : v.bonus_name) ?? "",
|
|
3938
3938
|
turnover: P(((l = (u = a.benefit) == null ? void 0 : u.salary_1st) == null ? void 0 : l.turnover) ?? "0"),
|
|
3939
3939
|
turnover_name: ((z = (D = a.benefit) == null ? void 0 : D.salary_1st) == null ? void 0 : z.turnover_name) ?? ""
|
|
@@ -3948,9 +3948,9 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3948
3948
|
salary_20th: {
|
|
3949
3949
|
isShow: !0,
|
|
3950
3950
|
bonus: P(((me = (Q = a.benefit) == null ? void 0 : Q.salary_20th) == null ? void 0 : me.bonus) ?? "0"),
|
|
3951
|
-
bonus_name: ((
|
|
3952
|
-
turnover: P(((
|
|
3953
|
-
turnover_name: ((
|
|
3951
|
+
bonus_name: ((je = (pe = a.benefit) == null ? void 0 : pe.salary_20th) == null ? void 0 : je.bonus_name) ?? "",
|
|
3952
|
+
turnover: P(((Ce = (be = a.benefit) == null ? void 0 : be.salary_20th) == null ? void 0 : Ce.turnover) ?? "0"),
|
|
3953
|
+
turnover_name: ((Rt = (f = a.benefit) == null ? void 0 : f.salary_20th) == null ? void 0 : Rt.turnover_name) ?? ""
|
|
3954
3954
|
}
|
|
3955
3955
|
}
|
|
3956
3956
|
};
|
|
@@ -4053,7 +4053,7 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4053
4053
|
title: a.title,
|
|
4054
4054
|
content: a.content
|
|
4055
4055
|
})) ?? []
|
|
4056
|
-
}),
|
|
4056
|
+
}), Rs = (e) => ({
|
|
4057
4057
|
category: e.category.map((a) => ({
|
|
4058
4058
|
id: a.catid,
|
|
4059
4059
|
name: a.name
|
|
@@ -4072,7 +4072,7 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4072
4072
|
amountDisplay: ((r = a.promo_cash) == null ? void 0 : r.display) ?? ""
|
|
4073
4073
|
};
|
|
4074
4074
|
}).sort((a, t) => a.claimable && !t.claimable ? -1 : !a.claimable && t.claimable ? 1 : 0)
|
|
4075
|
-
}),
|
|
4075
|
+
}), ks = (e) => ({
|
|
4076
4076
|
month: {
|
|
4077
4077
|
status: ye(e.month)
|
|
4078
4078
|
},
|
|
@@ -4098,7 +4098,7 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4098
4098
|
claimable: e === 1,
|
|
4099
4099
|
expired: e === 0,
|
|
4100
4100
|
claimed: e === -1
|
|
4101
|
-
}),
|
|
4101
|
+
}), Os = (e) => e.mdVipSetting.filter((t) => t.status == 1).map((t) => ({
|
|
4102
4102
|
fieldName: t.fieldname,
|
|
4103
4103
|
showName: t.showname
|
|
4104
4104
|
})), Ms = (e) => ({
|
|
@@ -4276,7 +4276,7 @@ const Es = (e) => {
|
|
|
4276
4276
|
})
|
|
4277
4277
|
})), qs = (e) => e.data ? e.data.filter((a) => !Bt(a.matchDate, 120)).map((a) => ({
|
|
4278
4278
|
id: a.id,
|
|
4279
|
-
date: ha(
|
|
4279
|
+
date: ha(Be(a.matchDate)),
|
|
4280
4280
|
started: Bt(a.matchDate),
|
|
4281
4281
|
stage: a.Stage,
|
|
4282
4282
|
sportId: a.SportID,
|
|
@@ -4494,7 +4494,7 @@ const Qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4494
4494
|
return {
|
|
4495
4495
|
messageId: a.msgindex,
|
|
4496
4496
|
unread: a.status == "0",
|
|
4497
|
-
date:
|
|
4497
|
+
date: Be(a.cdate),
|
|
4498
4498
|
title: ((t = a.account_message_content) == null ? void 0 : t.subject) ?? "",
|
|
4499
4499
|
content: ((n = a.account_message_content) == null ? void 0 : n.content) ?? ""
|
|
4500
4500
|
};
|
|
@@ -4504,7 +4504,7 @@ const Qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4504
4504
|
return {
|
|
4505
4505
|
messageId: a.msgindex,
|
|
4506
4506
|
unread: a.status == "0",
|
|
4507
|
-
date:
|
|
4507
|
+
date: Be(a.cdate),
|
|
4508
4508
|
title: ((t = a.account_message_content) == null ? void 0 : t.subject) ?? "",
|
|
4509
4509
|
content: ((n = a.account_message_content) == null ? void 0 : n.content) ?? "",
|
|
4510
4510
|
amount: parseFloat(a.amount ?? "0")
|
|
@@ -4526,8 +4526,8 @@ const Qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4526
4526
|
trial: !1,
|
|
4527
4527
|
new: !1
|
|
4528
4528
|
},
|
|
4529
|
-
imageUrl: `${e.mdDomains[s.mdDomains_id]}${
|
|
4530
|
-
logoUrl: `${e.mdDomains[s.mdDomains_id]}${
|
|
4529
|
+
imageUrl: `${e.mdDomains[s.mdDomains_id]}${Re(s.img, s.id, `?ts=${s.filemtime}`)}`,
|
|
4530
|
+
logoUrl: `${e.mdDomains[s.mdDomains_id]}${Re(s.img, s.id, `?ts=${s.filemtime}`)}`,
|
|
4531
4531
|
rate: "0.00",
|
|
4532
4532
|
jackpotAmount: ""
|
|
4533
4533
|
}))) ?? []
|
|
@@ -4783,7 +4783,7 @@ const Qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4783
4783
|
regex: a.regex,
|
|
4784
4784
|
showName: a.showname,
|
|
4785
4785
|
inputHelper: a.inputHelper
|
|
4786
|
-
})) : [],
|
|
4786
|
+
})) : [], xo = (e) => S(e), Ro = (e) => e, ko = (e) => {
|
|
4787
4787
|
var a;
|
|
4788
4788
|
return {
|
|
4789
4789
|
status: e.status == 1,
|
|
@@ -4793,7 +4793,7 @@ const Qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4793
4793
|
ledgerIndex: e.checkgame.ledgerindex ?? 0,
|
|
4794
4794
|
amount: e.checkgame.amount ?? ""
|
|
4795
4795
|
};
|
|
4796
|
-
},
|
|
4796
|
+
}, Oo = (e) => S(e), Mo = (e) => ({
|
|
4797
4797
|
status: e.status == 1,
|
|
4798
4798
|
message: e.message,
|
|
4799
4799
|
user: e.user ?? ""
|
|
@@ -4944,10 +4944,10 @@ const Qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4944
4944
|
username: e.accountcode,
|
|
4945
4945
|
password: e.password
|
|
4946
4946
|
});
|
|
4947
|
-
var
|
|
4947
|
+
var Ue = /* @__PURE__ */ ((e) => (e.toPlatform = "transferIn", e.toWallet = "transferOut", e))(Ue || {});
|
|
4948
4948
|
const ri = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4949
4949
|
__proto__: null,
|
|
4950
|
-
TransferMethod:
|
|
4950
|
+
TransferMethod: Ue
|
|
4951
4951
|
}, Symbol.toStringTag, { value: "Module" })), si = (e) => {
|
|
4952
4952
|
var a;
|
|
4953
4953
|
return {
|
|
@@ -4956,7 +4956,7 @@ const ri = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4956
4956
|
data: ((a = e.mdGameCreditLimitTransfers.data) == null ? void 0 : a.map((t) => ({
|
|
4957
4957
|
transferIndex: t.clindex,
|
|
4958
4958
|
target: t.com_from !== "" ? t.com_from : t.com_to,
|
|
4959
|
-
category: t.com_from !== "" ?
|
|
4959
|
+
category: t.com_from !== "" ? Ue.toWallet : Ue.toPlatform,
|
|
4960
4960
|
amount: P(t.amount),
|
|
4961
4961
|
dateTime: t.transferdatetime
|
|
4962
4962
|
}))) ?? []
|
|
@@ -5151,21 +5151,21 @@ const bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5151
5151
|
errorMessage: e.errormessage ?? "",
|
|
5152
5152
|
isAutoTransfer: e.optionkey == "auto" || ((a = e.message) == null ? void 0 : a.optionkey) == "auto" || ((t = e.mdAccountSetting) == null ? void 0 : t.optionkey) == "auto"
|
|
5153
5153
|
};
|
|
5154
|
-
}, Pi = (e) => S(e),
|
|
5154
|
+
}, Pi = (e) => S(e), xi = (e) => ({
|
|
5155
5155
|
status: e.status,
|
|
5156
5156
|
message: e.msg ?? "",
|
|
5157
5157
|
turnover: e.data ? e.data.turnover : 0,
|
|
5158
5158
|
percentage: e.data ? e.data.percentage ?? 0 : 0,
|
|
5159
5159
|
incentive: e.data ? e.data.incentive : 0,
|
|
5160
5160
|
claimable: 0
|
|
5161
|
-
}),
|
|
5161
|
+
}), Ri = (e) => {
|
|
5162
5162
|
let a = "0";
|
|
5163
5163
|
return e.data && (a = e.data.incentive), {
|
|
5164
5164
|
status: e.status,
|
|
5165
5165
|
message: e.msg ?? "",
|
|
5166
5166
|
amount: a
|
|
5167
5167
|
};
|
|
5168
|
-
},
|
|
5168
|
+
}, ki = (e) => {
|
|
5169
5169
|
let a = "0";
|
|
5170
5170
|
return e.data && (a = e.data.incentive), {
|
|
5171
5171
|
status: e.status,
|
|
@@ -5174,7 +5174,7 @@ const bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5174
5174
|
};
|
|
5175
5175
|
};
|
|
5176
5176
|
var re = /* @__PURE__ */ ((e) => (e.inProgress = "inProgress", e.collectable = "collectable", e.collected = "collected", e))(re || {});
|
|
5177
|
-
const
|
|
5177
|
+
const Oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5178
5178
|
__proto__: null,
|
|
5179
5179
|
MissionStatus: re
|
|
5180
5180
|
}, Symbol.toStringTag, { value: "Module" })), Mi = (e) => {
|
|
@@ -5259,7 +5259,7 @@ const ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5259
5259
|
trial: !1,
|
|
5260
5260
|
new: !1
|
|
5261
5261
|
},
|
|
5262
|
-
imageUrl: `${e.mdDomains[a.mdDomains_id]}${
|
|
5262
|
+
imageUrl: `${e.mdDomains[a.mdDomains_id]}${Re(a.img, a.id, `?ts=${a.filemtime}`)}`,
|
|
5263
5263
|
logoUrl: `/image/platform_logo/${a.img.split("/").pop()}?v=1`,
|
|
5264
5264
|
rate: "0.00",
|
|
5265
5265
|
jackpotAmount: ""
|
|
@@ -5488,15 +5488,15 @@ const Fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5488
5488
|
message: e.msg ?? "",
|
|
5489
5489
|
data: e.data ?? 0
|
|
5490
5490
|
});
|
|
5491
|
-
var
|
|
5491
|
+
var xt = /* @__PURE__ */ ((e) => (e.mobileBanner = "mobileBanner", e.mobileAbout = "mobileAbout", e.mobileAd = "mobileAd", e.about = "about", e.appAd = "appAd", e.deposit = "deposit", e))(xt || {});
|
|
5492
5492
|
const au = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5493
5493
|
__proto__: null,
|
|
5494
|
-
CmsCategory:
|
|
5494
|
+
CmsCategory: xt
|
|
5495
5495
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5496
|
-
var
|
|
5496
|
+
var $e = /* @__PURE__ */ ((e) => (e.complete = "complete", e.pending = "pending", e))($e || {});
|
|
5497
5497
|
const nu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5498
5498
|
__proto__: null,
|
|
5499
|
-
WheelStatus:
|
|
5499
|
+
WheelStatus: $e
|
|
5500
5500
|
}, Symbol.toStringTag, { value: "Module" })), ru = (e) => {
|
|
5501
5501
|
if (e.status === 0)
|
|
5502
5502
|
return {
|
|
@@ -5511,7 +5511,7 @@ const nu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5511
5511
|
return e.data && (a = e.data.data.map((n) => ({
|
|
5512
5512
|
id: n.cjm,
|
|
5513
5513
|
amount: n.award_prize,
|
|
5514
|
-
status: n.state === "1" ?
|
|
5514
|
+
status: n.state === "1" ? $e.complete : $e.pending,
|
|
5515
5515
|
date: n.adddate
|
|
5516
5516
|
})), t = e.data.totalpage), {
|
|
5517
5517
|
status: e.status === 1,
|
|
@@ -5566,7 +5566,7 @@ const nu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5566
5566
|
trial: !1,
|
|
5567
5567
|
new: !1
|
|
5568
5568
|
},
|
|
5569
|
-
imageUrl: `${e.mdDomains[s.mdDomains_id]}${
|
|
5569
|
+
imageUrl: `${e.mdDomains[s.mdDomains_id]}${Re(s.img, s.id, `?ts=${s.filemtime}`)}`,
|
|
5570
5570
|
logoUrl: `/image/platform_logo/${s.img.split("/").pop()}?v=1`,
|
|
5571
5571
|
rate: "0.00",
|
|
5572
5572
|
jackpotAmount: ""
|
|
@@ -5595,10 +5595,10 @@ const nu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5595
5595
|
status: e.status == 1,
|
|
5596
5596
|
message: e.status == 1 ? e.message ?? "" : e.errormessage ?? ""
|
|
5597
5597
|
});
|
|
5598
|
-
var
|
|
5598
|
+
var Pe = /* @__PURE__ */ ((e) => (e.inProgress = "inProgress", e.collectable = "collectable", e.collected = "collected", e))(Pe || {});
|
|
5599
5599
|
const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5600
5600
|
__proto__: null,
|
|
5601
|
-
NewbieMissionStatus:
|
|
5601
|
+
NewbieMissionStatus: Pe
|
|
5602
5602
|
}, Symbol.toStringTag, { value: "Module" })), mu = (e) => {
|
|
5603
5603
|
if (e.status == 0 || e.data == null)
|
|
5604
5604
|
return {
|
|
@@ -5606,8 +5606,8 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5606
5606
|
message: e.msg ?? "",
|
|
5607
5607
|
data: null
|
|
5608
5608
|
};
|
|
5609
|
-
let a =
|
|
5610
|
-
return e.data.has_claimed ? a =
|
|
5609
|
+
let a = Pe.inProgress;
|
|
5610
|
+
return e.data.has_claimed ? a = Pe.collected : a = e.data.claimable ? Pe.collectable : Pe.inProgress, {
|
|
5611
5611
|
status: e.status == 1,
|
|
5612
5612
|
message: e.msg ?? "",
|
|
5613
5613
|
data: {
|
|
@@ -5642,7 +5642,7 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5642
5642
|
promoAmount: e.data.promo_amount ?? "0"
|
|
5643
5643
|
}
|
|
5644
5644
|
}, fu = async (e) => {
|
|
5645
|
-
var a, t, n, r, s, i, d, g, p, h, w, _, b,
|
|
5645
|
+
var a, t, n, r, s, i, d, g, p, h, w, _, b, O, C, V, A, I, M, T, R, Y, le, se, ce, de, Me, Se;
|
|
5646
5646
|
try {
|
|
5647
5647
|
e.findIndex((m) => m.name === c.vipList) !== -1 && e.push(
|
|
5648
5648
|
{
|
|
@@ -5677,49 +5677,41 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5677
5677
|
query: JSON.stringify({
|
|
5678
5678
|
p: 1,
|
|
5679
5679
|
c: 0,
|
|
5680
|
-
list: [
|
|
5680
|
+
list: [xt.deposit]
|
|
5681
5681
|
})
|
|
5682
|
-
})
|
|
5683
|
-
const Te = e.findIndex(
|
|
5682
|
+
}), e.findIndex(
|
|
5684
5683
|
(m) => m.name === c.getFavouriteGame
|
|
5685
|
-
)
|
|
5686
|
-
Te !== -1 && (JSON.parse(e[Te].query).pid || e.push({
|
|
5684
|
+
) !== -1 && e.push({
|
|
5687
5685
|
name: c.getPlatformTurnoverRate,
|
|
5688
5686
|
query: ""
|
|
5689
|
-
})
|
|
5690
|
-
const ve = e.findIndex(
|
|
5687
|
+
}), e.findIndex(
|
|
5691
5688
|
(m) => m.name === c.searchGameByName
|
|
5692
|
-
)
|
|
5693
|
-
ve !== -1 && (JSON.parse(e[ve].query).pid || e.push({
|
|
5689
|
+
) !== -1 && e.push({
|
|
5694
5690
|
name: c.getPlatformTurnoverRate,
|
|
5695
5691
|
query: ""
|
|
5696
|
-
}))
|
|
5697
|
-
const we = e.findIndex((m) => m.name === c.fishGameList);
|
|
5698
|
-
we !== -1 && (JSON.parse(e[we].query).pid || e.push({
|
|
5692
|
+
}), e.findIndex((m) => m.name === c.fishGameList) !== -1 && e.push({
|
|
5699
5693
|
name: c.getPlatformTurnoverRate,
|
|
5700
5694
|
query: ""
|
|
5701
|
-
}))
|
|
5702
|
-
const De = e.findIndex((m) => m.name === c.gameList);
|
|
5703
|
-
De !== -1 && (JSON.parse(e[De].query).pid || e.push({
|
|
5695
|
+
}), e.findIndex((m) => m.name === c.gameList) !== -1 && e.push({
|
|
5704
5696
|
name: c.getPlatformTurnoverRate,
|
|
5705
5697
|
query: ""
|
|
5706
|
-
})
|
|
5707
|
-
const
|
|
5708
|
-
if (
|
|
5698
|
+
});
|
|
5699
|
+
const Ie = e.findIndex((m) => m.name === c.searchHot);
|
|
5700
|
+
if (Ie !== -1) {
|
|
5709
5701
|
let m = {};
|
|
5710
5702
|
e.forEach((v) => {
|
|
5711
5703
|
m = v.query;
|
|
5712
|
-
}), e.splice(
|
|
5704
|
+
}), e.splice(Ie), e.push({
|
|
5713
5705
|
name: c.getFourDimensionData,
|
|
5714
5706
|
query: String(m)
|
|
5715
5707
|
});
|
|
5716
5708
|
}
|
|
5717
|
-
const
|
|
5718
|
-
if (
|
|
5709
|
+
const Te = e.findIndex((m) => m.name === c.searchNumberHistory);
|
|
5710
|
+
if (Te !== -1) {
|
|
5719
5711
|
let m = {};
|
|
5720
5712
|
e.forEach((v) => {
|
|
5721
5713
|
m = v.query;
|
|
5722
|
-
}), e.splice(
|
|
5714
|
+
}), e.splice(Te), e.push({
|
|
5723
5715
|
name: c.getFourDimensionData,
|
|
5724
5716
|
query: String(m)
|
|
5725
5717
|
});
|
|
@@ -5728,15 +5720,15 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5728
5720
|
let m = {};
|
|
5729
5721
|
e.forEach((v) => {
|
|
5730
5722
|
m = v.query;
|
|
5731
|
-
}), e.splice(
|
|
5723
|
+
}), e.splice(Te), e.push({
|
|
5732
5724
|
name: c.getFourDimensionData,
|
|
5733
5725
|
query: String(m)
|
|
5734
5726
|
});
|
|
5735
5727
|
}
|
|
5736
|
-
const
|
|
5728
|
+
const ve = e.findIndex(
|
|
5737
5729
|
(m) => m.name === c.getFourDimensionData
|
|
5738
5730
|
);
|
|
5739
|
-
|
|
5731
|
+
ve !== -1 && e[ve].query == "" && (e.splice(ve), e.push(
|
|
5740
5732
|
{
|
|
5741
5733
|
name: c.getFourDimensionData,
|
|
5742
5734
|
query: JSON.stringify({ action: c.getCompany, native: "1" })
|
|
@@ -5752,20 +5744,20 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5752
5744
|
})
|
|
5753
5745
|
}
|
|
5754
5746
|
));
|
|
5755
|
-
const
|
|
5747
|
+
const ze = {
|
|
5756
5748
|
requests: e.map((m) => ({
|
|
5757
5749
|
name: m.name,
|
|
5758
5750
|
query: btoa(m.query)
|
|
5759
5751
|
}))
|
|
5760
|
-
},
|
|
5752
|
+
}, We = await ee.post(
|
|
5761
5753
|
"/graph/jwt",
|
|
5762
|
-
Kr(JSON.stringify(
|
|
5754
|
+
Kr(JSON.stringify(ze))
|
|
5763
5755
|
), o = {
|
|
5764
5756
|
status: 200,
|
|
5765
5757
|
message: "",
|
|
5766
5758
|
result: {}
|
|
5767
5759
|
};
|
|
5768
|
-
for (const m of
|
|
5760
|
+
for (const m of We.data.responses) {
|
|
5769
5761
|
m.error != null && m.error.code != 200 && (o.status = m.error.code, o.message = m.error.message);
|
|
5770
5762
|
const v = m.attributes !== null && m.attributes !== void 0 ? es(m.attributes) : null, u = m.name, l = v ? JSON.parse(v) : null;
|
|
5771
5763
|
if (!l)
|
|
@@ -5790,19 +5782,19 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5790
5782
|
o.result[u] = Ds(l);
|
|
5791
5783
|
break;
|
|
5792
5784
|
case c.vipList:
|
|
5793
|
-
o.result[u] =
|
|
5785
|
+
o.result[u] = xs(l);
|
|
5794
5786
|
break;
|
|
5795
5787
|
case c.vipBonus:
|
|
5796
|
-
o.result[u] =
|
|
5788
|
+
o.result[u] = ks(l);
|
|
5797
5789
|
break;
|
|
5798
5790
|
case c.vipFieldStatus:
|
|
5799
|
-
o.result[u] =
|
|
5791
|
+
o.result[u] = Os(l);
|
|
5800
5792
|
break;
|
|
5801
5793
|
case c.vipStatus:
|
|
5802
5794
|
o.result[u] = Ms(l);
|
|
5803
5795
|
break;
|
|
5804
5796
|
case c.promotion:
|
|
5805
|
-
o.result[u] =
|
|
5797
|
+
o.result[u] = Rs(l);
|
|
5806
5798
|
break;
|
|
5807
5799
|
case c.getSetting:
|
|
5808
5800
|
o.result[u] = Ss(l);
|
|
@@ -5994,20 +5986,20 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5994
5986
|
o.result[u] = mt(l);
|
|
5995
5987
|
break;
|
|
5996
5988
|
case c.updateProfilePicture:
|
|
5997
|
-
o.result[u] =
|
|
5989
|
+
o.result[u] = xo(
|
|
5998
5990
|
l
|
|
5999
5991
|
);
|
|
6000
5992
|
break;
|
|
6001
5993
|
case c.readMail:
|
|
6002
|
-
o.result[u] =
|
|
5994
|
+
o.result[u] = Ro(l);
|
|
6003
5995
|
break;
|
|
6004
5996
|
case c.checkRedPacketValidate:
|
|
6005
|
-
o.result[u] =
|
|
5997
|
+
o.result[u] = ko(
|
|
6006
5998
|
l
|
|
6007
5999
|
);
|
|
6008
6000
|
break;
|
|
6009
6001
|
case c.requestTacCode:
|
|
6010
|
-
o.result[u] =
|
|
6002
|
+
o.result[u] = Oo(l);
|
|
6011
6003
|
break;
|
|
6012
6004
|
case c.getUsernameByRefer:
|
|
6013
6005
|
o.result[u] = Mo(
|
|
@@ -6220,17 +6212,17 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6220
6212
|
o.result[u] = Pi(l);
|
|
6221
6213
|
break;
|
|
6222
6214
|
case c.getIncentiveData:
|
|
6223
|
-
o.result[u] =
|
|
6215
|
+
o.result[u] = xi(
|
|
6224
6216
|
l
|
|
6225
6217
|
);
|
|
6226
6218
|
break;
|
|
6227
6219
|
case c.getIncentiveRebate:
|
|
6228
|
-
o.result[u] =
|
|
6220
|
+
o.result[u] = Ri(
|
|
6229
6221
|
l
|
|
6230
6222
|
);
|
|
6231
6223
|
break;
|
|
6232
6224
|
case c.claimIncentiveRebate:
|
|
6233
|
-
o.result[u] =
|
|
6225
|
+
o.result[u] = ki(
|
|
6234
6226
|
l
|
|
6235
6227
|
);
|
|
6236
6228
|
break;
|
|
@@ -6585,11 +6577,11 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6585
6577
|
code: "",
|
|
6586
6578
|
value: m.list.map((f) => f.benefit_list.salary_10th.bonus)
|
|
6587
6579
|
});
|
|
6588
|
-
const
|
|
6580
|
+
const je = u.findIndex(
|
|
6589
6581
|
(f) => f.fieldName == "salary_bonus_multiply_10th"
|
|
6590
6582
|
);
|
|
6591
|
-
|
|
6592
|
-
name: u[
|
|
6583
|
+
je > -1 && l.push({
|
|
6584
|
+
name: u[je].showName,
|
|
6593
6585
|
code: "",
|
|
6594
6586
|
value: m.list.map((f) => f.benefit_list.salary_10th.turnover)
|
|
6595
6587
|
});
|
|
@@ -6603,11 +6595,11 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6603
6595
|
code: "",
|
|
6604
6596
|
value: m.list.map((f) => f.benefit_list.salary_20th.bonus)
|
|
6605
6597
|
});
|
|
6606
|
-
const
|
|
6598
|
+
const Ce = u.findIndex(
|
|
6607
6599
|
(f) => f.fieldName == "salary_bonus_multiply_20th"
|
|
6608
6600
|
);
|
|
6609
|
-
|
|
6610
|
-
name: u[
|
|
6601
|
+
Ce > -1 && l.push({
|
|
6602
|
+
name: u[Ce].showName,
|
|
6611
6603
|
code: "",
|
|
6612
6604
|
value: m.list.map((f) => f.benefit_list.salary_20th.turnover)
|
|
6613
6605
|
}), (v === 1 || v === 3 || v === 4) && l.push({
|
|
@@ -6635,7 +6627,7 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6635
6627
|
const l = (b = o.result) == null ? void 0 : b.getInviteRewardData;
|
|
6636
6628
|
v += Number(l.totalReward), u += Number(l.unclaimReward), m.inviteRewardData = l, delete o.result.getInviteRewardData;
|
|
6637
6629
|
}
|
|
6638
|
-
if (c.getTopupRewardData in o.result && ((
|
|
6630
|
+
if (c.getTopupRewardData in o.result && ((O = o.result) != null && O.getTopupRewardData)) {
|
|
6639
6631
|
const l = (C = o.result) == null ? void 0 : C.getTopupRewardData;
|
|
6640
6632
|
v += Number(l.totalReward), u += Number(l.unclaimReward), m.topupRewardData = l, delete o.result.getTopupRewardData;
|
|
6641
6633
|
}
|
|
@@ -6643,7 +6635,7 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6643
6635
|
}
|
|
6644
6636
|
if (c.getFavouriteGame in o.result && ((V = o.result) != null && V.getFavouriteGame)) {
|
|
6645
6637
|
const m = o.result.getFavouriteGame;
|
|
6646
|
-
if (
|
|
6638
|
+
if (c.getPlatformTurnoverRate in o.result && ((A = o.result) != null && A.getPlatformTurnoverRate)) {
|
|
6647
6639
|
const v = o.result.getPlatformTurnoverRate;
|
|
6648
6640
|
o.result.getFavouriteGame = m.data.map((u) => {
|
|
6649
6641
|
const l = v.find(
|
|
@@ -6658,24 +6650,22 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6658
6650
|
}
|
|
6659
6651
|
if (c.searchGameByName in o.result && ((I = o.result) != null && I.searchGameByName)) {
|
|
6660
6652
|
const m = o.result.searchGameByName;
|
|
6661
|
-
if (
|
|
6653
|
+
if (c.getPlatformTurnoverRate in o.result && ((M = o.result) != null && M.getPlatformTurnoverRate)) {
|
|
6662
6654
|
const v = o.result.getPlatformTurnoverRate;
|
|
6663
|
-
o.result.searchGameByName = m.gameList.data.map(
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
}
|
|
6673
|
-
), delete o.result.getPlatformTurnoverRate;
|
|
6655
|
+
o.result.searchGameByName = m.gameList.data.map((u) => {
|
|
6656
|
+
const l = v.find(
|
|
6657
|
+
(D) => D.id === u.platformId
|
|
6658
|
+
);
|
|
6659
|
+
return {
|
|
6660
|
+
...u,
|
|
6661
|
+
rate: (l == null ? void 0 : l.percentage) ?? "0.00"
|
|
6662
|
+
};
|
|
6663
|
+
}), delete o.result.getPlatformTurnoverRate;
|
|
6674
6664
|
}
|
|
6675
6665
|
}
|
|
6676
6666
|
if (c.fishGameList in o.result && ((T = o.result) != null && T.fishGameList)) {
|
|
6677
6667
|
const m = o.result.fishGameList;
|
|
6678
|
-
if (
|
|
6668
|
+
if (c.getPlatformTurnoverRate in o.result && ((R = o.result) != null && R.getPlatformTurnoverRate)) {
|
|
6679
6669
|
const v = o.result.getPlatformTurnoverRate;
|
|
6680
6670
|
o.result.fishGameList = m.data.map((u) => {
|
|
6681
6671
|
const l = v.find(
|
|
@@ -6701,40 +6691,37 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6701
6691
|
}
|
|
6702
6692
|
}
|
|
6703
6693
|
if (c.gameList in o.result && ((le = o.result) != null && le.gameList)) {
|
|
6704
|
-
const m = o.result.gameList;
|
|
6705
|
-
if (
|
|
6706
|
-
const
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
const z = u.find(
|
|
6713
|
-
(U) => U.id === D.platformId
|
|
6714
|
-
);
|
|
6715
|
-
return {
|
|
6716
|
-
...D,
|
|
6717
|
-
rate: (z == null ? void 0 : z.percentage) ?? "0.00"
|
|
6718
|
-
};
|
|
6719
|
-
})
|
|
6720
|
-
})), m.gameList.data = m.gameList.data.map((l) => {
|
|
6721
|
-
const D = u.find(
|
|
6722
|
-
(z) => z.id === l.platformId
|
|
6694
|
+
const m = o.result.gameList, v = m.platformGame.map((u) => u.list.filter((l) => l.flag.trial && !u.nextPage).map((l) => l));
|
|
6695
|
+
if (m.trialGameList = v.flat(), c.getPlatformTurnoverRate in o.result && ((se = o.result) != null && se.getPlatformTurnoverRate)) {
|
|
6696
|
+
const u = o.result.getPlatformTurnoverRate;
|
|
6697
|
+
m.platformGame = m.platformGame.map((l) => ({
|
|
6698
|
+
...l,
|
|
6699
|
+
list: l.list.map((D) => {
|
|
6700
|
+
const z = u.find(
|
|
6701
|
+
(U) => U.id === D.platformId
|
|
6723
6702
|
);
|
|
6724
6703
|
return {
|
|
6725
|
-
...
|
|
6726
|
-
rate: (
|
|
6704
|
+
...D,
|
|
6705
|
+
rate: (z == null ? void 0 : z.percentage) ?? "0.00"
|
|
6727
6706
|
};
|
|
6728
|
-
})
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
)
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
}
|
|
6737
|
-
}
|
|
6707
|
+
})
|
|
6708
|
+
})), m.gameList.data = m.gameList.data.map((l) => {
|
|
6709
|
+
const D = u.find(
|
|
6710
|
+
(z) => z.id === l.platformId
|
|
6711
|
+
);
|
|
6712
|
+
return {
|
|
6713
|
+
...l,
|
|
6714
|
+
rate: (D == null ? void 0 : D.percentage) ?? "0.00"
|
|
6715
|
+
};
|
|
6716
|
+
}), m.trialGameList = m.trialGameList.map((l) => {
|
|
6717
|
+
const D = u.find(
|
|
6718
|
+
(z) => z.id === l.platformId
|
|
6719
|
+
);
|
|
6720
|
+
return {
|
|
6721
|
+
...l,
|
|
6722
|
+
rate: (D == null ? void 0 : D.percentage) ?? "0.00"
|
|
6723
|
+
};
|
|
6724
|
+
}), delete o.result.getPlatformTurnoverRate;
|
|
6738
6725
|
}
|
|
6739
6726
|
o.result.gameList = m;
|
|
6740
6727
|
}
|
|
@@ -6752,8 +6739,8 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6752
6739
|
return o;
|
|
6753
6740
|
} catch (te) {
|
|
6754
6741
|
return ta.isAxiosError(te) ? {
|
|
6755
|
-
status: ((
|
|
6756
|
-
message: JSON.stringify((
|
|
6742
|
+
status: ((Me = te.response) == null ? void 0 : Me.status) || 600,
|
|
6743
|
+
message: JSON.stringify((Se = te.response) == null ? void 0 : Se.data),
|
|
6757
6744
|
result: {}
|
|
6758
6745
|
} : (console.error(te), {
|
|
6759
6746
|
status: te.status || 500,
|
|
@@ -6891,7 +6878,7 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6891
6878
|
};
|
|
6892
6879
|
}
|
|
6893
6880
|
return e;
|
|
6894
|
-
},
|
|
6881
|
+
}, xu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6895
6882
|
__proto__: null,
|
|
6896
6883
|
call: Pu
|
|
6897
6884
|
}, Symbol.toStringTag, { value: "Module" })), Zt = {
|
|
@@ -6899,7 +6886,7 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6899
6886
|
status: !1,
|
|
6900
6887
|
message: ""
|
|
6901
6888
|
}
|
|
6902
|
-
},
|
|
6889
|
+
}, Ru = async (e, a) => {
|
|
6903
6890
|
let t = {
|
|
6904
6891
|
status: 200,
|
|
6905
6892
|
message: "",
|
|
@@ -6924,10 +6911,10 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6924
6911
|
};
|
|
6925
6912
|
}
|
|
6926
6913
|
return t;
|
|
6927
|
-
},
|
|
6914
|
+
}, ku = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6928
6915
|
__proto__: null,
|
|
6929
|
-
call:
|
|
6930
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6916
|
+
call: Ru
|
|
6917
|
+
}, Symbol.toStringTag, { value: "Module" })), Ou = async (e, a, t, n, r) => {
|
|
6931
6918
|
let s = {
|
|
6932
6919
|
status: 200,
|
|
6933
6920
|
message: "",
|
|
@@ -6967,7 +6954,7 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6967
6954
|
return s;
|
|
6968
6955
|
}, Mu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6969
6956
|
__proto__: null,
|
|
6970
|
-
call:
|
|
6957
|
+
call: Ou
|
|
6971
6958
|
}, Symbol.toStringTag, { value: "Module" })), Jt = {
|
|
6972
6959
|
data: {
|
|
6973
6960
|
status: !1,
|
|
@@ -7108,14 +7095,14 @@ const hl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7108
7095
|
__proto__: null
|
|
7109
7096
|
}, Symbol.toStringTag, { value: "Module" })), Pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7110
7097
|
__proto__: null
|
|
7111
|
-
}, Symbol.toStringTag, { value: "Module" })), Rl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7112
|
-
__proto__: null
|
|
7113
7098
|
}, Symbol.toStringTag, { value: "Module" })), xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7114
7099
|
__proto__: null
|
|
7115
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
7100
|
+
}, Symbol.toStringTag, { value: "Module" })), Rl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7116
7101
|
__proto__: null
|
|
7117
7102
|
}, Symbol.toStringTag, { value: "Module" })), kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7118
7103
|
__proto__: null
|
|
7104
|
+
}, Symbol.toStringTag, { value: "Module" })), Ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7105
|
+
__proto__: null
|
|
7119
7106
|
}, Symbol.toStringTag, { value: "Module" })), Ml = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7120
7107
|
__proto__: null
|
|
7121
7108
|
}, Symbol.toStringTag, { value: "Module" })), Sl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -7216,14 +7203,14 @@ const hl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7216
7203
|
__proto__: null
|
|
7217
7204
|
}, Symbol.toStringTag, { value: "Module" })), Pc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7218
7205
|
__proto__: null
|
|
7219
|
-
}, Symbol.toStringTag, { value: "Module" })), Rc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7220
|
-
__proto__: null
|
|
7221
7206
|
}, Symbol.toStringTag, { value: "Module" })), xc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7222
7207
|
__proto__: null
|
|
7223
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
7208
|
+
}, Symbol.toStringTag, { value: "Module" })), Rc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7224
7209
|
__proto__: null
|
|
7225
7210
|
}, Symbol.toStringTag, { value: "Module" })), kc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7226
7211
|
__proto__: null
|
|
7212
|
+
}, Symbol.toStringTag, { value: "Module" })), Oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7213
|
+
__proto__: null
|
|
7227
7214
|
}, Symbol.toStringTag, { value: "Module" })), Mc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7228
7215
|
__proto__: null
|
|
7229
7216
|
}, Symbol.toStringTag, { value: "Module" })), Sc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -7263,8 +7250,8 @@ const hl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7263
7250
|
loginApi: _u,
|
|
7264
7251
|
jackpotDataApi: vu,
|
|
7265
7252
|
logoutApi: Du,
|
|
7266
|
-
autoRegisterApi:
|
|
7267
|
-
setLocaleApi:
|
|
7253
|
+
autoRegisterApi: xu,
|
|
7254
|
+
setLocaleApi: ku,
|
|
7268
7255
|
loadMatchApi: Mu,
|
|
7269
7256
|
getMaintenanceModeApi: Iu,
|
|
7270
7257
|
apiType: bs,
|
|
@@ -7321,10 +7308,10 @@ const hl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7321
7308
|
checkRedPacketValidateType: wl,
|
|
7322
7309
|
getUserProfileType: Dl,
|
|
7323
7310
|
requestTacCodeType: Pl,
|
|
7324
|
-
getUsernameByReferType:
|
|
7325
|
-
applyPromoType:
|
|
7326
|
-
applySignInType:
|
|
7327
|
-
applyRedPacketType:
|
|
7311
|
+
getUsernameByReferType: xl,
|
|
7312
|
+
applyPromoType: Rl,
|
|
7313
|
+
applySignInType: kl,
|
|
7314
|
+
applyRedPacketType: Ol,
|
|
7328
7315
|
getCountryType: Ml,
|
|
7329
7316
|
submitGiftCodeType: Kt,
|
|
7330
7317
|
playGameType: ea,
|
|
@@ -7370,7 +7357,7 @@ const hl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7370
7357
|
claimIncentiveRebate: fc,
|
|
7371
7358
|
getIncentiveData: pc,
|
|
7372
7359
|
getIncentiveRebate: bc,
|
|
7373
|
-
getMissionData:
|
|
7360
|
+
getMissionData: Oi,
|
|
7374
7361
|
getMissionClaim: yc,
|
|
7375
7362
|
registerFormType: hc,
|
|
7376
7363
|
getFavouriteGameType: _c,
|
|
@@ -7380,10 +7367,10 @@ const hl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7380
7367
|
getAccumulateDepositDataType: Fi,
|
|
7381
7368
|
getAccumulateDepositClaimType: Dc,
|
|
7382
7369
|
rebateRefundSettingType: Pc,
|
|
7383
|
-
getASCMatchCountType:
|
|
7384
|
-
updateDeviceTokenType:
|
|
7385
|
-
getCryptoListType:
|
|
7386
|
-
getCryptoAddressType:
|
|
7370
|
+
getASCMatchCountType: xc,
|
|
7371
|
+
updateDeviceTokenType: Rc,
|
|
7372
|
+
getCryptoListType: kc,
|
|
7373
|
+
getCryptoAddressType: Oc,
|
|
7387
7374
|
getPopoutItemType: Mc,
|
|
7388
7375
|
getTurnOverRewardSettingMultType: Sc,
|
|
7389
7376
|
interestIndexType: Ic,
|
|
@@ -7411,13 +7398,13 @@ export {
|
|
|
7411
7398
|
pu as api,
|
|
7412
7399
|
bs as apiType,
|
|
7413
7400
|
Ec as applyGoldEggType,
|
|
7414
|
-
|
|
7415
|
-
|
|
7401
|
+
Rl as applyPromoType,
|
|
7402
|
+
Ol as applyRedPacketType,
|
|
7416
7403
|
oc as applyReliefFund,
|
|
7417
|
-
|
|
7404
|
+
kl as applySignInType,
|
|
7418
7405
|
Yu as applyVipBonusType,
|
|
7419
7406
|
dc as applyWeekCard,
|
|
7420
|
-
|
|
7407
|
+
xu as autoRegisterApi,
|
|
7421
7408
|
Zl as betReportType,
|
|
7422
7409
|
Uu as changePasswordType,
|
|
7423
7410
|
nc as changeWithdrawalCodeType,
|
|
@@ -7435,14 +7422,14 @@ export {
|
|
|
7435
7422
|
Ll as friendListEditType,
|
|
7436
7423
|
Nl as friendListType,
|
|
7437
7424
|
Lu as gameListType,
|
|
7438
|
-
|
|
7425
|
+
xc as getASCMatchCountType,
|
|
7439
7426
|
Dc as getAccumulateDepositClaimType,
|
|
7440
7427
|
Fi as getAccumulateDepositDataType,
|
|
7441
7428
|
Fl as getActivePPType,
|
|
7442
7429
|
Gl as getActiveProductType,
|
|
7443
7430
|
Ml as getCountryType,
|
|
7444
|
-
|
|
7445
|
-
|
|
7431
|
+
Oc as getCryptoAddressType,
|
|
7432
|
+
kc as getCryptoListType,
|
|
7446
7433
|
ol as getDepositPromotionType,
|
|
7447
7434
|
Vu as getEventListType,
|
|
7448
7435
|
Au as getEventTokenType,
|
|
@@ -7458,7 +7445,7 @@ export {
|
|
|
7458
7445
|
cl as getInviteRewardSettingType,
|
|
7459
7446
|
Iu as getMaintenanceModeApi,
|
|
7460
7447
|
yc as getMissionClaim,
|
|
7461
|
-
|
|
7448
|
+
Oi as getMissionData,
|
|
7462
7449
|
Bc as getNewbieMissionClaimType,
|
|
7463
7450
|
du as getNewbieMissionDataType,
|
|
7464
7451
|
Mc as getPopoutItemType,
|
|
@@ -7478,7 +7465,7 @@ export {
|
|
|
7478
7465
|
Jl as getTwoFactorAuthenticateType,
|
|
7479
7466
|
ec as getUserDeviceListType,
|
|
7480
7467
|
Dl as getUserProfileType,
|
|
7481
|
-
|
|
7468
|
+
xl as getUsernameByReferType,
|
|
7482
7469
|
_l as getValidateType,
|
|
7483
7470
|
yl as getVerifyPromo,
|
|
7484
7471
|
Wc as getWeekCardAllDataType,
|
|
@@ -7518,7 +7505,7 @@ export {
|
|
|
7518
7505
|
zl as requestWithdrawTacType,
|
|
7519
7506
|
Wl as requestWithdrawalCodeType,
|
|
7520
7507
|
ac as searchNumberHistoryType,
|
|
7521
|
-
|
|
7508
|
+
ku as setLocaleApi,
|
|
7522
7509
|
$l as signInRecordType,
|
|
7523
7510
|
Ul as signInViewInfoType,
|
|
7524
7511
|
Ju as slotGameListType,
|
|
@@ -7543,7 +7530,7 @@ export {
|
|
|
7543
7530
|
gc as transferType,
|
|
7544
7531
|
tc as unbindUserDeviceType,
|
|
7545
7532
|
Wu as upcomingMatchType,
|
|
7546
|
-
|
|
7533
|
+
Rc as updateDeviceTokenType,
|
|
7547
7534
|
Tc as updateFavouriteGameType,
|
|
7548
7535
|
Tl as updateProfilePictureType,
|
|
7549
7536
|
Fu as vipListType,
|