@tidbcloud/uikit 2.1.5 → 2.1.7

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 (54) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/_virtual/customParseFormat.cjs +4 -0
  3. package/dist/_virtual/customParseFormat.mjs +4 -0
  4. package/dist/_virtual/duration.cjs +4 -0
  5. package/dist/_virtual/duration.mjs +4 -0
  6. package/dist/_virtual/minMax.cjs +4 -0
  7. package/dist/_virtual/minMax.mjs +4 -0
  8. package/dist/biz/CodeBlock/index.cjs +1 -1
  9. package/dist/biz/CodeBlock/index.mjs +1 -1
  10. package/dist/biz/DateTimePicker/TimeScollerPicker.cjs +6 -8
  11. package/dist/biz/DateTimePicker/TimeScollerPicker.mjs +1 -3
  12. package/dist/biz/DateTimePicker/index.cjs +14 -13
  13. package/dist/biz/DateTimePicker/index.mjs +6 -5
  14. package/dist/biz/Form/CopyText.cjs +1 -1
  15. package/dist/biz/Form/CopyText.mjs +1 -1
  16. package/dist/biz/TimeRangePicker/AbsoluteTimeRangePicker.cjs +7 -9
  17. package/dist/biz/TimeRangePicker/AbsoluteTimeRangePicker.mjs +1 -3
  18. package/dist/biz/TimeRangePicker/helpers.cjs +3 -5
  19. package/dist/biz/TimeRangePicker/helpers.mjs +1 -3
  20. package/dist/hooks/index.cjs +2 -2
  21. package/dist/hooks/index.d.cts +2 -1
  22. package/dist/hooks/index.d.mts +2 -1
  23. package/dist/hooks/index.mjs +1 -1
  24. package/dist/hooks/use-clipboard/use-clipboard.cjs +16 -0
  25. package/dist/hooks/use-clipboard/use-clipboard.d.cts +8 -0
  26. package/dist/hooks/use-clipboard/use-clipboard.d.mts +8 -0
  27. package/dist/hooks/use-clipboard/use-clipboard.mjs +16 -0
  28. package/dist/hooks/use-clipboard/use-fallback-clipboard.cjs +44 -0
  29. package/dist/hooks/use-clipboard/use-fallback-clipboard.d.cts +8 -0
  30. package/dist/hooks/use-clipboard/use-fallback-clipboard.d.mts +8 -0
  31. package/dist/hooks/use-clipboard/use-fallback-clipboard.mjs +44 -0
  32. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/customParseFormat.cjs +129 -0
  33. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/customParseFormat.mjs +129 -0
  34. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/duration.cjs +136 -0
  35. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/duration.mjs +136 -0
  36. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/minMax.cjs +32 -0
  37. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/minMax.mjs +32 -0
  38. package/dist/primitive/CopyButton/CopyButton.cjs +15 -0
  39. package/dist/primitive/CopyButton/CopyButton.d.cts +2 -0
  40. package/dist/primitive/CopyButton/CopyButton.d.mts +2 -0
  41. package/dist/primitive/CopyButton/CopyButton.mjs +15 -0
  42. package/dist/primitive/index.cjs +2 -2
  43. package/dist/primitive/index.d.cts +2 -1
  44. package/dist/primitive/index.d.mts +2 -1
  45. package/dist/primitive/index.mjs +1 -1
  46. package/dist/utils/dayjs.cjs +15 -0
  47. package/dist/utils/dayjs.d.cts +2 -2
  48. package/dist/utils/dayjs.d.mts +2 -2
  49. package/dist/utils/dayjs.mjs +15 -0
  50. package/dist/utils/index.cjs +2 -2
  51. package/dist/utils/index.d.cts +1 -1
  52. package/dist/utils/index.d.mts +1 -1
  53. package/dist/utils/index.mjs +2 -2
  54. package/package.json +1 -1
@@ -0,0 +1,129 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const _commonjsHelpers = require("../../../../../../_virtual/_commonjsHelpers.cjs");
4
+ const customParseFormat$1 = require("../../../../../../_virtual/customParseFormat.cjs");
5
+ (function(module2, exports2) {
6
+ !function(e, t) {
7
+ module2.exports = t();
8
+ }(_commonjsHelpers.commonjsGlobal, function() {
9
+ var e = { 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" }, t = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, r = /\d\d/, i = /\d\d?/, o = /\d*[^-_:/,()\s\d]+/, s = {}, a = function(e2) {
10
+ return (e2 = +e2) + (e2 > 68 ? 1900 : 2e3);
11
+ };
12
+ var f = function(e2) {
13
+ return function(t2) {
14
+ this[e2] = +t2;
15
+ };
16
+ }, h = [/[+-]\d\d:?(\d\d)?|Z/, function(e2) {
17
+ (this.zone || (this.zone = {})).offset = function(e3) {
18
+ if (!e3) return 0;
19
+ if ("Z" === e3) return 0;
20
+ var t2 = e3.match(/([+-]|\d\d)/g), n2 = 60 * t2[1] + (+t2[2] || 0);
21
+ return 0 === n2 ? 0 : "+" === t2[0] ? -n2 : n2;
22
+ }(e2);
23
+ }], u = function(e2) {
24
+ var t2 = s[e2];
25
+ return t2 && (t2.indexOf ? t2 : t2.s.concat(t2.f));
26
+ }, d = function(e2, t2) {
27
+ var n2, r2 = s.meridiem;
28
+ if (r2) {
29
+ for (var i2 = 1; i2 <= 24; i2 += 1) if (e2.indexOf(r2(i2, 0, t2)) > -1) {
30
+ n2 = i2 > 12;
31
+ break;
32
+ }
33
+ } else n2 = e2 === (t2 ? "pm" : "PM");
34
+ return n2;
35
+ }, c = { A: [o, function(e2) {
36
+ this.afternoon = d(e2, false);
37
+ }], a: [o, function(e2) {
38
+ this.afternoon = d(e2, true);
39
+ }], Q: [n, function(e2) {
40
+ this.month = 3 * (e2 - 1) + 1;
41
+ }], S: [n, function(e2) {
42
+ this.milliseconds = 100 * +e2;
43
+ }], SS: [r, function(e2) {
44
+ this.milliseconds = 10 * +e2;
45
+ }], SSS: [/\d{3}/, function(e2) {
46
+ this.milliseconds = +e2;
47
+ }], s: [i, f("seconds")], ss: [i, f("seconds")], m: [i, f("minutes")], mm: [i, f("minutes")], H: [i, f("hours")], h: [i, f("hours")], HH: [i, f("hours")], hh: [i, f("hours")], D: [i, f("day")], DD: [r, f("day")], Do: [o, function(e2) {
48
+ var t2 = s.ordinal, n2 = e2.match(/\d+/);
49
+ if (this.day = n2[0], t2) for (var r2 = 1; r2 <= 31; r2 += 1) t2(r2).replace(/\[|\]/g, "") === e2 && (this.day = r2);
50
+ }], w: [i, f("week")], ww: [r, f("week")], M: [i, f("month")], MM: [r, f("month")], MMM: [o, function(e2) {
51
+ var t2 = u("months"), n2 = (u("monthsShort") || t2.map(function(e3) {
52
+ return e3.slice(0, 3);
53
+ })).indexOf(e2) + 1;
54
+ if (n2 < 1) throw new Error();
55
+ this.month = n2 % 12 || n2;
56
+ }], MMMM: [o, function(e2) {
57
+ var t2 = u("months").indexOf(e2) + 1;
58
+ if (t2 < 1) throw new Error();
59
+ this.month = t2 % 12 || t2;
60
+ }], Y: [/[+-]?\d+/, f("year")], YY: [r, function(e2) {
61
+ this.year = a(e2);
62
+ }], YYYY: [/\d{4}/, f("year")], Z: h, ZZ: h };
63
+ function l(n2) {
64
+ var r2, i2;
65
+ r2 = n2, i2 = s && s.formats;
66
+ for (var o2 = (n2 = r2.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(t2, n3, r3) {
67
+ var o3 = r3 && r3.toUpperCase();
68
+ return n3 || i2[r3] || e[r3] || i2[o3].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(e2, t3, n4) {
69
+ return t3 || n4.slice(1);
70
+ });
71
+ })).match(t), a2 = o2.length, f2 = 0; f2 < a2; f2 += 1) {
72
+ var h2 = o2[f2], u2 = c[h2], d2 = u2 && u2[0], l2 = u2 && u2[1];
73
+ o2[f2] = l2 ? { regex: d2, parser: l2 } : h2.replace(/^\[|\]$/g, "");
74
+ }
75
+ return function(e2) {
76
+ for (var t2 = {}, n3 = 0, r3 = 0; n3 < a2; n3 += 1) {
77
+ var i3 = o2[n3];
78
+ if ("string" == typeof i3) r3 += i3.length;
79
+ else {
80
+ var s2 = i3.regex, f3 = i3.parser, h3 = e2.slice(r3), u3 = s2.exec(h3)[0];
81
+ f3.call(t2, u3), e2 = e2.replace(u3, "");
82
+ }
83
+ }
84
+ return function(e3) {
85
+ var t3 = e3.afternoon;
86
+ if (void 0 !== t3) {
87
+ var n4 = e3.hours;
88
+ t3 ? n4 < 12 && (e3.hours += 12) : 12 === n4 && (e3.hours = 0), delete e3.afternoon;
89
+ }
90
+ }(t2), t2;
91
+ };
92
+ }
93
+ return function(e2, t2, n2) {
94
+ n2.p.customParseFormat = true, e2 && e2.parseTwoDigitYear && (a = e2.parseTwoDigitYear);
95
+ var r2 = t2.prototype, i2 = r2.parse;
96
+ r2.parse = function(e3) {
97
+ var t3 = e3.date, r3 = e3.utc, o2 = e3.args;
98
+ this.$u = r3;
99
+ var a2 = o2[1];
100
+ if ("string" == typeof a2) {
101
+ var f2 = true === o2[2], h2 = true === o2[3], u2 = f2 || h2, d2 = o2[2];
102
+ h2 && (d2 = o2[2]), s = this.$locale(), !f2 && d2 && (s = n2.Ls[d2]), this.$d = function(e4, t4, n3, r4) {
103
+ try {
104
+ if (["x", "X"].indexOf(t4) > -1) return new Date(("X" === t4 ? 1e3 : 1) * e4);
105
+ var i3 = l(t4)(e4), o3 = i3.year, s2 = i3.month, a3 = i3.day, f3 = i3.hours, h3 = i3.minutes, u3 = i3.seconds, d3 = i3.milliseconds, c3 = i3.zone, m2 = i3.week, M2 = /* @__PURE__ */ new Date(), Y = a3 || (o3 || s2 ? 1 : M2.getDate()), p = o3 || M2.getFullYear(), v = 0;
106
+ o3 && !s2 || (v = s2 > 0 ? s2 - 1 : M2.getMonth());
107
+ var D, w = f3 || 0, g = h3 || 0, y = u3 || 0, L = d3 || 0;
108
+ return c3 ? new Date(Date.UTC(p, v, Y, w, g, y, L + 60 * c3.offset * 1e3)) : n3 ? new Date(Date.UTC(p, v, Y, w, g, y, L)) : (D = new Date(p, v, Y, w, g, y, L), m2 && (D = r4(D).week(m2).toDate()), D);
109
+ } catch (e5) {
110
+ return /* @__PURE__ */ new Date("");
111
+ }
112
+ }(t3, a2, r3, n2), this.init(), d2 && true !== d2 && (this.$L = this.locale(d2).$L), u2 && t3 != this.format(a2) && (this.$d = /* @__PURE__ */ new Date("")), s = {};
113
+ } else if (a2 instanceof Array) for (var c2 = a2.length, m = 1; m <= c2; m += 1) {
114
+ o2[1] = a2[m - 1];
115
+ var M = n2.apply(this, o2);
116
+ if (M.isValid()) {
117
+ this.$d = M.$d, this.$L = M.$L, this.init();
118
+ break;
119
+ }
120
+ m === c2 && (this.$d = /* @__PURE__ */ new Date(""));
121
+ }
122
+ else i2.call(this, e3);
123
+ };
124
+ };
125
+ });
126
+ })(customParseFormat$1.__module);
127
+ var customParseFormatExports = customParseFormat$1.__module.exports;
128
+ const customParseFormat = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(customParseFormatExports);
129
+ exports.default = customParseFormat;
@@ -0,0 +1,129 @@
1
+ import { commonjsGlobal, getDefaultExportFromCjs } from "../../../../../../_virtual/_commonjsHelpers.mjs";
2
+ import { __module as customParseFormat$1 } from "../../../../../../_virtual/customParseFormat.mjs";
3
+ (function(module, exports) {
4
+ !function(e, t) {
5
+ module.exports = t();
6
+ }(commonjsGlobal, function() {
7
+ var e = { 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" }, t = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, r = /\d\d/, i = /\d\d?/, o = /\d*[^-_:/,()\s\d]+/, s = {}, a = function(e2) {
8
+ return (e2 = +e2) + (e2 > 68 ? 1900 : 2e3);
9
+ };
10
+ var f = function(e2) {
11
+ return function(t2) {
12
+ this[e2] = +t2;
13
+ };
14
+ }, h = [/[+-]\d\d:?(\d\d)?|Z/, function(e2) {
15
+ (this.zone || (this.zone = {})).offset = function(e3) {
16
+ if (!e3) return 0;
17
+ if ("Z" === e3) return 0;
18
+ var t2 = e3.match(/([+-]|\d\d)/g), n2 = 60 * t2[1] + (+t2[2] || 0);
19
+ return 0 === n2 ? 0 : "+" === t2[0] ? -n2 : n2;
20
+ }(e2);
21
+ }], u = function(e2) {
22
+ var t2 = s[e2];
23
+ return t2 && (t2.indexOf ? t2 : t2.s.concat(t2.f));
24
+ }, d = function(e2, t2) {
25
+ var n2, r2 = s.meridiem;
26
+ if (r2) {
27
+ for (var i2 = 1; i2 <= 24; i2 += 1) if (e2.indexOf(r2(i2, 0, t2)) > -1) {
28
+ n2 = i2 > 12;
29
+ break;
30
+ }
31
+ } else n2 = e2 === (t2 ? "pm" : "PM");
32
+ return n2;
33
+ }, c = { A: [o, function(e2) {
34
+ this.afternoon = d(e2, false);
35
+ }], a: [o, function(e2) {
36
+ this.afternoon = d(e2, true);
37
+ }], Q: [n, function(e2) {
38
+ this.month = 3 * (e2 - 1) + 1;
39
+ }], S: [n, function(e2) {
40
+ this.milliseconds = 100 * +e2;
41
+ }], SS: [r, function(e2) {
42
+ this.milliseconds = 10 * +e2;
43
+ }], SSS: [/\d{3}/, function(e2) {
44
+ this.milliseconds = +e2;
45
+ }], s: [i, f("seconds")], ss: [i, f("seconds")], m: [i, f("minutes")], mm: [i, f("minutes")], H: [i, f("hours")], h: [i, f("hours")], HH: [i, f("hours")], hh: [i, f("hours")], D: [i, f("day")], DD: [r, f("day")], Do: [o, function(e2) {
46
+ var t2 = s.ordinal, n2 = e2.match(/\d+/);
47
+ if (this.day = n2[0], t2) for (var r2 = 1; r2 <= 31; r2 += 1) t2(r2).replace(/\[|\]/g, "") === e2 && (this.day = r2);
48
+ }], w: [i, f("week")], ww: [r, f("week")], M: [i, f("month")], MM: [r, f("month")], MMM: [o, function(e2) {
49
+ var t2 = u("months"), n2 = (u("monthsShort") || t2.map(function(e3) {
50
+ return e3.slice(0, 3);
51
+ })).indexOf(e2) + 1;
52
+ if (n2 < 1) throw new Error();
53
+ this.month = n2 % 12 || n2;
54
+ }], MMMM: [o, function(e2) {
55
+ var t2 = u("months").indexOf(e2) + 1;
56
+ if (t2 < 1) throw new Error();
57
+ this.month = t2 % 12 || t2;
58
+ }], Y: [/[+-]?\d+/, f("year")], YY: [r, function(e2) {
59
+ this.year = a(e2);
60
+ }], YYYY: [/\d{4}/, f("year")], Z: h, ZZ: h };
61
+ function l(n2) {
62
+ var r2, i2;
63
+ r2 = n2, i2 = s && s.formats;
64
+ for (var o2 = (n2 = r2.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(t2, n3, r3) {
65
+ var o3 = r3 && r3.toUpperCase();
66
+ return n3 || i2[r3] || e[r3] || i2[o3].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(e2, t3, n4) {
67
+ return t3 || n4.slice(1);
68
+ });
69
+ })).match(t), a2 = o2.length, f2 = 0; f2 < a2; f2 += 1) {
70
+ var h2 = o2[f2], u2 = c[h2], d2 = u2 && u2[0], l2 = u2 && u2[1];
71
+ o2[f2] = l2 ? { regex: d2, parser: l2 } : h2.replace(/^\[|\]$/g, "");
72
+ }
73
+ return function(e2) {
74
+ for (var t2 = {}, n3 = 0, r3 = 0; n3 < a2; n3 += 1) {
75
+ var i3 = o2[n3];
76
+ if ("string" == typeof i3) r3 += i3.length;
77
+ else {
78
+ var s2 = i3.regex, f3 = i3.parser, h3 = e2.slice(r3), u3 = s2.exec(h3)[0];
79
+ f3.call(t2, u3), e2 = e2.replace(u3, "");
80
+ }
81
+ }
82
+ return function(e3) {
83
+ var t3 = e3.afternoon;
84
+ if (void 0 !== t3) {
85
+ var n4 = e3.hours;
86
+ t3 ? n4 < 12 && (e3.hours += 12) : 12 === n4 && (e3.hours = 0), delete e3.afternoon;
87
+ }
88
+ }(t2), t2;
89
+ };
90
+ }
91
+ return function(e2, t2, n2) {
92
+ n2.p.customParseFormat = true, e2 && e2.parseTwoDigitYear && (a = e2.parseTwoDigitYear);
93
+ var r2 = t2.prototype, i2 = r2.parse;
94
+ r2.parse = function(e3) {
95
+ var t3 = e3.date, r3 = e3.utc, o2 = e3.args;
96
+ this.$u = r3;
97
+ var a2 = o2[1];
98
+ if ("string" == typeof a2) {
99
+ var f2 = true === o2[2], h2 = true === o2[3], u2 = f2 || h2, d2 = o2[2];
100
+ h2 && (d2 = o2[2]), s = this.$locale(), !f2 && d2 && (s = n2.Ls[d2]), this.$d = function(e4, t4, n3, r4) {
101
+ try {
102
+ if (["x", "X"].indexOf(t4) > -1) return new Date(("X" === t4 ? 1e3 : 1) * e4);
103
+ var i3 = l(t4)(e4), o3 = i3.year, s2 = i3.month, a3 = i3.day, f3 = i3.hours, h3 = i3.minutes, u3 = i3.seconds, d3 = i3.milliseconds, c3 = i3.zone, m2 = i3.week, M2 = /* @__PURE__ */ new Date(), Y = a3 || (o3 || s2 ? 1 : M2.getDate()), p = o3 || M2.getFullYear(), v = 0;
104
+ o3 && !s2 || (v = s2 > 0 ? s2 - 1 : M2.getMonth());
105
+ var D, w = f3 || 0, g = h3 || 0, y = u3 || 0, L = d3 || 0;
106
+ return c3 ? new Date(Date.UTC(p, v, Y, w, g, y, L + 60 * c3.offset * 1e3)) : n3 ? new Date(Date.UTC(p, v, Y, w, g, y, L)) : (D = new Date(p, v, Y, w, g, y, L), m2 && (D = r4(D).week(m2).toDate()), D);
107
+ } catch (e5) {
108
+ return /* @__PURE__ */ new Date("");
109
+ }
110
+ }(t3, a2, r3, n2), this.init(), d2 && true !== d2 && (this.$L = this.locale(d2).$L), u2 && t3 != this.format(a2) && (this.$d = /* @__PURE__ */ new Date("")), s = {};
111
+ } else if (a2 instanceof Array) for (var c2 = a2.length, m = 1; m <= c2; m += 1) {
112
+ o2[1] = a2[m - 1];
113
+ var M = n2.apply(this, o2);
114
+ if (M.isValid()) {
115
+ this.$d = M.$d, this.$L = M.$L, this.init();
116
+ break;
117
+ }
118
+ m === c2 && (this.$d = /* @__PURE__ */ new Date(""));
119
+ }
120
+ else i2.call(this, e3);
121
+ };
122
+ };
123
+ });
124
+ })(customParseFormat$1);
125
+ var customParseFormatExports = customParseFormat$1.exports;
126
+ const customParseFormat = /* @__PURE__ */ getDefaultExportFromCjs(customParseFormatExports);
127
+ export {
128
+ customParseFormat as default
129
+ };
@@ -0,0 +1,136 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const _commonjsHelpers = require("../../../../../../_virtual/_commonjsHelpers.cjs");
4
+ const duration$1 = require("../../../../../../_virtual/duration.cjs");
5
+ (function(module2, exports2) {
6
+ !function(t, s) {
7
+ module2.exports = s();
8
+ }(_commonjsHelpers.commonjsGlobal, function() {
9
+ var t, s, n = 1e3, i = 6e4, e = 36e5, r = 864e5, o = /\[([^\]]+)]|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, u = 31536e6, d = 2628e6, a = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, h = { years: u, months: d, days: r, hours: e, minutes: i, seconds: n, milliseconds: 1, weeks: 6048e5 }, c = function(t2) {
10
+ return t2 instanceof g;
11
+ }, f = function(t2, s2, n2) {
12
+ return new g(t2, n2, s2.$l);
13
+ }, m = function(t2) {
14
+ return s.p(t2) + "s";
15
+ }, l = function(t2) {
16
+ return t2 < 0;
17
+ }, $ = function(t2) {
18
+ return l(t2) ? Math.ceil(t2) : Math.floor(t2);
19
+ }, y = function(t2) {
20
+ return Math.abs(t2);
21
+ }, v = function(t2, s2) {
22
+ return t2 ? l(t2) ? { negative: true, format: "" + y(t2) + s2 } : { negative: false, format: "" + t2 + s2 } : { negative: false, format: "" };
23
+ }, g = function() {
24
+ function l2(t2, s2, n2) {
25
+ var i2 = this;
26
+ if (this.$d = {}, this.$l = n2, void 0 === t2 && (this.$ms = 0, this.parseFromMilliseconds()), s2) return f(t2 * h[m(s2)], this);
27
+ if ("number" == typeof t2) return this.$ms = t2, this.parseFromMilliseconds(), this;
28
+ if ("object" == typeof t2) return Object.keys(t2).forEach(function(s3) {
29
+ i2.$d[m(s3)] = t2[s3];
30
+ }), this.calMilliseconds(), this;
31
+ if ("string" == typeof t2) {
32
+ var e2 = t2.match(a);
33
+ if (e2) {
34
+ var r2 = e2.slice(2).map(function(t3) {
35
+ return null != t3 ? Number(t3) : 0;
36
+ });
37
+ return this.$d.years = r2[0], this.$d.months = r2[1], this.$d.weeks = r2[2], this.$d.days = r2[3], this.$d.hours = r2[4], this.$d.minutes = r2[5], this.$d.seconds = r2[6], this.calMilliseconds(), this;
38
+ }
39
+ }
40
+ return this;
41
+ }
42
+ var y2 = l2.prototype;
43
+ return y2.calMilliseconds = function() {
44
+ var t2 = this;
45
+ this.$ms = Object.keys(this.$d).reduce(function(s2, n2) {
46
+ return s2 + (t2.$d[n2] || 0) * h[n2];
47
+ }, 0);
48
+ }, y2.parseFromMilliseconds = function() {
49
+ var t2 = this.$ms;
50
+ this.$d.years = $(t2 / u), t2 %= u, this.$d.months = $(t2 / d), t2 %= d, this.$d.days = $(t2 / r), t2 %= r, this.$d.hours = $(t2 / e), t2 %= e, this.$d.minutes = $(t2 / i), t2 %= i, this.$d.seconds = $(t2 / n), t2 %= n, this.$d.milliseconds = t2;
51
+ }, y2.toISOString = function() {
52
+ var t2 = v(this.$d.years, "Y"), s2 = v(this.$d.months, "M"), n2 = +this.$d.days || 0;
53
+ this.$d.weeks && (n2 += 7 * this.$d.weeks);
54
+ var i2 = v(n2, "D"), e2 = v(this.$d.hours, "H"), r2 = v(this.$d.minutes, "M"), o2 = this.$d.seconds || 0;
55
+ this.$d.milliseconds && (o2 += this.$d.milliseconds / 1e3, o2 = Math.round(1e3 * o2) / 1e3);
56
+ var u2 = v(o2, "S"), d2 = t2.negative || s2.negative || i2.negative || e2.negative || r2.negative || u2.negative, a2 = e2.format || r2.format || u2.format ? "T" : "", h2 = (d2 ? "-" : "") + "P" + t2.format + s2.format + i2.format + a2 + e2.format + r2.format + u2.format;
57
+ return "P" === h2 || "-P" === h2 ? "P0D" : h2;
58
+ }, y2.toJSON = function() {
59
+ return this.toISOString();
60
+ }, y2.format = function(t2) {
61
+ var n2 = t2 || "YYYY-MM-DDTHH:mm:ss", i2 = { Y: this.$d.years, YY: s.s(this.$d.years, 2, "0"), YYYY: s.s(this.$d.years, 4, "0"), M: this.$d.months, MM: s.s(this.$d.months, 2, "0"), D: this.$d.days, DD: s.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: s.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: s.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: s.s(this.$d.seconds, 2, "0"), SSS: s.s(this.$d.milliseconds, 3, "0") };
62
+ return n2.replace(o, function(t3, s2) {
63
+ return s2 || String(i2[t3]);
64
+ });
65
+ }, y2.as = function(t2) {
66
+ return this.$ms / h[m(t2)];
67
+ }, y2.get = function(t2) {
68
+ var s2 = this.$ms, n2 = m(t2);
69
+ return "milliseconds" === n2 ? s2 %= 1e3 : s2 = "weeks" === n2 ? $(s2 / h[n2]) : this.$d[n2], s2 || 0;
70
+ }, y2.add = function(t2, s2, n2) {
71
+ var i2;
72
+ return i2 = s2 ? t2 * h[m(s2)] : c(t2) ? t2.$ms : f(t2, this).$ms, f(this.$ms + i2 * (n2 ? -1 : 1), this);
73
+ }, y2.subtract = function(t2, s2) {
74
+ return this.add(t2, s2, true);
75
+ }, y2.locale = function(t2) {
76
+ var s2 = this.clone();
77
+ return s2.$l = t2, s2;
78
+ }, y2.clone = function() {
79
+ return f(this.$ms, this);
80
+ }, y2.humanize = function(s2) {
81
+ return t().add(this.$ms, "ms").locale(this.$l).fromNow(!s2);
82
+ }, y2.valueOf = function() {
83
+ return this.asMilliseconds();
84
+ }, y2.milliseconds = function() {
85
+ return this.get("milliseconds");
86
+ }, y2.asMilliseconds = function() {
87
+ return this.as("milliseconds");
88
+ }, y2.seconds = function() {
89
+ return this.get("seconds");
90
+ }, y2.asSeconds = function() {
91
+ return this.as("seconds");
92
+ }, y2.minutes = function() {
93
+ return this.get("minutes");
94
+ }, y2.asMinutes = function() {
95
+ return this.as("minutes");
96
+ }, y2.hours = function() {
97
+ return this.get("hours");
98
+ }, y2.asHours = function() {
99
+ return this.as("hours");
100
+ }, y2.days = function() {
101
+ return this.get("days");
102
+ }, y2.asDays = function() {
103
+ return this.as("days");
104
+ }, y2.weeks = function() {
105
+ return this.get("weeks");
106
+ }, y2.asWeeks = function() {
107
+ return this.as("weeks");
108
+ }, y2.months = function() {
109
+ return this.get("months");
110
+ }, y2.asMonths = function() {
111
+ return this.as("months");
112
+ }, y2.years = function() {
113
+ return this.get("years");
114
+ }, y2.asYears = function() {
115
+ return this.as("years");
116
+ }, l2;
117
+ }(), p = function(t2, s2, n2) {
118
+ return t2.add(s2.years() * n2, "y").add(s2.months() * n2, "M").add(s2.days() * n2, "d").add(s2.hours() * n2, "h").add(s2.minutes() * n2, "m").add(s2.seconds() * n2, "s").add(s2.milliseconds() * n2, "ms");
119
+ };
120
+ return function(n2, i2, e2) {
121
+ t = e2, s = e2().$utils(), e2.duration = function(t2, s2) {
122
+ var n3 = e2.locale();
123
+ return f(t2, { $l: n3 }, s2);
124
+ }, e2.isDuration = c;
125
+ var r2 = i2.prototype.add, o2 = i2.prototype.subtract;
126
+ i2.prototype.add = function(t2, s2) {
127
+ return c(t2) ? p(this, t2, 1) : r2.bind(this)(t2, s2);
128
+ }, i2.prototype.subtract = function(t2, s2) {
129
+ return c(t2) ? p(this, t2, -1) : o2.bind(this)(t2, s2);
130
+ };
131
+ };
132
+ });
133
+ })(duration$1.__module);
134
+ var durationExports = duration$1.__module.exports;
135
+ const duration = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(durationExports);
136
+ exports.default = duration;
@@ -0,0 +1,136 @@
1
+ import { commonjsGlobal, getDefaultExportFromCjs } from "../../../../../../_virtual/_commonjsHelpers.mjs";
2
+ import { __module as duration$1 } from "../../../../../../_virtual/duration.mjs";
3
+ (function(module, exports) {
4
+ !function(t, s) {
5
+ module.exports = s();
6
+ }(commonjsGlobal, function() {
7
+ var t, s, n = 1e3, i = 6e4, e = 36e5, r = 864e5, o = /\[([^\]]+)]|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, u = 31536e6, d = 2628e6, a = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, h = { years: u, months: d, days: r, hours: e, minutes: i, seconds: n, milliseconds: 1, weeks: 6048e5 }, c = function(t2) {
8
+ return t2 instanceof g;
9
+ }, f = function(t2, s2, n2) {
10
+ return new g(t2, n2, s2.$l);
11
+ }, m = function(t2) {
12
+ return s.p(t2) + "s";
13
+ }, l = function(t2) {
14
+ return t2 < 0;
15
+ }, $ = function(t2) {
16
+ return l(t2) ? Math.ceil(t2) : Math.floor(t2);
17
+ }, y = function(t2) {
18
+ return Math.abs(t2);
19
+ }, v = function(t2, s2) {
20
+ return t2 ? l(t2) ? { negative: true, format: "" + y(t2) + s2 } : { negative: false, format: "" + t2 + s2 } : { negative: false, format: "" };
21
+ }, g = function() {
22
+ function l2(t2, s2, n2) {
23
+ var i2 = this;
24
+ if (this.$d = {}, this.$l = n2, void 0 === t2 && (this.$ms = 0, this.parseFromMilliseconds()), s2) return f(t2 * h[m(s2)], this);
25
+ if ("number" == typeof t2) return this.$ms = t2, this.parseFromMilliseconds(), this;
26
+ if ("object" == typeof t2) return Object.keys(t2).forEach(function(s3) {
27
+ i2.$d[m(s3)] = t2[s3];
28
+ }), this.calMilliseconds(), this;
29
+ if ("string" == typeof t2) {
30
+ var e2 = t2.match(a);
31
+ if (e2) {
32
+ var r2 = e2.slice(2).map(function(t3) {
33
+ return null != t3 ? Number(t3) : 0;
34
+ });
35
+ return this.$d.years = r2[0], this.$d.months = r2[1], this.$d.weeks = r2[2], this.$d.days = r2[3], this.$d.hours = r2[4], this.$d.minutes = r2[5], this.$d.seconds = r2[6], this.calMilliseconds(), this;
36
+ }
37
+ }
38
+ return this;
39
+ }
40
+ var y2 = l2.prototype;
41
+ return y2.calMilliseconds = function() {
42
+ var t2 = this;
43
+ this.$ms = Object.keys(this.$d).reduce(function(s2, n2) {
44
+ return s2 + (t2.$d[n2] || 0) * h[n2];
45
+ }, 0);
46
+ }, y2.parseFromMilliseconds = function() {
47
+ var t2 = this.$ms;
48
+ this.$d.years = $(t2 / u), t2 %= u, this.$d.months = $(t2 / d), t2 %= d, this.$d.days = $(t2 / r), t2 %= r, this.$d.hours = $(t2 / e), t2 %= e, this.$d.minutes = $(t2 / i), t2 %= i, this.$d.seconds = $(t2 / n), t2 %= n, this.$d.milliseconds = t2;
49
+ }, y2.toISOString = function() {
50
+ var t2 = v(this.$d.years, "Y"), s2 = v(this.$d.months, "M"), n2 = +this.$d.days || 0;
51
+ this.$d.weeks && (n2 += 7 * this.$d.weeks);
52
+ var i2 = v(n2, "D"), e2 = v(this.$d.hours, "H"), r2 = v(this.$d.minutes, "M"), o2 = this.$d.seconds || 0;
53
+ this.$d.milliseconds && (o2 += this.$d.milliseconds / 1e3, o2 = Math.round(1e3 * o2) / 1e3);
54
+ var u2 = v(o2, "S"), d2 = t2.negative || s2.negative || i2.negative || e2.negative || r2.negative || u2.negative, a2 = e2.format || r2.format || u2.format ? "T" : "", h2 = (d2 ? "-" : "") + "P" + t2.format + s2.format + i2.format + a2 + e2.format + r2.format + u2.format;
55
+ return "P" === h2 || "-P" === h2 ? "P0D" : h2;
56
+ }, y2.toJSON = function() {
57
+ return this.toISOString();
58
+ }, y2.format = function(t2) {
59
+ var n2 = t2 || "YYYY-MM-DDTHH:mm:ss", i2 = { Y: this.$d.years, YY: s.s(this.$d.years, 2, "0"), YYYY: s.s(this.$d.years, 4, "0"), M: this.$d.months, MM: s.s(this.$d.months, 2, "0"), D: this.$d.days, DD: s.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: s.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: s.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: s.s(this.$d.seconds, 2, "0"), SSS: s.s(this.$d.milliseconds, 3, "0") };
60
+ return n2.replace(o, function(t3, s2) {
61
+ return s2 || String(i2[t3]);
62
+ });
63
+ }, y2.as = function(t2) {
64
+ return this.$ms / h[m(t2)];
65
+ }, y2.get = function(t2) {
66
+ var s2 = this.$ms, n2 = m(t2);
67
+ return "milliseconds" === n2 ? s2 %= 1e3 : s2 = "weeks" === n2 ? $(s2 / h[n2]) : this.$d[n2], s2 || 0;
68
+ }, y2.add = function(t2, s2, n2) {
69
+ var i2;
70
+ return i2 = s2 ? t2 * h[m(s2)] : c(t2) ? t2.$ms : f(t2, this).$ms, f(this.$ms + i2 * (n2 ? -1 : 1), this);
71
+ }, y2.subtract = function(t2, s2) {
72
+ return this.add(t2, s2, true);
73
+ }, y2.locale = function(t2) {
74
+ var s2 = this.clone();
75
+ return s2.$l = t2, s2;
76
+ }, y2.clone = function() {
77
+ return f(this.$ms, this);
78
+ }, y2.humanize = function(s2) {
79
+ return t().add(this.$ms, "ms").locale(this.$l).fromNow(!s2);
80
+ }, y2.valueOf = function() {
81
+ return this.asMilliseconds();
82
+ }, y2.milliseconds = function() {
83
+ return this.get("milliseconds");
84
+ }, y2.asMilliseconds = function() {
85
+ return this.as("milliseconds");
86
+ }, y2.seconds = function() {
87
+ return this.get("seconds");
88
+ }, y2.asSeconds = function() {
89
+ return this.as("seconds");
90
+ }, y2.minutes = function() {
91
+ return this.get("minutes");
92
+ }, y2.asMinutes = function() {
93
+ return this.as("minutes");
94
+ }, y2.hours = function() {
95
+ return this.get("hours");
96
+ }, y2.asHours = function() {
97
+ return this.as("hours");
98
+ }, y2.days = function() {
99
+ return this.get("days");
100
+ }, y2.asDays = function() {
101
+ return this.as("days");
102
+ }, y2.weeks = function() {
103
+ return this.get("weeks");
104
+ }, y2.asWeeks = function() {
105
+ return this.as("weeks");
106
+ }, y2.months = function() {
107
+ return this.get("months");
108
+ }, y2.asMonths = function() {
109
+ return this.as("months");
110
+ }, y2.years = function() {
111
+ return this.get("years");
112
+ }, y2.asYears = function() {
113
+ return this.as("years");
114
+ }, l2;
115
+ }(), p = function(t2, s2, n2) {
116
+ return t2.add(s2.years() * n2, "y").add(s2.months() * n2, "M").add(s2.days() * n2, "d").add(s2.hours() * n2, "h").add(s2.minutes() * n2, "m").add(s2.seconds() * n2, "s").add(s2.milliseconds() * n2, "ms");
117
+ };
118
+ return function(n2, i2, e2) {
119
+ t = e2, s = e2().$utils(), e2.duration = function(t2, s2) {
120
+ var n3 = e2.locale();
121
+ return f(t2, { $l: n3 }, s2);
122
+ }, e2.isDuration = c;
123
+ var r2 = i2.prototype.add, o2 = i2.prototype.subtract;
124
+ i2.prototype.add = function(t2, s2) {
125
+ return c(t2) ? p(this, t2, 1) : r2.bind(this)(t2, s2);
126
+ }, i2.prototype.subtract = function(t2, s2) {
127
+ return c(t2) ? p(this, t2, -1) : o2.bind(this)(t2, s2);
128
+ };
129
+ };
130
+ });
131
+ })(duration$1);
132
+ var durationExports = duration$1.exports;
133
+ const duration = /* @__PURE__ */ getDefaultExportFromCjs(durationExports);
134
+ export {
135
+ duration as default
136
+ };
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const _commonjsHelpers = require("../../../../../../_virtual/_commonjsHelpers.cjs");
4
+ const minMax$1 = require("../../../../../../_virtual/minMax.cjs");
5
+ (function(module2, exports2) {
6
+ !function(e, n) {
7
+ module2.exports = n();
8
+ }(_commonjsHelpers.commonjsGlobal, function() {
9
+ return function(e, n, t) {
10
+ var i = function(e2, n2) {
11
+ if (!n2 || !n2.length || 1 === n2.length && !n2[0] || 1 === n2.length && Array.isArray(n2[0]) && !n2[0].length) return null;
12
+ var t2;
13
+ 1 === n2.length && n2[0].length > 0 && (n2 = n2[0]);
14
+ t2 = (n2 = n2.filter(function(e3) {
15
+ return e3;
16
+ }))[0];
17
+ for (var i2 = 1; i2 < n2.length; i2 += 1) n2[i2].isValid() && !n2[i2][e2](t2) || (t2 = n2[i2]);
18
+ return t2;
19
+ };
20
+ t.max = function() {
21
+ var e2 = [].slice.call(arguments, 0);
22
+ return i("isAfter", e2);
23
+ }, t.min = function() {
24
+ var e2 = [].slice.call(arguments, 0);
25
+ return i("isBefore", e2);
26
+ };
27
+ };
28
+ });
29
+ })(minMax$1.__module);
30
+ var minMaxExports = minMax$1.__module.exports;
31
+ const minMax = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(minMaxExports);
32
+ exports.default = minMax;
@@ -0,0 +1,32 @@
1
+ import { commonjsGlobal, getDefaultExportFromCjs } from "../../../../../../_virtual/_commonjsHelpers.mjs";
2
+ import { __module as minMax$1 } from "../../../../../../_virtual/minMax.mjs";
3
+ (function(module, exports) {
4
+ !function(e, n) {
5
+ module.exports = n();
6
+ }(commonjsGlobal, function() {
7
+ return function(e, n, t) {
8
+ var i = function(e2, n2) {
9
+ if (!n2 || !n2.length || 1 === n2.length && !n2[0] || 1 === n2.length && Array.isArray(n2[0]) && !n2[0].length) return null;
10
+ var t2;
11
+ 1 === n2.length && n2[0].length > 0 && (n2 = n2[0]);
12
+ t2 = (n2 = n2.filter(function(e3) {
13
+ return e3;
14
+ }))[0];
15
+ for (var i2 = 1; i2 < n2.length; i2 += 1) n2[i2].isValid() && !n2[i2][e2](t2) || (t2 = n2[i2]);
16
+ return t2;
17
+ };
18
+ t.max = function() {
19
+ var e2 = [].slice.call(arguments, 0);
20
+ return i("isAfter", e2);
21
+ }, t.min = function() {
22
+ var e2 = [].slice.call(arguments, 0);
23
+ return i("isBefore", e2);
24
+ };
25
+ };
26
+ });
27
+ })(minMax$1);
28
+ var minMaxExports = minMax$1.exports;
29
+ const minMax = /* @__PURE__ */ getDefaultExportFromCjs(minMaxExports);
30
+ export {
31
+ minMax as default
32
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const useClipboard = require("../../hooks/use-clipboard/use-clipboard.cjs");
5
+ const useProps = require("../../node_modules/.pnpm/@mantine_core@7.15.2_patch_hash_jclkxeaefn6uz54h34k3r3yjsq_@mantine_hooks@7.15.2_react@18.3.1_szqfuioo5damkjdixckhzmwycq/node_modules/@mantine/core/esm/core/MantineProvider/use-props/use-props.cjs");
6
+ const defaultProps = {
7
+ timeout: 1e3
8
+ };
9
+ function CopyButton(props) {
10
+ const { children, timeout, value, ...others } = useProps.useProps("CopyButton", defaultProps, props);
11
+ const clipboard = useClipboard.useClipboard({ timeout });
12
+ const copy = () => clipboard.copy(value);
13
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: children({ copy, copied: clipboard.copied, ...others }) });
14
+ }
15
+ exports.CopyButton = CopyButton;
@@ -0,0 +1,2 @@
1
+ import { CopyButtonProps } from '../../node_modules/.pnpm/@mantine_core@7.15.2_patch_hash_jclkxeaefn6uz54h34k3r3yjsq_@mantine_hooks@7.15.2_react@18.3.1_sx7emryda53tomnuogmu74guza/node_modules/@mantine/core/lib';
2
+ export declare function CopyButton(props: CopyButtonProps): import("react/jsx-runtime.js").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { CopyButtonProps } from '../../node_modules/.pnpm/@mantine_core@7.15.2_patch_hash_jclkxeaefn6uz54h34k3r3yjsq_@mantine_hooks@7.15.2_react@18.3.1_sx7emryda53tomnuogmu74guza/node_modules/@mantine/core/lib';
2
+ export declare function CopyButton(props: CopyButtonProps): import("react/jsx-runtime.js").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { jsx, Fragment } from "react/jsx-runtime";
2
+ import { useClipboard } from "../../hooks/use-clipboard/use-clipboard.mjs";
3
+ import { useProps } from "../../node_modules/.pnpm/@mantine_core@7.15.2_patch_hash_jclkxeaefn6uz54h34k3r3yjsq_@mantine_hooks@7.15.2_react@18.3.1_szqfuioo5damkjdixckhzmwycq/node_modules/@mantine/core/esm/core/MantineProvider/use-props/use-props.mjs";
4
+ const defaultProps = {
5
+ timeout: 1e3
6
+ };
7
+ function CopyButton(props) {
8
+ const { children, timeout, value, ...others } = useProps("CopyButton", defaultProps, props);
9
+ const clipboard = useClipboard({ timeout });
10
+ const copy = () => clipboard.copy(value);
11
+ return /* @__PURE__ */ jsx(Fragment, { children: children({ copy, copied: clipboard.copied, ...others }) });
12
+ }
13
+ export {
14
+ CopyButton
15
+ };