@iamfiro/design 0.3.0 → 0.3.1

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 (153) hide show
  1. package/lib/components/Accordion/Accordion2.js +86 -86
  2. package/lib/components/ActionBar/ActionBar2.js +44 -43
  3. package/lib/components/Alert/Alert2.js +79 -79
  4. package/lib/components/AppShell/AppShell2.js +58 -58
  5. package/lib/components/AreaChart/AreaChart.js +41 -41
  6. package/lib/components/BarChart/BarChart2.js +110 -110
  7. package/lib/components/BarList/BarList2.js +95 -95
  8. package/lib/components/Breadcrumb/Breadcrumb2.js +62 -59
  9. package/lib/components/Calendar/Calendar2.js +202 -202
  10. package/lib/components/Calendar/DatePicker2.js +122 -123
  11. package/lib/components/Calendar/date.js +57 -60
  12. package/lib/components/Card/Card2.js +62 -63
  13. package/lib/components/CardFrame/CardFrame2.js +43 -48
  14. package/lib/components/Chart/ChartParts.js +80 -80
  15. package/lib/components/Chart/chart2.js +57 -57
  16. package/lib/components/Chart/useChartInteraction.js +49 -49
  17. package/lib/components/ChatBubble/ChatBubble2.js +87 -87
  18. package/lib/components/ChatBubble/formatChatTime.js +34 -39
  19. package/lib/components/ChatComposer/ChatComposer2.js +97 -97
  20. package/lib/components/CodeBlock/CodeBlock2.js +60 -60
  21. package/lib/components/CodeBlock/highlight.js +75 -78
  22. package/lib/components/ColorPicker/ColorPicker2.js +383 -384
  23. package/lib/components/ColorPicker/color.js +74 -74
  24. package/lib/components/ColorPicker/presets.js +41 -46
  25. package/lib/components/Combobox/Combobox2.js +130 -131
  26. package/lib/components/CommandMenu/CommandMenu.js +137 -137
  27. package/lib/components/Comment/Comment2.js +64 -88
  28. package/lib/components/ContextMenu/ContextMenu2.js +87 -87
  29. package/lib/components/DataGrid/DataGrid2.js +911 -909
  30. package/lib/components/DataGrid/GridPopover.js +114 -114
  31. package/lib/components/DataGrid/anchor.js +25 -25
  32. package/lib/components/DataGrid/model.js +281 -282
  33. package/lib/components/DataGrid/panels.js +427 -429
  34. package/lib/components/DataGrid/typeMeta.js +50 -51
  35. package/lib/components/DataGrid/types.js +39 -40
  36. package/lib/components/DescriptionList/DescriptionList2.js +104 -104
  37. package/lib/components/Dialog/AlertDialog.js +85 -84
  38. package/lib/components/Dialog/Dialog2.js +72 -71
  39. package/lib/components/Dialog/modal.js +68 -68
  40. package/lib/components/Drawer/Drawer2.js +100 -100
  41. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -268
  42. package/lib/components/DropdownMenu/menuCore.js +36 -36
  43. package/lib/components/Dropzone/Dropzone2.js +66 -65
  44. package/lib/components/EmptyState/EmptyState2.js +52 -54
  45. package/lib/components/FileChip/FileChip2.js +42 -66
  46. package/lib/components/FileUpload/FileUpload.js +171 -170
  47. package/lib/components/FilterChips/FilterChips2.js +54 -54
  48. package/lib/components/FunnelChart/FunnelChart2.js +144 -144
  49. package/lib/components/FunnelChart/funnel.js +56 -53
  50. package/lib/components/Highlight/Highlight2.js +60 -60
  51. package/lib/components/HoverCard/HoverCard.js +72 -72
  52. package/lib/components/InlineDiff/InlineDiff2.js +112 -112
  53. package/lib/components/InlineDiff/diff.js +81 -81
  54. package/lib/components/InlineDiff/useDiffReview.js +54 -53
  55. package/lib/components/Kanban/Kanban2.js +372 -372
  56. package/lib/components/Kanban/KanbanCard.js +80 -80
  57. package/lib/components/Kanban/move.js +55 -55
  58. package/lib/components/LineChart/LineChart2.js +167 -167
  59. package/lib/components/List/List2.js +64 -65
  60. package/lib/components/Listbox/Listbox2.js +105 -105
  61. package/lib/components/Marker/Marker2.js +54 -54
  62. package/lib/components/Menubar/Menubar2.js +112 -113
  63. package/lib/components/MultiSelect/MultiSelect2.js +106 -106
  64. package/lib/components/NavigationMenu/NavigationMenu2.js +227 -227
  65. package/lib/components/NoticeStack/NoticeStack2.js +115 -115
  66. package/lib/components/NumberStepper/NumberStepper2.js +69 -70
  67. package/lib/components/OtpInput/OtpInput2.js +87 -87
  68. package/lib/components/Pagination/Pagination2.js +97 -97
  69. package/lib/components/Pagination/paginationRange.js +23 -24
  70. package/lib/components/PhoneInput/PhoneInput.js +85 -85
  71. package/lib/components/PieChart/PieChart2.js +116 -116
  72. package/lib/components/PieChart/arc.js +80 -56
  73. package/lib/components/PieChart/useArcTween.js +57 -59
  74. package/lib/components/Popover/Popover2.js +59 -60
  75. package/lib/components/ProgressTracker/ProgressTracker2.js +116 -116
  76. package/lib/components/Rating/Rating2.js +93 -93
  77. package/lib/components/Resizable/Resizable2.js +136 -134
  78. package/lib/components/Resizable/layout.js +73 -73
  79. package/lib/components/ScaledPreview/ScaledPreview2.js +57 -58
  80. package/lib/components/ScatterChart/ScatterChart2.js +252 -253
  81. package/lib/components/ScatterChart/scatter.js +58 -56
  82. package/lib/components/ScrollArea/ScrollArea2.js +133 -134
  83. package/lib/components/Select/Select2.js +89 -89
  84. package/lib/components/Sidebar/Sidebar2.js +76 -76
  85. package/lib/components/Skeleton/Skeleton2.js +67 -67
  86. package/lib/components/Slider/Slider2.js +67 -67
  87. package/lib/components/SocialLoginButton/SocialLoginButton.js +46 -47
  88. package/lib/components/SparkChart/SparkChart2.js +130 -130
  89. package/lib/components/SparkChart/spark.js +57 -62
  90. package/lib/components/Sparkbar/Sparkbar2.js +44 -44
  91. package/lib/components/SplitView/SplitView2.js +53 -53
  92. package/lib/components/Stat/Stat2.js +83 -83
  93. package/lib/components/StepList/StepList2.js +73 -73
  94. package/lib/components/Table/Table2.js +45 -45
  95. package/lib/components/Tabs/Tabs2.js +87 -87
  96. package/lib/components/TagInput/TagInput2.js +231 -234
  97. package/lib/components/TimePicker/TimePicker2.js +195 -195
  98. package/lib/components/TimePicker/time.js +60 -62
  99. package/lib/components/Timeline/Timeline2.js +199 -199
  100. package/lib/components/Timeline/scale.js +56 -58
  101. package/lib/components/Toast/Toaster.js +153 -152
  102. package/lib/components/Toast/store.js +57 -58
  103. package/lib/components/ToggleGroup/ToggleGroup2.js +74 -74
  104. package/lib/components/Toolbar/Toolbar2.js +135 -133
  105. package/lib/components/Tracker/Tracker2.js +83 -83
  106. package/lib/components/TreeDiagram/TreeDiagram2.js +103 -103
  107. package/lib/components/TreeView/TreeView2.js +165 -163
  108. package/lib/hooks/timing.js +33 -31
  109. package/lib/hooks/useControllableState.js +42 -42
  110. package/lib/hooks/useCountdown.js +58 -63
  111. package/lib/hooks/useDigitInput.js +75 -77
  112. package/lib/hooks/useDismiss.js +50 -52
  113. package/lib/hooks/useElapsed.js +58 -56
  114. package/lib/hooks/useFloating.js +44 -44
  115. package/lib/hooks/useFocusTrap.js +64 -40
  116. package/lib/hooks/usePresence.js +48 -50
  117. package/lib/hooks/usePressToOpen.js +52 -51
  118. package/lib/hooks/useScrollLock.js +49 -48
  119. package/lib/hooks/useSelection.js +37 -40
  120. package/lib/index.js +70 -69
  121. package/lib/primitives/AspectRatio2.js +50 -54
  122. package/lib/primitives/BrandIcon.js +153 -153
  123. package/lib/primitives/ColorDot2.js +49 -48
  124. package/lib/primitives/CopyButton2.js +59 -58
  125. package/lib/primitives/CountBadge2.js +57 -55
  126. package/lib/primitives/Countdown2.js +45 -49
  127. package/lib/primitives/Delta2.js +71 -46
  128. package/lib/primitives/Elapsed.js +43 -43
  129. package/lib/primitives/FileIcon2.js +93 -93
  130. package/lib/primitives/Flag2.js +95 -95
  131. package/lib/primitives/IconStack2.js +55 -55
  132. package/lib/primitives/IconTile2.js +46 -45
  133. package/lib/primitives/Kbd2.js +55 -55
  134. package/lib/primitives/Layout2.js +80 -80
  135. package/lib/primitives/Link2.js +36 -34
  136. package/lib/primitives/MaskedText2.js +65 -64
  137. package/lib/primitives/Progress2.js +80 -80
  138. package/lib/primitives/RelativeTime.js +52 -54
  139. package/lib/primitives/SearchInput2.js +55 -54
  140. package/lib/primitives/SelectorButton2.js +64 -65
  141. package/lib/primitives/Spinner2.js +55 -59
  142. package/lib/primitives/StatusIcon2.js +65 -65
  143. package/lib/primitives/Swatch2.js +50 -50
  144. package/lib/primitives/Tooltip2.js +85 -85
  145. package/lib/primitives/Typography2.js +66 -66
  146. package/lib/primitives/formatCountdown.js +43 -40
  147. package/lib/primitives/formatElapsed.js +24 -27
  148. package/lib/primitives/formatRelativeTime.js +43 -43
  149. package/lib/primitives/hotkey.js +71 -71
  150. package/lib/primitives/index.js +156 -157
  151. package/lib/primitives/maskValue.js +38 -34
  152. package/lib/style.css +1 -1
  153. package/package.json +1 -1
@@ -3,56 +3,53 @@ const e = n;
3
3
  (function(e, t) {
4
4
  let r = n, i = e();
5
5
  for (;;) try {
6
- if (-parseInt(r(318)) / 1 + parseInt(r(315)) / 2 * (-parseInt(r(321)) / 3) + -parseInt(r(329)) / 4 * (-parseInt(r(323)) / 5) + parseInt(r(326)) / 6 * (-parseInt(r(320)) / 7) + parseInt(r(317)) / 8 * (-parseInt(r(327)) / 9) + parseInt(r(319)) / 10 + parseInt(r(316)) / 11 == t) break;
6
+ if (-parseInt(r(290)) / 1 + parseInt(r(299)) / 2 + parseInt(r(297)) / 3 + -parseInt(r(300)) / 4 + -parseInt(r(294)) / 5 * (parseInt(r(292)) / 6) + -parseInt(r(291)) / 7 + parseInt(r(289)) / 8 == t) break;
7
7
  i.push(i.shift());
8
8
  } catch {
9
9
  i.push(i.shift());
10
10
  }
11
- })(t, 250958);
11
+ })(t, 348376);
12
12
  function t() {
13
13
  let e = [
14
- "mtyXn21KsNLjBG",
14
+ "mJG1mtmXn1DIAgr6Eq",
15
+ "nK5YwuHsDG",
15
16
  "CgfKu3rHCNq",
16
- "ntbjq3DOqxi",
17
- "zMXVB3i",
17
+ "mJmYndqWq3r2qMr0",
18
18
  "Bwf4",
19
- "nZK3nfvls0nJwa",
20
- "mZq4oduZnw9MzgHeBG",
21
- "Dgv4Da",
22
- "mti2ote2zfzusMPh",
23
19
  "y2XVy2S",
24
- "mty5mfHnuhr0vW",
25
- "mtaYmJGWodzvq0Hireq",
26
- "ohf1EufHvG",
27
- "mtGZnJe2tK5xv2Lj",
28
- "mZqWmtG1mefuwvHQAa",
29
- "mtyZmxrTAenSCq"
20
+ "mJG1otaZrunAALnp",
21
+ "Dgv4Da",
22
+ "ode1nJaYqML5rxvy",
23
+ "mZeZmtz0BgvlBui",
24
+ "zMXVB3i",
25
+ "ndmXmJu5mNjLq1LIEG",
26
+ "mJmYmtuYuuLsweTN"
30
27
  ];
31
28
  return t = function() {
32
29
  return e;
33
30
  }, t();
34
31
  }
35
32
  function n(e, r) {
36
- e -= 314;
33
+ e -= 289;
37
34
  let i = t(), a = i[e];
38
- n.sSVAnM === void 0 && (n.rVpbsz = function(e) {
35
+ n.VLuwkG === void 0 && (n.RneeZp = function(e) {
39
36
  let t = "", n = "";
40
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);
41
38
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
42
39
  return decodeURIComponent(n);
43
- }, n.QlfnyH = {}, n.sSVAnM = !0);
40
+ }, n.mSZarY = {}, n.VLuwkG = !0);
44
41
  let o = i[0];
45
- n.CPzcZf !== o && (n.QlfnyH = {}, n.CPzcZf = o);
46
- let s = n.QlfnyH[e];
47
- return s === void 0 ? (a = n.rVpbsz(a), n.QlfnyH[e] = a) : a = s, a;
42
+ n.IJpHkO !== o && (n.mSZarY = {}, n.IJpHkO = o);
43
+ let s = n.mSZarY[e];
44
+ return s === void 0 ? (a = n.RneeZp(a), n.mSZarY[e] = a) : a = s, a;
48
45
  }
49
- function r(t, n = e(314)) {
50
- let r = e, i = Math[r(325)](0, Math.floor(t)), a = Math[r(324)](i / 3600), o = Math[r(324)](i % 3600 / 60), s = i % 60;
51
- if (n === r(314)) {
52
- let e = String(s)[r(322)](2, "0");
53
- return a > 0 ? a + ":" + String(o)[r(322)](2, "0") + ":" + e : o + ":" + e;
46
+ function r(t, n = e(296)) {
47
+ let r = e, i = Math[r(295)](0, Math[r(301)](t)), a = Math[r(301)](i / 3600), o = Math[r(301)](i % 3600 / 60), s = i % 60;
48
+ if (n === r(296)) {
49
+ let e = String(s)[r(293)](2, "0");
50
+ return a > 0 ? a + ":" + String(o)[r(293)](2, "0") + ":" + e : o + ":" + e;
54
51
  }
55
- let [c, l, u] = n === r(328) ? [
52
+ let [c, l, u] = n === r(298) ? [
56
53
  "시간",
57
54
  "분",
58
55
  "초"
@@ -1,64 +1,64 @@
1
1
  "use client";
2
- const e = l;
3
- function t() {
4
- let e = /* @__PURE__ */ "z2v0tw9UDgG.zM9YBwf0.mJjrqKrtrue.7iUC6RceioYGHa.z2v0rNvSBfLLyxi.C2HVCNq.z2v0rgf0zq.ovnHzwf4Ca.mZm4nZeYofPAt0XxEq.Bwf4.7iUC6Rceio2BHa.Axnoyu4.mZi1otK2D0XmC05s.ywjZ.z2v0vgLTzq.mtuXnZDhuKDwCLa.nJe4otm0ofDJr3fdsq.mtC5ndKWueHAzMDA.n2TxEhH2sa.67Aeio2BHa.mtq5ndu5nNzxz2r3uq.zMXVB3i.nxvIqKrpDa.CM91BMq.BwLU.mZu4mJe5mgnvugntsG.A28Ts1i.mty0CMDgCNf2".split(".");
5
- return t = function() {
6
- return e;
7
- }, t();
8
- }
2
+ const e = c;
9
3
  (function(e, t) {
10
- let n = l, r = e();
4
+ let n = c, r = e();
11
5
  for (;;) try {
12
- if (-parseInt(n(316)) / 1 + parseInt(n(303)) / 2 * (parseInt(n(319)) / 3) + parseInt(n(324)) / 4 * (parseInt(n(326)) / 5) + parseInt(n(321)) / 6 * (parseInt(n(322)) / 7) + parseInt(n(312)) / 8 * (parseInt(n(311)) / 9) + parseInt(n(301)) / 10 + parseInt(n(306)) / 11 * (-parseInt(n(320)) / 12) == t) break;
6
+ if (-parseInt(n(115)) / 1 * (parseInt(n(113)) / 2) + -parseInt(n(118)) / 3 * (-parseInt(n(122)) / 4) + parseInt(n(127)) / 5 + parseInt(n(128)) / 6 * (parseInt(n(132)) / 7) + -parseInt(n(138)) / 8 + parseInt(n(125)) / 9 * (parseInt(n(114)) / 10) + -parseInt(n(119)) / 11 == t) break;
13
7
  r.push(r.shift());
14
8
  } catch {
15
9
  r.push(r.shift());
16
10
  }
17
- })(t, 242458);
18
- var n = 1e3, r = 60 * n, i = 60 * r, a = 24 * i, o = (e) => e instanceof Date ? e : new Date(e), s = (t) => new Date(t.getFullYear(), t[e(304)](), t[e(310)]())[e(318)](), c = (t, n) => Math[e(299)]((s(n) - s(t)) / a);
19
- function l(e, n) {
20
- e -= 299;
21
- let r = t(), i = r[e];
22
- l.ZyIxsg === void 0 && (l.fcfGIl = function(e) {
11
+ })(d, 179067);
12
+ var t = 1e3, n = 60 * t, r = 60 * n, i = 24 * r, a = (e) => e instanceof Date ? e : new Date(e), o = (t) => new Date(t[e(117)](), t[e(139)](), t.getDate()).getTime(), s = (t, n) => Math[e(130)]((o(n) - o(t)) / i);
13
+ function c(e, t) {
14
+ e -= 112;
15
+ let n = d(), r = n[e];
16
+ c.iVrAhN === void 0 && (c.CJazXg = function(e) {
23
17
  let t = "", n = "";
24
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);
25
19
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
26
20
  return decodeURIComponent(n);
27
- }, l.AoJnHE = {}, l.ZyIxsg = !0);
28
- let a = r[0];
29
- l.RKILZw !== a && (l.AoJnHE = {}, l.RKILZw = a);
30
- let o = l.AoJnHE[e];
31
- return o === void 0 ? (i = l.fcfGIl(i), l.AoJnHE[e] = i) : i = o, i;
21
+ }, c.KtfCMf = {}, c.iVrAhN = !0);
22
+ let i = n[0];
23
+ c.objHQY !== i && (c.KtfCMf = {}, c.objHQY = i);
24
+ let a = c.KtfCMf[e];
25
+ return a === void 0 ? (r = c.CJazXg(r), c.KtfCMf[e] = r) : r = a, r;
32
26
  }
33
- function u(t, a = /* @__PURE__ */ new Date()) {
34
- let s = e, l = o(t);
35
- if (Number[s(315)](l.getTime())) return "";
36
- let u = a[s(318)]() - l.getTime(), d = Math[s(317)](u), f = u >= 0, p = c(l, a);
37
- if (d < 45 * n) return f ? "방금" : "곧";
38
- if (d < i) {
39
- let e = Math[s(313)](1, Math[s(325)](d / r));
40
- return f ? e + "분 전" : e + s(323);
27
+ function l(i, o = /* @__PURE__ */ new Date()) {
28
+ let c = e, l = a(i);
29
+ if (Number[c(137)](l.getTime())) return "";
30
+ let u = o[c(133)]() - l[c(133)](), d = Math[c(120)](u), f = u >= 0, p = s(l, o);
31
+ if (d < 45 * t) return f ? "방금" : "곧";
32
+ if (d < r) {
33
+ let e = Math[c(126)](1, Math[c(112)](d / n));
34
+ return f ? e + c(116) : e + c(124);
41
35
  }
42
- if (p === 0 || d < 6 * i) {
43
- let e = Math[s(325)](d / i);
44
- return f ? e + s(307) : e + s(314);
36
+ if (p === 0 || d < 6 * r) {
37
+ let e = Math.floor(d / r);
38
+ return f ? e + c(121) : e + c(135);
45
39
  }
46
40
  if (p === 1) return "어제";
47
41
  if (p === -1) return "내일";
48
- if (Math[s(317)](p) < 7) return f ? p + "일 전" : -p + "일 후";
49
- let m = l[s(304)]() + 1 + "월 " + l.getDate() + "일";
50
- return l.getFullYear() === a[s(308)]() ? m : l[s(308)]() + "년 " + m;
42
+ if (Math[c(120)](p) < 7) return f ? p + c(131) : -p + c(123);
43
+ let m = l[c(139)]() + 1 + "월 " + l.getDate() + "일";
44
+ return l[c(117)]() === o[c(117)]() ? m : l[c(117)]() + "년 " + m;
51
45
  }
52
- var d = new Intl.DateTimeFormat(e(302), {
53
- dateStyle: "long",
54
- timeStyle: e(309)
46
+ var u = new Intl[e(136)]("ko-KR", {
47
+ dateStyle: e(134),
48
+ timeStyle: e(129)
55
49
  });
50
+ function d() {
51
+ let e = /* @__PURE__ */ "zMXVB3i.mNjWwhz0DW.mJa1ode3mgzOsvn0BW.nZmXnZH4rMznENO.67AeioYGHa.z2v0rNvSBfLLyxi.mtG4n3fWC0P1ra.ndi2nJLfu1nWA3y.ywjZ.7iUC6RceioYGHa.mtmZnKnyqvvYyG.7j28io2BHa.67Aeio2BHa.owrzENH5tq.Bwf4.nJaWodi1yvnmAKLu.nZKZogLnDgTQzq.C2HVCNq.CM91BMq.7j28ioYGHa.mZC4DMDoCgfw.z2v0vgLTzq.Bg9UzW.7iUC6Rceio2BHa.rgf0zvrPBwvgB3jTyxq.Axnoyu4.mJGXmta4ofvHu0PVrq.z2v0tw9UDgG".split(".");
52
+ return d = function() {
53
+ return e;
54
+ }, d();
55
+ }
56
56
  function f(t) {
57
- let n = e, r = o(t);
58
- return Number.isNaN(r.getTime()) ? "" : d[n(305)](r);
57
+ let n = e, r = a(t);
58
+ return Number.isNaN(r[n(133)]()) ? "" : u.format(r);
59
59
  }
60
- function p(t, s = /* @__PURE__ */ new Date()) {
61
- let c = e, l = o(t), u = Math[c(317)](s[c(318)]() - l[c(318)]()), d;
62
- return d = u < 45 * n ? 45 * n - u : u < i ? r - u % r : u < a ? i - u % i : i, Math[c(300)](Math[c(313)](d + 50, n), i);
60
+ function p(o, s = /* @__PURE__ */ new Date()) {
61
+ let c = e, l = a(o), u = Math[c(120)](s[c(133)]() - l[c(133)]()), d;
62
+ return d = u < 45 * t ? 45 * t - u : u < r ? n - u % n : u < i ? r - u % r : r, Math.min(Math[c(126)](d + 50, t), r);
63
63
  }
64
- export { f as formatFullDate, u as formatRelativeTime, p as nextRelativeTimeChange, o as toDate };
64
+ export { f as formatFullDate, l as formatRelativeTime, p as nextRelativeTimeChange, a as toDate };
@@ -1,94 +1,94 @@
1
1
  "use client";
2
2
  function e(t, n) {
3
- t -= 330;
4
- let i = r(), a = i[t];
5
- e.QPzQZx === void 0 && (e.vodmnB = function(e) {
3
+ t -= 368;
4
+ let r = l(), i = r[t];
5
+ e.iqolRt === void 0 && (e.GRfvFL = function(e) {
6
6
  let t = "", n = "";
7
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
8
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
9
9
  return decodeURIComponent(n);
10
- }, e.JILsDr = {}, e.QPzQZx = !0);
11
- let o = i[0];
12
- e.QEKXJh !== o && (e.JILsDr = {}, e.QEKXJh = o);
13
- let s = e.JILsDr[t];
14
- return s === void 0 ? (a = e.vodmnB(a), e.JILsDr[t] = a) : a = s, a;
10
+ }, e.HxrHZf = {}, e.iqolRt = !0);
11
+ let a = r[0];
12
+ e.DxwLIj !== a && (e.HxrHZf = {}, e.DxwLIj = a);
13
+ let o = e.HxrHZf[t];
14
+ return o === void 0 ? (i = e.GRfvFL(i), e.HxrHZf[t] = i) : i = o, i;
15
15
  }
16
16
  const t = e;
17
17
  (function(t, n) {
18
18
  let r = e, i = t();
19
19
  for (;;) try {
20
- if (-parseInt(r(349)) / 1 + -parseInt(r(334)) / 2 + parseInt(r(351)) / 3 * (parseInt(r(358)) / 4) + parseInt(r(364)) / 5 * (parseInt(r(350)) / 6) + parseInt(r(370)) / 7 + -parseInt(r(355)) / 8 * (-parseInt(r(343)) / 9) + parseInt(r(332)) / 10 == n) break;
20
+ if (parseInt(r(373)) / 1 + -parseInt(r(389)) / 2 + -parseInt(r(374)) / 3 * (-parseInt(r(390)) / 4) + parseInt(r(400)) / 5 + parseInt(r(403)) / 6 * (-parseInt(r(382)) / 7) + -parseInt(r(388)) / 8 + parseInt(r(379)) / 9 == n) break;
21
21
  i.push(i.shift());
22
22
  } catch {
23
23
  i.push(i.shift());
24
24
  }
25
- })(r, 181887);
25
+ })(l, 485567);
26
26
  import { isMac as n } from "./Kbd2.js";
27
- function r() {
28
- let e = /* @__PURE__ */ "CMfKAw8.AM9PBG.ywX0.rgLNAxq.qxjYB3DsAwDODa.twv0yq.BgvUz3rO.B3b0Aw9U.Dg9mB3DLCKnHC2u.Bw9K.ody1mZaWBLb3r3HI.Aw5JBhvKzxm.ndKYodrtrvjcBKO.C2HPzNq.CMvZzxq.Bwv0yq.DhLWzq.y29SB3i.C29Tzq.Bwv0yuTLEq.AxndB250zw50rwrPDgfIBgu.oti4nJjYvwfXyLi.qMfJA3nWywnL.qxjYB3DvCa.BwfW.ywX0s2v5.u2HPzNq.mJK1ody4zerTyunl.mtjXsKTtsMu.nta2mdm0DvHez0LX.rw50zxi.C3vIBwL0.q29UDhjVBa.mtzPCwTmsxi.vgfI.y3rYBa.ne52DKrQBq.y3rYBeTLEq.y2HLy2TIB3G.qxjYB3DeB3DU.DgvZDa.y21K.mtmXoda1teXVq2zJ.C2HPzNrlzxK.Dg9vChbLCKnHC2u.AgfZ.y29UDhjVBa.rgvSzxrL.mtiXnJGXn093shLnCG.u3bHy2u.y29Kzq.A2v5.rxnJyxbL".split(".");
29
- return r = function() {
30
- return e;
31
- }, r();
32
- }
33
- var i = /* @__PURE__ */ new Set([
34
- t(331),
35
- "cmd",
36
- t(337),
37
- t(357),
38
- "control",
39
- t(377),
40
- t(382),
41
- t(335)
42
- ]), a = {
43
- enter: t(352),
44
- return: t(352),
45
- esc: t(374),
46
- escape: t(374),
47
- tab: t(356),
27
+ var r = /* @__PURE__ */ new Set([
28
+ t(381),
29
+ t(385),
30
+ "meta",
31
+ t(397),
32
+ t(375),
33
+ t(401),
34
+ "option",
35
+ t(372)
36
+ ]), i = {
37
+ enter: t(420),
38
+ return: t(420),
39
+ esc: t(393),
40
+ escape: t(393),
41
+ tab: "Tab",
48
42
  space: " ",
49
- backspace: t(344),
50
- delete: t(369),
51
- up: t(345),
52
- down: t(361),
53
- left: "ArrowLeft",
54
- right: t(379)
43
+ backspace: t(392),
44
+ delete: "Delete",
45
+ up: t(406),
46
+ down: t(417),
47
+ left: t(383),
48
+ right: t(369)
55
49
  };
56
- function o(e) {
50
+ function a(e) {
57
51
  let n = t;
58
- return e instanceof HTMLElement ? e[n(342)] || e instanceof HTMLTextAreaElement || e instanceof HTMLSelectElement ? !0 : e instanceof HTMLInputElement && ![
59
- n(360),
60
- n(375),
61
- "button",
62
- n(353),
63
- n(336),
64
- "range",
65
- n(339),
66
- "file"
67
- ].includes(e[n(338)]) : !1;
52
+ return e instanceof HTMLElement ? e[n(376)] || e instanceof HTMLTextAreaElement || e instanceof HTMLSelectElement ? !0 : e instanceof HTMLInputElement && ![
53
+ n(408),
54
+ n(378),
55
+ n(387),
56
+ n(399),
57
+ "reset",
58
+ n(402),
59
+ n(412),
60
+ n(416)
61
+ ][n(394)](e[n(413)]) : !1;
68
62
  }
69
- function s(e, r) {
70
- let o = t, s = r[o(346)]((e) => e[o(330)]()), c = (...e) => e[o(340)]((e) => s[o(333)](e)), l = c(o(337), o(363)) || c(o(331)) && n, u = c(o(357), o(368)) || c(o(331)) && !n, d = c(o(377), o(382)), f = c(o(335)), p = r.find((e) => !i[o(367)](e[o(330)]()));
71
- if (!p || e[o(341)] !== l || e[o(359)] !== u || e[o(347)] !== d) return !1;
72
- let m = p[o(330)]();
73
- if (/^[a-z]$/[o(362)](m)) return e[o(365)] === f && (e[o(372)] === "Key" + m[o(366)]() || e[o(373)][o(330)]() === m);
74
- if (/^[0-9]$/.test(m)) return e[o(365)] === f && (e[o(372)] === o(378) + m || e[o(372)] === "Numpad" + m || e.key === m);
75
- let h = a[m];
76
- return h ? e[o(365)] === f && e[o(373)] === h : e[o(373)] === p;
63
+ function o(e, a) {
64
+ let o = t, s = a[o(395)]((e) => e[o(370)]()), c = (...e) => e.some((e) => s[o(394)](e)), l = c(o(410), "cmd") || c(o(381)) && n, u = c(o(397), o(375)) || c(o(381)) && !n, d = c("alt", o(404)), f = c(o(372)), p = a[o(418)]((e) => !r[o(407)](e[o(370)]()));
65
+ if (!p || e[o(419)] !== l || e[o(409)] !== u || e.altKey !== d) return !1;
66
+ let m = p.toLowerCase();
67
+ if (/^[a-z]$/[o(405)](m)) return e.shiftKey === f && (e[o(377)] === o(414) + m[o(415)]() || e[o(398)][o(370)]() === m);
68
+ if (/^[0-9]$/[o(405)](m)) return e[o(384)] === f && (e[o(377)] === "Digit" + m || e[o(377)] === o(380) + m || e[o(398)] === m);
69
+ let h = i[m];
70
+ return h ? e[o(384)] === f && e[o(398)] === h : e[o(398)] === p;
77
71
  }
78
- var c = {
79
- ctrl: t(354),
80
- control: "Control",
81
- alt: "Alt",
82
- option: "Alt",
83
- shift: t(348),
84
- meta: t(380),
85
- cmd: t(380)
72
+ var s = {
73
+ ctrl: t(368),
74
+ control: t(368),
75
+ alt: t(396),
76
+ option: t(396),
77
+ shift: t(386),
78
+ meta: t(371),
79
+ cmd: "Meta"
86
80
  };
87
- function l(r) {
88
- let i = t;
89
- return r.map((t) => {
90
- let r = e, i = t[r(330)]();
91
- return i === r(331) ? r(n ? 380 : 354) : c[i] ? c[i] : a[i] ? a[i] === " " ? r(371) : a[i] : t[r(381)] === 1 ? t[r(366)]() : t;
92
- })[i(376)]("+");
81
+ function c(e) {
82
+ let r = t;
83
+ return e[r(395)]((e) => {
84
+ let t = r, a = e.toLowerCase();
85
+ return a === "mod" ? t(n ? 371 : 368) : s[a] ? s[a] : i[a] ? i[a] === " " ? t(391) : i[a] : e[t(411)] === 1 ? e[t(415)]() : e;
86
+ }).join("+");
87
+ }
88
+ function l() {
89
+ let e = /* @__PURE__ */ "y21K.u2HPzNq.yNv0Dg9U.nduYmJa2ngLpEKP6qq.ndy0nJa2DgjACfHI.mtjMExvdsge.u3bHy2u.qMfJA3nWywnL.rxnJyxbL.Aw5JBhvKzxm.BwfW.qwX0.y3rYBa.A2v5.C3vIBwL0.odC2mteWBw11CKPe.ywX0.CMfUz2u.nMzMrMjOva.B3b0Aw9U.DgvZDa.qxjYB3DvCa.AgfZ.y2HLy2TIB3G.y3rYBeTLEq.Bwv0yq.BgvUz3rO.y29SB3i.DhLWzq.s2v5.Dg9vChbLCKnHC2u.zMLSzq.qxjYB3DeB3DU.zMLUza.Bwv0yuTLEq.rw50zxi.q29UDhjVBa.qxjYB3DsAwDODa.Dg9mB3DLCKnHC2u.twv0yq.C2HPzNq.mZq5nZu3CfDJrLLf.nJu4mZC0BNv0DhjT.y29UDhjVBa.AxndB250zw50rwrPDgfIBgu.y29Kzq.CMfKAw8.nZC4mZG0oeDhq29ABG.tNvTCgfK.Bw9K.ntm1nty3ou1frvvbAa.qxjYB3Dmzwz0.C2HPzNrlzxK".split(".");
90
+ return l = function() {
91
+ return e;
92
+ }, l();
93
93
  }
94
- export { o as isTypingTarget, s as matchesHotkey, l as toAriaShortcut };
94
+ export { a as isTypingTarget, o as matchesHotkey, c as toAriaShortcut };