@iamfiro/design 0.3.2 → 0.3.5

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 (163) hide show
  1. package/agents/INDEX.md +1 -1
  2. package/agents/app-shell/AGENTS.md +99 -1
  3. package/agents/brand-icon/AGENTS.md +1 -1
  4. package/agents/social-login-button/AGENTS.md +4 -3
  5. package/lib/components/Accordion/Accordion2.js +74 -74
  6. package/lib/components/ActionBar/ActionBar2.js +44 -42
  7. package/lib/components/Alert/Alert2.js +67 -67
  8. package/lib/components/AppShell/AppShell2.js +72 -66
  9. package/lib/components/AreaChart/AreaChart.js +45 -45
  10. package/lib/components/BarChart/BarChart2.js +128 -128
  11. package/lib/components/BarList/BarList2.js +105 -105
  12. package/lib/components/Breadcrumb/Breadcrumb2.js +63 -64
  13. package/lib/components/Calendar/Calendar2.js +197 -197
  14. package/lib/components/Calendar/DatePicker2.js +100 -100
  15. package/lib/components/Calendar/date.js +47 -70
  16. package/lib/components/Card/Card2.js +101 -74
  17. package/lib/components/CardFrame/CardFrame2.js +52 -56
  18. package/lib/components/Chart/ChartParts.js +88 -88
  19. package/lib/components/Chart/chart2.js +63 -63
  20. package/lib/components/Chart/useChartInteraction.js +43 -43
  21. package/lib/components/ChatBubble/ChatBubble2.js +111 -111
  22. package/lib/components/ChatBubble/formatChatTime.js +38 -43
  23. package/lib/components/ChatComposer/ChatComposer2.js +96 -96
  24. package/lib/components/CodeBlock/CodeBlock2.js +65 -65
  25. package/lib/components/CodeBlock/highlight.js +84 -84
  26. package/lib/components/ColorPicker/ColorPicker2.js +263 -263
  27. package/lib/components/ColorPicker/color.js +92 -92
  28. package/lib/components/ColorPicker/presets.js +35 -39
  29. package/lib/components/Combobox/Combobox2.js +134 -134
  30. package/lib/components/CommandMenu/CommandMenu.js +130 -131
  31. package/lib/components/Comment/Comment2.js +64 -63
  32. package/lib/components/ContextMenu/ContextMenu2.js +84 -84
  33. package/lib/components/DataGrid/DataGrid2.js +1182 -1180
  34. package/lib/components/DataGrid/GridPopover.js +84 -84
  35. package/lib/components/DataGrid/anchor.js +29 -28
  36. package/lib/components/DataGrid/model.js +308 -307
  37. package/lib/components/DataGrid/panels.js +398 -399
  38. package/lib/components/DataGrid/typeMeta.js +41 -40
  39. package/lib/components/DataGrid/types.js +39 -40
  40. package/lib/components/DescriptionList/DescriptionList2.js +105 -105
  41. package/lib/components/Dialog/AlertDialog.js +90 -89
  42. package/lib/components/Dialog/Dialog2.js +71 -72
  43. package/lib/components/Dialog/modal.js +62 -60
  44. package/lib/components/Drawer/Drawer2.js +167 -166
  45. package/lib/components/DropdownMenu/DropdownMenu2.js +260 -258
  46. package/lib/components/DropdownMenu/menuCore.js +29 -28
  47. package/lib/components/Dropzone/Dropzone2.js +78 -77
  48. package/lib/components/EmptyState/EmptyState2.js +57 -57
  49. package/lib/components/FileChip/FileChip2.js +53 -77
  50. package/lib/components/FileUpload/FileUpload.js +168 -167
  51. package/lib/components/FilterChips/FilterChips2.js +60 -60
  52. package/lib/components/FunnelChart/FunnelChart2.js +174 -174
  53. package/lib/components/FunnelChart/funnel.js +44 -42
  54. package/lib/components/Highlight/Highlight2.js +55 -55
  55. package/lib/components/HoverCard/HoverCard.js +71 -96
  56. package/lib/components/InlineDiff/InlineDiff2.js +128 -129
  57. package/lib/components/InlineDiff/diff.js +79 -79
  58. package/lib/components/InlineDiff/useDiffReview.js +61 -62
  59. package/lib/components/Kanban/Kanban2.js +387 -389
  60. package/lib/components/Kanban/KanbanCard.js +84 -84
  61. package/lib/components/Kanban/move.js +32 -25
  62. package/lib/components/LineChart/LineChart2.js +228 -228
  63. package/lib/components/List/List2.js +62 -62
  64. package/lib/components/Listbox/Listbox2.js +92 -92
  65. package/lib/components/Marker/Marker2.js +50 -56
  66. package/lib/components/Menubar/Menubar2.js +117 -116
  67. package/lib/components/MultiSelect/MultiSelect2.js +111 -111
  68. package/lib/components/NavigationMenu/NavigationMenu2.js +231 -231
  69. package/lib/components/NoticeStack/NoticeStack2.js +99 -99
  70. package/lib/components/NumberStepper/NumberStepper2.js +60 -60
  71. package/lib/components/OtpInput/OtpInput2.js +90 -89
  72. package/lib/components/Pagination/Pagination2.js +105 -105
  73. package/lib/components/Pagination/paginationRange.js +37 -37
  74. package/lib/components/PhoneInput/PhoneInput.js +75 -76
  75. package/lib/components/PieChart/PieChart2.js +166 -166
  76. package/lib/components/PieChart/arc.js +71 -69
  77. package/lib/components/PieChart/useArcTween.js +60 -62
  78. package/lib/components/Popover/Popover2.js +85 -86
  79. package/lib/components/ProgressTracker/ProgressTracker2.js +134 -134
  80. package/lib/components/Rating/Rating2.js +90 -89
  81. package/lib/components/Resizable/Resizable2.js +128 -129
  82. package/lib/components/Resizable/layout.js +51 -51
  83. package/lib/components/ScaledPreview/ScaledPreview2.js +49 -48
  84. package/lib/components/ScatterChart/ScatterChart2.js +214 -213
  85. package/lib/components/ScatterChart/scatter.js +49 -52
  86. package/lib/components/ScrollArea/ScrollArea2.js +115 -117
  87. package/lib/components/Select/Select2.js +82 -82
  88. package/lib/components/Sidebar/Sidebar2.js +91 -85
  89. package/lib/components/Sidebar/rail.js +43 -0
  90. package/lib/components/Skeleton/Skeleton2.js +63 -64
  91. package/lib/components/Slider/Slider2.js +65 -66
  92. package/lib/components/SocialLoginButton/SocialLoginButton.js +76 -69
  93. package/lib/components/SparkChart/SparkChart2.js +126 -127
  94. package/lib/components/SparkChart/spark.js +66 -42
  95. package/lib/components/Sparkbar/Sparkbar2.js +60 -60
  96. package/lib/components/SplitView/SplitView2.js +51 -51
  97. package/lib/components/Stat/Stat2.js +79 -79
  98. package/lib/components/StepList/StepList2.js +75 -75
  99. package/lib/components/Table/Table2.js +71 -71
  100. package/lib/components/Tabs/Tabs2.js +74 -74
  101. package/lib/components/TagInput/TagInput2.js +223 -221
  102. package/lib/components/TimePicker/TimePicker2.js +197 -195
  103. package/lib/components/TimePicker/time.js +59 -56
  104. package/lib/components/Timeline/Timeline2.js +195 -195
  105. package/lib/components/Timeline/scale.js +64 -66
  106. package/lib/components/Toast/Toaster.js +139 -139
  107. package/lib/components/Toast/store.js +72 -76
  108. package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
  109. package/lib/components/Toolbar/Toolbar2.js +165 -164
  110. package/lib/components/Tracker/Tracker2.js +72 -72
  111. package/lib/components/TreeDiagram/TreeDiagram2.js +96 -97
  112. package/lib/components/TreeView/TreeView2.js +152 -151
  113. package/lib/hooks/timing.js +34 -36
  114. package/lib/hooks/useControllableState.js +29 -30
  115. package/lib/hooks/useCountdown.js +51 -53
  116. package/lib/hooks/useDigitInput.js +81 -55
  117. package/lib/hooks/useDismiss.js +53 -56
  118. package/lib/hooks/useElapsed.js +48 -49
  119. package/lib/hooks/useFloating.js +36 -36
  120. package/lib/hooks/useFocusTrap.js +32 -32
  121. package/lib/hooks/usePresence.js +49 -49
  122. package/lib/hooks/usePressToOpen.js +40 -40
  123. package/lib/hooks/useScrollLock.js +50 -49
  124. package/lib/hooks/useSelection.js +42 -47
  125. package/lib/index.js +138 -139
  126. package/lib/primitives/AspectRatio2.js +58 -57
  127. package/lib/primitives/BrandIcon.js +210 -179
  128. package/lib/primitives/ColorDot2.js +42 -41
  129. package/lib/primitives/CopyButton2.js +59 -58
  130. package/lib/primitives/CountBadge2.js +58 -63
  131. package/lib/primitives/Countdown2.js +38 -37
  132. package/lib/primitives/Delta2.js +37 -37
  133. package/lib/primitives/Elapsed.js +42 -40
  134. package/lib/primitives/FileIcon2.js +102 -102
  135. package/lib/primitives/Flag2.js +124 -124
  136. package/lib/primitives/IconStack2.js +45 -23
  137. package/lib/primitives/IconTile2.js +45 -41
  138. package/lib/primitives/Kbd2.js +48 -48
  139. package/lib/primitives/Layout2.js +71 -71
  140. package/lib/primitives/Link2.js +40 -42
  141. package/lib/primitives/MaskedText2.js +50 -50
  142. package/lib/primitives/Progress2.js +78 -77
  143. package/lib/primitives/RelativeTime.js +55 -58
  144. package/lib/primitives/SearchInput2.js +72 -68
  145. package/lib/primitives/SelectorButton2.js +60 -61
  146. package/lib/primitives/Spinner2.js +48 -49
  147. package/lib/primitives/StatusIcon2.js +69 -69
  148. package/lib/primitives/Swatch2.js +65 -69
  149. package/lib/primitives/Tooltip2.js +92 -92
  150. package/lib/primitives/Typography2.js +37 -37
  151. package/lib/primitives/formatCountdown.js +38 -38
  152. package/lib/primitives/formatElapsed.js +43 -45
  153. package/lib/primitives/formatRelativeTime.js +54 -54
  154. package/lib/primitives/hotkey.js +77 -77
  155. package/lib/primitives/index.js +162 -161
  156. package/lib/primitives/maskValue.js +54 -51
  157. package/lib/style.css +1 -1
  158. package/lib/types/components/AppShell/AppShell.d.ts +9 -2
  159. package/lib/types/components/Sidebar/rail.d.ts +4 -0
  160. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  161. package/lib/types/components/index.d.ts +1 -0
  162. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  163. package/package.json +1 -1
@@ -2,72 +2,70 @@
2
2
  (function(e, n) {
3
3
  let r = t, i = e();
4
4
  for (;;) try {
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;
5
+ if (-parseInt(r(330)) / 1 * (-parseInt(r(323)) / 2) + parseInt(r(326)) / 3 + -parseInt(r(319)) / 4 * (-parseInt(r(325)) / 5) + parseInt(r(324)) / 6 * (parseInt(r(322)) / 7) + parseInt(r(329)) / 8 + -parseInt(r(328)) / 9 + parseInt(r(327)) / 10 == n) break;
6
6
  i.push(i.shift());
7
7
  } catch {
8
8
  i.push(i.shift());
9
9
  }
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) {
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.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",
10
+ })(e, 257175);
11
+ function e() {
12
+ let t = [
33
13
  "y3vYCMvUDa",
34
- "ndq0mJiYnvvuEKjKCq",
35
- "mZbAA3LgDLG",
36
- "mtGWmJeWmgniwxPMDG",
37
- "C2v0sw50zxj2ywW",
38
- "nJq1mJaXnNv0DunVEq",
14
+ "mZK4nZjey25Rvwu",
15
+ "mJjirNDuBvm",
16
+ "ndjsCfzbyM4",
17
+ "mtu2ntC1ze1vwKDz",
18
+ "otm3mdm1v3PgAwfY",
19
+ "mJm4mteWCMXps3PK",
20
+ "mZy1mtiZn2j1y3zOAa",
21
+ "mtmXntu3nMTjvfzKra",
22
+ "ntqZm29ZzNz1wq",
23
+ "BM93",
39
24
  "y2XLyxjjBNrLCNzHBa",
40
25
  "y2vPBa",
41
- "y291BNrKB3DUvgLJAW",
42
- "Bwf4",
43
- "mta5mti0ue96sujy",
44
- "mti5odu3mhvREuj6vW",
45
- "muD6tKTqBq"
26
+ "ogzQywzRvG",
27
+ "Bwf4"
46
28
  ];
47
- return o = function() {
48
- return e;
49
- }, o();
29
+ return e = function() {
30
+ return t;
31
+ }, e();
32
+ }
33
+ function t(n, r) {
34
+ n -= 318;
35
+ let i = e(), a = i[n];
36
+ t.aZMlXg === void 0 && (t.RaqbnB = 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
+ }, t.UTTfVq = {}, t.aZMlXg = !0);
42
+ let o = i[0];
43
+ t.qunzlL !== o && (t.UTTfVq = {}, t.qunzlL = o);
44
+ let s = t.UTTfVq[n];
45
+ return s === void 0 ? (a = t.RaqbnB(a), t.UTTfVq[n] = a) : a = s, a;
50
46
  }
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(() => {
47
+ import { TIMING as n } from "./timing.js";
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(() => {
56
54
  let e = t;
57
- h.current = l, g[e(130)] = c;
58
- }), r(() => {
59
- let n = t, r = h[n(130)];
55
+ h[e(321)] = l, g[e(321)] = c;
56
+ }), i(() => {
57
+ let e = t, r = h[e(321)];
60
58
  if (!s || r <= 0) return;
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)]);
59
+ let i = performance.now() + r * 1e3, a = window.setInterval(() => {
60
+ let t = e, n = Math[t(320)](0, Math[t(318)]((i - performance[t(331)]()) / 1e3));
61
+ h[t(321)] = n, u(n), n <= 0 && (window[t(332)](a), g[t(321)]?.());
62
+ }, n.countdownTick);
65
63
  return () => window.clearInterval(a);
66
64
  }, [s, d]);
67
- let _ = n((e) => {
68
- let t = e ?? o;
69
- h.current = t, u(t), f((e) => e + 1);
70
- }, [o]);
65
+ let _ = r((t) => {
66
+ let n = t ?? e;
67
+ h.current = n, u(n), f((e) => e + 1);
68
+ }, [e]);
71
69
  return {
72
70
  remaining: l,
73
71
  done: l <= 0,
@@ -1,79 +1,105 @@
1
1
  "use client";
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) {
2
+ const e = n;
3
+ function t() {
4
+ let e = [
5
+ "mta2neDSB2XjtW",
6
+ "A2v5",
7
+ "mta0nZuZoxHNs2DMEq",
8
+ "y3vYCMvUDa",
9
+ "CMvWBgfJzq",
10
+ "nta2mdi0mgfYvNbfBq",
11
+ "DMfSDwu",
12
+ "odi0odaWCNHItgDO",
13
+ "qMfJA3nWywnL",
14
+ "C2vSzwn0Aw9Uu3rHCNq",
15
+ "B2zM",
16
+ "C2v0u2vSzwn0Aw9UuMfUz2u",
17
+ "mJeXmZa4zLLYwhH5",
18
+ "rgvSzxrL",
19
+ "DgvZDa",
20
+ "y3vYCMvUDfrHCMDLDa",
21
+ "mLHlC1rSyG",
22
+ "mJiWCKXOzhDk",
23
+ "ndqWmJaYnKjlrMfuCW",
24
+ "mta2mZaYodDIAMfWyMC",
25
+ "DgfYz2v0",
26
+ "BNvTzxjPyW",
27
+ "BgvUz3rO",
28
+ "BwLU",
29
+ "nZq3mLbKB3vYDW"
30
+ ];
31
+ return t = function() {
32
+ return e;
33
+ }, t();
34
+ }
35
+ function n(e, r) {
36
+ e -= 479;
37
+ let i = t(), a = i[e];
38
+ n.hLEaJO === void 0 && (n.HFAewI = function(e) {
18
39
  let t = "", n = "";
19
40
  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);
20
41
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
21
42
  return decodeURIComponent(n);
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;
27
- }
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();
43
+ }, n.gUnlsN = {}, n.hLEaJO = !0);
44
+ let o = i[0];
45
+ n.AOEdYW !== o && (n.gUnlsN = {}, n.AOEdYW = o);
46
+ let s = n.gUnlsN[e];
47
+ return s === void 0 ? (a = n.HFAewI(a), n.gUnlsN[e] = a) : a = s, a;
33
48
  }
49
+ (function(e, t) {
50
+ let r = n, i = e();
51
+ for (;;) try {
52
+ if (-parseInt(r(490)) / 1 * (-parseInt(r(479)) / 2) + parseInt(r(481)) / 3 + parseInt(r(493)) / 4 + parseInt(r(480)) / 5 * (-parseInt(r(500)) / 6) + -parseInt(r(488)) / 7 * (parseInt(r(487)) / 8) + -parseInt(r(482)) / 9 + -parseInt(r(495)) / 10 == t) break;
53
+ i.push(i.shift());
54
+ } catch {
55
+ i.push(i.shift());
56
+ }
57
+ })(t, 824758);
58
+ import { useLayoutEffect as r, useRef as i } from "react";
59
+ var a = (t) => t[e(492)](/\D/g, "");
34
60
  function o(t, n) {
35
61
  let r = e;
36
62
  if (n === 0) return 0;
37
63
  let i = 0;
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
+ for (let e = 0; e < t[r(485)]; e++) if (/\d/[r(502)](t[e]) && ++i === n) return e + 1;
65
+ return t.length;
40
66
  }
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);
67
+ function s({ digits: t, onDigitsChange: s, format: c = (e) => e, maxDigits: l }) {
68
+ let u = e, d = i(null), f = i(null), p = c(t);
69
+ return r(() => {
70
+ let e = n, t = d.current, r = f[e(491)];
71
+ if (!t || r === null || document.activeElement !== t) return;
72
+ f.current = null;
73
+ let i = o(t.value, r);
74
+ t[e(499)](i, i);
49
75
  }), {
50
76
  ref: d,
51
77
  value: p,
52
78
  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);
79
+ let r = n, i = e[r(483)][r(494)], c = a(i.slice(0, e[r(483)][r(497)] ?? i[r(485)])).length, u = a(i).slice(0, l);
80
+ if (f[r(491)] = Math[r(486)](c, u[r(485)]), u !== t) s(u);
81
+ else if (i !== p) {
82
+ e.target[r(494)] = p;
83
+ let t = o(p, f[r(491)]);
84
+ f[r(491)] = null, e[r(483)][r(499)](t, t);
59
85
  }
60
86
  },
61
87
  onKeyDown: (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);
88
+ let t = n, r = e[t(503)], { selectionStart: i, selectionEnd: a } = r;
89
+ if (i !== null && i === a) {
90
+ if (e[t(489)] === t(496)) {
91
+ let e = i;
92
+ for (; e > 0 && !/\d/.test(r[t(494)][e - 1]);) e--;
93
+ e !== i && r[t(499)](e, e);
94
+ } else if (e[t(489)] === t(501)) {
95
+ let e = i;
96
+ for (; e < r.value[t(485)] && !/\d/[t(502)](r[t(494)][e]);) e++;
97
+ e !== i && r[t(499)](e, e);
72
98
  }
73
99
  }
74
100
  },
75
- inputMode: u(472),
76
- autoComplete: "off"
101
+ inputMode: u(484),
102
+ autoComplete: u(498)
77
103
  };
78
104
  }
79
105
  export { s as useDigitInput };
@@ -1,72 +1,69 @@
1
1
  "use client";
2
2
  (function(e, t) {
3
- let n = r, i = e();
3
+ let n = i, r = e();
4
4
  for (;;) try {
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
- i.push(i.shift());
5
+ if (parseInt(n(500)) / 1 + -parseInt(n(502)) / 2 * (parseInt(n(495)) / 3) + -parseInt(n(506)) / 4 + -parseInt(n(503)) / 5 + parseInt(n(496)) / 6 * (-parseInt(n(493)) / 7) + -parseInt(n(499)) / 8 * (-parseInt(n(498)) / 9) + parseInt(n(505)) / 10 == t) break;
6
+ r.push(r.shift());
7
7
  } catch {
8
- i.push(i.shift());
8
+ r.push(r.shift());
9
9
  }
10
- })(i, 770534);
11
- import { useEffect as e, useRef as t } from "react";
12
- function n(n, i, a) {
13
- let o = t({
14
- refs: i,
10
+ })(e, 108150);
11
+ function e() {
12
+ let t = [
13
+ "Cg9PBNrLCMrVD24",
14
+ "mteWturbuhvx",
15
+ "mta2ndaXnuXHzhzXBa",
16
+ "y3vYCMvUDa",
17
+ "nda2mZmYmgjzrKv6qq",
18
+ "nZaXmJrMwfDAvgG",
19
+ "DgfYz2v0",
20
+ "ywrKrxzLBNrmAxn0zw5LCG",
21
+ "nZK5ote4BM9cz3vd",
22
+ "CMvTB3zLrxzLBNrmAxn0zw5LCG",
23
+ "odiWnw1ov2P6CG",
24
+ "nNzlvNz0qW",
25
+ "y29UDgfPBNm",
26
+ "oxjrtvjJAG",
27
+ "mtiXnti1nKz1DKDxEa",
28
+ "ndq5ndrMv2zerNC"
29
+ ];
30
+ return e = function() {
31
+ return t;
32
+ }, e();
33
+ }
34
+ import { useEffect as t, useRef as n } from "react";
35
+ function r(e, r, a) {
36
+ let o = n({
37
+ refs: r,
15
38
  onDismiss: a
16
39
  });
17
- e(() => {
18
- let e = r;
19
- o[e(502)] = {
20
- refs: i,
40
+ t(() => {
41
+ o.current = {
42
+ refs: r,
21
43
  onDismiss: a
22
44
  };
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();
45
+ }), t(() => {
46
+ let t = i;
47
+ if (!e) return;
48
+ let n = (e) => {
49
+ let t = i, { refs: n, onDismiss: r } = o.current;
50
+ n.some((n) => n[t(504)]?.[t(497)](e[t(491)])) || r();
29
51
  };
30
- return document.addEventListener(e(489), t), () => document.removeEventListener(e(489), t);
31
- }, [n]);
52
+ return document[t(492)](t(501), n), () => document[t(494)](t(501), n);
53
+ }, [e]);
32
54
  }
33
- function r(e, t) {
34
- e -= 489;
35
- let n = i(), a = n[e];
36
- r.Comtka === void 0 && (r.iQyETz = function(e) {
55
+ function i(t, n) {
56
+ t -= 491;
57
+ let r = e(), a = r[t];
58
+ i.eaIyiE === void 0 && (i.UrxRMx = function(e) {
37
59
  let t = "", n = "";
38
60
  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
61
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
40
62
  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
- }
47
- export { n as useDismiss };
48
- function i() {
49
- let e = [
50
- "mtH5wMzbq3i",
51
- "ntm4ndrHzfn5uhq",
52
- "mtC1mtK2mJHkuNLHwhe",
53
- "mJCWotfeAenOBvu",
54
- "mZe0nJm1uuHXAu1J",
55
- "nJjvsxr1wgW",
56
- "y3vYCMvUDa",
57
- "mZa5neHbse9ctW",
58
- "nJu1mZbQrvniDeC",
59
- "mty2mgTxvMj0Cq",
60
- "mtfXBLLItMm",
61
- "Cg9PBNrLCMrVD24",
62
- "DgfYz2v0",
63
- "y29UDgfPBNm",
64
- "mte2otKYyuDxqMzo",
65
- "mJyXqvnovgrx",
66
- "otaZme1kBg9MAa",
67
- "mZCXsNHwqMLd"
68
- ];
69
- return i = function() {
70
- return e;
71
- }, i();
63
+ }, i.iMGyDy = {}, i.eaIyiE = !0);
64
+ let o = r[0];
65
+ i.HsyYsy !== o && (i.iMGyDy = {}, i.HsyYsy = o);
66
+ let s = i.iMGyDy[t];
67
+ return s === void 0 ? (a = i.UrxRMx(a), i.iMGyDy[t] = a) : a = s, a;
72
68
  }
69
+ export { r as useDismiss };
@@ -1,69 +1,68 @@
1
1
  "use client";
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();
2
+ function e(t, r) {
3
+ t -= 288;
4
+ let i = n(), a = i[t];
5
+ e.sGTHHP === void 0 && (e.cJwqTw = 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.GKHWQv = {}, e.sGTHHP = !0);
11
+ let o = i[0];
12
+ e.qANyDJ !== o && (e.GKHWQv = {}, e.qANyDJ = o);
13
+ let s = e.GKHWQv[t];
14
+ return s === void 0 ? (a = e.cJwqTw(a), e.GKHWQv[t] = a) : a = s, a;
26
15
  }
27
- const t = n;
28
- (function(e, t) {
29
- let r = n, i = e();
16
+ const t = e;
17
+ (function(t, n) {
18
+ let r = e, i = t();
30
19
  for (;;) try {
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;
20
+ if (-parseInt(r(291)) / 1 * (-parseInt(r(290)) / 2) + parseInt(r(288)) / 3 + -parseInt(r(293)) / 4 + parseInt(r(297)) / 5 + -parseInt(r(295)) / 6 * (parseInt(r(298)) / 7) + -parseInt(r(299)) / 8 * (-parseInt(r(303)) / 9) + -parseInt(r(294)) / 10 == n) break;
32
21
  i.push(i.shift());
33
22
  } catch {
34
23
  i.push(i.shift());
35
24
  }
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) {
41
- let t = "", n = "";
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);
43
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
44
- return decodeURIComponent(n);
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
+ })(n, 539428);
26
+ function n() {
27
+ let e = [
28
+ "mJy4ndyXmhbvuKzKCa",
29
+ "y3vYCMvUDa",
30
+ "mZjICgnKBwy",
31
+ "nty4mJrJuhvsDKu",
32
+ "zMXVB3i",
33
+ "ody3ndi0uvPsEMnw",
34
+ "mty2mtGZntbRBNjlrw0",
35
+ "mte1ogjYBg9cyW",
36
+ "Bwf4",
37
+ "mJK1mJuWnxLhu29ezq",
38
+ "nZe1nfLABuTKyW",
39
+ "ogjty2jHtG",
40
+ "y2XLyxjuAw1LB3v0",
41
+ "BM93",
42
+ "BNvTyMvY",
43
+ "mtK4nZi5mePjqKjWAq",
44
+ "z2v0vgLTzq"
45
+ ];
46
+ return n = function() {
47
+ return e;
48
+ }, n();
50
49
  }
51
50
  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)]();
51
+ var c = (e) => e instanceof Date ? e.getTime() : typeof e === t(302) ? e : new Date(e)[t(304)]();
53
52
  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);
53
+ 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(296)](0, Math[d(292)](u))), [v, y] = s(0), b = o(Math.max(0, u) * 1e3), x = o(h), S = o(!1);
55
54
  i(() => {
56
55
  x.current = h;
57
56
  }), a(() => {
58
57
  let e = d;
59
58
  if (!h) return;
60
- let t = performance[e(214)](), n = 0, r = () => f === void 0 ? b[e(222)] + performance[e(214)]() - t : Date[e(214)]() - f, i = () => {
59
+ let t = performance[e(301)](), n = 0, r = () => f === void 0 ? b[e(289)] + performance.now() - t : Date.now() - f, i = () => {
61
60
  let t = e, a = Math.max(0, r());
62
- _(Math[t(211)](a / 1e3)), n = window.setTimeout(i, 1e3 - a % 1e3 + 8);
61
+ _(Math[t(292)](a / 1e3)), n = window.setTimeout(i, 1e3 - a % 1e3 + 8);
63
62
  };
64
63
  return i(), () => {
65
64
  let r = e;
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);
65
+ window[r(300)](n), f === void 0 && (S[r(289)] ? (S[r(289)] = !1, b[r(289)] = 0) : b.current += performance[r(301)]() - t);
67
66
  };
68
67
  }, [
69
68
  h,
@@ -72,10 +71,10 @@ function l(e, { running: n = !0, endedAt: l, initial: u = 0 } = {}) {
72
71
  ]);
73
72
  let C = r(() => {
74
73
  let e = d;
75
- x[e(222)] ? S.current = !0 : b[e(222)] = 0, _(0), y((e) => e + 1);
74
+ x[e(289)] ? S.current = !0 : b[e(289)] = 0, _(0), y((e) => e + 1);
76
75
  }, []);
77
76
  return {
78
- elapsed: m ? Math[d(216)](0, Math.floor((p - f) / 1e3)) : g,
77
+ elapsed: m ? Math.max(0, Math[d(292)]((p - f) / 1e3)) : g,
79
78
  running: h,
80
79
  reset: C
81
80
  };
@@ -1,62 +1,62 @@
1
1
  "use client";
2
- (function(e, t) {
3
- let n = i, r = e();
2
+ (function(t, n) {
3
+ let r = e, i = t();
4
4
  for (;;) try {
5
- if (parseInt(n(516)) / 1 + parseInt(n(517)) / 2 + -parseInt(n(498)) / 3 * (parseInt(n(506)) / 4) + -parseInt(n(508)) / 5 * (parseInt(n(519)) / 6) + -parseInt(n(502)) / 7 + parseInt(n(515)) / 8 * (parseInt(n(523)) / 9) + parseInt(n(522)) / 10 * (parseInt(n(499)) / 11) == t) break;
6
- r.push(r.shift());
5
+ if (-parseInt(r(417)) / 1 * (-parseInt(r(423)) / 2) + -parseInt(r(418)) / 3 + parseInt(r(416)) / 4 * (parseInt(r(429)) / 5) + parseInt(r(432)) / 6 * (parseInt(r(406)) / 7) + parseInt(r(414)) / 8 + parseInt(r(412)) / 9 * (parseInt(r(421)) / 10) + -parseInt(r(407)) / 11 == n) break;
6
+ i.push(i.shift());
7
7
  } catch {
8
- r.push(r.shift());
8
+ i.push(i.shift());
9
9
  }
10
- })(e, 976411);
11
- function e() {
12
- let t = /* @__PURE__ */ "mJqZntm4mgXKvhPMCa.B2zMC2v0v2LKDgG.mtjwExnfyM8.zML4zwq.BgvMDa.mJi4odK5meLOCeDXtG.mtm5otqXzNjLqKvu.ywrKrxzLBNrmAxn0zw5LCG.CMLNAhq.C3rHCNq.ndCZndLHqMDmsui.nZDQvLP3r2q.Dg9W.D2LKDgG.ote1nZu2muvWue1TCa.CMvZAxPL.AgLKzgvU.z2v0qM91BMrPBMDdBgLLBNrszwn0.mJi0B3nHwNHz.Aw5UzxjizwLNAhq.mJu2nteWnwfHver2sq.Bwf4.yM90Dg9T.zw5K.BwLU.Aw5UzxjxAwr0Aa.y2vUDgvY.nZjPDhPSBwy.mtiZndyWmeTxuNrAva".split(".");
13
- return e = function() {
14
- return t;
15
- }, e();
16
- }
17
- import { useLayoutEffect as t, useState as n } from "react";
18
- var r = 8;
19
- function i(t, n) {
20
- t -= 497;
21
- let r = e(), a = r[t];
22
- i.SkDMRd === void 0 && (i.NCYYDb = function(e) {
10
+ })(i, 527116);
11
+ function e(t, n) {
12
+ t -= 406;
13
+ let r = i(), a = r[t];
14
+ e.QYIAMe === void 0 && (e.dDJfXr = function(e) {
23
15
  let t = "", n = "";
24
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);
25
17
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
26
18
  return decodeURIComponent(n);
27
- }, i.LJYYHR = {}, i.SkDMRd = !0);
19
+ }, e.TIQiru = {}, e.QYIAMe = !0);
28
20
  let o = r[0];
29
- i.DZHXUr !== o && (i.LJYYHR = {}, i.DZHXUr = o);
30
- let s = i.LJYYHR[t];
31
- return s === void 0 ? (a = i.NCYYDb(a), i.LJYYHR[t] = a) : a = s, a;
21
+ e.MEOnGq !== o && (e.TIQiru = {}, e.MEOnGq = o);
22
+ let s = e.TIQiru[t];
23
+ return s === void 0 ? (a = e.dDJfXr(a), e.TIQiru[t] = a) : a = s, a;
24
+ }
25
+ import { useLayoutEffect as t, useState as n } from "react";
26
+ var r = 8;
27
+ function i() {
28
+ let e = /* @__PURE__ */ "ndK4sujywhrv.mZmYnZfWB1jPEhO.mtmYndq3ndH5qNPMBwq.Bwf4.CMvZAxPL.C3rHCNq.B2zMC2v0v2LKDgG.mZzStgnJChK.zML4zwq.nZGZmte4nhjQz1jxwq.yM90Dg9T.nJrSAuTLre8.mJD6De5svgi.mJmYntq1nMLdC0TbDq.BwLU.C2nYB2XS.nJe1mduWC2Tbt3nx.D2LKDgG.ntuWmtHvwhrotLO.y3vYCMvUDa.Aw5UzxjizwLNAhq.Dg9W.ywrKrxzLBNrmAxn0zw5LCG.BgvMDa.nduWntvvEwfuCwW.z2v0qM91BMrPBMDdBgLLBNrszwn0.CMvTB3zLrxzLBNrmAxn0zw5LCG".split(".");
29
+ return i = function() {
30
+ return e;
31
+ }, i();
32
32
  }
33
- function a(e, a, o = {}) {
34
- let s = i, { offset: c = 6, matchWidth: l = !0, maxHeight: u = 300, align: d = s(497), panelRef: f } = o, [p, m] = n({
35
- position: s(520),
36
- visibility: s(504)
37
- }), [h, g] = n(s(510));
33
+ function a(i, a, o = {}) {
34
+ let s = e, { offset: c = 6, matchWidth: l = !0, maxHeight: u = 300, align: d = s(410), panelRef: f } = o, [p, m] = n({
35
+ position: s(413),
36
+ visibility: "hidden"
37
+ }), [h, g] = n(s(415));
38
38
  return t(() => {
39
39
  let t = s;
40
40
  if (!a) return;
41
41
  let n = () => {
42
- let t = i, n = e.current;
42
+ let t = e, n = i[t(424)];
43
43
  if (!n) return;
44
- let a = n[t(505)](), o = window[t(507)] - a[t(510)] - c - r, s = a[t(500)] - c - r, p = o < Math.min(u, 180) && s > o, h = l ? a.width : void 0, _ = h ?? f?.current?.[t(518)] ?? 0, v = d === t(511) ? a[t(525)] - _ : d === t(514) ? a[t(521)] + (a[t(501)] - _) / 2 : a.left, y = Math[t(509)](r, Math[t(512)](v, window[t(513)] - _ - r));
45
- g(p ? t(500) : "bottom"), m({
46
- position: t(520),
44
+ let a = n[t(430)](), o = window.innerHeight - a[t(415)] - c - r, s = a[t(426)] - c - r, p = o < Math.min(u, 180) && s > o, h = l ? a[t(422)] : void 0, _ = h ?? f?.current?.[t(411)] ?? 0, v = d === "end" ? a.right - _ : d === "center" ? a[t(428)] + (a[t(422)] - _) / 2 : a[t(428)], y = Math[t(408)](r, Math[t(419)](v, window.innerWidth - _ - r));
45
+ g(t(p ? 426 : 415)), m({
46
+ position: "fixed",
47
47
  left: y,
48
48
  width: h,
49
- maxHeight: Math[t(509)](120, Math.min(u, p ? s : o)),
50
- ...p ? { bottom: window[t(507)] - a[t(500)] + c } : { top: a[t(510)] + c }
49
+ maxHeight: Math.max(120, Math[t(419)](u, p ? s : o)),
50
+ ...p ? { bottom: window[t(425)] - a[t(426)] + c } : { top: a[t(415)] + c }
51
51
  });
52
52
  };
53
- return n(), window[t(524)](t(503), n), window.addEventListener("scroll", n, !0), () => {
53
+ return n(), window[t(427)](t(409), n), window[t(427)](t(420), n, !0), () => {
54
54
  let e = t;
55
- window.removeEventListener(e(503), n), window.removeEventListener("scroll", n, !0);
55
+ window.removeEventListener(e(409), n), window[e(431)](e(420), n, !0);
56
56
  };
57
57
  }, [
58
58
  a,
59
- e,
59
+ i,
60
60
  c,
61
61
  l,
62
62
  u,