@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,90 +1,87 @@
1
1
  "use client";
2
- function e() {
3
- let t = [
4
- "BwLU",
2
+ const e = i;
3
+ (function(e, t) {
4
+ let n = i, r = e();
5
+ for (;;) try {
6
+ if (-parseInt(n(262)) / 1 + parseInt(n(272)) / 2 * (-parseInt(n(265)) / 3) + -parseInt(n(267)) / 4 + parseInt(n(269)) / 5 + parseInt(n(280)) / 6 + -parseInt(n(279)) / 7 + parseInt(n(270)) / 8 * (parseInt(n(264)) / 9) == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(a, 843360);
12
+ var t = Math.PI * 2, n = 1e-6, r = (t) => (Math[e(271)](t * 1e3) / 1e3)[e(275)]();
13
+ function i(e, t) {
14
+ e -= 261;
15
+ let n = a(), r = n[e];
16
+ i.ePpxrW === void 0 && (i.ojJeJO = function(e) {
17
+ let t = "", n = "";
18
+ 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);
19
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
20
+ return decodeURIComponent(n);
21
+ }, i.KalUeR = {}, i.ePpxrW = !0);
22
+ let o = n[0];
23
+ i.McVpIR !== o && (i.KalUeR = {}, i.McVpIR = o);
24
+ let s = i.KalUeR[e];
25
+ return s === void 0 ? (r = i.ojJeJO(r), i.KalUeR[e] = r) : r = s, r;
26
+ }
27
+ function a() {
28
+ let e = [
29
+ "Bwf4",
30
+ "mJyXodK4mLDLBujWra",
31
+ "mteZn2TXtMDRqq",
32
+ "idaG",
33
+ "ndC2ntu0mejls0rUrG",
34
+ "idaGmcaXia",
35
+ "mZK4nJy5nvbfBwzmCG",
36
+ "odbHCvfeqxe",
37
+ "CM91BMq",
38
+ "ntq2mNL4tLviEG",
5
39
  "ideG",
40
+ "BwLU",
6
41
  "Dg9tDhjPBMC",
7
- "C3fYDa",
8
- "mtm1ndbWzvbXEfi",
9
- "oxDsBLHeAG",
10
- "nZeXody3mLjiDLjUyq",
11
- "mJGYnZK3mtbuDMPQsKS",
12
- "idaG",
13
- "idaGmsaXia",
14
- "yxnPBG",
15
- "otuWs1Lfq0j1",
16
42
  "y29Z",
17
- "ywjZ",
18
- "nJK2mdq2mKXfDfjrra",
19
- "ntqZotG0mhHArgn5sW",
20
- "C2LU",
21
- "Bwf4",
22
- "mtq5mZzVEhnrDMS",
23
- "idaGmcaXia",
24
43
  "idaGmsaWia",
25
- "mZbluw9xAva",
26
- "ndq1nZHyuwLsDwm"
44
+ "yxnPBG",
45
+ "mtaYmdC1otzqyM9HqwS",
46
+ "ntiYoty1nfHYBerNra",
47
+ "C2LU",
48
+ "idaGmsaXia",
49
+ "nta5mdzrs2jzugK"
27
50
  ];
28
- return e = function() {
29
- return t;
30
- }, e();
51
+ return a = function() {
52
+ return e;
53
+ }, a();
31
54
  }
32
- function t(n, r) {
33
- n -= 455;
34
- let i = e(), a = i[n];
35
- t.zyhgXy === void 0 && (t.pWQklO = function(e) {
36
- let t = "", n = "";
37
- 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);
38
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
39
- return decodeURIComponent(n);
40
- }, t.lHPWPl = {}, t.zyhgXy = !0);
41
- let o = i[0];
42
- t.aTPOXA !== o && (t.lHPWPl = {}, t.aTPOXA = o);
43
- let s = t.lHPWPl[n];
44
- return s === void 0 ? (a = t.pWQklO(a), t.lHPWPl[n] = a) : a = s, a;
45
- }
46
- const n = t;
47
- (function(e, n) {
48
- let r = t, i = e();
49
- for (;;) try {
50
- if (parseInt(r(477)) / 1 + parseInt(r(458)) / 2 * (-parseInt(r(457)) / 3) + parseInt(r(463)) / 4 * (-parseInt(r(470)) / 5) + -parseInt(r(473)) / 6 + parseInt(r(474)) / 7 + -parseInt(r(465)) / 8 + parseInt(r(464)) / 9 * (parseInt(r(466)) / 10) == n) break;
51
- i.push(i.shift());
52
- } catch {
53
- i.push(i.shift());
54
- }
55
- })(e, 704076);
56
- var r = Math.PI * 2, i = 1e-6, a = (e) => (Math.round(e * 1e3) / 1e3)[n(461)]();
57
- function o({ cx: e, cy: t, outer: o, inner: s, a0: c, a1: l, gap: u = 0, cornerRadius: d = 0 }) {
58
- let f = n, p = Math[f(476)](0, o), m = Math[f(476)](0, Math[f(459)](s, p)), h = l - c;
59
- if (!(h > i) || p <= i) return "";
60
- let g = (n, r) => a(e + n * Math[f(475)](r)) + "," + a(t - n * Math[f(471)](r));
61
- if (h >= r - i) {
62
- let e = "M" + g(p, 0) + "A" + a(p) + "," + a(p) + f(468) + g(p, Math.PI) + "A" + a(p) + "," + a(p) + f(468) + g(p, 0) + "Z";
63
- return m <= i ? e : e + "M" + g(m, 0) + "A" + a(m) + "," + a(m) + f(456) + g(m, Math.PI) + "A" + a(m) + "," + a(m) + f(456) + g(m, 0) + "Z";
55
+ function o({ cx: i, cy: a, outer: o, inner: s, a0: c, a1: l, gap: u = 0, cornerRadius: d = 0 }) {
56
+ let f = e, p = Math.max(0, o), m = Math[f(263)](0, Math[f(274)](s, p)), h = l - c;
57
+ if (!(h > n) || p <= n) return "";
58
+ let g = (e, t) => r(i + e * Math[f(281)](t)) + "," + r(a - e * Math[f(276)](t));
59
+ if (h >= t - n) {
60
+ let e = "M" + g(p, 0) + "A" + r(p) + "," + r(p) + f(261) + g(p, Math.PI) + "A" + r(p) + "," + r(p) + " 0 1 1 " + g(p, 0) + "Z";
61
+ return m <= n ? e : e + "M" + g(m, 0) + "A" + r(m) + "," + r(m) + f(277) + g(m, Math.PI) + "A" + r(m) + "," + r(m) + " 0 1 0 " + g(m, 0) + "Z";
64
62
  }
65
- let _ = h / 2, v = _ >= Math.PI / 2 ? 1 : Math[f(475)](_), y = Math[f(476)](0, u / 2);
66
- if (p * v <= y + i) return "";
67
- let b = p - m, x = m * v <= y + i, S = x ? y / Math[f(475)](_) : 0, C = v < 1 ? (p * v - y) / (1 + v) : Infinity, w = v < 1 ? (m * v - y) / (1 - v) : Infinity, T = Math.max(0, Math.min(d, (x ? p - S : b) / 2, C)), E = x ? 0 : Math[f(476)](0, Math[f(459)](d, b / 2, w)), D = (n, r, i, o) => {
68
- let s = f, c = e + i * Math.sin(n) + r * o * Math[s(471)](n), l = t - i * Math.cos(n) + r * o * Math[s(475)](n);
69
- return a(c) + "," + a(l);
70
- }, O = (e) => Math[f(459)](1, Math[f(476)](0, e)), k = (e) => Math[f(462)](Math.max(0, e)), A = k((p - T) ** 2 - (y + T) ** 2), j = Math[f(469)](O((y + T) / (p - T))), M = c + j, N = l - j, P = "M" + D(c, 1, A, y);
71
- if (T > i && (P += "A" + a(T) + "," + a(T) + f(455) + g(p, M)), N - M > i && (P += "A" + a(p) + "," + a(p) + f(467) + +(N - M > Math.PI) + f(460) + g(p, N)), T > i && (P += "A" + a(T) + "," + a(T) + f(455) + D(l, -1, A, y)), x) return P + "L" + g(S, c + _) + "Z";
72
- let F = k((m + E) ** 2 - (y + E) ** 2), I = Math[f(469)](O((y + E) / (m + E))), L = c + I, R = l - I;
73
- return P += "L" + D(l, -1, F, y), E > i && (P += "A" + a(E) + "," + a(E) + f(455) + g(m, R)), R - L > i && (P += "A" + a(m) + "," + a(m) + f(467) + +(R - L > Math.PI) + f(467) + g(m, L)), E > i && (P += "A" + a(E) + "," + a(E) + " 0 0 1 " + D(c, 1, F, y)), P + "Z";
63
+ let _ = h / 2, v = _ >= Math.PI / 2 ? 1 : Math.sin(_), y = Math[f(263)](0, u / 2);
64
+ if (p * v <= y + n) return "";
65
+ let b = p - m, x = m * v <= y + n, S = x ? y / Math.sin(_) : 0, C = v < 1 ? (p * v - y) / (1 + v) : Infinity, w = v < 1 ? (m * v - y) / (1 - v) : Infinity, T = Math.max(0, Math[f(274)](d, (x ? p - S : b) / 2, C)), E = x ? 0 : Math[f(263)](0, Math[f(274)](d, b / 2, w)), D = (e, t, n, o) => {
66
+ let s = f, c = i + n * Math.sin(e) + t * o * Math[s(276)](e), l = a - n * Math.cos(e) + t * o * Math.sin(e);
67
+ return r(c) + "," + r(l);
68
+ }, O = (e) => Math[f(274)](1, Math[f(263)](0, e)), k = (e) => Math.sqrt(Math[f(263)](0, e)), A = k((p - T) ** 2 - (y + T) ** 2), j = Math[f(278)](O((y + T) / (p - T))), M = c + j, N = l - j, P = "M" + D(c, 1, A, y);
69
+ if (T > n && (P += "A" + r(T) + "," + r(T) + " 0 0 1 " + g(p, M)), N - M > n && (P += "A" + r(p) + "," + r(p) + f(266) + +(N - M > Math.PI) + f(273) + g(p, N)), T > n && (P += "A" + r(T) + "," + r(T) + f(268) + D(l, -1, A, y)), x) return P + "L" + g(S, c + _) + "Z";
70
+ let F = k((m + E) ** 2 - (y + E) ** 2), I = Math.asin(O((y + E) / (m + E))), L = c + I, R = l - I;
71
+ return P += "L" + D(l, -1, F, y), E > n && (P += "A" + r(E) + "," + r(E) + f(268) + g(m, R)), R - L > n && (P += "A" + r(m) + "," + r(m) + f(266) + +(R - L > Math.PI) + f(266) + g(m, L)), E > n && (P += "A" + r(E) + "," + r(E) + f(268) + D(c, 1, F, y)), P + "Z";
74
72
  }
75
- function s(e, n, r, i) {
76
- let a = (e, t, n) => 3 * e * n * (1 - n) ** 2 + 3 * t * n * n * (1 - n) + n ** 3;
77
- return (o) => {
78
- let s = t;
79
- if (o <= 0) return 0;
80
- if (o >= 1) return 1;
81
- let c = 0, l = 1, u = o;
73
+ function s(e, t, n, r) {
74
+ let i = (e, t, n) => 3 * e * n * (1 - n) ** 2 + 3 * t * n * n * (1 - n) + n ** 3;
75
+ return (a) => {
76
+ if (a <= 0) return 0;
77
+ if (a >= 1) return 1;
78
+ let o = 0, s = 1, c = a;
82
79
  for (let t = 0; t < 24; t++) {
83
- let t = a(e, r, u);
84
- if (Math[s(472)](t - o) < 1e-5) break;
85
- t < o ? c = u : l = u, u = (c + l) / 2;
80
+ let t = i(e, n, c);
81
+ if (Math.abs(t - a) < 1e-5) break;
82
+ t < a ? o = c : s = c, c = (o + s) / 2;
86
83
  }
87
- return a(n, i, u);
84
+ return i(t, r, c);
88
85
  };
89
86
  }
90
87
  export { s as cubicBezier, o as segmentPath };
@@ -1,91 +1,95 @@
1
1
  "use client";
2
- function e(t, r) {
3
- t -= 142;
4
- let i = n(), a = i[t];
5
- e.iqUhwS === void 0 && (e.beTAiG = 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.HvqaCc = {}, e.iqUhwS = !0);
11
- let o = i[0];
12
- e.xFLykm !== o && (e.HvqaCc = {}, e.xFLykm = o);
13
- let s = e.HvqaCc[t];
14
- return s === void 0 ? (a = e.beTAiG(a), e.HvqaCc[t] = a) : a = s, a;
15
- }
16
- (function(t, n) {
17
- let r = e, i = t();
2
+ (function(e, t) {
3
+ let n = s, r = e();
18
4
  for (;;) try {
19
- if (parseInt(r(145)) / 1 * (-parseInt(r(144)) / 2) + -parseInt(r(150)) / 3 * (-parseInt(r(149)) / 4) + parseInt(r(158)) / 5 + -parseInt(r(148)) / 6 * (parseInt(r(153)) / 7) + -parseInt(r(159)) / 8 + -parseInt(r(146)) / 9 + parseInt(r(142)) / 10 == n) break;
20
- i.push(i.shift());
5
+ if (parseInt(n(393)) / 1 * (-parseInt(n(382)) / 2) + parseInt(n(391)) / 3 + parseInt(n(373)) / 4 * (parseInt(n(392)) / 5) + -parseInt(n(379)) / 6 * (-parseInt(n(374)) / 7) + -parseInt(n(385)) / 8 * (parseInt(n(376)) / 9) + -parseInt(n(372)) / 10 * (parseInt(n(378)) / 11) + -parseInt(n(387)) / 12 * (-parseInt(n(384)) / 13) == t) break;
6
+ r.push(r.shift());
21
7
  } catch {
22
- i.push(i.shift());
8
+ r.push(r.shift());
23
9
  }
24
- })(n, 681100);
25
- import { cubicBezier as t } from "./arc.js";
26
- function n() {
27
- let e = [
28
- "mJi2mJm5tePRrNDP",
10
+ })(e, 687871);
11
+ function e() {
12
+ let t = [
13
+ "mJfsz3nyu0S",
29
14
  "AM9PBG",
30
- "BwfW",
31
- "ndjovg1dzMy",
32
- "y3vYCMvUDa",
15
+ "mteXntu1B3nxzLrZ",
33
16
  "z2v0",
17
+ "mtfotwfYv2m",
18
+ "mtu4ntGZmeTWtLbeza",
19
+ "A2v5",
20
+ "y3vYCMvUDa",
21
+ "nZm0vLbnCevI",
34
22
  "Dg9gAxHLza",
23
+ "mtu1nJe1mKnUENnOsG",
24
+ "nZi4uhLhCNLK",
25
+ "BwLU",
26
+ "mty4rK1nDKLm",
27
+ "BwfW",
35
28
  "AgfZ",
36
- "nta0ntC3mgrowuzjvq",
37
- "mJe4mtq0z1HYDu9L",
38
- "ntm0ntGXme5euvzYCW",
39
- "A2v5",
40
- "mtm0oefNvNfYrq",
41
- "nde3vxrfz3H3",
42
- "mJG0nZy1ne1YDunjAW",
43
29
  "y29SB3i",
44
- "ote2nJiWAwnUu3bQ",
45
- "mZzgs0fbqNu"
30
+ "mJe5oda2n3DitLrcrW",
31
+ "oty5mdvcuuDmvKi",
32
+ "mZe0mNHoCKzsuG",
33
+ "nZK0ntC5mhzry050uq",
34
+ "mte2C0riswvd"
46
35
  ];
47
- return n = function() {
48
- return e;
49
- }, n();
36
+ return e = function() {
37
+ return t;
38
+ }, e();
39
+ }
40
+ import { cubicBezier as t } from "./arc.js";
41
+ import { useEffect as n, useLayoutEffect as r, useRef as i, useState as a } from "react";
42
+ var o = t(.32, .72, 0, 1);
43
+ function s(t, n) {
44
+ t -= 372;
45
+ let r = e(), i = r[t];
46
+ s.cDwQPG === void 0 && (s.sJNwYK = function(e) {
47
+ let t = "", n = "";
48
+ 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);
49
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
50
+ return decodeURIComponent(n);
51
+ }, s.jzzkvz = {}, s.cDwQPG = !0);
52
+ let a = r[0];
53
+ s.wKxYWR !== a && (s.jzzkvz = {}, s.wKxYWR = a);
54
+ let o = s.jzzkvz[t];
55
+ return o === void 0 ? (i = s.sJNwYK(i), s.jzzkvz[t] = i) : i = o, i;
50
56
  }
51
- import { useEffect as r, useLayoutEffect as i, useRef as a, useState as o } from "react";
52
- var s = t(.32, .72, 0, 1);
53
- function c(t, { enter: n = 900, update: c = 600 } = {}) {
54
- let l = e, [u, d] = o(() => t[l(152)]((e) => ({
57
+ function c(e, { enter: t = 900, update: c = 600 } = {}) {
58
+ let l = s, [u, d] = a(() => e.map((e) => ({
55
59
  ...e,
56
60
  a0: 0,
57
61
  a1: 0
58
- }))), f = a(u), p = a(t);
59
- i(() => {
60
- let e = l;
61
- p[e(154)] = t;
62
+ }))), f = i(u), p = i(e);
63
+ r(() => {
64
+ let t = s;
65
+ p[t(381)] = e;
62
66
  });
63
- let m = a(!1), h = t[l(152)]((e) => e[l(143)] + ":" + e.a0[l(156)](5) + ":" + e.a1[l(156)](5) + ":" + e[l(147)])[l(151)]("|");
64
- return r(() => {
65
- let e = l, t = p[e(154)], r = !m[e(154)], i = new Map(f[e(154)][e(152)]((e) => [e.key, e])), a = new Set(t.map((t) => t[e(143)])), o = f[e(154)].filter((t) => !a[e(157)](t[e(143)]) && t.a1 - t.a0 > 1e-4)[e(152)]((e) => {
67
+ let m = i(!1), h = e[l(388)]((e) => e[l(380)] + ":" + e.a0[l(383)](5) + ":" + e.a1[l(383)](5) + ":" + e[l(390)])[l(375)]("|");
68
+ return n(() => {
69
+ let e = l, n = p[e(381)], r = !m.current, i = new Map(f[e(381)][e(388)]((t) => [t[e(380)], t])), a = new Set(n.map((e) => e.key)), s = f[e(381)].filter((t) => !a[e(389)](t[e(380)]) && t.a1 - t.a0 > 1e-4)[e(388)]((e) => {
66
70
  let t = (e.a0 + e.a1) / 2;
67
71
  return {
68
72
  ...e,
69
73
  a0: t,
70
74
  a1: t
71
75
  };
72
- }), u = [...t, ...o], h = u[e(152)]((t) => i[e(155)](t[e(143)]) ?? {
76
+ }), u = [...n, ...s], h = u[e(388)]((t) => i[e(377)](t[e(380)]) ?? {
73
77
  ...t,
74
78
  a1: t.a0
75
- }), g = r ? n : c, _ = 0, v = 0, y = (n) => {
79
+ }), g = r ? t : c, _ = 0, v = 0, y = (t) => {
76
80
  let r = e;
77
- v ||= n;
78
- let i = Math.min(1, (n - v) / g), a = s(i), o = i < 1 ? u[r(152)]((e, t) => ({
81
+ v ||= t;
82
+ let i = Math[r(386)](1, (t - v) / g), a = o(i), s = i < 1 ? u.map((e, t) => ({
79
83
  ...e,
80
84
  a0: h[t].a0 + (e.a0 - h[t].a0) * a,
81
85
  a1: h[t].a1 + (e.a1 - h[t].a1) * a
82
- })) : t;
83
- f.current = o, d(o), i < 1 ? _ = requestAnimationFrame(y) : m[r(154)] = !0;
86
+ })) : n;
87
+ f[r(381)] = s, d(s), i < 1 ? _ = requestAnimationFrame(y) : m.current = !0;
84
88
  };
85
89
  return _ = requestAnimationFrame(() => _ = requestAnimationFrame(y)), () => cancelAnimationFrame(_);
86
90
  }, [
87
91
  h,
88
- n,
92
+ t,
89
93
  c
90
94
  ]), u;
91
95
  }
@@ -1,111 +1,112 @@
1
1
  "use client";
2
- (function(e, t) {
3
- let n = i, r = e();
4
- for (;;) try {
5
- if (parseInt(n(176)) / 1 + -parseInt(n(181)) / 2 + parseInt(n(180)) / 3 + -parseInt(n(160)) / 4 * (parseInt(n(189)) / 5) + parseInt(n(169)) / 6 + parseInt(n(166)) / 7 + -parseInt(n(171)) / 8 == t) break;
6
- r.push(r.shift());
7
- } catch {
8
- r.push(r.shift());
9
- }
10
- })(h, 474237);
11
- import { TIMING as e } from "../../hooks/timing.js";
12
- import { usePresence as t } from "../../hooks/usePresence.js";
13
- import { useControllableState as n } from "../../hooks/useControllableState.js";
14
- import { cx as r } from "../../primitives/index.js";
15
- function i(e, t) {
16
- e -= 158;
17
- let n = h(), r = n[e];
18
- i.aWBxIk === void 0 && (i.vPExGf = function(e) {
2
+ function e(t, n) {
3
+ t -= 388;
4
+ let r = s(), i = r[t];
5
+ e.vGebYd === void 0 && (e.qNjwPc = function(e) {
19
6
  let t = "", n = "";
20
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);
21
8
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
22
9
  return decodeURIComponent(n);
23
- }, i.BPJCMx = {}, i.aWBxIk = !0);
24
- let a = n[0];
25
- i.SGeYxq !== a && (i.BPJCMx = {}, i.SGeYxq = a);
26
- let o = i.BPJCMx[e];
27
- return o === void 0 ? (r = i.vPExGf(r), i.BPJCMx[e] = r) : r = o, r;
10
+ }, e.kZBqQg = {}, e.vGebYd = !0);
11
+ let a = r[0];
12
+ e.WlRAzb !== a && (e.kZBqQg = {}, e.WlRAzb = a);
13
+ let o = e.kZBqQg[t];
14
+ return o === void 0 ? (i = e.qNjwPc(i), e.kZBqQg[t] = i) : i = o, i;
28
15
  }
29
- import { useFloating as a } from "../../hooks/useFloating.js";
30
- import { useDismiss as o } from "../../hooks/useDismiss.js";
31
- import { focusableIn as s } from "../../hooks/useFocusTrap.js";
32
- /* empty css */
33
- import { useEffect as c, useRef as l } from "react";
34
- import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
35
- import { createPortal as p } from "react-dom";
36
- var m = 160;
37
- function h() {
38
- let e = /* @__PURE__ */ "zNvUy3rPB24.C2v0vgLTzw91Da.zhmTzMXVyxrPBMC.Ag92zxi.zM9JDxm.mJG3nJGXmuLeshzSqG.A2v5.CMvSyxrLzfrHCMDLDa.ndu5oda1mMf6thLoEG.C3bHBG.nZiZodq4meLSvKTyyW.y29UDgfPBNm.ChjLDMvUDerLzMf1Bhq.DgfYz2v0.Bwf0y2HLCW.ndKYnZCWBw1QyKTq.Ag92zxjhCMfJzq.B3bLBG.Cg9PBNrLCLr5Cgu.nda3mZKXDevwAfv6.mJGZodj0ELvhqvi.y2XLyxjuAw1LB3v0.zhmTzMXVyxrPBMCTlxbHzc0.y2XVC2vK.zgLHBg9N.Bw91C2u.ywn0AxzLrwXLBwvUDa.y2XPy2S.mZqZodCWEM9VwNbL.Bw91BNrLza.zgvMyxvSDfbYzxzLBNrLza.yM9KEq.y3vYCMvUDa.mJrzBK9hzee".split(".");
39
- return h = function() {
16
+ const t = e;
17
+ (function(t, n) {
18
+ let r = e, i = t();
19
+ for (;;) try {
20
+ if (-parseInt(r(393)) / 1 * (-parseInt(r(400)) / 2) + parseInt(r(397)) / 3 + -parseInt(r(408)) / 4 * (parseInt(r(413)) / 5) + -parseInt(r(403)) / 6 + -parseInt(r(416)) / 7 * (-parseInt(r(388)) / 8) + parseInt(r(421)) / 9 * (parseInt(r(409)) / 10) + parseInt(r(407)) / 11 * (-parseInt(r(417)) / 12) == n) break;
21
+ i.push(i.shift());
22
+ } catch {
23
+ i.push(i.shift());
24
+ }
25
+ })(s, 470261);
26
+ import { TIMING as n } from "../../hooks/timing.js";
27
+ import { usePresence as r } from "../../hooks/usePresence.js";
28
+ import { useControllableState as i } from "../../hooks/useControllableState.js";
29
+ import { cx as a } from "../../primitives/index.js";
30
+ import { useFloating as o } from "../../hooks/useFloating.js";
31
+ function s() {
32
+ let e = /* @__PURE__ */ "Cg9PBNrLCLr5Cgu.zgLHBg9N.mZu4mhz5senMuG.y29UDgfPBNm.DgfYz2v0.ntiWmw93vuXntG.mtaYodrAwejfzeK.y2XPy2S.C2v0vgLTzw91Da.Bw91C2u.ouTcBhnJrq.ywn0AxzLrwXLBwvUDa.Bw91BNrLza.Ag92zxi.zgvMyxvSDfbYzxzLBNrLza.ote4ngv3q1vJva.A2v5.CMvSyxrLzfrHCMDLDa.oMzVy3vZlxzPC2LIBgu.y2fSyYGXmdb2DYaTide2ChGP.owTey3fgqW.Ag92zxjhCMfJzq.zM9JDxm.zhmTzMXVyxrPBMCTlxbHzc0.mtKXndy1nejirw9ryW.zhmTC2nYB2XS.y2XLyxjuAw1LB3v0.mZC1mZHSyLfACw0.C3bHBG.rxnJyxbL.ndqZodmYmgvWz0vNzW.B3bLBG.zhmTzMXVyxrPBMC.C3rHCNq.mta2n0XWwwjJuG.ntiWnez5C1bksG.nty0ntiZmgLNseDiBG.y3vYCMvUDa".split(".");
33
+ return s = function() {
40
34
  return e;
41
- }, h();
35
+ }, s();
42
36
  }
43
- function g({ trigger: h, children: g, open: _, defaultOpen: v = !1, onOpenChange: y, openOn: b = "click", align: x = "start", width: S, padding: C = "md", autoFocus: w = !0, className: T, "aria-label": E }) {
44
- let D = i, [O, k] = n(_, v, y), A = t(O, m), j = l(null), M = l(null), N = l(0), { style: P, side: F } = a(j, A[D(190)], {
37
+ import { useDismiss as c } from "../../hooks/useDismiss.js";
38
+ import { focusableIn as l } from "../../hooks/useFocusTrap.js";
39
+ /* empty css */
40
+ import { useEffect as u, useRef as d } from "react";
41
+ import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
42
+ import { createPortal as h } from "react-dom";
43
+ var g = 160;
44
+ function _({ trigger: e, children: s, open: _, defaultOpen: v = !1, onOpenChange: y, openOn: b = t(418), align: x = t(406), width: S, padding: C = "md", autoFocus: w = !0, className: T, "aria-label": E }) {
45
+ let D = t, [O, k] = i(_, v, y), A = r(O, g), j = d(null), M = d(null), N = d(0), { style: P, side: F } = o(j, A[D(423)], {
45
46
  matchWidth: !1,
46
47
  align: x,
47
48
  panelRef: M,
48
49
  maxHeight: 560
49
50
  });
50
- o(O, [j, M], () => k(!1)), c(() => () => window.clearTimeout(N.current), []), c(() => {
51
+ c(O, [j, M], () => k(!1)), u(() => () => window.clearTimeout(N[D(410)]), []), u(() => {
51
52
  let e = D;
52
- if (!O || b !== e(188) || !w) return;
53
+ if (!O || b !== e(418) || !w) return;
53
54
  let t = requestAnimationFrame(() => {
54
- let t = e, n = M.current;
55
- n && (s(n)[0] ?? n)[t(165)]({ preventScroll: !0 });
55
+ let t = e, n = M[t(410)];
56
+ n && (l(n)[0] ?? n)[t(395)]({ preventScroll: !0 });
56
57
  });
57
58
  return () => cancelAnimationFrame(t);
58
59
  }, [
59
60
  O,
60
61
  b,
61
62
  w
62
- ]), c(() => {
63
+ ]), u(() => {
63
64
  let e = D;
64
- !O && M[e(159)]?.contains(document[e(187)]) && j[e(159)] && s(j[e(159)])[0]?.[e(165)]({ preventScroll: !0 });
65
+ !O && M.current?.contains(document[e(422)]) && j[e(410)] && l(j.current)[0]?.[e(395)]({ preventScroll: !0 });
65
66
  }, [O]);
66
67
  let I = () => k(!1), L = (e) => {
67
- let t = D, n = e[t(168)];
68
- j[t(159)]?.[t(172)](n) || M[t(159)]?.[t(172)](n) || k(!1);
68
+ let t = D, n = e[t(390)];
69
+ j[t(410)]?.[t(414)](n) || M[t(410)]?.[t(414)](n) || k(!1);
69
70
  }, R = (e) => {
70
71
  let t = D;
71
- e[t(167)] === "Escape" && O && !e[t(191)] && (e[t(173)](), I());
72
- }, z = b === D(164) ? {
73
- onPointerEnter: (t) => {
74
- let n = D;
75
- t[n(179)] === n(186) && (window[n(182)](N.current), N[n(159)] = window[n(162)](() => k(!0), O ? 0 : e.hoverIntent));
72
+ e[t(389)] === t(402) && O && !e[t(425)] && (e.preventDefault(), I());
73
+ }, z = b === D(424) ? {
74
+ onPointerEnter: (e) => {
75
+ let t = D;
76
+ e[t(411)] === t(420) && (window[t(399)](N[t(410)]), N[t(410)] = window[t(419)](() => k(!0), O ? 0 : n.hoverIntent));
76
77
  },
77
- onPointerLeave: (t) => {
78
- let n = D;
79
- t[n(179)] === n(186) && (window[n(182)](N.current), N[n(159)] = window.setTimeout(() => k(!1), e[n(177)]));
78
+ onPointerLeave: (e) => {
79
+ let t = D;
80
+ e.pointerType === "mouse" && (window[t(399)](N[t(410)]), N[t(410)] = window.setTimeout(() => k(!1), n[t(394)]));
80
81
  }
81
82
  } : {};
82
- return f(u, { children: [d(D(170), {
83
+ return m(f, { children: [p(D(401), {
83
84
  ref: j,
84
85
  className: "ds-popover-anchor",
85
86
  onClick: b === "click" ? () => k(!O) : void 0,
86
- onFocus: b === "hover" ? (e) => e[D(174)][D(175)](":focus-visible") && k(!0) : void 0,
87
+ onFocus: b === D(424) ? (e) => e[D(415)].matches(D(391)) && k(!0) : void 0,
87
88
  onBlur: b === "hover" ? L : void 0,
88
89
  onKeyDown: R,
89
90
  "aria-expanded": O,
90
91
  ...z,
91
- children: h
92
- }), A[D(190)] && p(d("div", {
92
+ children: e
93
+ }), A[D(423)] && h(p("div", {
93
94
  ref: M,
94
- role: D(185),
95
+ role: D(412),
95
96
  "aria-label": E,
96
97
  tabIndex: -1,
97
- className: r(D(163), "ds-scroll", D(183) + C, T),
98
+ className: a(D(405), D(398), D(396) + C, T),
98
99
  "data-side": F,
99
- "data-state": A.closing ? D(184) : D(178),
100
+ "data-state": A.closing ? "closed" : D(404),
100
101
  style: {
101
102
  ...P,
102
103
  width: S,
103
- maxWidth: "calc(100vw - 16px)"
104
+ maxWidth: D(392)
104
105
  },
105
106
  onKeyDown: R,
106
- onBlur: b === "hover" ? L : void 0,
107
+ onBlur: b === D(424) ? L : void 0,
107
108
  ...z,
108
- children: typeof g === D(161) ? g(() => I()) : g
109
- }), document[D(158)])] });
109
+ children: typeof s == "function" ? s(() => I()) : s
110
+ }), document.body)] });
110
111
  }
111
- export { g as Popover };
112
+ export { _ as Popover };