yxuse 3.0.39 → 3.0.40

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.
Files changed (49) hide show
  1. package/lib/api.cjs.js +1 -1
  2. package/lib/api.es.js +9 -9
  3. package/lib/components.cjs.js +1 -1
  4. package/lib/components.es.js +11 -11
  5. package/lib/directives.cjs.js +1 -1
  6. package/lib/directives.es.js +2 -2
  7. package/lib/hooks.cjs.js +1 -1
  8. package/lib/hooks.es.js +2 -2
  9. package/lib/index.cjs.js +1 -1
  10. package/lib/index.cjs10.js +1 -1
  11. package/lib/index.cjs11.js +1 -3
  12. package/lib/index.cjs11.js.gz +0 -0
  13. package/lib/index.cjs12.js +1 -1
  14. package/lib/index.cjs13.js +1 -1
  15. package/lib/index.cjs2.js +1 -1
  16. package/lib/index.cjs3.js +1 -1
  17. package/lib/index.cjs4.js +1 -1
  18. package/lib/index.cjs5.js +8 -28
  19. package/lib/index.cjs5.js.gz +0 -0
  20. package/lib/index.cjs6.js +1 -1
  21. package/lib/index.cjs6.js.gz +0 -0
  22. package/lib/index.cjs7.js +1 -1
  23. package/lib/index.cjs9.js +1 -1
  24. package/lib/index.es.js +43 -39
  25. package/lib/index.es10.js +245 -241
  26. package/lib/index.es10.js.gz +0 -0
  27. package/lib/index.es11.js +1854 -1146
  28. package/lib/index.es11.js.gz +0 -0
  29. package/lib/index.es12.js +181 -103
  30. package/lib/index.es13.js +15 -12
  31. package/lib/index.es2.js +13 -13
  32. package/lib/index.es3.js +58 -40
  33. package/lib/index.es4.js +47 -37
  34. package/lib/index.es5.js +9697 -5929
  35. package/lib/index.es5.js.gz +0 -0
  36. package/lib/index.es6.js +821 -615
  37. package/lib/index.es6.js.gz +0 -0
  38. package/lib/index.es7.js +21 -17
  39. package/lib/index.es8.js +4 -4
  40. package/lib/index.es9.js +9 -7
  41. package/lib/theme.cjs.js +1 -1
  42. package/lib/theme.es.js +11 -11
  43. package/lib/translate.cjs.js +1 -1
  44. package/lib/translate.es.js +6 -6
  45. package/lib/utils.cjs.js +1 -1
  46. package/lib/utils.es.js +11 -11
  47. package/lib/yxIcon.cjs.js +1 -1
  48. package/lib/yxIcon.es.js +2 -2
  49. package/package.json +2 -1
package/lib/index.es10.js CHANGED
@@ -1,311 +1,315 @@
1
- import { ref as R } from "vue";
2
- var X = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
3
- function tt(M) {
4
- return M && M.__esModule && Object.prototype.hasOwnProperty.call(M, "default") ? M.default : M;
1
+ import { ref } from "vue";
2
+ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
3
+ function getDefaultExportFromCjs(x) {
4
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
5
5
  }
6
- var q = { exports: {} };
7
- (function(M, rt) {
8
- (function(A, Y) {
9
- M.exports = Y();
10
- })(X, function() {
11
- var A = 1e3, Y = 6e4, E = 36e5, I = "millisecond", S = "second", b = "minute", O = "hour", y = "day", j = "week", m = "month", J = "quarter", v = "year", _ = "date", Z = "Invalid Date", B = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, G = /\[([^\]]+)]|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, Q = { 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(s) {
12
- var n = ["th", "st", "nd", "rd"], t = s % 100;
13
- return "[" + s + (n[(t - 20) % 10] || n[t] || n[0]) + "]";
14
- } }, F = function(s, n, t) {
15
- var r = String(s);
16
- return !r || r.length >= n ? s : "" + Array(n + 1 - r.length).join(t) + s;
17
- }, K = { s: F, z: function(s) {
18
- var n = -s.utcOffset(), t = Math.abs(n), r = Math.floor(t / 60), e = t % 60;
19
- return (n <= 0 ? "+" : "-") + F(r, 2, "0") + ":" + F(e, 2, "0");
20
- }, m: function s(n, t) {
21
- if (n.date() < t.date())
22
- return -s(t, n);
23
- var r = 12 * (t.year() - n.year()) + (t.month() - n.month()), e = n.clone().add(r, m), i = t - e < 0, u = n.clone().add(r + (i ? -1 : 1), m);
24
- return +(-(r + (t - e) / (i ? e - u : u - e)) || 0);
25
- }, a: function(s) {
26
- return s < 0 ? Math.ceil(s) || 0 : Math.floor(s);
27
- }, p: function(s) {
28
- return { M: m, y: v, w: j, d: y, D: _, h: O, m: b, s: S, ms: I, Q: J }[s] || String(s || "").toLowerCase().replace(/s$/, "");
29
- }, u: function(s) {
30
- return s === void 0;
31
- } }, k = "en", p = {};
32
- p[k] = Q;
33
- var z = "$isDayjsObject", N = function(s) {
34
- return s instanceof L || !(!s || !s[z]);
35
- }, C = function s(n, t, r) {
36
- var e;
37
- if (!n)
38
- return k;
39
- if (typeof n == "string") {
40
- var i = n.toLowerCase();
41
- p[i] && (e = i), t && (p[i] = t, e = i);
42
- var u = n.split("-");
43
- if (!e && u.length > 1)
44
- return s(u[0]);
6
+ var dayjs_min = { exports: {} };
7
+ (function(module, exports) {
8
+ !function(t, e) {
9
+ module.exports = e();
10
+ }(commonjsGlobal, function() {
11
+ var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|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, M = { 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(t2) {
12
+ var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
13
+ return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
14
+ } }, m = function(t2, e2, n2) {
15
+ var r2 = String(t2);
16
+ return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2;
17
+ }, v = { s: m, z: function(t2) {
18
+ var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
19
+ return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
20
+ }, m: function t2(e2, n2) {
21
+ if (e2.date() < n2.date())
22
+ return -t2(n2, e2);
23
+ var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2, c), s2 = n2 - i2 < 0, u2 = e2.clone().add(r2 + (s2 ? -1 : 1), c);
24
+ return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
25
+ }, a: function(t2) {
26
+ return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
27
+ }, p: function(t2) {
28
+ return { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
29
+ }, u: function(t2) {
30
+ return void 0 === t2;
31
+ } }, g = "en", D = {};
32
+ D[g] = M;
33
+ var p = "$isDayjsObject", S = function(t2) {
34
+ return t2 instanceof _ || !(!t2 || !t2[p]);
35
+ }, w = function t2(e2, n2, r2) {
36
+ var i2;
37
+ if (!e2)
38
+ return g;
39
+ if ("string" == typeof e2) {
40
+ var s2 = e2.toLowerCase();
41
+ D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
42
+ var u2 = e2.split("-");
43
+ if (!i2 && u2.length > 1)
44
+ return t2(u2[0]);
45
45
  } else {
46
- var o = n.name;
47
- p[o] = n, e = o;
46
+ var a2 = e2.name;
47
+ D[a2] = e2, i2 = a2;
48
48
  }
49
- return !r && e && (k = e), e || !r && k;
50
- }, f = function(s, n) {
51
- if (N(s))
52
- return s.clone();
53
- var t = typeof n == "object" ? n : {};
54
- return t.date = s, t.args = arguments, new L(t);
55
- }, a = K;
56
- a.l = C, a.i = N, a.w = function(s, n) {
57
- return f(s, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
49
+ return !r2 && i2 && (g = i2), i2 || !r2 && g;
50
+ }, O = function(t2, e2) {
51
+ if (S(t2))
52
+ return t2.clone();
53
+ var n2 = "object" == typeof e2 ? e2 : {};
54
+ return n2.date = t2, n2.args = arguments, new _(n2);
55
+ }, b = v;
56
+ b.l = w, b.i = S, b.w = function(t2, e2) {
57
+ return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
58
58
  };
59
- var L = function() {
60
- function s(t) {
61
- this.$L = C(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[z] = !0;
59
+ var _ = function() {
60
+ function M2(t2) {
61
+ this.$L = w(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
62
62
  }
63
- var n = s.prototype;
64
- return n.parse = function(t) {
65
- this.$d = function(r) {
66
- var e = r.date, i = r.utc;
67
- if (e === null)
63
+ var m2 = M2.prototype;
64
+ return m2.parse = function(t2) {
65
+ this.$d = function(t3) {
66
+ var e2 = t3.date, n2 = t3.utc;
67
+ if (null === e2)
68
68
  return /* @__PURE__ */ new Date(NaN);
69
- if (a.u(e))
69
+ if (b.u(e2))
70
70
  return /* @__PURE__ */ new Date();
71
- if (e instanceof Date)
72
- return new Date(e);
73
- if (typeof e == "string" && !/Z$/i.test(e)) {
74
- var u = e.match(B);
75
- if (u) {
76
- var o = u[2] - 1 || 0, c = (u[7] || "0").substring(0, 3);
77
- return i ? new Date(Date.UTC(u[1], o, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, c)) : new Date(u[1], o, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, c);
71
+ if (e2 instanceof Date)
72
+ return new Date(e2);
73
+ if ("string" == typeof e2 && !/Z$/i.test(e2)) {
74
+ var r2 = e2.match($);
75
+ if (r2) {
76
+ var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
77
+ return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
78
78
  }
79
79
  }
80
- return new Date(e);
81
- }(t), this.init();
82
- }, n.init = function() {
83
- var t = this.$d;
84
- 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();
85
- }, n.$utils = function() {
86
- return a;
87
- }, n.isValid = function() {
88
- return this.$d.toString() !== Z;
89
- }, n.isSame = function(t, r) {
90
- var e = f(t);
91
- return this.startOf(r) <= e && e <= this.endOf(r);
92
- }, n.isAfter = function(t, r) {
93
- return f(t) < this.startOf(r);
94
- }, n.isBefore = function(t, r) {
95
- return this.endOf(r) < f(t);
96
- }, n.$g = function(t, r, e) {
97
- return a.u(t) ? this[r] : this.set(e, t);
98
- }, n.unix = function() {
80
+ return new Date(e2);
81
+ }(t2), this.init();
82
+ }, m2.init = function() {
83
+ var t2 = this.$d;
84
+ this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
85
+ }, m2.$utils = function() {
86
+ return b;
87
+ }, m2.isValid = function() {
88
+ return !(this.$d.toString() === l);
89
+ }, m2.isSame = function(t2, e2) {
90
+ var n2 = O(t2);
91
+ return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
92
+ }, m2.isAfter = function(t2, e2) {
93
+ return O(t2) < this.startOf(e2);
94
+ }, m2.isBefore = function(t2, e2) {
95
+ return this.endOf(e2) < O(t2);
96
+ }, m2.$g = function(t2, e2, n2) {
97
+ return b.u(t2) ? this[e2] : this.set(n2, t2);
98
+ }, m2.unix = function() {
99
99
  return Math.floor(this.valueOf() / 1e3);
100
- }, n.valueOf = function() {
100
+ }, m2.valueOf = function() {
101
101
  return this.$d.getTime();
102
- }, n.startOf = function(t, r) {
103
- var e = this, i = !!a.u(r) || r, u = a.p(t), o = function(w, l) {
104
- var g = a.w(e.$u ? Date.UTC(e.$y, l, w) : new Date(e.$y, l, w), e);
105
- return i ? g : g.endOf(y);
106
- }, c = function(w, l) {
107
- return a.w(e.toDate()[w].apply(e.toDate("s"), (i ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(l)), e);
108
- }, h = this.$W, d = this.$M, $ = this.$D, T = "set" + (this.$u ? "UTC" : "");
109
- switch (u) {
110
- case v:
111
- return i ? o(1, 0) : o(31, 11);
112
- case m:
113
- return i ? o(1, d) : o(0, d + 1);
114
- case j:
115
- var D = this.$locale().weekStart || 0, H = (h < D ? h + 7 : h) - D;
116
- return o(i ? $ - H : $ + (6 - H), d);
117
- case y:
118
- case _:
119
- return c(T + "Hours", 0);
120
- case O:
121
- return c(T + "Minutes", 1);
122
- case b:
123
- return c(T + "Seconds", 2);
124
- case S:
125
- return c(T + "Milliseconds", 3);
102
+ }, m2.startOf = function(t2, e2) {
103
+ var n2 = this, r2 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
104
+ var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
105
+ return r2 ? i2 : i2.endOf(a);
106
+ }, $2 = function(t3, e3) {
107
+ return b.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
108
+ }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
109
+ switch (f2) {
110
+ case h:
111
+ return r2 ? l2(1, 0) : l2(31, 11);
112
+ case c:
113
+ return r2 ? l2(1, M3) : l2(0, M3 + 1);
114
+ case o:
115
+ var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
116
+ return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
117
+ case a:
118
+ case d:
119
+ return $2(v2 + "Hours", 0);
120
+ case u:
121
+ return $2(v2 + "Minutes", 1);
122
+ case s:
123
+ return $2(v2 + "Seconds", 2);
124
+ case i:
125
+ return $2(v2 + "Milliseconds", 3);
126
126
  default:
127
127
  return this.clone();
128
128
  }
129
- }, n.endOf = function(t) {
130
- return this.startOf(t, !1);
131
- }, n.$set = function(t, r) {
132
- var e, i = a.p(t), u = "set" + (this.$u ? "UTC" : ""), o = (e = {}, e[y] = u + "Date", e[_] = u + "Date", e[m] = u + "Month", e[v] = u + "FullYear", e[O] = u + "Hours", e[b] = u + "Minutes", e[S] = u + "Seconds", e[I] = u + "Milliseconds", e)[i], c = i === y ? this.$D + (r - this.$W) : r;
133
- if (i === m || i === v) {
134
- var h = this.clone().set(_, 1);
135
- h.$d[o](c), h.init(), this.$d = h.set(_, Math.min(this.$D, h.daysInMonth())).$d;
129
+ }, m2.endOf = function(t2) {
130
+ return this.startOf(t2, false);
131
+ }, m2.$set = function(t2, e2) {
132
+ var n2, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
133
+ if (o2 === c || o2 === h) {
134
+ var y2 = this.clone().set(d, 1);
135
+ y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
136
136
  } else
137
- o && this.$d[o](c);
137
+ l2 && this.$d[l2]($2);
138
138
  return this.init(), this;
139
- }, n.set = function(t, r) {
140
- return this.clone().$set(t, r);
141
- }, n.get = function(t) {
142
- return this[a.p(t)]();
143
- }, n.add = function(t, r) {
144
- var e, i = this;
145
- t = Number(t);
146
- var u = a.p(r), o = function(d) {
147
- var $ = f(i);
148
- return a.w($.date($.date() + Math.round(d * t)), i);
139
+ }, m2.set = function(t2, e2) {
140
+ return this.clone().$set(t2, e2);
141
+ }, m2.get = function(t2) {
142
+ return this[b.p(t2)]();
143
+ }, m2.add = function(r2, f2) {
144
+ var d2, l2 = this;
145
+ r2 = Number(r2);
146
+ var $2 = b.p(f2), y2 = function(t2) {
147
+ var e2 = O(l2);
148
+ return b.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
149
149
  };
150
- if (u === m)
151
- return this.set(m, this.$M + t);
152
- if (u === v)
153
- return this.set(v, this.$y + t);
154
- if (u === y)
155
- return o(1);
156
- if (u === j)
157
- return o(7);
158
- var c = (e = {}, e[b] = Y, e[O] = E, e[S] = A, e)[u] || 1, h = this.$d.getTime() + t * c;
159
- return a.w(h, this);
160
- }, n.subtract = function(t, r) {
161
- return this.add(-1 * t, r);
162
- }, n.format = function(t) {
163
- var r = this, e = this.$locale();
150
+ if ($2 === c)
151
+ return this.set(c, this.$M + r2);
152
+ if ($2 === h)
153
+ return this.set(h, this.$y + r2);
154
+ if ($2 === a)
155
+ return y2(1);
156
+ if ($2 === o)
157
+ return y2(7);
158
+ var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
159
+ return b.w(m3, this);
160
+ }, m2.subtract = function(t2, e2) {
161
+ return this.add(-1 * t2, e2);
162
+ }, m2.format = function(t2) {
163
+ var e2 = this, n2 = this.$locale();
164
164
  if (!this.isValid())
165
- return e.invalidDate || Z;
166
- var i = t || "YYYY-MM-DDTHH:mm:ssZ", u = a.z(this), o = this.$H, c = this.$m, h = this.$M, d = e.weekdays, $ = e.months, T = e.meridiem, D = function(l, g, x, W) {
167
- return l && (l[g] || l(r, i)) || x[g].slice(0, W);
168
- }, H = function(l) {
169
- return a.s(o % 12 || 12, l, "0");
170
- }, w = T || function(l, g, x) {
171
- var W = l < 12 ? "AM" : "PM";
172
- return x ? W.toLowerCase() : W;
165
+ return n2.invalidDate || l;
166
+ var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
167
+ return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
168
+ }, d2 = function(t3) {
169
+ return b.s(s2 % 12 || 12, t3, "0");
170
+ }, $2 = f2 || function(t3, e3, n3) {
171
+ var r3 = t3 < 12 ? "AM" : "PM";
172
+ return n3 ? r3.toLowerCase() : r3;
173
173
  };
174
- return i.replace(G, function(l, g) {
175
- return g || function(x) {
176
- switch (x) {
174
+ return r2.replace(y, function(t3, r3) {
175
+ return r3 || function(t4) {
176
+ switch (t4) {
177
177
  case "YY":
178
- return String(r.$y).slice(-2);
178
+ return String(e2.$y).slice(-2);
179
179
  case "YYYY":
180
- return a.s(r.$y, 4, "0");
180
+ return b.s(e2.$y, 4, "0");
181
181
  case "M":
182
- return h + 1;
182
+ return a2 + 1;
183
183
  case "MM":
184
- return a.s(h + 1, 2, "0");
184
+ return b.s(a2 + 1, 2, "0");
185
185
  case "MMM":
186
- return D(e.monthsShort, h, $, 3);
186
+ return h2(n2.monthsShort, a2, c2, 3);
187
187
  case "MMMM":
188
- return D($, h);
188
+ return h2(c2, a2);
189
189
  case "D":
190
- return r.$D;
190
+ return e2.$D;
191
191
  case "DD":
192
- return a.s(r.$D, 2, "0");
192
+ return b.s(e2.$D, 2, "0");
193
193
  case "d":
194
- return String(r.$W);
194
+ return String(e2.$W);
195
195
  case "dd":
196
- return D(e.weekdaysMin, r.$W, d, 2);
196
+ return h2(n2.weekdaysMin, e2.$W, o2, 2);
197
197
  case "ddd":
198
- return D(e.weekdaysShort, r.$W, d, 3);
198
+ return h2(n2.weekdaysShort, e2.$W, o2, 3);
199
199
  case "dddd":
200
- return d[r.$W];
200
+ return o2[e2.$W];
201
201
  case "H":
202
- return String(o);
202
+ return String(s2);
203
203
  case "HH":
204
- return a.s(o, 2, "0");
204
+ return b.s(s2, 2, "0");
205
205
  case "h":
206
- return H(1);
206
+ return d2(1);
207
207
  case "hh":
208
- return H(2);
208
+ return d2(2);
209
209
  case "a":
210
- return w(o, c, !0);
210
+ return $2(s2, u2, true);
211
211
  case "A":
212
- return w(o, c, !1);
212
+ return $2(s2, u2, false);
213
213
  case "m":
214
- return String(c);
214
+ return String(u2);
215
215
  case "mm":
216
- return a.s(c, 2, "0");
216
+ return b.s(u2, 2, "0");
217
217
  case "s":
218
- return String(r.$s);
218
+ return String(e2.$s);
219
219
  case "ss":
220
- return a.s(r.$s, 2, "0");
220
+ return b.s(e2.$s, 2, "0");
221
221
  case "SSS":
222
- return a.s(r.$ms, 3, "0");
222
+ return b.s(e2.$ms, 3, "0");
223
223
  case "Z":
224
- return u;
224
+ return i2;
225
225
  }
226
226
  return null;
227
- }(l) || u.replace(":", "");
227
+ }(t3) || i2.replace(":", "");
228
228
  });
229
- }, n.utcOffset = function() {
229
+ }, m2.utcOffset = function() {
230
230
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
231
- }, n.diff = function(t, r, e) {
232
- var i, u = this, o = a.p(r), c = f(t), h = (c.utcOffset() - this.utcOffset()) * Y, d = this - c, $ = function() {
233
- return a.m(u, c);
231
+ }, m2.diff = function(r2, d2, l2) {
232
+ var $2, y2 = this, M3 = b.p(d2), m3 = O(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
233
+ return b.m(y2, m3);
234
234
  };
235
- switch (o) {
236
- case v:
237
- i = $() / 12;
235
+ switch (M3) {
236
+ case h:
237
+ $2 = D2() / 12;
238
238
  break;
239
- case m:
240
- i = $();
239
+ case c:
240
+ $2 = D2();
241
241
  break;
242
- case J:
243
- i = $() / 3;
242
+ case f:
243
+ $2 = D2() / 3;
244
244
  break;
245
- case j:
246
- i = (d - h) / 6048e5;
245
+ case o:
246
+ $2 = (g2 - v2) / 6048e5;
247
247
  break;
248
- case y:
249
- i = (d - h) / 864e5;
248
+ case a:
249
+ $2 = (g2 - v2) / 864e5;
250
250
  break;
251
- case O:
252
- i = d / E;
251
+ case u:
252
+ $2 = g2 / n;
253
253
  break;
254
- case b:
255
- i = d / Y;
254
+ case s:
255
+ $2 = g2 / e;
256
256
  break;
257
- case S:
258
- i = d / A;
257
+ case i:
258
+ $2 = g2 / t;
259
259
  break;
260
260
  default:
261
- i = d;
261
+ $2 = g2;
262
262
  }
263
- return e ? i : a.a(i);
264
- }, n.daysInMonth = function() {
265
- return this.endOf(m).$D;
266
- }, n.$locale = function() {
267
- return p[this.$L];
268
- }, n.locale = function(t, r) {
269
- if (!t)
263
+ return l2 ? $2 : b.a($2);
264
+ }, m2.daysInMonth = function() {
265
+ return this.endOf(c).$D;
266
+ }, m2.$locale = function() {
267
+ return D[this.$L];
268
+ }, m2.locale = function(t2, e2) {
269
+ if (!t2)
270
270
  return this.$L;
271
- var e = this.clone(), i = C(t, r, !0);
272
- return i && (e.$L = i), e;
273
- }, n.clone = function() {
274
- return a.w(this.$d, this);
275
- }, n.toDate = function() {
271
+ var n2 = this.clone(), r2 = w(t2, e2, true);
272
+ return r2 && (n2.$L = r2), n2;
273
+ }, m2.clone = function() {
274
+ return b.w(this.$d, this);
275
+ }, m2.toDate = function() {
276
276
  return new Date(this.valueOf());
277
- }, n.toJSON = function() {
277
+ }, m2.toJSON = function() {
278
278
  return this.isValid() ? this.toISOString() : null;
279
- }, n.toISOString = function() {
279
+ }, m2.toISOString = function() {
280
280
  return this.$d.toISOString();
281
- }, n.toString = function() {
281
+ }, m2.toString = function() {
282
282
  return this.$d.toUTCString();
283
- }, s;
284
- }(), V = L.prototype;
285
- return f.prototype = V, [["$ms", I], ["$s", S], ["$m", b], ["$H", O], ["$W", y], ["$M", m], ["$y", v], ["$D", _]].forEach(function(s) {
286
- V[s[1]] = function(n) {
287
- return this.$g(n, s[0], s[1]);
283
+ }, M2;
284
+ }(), k = _.prototype;
285
+ return O.prototype = k, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
286
+ k[t2[1]] = function(e2) {
287
+ return this.$g(e2, t2[0], t2[1]);
288
288
  };
289
- }), f.extend = function(s, n) {
290
- return s.$i || (s(n, L, f), s.$i = !0), f;
291
- }, f.locale = C, f.isDayjs = N, f.unix = function(s) {
292
- return f(1e3 * s);
293
- }, f.en = p[k], f.Ls = p, f.p = {}, f;
289
+ }), O.extend = function(t2, e2) {
290
+ return t2.$i || (t2(e2, _, O), t2.$i = true), O;
291
+ }, O.locale = w, O.isDayjs = S, O.unix = function(t2) {
292
+ return O(1e3 * t2);
293
+ }, O.en = D[g], O.Ls = D, O.p = {}, O;
294
294
  });
295
- })(q);
296
- var et = q.exports;
297
- const nt = /* @__PURE__ */ tt(et), P = R("");
298
- let U;
299
- const it = () => {
300
- const M = () => {
301
- U = setTimeout(() => {
302
- P.value = nt().format("YYYY-MM-DD HH:mm:ss"), U && clearTimeout(U), M();
295
+ })(dayjs_min);
296
+ var dayjs_minExports = dayjs_min.exports;
297
+ const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
298
+ const time = ref("");
299
+ let _timer;
300
+ const useTime = () => {
301
+ const timedExecution = () => {
302
+ _timer = setTimeout(() => {
303
+ time.value = dayjs().format("YYYY-MM-DD HH:mm:ss");
304
+ _timer && clearTimeout(_timer);
305
+ timedExecution();
303
306
  }, 1e3);
304
307
  };
305
- return M(), { time: P };
308
+ timedExecution();
309
+ return { time };
306
310
  };
307
311
  export {
308
- X as c,
309
- tt as g,
310
- it as u
312
+ commonjsGlobal as c,
313
+ getDefaultExportFromCjs as g,
314
+ useTime as u
311
315
  };
Binary file