@lntvow/utils 2.4.1 → 2.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,14 +1,14 @@
1
- function R0(...t) {
1
+ function Z0(...t) {
2
2
  return t.reduce((e, n) => function(...r) {
3
3
  return n(e(...r));
4
4
  });
5
5
  }
6
- function I0(...t) {
6
+ function P0(...t) {
7
7
  return t.reduce((e, n) => function(...r) {
8
8
  return e(n(...r));
9
9
  });
10
10
  }
11
- function Z0(t, e = 500) {
11
+ function U0(t, e = 500) {
12
12
  let n = null;
13
13
  return function(...r) {
14
14
  n && clearTimeout(n), n = setTimeout(() => {
@@ -18,18 +18,18 @@ function Z0(t, e = 500) {
18
18
  }
19
19
  const S0 = Object.prototype.toString, o0 = (t) => S0.call(t);
20
20
  let f0 = null;
21
- function P0(t) {
21
+ function k0(t) {
22
22
  i0(t) && (f0 = t);
23
23
  }
24
- const U0 = (t, ...e) => {
24
+ const z0 = (t, ...e) => {
25
25
  const n = e.length === 0 ? "" : e.length === 1 ? e[0] : e;
26
26
  console.log(
27
27
  `%c ${t} `,
28
28
  "padding: 2px; border-radius: 3px; color: #fff; background: #000; font-weight: bold;",
29
29
  n
30
30
  ), f0 && f0(t, n);
31
- }, k0 = (...t) => console.warn(...t), z0 = (...t) => console.error(...t), W0 = (t) => o0(t) === "[object Map]", V0 = (t) => o0(t) === "[object Set]", O0 = (t) => o0(t) === "[object Date]", x0 = (t) => o0(t) === "[object RegExp]", i0 = (t) => typeof t == "function", s0 = (t) => typeof t == "number", A0 = (t) => typeof t == "string", q0 = (t) => typeof t == "symbol", W = (t) => t !== null && typeof t == "object", X0 = (t) => W(t) && i0(t.then) && i0(t.catch), r0 = (t) => t == null, B0 = (t) => t === void 0, J0 = (t) => t === null, G0 = (t) => t != null, K0 = (t) => typeof t == "boolean", n0 = Array.isArray, d0 = (t, e) => Object.hasOwn(t, e), Q0 = (t, e) => t !== e;
32
- function l0(t) {
31
+ }, W0 = (...t) => console.warn(...t), V0 = (...t) => console.error(...t), q0 = (t) => o0(t) === "[object Map]", X0 = (t) => o0(t) === "[object Set]", O0 = (t) => o0(t) === "[object Date]", x0 = (t) => o0(t) === "[object RegExp]", i0 = (t) => typeof t == "function", s0 = (t) => typeof t == "number", A0 = (t) => typeof t == "string", B0 = (t) => typeof t == "symbol", W = (t) => t !== null && typeof t == "object", J0 = (t) => W(t) && i0(t.then) && i0(t.catch), r0 = (t) => t == null, G0 = (t) => t === void 0, K0 = (t) => t === null, Q0 = (t) => t != null, t2 = (t) => typeof t == "boolean", n0 = Array.isArray, d0 = (t, e) => Object.hasOwn(t, e), e2 = (t, e) => t !== e;
32
+ function h0(t) {
33
33
  const e = /* @__PURE__ */ new WeakMap();
34
34
  function n(r) {
35
35
  if (O0(r))
@@ -63,22 +63,30 @@ class m0 extends Error {
63
63
  function V(t, e) {
64
64
  throw new m0(`[${t}] ${e}`);
65
65
  }
66
- function t2(t, e) {
66
+ function C0(t, e) {
67
67
  if (process.env.NODE_ENV !== "production") {
68
68
  const n = A0(t) ? new m0(`[${t}] ${e}`) : t;
69
69
  console.warn(n);
70
70
  }
71
71
  }
72
+ const E0 = ({
73
+ from: t,
74
+ replacement: e,
75
+ version: n,
76
+ type: r = "API"
77
+ }) => {
78
+ C0(`${r}`, `${t} is about to be deprecated in version ${n}, please use ${e} instead.`);
79
+ };
72
80
  function k(t, e, n) {
73
- return (!W(t) || !W(e)) && V("deepMerge", "template 和 source 必须是对象"), n0(t) ? E0(t, e, n) : C0(t, e, n);
81
+ return (!W(t) || !W(e)) && V("deepMerge", "template 和 source 必须是对象"), n0(t) ? _0(t, e, n) : L0(t, e, n);
74
82
  }
75
- function C0(t, e, n) {
83
+ function L0(t, e, n) {
76
84
  const r = e0(e, n);
77
85
  return Object.keys(t).forEach((f) => {
78
86
  r0(e[f]) ? r[f] = e0(t[f], n) : r[f] = W(t[f]) && W(e[f]) ? k(t[f], e[f], n) : e0(e[f], n);
79
87
  }), r;
80
88
  }
81
- function E0(t, e, n) {
89
+ function _0(t, e, n) {
82
90
  if (n0(e)) {
83
91
  const r = e0(e, n);
84
92
  return r.push(...e0(t, n)), r;
@@ -87,9 +95,9 @@ function E0(t, e, n) {
87
95
  }
88
96
  function e0(t, e) {
89
97
  const { deepClone: n = !0 } = e || {};
90
- return n ? l0(t) : t;
98
+ return n ? h0(t) : t;
91
99
  }
92
- function L0(t, e) {
100
+ function j0(t, e) {
93
101
  const { decode: n } = k({ decode: !0 }, e || {}), r = {};
94
102
  t.startsWith("?") && (t = t.slice(1)), t.includes("?") && (t = t.slice(t.indexOf("?") + 1));
95
103
  const d = t.split("&").filter(Boolean);
@@ -107,16 +115,16 @@ function $0(t, e) {
107
115
  }
108
116
  return r.join("&");
109
117
  }
110
- function _0(t, e, n) {
118
+ function T0(t, e, n) {
111
119
  const r = k({ encode: !0 }, n || {}), d = $0(e, r);
112
120
  return t.includes("?") ? t.endsWith("?") || t.endsWith("&") ? `${t}${d}` : `${t}&${d}` : `${t}?${d}`;
113
121
  }
114
- const e2 = {
115
- parse: L0,
122
+ const n2 = {
123
+ parse: j0,
116
124
  stringify: $0,
117
- appendQueryString: _0
125
+ appendQueryString: T0
118
126
  };
119
- function n2(t, e = 500) {
127
+ function r2(t, e = 500) {
120
128
  let n = null;
121
129
  return function(...r) {
122
130
  if (r0(n))
@@ -128,28 +136,28 @@ function n2(t, e = 500) {
128
136
  }
129
137
  };
130
138
  }
131
- function r2(t) {
139
+ function i2(t) {
132
140
  return /^-?\d{1,3}\.\d{6}$/.test(t);
133
141
  }
134
- function i2(t) {
142
+ function o2(t) {
135
143
  return !r0(t) && /^[\dA-Za-z\u4E00-\u9FA5]+$/.test(t);
136
144
  }
137
- function o2(t) {
145
+ function s2(t) {
138
146
  return !r0(t) && /^[A-Za-z\u4E00-\u9FA5]+$/.test(t);
139
147
  }
140
- function s2(t) {
148
+ function a2(t) {
141
149
  return !r0(t) && /^[\d!"#$%&'()*+,./:;<=>?@A-Z[\\\]^_`{|}~]+$/.test(t);
142
150
  }
143
151
  function u2(t) {
144
152
  return /^[\dA-Z_]+$/.test(t);
145
153
  }
146
- function a2(t) {
147
- return /^([\w-])+@([\w-])+(\.[\w-])+/.test(t);
154
+ function c2(t) {
155
+ return E0({ from: "validatorEmail", replacement: "isEmail", version: "2.4.0" }), /^([\w-])+@([\w-])+(\.[\w-])+/.test(t);
148
156
  }
149
157
  function g0(t) {
150
158
  return n0(t) ? t : [t];
151
159
  }
152
- function c2(t, e) {
160
+ function f2(t, e) {
153
161
  return (!W(t) || !W(e)) && V("deepMerge", "template 和 source 必须是对象"), n0(t) ? void 0 : p0(t, e);
154
162
  }
155
163
  function p0(t, e) {
@@ -159,13 +167,13 @@ function p0(t, e) {
159
167
  W(d) && W(f) ? n[r] = p0(d, f) : Object.is(d, f) || (n[r] = f);
160
168
  }), n;
161
169
  }
162
- function f2(t, e) {
163
- const n = l0(t);
170
+ function d2(t, e) {
171
+ const n = h0(t);
164
172
  return g0(e).forEach((d) => {
165
173
  d0(n, d) && delete n[d];
166
174
  }), n;
167
175
  }
168
- function d2(t, e) {
176
+ function l2(t, e) {
169
177
  const n = {};
170
178
  return g0(e).forEach((d) => {
171
179
  d0(t, d) && (n[d] = t[d]);
@@ -174,7 +182,7 @@ function d2(t, e) {
174
182
  function h2(t, e) {
175
183
  return (!s0(t) || t <= 0) && V("generateRandomArray", "num 必须大于0"), i0(e) || V("generateRandomArray", "cb 必须是函数"), Array.from({ length: t }).fill(0).map((n, r) => e(n, r));
176
184
  }
177
- function l2() {
185
+ function m2() {
178
186
  return `#${Math.random().toString(16).slice(2, 8).padEnd(6, "0")}`;
179
187
  }
180
188
  var M0 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -186,62 +194,62 @@ var D0 = { exports: {} };
186
194
  (function(n, r) {
187
195
  t.exports = r();
188
196
  })(M0, function() {
189
- var n = 1e3, r = 6e4, d = 36e5, f = "millisecond", Y = "second", y = "minute", _ = "hour", M = "day", q = "week", x = "month", Q = "quarter", C = "year", J = "date", l = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, D = /\[([^\]]+)]|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, w = { 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(a) {
190
- var s = ["th", "st", "nd", "rd"], i = a % 100;
191
- return "[" + a + (s[(i - 20) % 10] || s[i] || s[0]) + "]";
192
- } }, j = function(a, s, i) {
193
- var u = String(a);
194
- return !u || u.length >= s ? a : "" + Array(s + 1 - u.length).join(i) + a;
195
- }, I = { s: j, z: function(a) {
196
- var s = -a.utcOffset(), i = Math.abs(s), u = Math.floor(i / 60), o = i % 60;
197
- return (s <= 0 ? "+" : "-") + j(u, 2, "0") + ":" + j(o, 2, "0");
198
- }, m: function a(s, i) {
197
+ var n = 1e3, r = 6e4, d = 36e5, f = "millisecond", Y = "second", y = "minute", _ = "hour", M = "day", q = "week", x = "month", Q = "quarter", C = "year", J = "date", h = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, D = /\[([^\]]+)]|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, w = { 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(u) {
198
+ var s = ["th", "st", "nd", "rd"], i = u % 100;
199
+ return "[" + u + (s[(i - 20) % 10] || s[i] || s[0]) + "]";
200
+ } }, j = function(u, s, i) {
201
+ var a = String(u);
202
+ return !a || a.length >= s ? u : "" + Array(s + 1 - a.length).join(i) + u;
203
+ }, I = { s: j, z: function(u) {
204
+ var s = -u.utcOffset(), i = Math.abs(s), a = Math.floor(i / 60), o = i % 60;
205
+ return (s <= 0 ? "+" : "-") + j(a, 2, "0") + ":" + j(o, 2, "0");
206
+ }, m: function u(s, i) {
199
207
  if (s.date() < i.date())
200
- return -a(i, s);
201
- var u = 12 * (i.year() - s.year()) + (i.month() - s.month()), o = s.clone().add(u, x), c = i - o < 0, h = s.clone().add(u + (c ? -1 : 1), x);
202
- return +(-(u + (i - o) / (c ? o - h : h - o)) || 0);
203
- }, a: function(a) {
204
- return a < 0 ? Math.ceil(a) || 0 : Math.floor(a);
205
- }, p: function(a) {
206
- return { M: x, y: C, w: q, d: M, D: J, h: _, m: y, s: Y, ms: f, Q }[a] || String(a || "").toLowerCase().replace(/s$/, "");
207
- }, u: function(a) {
208
- return a === void 0;
208
+ return -u(i, s);
209
+ var a = 12 * (i.year() - s.year()) + (i.month() - s.month()), o = s.clone().add(a, x), c = i - o < 0, l = s.clone().add(a + (c ? -1 : 1), x);
210
+ return +(-(a + (i - o) / (c ? o - l : l - o)) || 0);
211
+ }, a: function(u) {
212
+ return u < 0 ? Math.ceil(u) || 0 : Math.floor(u);
213
+ }, p: function(u) {
214
+ return { M: x, y: C, w: q, d: M, D: J, h: _, m: y, s: Y, ms: f, Q }[u] || String(u || "").toLowerCase().replace(/s$/, "");
215
+ }, u: function(u) {
216
+ return u === void 0;
209
217
  } }, Z = "en", E = {};
210
218
  E[Z] = w;
211
- var H = "$isDayjsObject", T = function(a) {
212
- return a instanceof A || !(!a || !a[H]);
213
- }, N = function a(s, i, u) {
219
+ var H = "$isDayjsObject", T = function(u) {
220
+ return u instanceof A || !(!u || !u[H]);
221
+ }, N = function u(s, i, a) {
214
222
  var o;
215
223
  if (!s)
216
224
  return Z;
217
225
  if (typeof s == "string") {
218
226
  var c = s.toLowerCase();
219
227
  E[c] && (o = c), i && (E[c] = i, o = c);
220
- var h = s.split("-");
221
- if (!o && h.length > 1)
222
- return a(h[0]);
228
+ var l = s.split("-");
229
+ if (!o && l.length > 1)
230
+ return u(l[0]);
223
231
  } else {
224
232
  var $ = s.name;
225
233
  E[$] = s, o = $;
226
234
  }
227
- return !u && o && (Z = o), o || !u && Z;
228
- }, p = function(a, s) {
229
- if (T(a))
230
- return a.clone();
235
+ return !a && o && (Z = o), o || !a && Z;
236
+ }, p = function(u, s) {
237
+ if (T(u))
238
+ return u.clone();
231
239
  var i = typeof s == "object" ? s : {};
232
- return i.date = a, i.args = arguments, new A(i);
240
+ return i.date = u, i.args = arguments, new A(i);
233
241
  }, m = I;
234
- m.l = N, m.i = T, m.w = function(a, s) {
235
- return p(a, { locale: s.$L, utc: s.$u, x: s.$x, $offset: s.$offset });
242
+ m.l = N, m.i = T, m.w = function(u, s) {
243
+ return p(u, { locale: s.$L, utc: s.$u, x: s.$x, $offset: s.$offset });
236
244
  };
237
245
  var A = function() {
238
- function a(i) {
246
+ function u(i) {
239
247
  this.$L = N(i.locale, null, !0), this.parse(i), this.$x = this.$x || i.x || {}, this[H] = !0;
240
248
  }
241
- var s = a.prototype;
249
+ var s = u.prototype;
242
250
  return s.parse = function(i) {
243
- this.$d = function(u) {
244
- var o = u.date, c = u.utc;
251
+ this.$d = function(a) {
252
+ var o = a.date, c = a.utc;
245
253
  if (o === null)
246
254
  return /* @__PURE__ */ new Date(NaN);
247
255
  if (m.u(o))
@@ -249,10 +257,10 @@ var D0 = { exports: {} };
249
257
  if (o instanceof Date)
250
258
  return new Date(o);
251
259
  if (typeof o == "string" && !/Z$/i.test(o)) {
252
- var h = o.match(g);
253
- if (h) {
254
- var $ = h[2] - 1 || 0, v = (h[7] || "0").substring(0, 3);
255
- return c ? new Date(Date.UTC(h[1], $, h[3] || 1, h[4] || 0, h[5] || 0, h[6] || 0, v)) : new Date(h[1], $, h[3] || 1, h[4] || 0, h[5] || 0, h[6] || 0, v);
260
+ var l = o.match(g);
261
+ if (l) {
262
+ var $ = l[2] - 1 || 0, v = (l[7] || "0").substring(0, 3);
263
+ return c ? new Date(Date.UTC(l[1], $, l[3] || 1, l[4] || 0, l[5] || 0, l[6] || 0, v)) : new Date(l[1], $, l[3] || 1, l[4] || 0, l[5] || 0, l[6] || 0, v);
256
264
  }
257
265
  }
258
266
  return new Date(o);
@@ -263,28 +271,28 @@ var D0 = { exports: {} };
263
271
  }, s.$utils = function() {
264
272
  return m;
265
273
  }, s.isValid = function() {
266
- return this.$d.toString() !== l;
267
- }, s.isSame = function(i, u) {
274
+ return this.$d.toString() !== h;
275
+ }, s.isSame = function(i, a) {
268
276
  var o = p(i);
269
- return this.startOf(u) <= o && o <= this.endOf(u);
270
- }, s.isAfter = function(i, u) {
271
- return p(i) < this.startOf(u);
272
- }, s.isBefore = function(i, u) {
273
- return this.endOf(u) < p(i);
274
- }, s.$g = function(i, u, o) {
275
- return m.u(i) ? this[u] : this.set(o, i);
277
+ return this.startOf(a) <= o && o <= this.endOf(a);
278
+ }, s.isAfter = function(i, a) {
279
+ return p(i) < this.startOf(a);
280
+ }, s.isBefore = function(i, a) {
281
+ return this.endOf(a) < p(i);
282
+ }, s.$g = function(i, a, o) {
283
+ return m.u(i) ? this[a] : this.set(o, i);
276
284
  }, s.unix = function() {
277
285
  return Math.floor(this.valueOf() / 1e3);
278
286
  }, s.valueOf = function() {
279
287
  return this.$d.getTime();
280
- }, s.startOf = function(i, u) {
281
- var o = this, c = !!m.u(u) || u, h = m.p(i), $ = function(U, O) {
288
+ }, s.startOf = function(i, a) {
289
+ var o = this, c = !!m.u(a) || a, l = m.p(i), $ = function(U, O) {
282
290
  var F = m.w(o.$u ? Date.UTC(o.$y, O, U) : new Date(o.$y, O, U), o);
283
291
  return c ? F : F.endOf(M);
284
292
  }, v = function(U, O) {
285
293
  return m.w(o.toDate()[U].apply(o.toDate("s"), (c ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(O)), o);
286
294
  }, b = this.$W, S = this.$M, L = this.$D, G = "set" + (this.$u ? "UTC" : "");
287
- switch (h) {
295
+ switch (l) {
288
296
  case C:
289
297
  return c ? $(1, 0) : $(31, 11);
290
298
  case x:
@@ -306,43 +314,43 @@ var D0 = { exports: {} };
306
314
  }
307
315
  }, s.endOf = function(i) {
308
316
  return this.startOf(i, !1);
309
- }, s.$set = function(i, u) {
310
- var o, c = m.p(i), h = "set" + (this.$u ? "UTC" : ""), $ = (o = {}, o[M] = h + "Date", o[J] = h + "Date", o[x] = h + "Month", o[C] = h + "FullYear", o[_] = h + "Hours", o[y] = h + "Minutes", o[Y] = h + "Seconds", o[f] = h + "Milliseconds", o)[c], v = c === M ? this.$D + (u - this.$W) : u;
317
+ }, s.$set = function(i, a) {
318
+ var o, c = m.p(i), l = "set" + (this.$u ? "UTC" : ""), $ = (o = {}, o[M] = l + "Date", o[J] = l + "Date", o[x] = l + "Month", o[C] = l + "FullYear", o[_] = l + "Hours", o[y] = l + "Minutes", o[Y] = l + "Seconds", o[f] = l + "Milliseconds", o)[c], v = c === M ? this.$D + (a - this.$W) : a;
311
319
  if (c === x || c === C) {
312
320
  var b = this.clone().set(J, 1);
313
321
  b.$d[$](v), b.init(), this.$d = b.set(J, Math.min(this.$D, b.daysInMonth())).$d;
314
322
  } else
315
323
  $ && this.$d[$](v);
316
324
  return this.init(), this;
317
- }, s.set = function(i, u) {
318
- return this.clone().$set(i, u);
325
+ }, s.set = function(i, a) {
326
+ return this.clone().$set(i, a);
319
327
  }, s.get = function(i) {
320
328
  return this[m.p(i)]();
321
- }, s.add = function(i, u) {
329
+ }, s.add = function(i, a) {
322
330
  var o, c = this;
323
331
  i = Number(i);
324
- var h = m.p(u), $ = function(S) {
332
+ var l = m.p(a), $ = function(S) {
325
333
  var L = p(c);
326
334
  return m.w(L.date(L.date() + Math.round(S * i)), c);
327
335
  };
328
- if (h === x)
336
+ if (l === x)
329
337
  return this.set(x, this.$M + i);
330
- if (h === C)
338
+ if (l === C)
331
339
  return this.set(C, this.$y + i);
332
- if (h === M)
340
+ if (l === M)
333
341
  return $(1);
334
- if (h === q)
342
+ if (l === q)
335
343
  return $(7);
336
- var v = (o = {}, o[y] = r, o[_] = d, o[Y] = n, o)[h] || 1, b = this.$d.getTime() + i * v;
344
+ var v = (o = {}, o[y] = r, o[_] = d, o[Y] = n, o)[l] || 1, b = this.$d.getTime() + i * v;
337
345
  return m.w(b, this);
338
- }, s.subtract = function(i, u) {
339
- return this.add(-1 * i, u);
346
+ }, s.subtract = function(i, a) {
347
+ return this.add(-1 * i, a);
340
348
  }, s.format = function(i) {
341
- var u = this, o = this.$locale();
349
+ var a = this, o = this.$locale();
342
350
  if (!this.isValid())
343
- return o.invalidDate || l;
344
- var c = i || "YYYY-MM-DDTHH:mm:ssZ", h = m.z(this), $ = this.$H, v = this.$m, b = this.$M, S = o.weekdays, L = o.months, G = o.meridiem, z = function(O, F, B, K) {
345
- return O && (O[F] || O(u, c)) || B[F].slice(0, K);
351
+ return o.invalidDate || h;
352
+ var c = i || "YYYY-MM-DDTHH:mm:ssZ", l = m.z(this), $ = this.$H, v = this.$m, b = this.$M, S = o.weekdays, L = o.months, G = o.meridiem, z = function(O, F, B, K) {
353
+ return O && (O[F] || O(a, c)) || B[F].slice(0, K);
346
354
  }, X = function(O) {
347
355
  return m.s($ % 12 || 12, O, "0");
348
356
  }, U = G || function(O, F, B) {
@@ -353,9 +361,9 @@ var D0 = { exports: {} };
353
361
  return F || function(B) {
354
362
  switch (B) {
355
363
  case "YY":
356
- return String(u.$y).slice(-2);
364
+ return String(a.$y).slice(-2);
357
365
  case "YYYY":
358
- return m.s(u.$y, 4, "0");
366
+ return m.s(a.$y, 4, "0");
359
367
  case "M":
360
368
  return b + 1;
361
369
  case "MM":
@@ -365,17 +373,17 @@ var D0 = { exports: {} };
365
373
  case "MMMM":
366
374
  return z(L, b);
367
375
  case "D":
368
- return u.$D;
376
+ return a.$D;
369
377
  case "DD":
370
- return m.s(u.$D, 2, "0");
378
+ return m.s(a.$D, 2, "0");
371
379
  case "d":
372
- return String(u.$W);
380
+ return String(a.$W);
373
381
  case "dd":
374
- return z(o.weekdaysMin, u.$W, S, 2);
382
+ return z(o.weekdaysMin, a.$W, S, 2);
375
383
  case "ddd":
376
- return z(o.weekdaysShort, u.$W, S, 3);
384
+ return z(o.weekdaysShort, a.$W, S, 3);
377
385
  case "dddd":
378
- return S[u.$W];
386
+ return S[a.$W];
379
387
  case "H":
380
388
  return String($);
381
389
  case "HH":
@@ -393,22 +401,22 @@ var D0 = { exports: {} };
393
401
  case "mm":
394
402
  return m.s(v, 2, "0");
395
403
  case "s":
396
- return String(u.$s);
404
+ return String(a.$s);
397
405
  case "ss":
398
- return m.s(u.$s, 2, "0");
406
+ return m.s(a.$s, 2, "0");
399
407
  case "SSS":
400
- return m.s(u.$ms, 3, "0");
408
+ return m.s(a.$ms, 3, "0");
401
409
  case "Z":
402
- return h;
410
+ return l;
403
411
  }
404
412
  return null;
405
- }(O) || h.replace(":", "");
413
+ }(O) || l.replace(":", "");
406
414
  });
407
415
  }, s.utcOffset = function() {
408
416
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
409
- }, s.diff = function(i, u, o) {
410
- var c, h = this, $ = m.p(u), v = p(i), b = (v.utcOffset() - this.utcOffset()) * r, S = this - v, L = function() {
411
- return m.m(h, v);
417
+ }, s.diff = function(i, a, o) {
418
+ var c, l = this, $ = m.p(a), v = p(i), b = (v.utcOffset() - this.utcOffset()) * r, S = this - v, L = function() {
419
+ return m.m(l, v);
412
420
  };
413
421
  switch ($) {
414
422
  case C:
@@ -443,10 +451,10 @@ var D0 = { exports: {} };
443
451
  return this.endOf(x).$D;
444
452
  }, s.$locale = function() {
445
453
  return E[this.$L];
446
- }, s.locale = function(i, u) {
454
+ }, s.locale = function(i, a) {
447
455
  if (!i)
448
456
  return this.$L;
449
- var o = this.clone(), c = N(i, u, !0);
457
+ var o = this.clone(), c = N(i, a, !0);
450
458
  return c && (o.$L = c), o;
451
459
  }, s.clone = function() {
452
460
  return m.w(this.$d, this);
@@ -458,90 +466,90 @@ var D0 = { exports: {} };
458
466
  return this.$d.toISOString();
459
467
  }, s.toString = function() {
460
468
  return this.$d.toUTCString();
461
- }, a;
469
+ }, u;
462
470
  }(), P = A.prototype;
463
- return p.prototype = P, [["$ms", f], ["$s", Y], ["$m", y], ["$H", _], ["$W", M], ["$M", x], ["$y", C], ["$D", J]].forEach(function(a) {
464
- P[a[1]] = function(s) {
465
- return this.$g(s, a[0], a[1]);
471
+ return p.prototype = P, [["$ms", f], ["$s", Y], ["$m", y], ["$H", _], ["$W", M], ["$M", x], ["$y", C], ["$D", J]].forEach(function(u) {
472
+ P[u[1]] = function(s) {
473
+ return this.$g(s, u[0], u[1]);
466
474
  };
467
- }), p.extend = function(a, s) {
468
- return a.$i || (a(s, A, p), a.$i = !0), p;
469
- }, p.locale = N, p.isDayjs = T, p.unix = function(a) {
470
- return p(1e3 * a);
475
+ }), p.extend = function(u, s) {
476
+ return u.$i || (u(s, A, p), u.$i = !0), p;
477
+ }, p.locale = N, p.isDayjs = T, p.unix = function(u) {
478
+ return p(1e3 * u);
471
479
  }, p.en = E[Z], p.Ls = E, p.p = {}, p;
472
480
  });
473
481
  })(D0);
474
- var j0 = D0.exports;
475
- const R = /* @__PURE__ */ y0(j0);
482
+ var F0 = D0.exports;
483
+ const R = /* @__PURE__ */ y0(F0);
476
484
  var w0 = { exports: {} };
477
485
  (function(t, e) {
478
486
  (function(n, r) {
479
487
  t.exports = r();
480
488
  })(M0, function() {
481
- var n = { 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" }, r = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, d = /\d\d/, f = /\d\d?/, Y = /\d*[^-_:/,()\s\d]+/, y = {}, _ = function(l) {
482
- return (l = +l) + (l > 68 ? 1900 : 2e3);
483
- }, M = function(l) {
489
+ var n = { 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" }, r = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, d = /\d\d/, f = /\d\d?/, Y = /\d*[^-_:/,()\s\d]+/, y = {}, _ = function(h) {
490
+ return (h = +h) + (h > 68 ? 1900 : 2e3);
491
+ }, M = function(h) {
484
492
  return function(g) {
485
- this[l] = +g;
493
+ this[h] = +g;
486
494
  };
487
- }, q = [/[+-]\d\d:?(\d\d)?|Z/, function(l) {
495
+ }, q = [/[+-]\d\d:?(\d\d)?|Z/, function(h) {
488
496
  (this.zone || (this.zone = {})).offset = function(g) {
489
497
  if (!g || g === "Z")
490
498
  return 0;
491
499
  var D = g.match(/([+-]|\d\d)/g), w = 60 * D[1] + (+D[2] || 0);
492
500
  return w === 0 ? 0 : D[0] === "+" ? -w : w;
493
- }(l);
494
- }], x = function(l) {
495
- var g = y[l];
501
+ }(h);
502
+ }], x = function(h) {
503
+ var g = y[h];
496
504
  return g && (g.indexOf ? g : g.s.concat(g.f));
497
- }, Q = function(l, g) {
505
+ }, Q = function(h, g) {
498
506
  var D, w = y.meridiem;
499
507
  if (w) {
500
508
  for (var j = 1; j <= 24; j += 1)
501
- if (l.indexOf(w(j, 0, g)) > -1) {
509
+ if (h.indexOf(w(j, 0, g)) > -1) {
502
510
  D = j > 12;
503
511
  break;
504
512
  }
505
513
  } else
506
- D = l === (g ? "pm" : "PM");
514
+ D = h === (g ? "pm" : "PM");
507
515
  return D;
508
- }, C = { A: [Y, function(l) {
509
- this.afternoon = Q(l, !1);
510
- }], a: [Y, function(l) {
511
- this.afternoon = Q(l, !0);
512
- }], S: [/\d/, function(l) {
513
- this.milliseconds = 100 * +l;
514
- }], SS: [d, function(l) {
515
- this.milliseconds = 10 * +l;
516
- }], SSS: [/\d{3}/, function(l) {
517
- this.milliseconds = +l;
518
- }], s: [f, M("seconds")], ss: [f, M("seconds")], m: [f, M("minutes")], mm: [f, M("minutes")], H: [f, M("hours")], h: [f, M("hours")], HH: [f, M("hours")], hh: [f, M("hours")], D: [f, M("day")], DD: [d, M("day")], Do: [Y, function(l) {
519
- var g = y.ordinal, D = l.match(/\d+/);
516
+ }, C = { A: [Y, function(h) {
517
+ this.afternoon = Q(h, !1);
518
+ }], a: [Y, function(h) {
519
+ this.afternoon = Q(h, !0);
520
+ }], S: [/\d/, function(h) {
521
+ this.milliseconds = 100 * +h;
522
+ }], SS: [d, function(h) {
523
+ this.milliseconds = 10 * +h;
524
+ }], SSS: [/\d{3}/, function(h) {
525
+ this.milliseconds = +h;
526
+ }], s: [f, M("seconds")], ss: [f, M("seconds")], m: [f, M("minutes")], mm: [f, M("minutes")], H: [f, M("hours")], h: [f, M("hours")], HH: [f, M("hours")], hh: [f, M("hours")], D: [f, M("day")], DD: [d, M("day")], Do: [Y, function(h) {
527
+ var g = y.ordinal, D = h.match(/\d+/);
520
528
  if (this.day = D[0], g)
521
529
  for (var w = 1; w <= 31; w += 1)
522
- g(w).replace(/\[|\]/g, "") === l && (this.day = w);
523
- }], M: [f, M("month")], MM: [d, M("month")], MMM: [Y, function(l) {
530
+ g(w).replace(/\[|\]/g, "") === h && (this.day = w);
531
+ }], M: [f, M("month")], MM: [d, M("month")], MMM: [Y, function(h) {
524
532
  var g = x("months"), D = (x("monthsShort") || g.map(function(w) {
525
533
  return w.slice(0, 3);
526
- })).indexOf(l) + 1;
534
+ })).indexOf(h) + 1;
527
535
  if (D < 1)
528
536
  throw new Error();
529
537
  this.month = D % 12 || D;
530
- }], MMMM: [Y, function(l) {
531
- var g = x("months").indexOf(l) + 1;
538
+ }], MMMM: [Y, function(h) {
539
+ var g = x("months").indexOf(h) + 1;
532
540
  if (g < 1)
533
541
  throw new Error();
534
542
  this.month = g % 12 || g;
535
- }], Y: [/[+-]?\d+/, M("year")], YY: [d, function(l) {
536
- this.year = _(l);
543
+ }], Y: [/[+-]?\d+/, M("year")], YY: [d, function(h) {
544
+ this.year = _(h);
537
545
  }], YYYY: [/\d{4}/, M("year")], Z: q, ZZ: q };
538
- function J(l) {
546
+ function J(h) {
539
547
  var g, D;
540
- g = l, D = y && y.formats;
541
- for (var w = (l = g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(N, p, m) {
548
+ g = h, D = y && y.formats;
549
+ for (var w = (h = g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(N, p, m) {
542
550
  var A = m && m.toUpperCase();
543
- return p || D[m] || n[m] || D[A].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(P, a, s) {
544
- return a || s.slice(1);
551
+ return p || D[m] || n[m] || D[A].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(P, u, s) {
552
+ return u || s.slice(1);
545
553
  });
546
554
  })).match(r), j = w.length, I = 0; I < j; I += 1) {
547
555
  var Z = w[I], E = C[Z], H = E && E[0], T = E && E[1];
@@ -553,21 +561,21 @@ var w0 = { exports: {} };
553
561
  if (typeof P == "string")
554
562
  A += P.length;
555
563
  else {
556
- var a = P.regex, s = P.parser, i = N.slice(A), u = a.exec(i)[0];
557
- s.call(p, u), N = N.replace(u, "");
564
+ var u = P.regex, s = P.parser, i = N.slice(A), a = u.exec(i)[0];
565
+ s.call(p, a), N = N.replace(a, "");
558
566
  }
559
567
  }
560
568
  return function(o) {
561
569
  var c = o.afternoon;
562
570
  if (c !== void 0) {
563
- var h = o.hours;
564
- c ? h < 12 && (o.hours += 12) : h === 12 && (o.hours = 0), delete o.afternoon;
571
+ var l = o.hours;
572
+ c ? l < 12 && (o.hours += 12) : l === 12 && (o.hours = 0), delete o.afternoon;
565
573
  }
566
574
  }(p), p;
567
575
  };
568
576
  }
569
- return function(l, g, D) {
570
- D.p.customParseFormat = !0, l && l.parseTwoDigitYear && (_ = l.parseTwoDigitYear);
577
+ return function(h, g, D) {
578
+ D.p.customParseFormat = !0, h && h.parseTwoDigitYear && (_ = h.parseTwoDigitYear);
571
579
  var w = g.prototype, j = w.parse;
572
580
  w.parse = function(I) {
573
581
  var Z = I.date, E = I.utc, H = I.args;
@@ -575,27 +583,27 @@ var w0 = { exports: {} };
575
583
  var T = H[1];
576
584
  if (typeof T == "string") {
577
585
  var N = H[2] === !0, p = H[3] === !0, m = N || p, A = H[2];
578
- p && (A = H[2]), y = this.$locale(), !N && A && (y = D.Ls[A]), this.$d = function(i, u, o) {
586
+ p && (A = H[2]), y = this.$locale(), !N && A && (y = D.Ls[A]), this.$d = function(i, a, o) {
579
587
  try {
580
- if (["x", "X"].indexOf(u) > -1)
581
- return new Date((u === "X" ? 1e3 : 1) * i);
582
- var c = J(u)(i), h = c.year, $ = c.month, v = c.day, b = c.hours, S = c.minutes, L = c.seconds, G = c.milliseconds, z = c.zone, X = /* @__PURE__ */ new Date(), U = v || (h || $ ? 1 : X.getDate()), O = h || X.getFullYear(), F = 0;
583
- h && !$ || (F = $ > 0 ? $ - 1 : X.getMonth());
584
- var B = b || 0, K = S || 0, a0 = L || 0, c0 = G || 0;
585
- return z ? new Date(Date.UTC(O, F, U, B, K, a0, c0 + 60 * z.offset * 1e3)) : o ? new Date(Date.UTC(O, F, U, B, K, a0, c0)) : new Date(O, F, U, B, K, a0, c0);
588
+ if (["x", "X"].indexOf(a) > -1)
589
+ return new Date((a === "X" ? 1e3 : 1) * i);
590
+ var c = J(a)(i), l = c.year, $ = c.month, v = c.day, b = c.hours, S = c.minutes, L = c.seconds, G = c.milliseconds, z = c.zone, X = /* @__PURE__ */ new Date(), U = v || (l || $ ? 1 : X.getDate()), O = l || X.getFullYear(), F = 0;
591
+ l && !$ || (F = $ > 0 ? $ - 1 : X.getMonth());
592
+ var B = b || 0, K = S || 0, u0 = L || 0, c0 = G || 0;
593
+ return z ? new Date(Date.UTC(O, F, U, B, K, u0, c0 + 60 * z.offset * 1e3)) : o ? new Date(Date.UTC(O, F, U, B, K, u0, c0)) : new Date(O, F, U, B, K, u0, c0);
586
594
  } catch {
587
595
  return /* @__PURE__ */ new Date("");
588
596
  }
589
597
  }(Z, T, E), this.init(), A && A !== !0 && (this.$L = this.locale(A).$L), m && Z != this.format(T) && (this.$d = /* @__PURE__ */ new Date("")), y = {};
590
598
  } else if (T instanceof Array)
591
- for (var P = T.length, a = 1; a <= P; a += 1) {
592
- H[1] = T[a - 1];
599
+ for (var P = T.length, u = 1; u <= P; u += 1) {
600
+ H[1] = T[u - 1];
593
601
  var s = D.apply(this, H);
594
602
  if (s.isValid()) {
595
603
  this.$d = s.$d, this.$L = s.$L, this.init();
596
604
  break;
597
605
  }
598
- a === P && (this.$d = /* @__PURE__ */ new Date(""));
606
+ u === P && (this.$d = /* @__PURE__ */ new Date(""));
599
607
  }
600
608
  else
601
609
  j.call(this, I);
@@ -603,8 +611,8 @@ var w0 = { exports: {} };
603
611
  };
604
612
  });
605
613
  })(w0);
606
- var T0 = w0.exports;
607
- const v0 = /* @__PURE__ */ y0(T0);
614
+ var H0 = w0.exports;
615
+ const v0 = /* @__PURE__ */ y0(H0);
608
616
  function t0(t = {}) {
609
617
  s0(t) && (t = { max: t });
610
618
  const { min: e = 0, max: n = Number.MAX_SAFE_INTEGER } = t, r = Math.ceil(e), d = Math.floor(n);
@@ -621,7 +629,7 @@ function b0(t = {}) {
621
629
  const f = R(n).year(), Y = R(r).year(), y = t0({ min: f, max: Y }), _ = t0({ min: 1, max: 12 }), M = t0({ min: 1, max: 31 }), q = t0(23), x = t0(59), Q = t0(59), C = R(`${y}-${_}-${M} ${q}:${x}:${Q}`);
622
630
  return C.isBefore(R(n)) || C.isAfter(R(r)) ? (console.log("不合法时间", R(C).format("YYYY-MM-DD HH:mm:ss")), b0(t)) : C.format(d);
623
631
  }
624
- function F0(t, e = {}) {
632
+ function N0(t, e = {}) {
625
633
  const { lowerCase: n, upperCase: r, number: d } = k({ lowerCase: !0, upperCase: !0, number: !0 }, e);
626
634
  n || r || d || V("generateRandomString", "lowerCase upperCase number 至少需要一个参数为true");
627
635
  let f = "";
@@ -633,14 +641,14 @@ function F0(t, e = {}) {
633
641
  }
634
642
  return Y;
635
643
  }
636
- function u0(t) {
644
+ function a0(t) {
637
645
  return t[Math.floor(Math.random() * t.length)];
638
646
  }
639
- function m2() {
647
+ function $2() {
640
648
  const t = ["gmail.com", "yahoo.com", "outlook.com", "example.com", "qq.com", "163.com"];
641
- return `${F0(10)}@${u0(t)}`;
649
+ return `${N0(10)}@${a0(t)}`;
642
650
  }
643
- function $2(t = {}) {
651
+ function g2(t = {}) {
644
652
  s0(t) && (t = { max: t });
645
653
  const { min: e = 0, max: n = 1, fractionDigits: r = 2 } = t;
646
654
  if (e === n)
@@ -649,11 +657,11 @@ function $2(t = {}) {
649
657
  throw new Error(`最大值 ${n} 应大于最小值 ${e}`);
650
658
  return Math.random() * (n - e) + e;
651
659
  }
652
- function h0(t, e) {
660
+ function l0(t, e) {
653
661
  (!s0(t) || t <= 0) && V("generateRandomStringFromSource", "num 必须大于0"), (!n0(e) || e.length === 0) && V("generateRandomStringFromSource", "source 不能为空数组");
654
662
  let n = "";
655
663
  for (let r = 0; r < t; r++)
656
- n += u0(e);
664
+ n += a0(e);
657
665
  return n;
658
666
  }
659
667
  const Y0 = {
@@ -3829,173 +3837,174 @@ const Y0 = {
3829
3837
  香港特别行政区: "810000",
3830
3838
  澳门特别行政区: "820000"
3831
3839
  };
3832
- function g2() {
3833
- const t = u0(Object.values(Y0)), e = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
3840
+ function p2() {
3841
+ const t = a0(Object.values(Y0)), e = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
3834
3842
  return [
3835
3843
  t,
3836
3844
  b0({ format: "YYYYMMDD" }),
3837
- h0(3, e),
3838
- h0(1, [...e, "X", "x"])
3845
+ l0(3, e),
3846
+ l0(1, [...e, "X", "x"])
3839
3847
  ].join("");
3840
3848
  }
3841
- function p2() {
3842
- return u0(["13", "14", "15", "16", "17", "18", "19"]) + t0(999999999).toString().padEnd(9, "0");
3849
+ function M2() {
3850
+ return a0(["13", "14", "15", "16", "17", "18", "19"]) + t0(999999999).toString().padEnd(9, "0");
3843
3851
  }
3844
- function M2(t) {
3852
+ function y2(t) {
3845
3853
  return /^\d+$/.test(t);
3846
3854
  }
3847
- function y2(t) {
3855
+ function D2(t) {
3848
3856
  return /^[\u4E00-\u9FA5]+$/.test(t);
3849
3857
  }
3850
- function D2(t) {
3858
+ function w2(t) {
3851
3859
  return /^[A-Za-z]+$/.test(t);
3852
3860
  }
3853
- function w2(t) {
3861
+ function v2(t) {
3854
3862
  return /^[A-Z]+$/.test(t);
3855
3863
  }
3856
- function v2(t) {
3864
+ function b2(t) {
3857
3865
  return /^[\dA-Z]+$/.test(t);
3858
3866
  }
3859
- function b2(t) {
3867
+ function Y2(t) {
3860
3868
  return /^[\dA-Z\u4E00-\u9FA5]+$/.test(t);
3861
3869
  }
3862
- function Y2(t) {
3870
+ function S2(t) {
3863
3871
  return /^[a-z]+$/.test(t);
3864
3872
  }
3865
- function S2(t) {
3873
+ function O2(t) {
3866
3874
  return /^[\da-z]+$/.test(t);
3867
3875
  }
3868
- function O2(t) {
3876
+ function x2(t) {
3869
3877
  return /^[\da-z\u4E00-\u9FA5]+$/.test(t);
3870
3878
  }
3871
- function x2(t, e = {}) {
3879
+ function A2(t, e = {}) {
3872
3880
  const { integer: n } = k({ integer: !0 }, e);
3873
3881
  return n ? /^-?(0|[1-9]\d*)(\.\d+)?$/.test(t) : /^-?(0|[1-9]\d*)\.\d+$/.test(t);
3874
3882
  }
3875
- function A2(t, e = {}) {
3883
+ function C2(t, e = {}) {
3876
3884
  const { integer: n } = k({ integer: !0 }, e);
3877
3885
  return n ? /^[1-9]\d*\.?\d*|^0\.\d*[1-9]\d*$/.test(t) : /^[1-9]\d*\.\d*|^0\.\d*[1-9]\d*$/.test(t);
3878
3886
  }
3879
- function C2(t, e = {}) {
3887
+ function E2(t, e = {}) {
3880
3888
  const { integer: n } = k({ integer: !0 }, e);
3881
3889
  return n ? /^-[1-9]\d*\.?\d*|^-0\.\d*[1-9]\d*$/.test(t) : /^-[1-9]\d*\.\d*|^-0\.\d*[1-9]\d*$/.test(t);
3882
3890
  }
3883
- function E2(t, e = {}) {
3891
+ function L2(t, e = {}) {
3884
3892
  const { integer: n } = k({ integer: !0 }, e);
3885
3893
  return n ? /^(0|[1-9]\d*)(\.\d+)?$/.test(t) : /^(0|[1-9]\d*)\.\d+$/.test(t);
3886
3894
  }
3887
- function L2(t, e = {}) {
3895
+ function _2(t, e = {}) {
3888
3896
  const { integer: n } = k({ integer: !0 }, e);
3889
3897
  return n ? /^(-?0(\.0+)?|-(0|[1-9]\d*)(\.\d+)?)$/.test(t) : /^(-?0\.0+|-(0|[1-9]\d*)\.\d+)$/.test(t);
3890
3898
  }
3891
- function _2(t) {
3899
+ function j2(t) {
3892
3900
  return /^-?(0|[1-9]\d*)$/.test(t);
3893
3901
  }
3894
- function j2(t) {
3902
+ function T2(t) {
3895
3903
  return /^[1-9]\d*$/.test(t);
3896
3904
  }
3897
- function T2(t) {
3905
+ function F2(t) {
3898
3906
  return /^(0|[1-9]\d*)$/.test(t);
3899
3907
  }
3900
- function F2(t) {
3908
+ function H2(t) {
3901
3909
  return /^-([1-9]\d*)$/.test(t);
3902
3910
  }
3903
- function H2(t) {
3911
+ function N2(t) {
3904
3912
  return /^(0|-(0|[1-9]\d*))$/.test(t);
3905
3913
  }
3906
- function N2(t) {
3914
+ function R2(t) {
3907
3915
  return /^1[3-9]\d{9}$/.test(t);
3908
3916
  }
3909
- function R2(t) {
3917
+ function I2(t) {
3910
3918
  return /^([\w-])+@([\w-])+(\.[\w-])+/.test(t);
3911
3919
  }
3912
- function I2(t) {
3920
+ function Z2(t) {
3913
3921
  return t === "";
3914
3922
  }
3915
- function H0(t, e = "YYYY-MM-DD HH:mm:ss") {
3923
+ function R0(t, e = "YYYY-MM-DD HH:mm:ss") {
3916
3924
  return R.extend(v0), R(t, e, !0).isValid();
3917
3925
  }
3918
- function Z2(t) {
3926
+ function P2(t) {
3919
3927
  let e = /^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])\d{3}[\dXx]$/.test(t);
3920
- return !e || (e = Object.values(Y0).includes(t.slice(0, 6)), !e) || (e = H0(t.slice(6, 14), "YYYYMMDD"), !e), e;
3928
+ return !e || (e = Object.values(Y0).includes(t.slice(0, 6)), !e) || (e = R0(t.slice(6, 14), "YYYYMMDD"), !e), e;
3921
3929
  }
3922
3930
  export {
3923
3931
  g0 as castArray,
3924
- c2 as compareProperties,
3925
- R0 as compose,
3926
- I0 as composeRight,
3927
- Z0 as debounce,
3928
- t2 as debugWarn,
3929
- l0 as deepClone,
3932
+ f2 as compareProperties,
3933
+ Z0 as compose,
3934
+ P0 as composeRight,
3935
+ U0 as debounce,
3936
+ C0 as debugWarn,
3937
+ h0 as deepClone,
3930
3938
  k as deepMerge,
3931
- z0 as error,
3932
- f2 as excludeProperties,
3933
- d2 as extractProperties,
3939
+ E0 as deprecated,
3940
+ V0 as error,
3941
+ d2 as excludeProperties,
3942
+ l2 as extractProperties,
3934
3943
  h2 as generateRandomArray,
3935
- l2 as generateRandomColor,
3944
+ m2 as generateRandomColor,
3936
3945
  b0 as generateRandomDate,
3937
- m2 as generateRandomEmail,
3938
- $2 as generateRandomFloat,
3939
- g2 as generateRandomIdCard,
3946
+ $2 as generateRandomEmail,
3947
+ g2 as generateRandomFloat,
3948
+ p2 as generateRandomIdCard,
3940
3949
  t0 as generateRandomInteger,
3941
- p2 as generateRandomMobilePhone,
3942
- F0 as generateRandomString,
3943
- h0 as generateRandomStringFromSource,
3944
- u0 as getRandomItem,
3945
- Q0 as hasChanged,
3950
+ M2 as generateRandomMobilePhone,
3951
+ N0 as generateRandomString,
3952
+ l0 as generateRandomStringFromSource,
3953
+ a0 as getRandomItem,
3954
+ e2 as hasChanged,
3946
3955
  d0 as hasOwn,
3947
- P0 as initLog,
3956
+ k0 as initLog,
3948
3957
  n0 as isArray,
3949
- K0 as isBoolean,
3950
- y2 as isChinese,
3958
+ t2 as isBoolean,
3959
+ D2 as isChinese,
3951
3960
  O0 as isDate,
3952
- H0 as isDateString,
3953
- G0 as isDef,
3954
- R2 as isEmail,
3955
- I2 as isEmptyString,
3956
- D2 as isEnglishAphabet,
3957
- x2 as isFloat,
3961
+ R0 as isDateString,
3962
+ Q0 as isDef,
3963
+ I2 as isEmail,
3964
+ Z2 as isEmptyString,
3965
+ w2 as isEnglishAphabet,
3966
+ A2 as isFloat,
3958
3967
  i0 as isFunction,
3959
- Z2 as isIdCard,
3960
- _2 as isInteger,
3961
- Y2 as isLowerCase,
3962
- S2 as isLowerCaseAndNumber,
3963
- O2 as isLowerCaseAndNumberAndChinese,
3964
- W0 as isMap,
3965
- N2 as isMobilePhone,
3966
- C2 as isNegativeFloat,
3967
- L2 as isNegativeFloatOrZero,
3968
- F2 as isNegativeInteger,
3969
- H2 as isNegativeIntegerOrZero,
3970
- J0 as isNull,
3968
+ P2 as isIdCard,
3969
+ j2 as isInteger,
3970
+ S2 as isLowerCase,
3971
+ O2 as isLowerCaseAndNumber,
3972
+ x2 as isLowerCaseAndNumberAndChinese,
3973
+ q0 as isMap,
3974
+ R2 as isMobilePhone,
3975
+ E2 as isNegativeFloat,
3976
+ _2 as isNegativeFloatOrZero,
3977
+ H2 as isNegativeInteger,
3978
+ N2 as isNegativeIntegerOrZero,
3979
+ K0 as isNull,
3971
3980
  s0 as isNumber,
3972
- M2 as isNumberOrNumberString,
3981
+ y2 as isNumberOrNumberString,
3973
3982
  W as isObject,
3974
- A2 as isPositiveFloat,
3975
- E2 as isPositiveFloatOrZero,
3976
- j2 as isPositiveInteger,
3977
- T2 as isPositiveIntegerOrZero,
3978
- X0 as isPromise,
3983
+ C2 as isPositiveFloat,
3984
+ L2 as isPositiveFloatOrZero,
3985
+ T2 as isPositiveInteger,
3986
+ F2 as isPositiveIntegerOrZero,
3987
+ J0 as isPromise,
3979
3988
  x0 as isRegExp,
3980
- V0 as isSet,
3989
+ X0 as isSet,
3981
3990
  A0 as isString,
3982
- q0 as isSymbol,
3991
+ B0 as isSymbol,
3983
3992
  r0 as isUndef,
3984
- B0 as isUndefined,
3985
- w2 as isUpperCase,
3986
- v2 as isUpperCaseAndNumber,
3987
- b2 as isUpperCaseAndNumberAndChinese,
3988
- U0 as log,
3993
+ G0 as isUndefined,
3994
+ v2 as isUpperCase,
3995
+ b2 as isUpperCaseAndNumber,
3996
+ Y2 as isUpperCaseAndNumberAndChinese,
3997
+ z0 as log,
3989
3998
  S0 as objectToString,
3990
- e2 as qs,
3991
- n2 as throttle,
3999
+ n2 as qs,
4000
+ r2 as throttle,
3992
4001
  V as throwError,
3993
4002
  o0 as toTypeString,
3994
- o2 as validatorChineseOrEnglish,
3995
- i2 as validatorChineseOrEnglishOrNumber,
3996
- a2 as validatorEmail,
3997
- r2 as validatorLatitudeOrLongitude,
3998
- s2 as validatorUppercaseOrNumbersOrSpecial,
4003
+ s2 as validatorChineseOrEnglish,
4004
+ o2 as validatorChineseOrEnglishOrNumber,
4005
+ c2 as validatorEmail,
4006
+ i2 as validatorLatitudeOrLongitude,
4007
+ a2 as validatorUppercaseOrNumbersOrSpecial,
3999
4008
  u2 as validatorUppercaseOrNumbersOrUnderline,
4000
- k0 as warn
4009
+ W0 as warn
4001
4010
  };