@iamfiro/design 0.3.2 → 0.3.4

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 (158) hide show
  1. package/agents/INDEX.md +1 -1
  2. package/agents/brand-icon/AGENTS.md +1 -1
  3. package/agents/social-login-button/AGENTS.md +4 -3
  4. package/lib/components/Accordion/Accordion2.js +87 -87
  5. package/lib/components/ActionBar/ActionBar2.js +42 -44
  6. package/lib/components/Alert/Alert2.js +61 -61
  7. package/lib/components/AppShell/AppShell2.js +70 -71
  8. package/lib/components/AreaChart/AreaChart.js +38 -40
  9. package/lib/components/BarChart/BarChart2.js +126 -126
  10. package/lib/components/BarList/BarList2.js +95 -95
  11. package/lib/components/Breadcrumb/Breadcrumb2.js +68 -66
  12. package/lib/components/Calendar/Calendar2.js +164 -164
  13. package/lib/components/Calendar/DatePicker2.js +103 -102
  14. package/lib/components/Calendar/date.js +64 -66
  15. package/lib/components/Card/Card2.js +67 -67
  16. package/lib/components/CardFrame/CardFrame2.js +43 -51
  17. package/lib/components/Chart/ChartParts.js +94 -94
  18. package/lib/components/Chart/chart2.js +52 -52
  19. package/lib/components/Chart/useChartInteraction.js +54 -54
  20. package/lib/components/ChatBubble/ChatBubble2.js +92 -92
  21. package/lib/components/ChatBubble/formatChatTime.js +35 -41
  22. package/lib/components/ChatComposer/ChatComposer2.js +63 -63
  23. package/lib/components/CodeBlock/CodeBlock2.js +61 -61
  24. package/lib/components/CodeBlock/highlight.js +84 -84
  25. package/lib/components/ColorPicker/ColorPicker2.js +387 -386
  26. package/lib/components/ColorPicker/color.js +71 -71
  27. package/lib/components/ColorPicker/presets.js +41 -46
  28. package/lib/components/Combobox/Combobox2.js +117 -118
  29. package/lib/components/CommandMenu/CommandMenu.js +127 -127
  30. package/lib/components/Comment/Comment2.js +86 -60
  31. package/lib/components/ContextMenu/ContextMenu2.js +77 -75
  32. package/lib/components/DataGrid/DataGrid2.js +1192 -1190
  33. package/lib/components/DataGrid/GridPopover.js +94 -94
  34. package/lib/components/DataGrid/anchor.js +34 -31
  35. package/lib/components/DataGrid/model.js +284 -283
  36. package/lib/components/DataGrid/panels.js +398 -399
  37. package/lib/components/DataGrid/typeMeta.js +51 -50
  38. package/lib/components/DataGrid/types.js +38 -39
  39. package/lib/components/DescriptionList/DescriptionList2.js +103 -103
  40. package/lib/components/Dialog/AlertDialog.js +79 -78
  41. package/lib/components/Dialog/Dialog2.js +59 -59
  42. package/lib/components/Dialog/modal.js +44 -46
  43. package/lib/components/Drawer/Drawer2.js +130 -129
  44. package/lib/components/DropdownMenu/DropdownMenu2.js +235 -233
  45. package/lib/components/DropdownMenu/menuCore.js +69 -42
  46. package/lib/components/Dropzone/Dropzone2.js +79 -78
  47. package/lib/components/EmptyState/EmptyState2.js +34 -35
  48. package/lib/components/FileChip/FileChip2.js +73 -73
  49. package/lib/components/FileUpload/FileUpload.js +159 -159
  50. package/lib/components/FilterChips/FilterChips2.js +61 -61
  51. package/lib/components/FunnelChart/FunnelChart2.js +161 -161
  52. package/lib/components/FunnelChart/funnel.js +48 -44
  53. package/lib/components/Highlight/Highlight2.js +43 -43
  54. package/lib/components/HoverCard/HoverCard.js +59 -84
  55. package/lib/components/InlineDiff/InlineDiff2.js +112 -112
  56. package/lib/components/InlineDiff/diff.js +90 -90
  57. package/lib/components/InlineDiff/useDiffReview.js +64 -63
  58. package/lib/components/Kanban/Kanban2.js +386 -387
  59. package/lib/components/Kanban/KanbanCard.js +70 -95
  60. package/lib/components/Kanban/move.js +50 -46
  61. package/lib/components/LineChart/LineChart2.js +211 -211
  62. package/lib/components/List/List2.js +53 -54
  63. package/lib/components/Listbox/Listbox2.js +115 -115
  64. package/lib/components/Marker/Marker2.js +56 -61
  65. package/lib/components/Menubar/Menubar2.js +144 -141
  66. package/lib/components/MultiSelect/MultiSelect2.js +108 -108
  67. package/lib/components/NavigationMenu/NavigationMenu2.js +298 -299
  68. package/lib/components/NoticeStack/NoticeStack2.js +84 -84
  69. package/lib/components/NumberStepper/NumberStepper2.js +65 -66
  70. package/lib/components/OtpInput/OtpInput2.js +70 -69
  71. package/lib/components/Pagination/Pagination2.js +106 -106
  72. package/lib/components/Pagination/paginationRange.js +37 -39
  73. package/lib/components/PhoneInput/PhoneInput.js +87 -88
  74. package/lib/components/PieChart/PieChart2.js +160 -160
  75. package/lib/components/PieChart/arc.js +65 -62
  76. package/lib/components/PieChart/useArcTween.js +53 -60
  77. package/lib/components/Popover/Popover2.js +62 -62
  78. package/lib/components/ProgressTracker/ProgressTracker2.js +121 -121
  79. package/lib/components/Rating/Rating2.js +82 -81
  80. package/lib/components/Resizable/Resizable2.js +126 -127
  81. package/lib/components/Resizable/layout.js +73 -73
  82. package/lib/components/ScaledPreview/ScaledPreview2.js +68 -67
  83. package/lib/components/ScatterChart/ScatterChart2.js +214 -213
  84. package/lib/components/ScatterChart/scatter.js +47 -49
  85. package/lib/components/ScrollArea/ScrollArea2.js +117 -118
  86. package/lib/components/Select/Select2.js +78 -79
  87. package/lib/components/Sidebar/Sidebar2.js +69 -69
  88. package/lib/components/Skeleton/Skeleton2.js +57 -57
  89. package/lib/components/Slider/Slider2.js +73 -74
  90. package/lib/components/SocialLoginButton/SocialLoginButton.js +76 -68
  91. package/lib/components/SparkChart/SparkChart2.js +145 -145
  92. package/lib/components/SparkChart/spark.js +64 -42
  93. package/lib/components/Sparkbar/Sparkbar2.js +60 -60
  94. package/lib/components/SplitView/SplitView2.js +51 -52
  95. package/lib/components/Stat/Stat2.js +90 -90
  96. package/lib/components/StepList/StepList2.js +70 -70
  97. package/lib/components/Table/Table2.js +70 -70
  98. package/lib/components/Tabs/Tabs2.js +81 -81
  99. package/lib/components/TagInput/TagInput2.js +220 -217
  100. package/lib/components/TimePicker/TimePicker2.js +187 -186
  101. package/lib/components/TimePicker/time.js +63 -62
  102. package/lib/components/Timeline/Timeline2.js +199 -199
  103. package/lib/components/Timeline/scale.js +67 -64
  104. package/lib/components/Toast/Toaster.js +100 -98
  105. package/lib/components/Toast/store.js +90 -94
  106. package/lib/components/ToggleGroup/ToggleGroup2.js +76 -76
  107. package/lib/components/Toolbar/Toolbar2.js +163 -161
  108. package/lib/components/Tracker/Tracker2.js +82 -82
  109. package/lib/components/TreeDiagram/TreeDiagram2.js +123 -124
  110. package/lib/components/TreeView/TreeView2.js +154 -152
  111. package/lib/hooks/timing.js +31 -30
  112. package/lib/hooks/useControllableState.js +37 -38
  113. package/lib/hooks/useCountdown.js +53 -56
  114. package/lib/hooks/useDigitInput.js +66 -41
  115. package/lib/hooks/useDismiss.js +55 -58
  116. package/lib/hooks/useElapsed.js +57 -55
  117. package/lib/hooks/useFloating.js +44 -44
  118. package/lib/hooks/useFocusTrap.js +70 -46
  119. package/lib/hooks/usePresence.js +23 -22
  120. package/lib/hooks/usePressToOpen.js +51 -51
  121. package/lib/hooks/useScrollLock.js +57 -58
  122. package/lib/hooks/useSelection.js +49 -52
  123. package/lib/index.js +65 -65
  124. package/lib/primitives/AspectRatio2.js +57 -57
  125. package/lib/primitives/BrandIcon.js +189 -158
  126. package/lib/primitives/ColorDot2.js +50 -45
  127. package/lib/primitives/CopyButton2.js +52 -50
  128. package/lib/primitives/CountBadge2.js +53 -55
  129. package/lib/primitives/Countdown2.js +28 -25
  130. package/lib/primitives/Delta2.js +41 -41
  131. package/lib/primitives/Elapsed.js +47 -47
  132. package/lib/primitives/FileIcon2.js +86 -86
  133. package/lib/primitives/Flag2.js +122 -122
  134. package/lib/primitives/IconStack2.js +55 -31
  135. package/lib/primitives/IconTile2.js +43 -43
  136. package/lib/primitives/Kbd2.js +55 -55
  137. package/lib/primitives/Layout2.js +78 -78
  138. package/lib/primitives/Link2.js +39 -36
  139. package/lib/primitives/MaskedText2.js +74 -52
  140. package/lib/primitives/Progress2.js +67 -66
  141. package/lib/primitives/RelativeTime.js +54 -61
  142. package/lib/primitives/SearchInput2.js +45 -45
  143. package/lib/primitives/SelectorButton2.js +72 -76
  144. package/lib/primitives/Spinner2.js +56 -56
  145. package/lib/primitives/StatusIcon2.js +63 -63
  146. package/lib/primitives/Swatch2.js +55 -61
  147. package/lib/primitives/Tooltip2.js +78 -78
  148. package/lib/primitives/Typography2.js +53 -53
  149. package/lib/primitives/formatCountdown.js +30 -29
  150. package/lib/primitives/formatElapsed.js +46 -49
  151. package/lib/primitives/formatRelativeTime.js +76 -50
  152. package/lib/primitives/hotkey.js +80 -80
  153. package/lib/primitives/index.js +169 -168
  154. package/lib/primitives/maskValue.js +55 -50
  155. package/lib/style.css +1 -1
  156. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  157. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  158. package/package.json +1 -1
@@ -1,95 +1,87 @@
1
1
  "use client";
2
- const e = a;
2
+ const e = y;
3
3
  (function(e, t) {
4
- let n = a, r = e();
4
+ let n = y, r = e();
5
5
  for (;;) try {
6
- if (parseInt(n(360)) / 1 * (-parseInt(n(344)) / 2) + parseInt(n(352)) / 3 + parseInt(n(361)) / 4 * (-parseInt(n(366)) / 5) + -parseInt(n(354)) / 6 * (parseInt(n(369)) / 7) + parseInt(n(355)) / 8 + parseInt(n(365)) / 9 * (parseInt(n(347)) / 10) + parseInt(n(356)) / 11 == t) break;
6
+ if (-parseInt(n(505)) / 1 * (parseInt(n(511)) / 2) + -parseInt(n(518)) / 3 * (parseInt(n(512)) / 4) + -parseInt(n(528)) / 5 + -parseInt(n(526)) / 6 * (parseInt(n(525)) / 7) + parseInt(n(522)) / 8 + -parseInt(n(503)) / 9 + parseInt(n(523)) / 10 * (parseInt(n(514)) / 11) == t) break;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(w, 332581);
12
- var t = (t, n, r) => Math[e(368)](r, Math[e(371)](n, t)), n = (t, n = 0) => {
11
+ })(l, 260131);
12
+ var t = (t, n, r) => Math[e(507)](r, Math[e(509)](n, t)), n = (t, n = 0) => {
13
13
  let r = e, i = 10 ** n;
14
- return Math[r(351)](t * i) / i;
14
+ return Math[r(502)](t * i) / i;
15
15
  }, r = /^#?([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i;
16
16
  function i(t) {
17
- let i = e, a = r.exec(t[i(353)]());
17
+ let i = e, a = r.exec(t[i(516)]());
18
18
  if (!a) return null;
19
19
  let o = a[1];
20
- o[i(358)] <= 4 && (o = [...o][i(359)]((e) => e + e).join(""));
21
- let s = (e) => parseInt(o[i(370)](e, e + 2), 16);
20
+ o.length <= 4 && (o = [...o][i(524)]((e) => e + e).join(""));
21
+ let s = (e) => parseInt(o[i(501)](e, e + 2), 16);
22
22
  return {
23
23
  r: s(0),
24
24
  g: s(2),
25
25
  b: s(4),
26
- a: o.length === 8 ? n(s(6) / 255, 3) : 1
26
+ a: o[i(500)] === 8 ? n(s(6) / 255, 3) : 1
27
27
  };
28
28
  }
29
- function a(e, t) {
30
- e -= 343;
31
- let n = w(), r = n[e];
32
- a.zombna === void 0 && (a.JHPVyh = function(e) {
33
- let t = "", n = "";
34
- 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);
35
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
36
- return decodeURIComponent(n);
37
- }, a.KgYibM = {}, a.zombna = !0);
38
- let i = n[0];
39
- a.oXRjKq !== i && (a.KgYibM = {}, a.oXRjKq = i);
40
- let o = a.KgYibM[e];
41
- return o === void 0 ? (r = a.JHPVyh(r), a.KgYibM[e] = r) : r = o, r;
42
- }
43
- var o = (t, n) => {
44
- let r = e, i = t[r(353)]();
45
- return /^-?\d*\.?\d+%?$/[r(375)](i) ? i[r(373)]("%") ? parseFloat(i) / 100 * n : parseFloat(i) : NaN;
46
- }, s = (t) => t[e(363)](/[\s,/]+/).filter(Boolean), c = (e) => e === void 0 ? 1 : o(e, 1);
47
- function l(t) {
48
- let n = e, r = /^(?:rgba?\()?\s*([^)]*?)\s*\)?$/i[n(350)](t[n(353)]());
29
+ var a = (t, n) => {
30
+ let r = e, i = t[r(516)]();
31
+ return /^-?\d*\.?\d+%?$/[r(508)](i) ? i.endsWith("%") ? parseFloat(i) / 100 * n : parseFloat(i) : NaN;
32
+ }, o = (t) => t[e(499)](/[\s,/]+/)[e(520)](Boolean), s = (e) => e === void 0 ? 1 : a(e, 1);
33
+ function c(t) {
34
+ let n = e, r = /^(?:rgba?\()?\s*([^)]*?)\s*\)?$/i.exec(t[n(516)]());
49
35
  if (!r) return null;
50
- let i = s(r[1]);
51
- if (i.length < 3 || i.length > 4) return null;
52
- let [a, l, u] = i[n(370)](0, 3)[n(359)]((e) => o(e, 255)), d = c(i[3]);
36
+ let i = o(r[1]);
37
+ if (i[n(500)] < 3 || i[n(500)] > 4) return null;
38
+ let [c, l, u] = i[n(501)](0, 3)[n(524)]((e) => a(e, 255)), d = s(i[3]);
53
39
  return [
54
- a,
40
+ c,
55
41
  l,
56
42
  u,
57
43
  d
58
- ][n(372)]((e) => Number[n(374)](e)) || [
59
- a,
44
+ ][n(498)]((e) => Number[n(497)](e)) || [
45
+ c,
60
46
  l,
61
47
  u
62
- ][n(372)]((e) => e < 0 || e > 255) || d < 0 || d > 1 ? null : {
63
- r: a,
48
+ ][n(498)]((e) => e < 0 || e > 255) || d < 0 || d > 1 ? null : {
49
+ r: c,
64
50
  g: l,
65
51
  b: u,
66
52
  a: d
67
53
  };
68
54
  }
55
+ function l() {
56
+ let e = /* @__PURE__ */ "Bwf4.CMDI.mtm1nejoDuvotq.mJC0nZjlC0zRrfi.zw5KC1DPDgG.mtm5odmYCvHnqMPk.Dg9tDhjPBMC.DhjPBq.CMvWBgfJzq.mtiWwMLVtM1P.zxHLyW.zMLSDgvY.AhnS.mZq4nteYmfvuyKDdwG.mtaXmhjiA3Hsuq.BwfW.mZCXtvD1yK1I.otm3mLLHAg5xDW.AhnSysG.mJa3oduWmgjpvfnvqW.CMDIka.Axnoyu4.C29Tzq.C3bSAxq.BgvUz3rO.C2XPy2u.CM91BMq.mZKZotGWnffwr0fryW.jsWG.mZy3EfH0CLri.CgfKu3rHCNq.BwLU.DgvZDa".split(".");
57
+ return l = function() {
58
+ return e;
59
+ }, l();
60
+ }
69
61
  function u(t) {
70
- let n = e, r = /^(?:hsla?\()?\s*([^)]*?)\s*\)?$/i[n(350)](t[n(353)]());
62
+ let n = e, r = /^(?:hsla?\()?\s*([^)]*?)\s*\)?$/i[n(519)](t[n(516)]());
71
63
  if (!r) return null;
72
- let i = s(r[1][n(349)](/deg/gi, ""));
73
- if (i[n(358)] < 3 || i[n(358)] > 4) return null;
74
- let a = o(i[0], 360), l = o(i[1][n(373)]("%") ? i[1] : i[1] + "%", 1), u = o(i[2][n(373)]("%") ? i[2] : i[2] + "%", 1), d = c(i[3]);
64
+ let i = o(r[1][n(517)](/deg/gi, ""));
65
+ if (i[n(500)] < 3 || i.length > 4) return null;
66
+ let c = a(i[0], 360), l = a(i[1][n(513)]("%") ? i[1] : i[1] + "%", 1), u = a(i[2].endsWith("%") ? i[2] : i[2] + "%", 1), d = s(i[3]);
75
67
  return [
76
- a,
68
+ c,
77
69
  l,
78
70
  u,
79
71
  d
80
- ].some((e) => Number[n(374)](e)) || l < 0 || l > 1 || u < 0 || u > 1 || d < 0 || d > 1 ? null : h({
81
- h: (a % 360 + 360) % 360,
72
+ ][n(498)]((e) => Number[n(497)](e)) || l < 0 || l > 1 || u < 0 || u > 1 || d < 0 || d > 1 ? null : h({
73
+ h: (c % 360 + 360) % 360,
82
74
  s: l,
83
75
  l: u,
84
76
  a: d
85
77
  });
86
78
  }
87
79
  function d(t) {
88
- let n = e, r = t.trim();
89
- return /^hsla?\(/i[n(375)](r) ? u(r) : /^rgba?\(/i[n(375)](r) ? l(r) : i(r);
80
+ let n = e, r = t[n(516)]();
81
+ return /^hsla?\(/i[n(508)](r) ? u(r) : /^rgba?\(/i[n(508)](r) ? c(r) : i(r);
90
82
  }
91
83
  function f({ r: t, g: n, b: r, a: i }) {
92
- let a = e, o = t / 255, s = n / 255, c = r / 255, l = Math.max(o, s, c), u = l - Math[a(368)](o, s, c), d = 0;
84
+ let a = e, o = t / 255, s = n / 255, c = r / 255, l = Math[a(509)](o, s, c), u = l - Math[a(507)](o, s, c), d = 0;
93
85
  return u && (d = l === o ? (s - c) / u % 6 : l === s ? (c - o) / u + 2 : (o - s) / u + 4, d = (d * 60 + 360) % 360), {
94
86
  h: d,
95
87
  s: l ? u / l : 0,
@@ -99,8 +91,8 @@ function f({ r: t, g: n, b: r, a: i }) {
99
91
  }
100
92
  function p({ h: e, s: t, v: n, a: r }) {
101
93
  let i = (r) => {
102
- let i = a, o = (r + e / 60) % 6;
103
- return (n - n * t * Math[i(371)](0, Math[i(368)](o, 4 - o, 1))) * 255;
94
+ let i = y, a = (r + e / 60) % 6;
95
+ return (n - n * t * Math[i(509)](0, Math.min(a, 4 - a, 1))) * 255;
104
96
  };
105
97
  return {
106
98
  r: i(5),
@@ -118,13 +110,13 @@ function m({ r: t, g: n, b: r, a: i }) {
118
110
  }), l = c * (1 - s / 2);
119
111
  return {
120
112
  h: o,
121
- s: l === 0 || l === 1 ? 0 : (c - l) / Math[a(368)](l, 1 - l),
113
+ s: l === 0 || l === 1 ? 0 : (c - l) / Math[a(507)](l, 1 - l),
122
114
  l,
123
115
  a: i
124
116
  };
125
117
  }
126
118
  function h({ h: t, s: n, l: r, a: i }) {
127
- let a = e, o = (e) => (e + t / 30) % 12, s = n * Math.min(r, 1 - r), c = (e) => (r - s * Math[a(371)](-1, Math[a(368)](o(e) - 3, 9 - o(e), 1))) * 255;
119
+ let a = e, o = (e) => (e + t / 30) % 12, s = n * Math[a(507)](r, 1 - r), c = (e) => (r - s * Math[a(509)](-1, Math[a(507)](o(e) - 3, 9 - o(e), 1))) * 255;
128
120
  return {
129
121
  r: c(0),
130
122
  g: c(8),
@@ -132,7 +124,7 @@ function h({ h: t, s: n, l: r, a: i }) {
132
124
  a: i
133
125
  };
134
126
  }
135
- var g = (n) => t(Math[e(351)](n), 0, 255)[e(367)](16)[e(346)](2, "0");
127
+ var g = (n) => t(Math[e(502)](n), 0, 255)[e(515)](16)[e(506)](2, "0");
136
128
  function _({ r: e, g: t, b: n, a: r }, i = !0) {
137
129
  let a = "#" + g(e) + g(t) + g(n);
138
130
  return i && r < 1 ? a + g(r * 255) : a;
@@ -142,39 +134,47 @@ function v({ r, g: i, b: a, a: o }) {
142
134
  r,
143
135
  i,
144
136
  a
145
- ].map((e) => t(Math[s(351)](e), 0, 255))[s(362)](", ");
146
- return o < 1 ? s(343) + c + ", " + n(o, 2) + ")" : s(364) + c + ")";
137
+ ][s(524)]((e) => t(Math.round(e), 0, 255)).join(", ");
138
+ return o < 1 ? "rgba(" + c + ", " + n(o, 2) + ")" : s(529) + c + ")";
147
139
  }
148
- function y(t) {
149
- let r = e, { h: i, s: a, l: o, a: s } = m(t), c = Math[r(351)](i) % 360 + ", " + Math[r(351)](a * 100) + r(348) + Math[r(351)](o * 100) + "%";
150
- return s < 1 ? "hsla(" + c + ", " + n(s, 2) + ")" : "hsl(" + c + ")";
140
+ function y(e, t) {
141
+ e -= 497;
142
+ let n = l(), r = n[e];
143
+ y.EAsMhy === void 0 && (y.UNRHXH = function(e) {
144
+ let t = "", n = "";
145
+ 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);
146
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
147
+ return decodeURIComponent(n);
148
+ }, y.SnfgEr = {}, y.EAsMhy = !0);
149
+ let i = n[0];
150
+ y.IstJLu !== i && (y.SnfgEr = {}, y.IstJLu = i);
151
+ let a = y.SnfgEr[e];
152
+ return a === void 0 ? (r = y.UNRHXH(r), y.SnfgEr[e] = r) : r = a, r;
151
153
  }
152
- function b(t, n, r = !0) {
154
+ function b(t) {
155
+ let r = e, { h: i, s: a, l: o, a: s } = m(t), c = Math[r(502)](i) % 360 + ", " + Math[r(502)](a * 100) + r(504) + Math[r(502)](o * 100) + "%";
156
+ return s < 1 ? r(527) + c + ", " + n(s, 2) + ")" : "hsl(" + c + ")";
157
+ }
158
+ function x(t, n, r = !0) {
153
159
  let i = e;
154
- return n === i(345) ? v(r ? t : {
160
+ return n === i(510) ? v(r ? t : {
155
161
  ...t,
156
162
  a: 1
157
- }) : n === i(357) ? y(r ? t : {
163
+ }) : n === i(521) ? b(r ? t : {
158
164
  ...t,
159
165
  a: 1
160
166
  }) : _(t, r);
161
167
  }
162
- function x(e, t = !0) {
168
+ function S(e, t = !0) {
163
169
  let n = d(e);
164
170
  return n ? _(n, t) : null;
165
171
  }
166
- function S({ r: e, g: t, b: n }) {
172
+ function C({ r: e, g: t, b: n }) {
167
173
  let r = (e) => {
168
174
  let t = e / 255;
169
175
  return t <= .03928 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
170
176
  };
171
177
  return .2126 * r(e) + .7152 * r(t) + .0722 * r(n);
172
178
  }
173
- var C = (e) => e.a < .5 || S(e) > .4;
174
- export { t as clamp, b as formatColor, _ as formatHex, y as formatHsl, v as formatRgb, h as hslToRgb, p as hsvToRgb, C as isLight, S as luminance, x as normalizeHex, d as parseColor, i as parseHex, u as parseHsl, l as parseRgb, m as rgbToHsl, f as rgbToHsv };
175
- function w() {
176
- let e = /* @__PURE__ */ "CMDI.CgfKu3rHCNq.mJbQCeDnC1G.jsWG.CMvWBgfJzq.zxHLyW.CM91BMq.mtCXmJa0m1rJEM5XvW.DhjPBq.nNr1BwzJtG.mJmXnJu1mMjQCMjlsG.ntq0nZa2ofrpD3HlvG.AhnS.BgvUz3rO.BwfW.nJa4mZqXvKjvALD3.ne9JA1vmuG.AM9PBG.C3bSAxq.CMDIka.mJaXndy0mwjjsvz6Bq.mtuXmZK4nwv5A3rcEG.Dg9tDhjPBMC.BwLU.mZKXntKXoxboCvnttG.C2XPy2u.Bwf4.C29Tzq.zw5KC1DPDgG.Axnoyu4.DgvZDa.CMDIysG.mMrWrLnjyq".split(".");
177
- return w = function() {
178
- return e;
179
- }, w();
180
- }
179
+ var w = (e) => e.a < .5 || C(e) > .4;
180
+ export { t as clamp, x as formatColor, _ as formatHex, b as formatHsl, v as formatRgb, h as hslToRgb, p as hsvToRgb, w as isLight, C as luminance, S as normalizeHex, d as parseColor, i as parseHex, u as parseHsl, c as parseRgb, m as rgbToHsl, f as rgbToHsv };
@@ -1,76 +1,71 @@
1
1
  "use client";
2
- function e(t, r) {
3
- t -= 437;
4
- var i = n(), a = i[t];
5
- e.jreFLC === void 0 && (e.BKRPbv = function(e) {
6
- 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);
7
- for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
8
- return decodeURIComponent(r);
9
- }, e.onqfAZ = {}, e.jreFLC = !0);
10
- var o = i[0];
11
- e.GUwvhY !== o && (e.onqfAZ = {}, e.GUwvhY = o);
12
- var s = e.onqfAZ[t];
13
- return s === void 0 ? (a = e.BKRPbv(a), e.onqfAZ[t] = a) : a = s, a;
14
- }
15
- var t = e;
16
- function n() {
2
+ var e = r;
3
+ function t() {
17
4
  var e = [
18
- "mtG0otHIC2jSuhK",
19
- "nteXodqWotjpugnZzNC",
20
- "ls1JAgfYDc0Y",
21
- "ndu4otz2wuPVrMu",
22
- "ls1JAgfYDc0X",
23
- "odi4txrfB0nH",
24
- "nZm2nZy2nvvfBwjKEq",
25
- "mJe0oxn2Ce9tBq",
26
- "mtGXmgHrrM96yG",
5
+ "mJi2mJmXyNfAt0rX",
6
+ "mtG2nMntsgLvuG",
7
+ "odHxzMT3Dwi",
27
8
  "ls1JAgfYDc00",
28
- "mtKYndeXm2jMrfbABW",
29
- "ngPIEgDZra",
30
- "mtnpAMfJuwy",
31
- "mtbTrefhtM0",
32
- "ls1JAgfYDc01",
33
- "ls1JAgfYDc02",
34
- "mtaZnJK5ndjHyvbltha",
9
+ "mZe1mtu0uvbgqLHP",
10
+ "mJm2nJC1mhv3vw5utW",
11
+ "mtKYCKvWzgfc",
35
12
  "ls1JAgfYDc0Z",
36
- "nZu5v1DIuwP3"
13
+ "mJaWnZu5nKLfqurZuW",
14
+ "mte1nZbbCNPnDMy",
15
+ "ls1JAgfYDc01",
16
+ "mJqYne1TBgDtEG",
17
+ "ls1JAgfYDc0X",
18
+ "nZuXodm3nxjLsffzBa"
37
19
  ];
38
- return n = function() {
20
+ return t = function() {
39
21
  return e;
40
- }, n();
22
+ }, t();
41
23
  }
42
- (function(t, n) {
43
- for (var r = e, i = t();;) try {
44
- if (parseInt(r(445)) / 1 * (-parseInt(r(454)) / 2) + -parseInt(r(437)) / 3 + -parseInt(r(438)) / 4 * (parseInt(r(452)) / 5) + -parseInt(r(446)) / 6 * (-parseInt(r(453)) / 7) + -parseInt(r(449)) / 8 * (parseInt(r(451)) / 9) + parseInt(r(440)) / 10 * (-parseInt(r(443)) / 11) + -parseInt(r(447)) / 12 * (-parseInt(r(439)) / 13) == n) break;
24
+ (function(e, t) {
25
+ for (var n = r, i = e();;) try {
26
+ if (-parseInt(n(386)) / 1 + -parseInt(n(383)) / 2 * (-parseInt(n(378)) / 3) + parseInt(n(380)) / 4 + parseInt(n(381)) / 5 * (parseInt(n(373)) / 6) + parseInt(n(376)) / 7 * (parseInt(n(374)) / 8) + -parseInt(n(385)) / 9 + -parseInt(n(377)) / 10 == t) break;
45
27
  i.push(i.shift());
46
28
  } catch {
47
29
  i.push(i.shift());
48
30
  }
49
- })(n, 939497);
50
- var r = [
31
+ })(t, 496082);
32
+ var n = [
51
33
  {
52
- color: t(450),
34
+ color: e(384),
53
35
  label: "분홍"
54
36
  },
55
37
  {
56
- color: t(448),
38
+ color: "--chart-2",
57
39
  label: "파랑"
58
40
  },
59
41
  {
60
- color: t(444),
42
+ color: e(379),
61
43
  label: "청록"
62
44
  },
63
45
  {
64
- color: t(455),
46
+ color: e(375),
65
47
  label: "보라"
66
48
  },
67
49
  {
68
- color: t(441),
50
+ color: e(382),
69
51
  label: "회색"
70
52
  },
71
53
  {
72
- color: t(442),
54
+ color: "--chart-6",
73
55
  label: "주황"
74
56
  }
75
57
  ];
76
- export { r as CHART_COLOR_PRESETS };
58
+ function r(e, n) {
59
+ e -= 373;
60
+ var i = t(), a = i[e];
61
+ r.pDsqdQ === void 0 && (r.BiBmDF = function(e) {
62
+ 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);
63
+ for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
64
+ return decodeURIComponent(r);
65
+ }, r.bRYrgs = {}, r.pDsqdQ = !0);
66
+ var o = i[0];
67
+ r.DdbSDi !== o && (r.bRYrgs = {}, r.DdbSDi = o);
68
+ var s = r.bRYrgs[e];
69
+ return s === void 0 ? (a = r.BiBmDF(a), r.bRYrgs[e] = a) : a = s, a;
70
+ }
71
+ export { n as CHART_COLOR_PRESETS };