@iamfiro/design 0.1.0 → 0.3.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 (160) hide show
  1. package/AGENTS.md +1 -0
  2. package/agents/INDEX.md +1 -0
  3. package/agents/brand-icon/AGENTS.md +2 -2
  4. package/agents/social-login-button/AGENTS.md +156 -0
  5. package/lib/components/Accordion/Accordion2.js +135 -0
  6. package/lib/components/ActionBar/ActionBar2.js +66 -0
  7. package/lib/components/Alert/Alert2.js +131 -0
  8. package/lib/components/AppShell/AppShell2.js +94 -0
  9. package/lib/components/AreaChart/AreaChart.js +59 -0
  10. package/lib/components/BarChart/BarChart2.js +243 -0
  11. package/lib/components/BarList/BarList2.js +172 -0
  12. package/lib/components/Breadcrumb/Breadcrumb2.js +90 -0
  13. package/lib/components/Calendar/Calendar2.js +309 -0
  14. package/lib/components/Calendar/DatePicker2.js +228 -0
  15. package/lib/components/Calendar/date.js +118 -0
  16. package/lib/components/Card/Card2.js +103 -0
  17. package/lib/components/CardFrame/CardFrame2.js +67 -0
  18. package/lib/components/Chart/ChartParts.js +150 -0
  19. package/lib/components/Chart/chart2.js +96 -0
  20. package/lib/components/Chart/useChartInteraction.js +94 -0
  21. package/lib/components/ChatBubble/ChatBubble2.js +174 -0
  22. package/lib/components/ChatBubble/formatChatTime.js +48 -0
  23. package/lib/components/ChatComposer/ChatComposer2.js +153 -0
  24. package/lib/components/CodeBlock/CodeBlock2.js +93 -0
  25. package/lib/components/CodeBlock/highlight.js +111 -0
  26. package/lib/components/ColorPicker/ColorPicker2.js +609 -0
  27. package/lib/components/ColorPicker/color.js +180 -0
  28. package/lib/components/ColorPicker/presets.js +70 -0
  29. package/lib/components/Combobox/Combobox2.js +228 -0
  30. package/lib/components/CommandMenu/CommandMenu.js +267 -0
  31. package/lib/components/Comment/Comment2.js +110 -0
  32. package/lib/components/ContextMenu/ContextMenu2.js +168 -0
  33. package/lib/components/DataGrid/DataGrid2.js +1998 -0
  34. package/lib/components/DataGrid/GridPopover.js +154 -0
  35. package/lib/components/DataGrid/anchor.js +50 -0
  36. package/lib/components/DataGrid/model.js +557 -0
  37. package/lib/components/DataGrid/panels.js +701 -0
  38. package/lib/components/DataGrid/typeMeta.js +75 -0
  39. package/lib/components/DataGrid/types.js +53 -0
  40. package/lib/components/DescriptionList/DescriptionList2.js +180 -0
  41. package/lib/components/Dialog/AlertDialog.js +119 -0
  42. package/lib/components/Dialog/Dialog2.js +110 -0
  43. package/lib/components/Dialog/modal.js +92 -0
  44. package/lib/components/Drawer/Drawer2.js +244 -0
  45. package/lib/components/DropdownMenu/DropdownMenu2.js +393 -0
  46. package/lib/components/DropdownMenu/menuCore.js +63 -0
  47. package/lib/components/Dropzone/Dropzone2.js +145 -0
  48. package/lib/components/EmptyState/EmptyState2.js +70 -0
  49. package/lib/components/FileChip/FileChip2.js +94 -0
  50. package/lib/components/FileUpload/FileUpload.js +259 -0
  51. package/lib/components/FilterChips/FilterChips2.js +101 -0
  52. package/lib/components/FunnelChart/FunnelChart2.js +283 -0
  53. package/lib/components/FunnelChart/funnel.js +72 -0
  54. package/lib/components/Highlight/Highlight2.js +100 -0
  55. package/lib/components/HoverCard/HoverCard.js +134 -0
  56. package/lib/components/InlineDiff/InlineDiff2.js +215 -0
  57. package/lib/components/InlineDiff/diff.js +126 -0
  58. package/lib/components/InlineDiff/useDiffReview.js +110 -0
  59. package/lib/components/Kanban/Kanban2.js +691 -0
  60. package/lib/components/Kanban/KanbanCard.js +159 -0
  61. package/lib/components/Kanban/move.js +69 -0
  62. package/lib/components/LineChart/LineChart2.js +342 -0
  63. package/lib/components/List/List2.js +132 -0
  64. package/lib/components/Listbox/Listbox2.js +163 -0
  65. package/lib/components/Marker/Marker2.js +82 -0
  66. package/lib/components/Menubar/Menubar2.js +222 -0
  67. package/lib/components/MultiSelect/MultiSelect2.js +204 -0
  68. package/lib/components/NavigationMenu/NavigationMenu2.js +481 -0
  69. package/lib/components/NoticeStack/NoticeStack2.js +178 -0
  70. package/lib/components/NumberStepper/NumberStepper2.js +128 -0
  71. package/lib/components/OtpInput/OtpInput2.js +122 -0
  72. package/lib/components/Pagination/Pagination2.js +210 -0
  73. package/lib/components/Pagination/paginationRange.js +52 -0
  74. package/lib/components/PhoneInput/PhoneInput.js +175 -0
  75. package/lib/components/PieChart/PieChart2.js +246 -0
  76. package/lib/components/PieChart/arc.js +90 -0
  77. package/lib/components/PieChart/useArcTween.js +92 -0
  78. package/lib/components/Popover/Popover2.js +111 -0
  79. package/lib/components/ProgressTracker/ProgressTracker2.js +226 -0
  80. package/lib/components/Rating/Rating2.js +186 -0
  81. package/lib/components/Resizable/Resizable2.js +238 -0
  82. package/lib/components/Resizable/layout.js +115 -0
  83. package/lib/components/ScaledPreview/ScaledPreview2.js +99 -0
  84. package/lib/components/ScatterChart/ScatterChart2.js +355 -0
  85. package/lib/components/ScatterChart/scatter.js +85 -0
  86. package/lib/components/ScrollArea/ScrollArea2.js +217 -0
  87. package/lib/components/Select/Select2.js +153 -0
  88. package/lib/components/Sidebar/Sidebar2.js +127 -0
  89. package/lib/components/Skeleton/Skeleton2.js +91 -0
  90. package/lib/components/Slider/Slider2.js +142 -0
  91. package/lib/components/SocialLoginButton/SocialLoginButton.js +84 -0
  92. package/lib/components/SparkChart/SparkChart2.js +217 -0
  93. package/lib/components/SparkChart/spark.js +71 -0
  94. package/lib/components/Sparkbar/Sparkbar2.js +111 -0
  95. package/lib/components/SplitView/SplitView2.js +95 -0
  96. package/lib/components/Stat/Stat2.js +164 -0
  97. package/lib/components/StepList/StepList2.js +131 -0
  98. package/lib/components/Table/Table2.js +104 -0
  99. package/lib/components/Tabs/Tabs2.js +131 -0
  100. package/lib/components/TagInput/TagInput2.js +357 -0
  101. package/lib/components/TimePicker/TimePicker2.js +388 -0
  102. package/lib/components/TimePicker/time.js +81 -0
  103. package/lib/components/Timeline/Timeline2.js +369 -0
  104. package/lib/components/Timeline/scale.js +81 -0
  105. package/lib/components/Toast/Toaster.js +213 -0
  106. package/lib/components/Toast/store.js +128 -0
  107. package/lib/components/ToggleGroup/ToggleGroup2.js +125 -0
  108. package/lib/components/Toolbar/Toolbar2.js +283 -0
  109. package/lib/components/Tracker/Tracker2.js +172 -0
  110. package/lib/components/TreeDiagram/TreeDiagram2.js +223 -0
  111. package/lib/components/TreeView/TreeView2.js +286 -0
  112. package/lib/hooks/timing.js +57 -0
  113. package/lib/hooks/useControllableState.js +49 -0
  114. package/lib/hooks/useCountdown.js +75 -0
  115. package/lib/hooks/useDigitInput.js +103 -0
  116. package/lib/hooks/useDismiss.js +69 -0
  117. package/lib/hooks/useElapsed.js +85 -0
  118. package/lib/hooks/useFloating.js +70 -0
  119. package/lib/hooks/useFocusTrap.js +85 -0
  120. package/lib/hooks/usePresence.js +58 -0
  121. package/lib/hooks/usePressToOpen.js +70 -0
  122. package/lib/hooks/useScrollLock.js +71 -0
  123. package/lib/hooks/useSelection.js +65 -0
  124. package/lib/index.js +176 -17911
  125. package/lib/primitives/AspectRatio2.js +76 -0
  126. package/lib/primitives/BrandIcon.js +245 -0
  127. package/lib/primitives/ColorDot2.js +71 -0
  128. package/lib/primitives/CopyButton2.js +86 -0
  129. package/lib/primitives/CountBadge2.js +80 -0
  130. package/lib/primitives/Countdown2.js +61 -0
  131. package/lib/primitives/Delta2.js +92 -0
  132. package/lib/primitives/Elapsed.js +62 -0
  133. package/lib/primitives/FileIcon2.js +125 -0
  134. package/lib/primitives/Flag2.js +263 -0
  135. package/lib/primitives/IconStack2.js +85 -0
  136. package/lib/primitives/IconTile2.js +69 -0
  137. package/lib/primitives/Kbd2.js +88 -0
  138. package/lib/primitives/Layout2.js +118 -0
  139. package/lib/primitives/Link2.js +55 -0
  140. package/lib/primitives/MaskedText2.js +121 -0
  141. package/lib/primitives/Progress2.js +137 -0
  142. package/lib/primitives/RelativeTime.js +82 -0
  143. package/lib/primitives/SearchInput2.js +85 -0
  144. package/lib/primitives/SelectorButton2.js +96 -0
  145. package/lib/primitives/Spinner2.js +94 -0
  146. package/lib/primitives/StatusIcon2.js +126 -0
  147. package/lib/primitives/Swatch2.js +79 -0
  148. package/lib/primitives/Tooltip2.js +132 -0
  149. package/lib/primitives/Typography2.js +97 -0
  150. package/lib/primitives/formatCountdown.js +54 -0
  151. package/lib/primitives/formatElapsed.js +63 -0
  152. package/lib/primitives/formatRelativeTime.js +64 -0
  153. package/lib/primitives/hotkey.js +94 -0
  154. package/lib/primitives/index.js +351 -0
  155. package/lib/primitives/maskValue.js +69 -0
  156. package/lib/style.css +1 -1
  157. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +10 -0
  158. package/lib/types/components/index.d.ts +2 -0
  159. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  160. package/package.json +2 -1
@@ -0,0 +1,57 @@
1
+ "use client";
2
+ (function(e, n) {
3
+ for (var r = t, i = e();;) try {
4
+ if (parseInt(r(376)) / 1 * (parseInt(r(374)) / 2) + -parseInt(r(372)) / 3 + parseInt(r(380)) / 4 * (-parseInt(r(375)) / 5) + -parseInt(r(379)) / 6 * (-parseInt(r(378)) / 7) + parseInt(r(373)) / 8 + -parseInt(r(383)) / 9 * (parseInt(r(377)) / 10) + parseInt(r(381)) / 11 * (parseInt(r(382)) / 12) == n) break;
5
+ i.push(i.shift());
6
+ } catch {
7
+ i.push(i.shift());
8
+ }
9
+ })(n, 211728);
10
+ var e = {
11
+ tooltipDelay: 500,
12
+ tooltipSkip: 300,
13
+ hoverIntent: 200,
14
+ hoverGrace: 300,
15
+ doubleClick: 250,
16
+ undo: 6e3,
17
+ dragThreshold: 4,
18
+ typeahead: 500,
19
+ repeatDelay: 400,
20
+ repeatInterval: 60,
21
+ pressFlash: 140,
22
+ countdownTick: 250,
23
+ longPress: 500
24
+ };
25
+ function t(e, r) {
26
+ e -= 372;
27
+ var i = n(), a = i[e];
28
+ t.bAmylY === void 0 && (t.UsiVoE = function(e) {
29
+ for (var t = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=", n = "", r = "", i = 0, a, o, s = 0; o = e.charAt(s++); ~o && (a = i % 4 ? a * 64 + o : o, i++ % 4) && (n += String.fromCharCode(255 & a >> (-2 * i & 6)))) o = t.indexOf(o);
30
+ for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
31
+ return decodeURIComponent(r);
32
+ }, t.swXmgF = {}, t.bAmylY = !0);
33
+ var o = i[0];
34
+ t.anvSid !== o && (t.swXmgF = {}, t.anvSid = o);
35
+ var s = t.swXmgF[e];
36
+ return s === void 0 ? (a = t.UsiVoE(a), t.swXmgF[e] = a) : a = s, a;
37
+ }
38
+ export { e as TIMING };
39
+ function n() {
40
+ var e = [
41
+ "mteZodK3mMzyEg9xAW",
42
+ "mZn5r29yzve",
43
+ "nJu4ndi4Egreq3bT",
44
+ "nJC4mtvIA3Llz2q",
45
+ "mZCXnta4sgnwzLDu",
46
+ "mJeYmJm2ohHey0vzva",
47
+ "nteYodzXA1vgC28",
48
+ "nxngzNDlyW",
49
+ "mtbcrvrirgG",
50
+ "otbOBKrNBfe",
51
+ "n05vveHAyq",
52
+ "mta3mZrOq0XYEve"
53
+ ];
54
+ return n = function() {
55
+ return e;
56
+ }, n();
57
+ }
@@ -0,0 +1,49 @@
1
+ "use client";
2
+ function e(n, r) {
3
+ n -= 263;
4
+ let i = t(), a = i[n];
5
+ e.wlooes === void 0 && (e.xoYhto = function(e) {
6
+ let t = "", n = "";
7
+ 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);
8
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
9
+ return decodeURIComponent(n);
10
+ }, e.DCKqVd = {}, e.wlooes = !0);
11
+ let o = i[0];
12
+ e.mBfSBu !== o && (e.DCKqVd = {}, e.mBfSBu = o);
13
+ let s = e.DCKqVd[n];
14
+ return s === void 0 ? (a = e.xoYhto(a), e.DCKqVd[n] = a) : a = s, a;
15
+ }
16
+ function t() {
17
+ let e = [
18
+ "mtC2mdi0ogvRCM9Asa",
19
+ "mZqXmtK1nhPKD3rJuq",
20
+ "mti1odu4yxrXwLDq",
21
+ "mJKYtw5lDgns",
22
+ "mtm4mZu1mM9ZBgT2Dq",
23
+ "mtH5B0PXrxu",
24
+ "mJiZoty5mhv4D2j4BW",
25
+ "mtzTBMDpEKy",
26
+ "nde4mtbeCNLoC1a",
27
+ "nJiXotKYqMLHB01c"
28
+ ];
29
+ return t = function() {
30
+ return e;
31
+ }, t();
32
+ }
33
+ (function(t, n) {
34
+ let r = e, i = t();
35
+ for (;;) try {
36
+ if (-parseInt(r(265)) / 1 + -parseInt(r(272)) / 2 + -parseInt(r(267)) / 3 + -parseInt(r(266)) / 4 * (-parseInt(r(271)) / 5) + parseInt(r(264)) / 6 + -parseInt(r(263)) / 7 * (-parseInt(r(270)) / 8) + -parseInt(r(268)) / 9 * (parseInt(r(269)) / 10) == n) break;
37
+ i.push(i.shift());
38
+ } catch {
39
+ i.push(i.shift());
40
+ }
41
+ })(t, 336037);
42
+ import { useCallback as n, useState as r } from "react";
43
+ function i(e, t, i) {
44
+ let [a, o] = r(t), s = e !== void 0;
45
+ return [s ? e : a, n((e) => {
46
+ s || o(e), i?.(e);
47
+ }, [s, i])];
48
+ }
49
+ export { i as useControllableState };
@@ -0,0 +1,75 @@
1
+ "use client";
2
+ (function(e, t) {
3
+ let r = n, i = e();
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;
6
+ i.push(i.shift());
7
+ } catch {
8
+ i.push(i.shift());
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) {
38
+ let t = "", n = "";
39
+ 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
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
41
+ 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;
47
+ }
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)];
58
+ 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);
64
+ }, [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]);
69
+ return {
70
+ remaining: l,
71
+ done: l <= 0,
72
+ restart: _
73
+ };
74
+ }
75
+ export { s as useCountdown };
@@ -0,0 +1,103 @@
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) {
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
+ }, 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;
46
+ }
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;
60
+ if (n === 0) return 0;
61
+ 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)];
64
+ }
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);
73
+ }), {
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);
83
+ }
84
+ },
85
+ 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);
96
+ }
97
+ }
98
+ },
99
+ inputMode: "numeric",
100
+ autoComplete: "off"
101
+ };
102
+ }
103
+ export { s as useDigitInput };
@@ -0,0 +1,69 @@
1
+ "use client";
2
+ (function(t, n) {
3
+ let r = e, i = t();
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;
6
+ i.push(i.shift());
7
+ } catch {
8
+ i.push(i.shift());
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({
28
+ refs: i,
29
+ onDismiss: a
30
+ });
31
+ t(() => {
32
+ let t = e;
33
+ o[t(300)] = {
34
+ refs: i,
35
+ onDismiss: a
36
+ };
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();
43
+ };
44
+ return document.addEventListener(t(293), n), () => document.removeEventListener(t(293), n);
45
+ }, [r]);
46
+ }
47
+ function i() {
48
+ let e = [
49
+ "nwDHA2z5ra",
50
+ "mtfqyuDMzNq",
51
+ "oty3odiWsfHmrfDO",
52
+ "mZeXodC0BKr5Bg55",
53
+ "nejtz2nbra",
54
+ "nJm4otuWme93tLP5AG",
55
+ "y3vYCMvUDa",
56
+ "oda2mtzlC0zSBLi",
57
+ "y29UDgfPBNm",
58
+ "ntyYmdHUEwnVu3G",
59
+ "mJa4odLhEhfRrLa",
60
+ "mta3mKTgA3r6rW",
61
+ "C29Tzq",
62
+ "otKYmtiWvMLvr1zR",
63
+ "Cg9PBNrLCMrVD24"
64
+ ];
65
+ return i = function() {
66
+ return e;
67
+ }, i();
68
+ }
69
+ export { r as useDismiss };
@@ -0,0 +1,85 @@
1
+ "use client";
2
+ const e = t;
3
+ (function(e, n) {
4
+ let r = t, i = e();
5
+ 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;
7
+ i.push(i.shift());
8
+ } catch {
9
+ i.push(i.shift());
10
+ }
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) {
16
+ let t = "", n = "";
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);
18
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
19
+ 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;
25
+ }
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(() => {
31
+ x.current = h;
32
+ }), i(() => {
33
+ let e = d;
34
+ 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);
38
+ };
39
+ return i(), () => {
40
+ 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);
42
+ };
43
+ }, [
44
+ h,
45
+ f,
46
+ v
47
+ ]);
48
+ let C = n(() => {
49
+ let e = d;
50
+ x.current ? S[e(392)] = !0 : b[e(392)] = 0, _(0), y((e) => e + 1);
51
+ }, []);
52
+ return {
53
+ elapsed: m ? Math.max(0, Math[d(400)]((p - f) / 1e3)) : g,
54
+ running: h,
55
+ reset: C
56
+ };
57
+ }
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 };
@@ -0,0 +1,70 @@
1
+ "use client";
2
+ (function(e, t) {
3
+ let n = i, r = e();
4
+ for (;;) try {
5
+ if (-parseInt(n(297)) / 1 * (-parseInt(n(318)) / 2) + -parseInt(n(317)) / 3 + -parseInt(n(306)) / 4 * (-parseInt(n(315)) / 5) + parseInt(n(308)) / 6 * (parseInt(n(295)) / 7) + parseInt(n(307)) / 8 * (-parseInt(n(303)) / 9) + -parseInt(n(304)) / 10 + parseInt(n(314)) / 11 == t) break;
6
+ r.push(r.shift());
7
+ } catch {
8
+ r.push(r.shift());
9
+ }
10
+ })(a, 354952);
11
+ import { useLayoutEffect as e, useState as t } from "react";
12
+ var n = 8;
13
+ function r(r, a, o = {}) {
14
+ let s = i, { offset: c = 6, matchWidth: l = !0, maxHeight: u = 300, align: d = s(313), panelRef: f } = o, [p, m] = t({
15
+ position: "fixed",
16
+ visibility: s(291)
17
+ }), [h, g] = t("bottom");
18
+ return e(() => {
19
+ let e = s;
20
+ if (!a) return;
21
+ let t = () => {
22
+ let e = i, t = r[e(309)];
23
+ if (!t) return;
24
+ let a = t.getBoundingClientRect(), o = window[e(294)] - a[e(298)] - c - n, s = a[e(312)] - c - n, p = o < Math[e(301)](u, 180) && s > o, h = l ? a[e(310)] : void 0, _ = h ?? f?.[e(309)]?.[e(302)] ?? 0, v = d === e(289) ? a[e(319)] - _ : d === e(290) ? a.left + (a[e(310)] - _) / 2 : a[e(296)], y = Math[e(300)](n, Math[e(301)](v, window[e(293)] - _ - n));
25
+ g(e(p ? 312 : 298)), m({
26
+ position: e(311),
27
+ left: y,
28
+ width: h,
29
+ maxHeight: Math[e(300)](120, Math[e(301)](u, p ? s : o)),
30
+ ...p ? { bottom: window.innerHeight - a[e(312)] + c } : { top: a.bottom + c }
31
+ });
32
+ };
33
+ return t(), window[e(305)](e(292), t), window.addEventListener(e(299), t, !0), () => {
34
+ let n = e;
35
+ window[n(316)]("resize", t), window[n(316)](n(299), t, !0);
36
+ };
37
+ }, [
38
+ a,
39
+ r,
40
+ c,
41
+ l,
42
+ u,
43
+ d,
44
+ f
45
+ ]), {
46
+ style: p,
47
+ side: h
48
+ };
49
+ }
50
+ function i(e, t) {
51
+ e -= 289;
52
+ let n = a(), r = n[e];
53
+ i.ApGFCH === void 0 && (i.qdKTkU = function(e) {
54
+ let t = "", n = "";
55
+ 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);
56
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
57
+ return decodeURIComponent(n);
58
+ }, i.RyxQeb = {}, i.ApGFCH = !0);
59
+ let o = n[0];
60
+ i.VHUPao !== o && (i.RyxQeb = {}, i.VHUPao = o);
61
+ let s = i.RyxQeb[e];
62
+ return s === void 0 ? (r = i.qdKTkU(r), i.RyxQeb[e] = r) : r = s, r;
63
+ }
64
+ export { r as useFloating };
65
+ function a() {
66
+ let e = /* @__PURE__ */ "mtKXmtD6yM1AyKS.BgvMDa.mwPVDeDYuq.yM90Dg9T.C2nYB2XS.Bwf4.BwLU.B2zMC2v0v2LKDgG.oxbPqxfsqW.nZaYmdCWmezxrNztyG.ywrKrxzLBNrmAxn0zw5LCG.mtKZmZuYy0zzA1P5.ntiWntaXnLzOC3fdwa.nZG2q2HZrurL.y3vYCMvUDa.D2LKDgG.zML4zwq.Dg9W.C3rHCNq.nJa2ndi1nMHgywzLza.mJv3zfzqvMK.CMvTB3zLrxzLBNrmAxn0zw5LCG.mZqYnJe4BMThuKjz.mtm0mJiXnKPYALzlzq.CMLNAhq.zw5K.y2vUDgvY.AgLKzgvU.CMvZAxPL.Aw5UzxjxAwr0Aa.Aw5UzxjizwLNAhq".split(".");
67
+ return a = function() {
68
+ return e;
69
+ }, a();
70
+ }
@@ -0,0 +1,85 @@
1
+ "use client";
2
+ const e = a;
3
+ function t() {
4
+ let e = [
5
+ "mJyWnta4zunRDxbh",
6
+ "BgvUz3rO",
7
+ "ChjLDMvUDerLzMf1Bhq",
8
+ "mtC2nZaWrgTLv29P",
9
+ "A2v5",
10
+ "mZy4mZD2AfnVz2K",
11
+ "A2v5zg93BG",
12
+ "ofPVugPvDW",
13
+ "CMvTB3zLrxzLBNrmAxn0zw5LCG",
14
+ "w2LUzxj0xq",
15
+ "C2HPzNrlzxK",
16
+ "nZiXndvnu3PHvuC",
17
+ "vgfI",
18
+ "mZi5ndaXmwTyquHSCG",
19
+ "mtu5nZCXnMfJEenbyq",
20
+ "zMLSDgvY",
21
+ "nJyYnZe1C0DvDwXk",
22
+ "y3vYCMvUDa",
23
+ "y2XVC2vZDa",
24
+ "ywn0AxzLrwXLBwvUDa",
25
+ "ota0q0L5zwf2",
26
+ "zM9JDxm",
27
+ "CxvLCNLtzwXLy3rVCKfSBa"
28
+ ];
29
+ return t = function() {
30
+ return e;
31
+ }, t();
32
+ }
33
+ (function(e, t) {
34
+ let n = a, r = e();
35
+ for (;;) try {
36
+ if (-parseInt(n(473)) / 1 * (parseInt(n(469)) / 2) + parseInt(n(478)) / 3 + parseInt(n(476)) / 4 + -parseInt(n(465)) / 5 + parseInt(n(462)) / 6 + -parseInt(n(475)) / 7 + -parseInt(n(459)) / 8 * (-parseInt(n(467)) / 9) == t) break;
37
+ r.push(r.shift());
38
+ } catch {
39
+ r.push(r.shift());
40
+ }
41
+ })(t, 331768);
42
+ import { useEffect as n } from "react";
43
+ var r = "a[href], button:not([disabled]), input:not([disabled]):not([type=\"hidden\"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"]), [contenteditable=\"true\"]", i = (t) => [...t[e(461)](r)][e(477)]((t) => !t[e(480)](e(471)) && t.offsetParent !== null);
44
+ function a(e, n) {
45
+ e -= 459;
46
+ let r = t(), i = r[e];
47
+ a.sUyvjB === void 0 && (a.quDdFg = function(e) {
48
+ let t = "", n = "";
49
+ 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);
50
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
51
+ return decodeURIComponent(n);
52
+ }, a.MTMpnR = {}, a.sUyvjB = !0);
53
+ let o = r[0];
54
+ a.AcprJb !== o && (a.MTMpnR = {}, a.AcprJb = o);
55
+ let s = a.MTMpnR[e];
56
+ return s === void 0 ? (i = a.quDdFg(i), a.MTMpnR[e] = i) : i = s, i;
57
+ }
58
+ function o(e, t, r) {
59
+ n(() => {
60
+ let n = a, o = e[n(479)];
61
+ if (!t || !o) return;
62
+ let s = document[n(481)];
63
+ (r?.[n(479)] ?? i(o)[0] ?? o).focus({ preventScroll: !0 });
64
+ let c = (e) => {
65
+ let t = n;
66
+ if (e[t(466)] !== t(474)) return;
67
+ let r = i(o);
68
+ if (!r[t(463)]) {
69
+ e[t(464)]();
70
+ return;
71
+ }
72
+ let a = r[0], s = r[r[t(463)] - 1];
73
+ e.shiftKey && (document.activeElement === a || !o.contains(document.activeElement)) ? (e[t(464)](), s[t(460)]()) : !e[t(472)] && document[t(481)] === s && (e.preventDefault(), a[t(460)]());
74
+ };
75
+ return document.addEventListener(n(468), c), () => {
76
+ let e = n;
77
+ document[e(470)]("keydown", c), s && (document[e(481)] === document.body || o.contains(document[e(481)])) && s[e(460)]({ preventScroll: !0 });
78
+ };
79
+ }, [
80
+ t,
81
+ e,
82
+ r
83
+ ]);
84
+ }
85
+ export { i as focusableIn, o as useFocusTrap };
@@ -0,0 +1,58 @@
1
+ "use client";
2
+ (function(e, t) {
3
+ let n = r, i = e();
4
+ for (;;) try {
5
+ if (-parseInt(n(198)) / 1 + -parseInt(n(199)) / 2 + -parseInt(n(206)) / 3 * (parseInt(n(203)) / 4) + parseInt(n(202)) / 5 + -parseInt(n(197)) / 6 * (parseInt(n(201)) / 7) + parseInt(n(205)) / 8 * (-parseInt(n(204)) / 9) + parseInt(n(200)) / 10 == t) break;
6
+ i.push(i.shift());
7
+ } catch {
8
+ i.push(i.shift());
9
+ }
10
+ })(i, 294829);
11
+ import { useEffect as e, useState as t } from "react";
12
+ function n(n, r = 160) {
13
+ let [i, a] = t(n);
14
+ return n && !i && a(!0), e(() => {
15
+ if (n || !i) return;
16
+ let e = window.setTimeout(() => a(!1), r);
17
+ return () => window.clearTimeout(e);
18
+ }, [
19
+ n,
20
+ i,
21
+ r
22
+ ]), {
23
+ mounted: n || i,
24
+ closing: !n && i
25
+ };
26
+ }
27
+ function r(e, t) {
28
+ e -= 197;
29
+ let n = i(), a = n[e];
30
+ r.rGhIyr === void 0 && (r.OdXmBP = function(e) {
31
+ let t = "", n = "";
32
+ 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);
33
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
34
+ return decodeURIComponent(n);
35
+ }, r.IugABf = {}, r.rGhIyr = !0);
36
+ let o = n[0];
37
+ r.DHThdv !== o && (r.IugABf = {}, r.DHThdv = o);
38
+ let s = r.IugABf[e];
39
+ return s === void 0 ? (a = r.OdXmBP(a), r.IugABf[e] = a) : a = s, a;
40
+ }
41
+ export { n as usePresence };
42
+ function i() {
43
+ let e = [
44
+ "nZa4sgPAAezo",
45
+ "ntm2nZjQCeD0EK0",
46
+ "mte3mdG4BM5bBKPN",
47
+ "mta4mJCWmZbPEg9hCw4",
48
+ "mtG5nJnwuMTArxa",
49
+ "mtqWmdyZnxvtq3frtW",
50
+ "mZm3mtjSwvjpwgC",
51
+ "ndCZotaZmuXtv0Hrra",
52
+ "ohHYAezuDa",
53
+ "mZLNrhDICvq"
54
+ ];
55
+ return i = function() {
56
+ return e;
57
+ }, i();
58
+ }