@allkit/shared 0.0.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.
Files changed (68) hide show
  1. package/README.md +1 -0
  2. package/dist/README.md +1 -0
  3. package/dist/clipboard/index.d.ts +9 -0
  4. package/dist/cloneDeep/index.d.ts +47 -0
  5. package/dist/constants.d.ts +26 -0
  6. package/dist/cookie/index.d.ts +31 -0
  7. package/dist/date/index.d.ts +133 -0
  8. package/dist/device/index.d.ts +70 -0
  9. package/dist/element/index.d.ts +12 -0
  10. package/dist/index.d.ts +13 -0
  11. package/dist/is/index.d.ts +181 -0
  12. package/dist/lodash/index.d.ts +184 -0
  13. package/dist/number/index.d.ts +84 -0
  14. package/dist/package.json +21 -0
  15. package/dist/shared.es.d.ts +2 -0
  16. package/dist/shared.es.js +1367 -0
  17. package/dist/shared.umd.js +1 -0
  18. package/dist/storage/index.d.ts +144 -0
  19. package/dist/string/index.d.ts +40 -0
  20. package/dist/timer/index.d.ts +9 -0
  21. package/eslint.config.js +10 -0
  22. package/package.json +26 -0
  23. package/scripts/build.mjs +92 -0
  24. package/skill/SKILL.md +240 -0
  25. package/skill/examples/usage.ts +67 -0
  26. package/skill/references/clipboard.md +39 -0
  27. package/skill/references/cloneDeep.md +60 -0
  28. package/skill/references/cookie.md +56 -0
  29. package/skill/references/date.md +466 -0
  30. package/skill/references/device.md +138 -0
  31. package/skill/references/element.md +99 -0
  32. package/skill/references/is.md +415 -0
  33. package/skill/references/lodash.md +472 -0
  34. package/skill/references/number.md +248 -0
  35. package/skill/references/storage.md +113 -0
  36. package/skill/references/string.md +126 -0
  37. package/skill/references/timer.md +78 -0
  38. package/src/clipboard/index.ts +26 -0
  39. package/src/cloneDeep/__test__/cloneDeep.test.ts +92 -0
  40. package/src/cloneDeep/index.ts +168 -0
  41. package/src/constants.ts +27 -0
  42. package/src/cookie/index.ts +44 -0
  43. package/src/date/__test__/date-diff.test.ts +23 -0
  44. package/src/date/__test__/date-duration.test.ts +140 -0
  45. package/src/date/__test__/date-from.test.ts +64 -0
  46. package/src/date/__test__/date.test.ts +67 -0
  47. package/src/date/index.ts +331 -0
  48. package/src/device/__test__/device.test.ts +138 -0
  49. package/src/device/index.ts +125 -0
  50. package/src/element/index.ts +100 -0
  51. package/src/index.ts +14 -0
  52. package/src/is/__test__/is.test.ts +320 -0
  53. package/src/is/index.ts +293 -0
  54. package/src/lodash/__test__/lodash.test.ts +111 -0
  55. package/src/lodash/__test__/obj-string.test.ts +107 -0
  56. package/src/lodash/__test__/uniqueId.test.ts +40 -0
  57. package/src/lodash/index.ts +396 -0
  58. package/src/number/__test__/number.test.ts +137 -0
  59. package/src/number/index.ts +161 -0
  60. package/src/storage/__test__/storage.test.ts +44 -0
  61. package/src/storage/index.ts +185 -0
  62. package/src/string/__test__/string.test.ts +24 -0
  63. package/src/string/index.ts +49 -0
  64. package/src/timer/index.ts +15 -0
  65. package/tsconfig.json +25 -0
  66. package/types/global.d.ts +13 -0
  67. package/vite.config.ts +16 -0
  68. package/vitest.config.ts +28 -0
@@ -0,0 +1,1367 @@
1
+ var qt = Object.defineProperty, Zt = Object.defineProperties;
2
+ var Jt = Object.getOwnPropertyDescriptors;
3
+ var ct = Object.getOwnPropertySymbols;
4
+ var Dt = Object.prototype.hasOwnProperty, bt = Object.prototype.propertyIsEnumerable;
5
+ var Mt = (t, e, n) => e in t ? qt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, W = (t, e) => {
6
+ for (var n in e || (e = {}))
7
+ Dt.call(e, n) && Mt(t, n, e[n]);
8
+ if (ct)
9
+ for (var n of ct(e))
10
+ bt.call(e, n) && Mt(t, n, e[n]);
11
+ return t;
12
+ }, pt = (t, e) => Zt(t, Jt(e));
13
+ var Ot = (t) => typeof t == "symbol" ? t : t + "", Nt = (t, e) => {
14
+ var n = {};
15
+ for (var r in t)
16
+ Dt.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
17
+ if (t != null && ct)
18
+ for (var r of ct(t))
19
+ e.indexOf(r) < 0 && bt.call(t, r) && (n[r] = t[r]);
20
+ return n;
21
+ };
22
+ function Ae(t = "") {
23
+ const e = document.createElement("textarea");
24
+ e.readOnly = !0, e.style.position = "absolute", e.style.left = "-9999px", e.value = t, document.body.appendChild(e), e.select(), e.setSelectionRange(0, e.value.length);
25
+ const n = document.execCommand("Copy");
26
+ return document.body.removeChild(e), n;
27
+ }
28
+ const Kt = Object.prototype.toString;
29
+ function B(t, e) {
30
+ return Kt.call(t) === `[object ${e}]`;
31
+ }
32
+ function _t(t) {
33
+ return typeof t != "undefined";
34
+ }
35
+ function ht(t) {
36
+ return !_t(t);
37
+ }
38
+ function vt(t) {
39
+ return t !== null && typeof t == "object";
40
+ }
41
+ function Ct(t) {
42
+ return B(t, "Object");
43
+ }
44
+ const ke = (t) => Ct(t) && Object.keys(t).length === 0, Ee = (t) => !!(dt(t) || t === "");
45
+ function Ye(t) {
46
+ return Pt(t) || Xt(t) ? t.length === 0 : t instanceof Map || t instanceof Set ? t.size === 0 : vt(t) ? Object.keys(t).length === 0 : !1;
47
+ }
48
+ function He(t) {
49
+ return B(t, "Date");
50
+ }
51
+ function It(t) {
52
+ return t === null;
53
+ }
54
+ function _e(t) {
55
+ return ht(t) && It(t);
56
+ }
57
+ function dt(t) {
58
+ return ht(t) || It(t);
59
+ }
60
+ function Ce(t) {
61
+ return B(t, "Number");
62
+ }
63
+ function Ie(t) {
64
+ return B(t, "Promise") && xt(t.then) && xt(t.catch);
65
+ }
66
+ function Xt(t) {
67
+ return B(t, "String");
68
+ }
69
+ function xt(t) {
70
+ return typeof t == "function";
71
+ }
72
+ function Pe(t) {
73
+ return B(t, "Boolean");
74
+ }
75
+ function Te(t) {
76
+ return B(t, "RegExp");
77
+ }
78
+ function Pt(t) {
79
+ return t && Array.isArray(t);
80
+ }
81
+ function Gt(t) {
82
+ return typeof window != "undefined" && B(t, "Window");
83
+ }
84
+ function je(t) {
85
+ return vt(t) && !!t.tagName;
86
+ }
87
+ function Qt(t) {
88
+ return B(t, "Map");
89
+ }
90
+ function te(t) {
91
+ return B(t, "Set");
92
+ }
93
+ const ee = typeof window == "undefined", ne = !ee;
94
+ function Re(t) {
95
+ return /* eslint-disable-next-line no-useless-escape */ /(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/.test(t);
96
+ }
97
+ function Le(t) {
98
+ return typeof t == "number" ? Number.isInteger(t) && !Number.isNaN(t) && Number.isFinite(t) : typeof t == "string" ? /^-?[1-9]\d*$|^0$/.test(t) : !1;
99
+ }
100
+ function Fe(t) {
101
+ return typeof t == "number" ? !Number.isNaN(t) && Number.isFinite(t) : typeof t == "string" ? /^-?[1-9]\d*(\.\d+)?$|^0(\.\d+)?$|^-?0\.\d+$/.test(t) : !1;
102
+ }
103
+ const At = {
104
+ cloneMap(t, e, n) {
105
+ const r = e(/* @__PURE__ */ new Map());
106
+ for (const [i, s] of t)
107
+ r.set(i, n(s));
108
+ return r;
109
+ },
110
+ cloneSet(t, e, n) {
111
+ const r = e(/* @__PURE__ */ new Set());
112
+ for (const i of t)
113
+ r.add(n(i));
114
+ return r;
115
+ },
116
+ cloneArray(t, e, n) {
117
+ const r = e(new Array(t.length));
118
+ return t.forEach((i, s) => {
119
+ r[s] = n(i);
120
+ }), r;
121
+ },
122
+ cloneObject(t, e, n) {
123
+ const r = e(Object.create(Object.getPrototypeOf(t)));
124
+ for (const i of Reflect.ownKeys(t)) {
125
+ const s = Object.getOwnPropertyDescriptor(t, i);
126
+ "value" in s && (s.value = n(s.value)), Object.defineProperty(r, i, s);
127
+ }
128
+ return r;
129
+ },
130
+ cloneOther(t, e) {
131
+ return e(t);
132
+ }
133
+ };
134
+ function re(t, e) {
135
+ if (ht(t))
136
+ return t;
137
+ const n = W(W({}, At), e), r = /* @__PURE__ */ new Map(), i = (o, c) => (r.set(o, c), c), s = (o) => {
138
+ var c;
139
+ return o && typeof o == "object" ? (c = r.get(o)) != null ? c : u(o, n) : o;
140
+ }, u = (o, c) => {
141
+ const y = (Ct(o) ? c.cloneObject : Pt(o) ? c.cloneArray : Qt(o) ? c.cloneMap : te(o) ? c.cloneSet : c.cloneOther)(o, i.bind(null, o), s);
142
+ return y ? (r.set(o, y), y) : u(o, At);
143
+ };
144
+ return u(t, n);
145
+ }
146
+ const Ue = re;
147
+ function at(t) {
148
+ for (var e = 1; e < arguments.length; e++) {
149
+ var n = arguments[e];
150
+ for (var r in n)
151
+ t[r] = n[r];
152
+ }
153
+ return t;
154
+ }
155
+ var ie = {
156
+ read: function(t) {
157
+ return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
158
+ },
159
+ write: function(t) {
160
+ return encodeURIComponent(t).replace(
161
+ /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
162
+ decodeURIComponent
163
+ );
164
+ }
165
+ };
166
+ function wt(t, e) {
167
+ function n(i, s, u) {
168
+ if (typeof document != "undefined") {
169
+ u = at({}, e, u), typeof u.expires == "number" && (u.expires = new Date(Date.now() + u.expires * 864e5)), u.expires && (u.expires = u.expires.toUTCString()), i = encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
170
+ var o = "";
171
+ for (var c in u)
172
+ u[c] && (o += "; " + c, u[c] !== !0 && (o += "=" + u[c].split(";")[0]));
173
+ return document.cookie = i + "=" + t.write(s, i) + o;
174
+ }
175
+ }
176
+ function r(i) {
177
+ if (!(typeof document == "undefined" || arguments.length && !i)) {
178
+ for (var s = document.cookie ? document.cookie.split("; ") : [], u = {}, o = 0; o < s.length; o++) {
179
+ var c = s[o].split("="), a = c.slice(1).join("=");
180
+ try {
181
+ var y = decodeURIComponent(c[0]);
182
+ if (u[y] = t.read(a, y), i === y)
183
+ break;
184
+ } catch (w) {
185
+ }
186
+ }
187
+ return i ? u[i] : u;
188
+ }
189
+ }
190
+ return Object.create(
191
+ {
192
+ set: n,
193
+ get: r,
194
+ remove: function(i, s) {
195
+ n(
196
+ i,
197
+ "",
198
+ at({}, s, {
199
+ expires: -1
200
+ })
201
+ );
202
+ },
203
+ withAttributes: function(i) {
204
+ return wt(this.converter, at({}, this.attributes, i));
205
+ },
206
+ withConverter: function(i) {
207
+ return wt(at({}, this.converter, i), this.attributes);
208
+ }
209
+ },
210
+ {
211
+ attributes: { value: Object.freeze(e) },
212
+ converter: { value: Object.freeze(t) }
213
+ }
214
+ );
215
+ }
216
+ var St = wt(ie, { path: "/" });
217
+ function Be(t, e, n = { expires: 30 }) {
218
+ St.set(t, e, n);
219
+ }
220
+ function We(t) {
221
+ return St.get(t);
222
+ }
223
+ function ze(t) {
224
+ St.remove(t);
225
+ }
226
+ function Tt(t) {
227
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
228
+ }
229
+ var ft = { exports: {} }, oe = ft.exports, kt;
230
+ function se() {
231
+ return kt || (kt = 1, (function(t, e) {
232
+ (function(n, r) {
233
+ t.exports = r();
234
+ })(oe, (function() {
235
+ var n = 1e3, r = 6e4, i = 36e5, s = "millisecond", u = "second", o = "minute", c = "hour", a = "day", y = "week", w = "month", A = "quarter", k = "year", T = "date", N = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, C = /\[([^\]]+)]|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, J = { 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(m) {
236
+ var h = ["th", "st", "nd", "rd"], f = m % 100;
237
+ return "[" + m + (h[(f - 20) % 10] || h[f] || h[0]) + "]";
238
+ } }, j = function(m, h, f) {
239
+ var p = String(m);
240
+ return !p || p.length >= h ? m : "" + Array(h + 1 - p.length).join(f) + m;
241
+ }, F = { s: j, z: function(m) {
242
+ var h = -m.utcOffset(), f = Math.abs(h), p = Math.floor(f / 60), l = f % 60;
243
+ return (h <= 0 ? "+" : "-") + j(p, 2, "0") + ":" + j(l, 2, "0");
244
+ }, m: function m(h, f) {
245
+ if (h.date() < f.date()) return -m(f, h);
246
+ var p = 12 * (f.year() - h.year()) + (f.month() - h.month()), l = h.clone().add(p, w), v = f - l < 0, S = h.clone().add(p + (v ? -1 : 1), w);
247
+ return +(-(p + (f - l) / (v ? l - S : S - l)) || 0);
248
+ }, a: function(m) {
249
+ return m < 0 ? Math.ceil(m) || 0 : Math.floor(m);
250
+ }, p: function(m) {
251
+ return { M: w, y: k, w: y, d: a, D: T, h: c, m: o, s: u, ms: s, Q: A }[m] || String(m || "").toLowerCase().replace(/s$/, "");
252
+ }, u: function(m) {
253
+ return m === void 0;
254
+ } }, V = "en", D = {};
255
+ D[V] = J;
256
+ var g = "$isDayjsObject", d = function(m) {
257
+ return m instanceof Y || !(!m || !m[g]);
258
+ }, b = function m(h, f, p) {
259
+ var l;
260
+ if (!h) return V;
261
+ if (typeof h == "string") {
262
+ var v = h.toLowerCase();
263
+ D[v] && (l = v), f && (D[v] = f, l = v);
264
+ var S = h.split("-");
265
+ if (!l && S.length > 1) return m(S[0]);
266
+ } else {
267
+ var x = h.name;
268
+ D[x] = h, l = x;
269
+ }
270
+ return !p && l && (V = l), l || !p && V;
271
+ }, M = function(m, h) {
272
+ if (d(m)) return m.clone();
273
+ var f = typeof h == "object" ? h : {};
274
+ return f.date = m, f.args = arguments, new Y(f);
275
+ }, $ = F;
276
+ $.l = b, $.i = d, $.w = function(m, h) {
277
+ return M(m, { locale: h.$L, utc: h.$u, x: h.$x, $offset: h.$offset });
278
+ };
279
+ var Y = (function() {
280
+ function m(f) {
281
+ this.$L = b(f.locale, null, !0), this.parse(f), this.$x = this.$x || f.x || {}, this[g] = !0;
282
+ }
283
+ var h = m.prototype;
284
+ return h.parse = function(f) {
285
+ this.$d = (function(p) {
286
+ var l = p.date, v = p.utc;
287
+ if (l === null) return /* @__PURE__ */ new Date(NaN);
288
+ if ($.u(l)) return /* @__PURE__ */ new Date();
289
+ if (l instanceof Date) return new Date(l);
290
+ if (typeof l == "string" && !/Z$/i.test(l)) {
291
+ var S = l.match(_);
292
+ if (S) {
293
+ var x = S[2] - 1 || 0, E = (S[7] || "0").substring(0, 3);
294
+ return v ? new Date(Date.UTC(S[1], x, S[3] || 1, S[4] || 0, S[5] || 0, S[6] || 0, E)) : new Date(S[1], x, S[3] || 1, S[4] || 0, S[5] || 0, S[6] || 0, E);
295
+ }
296
+ }
297
+ return new Date(l);
298
+ })(f), this.init();
299
+ }, h.init = function() {
300
+ var f = this.$d;
301
+ this.$y = f.getFullYear(), this.$M = f.getMonth(), this.$D = f.getDate(), this.$W = f.getDay(), this.$H = f.getHours(), this.$m = f.getMinutes(), this.$s = f.getSeconds(), this.$ms = f.getMilliseconds();
302
+ }, h.$utils = function() {
303
+ return $;
304
+ }, h.isValid = function() {
305
+ return this.$d.toString() !== N;
306
+ }, h.isSame = function(f, p) {
307
+ var l = M(f);
308
+ return this.startOf(p) <= l && l <= this.endOf(p);
309
+ }, h.isAfter = function(f, p) {
310
+ return M(f) < this.startOf(p);
311
+ }, h.isBefore = function(f, p) {
312
+ return this.endOf(p) < M(f);
313
+ }, h.$g = function(f, p, l) {
314
+ return $.u(f) ? this[p] : this.set(l, f);
315
+ }, h.unix = function() {
316
+ return Math.floor(this.valueOf() / 1e3);
317
+ }, h.valueOf = function() {
318
+ return this.$d.getTime();
319
+ }, h.startOf = function(f, p) {
320
+ var l = this, v = !!$.u(p) || p, S = $.p(f), x = function(X, R) {
321
+ var q = $.w(l.$u ? Date.UTC(l.$y, R, X) : new Date(l.$y, R, X), l);
322
+ return v ? q : q.endOf(a);
323
+ }, E = function(X, R) {
324
+ return $.w(l.toDate()[X].apply(l.toDate("s"), (v ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(R)), l);
325
+ }, H = this.$W, P = this.$M, L = this.$D, nt = "set" + (this.$u ? "UTC" : "");
326
+ switch (S) {
327
+ case k:
328
+ return v ? x(1, 0) : x(31, 11);
329
+ case w:
330
+ return v ? x(1, P) : x(0, P + 1);
331
+ case y:
332
+ var K = this.$locale().weekStart || 0, it = (H < K ? H + 7 : H) - K;
333
+ return x(v ? L - it : L + (6 - it), P);
334
+ case a:
335
+ case T:
336
+ return E(nt + "Hours", 0);
337
+ case c:
338
+ return E(nt + "Minutes", 1);
339
+ case o:
340
+ return E(nt + "Seconds", 2);
341
+ case u:
342
+ return E(nt + "Milliseconds", 3);
343
+ default:
344
+ return this.clone();
345
+ }
346
+ }, h.endOf = function(f) {
347
+ return this.startOf(f, !1);
348
+ }, h.$set = function(f, p) {
349
+ var l, v = $.p(f), S = "set" + (this.$u ? "UTC" : ""), x = (l = {}, l[a] = S + "Date", l[T] = S + "Date", l[w] = S + "Month", l[k] = S + "FullYear", l[c] = S + "Hours", l[o] = S + "Minutes", l[u] = S + "Seconds", l[s] = S + "Milliseconds", l)[v], E = v === a ? this.$D + (p - this.$W) : p;
350
+ if (v === w || v === k) {
351
+ var H = this.clone().set(T, 1);
352
+ H.$d[x](E), H.init(), this.$d = H.set(T, Math.min(this.$D, H.daysInMonth())).$d;
353
+ } else x && this.$d[x](E);
354
+ return this.init(), this;
355
+ }, h.set = function(f, p) {
356
+ return this.clone().$set(f, p);
357
+ }, h.get = function(f) {
358
+ return this[$.p(f)]();
359
+ }, h.add = function(f, p) {
360
+ var l, v = this;
361
+ f = Number(f);
362
+ var S = $.p(p), x = function(P) {
363
+ var L = M(v);
364
+ return $.w(L.date(L.date() + Math.round(P * f)), v);
365
+ };
366
+ if (S === w) return this.set(w, this.$M + f);
367
+ if (S === k) return this.set(k, this.$y + f);
368
+ if (S === a) return x(1);
369
+ if (S === y) return x(7);
370
+ var E = (l = {}, l[o] = r, l[c] = i, l[u] = n, l)[S] || 1, H = this.$d.getTime() + f * E;
371
+ return $.w(H, this);
372
+ }, h.subtract = function(f, p) {
373
+ return this.add(-1 * f, p);
374
+ }, h.format = function(f) {
375
+ var p = this, l = this.$locale();
376
+ if (!this.isValid()) return l.invalidDate || N;
377
+ var v = f || "YYYY-MM-DDTHH:mm:ssZ", S = $.z(this), x = this.$H, E = this.$m, H = this.$M, P = l.weekdays, L = l.months, nt = l.meridiem, K = function(R, q, ot, ut) {
378
+ return R && (R[q] || R(p, v)) || ot[q].slice(0, ut);
379
+ }, it = function(R) {
380
+ return $.s(x % 12 || 12, R, "0");
381
+ }, X = nt || function(R, q, ot) {
382
+ var ut = R < 12 ? "AM" : "PM";
383
+ return ot ? ut.toLowerCase() : ut;
384
+ };
385
+ return v.replace(C, (function(R, q) {
386
+ return q || (function(ot) {
387
+ switch (ot) {
388
+ case "YY":
389
+ return String(p.$y).slice(-2);
390
+ case "YYYY":
391
+ return $.s(p.$y, 4, "0");
392
+ case "M":
393
+ return H + 1;
394
+ case "MM":
395
+ return $.s(H + 1, 2, "0");
396
+ case "MMM":
397
+ return K(l.monthsShort, H, L, 3);
398
+ case "MMMM":
399
+ return K(L, H);
400
+ case "D":
401
+ return p.$D;
402
+ case "DD":
403
+ return $.s(p.$D, 2, "0");
404
+ case "d":
405
+ return String(p.$W);
406
+ case "dd":
407
+ return K(l.weekdaysMin, p.$W, P, 2);
408
+ case "ddd":
409
+ return K(l.weekdaysShort, p.$W, P, 3);
410
+ case "dddd":
411
+ return P[p.$W];
412
+ case "H":
413
+ return String(x);
414
+ case "HH":
415
+ return $.s(x, 2, "0");
416
+ case "h":
417
+ return it(1);
418
+ case "hh":
419
+ return it(2);
420
+ case "a":
421
+ return X(x, E, !0);
422
+ case "A":
423
+ return X(x, E, !1);
424
+ case "m":
425
+ return String(E);
426
+ case "mm":
427
+ return $.s(E, 2, "0");
428
+ case "s":
429
+ return String(p.$s);
430
+ case "ss":
431
+ return $.s(p.$s, 2, "0");
432
+ case "SSS":
433
+ return $.s(p.$ms, 3, "0");
434
+ case "Z":
435
+ return S;
436
+ }
437
+ return null;
438
+ })(R) || S.replace(":", "");
439
+ }));
440
+ }, h.utcOffset = function() {
441
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
442
+ }, h.diff = function(f, p, l) {
443
+ var v, S = this, x = $.p(p), E = M(f), H = (E.utcOffset() - this.utcOffset()) * r, P = this - E, L = function() {
444
+ return $.m(S, E);
445
+ };
446
+ switch (x) {
447
+ case k:
448
+ v = L() / 12;
449
+ break;
450
+ case w:
451
+ v = L();
452
+ break;
453
+ case A:
454
+ v = L() / 3;
455
+ break;
456
+ case y:
457
+ v = (P - H) / 6048e5;
458
+ break;
459
+ case a:
460
+ v = (P - H) / 864e5;
461
+ break;
462
+ case c:
463
+ v = P / i;
464
+ break;
465
+ case o:
466
+ v = P / r;
467
+ break;
468
+ case u:
469
+ v = P / n;
470
+ break;
471
+ default:
472
+ v = P;
473
+ }
474
+ return l ? v : $.a(v);
475
+ }, h.daysInMonth = function() {
476
+ return this.endOf(w).$D;
477
+ }, h.$locale = function() {
478
+ return D[this.$L];
479
+ }, h.locale = function(f, p) {
480
+ if (!f) return this.$L;
481
+ var l = this.clone(), v = b(f, p, !0);
482
+ return v && (l.$L = v), l;
483
+ }, h.clone = function() {
484
+ return $.w(this.$d, this);
485
+ }, h.toDate = function() {
486
+ return new Date(this.valueOf());
487
+ }, h.toJSON = function() {
488
+ return this.isValid() ? this.toISOString() : null;
489
+ }, h.toISOString = function() {
490
+ return this.$d.toISOString();
491
+ }, h.toString = function() {
492
+ return this.$d.toUTCString();
493
+ }, m;
494
+ })(), I = Y.prototype;
495
+ return M.prototype = I, [["$ms", s], ["$s", u], ["$m", o], ["$H", c], ["$W", a], ["$M", w], ["$y", k], ["$D", T]].forEach((function(m) {
496
+ I[m[1]] = function(h) {
497
+ return this.$g(h, m[0], m[1]);
498
+ };
499
+ })), M.extend = function(m, h) {
500
+ return m.$i || (m(h, Y, M), m.$i = !0), M;
501
+ }, M.locale = b, M.isDayjs = d, M.unix = function(m) {
502
+ return M(1e3 * m);
503
+ }, M.en = D[V], M.Ls = D, M.p = {}, M;
504
+ }));
505
+ })(ft)), ft.exports;
506
+ }
507
+ var ue = se();
508
+ const z = /* @__PURE__ */ Tt(ue);
509
+ var lt = { exports: {} }, ce = lt.exports, Et;
510
+ function ae() {
511
+ return Et || (Et = 1, (function(t, e) {
512
+ (function(n, r) {
513
+ t.exports = r();
514
+ })(ce, (function() {
515
+ var n, r, i = 1e3, s = 6e4, u = 36e5, o = 864e5, c = /\[([^\]]+)]|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, a = 31536e6, y = 2628e6, w = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, A = { years: a, months: y, days: o, hours: u, minutes: s, seconds: i, milliseconds: 1, weeks: 6048e5 }, k = function(D) {
516
+ return D instanceof F;
517
+ }, T = function(D, g, d) {
518
+ return new F(D, d, g.$l);
519
+ }, N = function(D) {
520
+ return r.p(D) + "s";
521
+ }, _ = function(D) {
522
+ return D < 0;
523
+ }, C = function(D) {
524
+ return _(D) ? Math.ceil(D) : Math.floor(D);
525
+ }, J = function(D) {
526
+ return Math.abs(D);
527
+ }, j = function(D, g) {
528
+ return D ? _(D) ? { negative: !0, format: "" + J(D) + g } : { negative: !1, format: "" + D + g } : { negative: !1, format: "" };
529
+ }, F = (function() {
530
+ function D(d, b, M) {
531
+ var $ = this;
532
+ if (this.$d = {}, this.$l = M, d === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), b) return T(d * A[N(b)], this);
533
+ if (typeof d == "number") return this.$ms = d, this.parseFromMilliseconds(), this;
534
+ if (typeof d == "object") return Object.keys(d).forEach((function(m) {
535
+ $.$d[N(m)] = d[m];
536
+ })), this.calMilliseconds(), this;
537
+ if (typeof d == "string") {
538
+ var Y = d.match(w);
539
+ if (Y) {
540
+ var I = Y.slice(2).map((function(m) {
541
+ return m != null ? Number(m) : 0;
542
+ }));
543
+ return this.$d.years = I[0], this.$d.months = I[1], this.$d.weeks = I[2], this.$d.days = I[3], this.$d.hours = I[4], this.$d.minutes = I[5], this.$d.seconds = I[6], this.calMilliseconds(), this;
544
+ }
545
+ }
546
+ return this;
547
+ }
548
+ var g = D.prototype;
549
+ return g.calMilliseconds = function() {
550
+ var d = this;
551
+ this.$ms = Object.keys(this.$d).reduce((function(b, M) {
552
+ return b + (d.$d[M] || 0) * A[M];
553
+ }), 0);
554
+ }, g.parseFromMilliseconds = function() {
555
+ var d = this.$ms;
556
+ this.$d.years = C(d / a), d %= a, this.$d.months = C(d / y), d %= y, this.$d.days = C(d / o), d %= o, this.$d.hours = C(d / u), d %= u, this.$d.minutes = C(d / s), d %= s, this.$d.seconds = C(d / i), d %= i, this.$d.milliseconds = d;
557
+ }, g.toISOString = function() {
558
+ var d = j(this.$d.years, "Y"), b = j(this.$d.months, "M"), M = +this.$d.days || 0;
559
+ this.$d.weeks && (M += 7 * this.$d.weeks);
560
+ var $ = j(M, "D"), Y = j(this.$d.hours, "H"), I = j(this.$d.minutes, "M"), m = this.$d.seconds || 0;
561
+ this.$d.milliseconds && (m += this.$d.milliseconds / 1e3, m = Math.round(1e3 * m) / 1e3);
562
+ var h = j(m, "S"), f = d.negative || b.negative || $.negative || Y.negative || I.negative || h.negative, p = Y.format || I.format || h.format ? "T" : "", l = (f ? "-" : "") + "P" + d.format + b.format + $.format + p + Y.format + I.format + h.format;
563
+ return l === "P" || l === "-P" ? "P0D" : l;
564
+ }, g.toJSON = function() {
565
+ return this.toISOString();
566
+ }, g.format = function(d) {
567
+ var b = d || "YYYY-MM-DDTHH:mm:ss", M = { Y: this.$d.years, YY: r.s(this.$d.years, 2, "0"), YYYY: r.s(this.$d.years, 4, "0"), M: this.$d.months, MM: r.s(this.$d.months, 2, "0"), D: this.$d.days, DD: r.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: r.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: r.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: r.s(this.$d.seconds, 2, "0"), SSS: r.s(this.$d.milliseconds, 3, "0") };
568
+ return b.replace(c, (function($, Y) {
569
+ return Y || String(M[$]);
570
+ }));
571
+ }, g.as = function(d) {
572
+ return this.$ms / A[N(d)];
573
+ }, g.get = function(d) {
574
+ var b = this.$ms, M = N(d);
575
+ return M === "milliseconds" ? b %= 1e3 : b = M === "weeks" ? C(b / A[M]) : this.$d[M], b || 0;
576
+ }, g.add = function(d, b, M) {
577
+ var $;
578
+ return $ = b ? d * A[N(b)] : k(d) ? d.$ms : T(d, this).$ms, T(this.$ms + $ * (M ? -1 : 1), this);
579
+ }, g.subtract = function(d, b) {
580
+ return this.add(d, b, !0);
581
+ }, g.locale = function(d) {
582
+ var b = this.clone();
583
+ return b.$l = d, b;
584
+ }, g.clone = function() {
585
+ return T(this.$ms, this);
586
+ }, g.humanize = function(d) {
587
+ return n().add(this.$ms, "ms").locale(this.$l).fromNow(!d);
588
+ }, g.valueOf = function() {
589
+ return this.asMilliseconds();
590
+ }, g.milliseconds = function() {
591
+ return this.get("milliseconds");
592
+ }, g.asMilliseconds = function() {
593
+ return this.as("milliseconds");
594
+ }, g.seconds = function() {
595
+ return this.get("seconds");
596
+ }, g.asSeconds = function() {
597
+ return this.as("seconds");
598
+ }, g.minutes = function() {
599
+ return this.get("minutes");
600
+ }, g.asMinutes = function() {
601
+ return this.as("minutes");
602
+ }, g.hours = function() {
603
+ return this.get("hours");
604
+ }, g.asHours = function() {
605
+ return this.as("hours");
606
+ }, g.days = function() {
607
+ return this.get("days");
608
+ }, g.asDays = function() {
609
+ return this.as("days");
610
+ }, g.weeks = function() {
611
+ return this.get("weeks");
612
+ }, g.asWeeks = function() {
613
+ return this.as("weeks");
614
+ }, g.months = function() {
615
+ return this.get("months");
616
+ }, g.asMonths = function() {
617
+ return this.as("months");
618
+ }, g.years = function() {
619
+ return this.get("years");
620
+ }, g.asYears = function() {
621
+ return this.as("years");
622
+ }, D;
623
+ })(), V = function(D, g, d) {
624
+ return D.add(g.years() * d, "y").add(g.months() * d, "M").add(g.days() * d, "d").add(g.hours() * d, "h").add(g.minutes() * d, "m").add(g.seconds() * d, "s").add(g.milliseconds() * d, "ms");
625
+ };
626
+ return function(D, g, d) {
627
+ n = d, r = d().$utils(), d.duration = function($, Y) {
628
+ var I = d.locale();
629
+ return T($, { $l: I }, Y);
630
+ }, d.isDuration = k;
631
+ var b = g.prototype.add, M = g.prototype.subtract;
632
+ g.prototype.add = function($, Y) {
633
+ return k($) ? V(this, $, 1) : b.bind(this)($, Y);
634
+ }, g.prototype.subtract = function($, Y) {
635
+ return k($) ? V(this, $, -1) : M.bind(this)($, Y);
636
+ };
637
+ };
638
+ }));
639
+ })(lt)), lt.exports;
640
+ }
641
+ var fe = ae();
642
+ const le = /* @__PURE__ */ Tt(fe);
643
+ z.extend(le);
644
+ const rt = (t, e, n) => {
645
+ const r = Number(t), i = isNaN(r) ? t : r;
646
+ return z(i, e, n);
647
+ }, he = (t, e = "YYYY-MM-DD HH:mm:ss") => t === null || t === "" ? "" : rt(t).format(e), Ve = (t, e = "YYYY-MM-DD HH:mm") => t === null || t === "" ? "" : rt(t).format(e), qe = (t) => z(t).daysInMonth();
648
+ function Ze(t = 0, e = "YYYY-MM-DD") {
649
+ return he(z().add(t, "day"), e);
650
+ }
651
+ function Je(t, e, n) {
652
+ if (!t) return 0;
653
+ e || (e = void 0);
654
+ const r = rt(t), i = rt(e);
655
+ return rt(r).diff(i, n);
656
+ }
657
+ function Ke(t, e) {
658
+ const n = W({
659
+ zero: "刚刚",
660
+ minuteAgo: "${m}分钟前",
661
+ today: "今天 ${HH:mm}",
662
+ yesterday: "昨天 ${HH:mm}",
663
+ other: "${YYYY/MM/DD}",
664
+ future: "${YYYY/MM/DD}"
665
+ }, e), r = z(), i = rt(t), s = r.diff(i, "minute"), u = (o) => o === n.zero ? o : o.replace(/\${(.*?)}/g, (c, a) => i.format(a));
666
+ return s < 0 ? u(n.future) : s < 60 ? n.minuteAgo.replace("${m}", `${Math.abs(s)}`) : i.isSame(r, "day") ? u(n.today) : i.isSame(r.subtract(1, "day"), "day") ? u(n.yesterday) : u(n.other);
667
+ }
668
+ function Xe(t, e, n = "YY年MM个月DD天") {
669
+ const r = z(t), i = z(e), s = {
670
+ YY: "year",
671
+ MM: "month",
672
+ DD: "day",
673
+ HH: "hour",
674
+ mm: "minute",
675
+ ss: "second"
676
+ };
677
+ let u = n, o = r;
678
+ for (const [c, a] of Object.entries(s))
679
+ if (u.includes(c)) {
680
+ const y = i.diff(o, a);
681
+ u = u.replace(c, y > 0 ? "" + y : "0"), o = o.add(y, a);
682
+ }
683
+ return u.trim().replace(/\s+/g, " ");
684
+ }
685
+ function Ge(t, e) {
686
+ if (!t) return "";
687
+ const { format: n = "HH小时mm分钟", unit: r = "ms" } = e || {}, i = z.duration(Number(t), r);
688
+ return Array.isArray(n) ? n.map((s) => i.format(s)) : jt(n, t, r);
689
+ }
690
+ function Qe(t, e) {
691
+ if (!t) return "";
692
+ const { format: n = "D天H小时m分钟", unit: r = "ms" } = e || {};
693
+ return jt(n, t, r).replace(new RegExp("(?<![1-9]\\d*)0+([^\\d]+)", "g"), "").trim();
694
+ }
695
+ function jt(t = "HH小时mm分钟", e, n) {
696
+ const r = z.duration(Number(e), n);
697
+ if (t.includes("D") && t.includes("H")) {
698
+ const o = Math.floor(r.asHours() % 24) + "";
699
+ t = t.includes("HH") ? t.replace("HH", o.padStart(2, "0")) : t.replace("H", o);
700
+ }
701
+ const i = t.match(/[YMDHms]/g) || [];
702
+ let s = r.format(t);
703
+ const u = (o, c) => o.replace(/\d+/, `${Math.floor(+c)}`);
704
+ switch (i[0]) {
705
+ case "Y":
706
+ break;
707
+ case "M":
708
+ r.asMonths() >= 12 && (s = u(s, `${r.asMonths()}`));
709
+ break;
710
+ case "D":
711
+ r.asDays() >= 30 && (s = u(s, `${r.asDays()}`));
712
+ break;
713
+ case "H":
714
+ r.asHours() >= 24 && (s = u(s, `${r.asHours()}`));
715
+ break;
716
+ case "m":
717
+ r.asMinutes() >= 60 && (s = u(s, `${r.asMinutes()}`));
718
+ break;
719
+ case "s":
720
+ r.asSeconds() >= 60 && (s = u(s, `${r.asSeconds()}`));
721
+ break;
722
+ }
723
+ return s;
724
+ }
725
+ function tn() {
726
+ return navigator.userAgent.indexOf("Android") > -1;
727
+ }
728
+ function en() {
729
+ return /(iPhone|iPad|iPod)/i.test(navigator.userAgent);
730
+ }
731
+ function nn() {
732
+ return window.navigator.userAgent.includes("OpenHarmony");
733
+ }
734
+ function de() {
735
+ return navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1;
736
+ }
737
+ function rn() {
738
+ return de() && window.navigator.userAgent.includes("miniProgram");
739
+ }
740
+ var me = /* @__PURE__ */ ((t) => (t.XIAOMI = "xiaomi", t.OPPO = "oppo", t.VIVO = "vivo", t.HUAWEI = "huawei", t.HONOR = "honor", t.ONE_PLUS = "oneplus", t.SAMSUNG = "samsung", t.IPHONE = "iphone", t.MEIZU = "meizu", t.LENOVO = "lenovo", t))(me || {});
741
+ function on() {
742
+ const t = navigator.userAgent.toLowerCase();
743
+ if (t.includes("iphone") || t.includes("ipad") || t.includes("ipod"))
744
+ return "iphone";
745
+ if (t.includes("xiaomi") || t.includes("miui") || t.includes("redmi") || t.includes("mix"))
746
+ return "xiaomi";
747
+ if (t.includes("oppo") || t.includes("realme") || t.includes("heytap"))
748
+ return "oppo";
749
+ if (t.includes("vivo"))
750
+ return "vivo";
751
+ if (t.includes("huawei"))
752
+ return "huawei";
753
+ if (t.includes("oneplus"))
754
+ return "oneplus";
755
+ if (t.includes("honor"))
756
+ return "honor";
757
+ if (t.includes("samsung"))
758
+ return "samsung";
759
+ if (t.includes("meizu"))
760
+ return "meizu";
761
+ if (t.includes("lenovo"))
762
+ return "lenovo";
763
+ }
764
+ const Rt = () => typeof globalThis != "undefined" ? globalThis : ne ? window : typeof global != "undefined" ? global : self, yt = (t) => {
765
+ const e = Rt();
766
+ return e.requestAnimationFrame ? e.requestAnimationFrame(t) : e.setTimeout(t);
767
+ }, sn = (t) => {
768
+ const e = Rt();
769
+ e.cancelAnimationFrame ? e.cancelAnimationFrame(t) : e.clearTimeout(t);
770
+ }, un = () => new Promise((t) => {
771
+ yt(t);
772
+ }), cn = () => new Promise((t) => {
773
+ yt(() => {
774
+ yt(t);
775
+ });
776
+ }), an = (t) => window.getComputedStyle(t), Yt = (t) => {
777
+ if (Gt(t)) {
778
+ const e = t.innerWidth, n = t.innerHeight, r = {
779
+ x: 0,
780
+ y: 0,
781
+ top: 0,
782
+ left: 0,
783
+ right: e,
784
+ bottom: n,
785
+ width: e,
786
+ height: n
787
+ };
788
+ return pt(W({}, r), {
789
+ toJSON: () => r
790
+ });
791
+ }
792
+ return t.getBoundingClientRect();
793
+ }, fn = (t) => {
794
+ const { top: e, bottom: n, left: r, right: i } = Yt(t), { width: s, height: u } = Yt(window), o = r <= s && i >= 0, c = e <= u && n >= 0;
795
+ return o && c;
796
+ }, ln = (t) => {
797
+ t.cancelable !== !1 && t.preventDefault();
798
+ }, hn = (t) => {
799
+ const e = "scrollTop" in t ? t.scrollTop : t.scrollY;
800
+ return Math.max(e, 0);
801
+ }, dn = (t) => {
802
+ const e = "scrollLeft" in t ? t.scrollLeft : t.scrollX;
803
+ return Math.max(e, 0);
804
+ };
805
+ function mn(t, e, n = !0) {
806
+ if (!t) return {};
807
+ if (!n)
808
+ return e.reduce((i, s) => {
809
+ const c = i, { [s]: u } = c;
810
+ return Nt(c, [Ot(s)]);
811
+ }, t);
812
+ const r = {};
813
+ for (const i in t)
814
+ !e.includes(i) && !dt(t[i]) && (r[i] = t[i]);
815
+ return r;
816
+ }
817
+ function pn(t, e, n = !0) {
818
+ return t ? e.reduce(
819
+ (r, i) => {
820
+ const s = t[i];
821
+ return (!n || _t(s)) && (r[i] = s), r;
822
+ },
823
+ {}
824
+ ) : {};
825
+ }
826
+ function gn(t, e) {
827
+ if (!t) return {};
828
+ const n = {};
829
+ for (const r in t)
830
+ if (Object.prototype.hasOwnProperty.call(t, r)) {
831
+ const i = r, s = t[i];
832
+ e(s, i) && (n[i] = s);
833
+ }
834
+ return n;
835
+ }
836
+ function $n(t, e) {
837
+ const n = W({}, t);
838
+ for (const r in t)
839
+ if (Object.prototype.hasOwnProperty.call(t, r)) {
840
+ const i = r, s = t[i];
841
+ e(s, i) && delete n[r];
842
+ }
843
+ return n;
844
+ }
845
+ const wn = (t, e = 0) => {
846
+ let n;
847
+ return function(...r) {
848
+ n && window.clearTimeout(n), n = window.setTimeout(() => {
849
+ t.apply(this, r);
850
+ }, e);
851
+ };
852
+ }, yn = (t, e = 200, n = !0) => {
853
+ let r, i = 0;
854
+ return function(...u) {
855
+ const o = Date.now(), c = o - i;
856
+ c >= e ? (t.apply(this, u), i = o) : n && (window.clearTimeout(r), r = window.setTimeout(() => {
857
+ t.apply(this, u), i = Date.now();
858
+ }, e - c));
859
+ };
860
+ };
861
+ let gt = 0;
862
+ function vn(t = 16) {
863
+ const e = (/* @__PURE__ */ new Date()).getTime().toString(), n = Math.random().toString().replace(".", "").slice(1, 10), r = t - e.length - gt.toString().length - n.length, i = "0".repeat(r > 0 ? r : 0), s = "" + `${gt}${e}${i}${n}`.slice(0, t);
864
+ return gt++, s;
865
+ }
866
+ function Sn(t, e = !0) {
867
+ return new Promise((n, r) => {
868
+ const i = new FileReader();
869
+ i.onloadend = () => {
870
+ if (typeof i.result == "string") {
871
+ if (e)
872
+ return n(i.result && i.result.split(",")[1]);
873
+ n(i.result);
874
+ } else
875
+ r(new Error("Failed to convert Blob to base64"));
876
+ }, i.onerror = r, i.readAsDataURL(t);
877
+ });
878
+ }
879
+ function Mn(t, e) {
880
+ const n = e.split(".");
881
+ let r = t;
882
+ return n.forEach((i) => {
883
+ var s;
884
+ r = vt(r) && (s = r[i]) != null ? s : "";
885
+ }), r;
886
+ }
887
+ function Dn(t) {
888
+ return !t || typeof t != "object" ? "" : Object.entries(t).map(([e, n]) => {
889
+ if (n == null) return "";
890
+ const r = typeof n == "object" ? JSON.stringify(n) : String(n);
891
+ return `${e}=${encodeURIComponent(r)}`;
892
+ }).filter(Boolean).join("&");
893
+ }
894
+ function bn(t) {
895
+ if (!t || typeof t != "string") return {};
896
+ if (!t.trim()) return {};
897
+ if (/^https?:\/\/[^?]+$/.test(t)) return {};
898
+ const e = t.includes("?") ? t.split("?")[1] : t;
899
+ if (!e) return {};
900
+ const n = {}, r = e.split("&");
901
+ for (const i of r) {
902
+ const [s, u] = i.split("=");
903
+ if (!s) continue;
904
+ const o = decodeURIComponent(s), c = u ? decodeURIComponent(u) : "";
905
+ let a = c;
906
+ try {
907
+ a = JSON.parse(c);
908
+ } catch (y) {
909
+ }
910
+ if (typeof a != "object" || a === null) {
911
+ const y = Number(a);
912
+ isNaN(y) || (a = y);
913
+ }
914
+ n[o] = a;
915
+ }
916
+ return n;
917
+ }
918
+ var pe = 20, ge = 1, G = 1e6, Ht = 1e6, $e = -7, we = 21, ye = !1, st = "[big.js] ", Q = st + "Invalid ", mt = Q + "decimal places", ve = Q + "rounding mode", Lt = st + "Division by zero", O = {}, U = void 0, Se = /^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;
919
+ function Ft() {
920
+ function t(e) {
921
+ var n = this;
922
+ if (!(n instanceof t)) return e === U ? Ft() : new t(e);
923
+ if (e instanceof t)
924
+ n.s = e.s, n.e = e.e, n.c = e.c.slice();
925
+ else {
926
+ if (typeof e != "string") {
927
+ if (t.strict === !0 && typeof e != "bigint")
928
+ throw TypeError(Q + "value");
929
+ e = e === 0 && 1 / e < 0 ? "-0" : String(e);
930
+ }
931
+ Me(n, e);
932
+ }
933
+ n.constructor = t;
934
+ }
935
+ return t.prototype = O, t.DP = pe, t.RM = ge, t.NE = $e, t.PE = we, t.strict = ye, t.roundDown = 0, t.roundHalfUp = 1, t.roundHalfEven = 2, t.roundUp = 3, t;
936
+ }
937
+ function Me(t, e) {
938
+ var n, r, i;
939
+ if (!Se.test(e))
940
+ throw Error(Q + "number");
941
+ for (t.s = e.charAt(0) == "-" ? (e = e.slice(1), -1) : 1, (n = e.indexOf(".")) > -1 && (e = e.replace(".", "")), (r = e.search(/e/i)) > 0 ? (n < 0 && (n = r), n += +e.slice(r + 1), e = e.substring(0, r)) : n < 0 && (n = e.length), i = e.length, r = 0; r < i && e.charAt(r) == "0"; ) ++r;
942
+ if (r == i)
943
+ t.c = [t.e = 0];
944
+ else {
945
+ for (; i > 0 && e.charAt(--i) == "0"; ) ;
946
+ for (t.e = n - r - 1, t.c = [], n = 0; r <= i; ) t.c[n++] = +e.charAt(r++);
947
+ }
948
+ return t;
949
+ }
950
+ function tt(t, e, n, r) {
951
+ var i = t.c;
952
+ if (n === U && (n = t.constructor.RM), n !== 0 && n !== 1 && n !== 2 && n !== 3)
953
+ throw Error(ve);
954
+ if (e < 1)
955
+ r = n === 3 && (r || !!i[0]) || e === 0 && (n === 1 && i[0] >= 5 || n === 2 && (i[0] > 5 || i[0] === 5 && (r || i[1] !== U))), i.length = 1, r ? (t.e = t.e - e + 1, i[0] = 1) : i[0] = t.e = 0;
956
+ else if (e < i.length) {
957
+ if (r = n === 1 && i[e] >= 5 || n === 2 && (i[e] > 5 || i[e] === 5 && (r || i[e + 1] !== U || i[e - 1] & 1)) || n === 3 && (r || !!i[0]), i.length = e, r) {
958
+ for (; ++i[--e] > 9; )
959
+ if (i[e] = 0, e === 0) {
960
+ ++t.e, i.unshift(1);
961
+ break;
962
+ }
963
+ }
964
+ for (e = i.length; !i[--e]; ) i.pop();
965
+ }
966
+ return t;
967
+ }
968
+ function et(t, e, n) {
969
+ var r = t.e, i = t.c.join(""), s = i.length;
970
+ if (e)
971
+ i = i.charAt(0) + (s > 1 ? "." + i.slice(1) : "") + (r < 0 ? "e" : "e+") + r;
972
+ else if (r < 0) {
973
+ for (; ++r; ) i = "0" + i;
974
+ i = "0." + i;
975
+ } else if (r > 0)
976
+ if (++r > s)
977
+ for (r -= s; r--; ) i += "0";
978
+ else r < s && (i = i.slice(0, r) + "." + i.slice(r));
979
+ else s > 1 && (i = i.charAt(0) + "." + i.slice(1));
980
+ return t.s < 0 && n ? "-" + i : i;
981
+ }
982
+ O.abs = function() {
983
+ var t = new this.constructor(this);
984
+ return t.s = 1, t;
985
+ };
986
+ O.cmp = function(t) {
987
+ var e, n = this, r = n.c, i = (t = new n.constructor(t)).c, s = n.s, u = t.s, o = n.e, c = t.e;
988
+ if (!r[0] || !i[0]) return r[0] ? s : i[0] ? -u : 0;
989
+ if (s != u) return s;
990
+ if (e = s < 0, o != c) return o > c ^ e ? 1 : -1;
991
+ for (u = (o = r.length) < (c = i.length) ? o : c, s = -1; ++s < u; )
992
+ if (r[s] != i[s]) return r[s] > i[s] ^ e ? 1 : -1;
993
+ return o == c ? 0 : o > c ^ e ? 1 : -1;
994
+ };
995
+ O.div = function(t) {
996
+ var e = this, n = e.constructor, r = e.c, i = (t = new n(t)).c, s = e.s == t.s ? 1 : -1, u = n.DP;
997
+ if (u !== ~~u || u < 0 || u > G)
998
+ throw Error(mt);
999
+ if (!i[0])
1000
+ throw Error(Lt);
1001
+ if (!r[0])
1002
+ return t.s = s, t.c = [t.e = 0], t;
1003
+ var o, c, a, y, w, A = i.slice(), k = o = i.length, T = r.length, N = r.slice(0, o), _ = N.length, C = t, J = C.c = [], j = 0, F = u + (C.e = e.e - t.e) + 1;
1004
+ for (C.s = s, s = F < 0 ? 0 : F, A.unshift(0); _++ < o; ) N.push(0);
1005
+ do {
1006
+ for (a = 0; a < 10; a++) {
1007
+ if (o != (_ = N.length))
1008
+ y = o > _ ? 1 : -1;
1009
+ else
1010
+ for (w = -1, y = 0; ++w < o; )
1011
+ if (i[w] != N[w]) {
1012
+ y = i[w] > N[w] ? 1 : -1;
1013
+ break;
1014
+ }
1015
+ if (y < 0) {
1016
+ for (c = _ == o ? i : A; _; ) {
1017
+ if (N[--_] < c[_]) {
1018
+ for (w = _; w && !N[--w]; ) N[w] = 9;
1019
+ --N[w], N[_] += 10;
1020
+ }
1021
+ N[_] -= c[_];
1022
+ }
1023
+ for (; !N[0]; ) N.shift();
1024
+ } else
1025
+ break;
1026
+ }
1027
+ J[j++] = y ? a : ++a, N[0] && y ? N[_] = r[k] || 0 : N = [r[k]];
1028
+ } while ((k++ < T || N[0] !== U) && s--);
1029
+ return !J[0] && j != 1 && (J.shift(), C.e--, F--), j > F && tt(C, F, n.RM, N[0] !== U), C;
1030
+ };
1031
+ O.eq = function(t) {
1032
+ return this.cmp(t) === 0;
1033
+ };
1034
+ O.gt = function(t) {
1035
+ return this.cmp(t) > 0;
1036
+ };
1037
+ O.gte = function(t) {
1038
+ return this.cmp(t) > -1;
1039
+ };
1040
+ O.lt = function(t) {
1041
+ return this.cmp(t) < 0;
1042
+ };
1043
+ O.lte = function(t) {
1044
+ return this.cmp(t) < 1;
1045
+ };
1046
+ O.minus = O.sub = function(t) {
1047
+ var e, n, r, i, s = this, u = s.constructor, o = s.s, c = (t = new u(t)).s;
1048
+ if (o != c)
1049
+ return t.s = -c, s.plus(t);
1050
+ var a = s.c.slice(), y = s.e, w = t.c, A = t.e;
1051
+ if (!a[0] || !w[0])
1052
+ return w[0] ? t.s = -c : a[0] ? t = new u(s) : t.s = 1, t;
1053
+ if (o = y - A) {
1054
+ for ((i = o < 0) ? (o = -o, r = a) : (A = y, r = w), r.reverse(), c = o; c--; ) r.push(0);
1055
+ r.reverse();
1056
+ } else
1057
+ for (n = ((i = a.length < w.length) ? a : w).length, o = c = 0; c < n; c++)
1058
+ if (a[c] != w[c]) {
1059
+ i = a[c] < w[c];
1060
+ break;
1061
+ }
1062
+ if (i && (r = a, a = w, w = r, t.s = -t.s), (c = (n = w.length) - (e = a.length)) > 0) for (; c--; ) a[e++] = 0;
1063
+ for (c = e; n > o; ) {
1064
+ if (a[--n] < w[n]) {
1065
+ for (e = n; e && !a[--e]; ) a[e] = 9;
1066
+ --a[e], a[n] += 10;
1067
+ }
1068
+ a[n] -= w[n];
1069
+ }
1070
+ for (; a[--c] === 0; ) a.pop();
1071
+ for (; a[0] === 0; )
1072
+ a.shift(), --A;
1073
+ return a[0] || (t.s = 1, a = [A = 0]), t.c = a, t.e = A, t;
1074
+ };
1075
+ O.mod = function(t) {
1076
+ var e, n = this, r = n.constructor, i = n.s, s = (t = new r(t)).s;
1077
+ if (!t.c[0])
1078
+ throw Error(Lt);
1079
+ return n.s = t.s = 1, e = t.cmp(n) == 1, n.s = i, t.s = s, e ? new r(n) : (i = r.DP, s = r.RM, r.DP = r.RM = 0, n = n.div(t), r.DP = i, r.RM = s, this.minus(n.times(t)));
1080
+ };
1081
+ O.neg = function() {
1082
+ var t = new this.constructor(this);
1083
+ return t.s = -t.s, t;
1084
+ };
1085
+ O.plus = O.add = function(t) {
1086
+ var e, n, r, i = this, s = i.constructor;
1087
+ if (t = new s(t), i.s != t.s)
1088
+ return t.s = -t.s, i.minus(t);
1089
+ var u = i.e, o = i.c, c = t.e, a = t.c;
1090
+ if (!o[0] || !a[0])
1091
+ return a[0] || (o[0] ? t = new s(i) : t.s = i.s), t;
1092
+ if (o = o.slice(), e = u - c) {
1093
+ for (e > 0 ? (c = u, r = a) : (e = -e, r = o), r.reverse(); e--; ) r.push(0);
1094
+ r.reverse();
1095
+ }
1096
+ for (o.length - a.length < 0 && (r = a, a = o, o = r), e = a.length, n = 0; e; o[e] %= 10) n = (o[--e] = o[e] + a[e] + n) / 10 | 0;
1097
+ for (n && (o.unshift(n), ++c), e = o.length; o[--e] === 0; ) o.pop();
1098
+ return t.c = o, t.e = c, t;
1099
+ };
1100
+ O.pow = function(t) {
1101
+ var e = this, n = new e.constructor("1"), r = n, i = t < 0;
1102
+ if (t !== ~~t || t < -Ht || t > Ht)
1103
+ throw Error(Q + "exponent");
1104
+ for (i && (t = -t); t & 1 && (r = r.times(e)), t >>= 1, !!t; )
1105
+ e = e.times(e);
1106
+ return i ? n.div(r) : r;
1107
+ };
1108
+ O.prec = function(t, e) {
1109
+ if (t !== ~~t || t < 1 || t > G)
1110
+ throw Error(Q + "precision");
1111
+ return tt(new this.constructor(this), t, e);
1112
+ };
1113
+ O.round = function(t, e) {
1114
+ if (t === U) t = 0;
1115
+ else if (t !== ~~t || t < -G || t > G)
1116
+ throw Error(mt);
1117
+ return tt(new this.constructor(this), t + this.e + 1, e);
1118
+ };
1119
+ O.sqrt = function() {
1120
+ var t, e, n, r = this, i = r.constructor, s = r.s, u = r.e, o = new i("0.5");
1121
+ if (!r.c[0]) return new i(r);
1122
+ if (s < 0)
1123
+ throw Error(st + "No square root");
1124
+ s = Math.sqrt(+et(r, !0, !0)), s === 0 || s === 1 / 0 ? (e = r.c.join(""), e.length + u & 1 || (e += "0"), s = Math.sqrt(e), u = ((u + 1) / 2 | 0) - (u < 0 || u & 1), t = new i((s == 1 / 0 ? "5e" : (s = s.toExponential()).slice(0, s.indexOf("e") + 1)) + u)) : t = new i(s + ""), u = t.e + (i.DP += 4);
1125
+ do
1126
+ n = t, t = o.times(n.plus(r.div(n)));
1127
+ while (n.c.slice(0, u).join("") !== t.c.slice(0, u).join(""));
1128
+ return tt(t, (i.DP -= 4) + t.e + 1, i.RM);
1129
+ };
1130
+ O.times = O.mul = function(t) {
1131
+ var e, n = this, r = n.constructor, i = n.c, s = (t = new r(t)).c, u = i.length, o = s.length, c = n.e, a = t.e;
1132
+ if (t.s = n.s == t.s ? 1 : -1, !i[0] || !s[0])
1133
+ return t.c = [t.e = 0], t;
1134
+ for (t.e = c + a, u < o && (e = i, i = s, s = e, a = u, u = o, o = a), e = new Array(a = u + o); a--; ) e[a] = 0;
1135
+ for (c = o; c--; ) {
1136
+ for (o = 0, a = u + c; a > c; )
1137
+ o = e[a] + s[c] * i[a - c - 1] + o, e[a--] = o % 10, o = o / 10 | 0;
1138
+ e[a] = o;
1139
+ }
1140
+ for (o ? ++t.e : e.shift(), c = e.length; !e[--c]; ) e.pop();
1141
+ return t.c = e, t;
1142
+ };
1143
+ O.toExponential = function(t, e) {
1144
+ var n = this, r = n.c[0];
1145
+ if (t !== U) {
1146
+ if (t !== ~~t || t < 0 || t > G)
1147
+ throw Error(mt);
1148
+ for (n = tt(new n.constructor(n), ++t, e); n.c.length < t; ) n.c.push(0);
1149
+ }
1150
+ return et(n, !0, !!r);
1151
+ };
1152
+ O.toFixed = function(t, e) {
1153
+ var n = this, r = n.c[0];
1154
+ if (t !== U) {
1155
+ if (t !== ~~t || t < 0 || t > G)
1156
+ throw Error(mt);
1157
+ for (n = tt(new n.constructor(n), t + n.e + 1, e), t = t + n.e + 1; n.c.length < t; ) n.c.push(0);
1158
+ }
1159
+ return et(n, !1, !!r);
1160
+ };
1161
+ O[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = O.toJSON = O.toString = function() {
1162
+ var t = this, e = t.constructor;
1163
+ return et(t, t.e <= e.NE || t.e >= e.PE, !!t.c[0]);
1164
+ };
1165
+ O.toNumber = function() {
1166
+ var t = +et(this, !0, !0);
1167
+ if (this.constructor.strict === !0 && !this.eq(t.toString()))
1168
+ throw Error(st + "Imprecise conversion");
1169
+ return t;
1170
+ };
1171
+ O.toPrecision = function(t, e) {
1172
+ var n = this, r = n.constructor, i = n.c[0];
1173
+ if (t !== U) {
1174
+ if (t !== ~~t || t < 1 || t > G)
1175
+ throw Error(Q + "precision");
1176
+ for (n = tt(new r(n), t, e); n.c.length < t; ) n.c.push(0);
1177
+ }
1178
+ return et(n, t <= n.e || n.e <= r.NE || n.e >= r.PE, !!i);
1179
+ };
1180
+ O.valueOf = function() {
1181
+ var t = this, e = t.constructor;
1182
+ if (e.strict === !0)
1183
+ throw Error(st + "valueOf disallowed");
1184
+ return et(t, t.e <= e.NE || t.e >= e.PE, !0);
1185
+ };
1186
+ var Ut = Ft();
1187
+ function De(t) {
1188
+ return new Ut(t);
1189
+ }
1190
+ function On(t, e, n = 1) {
1191
+ return new Ut(t).round(e, n).toNumber();
1192
+ }
1193
+ function Nn(t, e = {}) {
1194
+ const { bit: n = 3, precision: r = 0, thousandSeparator: i = ",", roundMode: s = 1 } = e;
1195
+ if (dt(t)) return "";
1196
+ if (isNaN(+t)) return t + "";
1197
+ let u = De(t).toFixed(r, s);
1198
+ const o = u.split(".");
1199
+ u = o[0];
1200
+ const c = new RegExp(`(\\d)(?=(\\d{${n}})+$)`, "g");
1201
+ u = u.replace(c, `$1${i}`);
1202
+ const a = o.length > 1 ? `.${o == null ? void 0 : o[1]}` : "";
1203
+ return u + a;
1204
+ }
1205
+ const be = {
1206
+ yi: "亿",
1207
+ wan: "万",
1208
+ thousandSeparator: ","
1209
+ };
1210
+ function $t(t, e = {}) {
1211
+ if (dt(t) || isNaN(t)) return "";
1212
+ if (t < 0) return "-" + $t(-t, e);
1213
+ const { yi: n, wan: r, thousandSeparator: i } = W(W({}, be), e), s = String(t).length, u = !!i, o = (y) => u ? y.replace(/\B(?=(\d{3})+(?!\d))/g, i) : y;
1214
+ if (s <= 4) return o(String(t));
1215
+ if (s <= 8) {
1216
+ const y = Math.floor(t / 1e4), w = t % 1e4;
1217
+ return w === 0 ? o(String(y)) + r : o(String(y)) + r + o(w.toString().padStart(4, "0"));
1218
+ }
1219
+ if (s <= 12) {
1220
+ const y = Math.floor(t / 1e8), w = Math.floor(t % 1e8 / 1e4), A = t % 1e4;
1221
+ if (y === 0) return $t(t % 1e8, e);
1222
+ const k = o(String(y)) + n;
1223
+ return w === 0 && A === 0 ? k : w === 0 ? k + o(A.toString()) : A === 0 ? k + o(String(w)) + r : k + o(String(w)) + r + o(A.toString());
1224
+ }
1225
+ const c = Math.floor(t / 1e8), a = t % 1e8;
1226
+ return o(String(c)) + n + $t(a, pt(W({}, e), { thousandSeparator: "" }));
1227
+ }
1228
+ const Z = {
1229
+ /**
1230
+ * localStorage
1231
+ */
1232
+ LOCAl: "localStorage",
1233
+ /**
1234
+ * sessionStorage
1235
+ */
1236
+ SESSION: "sessionStorage"
1237
+ };
1238
+ function Bt(t, e, n = Z.LOCAl) {
1239
+ if (ht(e)) return;
1240
+ const r = JSON.stringify({ _value_: e });
1241
+ window[n].setItem(t, r);
1242
+ }
1243
+ function Wt(t, e = Z.LOCAl) {
1244
+ const n = window[e].getItem(t);
1245
+ if (!n) return null;
1246
+ try {
1247
+ const r = JSON.parse(n);
1248
+ return Object.hasOwnProperty.call(r, "_value_") ? r._value_ : r;
1249
+ } catch (r) {
1250
+ return n;
1251
+ }
1252
+ }
1253
+ function zt(t, e = Z.LOCAl) {
1254
+ window[e].removeItem(t);
1255
+ }
1256
+ function Vt(t = Z.LOCAl) {
1257
+ window[t].clear();
1258
+ }
1259
+ const xn = (t, e) => Bt(t, e), An = (t) => Wt(t), kn = (t) => zt(t), En = () => Vt(), Yn = (t, e) => Bt(t, e, Z.SESSION), Hn = (t) => Wt(t, Z.SESSION), _n = (t) => zt(t, Z.SESSION), Cn = () => Vt(Z.SESSION), In = (t) => t.replace(/-(\w)/g, (e, n) => n.toUpperCase()), Pn = (t) => t.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, ""), Tn = (t) => t.replace(/([A-Z])/g, "_$1").toLowerCase(), jn = (t) => t.charAt(0).toLowerCase() + t.slice(1);
1260
+ function Rn(t) {
1261
+ return new Promise((e) => {
1262
+ setTimeout(() => {
1263
+ e();
1264
+ }, t);
1265
+ });
1266
+ }
1267
+ var Oe = /* @__PURE__ */ ((t) => (t[t.YES = 1] = "YES", t[t.NO = 0] = "NO", t))(Oe || {}), Ne = /* @__PURE__ */ ((t) => (t.YES = "10", t.NO = "20", t))(Ne || {});
1268
+ export {
1269
+ At as DefaultCloningStrategy,
1270
+ me as EnumDeviceBrand,
1271
+ Z as EnumStoreType,
1272
+ Oe as EnumYesNo,
1273
+ Ne as EnumYesNoPlus,
1274
+ Sn as blobToBase64,
1275
+ In as camelize,
1276
+ sn as cancelAnimationFrame,
1277
+ En as clearLocal,
1278
+ Cn as clearSession,
1279
+ Vt as clearStore,
1280
+ re as cloneDeep,
1281
+ Ae as copyTextToClipboard,
1282
+ Je as dateDiff,
1283
+ Xe as dateDiffFormat,
1284
+ he as dateFormat,
1285
+ Ke as dateFromNow,
1286
+ qe as dateMonthDays,
1287
+ wn as debounce,
1288
+ Ue as deepClone,
1289
+ cn as doubleRaf,
1290
+ Ge as durationFormat,
1291
+ Qe as durationFormatNoZero,
1292
+ $t as formatMoney,
1293
+ Nn as formatNumber,
1294
+ Mn as get,
1295
+ We as getCookie,
1296
+ Ze as getCurrDate,
1297
+ on as getDeviceBrand,
1298
+ Rt as getGlobalThis,
1299
+ An as getLocal,
1300
+ Yt as getRect,
1301
+ dn as getScrollLeft,
1302
+ hn as getScrollTop,
1303
+ Hn as getSession,
1304
+ Wt as getStore,
1305
+ an as getStyle,
1306
+ fn as inViewport,
1307
+ B as is,
1308
+ tn as isAndroid,
1309
+ Pt as isArray,
1310
+ Pe as isBoolean,
1311
+ ne as isClient,
1312
+ He as isDate,
1313
+ _t as isDef,
1314
+ je as isElement,
1315
+ Ye as isEmpty,
1316
+ ke as isEmptyObject,
1317
+ Ee as isEmptyValue,
1318
+ xt as isFunction,
1319
+ nn as isHarmony,
1320
+ Le as isInteger,
1321
+ en as isIos,
1322
+ Qt as isMap,
1323
+ It as isNull,
1324
+ _e as isNullAndUnDef,
1325
+ dt as isNullOrUnDef,
1326
+ Ce as isNumber,
1327
+ Fe as isNumeric,
1328
+ vt as isObject,
1329
+ Ct as isPlainObject,
1330
+ Ie as isPromise,
1331
+ Te as isRegExp,
1332
+ ee as isServer,
1333
+ te as isSet,
1334
+ Xt as isString,
1335
+ ht as isUnDef,
1336
+ Re as isUrl,
1337
+ de as isWeChat,
1338
+ Gt as isWindow,
1339
+ rn as isWxMiniProgram,
1340
+ Pn as kebabCase,
1341
+ jn as lowerFirst,
1342
+ Ve as minute,
1343
+ Dn as objToQString,
1344
+ mn as omit,
1345
+ $n as omitBy,
1346
+ pn as pick,
1347
+ gn as pickBy,
1348
+ ln as preventDefault,
1349
+ bn as qStringToObj,
1350
+ un as raf,
1351
+ ze as removeCookie,
1352
+ kn as removeLocal,
1353
+ _n as removeSession,
1354
+ zt as removeStore,
1355
+ yt as requestAnimationFrame,
1356
+ On as round,
1357
+ Be as setCookie,
1358
+ xn as setLocal,
1359
+ Yn as setSession,
1360
+ Bt as setStore,
1361
+ Rn as sleep,
1362
+ Tn as snakeCase,
1363
+ yn as throttle,
1364
+ vn as uniqueId,
1365
+ rt as useDate,
1366
+ De as useNumber
1367
+ };