@ftlab/one-vue3 0.3.5 → 0.3.6
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 -24
- package/.prettierrc.cjs +17 -17
- package/CHANGELOG.md +24 -8
- package/README.md +61 -61
- package/assets/css/index.scss +25 -25
- package/assets/css/mixin.scss +142 -142
- package/assets/css/public.scss +175 -175
- package/dist/{CheckMessageDialog-77c20697.js → CheckMessageDialog-b14c785b.js} +30 -30
- package/dist/ftlOne.js +1 -1
- package/dist/{index-99103fbf.js → index-5e152029.js} +423 -421
- package/dist/style.css +1 -1
- package/dist/utils.js +273 -355
- package/function/index.ts +4 -4
- package/function/info.ts +17 -17
- package/function/permission.ts +17 -17
- package/global.d.ts +63 -63
- package/i18n/cn.json +22 -22
- package/i18n/en.json +22 -22
- package/i18n/fr.json +22 -22
- package/package.json +92 -92
package/dist/utils.js
CHANGED
|
@@ -1,275 +1,193 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { d as
|
|
3
|
-
import { s as
|
|
4
|
-
var
|
|
5
|
-
(function(
|
|
6
|
-
(function(g,
|
|
7
|
-
|
|
8
|
-
})(
|
|
9
|
-
var g = 1e3,
|
|
10
|
-
var n = ["th", "st", "nd", "rd"], t =
|
|
11
|
-
return "[" +
|
|
12
|
-
} }, M = function(
|
|
13
|
-
var
|
|
14
|
-
return !
|
|
15
|
-
},
|
|
16
|
-
var n = -
|
|
17
|
-
return (n <= 0 ? "+" : "-") + M(
|
|
18
|
-
}, m: function
|
|
1
|
+
import { c as R, g as K } from "./utils-0eda3e43.js";
|
|
2
|
+
import { d as gt } from "./utils-0eda3e43.js";
|
|
3
|
+
import { s as Mt } from "./storage-9f2ae3ed.js";
|
|
4
|
+
var tt = { exports: {} };
|
|
5
|
+
(function(a, S) {
|
|
6
|
+
(function(g, O) {
|
|
7
|
+
a.exports = O();
|
|
8
|
+
})(R, function() {
|
|
9
|
+
var g = 1e3, O = 6e4, C = 36e5, k = "millisecond", y = "second", _ = "minute", c = "hour", U = "day", A = "week", Y = "month", m = "quarter", v = "year", d = "date", r = "Invalid Date", l = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, w = /\[([^\]]+)]|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, D = { 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(i) {
|
|
10
|
+
var n = ["th", "st", "nd", "rd"], t = i % 100;
|
|
11
|
+
return "[" + i + (n[(t - 20) % 10] || n[t] || n[0]) + "]";
|
|
12
|
+
} }, M = function(i, n, t) {
|
|
13
|
+
var s = String(i);
|
|
14
|
+
return !s || s.length >= n ? i : "" + Array(n + 1 - s.length).join(t) + i;
|
|
15
|
+
}, L = { s: M, z: function(i) {
|
|
16
|
+
var n = -i.utcOffset(), t = Math.abs(n), s = Math.floor(t / 60), e = t % 60;
|
|
17
|
+
return (n <= 0 ? "+" : "-") + M(s, 2, "0") + ":" + M(e, 2, "0");
|
|
18
|
+
}, m: function i(n, t) {
|
|
19
19
|
if (n.date() < t.date())
|
|
20
|
-
return -
|
|
21
|
-
var
|
|
22
|
-
return +(-(
|
|
23
|
-
}, a: function(
|
|
24
|
-
return
|
|
25
|
-
}, p: function(
|
|
26
|
-
return { M: Y, y: v, w:
|
|
27
|
-
}, u: function(
|
|
28
|
-
return
|
|
29
|
-
} }, x = "en",
|
|
30
|
-
|
|
31
|
-
var
|
|
32
|
-
return
|
|
33
|
-
},
|
|
20
|
+
return -i(t, n);
|
|
21
|
+
var s = 12 * (t.year() - n.year()) + (t.month() - n.month()), e = n.clone().add(s, Y), o = t - e < 0, u = n.clone().add(s + (o ? -1 : 1), Y);
|
|
22
|
+
return +(-(s + (t - e) / (o ? e - u : u - e)) || 0);
|
|
23
|
+
}, a: function(i) {
|
|
24
|
+
return i < 0 ? Math.ceil(i) || 0 : Math.floor(i);
|
|
25
|
+
}, p: function(i) {
|
|
26
|
+
return { M: Y, y: v, w: A, d: U, D: d, h: c, m: _, s: y, ms: k, Q: m }[i] || String(i || "").toLowerCase().replace(/s$/, "");
|
|
27
|
+
}, u: function(i) {
|
|
28
|
+
return i === void 0;
|
|
29
|
+
} }, x = "en", H = {};
|
|
30
|
+
H[x] = D;
|
|
31
|
+
var b = function(i) {
|
|
32
|
+
return i instanceof W;
|
|
33
|
+
}, N = function i(n, t, s) {
|
|
34
34
|
var e;
|
|
35
35
|
if (!n)
|
|
36
36
|
return x;
|
|
37
37
|
if (typeof n == "string") {
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
var
|
|
41
|
-
if (!e &&
|
|
42
|
-
return
|
|
38
|
+
var o = n.toLowerCase();
|
|
39
|
+
H[o] && (e = o), t && (H[o] = t, e = o);
|
|
40
|
+
var u = n.split("-");
|
|
41
|
+
if (!e && u.length > 1)
|
|
42
|
+
return i(u[0]);
|
|
43
43
|
} else {
|
|
44
|
-
var
|
|
45
|
-
|
|
44
|
+
var h = n.name;
|
|
45
|
+
H[h] = n, e = h;
|
|
46
46
|
}
|
|
47
|
-
return !
|
|
48
|
-
},
|
|
49
|
-
if (
|
|
50
|
-
return
|
|
47
|
+
return !s && e && (x = e), e || !s && x;
|
|
48
|
+
}, $ = function(i, n) {
|
|
49
|
+
if (b(i))
|
|
50
|
+
return i.clone();
|
|
51
51
|
var t = typeof n == "object" ? n : {};
|
|
52
|
-
return t.date =
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
return
|
|
52
|
+
return t.date = i, t.args = arguments, new W(t);
|
|
53
|
+
}, f = L;
|
|
54
|
+
f.l = N, f.i = b, f.w = function(i, n) {
|
|
55
|
+
return $(i, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
|
|
56
56
|
};
|
|
57
|
-
var
|
|
58
|
-
function
|
|
59
|
-
this.$L =
|
|
57
|
+
var W = function() {
|
|
58
|
+
function i(t) {
|
|
59
|
+
this.$L = N(t.locale, null, !0), this.parse(t);
|
|
60
60
|
}
|
|
61
|
-
var n =
|
|
61
|
+
var n = i.prototype;
|
|
62
62
|
return n.parse = function(t) {
|
|
63
|
-
this.$d = function(
|
|
64
|
-
var e =
|
|
63
|
+
this.$d = function(s) {
|
|
64
|
+
var e = s.date, o = s.utc;
|
|
65
65
|
if (e === null)
|
|
66
66
|
return /* @__PURE__ */ new Date(NaN);
|
|
67
|
-
if (
|
|
67
|
+
if (f.u(e))
|
|
68
68
|
return /* @__PURE__ */ new Date();
|
|
69
69
|
if (e instanceof Date)
|
|
70
70
|
return new Date(e);
|
|
71
71
|
if (typeof e == "string" && !/Z$/i.test(e)) {
|
|
72
|
-
var
|
|
73
|
-
if (
|
|
74
|
-
var
|
|
75
|
-
return
|
|
72
|
+
var u = e.match(l);
|
|
73
|
+
if (u) {
|
|
74
|
+
var h = u[2] - 1 || 0, T = (u[7] || "0").substring(0, 3);
|
|
75
|
+
return o ? new Date(Date.UTC(u[1], h, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, T)) : new Date(u[1], h, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, T);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
return new Date(e);
|
|
79
|
-
}(t), this.init();
|
|
79
|
+
}(t), this.$x = t.x || {}, this.init();
|
|
80
80
|
}, n.init = function() {
|
|
81
81
|
var t = this.$d;
|
|
82
82
|
this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
|
|
83
83
|
}, n.$utils = function() {
|
|
84
|
-
return
|
|
84
|
+
return f;
|
|
85
85
|
}, n.isValid = function() {
|
|
86
86
|
return this.$d.toString() !== r;
|
|
87
|
-
}, n.isSame = function(t,
|
|
88
|
-
var e =
|
|
89
|
-
return this.startOf(
|
|
90
|
-
}, n.isAfter = function(t,
|
|
91
|
-
return
|
|
92
|
-
}, n.isBefore = function(t,
|
|
93
|
-
return this.endOf(
|
|
94
|
-
}, n.$g = function(t,
|
|
95
|
-
return
|
|
87
|
+
}, n.isSame = function(t, s) {
|
|
88
|
+
var e = $(t);
|
|
89
|
+
return this.startOf(s) <= e && e <= this.endOf(s);
|
|
90
|
+
}, n.isAfter = function(t, s) {
|
|
91
|
+
return $(t) < this.startOf(s);
|
|
92
|
+
}, n.isBefore = function(t, s) {
|
|
93
|
+
return this.endOf(s) < $(t);
|
|
94
|
+
}, n.$g = function(t, s, e) {
|
|
95
|
+
return f.u(t) ? this[s] : this.set(e, t);
|
|
96
96
|
}, n.unix = function() {
|
|
97
97
|
return Math.floor(this.valueOf() / 1e3);
|
|
98
98
|
}, n.valueOf = function() {
|
|
99
99
|
return this.$d.getTime();
|
|
100
|
-
}, n.startOf = function(t,
|
|
101
|
-
var e = this,
|
|
102
|
-
var
|
|
103
|
-
return
|
|
104
|
-
},
|
|
105
|
-
return
|
|
106
|
-
},
|
|
107
|
-
switch (
|
|
100
|
+
}, n.startOf = function(t, s) {
|
|
101
|
+
var e = this, o = !!f.u(s) || s, u = f.p(t), h = function(J, I) {
|
|
102
|
+
var E = f.w(e.$u ? Date.UTC(e.$y, I, J) : new Date(e.$y, I, J), e);
|
|
103
|
+
return o ? E : E.endOf(U);
|
|
104
|
+
}, T = function(J, I) {
|
|
105
|
+
return f.w(e.toDate()[J].apply(e.toDate("s"), (o ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(I)), e);
|
|
106
|
+
}, p = this.$W, z = this.$M, j = this.$D, F = "set" + (this.$u ? "UTC" : "");
|
|
107
|
+
switch (u) {
|
|
108
108
|
case v:
|
|
109
|
-
return
|
|
109
|
+
return o ? h(1, 0) : h(31, 11);
|
|
110
110
|
case Y:
|
|
111
|
-
return
|
|
112
|
-
case
|
|
113
|
-
var
|
|
114
|
-
return
|
|
115
|
-
case
|
|
116
|
-
case
|
|
117
|
-
return
|
|
118
|
-
case
|
|
119
|
-
return
|
|
111
|
+
return o ? h(1, z) : h(0, z + 1);
|
|
112
|
+
case A:
|
|
113
|
+
var V = this.$locale().weekStart || 0, q = (p < V ? p + 7 : p) - V;
|
|
114
|
+
return h(o ? j - q : j + (6 - q), z);
|
|
115
|
+
case U:
|
|
116
|
+
case d:
|
|
117
|
+
return T(F + "Hours", 0);
|
|
118
|
+
case c:
|
|
119
|
+
return T(F + "Minutes", 1);
|
|
120
120
|
case _:
|
|
121
|
-
return
|
|
122
|
-
case
|
|
123
|
-
return
|
|
121
|
+
return T(F + "Seconds", 2);
|
|
122
|
+
case y:
|
|
123
|
+
return T(F + "Milliseconds", 3);
|
|
124
124
|
default:
|
|
125
125
|
return this.clone();
|
|
126
126
|
}
|
|
127
127
|
}, n.endOf = function(t) {
|
|
128
128
|
return this.startOf(t, !1);
|
|
129
|
-
}, n.$set = function(t,
|
|
130
|
-
var e,
|
|
131
|
-
if (
|
|
132
|
-
var
|
|
133
|
-
|
|
129
|
+
}, n.$set = function(t, s) {
|
|
130
|
+
var e, o = f.p(t), u = "set" + (this.$u ? "UTC" : ""), h = (e = {}, e[U] = u + "Date", e[d] = u + "Date", e[Y] = u + "Month", e[v] = u + "FullYear", e[c] = u + "Hours", e[_] = u + "Minutes", e[y] = u + "Seconds", e[k] = u + "Milliseconds", e)[o], T = o === U ? this.$D + (s - this.$W) : s;
|
|
131
|
+
if (o === Y || o === v) {
|
|
132
|
+
var p = this.clone().set(d, 1);
|
|
133
|
+
p.$d[h](T), p.init(), this.$d = p.set(d, Math.min(this.$D, p.daysInMonth())).$d;
|
|
134
134
|
} else
|
|
135
|
-
|
|
135
|
+
h && this.$d[h](T);
|
|
136
136
|
return this.init(), this;
|
|
137
|
-
}, n.set = function(t,
|
|
138
|
-
return this.clone().$set(t,
|
|
137
|
+
}, n.set = function(t, s) {
|
|
138
|
+
return this.clone().$set(t, s);
|
|
139
139
|
}, n.get = function(t) {
|
|
140
|
-
return this[
|
|
141
|
-
}, n.add = function(t,
|
|
142
|
-
var e,
|
|
140
|
+
return this[f.p(t)]();
|
|
141
|
+
}, n.add = function(t, s) {
|
|
142
|
+
var e, o = this;
|
|
143
143
|
t = Number(t);
|
|
144
|
-
var
|
|
145
|
-
var
|
|
146
|
-
return
|
|
144
|
+
var u = f.p(s), h = function(z) {
|
|
145
|
+
var j = $(o);
|
|
146
|
+
return f.w(j.date(j.date() + Math.round(z * t)), o);
|
|
147
147
|
};
|
|
148
|
-
if (
|
|
148
|
+
if (u === Y)
|
|
149
149
|
return this.set(Y, this.$M + t);
|
|
150
|
-
if (
|
|
150
|
+
if (u === v)
|
|
151
151
|
return this.set(v, this.$y + t);
|
|
152
|
-
if (
|
|
153
|
-
return
|
|
154
|
-
if (
|
|
155
|
-
return
|
|
156
|
-
var
|
|
157
|
-
return
|
|
158
|
-
}, n.subtract = function(t,
|
|
159
|
-
return this.add(-1 * t,
|
|
152
|
+
if (u === U)
|
|
153
|
+
return h(1);
|
|
154
|
+
if (u === A)
|
|
155
|
+
return h(7);
|
|
156
|
+
var T = (e = {}, e[_] = O, e[c] = C, e[y] = g, e)[u] || 1, p = this.$d.getTime() + t * T;
|
|
157
|
+
return f.w(p, this);
|
|
158
|
+
}, n.subtract = function(t, s) {
|
|
159
|
+
return this.add(-1 * t, s);
|
|
160
160
|
}, n.format = function(t) {
|
|
161
|
-
var
|
|
161
|
+
var s = this, e = this.$locale();
|
|
162
162
|
if (!this.isValid())
|
|
163
163
|
return e.invalidDate || r;
|
|
164
|
-
var
|
|
165
|
-
return
|
|
166
|
-
},
|
|
167
|
-
return
|
|
168
|
-
},
|
|
169
|
-
var
|
|
170
|
-
return
|
|
171
|
-
};
|
|
172
|
-
return
|
|
173
|
-
return
|
|
174
|
-
switch (B) {
|
|
175
|
-
case "YY":
|
|
176
|
-
return String(i.$y).slice(-2);
|
|
177
|
-
case "YYYY":
|
|
178
|
-
return c.s(i.$y, 4, "0");
|
|
179
|
-
case "M":
|
|
180
|
-
return w + 1;
|
|
181
|
-
case "MM":
|
|
182
|
-
return c.s(w + 1, 2, "0");
|
|
183
|
-
case "MMM":
|
|
184
|
-
return W(e.monthsShort, w, N, 3);
|
|
185
|
-
case "MMMM":
|
|
186
|
-
return W(N, w);
|
|
187
|
-
case "D":
|
|
188
|
-
return i.$D;
|
|
189
|
-
case "DD":
|
|
190
|
-
return c.s(i.$D, 2, "0");
|
|
191
|
-
case "d":
|
|
192
|
-
return String(i.$W);
|
|
193
|
-
case "dd":
|
|
194
|
-
return W(e.weekdaysMin, i.$W, z, 2);
|
|
195
|
-
case "ddd":
|
|
196
|
-
return W(e.weekdaysShort, i.$W, z, 3);
|
|
197
|
-
case "dddd":
|
|
198
|
-
return z[i.$W];
|
|
199
|
-
case "H":
|
|
200
|
-
return String($);
|
|
201
|
-
case "HH":
|
|
202
|
-
return c.s($, 2, "0");
|
|
203
|
-
case "h":
|
|
204
|
-
return q(1);
|
|
205
|
-
case "hh":
|
|
206
|
-
return q(2);
|
|
207
|
-
case "a":
|
|
208
|
-
return E($, y, !0);
|
|
209
|
-
case "A":
|
|
210
|
-
return E($, y, !1);
|
|
211
|
-
case "m":
|
|
212
|
-
return String(y);
|
|
213
|
-
case "mm":
|
|
214
|
-
return c.s(y, 2, "0");
|
|
215
|
-
case "s":
|
|
216
|
-
return String(i.$s);
|
|
217
|
-
case "ss":
|
|
218
|
-
return c.s(i.$s, 2, "0");
|
|
219
|
-
case "SSS":
|
|
220
|
-
return c.s(i.$ms, 3, "0");
|
|
221
|
-
case "Z":
|
|
222
|
-
return a;
|
|
223
|
-
}
|
|
224
|
-
return null;
|
|
225
|
-
}(U) || a.replace(":", "");
|
|
164
|
+
var o = t || "YYYY-MM-DDTHH:mm:ssZ", u = f.z(this), h = this.$H, T = this.$m, p = this.$M, z = e.weekdays, j = e.months, F = function(I, E, Q, B) {
|
|
165
|
+
return I && (I[E] || I(s, o)) || Q[E].slice(0, B);
|
|
166
|
+
}, V = function(I) {
|
|
167
|
+
return f.s(h % 12 || 12, I, "0");
|
|
168
|
+
}, q = e.meridiem || function(I, E, Q) {
|
|
169
|
+
var B = I < 12 ? "AM" : "PM";
|
|
170
|
+
return Q ? B.toLowerCase() : B;
|
|
171
|
+
}, J = { YY: String(this.$y).slice(-2), YYYY: f.s(this.$y, 4, "0"), M: p + 1, MM: f.s(p + 1, 2, "0"), MMM: F(e.monthsShort, p, j, 3), MMMM: F(j, p), D: this.$D, DD: f.s(this.$D, 2, "0"), d: String(this.$W), dd: F(e.weekdaysMin, this.$W, z, 2), ddd: F(e.weekdaysShort, this.$W, z, 3), dddd: z[this.$W], H: String(h), HH: f.s(h, 2, "0"), h: V(1), hh: V(2), a: q(h, T, !0), A: q(h, T, !1), m: String(T), mm: f.s(T, 2, "0"), s: String(this.$s), ss: f.s(this.$s, 2, "0"), SSS: f.s(this.$ms, 3, "0"), Z: u };
|
|
172
|
+
return o.replace(w, function(I, E) {
|
|
173
|
+
return E || J[I] || u.replace(":", "");
|
|
226
174
|
});
|
|
227
175
|
}, n.utcOffset = function() {
|
|
228
176
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
229
|
-
}, n.diff = function(t,
|
|
230
|
-
var
|
|
231
|
-
|
|
232
|
-
};
|
|
233
|
-
switch ($) {
|
|
234
|
-
case v:
|
|
235
|
-
u = N() / 12;
|
|
236
|
-
break;
|
|
237
|
-
case Y:
|
|
238
|
-
u = N();
|
|
239
|
-
break;
|
|
240
|
-
case d:
|
|
241
|
-
u = N() / 3;
|
|
242
|
-
break;
|
|
243
|
-
case j:
|
|
244
|
-
u = (z - w) / 6048e5;
|
|
245
|
-
break;
|
|
246
|
-
case C:
|
|
247
|
-
u = (z - w) / 864e5;
|
|
248
|
-
break;
|
|
249
|
-
case f:
|
|
250
|
-
u = z / H;
|
|
251
|
-
break;
|
|
252
|
-
case _:
|
|
253
|
-
u = z / S;
|
|
254
|
-
break;
|
|
255
|
-
case p:
|
|
256
|
-
u = z / g;
|
|
257
|
-
break;
|
|
258
|
-
default:
|
|
259
|
-
u = z;
|
|
260
|
-
}
|
|
261
|
-
return e ? u : c.a(u);
|
|
177
|
+
}, n.diff = function(t, s, e) {
|
|
178
|
+
var o, u = f.p(s), h = $(t), T = (h.utcOffset() - this.utcOffset()) * O, p = this - h, z = f.m(this, h);
|
|
179
|
+
return z = (o = {}, o[v] = z / 12, o[Y] = z, o[m] = z / 3, o[A] = (p - T) / 6048e5, o[U] = (p - T) / 864e5, o[c] = p / C, o[_] = p / O, o[y] = p / g, o)[u] || p, e ? z : f.a(z);
|
|
262
180
|
}, n.daysInMonth = function() {
|
|
263
181
|
return this.endOf(Y).$D;
|
|
264
182
|
}, n.$locale = function() {
|
|
265
|
-
return
|
|
266
|
-
}, n.locale = function(t,
|
|
183
|
+
return H[this.$L];
|
|
184
|
+
}, n.locale = function(t, s) {
|
|
267
185
|
if (!t)
|
|
268
186
|
return this.$L;
|
|
269
|
-
var e = this.clone(),
|
|
270
|
-
return
|
|
187
|
+
var e = this.clone(), o = N(t, s, !0);
|
|
188
|
+
return o && (e.$L = o), e;
|
|
271
189
|
}, n.clone = function() {
|
|
272
|
-
return
|
|
190
|
+
return f.w(this.$d, this);
|
|
273
191
|
}, n.toDate = function() {
|
|
274
192
|
return new Date(this.valueOf());
|
|
275
193
|
}, n.toJSON = function() {
|
|
@@ -278,198 +196,198 @@ var et = { exports: {} };
|
|
|
278
196
|
return this.$d.toISOString();
|
|
279
197
|
}, n.toString = function() {
|
|
280
198
|
return this.$d.toUTCString();
|
|
281
|
-
},
|
|
282
|
-
}(),
|
|
283
|
-
return
|
|
284
|
-
|
|
285
|
-
return this.$g(n,
|
|
199
|
+
}, i;
|
|
200
|
+
}(), X = W.prototype;
|
|
201
|
+
return $.prototype = X, [["$ms", k], ["$s", y], ["$m", _], ["$H", c], ["$W", U], ["$M", Y], ["$y", v], ["$D", d]].forEach(function(i) {
|
|
202
|
+
X[i[1]] = function(n) {
|
|
203
|
+
return this.$g(n, i[0], i[1]);
|
|
286
204
|
};
|
|
287
|
-
}),
|
|
288
|
-
return
|
|
289
|
-
},
|
|
290
|
-
return
|
|
291
|
-
},
|
|
205
|
+
}), $.extend = function(i, n) {
|
|
206
|
+
return i.$i || (i(n, W, $), i.$i = !0), $;
|
|
207
|
+
}, $.locale = N, $.isDayjs = b, $.unix = function(i) {
|
|
208
|
+
return $(1e3 * i);
|
|
209
|
+
}, $.en = H[x], $.Ls = H, $.p = {}, $;
|
|
292
210
|
});
|
|
293
|
-
})(
|
|
294
|
-
var
|
|
295
|
-
const Z = /* @__PURE__ */
|
|
296
|
-
var
|
|
297
|
-
(function(
|
|
298
|
-
(function(g,
|
|
299
|
-
|
|
300
|
-
})(
|
|
301
|
-
var g = "minute",
|
|
302
|
-
return function(
|
|
303
|
-
var
|
|
211
|
+
})(tt);
|
|
212
|
+
var it = tt.exports;
|
|
213
|
+
const Z = /* @__PURE__ */ K(it);
|
|
214
|
+
var et = { exports: {} };
|
|
215
|
+
(function(a, S) {
|
|
216
|
+
(function(g, O) {
|
|
217
|
+
a.exports = O();
|
|
218
|
+
})(R, function() {
|
|
219
|
+
var g = "minute", O = /[+-]\d\d(?::?\d\d)?/g, C = /([+-]|\d\d)/g;
|
|
220
|
+
return function(k, y, _) {
|
|
221
|
+
var c = y.prototype;
|
|
304
222
|
_.utc = function(r) {
|
|
305
|
-
var
|
|
306
|
-
return new
|
|
307
|
-
},
|
|
308
|
-
var
|
|
309
|
-
return r ?
|
|
310
|
-
},
|
|
223
|
+
var l = { date: r, utc: !0, args: arguments };
|
|
224
|
+
return new y(l);
|
|
225
|
+
}, c.utc = function(r) {
|
|
226
|
+
var l = _(this.toDate(), { locale: this.$L, utc: !0 });
|
|
227
|
+
return r ? l.add(this.utcOffset(), g) : l;
|
|
228
|
+
}, c.local = function() {
|
|
311
229
|
return _(this.toDate(), { locale: this.$L, utc: !1 });
|
|
312
230
|
};
|
|
313
|
-
var
|
|
314
|
-
|
|
315
|
-
r.utc && (this.$u = !0), this.$utils().u(r.$offset) || (this.$offset = r.$offset),
|
|
231
|
+
var U = c.parse;
|
|
232
|
+
c.parse = function(r) {
|
|
233
|
+
r.utc && (this.$u = !0), this.$utils().u(r.$offset) || (this.$offset = r.$offset), U.call(this, r);
|
|
316
234
|
};
|
|
317
|
-
var
|
|
318
|
-
|
|
235
|
+
var A = c.init;
|
|
236
|
+
c.init = function() {
|
|
319
237
|
if (this.$u) {
|
|
320
238
|
var r = this.$d;
|
|
321
239
|
this.$y = r.getUTCFullYear(), this.$M = r.getUTCMonth(), this.$D = r.getUTCDate(), this.$W = r.getUTCDay(), this.$H = r.getUTCHours(), this.$m = r.getUTCMinutes(), this.$s = r.getUTCSeconds(), this.$ms = r.getUTCMilliseconds();
|
|
322
240
|
} else
|
|
323
|
-
|
|
241
|
+
A.call(this);
|
|
324
242
|
};
|
|
325
|
-
var Y =
|
|
326
|
-
|
|
327
|
-
var
|
|
328
|
-
if (
|
|
329
|
-
return this.$u ? 0 :
|
|
243
|
+
var Y = c.utcOffset;
|
|
244
|
+
c.utcOffset = function(r, l) {
|
|
245
|
+
var w = this.$utils().u;
|
|
246
|
+
if (w(r))
|
|
247
|
+
return this.$u ? 0 : w(this.$offset) ? Y.call(this) : this.$offset;
|
|
330
248
|
if (typeof r == "string" && (r = function(x) {
|
|
331
249
|
x === void 0 && (x = "");
|
|
332
|
-
var
|
|
333
|
-
if (!
|
|
250
|
+
var H = x.match(O);
|
|
251
|
+
if (!H)
|
|
334
252
|
return null;
|
|
335
|
-
var
|
|
336
|
-
return
|
|
253
|
+
var b = ("" + H[0]).match(C) || ["-", 0, 0], N = b[0], $ = 60 * +b[1] + +b[2];
|
|
254
|
+
return $ === 0 ? 0 : N === "+" ? $ : -$;
|
|
337
255
|
}(r), r === null))
|
|
338
256
|
return this;
|
|
339
257
|
var D = Math.abs(r) <= 16 ? 60 * r : r, M = this;
|
|
340
|
-
if (
|
|
258
|
+
if (l)
|
|
341
259
|
return M.$offset = D, M.$u = r === 0, M;
|
|
342
260
|
if (r !== 0) {
|
|
343
|
-
var
|
|
344
|
-
(M = this.local().add(D +
|
|
261
|
+
var L = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
262
|
+
(M = this.local().add(D + L, g)).$offset = D, M.$x.$localOffset = L;
|
|
345
263
|
} else
|
|
346
264
|
M = this.utc();
|
|
347
265
|
return M;
|
|
348
266
|
};
|
|
349
|
-
var
|
|
350
|
-
|
|
351
|
-
var
|
|
352
|
-
return
|
|
353
|
-
},
|
|
267
|
+
var m = c.format;
|
|
268
|
+
c.format = function(r) {
|
|
269
|
+
var l = r || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
270
|
+
return m.call(this, l);
|
|
271
|
+
}, c.valueOf = function() {
|
|
354
272
|
var r = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
355
273
|
return this.$d.valueOf() - 6e4 * r;
|
|
356
|
-
},
|
|
274
|
+
}, c.isUTC = function() {
|
|
357
275
|
return !!this.$u;
|
|
358
|
-
},
|
|
276
|
+
}, c.toISOString = function() {
|
|
359
277
|
return this.toDate().toISOString();
|
|
360
|
-
},
|
|
278
|
+
}, c.toString = function() {
|
|
361
279
|
return this.toDate().toUTCString();
|
|
362
280
|
};
|
|
363
|
-
var v =
|
|
364
|
-
|
|
281
|
+
var v = c.toDate;
|
|
282
|
+
c.toDate = function(r) {
|
|
365
283
|
return r === "s" && this.$offset ? _(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : v.call(this);
|
|
366
284
|
};
|
|
367
|
-
var
|
|
368
|
-
|
|
285
|
+
var d = c.diff;
|
|
286
|
+
c.diff = function(r, l, w) {
|
|
369
287
|
if (r && this.$u === r.$u)
|
|
370
|
-
return
|
|
288
|
+
return d.call(this, r, l, w);
|
|
371
289
|
var D = this.local(), M = _(r).local();
|
|
372
|
-
return
|
|
290
|
+
return d.call(D, M, l, w);
|
|
373
291
|
};
|
|
374
292
|
};
|
|
375
293
|
});
|
|
376
|
-
})(
|
|
377
|
-
var
|
|
378
|
-
const
|
|
379
|
-
var
|
|
380
|
-
(function(
|
|
381
|
-
(function(g,
|
|
382
|
-
|
|
383
|
-
})(
|
|
384
|
-
var g = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 },
|
|
385
|
-
return function(
|
|
386
|
-
var _,
|
|
387
|
-
|
|
388
|
-
var r = new Date(
|
|
294
|
+
})(et);
|
|
295
|
+
var st = et.exports;
|
|
296
|
+
const ut = /* @__PURE__ */ K(st);
|
|
297
|
+
var nt = { exports: {} };
|
|
298
|
+
(function(a, S) {
|
|
299
|
+
(function(g, O) {
|
|
300
|
+
a.exports = O();
|
|
301
|
+
})(R, function() {
|
|
302
|
+
var g = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, O = {};
|
|
303
|
+
return function(C, k, y) {
|
|
304
|
+
var _, c = function(m, v, d) {
|
|
305
|
+
d === void 0 && (d = {});
|
|
306
|
+
var r = new Date(m), l = function(w, D) {
|
|
389
307
|
D === void 0 && (D = {});
|
|
390
|
-
var M = D.timeZoneName || "short",
|
|
391
|
-
return x || (x = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone:
|
|
392
|
-
}(v,
|
|
393
|
-
return
|
|
394
|
-
},
|
|
395
|
-
for (var
|
|
396
|
-
var
|
|
397
|
-
|
|
308
|
+
var M = D.timeZoneName || "short", L = w + "|" + M, x = O[L];
|
|
309
|
+
return x || (x = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: w, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: M }), O[L] = x), x;
|
|
310
|
+
}(v, d);
|
|
311
|
+
return l.formatToParts(r);
|
|
312
|
+
}, U = function(m, v) {
|
|
313
|
+
for (var d = c(m, v), r = [], l = 0; l < d.length; l += 1) {
|
|
314
|
+
var w = d[l], D = w.type, M = w.value, L = g[D];
|
|
315
|
+
L >= 0 && (r[L] = parseInt(M, 10));
|
|
398
316
|
}
|
|
399
|
-
var x = r[3],
|
|
400
|
-
return (
|
|
401
|
-
},
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
var
|
|
317
|
+
var x = r[3], H = x === 24 ? 0 : x, b = r[0] + "-" + r[1] + "-" + r[2] + " " + H + ":" + r[4] + ":" + r[5] + ":000", N = +m;
|
|
318
|
+
return (y.utc(b).valueOf() - (N -= N % 1e3)) / 6e4;
|
|
319
|
+
}, A = k.prototype;
|
|
320
|
+
A.tz = function(m, v) {
|
|
321
|
+
m === void 0 && (m = _);
|
|
322
|
+
var d = this.utcOffset(), r = this.toDate(), l = r.toLocaleString("en-US", { timeZone: m }), w = Math.round((r - new Date(l)) / 1e3 / 60), D = y(l).$set("millisecond", this.$ms).utcOffset(15 * -Math.round(r.getTimezoneOffset() / 15) - w, !0);
|
|
405
323
|
if (v) {
|
|
406
324
|
var M = D.utcOffset();
|
|
407
|
-
D = D.add(
|
|
325
|
+
D = D.add(d - M, "minute");
|
|
408
326
|
}
|
|
409
|
-
return D.$x.$timezone =
|
|
410
|
-
},
|
|
411
|
-
var v = this.$x.$timezone ||
|
|
327
|
+
return D.$x.$timezone = m, D;
|
|
328
|
+
}, A.offsetName = function(m) {
|
|
329
|
+
var v = this.$x.$timezone || y.tz.guess(), d = c(this.valueOf(), v, { timeZoneName: m }).find(function(r) {
|
|
412
330
|
return r.type.toLowerCase() === "timezonename";
|
|
413
331
|
});
|
|
414
|
-
return
|
|
332
|
+
return d && d.value;
|
|
415
333
|
};
|
|
416
|
-
var Y =
|
|
417
|
-
|
|
334
|
+
var Y = A.startOf;
|
|
335
|
+
A.startOf = function(m, v) {
|
|
418
336
|
if (!this.$x || !this.$x.$timezone)
|
|
419
|
-
return Y.call(this,
|
|
420
|
-
var
|
|
421
|
-
return Y.call(
|
|
422
|
-
},
|
|
423
|
-
var r =
|
|
424
|
-
if (typeof
|
|
425
|
-
return
|
|
426
|
-
var D = function(
|
|
427
|
-
var
|
|
428
|
-
if (
|
|
429
|
-
return [
|
|
430
|
-
var
|
|
431
|
-
return
|
|
432
|
-
}(
|
|
433
|
-
return x.$x.$timezone =
|
|
434
|
-
},
|
|
337
|
+
return Y.call(this, m, v);
|
|
338
|
+
var d = y(this.format("YYYY-MM-DD HH:mm:ss:SSS"));
|
|
339
|
+
return Y.call(d, m, v).tz(this.$x.$timezone, !0);
|
|
340
|
+
}, y.tz = function(m, v, d) {
|
|
341
|
+
var r = d && v, l = d || v || _, w = U(+y(), l);
|
|
342
|
+
if (typeof m != "string")
|
|
343
|
+
return y(m).tz(l);
|
|
344
|
+
var D = function(H, b, N) {
|
|
345
|
+
var $ = H - 60 * b * 1e3, f = U($, N);
|
|
346
|
+
if (b === f)
|
|
347
|
+
return [$, b];
|
|
348
|
+
var W = U($ -= 60 * (f - b) * 1e3, N);
|
|
349
|
+
return f === W ? [$, f] : [H - 60 * Math.min(f, W) * 1e3, Math.max(f, W)];
|
|
350
|
+
}(y.utc(m, r).valueOf(), w, l), M = D[0], L = D[1], x = y(M).utcOffset(L);
|
|
351
|
+
return x.$x.$timezone = l, x;
|
|
352
|
+
}, y.tz.guess = function() {
|
|
435
353
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
436
|
-
},
|
|
437
|
-
_ =
|
|
354
|
+
}, y.tz.setDefault = function(m) {
|
|
355
|
+
_ = m;
|
|
438
356
|
};
|
|
439
357
|
};
|
|
440
358
|
});
|
|
441
|
-
})(
|
|
442
|
-
var ot =
|
|
443
|
-
const
|
|
444
|
-
Z.extend(ct);
|
|
359
|
+
})(nt);
|
|
360
|
+
var ot = nt.exports;
|
|
361
|
+
const at = /* @__PURE__ */ K(ot);
|
|
445
362
|
Z.extend(at);
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
363
|
+
Z.extend(ut);
|
|
364
|
+
const G = "YYYY-MM-DD HH:mm:ss", P = (a) => {
|
|
365
|
+
const S = new Date(a);
|
|
366
|
+
if (!isNaN(S.getTime())) {
|
|
367
|
+
const g = S.getFullYear(), O = S.getMonth() + 1;
|
|
368
|
+
return S.getDate() === 29 && O === 2 ? g % 4 === 0 && g % 100 !== 0 || g % 400 === 0 : !0;
|
|
451
369
|
}
|
|
452
|
-
return !isNaN(
|
|
453
|
-
},
|
|
454
|
-
if (!
|
|
455
|
-
return
|
|
456
|
-
const g = new Date(Z(
|
|
457
|
-
return
|
|
458
|
-
},
|
|
459
|
-
if (!
|
|
370
|
+
return !isNaN(S.getTime());
|
|
371
|
+
}, ct = (a, S, g = "") => !a || !P(a) ? g : Z(a).utc().tz("Asia/Shanghai").format(S || G), ht = (a, S, g = "") => !a || !P(a) ? g : Z(a).utc().tz("Europe/Paris").format(S || G), lt = (a, S = "") => {
|
|
372
|
+
if (!a || !P(a))
|
|
373
|
+
return S;
|
|
374
|
+
const g = new Date(Z(a).format(G)).getTime(), O = new Date(Z(a).utc().format(G)).getTime(), C = (g - O) / (1e3 * 3600);
|
|
375
|
+
return C > 0 ? Z(a).utc().add(C, "hours").toDate() : Z(a).utc().subtract(C, "hours").toDate();
|
|
376
|
+
}, rt = (a, S) => {
|
|
377
|
+
if (!a || !P(a))
|
|
460
378
|
return "";
|
|
461
|
-
const g = Z(
|
|
462
|
-
return
|
|
463
|
-
},
|
|
379
|
+
const g = Z(a).utcOffset(), O = Z(a).tz(S).utcOffset(), C = g - O;
|
|
380
|
+
return C > 0 ? Z(a).add(C, "minutes").toDate() : Z(a).subtract(C, "minutes").toDate();
|
|
381
|
+
}, $t = (a, S = "") => !a || !P(a) ? S : rt(a, "Asia/Shanghai"), dt = (a, S = "") => !a || !P(a) ? S : rt(a, "Europe/Paris");
|
|
464
382
|
export {
|
|
465
383
|
Z as dayjs,
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
384
|
+
gt as debounce,
|
|
385
|
+
P as isValidDate,
|
|
386
|
+
$t as local_cn_date,
|
|
387
|
+
dt as local_fr_date,
|
|
388
|
+
rt as local_tz_date,
|
|
389
|
+
lt as local_utc_date,
|
|
390
|
+
Mt as storage,
|
|
391
|
+
ct as utc_cn,
|
|
392
|
+
ht as utc_fr
|
|
475
393
|
};
|