@euflyapp/one-vue3 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.cjs +24 -0
- package/.prettierrc.cjs +18 -0
- package/CHANGELOG.md +69 -0
- package/README.md +61 -0
- package/assets/css/index.scss +25 -0
- package/assets/css/mixin.scss +142 -0
- package/assets/css/public.scss +176 -0
- package/assets/img/America.png +0 -0
- package/assets/img/China.png +0 -0
- package/assets/img/French.png +0 -0
- package/assets/img/Original.png +0 -0
- package/assets/img/Spanish.png +0 -0
- package/components.d.ts +38 -0
- package/dist/CheckMessageDialog-97104b25.js +167 -0
- package/dist/ftlOne.js +13 -0
- package/dist/index-d9ee9bef.js +12333 -0
- package/dist/store.js +112 -0
- package/dist/style.css +1 -0
- package/dist/utils-0eda3e43.js +17 -0
- package/dist/utils.js +828 -0
- package/dist/vuex.esm-bundler-2a047356.js +770 -0
- package/function/index.ts +4 -0
- package/function/info.ts +17 -0
- package/function/permission.ts +17 -0
- package/global.d.ts +63 -0
- package/i18n/cn.json +23 -0
- package/i18n/en.json +23 -0
- package/i18n/fr.json +23 -0
- package/package.json +74 -0
- package/store/index.js +12 -0
- package/store/modules/app.js +21 -0
- package/store/modules/auth.js +78 -0
- package/store/modules/lang.js +17 -0
- package/store2/auth.ts +66 -0
- package/store2/index.ts +7 -0
- package/store2/lang.ts +16 -0
package/dist/utils.js
ADDED
|
@@ -0,0 +1,828 @@
|
|
|
1
|
+
import { c as Q, g as R } from "./utils-0eda3e43.js";
|
|
2
|
+
import { d as Wt } from "./utils-0eda3e43.js";
|
|
3
|
+
var rt = { exports: {} };
|
|
4
|
+
(function(f, z) {
|
|
5
|
+
(function(S, g) {
|
|
6
|
+
f.exports = g();
|
|
7
|
+
})(Q, function() {
|
|
8
|
+
var S = 1e3, g = 6e4, W = 36e5, C = "millisecond", Y = "second", w = "minute", M = "hour", l = "day", L = "week", H = "month", D = "quarter", x = "year", k = "date", t = "Invalid Date", c = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, v = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(o) {
|
|
9
|
+
var s = ["th", "st", "nd", "rd"], n = o % 100;
|
|
10
|
+
return "[" + o + (s[(n - 20) % 10] || s[n] || s[0]) + "]";
|
|
11
|
+
} }, O = function(o, s, n) {
|
|
12
|
+
var u = String(o);
|
|
13
|
+
return !u || u.length >= s ? o : "" + Array(s + 1 - u.length).join(n) + o;
|
|
14
|
+
}, A = { s: O, z: function(o) {
|
|
15
|
+
var s = -o.utcOffset(), n = Math.abs(s), u = Math.floor(n / 60), r = n % 60;
|
|
16
|
+
return (s <= 0 ? "+" : "-") + O(u, 2, "0") + ":" + O(r, 2, "0");
|
|
17
|
+
}, m: function o(s, n) {
|
|
18
|
+
if (s.date() < n.date())
|
|
19
|
+
return -o(n, s);
|
|
20
|
+
var u = 12 * (n.year() - s.year()) + (n.month() - s.month()), r = s.clone().add(u, H), d = n - r < 0, $ = s.clone().add(u + (d ? -1 : 1), H);
|
|
21
|
+
return +(-(u + (n - r) / (d ? r - $ : $ - r)) || 0);
|
|
22
|
+
}, a: function(o) {
|
|
23
|
+
return o < 0 ? Math.ceil(o) || 0 : Math.floor(o);
|
|
24
|
+
}, p: function(o) {
|
|
25
|
+
return { M: H, y: x, w: L, d: l, D: k, h: M, m: w, s: Y, ms: C, Q: D }[o] || String(o || "").toLowerCase().replace(/s$/, "");
|
|
26
|
+
}, u: function(o) {
|
|
27
|
+
return o === void 0;
|
|
28
|
+
} }, _ = "en", m = {};
|
|
29
|
+
m[_] = y;
|
|
30
|
+
var i = "$isDayjsObject", e = function(o) {
|
|
31
|
+
return o instanceof T || !(!o || !o[i]);
|
|
32
|
+
}, p = function o(s, n, u) {
|
|
33
|
+
var r;
|
|
34
|
+
if (!s)
|
|
35
|
+
return _;
|
|
36
|
+
if (typeof s == "string") {
|
|
37
|
+
var d = s.toLowerCase();
|
|
38
|
+
m[d] && (r = d), n && (m[d] = n, r = d);
|
|
39
|
+
var $ = s.split("-");
|
|
40
|
+
if (!r && $.length > 1)
|
|
41
|
+
return o($[0]);
|
|
42
|
+
} else {
|
|
43
|
+
var b = s.name;
|
|
44
|
+
m[b] = s, r = b;
|
|
45
|
+
}
|
|
46
|
+
return !u && r && (_ = r), r || !u && _;
|
|
47
|
+
}, h = function(o, s) {
|
|
48
|
+
if (e(o))
|
|
49
|
+
return o.clone();
|
|
50
|
+
var n = typeof s == "object" ? s : {};
|
|
51
|
+
return n.date = o, n.args = arguments, new T(n);
|
|
52
|
+
}, a = A;
|
|
53
|
+
a.l = p, a.i = e, a.w = function(o, s) {
|
|
54
|
+
return h(o, { locale: s.$L, utc: s.$u, x: s.$x, $offset: s.$offset });
|
|
55
|
+
};
|
|
56
|
+
var T = function() {
|
|
57
|
+
function o(n) {
|
|
58
|
+
this.$L = p(n.locale, null, !0), this.parse(n), this.$x = this.$x || n.x || {}, this[i] = !0;
|
|
59
|
+
}
|
|
60
|
+
var s = o.prototype;
|
|
61
|
+
return s.parse = function(n) {
|
|
62
|
+
this.$d = function(u) {
|
|
63
|
+
var r = u.date, d = u.utc;
|
|
64
|
+
if (r === null)
|
|
65
|
+
return /* @__PURE__ */ new Date(NaN);
|
|
66
|
+
if (a.u(r))
|
|
67
|
+
return /* @__PURE__ */ new Date();
|
|
68
|
+
if (r instanceof Date)
|
|
69
|
+
return new Date(r);
|
|
70
|
+
if (typeof r == "string" && !/Z$/i.test(r)) {
|
|
71
|
+
var $ = r.match(c);
|
|
72
|
+
if ($) {
|
|
73
|
+
var b = $[2] - 1 || 0, I = ($[7] || "0").substring(0, 3);
|
|
74
|
+
return d ? new Date(Date.UTC($[1], b, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, I)) : new Date($[1], b, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, I);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return new Date(r);
|
|
78
|
+
}(n), this.init();
|
|
79
|
+
}, s.init = function() {
|
|
80
|
+
var n = this.$d;
|
|
81
|
+
this.$y = n.getFullYear(), this.$M = n.getMonth(), this.$D = n.getDate(), this.$W = n.getDay(), this.$H = n.getHours(), this.$m = n.getMinutes(), this.$s = n.getSeconds(), this.$ms = n.getMilliseconds();
|
|
82
|
+
}, s.$utils = function() {
|
|
83
|
+
return a;
|
|
84
|
+
}, s.isValid = function() {
|
|
85
|
+
return this.$d.toString() !== t;
|
|
86
|
+
}, s.isSame = function(n, u) {
|
|
87
|
+
var r = h(n);
|
|
88
|
+
return this.startOf(u) <= r && r <= this.endOf(u);
|
|
89
|
+
}, s.isAfter = function(n, u) {
|
|
90
|
+
return h(n) < this.startOf(u);
|
|
91
|
+
}, s.isBefore = function(n, u) {
|
|
92
|
+
return this.endOf(u) < h(n);
|
|
93
|
+
}, s.$g = function(n, u, r) {
|
|
94
|
+
return a.u(n) ? this[u] : this.set(r, n);
|
|
95
|
+
}, s.unix = function() {
|
|
96
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
97
|
+
}, s.valueOf = function() {
|
|
98
|
+
return this.$d.getTime();
|
|
99
|
+
}, s.startOf = function(n, u) {
|
|
100
|
+
var r = this, d = !!a.u(u) || u, $ = a.p(n), b = function(J, N) {
|
|
101
|
+
var j = a.w(r.$u ? Date.UTC(r.$y, N, J) : new Date(r.$y, N, J), r);
|
|
102
|
+
return d ? j : j.endOf(l);
|
|
103
|
+
}, I = function(J, N) {
|
|
104
|
+
return a.w(r.toDate()[J].apply(r.toDate("s"), (d ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(N)), r);
|
|
105
|
+
}, Z = this.$W, F = this.$M, P = this.$D, q = "set" + (this.$u ? "UTC" : "");
|
|
106
|
+
switch ($) {
|
|
107
|
+
case x:
|
|
108
|
+
return d ? b(1, 0) : b(31, 11);
|
|
109
|
+
case H:
|
|
110
|
+
return d ? b(1, F) : b(0, F + 1);
|
|
111
|
+
case L:
|
|
112
|
+
var V = this.$locale().weekStart || 0, B = (Z < V ? Z + 7 : Z) - V;
|
|
113
|
+
return b(d ? P - B : P + (6 - B), F);
|
|
114
|
+
case l:
|
|
115
|
+
case k:
|
|
116
|
+
return I(q + "Hours", 0);
|
|
117
|
+
case M:
|
|
118
|
+
return I(q + "Minutes", 1);
|
|
119
|
+
case w:
|
|
120
|
+
return I(q + "Seconds", 2);
|
|
121
|
+
case Y:
|
|
122
|
+
return I(q + "Milliseconds", 3);
|
|
123
|
+
default:
|
|
124
|
+
return this.clone();
|
|
125
|
+
}
|
|
126
|
+
}, s.endOf = function(n) {
|
|
127
|
+
return this.startOf(n, !1);
|
|
128
|
+
}, s.$set = function(n, u) {
|
|
129
|
+
var r, d = a.p(n), $ = "set" + (this.$u ? "UTC" : ""), b = (r = {}, r[l] = $ + "Date", r[k] = $ + "Date", r[H] = $ + "Month", r[x] = $ + "FullYear", r[M] = $ + "Hours", r[w] = $ + "Minutes", r[Y] = $ + "Seconds", r[C] = $ + "Milliseconds", r)[d], I = d === l ? this.$D + (u - this.$W) : u;
|
|
130
|
+
if (d === H || d === x) {
|
|
131
|
+
var Z = this.clone().set(k, 1);
|
|
132
|
+
Z.$d[b](I), Z.init(), this.$d = Z.set(k, Math.min(this.$D, Z.daysInMonth())).$d;
|
|
133
|
+
} else
|
|
134
|
+
b && this.$d[b](I);
|
|
135
|
+
return this.init(), this;
|
|
136
|
+
}, s.set = function(n, u) {
|
|
137
|
+
return this.clone().$set(n, u);
|
|
138
|
+
}, s.get = function(n) {
|
|
139
|
+
return this[a.p(n)]();
|
|
140
|
+
}, s.add = function(n, u) {
|
|
141
|
+
var r, d = this;
|
|
142
|
+
n = Number(n);
|
|
143
|
+
var $ = a.p(u), b = function(F) {
|
|
144
|
+
var P = h(d);
|
|
145
|
+
return a.w(P.date(P.date() + Math.round(F * n)), d);
|
|
146
|
+
};
|
|
147
|
+
if ($ === H)
|
|
148
|
+
return this.set(H, this.$M + n);
|
|
149
|
+
if ($ === x)
|
|
150
|
+
return this.set(x, this.$y + n);
|
|
151
|
+
if ($ === l)
|
|
152
|
+
return b(1);
|
|
153
|
+
if ($ === L)
|
|
154
|
+
return b(7);
|
|
155
|
+
var I = (r = {}, r[w] = g, r[M] = W, r[Y] = S, r)[$] || 1, Z = this.$d.getTime() + n * I;
|
|
156
|
+
return a.w(Z, this);
|
|
157
|
+
}, s.subtract = function(n, u) {
|
|
158
|
+
return this.add(-1 * n, u);
|
|
159
|
+
}, s.format = function(n) {
|
|
160
|
+
var u = this, r = this.$locale();
|
|
161
|
+
if (!this.isValid())
|
|
162
|
+
return r.invalidDate || t;
|
|
163
|
+
var d = n || "YYYY-MM-DDTHH:mm:ssZ", $ = a.z(this), b = this.$H, I = this.$m, Z = this.$M, F = r.weekdays, P = r.months, q = r.meridiem, V = function(N, j, X, G) {
|
|
164
|
+
return N && (N[j] || N(u, d)) || X[j].slice(0, G);
|
|
165
|
+
}, B = function(N) {
|
|
166
|
+
return a.s(b % 12 || 12, N, "0");
|
|
167
|
+
}, J = q || function(N, j, X) {
|
|
168
|
+
var G = N < 12 ? "AM" : "PM";
|
|
169
|
+
return X ? G.toLowerCase() : G;
|
|
170
|
+
};
|
|
171
|
+
return d.replace(v, function(N, j) {
|
|
172
|
+
return j || function(X) {
|
|
173
|
+
switch (X) {
|
|
174
|
+
case "YY":
|
|
175
|
+
return String(u.$y).slice(-2);
|
|
176
|
+
case "YYYY":
|
|
177
|
+
return a.s(u.$y, 4, "0");
|
|
178
|
+
case "M":
|
|
179
|
+
return Z + 1;
|
|
180
|
+
case "MM":
|
|
181
|
+
return a.s(Z + 1, 2, "0");
|
|
182
|
+
case "MMM":
|
|
183
|
+
return V(r.monthsShort, Z, P, 3);
|
|
184
|
+
case "MMMM":
|
|
185
|
+
return V(P, Z);
|
|
186
|
+
case "D":
|
|
187
|
+
return u.$D;
|
|
188
|
+
case "DD":
|
|
189
|
+
return a.s(u.$D, 2, "0");
|
|
190
|
+
case "d":
|
|
191
|
+
return String(u.$W);
|
|
192
|
+
case "dd":
|
|
193
|
+
return V(r.weekdaysMin, u.$W, F, 2);
|
|
194
|
+
case "ddd":
|
|
195
|
+
return V(r.weekdaysShort, u.$W, F, 3);
|
|
196
|
+
case "dddd":
|
|
197
|
+
return F[u.$W];
|
|
198
|
+
case "H":
|
|
199
|
+
return String(b);
|
|
200
|
+
case "HH":
|
|
201
|
+
return a.s(b, 2, "0");
|
|
202
|
+
case "h":
|
|
203
|
+
return B(1);
|
|
204
|
+
case "hh":
|
|
205
|
+
return B(2);
|
|
206
|
+
case "a":
|
|
207
|
+
return J(b, I, !0);
|
|
208
|
+
case "A":
|
|
209
|
+
return J(b, I, !1);
|
|
210
|
+
case "m":
|
|
211
|
+
return String(I);
|
|
212
|
+
case "mm":
|
|
213
|
+
return a.s(I, 2, "0");
|
|
214
|
+
case "s":
|
|
215
|
+
return String(u.$s);
|
|
216
|
+
case "ss":
|
|
217
|
+
return a.s(u.$s, 2, "0");
|
|
218
|
+
case "SSS":
|
|
219
|
+
return a.s(u.$ms, 3, "0");
|
|
220
|
+
case "Z":
|
|
221
|
+
return $;
|
|
222
|
+
}
|
|
223
|
+
return null;
|
|
224
|
+
}(N) || $.replace(":", "");
|
|
225
|
+
});
|
|
226
|
+
}, s.utcOffset = function() {
|
|
227
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
228
|
+
}, s.diff = function(n, u, r) {
|
|
229
|
+
var d, $ = this, b = a.p(u), I = h(n), Z = (I.utcOffset() - this.utcOffset()) * g, F = this - I, P = function() {
|
|
230
|
+
return a.m($, I);
|
|
231
|
+
};
|
|
232
|
+
switch (b) {
|
|
233
|
+
case x:
|
|
234
|
+
d = P() / 12;
|
|
235
|
+
break;
|
|
236
|
+
case H:
|
|
237
|
+
d = P();
|
|
238
|
+
break;
|
|
239
|
+
case D:
|
|
240
|
+
d = P() / 3;
|
|
241
|
+
break;
|
|
242
|
+
case L:
|
|
243
|
+
d = (F - Z) / 6048e5;
|
|
244
|
+
break;
|
|
245
|
+
case l:
|
|
246
|
+
d = (F - Z) / 864e5;
|
|
247
|
+
break;
|
|
248
|
+
case M:
|
|
249
|
+
d = F / W;
|
|
250
|
+
break;
|
|
251
|
+
case w:
|
|
252
|
+
d = F / g;
|
|
253
|
+
break;
|
|
254
|
+
case Y:
|
|
255
|
+
d = F / S;
|
|
256
|
+
break;
|
|
257
|
+
default:
|
|
258
|
+
d = F;
|
|
259
|
+
}
|
|
260
|
+
return r ? d : a.a(d);
|
|
261
|
+
}, s.daysInMonth = function() {
|
|
262
|
+
return this.endOf(H).$D;
|
|
263
|
+
}, s.$locale = function() {
|
|
264
|
+
return m[this.$L];
|
|
265
|
+
}, s.locale = function(n, u) {
|
|
266
|
+
if (!n)
|
|
267
|
+
return this.$L;
|
|
268
|
+
var r = this.clone(), d = p(n, u, !0);
|
|
269
|
+
return d && (r.$L = d), r;
|
|
270
|
+
}, s.clone = function() {
|
|
271
|
+
return a.w(this.$d, this);
|
|
272
|
+
}, s.toDate = function() {
|
|
273
|
+
return new Date(this.valueOf());
|
|
274
|
+
}, s.toJSON = function() {
|
|
275
|
+
return this.isValid() ? this.toISOString() : null;
|
|
276
|
+
}, s.toISOString = function() {
|
|
277
|
+
return this.$d.toISOString();
|
|
278
|
+
}, s.toString = function() {
|
|
279
|
+
return this.$d.toUTCString();
|
|
280
|
+
}, o;
|
|
281
|
+
}(), U = T.prototype;
|
|
282
|
+
return h.prototype = U, [["$ms", C], ["$s", Y], ["$m", w], ["$H", M], ["$W", l], ["$M", H], ["$y", x], ["$D", k]].forEach(function(o) {
|
|
283
|
+
U[o[1]] = function(s) {
|
|
284
|
+
return this.$g(s, o[0], o[1]);
|
|
285
|
+
};
|
|
286
|
+
}), h.extend = function(o, s) {
|
|
287
|
+
return o.$i || (o(s, T, h), o.$i = !0), h;
|
|
288
|
+
}, h.locale = p, h.isDayjs = e, h.unix = function(o) {
|
|
289
|
+
return h(1e3 * o);
|
|
290
|
+
}, h.en = m[_], h.Ls = m, h.p = {}, h;
|
|
291
|
+
});
|
|
292
|
+
})(rt);
|
|
293
|
+
var ht = rt.exports;
|
|
294
|
+
const E = /* @__PURE__ */ R(ht);
|
|
295
|
+
var st = { exports: {} };
|
|
296
|
+
(function(f, z) {
|
|
297
|
+
(function(S, g) {
|
|
298
|
+
f.exports = g();
|
|
299
|
+
})(Q, function() {
|
|
300
|
+
var S = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, g = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, W = /\d\d/, C = /\d\d?/, Y = /\d*[^-_:/,()\s\d]+/, w = {}, M = function(t) {
|
|
301
|
+
return (t = +t) + (t > 68 ? 1900 : 2e3);
|
|
302
|
+
}, l = function(t) {
|
|
303
|
+
return function(c) {
|
|
304
|
+
this[t] = +c;
|
|
305
|
+
};
|
|
306
|
+
}, L = [/[+-]\d\d:?(\d\d)?|Z/, function(t) {
|
|
307
|
+
(this.zone || (this.zone = {})).offset = function(c) {
|
|
308
|
+
if (!c || c === "Z")
|
|
309
|
+
return 0;
|
|
310
|
+
var v = c.match(/([+-]|\d\d)/g), y = 60 * v[1] + (+v[2] || 0);
|
|
311
|
+
return y === 0 ? 0 : v[0] === "+" ? -y : y;
|
|
312
|
+
}(t);
|
|
313
|
+
}], H = function(t) {
|
|
314
|
+
var c = w[t];
|
|
315
|
+
return c && (c.indexOf ? c : c.s.concat(c.f));
|
|
316
|
+
}, D = function(t, c) {
|
|
317
|
+
var v, y = w.meridiem;
|
|
318
|
+
if (y) {
|
|
319
|
+
for (var O = 1; O <= 24; O += 1)
|
|
320
|
+
if (t.indexOf(y(O, 0, c)) > -1) {
|
|
321
|
+
v = O > 12;
|
|
322
|
+
break;
|
|
323
|
+
}
|
|
324
|
+
} else
|
|
325
|
+
v = t === (c ? "pm" : "PM");
|
|
326
|
+
return v;
|
|
327
|
+
}, x = { A: [Y, function(t) {
|
|
328
|
+
this.afternoon = D(t, !1);
|
|
329
|
+
}], a: [Y, function(t) {
|
|
330
|
+
this.afternoon = D(t, !0);
|
|
331
|
+
}], S: [/\d/, function(t) {
|
|
332
|
+
this.milliseconds = 100 * +t;
|
|
333
|
+
}], SS: [W, function(t) {
|
|
334
|
+
this.milliseconds = 10 * +t;
|
|
335
|
+
}], SSS: [/\d{3}/, function(t) {
|
|
336
|
+
this.milliseconds = +t;
|
|
337
|
+
}], s: [C, l("seconds")], ss: [C, l("seconds")], m: [C, l("minutes")], mm: [C, l("minutes")], H: [C, l("hours")], h: [C, l("hours")], HH: [C, l("hours")], hh: [C, l("hours")], D: [C, l("day")], DD: [W, l("day")], Do: [Y, function(t) {
|
|
338
|
+
var c = w.ordinal, v = t.match(/\d+/);
|
|
339
|
+
if (this.day = v[0], c)
|
|
340
|
+
for (var y = 1; y <= 31; y += 1)
|
|
341
|
+
c(y).replace(/\[|\]/g, "") === t && (this.day = y);
|
|
342
|
+
}], M: [C, l("month")], MM: [W, l("month")], MMM: [Y, function(t) {
|
|
343
|
+
var c = H("months"), v = (H("monthsShort") || c.map(function(y) {
|
|
344
|
+
return y.slice(0, 3);
|
|
345
|
+
})).indexOf(t) + 1;
|
|
346
|
+
if (v < 1)
|
|
347
|
+
throw new Error();
|
|
348
|
+
this.month = v % 12 || v;
|
|
349
|
+
}], MMMM: [Y, function(t) {
|
|
350
|
+
var c = H("months").indexOf(t) + 1;
|
|
351
|
+
if (c < 1)
|
|
352
|
+
throw new Error();
|
|
353
|
+
this.month = c % 12 || c;
|
|
354
|
+
}], Y: [/[+-]?\d+/, l("year")], YY: [W, function(t) {
|
|
355
|
+
this.year = M(t);
|
|
356
|
+
}], YYYY: [/\d{4}/, l("year")], Z: L, ZZ: L };
|
|
357
|
+
function k(t) {
|
|
358
|
+
var c, v;
|
|
359
|
+
c = t, v = w && w.formats;
|
|
360
|
+
for (var y = (t = c.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(p, h, a) {
|
|
361
|
+
var T = a && a.toUpperCase();
|
|
362
|
+
return h || v[a] || S[a] || v[T].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(U, o, s) {
|
|
363
|
+
return o || s.slice(1);
|
|
364
|
+
});
|
|
365
|
+
})).match(g), O = y.length, A = 0; A < O; A += 1) {
|
|
366
|
+
var _ = y[A], m = x[_], i = m && m[0], e = m && m[1];
|
|
367
|
+
y[A] = e ? { regex: i, parser: e } : _.replace(/^\[|\]$/g, "");
|
|
368
|
+
}
|
|
369
|
+
return function(p) {
|
|
370
|
+
for (var h = {}, a = 0, T = 0; a < O; a += 1) {
|
|
371
|
+
var U = y[a];
|
|
372
|
+
if (typeof U == "string")
|
|
373
|
+
T += U.length;
|
|
374
|
+
else {
|
|
375
|
+
var o = U.regex, s = U.parser, n = p.slice(T), u = o.exec(n)[0];
|
|
376
|
+
s.call(h, u), p = p.replace(u, "");
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
return function(r) {
|
|
380
|
+
var d = r.afternoon;
|
|
381
|
+
if (d !== void 0) {
|
|
382
|
+
var $ = r.hours;
|
|
383
|
+
d ? $ < 12 && (r.hours += 12) : $ === 12 && (r.hours = 0), delete r.afternoon;
|
|
384
|
+
}
|
|
385
|
+
}(h), h;
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
return function(t, c, v) {
|
|
389
|
+
v.p.customParseFormat = !0, t && t.parseTwoDigitYear && (M = t.parseTwoDigitYear);
|
|
390
|
+
var y = c.prototype, O = y.parse;
|
|
391
|
+
y.parse = function(A) {
|
|
392
|
+
var _ = A.date, m = A.utc, i = A.args;
|
|
393
|
+
this.$u = m;
|
|
394
|
+
var e = i[1];
|
|
395
|
+
if (typeof e == "string") {
|
|
396
|
+
var p = i[2] === !0, h = i[3] === !0, a = p || h, T = i[2];
|
|
397
|
+
h && (T = i[2]), w = this.$locale(), !p && T && (w = v.Ls[T]), this.$d = function(n, u, r) {
|
|
398
|
+
try {
|
|
399
|
+
if (["x", "X"].indexOf(u) > -1)
|
|
400
|
+
return new Date((u === "X" ? 1e3 : 1) * n);
|
|
401
|
+
var d = k(u)(n), $ = d.year, b = d.month, I = d.day, Z = d.hours, F = d.minutes, P = d.seconds, q = d.milliseconds, V = d.zone, B = /* @__PURE__ */ new Date(), J = I || ($ || b ? 1 : B.getDate()), N = $ || B.getFullYear(), j = 0;
|
|
402
|
+
$ && !b || (j = b > 0 ? b - 1 : B.getMonth());
|
|
403
|
+
var X = Z || 0, G = F || 0, et = P || 0, nt = q || 0;
|
|
404
|
+
return V ? new Date(Date.UTC(N, j, J, X, G, et, nt + 60 * V.offset * 1e3)) : r ? new Date(Date.UTC(N, j, J, X, G, et, nt)) : new Date(N, j, J, X, G, et, nt);
|
|
405
|
+
} catch (Ot) {
|
|
406
|
+
return /* @__PURE__ */ new Date("");
|
|
407
|
+
}
|
|
408
|
+
}(_, e, m), this.init(), T && T !== !0 && (this.$L = this.locale(T).$L), a && _ != this.format(e) && (this.$d = /* @__PURE__ */ new Date("")), w = {};
|
|
409
|
+
} else if (e instanceof Array)
|
|
410
|
+
for (var U = e.length, o = 1; o <= U; o += 1) {
|
|
411
|
+
i[1] = e[o - 1];
|
|
412
|
+
var s = v.apply(this, i);
|
|
413
|
+
if (s.isValid()) {
|
|
414
|
+
this.$d = s.$d, this.$L = s.$L, this.init();
|
|
415
|
+
break;
|
|
416
|
+
}
|
|
417
|
+
o === U && (this.$d = /* @__PURE__ */ new Date(""));
|
|
418
|
+
}
|
|
419
|
+
else
|
|
420
|
+
O.call(this, A);
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
});
|
|
424
|
+
})(st);
|
|
425
|
+
var dt = st.exports;
|
|
426
|
+
const lt = /* @__PURE__ */ R(dt);
|
|
427
|
+
var it = { exports: {} };
|
|
428
|
+
(function(f, z) {
|
|
429
|
+
(function(S, g) {
|
|
430
|
+
f.exports = g();
|
|
431
|
+
})(Q, function() {
|
|
432
|
+
var S = "week", g = "year";
|
|
433
|
+
return function(W, C, Y) {
|
|
434
|
+
var w = C.prototype;
|
|
435
|
+
w.week = function(M) {
|
|
436
|
+
if (M === void 0 && (M = null), M !== null)
|
|
437
|
+
return this.add(7 * (M - this.week()), "day");
|
|
438
|
+
var l = this.$locale().yearStart || 1;
|
|
439
|
+
if (this.month() === 11 && this.date() > 25) {
|
|
440
|
+
var L = Y(this).startOf(g).add(1, g).date(l), H = Y(this).endOf(S);
|
|
441
|
+
if (L.isBefore(H))
|
|
442
|
+
return 1;
|
|
443
|
+
}
|
|
444
|
+
var D = Y(this).startOf(g).date(l).startOf(S).subtract(1, "millisecond"), x = this.diff(D, S, !0);
|
|
445
|
+
return x < 0 ? Y(this).startOf("week").week() : Math.ceil(x);
|
|
446
|
+
}, w.weeks = function(M) {
|
|
447
|
+
return M === void 0 && (M = null), this.week(M);
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
});
|
|
451
|
+
})(it);
|
|
452
|
+
var mt = it.exports;
|
|
453
|
+
const $t = /* @__PURE__ */ R(mt);
|
|
454
|
+
var ot = { exports: {} };
|
|
455
|
+
(function(f, z) {
|
|
456
|
+
(function(S, g) {
|
|
457
|
+
f.exports = g();
|
|
458
|
+
})(Q, function() {
|
|
459
|
+
var S = "minute", g = /[+-]\d\d(?::?\d\d)?/g, W = /([+-]|\d\d)/g;
|
|
460
|
+
return function(C, Y, w) {
|
|
461
|
+
var M = Y.prototype;
|
|
462
|
+
w.utc = function(t) {
|
|
463
|
+
var c = { date: t, utc: !0, args: arguments };
|
|
464
|
+
return new Y(c);
|
|
465
|
+
}, M.utc = function(t) {
|
|
466
|
+
var c = w(this.toDate(), { locale: this.$L, utc: !0 });
|
|
467
|
+
return t ? c.add(this.utcOffset(), S) : c;
|
|
468
|
+
}, M.local = function() {
|
|
469
|
+
return w(this.toDate(), { locale: this.$L, utc: !1 });
|
|
470
|
+
};
|
|
471
|
+
var l = M.parse;
|
|
472
|
+
M.parse = function(t) {
|
|
473
|
+
t.utc && (this.$u = !0), this.$utils().u(t.$offset) || (this.$offset = t.$offset), l.call(this, t);
|
|
474
|
+
};
|
|
475
|
+
var L = M.init;
|
|
476
|
+
M.init = function() {
|
|
477
|
+
if (this.$u) {
|
|
478
|
+
var t = this.$d;
|
|
479
|
+
this.$y = t.getUTCFullYear(), this.$M = t.getUTCMonth(), this.$D = t.getUTCDate(), this.$W = t.getUTCDay(), this.$H = t.getUTCHours(), this.$m = t.getUTCMinutes(), this.$s = t.getUTCSeconds(), this.$ms = t.getUTCMilliseconds();
|
|
480
|
+
} else
|
|
481
|
+
L.call(this);
|
|
482
|
+
};
|
|
483
|
+
var H = M.utcOffset;
|
|
484
|
+
M.utcOffset = function(t, c) {
|
|
485
|
+
var v = this.$utils().u;
|
|
486
|
+
if (v(t))
|
|
487
|
+
return this.$u ? 0 : v(this.$offset) ? H.call(this) : this.$offset;
|
|
488
|
+
if (typeof t == "string" && (t = function(_) {
|
|
489
|
+
_ === void 0 && (_ = "");
|
|
490
|
+
var m = _.match(g);
|
|
491
|
+
if (!m)
|
|
492
|
+
return null;
|
|
493
|
+
var i = ("" + m[0]).match(W) || ["-", 0, 0], e = i[0], p = 60 * +i[1] + +i[2];
|
|
494
|
+
return p === 0 ? 0 : e === "+" ? p : -p;
|
|
495
|
+
}(t), t === null))
|
|
496
|
+
return this;
|
|
497
|
+
var y = Math.abs(t) <= 16 ? 60 * t : t, O = this;
|
|
498
|
+
if (c)
|
|
499
|
+
return O.$offset = y, O.$u = t === 0, O;
|
|
500
|
+
if (t !== 0) {
|
|
501
|
+
var A = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
502
|
+
(O = this.local().add(y + A, S)).$offset = y, O.$x.$localOffset = A;
|
|
503
|
+
} else
|
|
504
|
+
O = this.utc();
|
|
505
|
+
return O;
|
|
506
|
+
};
|
|
507
|
+
var D = M.format;
|
|
508
|
+
M.format = function(t) {
|
|
509
|
+
var c = t || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
510
|
+
return D.call(this, c);
|
|
511
|
+
}, M.valueOf = function() {
|
|
512
|
+
var t = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
513
|
+
return this.$d.valueOf() - 6e4 * t;
|
|
514
|
+
}, M.isUTC = function() {
|
|
515
|
+
return !!this.$u;
|
|
516
|
+
}, M.toISOString = function() {
|
|
517
|
+
return this.toDate().toISOString();
|
|
518
|
+
}, M.toString = function() {
|
|
519
|
+
return this.toDate().toUTCString();
|
|
520
|
+
};
|
|
521
|
+
var x = M.toDate;
|
|
522
|
+
M.toDate = function(t) {
|
|
523
|
+
return t === "s" && this.$offset ? w(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : x.call(this);
|
|
524
|
+
};
|
|
525
|
+
var k = M.diff;
|
|
526
|
+
M.diff = function(t, c, v) {
|
|
527
|
+
if (t && this.$u === t.$u)
|
|
528
|
+
return k.call(this, t, c, v);
|
|
529
|
+
var y = this.local(), O = w(t).local();
|
|
530
|
+
return k.call(y, O, c, v);
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
});
|
|
534
|
+
})(ot);
|
|
535
|
+
var vt = ot.exports;
|
|
536
|
+
const gt = /* @__PURE__ */ R(vt);
|
|
537
|
+
var at = { exports: {} };
|
|
538
|
+
(function(f, z) {
|
|
539
|
+
(function(S, g) {
|
|
540
|
+
f.exports = g();
|
|
541
|
+
})(Q, function() {
|
|
542
|
+
var S = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, g = {};
|
|
543
|
+
return function(W, C, Y) {
|
|
544
|
+
var w, M = function(D, x, k) {
|
|
545
|
+
k === void 0 && (k = {});
|
|
546
|
+
var t = new Date(D), c = function(v, y) {
|
|
547
|
+
y === void 0 && (y = {});
|
|
548
|
+
var O = y.timeZoneName || "short", A = v + "|" + O, _ = g[A];
|
|
549
|
+
return _ || (_ = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: v, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: O }), g[A] = _), _;
|
|
550
|
+
}(x, k);
|
|
551
|
+
return c.formatToParts(t);
|
|
552
|
+
}, l = function(D, x) {
|
|
553
|
+
for (var k = M(D, x), t = [], c = 0; c < k.length; c += 1) {
|
|
554
|
+
var v = k[c], y = v.type, O = v.value, A = S[y];
|
|
555
|
+
A >= 0 && (t[A] = parseInt(O, 10));
|
|
556
|
+
}
|
|
557
|
+
var _ = t[3], m = _ === 24 ? 0 : _, i = t[0] + "-" + t[1] + "-" + t[2] + " " + m + ":" + t[4] + ":" + t[5] + ":000", e = +D;
|
|
558
|
+
return (Y.utc(i).valueOf() - (e -= e % 1e3)) / 6e4;
|
|
559
|
+
}, L = C.prototype;
|
|
560
|
+
L.tz = function(D, x) {
|
|
561
|
+
D === void 0 && (D = w);
|
|
562
|
+
var k = this.utcOffset(), t = this.toDate(), c = t.toLocaleString("en-US", { timeZone: D }), v = Math.round((t - new Date(c)) / 1e3 / 60), y = Y(c, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(15 * -Math.round(t.getTimezoneOffset() / 15) - v, !0);
|
|
563
|
+
if (x) {
|
|
564
|
+
var O = y.utcOffset();
|
|
565
|
+
y = y.add(k - O, "minute");
|
|
566
|
+
}
|
|
567
|
+
return y.$x.$timezone = D, y;
|
|
568
|
+
}, L.offsetName = function(D) {
|
|
569
|
+
var x = this.$x.$timezone || Y.tz.guess(), k = M(this.valueOf(), x, { timeZoneName: D }).find(function(t) {
|
|
570
|
+
return t.type.toLowerCase() === "timezonename";
|
|
571
|
+
});
|
|
572
|
+
return k && k.value;
|
|
573
|
+
};
|
|
574
|
+
var H = L.startOf;
|
|
575
|
+
L.startOf = function(D, x) {
|
|
576
|
+
if (!this.$x || !this.$x.$timezone)
|
|
577
|
+
return H.call(this, D, x);
|
|
578
|
+
var k = Y(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
579
|
+
return H.call(k, D, x).tz(this.$x.$timezone, !0);
|
|
580
|
+
}, Y.tz = function(D, x, k) {
|
|
581
|
+
var t = k && x, c = k || x || w, v = l(+Y(), c);
|
|
582
|
+
if (typeof D != "string")
|
|
583
|
+
return Y(D).tz(c);
|
|
584
|
+
var y = function(m, i, e) {
|
|
585
|
+
var p = m - 60 * i * 1e3, h = l(p, e);
|
|
586
|
+
if (i === h)
|
|
587
|
+
return [p, i];
|
|
588
|
+
var a = l(p -= 60 * (h - i) * 1e3, e);
|
|
589
|
+
return h === a ? [p, h] : [m - 60 * Math.min(h, a) * 1e3, Math.max(h, a)];
|
|
590
|
+
}(Y.utc(D, t).valueOf(), v, c), O = y[0], A = y[1], _ = Y(O).utcOffset(A);
|
|
591
|
+
return _.$x.$timezone = c, _;
|
|
592
|
+
}, Y.tz.guess = function() {
|
|
593
|
+
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
594
|
+
}, Y.tz.setDefault = function(D) {
|
|
595
|
+
w = D;
|
|
596
|
+
};
|
|
597
|
+
};
|
|
598
|
+
});
|
|
599
|
+
})(at);
|
|
600
|
+
var yt = at.exports;
|
|
601
|
+
const pt = /* @__PURE__ */ R(yt);
|
|
602
|
+
var ut = { exports: {} };
|
|
603
|
+
(function(f, z) {
|
|
604
|
+
(function(S, g) {
|
|
605
|
+
f.exports = g();
|
|
606
|
+
})(Q, function() {
|
|
607
|
+
var S = "day";
|
|
608
|
+
return function(g, W, C) {
|
|
609
|
+
var Y = function(l) {
|
|
610
|
+
return l.add(4 - l.isoWeekday(), S);
|
|
611
|
+
}, w = W.prototype;
|
|
612
|
+
w.isoWeekYear = function() {
|
|
613
|
+
return Y(this).year();
|
|
614
|
+
}, w.isoWeek = function(l) {
|
|
615
|
+
if (!this.$utils().u(l))
|
|
616
|
+
return this.add(7 * (l - this.isoWeek()), S);
|
|
617
|
+
var L, H, D, x, k = Y(this), t = (L = this.isoWeekYear(), H = this.$u, D = (H ? C.utc : C)().year(L).startOf("year"), x = 4 - D.isoWeekday(), D.isoWeekday() > 4 && (x += 7), D.add(x, S));
|
|
618
|
+
return k.diff(t, "week") + 1;
|
|
619
|
+
}, w.isoWeekday = function(l) {
|
|
620
|
+
return this.$utils().u(l) ? this.day() || 7 : this.day(this.day() % 7 ? l : l - 7);
|
|
621
|
+
};
|
|
622
|
+
var M = w.startOf;
|
|
623
|
+
w.startOf = function(l, L) {
|
|
624
|
+
var H = this.$utils(), D = !!H.u(L) || L;
|
|
625
|
+
return H.p(l) === "isoweek" ? D ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : M.bind(this)(l, L);
|
|
626
|
+
};
|
|
627
|
+
};
|
|
628
|
+
});
|
|
629
|
+
})(ut);
|
|
630
|
+
var Mt = ut.exports;
|
|
631
|
+
const Dt = /* @__PURE__ */ R(Mt);
|
|
632
|
+
var ct = { exports: {} };
|
|
633
|
+
(function(f, z) {
|
|
634
|
+
(function(S, g) {
|
|
635
|
+
f.exports = g();
|
|
636
|
+
})(Q, function() {
|
|
637
|
+
var S, g, W = 1e3, C = 6e4, Y = 36e5, w = 864e5, M = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, l = 31536e6, L = 2628e6, H = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, D = { years: l, months: L, days: w, hours: Y, minutes: C, seconds: W, milliseconds: 1, weeks: 6048e5 }, x = function(m) {
|
|
638
|
+
return m instanceof A;
|
|
639
|
+
}, k = function(m, i, e) {
|
|
640
|
+
return new A(m, e, i.$l);
|
|
641
|
+
}, t = function(m) {
|
|
642
|
+
return g.p(m) + "s";
|
|
643
|
+
}, c = function(m) {
|
|
644
|
+
return m < 0;
|
|
645
|
+
}, v = function(m) {
|
|
646
|
+
return c(m) ? Math.ceil(m) : Math.floor(m);
|
|
647
|
+
}, y = function(m) {
|
|
648
|
+
return Math.abs(m);
|
|
649
|
+
}, O = function(m, i) {
|
|
650
|
+
return m ? c(m) ? { negative: !0, format: "" + y(m) + i } : { negative: !1, format: "" + m + i } : { negative: !1, format: "" };
|
|
651
|
+
}, A = function() {
|
|
652
|
+
function m(e, p, h) {
|
|
653
|
+
var a = this;
|
|
654
|
+
if (this.$d = {}, this.$l = h, e === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), p)
|
|
655
|
+
return k(e * D[t(p)], this);
|
|
656
|
+
if (typeof e == "number")
|
|
657
|
+
return this.$ms = e, this.parseFromMilliseconds(), this;
|
|
658
|
+
if (typeof e == "object")
|
|
659
|
+
return Object.keys(e).forEach(function(o) {
|
|
660
|
+
a.$d[t(o)] = e[o];
|
|
661
|
+
}), this.calMilliseconds(), this;
|
|
662
|
+
if (typeof e == "string") {
|
|
663
|
+
var T = e.match(H);
|
|
664
|
+
if (T) {
|
|
665
|
+
var U = T.slice(2).map(function(o) {
|
|
666
|
+
return o != null ? Number(o) : 0;
|
|
667
|
+
});
|
|
668
|
+
return this.$d.years = U[0], this.$d.months = U[1], this.$d.weeks = U[2], this.$d.days = U[3], this.$d.hours = U[4], this.$d.minutes = U[5], this.$d.seconds = U[6], this.calMilliseconds(), this;
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
return this;
|
|
672
|
+
}
|
|
673
|
+
var i = m.prototype;
|
|
674
|
+
return i.calMilliseconds = function() {
|
|
675
|
+
var e = this;
|
|
676
|
+
this.$ms = Object.keys(this.$d).reduce(function(p, h) {
|
|
677
|
+
return p + (e.$d[h] || 0) * D[h];
|
|
678
|
+
}, 0);
|
|
679
|
+
}, i.parseFromMilliseconds = function() {
|
|
680
|
+
var e = this.$ms;
|
|
681
|
+
this.$d.years = v(e / l), e %= l, this.$d.months = v(e / L), e %= L, this.$d.days = v(e / w), e %= w, this.$d.hours = v(e / Y), e %= Y, this.$d.minutes = v(e / C), e %= C, this.$d.seconds = v(e / W), e %= W, this.$d.milliseconds = e;
|
|
682
|
+
}, i.toISOString = function() {
|
|
683
|
+
var e = O(this.$d.years, "Y"), p = O(this.$d.months, "M"), h = +this.$d.days || 0;
|
|
684
|
+
this.$d.weeks && (h += 7 * this.$d.weeks);
|
|
685
|
+
var a = O(h, "D"), T = O(this.$d.hours, "H"), U = O(this.$d.minutes, "M"), o = this.$d.seconds || 0;
|
|
686
|
+
this.$d.milliseconds && (o += this.$d.milliseconds / 1e3, o = Math.round(1e3 * o) / 1e3);
|
|
687
|
+
var s = O(o, "S"), n = e.negative || p.negative || a.negative || T.negative || U.negative || s.negative, u = T.format || U.format || s.format ? "T" : "", r = (n ? "-" : "") + "P" + e.format + p.format + a.format + u + T.format + U.format + s.format;
|
|
688
|
+
return r === "P" || r === "-P" ? "P0D" : r;
|
|
689
|
+
}, i.toJSON = function() {
|
|
690
|
+
return this.toISOString();
|
|
691
|
+
}, i.format = function(e) {
|
|
692
|
+
var p = e || "YYYY-MM-DDTHH:mm:ss", h = { Y: this.$d.years, YY: g.s(this.$d.years, 2, "0"), YYYY: g.s(this.$d.years, 4, "0"), M: this.$d.months, MM: g.s(this.$d.months, 2, "0"), D: this.$d.days, DD: g.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: g.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: g.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: g.s(this.$d.seconds, 2, "0"), SSS: g.s(this.$d.milliseconds, 3, "0") };
|
|
693
|
+
return p.replace(M, function(a, T) {
|
|
694
|
+
return T || String(h[a]);
|
|
695
|
+
});
|
|
696
|
+
}, i.as = function(e) {
|
|
697
|
+
return this.$ms / D[t(e)];
|
|
698
|
+
}, i.get = function(e) {
|
|
699
|
+
var p = this.$ms, h = t(e);
|
|
700
|
+
return h === "milliseconds" ? p %= 1e3 : p = h === "weeks" ? v(p / D[h]) : this.$d[h], p || 0;
|
|
701
|
+
}, i.add = function(e, p, h) {
|
|
702
|
+
var a;
|
|
703
|
+
return a = p ? e * D[t(p)] : x(e) ? e.$ms : k(e, this).$ms, k(this.$ms + a * (h ? -1 : 1), this);
|
|
704
|
+
}, i.subtract = function(e, p) {
|
|
705
|
+
return this.add(e, p, !0);
|
|
706
|
+
}, i.locale = function(e) {
|
|
707
|
+
var p = this.clone();
|
|
708
|
+
return p.$l = e, p;
|
|
709
|
+
}, i.clone = function() {
|
|
710
|
+
return k(this.$ms, this);
|
|
711
|
+
}, i.humanize = function(e) {
|
|
712
|
+
return S().add(this.$ms, "ms").locale(this.$l).fromNow(!e);
|
|
713
|
+
}, i.valueOf = function() {
|
|
714
|
+
return this.asMilliseconds();
|
|
715
|
+
}, i.milliseconds = function() {
|
|
716
|
+
return this.get("milliseconds");
|
|
717
|
+
}, i.asMilliseconds = function() {
|
|
718
|
+
return this.as("milliseconds");
|
|
719
|
+
}, i.seconds = function() {
|
|
720
|
+
return this.get("seconds");
|
|
721
|
+
}, i.asSeconds = function() {
|
|
722
|
+
return this.as("seconds");
|
|
723
|
+
}, i.minutes = function() {
|
|
724
|
+
return this.get("minutes");
|
|
725
|
+
}, i.asMinutes = function() {
|
|
726
|
+
return this.as("minutes");
|
|
727
|
+
}, i.hours = function() {
|
|
728
|
+
return this.get("hours");
|
|
729
|
+
}, i.asHours = function() {
|
|
730
|
+
return this.as("hours");
|
|
731
|
+
}, i.days = function() {
|
|
732
|
+
return this.get("days");
|
|
733
|
+
}, i.asDays = function() {
|
|
734
|
+
return this.as("days");
|
|
735
|
+
}, i.weeks = function() {
|
|
736
|
+
return this.get("weeks");
|
|
737
|
+
}, i.asWeeks = function() {
|
|
738
|
+
return this.as("weeks");
|
|
739
|
+
}, i.months = function() {
|
|
740
|
+
return this.get("months");
|
|
741
|
+
}, i.asMonths = function() {
|
|
742
|
+
return this.as("months");
|
|
743
|
+
}, i.years = function() {
|
|
744
|
+
return this.get("years");
|
|
745
|
+
}, i.asYears = function() {
|
|
746
|
+
return this.as("years");
|
|
747
|
+
}, m;
|
|
748
|
+
}(), _ = function(m, i, e) {
|
|
749
|
+
return m.add(i.years() * e, "y").add(i.months() * e, "M").add(i.days() * e, "d").add(i.hours() * e, "h").add(i.minutes() * e, "m").add(i.seconds() * e, "s").add(i.milliseconds() * e, "ms");
|
|
750
|
+
};
|
|
751
|
+
return function(m, i, e) {
|
|
752
|
+
S = e, g = e().$utils(), e.duration = function(a, T) {
|
|
753
|
+
var U = e.locale();
|
|
754
|
+
return k(a, { $l: U }, T);
|
|
755
|
+
}, e.isDuration = x;
|
|
756
|
+
var p = i.prototype.add, h = i.prototype.subtract;
|
|
757
|
+
i.prototype.add = function(a, T) {
|
|
758
|
+
return x(a) ? _(this, a, 1) : p.bind(this)(a, T);
|
|
759
|
+
}, i.prototype.subtract = function(a, T) {
|
|
760
|
+
return x(a) ? _(this, a, -1) : h.bind(this)(a, T);
|
|
761
|
+
};
|
|
762
|
+
};
|
|
763
|
+
});
|
|
764
|
+
})(ct);
|
|
765
|
+
var St = ct.exports;
|
|
766
|
+
const Yt = /* @__PURE__ */ R(St);
|
|
767
|
+
E.extend(pt);
|
|
768
|
+
E.extend(gt);
|
|
769
|
+
E.extend($t);
|
|
770
|
+
E.extend(Dt);
|
|
771
|
+
E.extend(Yt);
|
|
772
|
+
E.extend(lt);
|
|
773
|
+
const tt = "YYYY-MM-DD HH:mm:ss", K = (f) => {
|
|
774
|
+
const z = new Date(f);
|
|
775
|
+
if (!isNaN(z.getTime())) {
|
|
776
|
+
const S = z.getFullYear(), g = z.getMonth() + 1;
|
|
777
|
+
return z.getDate() === 29 && g === 2 ? S % 4 === 0 && S % 100 !== 0 || S % 400 === 0 : !0;
|
|
778
|
+
}
|
|
779
|
+
return !isNaN(z.getTime());
|
|
780
|
+
}, xt = (f, z, S = "") => !f || !K(f) ? S : E(f).utc().tz("Asia/Shanghai").format(z || tt), kt = (f, z, S = "") => !f || !K(f) ? S : E(f).utc().tz("Europe/Paris").format(z || tt), Tt = (f, z = "") => {
|
|
781
|
+
if (!f || !K(f))
|
|
782
|
+
return z;
|
|
783
|
+
const S = new Date(E(f).format(tt)).getTime(), g = new Date(E(f).utc().format(tt)).getTime(), W = (S - g) / (1e3 * 3600);
|
|
784
|
+
return W > 0 ? E(f).utc().add(W, "hours").toDate() : E(f).utc().subtract(W, "hours").toDate();
|
|
785
|
+
}, ft = (f, z) => {
|
|
786
|
+
if (!f || !K(f))
|
|
787
|
+
return "";
|
|
788
|
+
const S = E(f).utcOffset(), g = E(f).tz(z).utcOffset(), W = S - g;
|
|
789
|
+
return W > 0 ? E(f).add(W, "minutes").toDate() : E(f).subtract(W, "minutes").toDate();
|
|
790
|
+
}, bt = (f, z = "") => !f || !K(f) ? z : ft(f, "Asia/Shanghai"), Ht = (f, z = "") => !f || !K(f) ? z : ft(f, "Europe/Paris"), _t = {
|
|
791
|
+
get(f) {
|
|
792
|
+
return localStorage.getItem(f);
|
|
793
|
+
},
|
|
794
|
+
set(f, z) {
|
|
795
|
+
localStorage.setItem(f, z);
|
|
796
|
+
},
|
|
797
|
+
remove(f) {
|
|
798
|
+
localStorage.removeItem(f);
|
|
799
|
+
},
|
|
800
|
+
// 保存token到本地缓存
|
|
801
|
+
setToken(f) {
|
|
802
|
+
this.set("token", f);
|
|
803
|
+
},
|
|
804
|
+
// 保存用户信息到本地缓存
|
|
805
|
+
setAuth(f) {
|
|
806
|
+
this.set("auth", JSON.stringify(f));
|
|
807
|
+
},
|
|
808
|
+
// 读取token
|
|
809
|
+
getToken() {
|
|
810
|
+
return this.get("token");
|
|
811
|
+
},
|
|
812
|
+
// 读取用户信息
|
|
813
|
+
getAuth() {
|
|
814
|
+
return this.get("auth") ? JSON.parse(this.get("auth")) : {};
|
|
815
|
+
}
|
|
816
|
+
};
|
|
817
|
+
export {
|
|
818
|
+
E as dayjs,
|
|
819
|
+
Wt as debounce,
|
|
820
|
+
K as isValidDate,
|
|
821
|
+
bt as local_cn_date,
|
|
822
|
+
Ht as local_fr_date,
|
|
823
|
+
ft as local_tz_date,
|
|
824
|
+
Tt as local_utc_date,
|
|
825
|
+
_t as storage,
|
|
826
|
+
xt as utc_cn,
|
|
827
|
+
kt as utc_fr
|
|
828
|
+
};
|