@iamfiro/design 0.3.1 → 0.3.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.
Files changed (156) hide show
  1. package/agents/avatar/AGENTS.md +29 -1
  2. package/agents/tooltip/AGENTS.md +1 -1
  3. package/lib/components/Accordion/Accordion2.js +81 -81
  4. package/lib/components/ActionBar/ActionBar2.js +38 -39
  5. package/lib/components/Alert/Alert2.js +79 -79
  6. package/lib/components/AppShell/AppShell2.js +45 -45
  7. package/lib/components/AreaChart/AreaChart.js +45 -46
  8. package/lib/components/BarChart/BarChart2.js +166 -166
  9. package/lib/components/BarList/BarList2.js +83 -83
  10. package/lib/components/Breadcrumb/Breadcrumb2.js +68 -72
  11. package/lib/components/Calendar/Calendar2.js +166 -165
  12. package/lib/components/Calendar/DatePicker2.js +139 -139
  13. package/lib/components/Calendar/date.js +61 -58
  14. package/lib/components/Card/Card2.js +47 -47
  15. package/lib/components/CardFrame/CardFrame2.js +50 -45
  16. package/lib/components/Chart/ChartParts.js +78 -78
  17. package/lib/components/Chart/chart2.js +62 -62
  18. package/lib/components/Chart/useChartInteraction.js +56 -56
  19. package/lib/components/ChatBubble/ChatBubble2.js +116 -116
  20. package/lib/components/ChatBubble/formatChatTime.js +46 -39
  21. package/lib/components/ChatComposer/ChatComposer2.js +43 -43
  22. package/lib/components/CodeBlock/CodeBlock2.js +57 -57
  23. package/lib/components/CodeBlock/highlight.js +74 -74
  24. package/lib/components/ColorPicker/ColorPicker2.js +357 -357
  25. package/lib/components/ColorPicker/color.js +83 -83
  26. package/lib/components/ColorPicker/presets.js +47 -41
  27. package/lib/components/Combobox/Combobox2.js +143 -142
  28. package/lib/components/CommandMenu/CommandMenu.js +100 -100
  29. package/lib/components/Comment/Comment2.js +59 -60
  30. package/lib/components/ContextMenu/ContextMenu2.js +95 -96
  31. package/lib/components/DataGrid/DataGrid2.js +1202 -1203
  32. package/lib/components/DataGrid/GridPopover.js +87 -87
  33. package/lib/components/DataGrid/anchor.js +17 -19
  34. package/lib/components/DataGrid/model.js +261 -261
  35. package/lib/components/DataGrid/panels.js +397 -395
  36. package/lib/components/DataGrid/typeMeta.js +51 -51
  37. package/lib/components/DataGrid/types.js +38 -36
  38. package/lib/components/DescriptionList/DescriptionList2.js +74 -74
  39. package/lib/components/Dialog/AlertDialog.js +81 -82
  40. package/lib/components/Dialog/Dialog2.js +63 -63
  41. package/lib/components/Dialog/modal.js +70 -69
  42. package/lib/components/Drawer/Drawer2.js +122 -123
  43. package/lib/components/DropdownMenu/DropdownMenu2.js +257 -258
  44. package/lib/components/DropdownMenu/menuCore.js +43 -44
  45. package/lib/components/Dropzone/Dropzone2.js +76 -77
  46. package/lib/components/EmptyState/EmptyState2.js +59 -56
  47. package/lib/components/FileChip/FileChip2.js +73 -49
  48. package/lib/components/FileUpload/FileUpload.js +149 -150
  49. package/lib/components/FilterChips/FilterChips2.js +59 -59
  50. package/lib/components/FunnelChart/FunnelChart2.js +123 -123
  51. package/lib/components/FunnelChart/funnel.js +44 -47
  52. package/lib/components/Highlight/Highlight2.js +48 -48
  53. package/lib/components/HoverCard/HoverCard.js +89 -64
  54. package/lib/components/InlineDiff/InlineDiff2.js +123 -123
  55. package/lib/components/InlineDiff/diff.js +76 -76
  56. package/lib/components/InlineDiff/useDiffReview.js +69 -68
  57. package/lib/components/Kanban/Kanban2.js +366 -366
  58. package/lib/components/Kanban/KanbanCard.js +67 -67
  59. package/lib/components/Kanban/move.js +41 -45
  60. package/lib/components/LineChart/LineChart2.js +196 -196
  61. package/lib/components/List/List2.js +60 -59
  62. package/lib/components/Listbox/Listbox2.js +94 -94
  63. package/lib/components/Marker/Marker2.js +59 -52
  64. package/lib/components/Menubar/Menubar2.js +110 -112
  65. package/lib/components/MultiSelect/MultiSelect2.js +112 -112
  66. package/lib/components/NavigationMenu/NavigationMenu2.js +239 -240
  67. package/lib/components/NoticeStack/NoticeStack2.js +99 -99
  68. package/lib/components/NumberStepper/NumberStepper2.js +66 -65
  69. package/lib/components/OtpInput/OtpInput2.js +87 -88
  70. package/lib/components/Pagination/Pagination2.js +81 -81
  71. package/lib/components/Pagination/paginationRange.js +25 -24
  72. package/lib/components/PhoneInput/PhoneInput.js +77 -77
  73. package/lib/components/PieChart/PieChart2.js +101 -101
  74. package/lib/components/PieChart/arc.js +73 -76
  75. package/lib/components/PieChart/useArcTween.js +61 -57
  76. package/lib/components/Popover/Popover2.js +65 -64
  77. package/lib/components/ProgressTracker/ProgressTracker2.js +119 -119
  78. package/lib/components/Rating/Rating2.js +85 -85
  79. package/lib/components/Resizable/Resizable2.js +139 -139
  80. package/lib/components/Resizable/layout.js +68 -68
  81. package/lib/components/ScaledPreview/ScaledPreview2.js +55 -55
  82. package/lib/components/ScatterChart/ScatterChart2.js +249 -249
  83. package/lib/components/ScatterChart/scatter.js +55 -55
  84. package/lib/components/ScrollArea/ScrollArea2.js +132 -131
  85. package/lib/components/Select/Select2.js +81 -81
  86. package/lib/components/Sidebar/Sidebar2.js +61 -61
  87. package/lib/components/Skeleton/Skeleton2.js +46 -46
  88. package/lib/components/Slider/Slider2.js +74 -73
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +70 -70
  90. package/lib/components/SparkChart/SparkChart2.js +138 -137
  91. package/lib/components/SparkChart/spark.js +40 -61
  92. package/lib/components/Sparkbar/Sparkbar2.js +60 -59
  93. package/lib/components/SplitView/SplitView2.js +42 -42
  94. package/lib/components/Stat/Stat2.js +88 -88
  95. package/lib/components/StepList/StepList2.js +71 -71
  96. package/lib/components/Table/Table2.js +70 -70
  97. package/lib/components/Tabs/Tabs2.js +89 -89
  98. package/lib/components/TagInput/TagInput2.js +154 -154
  99. package/lib/components/TimePicker/TimePicker2.js +225 -226
  100. package/lib/components/TimePicker/time.js +50 -50
  101. package/lib/components/Timeline/Timeline2.js +201 -201
  102. package/lib/components/Timeline/scale.js +55 -53
  103. package/lib/components/Toast/Toaster.js +90 -92
  104. package/lib/components/Toast/store.js +91 -87
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +84 -84
  106. package/lib/components/Toolbar/Toolbar2.js +166 -168
  107. package/lib/components/Tracker/Tracker2.js +89 -89
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +126 -125
  109. package/lib/components/TreeView/TreeView2.js +154 -156
  110. package/lib/hooks/timing.js +35 -36
  111. package/lib/hooks/useControllableState.js +40 -39
  112. package/lib/hooks/useCountdown.js +57 -55
  113. package/lib/hooks/useDigitInput.js +59 -83
  114. package/lib/hooks/useDismiss.js +49 -46
  115. package/lib/hooks/useElapsed.js +53 -55
  116. package/lib/hooks/useFloating.js +44 -44
  117. package/lib/hooks/useFocusTrap.js +46 -70
  118. package/lib/hooks/usePresence.js +32 -29
  119. package/lib/hooks/usePressToOpen.js +50 -50
  120. package/lib/hooks/useScrollLock.js +51 -51
  121. package/lib/hooks/useSelection.js +55 -46
  122. package/lib/index.js +34 -35
  123. package/lib/primitives/AspectRatio2.js +59 -55
  124. package/lib/primitives/BrandIcon.js +160 -160
  125. package/lib/primitives/ColorDot2.js +38 -42
  126. package/lib/primitives/CopyButton2.js +56 -56
  127. package/lib/primitives/CountBadge2.js +66 -64
  128. package/lib/primitives/Countdown2.js +31 -32
  129. package/lib/primitives/Delta2.js +46 -71
  130. package/lib/primitives/Elapsed.js +44 -44
  131. package/lib/primitives/FileIcon2.js +82 -82
  132. package/lib/primitives/Flag2.js +134 -134
  133. package/lib/primitives/IconStack2.js +31 -53
  134. package/lib/primitives/IconTile2.js +46 -48
  135. package/lib/primitives/Kbd2.js +57 -57
  136. package/lib/primitives/Layout2.js +78 -78
  137. package/lib/primitives/Link2.js +29 -30
  138. package/lib/primitives/MaskedText2.js +47 -73
  139. package/lib/primitives/Progress2.js +77 -78
  140. package/lib/primitives/RelativeTime.js +49 -46
  141. package/lib/primitives/SearchInput2.js +58 -59
  142. package/lib/primitives/SelectorButton2.js +76 -74
  143. package/lib/primitives/Spinner2.js +62 -58
  144. package/lib/primitives/StatusIcon2.js +56 -56
  145. package/lib/primitives/Swatch2.js +69 -65
  146. package/lib/primitives/Tooltip2.js +92 -92
  147. package/lib/primitives/Typography2.js +68 -68
  148. package/lib/primitives/formatCountdown.js +39 -43
  149. package/lib/primitives/formatElapsed.js +43 -39
  150. package/lib/primitives/formatRelativeTime.js +50 -50
  151. package/lib/primitives/hotkey.js +76 -76
  152. package/lib/primitives/index.js +201 -181
  153. package/lib/primitives/maskValue.js +35 -39
  154. package/lib/style.css +1 -1
  155. package/lib/types/primitives/index.d.ts +6 -2
  156. package/package.json +1 -1
@@ -1,71 +1,73 @@
1
1
  "use client";
2
- (function(e, t) {
3
- let r = n, i = e();
2
+ (function(e, n) {
3
+ let r = t, i = e();
4
4
  for (;;) try {
5
- if (parseInt(r(186)) / 1 + parseInt(r(197)) / 2 + -parseInt(r(195)) / 3 + parseInt(r(199)) / 4 * (parseInt(r(189)) / 5) + parseInt(r(188)) / 6 + -parseInt(r(194)) / 7 * (parseInt(r(190)) / 8) + -parseInt(r(196)) / 9 == t) break;
5
+ if (-parseInt(r(142)) / 1 * (-parseInt(r(128)) / 2) + -parseInt(r(132)) / 3 * (parseInt(r(140)) / 4) + -parseInt(r(131)) / 5 + parseInt(r(133)) / 6 + -parseInt(r(141)) / 7 + parseInt(r(135)) / 8 + -parseInt(r(144)) / 9 * (parseInt(r(129)) / 10) == n) break;
6
6
  i.push(i.shift());
7
7
  } catch {
8
8
  i.push(i.shift());
9
9
  }
10
- })(e, 248883);
11
- function e() {
12
- let t = [
13
- "ndG3ntGWs3jfwurr",
14
- "y3vYCMvUDa",
15
- "nfbqzuLUAq",
16
- "y2vPBa",
17
- "mZGWotG3u3bfEg5Q",
18
- "BM93",
19
- "mJKYmdKYnKT2Bw50rW",
20
- "mJmYoty0nw91ALbuqG",
21
- "nti4oeTQAuT2EG",
22
- "y2XLyxjjBNrLCNzHBa",
23
- "C2v0sw50zxj2ywW",
24
- "y291BNrKB3DUvgLJAW",
25
- "mZC4n01NCefxAq",
26
- "ndGXnZa0wM13BePU",
27
- "nZi5ndi3nwvyC0fqsW"
28
- ];
29
- return e = function() {
30
- return t;
31
- }, e();
32
- }
33
- import { TIMING as t } from "./timing.js";
34
- function n(t, r) {
35
- t -= 186;
36
- let i = e(), a = i[t];
37
- n.noIFix === void 0 && (n.PWgyCF = function(e) {
10
+ })(o, 689319);
11
+ import { TIMING as e } from "./timing.js";
12
+ function t(e, n) {
13
+ e -= 128;
14
+ let r = o(), i = r[e];
15
+ t.lTsHDH === void 0 && (t.eTtFsa = function(e) {
38
16
  let t = "", n = "";
39
17
  for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
40
18
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
41
19
  return decodeURIComponent(n);
42
- }, n.YXcAdg = {}, n.noIFix = !0);
43
- let o = i[0];
44
- n.VoNECf !== o && (n.YXcAdg = {}, n.VoNECf = o);
45
- let s = n.YXcAdg[t];
46
- return s === void 0 ? (a = n.PWgyCF(a), n.YXcAdg[t] = a) : a = s, a;
20
+ }, t.rEyXRE = {}, t.lTsHDH = !0);
21
+ let a = r[0];
22
+ t.LbJbQF !== a && (t.rEyXRE = {}, t.LbJbQF = a);
23
+ let s = t.rEyXRE[e];
24
+ return s === void 0 ? (i = t.eTtFsa(i), t.rEyXRE[e] = i) : i = s, i;
25
+ }
26
+ import { useCallback as n, useEffect as r, useRef as i, useState as a } from "react";
27
+ function o() {
28
+ let e = [
29
+ "BM93",
30
+ "nJn4Au5HA04",
31
+ "mJi2ndyXofnQrxDyDW",
32
+ "mJKWmteWv1Pnwevi",
33
+ "y3vYCMvUDa",
34
+ "ndq0mJiYnvvuEKjKCq",
35
+ "mZbAA3LgDLG",
36
+ "mtGWmJeWmgniwxPMDG",
37
+ "C2v0sw50zxj2ywW",
38
+ "nJq1mJaXnNv0DunVEq",
39
+ "y2XLyxjjBNrLCNzHBa",
40
+ "y2vPBa",
41
+ "y291BNrKB3DUvgLJAW",
42
+ "Bwf4",
43
+ "mta5mti0ue96sujy",
44
+ "mti5odu3mhvREuj6vW",
45
+ "muD6tKTqBq"
46
+ ];
47
+ return o = function() {
48
+ return e;
49
+ }, o();
47
50
  }
48
- import { useCallback as r, useEffect as i, useRef as a, useState as o } from "react";
49
- function s(e, { running: s = !0, onComplete: c } = {}) {
50
- let [l, u] = o(e), [d, f] = o(0), [p, m] = o(e);
51
- e !== p && (m(e), u(e), f((e) => e + 1));
52
- let h = a(l), g = a(c);
53
- i(() => {
54
- let e = n;
55
- h[e(198)] = l, g[e(198)] = c;
56
- }), i(() => {
57
- let e = n, r = h[e(198)];
51
+ function s(o, { running: s = !0, onComplete: c } = {}) {
52
+ let [l, u] = a(o), [d, f] = a(0), [p, m] = a(o);
53
+ o !== p && (m(o), u(o), f((e) => e + 1));
54
+ let h = i(l), g = i(c);
55
+ r(() => {
56
+ let e = t;
57
+ h.current = l, g[e(130)] = c;
58
+ }), r(() => {
59
+ let n = t, r = h[n(130)];
58
60
  if (!s || r <= 0) return;
59
- let i = performance[e(187)]() + r * 1e3, a = window[e(192)](() => {
60
- let t = e, n = Math.max(0, Math[t(200)]((i - performance[t(187)]()) / 1e3));
61
- h.current = n, u(n), n <= 0 && (window[t(191)](a), g[t(198)]?.());
62
- }, t[e(193)]);
63
- return () => window[e(191)](a);
61
+ let i = performance.now() + r * 1e3, a = window[n(134)](() => {
62
+ let e = n, t = Math[e(139)](0, Math[e(137)]((i - performance[e(143)]()) / 1e3));
63
+ h[e(130)] = t, u(t), t <= 0 && (window[e(136)](a), g[e(130)]?.());
64
+ }, e[n(138)]);
65
+ return () => window.clearInterval(a);
64
66
  }, [s, d]);
65
- let _ = r((t) => {
66
- let r = n, i = t ?? e;
67
- h[r(198)] = i, u(i), f((e) => e + 1);
68
- }, [e]);
67
+ let _ = n((e) => {
68
+ let t = e ?? o;
69
+ h.current = t, u(t), f((e) => e + 1);
70
+ }, [o]);
69
71
  return {
70
72
  remaining: l,
71
73
  done: l <= 0,
@@ -1,102 +1,78 @@
1
1
  "use client";
2
- function e() {
3
- let t = [
4
- "mZe3mtC4D1r6q3v5",
5
- "mJC0mdaWnxfRExvpta",
6
- "C2XPy2u",
7
- "mtu3odq1mvfft3PfEq",
8
- "mZm4nJGWmhjnugLmza",
9
- "y3vYCMvUDa",
10
- "mJy0mtG1ng91z2j2zq",
11
- "A2v5",
12
- "ywn0AxzLrwXLBwvUDa",
13
- "y3vYCMvUDfrHCMDLDa",
14
- "C2v0u2vSzwn0Aw9UuMfUz2u",
15
- "oejqufDisW",
16
- "DMfSDwu",
17
- "mtqZodC0AKLSt2vp",
18
- "C2vSzwn0Aw9Uu3rHCNq",
19
- "rgvSzxrL",
20
- "BwLU",
21
- "DgfYz2v0",
22
- "DgvZDa",
23
- "CMvWBgfJzq",
24
- "mZm1mdi2nwXMrwPwzW",
25
- "BgvUz3rO",
26
- "mKTLt1vHBq"
27
- ];
28
- return e = function() {
29
- return t;
30
- }, e();
31
- }
32
- const t = n;
33
- function n(t, r) {
34
- t -= 367;
35
- let i = e(), a = i[t];
36
- n.RSNyYP === void 0 && (n.SvsyjT = function(e) {
2
+ const e = i;
3
+ (function(e, t) {
4
+ let n = i, r = e();
5
+ for (;;) try {
6
+ if (-parseInt(n(471)) / 1 + -parseInt(n(485)) / 2 * (parseInt(n(473)) / 3) + -parseInt(n(483)) / 4 * (-parseInt(n(486)) / 5) + -parseInt(n(475)) / 6 + parseInt(n(474)) / 7 * (parseInt(n(487)) / 8) + parseInt(n(492)) / 9 + parseInt(n(477)) / 10 == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(a, 423095);
12
+ import { useLayoutEffect as t, useRef as n } from "react";
13
+ var r = (t) => t[e(488)](/\D/g, "");
14
+ function i(e, t) {
15
+ e -= 471;
16
+ let n = a(), r = n[e];
17
+ i.vZVzEU === void 0 && (i.qtueSt = function(e) {
37
18
  let t = "", n = "";
38
19
  for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
39
20
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
40
21
  return decodeURIComponent(n);
41
- }, n.EYCAdF = {}, n.RSNyYP = !0);
42
- let o = i[0];
43
- n.YFcTtP !== o && (n.EYCAdF = {}, n.YFcTtP = o);
44
- let s = n.EYCAdF[t];
45
- return s === void 0 ? (a = n.SvsyjT(a), n.EYCAdF[t] = a) : a = s, a;
22
+ }, i.qAXoID = {}, i.vZVzEU = !0);
23
+ let o = n[0];
24
+ i.iWjcwK !== o && (i.qAXoID = {}, i.iWjcwK = o);
25
+ let s = i.qAXoID[e];
26
+ return s === void 0 ? (r = i.qtueSt(r), i.qAXoID[e] = r) : r = s, r;
46
27
  }
47
- (function(e, t) {
48
- let r = n, i = e();
49
- for (;;) try {
50
- if (-parseInt(r(377)) / 1 + -parseInt(r(376)) / 2 * (-parseInt(r(378)) / 3) + parseInt(r(381)) / 4 + -parseInt(r(374)) / 5 + -parseInt(r(383)) / 6 + -parseInt(r(380)) / 7 * (-parseInt(r(388)) / 8) + -parseInt(r(367)) / 9 == t) break;
51
- i.push(i.shift());
52
- } catch {
53
- i.push(i.shift());
54
- }
55
- })(e, 542002);
56
- import { useLayoutEffect as r, useRef as i } from "react";
57
- var a = (e) => e[t(373)](/\D/g, "");
58
- function o(e, n) {
59
- let r = t;
28
+ function a() {
29
+ let e = /* @__PURE__ */ "BwLU.DgvZDa.C2v0u2vSzwn0Aw9UuMfUz2u.ogTStwPlCW.C2XPy2u.ngDiu3jWsW.mZK1zMX1DxnZ.mZq0ndK2tNP0zvPM.CMvWBgfJzq.qMfJA3nWywnL.y3vYCMvUDfrHCMDLDa.DgfYz2v0.ntmXntGWnvfQswHiCW.ywn0AxzLrwXLBwvUDa.C2vSzwn0Aw9Uu3rHCNq.DMfSDwu.y3vYCMvUDa.ndK2odK1AwveEKjg.BNvTzxjPyW.odaYmdi2tg9rzerT.n3DzqwvsyW.mZiXntm4ogrfwuTksW.rgvSzxrL.mtm1nJCWnZbsCxH1s0i.A2v5.BgvUz3rO".split(".");
30
+ return a = function() {
31
+ return e;
32
+ }, a();
33
+ }
34
+ function o(t, n) {
35
+ let r = e;
60
36
  if (n === 0) return 0;
61
37
  let i = 0;
62
- for (let t = 0; t < e.length; t++) if (/\d/[r(372)](e[t]) && ++i === n) return t + 1;
63
- return e[r(375)];
38
+ for (let e = 0; e < t[r(479)]; e++) if (/\d/.test(t[e]) && ++i === n) return e + 1;
39
+ return t[r(479)];
64
40
  }
65
- function s({ digits: e, onDigitsChange: t, format: s = (e) => e, maxDigits: c }) {
66
- let l = i(null), u = i(null), d = s(e);
67
- return r(() => {
68
- let e = n, t = l[e(382)], r = u.current;
69
- if (!t || r === null || document[e(385)] !== t) return;
70
- u[e(382)] = null;
71
- let i = o(t.value, r);
72
- t[e(387)](i, i);
41
+ function s({ digits: a, onDigitsChange: s, format: c = (e) => e, maxDigits: l }) {
42
+ let u = e, d = n(null), f = n(null), p = c(a);
43
+ return t(() => {
44
+ let e = i, t = d[e(496)], n = f[e(496)];
45
+ if (!t || n === null || document[e(493)] !== t) return;
46
+ f[e(496)] = null;
47
+ let r = o(t[e(495)], n);
48
+ t[e(482)](r, r);
73
49
  }), {
74
- ref: l,
75
- value: d,
76
- onChange: (r) => {
77
- let i = n, s = r[i(371)].value, l = a(s[i(379)](0, r[i(371)][i(368)] ?? s.length))[i(375)], f = a(s)[i(379)](0, c);
78
- if (u[i(382)] = Math[i(370)](l, f[i(375)]), f !== e) t(f);
79
- else if (s !== d) {
80
- r[i(371)][i(389)] = d;
81
- let e = o(d, u[i(382)]);
82
- u[i(382)] = null, r.target[i(387)](e, e);
50
+ ref: d,
51
+ value: p,
52
+ onChange: (e) => {
53
+ let t = i, n = e[t(491)][t(495)], c = r(n[t(484)](0, e[t(491)][t(494)] ?? n[t(479)]))[t(479)], u = r(n)[t(484)](0, l);
54
+ if (f[t(496)] = Math[t(480)](c, u[t(479)]), u !== a) s(u);
55
+ else if (n !== p) {
56
+ e[t(491)][t(495)] = p;
57
+ let n = o(p, f[t(496)]);
58
+ f[t(496)] = null, e[t(491)][t(482)](n, n);
83
59
  }
84
60
  },
85
61
  onKeyDown: (e) => {
86
- let t = n, r = e[t(386)], { selectionStart: i, selectionEnd: a } = r;
87
- if (i !== null && i === a) {
88
- if (e[t(384)] === "Backspace") {
89
- let e = i;
90
- for (; e > 0 && !/\d/.test(r.value[e - 1]);) e--;
91
- e !== i && r[t(387)](e, e);
92
- } else if (e[t(384)] === t(369)) {
93
- let e = i;
94
- for (; e < r[t(389)][t(375)] && !/\d/[t(372)](r[t(389)][e]);) e++;
95
- e !== i && r[t(387)](e, e);
62
+ let t = i, n = e[t(490)], { selectionStart: r, selectionEnd: a } = n;
63
+ if (r !== null && r === a) {
64
+ if (e[t(478)] === t(489)) {
65
+ let e = r;
66
+ for (; e > 0 && !/\d/[t(481)](n[t(495)][e - 1]);) e--;
67
+ e !== r && n[t(482)](e, e);
68
+ } else if (e.key === t(476)) {
69
+ let e = r;
70
+ for (; e < n[t(495)][t(479)] && !/\d/[t(481)](n.value[e]);) e++;
71
+ e !== r && n.setSelectionRange(e, e);
96
72
  }
97
73
  }
98
74
  },
99
- inputMode: "numeric",
75
+ inputMode: u(472),
100
76
  autoComplete: "off"
101
77
  };
102
78
  }
@@ -1,69 +1,72 @@
1
1
  "use client";
2
- (function(t, n) {
3
- let r = e, i = t();
2
+ (function(e, t) {
3
+ let n = r, i = e();
4
4
  for (;;) try {
5
- if (parseInt(r(301)) / 1 * (parseInt(r(298)) / 2) + parseInt(r(303)) / 3 + parseInt(r(292)) / 4 + parseInt(r(294)) / 5 * (-parseInt(r(297)) / 6) + parseInt(r(296)) / 7 + -parseInt(r(290)) / 8 * (-parseInt(r(304)) / 9) + parseInt(r(299)) / 10 * (-parseInt(r(295)) / 11) == n) break;
5
+ if (parseInt(n(499)) / 1 * (parseInt(n(501)) / 2) + -parseInt(n(494)) / 3 * (-parseInt(n(505)) / 4) + -parseInt(n(500)) / 5 * (parseInt(n(496)) / 6) + parseInt(n(495)) / 7 * (-parseInt(n(492)) / 8) + -parseInt(n(493)) / 9 * (-parseInt(n(504)) / 10) + parseInt(n(506)) / 11 * (-parseInt(n(498)) / 12) + parseInt(n(503)) / 13 * (parseInt(n(497)) / 14) == t) break;
6
6
  i.push(i.shift());
7
7
  } catch {
8
8
  i.push(i.shift());
9
9
  }
10
- })(i, 186343);
11
- function e(t, n) {
12
- t -= 290;
13
- let r = i(), a = r[t];
14
- e.nvbkDu === void 0 && (e.VkdtVV = function(e) {
15
- let t = "", n = "";
16
- for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
17
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
18
- return decodeURIComponent(n);
19
- }, e.HMGhXV = {}, e.nvbkDu = !0);
20
- let o = r[0];
21
- e.oasCob !== o && (e.HMGhXV = {}, e.oasCob = o);
22
- let s = e.HMGhXV[t];
23
- return s === void 0 ? (a = e.VkdtVV(a), e.HMGhXV[t] = a) : a = s, a;
24
- }
25
- import { useEffect as t, useRef as n } from "react";
26
- function r(r, i, a) {
27
- let o = n({
10
+ })(i, 770534);
11
+ import { useEffect as e, useRef as t } from "react";
12
+ function n(n, i, a) {
13
+ let o = t({
28
14
  refs: i,
29
15
  onDismiss: a
30
16
  });
31
- t(() => {
32
- let t = e;
33
- o[t(300)] = {
17
+ e(() => {
18
+ let e = r;
19
+ o[e(502)] = {
34
20
  refs: i,
35
21
  onDismiss: a
36
22
  };
37
- }), t(() => {
38
- let t = e;
39
- if (!r) return;
40
- let n = (t) => {
41
- let n = e, { refs: r, onDismiss: i } = o[n(300)];
42
- r[n(291)]((e) => e[n(300)]?.[n(302)](t.target)) || i();
23
+ }), e(() => {
24
+ let e = r;
25
+ if (!n) return;
26
+ let t = (e) => {
27
+ let t = r, { refs: n, onDismiss: i } = o[t(502)];
28
+ n.some((n) => n[t(502)]?.[t(491)](e[t(490)])) || i();
43
29
  };
44
- return document.addEventListener(t(293), n), () => document.removeEventListener(t(293), n);
45
- }, [r]);
30
+ return document.addEventListener(e(489), t), () => document.removeEventListener(e(489), t);
31
+ }, [n]);
32
+ }
33
+ function r(e, t) {
34
+ e -= 489;
35
+ let n = i(), a = n[e];
36
+ r.Comtka === void 0 && (r.iQyETz = function(e) {
37
+ let t = "", n = "";
38
+ for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
39
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
40
+ return decodeURIComponent(n);
41
+ }, r.Ywigfg = {}, r.Comtka = !0);
42
+ let o = n[0];
43
+ r.yWmLjt !== o && (r.Ywigfg = {}, r.yWmLjt = o);
44
+ let s = r.Ywigfg[e];
45
+ return s === void 0 ? (a = r.iQyETz(a), r.Ywigfg[e] = a) : a = s, a;
46
46
  }
47
+ export { n as useDismiss };
47
48
  function i() {
48
49
  let e = [
49
- "nwDHA2z5ra",
50
- "mtfqyuDMzNq",
51
- "oty3odiWsfHmrfDO",
52
- "mZeXodC0BKr5Bg55",
53
- "nejtz2nbra",
54
- "nJm4otuWme93tLP5AG",
50
+ "mtH5wMzbq3i",
51
+ "ntm4ndrHzfn5uhq",
52
+ "mtC1mtK2mJHkuNLHwhe",
53
+ "mJCWotfeAenOBvu",
54
+ "mZe0nJm1uuHXAu1J",
55
+ "nJjvsxr1wgW",
55
56
  "y3vYCMvUDa",
56
- "oda2mtzlC0zSBLi",
57
+ "mZa5neHbse9ctW",
58
+ "nJu1mZbQrvniDeC",
59
+ "mty2mgTxvMj0Cq",
60
+ "mtfXBLLItMm",
61
+ "Cg9PBNrLCMrVD24",
62
+ "DgfYz2v0",
57
63
  "y29UDgfPBNm",
58
- "ntyYmdHUEwnVu3G",
59
- "mJa4odLhEhfRrLa",
60
- "mta3mKTgA3r6rW",
61
- "C29Tzq",
62
- "otKYmtiWvMLvr1zR",
63
- "Cg9PBNrLCMrVD24"
64
+ "mte2otKYyuDxqMzo",
65
+ "mJyXqvnovgrx",
66
+ "otaZme1kBg9MAa",
67
+ "mZCXsNHwqMLd"
64
68
  ];
65
69
  return i = function() {
66
70
  return e;
67
71
  }, i();
68
72
  }
69
- export { r as useDismiss };
@@ -1,85 +1,83 @@
1
1
  "use client";
2
- const e = t;
3
- (function(e, n) {
4
- let r = t, i = e();
2
+ function e() {
3
+ let t = [
4
+ "nZG1nZu2n0TrBMzTzq",
5
+ "z2v0vgLTzq",
6
+ "ndKZndy5mu14BhPXDG",
7
+ "ndCYnZu5svfhAgH4",
8
+ "mJG2odi2r0LIEMfl",
9
+ "y3vYCMvUDa",
10
+ "mtm1otu0odHuuLHQzKy",
11
+ "mJbcB2X5q1e",
12
+ "ndC0nti5otLdB3HRA1u",
13
+ "mtbWwgTLwNq",
14
+ "mtfHsKT2D3C",
15
+ "mZbTs3nOAwm",
16
+ "zMXVB3i",
17
+ "BNvTyMvY",
18
+ "otK1nty1D2XhB0z5",
19
+ "BM93",
20
+ "y2XLyxjuAw1LB3v0",
21
+ "Bwf4"
22
+ ];
23
+ return e = function() {
24
+ return t;
25
+ }, e();
26
+ }
27
+ const t = n;
28
+ (function(e, t) {
29
+ let r = n, i = e();
5
30
  for (;;) try {
6
- if (-parseInt(r(388)) / 1 * (-parseInt(r(398)) / 2) + -parseInt(r(395)) / 3 * (-parseInt(r(390)) / 4) + parseInt(r(387)) / 5 * (-parseInt(r(393)) / 6) + -parseInt(r(391)) / 7 * (parseInt(r(402)) / 8) + parseInt(r(394)) / 9 * (parseInt(r(403)) / 10) + parseInt(r(399)) / 11 * (parseInt(r(401)) / 12) + -parseInt(r(405)) / 13 == n) break;
31
+ if (-parseInt(r(227)) / 1 * (parseInt(r(221)) / 2) + -parseInt(r(219)) / 3 + -parseInt(r(224)) / 4 * (-parseInt(r(213)) / 5) + parseInt(r(210)) / 6 * (-parseInt(r(220)) / 7) + -parseInt(r(223)) / 8 + parseInt(r(217)) / 9 + parseInt(r(226)) / 10 * (parseInt(r(225)) / 11) == t) break;
7
32
  i.push(i.shift());
8
33
  } catch {
9
34
  i.push(i.shift());
10
35
  }
11
- })(l, 361745);
12
- function t(e, n) {
13
- e -= 387;
14
- let r = l(), i = r[e];
15
- t.URZcgN === void 0 && (t.qrjZlj = function(e) {
36
+ })(e, 922976);
37
+ function n(t, r) {
38
+ t -= 210;
39
+ let i = e(), a = i[t];
40
+ n.saMjTe === void 0 && (n.dRonSi = function(e) {
16
41
  let t = "", n = "";
17
42
  for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
18
43
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
19
44
  return decodeURIComponent(n);
20
- }, t.WbWnKa = {}, t.URZcgN = !0);
21
- let a = r[0];
22
- t.pMgywP !== a && (t.WbWnKa = {}, t.pMgywP = a);
23
- let o = t.WbWnKa[e];
24
- return o === void 0 ? (i = t.qrjZlj(i), t.WbWnKa[e] = i) : i = o, i;
45
+ }, n.zLtxFj = {}, n.saMjTe = !0);
46
+ let o = i[0];
47
+ n.CJnImv !== o && (n.zLtxFj = {}, n.CJnImv = o);
48
+ let s = n.zLtxFj[t];
49
+ return s === void 0 ? (a = n.dRonSi(a), n.zLtxFj[t] = a) : a = s, a;
25
50
  }
26
- import { useCallback as n, useEffect as r, useLayoutEffect as i, useRef as a, useState as o } from "react";
27
- var s = (t) => t instanceof Date ? t.getTime() : typeof t == "number" ? t : new Date(t)[e(396)]();
28
- function c(t, { running: c = !0, endedAt: l, initial: u = 0 } = {}) {
29
- let d = e, f = t === void 0 ? void 0 : s(t), p = l === void 0 ? void 0 : s(l), m = f !== void 0 && p !== void 0, h = c && !m, [g, _] = o(Math[d(404)](0, Math[d(400)](u))), [v, y] = o(0), b = a(Math.max(0, u) * 1e3), x = a(h), S = a(!1);
30
- r(() => {
51
+ import { useCallback as r, useEffect as i, useLayoutEffect as a, useRef as o, useState as s } from "react";
52
+ var c = (e) => e instanceof Date ? e[t(218)]() : typeof e === t(212) ? e : new Date(e)[t(218)]();
53
+ function l(e, { running: n = !0, endedAt: l, initial: u = 0 } = {}) {
54
+ let d = t, f = e === void 0 ? void 0 : c(e), p = l === void 0 ? void 0 : c(l), m = f !== void 0 && p !== void 0, h = n && !m, [g, _] = s(Math[d(216)](0, Math[d(211)](u))), [v, y] = s(0), b = o(Math[d(216)](0, u) * 1e3), x = o(h), S = o(!1);
55
+ i(() => {
31
56
  x.current = h;
32
- }), i(() => {
57
+ }), a(() => {
33
58
  let e = d;
34
59
  if (!h) return;
35
- let t = performance[e(406)](), n = 0, r = () => f === void 0 ? b[e(392)] + performance[e(406)]() - t : Date[e(406)]() - f, i = () => {
36
- let t = e, a = Math[t(404)](0, r());
37
- _(Math[t(400)](a / 1e3)), n = window[t(397)](i, 1e3 - a % 1e3 + 8);
60
+ let t = performance[e(214)](), n = 0, r = () => f === void 0 ? b[e(222)] + performance[e(214)]() - t : Date[e(214)]() - f, i = () => {
61
+ let t = e, a = Math.max(0, r());
62
+ _(Math[t(211)](a / 1e3)), n = window.setTimeout(i, 1e3 - a % 1e3 + 8);
38
63
  };
39
64
  return i(), () => {
40
65
  let r = e;
41
- window[r(389)](n), f === void 0 && (S.current ? (S[r(392)] = !1, b[r(392)] = 0) : b.current += performance.now() - t);
66
+ window[r(215)](n), f === void 0 && (S.current ? (S[r(222)] = !1, b[r(222)] = 0) : b[r(222)] += performance[r(214)]() - t);
42
67
  };
43
68
  }, [
44
69
  h,
45
70
  f,
46
71
  v
47
72
  ]);
48
- let C = n(() => {
73
+ let C = r(() => {
49
74
  let e = d;
50
- x.current ? S[e(392)] = !0 : b[e(392)] = 0, _(0), y((e) => e + 1);
75
+ x[e(222)] ? S.current = !0 : b[e(222)] = 0, _(0), y((e) => e + 1);
51
76
  }, []);
52
77
  return {
53
- elapsed: m ? Math.max(0, Math[d(400)]((p - f) / 1e3)) : g,
78
+ elapsed: m ? Math[d(216)](0, Math.floor((p - f) / 1e3)) : g,
54
79
  running: h,
55
80
  reset: C
56
81
  };
57
82
  }
58
- function l() {
59
- let e = [
60
- "Bwf4",
61
- "nJuYnde5m1zvC1bSsa",
62
- "BM93",
63
- "mJm3mZqYnvrJD3fWAq",
64
- "n1rdCfLJEG",
65
- "y2XLyxjuAw1LB3v0",
66
- "mtG1ntz4ChrADeu",
67
- "ntzKDxHnqvu",
68
- "y3vYCMvUDa",
69
- "nNzztuXOAq",
70
- "mZm5mZq1ANzsvhPd",
71
- "mJDmvwLLsLm",
72
- "z2v0vgLTzq",
73
- "C2v0vgLTzw91Da",
74
- "otq1mZHYzM1ozMq",
75
- "otLnB09RCMq",
76
- "zMXVB3i",
77
- "odm5oda4A2zHEMfw",
78
- "mZu0neTIzxjcvW",
79
- "otbctuncz1G"
80
- ];
81
- return l = function() {
82
- return e;
83
- }, l();
84
- }
85
- export { c as useElapsed };
83
+ export { l as useElapsed };