neatkit 0.1.0 → 0.2.0

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 (124) hide show
  1. package/README.md +7 -5
  2. package/dist/components/Alert/Alert.d.ts +29 -0
  3. package/dist/components/Alert/index.d.ts +2 -0
  4. package/dist/components/Avatar/Avatar.d.ts +28 -0
  5. package/dist/components/Avatar/index.d.ts +2 -0
  6. package/dist/components/Badge/Badge.d.ts +32 -0
  7. package/dist/components/Badge/index.d.ts +2 -0
  8. package/dist/components/Button/Button.d.ts +58 -8
  9. package/dist/components/Button/index.d.ts +2 -3
  10. package/dist/components/Card/Card.d.ts +40 -0
  11. package/dist/components/Card/index.d.ts +2 -0
  12. package/dist/components/Checkbox/Checkbox.d.ts +35 -0
  13. package/dist/components/Checkbox/index.d.ts +2 -0
  14. package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +62 -0
  15. package/dist/components/CheckboxGroup/contexts/CheckboxGroupContext.d.ts +22 -0
  16. package/dist/components/CheckboxGroup/hooks/useCheckboxGroup.d.ts +7 -0
  17. package/dist/components/CheckboxGroup/index.d.ts +2 -0
  18. package/dist/components/Content/Content.d.ts +58 -0
  19. package/dist/components/Content/hooks/useContentLayout.d.ts +18 -0
  20. package/dist/components/Content/index.d.ts +2 -0
  21. package/dist/components/Content/utils/layout.d.ts +11 -0
  22. package/dist/components/Divider/Divider.d.ts +30 -0
  23. package/dist/components/Divider/index.d.ts +2 -0
  24. package/dist/components/Field/Field.d.ts +61 -0
  25. package/dist/components/Field/index.d.ts +2 -0
  26. package/dist/components/Field/utils/field-control.d.ts +23 -0
  27. package/dist/components/Icon/Icon.d.ts +21 -0
  28. package/dist/components/Icon/icons/ArrowLeftIcon.d.ts +11 -0
  29. package/dist/components/Icon/icons/ArrowRightIcon.d.ts +11 -0
  30. package/dist/components/Icon/icons/ArticlesIcon.d.ts +11 -0
  31. package/dist/components/Icon/icons/AudioIcon.d.ts +11 -0
  32. package/dist/components/Icon/icons/BranchIcon.d.ts +11 -0
  33. package/dist/components/Icon/icons/BurgerIcon.d.ts +11 -0
  34. package/dist/components/Icon/icons/CameraIcon.d.ts +11 -0
  35. package/dist/components/Icon/icons/ChatIcon.d.ts +11 -0
  36. package/dist/components/Icon/icons/CheckmarkIcon.d.ts +11 -0
  37. package/dist/components/Icon/icons/ChevronDownIcon.d.ts +11 -0
  38. package/dist/components/Icon/icons/ChevronLeftIcon.d.ts +11 -0
  39. package/dist/components/Icon/icons/ChevronRightIcon.d.ts +11 -0
  40. package/dist/components/Icon/icons/ChevronUpIcon.d.ts +11 -0
  41. package/dist/components/Icon/icons/CommitIcon.d.ts +11 -0
  42. package/dist/components/Icon/icons/CrossIcon.d.ts +11 -0
  43. package/dist/components/Icon/icons/DownloadIcon.d.ts +11 -0
  44. package/dist/components/Icon/icons/DuplicateIcon.d.ts +11 -0
  45. package/dist/components/Icon/icons/ExitIcon.d.ts +11 -0
  46. package/dist/components/Icon/icons/EyeIcon.d.ts +11 -0
  47. package/dist/components/Icon/icons/EyeOffIcon.d.ts +11 -0
  48. package/dist/components/Icon/icons/FileIcon.d.ts +11 -0
  49. package/dist/components/Icon/icons/FolderIcon.d.ts +11 -0
  50. package/dist/components/Icon/icons/GitIcon.d.ts +11 -0
  51. package/dist/components/Icon/icons/GithubIcon.d.ts +11 -0
  52. package/dist/components/Icon/icons/GlobeIcon.d.ts +11 -0
  53. package/dist/components/Icon/icons/HardwareIcon.d.ts +11 -0
  54. package/dist/components/Icon/icons/HomeIcon.d.ts +11 -0
  55. package/dist/components/Icon/icons/InfoIcon.d.ts +11 -0
  56. package/dist/components/Icon/icons/KeyIcon.d.ts +11 -0
  57. package/dist/components/Icon/icons/LinkedInIcon.d.ts +11 -0
  58. package/dist/components/Icon/icons/MailIcon.d.ts +11 -0
  59. package/dist/components/Icon/icons/MinusIcon.d.ts +11 -0
  60. package/dist/components/Icon/icons/PencilIcon.d.ts +11 -0
  61. package/dist/components/Icon/icons/PlusIcon.d.ts +11 -0
  62. package/dist/components/Icon/icons/ProjectsIcon.d.ts +11 -0
  63. package/dist/components/Icon/icons/QRCodeIcon.d.ts +11 -0
  64. package/dist/components/Icon/icons/RedditIcon.d.ts +11 -0
  65. package/dist/components/Icon/icons/RepositoryIcon.d.ts +11 -0
  66. package/dist/components/Icon/icons/SaveIcon.d.ts +11 -0
  67. package/dist/components/Icon/icons/SignalIcon.d.ts +11 -0
  68. package/dist/components/Icon/icons/TagIcon.d.ts +11 -0
  69. package/dist/components/Icon/icons/UserIcon.d.ts +11 -0
  70. package/dist/components/Icon/icons/WarningIcon.d.ts +11 -0
  71. package/dist/components/Icon/icons/WindowIcon.d.ts +11 -0
  72. package/dist/components/Icon/icons/types.d.ts +3 -0
  73. package/dist/components/Icon/index.d.ts +36 -0
  74. package/dist/components/Icon/utils/registry.d.ts +49 -0
  75. package/dist/components/Input/Input.d.ts +50 -0
  76. package/dist/components/Input/index.d.ts +2 -0
  77. package/dist/components/Modal/Modal.d.ts +62 -0
  78. package/dist/components/Modal/index.d.ts +2 -0
  79. package/dist/components/PinInput/PinInput.d.ts +76 -0
  80. package/dist/components/PinInput/hooks/usePinInput.d.ts +65 -0
  81. package/dist/components/PinInput/index.d.ts +2 -0
  82. package/dist/components/Popover/Popover.d.ts +93 -0
  83. package/dist/components/Popover/index.d.ts +2 -0
  84. package/dist/components/Portal/Portal.d.ts +19 -0
  85. package/dist/components/Portal/contexts/FocusScopeContext.d.ts +7 -0
  86. package/dist/components/Portal/hooks/useDismissableLayer.d.ts +31 -0
  87. package/dist/components/Portal/hooks/useFloatingPosition.d.ts +12 -0
  88. package/dist/components/Portal/hooks/useFocusTrap.d.ts +24 -0
  89. package/dist/components/Portal/hooks/usePresence.d.ts +19 -0
  90. package/dist/components/Portal/hooks/useScrollLock.d.ts +7 -0
  91. package/dist/components/Portal/utils/floating-position.d.ts +26 -0
  92. package/dist/components/Portal/utils/overlay-stack.d.ts +45 -0
  93. package/dist/components/Radio/Radio.d.ts +32 -0
  94. package/dist/components/Radio/index.d.ts +2 -0
  95. package/dist/components/RadioGroup/RadioGroup.d.ts +54 -0
  96. package/dist/components/RadioGroup/contexts/RadioGroupContext.d.ts +18 -0
  97. package/dist/components/RadioGroup/hooks/useRadioGroup.d.ts +7 -0
  98. package/dist/components/RadioGroup/index.d.ts +2 -0
  99. package/dist/components/Select/Select.d.ts +97 -0
  100. package/dist/components/Select/index.d.ts +2 -0
  101. package/dist/components/Skeleton/Skeleton.d.ts +30 -0
  102. package/dist/components/Skeleton/index.d.ts +2 -0
  103. package/dist/components/Spinner/Spinner.d.ts +24 -0
  104. package/dist/components/Spinner/index.d.ts +2 -0
  105. package/dist/components/Surface/Surface.d.ts +15 -0
  106. package/dist/components/Switch/Switch.d.ts +27 -0
  107. package/dist/components/Switch/index.d.ts +2 -0
  108. package/dist/components/Text/Text.d.ts +41 -0
  109. package/dist/components/Text/index.d.ts +2 -0
  110. package/dist/components/TextArea/TextArea.d.ts +40 -0
  111. package/dist/components/TextArea/index.d.ts +2 -0
  112. package/dist/components/Tooltip/Tooltip.d.ts +54 -0
  113. package/dist/components/Tooltip/TooltipProvider.d.ts +24 -0
  114. package/dist/components/Tooltip/index.d.ts +4 -0
  115. package/dist/index.cjs +1 -1
  116. package/dist/index.d.ts +25 -3
  117. package/dist/index.js +3870 -12
  118. package/dist/style.css +1 -1
  119. package/dist/utils/aria.d.ts +18 -0
  120. package/dist/utils/react-reference.d.ts +16 -0
  121. package/package.json +18 -3
  122. package/dist/components/Button/Button.d.ts.map +0 -1
  123. package/dist/components/Button/index.d.ts.map +0 -1
  124. package/dist/index.d.ts.map +0 -1
package/dist/index.js CHANGED
@@ -1,15 +1,3873 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- function i({
3
- children: t,
4
- className: n,
5
- size: o = "md",
6
- type: r = "button",
7
- variant: u = "primary",
8
- ...s
9
- }) {
10
- const e = ["nk-button", `nk-button--${u}`, `nk-button--${o}`, n].filter(Boolean).join(" ");
11
- return /* @__PURE__ */ a("button", { className: e, type: r, ...s, children: t });
1
+ "use client";
2
+ import { jsx as a, jsxs as T, Fragment as He } from "react/jsx-runtime";
3
+ import { forwardRef as y, useState as Y, createElement as Se, isValidElement as mn, Fragment as Fe, createContext as We, useContext as xe, useRef as H, useCallback as W, useEffect as q, Children as Vn, useLayoutEffect as nn, useId as Ce, cloneElement as Oe, useReducer as gn, useMemo as Pe, version as Tn } from "react";
4
+ import { createPortal as An } from "react-dom";
5
+ const Ae = y(function(n, e) {
6
+ const { children: o, className: i, ...r } = n;
7
+ return /* @__PURE__ */ a(
8
+ "div",
9
+ {
10
+ ...r,
11
+ ref: e,
12
+ className: ["nk-surface", i].filter(Boolean).join(" "),
13
+ children: o
14
+ }
15
+ );
16
+ }), zo = y(function(n, e) {
17
+ const {
18
+ children: o,
19
+ className: i,
20
+ role: r,
21
+ tone: l = "info",
22
+ ...s
23
+ } = n;
24
+ return /* @__PURE__ */ T(
25
+ Ae,
26
+ {
27
+ ...s,
28
+ ref: e,
29
+ className: ["nk-alert", i].filter(Boolean).join(" "),
30
+ "data-tone": l,
31
+ role: r,
32
+ children: [
33
+ /* @__PURE__ */ a("span", { "aria-hidden": "true", className: "nk-alert__indicator" }),
34
+ /* @__PURE__ */ a("div", { className: "nk-alert__content", children: o })
35
+ ]
36
+ }
37
+ );
38
+ });
39
+ function Dn(t) {
40
+ return (Array.from((t == null ? void 0 : t.trim()) ?? "")[0] ?? "?").trim().toUpperCase() || "?";
12
41
  }
42
+ function On(t) {
43
+ if (t === "?") return "neutral";
44
+ const n = Array.from(t)[0] ?? "";
45
+ if ("AJO".includes(n)) return "1";
46
+ if ("BNSV".includes(n)) return "2";
47
+ if ("CFLQW".includes(n)) return "3";
48
+ if ("EHKMPTX".includes(n)) return "4";
49
+ if ("DGRUY".includes(n)) return "5";
50
+ if ("IZ".includes(n)) return "6";
51
+ const e = n.codePointAt(0) ?? 0;
52
+ return String(e % 6 + 1);
53
+ }
54
+ const Zo = y(function(n, e) {
55
+ const {
56
+ alt: o,
57
+ className: i,
58
+ image: r,
59
+ size: l = 32,
60
+ style: s,
61
+ ...h
62
+ } = n, [f, d] = Y(), c = !!r && r !== f, p = (o == null ? void 0 : o.trim()) ?? "", m = Dn(p), g = typeof l == "number" ? `${l}px` : l, k = p ? { "aria-label": p, role: "img" } : { "aria-hidden": !0, role: void 0 };
63
+ function b() {
64
+ d(r);
65
+ }
66
+ return /* @__PURE__ */ a(
67
+ "div",
68
+ {
69
+ ...h,
70
+ ...c ? void 0 : k,
71
+ ref: e,
72
+ className: ["nk-avatar", i].filter(Boolean).join(" "),
73
+ "data-palette": On(m),
74
+ "data-state": c ? "image" : "fallback",
75
+ style: { ...s, "--nk-avatar-size": g },
76
+ children: c ? /* @__PURE__ */ a(
77
+ "img",
78
+ {
79
+ alt: p,
80
+ className: "nk-avatar__image",
81
+ onError: b,
82
+ src: r
83
+ }
84
+ ) : /* @__PURE__ */ a("span", { "aria-hidden": "true", className: "nk-avatar__initial", children: m })
85
+ }
86
+ );
87
+ }), jo = y(function(n, e) {
88
+ const {
89
+ children: o,
90
+ className: i,
91
+ tone: r = "neutral",
92
+ variant: l = "outline",
93
+ ...s
94
+ } = n;
95
+ return /* @__PURE__ */ a(
96
+ "span",
97
+ {
98
+ ...s,
99
+ ref: e,
100
+ className: ["nk-badge", i].filter(Boolean).join(" "),
101
+ "data-tone": r,
102
+ "data-variant": l,
103
+ children: o
104
+ }
105
+ );
106
+ }), Bn = y(function(n, e) {
107
+ const { height: o = 14, width: i = 14, ...r } = n;
108
+ return /* @__PURE__ */ a(
109
+ "svg",
110
+ {
111
+ ...r,
112
+ ref: e,
113
+ xmlns: "http://www.w3.org/2000/svg",
114
+ width: i,
115
+ height: o,
116
+ viewBox: "0 0 14 14",
117
+ fill: "none",
118
+ children: /* @__PURE__ */ a(
119
+ "path",
120
+ {
121
+ fill: "currentColor",
122
+ fillRule: "evenodd",
123
+ d: "M10.5 0h1.6c.5.1 1 .3 1.3.6.3.4.5.8.5 1.3l.1 1.6v8.6c-.1.5-.3 1-.6 1.3a2 2 0 0 1-1.3.5l-1.6.1H1.9a2 2 0 0 1-1.3-.6A2 2 0 0 1 .1 12L0 10.5V1.9C.2 1.4.4.9.7.6A2 2 0 0 1 2 .1L3.5 0h7Zm-7 1.4H2.1c-.3 0-.4.1-.5.2l-.2.5v3.5a11.8 11.8 0 0 0 0 1l.4.3h.3l.7.1h1a1.4 1.4 0 0 1 .8.4l.4.4.1.4v.2l.2.3.1.4h3.2l.2-.5v-.2l.2-.6.4-.4.2-.2.6-.2h1a11.8 11.8 0 0 0 1 0l.3-.4v-.3l.1-.6V2.1c0-.3-.1-.4-.2-.5l-.5-.2H3.5Z",
124
+ clipRule: "evenodd"
125
+ }
126
+ )
127
+ }
128
+ );
129
+ }), Hn = y(function(n, e) {
130
+ const { height: o = 14, width: i = 14, ...r } = n;
131
+ return /* @__PURE__ */ a(
132
+ "svg",
133
+ {
134
+ ...r,
135
+ ref: e,
136
+ xmlns: "http://www.w3.org/2000/svg",
137
+ width: i,
138
+ height: o,
139
+ viewBox: "0 0 14 14",
140
+ fill: "none",
141
+ children: /* @__PURE__ */ a(
142
+ "path",
143
+ {
144
+ stroke: "currentColor",
145
+ strokeLinecap: "round",
146
+ strokeLinejoin: "round",
147
+ strokeWidth: "1.6",
148
+ d: "M5.75 10 3 7.25m0 0L5.75 4.5M3 7.25h8.5"
149
+ }
150
+ )
151
+ }
152
+ );
153
+ }), Fn = y(function(n, e) {
154
+ const { height: o = 14, width: i = 14, ...r } = n;
155
+ return /* @__PURE__ */ a(
156
+ "svg",
157
+ {
158
+ ...r,
159
+ ref: e,
160
+ xmlns: "http://www.w3.org/2000/svg",
161
+ width: i,
162
+ height: o,
163
+ viewBox: "0 0 14 14",
164
+ fill: "none",
165
+ children: /* @__PURE__ */ a(
166
+ "path",
167
+ {
168
+ stroke: "currentColor",
169
+ strokeLinecap: "round",
170
+ strokeLinejoin: "round",
171
+ strokeWidth: "1.6",
172
+ d: "M8.25 10 11 7.25m0 0L8.25 4.5M11 7.25H2.5"
173
+ }
174
+ )
175
+ }
176
+ );
177
+ }), Wn = y(function(n, e) {
178
+ const { height: o = 14, width: i = 14, ...r } = n;
179
+ return /* @__PURE__ */ T(
180
+ "svg",
181
+ {
182
+ ...r,
183
+ ref: e,
184
+ xmlns: "http://www.w3.org/2000/svg",
185
+ width: i,
186
+ height: o,
187
+ viewBox: "0 0 14 14",
188
+ fill: "none",
189
+ children: [
190
+ /* @__PURE__ */ a(
191
+ "path",
192
+ {
193
+ stroke: "currentColor",
194
+ strokeLinejoin: "round",
195
+ strokeWidth: "1.633",
196
+ d: "M5.955 11.616 2.177 8.838a.82.82 0 0 0-.32-.143l-.985-.2-.03-.007a.148.148 0 0 1-.026-.087V5.423c0-.049.014-.076.022-.087l.034-.005.984-.202a.818.818 0 0 0 .32-.142l3.78-2.78v9.41Z"
197
+ }
198
+ ),
199
+ /* @__PURE__ */ a(
200
+ "path",
201
+ {
202
+ fill: "currentColor",
203
+ d: "M9.383 5.053c-.192-.37-.635-.454-.93-.168l-.044.033a.737.737 0 0 0-.133.825c.162.337.266.724.266 1.144 0 .421-.104.808-.266 1.145a.737.737 0 0 0 .133.824l.044.034c.28.286.738.219.93-.168A4.214 4.214 0 0 0 9.81 6.87c0-.64-.162-1.263-.427-1.818Z"
204
+ }
205
+ ),
206
+ /* @__PURE__ */ a(
207
+ "path",
208
+ {
209
+ fill: "currentColor",
210
+ d: "M10.932 3.386c-.207-.336-.635-.387-.9-.117l-.03.033a.768.768 0 0 0-.088.91c.472.756.737 1.699.737 2.692 0 1.01-.28 1.935-.737 2.692a.768.768 0 0 0 .088.91l.03.033c.265.27.693.219.9-.118.62-.993.973-2.205.973-3.517 0-1.313-.354-2.525-.973-3.518Z"
211
+ }
212
+ ),
213
+ /* @__PURE__ */ a(
214
+ "path",
215
+ {
216
+ fill: "currentColor",
217
+ d: "M12.48 1.754c-.22-.32-.62-.37-.885-.1l-.044.033c-.236.235-.265.64-.074.925.797 1.195 1.254 2.676 1.254 4.275 0 1.599-.472 3.097-1.254 4.275-.191.286-.162.69.074.925l.044.034c.266.27.664.219.885-.101.96-1.43 1.52-3.214 1.52-5.15 0-1.901-.56-3.685-1.52-5.116Z"
218
+ }
219
+ )
220
+ ]
221
+ }
222
+ );
223
+ }), zn = y(function(n, e) {
224
+ const { height: o = 14, width: i = 14, ...r } = n;
225
+ return /* @__PURE__ */ a(
226
+ "svg",
227
+ {
228
+ ...r,
229
+ ref: e,
230
+ xmlns: "http://www.w3.org/2000/svg",
231
+ width: i,
232
+ height: o,
233
+ viewBox: "0 0 14 14",
234
+ fill: "none",
235
+ children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M13 2.229c0-.413-.112-.818-.324-1.17a2.2 2.2 0 0 0-.88-.822A2.15 2.15 0 0 0 9.51.441c-.325.246-.577.58-.726.964a2.27 2.27 0 0 0 .4 2.303c.27.308.618.534 1.006.652v.095c0 .507-.197.992-.548 1.35a1.86 1.86 0 0 1-1.325.559H5.82c-.675.007-1.33.23-1.874.636V4.36a2.2 2.2 0 0 0 1.218-.936A2.26 2.26 0 0 0 4.751.542 2.16 2.16 0 0 0 3.322 0c-.525 0-1.032.193-1.43.542a2.26 2.26 0 0 0-.413 2.882c.283.451.716.783 1.219.936v5.28a2.2 2.2 0 0 0-1.218.936 2.26 2.26 0 0 0 .413 2.882c.397.35.904.542 1.43.542.524 0 1.031-.193 1.428-.542a2.26 2.26 0 0 0 .413-2.882 2.2 2.2 0 0 0-1.218-.936v-.095c0-.507.198-.992.55-1.35a1.86 1.86 0 0 1 1.324-.559h2.497c.828 0 1.622-.335 2.208-.931a3.2 3.2 0 0 0 .914-2.25V4.36c.45-.137.846-.418 1.127-.802S13 2.708 13 2.229" })
236
+ }
237
+ );
238
+ }), Zn = y(function(n, e) {
239
+ const { height: o = 14, width: i = 14, ...r } = n;
240
+ return /* @__PURE__ */ T(
241
+ "svg",
242
+ {
243
+ ...r,
244
+ ref: e,
245
+ xmlns: "http://www.w3.org/2000/svg",
246
+ width: i,
247
+ height: o,
248
+ viewBox: "0 0 14 14",
249
+ fill: "none",
250
+ children: [
251
+ /* @__PURE__ */ a("rect", { width: "14", height: "2.1", y: "1.75", fill: "currentColor", rx: "1.05" }),
252
+ /* @__PURE__ */ a("rect", { width: "14", height: "2.1", y: "5.95", fill: "currentColor", rx: "1.05" }),
253
+ /* @__PURE__ */ a("rect", { width: "14", height: "2.1", y: "10.15", fill: "currentColor", rx: "1.05" })
254
+ ]
255
+ }
256
+ );
257
+ }), jn = y(function(n, e) {
258
+ const { height: o = 14, width: i = 14, ...r } = n;
259
+ return /* @__PURE__ */ T(
260
+ "svg",
261
+ {
262
+ ...r,
263
+ ref: e,
264
+ xmlns: "http://www.w3.org/2000/svg",
265
+ width: i,
266
+ height: o,
267
+ viewBox: "0 0 14 14",
268
+ fill: "none",
269
+ children: [
270
+ /* @__PURE__ */ a(
271
+ "path",
272
+ {
273
+ fill: "currentColor",
274
+ fillRule: "evenodd",
275
+ d: "M12.25 2.714h-1.313l-.437-.857C10.242 1.36 10.108 1 9.625 1h-5.25c-.483 0-.643.409-.875.857l-.438.857H1.75C.784 2.714 0 3.482 0 4.43v6.857C0 12.232.784 13 1.75 13h10.5c.966 0 1.75-.768 1.75-1.714V4.429c0-.947-.784-1.715-1.75-1.715ZM7 11.286c-1.933 0-3.5-1.535-3.5-3.429C3.5 5.964 5.067 4.43 7 4.43s3.5 1.535 3.5 3.428c0 1.894-1.567 3.429-3.5 3.429Z",
276
+ clipRule: "evenodd"
277
+ }
278
+ ),
279
+ /* @__PURE__ */ a(
280
+ "path",
281
+ {
282
+ fill: "currentColor",
283
+ d: "M4.75 7.9a2.25 2.25 0 1 1 4.5 0 2.25 2.25 0 0 1-4.5 0Z"
284
+ }
285
+ )
286
+ ]
287
+ }
288
+ );
289
+ }), qn = y(function(n, e) {
290
+ const { height: o = 14, width: i = 14, ...r } = n;
291
+ return /* @__PURE__ */ a(
292
+ "svg",
293
+ {
294
+ ...r,
295
+ ref: e,
296
+ xmlns: "http://www.w3.org/2000/svg",
297
+ width: i,
298
+ height: o,
299
+ viewBox: "0 0 14 14",
300
+ fill: "none",
301
+ children: /* @__PURE__ */ a(
302
+ "path",
303
+ {
304
+ fill: "currentColor",
305
+ d: "M1.3 10.7c.1-.4 0-.7-.2-1A6 6 0 0 1 0 6.3C0 2.8 3.1 0 7 0s7 2.8 7 6.3-3.1 6.3-7 6.3c-.6 0-1.2 0-1.7-.2a1 1 0 0 0-.7 0l-3 1.5-.2.1a.7.7 0 0 1-.7-.9l.6-2.4Z"
306
+ }
307
+ )
308
+ }
309
+ );
310
+ }), Gn = y(function(n, e) {
311
+ const { height: o = 14, width: i = 14, ...r } = n;
312
+ return /* @__PURE__ */ a(
313
+ "svg",
314
+ {
315
+ ...r,
316
+ ref: e,
317
+ xmlns: "http://www.w3.org/2000/svg",
318
+ width: i,
319
+ height: o,
320
+ viewBox: "0 0 14 14",
321
+ fill: "none",
322
+ children: /* @__PURE__ */ a(
323
+ "path",
324
+ {
325
+ stroke: "currentColor",
326
+ strokeLinecap: "round",
327
+ strokeWidth: "1.8",
328
+ d: "m4 7.5 2 2L10.5 5"
329
+ }
330
+ )
331
+ }
332
+ );
333
+ }), $n = y(function(n, e) {
334
+ const { height: o = 14, width: i = 14, ...r } = n;
335
+ return /* @__PURE__ */ a(
336
+ "svg",
337
+ {
338
+ ...r,
339
+ ref: e,
340
+ xmlns: "http://www.w3.org/2000/svg",
341
+ width: i,
342
+ height: o,
343
+ viewBox: "0 0 14 14",
344
+ fill: "none",
345
+ children: /* @__PURE__ */ a(
346
+ "path",
347
+ {
348
+ stroke: "currentColor",
349
+ strokeLinecap: "round",
350
+ strokeLinejoin: "round",
351
+ strokeWidth: "1.6",
352
+ d: "M3.5 5.25 7 8.75l3.5-3.5"
353
+ }
354
+ )
355
+ }
356
+ );
357
+ }), Kn = y(function(n, e) {
358
+ const { height: o = 14, width: i = 14, ...r } = n;
359
+ return /* @__PURE__ */ a(
360
+ "svg",
361
+ {
362
+ ...r,
363
+ ref: e,
364
+ xmlns: "http://www.w3.org/2000/svg",
365
+ width: i,
366
+ height: o,
367
+ viewBox: "0 0 14 14",
368
+ fill: "none",
369
+ children: /* @__PURE__ */ a(
370
+ "path",
371
+ {
372
+ stroke: "currentColor",
373
+ strokeLinecap: "round",
374
+ strokeLinejoin: "round",
375
+ strokeWidth: "1.6",
376
+ d: "M8.75 3.5 5.25 7l3.5 3.5"
377
+ }
378
+ )
379
+ }
380
+ );
381
+ }), Un = y(function(n, e) {
382
+ const { height: o = 14, width: i = 14, ...r } = n;
383
+ return /* @__PURE__ */ a(
384
+ "svg",
385
+ {
386
+ ...r,
387
+ ref: e,
388
+ xmlns: "http://www.w3.org/2000/svg",
389
+ width: i,
390
+ height: o,
391
+ viewBox: "0 0 14 14",
392
+ fill: "none",
393
+ children: /* @__PURE__ */ a(
394
+ "path",
395
+ {
396
+ stroke: "currentColor",
397
+ strokeLinecap: "round",
398
+ strokeLinejoin: "round",
399
+ strokeWidth: "1.6",
400
+ d: "M5.25 3.5 8.75 7l-3.5 3.5"
401
+ }
402
+ )
403
+ }
404
+ );
405
+ }), Yn = y(function(n, e) {
406
+ const { height: o = 14, width: i = 14, ...r } = n;
407
+ return /* @__PURE__ */ a(
408
+ "svg",
409
+ {
410
+ ...r,
411
+ ref: e,
412
+ xmlns: "http://www.w3.org/2000/svg",
413
+ width: i,
414
+ height: o,
415
+ viewBox: "0 0 14 14",
416
+ fill: "none",
417
+ children: /* @__PURE__ */ a(
418
+ "path",
419
+ {
420
+ stroke: "currentColor",
421
+ strokeLinecap: "round",
422
+ strokeLinejoin: "round",
423
+ strokeWidth: "1.6",
424
+ d: "M3.5 8.75 7 5.25l3.5 3.5"
425
+ }
426
+ )
427
+ }
428
+ );
429
+ }), Qn = y(function(n, e) {
430
+ const { height: o = 14, width: i = 14, ...r } = n;
431
+ return /* @__PURE__ */ a(
432
+ "svg",
433
+ {
434
+ ...r,
435
+ ref: e,
436
+ xmlns: "http://www.w3.org/2000/svg",
437
+ width: i,
438
+ height: o,
439
+ viewBox: "0 0 14 14",
440
+ fill: "none",
441
+ children: /* @__PURE__ */ a("path", { fill: "currentColor", fillRule: "evenodd", d: "M10.391 7.868a3.501 3.501 0 0 1-6.782 0 1 1 0 0 1-.109.007H.875a.875.875 0 1 1 0-1.75H3.5q.055 0 .109.007a3.501 3.501 0 0 1 6.782 0 1 1 0 0 1 .109-.007h2.625a.875.875 0 1 1 0 1.75H10.5a1 1 0 0 1-.109-.007M7 8.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5", clipRule: "evenodd" })
442
+ }
443
+ );
444
+ }), Xn = y(function(n, e) {
445
+ const { height: o = 14, width: i = 14, ...r } = n;
446
+ return /* @__PURE__ */ a(
447
+ "svg",
448
+ {
449
+ ...r,
450
+ ref: e,
451
+ xmlns: "http://www.w3.org/2000/svg",
452
+ width: i,
453
+ height: o,
454
+ viewBox: "0 0 14 14",
455
+ fill: "none",
456
+ children: /* @__PURE__ */ a(
457
+ "path",
458
+ {
459
+ stroke: "currentColor",
460
+ strokeLinecap: "round",
461
+ strokeWidth: "1.6",
462
+ d: "m4 4 6 6M10 4l-6 6"
463
+ }
464
+ )
465
+ }
466
+ );
467
+ }), Jn = y(function(n, e) {
468
+ const { height: o = 14, width: i = 14, ...r } = n;
469
+ return /* @__PURE__ */ a(
470
+ "svg",
471
+ {
472
+ ...r,
473
+ ref: e,
474
+ xmlns: "http://www.w3.org/2000/svg",
475
+ width: i,
476
+ height: o,
477
+ viewBox: "0 0 14 14",
478
+ fill: "none",
479
+ children: /* @__PURE__ */ a(
480
+ "path",
481
+ {
482
+ stroke: "currentColor",
483
+ strokeLinecap: "round",
484
+ strokeLinejoin: "round",
485
+ strokeWidth: "1.6",
486
+ d: "M3.5 12.25h7M7 1.75v8.167m0 0L9.917 7M7 9.917 4.083 7"
487
+ }
488
+ )
489
+ }
490
+ );
491
+ }), et = y(function(n, e) {
492
+ const { height: o = 14, width: i = 14, ...r } = n;
493
+ return /* @__PURE__ */ a(
494
+ "svg",
495
+ {
496
+ ...r,
497
+ ref: e,
498
+ xmlns: "http://www.w3.org/2000/svg",
499
+ width: i,
500
+ height: o,
501
+ viewBox: "0 0 14 14",
502
+ fill: "none",
503
+ children: /* @__PURE__ */ a(
504
+ "path",
505
+ {
506
+ fill: "currentColor",
507
+ d: "M8.152.192c.35 0 .663 0 .92.02.268.023.548.074.82.215.398.205.718.532.918.93.137.273.187.553.209.822.018.223.019.487.02.783.302 0 .574.001.803.02.267.023.547.072.82.213.397.206.718.533.918.932.137.273.185.552.207.821.021.26.02.575.02.93v5.012c0 .356.001.671-.02.931-.022.27-.07.549-.207.822-.2.398-.52.725-.918.93a2.126 2.126 0 0 1-.82.214c-.258.021-.57.02-.921.02H5.848c-.35 0-.663.002-.92-.02a2.124 2.124 0 0 1-.82-.214 2.117 2.117 0 0 1-.919-.931 2.177 2.177 0 0 1-.208-.82 10.57 10.57 0 0 1-.018-.792c-.145-.002-.29-.004-.43-.01a6.939 6.939 0 0 1-.595-.05 1.89 1.89 0 0 1-.6-.165 2.117 2.117 0 0 1-.918-.932 2.176 2.176 0 0 1-.207-.821c-.021-.26-.02-.575-.02-.93V3.11c0-.356-.001-.671.02-.931.022-.27.07-.549.207-.822.2-.398.52-.725.918-.93.273-.141.553-.192.82-.214.258-.021.57-.02.921-.02h5.073ZM5.848 4.577c-.377 0-.611 0-.786.015-.166.014-.207.036-.212.039a.5.5 0 0 0-.217.22l-.017.053a1.207 1.207 0 0 0-.024.174c-.015.18-.015.419-.015.8v5.012c0 .382 0 .621.015.801.007.086.016.14.024.174l.017.053a.506.506 0 0 0 .151.18l.066.04c.005.003.046.025.212.039.175.014.409.015.786.015h5.073c.377 0 .612 0 .787-.015.166-.014.207-.036.212-.038a.501.501 0 0 0 .217-.221c.004-.01.026-.056.04-.227.014-.18.015-.419.015-.801V5.879c0-.382 0-.621-.015-.8-.014-.172-.036-.218-.04-.227a.501.501 0 0 0-.217-.221c-.005-.003-.046-.025-.212-.04-.175-.014-.41-.014-.787-.014H5.848Zm-2.769-2.77c-.377 0-.611.002-.787.016-.166.014-.207.036-.212.038a.502.502 0 0 0-.217.221c-.004.01-.026.056-.04.227-.014.18-.015.419-.015.801v5.011c0 .382 0 .621.015.8.007.086.016.14.024.175l.016.052c.044.087.111.156.19.204.017.003.05.011.101.018.116.016.27.028.453.036.114.005.234.007.355.009V5.879c0-.356-.001-.671.02-.93.021-.27.07-.55.207-.822.2-.4.521-.726.918-.932.273-.14.553-.19.82-.213.258-.021.57-.02.92-.02h3.575c0-.298-.001-.498-.014-.653-.014-.171-.036-.218-.04-.227a.501.501 0 0 0-.218-.22l-.046-.015a1.143 1.143 0 0 0-.166-.024c-.175-.014-.409-.015-.786-.015H3.08Z"
508
+ }
509
+ )
510
+ }
511
+ );
512
+ }), nt = y(function(n, e) {
513
+ const { height: o = 14, width: i = 14, ...r } = n;
514
+ return /* @__PURE__ */ T(
515
+ "svg",
516
+ {
517
+ ...r,
518
+ ref: e,
519
+ fill: "none",
520
+ height: o,
521
+ viewBox: "0 0 14 14",
522
+ width: i,
523
+ xmlns: "http://www.w3.org/2000/svg",
524
+ children: [
525
+ /* @__PURE__ */ a(
526
+ "path",
527
+ {
528
+ d: "M7.042 4.475c.49 0 .97.15 1.377.429.407.28.724.677.912 1.142.187.464.237.976.141 1.469a2.57 2.57 0 0 1-.676 1.303 2.5 2.5 0 0 1-1.035.637 2.42 2.42 0 0 1-2.293-.467 2.54 2.54 0 0 1-.719-.994 2.6 2.6 0 0 1 .23-2.389c.226-.348.534-.633.893-.83a2.4 2.4 0 0 1 1.17-.3m-.017 1.157c-.354 0-.694.145-.944.402s-.392.605-.393.968c0 .755.617 1.389 1.354 1.389.73 0 1.317-.627 1.317-1.389 0-.754-.598-1.37-1.334-1.37",
529
+ fill: "currentColor",
530
+ fillRule: "evenodd",
531
+ clipRule: "evenodd"
532
+ }
533
+ ),
534
+ /* @__PURE__ */ a(
535
+ "path",
536
+ {
537
+ d: "M7.023 2c2.73 0 5.303 1.51 6.656 4.154l.127.258.001.002.122.274.005.009v.007a.9.9 0 0 1 .066.303.9.9 0 0 1-.065.317v.005l-.004.008C12.665 10.313 9.904 12 6.997 12 4.09 12 1.333 10.318.066 7.349L.06 7.344l-.003-.01A1.1 1.1 0 0 1 0 7.016c0-.101.02-.202.057-.318L.06 6.69v-.002a7.7 7.7 0 0 1 2.797-3.415A7.43 7.43 0 0 1 7.023 2m0 1.284c-2.308 0-4.601 1.261-5.731 3.726 1.139 2.477 3.401 3.706 5.704 3.706 2.308 0 4.572-1.238 5.7-3.704-1.129-2.466-3.369-3.728-5.673-3.728",
538
+ fill: "currentColor",
539
+ fillRule: "evenodd",
540
+ clipRule: "evenodd"
541
+ }
542
+ )
543
+ ]
544
+ }
545
+ );
546
+ }), tt = y(function(n, e) {
547
+ const { height: o = 14, width: i = 14, ...r } = n;
548
+ return /* @__PURE__ */ T(
549
+ "svg",
550
+ {
551
+ ...r,
552
+ ref: e,
553
+ fill: "none",
554
+ height: o,
555
+ viewBox: "0 0 14 14",
556
+ width: i,
557
+ xmlns: "http://www.w3.org/2000/svg",
558
+ children: [
559
+ /* @__PURE__ */ a(
560
+ "path",
561
+ {
562
+ d: "m2.867 12.098 1.266.804 7-11-1.266-.804zM10.264 4.2c1.005.624 1.86 1.564 2.431 2.813-1.127 2.465-3.39 3.703-5.699 3.703q-.423-.002-.84-.06l-.745 1.17A7.5 7.5 0 0 0 6.996 12c2.907 0 5.669-1.687 6.936-4.663l.003-.008v-.005A.9.9 0 0 0 14 7.008a.9.9 0 0 0-.066-.304v-.008l-.005-.008-.121-.274-.001-.002-.127-.258h-.001a7.7 7.7 0 0 0-2.736-3.022zM7.022 2a7.43 7.43 0 0 0-4.166 1.274A7.7 7.7 0 0 0 .061 6.688L.06 6.69l-.003.007a1 1 0 0 0-.057.32q.005.163.058.317l.003.01.004.005c.658 1.54 1.718 2.73 2.99 3.523l.678-1.067C2.727 9.188 1.866 8.259 1.292 7.01c1.13-2.465 3.423-3.727 5.73-3.727q.416 0 .826.057l.743-1.17A7.4 7.4 0 0 0 7.022 2",
563
+ fill: "currentColor"
564
+ }
565
+ ),
566
+ /* @__PURE__ */ a(
567
+ "path",
568
+ {
569
+ d: "M8.343 7.219c-.061.408-.292.76-.616.968l-.872 1.369c.305.023.612-.01.906-.1.39-.123.747-.341 1.035-.638.346-.356.581-.81.677-1.303a2.6 2.6 0 0 0-.244-1.69zM7.042 4.475c-.408 0-.81.103-1.17.3-.36.198-.667.483-.893.83a2.61 2.61 0 0 0-.23 2.389q.027.063.058.124l.925-1.455a1.4 1.4 0 0 1 .472-.741l.92-1.444z",
570
+ fill: "currentColor"
571
+ }
572
+ )
573
+ ]
574
+ }
575
+ );
576
+ }), ot = y(function(n, e) {
577
+ const { height: o = 14, width: i = 14, ...r } = n;
578
+ return /* @__PURE__ */ a(
579
+ "svg",
580
+ {
581
+ ...r,
582
+ ref: e,
583
+ xmlns: "http://www.w3.org/2000/svg",
584
+ width: i,
585
+ height: o,
586
+ viewBox: "0 0 14 14",
587
+ fill: "none",
588
+ children: /* @__PURE__ */ a(
589
+ "path",
590
+ {
591
+ stroke: "currentColor",
592
+ strokeLinecap: "round",
593
+ strokeLinejoin: "round",
594
+ strokeWidth: "1.6",
595
+ d: "M7 9.25 9.25 7m0 0L7 4.75M9.25 7H1m0-3.564V3.4c0-.84 0-1.26.163-1.581a1.5 1.5 0 0 1 .656-.656C2.139 1 2.56 1 3.4 1h7.2c.84 0 1.26 0 1.58.163a1.5 1.5 0 0 1 .657.656c.163.32.163.74.163 1.579v7.205c0 .838 0 1.257-.163 1.578a1.5 1.5 0 0 1-.656.656c-.321.163-.74.163-1.579.163H3.398c-.839 0-1.259 0-1.58-.163a1.5 1.5 0 0 1-.655-.656C1 11.86 1 11.44 1 10.6v-.037"
596
+ }
597
+ )
598
+ }
599
+ );
600
+ }), rt = y(function(n, e) {
601
+ const { height: o = 14, width: i = 14, ...r } = n;
602
+ return /* @__PURE__ */ a(
603
+ "svg",
604
+ {
605
+ ...r,
606
+ ref: e,
607
+ xmlns: "http://www.w3.org/2000/svg",
608
+ width: i,
609
+ height: o,
610
+ viewBox: "0 0 14 14",
611
+ fill: "none",
612
+ children: /* @__PURE__ */ a("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M12 5.5v4.867c0 .746 0 1.12-.14 1.405a1.3 1.3 0 0 1-.562.583c-.275.145-.635.145-1.355.145H4.557c-.72 0-1.08 0-1.355-.145a1.3 1.3 0 0 1-.562-.583c-.14-.285-.14-.659-.14-1.405V3.633c0-.746 0-1.12.14-1.405.123-.25.32-.455.562-.583.275-.145.635-.145 1.355-.145h3.586M12 5.5l-3.857-4M12 5.5H8.786a.655.655 0 0 1-.643-.667V1.5" })
613
+ }
614
+ );
615
+ }), it = y(function(n, e) {
616
+ const { height: o = 14, width: i = 14, ...r } = n;
617
+ return /* @__PURE__ */ a(
618
+ "svg",
619
+ {
620
+ ...r,
621
+ ref: e,
622
+ xmlns: "http://www.w3.org/2000/svg",
623
+ width: i,
624
+ height: o,
625
+ viewBox: "0 0 14 14",
626
+ fill: "none",
627
+ children: /* @__PURE__ */ a("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M2.49 2.25H5.19c.413 0 .508.004.588.021q.133.03.243.093c.064.036.128.088.421.358l.098.09c.244.224.45.42.7.56q.232.13.486.205l.17.044c.278.061.564.058.912.058h2.702c.447 0 .74 0 .966.017.217.017.307.045.356.068a.75.75 0 0 1 .342.308c.013.024.04.084.056.27.018.198.019.459.019.872v5c0 .413-.001.675-.019.872-.016.186-.043.246-.056.27a.75.75 0 0 1-.342.309c-.049.023-.139.051-.356.067-.225.017-.52.018-.966.018H2.489c-.447 0-.74 0-.966-.018-.217-.016-.307-.044-.356-.067a.75.75 0 0 1-.342-.309c-.013-.024-.04-.084-.056-.27a11 11 0 0 1-.019-.872V3.786c0-.413.001-.675.019-.872.016-.186.043-.246.056-.27a.75.75 0 0 1 .342-.309c.049-.023.139-.051.356-.067.225-.017.52-.018.966-.018" })
628
+ }
629
+ );
630
+ }), at = y(function(n, e) {
631
+ const { height: o = 14, width: i = 14, ...r } = n;
632
+ return /* @__PURE__ */ a(
633
+ "svg",
634
+ {
635
+ ...r,
636
+ ref: e,
637
+ xmlns: "http://www.w3.org/2000/svg",
638
+ width: i,
639
+ height: o,
640
+ viewBox: "0 0 14 14",
641
+ fill: "none",
642
+ children: /* @__PURE__ */ a(
643
+ "path",
644
+ {
645
+ fill: "currentColor",
646
+ d: "M6.293.818a1 1 0 0 1 1.414 0l5.586 5.585c.39.39.39 1.025 0 1.415l-5.586 5.585a1 1 0 0 1-1.414 0L.707 7.818a1 1 0 0 1 0-1.415L4.731 2.38l1.215 1.215a1.187 1.187 0 0 0 .554 1.68v4a1.187 1.187 0 1 0 .95 0V5.275q.06-.026.117-.06l1.865 1.864A1.186 1.186 0 0 0 10.537 8.7a1.188 1.188 0 1 0-.434-2.293L8.135 4.44a1.187 1.187 0 0 0-1.411-1.411l-1.32-1.32z"
647
+ }
648
+ )
649
+ }
650
+ );
651
+ }), st = y(function(n, e) {
652
+ const { height: o = 14, width: i = 14, ...r } = n;
653
+ return /* @__PURE__ */ a(
654
+ "svg",
655
+ {
656
+ ...r,
657
+ ref: e,
658
+ xmlns: "http://www.w3.org/2000/svg",
659
+ width: i,
660
+ height: o,
661
+ viewBox: "0 0 14 14",
662
+ fill: "none",
663
+ children: /* @__PURE__ */ a(
664
+ "path",
665
+ {
666
+ fill: "currentColor",
667
+ fillRule: "evenodd",
668
+ d: "M7 0a7 7 0 0 1 7 7.2c0 3.1-2 5.8-4.8 6.8-.3 0-.5-.2-.5-.4v-2c0-.6-.2-1-.4-1.3 1.5-.1 3.2-.7 3.2-3.5a3 3 0 0 0-.8-2c.1-.1.4-.8 0-1.8 0 0-.6-.2-2 .7a6.6 6.6 0 0 0-3.5 0C4 2.7 3.3 3 3.3 3c-.4 1-.1 1.7 0 1.9-.5.5-.8 1.1-.8 1.9 0 2.8 1.7 3.4 3.2 3.5-.2.2-.4.5-.4 1-.4.2-1.4.5-2-.6 0 0-.4-.7-1.1-.7 0 0-.7 0 0 .4 0 0 .4.2.7 1 0 0 .4 1.3 2.4 1v1.2c0 .2-.2.5-.5.4A7.2 7.2 0 0 1 0 7.2 7 7 0 0 1 7 0Z",
669
+ clipRule: "evenodd"
670
+ }
671
+ )
672
+ }
673
+ );
674
+ }), lt = y(function(n, e) {
675
+ const { height: o = 14, width: i = 14, ...r } = n;
676
+ return /* @__PURE__ */ a(
677
+ "svg",
678
+ {
679
+ ...r,
680
+ ref: e,
681
+ xmlns: "http://www.w3.org/2000/svg",
682
+ width: i,
683
+ height: o,
684
+ viewBox: "0 0 14 14",
685
+ fill: "none",
686
+ children: /* @__PURE__ */ a(
687
+ "path",
688
+ {
689
+ fill: "currentColor",
690
+ fillRule: "evenodd",
691
+ d: "M7 0a7 7 0 1 1 0 14A7 7 0 0 1 7 0ZM1.4 7.7c.3 2.2 1.9 4 4 4.7a9.7 9.7 0 0 1-1.9-4.7h-2Zm9 0c0 1.5-.6 3-1.8 4.7a5.6 5.6 0 0 0 4-4.7h-2.1ZM5 7.7c.2 1.4.8 3 2.1 4.6A8.7 8.7 0 0 0 9 7.7H5Zm.3-6c-2 .6-3.5 2.4-3.8 4.6h2.1l.1-.8a12 12 0 0 1 1.5-3.8Zm1.8 0A8.2 8.2 0 0 0 5 6.3h4.2v-.6a8.2 8.2 0 0 0-2.1-4Zm1.8 0a9.4 9.4 0 0 1 1.7 4.6h2c-.2-2.2-1.7-4-3.7-4.6Z",
692
+ clipRule: "evenodd"
693
+ }
694
+ )
695
+ }
696
+ );
697
+ }), ct = y(function(n, e) {
698
+ const { height: o = 14, width: i = 14, ...r } = n;
699
+ return /* @__PURE__ */ a(
700
+ "svg",
701
+ {
702
+ ...r,
703
+ ref: e,
704
+ xmlns: "http://www.w3.org/2000/svg",
705
+ width: i,
706
+ height: o,
707
+ viewBox: "0 0 14 14",
708
+ fill: "none",
709
+ children: /* @__PURE__ */ a(
710
+ "path",
711
+ {
712
+ fill: "currentColor",
713
+ d: "M9.71 0c.374 0 .678.304.678.678v.677h.677c.872 0 1.58.708 1.58 1.58v.678h.678a.678.678 0 0 1 0 1.355h-.678v1.355h.678a.677.677 0 0 1 0 1.355h-.678v1.354h.678a.678.678 0 0 1 0 1.356h-.678v.677c0 .872-.708 1.58-1.58 1.58h-.677v.678a.678.678 0 0 1-1.356 0v-.678H7.678v.678a.678.678 0 0 1-1.355 0v-.678H4.968v.678a.677.677 0 0 1-1.355 0v-.678h-.677a1.58 1.58 0 0 1-1.58-1.58v-.677H.677a.678.678 0 0 1 0-1.356h.677V7.678H.678a.678.678 0 0 1 0-1.355h.677V4.968H.678a.678.678 0 1 1 0-1.355h.677v-.677c0-.873.708-1.58 1.58-1.58h.678V.677a.678.678 0 0 1 1.355 0v.677h1.355V.678a.677.677 0 1 1 1.355 0v.677h1.354V.678c0-.374.304-.678.678-.678ZM2.936 2.71a.226.226 0 0 0-.226.226v8.128c0 .125.101.227.226.227h8.128a.228.228 0 0 0 .227-.226v-8.13a.227.227 0 0 0-.226-.225h-8.13Zm5.42 1.354c.872 0 1.58.709 1.58 1.582v2.71a1.58 1.58 0 0 1-1.58 1.58h-2.71c-.873 0-1.581-.708-1.582-1.58v-2.71c0-.873.709-1.582 1.582-1.582h2.71ZM5.645 5.42c-.125 0-.226.1-.226.226v2.71c0 .124.101.225.226.225h2.71a.226.226 0 0 0 .225-.226v-2.71a.226.226 0 0 0-.226-.225h-2.71Z"
714
+ }
715
+ )
716
+ }
717
+ );
718
+ }), dt = y(function(n, e) {
719
+ const { height: o = 14, width: i = 14, ...r } = n;
720
+ return /* @__PURE__ */ a(
721
+ "svg",
722
+ {
723
+ ...r,
724
+ ref: e,
725
+ xmlns: "http://www.w3.org/2000/svg",
726
+ width: i,
727
+ height: o,
728
+ viewBox: "0 0 14 14",
729
+ fill: "none",
730
+ children: /* @__PURE__ */ a(
731
+ "path",
732
+ {
733
+ fill: "currentColor",
734
+ d: "M1 5.7v7.8h4.286v-3.467C5.286 9.076 6.053 8.3 7 8.3s1.714.776 1.714 1.733V13.5H13V5.7L7 .5z"
735
+ }
736
+ )
737
+ }
738
+ );
739
+ }), ut = y(function(n, e) {
740
+ const { height: o = 14, width: i = 14, ...r } = n;
741
+ return /* @__PURE__ */ T(
742
+ "svg",
743
+ {
744
+ ...r,
745
+ ref: e,
746
+ xmlns: "http://www.w3.org/2000/svg",
747
+ width: i,
748
+ height: o,
749
+ viewBox: "0 0 14 14",
750
+ fill: "none",
751
+ children: [
752
+ /* @__PURE__ */ a("circle", { cx: "7", cy: "7", r: "5.25", stroke: "currentColor", strokeWidth: "1.4" }),
753
+ /* @__PURE__ */ a("circle", { cx: "7", cy: "5", r: "0.75", fill: "currentColor", stroke: "none" }),
754
+ /* @__PURE__ */ a(
755
+ "path",
756
+ {
757
+ stroke: "currentColor",
758
+ strokeLinecap: "round",
759
+ strokeWidth: "1.6",
760
+ d: "M7 7v2.5"
761
+ }
762
+ )
763
+ ]
764
+ }
765
+ );
766
+ }), ft = y(function(n, e) {
767
+ const { height: o = 14, width: i = 14, ...r } = n;
768
+ return /* @__PURE__ */ a(
769
+ "svg",
770
+ {
771
+ ...r,
772
+ ref: e,
773
+ xmlns: "http://www.w3.org/2000/svg",
774
+ width: i,
775
+ height: o,
776
+ viewBox: "0 0 14 14",
777
+ fill: "none",
778
+ children: /* @__PURE__ */ a(
779
+ "path",
780
+ {
781
+ fill: "currentColor",
782
+ fillRule: "evenodd",
783
+ d: "M9.254 7.814C11.323 7.814 13 6.177 13 4.157S11.323.5 9.254.5 5.507 2.137 5.507 4.157c0 .57.134 1.11.373 1.592a.55.55 0 0 1-.09.64l-4.423 4.318a.5.5 0 0 0 0 .715l1.779 1.737a.5.5 0 0 0 .698 0l.462-.45a.5.5 0 0 0 0-.716l-.585-.57a.5.5 0 0 1 0-.716l.605-.59a.5.5 0 0 1 .698 0l.62.604a.5.5 0 0 0 .698 0l.461-.45a.5.5 0 0 0 0-.716l-.584-.57a.5.5 0 0 1 0-.716l.761-.744a.55.55 0 0 1 .621-.085c.499.24 1.06.374 1.653.374m0-1.625c1.15 0 2.081-.91 2.081-2.032s-.932-2.032-2.081-2.032-2.082.91-2.082 2.032.932 2.032 2.082 2.032",
784
+ clipRule: "evenodd"
785
+ }
786
+ )
787
+ }
788
+ );
789
+ }), ht = y(function(n, e) {
790
+ const { height: o = 14, width: i = 14, ...r } = n;
791
+ return /* @__PURE__ */ a(
792
+ "svg",
793
+ {
794
+ ...r,
795
+ ref: e,
796
+ xmlns: "http://www.w3.org/2000/svg",
797
+ width: i,
798
+ height: o,
799
+ viewBox: "0 0 14 14",
800
+ fill: "none",
801
+ children: /* @__PURE__ */ a(
802
+ "path",
803
+ {
804
+ fill: "currentColor",
805
+ fillRule: "evenodd",
806
+ d: "M14 14h-2.8V9.1c0-1.3-.6-2-1.7-2s-1.8.7-1.8 2V14H4.9V4.9h2.8v1s.9-1.5 2.9-1.5S14 5.6 14 8v6ZM1.7 3.4C.7 3.4 0 2.7 0 1.7S.8 0 1.7 0a1.7 1.7 0 0 1 0 3.4ZM0 14h3.5V4.9H0V14Z",
807
+ clipRule: "evenodd"
808
+ }
809
+ )
810
+ }
811
+ );
812
+ }), pt = y(function(n, e) {
813
+ const { height: o = 14, width: i = 14, ...r } = n;
814
+ return /* @__PURE__ */ T(
815
+ "svg",
816
+ {
817
+ ...r,
818
+ ref: e,
819
+ xmlns: "http://www.w3.org/2000/svg",
820
+ width: i,
821
+ height: o,
822
+ viewBox: "3 -2 16 22",
823
+ fill: "none",
824
+ children: [
825
+ /* @__PURE__ */ a(
826
+ "path",
827
+ {
828
+ stroke: "currentColor",
829
+ strokeLinecap: "round",
830
+ strokeLinejoin: "round",
831
+ strokeWidth: "2.5",
832
+ d: "m3 3.7 8 5.9 8-5.9"
833
+ }
834
+ ),
835
+ /* @__PURE__ */ a(
836
+ "path",
837
+ {
838
+ stroke: "currentColor",
839
+ strokeLinecap: "round",
840
+ strokeLinejoin: "round",
841
+ strokeWidth: "2.5",
842
+ d: "M18 2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h14a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2Z"
843
+ }
844
+ )
845
+ ]
846
+ }
847
+ );
848
+ }), vt = y(function(n, e) {
849
+ const { height: o = 14, width: i = 14, ...r } = n;
850
+ return /* @__PURE__ */ a(
851
+ "svg",
852
+ {
853
+ ...r,
854
+ ref: e,
855
+ xmlns: "http://www.w3.org/2000/svg",
856
+ width: i,
857
+ height: o,
858
+ viewBox: "0 0 14 14",
859
+ fill: "none",
860
+ children: /* @__PURE__ */ a(
861
+ "path",
862
+ {
863
+ stroke: "currentColor",
864
+ strokeLinecap: "round",
865
+ strokeWidth: "1.6",
866
+ d: "M3.5 7.121h7.243"
867
+ }
868
+ )
869
+ }
870
+ );
871
+ }), mt = y(function(n, e) {
872
+ const { height: o = 14, width: i = 14, ...r } = n;
873
+ return /* @__PURE__ */ a(
874
+ "svg",
875
+ {
876
+ ...r,
877
+ ref: e,
878
+ xmlns: "http://www.w3.org/2000/svg",
879
+ width: i,
880
+ height: o,
881
+ viewBox: "0 0 14 14",
882
+ fill: "none",
883
+ children: /* @__PURE__ */ a(
884
+ "path",
885
+ {
886
+ fill: "currentColor",
887
+ d: "M9.534 2.136a1.784 1.784 0 0 1 1.944 2.91l-.26.258-2.522-2.522.259-.26c.166-.165.362-.297.579-.386ZM7.989 3.489 2.827 8.65a.5.5 0 0 0-.128.222l-.681 2.497a.5.5 0 0 0 .614.614l2.496-.681a.5.5 0 0 0 .222-.129l5.162-5.162L7.989 3.49Z"
888
+ }
889
+ )
890
+ }
891
+ );
892
+ }), gt = y(function(n, e) {
893
+ const { height: o = 14, width: i = 14, ...r } = n;
894
+ return /* @__PURE__ */ a(
895
+ "svg",
896
+ {
897
+ ...r,
898
+ ref: e,
899
+ xmlns: "http://www.w3.org/2000/svg",
900
+ width: i,
901
+ height: o,
902
+ viewBox: "0 0 14 14",
903
+ fill: "none",
904
+ children: /* @__PURE__ */ a(
905
+ "path",
906
+ {
907
+ stroke: "currentColor",
908
+ strokeLinecap: "round",
909
+ strokeWidth: "1.6",
910
+ d: "M3.5 7.121h7.243M7.122 3.5v7.243"
911
+ }
912
+ )
913
+ }
914
+ );
915
+ }), wt = y(function(n, e) {
916
+ const { height: o = 14, width: i = 14, ...r } = n;
917
+ return /* @__PURE__ */ T(
918
+ "svg",
919
+ {
920
+ ...r,
921
+ ref: e,
922
+ xmlns: "http://www.w3.org/2000/svg",
923
+ width: i,
924
+ height: o,
925
+ viewBox: "0 0 14 14",
926
+ fill: "none",
927
+ children: [
928
+ /* @__PURE__ */ a("rect", { width: "6", height: "6", fill: "currentColor", rx: "1" }),
929
+ /* @__PURE__ */ a("rect", { width: "6", height: "6", x: "8", fill: "currentColor", rx: "1" }),
930
+ /* @__PURE__ */ a("rect", { width: "6", height: "6", y: "8", fill: "currentColor", rx: "1" }),
931
+ /* @__PURE__ */ a("rect", { width: "6", height: "6", x: "8", y: "8", fill: "currentColor", rx: "1" })
932
+ ]
933
+ }
934
+ );
935
+ }), bt = y(function(n, e) {
936
+ const { height: o = 14, width: i = 14, ...r } = n;
937
+ return /* @__PURE__ */ a(
938
+ "svg",
939
+ {
940
+ ...r,
941
+ ref: e,
942
+ xmlns: "http://www.w3.org/2000/svg",
943
+ width: i,
944
+ height: o,
945
+ viewBox: "0 0 14 14",
946
+ fill: "none",
947
+ children: /* @__PURE__ */ T("g", { fill: "currentColor", children: [
948
+ /* @__PURE__ */ a("path", { d: "M14 14h-3.111v-1.556h1.555V10.89H14V14ZM0 0h6.222v6.222H0V0Zm1.556 1.556v3.11h3.11v-3.11h-3.11ZM7.778 0H14v6.222H7.778V0Zm1.555 1.556v3.11h3.111v-3.11h-3.11ZM0 7.778h6.222V14H0V7.778Zm1.556 1.555v3.111h3.11v-3.11h-3.11Zm10.11-1.555H14V9h-2.333V7.778ZM9.333 10H7.778V7.778h1.555V10ZM9.31 12.444V14H7.779v-2H9.31v.444ZM9.3 11h1v1h-1zM10.3 11h1v1h-1z" }),
949
+ /* @__PURE__ */ a("path", { d: "M11.3 10H14v1h-2.7zM10.3 9h1v1h-1z" })
950
+ ] })
951
+ }
952
+ );
953
+ }), yt = y(function(n, e) {
954
+ const { height: o = 14, width: i = 14, ...r } = n;
955
+ return /* @__PURE__ */ a(
956
+ "svg",
957
+ {
958
+ ...r,
959
+ ref: e,
960
+ xmlns: "http://www.w3.org/2000/svg",
961
+ width: i,
962
+ height: o,
963
+ viewBox: "0 0 14 14",
964
+ fill: "none",
965
+ children: /* @__PURE__ */ a(
966
+ "path",
967
+ {
968
+ fill: "currentColor",
969
+ fillRule: "evenodd",
970
+ d: "M9.1 9.1a1 1 0 0 1-1-1c0-.7.5-1.2 1-1.2.6 0 1 .5 1 1.1 0 .6-.4 1.1-1 1.1Zm.2 2c-.5.5-1.3.8-2.3.8-1 0-1.8-.3-2.3-.8a.3.3 0 0 1 0-.4c.1-.1.3-.1.4 0 .4.4 1 .6 1.9.6.9 0 1.5-.2 1.9-.6 0-.1.3-.1.4 0v.4ZM3.9 8c0-.7.5-1.2 1-1.2s1 .5 1 1.1c0 .6-.5 1.1-1 1.1s-1-.5-1-1ZM14 6.8c0-1-.7-1.8-1.6-1.8-.4 0-.8.2-1 .5a6.8 6.8 0 0 0-4-1.3l.8-3 2.2.6c0 .8.8 1.5 1.5 1.5s1.4-.7 1.4-1.5c0-.7-.7-1.4-1.4-1.4-.6 0-1.2.4-1.4.9L7.8.7l-1 3.6c-1.6 0-3 .5-4.2 1.2-.3-.2-.6-.4-1-.4-.9 0-1.6.8-1.6 1.8 0 .6.3 1.1.8 1.5C.3 11 3.3 13.5 7 13.5s6.6-2.4 6.2-5.1c.5-.3.8-.9.8-1.5Z",
971
+ clipRule: "evenodd"
972
+ }
973
+ )
974
+ }
975
+ );
976
+ }), kt = y(function(n, e) {
977
+ const { height: o = 14, width: i = 14, ...r } = n;
978
+ return /* @__PURE__ */ T(
979
+ "svg",
980
+ {
981
+ ...r,
982
+ ref: e,
983
+ xmlns: "http://www.w3.org/2000/svg",
984
+ width: i,
985
+ height: o,
986
+ viewBox: "0 0 14 15",
987
+ fill: "none",
988
+ children: [
989
+ /* @__PURE__ */ a("path", { fill: "currentColor", d: "M4.875 10.65a.437.437 0 0 0-.437.438v2.625a.438.438 0 0 0 .68.364l1.07-.713 1.07.713a.438.438 0 0 0 .68-.364v-2.625a.437.437 0 0 0-.438-.438z" }),
990
+ /* @__PURE__ */ a("path", { fill: "currentColor", stroke: "currentColor", strokeWidth: ".15", d: "M12.094.075a1.17 1.17 0 0 1 1.169 1.169V12.18a1.17 1.17 0 0 1-1.17 1.17h-2.63a.732.732 0 0 1 0-1.464H11.8V9.413H2.906a.58.58 0 0 0-.58.58v1.313a.58.58 0 0 0 .58.581h.069a.731.731 0 0 1 0 1.463h-.069a2.044 2.044 0 0 1-2.044-2.044V2.12A2.044 2.044 0 0 1 2.906.075zM2.906 1.538a.58.58 0 0 0-.58.58v5.917q.276-.084.58-.085H11.8V1.538z" })
991
+ ]
992
+ }
993
+ );
994
+ }), It = y(function(n, e) {
995
+ const { height: o = 14, width: i = 14, ...r } = n;
996
+ return /* @__PURE__ */ a(
997
+ "svg",
998
+ {
999
+ ...r,
1000
+ ref: e,
1001
+ xmlns: "http://www.w3.org/2000/svg",
1002
+ width: i,
1003
+ height: o,
1004
+ viewBox: "0 0 14 14",
1005
+ fill: "none",
1006
+ children: /* @__PURE__ */ a(
1007
+ "path",
1008
+ {
1009
+ fill: "currentColor",
1010
+ d: "M9.958 0c.194 0 .49.066.663.148 0 0-.112-.12.045.042.141.147 3.117 3.214 3.178 3.278.055.059.024.032.021.03.081.175.135.48.135.673v8.374c0 .62-.743 1.455-1.453 1.455l-2.436-.007A1.02 1.02 0 0 1 10 14H4c-.073 0-.144-.009-.212-.023l-2.345-.006A1.44 1.44 0 0 1 .01 12.56C-.022 11.696.04 2.202.04 1.454.04.708.646.031 1.524.031 2.404.031 9.958 0 9.958 0ZM1.471 1.435a.174.174 0 0 0-.057.037.173.173 0 0 0-.037.056.172.172 0 0 0-.014.067l.014 10.597c0 .193.158.35.352.352L3 12.55V8a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4.592l1.3.008a.349.349 0 0 0 .351-.349l-.012-7.914a.476.476 0 0 0-.127-.297L9.948 1.56c-.07-.068-.126-.044-.126.052V4.69c0 .293-.406.8-.774.801H3.75c-.403 0-.838-.413-.838-.8l-.002-3.079a.177.177 0 0 0-.174-.176l-1.199-.014a.176.176 0 0 0-.067.013Zm2.69 11.122 5.679.029V8.16H4.16v4.397Zm.232-11.099a.175.175 0 0 0-.176.175v2.435c0 .097.079.176.176.176h3.92a.175.175 0 0 0 .174-.176V1.634a.176.176 0 0 0-.175-.176h-3.92Z"
1011
+ }
1012
+ )
1013
+ }
1014
+ );
1015
+ }), xt = y(function(n, e) {
1016
+ const { height: o = 14, width: i = 14, ...r } = n;
1017
+ return /* @__PURE__ */ T(
1018
+ "svg",
1019
+ {
1020
+ ...r,
1021
+ ref: e,
1022
+ xmlns: "http://www.w3.org/2000/svg",
1023
+ width: i,
1024
+ height: o,
1025
+ viewBox: "0 0 14 14",
1026
+ fill: "none",
1027
+ children: [
1028
+ /* @__PURE__ */ a(
1029
+ "path",
1030
+ {
1031
+ fill: "currentColor",
1032
+ d: "M7 1.25c-2.29 0-4.584.943-6.297 2.838l-.434.485C-.08 4.956-.09 5.596.242 5.998c.335.403.888.415 1.237.032l.438-.482c2.7-2.988 7.466-2.988 10.166 0l.438.482c.349.383.902.37 1.237-.032.332-.402.322-1.042-.027-1.425l-.434-.489C11.584 2.194 9.29 1.25 7 1.25ZM6.973 5.3c-1.375.012-2.739.635-3.682 1.831l-.438.557a1.083 1.083 0 0 0-.229.726c.01.268.113.521.287.703.171.181.397.276.63.26a.828.828 0 0 0 .608-.332l.434-.552c1.118-1.417 3.64-1.512 4.834.004l.437.548c.154.202.373.32.606.332a.8.8 0 0 0 .632-.26c.17-.182.273-.435.284-.703a1.108 1.108 0 0 0-.23-.726l-.437-.553C9.728 5.888 8.343 5.288 6.973 5.3Z"
1033
+ }
1034
+ ),
1035
+ /* @__PURE__ */ a("circle", { cx: "7", cy: "11.05", r: "1.867", fill: "currentColor" })
1036
+ ]
1037
+ }
1038
+ );
1039
+ }), Ct = y(function(n, e) {
1040
+ const { height: o = 14, width: i = 14, ...r } = n;
1041
+ return /* @__PURE__ */ a(
1042
+ "svg",
1043
+ {
1044
+ ...r,
1045
+ ref: e,
1046
+ xmlns: "http://www.w3.org/2000/svg",
1047
+ width: i,
1048
+ height: o,
1049
+ viewBox: "0 0 14 14",
1050
+ fill: "none",
1051
+ children: /* @__PURE__ */ a("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M4.031 4.031h.006M6.195 1.5H4.5c-1.05 0-1.575 0-1.976.204-.353.18-.64.467-.82.82-.204.4-.204.926-.204 1.976v1.695c0 .458 0 .688.052.904.046.19.121.374.224.542.116.189.278.35.603.675l2.937 2.938c.743.742 1.114 1.114 1.542 1.253.377.122.782.122 1.159 0 .428-.14.8-.51 1.542-1.253l1.695-1.695c.742-.743 1.114-1.114 1.253-1.542a1.88 1.88 0 0 0 0-1.159c-.14-.428-.51-.8-1.253-1.542L8.316 2.38c-.324-.325-.486-.487-.675-.603a1.9 1.9 0 0 0-.542-.224C6.883 1.5 6.653 1.5 6.195 1.5M4.344 4.031a.312.312 0 1 1-.625 0 .312.312 0 0 1 .625 0" })
1052
+ }
1053
+ );
1054
+ }), Pt = y(function(n, e) {
1055
+ const { height: o = 14, width: i = 14, ...r } = n;
1056
+ return /* @__PURE__ */ a(
1057
+ "svg",
1058
+ {
1059
+ ...r,
1060
+ ref: e,
1061
+ xmlns: "http://www.w3.org/2000/svg",
1062
+ width: i,
1063
+ height: o,
1064
+ viewBox: "0 0 14 14",
1065
+ fill: "none",
1066
+ children: /* @__PURE__ */ a(
1067
+ "path",
1068
+ {
1069
+ fill: "currentColor",
1070
+ d: "M7 0a7 7 0 1 1 0 14A7 7 0 0 1 7 0Zm0 1.866a5.134 5.134 0 0 0-3.257 9.102C3.853 9.002 4.821 7.467 7 7.467c2.179 0 3.146 1.535 3.256 3.5A5.134 5.134 0 0 0 7 1.866ZM7 2.8a1.867 1.867 0 1 1-.001 3.733A1.867 1.867 0 0 1 7 2.8Z"
1071
+ }
1072
+ )
1073
+ }
1074
+ );
1075
+ }), Mt = y(function(n, e) {
1076
+ const { height: o = 14, width: i = 14, ...r } = n;
1077
+ return /* @__PURE__ */ T(
1078
+ "svg",
1079
+ {
1080
+ ...r,
1081
+ ref: e,
1082
+ xmlns: "http://www.w3.org/2000/svg",
1083
+ width: i,
1084
+ height: o,
1085
+ viewBox: "0 0 14 14",
1086
+ fill: "none",
1087
+ children: [
1088
+ /* @__PURE__ */ a(
1089
+ "path",
1090
+ {
1091
+ stroke: "currentColor",
1092
+ strokeLinejoin: "round",
1093
+ strokeWidth: "1.4",
1094
+ d: "M7 1.5 1.5 11.5h11L7 1.5Z"
1095
+ }
1096
+ ),
1097
+ /* @__PURE__ */ a(
1098
+ "path",
1099
+ {
1100
+ stroke: "currentColor",
1101
+ strokeLinecap: "round",
1102
+ strokeWidth: "1.6",
1103
+ d: "M7 6v2"
1104
+ }
1105
+ ),
1106
+ /* @__PURE__ */ a("circle", { cx: "7", cy: "9.75", r: "0.75", fill: "currentColor", stroke: "none" })
1107
+ ]
1108
+ }
1109
+ );
1110
+ }), Lt = y(function(n, e) {
1111
+ const { height: o = 14, width: i = 14, ...r } = n;
1112
+ return /* @__PURE__ */ a(
1113
+ "svg",
1114
+ {
1115
+ ...r,
1116
+ ref: e,
1117
+ xmlns: "http://www.w3.org/2000/svg",
1118
+ width: i,
1119
+ height: o,
1120
+ viewBox: "0 0 14 14",
1121
+ fill: "none",
1122
+ children: /* @__PURE__ */ a(
1123
+ "path",
1124
+ {
1125
+ fill: "currentColor",
1126
+ d: "M10.938 1.003c.196.003.376.007.538.018.331.023.668.074.998.216.488.211.918.56 1.199 1.027.199.33.27.672.3.987.028.297.027.655.027 1.035v5.428c0 .38.001.738-.027 1.035-.03.315-.101.657-.3.987a2.553 2.553 0 0 1-1.019.94l-.18.087c-.33.142-.667.193-.998.216-.324.022-.72.021-1.178.021H3.702c-.459 0-.854 0-1.178-.021a3.168 3.168 0 0 1-.874-.167l-.124-.05a2.583 2.583 0 0 1-1.199-1.026c-.199-.33-.27-.672-.3-.987C0 10.452 0 10.094 0 9.714V4.286c0-.38-.001-.738.027-1.035.03-.315.101-.657.3-.987l.112-.17a2.615 2.615 0 0 1 1.087-.857l.124-.049a3.17 3.17 0 0 1 .874-.167C2.848 1 3.244 1 3.702 1h6.596l.64.003ZM3.702 3c-.487 0-.8 0-1.04.017-.23.016-.312.043-.344.057a.596.596 0 0 0-.275.218c.01-.02-.01 0-.024.151C2 3.623 2 3.867 2 4.286v5.428c0 .42.001.664.019.843.008.091.019.134.024.15.044.07.13.157.274.219h.001c.032.014.113.041.344.057.24.017.553.017 1.04.017h6.596c.486 0 .8 0 1.04-.017.23-.016.312-.043.344-.057a.59.59 0 0 0 .274-.219.758.758 0 0 0 .025-.15c.018-.18.019-.424.019-.843V4.286c0-.42-.001-.664-.019-.843a.763.763 0 0 0-.025-.151.594.594 0 0 0-.274-.218c-.032-.014-.113-.041-.344-.057a7.799 7.799 0 0 0-.427-.015L10.298 3H3.702Zm4.24.5a1 1 0 0 1 0 2h-.008a1 1 0 0 1 0-2h.008Zm2.534 0a1 1 0 0 1 0 2h-.01a1 1 0 0 1 0-2h.01Z"
1127
+ }
1128
+ )
1129
+ }
1130
+ );
1131
+ }), Nt = {
1132
+ projects: wt,
1133
+ chat: qn,
1134
+ articles: Bn,
1135
+ mail: pt,
1136
+ github: st,
1137
+ globe: lt,
1138
+ linkedin: ht,
1139
+ reddit: yt,
1140
+ exit: ot,
1141
+ camera: jn,
1142
+ "qr-code": bt,
1143
+ download: Jn,
1144
+ save: It,
1145
+ pencil: mt,
1146
+ "arrow-left": Hn,
1147
+ "arrow-right": Fn,
1148
+ cross: Xn,
1149
+ checkmark: Gn,
1150
+ plus: gt,
1151
+ minus: vt,
1152
+ window: Lt,
1153
+ user: Pt,
1154
+ duplicate: et,
1155
+ eye: nt,
1156
+ "eye-off": tt,
1157
+ signal: xt,
1158
+ audio: Wn,
1159
+ hardware: ct,
1160
+ burger: Zn,
1161
+ repository: kt,
1162
+ "chevron-down": $n,
1163
+ "chevron-up": Yn,
1164
+ "chevron-left": Kn,
1165
+ "chevron-right": Un,
1166
+ branch: zn,
1167
+ commit: Qn,
1168
+ folder: it,
1169
+ file: rt,
1170
+ tag: Ct,
1171
+ key: ft,
1172
+ git: at,
1173
+ home: dt,
1174
+ info: ut,
1175
+ warning: Mt
1176
+ }, me = y(function(n, e) {
1177
+ const {
1178
+ "aria-hidden": o,
1179
+ "aria-label": i,
1180
+ "aria-labelledby": r,
1181
+ color: l,
1182
+ role: s,
1183
+ size: h = 14,
1184
+ style: f,
1185
+ type: d,
1186
+ ...c
1187
+ } = n, p = Nt[d];
1188
+ if (!p)
1189
+ return console.warn(`Icon type "${d}" not found`), null;
1190
+ const m = i !== void 0 || r !== void 0;
1191
+ return Se(p, {
1192
+ ...c,
1193
+ "aria-hidden": o ?? (m ? void 0 : !0),
1194
+ "aria-label": i,
1195
+ "aria-labelledby": r,
1196
+ ref: e,
1197
+ height: h,
1198
+ role: s ?? (m ? "img" : void 0),
1199
+ style: {
1200
+ flexShrink: 0,
1201
+ ...f,
1202
+ ...l ? { color: l } : void 0
1203
+ },
1204
+ width: h
1205
+ });
1206
+ }), wn = y(function(n, e) {
1207
+ const { className: o = "", color: i, size: r = 48, style: l, ...s } = n, h = typeof r == "number" ? `${r}px` : r;
1208
+ return /* @__PURE__ */ a(
1209
+ "div",
1210
+ {
1211
+ ref: e,
1212
+ className: ["nk-spinner", o].filter(Boolean).join(" "),
1213
+ style: {
1214
+ ...l,
1215
+ width: r,
1216
+ height: r,
1217
+ fontSize: h,
1218
+ ...i ? { color: i } : void 0
1219
+ },
1220
+ role: "status",
1221
+ "aria-label": "Loading",
1222
+ ...s
1223
+ }
1224
+ );
1225
+ });
1226
+ function Je(t) {
1227
+ return t == null || typeof t == "boolean" || typeof t == "string" && !t.trim() ? !1 : Array.isArray(t) ? t.some(Je) : mn(t) && t.type === Fe ? Je(t.props.children) : !0;
1228
+ }
1229
+ function _t(t, n) {
1230
+ const e = t.getBoundingClientRect(), o = n.clientX - e.left, i = n.clientY - e.top;
1231
+ t.style.setProperty("--nk-button-glow-x", `${o}px`), t.style.setProperty("--nk-button-glow-y", `${i}px`);
1232
+ }
1233
+ const en = y(function(n, e) {
1234
+ const {
1235
+ as: o,
1236
+ children: i,
1237
+ className: r,
1238
+ disabled: l,
1239
+ fullWidth: s = !1,
1240
+ icon: h,
1241
+ iconAlignment: f = "left",
1242
+ loading: d = !1,
1243
+ onClick: c,
1244
+ onKeyDown: p,
1245
+ onMouseMove: m,
1246
+ role: g,
1247
+ shape: k,
1248
+ tabIndex: b,
1249
+ textAlignment: w = "center",
1250
+ tone: S,
1251
+ variant: L = "primary",
1252
+ ...V
1253
+ } = n, x = o ?? "button", N = l || d, P = !!h && !Je(i), E = x !== "button" && x !== "a", O = (v) => {
1254
+ if (N) {
1255
+ v.preventDefault(), v.stopPropagation();
1256
+ return;
1257
+ }
1258
+ const I = c;
1259
+ I == null || I(v);
1260
+ }, Z = (v) => {
1261
+ _t(v.currentTarget, v);
1262
+ const I = m;
1263
+ I == null || I(v);
1264
+ }, j = (v) => {
1265
+ const I = p;
1266
+ I == null || I(v), !(v.defaultPrevented || N || !E || v.key !== "Enter" && v.key !== " ") && (v.preventDefault(), v.currentTarget.click());
1267
+ }, F = x === "button" ? {
1268
+ disabled: N,
1269
+ type: V.type ?? "button"
1270
+ } : { "aria-disabled": N || void 0 }, _ = x === "a" && N ? { href: void 0 } : void 0, K = x === "a" && N ? g ?? "link" : E ? g ?? "button" : g, M = x === "button" ? b : x === "a" && N ? void 0 : N ? -1 : E ? b ?? 0 : b;
1271
+ return Se(
1272
+ x,
1273
+ {
1274
+ ...V,
1275
+ ...F,
1276
+ ..._,
1277
+ ref: e,
1278
+ "aria-busy": d || void 0,
1279
+ className: ["nk-button", r].filter(Boolean).join(" "),
1280
+ "data-full-width": s || void 0,
1281
+ "data-icon-only": P || void 0,
1282
+ "data-shape": k,
1283
+ "data-tone": S,
1284
+ "data-variant": L,
1285
+ onClick: O,
1286
+ onKeyDown: E ? j : p,
1287
+ onMouseMove: Z,
1288
+ role: K,
1289
+ tabIndex: M
1290
+ },
1291
+ /* @__PURE__ */ T(He, { children: [
1292
+ /* @__PURE__ */ T(
1293
+ "span",
1294
+ {
1295
+ className: "nk-button__content",
1296
+ style: { justifyContent: w },
1297
+ children: [
1298
+ h && f === "left" ? /* @__PURE__ */ a(me, { size: 14, type: h }) : null,
1299
+ i,
1300
+ h && f === "right" ? /* @__PURE__ */ a(me, { size: 14, type: h }) : null
1301
+ ]
1302
+ }
1303
+ ),
1304
+ d ? /* @__PURE__ */ a(
1305
+ wn,
1306
+ {
1307
+ "aria-hidden": "true",
1308
+ "aria-label": void 0,
1309
+ className: "nk-button__spinner",
1310
+ role: void 0,
1311
+ size: 16
1312
+ }
1313
+ ) : null
1314
+ ] })
1315
+ );
1316
+ }), fe = y(function(n, e) {
1317
+ const {
1318
+ align: o = "left",
1319
+ as: i,
1320
+ className: r,
1321
+ size: l = "body",
1322
+ tone: s = "default",
1323
+ weight: h,
1324
+ ...f
1325
+ } = n;
1326
+ return Se(i ?? "p", {
1327
+ ...f,
1328
+ ref: e,
1329
+ className: ["nk-text", r].filter(Boolean).join(" "),
1330
+ "data-align": o,
1331
+ "data-size": l,
1332
+ "data-tone": s,
1333
+ "data-weight": h
1334
+ });
1335
+ }), qo = y(function(n, e) {
1336
+ const {
1337
+ children: o,
1338
+ className: i,
1339
+ header: r,
1340
+ spacing: l = "standard",
1341
+ ...s
1342
+ } = n;
1343
+ return /* @__PURE__ */ T(
1344
+ Ae,
1345
+ {
1346
+ ...s,
1347
+ ref: e,
1348
+ className: ["nk-card", i].filter(Boolean).join(" "),
1349
+ "data-has-header": r ? !0 : void 0,
1350
+ "data-spacing": l,
1351
+ children: [
1352
+ r ? /* @__PURE__ */ T("div", { className: "nk-card__header", children: [
1353
+ r.title ? /* @__PURE__ */ a(fe, { as: "span", size: "caption", tone: "muted", weight: "semibold", children: r.title }) : null,
1354
+ r.title && r.subtitle ? /* @__PURE__ */ a("span", { "aria-hidden": "true", className: "nk-card__separator", children: "•" }) : null,
1355
+ r.subtitle ? /* @__PURE__ */ a(fe, { as: "span", size: "caption", tone: "muted", weight: "semibold", children: r.subtitle }) : null
1356
+ ] }) : null,
1357
+ r ? /* @__PURE__ */ a("div", { className: "nk-card__content", "data-spacing": l, children: o }) : o
1358
+ ]
1359
+ }
1360
+ );
1361
+ });
1362
+ function he(t) {
1363
+ return t !== void 0 && t !== !1 && t !== "false";
1364
+ }
1365
+ function ge(t, n) {
1366
+ return t ? !0 : n;
1367
+ }
1368
+ const bn = We(void 0);
1369
+ function Et() {
1370
+ return xe(bn);
1371
+ }
1372
+ const Rt = y(function(n, e) {
1373
+ var P;
1374
+ const {
1375
+ "aria-invalid": o,
1376
+ checked: i,
1377
+ children: r,
1378
+ className: l,
1379
+ defaultChecked: s,
1380
+ disabled: h = !1,
1381
+ invalid: f = !1,
1382
+ name: d,
1383
+ onChange: c,
1384
+ required: p = !1,
1385
+ style: m,
1386
+ value: g = "on",
1387
+ ...k
1388
+ } = n, b = Et(), w = String(g), S = (b == null ? void 0 : b.value) !== void 0, L = h || !!(b != null && b.disabled), V = !!(b != null && b.required && !b.hasSelection && b.validationValue === w), x = f || he(o);
1389
+ function N(E) {
1390
+ c == null || c(E), E.defaultPrevented || b == null || b.handleChange(E);
1391
+ }
1392
+ return /* @__PURE__ */ T(
1393
+ "label",
1394
+ {
1395
+ className: ["nk-checkbox", l].filter(Boolean).join(" "),
1396
+ "data-disabled": L || void 0,
1397
+ "data-invalid": x || void 0,
1398
+ style: m,
1399
+ children: [
1400
+ /* @__PURE__ */ a(
1401
+ "input",
1402
+ {
1403
+ ...k,
1404
+ ref: e,
1405
+ "aria-invalid": ge(f, o),
1406
+ checked: b ? S ? (P = b.value) == null ? void 0 : P.includes(w) : void 0 : i,
1407
+ className: "nk-checkbox__control",
1408
+ defaultChecked: b && !S ? b.defaultValue.includes(w) : s,
1409
+ disabled: L,
1410
+ name: (b == null ? void 0 : b.name) ?? d,
1411
+ onChange: N,
1412
+ required: p || V,
1413
+ type: "checkbox",
1414
+ value: g
1415
+ }
1416
+ ),
1417
+ /* @__PURE__ */ a("span", { "aria-hidden": "true", className: "nk-checkbox__visual", children: /* @__PURE__ */ a(me, { className: "nk-checkbox__icon", size: 12, type: "checkmark" }) }),
1418
+ r !== void 0 ? /* @__PURE__ */ T(fe, { as: "span", className: "nk-checkbox__label", children: [
1419
+ r,
1420
+ p ? /* @__PURE__ */ a("span", { "aria-hidden": "true", className: "nk-checkbox__required", children: "*" }) : null
1421
+ ] }) : null
1422
+ ]
1423
+ }
1424
+ );
1425
+ }), yn = Symbol("nk-field-control-metadata");
1426
+ function kn(t) {
1427
+ if (typeof t != "function" && typeof t != "object" || t === null)
1428
+ return;
1429
+ const n = t, e = n[yn];
1430
+ return e || (n.type !== void 0 && n.type !== t ? kn(n.type) : void 0);
1431
+ }
1432
+ function In(t, n) {
1433
+ Object.assign(t, {
1434
+ [yn]: { requiredCommunication: n }
1435
+ });
1436
+ }
1437
+ const St = Object.freeze([]);
1438
+ function xn(t, n) {
1439
+ Vn.forEach(t, (e) => {
1440
+ if (e == null || typeof e == "boolean")
1441
+ return;
1442
+ if (!mn(e))
1443
+ throw new Error(
1444
+ "CheckboxGroup children must be direct Checkbox elements or fragments"
1445
+ );
1446
+ if (e.type === Fe) {
1447
+ xn(e.props.children, n);
1448
+ return;
1449
+ }
1450
+ if (e.type !== Rt)
1451
+ throw new Error(
1452
+ "CheckboxGroup children must be direct Checkbox elements or fragments"
1453
+ );
1454
+ const o = e;
1455
+ n.push({
1456
+ disabled: !!o.props.disabled,
1457
+ required: !!o.props.required,
1458
+ value: String(o.props.value ?? "on")
1459
+ });
1460
+ });
1461
+ }
1462
+ function Vt(t) {
1463
+ const n = [];
1464
+ xn(t, n);
1465
+ const e = /* @__PURE__ */ new Set();
1466
+ return n.forEach((o) => {
1467
+ if (e.has(o.value))
1468
+ throw new Error("CheckboxGroup Checkbox values must be unique");
1469
+ e.add(o.value);
1470
+ }), n;
1471
+ }
1472
+ function Tt(t, n, e) {
1473
+ n.current = t, typeof e == "function" ? e(t) : e && (e.current = t);
1474
+ }
1475
+ const At = y(
1476
+ function(n, e) {
1477
+ const {
1478
+ "aria-invalid": o,
1479
+ children: i,
1480
+ className: r,
1481
+ defaultValue: l = St,
1482
+ disabled: s = !1,
1483
+ invalid: h = !1,
1484
+ name: f,
1485
+ onChange: d,
1486
+ orientation: c = "vertical",
1487
+ required: p = !1,
1488
+ value: m,
1489
+ ...g
1490
+ } = n, k = H(null), [b, w] = Y(l), S = m !== void 0, L = S ? m : b, V = h || he(o), x = Vt(i), N = s ? [] : x.filter((v) => !v.disabled).map((v) => v.value), P = new Set(N), E = L.some(
1491
+ (v) => P.has(v)
1492
+ ), O = N[0], Z = x.find(
1493
+ (v) => !v.disabled && v.value === O
1494
+ ), j = l.some(
1495
+ (v) => P.has(v)
1496
+ ), F = !!(Z != null && Z.required), _ = W(
1497
+ (v) => Tt(
1498
+ v,
1499
+ k,
1500
+ e
1501
+ ),
1502
+ [e]
1503
+ );
1504
+ q(() => {
1505
+ var R;
1506
+ if (S) return;
1507
+ const v = (R = k.current) == null ? void 0 : R.querySelector(
1508
+ 'input[type="checkbox"]'
1509
+ ), I = v instanceof HTMLInputElement ? v.form : null;
1510
+ if (!I) return;
1511
+ const B = I.getRootNode();
1512
+ function D(z) {
1513
+ var ee;
1514
+ if (z.target !== I || z.defaultPrevented) return;
1515
+ const te = Array.from(
1516
+ ((ee = k.current) == null ? void 0 : ee.querySelectorAll(
1517
+ 'input[type="checkbox"]'
1518
+ )) ?? []
1519
+ ).find(
1520
+ (Q) => !Q.disabled && Q.value === O
1521
+ );
1522
+ te && (te.required = !!(F || p && !j)), w(l);
1523
+ }
1524
+ return B.addEventListener("reset", D), () => B.removeEventListener("reset", D);
1525
+ }, [
1526
+ i,
1527
+ l,
1528
+ j,
1529
+ S,
1530
+ p,
1531
+ F,
1532
+ O
1533
+ ]);
1534
+ function K(v) {
1535
+ if (!S) {
1536
+ const I = v.currentTarget.value, B = v.currentTarget.checked;
1537
+ w((D) => B ? [.../* @__PURE__ */ new Set([...D, I])] : D.filter((R) => R !== I));
1538
+ }
1539
+ d == null || d(v);
1540
+ }
1541
+ const M = {
1542
+ defaultValue: l,
1543
+ disabled: s,
1544
+ handleChange: K,
1545
+ hasSelection: E,
1546
+ name: f,
1547
+ required: p,
1548
+ value: m,
1549
+ validationValue: O
1550
+ };
1551
+ return /* @__PURE__ */ a(bn.Provider, { value: M, children: /* @__PURE__ */ a(
1552
+ "div",
1553
+ {
1554
+ ...g,
1555
+ ref: _,
1556
+ "aria-disabled": s || void 0,
1557
+ "aria-invalid": ge(h, o),
1558
+ className: [
1559
+ "nk-checkbox-group",
1560
+ r
1561
+ ].filter(Boolean).join(" "),
1562
+ "data-disabled": s || void 0,
1563
+ "data-invalid": V || void 0,
1564
+ "data-orientation": c,
1565
+ role: "group",
1566
+ children: i
1567
+ }
1568
+ ) });
1569
+ }
1570
+ );
1571
+ In(At, "label");
1572
+ const Cn = 768, Dt = [
1573
+ { minWidth: 1920, marginPercent: 32, preferredWidth: 1200 },
1574
+ { minWidth: 1440, marginPercent: 20, preferredWidth: 1100 },
1575
+ { minWidth: 960, marginPercent: 14, preferredWidth: 960 },
1576
+ {
1577
+ minWidth: Cn,
1578
+ marginPercent: 8,
1579
+ preferredWidth: 650
1580
+ }
1581
+ ], Ot = 16;
1582
+ function Bt(t) {
1583
+ for (const n of Dt)
1584
+ if (t >= n.minWidth) return n;
1585
+ }
1586
+ function Ht(t, n) {
1587
+ if (!Number.isFinite(t) || !Number.isFinite(n) || t < Cn || n <= 0)
1588
+ return;
1589
+ const e = Bt(t);
1590
+ if (!e) return;
1591
+ const o = t * e.marginPercent / 100, i = t - o * 2, r = Math.min(
1592
+ e.preferredWidth,
1593
+ t - Ot
1594
+ ), l = Math.max(i, r);
1595
+ let s = Math.floor(l / n);
1596
+ return s % 2 === 0 && (s -= 1), s = Math.max(s, 1), Math.min((s - 1) * n, t);
1597
+ }
1598
+ const Ft = typeof window > "u" ? q : nn;
1599
+ function Wt(t, n) {
1600
+ if (typeof t == "function") {
1601
+ t(n);
1602
+ return;
1603
+ }
1604
+ t && (t.current = n);
1605
+ }
1606
+ function zt(t) {
1607
+ const n = window.getComputedStyle(t), e = Number.parseFloat(n.paddingLeft) + Number.parseFloat(n.paddingRight);
1608
+ return Math.max(t.clientWidth - e, 0);
1609
+ }
1610
+ function Zt(t) {
1611
+ const e = window.getComputedStyle(t).getPropertyValue("--nk-cell").trim().match(
1612
+ /^([+]?(?:\d+\.?\d*|\.\d+))px$/i
1613
+ );
1614
+ if (!e) return;
1615
+ const o = Number.parseFloat(e[1]);
1616
+ return Number.isFinite(o) && o > 0 ? o : void 0;
1617
+ }
1618
+ function jt(t, n) {
1619
+ const e = H(null), o = H(null), i = H(void 0), [r, l] = Y(void 0), s = W((d) => {
1620
+ if (!n) {
1621
+ if (i.current === void 0) return;
1622
+ i.current = void 0, l(void 0);
1623
+ return;
1624
+ }
1625
+ const c = zt(d), p = Zt(d), m = p === void 0 ? void 0 : Ht(c, p);
1626
+ i.current !== m && (i.current = m, l(m));
1627
+ }, [n]), h = W(
1628
+ (d) => {
1629
+ var p;
1630
+ if ((p = o.current) == null || p.disconnect(), o.current = null, typeof ResizeObserver > "u") return;
1631
+ const c = new ResizeObserver(
1632
+ () => s(d)
1633
+ );
1634
+ c.observe(d), o.current = c;
1635
+ },
1636
+ [s]
1637
+ ), f = W(
1638
+ (d) => {
1639
+ var c;
1640
+ (c = o.current) == null || c.disconnect(), o.current = null, e.current = d, Wt(t, d), !(!d || typeof window > "u" || !n) && (s(d), h(d));
1641
+ },
1642
+ [
1643
+ h,
1644
+ n,
1645
+ t,
1646
+ s
1647
+ ]
1648
+ );
1649
+ return Ft(() => {
1650
+ e.current && s(e.current);
1651
+ }), q(() => (e.current && n && h(e.current), () => {
1652
+ var d;
1653
+ (d = o.current) == null || d.disconnect(), o.current = null;
1654
+ }), [h, n]), { rootReference: f, innerWidth: r };
1655
+ }
1656
+ const Go = y(
1657
+ function(n, e) {
1658
+ const {
1659
+ accent: o,
1660
+ as: i,
1661
+ children: r,
1662
+ className: l,
1663
+ constrain: s = !0,
1664
+ fill: h = "none",
1665
+ mode: f = "grid",
1666
+ spacing: d = "standard",
1667
+ style: c,
1668
+ theme: p = "light",
1669
+ ...m
1670
+ } = n, { rootReference: g, innerWidth: k } = jt(
1671
+ e,
1672
+ s
1673
+ ), b = i ?? "div", w = o !== void 0 ? { ...c, "--nk-accent": o } : c;
1674
+ return Se(
1675
+ b,
1676
+ {
1677
+ ...m,
1678
+ ref: g,
1679
+ className: ["nk-content", l].filter(Boolean).join(" "),
1680
+ "data-constrain": s,
1681
+ "data-fill": h,
1682
+ "data-mode": f,
1683
+ "data-spacing": d,
1684
+ "data-theme": p,
1685
+ style: w
1686
+ },
1687
+ Se(
1688
+ "div",
1689
+ {
1690
+ className: "nk-content__inner",
1691
+ style: k === void 0 ? void 0 : { width: `${k}px` }
1692
+ },
1693
+ r
1694
+ )
1695
+ );
1696
+ }
1697
+ ), $o = y(function(n, e) {
1698
+ const {
1699
+ "aria-hidden": o,
1700
+ "aria-label": i,
1701
+ "aria-labelledby": r,
1702
+ "aria-orientation": l,
1703
+ className: s,
1704
+ decorative: h = !1,
1705
+ orientation: f = "horizontal",
1706
+ role: d,
1707
+ text: c,
1708
+ ...p
1709
+ } = n;
1710
+ return /* @__PURE__ */ a(
1711
+ "div",
1712
+ {
1713
+ ...p,
1714
+ ...h ? {
1715
+ "aria-hidden": !0,
1716
+ "aria-label": void 0,
1717
+ "aria-labelledby": void 0,
1718
+ role: void 0
1719
+ } : {
1720
+ "aria-hidden": o,
1721
+ "aria-label": i ?? (r === void 0 && f === "horizontal" ? c : void 0),
1722
+ "aria-labelledby": r,
1723
+ "aria-orientation": l ?? f,
1724
+ role: d ?? "separator"
1725
+ },
1726
+ ref: e,
1727
+ className: ["nk-divider", s].filter(Boolean).join(" "),
1728
+ "data-has-text": !!c || void 0,
1729
+ "data-orientation": f,
1730
+ children: c && f === "horizontal" ? /* @__PURE__ */ a("span", { className: "nk-divider__text", children: c }) : null
1731
+ }
1732
+ );
1733
+ });
1734
+ function Ke(t) {
1735
+ return typeof t == "string" ? t.trim().length > 0 : t != null && t !== !1 && t !== !0;
1736
+ }
1737
+ function on(...t) {
1738
+ const n = t.flatMap(
1739
+ (o) => (o == null ? void 0 : o.split(/\s+/).filter(Boolean)) ?? []
1740
+ ), e = [...new Set(n)];
1741
+ return e.length > 0 ? e.join(" ") : void 0;
1742
+ }
1743
+ const Ko = y(function(n, e) {
1744
+ const {
1745
+ children: o,
1746
+ className: i,
1747
+ description: r,
1748
+ disabled: l = !1,
1749
+ error: s,
1750
+ label: h,
1751
+ orientation: f = "vertical",
1752
+ required: d = !1,
1753
+ ...c
1754
+ } = n, p = Ce(), m = o.props.id ?? `${p}-control`, g = `${p}-label`, k = `${p}-description`, b = `${p}-error`, w = Ke(h), S = Ke(r), L = Ke(s), V = kn(o.type), x = V !== void 0, N = l || !!o.props.disabled, P = d || !!o.props.required, E = P && (V == null ? void 0 : V.requiredCommunication) === "label", O = on(
1755
+ o.props["aria-describedby"],
1756
+ S ? k : void 0,
1757
+ L ? b : void 0
1758
+ ), Z = on(
1759
+ w ? g : void 0,
1760
+ o.props["aria-labelledby"]
1761
+ ), j = P ? /* @__PURE__ */ a("span", { "aria-hidden": "true", className: "nk-field__required", children: "*" }) : null, F = E ? /* @__PURE__ */ a("span", { className: "nk-field__required-text", children: ", select at least one" }) : null, _ = Oe(o, {
1762
+ "aria-describedby": O,
1763
+ "aria-invalid": L ? !0 : o.props["aria-invalid"],
1764
+ "aria-labelledby": Z,
1765
+ disabled: N || void 0,
1766
+ id: m,
1767
+ required: P || void 0
1768
+ });
1769
+ return /* @__PURE__ */ T(
1770
+ "div",
1771
+ {
1772
+ ...c,
1773
+ ref: e,
1774
+ className: ["nk-field", i].filter(Boolean).join(" "),
1775
+ "data-disabled": N || void 0,
1776
+ "data-has-label": w || void 0,
1777
+ "data-invalid": L || void 0,
1778
+ "data-orientation": f,
1779
+ "data-required": P || void 0,
1780
+ children: [
1781
+ w && x ? /* @__PURE__ */ T(
1782
+ fe,
1783
+ {
1784
+ as: "span",
1785
+ className: "nk-field__label",
1786
+ id: g,
1787
+ size: "caption",
1788
+ weight: "medium",
1789
+ children: [
1790
+ h,
1791
+ j,
1792
+ F
1793
+ ]
1794
+ }
1795
+ ) : null,
1796
+ w && !x ? /* @__PURE__ */ T(
1797
+ fe,
1798
+ {
1799
+ as: "label",
1800
+ className: "nk-field__label",
1801
+ htmlFor: m,
1802
+ id: g,
1803
+ size: "caption",
1804
+ weight: "medium",
1805
+ children: [
1806
+ h,
1807
+ j
1808
+ ]
1809
+ }
1810
+ ) : null,
1811
+ /* @__PURE__ */ T("div", { className: "nk-field__body", children: [
1812
+ _,
1813
+ S ? /* @__PURE__ */ a(
1814
+ fe,
1815
+ {
1816
+ as: "p",
1817
+ className: "nk-field__description",
1818
+ id: k,
1819
+ size: "caption",
1820
+ tone: "muted",
1821
+ children: r
1822
+ }
1823
+ ) : null,
1824
+ L ? /* @__PURE__ */ a(
1825
+ fe,
1826
+ {
1827
+ as: "p",
1828
+ "aria-live": "polite",
1829
+ className: "nk-field__error",
1830
+ id: b,
1831
+ size: "caption",
1832
+ tone: "danger",
1833
+ children: s
1834
+ }
1835
+ ) : null
1836
+ ] })
1837
+ ]
1838
+ }
1839
+ );
1840
+ });
1841
+ function Ue(t) {
1842
+ return Array.isArray(t) ? t.length > 0 : t != null && String(t).length > 0;
1843
+ }
1844
+ function qt(t, n, e) {
1845
+ n.current = t, typeof e == "function" ? e(t) : e && (e.current = t);
1846
+ }
1847
+ function rn(t) {
1848
+ return t != null && t !== !1 && t !== !0 && t !== "";
1849
+ }
1850
+ function Gt(t) {
1851
+ var e;
1852
+ const n = (e = Object.getOwnPropertyDescriptor(
1853
+ Object.getPrototypeOf(t),
1854
+ "value"
1855
+ )) == null ? void 0 : e.set;
1856
+ n ? n.call(t, "") : t.value = "";
1857
+ }
1858
+ const Uo = y(function(n, e) {
1859
+ const {
1860
+ "aria-busy": o,
1861
+ "aria-invalid": i,
1862
+ className: r,
1863
+ clearable: l = !1,
1864
+ defaultValue: s,
1865
+ disabled: h = !1,
1866
+ id: f,
1867
+ invalid: d = !1,
1868
+ leading: c,
1869
+ loading: p = !1,
1870
+ onChange: m,
1871
+ readOnly: g = !1,
1872
+ style: k,
1873
+ trailing: b,
1874
+ type: w = "text",
1875
+ value: S,
1876
+ ...L
1877
+ } = n, V = Ce(), x = H(null), [N, P] = Y(
1878
+ Ue(s)
1879
+ ), [E, O] = Y(!1);
1880
+ q(() => {
1881
+ w !== "password" && O(!1);
1882
+ }, [w]);
1883
+ const Z = W(
1884
+ (G) => qt(
1885
+ G,
1886
+ x,
1887
+ e
1888
+ ),
1889
+ [e]
1890
+ ), j = f ?? `${V}-control`, F = h || p, _ = d || he(i), K = S !== void 0 ? Ue(S) : N, M = w === "password" && E ? "text" : w, v = ge(d, i), I = l && K && !g && !F, B = w === "password" && !p, D = I || B, R = rn(c), z = rn(b) || D;
1891
+ function te(G) {
1892
+ S === void 0 && P(Ue(G.currentTarget.value)), m == null || m(G);
1893
+ }
1894
+ function ee() {
1895
+ const G = x.current;
1896
+ G && (Gt(G), G.dispatchEvent(new Event("input", { bubbles: !0 })), G.focus());
1897
+ }
1898
+ function Q() {
1899
+ O((G) => !G);
1900
+ }
1901
+ return /* @__PURE__ */ T(
1902
+ "div",
1903
+ {
1904
+ className: ["nk-input", r].filter(Boolean).join(" "),
1905
+ "data-clearable": l || void 0,
1906
+ "data-disabled": F || void 0,
1907
+ "data-invalid": _ || void 0,
1908
+ "data-leading": R || void 0,
1909
+ "data-loading": p || void 0,
1910
+ "data-read-only": g || void 0,
1911
+ "data-has-trailing-action": D || void 0,
1912
+ "data-trailing": z || void 0,
1913
+ style: k,
1914
+ children: [
1915
+ R ? /* @__PURE__ */ a("span", { className: "nk-input__leading", children: c }) : null,
1916
+ /* @__PURE__ */ a(
1917
+ "input",
1918
+ {
1919
+ ...L,
1920
+ ref: Z,
1921
+ "aria-busy": p ? !0 : o,
1922
+ "aria-invalid": v,
1923
+ className: "nk-input__control",
1924
+ defaultValue: s,
1925
+ disabled: F,
1926
+ id: j,
1927
+ onChange: te,
1928
+ readOnly: g,
1929
+ type: M,
1930
+ value: S
1931
+ }
1932
+ ),
1933
+ z ? /* @__PURE__ */ T("span", { className: "nk-input__trailing", children: [
1934
+ b,
1935
+ I ? /* @__PURE__ */ a(
1936
+ en,
1937
+ {
1938
+ "aria-controls": j,
1939
+ "aria-label": "Clear input",
1940
+ className: "nk-input__action",
1941
+ icon: "cross",
1942
+ onClick: ee,
1943
+ shape: "rectangle",
1944
+ type: "button",
1945
+ variant: "ghost"
1946
+ }
1947
+ ) : null,
1948
+ B ? /* @__PURE__ */ a(
1949
+ en,
1950
+ {
1951
+ "aria-controls": j,
1952
+ "aria-label": E ? "Hide password" : "Show password",
1953
+ "aria-pressed": E,
1954
+ className: "nk-input__action",
1955
+ disabled: F,
1956
+ icon: E ? "eye-off" : "eye",
1957
+ onClick: Q,
1958
+ shape: "rectangle",
1959
+ type: "button",
1960
+ variant: "ghost"
1961
+ }
1962
+ ) : null
1963
+ ] }) : null,
1964
+ p ? /* @__PURE__ */ a(
1965
+ wn,
1966
+ {
1967
+ "aria-hidden": "true",
1968
+ "aria-label": void 0,
1969
+ className: "nk-input__spinner",
1970
+ role: void 0,
1971
+ size: 14
1972
+ }
1973
+ ) : null
1974
+ ]
1975
+ }
1976
+ );
1977
+ }), Ve = We(void 0), an = typeof window > "u" ? q : nn;
1978
+ function sn(t, n) {
1979
+ const e = t.ownerDocument.defaultView;
1980
+ if (!e) return;
1981
+ const o = e.getComputedStyle(t);
1982
+ Array.from(n.style).filter((r) => r.startsWith("--nk-")).forEach((r) => {
1983
+ n.style.removeProperty(r);
1984
+ });
1985
+ for (let r = 0; r < o.length; r += 1) {
1986
+ const l = o.item(r);
1987
+ l.startsWith("--nk-") && n.style.setProperty(
1988
+ l,
1989
+ o.getPropertyValue(l)
1990
+ );
1991
+ }
1992
+ }
1993
+ function $t(t) {
1994
+ const { children: n, source: e } = t, o = H(null), i = xe(Ve);
1995
+ return an(() => {
1996
+ const r = o.current;
1997
+ if (!(!r || !i))
1998
+ return i.registerBranch(r);
1999
+ }, [i]), an(() => {
2000
+ var d;
2001
+ const r = o.current;
2002
+ if (!r) return;
2003
+ sn(e, r);
2004
+ const s = e.closest(".nk-content") ?? e, h = (d = e.ownerDocument.defaultView) == null ? void 0 : d.MutationObserver;
2005
+ if (!h) return;
2006
+ const f = new h(() => {
2007
+ sn(e, r);
2008
+ });
2009
+ return f.observe(s, {
2010
+ attributeFilter: ["class", "data-theme", "style"],
2011
+ attributes: !0
2012
+ }), () => f.disconnect();
2013
+ }, [e]), /* @__PURE__ */ a(
2014
+ "div",
2015
+ {
2016
+ className: "nk-portal",
2017
+ ref: o,
2018
+ style: { display: "contents" },
2019
+ children: n
2020
+ }
2021
+ );
2022
+ }
2023
+ function ze(t) {
2024
+ const { children: n, container: e, inheritFrom: o } = t, i = H(null), [r, l] = Y(!1);
2025
+ q(() => {
2026
+ l(!0);
2027
+ }, []);
2028
+ const s = o ?? i.current, h = (s == null ? void 0 : s.ownerDocument) ?? (typeof document > "u" ? null : document), f = e ?? (h == null ? void 0 : h.body) ?? null;
2029
+ return /* @__PURE__ */ T(He, { children: [
2030
+ o ? null : /* @__PURE__ */ a("span", { "aria-hidden": "true", hidden: !0, ref: i }),
2031
+ r && s && f ? An(
2032
+ /* @__PURE__ */ a($t, { source: s, children: n }),
2033
+ f
2034
+ ) : null
2035
+ ] });
2036
+ }
2037
+ const Kt = 1e3, Ut = 10, ln = /* @__PURE__ */ new WeakMap();
2038
+ function Te(t) {
2039
+ const n = ln.get(t);
2040
+ if (n) return n;
2041
+ const e = {
2042
+ focusLayers: /* @__PURE__ */ new Set(),
2043
+ layers: [],
2044
+ listeners: /* @__PURE__ */ new Set()
2045
+ };
2046
+ return ln.set(t, e), e;
2047
+ }
2048
+ function cn(t) {
2049
+ t.listeners.forEach((n) => n());
2050
+ }
2051
+ function Ze(t, n) {
2052
+ const e = H(Symbol("nk-overlay-layer")), [, o] = gn((s) => s + 1, 0);
2053
+ q(() => {
2054
+ if (!t || !n) return;
2055
+ const s = Te(n), h = () => o();
2056
+ return s.listeners.add(h), s.layers.push(e.current), cn(s), () => {
2057
+ s.listeners.delete(h);
2058
+ const f = s.layers.indexOf(e.current);
2059
+ f >= 0 && s.layers.splice(f, 1), cn(s);
2060
+ };
2061
+ }, [t, n]);
2062
+ const i = n ? Te(n) : null, r = (i == null ? void 0 : i.layers.indexOf(
2063
+ e.current
2064
+ )) ?? -1, l = r >= 0 ? r : (i == null ? void 0 : i.layers.length) ?? 0;
2065
+ return {
2066
+ id: e.current,
2067
+ zIndex: Kt + l * Ut
2068
+ };
2069
+ }
2070
+ function dn(t, n) {
2071
+ const e = Te(t).layers;
2072
+ return e.length > 0 && e[e.length - 1] === n;
2073
+ }
2074
+ function Yt(t, n, e) {
2075
+ q(() => {
2076
+ if (!t || !n) return;
2077
+ const o = Te(n);
2078
+ return o.focusLayers.add(e), () => {
2079
+ o.focusLayers.delete(e);
2080
+ };
2081
+ }, [t, e, n]);
2082
+ }
2083
+ function un(t, n) {
2084
+ const e = Te(t);
2085
+ for (let o = e.layers.length - 1; o >= 0; o -= 1) {
2086
+ const i = e.layers[o];
2087
+ if (e.focusLayers.has(i))
2088
+ return i === n;
2089
+ }
2090
+ return !1;
2091
+ }
2092
+ function Qt(t, n) {
2093
+ const e = t.composedPath();
2094
+ return n.some((o) => {
2095
+ var l;
2096
+ const i = o.current;
2097
+ if (!i) return !1;
2098
+ if (e.includes(i)) return !0;
2099
+ const r = (l = i.ownerDocument.defaultView) == null ? void 0 : l.Node;
2100
+ return r && t.target instanceof r ? i.contains(t.target) : !1;
2101
+ });
2102
+ }
2103
+ function je(t) {
2104
+ const {
2105
+ active: n,
2106
+ boundaries: e,
2107
+ dismissOnEscape: o = !0,
2108
+ dismissOnPointerDownOutside: i = !0,
2109
+ layerId: r,
2110
+ onEscapeDismiss: l,
2111
+ onEscapeKeyDown: s,
2112
+ onPointerDownOutside: h,
2113
+ onPointerDownOutsideDismiss: f,
2114
+ ownerDocument: d
2115
+ } = t;
2116
+ q(() => {
2117
+ if (!n || !d) return;
2118
+ function c(m) {
2119
+ m.key !== "Escape" || !o || !dn(d, r) || (s == null || s(m), !m.defaultPrevented && (m.preventDefault(), l == null || l()));
2120
+ }
2121
+ function p(m) {
2122
+ !i || !dn(d, r) || Qt(m, e) || (h == null || h(m), !m.defaultPrevented && (f == null || f()));
2123
+ }
2124
+ return d.addEventListener("keydown", c, !0), d.addEventListener("pointerdown", p, !0), () => {
2125
+ d.removeEventListener("keydown", c, !0), d.removeEventListener("pointerdown", p, !0);
2126
+ };
2127
+ }, [
2128
+ n,
2129
+ e,
2130
+ o,
2131
+ i,
2132
+ r,
2133
+ l,
2134
+ s,
2135
+ h,
2136
+ f,
2137
+ d
2138
+ ]);
2139
+ }
2140
+ const Xt = [
2141
+ "a[href]",
2142
+ "area[href]",
2143
+ "button",
2144
+ "input:not([type=hidden])",
2145
+ "select",
2146
+ "textarea",
2147
+ "iframe",
2148
+ "[contenteditable]:not([contenteditable='false'])",
2149
+ "[tabindex]"
2150
+ ].join(",");
2151
+ function Jt(t, n) {
2152
+ let e = t;
2153
+ for (; e; ) {
2154
+ if (e.hidden || e.inert || e.getAttribute("aria-hidden") === "true")
2155
+ return !0;
2156
+ const o = e.ownerDocument.defaultView, i = o == null ? void 0 : o.getComputedStyle(e);
2157
+ if ((i == null ? void 0 : i.display) === "none" || (i == null ? void 0 : i.visibility) === "hidden")
2158
+ return !0;
2159
+ if (e === n) break;
2160
+ e = e.parentElement;
2161
+ }
2162
+ return !1;
2163
+ }
2164
+ function eo(t, n) {
2165
+ var r;
2166
+ const e = (r = t.ownerDocument.defaultView) == null ? void 0 : r.HTMLInputElement;
2167
+ if (!e || !(t instanceof e) || t.type !== "radio" || !t.name)
2168
+ return !0;
2169
+ const o = n.filter(
2170
+ (l) => l instanceof e && l.type === "radio" && l.name === t.name && l.form === t.form
2171
+ ), i = o.find((l) => l.checked);
2172
+ return i ? i === t : o[0] === t;
2173
+ }
2174
+ function no(t) {
2175
+ const n = Array.from(
2176
+ t.querySelectorAll(Xt)
2177
+ ).filter((e) => !e.matches(":disabled") && e.tabIndex >= 0 && !Jt(e, t));
2178
+ return n.filter(
2179
+ (e) => eo(e, n)
2180
+ );
2181
+ }
2182
+ function fn(t, n) {
2183
+ const e = [t, ...n];
2184
+ return [...new Set(
2185
+ e.flatMap(
2186
+ (i) => no(i)
2187
+ )
2188
+ )].sort((i, r) => {
2189
+ var h;
2190
+ if (i === r) return 0;
2191
+ const l = i.compareDocumentPosition(r), s = ((h = i.ownerDocument.defaultView) == null ? void 0 : h.Node.DOCUMENT_POSITION_FOLLOWING) ?? 4;
2192
+ return l & s ? -1 : 1;
2193
+ });
2194
+ }
2195
+ function Ye(t, n, e) {
2196
+ return e ? t.contains(e) || [...n].some((o) => o.contains(e)) : !1;
2197
+ }
2198
+ function Pn(t) {
2199
+ const {
2200
+ active: n,
2201
+ autoFocus: e = !0,
2202
+ container: o,
2203
+ initialFocusReference: i,
2204
+ layerId: r,
2205
+ restoreFocus: l = !0
2206
+ } = t, s = (o == null ? void 0 : o.ownerDocument) ?? null, h = H(/* @__PURE__ */ new Set()), f = W((c) => (h.current.add(c), () => h.current.delete(c)), []), d = Pe(() => ({ registerBranch: f }), [f]);
2207
+ return Yt(n && !!o, s, r), q(() => {
2208
+ var L, V;
2209
+ if (!n || !o) return;
2210
+ const c = o.ownerDocument, p = (L = c.defaultView) == null ? void 0 : L.HTMLElement, m = (V = c.defaultView) == null ? void 0 : V.Node, g = p && c.activeElement instanceof p ? c.activeElement : null;
2211
+ let k = !0;
2212
+ function b() {
2213
+ const x = i == null ? void 0 : i.current;
2214
+ (x && Ye(
2215
+ o,
2216
+ h.current,
2217
+ x
2218
+ ) ? x : fn(
2219
+ o,
2220
+ h.current
2221
+ )[0] ?? o).focus({ preventScroll: !0 });
2222
+ }
2223
+ function w(x) {
2224
+ if (x.key !== "Tab" || !un(c, r))
2225
+ return;
2226
+ const N = fn(
2227
+ o,
2228
+ h.current
2229
+ );
2230
+ if (N.length === 0) {
2231
+ x.preventDefault(), o == null || o.focus({ preventScroll: !0 });
2232
+ return;
2233
+ }
2234
+ const P = N[0], E = N[N.length - 1], O = c.activeElement, Z = Ye(
2235
+ o,
2236
+ h.current,
2237
+ O
2238
+ );
2239
+ x.shiftKey && (O === P || !Z) ? (x.preventDefault(), E.focus()) : !x.shiftKey && (O === E || !Z) && (x.preventDefault(), P.focus());
2240
+ }
2241
+ function S(x) {
2242
+ un(c, r) && m && x.target instanceof m && !Ye(
2243
+ o,
2244
+ h.current,
2245
+ x.target
2246
+ ) && b();
2247
+ }
2248
+ return c.addEventListener("keydown", w, !0), c.addEventListener("focusin", S, !0), e && Promise.resolve().then(() => {
2249
+ k && b();
2250
+ }), () => {
2251
+ k = !1, c.removeEventListener("keydown", w, !0), c.removeEventListener("focusin", S, !0), l && (g != null && g.isConnected) && g.focus({ preventScroll: !0 });
2252
+ };
2253
+ }, [
2254
+ n,
2255
+ e,
2256
+ o,
2257
+ i,
2258
+ r,
2259
+ l
2260
+ ]), d;
2261
+ }
2262
+ function to() {
2263
+ const [t, n] = Y(!1);
2264
+ return q(() => {
2265
+ const e = typeof window > "u" ? null : window;
2266
+ if (!(e != null && e.matchMedia)) return;
2267
+ const o = e.matchMedia(
2268
+ "(prefers-reduced-motion: reduce)"
2269
+ ), i = () => {
2270
+ n(o.matches);
2271
+ };
2272
+ return i(), o.addEventListener("change", i), () => o.removeEventListener("change", i);
2273
+ }, []), t;
2274
+ }
2275
+ function qe(t, n = 200) {
2276
+ const e = to(), [o, i] = Y(t);
2277
+ return q(() => {
2278
+ if (t) {
2279
+ i(!0);
2280
+ return;
2281
+ }
2282
+ if (!o) return;
2283
+ if (e || n <= 0) {
2284
+ i(!1);
2285
+ return;
2286
+ }
2287
+ const r = window.setTimeout(() => {
2288
+ i(!1);
2289
+ }, n);
2290
+ return () => window.clearTimeout(r);
2291
+ }, [n, t, e, o]), {
2292
+ present: o,
2293
+ state: t ? "open" : o ? "closing" : "closed"
2294
+ };
2295
+ }
2296
+ const De = /* @__PURE__ */ new WeakMap();
2297
+ function oo(t, n) {
2298
+ q(() => {
2299
+ if (!t || !n) return;
2300
+ const e = De.get(n);
2301
+ if (e)
2302
+ e.count += 1;
2303
+ else {
2304
+ const o = n.body, i = n.defaultView, r = i && Number.parseFloat(
2305
+ i.getComputedStyle(o).paddingRight
2306
+ ) || 0, l = n.documentElement.clientWidth, s = i && l > 0 ? Math.max(
2307
+ 0,
2308
+ i.innerWidth - l
2309
+ ) : 0, h = {
2310
+ count: 1,
2311
+ overflow: o.style.overflow,
2312
+ paddingRight: o.style.paddingRight
2313
+ };
2314
+ De.set(n, h), o.style.overflow = "hidden", s > 0 && (o.style.paddingRight = `${r + s}px`);
2315
+ }
2316
+ return () => {
2317
+ const o = De.get(n);
2318
+ o && (o.count -= 1, !(o.count > 0) && (n.body.style.overflow = o.overflow, n.body.style.paddingRight = o.paddingRight, De.delete(n)));
2319
+ };
2320
+ }, [t, n]);
2321
+ }
2322
+ function ro(t, n, e) {
2323
+ n.current = t, typeof e == "function" ? e(t) : e && (e.current = t);
2324
+ }
2325
+ function io(t) {
2326
+ const {
2327
+ "aria-label": n,
2328
+ "aria-labelledby": e,
2329
+ children: o,
2330
+ className: i,
2331
+ closeButtonLabel: r = "Close modal",
2332
+ exitable: l = !0,
2333
+ forwardedReference: s,
2334
+ initialFocusReference: h,
2335
+ lockScroll: f = !0,
2336
+ onClose: d,
2337
+ open: c,
2338
+ ownerDocument: p,
2339
+ presenceState: m,
2340
+ restoreFocus: g = !0,
2341
+ role: k = "dialog",
2342
+ style: b,
2343
+ title: w,
2344
+ trapFocus: S = !0,
2345
+ ...L
2346
+ } = t, V = H(null), x = xe(Ve), N = `${Ce()}-title`, [P, E] = Y(null), O = Ze(!0, p), Z = Pe(() => [V], []), j = !!(w != null && w.trim()), F = e ?? (n === void 0 && j ? N : void 0), _ = W(
2347
+ (B) => {
2348
+ ro(B, V, s), E(B);
2349
+ },
2350
+ [s]
2351
+ );
2352
+ nn(() => {
2353
+ P && (P.inert = !c);
2354
+ }, [P, c]);
2355
+ const K = W(() => {
2356
+ d == null || d("escape");
2357
+ }, [d]), M = W(() => {
2358
+ d == null || d("outside");
2359
+ }, [d]);
2360
+ je({
2361
+ active: c,
2362
+ boundaries: Z,
2363
+ dismissOnEscape: l,
2364
+ dismissOnPointerDownOutside: l,
2365
+ layerId: O.id,
2366
+ onEscapeDismiss: K,
2367
+ onPointerDownOutsideDismiss: M,
2368
+ ownerDocument: p
2369
+ });
2370
+ const v = Pn({
2371
+ active: c && S,
2372
+ container: P,
2373
+ initialFocusReference: h,
2374
+ layerId: O.id,
2375
+ restoreFocus: g
2376
+ });
2377
+ oo(f, p);
2378
+ const I = l ? /* @__PURE__ */ a(
2379
+ en,
2380
+ {
2381
+ "aria-label": r,
2382
+ className: "nk-modal__close",
2383
+ icon: "cross",
2384
+ onClick: () => d == null ? void 0 : d("close-button"),
2385
+ shape: "rectangle",
2386
+ type: "button",
2387
+ variant: "ghost"
2388
+ }
2389
+ ) : null;
2390
+ return /* @__PURE__ */ a(
2391
+ Ve.Provider,
2392
+ {
2393
+ value: c && S ? v : x,
2394
+ children: /* @__PURE__ */ a(
2395
+ "div",
2396
+ {
2397
+ className: "nk-modal__overlay",
2398
+ "data-state": m,
2399
+ role: "presentation",
2400
+ style: { zIndex: O.zIndex },
2401
+ children: /* @__PURE__ */ T(
2402
+ Ae,
2403
+ {
2404
+ ...L,
2405
+ ref: _,
2406
+ "aria-hidden": c ? void 0 : !0,
2407
+ "aria-label": c ? n : void 0,
2408
+ "aria-labelledby": c ? F : void 0,
2409
+ "aria-modal": c ? "true" : void 0,
2410
+ className: ["nk-modal", i].filter(Boolean).join(" "),
2411
+ "data-state": m,
2412
+ role: c ? k : void 0,
2413
+ style: b,
2414
+ tabIndex: -1,
2415
+ children: [
2416
+ j ? /* @__PURE__ */ T("div", { className: "nk-modal__header", children: [
2417
+ /* @__PURE__ */ a(
2418
+ fe,
2419
+ {
2420
+ as: "h2",
2421
+ className: "nk-modal__title",
2422
+ id: N,
2423
+ size: "subtitle",
2424
+ weight: "semibold",
2425
+ children: w
2426
+ }
2427
+ ),
2428
+ I
2429
+ ] }) : I,
2430
+ o
2431
+ ]
2432
+ }
2433
+ )
2434
+ }
2435
+ )
2436
+ }
2437
+ );
2438
+ }
2439
+ const Yo = y(function(n, e) {
2440
+ const { open: o, portalContainer: i } = n, r = qe(o), l = (i == null ? void 0 : i.ownerDocument) ?? (typeof document > "u" ? null : document);
2441
+ return r.present ? /* @__PURE__ */ a(ze, { container: i, children: /* @__PURE__ */ a(
2442
+ io,
2443
+ {
2444
+ ...n,
2445
+ forwardedReference: e,
2446
+ ownerDocument: l,
2447
+ presenceState: r.state === "closing" ? "closing" : "open"
2448
+ }
2449
+ ) }) : null;
2450
+ }), ao = Number.parseInt(Tn, 10);
2451
+ function Mn(t) {
2452
+ return ao >= 19 ? t.props.ref : t.ref;
2453
+ }
2454
+ function Be(t, n) {
2455
+ typeof t == "function" ? t(n) : t && (t.current = n);
2456
+ }
2457
+ const so = 12, lo = {
2458
+ bottom: "top",
2459
+ left: "right",
2460
+ right: "left",
2461
+ top: "bottom"
2462
+ };
2463
+ function hn(t, n) {
2464
+ const e = Math.min(so, n / 2);
2465
+ return Math.min(Math.max(e, t), n - e);
2466
+ }
2467
+ function co(t) {
2468
+ return lo[t];
2469
+ }
2470
+ function uo(t, n) {
2471
+ return n === "left" || n === "right" ? t.width : t.height;
2472
+ }
2473
+ function fo(t, n, e, o, i, r) {
2474
+ const l = {
2475
+ bottom: r - e.bottom - n * 2,
2476
+ left: e.left - n * 2,
2477
+ right: i - e.right - n * 2,
2478
+ top: e.top - n * 2
2479
+ }, s = co(t), h = uo(o, t), f = l[t] < h && l[s] > l[t] ? s : t;
2480
+ let d = e.left + (e.width - o.width) / 2, c = e.top + (e.height - o.height) / 2;
2481
+ return f === "top" ? c = e.top - o.height - n : f === "bottom" ? c = e.bottom + n : f === "left" ? d = e.left - o.width - n : d = e.right + n, d = Math.min(
2482
+ Math.max(n, d),
2483
+ Math.max(n, i - n - o.width)
2484
+ ), c = Math.min(
2485
+ Math.max(n, c),
2486
+ Math.max(n, r - n - o.height)
2487
+ ), { arrowOffset: f === "top" || f === "bottom" ? hn(
2488
+ e.left + e.width / 2 - d,
2489
+ o.width
2490
+ ) : hn(
2491
+ e.top + e.height / 2 - c,
2492
+ o.height
2493
+ ), left: d, placement: f, top: c };
2494
+ }
2495
+ const ho = 8;
2496
+ function Ln(t, n, e, o) {
2497
+ const [i, r] = Y(null);
2498
+ return q(() => {
2499
+ if (!t || !e || !o) {
2500
+ r(null);
2501
+ return;
2502
+ }
2503
+ const l = e.ownerDocument.defaultView;
2504
+ if (!l) return;
2505
+ const s = l, h = s.getComputedStyle(e), f = Number.parseFloat(
2506
+ h.getPropertyValue("--nk-space-8")
2507
+ ), d = Number.isFinite(f) ? f : ho;
2508
+ function c() {
2509
+ const g = e == null ? void 0 : e.getBoundingClientRect(), k = o == null ? void 0 : o.getBoundingClientRect();
2510
+ !g || !k || r(fo(
2511
+ n,
2512
+ d,
2513
+ g,
2514
+ k,
2515
+ s.innerWidth,
2516
+ s.innerHeight
2517
+ ));
2518
+ }
2519
+ c(), s.addEventListener("resize", c), s.addEventListener("scroll", c, !0);
2520
+ const p = s.ResizeObserver, m = p ? new p(c) : null;
2521
+ return m == null || m.observe(e), m == null || m.observe(o), () => {
2522
+ s.removeEventListener("resize", c), s.removeEventListener("scroll", c, !0), m == null || m.disconnect();
2523
+ };
2524
+ }, [t, o, n, e]), i;
2525
+ }
2526
+ function po(t, n, e) {
2527
+ n.current = t, Be(e, t);
2528
+ }
2529
+ function vo(t, n, e) {
2530
+ n.current = t, Be(e, t);
2531
+ }
2532
+ function mo(t, n) {
2533
+ const e = (t == null ? void 0 : t.split(/\s+/).filter(Boolean)) ?? [];
2534
+ return e.includes(n) || e.push(n), e.join(" ");
2535
+ }
2536
+ function go(t) {
2537
+ const n = t.tagName.toLowerCase();
2538
+ return t.getAttribute("role") === "button" && n !== "button" ? !1 : ["button", "input", "select", "summary", "textarea"].includes(n) ? !0 : n === "a" && t.hasAttribute("href");
2539
+ }
2540
+ function wo(t) {
2541
+ return t === "grid" || t === "listbox" || t === "menu" || t === "tree" ? t : "dialog";
2542
+ }
2543
+ const Qo = y(function(n, e) {
2544
+ const {
2545
+ "aria-label": o,
2546
+ "aria-labelledby": i,
2547
+ autoFocus: r = !0,
2548
+ children: l,
2549
+ className: s,
2550
+ closeOnEscape: h = !0,
2551
+ closeOnOutsideInteraction: f = !0,
2552
+ defaultOpen: d = !1,
2553
+ disabled: c = !1,
2554
+ initialFocusReference: p,
2555
+ onEscapeKeyDown: m,
2556
+ onOpenChange: g,
2557
+ onPointerDownOutside: k,
2558
+ open: b,
2559
+ placement: w = "bottom",
2560
+ portalContainer: S,
2561
+ restoreFocus: L = !0,
2562
+ role: V = "dialog",
2563
+ style: x,
2564
+ tabIndex: N,
2565
+ trapFocus: P = !1,
2566
+ trigger: E,
2567
+ ...O
2568
+ } = n;
2569
+ if (E.type === Fe)
2570
+ throw new Error("Popover requires a single non-Fragment trigger");
2571
+ const Z = Ce(), j = xe(Ve), F = `${Z}-popover`, _ = E.props, K = Mn(E), M = _.id ?? `${Z}-trigger`, v = c || _.disabled === !0 || _["aria-disabled"] === !0 || _["aria-disabled"] === "true", I = b !== void 0, [B, D] = Y(d), R = I ? b : B, z = qe(R), te = H(null), ee = H(null), Q = H("programmatic"), G = H(null), ce = H(R), pe = H(null), [we, Me] = gn(
2572
+ (A) => A + 1,
2573
+ 0
2574
+ ), [$, ne] = Y(null), [se, oe] = Y(null), U = (S == null ? void 0 : S.ownerDocument) ?? ($ == null ? void 0 : $.ownerDocument) ?? (typeof document > "u" ? null : document), ve = Ze(z.present, U), re = Pe(
2575
+ () => [te, ee],
2576
+ []
2577
+ ), le = Ln(
2578
+ z.present,
2579
+ w,
2580
+ $,
2581
+ se
2582
+ ), be = R ? {} : { inert: "" }, Le = W(
2583
+ (A) => {
2584
+ vo(
2585
+ A,
2586
+ te,
2587
+ K
2588
+ ), ne(A);
2589
+ },
2590
+ [K]
2591
+ ), Ne = W(
2592
+ (A) => {
2593
+ po(
2594
+ A,
2595
+ ee,
2596
+ e
2597
+ ), oe(A);
2598
+ },
2599
+ [e]
2600
+ ), de = W((A, J) => {
2601
+ R !== A && (I ? (G.current = {
2602
+ open: A,
2603
+ reason: J
2604
+ }, Me()) : (Q.current = J, D(A)), g == null || g(A, J));
2605
+ }, [I, g, R]), _e = W(() => {
2606
+ de(!1, "escape");
2607
+ }, [de]), ye = W(() => {
2608
+ de(!1, "outside");
2609
+ }, [de]), u = W((A) => {
2610
+ var Re;
2611
+ if (k == null || k(A), A.defaultPrevented) return;
2612
+ const J = (Re = U == null ? void 0 : U.defaultView) == null ? void 0 : Re.HTMLElement;
2613
+ pe.current = J ? A.composedPath().find(
2614
+ (ke) => ke instanceof J && ke.tabIndex >= 0
2615
+ ) ?? A.target : A.target;
2616
+ }, [k, U]);
2617
+ je({
2618
+ active: R,
2619
+ boundaries: re,
2620
+ dismissOnEscape: h,
2621
+ dismissOnPointerDownOutside: f,
2622
+ layerId: ve.id,
2623
+ onEscapeDismiss: _e,
2624
+ onEscapeKeyDown: m,
2625
+ onPointerDownOutside: u,
2626
+ onPointerDownOutsideDismiss: ye,
2627
+ ownerDocument: U
2628
+ });
2629
+ const C = Pn({
2630
+ active: R && P,
2631
+ autoFocus: r,
2632
+ container: se,
2633
+ initialFocusReference: p,
2634
+ layerId: ve.id,
2635
+ restoreFocus: L
2636
+ });
2637
+ q(() => {
2638
+ if (!R || P || !r || !se) return;
2639
+ let A = !0;
2640
+ return Promise.resolve().then(() => {
2641
+ if (!A) return;
2642
+ const J = p == null ? void 0 : p.current;
2643
+ (J && se.contains(J) ? J : se).focus({ preventScroll: !0 });
2644
+ }), () => {
2645
+ A = !1;
2646
+ };
2647
+ }, [r, p, R, se, P]), q(() => {
2648
+ var tn;
2649
+ const A = ce.current;
2650
+ ce.current = R;
2651
+ const J = G.current, Re = I ? A !== R && (J == null ? void 0 : J.open) === R ? J.reason : "programmatic" : Q.current;
2652
+ if (G.current = null, R) {
2653
+ Q.current = "programmatic", pe.current = null;
2654
+ return;
2655
+ }
2656
+ const ke = U == null ? void 0 : U.activeElement, Ge = pe.current, $e = (tn = U == null ? void 0 : U.defaultView) == null ? void 0 : tn.HTMLElement, Sn = Re === "outside" && $e && Ge instanceof $e && ke instanceof $e && (Ge === ke || Ge.contains(ke));
2657
+ A && !P && L && !Sn && ($ == null || $.focus({ preventScroll: !0 })), pe.current = null;
2658
+ }, [
2659
+ we,
2660
+ I,
2661
+ R,
2662
+ U,
2663
+ L,
2664
+ P,
2665
+ $
2666
+ ]), q(() => {
2667
+ c && R && de(!1, "programmatic");
2668
+ }, [c, R, de]);
2669
+ function X(A) {
2670
+ var J;
2671
+ (J = _.onClick) == null || J.call(_, A), !(A.defaultPrevented || v) && de(!R, "trigger");
2672
+ }
2673
+ function ie(A) {
2674
+ var J;
2675
+ (J = _.onKeyDown) == null || J.call(_, A), !(A.defaultPrevented || v || go(A.currentTarget) || A.key !== "Enter" && A.key !== " ") && (A.preventDefault(), A.currentTarget.click());
2676
+ }
2677
+ if (c) return E;
2678
+ const ae = typeof E.type == "string" ? E.type : null, ue = ae === "button" || ae === "input" || ae === "select" || ae === "summary" || ae === "textarea" || ae === "a" && !!_.href, Ee = Oe(
2679
+ E,
2680
+ {
2681
+ "aria-controls": R ? mo(_["aria-controls"], F) : _["aria-controls"],
2682
+ "aria-expanded": R,
2683
+ "aria-haspopup": _["aria-haspopup"] ?? wo(V),
2684
+ "aria-disabled": v ? !0 : _["aria-disabled"],
2685
+ className: [_.className, "nk-popover__trigger"].filter(Boolean).join(" "),
2686
+ id: M,
2687
+ onClick: X,
2688
+ onKeyDown: ie,
2689
+ ref: Le,
2690
+ role: _.role ?? (ue ? void 0 : "button"),
2691
+ tabIndex: v ? -1 : _.tabIndex ?? (ue ? void 0 : 0)
2692
+ }
2693
+ );
2694
+ return /* @__PURE__ */ T(He, { children: [
2695
+ Ee,
2696
+ /* @__PURE__ */ a(
2697
+ Ve.Provider,
2698
+ {
2699
+ value: R && P ? C : j,
2700
+ children: z.present && U ? /* @__PURE__ */ a(ze, { container: S, inheritFrom: $, children: /* @__PURE__ */ T(
2701
+ Ae,
2702
+ {
2703
+ ...O,
2704
+ ...be,
2705
+ ref: Ne,
2706
+ "aria-hidden": R ? void 0 : !0,
2707
+ "aria-label": R ? o : void 0,
2708
+ "aria-labelledby": R ? i ?? (o === void 0 ? M : void 0) : void 0,
2709
+ className: ["nk-popover", s].filter(Boolean).join(" "),
2710
+ "data-placement": (le == null ? void 0 : le.placement) ?? w,
2711
+ "data-state": z.state === "closing" ? "closing" : "open",
2712
+ id: F,
2713
+ role: R ? V : void 0,
2714
+ style: le ? {
2715
+ ...x,
2716
+ "--nk-popover-arrow-offset": `${le.arrowOffset}px`,
2717
+ left: le.left,
2718
+ top: le.top,
2719
+ zIndex: ve.zIndex
2720
+ } : {
2721
+ ...x,
2722
+ visibility: "hidden",
2723
+ zIndex: ve.zIndex
2724
+ },
2725
+ tabIndex: N ?? -1,
2726
+ children: [
2727
+ /* @__PURE__ */ a("span", { "aria-hidden": "true", className: "nk-popover__arrow" }),
2728
+ /* @__PURE__ */ a("div", { className: "nk-popover__content", children: l })
2729
+ ]
2730
+ }
2731
+ ) }) : null
2732
+ }
2733
+ )
2734
+ ] });
2735
+ }), bo = 3, yo = 10, Nn = 4;
2736
+ function ko(t) {
2737
+ return Number.isFinite(t) ? Math.min(
2738
+ yo,
2739
+ Math.max(bo, Math.trunc(t))
2740
+ ) : Nn;
2741
+ }
2742
+ function Ie(t, n, e) {
2743
+ return (n === "numeric" ? t.replace(/[^0-9]/g, "") : t.replace(/[^0-9a-z]/gi, "").toUpperCase()).slice(0, e);
2744
+ }
2745
+ function Io(t, n, e) {
2746
+ n.current = t, typeof e == "function" ? e(t) : e && (e.current = t);
2747
+ }
2748
+ function xo(t, n) {
2749
+ var o;
2750
+ const e = (o = Object.getOwnPropertyDescriptor(
2751
+ Object.getPrototypeOf(t),
2752
+ "value"
2753
+ )) == null ? void 0 : o.set;
2754
+ e ? e.call(t, n) : t.value = n;
2755
+ }
2756
+ function Qe(t, n, e) {
2757
+ const o = Math.min(e - 1, Math.max(0, n)), i = Math.min(o + 1, t.value.length);
2758
+ t.focus(), t.setSelectionRange(o, i);
2759
+ }
2760
+ function Co(t) {
2761
+ const {
2762
+ defaultValue: n,
2763
+ disabled: e,
2764
+ forwardedReference: o,
2765
+ length: i,
2766
+ mode: r,
2767
+ onChange: l,
2768
+ onComplete: s,
2769
+ onFocus: h,
2770
+ onKeyDown: f,
2771
+ onPaste: d,
2772
+ onSelect: c,
2773
+ readOnly: p,
2774
+ value: m
2775
+ } = t, g = ko(i), k = Ie(
2776
+ n,
2777
+ r,
2778
+ g
2779
+ ), b = H(null), [w, S] = Y(
2780
+ k
2781
+ ), [L, V] = Y(0), x = m !== void 0, N = Ie(
2782
+ x ? m : w,
2783
+ r,
2784
+ g
2785
+ ), P = W(
2786
+ (M) => Io(
2787
+ M,
2788
+ b,
2789
+ o
2790
+ ),
2791
+ [o]
2792
+ );
2793
+ q(() => {
2794
+ !x && w !== N && S(N);
2795
+ }, [x, N, w]), q(() => {
2796
+ var B;
2797
+ if (x) return;
2798
+ const M = (B = b.current) == null ? void 0 : B.form;
2799
+ if (!M) return;
2800
+ const v = M.getRootNode();
2801
+ function I(D) {
2802
+ D.target !== M || D.defaultPrevented || (S(k), V(0));
2803
+ }
2804
+ return v.addEventListener("reset", I), () => v.removeEventListener("reset", I);
2805
+ }, [x, k]);
2806
+ function E(M) {
2807
+ const v = M.selectionStart ?? N.length;
2808
+ return Math.min(g - 1, Math.max(0, v));
2809
+ }
2810
+ function O(M) {
2811
+ const v = M.currentTarget, I = v.selectionStart ?? v.value.length, B = Ie(v.value, r, g), D = Ie(
2812
+ v.value.slice(0, I),
2813
+ r,
2814
+ g
2815
+ ).length;
2816
+ v.value = B, x || S(B), l == null || l(M), B.length === g && B !== N && (s == null || s(B));
2817
+ const R = Math.min(g - 1, D);
2818
+ V(R), v.setSelectionRange(
2819
+ R,
2820
+ Math.min(R + 1, B.length)
2821
+ );
2822
+ }
2823
+ function Z(M) {
2824
+ if (d == null || d(M), M.defaultPrevented || e || p) return;
2825
+ const v = Ie(
2826
+ M.clipboardData.getData("text"),
2827
+ r,
2828
+ g
2829
+ );
2830
+ if (M.preventDefault(), v.length === 0) return;
2831
+ const I = M.currentTarget, B = I.selectionStart ?? N.length, D = I.selectionEnd ?? B, R = v.length === g ? v : Ie(
2832
+ N.slice(0, B) + v + N.slice(D),
2833
+ r,
2834
+ g
2835
+ ), z = v.length === g ? g : Math.min(g, B + v.length);
2836
+ xo(I, R), I.setSelectionRange(z, z), I.dispatchEvent(new Event("input", { bubbles: !0 }));
2837
+ }
2838
+ function j(M) {
2839
+ if (f == null || f(M), M.defaultPrevented || M.key !== "ArrowLeft" && M.key !== "ArrowRight") return;
2840
+ M.preventDefault();
2841
+ const v = M.key === "ArrowLeft" ? -1 : 1, I = Math.min(
2842
+ g - 1,
2843
+ Math.max(0, E(M.currentTarget) + v)
2844
+ );
2845
+ V(I), Qe(M.currentTarget, I, g);
2846
+ }
2847
+ function F(M) {
2848
+ h == null || h(M);
2849
+ const v = Math.min(g - 1, N.length);
2850
+ V(v), Qe(M.currentTarget, v, g);
2851
+ }
2852
+ function _(M) {
2853
+ c == null || c(M), V(E(M.currentTarget));
2854
+ }
2855
+ function K(M, v) {
2856
+ if (M.preventDefault(), e) return;
2857
+ const I = b.current;
2858
+ I && (V(v), Qe(I, v, g));
2859
+ }
2860
+ return {
2861
+ activeIndex: L,
2862
+ handleChange: O,
2863
+ handleFocus: F,
2864
+ handleKeyDown: j,
2865
+ handlePaste: Z,
2866
+ handleSelect: _,
2867
+ handleSlotPointerDown: K,
2868
+ inputCallbackReference: P,
2869
+ length: g,
2870
+ renderedValue: N
2871
+ };
2872
+ }
2873
+ const Xo = y(function(n, e) {
2874
+ const {
2875
+ "aria-invalid": o,
2876
+ autoCapitalize: i,
2877
+ autoComplete: r = "one-time-code",
2878
+ className: l,
2879
+ censored: s = !1,
2880
+ defaultValue: h = "",
2881
+ disabled: f = !1,
2882
+ invalid: d = !1,
2883
+ length: c = Nn,
2884
+ mode: p = "numeric",
2885
+ onChange: m,
2886
+ onComplete: g,
2887
+ onFocus: k,
2888
+ onKeyDown: b,
2889
+ onPaste: w,
2890
+ onSelect: S,
2891
+ readOnly: L = !1,
2892
+ style: V,
2893
+ value: x,
2894
+ wrap: N = !1,
2895
+ ...P
2896
+ } = n, {
2897
+ activeIndex: E,
2898
+ handleChange: O,
2899
+ handleFocus: Z,
2900
+ handleKeyDown: j,
2901
+ handlePaste: F,
2902
+ handleSelect: _,
2903
+ handleSlotPointerDown: K,
2904
+ inputCallbackReference: M,
2905
+ length: v,
2906
+ renderedValue: I
2907
+ } = Co({
2908
+ defaultValue: h,
2909
+ disabled: f,
2910
+ forwardedReference: e,
2911
+ length: c,
2912
+ mode: p,
2913
+ onChange: m,
2914
+ onComplete: g,
2915
+ onFocus: k,
2916
+ onKeyDown: b,
2917
+ onPaste: w,
2918
+ onSelect: S,
2919
+ readOnly: L,
2920
+ value: x
2921
+ }), B = d || he(o), D = !N && v >= 6 && v % 2 === 0, R = v / 2, z = {
2922
+ ...V,
2923
+ "--nk-pin-input-columns": Math.ceil(v / 2)
2924
+ };
2925
+ return /* @__PURE__ */ T(
2926
+ "span",
2927
+ {
2928
+ className: ["nk-pin-input", l].filter(Boolean).join(" "),
2929
+ "data-disabled": f || void 0,
2930
+ "data-invalid": B || void 0,
2931
+ "data-read-only": L || void 0,
2932
+ "data-wrap": N || void 0,
2933
+ style: z,
2934
+ children: [
2935
+ /* @__PURE__ */ a(
2936
+ "input",
2937
+ {
2938
+ ...P,
2939
+ ref: M,
2940
+ "aria-invalid": ge(d, o),
2941
+ autoCapitalize: i ?? (p === "alphanumeric" ? "characters" : "off"),
2942
+ autoComplete: r,
2943
+ className: "nk-pin-input__control",
2944
+ disabled: f,
2945
+ inputMode: p === "numeric" ? "numeric" : "text",
2946
+ maxLength: v,
2947
+ minLength: v,
2948
+ onChange: O,
2949
+ onFocus: Z,
2950
+ onKeyDown: j,
2951
+ onPaste: F,
2952
+ onSelect: _,
2953
+ pattern: p === "numeric" ? `[0-9]{${v}}` : `[0-9A-Za-z]{${v}}`,
2954
+ readOnly: L,
2955
+ spellCheck: !1,
2956
+ type: "text",
2957
+ value: I
2958
+ }
2959
+ ),
2960
+ /* @__PURE__ */ a("span", { "aria-hidden": "true", className: "nk-pin-input__slots", children: Array.from({ length: v }, (te, ee) => /* @__PURE__ */ T("span", { className: "nk-pin-input__slot-group", children: [
2961
+ D && ee === R ? /* @__PURE__ */ a("span", { className: "nk-pin-input__separator", children: "-" }) : null,
2962
+ /* @__PURE__ */ a(
2963
+ "span",
2964
+ {
2965
+ className: "nk-pin-input__slot",
2966
+ "data-active": E === ee || void 0,
2967
+ onPointerDown: (Q) => K(Q, ee),
2968
+ children: s && I[ee] ? /* @__PURE__ */ a("span", { className: "nk-pin-input__censor" }) : I[ee] ?? ""
2969
+ }
2970
+ )
2971
+ ] }, ee)) })
2972
+ ]
2973
+ }
2974
+ );
2975
+ }), _n = We(void 0);
2976
+ function Po() {
2977
+ const t = xe(_n);
2978
+ if (!t)
2979
+ throw new Error("Radio must be rendered within RadioGroup");
2980
+ return t;
2981
+ }
2982
+ function Mo(t, n, e) {
2983
+ n.current = t, typeof e == "function" ? e(t) : e && (e.current = t);
2984
+ }
2985
+ const Jo = y(function(n, e) {
2986
+ const {
2987
+ children: o,
2988
+ className: i,
2989
+ disabled: r = !1,
2990
+ style: l,
2991
+ value: s,
2992
+ ...h
2993
+ } = n, f = Po(), d = H(null), c = f.disabled || r, p = f.value !== void 0, m = f.value === s, g = W(
2994
+ (k) => Mo(
2995
+ k,
2996
+ d,
2997
+ e
2998
+ ),
2999
+ [e]
3000
+ );
3001
+ return q(() => {
3002
+ var k;
3003
+ !p && c && ((k = d.current) != null && k.checked) && (d.current.checked = !1);
3004
+ }, [p, c]), /* @__PURE__ */ T(
3005
+ "label",
3006
+ {
3007
+ className: ["nk-radio", i].filter(Boolean).join(" "),
3008
+ "data-disabled": c || void 0,
3009
+ style: l,
3010
+ children: [
3011
+ /* @__PURE__ */ a(
3012
+ "input",
3013
+ {
3014
+ ...h,
3015
+ ref: g,
3016
+ checked: p ? !c && m : void 0,
3017
+ className: "nk-radio__control",
3018
+ defaultChecked: p ? void 0 : !c && f.defaultValue === s,
3019
+ disabled: c,
3020
+ name: f.name,
3021
+ onChange: f.onChange,
3022
+ required: f.required,
3023
+ type: "radio",
3024
+ value: s
3025
+ }
3026
+ ),
3027
+ /* @__PURE__ */ a("span", { "aria-hidden": "true", className: "nk-radio__visual" }),
3028
+ /* @__PURE__ */ a(fe, { as: "span", className: "nk-radio__label", children: o })
3029
+ ]
3030
+ }
3031
+ );
3032
+ }), Lo = y(
3033
+ function(n, e) {
3034
+ const {
3035
+ "aria-invalid": o,
3036
+ children: i,
3037
+ className: r,
3038
+ defaultValue: l,
3039
+ disabled: s = !1,
3040
+ invalid: h = !1,
3041
+ name: f,
3042
+ onChange: d,
3043
+ orientation: c = "vertical",
3044
+ required: p = !1,
3045
+ value: m,
3046
+ ...g
3047
+ } = n, k = h || he(o), b = {
3048
+ defaultValue: l,
3049
+ disabled: s,
3050
+ name: f,
3051
+ onChange: d,
3052
+ required: p,
3053
+ value: m
3054
+ };
3055
+ return /* @__PURE__ */ a(_n.Provider, { value: b, children: /* @__PURE__ */ a(
3056
+ "div",
3057
+ {
3058
+ ...g,
3059
+ ref: e,
3060
+ "aria-disabled": s || void 0,
3061
+ "aria-invalid": ge(h, o),
3062
+ "aria-required": p || void 0,
3063
+ className: ["nk-radio-group", r].filter(Boolean).join(" "),
3064
+ "data-disabled": s || void 0,
3065
+ "data-invalid": k || void 0,
3066
+ "data-orientation": c,
3067
+ role: "radiogroup",
3068
+ children: i
3069
+ }
3070
+ ) });
3071
+ }
3072
+ );
3073
+ In(Lo, "group");
3074
+ function Xe(t, n, e) {
3075
+ if (t.length === 0) return -1;
3076
+ for (let o = 1; o <= t.length; o += 1) {
3077
+ const i = (n + e * o + t.length) % t.length;
3078
+ if (!t[i].disabled) return i;
3079
+ }
3080
+ return -1;
3081
+ }
3082
+ function No(t, n, e) {
3083
+ for (let o = 1; o <= t.length; o += 1) {
3084
+ const i = (e + o + t.length) % t.length, r = t[i];
3085
+ if (!r.disabled && r.label.toLocaleLowerCase().startsWith(n))
3086
+ return i;
3087
+ }
3088
+ return -1;
3089
+ }
3090
+ function _o(t) {
3091
+ const n = /* @__PURE__ */ new Set();
3092
+ t.forEach((e) => {
3093
+ if (n.has(e.value))
3094
+ throw new Error("Select option values must be unique");
3095
+ n.add(e.value);
3096
+ });
3097
+ }
3098
+ function Eo(t, n, e) {
3099
+ n.current = t, typeof e == "function" ? e(t) : e && (e.current = t);
3100
+ }
3101
+ function Ro(t) {
3102
+ const {
3103
+ "aria-invalid": n,
3104
+ children: e,
3105
+ className: o,
3106
+ defaultValue: i,
3107
+ disabled: r = !1,
3108
+ forwardedReference: l,
3109
+ invalid: s = !1,
3110
+ placeholder: h,
3111
+ style: f,
3112
+ value: d,
3113
+ ...c
3114
+ } = t, p = ge(s, n), m = s || he(n);
3115
+ return /* @__PURE__ */ T(
3116
+ "span",
3117
+ {
3118
+ className: ["nk-select", o].filter(Boolean).join(" "),
3119
+ "data-disabled": r || void 0,
3120
+ "data-invalid": m || void 0,
3121
+ "data-mode": "native",
3122
+ style: f,
3123
+ children: [
3124
+ /* @__PURE__ */ T(
3125
+ "select",
3126
+ {
3127
+ ...c,
3128
+ ref: l,
3129
+ "aria-invalid": p,
3130
+ className: "nk-select__control",
3131
+ defaultValue: d === void 0 ? i ?? (h !== void 0 ? "" : void 0) : void 0,
3132
+ disabled: r,
3133
+ value: d,
3134
+ children: [
3135
+ h !== void 0 ? /* @__PURE__ */ a("option", { disabled: !0, value: "", children: h }) : null,
3136
+ e
3137
+ ]
3138
+ }
3139
+ ),
3140
+ /* @__PURE__ */ a(me, { className: "nk-select__icon", type: "chevron-down" })
3141
+ ]
3142
+ }
3143
+ );
3144
+ }
3145
+ function So(t, n, e) {
3146
+ const [o, i] = Y(null);
3147
+ return q(() => {
3148
+ if (!t || !n) {
3149
+ i(null);
3150
+ return;
3151
+ }
3152
+ const r = n.ownerDocument.defaultView;
3153
+ if (!r) return;
3154
+ const l = r;
3155
+ function s() {
3156
+ const d = n == null ? void 0 : n.getBoundingClientRect();
3157
+ if (!d) return;
3158
+ const c = 8, p = 4, m = l.innerHeight - d.bottom - p - c, g = d.top - p - c, k = m < 160 && g > m, b = Math.max(
3159
+ 72,
3160
+ k ? g : m
3161
+ ), w = e == null ? void 0 : e.getBoundingClientRect(), S = Math.max(
3162
+ d.width,
3163
+ (w == null ? void 0 : w.width) ?? d.width
3164
+ ), L = Math.min(
3165
+ Math.max(c, d.left),
3166
+ Math.max(
3167
+ c,
3168
+ l.innerWidth - c - S
3169
+ )
3170
+ ), V = k ? Math.max(
3171
+ c,
3172
+ d.top - p - Math.min(
3173
+ (w == null ? void 0 : w.height) ?? b,
3174
+ b
3175
+ )
3176
+ ) : d.bottom + p;
3177
+ i({
3178
+ left: L,
3179
+ maxHeight: b,
3180
+ minWidth: d.width,
3181
+ top: V
3182
+ });
3183
+ }
3184
+ s(), l.addEventListener("resize", s), l.addEventListener("scroll", s, !0);
3185
+ const h = l.ResizeObserver, f = h ? new h(s) : null;
3186
+ return f == null || f.observe(n), e && (f == null || f.observe(e)), () => {
3187
+ l.removeEventListener("resize", s), l.removeEventListener("scroll", s, !0), f == null || f.disconnect();
3188
+ };
3189
+ }, [t, e, n]), o;
3190
+ }
3191
+ function Vo(t) {
3192
+ const {
3193
+ active: n,
3194
+ closeOnEscape: e,
3195
+ closeOnOutsideInteraction: o,
3196
+ highlightedIndex: i,
3197
+ id: r,
3198
+ listboxReference: l,
3199
+ onEscapeDismiss: s,
3200
+ onEscapeKeyDown: h,
3201
+ onHighlight: f,
3202
+ onOutsideDismiss: d,
3203
+ onPointerDownOutside: c,
3204
+ onSelect: p,
3205
+ options: m,
3206
+ ownerDocument: g,
3207
+ position: k,
3208
+ selectedValue: b,
3209
+ state: w,
3210
+ triggerReference: S
3211
+ } = t, L = H(null), V = Ze(!0, g), x = Pe(
3212
+ () => [S, L],
3213
+ [S]
3214
+ ), N = W(
3215
+ (P) => {
3216
+ L.current = P, l(P);
3217
+ },
3218
+ [l]
3219
+ );
3220
+ return je({
3221
+ active: n,
3222
+ boundaries: x,
3223
+ dismissOnEscape: e,
3224
+ dismissOnPointerDownOutside: o,
3225
+ layerId: V.id,
3226
+ onEscapeDismiss: s,
3227
+ onEscapeKeyDown: h,
3228
+ onPointerDownOutside: c,
3229
+ onPointerDownOutsideDismiss: d,
3230
+ ownerDocument: g
3231
+ }), /* @__PURE__ */ a(
3232
+ "div",
3233
+ {
3234
+ "aria-hidden": n ? void 0 : !0,
3235
+ "aria-labelledby": r,
3236
+ className: "nk-select__listbox",
3237
+ "data-state": w,
3238
+ id: `${r}-listbox`,
3239
+ ref: N,
3240
+ role: "listbox",
3241
+ style: k ? {
3242
+ left: k.left,
3243
+ maxHeight: k.maxHeight,
3244
+ minWidth: k.minWidth,
3245
+ top: k.top,
3246
+ zIndex: V.zIndex
3247
+ } : { visibility: "hidden", zIndex: V.zIndex },
3248
+ children: m.map((P, E) => /* @__PURE__ */ T(
3249
+ "div",
3250
+ {
3251
+ "aria-disabled": P.disabled || void 0,
3252
+ "aria-selected": P.value === b,
3253
+ className: "nk-select__option",
3254
+ "data-highlighted": E === i || void 0,
3255
+ "data-selected": P.value === b || void 0,
3256
+ id: `${r}-option-${E}`,
3257
+ onPointerDown: (O) => {
3258
+ O.preventDefault(), P.disabled || p(P);
3259
+ },
3260
+ onPointerMove: () => {
3261
+ P.disabled || f(E);
3262
+ },
3263
+ role: "option",
3264
+ children: [
3265
+ P.icon ? /* @__PURE__ */ a(me, { type: P.icon }) : null,
3266
+ /* @__PURE__ */ a("span", { className: "nk-select__option-label", children: P.label }),
3267
+ P.value === b ? /* @__PURE__ */ a(me, { className: "nk-select__check", type: "checkmark" }) : null
3268
+ ]
3269
+ },
3270
+ P.value
3271
+ ))
3272
+ }
3273
+ );
3274
+ }
3275
+ function To(t) {
3276
+ var ye;
3277
+ const {
3278
+ "aria-invalid": n,
3279
+ className: e,
3280
+ closeOnEscape: o = !0,
3281
+ closeOnOutsideInteraction: i = !0,
3282
+ defaultValue: r = "",
3283
+ disabled: l = !1,
3284
+ displayOverride: s,
3285
+ form: h,
3286
+ forwardedReference: f,
3287
+ id: d,
3288
+ invalid: c = !1,
3289
+ name: p,
3290
+ onChange: m,
3291
+ onClick: g,
3292
+ onEscapeKeyDown: k,
3293
+ onKeyDown: b,
3294
+ onOpenChange: w,
3295
+ onPointerDownOutside: S,
3296
+ options: L,
3297
+ placeholder: V,
3298
+ portalContainer: x,
3299
+ required: N = !1,
3300
+ style: P,
3301
+ value: E,
3302
+ width: O,
3303
+ ...Z
3304
+ } = t;
3305
+ _o(L);
3306
+ const j = Ce(), F = d ?? j, _ = H(null), K = H(null), M = H(null), v = H(""), [I, B] = Y(null), [D, R] = Y(!1), [z, te] = Y(-1), [ee, Q] = Y(r), G = E !== void 0, ce = G ? E : ee, pe = L.find(
3307
+ (u) => u.value === ce
3308
+ ), we = c || he(n), Me = ge(c, n), $ = qe(D), ne = (x == null ? void 0 : x.ownerDocument) ?? ((ye = _.current) == null ? void 0 : ye.ownerDocument) ?? (typeof document > "u" ? null : document), se = So(
3309
+ $.present,
3310
+ _.current,
3311
+ I
3312
+ ), oe = O === void 0 ? P : { ...P, width: O }, U = s ?? pe, ve = W(
3313
+ (u) => {
3314
+ Eo(
3315
+ u,
3316
+ _,
3317
+ f
3318
+ );
3319
+ },
3320
+ [f]
3321
+ ), re = W((u) => {
3322
+ D !== u && (R(u), w == null || w(u));
3323
+ }, [w, D]), le = W((u = 1) => {
3324
+ const C = L.findIndex(
3325
+ (ie) => ie.value === ce && !ie.disabled
3326
+ ), X = u === 1 ? -1 : L.length;
3327
+ te(
3328
+ C >= 0 ? C : Xe(L, X, u)
3329
+ ), re(!0);
3330
+ }, [L, ce, re]), be = W((u) => {
3331
+ var C;
3332
+ u.disabled || (G || Q(u.value), re(!1), (C = _.current) == null || C.focus(), m == null || m(u.value));
3333
+ }, [G, m, re]), Le = W(() => {
3334
+ var u;
3335
+ re(!1), (u = _.current) == null || u.focus();
3336
+ }, [re]), Ne = W(() => {
3337
+ re(!1);
3338
+ }, [re]);
3339
+ function de(u) {
3340
+ g == null || g(u), !(u.defaultPrevented || l) && (D ? re(!1) : le());
3341
+ }
3342
+ function _e(u) {
3343
+ if (b == null || b(u), !(u.defaultPrevented || l)) {
3344
+ if (u.key === "ArrowDown" || u.key === "ArrowUp") {
3345
+ u.preventDefault();
3346
+ const C = u.key === "ArrowDown" ? 1 : -1;
3347
+ D ? te(
3348
+ (X) => Xe(L, X, C)
3349
+ ) : le(C);
3350
+ return;
3351
+ }
3352
+ if (u.key === "Home" || u.key === "End") {
3353
+ if (u.preventDefault(), !D) le(u.key === "Home" ? 1 : -1);
3354
+ else {
3355
+ const C = u.key === "Home" ? 1 : -1, X = C === 1 ? -1 : L.length;
3356
+ te(
3357
+ Xe(L, X, C)
3358
+ );
3359
+ }
3360
+ return;
3361
+ }
3362
+ if (u.key === "Enter" || u.key === " ") {
3363
+ u.preventDefault();
3364
+ const C = L[z];
3365
+ D && C ? be(C) : D || le();
3366
+ return;
3367
+ }
3368
+ if (u.key === "Tab") {
3369
+ re(!1);
3370
+ return;
3371
+ }
3372
+ if (u.key.length === 1 && !u.altKey && !u.ctrlKey && !u.metaKey) {
3373
+ const C = u.currentTarget.ownerDocument.defaultView;
3374
+ if (!C) return;
3375
+ const X = u.key.toLocaleLowerCase(), ie = v.current + X, ae = Array.from(ie).every((Ee) => Ee === X);
3376
+ v.current = ae ? X : ie, M.current !== null && C.clearTimeout(M.current), M.current = C.setTimeout(() => {
3377
+ v.current = "", M.current = null;
3378
+ }, 500);
3379
+ const ue = No(
3380
+ L,
3381
+ v.current,
3382
+ z
3383
+ );
3384
+ ue >= 0 && (u.preventDefault(), D || re(!0), te(ue));
3385
+ }
3386
+ }
3387
+ }
3388
+ return q(() => {
3389
+ var u;
3390
+ if (D && z >= 0) {
3391
+ const C = ne == null ? void 0 : ne.getElementById(
3392
+ `${F}-option-${z}`
3393
+ );
3394
+ C && (I != null && I.contains(C)) && ((u = C.scrollIntoView) == null || u.call(C, { block: "nearest" }));
3395
+ }
3396
+ }, [z, F, I, D]), q(() => {
3397
+ var X;
3398
+ const u = (X = _.current) == null ? void 0 : X.form;
3399
+ if (!u) return;
3400
+ function C() {
3401
+ const ie = K.current, ae = G ? ce : r;
3402
+ if (ie) {
3403
+ const ue = Array.from(ie.options), Ee = ue.find(
3404
+ (A) => A.value === ae
3405
+ ) ?? ue[0];
3406
+ ue.forEach((A) => {
3407
+ A.defaultSelected = A === Ee;
3408
+ });
3409
+ }
3410
+ G || Q(r), re(!1);
3411
+ }
3412
+ return u.addEventListener("reset", C), () => u.removeEventListener("reset", C);
3413
+ }, [r, h, G, ce, re]), q(() => () => {
3414
+ var C;
3415
+ const u = (C = _.current) == null ? void 0 : C.ownerDocument.defaultView;
3416
+ u && M.current !== null && u.clearTimeout(M.current);
3417
+ }, []), /* @__PURE__ */ T(
3418
+ "span",
3419
+ {
3420
+ className: ["nk-select", e].filter(Boolean).join(" "),
3421
+ "data-disabled": l || void 0,
3422
+ "data-invalid": we || void 0,
3423
+ "data-mode": "custom",
3424
+ "data-open": D || void 0,
3425
+ style: oe,
3426
+ children: [
3427
+ /* @__PURE__ */ T(
3428
+ "button",
3429
+ {
3430
+ ...Z,
3431
+ ref: ve,
3432
+ "aria-activedescendant": D && z >= 0 ? `${F}-option-${z}` : void 0,
3433
+ "aria-controls": `${F}-listbox`,
3434
+ "aria-expanded": D,
3435
+ "aria-haspopup": "listbox",
3436
+ "aria-invalid": Me,
3437
+ "aria-required": N || void 0,
3438
+ "aria-autocomplete": "none",
3439
+ className: "nk-select__trigger",
3440
+ disabled: l,
3441
+ form: h,
3442
+ id: F,
3443
+ onClick: de,
3444
+ onKeyDown: _e,
3445
+ role: "combobox",
3446
+ type: "button",
3447
+ children: [
3448
+ U ? /* @__PURE__ */ T("span", { className: "nk-select__value", children: [
3449
+ U.icon ? /* @__PURE__ */ a(me, { type: U.icon }) : null,
3450
+ /* @__PURE__ */ a("span", { className: "nk-select__value-label", children: U.label })
3451
+ ] }) : /* @__PURE__ */ a("span", { className: "nk-select__placeholder", children: V }),
3452
+ /* @__PURE__ */ a(me, { className: "nk-select__icon", type: "chevron-down" })
3453
+ ]
3454
+ }
3455
+ ),
3456
+ p || N ? /* @__PURE__ */ T(
3457
+ "select",
3458
+ {
3459
+ ref: K,
3460
+ "aria-hidden": "true",
3461
+ className: "nk-select__form-control",
3462
+ disabled: l,
3463
+ form: h,
3464
+ name: p,
3465
+ onChange: () => {
3466
+ },
3467
+ onInvalid: (u) => {
3468
+ var C;
3469
+ u.preventDefault(), (C = _.current) == null || C.focus();
3470
+ },
3471
+ required: N,
3472
+ tabIndex: -1,
3473
+ value: ce,
3474
+ children: [
3475
+ /* @__PURE__ */ a("option", { value: "" }),
3476
+ L.map((u) => /* @__PURE__ */ a(
3477
+ "option",
3478
+ {
3479
+ disabled: u.disabled,
3480
+ value: u.value,
3481
+ children: u.label
3482
+ },
3483
+ u.value
3484
+ ))
3485
+ ]
3486
+ }
3487
+ ) : null,
3488
+ $.present && ne ? /* @__PURE__ */ a(
3489
+ ze,
3490
+ {
3491
+ container: x,
3492
+ inheritFrom: _.current,
3493
+ children: /* @__PURE__ */ a(
3494
+ Vo,
3495
+ {
3496
+ active: D,
3497
+ closeOnEscape: o,
3498
+ closeOnOutsideInteraction: i,
3499
+ highlightedIndex: z,
3500
+ id: F,
3501
+ listboxReference: B,
3502
+ onEscapeDismiss: Le,
3503
+ onEscapeKeyDown: k,
3504
+ onHighlight: te,
3505
+ onOutsideDismiss: Ne,
3506
+ onPointerDownOutside: S,
3507
+ onSelect: be,
3508
+ options: L,
3509
+ ownerDocument: ne,
3510
+ position: se,
3511
+ selectedValue: ce,
3512
+ state: $.state === "closing" ? "closing" : "open",
3513
+ triggerReference: _
3514
+ }
3515
+ )
3516
+ }
3517
+ ) : null
3518
+ ]
3519
+ }
3520
+ );
3521
+ }
3522
+ const er = y(function(n, e) {
3523
+ const { options: o } = n;
3524
+ return o !== void 0 ? /* @__PURE__ */ a(
3525
+ To,
3526
+ {
3527
+ ...n,
3528
+ forwardedReference: e
3529
+ }
3530
+ ) : /* @__PURE__ */ a(
3531
+ Ro,
3532
+ {
3533
+ ...n,
3534
+ forwardedReference: e
3535
+ }
3536
+ );
3537
+ }), nr = y(function(n, e) {
3538
+ const {
3539
+ "aria-hidden": o = !0,
3540
+ className: i,
3541
+ height: r = "1em",
3542
+ shape: l = "rectangle",
3543
+ style: s,
3544
+ width: h = l === "circle" ? "1em" : "100%",
3545
+ ...f
3546
+ } = n;
3547
+ return /* @__PURE__ */ a(
3548
+ "div",
3549
+ {
3550
+ ...f,
3551
+ ref: e,
3552
+ "aria-hidden": o,
3553
+ className: ["nk-skeleton", i].filter(Boolean).join(" "),
3554
+ "data-shape": l,
3555
+ style: { ...s, width: h, height: r }
3556
+ }
3557
+ );
3558
+ }), tr = y(function(n, e) {
3559
+ const {
3560
+ "aria-invalid": o,
3561
+ className: i,
3562
+ disabled: r = !1,
3563
+ style: l,
3564
+ ...s
3565
+ } = n;
3566
+ return /* @__PURE__ */ T(
3567
+ "span",
3568
+ {
3569
+ className: ["nk-switch", i].filter(Boolean).join(" "),
3570
+ "data-disabled": r || void 0,
3571
+ "data-invalid": he(o) || void 0,
3572
+ style: l,
3573
+ children: [
3574
+ /* @__PURE__ */ a(
3575
+ "input",
3576
+ {
3577
+ ...s,
3578
+ ref: e,
3579
+ "aria-invalid": o,
3580
+ className: "nk-switch__control",
3581
+ disabled: r,
3582
+ role: "switch",
3583
+ type: "checkbox"
3584
+ }
3585
+ ),
3586
+ /* @__PURE__ */ a("span", { "aria-hidden": "true", className: "nk-switch__track", children: /* @__PURE__ */ a("span", { className: "nk-switch__thumb" }) })
3587
+ ]
3588
+ }
3589
+ );
3590
+ });
3591
+ function pn(t) {
3592
+ return Number.isFinite(t) ? Math.max(1, Math.floor(t)) : 1;
3593
+ }
3594
+ const or = y(
3595
+ function(n, e) {
3596
+ const {
3597
+ "aria-invalid": o,
3598
+ className: i,
3599
+ disabled: r = !1,
3600
+ invalid: l = !1,
3601
+ minRows: s,
3602
+ readOnly: h = !1,
3603
+ resize: f = "vertical",
3604
+ rows: d,
3605
+ style: c,
3606
+ ...p
3607
+ } = n, m = pn(d ?? s ?? 3), k = `calc(${pn(s ?? d ?? 3) * 1.25}em + var(--nk-text-area-padding) * 2 + var(--nk-text-area-border-width) * 2)`, b = {
3608
+ ...c,
3609
+ "--nk-text-area-min-height": k
3610
+ };
3611
+ return /* @__PURE__ */ a(
3612
+ "textarea",
3613
+ {
3614
+ ...p,
3615
+ ref: e,
3616
+ "aria-invalid": ge(l, o),
3617
+ className: ["nk-text-area", i].filter(Boolean).join(" "),
3618
+ "data-invalid": l || he(o) || void 0,
3619
+ "data-resize": f,
3620
+ disabled: r,
3621
+ readOnly: h,
3622
+ rows: m,
3623
+ style: b
3624
+ }
3625
+ );
3626
+ }
3627
+ ), Ao = 500, En = We(null);
3628
+ function rr(t) {
3629
+ const { children: n, delay: e = Ao } = t, o = Pe(() => ({
3630
+ delay: e
3631
+ }), [e]);
3632
+ return /* @__PURE__ */ a(En.Provider, { value: o, children: n });
3633
+ }
3634
+ const Rn = 500, vn = 100;
3635
+ function Do(t, n, e, o) {
3636
+ n.current = t, Be(e, t), Be(o, t);
3637
+ }
3638
+ function Oo(t) {
3639
+ return Number.isFinite(t) ? Math.max(0, t) : Rn;
3640
+ }
3641
+ function Bo(t, n) {
3642
+ const e = (t == null ? void 0 : t.split(/\s+/).filter(Boolean)) ?? [];
3643
+ return e.includes(n) || e.push(n), e.join(" ");
3644
+ }
3645
+ const ir = y(function(n, e) {
3646
+ const {
3647
+ children: o,
3648
+ className: i,
3649
+ content: r,
3650
+ contentClassName: l,
3651
+ contentStyle: s,
3652
+ delay: h,
3653
+ disabled: f = !1,
3654
+ onOpenChange: d,
3655
+ placement: c = "top",
3656
+ portalContainer: p,
3657
+ style: m
3658
+ } = n;
3659
+ if (r == null || typeof r == "boolean" || typeof r == "string" && !r.trim())
3660
+ throw new Error("Tooltip content must not be empty");
3661
+ if (o.type === Fe)
3662
+ throw new Error("Tooltip requires a single non-Fragment trigger");
3663
+ const k = `${Ce()}-tooltip`, b = xe(En), w = o.props, S = Mn(o), L = H(null), V = H(null), x = H(f), N = H(!1), P = H(null), E = H(null), O = H(null), Z = H(!1), j = H(!1), F = H(!1), _ = H(!1), [K, M] = Y(null), [v, I] = Y(null), [B, D] = Y(!1);
3664
+ x.current = f;
3665
+ const R = Oo(
3666
+ h ?? (b == null ? void 0 : b.delay) ?? Rn
3667
+ ), z = qe(B), te = (p == null ? void 0 : p.ownerDocument) ?? (K == null ? void 0 : K.ownerDocument) ?? (typeof document > "u" ? null : document), ee = Ze(z.present, te), Q = Ln(
3668
+ z.present,
3669
+ c,
3670
+ K,
3671
+ v
3672
+ ), G = Pe(
3673
+ () => [L, V],
3674
+ []
3675
+ ), ce = Bo(
3676
+ w["aria-describedby"],
3677
+ k
3678
+ ), pe = B && z.present ? ce : w["aria-describedby"], we = W(
3679
+ (u) => {
3680
+ Do(
3681
+ u,
3682
+ L,
3683
+ S,
3684
+ e
3685
+ ), M(u);
3686
+ },
3687
+ [e, S]
3688
+ ), Me = W(
3689
+ (u) => {
3690
+ V.current = u, u || (_.current = !1), I(u);
3691
+ },
3692
+ []
3693
+ ), $ = W(() => {
3694
+ const u = P.current;
3695
+ u && u.ownerWindow.clearTimeout(u.timerId), P.current = null;
3696
+ }, []), ne = W(() => {
3697
+ const u = E.current;
3698
+ u && u.ownerWindow.clearTimeout(u.timerId), E.current = null;
3699
+ }, []), se = W(() => {
3700
+ const u = O.current;
3701
+ u && u.ownerWindow.clearTimeout(u.timerId), O.current = null;
3702
+ }, []), oe = W((u) => {
3703
+ N.current !== u && (u || (_.current = !1), N.current = u, D(u), d == null || d(u));
3704
+ }, [d]), U = W((u) => {
3705
+ var ie, ae;
3706
+ if (ne(), j.current || F.current || _.current)
3707
+ return;
3708
+ if (u === 0) {
3709
+ oe(!1);
3710
+ return;
3711
+ }
3712
+ const C = ((ie = L.current) == null ? void 0 : ie.ownerDocument.defaultView) ?? ((ae = V.current) == null ? void 0 : ae.ownerDocument.defaultView);
3713
+ if (!C) {
3714
+ oe(!1);
3715
+ return;
3716
+ }
3717
+ const X = C.setTimeout(() => {
3718
+ E.current = null, !j.current && !F.current && !_.current && oe(!1);
3719
+ }, u);
3720
+ E.current = {
3721
+ ownerWindow: C,
3722
+ timerId: X
3723
+ };
3724
+ }, [ne, oe]), ve = W(() => {
3725
+ var X;
3726
+ if ($(), ne(), R === 0) {
3727
+ oe(!0);
3728
+ return;
3729
+ }
3730
+ const u = (X = L.current) == null ? void 0 : X.ownerDocument.defaultView;
3731
+ if (!u) return;
3732
+ const C = u.setTimeout(() => {
3733
+ P.current = null, x.current || oe(!0);
3734
+ }, R);
3735
+ P.current = { ownerWindow: u, timerId: C };
3736
+ }, [ne, $, R, oe]);
3737
+ function re(u) {
3738
+ var C;
3739
+ (C = w.onFocus) == null || C.call(w, u), j.current = !0, ne(), !Z.current && ($(), oe(!0));
3740
+ }
3741
+ function le(u) {
3742
+ var C;
3743
+ (C = w.onBlur) == null || C.call(w, u), !u.currentTarget.contains(u.relatedTarget) && (j.current = !1, $(), U(0));
3744
+ }
3745
+ function be(u) {
3746
+ var C;
3747
+ (C = w.onMouseEnter) == null || C.call(w, u), F.current = !0, ve();
3748
+ }
3749
+ function Le(u) {
3750
+ var C;
3751
+ (C = w.onMouseLeave) == null || C.call(w, u), F.current = !1, $(), U(vn);
3752
+ }
3753
+ function Ne() {
3754
+ _.current = !0, ne();
3755
+ }
3756
+ function de() {
3757
+ _.current = !1, U(vn);
3758
+ }
3759
+ function _e(u) {
3760
+ var ie, ae;
3761
+ (ie = w.onPointerDown) == null || ie.call(w, u), $(), ne(), oe(!1);
3762
+ const C = (ae = L.current) == null ? void 0 : ae.ownerDocument.defaultView;
3763
+ if (!C) return;
3764
+ Z.current = !0, se();
3765
+ const X = C.setTimeout(() => {
3766
+ Z.current = !1, O.current = null;
3767
+ }, 0);
3768
+ O.current = { ownerWindow: C, timerId: X };
3769
+ }
3770
+ if (je({
3771
+ active: B,
3772
+ boundaries: G,
3773
+ dismissOnPointerDownOutside: !0,
3774
+ layerId: ee.id,
3775
+ onEscapeDismiss: () => oe(!1),
3776
+ onPointerDownOutsideDismiss: () => oe(!1),
3777
+ ownerDocument: te
3778
+ }), q(() => {
3779
+ f && ($(), ne(), se(), Z.current = !1, j.current = !1, F.current = !1, _.current = !1, N.current && oe(!1));
3780
+ }, [
3781
+ ne,
3782
+ $,
3783
+ se,
3784
+ f,
3785
+ oe
3786
+ ]), q(() => () => {
3787
+ $(), ne(), se();
3788
+ }, [ne, $, se]), f)
3789
+ return Oe(
3790
+ o,
3791
+ { ref: we }
3792
+ );
3793
+ const ye = Oe(
3794
+ o,
3795
+ {
3796
+ "aria-describedby": pe,
3797
+ className: [w.className, "nk-tooltip__trigger", i].filter(Boolean).join(" "),
3798
+ onBlur: le,
3799
+ onFocus: re,
3800
+ onMouseEnter: be,
3801
+ onMouseLeave: Le,
3802
+ onPointerDown: _e,
3803
+ ref: we,
3804
+ style: { ...w.style, ...m }
3805
+ }
3806
+ );
3807
+ return /* @__PURE__ */ T(He, { children: [
3808
+ ye,
3809
+ z.present && te ? /* @__PURE__ */ a(
3810
+ ze,
3811
+ {
3812
+ container: p,
3813
+ inheritFrom: K,
3814
+ children: /* @__PURE__ */ T(
3815
+ Ae,
3816
+ {
3817
+ ref: Me,
3818
+ "aria-hidden": B ? void 0 : !0,
3819
+ className: ["nk-tooltip", l].filter(Boolean).join(" "),
3820
+ "data-placement": (Q == null ? void 0 : Q.placement) ?? c,
3821
+ "data-state": z.state === "closing" ? "closing" : "open",
3822
+ id: k,
3823
+ onMouseEnter: Ne,
3824
+ onMouseLeave: de,
3825
+ role: "tooltip",
3826
+ style: Q ? {
3827
+ ...s,
3828
+ "--nk-tooltip-arrow-offset": `${Q.arrowOffset}px`,
3829
+ left: Q.left,
3830
+ top: Q.top,
3831
+ zIndex: ee.zIndex
3832
+ } : {
3833
+ ...s,
3834
+ visibility: "hidden",
3835
+ zIndex: ee.zIndex
3836
+ },
3837
+ children: [
3838
+ /* @__PURE__ */ a("span", { "aria-hidden": "true", className: "nk-tooltip__arrow" }),
3839
+ r
3840
+ ]
3841
+ }
3842
+ )
3843
+ }
3844
+ ) : null
3845
+ ] });
3846
+ });
13
3847
  export {
14
- i as Button
3848
+ zo as Alert,
3849
+ Zo as Avatar,
3850
+ jo as Badge,
3851
+ en as Button,
3852
+ qo as Card,
3853
+ Rt as Checkbox,
3854
+ At as CheckboxGroup,
3855
+ Go as Content,
3856
+ $o as Divider,
3857
+ Ko as Field,
3858
+ me as Icon,
3859
+ Uo as Input,
3860
+ Yo as Modal,
3861
+ Xo as PinInput,
3862
+ Qo as Popover,
3863
+ Jo as Radio,
3864
+ Lo as RadioGroup,
3865
+ er as Select,
3866
+ nr as Skeleton,
3867
+ wn as Spinner,
3868
+ tr as Switch,
3869
+ fe as Text,
3870
+ or as TextArea,
3871
+ ir as Tooltip,
3872
+ rr as TooltipProvider
15
3873
  };