@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,59 +1,43 @@
1
1
  "use client";
2
- const e = t;
3
- function t(e, r) {
4
- e -= 160;
5
- let i = n(), a = i[e];
6
- t.uQJvgw === void 0 && (t.ZsMNmE = 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.EJgmmx = {}, t.uQJvgw = !0);
12
- let o = i[0];
13
- t.oteYHn !== o && (t.EJgmmx = {}, t.oteYHn = o);
14
- let s = t.EJgmmx[e];
15
- return s === void 0 ? (a = t.ZsMNmE(a), t.EJgmmx[e] = a) : a = s, a;
16
- }
17
- (function(e, n) {
18
- let r = t, i = e();
2
+ const e = r;
3
+ (function(e, t) {
4
+ let n = r, i = e();
19
5
  for (;;) try {
20
- if (-parseInt(r(164)) / 1 * (-parseInt(r(175)) / 2) + -parseInt(r(173)) / 3 * (-parseInt(r(169)) / 4) + -parseInt(r(161)) / 5 * (-parseInt(r(165)) / 6) + -parseInt(r(168)) / 7 * (-parseInt(r(172)) / 8) + parseInt(r(166)) / 9 + -parseInt(r(176)) / 10 + -parseInt(r(160)) / 11 * (parseInt(r(170)) / 12) == n) break;
6
+ if (parseInt(n(358)) / 1 + -parseInt(n(355)) / 2 * (-parseInt(n(348)) / 3) + -parseInt(n(356)) / 4 + parseInt(n(354)) / 5 * (-parseInt(n(351)) / 6) + parseInt(n(350)) / 7 + -parseInt(n(349)) / 8 + -parseInt(n(346)) / 9 * (-parseInt(n(357)) / 10) == t) break;
21
7
  i.push(i.shift());
22
8
  } catch {
23
9
  i.push(i.shift());
24
10
  }
25
- })(n, 781085);
26
- function n() {
11
+ })(t, 838928);
12
+ function t() {
27
13
  let e = [
28
- "mZC5mZzWz3zryvu",
29
- "m2X6BfLrCW",
30
- "zMXVB3i",
31
- "mty5ndm0mLDQBKTeCG",
32
- "mtm1otu1otb0DNLxAwq",
33
- "mtG3nZDZwLfQsum",
34
- "mZqYnJG1ENDZvM9b",
35
- "y2XVy2S",
36
- "Dgv4Da",
37
- "mwPbq1rUwG",
38
- "mJrpuuDou3a",
39
- "nJyZmJu1ovn1CLbYEq",
14
+ "mtq0nM9izLzAzq",
15
+ "ndG2ndq0mfHQAvbstW",
16
+ "mZCZody2nwHTqNbhzq",
17
+ "ndy4ota3ohrUAuX0qW",
40
18
  "CgfKu3rHCNq",
41
- "nZKXqNLtCxzN",
42
- "ntC3mdm2DK9Avw5V",
43
- "mJC5nMzurMTZzG",
44
- "Bwf4"
19
+ "Dgv4Da",
20
+ "nwDLz2fbqq",
21
+ "ndiZnMnOC2H2qq",
22
+ "nJy2ntGWngThrfrYAW",
23
+ "mJbnuLPLsum",
24
+ "ndK5mdeWzxnltuHX",
25
+ "y2XVy2S",
26
+ "Bwf4",
27
+ "odi4ndm0n21dwM94Cq",
28
+ "zMXVB3i"
45
29
  ];
46
- return n = function() {
30
+ return t = function() {
47
31
  return e;
48
- }, n();
32
+ }, t();
49
33
  }
50
- function r(t, n = e(162)) {
51
- let r = e, i = Math[r(171)](0, Math[r(174)](t)), a = Math.floor(i / 3600), o = Math[r(174)](i % 3600 / 60), s = i % 60;
52
- if (n === r(162)) {
53
- let e = String(s)[r(167)](2, "0");
54
- return a > 0 ? a + ":" + String(o)[r(167)](2, "0") + ":" + e : o + ":" + e;
34
+ function n(t, n = e(344)) {
35
+ let r = e, i = Math[r(345)](0, Math.floor(t)), a = Math[r(347)](i / 3600), o = Math.floor(i % 3600 / 60), s = i % 60;
36
+ if (n === r(344)) {
37
+ let e = String(s)[r(352)](2, "0");
38
+ return a > 0 ? a + ":" + String(o)[r(352)](2, "0") + ":" + e : o + ":" + e;
55
39
  }
56
- let [c, l, u] = n === r(163) ? [
40
+ let [c, l, u] = n === r(353) ? [
57
41
  "시간",
58
42
  "분",
59
43
  "초"
@@ -64,4 +48,18 @@ function r(t, n = e(162)) {
64
48
  ];
65
49
  return a > 0 ? o > 0 ? "" + a + c + " " + o + l : "" + a + c : o > 0 ? s > 0 ? "" + o + l + " " + s + u : "" + o + l : "" + s + u;
66
50
  }
67
- export { r as formatElapsed };
51
+ function r(e, n) {
52
+ e -= 344;
53
+ let i = t(), a = i[e];
54
+ r.WTqOFI === void 0 && (r.vWQkLa = function(e) {
55
+ let t = "", n = "";
56
+ 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);
57
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
58
+ return decodeURIComponent(n);
59
+ }, r.gYNKdy = {}, r.WTqOFI = !0);
60
+ let o = i[0];
61
+ r.aIPemR !== o && (r.gYNKdy = {}, r.aIPemR = o);
62
+ let s = r.gYNKdy[e];
63
+ return s === void 0 ? (a = r.vWQkLa(a), r.gYNKdy[e] = a) : a = s, a;
64
+ }
65
+ export { n as formatElapsed };
@@ -1,64 +1,64 @@
1
1
  "use client";
2
- function e(t, r) {
3
- t -= 398;
4
- let i = n(), a = i[t];
5
- e.jGhSrG === void 0 && (e.FcPlsv = 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.pbLcKZ = {}, e.jGhSrG = !0);
11
- let o = i[0];
12
- e.HDbrZn !== o && (e.pbLcKZ = {}, e.HDbrZn = o);
13
- let s = e.pbLcKZ[t];
14
- return s === void 0 ? (a = e.FcPlsv(a), e.pbLcKZ[t] = a) : a = s, a;
15
- }
16
- const t = e;
17
- function n() {
18
- let e = /* @__PURE__ */ "7j28io2BHa.7iUC6Rceio2BHa.zM9YBwf0.mtGWmhvkzvvSqW.A28Ts1i.mJq2CM5OCu1K.z2v0rgf0zq.BwLU.ywjZ.z2v0rNvSBfLLyxi.nJi4Egz6Avvp.ntu4sffpA1rZ.z2v0tw9UDgG.7iUC6RceioYGHa.nZy0mJK4rhPPz1Ll.ntzwDvvcAKC.67Aeio2BHa.Bwf4.mtiYodyWmNzOufvLvG.nJq3ndi1t1PMr2n1.Bg9UzW.mtC3mJi2vMTNCurP.CM91BMq.otGWnZGWz1rnqun4.7j28ioYGHa.Axnoyu4.C2HVCNq.67AeioYGHa.z2v0vgLTzq.zMXVB3i".split(".");
19
- return n = function() {
20
- return e;
21
- }, n();
22
- }
23
- (function(t, n) {
24
- let r = e, i = t();
2
+ const e = p;
3
+ (function(e, t) {
4
+ let n = p, r = e();
25
5
  for (;;) try {
26
- if (-parseInt(r(418)) / 1 * (-parseInt(r(417)) / 2) + parseInt(r(412)) / 3 * (parseInt(r(410)) / 4) + parseInt(r(426)) / 5 + -parseInt(r(425)) / 6 + -parseInt(r(398)) / 7 * (parseInt(r(422)) / 8) + parseInt(r(421)) / 9 + parseInt(r(400)) / 10 == n) break;
27
- i.push(i.shift());
6
+ if (parseInt(n(353)) / 1 * (-parseInt(n(363)) / 2) + -parseInt(n(349)) / 3 + parseInt(n(346)) / 4 + parseInt(n(350)) / 5 + parseInt(n(355)) / 6 * (-parseInt(n(343)) / 7) + parseInt(n(347)) / 8 + parseInt(n(366)) / 9 == t) break;
7
+ r.push(r.shift());
28
8
  } catch {
29
- i.push(i.shift());
9
+ r.push(r.shift());
30
10
  }
31
- })(n, 142604);
32
- var r = 1e3, i = 60 * r, a = 60 * i, o = 24 * a, s = (e) => e instanceof Date ? e : new Date(e), c = (e) => new Date(e.getFullYear(), e[t(419)](), e[t(413)]())[t(405)](), l = (e, n) => Math[t(399)]((c(n) - c(e)) / o);
33
- function u(e, n = /* @__PURE__ */ new Date()) {
34
- let o = t, c = s(e);
35
- if (Number[o(402)](c[o(405)]())) return "";
36
- let u = n[o(405)]() - c.getTime(), d = Math[o(415)](u), f = u >= 0, p = l(c, n);
37
- if (d < 45 * r) return f ? "방금" : "곧";
38
- if (d < a) {
39
- let e = Math[o(424)](1, Math[o(406)](d / i));
40
- return f ? e + o(404) : e + o(423);
11
+ })(l, 371996);
12
+ var t = 1e3, n = 60 * t, r = 60 * n, i = 24 * r, a = (e) => e instanceof Date ? e : new Date(e), o = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()).getTime(), s = (e, t) => Math.round((o(t) - o(e)) / i);
13
+ function c(e, i = /* @__PURE__ */ new Date()) {
14
+ let o = p, c = a(e);
15
+ if (Number[o(365)](c[o(364)]())) return "";
16
+ let l = i.getTime() - c[o(364)](), u = Math[o(362)](l), d = l >= 0, f = s(c, i);
17
+ if (u < 45 * t) return d ? "방금" : "곧";
18
+ if (u < r) {
19
+ let e = Math.max(1, Math[o(351)](u / n));
20
+ return d ? e + o(345) : e + o(344);
41
21
  }
42
- if (p === 0 || d < 6 * a) {
43
- let e = Math[o(406)](d / a);
44
- return f ? e + o(420) : e + o(408);
22
+ if (f === 0 || u < 6 * r) {
23
+ let e = Math[o(351)](u / r);
24
+ return d ? e + o(360) : e + o(352);
45
25
  }
46
- if (p === 1) return "어제";
47
- if (p === -1) return "내일";
48
- if (Math[o(415)](p) < 7) return f ? p + o(401) : -p + o(407);
49
- let m = c.getMonth() + 1 + "월 " + c[o(413)]() + "일";
50
- return c.getFullYear() === n[o(416)]() ? m : c[o(416)]() + "년 " + m;
26
+ if (f === 1) return "어제";
27
+ if (f === -1) return "내일";
28
+ if (Math[o(362)](f) < 7) return d ? f + o(367) : -f + o(361);
29
+ let m = c[o(356)]() + 1 + "월 " + c[o(348)]() + "일";
30
+ return c[o(359)]() === i[o(359)]() ? m : c[o(359)]() + "년 " + m;
51
31
  }
52
- var d = new Intl.DateTimeFormat(t(411), {
53
- dateStyle: t(427),
54
- timeStyle: t(403)
32
+ function l() {
33
+ let e = /* @__PURE__ */ "z2v0rNvSBfLLyxi.7iUC6RceioYGHa.7j28io2BHa.ywjZ.mti1ofrxDgnUAa.z2v0vgLTzq.Axnoyu4.nta2oti1y3rNwu5Y.7j28ioYGHa.rgf0zvrPBwvgB3jTyxq.ndy5EuPqC3f1.67Aeio2BHa.67AeioYGHa.mJC5mtq2nfnVzvDRBG.mty3mZmXmLLzr2XHAq.z2v0rgf0zq.mtyZndC0nxnwwhHxAW.mJaWodeXnwHQsLPRAq.zMXVB3i.7iUC6Rceio2BHa.mZG4B3HJtezr.zM9YBwf0.mtGYnZbcu1r3wxe.z2v0tw9UDgG.A28Ts1i.C2HVCNq".split(".");
34
+ return l = function() {
35
+ return e;
36
+ }, l();
37
+ }
38
+ var u = new Intl[e(368)](e(357), {
39
+ dateStyle: "long",
40
+ timeStyle: e(358)
55
41
  });
56
- function f(e) {
57
- let n = t, r = s(e);
58
- return Number.isNaN(r[n(405)]()) ? "" : d[n(409)](r);
42
+ function d(t) {
43
+ let n = e, r = a(t);
44
+ return Number.isNaN(r[n(364)]()) ? "" : u[n(354)](r);
59
45
  }
60
- function p(e, n = /* @__PURE__ */ new Date()) {
61
- let c = t, l = s(e), u = Math[c(415)](n.getTime() - l.getTime()), d;
62
- return d = u < 45 * r ? 45 * r - u : u < a ? i - u % i : u < o ? a - u % a : a, Math[c(414)](Math[c(424)](d + 50, r), a);
46
+ function f(o, s = /* @__PURE__ */ new Date()) {
47
+ let c = e, l = a(o), u = Math[c(362)](s[c(364)]() - l[c(364)]()), d;
48
+ return d = u < 45 * t ? 45 * t - u : u < r ? n - u % n : u < i ? r - u % r : r, Math.min(Math.max(d + 50, t), r);
49
+ }
50
+ function p(e, t) {
51
+ e -= 343;
52
+ let n = l(), r = n[e];
53
+ p.BKfuyG === void 0 && (p.BfCAPj = function(e) {
54
+ let t = "", n = "";
55
+ for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
56
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
57
+ return decodeURIComponent(n);
58
+ }, p.bNgsYN = {}, p.BKfuyG = !0);
59
+ let i = n[0];
60
+ p.okkmwu !== i && (p.bNgsYN = {}, p.okkmwu = i);
61
+ let a = p.bNgsYN[e];
62
+ return a === void 0 ? (r = p.BfCAPj(r), p.bNgsYN[e] = r) : r = a, r;
63
63
  }
64
- export { f as formatFullDate, u as formatRelativeTime, p as nextRelativeTimeChange, s as toDate };
64
+ export { d as formatFullDate, c as formatRelativeTime, f as nextRelativeTimeChange, a as toDate };
@@ -1,94 +1,94 @@
1
1
  "use client";
2
- const e = o;
2
+ const e = n;
3
3
  (function(e, t) {
4
- let n = o, r = e();
4
+ let r = n, i = e();
5
5
  for (;;) try {
6
- if (-parseInt(n(148)) / 1 * (parseInt(n(151)) / 2) + parseInt(n(175)) / 3 + -parseInt(n(154)) / 4 * (parseInt(n(161)) / 5) + -parseInt(n(166)) / 6 + parseInt(n(171)) / 7 * (-parseInt(n(173)) / 8) + -parseInt(n(182)) / 9 + parseInt(n(179)) / 10 == t) break;
7
- r.push(r.shift());
6
+ if (-parseInt(r(175)) / 1 * (parseInt(r(161)) / 2) + -parseInt(r(159)) / 3 * (-parseInt(r(168)) / 4) + parseInt(r(173)) / 5 * (parseInt(r(170)) / 6) + -parseInt(r(181)) / 7 * (-parseInt(r(153)) / 8) + parseInt(r(171)) / 9 * (-parseInt(r(151)) / 10) + -parseInt(r(180)) / 11 + -parseInt(r(152)) / 12 * (-parseInt(r(169)) / 13) == t) break;
7
+ i.push(i.shift());
8
8
  } catch {
9
- r.push(r.shift());
9
+ i.push(i.shift());
10
10
  }
11
- })(l, 257771);
11
+ })(o, 103577);
12
12
  import { isMac as t } from "./Kbd2.js";
13
- var n = /* @__PURE__ */ new Set([
14
- e(140),
15
- "cmd",
16
- e(155),
17
- e(139),
18
- e(134),
19
- e(132),
20
- "option",
21
- "shift"
22
- ]), r = {
23
- enter: e(142),
24
- return: e(142),
25
- esc: e(131),
13
+ function n(e, t) {
14
+ e -= 142;
15
+ let r = o(), i = r[e];
16
+ n.aEOphn === void 0 && (n.rJlaOA = 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
+ }, n.YkutmQ = {}, n.aEOphn = !0);
22
+ let a = r[0];
23
+ n.VtniXe !== a && (n.YkutmQ = {}, n.VtniXe = a);
24
+ let s = n.YkutmQ[e];
25
+ return s === void 0 ? (i = n.rJlaOA(i), n.YkutmQ[e] = i) : i = s, i;
26
+ }
27
+ var r = /* @__PURE__ */ new Set([
28
+ e(197),
29
+ e(166),
30
+ "meta",
31
+ e(186),
32
+ e(188),
33
+ e(194),
34
+ e(156),
35
+ e(174)
36
+ ]), i = {
37
+ enter: e(177),
38
+ return: e(177),
39
+ esc: "Escape",
26
40
  escape: "Escape",
27
- tab: e(181),
41
+ tab: e(160),
28
42
  space: " ",
29
- backspace: "Backspace",
30
- delete: e(156),
31
- up: "ArrowUp",
32
- down: "ArrowDown",
33
- left: e(137),
34
- right: e(172)
43
+ backspace: e(172),
44
+ delete: e(144),
45
+ up: e(190),
46
+ down: e(149),
47
+ left: e(154),
48
+ right: e(167)
35
49
  };
36
- function i(t) {
50
+ function a(t) {
37
51
  let n = e;
38
- return t instanceof HTMLElement ? t[n(143)] || t instanceof HTMLTextAreaElement || t instanceof HTMLSelectElement ? !0 : t instanceof HTMLInputElement && ![
39
- n(164),
40
- "radio",
41
- n(153),
52
+ return t instanceof HTMLElement ? t[n(192)] || t instanceof HTMLTextAreaElement || t instanceof HTMLSelectElement ? !0 : t instanceof HTMLInputElement && ![
53
+ "checkbox",
54
+ n(147),
42
55
  n(163),
43
- n(133),
44
- n(144),
45
- n(136),
46
- n(152)
47
- ][n(150)](t[n(165)]) : !1;
56
+ n(183),
57
+ n(142),
58
+ n(146),
59
+ n(198),
60
+ "file"
61
+ ][n(195)](t[n(182)]) : !1;
48
62
  }
49
- function a(i, a) {
50
- let o = e, s = a.map((e) => e.toLowerCase()), c = (...e) => e[o(130)]((e) => s[o(150)](e)), l = c(o(155), o(159)) || c(o(140)) && t, u = c("ctrl", "control") || c(o(140)) && !t, d = c("alt", o(158)), f = c(o(180)), p = a[o(174)]((e) => !n.has(e[o(147)]()));
51
- if (!p || i[o(162)] !== l || i[o(176)] !== u || i[o(178)] !== d) return !1;
52
- let m = p[o(147)]();
53
- if (/^[a-z]$/[o(141)](m)) return i.shiftKey === f && (i[o(169)] === o(129) + m[o(170)]() || i.key.toLowerCase() === m);
54
- if (/^[0-9]$/.test(m)) return i[o(167)] === f && (i.code === o(168) + m || i[o(169)] === o(157) + m || i.key === m);
55
- let h = r[m];
56
- return h ? i[o(167)] === f && i[o(149)] === h : i[o(149)] === p;
63
+ function o() {
64
+ let e = /* @__PURE__ */ "y3rYBa.qwX0.y29UDhjVBa.AgfZ.qxjYB3DvCa.u2HPzNq.AxndB250zw50rwrPDgfIBgu.Dg9mB3DLCKnHC2u.ywX0.Aw5JBhvKzxm.BgvUz3rO.Bw9K.y29SB3i.CMvZzxq.Bwv0yuTLEq.rgvSzxrL.A2v5.CMfUz2u.CMfKAw8.tNvTCgfK.qxjYB3DeB3DU.y29Kzq.mJq1mdyWyNHRr0vU.mJC2BwLAs1D0.mZC3nJu2Ewn3AMP1.qxjYB3Dmzwz0.u3bHy2u.B3b0Aw9U.twv0yq.C2HPzNrlzxK.ovzyvgngBW.vgfI.mZiXng9NtgHhAa.Bwv0yq.yNv0Dg9U.Dg9vChbLCKnHC2u.DgvZDa.y21K.qxjYB3DsAwDODa.mJCZmde2tMLwAfvk.mtm1otqXEgDbBg9e.mta4mdK2CLPhA2r3.nJnxBvDmDMS.qMfJA3nWywnL.mtbOt2vWtLq.C2HPzNq.mte0r0T5Bxzb.y3rYBeTLEq.rw50zxi.q29UDhjVBa.BwfW.nZCYmtq1CKXqC2rI.n2XlzgfPAa.DhLWzq.C3vIBwL0.C29Tzq.rgLNAxq".split(".");
65
+ return o = function() {
66
+ return e;
67
+ }, o();
57
68
  }
58
- function o(e, t) {
59
- e -= 129;
60
- let n = l(), r = n[e];
61
- o.WHzXxd === void 0 && (o.sZBMJw = function(e) {
62
- let t = "", n = "";
63
- 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);
64
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
65
- return decodeURIComponent(n);
66
- }, o.LKQaEX = {}, o.WHzXxd = !0);
67
- let i = n[0];
68
- o.ldaeUi !== i && (o.LKQaEX = {}, o.ldaeUi = i);
69
- let a = o.LKQaEX[e];
70
- return a === void 0 ? (r = o.sZBMJw(r), o.LKQaEX[e] = r) : r = a, r;
69
+ function s(n, a) {
70
+ let o = e, s = a[o(179)]((e) => e[o(193)]()), c = (...e) => e[o(184)]((e) => s[o(195)](e)), l = c(o(162), o(166)) || c(o(197)) && t, u = c(o(186), "control") || c(o(197)) && !t, d = c(o(194), o(156)), f = c(o(174)), p = a.find((e) => !r[o(189)](e[o(193)]()));
71
+ if (!p || n[o(143)] !== l || n[o(176)] !== u || n.altKey !== d) return !1;
72
+ let m = p.toLowerCase();
73
+ if (/^[a-z]$/[o(165)](m)) return n[o(158)] === f && (n[o(150)] === "Key" + m[o(164)]() || n[o(145)].toLowerCase() === m);
74
+ if (/^[0-9]$/[o(165)](m)) return n[o(158)] === f && (n[o(150)] === o(185) + m || n[o(150)] === o(148) + m || n[o(145)] === m);
75
+ let h = i[m];
76
+ return h ? n.shiftKey === f && n[o(145)] === h : n[o(145)] === p;
71
77
  }
72
- var s = {
73
- ctrl: e(145),
74
- control: e(145),
75
- alt: e(146),
76
- option: "Alt",
77
- shift: e(135),
78
- meta: "Meta",
79
- cmd: e(177)
78
+ var c = {
79
+ ctrl: e(178),
80
+ control: e(178),
81
+ alt: e(187),
82
+ option: e(187),
83
+ shift: e(191),
84
+ meta: e(157),
85
+ cmd: e(157)
80
86
  };
81
- function c(n) {
82
- let i = e;
83
- return n[i(138)]((e) => {
84
- let n = i, a = e[n(147)]();
85
- return a === n(140) ? n(t ? 177 : 145) : s[a] ? s[a] : r[a] ? r[a] === " " ? "Space" : r[a] : e[n(160)] === 1 ? e[n(170)]() : e;
87
+ function l(n) {
88
+ let r = e;
89
+ return n[r(179)]((e) => {
90
+ let n = r, a = e[n(193)]();
91
+ return a === n(197) ? n(t ? 157 : 178) : c[a] ? c[a] : i[a] ? i[a] === " " ? n(155) : i[a] : e[n(196)] === 1 ? e[n(164)]() : e;
86
92
  }).join("+");
87
93
  }
88
- function l() {
89
- let e = /* @__PURE__ */ "tNvTCgfK.B3b0Aw9U.y21K.BgvUz3rO.mta4ndq5mfnAB2zQwG.Bwv0yuTLEq.C3vIBwL0.y2HLy2TIB3G.DhLWzq.mJqXntiWng5ZBgfMyG.C2HPzNrlzxK.rgLNAxq.y29Kzq.Dg9vChbLCKnHC2u.mJftAvHjv3G.qxjYB3DsAwDODa.odaWmJmYqKnWzLvM.zMLUza.nZC4oty4CK5jquD1.y3rYBeTLEq.twv0yq.ywX0s2v5.mty2ntm0ntbvDvHAywC.C2HPzNq.vgfI.nde0nZG4nfrXvenrvG.s2v5.C29Tzq.rxnJyxbL.ywX0.CMvZzxq.y29UDhjVBa.u2HPzNq.y29SB3i.qxjYB3Dmzwz0.BwfW.y3rYBa.Bw9K.DgvZDa.rw50zxi.AxndB250zw50rwrPDgfIBgu.CMfUz2u.q29UDhjVBa.qwX0.Dg9mB3DLCKnHC2u.otDTzKPgCgy.A2v5.Aw5JBhvKzxm.mtq0mKHxt1zwvq.zMLSzq.yNv0Dg9U.oe5LzfbHuG.Bwv0yq.rgvSzxrL".split(".");
90
- return l = function() {
91
- return e;
92
- }, l();
93
- }
94
- export { i as isTypingTarget, a as matchesHotkey, c as toAriaShortcut };
94
+ export { a as isTypingTarget, s as matchesHotkey, l as toAriaShortcut };