@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
@@ -1,95 +1,101 @@
1
1
  "use client";
2
- const e = a;
3
- (function(e, t) {
4
- let n = a, r = e();
2
+ const e = t;
3
+ function t(e, n) {
4
+ e -= 420;
5
+ let r = l(), i = r[e];
6
+ t.ZDraIZ === void 0 && (t.pOPEZq = function(e) {
7
+ let t = "", n = "";
8
+ 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);
9
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
10
+ return decodeURIComponent(n);
11
+ }, t.mKbgbZ = {}, t.ZDraIZ = !0);
12
+ let a = r[0];
13
+ t.GiFWsB !== a && (t.mKbgbZ = {}, t.GiFWsB = a);
14
+ let o = t.mKbgbZ[e];
15
+ return o === void 0 ? (i = t.pOPEZq(i), t.mKbgbZ[e] = i) : i = o, i;
16
+ }
17
+ (function(e, n) {
18
+ let r = t, i = e();
5
19
  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;
7
- r.push(r.shift());
20
+ if (parseInt(r(436)) / 1 + parseInt(r(447)) / 2 + -parseInt(r(449)) / 3 * (-parseInt(r(448)) / 4) + parseInt(r(440)) / 5 * (parseInt(r(429)) / 6) + -parseInt(r(423)) / 7 * (-parseInt(r(427)) / 8) + -parseInt(r(450)) / 9 * (parseInt(r(451)) / 10) + parseInt(r(420)) / 11 * (-parseInt(r(445)) / 12) == n) break;
21
+ i.push(i.shift());
8
22
  } catch {
9
- r.push(r.shift());
23
+ i.push(i.shift());
10
24
  }
11
- })(w, 332581);
12
- var t = (t, n, r) => Math[e(368)](r, Math[e(371)](n, t)), n = (t, n = 0) => {
25
+ })(l, 943696);
26
+ var n = (t, n, r) => Math.min(r, Math[e(428)](n, t)), r = (t, n = 0) => {
13
27
  let r = e, i = 10 ** n;
14
- return Math[r(351)](t * i) / i;
15
- }, r = /^#?([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i;
16
- function i(t) {
17
- let i = e, a = r.exec(t[i(353)]());
28
+ return Math[r(425)](t * i) / i;
29
+ }, i = /^#?([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i;
30
+ function a(t) {
31
+ let n = e, a = i[n(434)](t.trim());
18
32
  if (!a) return null;
19
33
  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);
34
+ o[n(435)] <= 4 && (o = [...o][n(431)]((e) => e + e)[n(421)](""));
35
+ let s = (e) => parseInt(o[n(422)](e, e + 2), 16);
22
36
  return {
23
37
  r: s(0),
24
38
  g: s(2),
25
39
  b: s(4),
26
- a: o.length === 8 ? n(s(6) / 255, 3) : 1
40
+ a: o.length === 8 ? r(s(6) / 255, 3) : 1
27
41
  };
28
42
  }
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
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)]());
44
+ let r = e, i = t[r(438)]();
45
+ return /^-?\d*\.?\d+%?$/[r(442)](i) ? i[r(424)]("%") ? parseFloat(i) / 100 * n : parseFloat(i) : NaN;
46
+ }, s = (t) => t.split(/[\s,/]+/)[e(426)](Boolean), c = (e) => e === void 0 ? 1 : o(e, 1);
47
+ function l() {
48
+ let e = /* @__PURE__ */ "ota2nZG4mhb1yNzgsa.Bwf4.mZu1nta2uKXrD2fQ.AhnS.BwfW.BwLU.Axnoyu4.zxHLyW.BgvUz3rO.mta5odu2mhDRsfrlDG.CgfKu3rHCNq.DhjPBq.C29Tzq.nuvRsfPIuW.CMDIysG.DgvZDa.CMDI.AhnSka.mtjyAgLwEgS.Dg9tDhjPBMC.mti4mta4ofvKA0PoCG.mJHvz2PnA0W.mZq2nZq5wfPXDNbo.mtHLAfbos0S.mtiWotCXmgHUww9UqG.mJGXmdGXmtnwqxjXzNq.AM9PBG.C2XPy2u.n0z0zNLYqW.zw5KC1DPDgG.CM91BMq.zMLSDgvY".split(".");
49
+ return l = function() {
50
+ return e;
51
+ }, l();
52
+ }
53
+ function u(t) {
54
+ let n = e, r = /^(?:rgba?\()?\s*([^)]*?)\s*\)?$/i[n(434)](t[n(438)]());
49
55
  if (!r) return null;
50
56
  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]);
57
+ if (i.length < 3 || i[n(435)] > 4) return null;
58
+ let [a, l, u] = i.slice(0, 3).map((e) => o(e, 255)), d = c(i[3]);
53
59
  return [
54
60
  a,
55
61
  l,
56
62
  u,
57
63
  d
58
- ][n(372)]((e) => Number[n(374)](e)) || [
64
+ ][n(439)]((e) => Number[n(433)](e)) || [
59
65
  a,
60
66
  l,
61
67
  u
62
- ][n(372)]((e) => e < 0 || e > 255) || d < 0 || d > 1 ? null : {
68
+ ].some((e) => e < 0 || e > 255) || d < 0 || d > 1 ? null : {
63
69
  r: a,
64
70
  g: l,
65
71
  b: u,
66
72
  a: d
67
73
  };
68
74
  }
69
- function u(t) {
70
- let n = e, r = /^(?:hsla?\()?\s*([^)]*?)\s*\)?$/i[n(350)](t[n(353)]());
75
+ function d(t) {
76
+ let n = e, r = /^(?:hsla?\()?\s*([^)]*?)\s*\)?$/i[n(434)](t[n(438)]());
71
77
  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]);
78
+ let i = s(r[1].replace(/deg/gi, ""));
79
+ if (i[n(435)] < 3 || i[n(435)] > 4) return null;
80
+ let a = o(i[0], 360), l = o(i[1][n(424)]("%") ? i[1] : i[1] + "%", 1), u = o(i[2].endsWith("%") ? i[2] : i[2] + "%", 1), d = c(i[3]);
75
81
  return [
76
82
  a,
77
83
  l,
78
84
  u,
79
85
  d
80
- ].some((e) => Number[n(374)](e)) || l < 0 || l > 1 || u < 0 || u > 1 || d < 0 || d > 1 ? null : h({
86
+ ][n(439)]((e) => Number[n(433)](e)) || l < 0 || l > 1 || u < 0 || u > 1 || d < 0 || d > 1 ? null : g({
81
87
  h: (a % 360 + 360) % 360,
82
88
  s: l,
83
89
  l: u,
84
90
  a: d
85
91
  });
86
92
  }
87
- 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);
93
+ function f(t) {
94
+ let n = e, r = t[n(438)]();
95
+ return /^hsla?\(/i[n(442)](r) ? d(r) : /^rgba?\(/i[n(442)](r) ? u(r) : a(r);
90
96
  }
91
- 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;
97
+ function p({ r: t, g: n, b: r, a: i }) {
98
+ let a = e, o = t / 255, s = n / 255, c = r / 255, l = Math[a(428)](o, s, c), u = l - Math[a(432)](o, s, c), d = 0;
93
99
  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
100
  h: d,
95
101
  s: l ? u / l : 0,
@@ -97,10 +103,10 @@ function f({ r: t, g: n, b: r, a: i }) {
97
103
  a: i
98
104
  };
99
105
  }
100
- function p({ h: e, s: t, v: n, a: r }) {
106
+ function m({ h: e, s: t, v: n, a: r }) {
101
107
  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;
108
+ let i = (r + e / 60) % 6;
109
+ return (n - n * t * Math.max(0, Math.min(i, 4 - i, 1))) * 255;
104
110
  };
105
111
  return {
106
112
  r: i(5),
@@ -109,22 +115,22 @@ function p({ h: e, s: t, v: n, a: r }) {
109
115
  a: r
110
116
  };
111
117
  }
112
- function m({ r: t, g: n, b: r, a: i }) {
113
- let a = e, { h: o, s, v: c } = f({
114
- r: t,
115
- g: n,
116
- b: r,
117
- a: i
118
- }), l = c * (1 - s / 2);
118
+ function h({ r: e, g: t, b: n, a: r }) {
119
+ let { h: i, s: a, v: o } = p({
120
+ r: e,
121
+ g: t,
122
+ b: n,
123
+ a: r
124
+ }), s = o * (1 - a / 2);
119
125
  return {
120
- h: o,
121
- s: l === 0 || l === 1 ? 0 : (c - l) / Math[a(368)](l, 1 - l),
122
- l,
123
- a: i
126
+ h: i,
127
+ s: s === 0 || s === 1 ? 0 : (o - s) / Math.min(s, 1 - s),
128
+ l: s,
129
+ a: r
124
130
  };
125
131
  }
126
- 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;
132
+ function g({ h: t, s: n, l: r, a: i }) {
133
+ let a = e, o = (e) => (e + t / 30) % 12, s = n * Math[a(432)](r, 1 - r), c = (e) => (r - s * Math[a(428)](-1, Math[a(432)](o(e) - 3, 9 - o(e), 1))) * 255;
128
134
  return {
129
135
  r: c(0),
130
136
  g: c(8),
@@ -132,49 +138,43 @@ function h({ h: t, s: n, l: r, a: i }) {
132
138
  a: i
133
139
  };
134
140
  }
135
- var g = (n) => t(Math[e(351)](n), 0, 255)[e(367)](16)[e(346)](2, "0");
136
- function _({ r: e, g: t, b: n, a: r }, i = !0) {
137
- let a = "#" + g(e) + g(t) + g(n);
138
- return i && r < 1 ? a + g(r * 255) : a;
141
+ var _ = (t) => n(Math[e(425)](t), 0, 255)[e(446)](16)[e(437)](2, "0");
142
+ function v({ r: e, g: t, b: n, a: r }, i = !0) {
143
+ let a = "#" + _(e) + _(t) + _(n);
144
+ return i && r < 1 ? a + _(r * 255) : a;
139
145
  }
140
- function v({ r, g: i, b: a, a: o }) {
146
+ function y({ r: t, g: i, b: a, a: o }) {
141
147
  let s = e, c = [
142
- r,
148
+ t,
143
149
  i,
144
150
  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 + ")";
151
+ ][s(431)]((e) => n(Math[s(425)](e), 0, 255))[s(421)](", ");
152
+ return o < 1 ? s(441) + c + ", " + r(o, 2) + ")" : "rgb(" + c + ")";
147
153
  }
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 + ")";
154
+ function b(t) {
155
+ let n = e, { h: i, s: a, l: o, a: s } = h(t), c = Math[n(425)](i) % 360 + ", " + Math[n(425)](a * 100) + "%, " + Math[n(425)](o * 100) + "%";
156
+ return s < 1 ? "hsla(" + c + ", " + r(s, 2) + ")" : n(444) + c + ")";
151
157
  }
152
- function b(t, n, r = !0) {
158
+ function x(t, n, r = !0) {
153
159
  let i = e;
154
- return n === i(345) ? v(r ? t : {
160
+ return n === i(443) ? y(r ? t : {
155
161
  ...t,
156
162
  a: 1
157
- }) : n === i(357) ? y(r ? t : {
163
+ }) : n === i(430) ? b(r ? t : {
158
164
  ...t,
159
165
  a: 1
160
- }) : _(t, r);
166
+ }) : v(t, r);
161
167
  }
162
- function x(e, t = !0) {
163
- let n = d(e);
164
- return n ? _(n, t) : null;
168
+ function S(e, t = !0) {
169
+ let n = f(e);
170
+ return n ? v(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 { n as clamp, x as formatColor, v as formatHex, b as formatHsl, y as formatRgb, g as hslToRgb, m as hsvToRgb, w as isLight, C as luminance, S as normalizeHex, f as parseColor, a as parseHex, d as parseHsl, u as parseRgb, h as rgbToHsl, p as rgbToHsv };
@@ -1,75 +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) {
2
+ var e = t;
3
+ (function(e, n) {
4
+ for (var r = t, i = e();;) try {
5
+ if (-parseInt(r(414)) / 1 * (parseInt(r(421)) / 2) + parseInt(r(417)) / 3 * (-parseInt(r(415)) / 4) + parseInt(r(411)) / 5 + -parseInt(r(416)) / 6 + parseInt(r(422)) / 7 + -parseInt(r(419)) / 8 * (-parseInt(r(412)) / 9) + parseInt(r(413)) / 10 == n) break;
6
+ i.push(i.shift());
7
+ } catch {
8
+ i.push(i.shift());
9
+ }
10
+ })(n, 276381);
11
+ function t(e, r) {
12
+ e -= 408;
13
+ var i = n(), a = i[e];
14
+ t.LuiaPM === void 0 && (t.fLdzgc = function(e) {
6
15
  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
16
  for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
8
17
  return decodeURIComponent(r);
9
- }, e.onqfAZ = {}, e.jreFLC = !0);
18
+ }, t.AUAQDW = {}, t.LuiaPM = !0);
10
19
  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;
20
+ t.IqkAGe !== o && (t.AUAQDW = {}, t.IqkAGe = o);
21
+ var s = t.AUAQDW[e];
22
+ return s === void 0 ? (a = t.fLdzgc(a), t.AUAQDW[e] = a) : a = s, a;
14
23
  }
15
- var t = e;
16
24
  function n() {
17
25
  var e = [
18
- "mtG0otHIC2jSuhK",
19
- "nteXodqWotjpugnZzNC",
20
- "ls1JAgfYDc0Y",
21
- "ndu4otz2wuPVrMu",
22
- "ls1JAgfYDc0X",
23
- "odi4txrfB0nH",
24
- "nZm2nZy2nvvfBwjKEq",
25
- "mJe0oxn2Ce9tBq",
26
- "mtGXmgHrrM96yG",
27
- "ls1JAgfYDc00",
28
- "mtKYndeXm2jMrfbABW",
29
- "ngPIEgDZra",
30
- "mtnpAMfJuwy",
31
- "mtbTrefhtM0",
32
26
  "ls1JAgfYDc01",
33
27
  "ls1JAgfYDc02",
34
- "mtaZnJK5ndjHyvbltha",
28
+ "mJK0nZGWDKX0t295",
29
+ "ou9YtMXHqW",
30
+ "mtaYmdeZmtbtDMThtuC",
31
+ "mJCXq0nUtMzw",
32
+ "ndrerKPxyKG",
33
+ "mJCYodq5nhjWDfP5qW",
34
+ "odCWntfpqwD4D2K",
35
35
  "ls1JAgfYDc0Z",
36
- "nZu5v1DIuwP3"
36
+ "nZqXmti4wvvSD1bn",
37
+ "ls1JAgfYDc0Y",
38
+ "mti1nMTHvKjtsq",
39
+ "mZqXndm5EMnRq092",
40
+ "ls1JAgfYDc00"
37
41
  ];
38
42
  return n = function() {
39
43
  return e;
40
44
  }, n();
41
45
  }
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;
45
- i.push(i.shift());
46
- } catch {
47
- i.push(i.shift());
48
- }
49
- })(n, 939497);
50
46
  var r = [
51
47
  {
52
- color: t(450),
48
+ color: "--chart-1",
53
49
  label: "분홍"
54
50
  },
55
51
  {
56
- color: t(448),
52
+ color: e(420),
57
53
  label: "파랑"
58
54
  },
59
55
  {
60
- color: t(444),
56
+ color: e(418),
61
57
  label: "청록"
62
58
  },
63
59
  {
64
- color: t(455),
60
+ color: e(408),
65
61
  label: "보라"
66
62
  },
67
63
  {
68
- color: t(441),
64
+ color: e(409),
69
65
  label: "회색"
70
66
  },
71
67
  {
72
- color: t(442),
68
+ color: e(410),
73
69
  label: "주황"
74
70
  }
75
71
  ];