@univerjs/design 0.5.0 → 0.5.1

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.
@@ -1,116 +1,115 @@
1
- var G = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
- function lt(s) {
3
- return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
1
+ function de(i) {
2
+ return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
4
3
  }
5
- var Q = { exports: {} }, I = { exports: {} }, B;
6
- function dt() {
7
- return B || (B = 1, function(s, $) {
8
- (function(h, u) {
9
- s.exports = u();
10
- })(G, function() {
11
- var h = 1e3, u = 6e4, p = 36e5, d = "millisecond", c = "second", _ = "minute", b = "hour", g = "day", E = "week", S = "month", R = "quarter", Y = "year", L = "date", U = "Invalid Date", at = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, ut = /\[([^\]]+)]|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, ct = { 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) {
12
- var r = ["th", "st", "nd", "rd"], t = o % 100;
13
- return "[" + o + (r[(t - 20) % 10] || r[t] || r[0]) + "]";
14
- } }, z = function(o, r, t) {
4
+ var W = { exports: {} }, Z = { exports: {} }, ve = Z.exports, re;
5
+ function $e() {
6
+ return re || (re = 1, function(i, m) {
7
+ (function(d, a) {
8
+ i.exports = a();
9
+ })(ve, function() {
10
+ var d = 1e3, a = 6e4, h = 36e5, p = "millisecond", c = "second", _ = "minute", x = "hour", Y = "day", N = "week", S = "month", G = "quarter", g = "year", q = "date", X = "Invalid Date", he = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, ye = /\[([^\]]+)]|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, _e = { 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) {
11
+ var r = ["th", "st", "nd", "rd"], e = o % 100;
12
+ return "[" + o + (r[(e - 20) % 10] || r[e] || r[0]) + "]";
13
+ } }, I = function(o, r, e) {
15
14
  var n = String(o);
16
- return !n || n.length >= r ? o : "" + Array(r + 1 - n.length).join(t) + o;
17
- }, ft = { s: z, z: function(o) {
18
- var r = -o.utcOffset(), t = Math.abs(r), n = Math.floor(t / 60), e = t % 60;
19
- return (r <= 0 ? "+" : "-") + z(n, 2, "0") + ":" + z(e, 2, "0");
20
- }, m: function o(r, t) {
21
- if (r.date() < t.date()) return -o(t, r);
22
- var n = 12 * (t.year() - r.year()) + (t.month() - r.month()), e = r.clone().add(n, S), i = t - e < 0, a = r.clone().add(n + (i ? -1 : 1), S);
23
- return +(-(n + (t - e) / (i ? e - a : a - e)) || 0);
15
+ return !n || n.length >= r ? o : "" + Array(r + 1 - n.length).join(e) + o;
16
+ }, me = { s: I, z: function(o) {
17
+ var r = -o.utcOffset(), e = Math.abs(r), n = Math.floor(e / 60), t = e % 60;
18
+ return (r <= 0 ? "+" : "-") + I(n, 2, "0") + ":" + I(t, 2, "0");
19
+ }, m: function o(r, e) {
20
+ if (r.date() < e.date()) return -o(e, r);
21
+ var n = 12 * (e.year() - r.year()) + (e.month() - r.month()), t = r.clone().add(n, S), s = e - t < 0, u = r.clone().add(n + (s ? -1 : 1), S);
22
+ return +(-(n + (e - t) / (s ? t - u : u - t)) || 0);
24
23
  }, a: function(o) {
25
24
  return o < 0 ? Math.ceil(o) || 0 : Math.floor(o);
26
25
  }, p: function(o) {
27
- return { M: S, y: Y, w: E, d: g, D: L, h: b, m: _, s: c, ms: d, Q: R }[o] || String(o || "").toLowerCase().replace(/s$/, "");
26
+ return { M: S, y: g, w: N, d: Y, D: q, h: x, m: _, s: c, ms: p, Q: G }[o] || String(o || "").toLowerCase().replace(/s$/, "");
28
27
  }, u: function(o) {
29
28
  return o === void 0;
30
- } }, T = "en", O = {};
31
- O[T] = ct;
32
- var Z = "$isDayjsObject", q = function(o) {
33
- return o instanceof F || !(!o || !o[Z]);
34
- }, A = function o(r, t, n) {
35
- var e;
36
- if (!r) return T;
29
+ } }, L = "en", w = {};
30
+ w[L] = _e;
31
+ var ee = "$isDayjsObject", E = function(o) {
32
+ return o instanceof A || !(!o || !o[ee]);
33
+ }, z = function o(r, e, n) {
34
+ var t;
35
+ if (!r) return L;
37
36
  if (typeof r == "string") {
38
- var i = r.toLowerCase();
39
- O[i] && (e = i), t && (O[i] = t, e = i);
40
- var a = r.split("-");
41
- if (!e && a.length > 1) return o(a[0]);
37
+ var s = r.toLowerCase();
38
+ w[s] && (t = s), e && (w[s] = e, t = s);
39
+ var u = r.split("-");
40
+ if (!t && u.length > 1) return o(u[0]);
42
41
  } else {
43
42
  var l = r.name;
44
- O[l] = r, e = l;
43
+ w[l] = r, t = l;
45
44
  }
46
- return !n && e && (T = e), e || !n && T;
47
- }, m = function(o, r) {
48
- if (q(o)) return o.clone();
49
- var t = typeof r == "object" ? r : {};
50
- return t.date = o, t.args = arguments, new F(t);
51
- }, f = ft;
52
- f.l = A, f.i = q, f.w = function(o, r) {
53
- return m(o, { locale: r.$L, utc: r.$u, x: r.$x, $offset: r.$offset });
45
+ return !n && t && (L = t), t || !n && L;
46
+ }, v = function(o, r) {
47
+ if (E(o)) return o.clone();
48
+ var e = typeof r == "object" ? r : {};
49
+ return e.date = o, e.args = arguments, new A(e);
50
+ }, f = me;
51
+ f.l = z, f.i = E, f.w = function(o, r) {
52
+ return v(o, { locale: r.$L, utc: r.$u, x: r.$x, $offset: r.$offset });
54
53
  };
55
- var F = function() {
56
- function o(t) {
57
- this.$L = A(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[Z] = !0;
54
+ var A = function() {
55
+ function o(e) {
56
+ this.$L = z(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[ee] = !0;
58
57
  }
59
58
  var r = o.prototype;
60
- return r.parse = function(t) {
59
+ return r.parse = function(e) {
61
60
  this.$d = function(n) {
62
- var e = n.date, i = n.utc;
63
- if (e === null) return /* @__PURE__ */ new Date(NaN);
64
- if (f.u(e)) return /* @__PURE__ */ new Date();
65
- if (e instanceof Date) return new Date(e);
66
- if (typeof e == "string" && !/Z$/i.test(e)) {
67
- var a = e.match(at);
68
- if (a) {
69
- var l = a[2] - 1 || 0, y = (a[7] || "0").substring(0, 3);
70
- return i ? new Date(Date.UTC(a[1], l, a[3] || 1, a[4] || 0, a[5] || 0, a[6] || 0, y)) : new Date(a[1], l, a[3] || 1, a[4] || 0, a[5] || 0, a[6] || 0, y);
61
+ var t = n.date, s = n.utc;
62
+ if (t === null) return /* @__PURE__ */ new Date(NaN);
63
+ if (f.u(t)) return /* @__PURE__ */ new Date();
64
+ if (t instanceof Date) return new Date(t);
65
+ if (typeof t == "string" && !/Z$/i.test(t)) {
66
+ var u = t.match(he);
67
+ if (u) {
68
+ var l = u[2] - 1 || 0, y = (u[7] || "0").substring(0, 3);
69
+ return s ? new Date(Date.UTC(u[1], l, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, y)) : new Date(u[1], l, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, y);
71
70
  }
72
71
  }
73
- return new Date(e);
74
- }(t), this.init();
72
+ return new Date(t);
73
+ }(e), this.init();
75
74
  }, r.init = function() {
76
- var t = this.$d;
77
- 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();
75
+ var e = this.$d;
76
+ this.$y = e.getFullYear(), this.$M = e.getMonth(), this.$D = e.getDate(), this.$W = e.getDay(), this.$H = e.getHours(), this.$m = e.getMinutes(), this.$s = e.getSeconds(), this.$ms = e.getMilliseconds();
78
77
  }, r.$utils = function() {
79
78
  return f;
80
79
  }, r.isValid = function() {
81
- return this.$d.toString() !== U;
82
- }, r.isSame = function(t, n) {
83
- var e = m(t);
84
- return this.startOf(n) <= e && e <= this.endOf(n);
85
- }, r.isAfter = function(t, n) {
86
- return m(t) < this.startOf(n);
87
- }, r.isBefore = function(t, n) {
88
- return this.endOf(n) < m(t);
89
- }, r.$g = function(t, n, e) {
90
- return f.u(t) ? this[n] : this.set(e, t);
80
+ return this.$d.toString() !== X;
81
+ }, r.isSame = function(e, n) {
82
+ var t = v(e);
83
+ return this.startOf(n) <= t && t <= this.endOf(n);
84
+ }, r.isAfter = function(e, n) {
85
+ return v(e) < this.startOf(n);
86
+ }, r.isBefore = function(e, n) {
87
+ return this.endOf(n) < v(e);
88
+ }, r.$g = function(e, n, t) {
89
+ return f.u(e) ? this[n] : this.set(t, e);
91
90
  }, r.unix = function() {
92
91
  return Math.floor(this.valueOf() / 1e3);
93
92
  }, r.valueOf = function() {
94
93
  return this.$d.getTime();
95
- }, r.startOf = function(t, n) {
96
- var e = this, i = !!f.u(n) || n, a = f.p(t), l = function(P, x) {
97
- var w = f.w(e.$u ? Date.UTC(e.$y, x, P) : new Date(e.$y, x, P), e);
98
- return i ? w : w.endOf(g);
99
- }, y = function(P, x) {
100
- return f.w(e.toDate()[P].apply(e.toDate("s"), (i ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(x)), e);
101
- }, v = this.$W, M = this.$M, D = this.$D, k = "set" + (this.$u ? "UTC" : "");
102
- switch (a) {
103
- case Y:
104
- return i ? l(1, 0) : l(31, 11);
105
- case S:
106
- return i ? l(1, M) : l(0, M + 1);
107
- case E:
108
- var j = this.$locale().weekStart || 0, H = (v < j ? v + 7 : v) - j;
109
- return l(i ? D - H : D + (6 - H), M);
94
+ }, r.startOf = function(e, n) {
95
+ var t = this, s = !!f.u(n) || n, u = f.p(e), l = function(P, D) {
96
+ var O = f.w(t.$u ? Date.UTC(t.$y, D, P) : new Date(t.$y, D, P), t);
97
+ return s ? O : O.endOf(Y);
98
+ }, y = function(P, D) {
99
+ return f.w(t.toDate()[P].apply(t.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(D)), t);
100
+ }, $ = this.$W, M = this.$M, b = this.$D, k = "set" + (this.$u ? "UTC" : "");
101
+ switch (u) {
110
102
  case g:
111
- case L:
103
+ return s ? l(1, 0) : l(31, 11);
104
+ case S:
105
+ return s ? l(1, M) : l(0, M + 1);
106
+ case N:
107
+ var j = this.$locale().weekStart || 0, C = ($ < j ? $ + 7 : $) - j;
108
+ return l(s ? b - C : b + (6 - C), M);
109
+ case Y:
110
+ case q:
112
111
  return y(k + "Hours", 0);
113
- case b:
112
+ case x:
114
113
  return y(k + "Minutes", 1);
115
114
  case _:
116
115
  return y(k + "Seconds", 2);
@@ -119,60 +118,60 @@ function dt() {
119
118
  default:
120
119
  return this.clone();
121
120
  }
122
- }, r.endOf = function(t) {
123
- return this.startOf(t, !1);
124
- }, r.$set = function(t, n) {
125
- var e, i = f.p(t), a = "set" + (this.$u ? "UTC" : ""), l = (e = {}, e[g] = a + "Date", e[L] = a + "Date", e[S] = a + "Month", e[Y] = a + "FullYear", e[b] = a + "Hours", e[_] = a + "Minutes", e[c] = a + "Seconds", e[d] = a + "Milliseconds", e)[i], y = i === g ? this.$D + (n - this.$W) : n;
126
- if (i === S || i === Y) {
127
- var v = this.clone().set(L, 1);
128
- v.$d[l](y), v.init(), this.$d = v.set(L, Math.min(this.$D, v.daysInMonth())).$d;
121
+ }, r.endOf = function(e) {
122
+ return this.startOf(e, !1);
123
+ }, r.$set = function(e, n) {
124
+ var t, s = f.p(e), u = "set" + (this.$u ? "UTC" : ""), l = (t = {}, t[Y] = u + "Date", t[q] = u + "Date", t[S] = u + "Month", t[g] = u + "FullYear", t[x] = u + "Hours", t[_] = u + "Minutes", t[c] = u + "Seconds", t[p] = u + "Milliseconds", t)[s], y = s === Y ? this.$D + (n - this.$W) : n;
125
+ if (s === S || s === g) {
126
+ var $ = this.clone().set(q, 1);
127
+ $.$d[l](y), $.init(), this.$d = $.set(q, Math.min(this.$D, $.daysInMonth())).$d;
129
128
  } else l && this.$d[l](y);
130
129
  return this.init(), this;
131
- }, r.set = function(t, n) {
132
- return this.clone().$set(t, n);
133
- }, r.get = function(t) {
134
- return this[f.p(t)]();
135
- }, r.add = function(t, n) {
136
- var e, i = this;
137
- t = Number(t);
138
- var a = f.p(n), l = function(M) {
139
- var D = m(i);
140
- return f.w(D.date(D.date() + Math.round(M * t)), i);
130
+ }, r.set = function(e, n) {
131
+ return this.clone().$set(e, n);
132
+ }, r.get = function(e) {
133
+ return this[f.p(e)]();
134
+ }, r.add = function(e, n) {
135
+ var t, s = this;
136
+ e = Number(e);
137
+ var u = f.p(n), l = function(M) {
138
+ var b = v(s);
139
+ return f.w(b.date(b.date() + Math.round(M * e)), s);
141
140
  };
142
- if (a === S) return this.set(S, this.$M + t);
143
- if (a === Y) return this.set(Y, this.$y + t);
144
- if (a === g) return l(1);
145
- if (a === E) return l(7);
146
- var y = (e = {}, e[_] = u, e[b] = p, e[c] = h, e)[a] || 1, v = this.$d.getTime() + t * y;
147
- return f.w(v, this);
148
- }, r.subtract = function(t, n) {
149
- return this.add(-1 * t, n);
150
- }, r.format = function(t) {
151
- var n = this, e = this.$locale();
152
- if (!this.isValid()) return e.invalidDate || U;
153
- var i = t || "YYYY-MM-DDTHH:mm:ssZ", a = f.z(this), l = this.$H, y = this.$m, v = this.$M, M = e.weekdays, D = e.months, k = e.meridiem, j = function(x, w, C, W) {
154
- return x && (x[w] || x(n, i)) || C[w].slice(0, W);
155
- }, H = function(x) {
156
- return f.s(l % 12 || 12, x, "0");
157
- }, P = k || function(x, w, C) {
158
- var W = x < 12 ? "AM" : "PM";
159
- return C ? W.toLowerCase() : W;
141
+ if (u === S) return this.set(S, this.$M + e);
142
+ if (u === g) return this.set(g, this.$y + e);
143
+ if (u === Y) return l(1);
144
+ if (u === N) return l(7);
145
+ var y = (t = {}, t[_] = a, t[x] = h, t[c] = d, t)[u] || 1, $ = this.$d.getTime() + e * y;
146
+ return f.w($, this);
147
+ }, r.subtract = function(e, n) {
148
+ return this.add(-1 * e, n);
149
+ }, r.format = function(e) {
150
+ var n = this, t = this.$locale();
151
+ if (!this.isValid()) return t.invalidDate || X;
152
+ var s = e || "YYYY-MM-DDTHH:mm:ssZ", u = f.z(this), l = this.$H, y = this.$m, $ = this.$M, M = t.weekdays, b = t.months, k = t.meridiem, j = function(D, O, T, F) {
153
+ return D && (D[O] || D(n, s)) || T[O].slice(0, F);
154
+ }, C = function(D) {
155
+ return f.s(l % 12 || 12, D, "0");
156
+ }, P = k || function(D, O, T) {
157
+ var F = D < 12 ? "AM" : "PM";
158
+ return T ? F.toLowerCase() : F;
160
159
  };
161
- return i.replace(ut, function(x, w) {
162
- return w || function(C) {
163
- switch (C) {
160
+ return s.replace(ye, function(D, O) {
161
+ return O || function(T) {
162
+ switch (T) {
164
163
  case "YY":
165
164
  return String(n.$y).slice(-2);
166
165
  case "YYYY":
167
166
  return f.s(n.$y, 4, "0");
168
167
  case "M":
169
- return v + 1;
168
+ return $ + 1;
170
169
  case "MM":
171
- return f.s(v + 1, 2, "0");
170
+ return f.s($ + 1, 2, "0");
172
171
  case "MMM":
173
- return j(e.monthsShort, v, D, 3);
172
+ return j(t.monthsShort, $, b, 3);
174
173
  case "MMMM":
175
- return j(D, v);
174
+ return j(b, $);
176
175
  case "D":
177
176
  return n.$D;
178
177
  case "DD":
@@ -180,9 +179,9 @@ function dt() {
180
179
  case "d":
181
180
  return String(n.$W);
182
181
  case "dd":
183
- return j(e.weekdaysMin, n.$W, M, 2);
182
+ return j(t.weekdaysMin, n.$W, M, 2);
184
183
  case "ddd":
185
- return j(e.weekdaysShort, n.$W, M, 3);
184
+ return j(t.weekdaysShort, n.$W, M, 3);
186
185
  case "dddd":
187
186
  return M[n.$W];
188
187
  case "H":
@@ -190,9 +189,9 @@ function dt() {
190
189
  case "HH":
191
190
  return f.s(l, 2, "0");
192
191
  case "h":
193
- return H(1);
192
+ return C(1);
194
193
  case "hh":
195
- return H(2);
194
+ return C(2);
196
195
  case "a":
197
196
  return P(l, y, !0);
198
197
  case "A":
@@ -208,54 +207,54 @@ function dt() {
208
207
  case "SSS":
209
208
  return f.s(n.$ms, 3, "0");
210
209
  case "Z":
211
- return a;
210
+ return u;
212
211
  }
213
212
  return null;
214
- }(x) || a.replace(":", "");
213
+ }(D) || u.replace(":", "");
215
214
  });
216
215
  }, r.utcOffset = function() {
217
216
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
218
- }, r.diff = function(t, n, e) {
219
- var i, a = this, l = f.p(n), y = m(t), v = (y.utcOffset() - this.utcOffset()) * u, M = this - y, D = function() {
220
- return f.m(a, y);
217
+ }, r.diff = function(e, n, t) {
218
+ var s, u = this, l = f.p(n), y = v(e), $ = (y.utcOffset() - this.utcOffset()) * a, M = this - y, b = function() {
219
+ return f.m(u, y);
221
220
  };
222
221
  switch (l) {
223
- case Y:
224
- i = D() / 12;
222
+ case g:
223
+ s = b() / 12;
225
224
  break;
226
225
  case S:
227
- i = D();
226
+ s = b();
228
227
  break;
229
- case R:
230
- i = D() / 3;
228
+ case G:
229
+ s = b() / 3;
231
230
  break;
232
- case E:
233
- i = (M - v) / 6048e5;
231
+ case N:
232
+ s = (M - $) / 6048e5;
234
233
  break;
235
- case g:
236
- i = (M - v) / 864e5;
234
+ case Y:
235
+ s = (M - $) / 864e5;
237
236
  break;
238
- case b:
239
- i = M / p;
237
+ case x:
238
+ s = M / h;
240
239
  break;
241
240
  case _:
242
- i = M / u;
241
+ s = M / a;
243
242
  break;
244
243
  case c:
245
- i = M / h;
244
+ s = M / d;
246
245
  break;
247
246
  default:
248
- i = M;
247
+ s = M;
249
248
  }
250
- return e ? i : f.a(i);
249
+ return t ? s : f.a(s);
251
250
  }, r.daysInMonth = function() {
252
251
  return this.endOf(S).$D;
253
252
  }, r.$locale = function() {
254
- return O[this.$L];
255
- }, r.locale = function(t, n) {
256
- if (!t) return this.$L;
257
- var e = this.clone(), i = A(t, n, !0);
258
- return i && (e.$L = i), e;
253
+ return w[this.$L];
254
+ }, r.locale = function(e, n) {
255
+ if (!e) return this.$L;
256
+ var t = this.clone(), s = z(e, n, !0);
257
+ return s && (t.$L = s), t;
259
258
  }, r.clone = function() {
260
259
  return f.w(this.$d, this);
261
260
  }, r.toDate = function() {
@@ -267,165 +266,186 @@ function dt() {
267
266
  }, r.toString = function() {
268
267
  return this.$d.toUTCString();
269
268
  }, o;
270
- }(), J = F.prototype;
271
- return m.prototype = J, [["$ms", d], ["$s", c], ["$m", _], ["$H", b], ["$W", g], ["$M", S], ["$y", Y], ["$D", L]].forEach(function(o) {
272
- J[o[1]] = function(r) {
269
+ }(), te = A.prototype;
270
+ return v.prototype = te, [["$ms", p], ["$s", c], ["$m", _], ["$H", x], ["$W", Y], ["$M", S], ["$y", g], ["$D", q]].forEach(function(o) {
271
+ te[o[1]] = function(r) {
273
272
  return this.$g(r, o[0], o[1]);
274
273
  };
275
- }), m.extend = function(o, r) {
276
- return o.$i || (o(r, F, m), o.$i = !0), m;
277
- }, m.locale = A, m.isDayjs = q, m.unix = function(o) {
278
- return m(1e3 * o);
279
- }, m.en = O[T], m.Ls = O, m.p = {}, m;
274
+ }), v.extend = function(o, r) {
275
+ return o.$i || (o(r, A, v), o.$i = !0), v;
276
+ }, v.locale = z, v.isDayjs = E, v.unix = function(o) {
277
+ return v(1e3 * o);
278
+ }, v.en = w[L], v.Ls = w, v.p = {}, v;
280
279
  });
281
- }(I)), I.exports;
280
+ }(Z)), Z.exports;
282
281
  }
283
- (function(s, $) {
284
- (function(h, u) {
285
- s.exports = u(dt());
286
- })(G, function(h) {
287
- function u(c) {
288
- return c && typeof c == "object" && "default" in c ? c : { default: c };
282
+ var Me = W.exports, ne;
283
+ function xe() {
284
+ return ne || (ne = 1, function(i, m) {
285
+ (function(d, a) {
286
+ i.exports = a($e());
287
+ })(Me, function(d) {
288
+ function a(c) {
289
+ return c && typeof c == "object" && "default" in c ? c : { default: c };
290
+ }
291
+ var h = a(d), p = { name: "zh", weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), ordinal: function(c, _) {
292
+ return _ === "W" ? c + "周" : c + "日";
293
+ }, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY年M月D日", LLL: "YYYY年M月D日Ah点mm分", LLLL: "YYYY年M月D日ddddAh点mm分", l: "YYYY/M/D", ll: "YYYY年M月D日", lll: "YYYY年M月D日 HH:mm", llll: "YYYY年M月D日dddd HH:mm" }, relativeTime: { future: "%s后", past: "%s前", s: "几秒", m: "1 分钟", mm: "%d 分钟", h: "1 小时", hh: "%d 小时", d: "1 天", dd: "%d 天", M: "1 个月", MM: "%d 个月", y: "1 年", yy: "%d 年" }, meridiem: function(c, _) {
294
+ var x = 100 * c + _;
295
+ return x < 600 ? "凌晨" : x < 900 ? "早上" : x < 1100 ? "上午" : x < 1300 ? "中午" : x < 1800 ? "下午" : "晚上";
296
+ } };
297
+ return h.default.locale(p, null, !0), p;
298
+ });
299
+ }(W)), W.exports;
300
+ }
301
+ var De = xe();
302
+ const be = /* @__PURE__ */ de(De);
303
+ var H = {}, K = { exports: {} }, ie;
304
+ function Se() {
305
+ return ie || (ie = 1, function(i) {
306
+ function m(d) {
307
+ return d && d.__esModule ? d : {
308
+ default: d
309
+ };
289
310
  }
290
- var p = u(h), d = { name: "zh", weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), ordinal: function(c, _) {
291
- return _ === "W" ? c + "周" : c + "日";
292
- }, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY年M月D日", LLL: "YYYY年M月D日Ah点mm分", LLLL: "YYYY年M月D日ddddAh点mm分", l: "YYYY/M/D", ll: "YYYY年M月D日", lll: "YYYY年M月D日 HH:mm", llll: "YYYY年M月D日dddd HH:mm" }, relativeTime: { future: "%s后", past: "%s前", s: "几秒", m: "1 分钟", mm: "%d 分钟", h: "1 小时", hh: "%d 小时", d: "1 天", dd: "%d 天", M: "1 个月", MM: "%d 个月", y: "1 年", yy: "%d 年" }, meridiem: function(c, _) {
293
- var b = 100 * c + _;
294
- return b < 600 ? "凌晨" : b < 900 ? "早上" : b < 1100 ? "上午" : b < 1300 ? "中午" : b < 1800 ? "下午" : "晚上";
295
- } };
296
- return p.default.locale(d, null, !0), d;
297
- });
298
- })(Q);
299
- var pt = Q.exports;
300
- const ht = /* @__PURE__ */ lt(pt);
301
- var K = {}, X = { exports: {} };
302
- (function(s) {
303
- function $(h) {
304
- return h && h.__esModule ? h : {
305
- default: h
306
- };
307
- }
308
- s.exports = $, s.exports.__esModule = !0, s.exports.default = s.exports;
309
- })(X);
310
- var yt = X.exports, tt = { exports: {} }, et = { exports: {} }, rt = { exports: {} }, nt = { exports: {} };
311
- (function(s) {
312
- function $(h) {
313
- "@babel/helpers - typeof";
314
- return s.exports = $ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(u) {
315
- return typeof u;
316
- } : function(u) {
317
- return u && typeof Symbol == "function" && u.constructor === Symbol && u !== Symbol.prototype ? "symbol" : typeof u;
318
- }, s.exports.__esModule = !0, s.exports.default = s.exports, $(h);
319
- }
320
- s.exports = $, s.exports.__esModule = !0, s.exports.default = s.exports;
321
- })(nt);
322
- var ot = nt.exports, st = { exports: {} };
323
- (function(s) {
324
- var $ = ot.default;
325
- function h(u, p) {
326
- if ($(u) != "object" || !u) return u;
327
- var d = u[Symbol.toPrimitive];
328
- if (d !== void 0) {
329
- var c = d.call(u, p || "default");
330
- if ($(c) != "object") return c;
331
- throw new TypeError("@@toPrimitive must return a primitive value.");
311
+ i.exports = m, i.exports.__esModule = !0, i.exports.default = i.exports;
312
+ }(K)), K.exports;
313
+ }
314
+ var U = { exports: {} }, J = { exports: {} }, B = { exports: {} }, V = { exports: {} }, oe;
315
+ function pe() {
316
+ return oe || (oe = 1, function(i) {
317
+ function m(d) {
318
+ "@babel/helpers - typeof";
319
+ return i.exports = m = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(a) {
320
+ return typeof a;
321
+ } : function(a) {
322
+ return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a;
323
+ }, i.exports.__esModule = !0, i.exports.default = i.exports, m(d);
332
324
  }
333
- return (p === "string" ? String : Number)(u);
334
- }
335
- s.exports = h, s.exports.__esModule = !0, s.exports.default = s.exports;
336
- })(st);
337
- var _t = st.exports;
338
- (function(s) {
339
- var $ = ot.default, h = _t;
340
- function u(p) {
341
- var d = h(p, "string");
342
- return $(d) == "symbol" ? d : d + "";
343
- }
344
- s.exports = u, s.exports.__esModule = !0, s.exports.default = s.exports;
345
- })(rt);
346
- var mt = rt.exports;
347
- (function(s) {
348
- var $ = mt;
349
- function h(u, p, d) {
350
- return (p = $(p)) in u ? Object.defineProperty(u, p, {
351
- value: d,
352
- enumerable: !0,
353
- configurable: !0,
354
- writable: !0
355
- }) : u[p] = d, u;
356
- }
357
- s.exports = h, s.exports.__esModule = !0, s.exports.default = s.exports;
358
- })(et);
359
- var vt = et.exports;
360
- (function(s) {
361
- var $ = vt;
362
- function h(p, d) {
363
- var c = Object.keys(p);
364
- if (Object.getOwnPropertySymbols) {
365
- var _ = Object.getOwnPropertySymbols(p);
366
- d && (_ = _.filter(function(b) {
367
- return Object.getOwnPropertyDescriptor(p, b).enumerable;
368
- })), c.push.apply(c, _);
325
+ i.exports = m, i.exports.__esModule = !0, i.exports.default = i.exports;
326
+ }(V)), V.exports;
327
+ }
328
+ var Q = { exports: {} }, se;
329
+ function Ye() {
330
+ return se || (se = 1, function(i) {
331
+ var m = pe().default;
332
+ function d(a, h) {
333
+ if (m(a) != "object" || !a) return a;
334
+ var p = a[Symbol.toPrimitive];
335
+ if (p !== void 0) {
336
+ var c = p.call(a, h || "default");
337
+ if (m(c) != "object") return c;
338
+ throw new TypeError("@@toPrimitive must return a primitive value.");
339
+ }
340
+ return (h === "string" ? String : Number)(a);
369
341
  }
370
- return c;
371
- }
372
- function u(p) {
373
- for (var d = 1; d < arguments.length; d++) {
374
- var c = arguments[d] != null ? arguments[d] : {};
375
- d % 2 ? h(Object(c), !0).forEach(function(_) {
376
- $(p, _, c[_]);
377
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(p, Object.getOwnPropertyDescriptors(c)) : h(Object(c)).forEach(function(_) {
378
- Object.defineProperty(p, _, Object.getOwnPropertyDescriptor(c, _));
379
- });
342
+ i.exports = d, i.exports.__esModule = !0, i.exports.default = i.exports;
343
+ }(Q)), Q.exports;
344
+ }
345
+ var ue;
346
+ function ge() {
347
+ return ue || (ue = 1, function(i) {
348
+ var m = pe().default, d = Ye();
349
+ function a(h) {
350
+ var p = d(h, "string");
351
+ return m(p) == "symbol" ? p : p + "";
380
352
  }
381
- return p;
382
- }
383
- s.exports = u, s.exports.__esModule = !0, s.exports.default = s.exports;
384
- })(tt);
385
- var $t = tt.exports, N = {};
386
- Object.defineProperty(N, "__esModule", {
387
- value: !0
388
- });
389
- N.commonLocale = void 0;
390
- N.commonLocale = {
391
- yearFormat: "YYYY",
392
- dayFormat: "D",
393
- cellMeridiemFormat: "A",
394
- monthBeforeYear: !0
395
- };
396
- var Mt = yt.default;
397
- Object.defineProperty(K, "__esModule", {
398
- value: !0
399
- });
400
- var it = K.default = void 0, V = Mt($t), bt = N, xt = (0, V.default)((0, V.default)({}, bt.commonLocale), {}, {
401
- locale: "zh_CN",
402
- today: "今天",
403
- now: "此刻",
404
- backToToday: "返回今天",
405
- ok: "确定",
406
- timeSelect: "选择时间",
407
- dateSelect: "选择日期",
408
- weekSelect: "选择周",
409
- clear: "清除",
410
- month: "月",
411
- year: "年",
412
- previousMonth: "上个月 (翻页上键)",
413
- nextMonth: "下个月 (翻页下键)",
414
- monthSelect: "选择月份",
415
- yearSelect: "选择年份",
416
- decadeSelect: "选择年代",
417
- previousYear: "上一年 (Control键加左方向键)",
418
- nextYear: "下一年 (Control键加右方向键)",
419
- previousDecade: "上一年代",
420
- nextDecade: "下一年代",
421
- previousCentury: "上一世纪",
422
- nextCentury: "下一世纪",
423
- yearFormat: "YYYY年",
424
- cellDateFormat: "D",
425
- monthBeforeYear: !1
426
- });
427
- it = K.default = xt;
428
- const Dt = {
353
+ i.exports = a, i.exports.__esModule = !0, i.exports.default = i.exports;
354
+ }(B)), B.exports;
355
+ }
356
+ var ae;
357
+ function Oe() {
358
+ return ae || (ae = 1, function(i) {
359
+ var m = ge();
360
+ function d(a, h, p) {
361
+ return (h = m(h)) in a ? Object.defineProperty(a, h, {
362
+ value: p,
363
+ enumerable: !0,
364
+ configurable: !0,
365
+ writable: !0
366
+ }) : a[h] = p, a;
367
+ }
368
+ i.exports = d, i.exports.__esModule = !0, i.exports.default = i.exports;
369
+ }(J)), J.exports;
370
+ }
371
+ var ce;
372
+ function we() {
373
+ return ce || (ce = 1, function(i) {
374
+ var m = Oe();
375
+ function d(h, p) {
376
+ var c = Object.keys(h);
377
+ if (Object.getOwnPropertySymbols) {
378
+ var _ = Object.getOwnPropertySymbols(h);
379
+ p && (_ = _.filter(function(x) {
380
+ return Object.getOwnPropertyDescriptor(h, x).enumerable;
381
+ })), c.push.apply(c, _);
382
+ }
383
+ return c;
384
+ }
385
+ function a(h) {
386
+ for (var p = 1; p < arguments.length; p++) {
387
+ var c = arguments[p] != null ? arguments[p] : {};
388
+ p % 2 ? d(Object(c), !0).forEach(function(_) {
389
+ m(h, _, c[_]);
390
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(h, Object.getOwnPropertyDescriptors(c)) : d(Object(c)).forEach(function(_) {
391
+ Object.defineProperty(h, _, Object.getOwnPropertyDescriptor(c, _));
392
+ });
393
+ }
394
+ return h;
395
+ }
396
+ i.exports = a, i.exports.__esModule = !0, i.exports.default = i.exports;
397
+ }(U)), U.exports;
398
+ }
399
+ var R = {}, fe;
400
+ function je() {
401
+ return fe || (fe = 1, Object.defineProperty(R, "__esModule", {
402
+ value: !0
403
+ }), R.commonLocale = void 0, R.commonLocale = {
404
+ yearFormat: "YYYY",
405
+ dayFormat: "D",
406
+ cellMeridiemFormat: "A",
407
+ monthBeforeYear: !0
408
+ }), R;
409
+ }
410
+ var le;
411
+ function Pe() {
412
+ if (le) return H;
413
+ le = 1;
414
+ var i = Se().default;
415
+ Object.defineProperty(H, "__esModule", {
416
+ value: !0
417
+ }), H.default = void 0;
418
+ var m = i(we()), d = je(), a = (0, m.default)((0, m.default)({}, d.commonLocale), {}, {
419
+ locale: "zh_CN",
420
+ today: "今天",
421
+ now: "此刻",
422
+ backToToday: "返回今天",
423
+ ok: "确定",
424
+ timeSelect: "选择时间",
425
+ dateSelect: "选择日期",
426
+ weekSelect: "选择周",
427
+ clear: "清除",
428
+ month: "月",
429
+ year: "年",
430
+ previousMonth: "上个月 (翻页上键)",
431
+ nextMonth: "下个月 (翻页下键)",
432
+ monthSelect: "选择月份",
433
+ yearSelect: "选择年份",
434
+ decadeSelect: "选择年代",
435
+ previousYear: "上一年 (Control键加左方向键)",
436
+ nextYear: "下一年 (Control键加右方向键)",
437
+ previousDecade: "上一年代",
438
+ nextDecade: "下一年代",
439
+ previousCentury: "上一世纪",
440
+ nextCentury: "下一世纪",
441
+ yearFormat: "YYYY年",
442
+ cellDateFormat: "D",
443
+ monthBeforeYear: !1
444
+ });
445
+ return H.default = a, H;
446
+ }
447
+ var qe = Pe();
448
+ const ke = /* @__PURE__ */ de(qe), Le = {
429
449
  design: {
430
450
  Confirm: {
431
451
  cancel: "取消",
@@ -435,8 +455,8 @@ const Dt = {
435
455
  resetTo: "恢复至"
436
456
  },
437
457
  Picker: {
438
- ...ht,
439
- ...it
458
+ ...be,
459
+ ...ke
440
460
  },
441
461
  CascaderList: {
442
462
  empty: "无"
@@ -447,5 +467,5 @@ const Dt = {
447
467
  }
448
468
  };
449
469
  export {
450
- Dt as default
470
+ Le as default
451
471
  };