@sia.soul/sia-react-ui 0.1.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 (46) hide show
  1. package/README.md +37 -0
  2. package/THIRD_PARTY_NOTICES.md +12 -0
  3. package/dist/Select-CJJ5LQap.d.cts +44 -0
  4. package/dist/Select-CJJ5LQap.d.ts +44 -0
  5. package/dist/chart.cjs +7523 -0
  6. package/dist/chart.css +1036 -0
  7. package/dist/chart.d.cts +2061 -0
  8. package/dist/chart.d.ts +2061 -0
  9. package/dist/chart.js +120 -0
  10. package/dist/chunk-34TTF4Y7.js +812 -0
  11. package/dist/chunk-6VXOLMKZ.js +381 -0
  12. package/dist/chunk-DZ45HRVP.js +583 -0
  13. package/dist/chunk-I342FGQY.js +7344 -0
  14. package/dist/chunk-JKZGAZMB.js +318 -0
  15. package/dist/chunk-MBS2HXLZ.js +59 -0
  16. package/dist/chunk-NZAT2RUM.js +60 -0
  17. package/dist/chunk-OMA75YLM.js +298 -0
  18. package/dist/chunk-ULEGTKXR.js +2138 -0
  19. package/dist/chunk-YCVXUMGP.js +945 -0
  20. package/dist/core-BeiAQiDY.d.ts +1076 -0
  21. package/dist/core-DRICIs2n.d.cts +1076 -0
  22. package/dist/core.cjs +3353 -0
  23. package/dist/core.css +8734 -0
  24. package/dist/core.d.cts +3 -0
  25. package/dist/core.d.ts +3 -0
  26. package/dist/core.js +45 -0
  27. package/dist/index.cjs +19658 -0
  28. package/dist/index.css +9762 -0
  29. package/dist/index.d.cts +1222 -0
  30. package/dist/index.d.ts +1222 -0
  31. package/dist/index.js +6843 -0
  32. package/dist/markdown-editor.cjs +417 -0
  33. package/dist/markdown-editor.d.cts +28 -0
  34. package/dist/markdown-editor.d.ts +28 -0
  35. package/dist/markdown-editor.js +6 -0
  36. package/dist/rich-text-editor.cjs +1853 -0
  37. package/dist/rich-text-editor.d.cts +27 -0
  38. package/dist/rich-text-editor.d.ts +27 -0
  39. package/dist/rich-text-editor.js +11 -0
  40. package/dist/select-date-range-BDWdo7qt.d.ts +84 -0
  41. package/dist/select-date-range-DWik3ADr.d.cts +84 -0
  42. package/dist/select-date-range.cjs +2074 -0
  43. package/dist/select-date-range.d.cts +3 -0
  44. package/dist/select-date-range.d.ts +3 -0
  45. package/dist/select-date-range.js +8 -0
  46. package/package.json +129 -0
@@ -0,0 +1,1853 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/rich-text-editor.ts
31
+ var rich_text_editor_exports = {};
32
+ __export(rich_text_editor_exports, {
33
+ RichTextContent: () => RichTextContent,
34
+ RichTextEditor: () => RichTextEditor
35
+ });
36
+ module.exports = __toCommonJS(rich_text_editor_exports);
37
+
38
+ // src/components/RichTextEditor.tsx
39
+ var import_react8 = require("react");
40
+ var import_dompurify = __toESM(require("dompurify"), 1);
41
+ var import_core = require("@tiptap/core");
42
+ var import_starter_kit = __toESM(require("@tiptap/starter-kit"), 1);
43
+ var import_extension_placeholder = __toESM(require("@tiptap/extension-placeholder"), 1);
44
+ var import_extension_image = __toESM(require("@tiptap/extension-image"), 1);
45
+ var import_extension_table = require("@tiptap/extension-table");
46
+ var import_extension_table_row = __toESM(require("@tiptap/extension-table-row"), 1);
47
+ var import_extension_table_header = __toESM(require("@tiptap/extension-table-header"), 1);
48
+ var import_extension_table_cell = __toESM(require("@tiptap/extension-table-cell"), 1);
49
+ var import_extension_task_list = __toESM(require("@tiptap/extension-task-list"), 1);
50
+ var import_extension_task_item = __toESM(require("@tiptap/extension-task-item"), 1);
51
+ var import_markdown = require("@tiptap/markdown");
52
+
53
+ // src/components/Button.tsx
54
+ var import_react = require("react");
55
+ var import_jsx_runtime = require("react/jsx-runtime");
56
+ var Button = (0, import_react.forwardRef)(function Button2({
57
+ variant = "default",
58
+ size = "medium",
59
+ loading = false,
60
+ block = false,
61
+ danger = false,
62
+ icon,
63
+ iconPosition = "start",
64
+ className = "",
65
+ children,
66
+ disabled,
67
+ onClick,
68
+ style,
69
+ ...props
70
+ }, forwardedRef) {
71
+ const localRef = (0, import_react.useRef)(null);
72
+ function setRef(node) {
73
+ localRef.current = node;
74
+ if (typeof forwardedRef === "function") forwardedRef(node);
75
+ else if (forwardedRef) forwardedRef.current = node;
76
+ }
77
+ function handleClick(event) {
78
+ const button = localRef.current;
79
+ if (button && variant === "primary") {
80
+ const rect = button.getBoundingClientRect();
81
+ button.style.setProperty("--sia-wave-x", `${event.clientX - rect.left}px`);
82
+ button.style.setProperty("--sia-wave-y", `${event.clientY - rect.top}px`);
83
+ button.dataset.wave = "active";
84
+ window.setTimeout(() => delete button.dataset.wave, 360);
85
+ }
86
+ onClick?.(event);
87
+ }
88
+ const mergedStyle = block ? { ...style, width: "100%" } : style ?? {};
89
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
90
+ "button",
91
+ {
92
+ ref: setRef,
93
+ type: "button",
94
+ className: `sia-button sia-button--${variant} sia-button--${size}${danger ? " sia-button--danger" : ""} ${className}`.trim(),
95
+ "aria-busy": loading || void 0,
96
+ disabled: disabled || loading,
97
+ onClick: handleClick,
98
+ style: mergedStyle,
99
+ ...props,
100
+ children: [
101
+ loading ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "sia-button__spinner", "aria-hidden": "true" }) : icon && iconPosition === "start" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "sia-button__icon", children: icon }) : null,
102
+ children !== void 0 && children !== null ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children }) : null,
103
+ !loading && icon && iconPosition === "end" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "sia-button__icon", children: icon }) : null
104
+ ]
105
+ }
106
+ );
107
+ });
108
+
109
+ // src/components/Dropdown.tsx
110
+ var import_react6 = require("react");
111
+
112
+ // src/components/Icon.tsx
113
+ var import_react2 = require("react");
114
+
115
+ // src/components/IconCatalog.tsx
116
+ var import_jsx_runtime2 = require("react/jsx-runtime");
117
+ var extendedIconPaths = {
118
+ "notepad-file": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("g", { transform: "scale(0.0234375)", fill: "currentColor", stroke: "none", children: [
119
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M752 80H272c-70.4 0-128 57.6-128 128v608c0 70.4 57.6 128 128 128h353.6c33.6 0 65.6-12.8 91.2-36.8l126.4-126.4c24-24 36.8-56 36.8-91.2V208c0-70.4-57.6-128-128-128zM208 816V208c0-35.2 28.8-64 64-64h480c35.2 0 64 28.8 64 64v464h-96c-70.4 0-128 57.6-128 128v80H272c-35.2 0-64-28.8-64-64z m462.4 44.8c-4.8 4.8-9.6 8-14.4 11.2v-72c0-35.2 28.8-64 64-64h75.2L670.4 860.8z" }),
120
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M368 352h288c17.6 0 32-14.4 32-32s-14.4-32-32-32H368c-17.6 0-32 14.4-32 32s14.4 32 32 32z m128 256H368c-17.6 0-32 14.4-32 32s14.4 32 32 32h128c17.6 0 32-14.4 32-32s-14.4-32-32-32z m-128-96h288c17.6 0 32-14.4 32-32s-14.4-32-32-32H368c-17.6 0-32 14.4-32 32s14.4 32 32 32z" })
121
+ ] }),
122
+ "notepad-folder": /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("g", { transform: "scale(0.0234375)", fill: "currentColor", stroke: "none", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M510.4 243.2c8 27.2 33.6 44.8 60.8 44.8h259.2c0-35.2-28.8-64-64-64H504l6.4 19.2zM484.8 160h281.6c70.4 0 128 57.6 128 128v25.6c30.4 24 51.2 60.8 51.2 102.4v384c0 70.4-57.6 128-128 128H208c-70.4 0-128-57.6-128-128V224c0-70.4 57.6-128 128-128h164.8c46.4 0 89.6 25.6 112 64z m-112 0H208c-35.2 0-64 28.8-64 64v576c0 35.2 28.8 64 64 64h608c35.2 0 64-28.8 64-64V416c0-35.2-28.8-64-64-64H574.4c-56 0-105.6-36.8-121.6-89.6l-19.2-57.6c-8-27.2-32-44.8-60.8-44.8zM272 704h256c17.6 0 32 14.4 32 32s-14.4 32-32 32H272c-17.6 0-32-14.4-32-32s14.4-32 32-32z" }) }),
123
+ "notepad-virtual-folder": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("g", { transform: "scale(0.0234375)", fill: "currentColor", stroke: "none", children: [
124
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M704 864H192c-89.6 0-160-70.4-160-160V192c0-89.6 70.4-160 160-160h512c89.6 0 160 70.4 160 160v512c0 89.6-70.4 160-160 160zM192 96c-51.2 0-96 44.8-96 96v512c0 51.2 44.8 96 96 96h512c51.2 0 96-44.8 96-96V192c0-51.2-44.8-96-96-96H192z" }),
125
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M832 992H320c-19.2 0-32-12.8-32-32s12.8-32 32-32h512c51.2 0 96-44.8 96-96V320c0-19.2 12.8-32 32-32s32 12.8 32 32v512c0 89.6-70.4 160-160 160z" })
126
+ ] }),
127
+ "step-backward": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
128
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M6 5v14" }),
129
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m18 6-8 6 8 6V6Z" })
130
+ ] }),
131
+ "step-forward": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
132
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M18 5v14" }),
133
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m6 6 8 6-8 6V6Z" })
134
+ ] }),
135
+ "fast-backward": /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m11 6-7 6 7 6V6ZM20 6l-7 6 7 6V6Z" }) }),
136
+ "fast-forward": /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m13 6 7 6-7 6V6ZM4 6l7 6-7 6V6Z" }) }),
137
+ "corner-up-left": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
138
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m9 5-5 5 5 5" }),
139
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 10h9a7 7 0 0 1 7 7v2" })
140
+ ] }),
141
+ "corner-up-right": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
142
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m15 5 5 5-5 5" }),
143
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M20 10h-9a7 7 0 0 0-7 7v2" })
144
+ ] }),
145
+ "swap-horizontal": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
146
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 8h15m0 0-4-4m4 4-4 4" }),
147
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M20 16H5m0 0 4-4m-4 4 4 4" })
148
+ ] }),
149
+ "swap-vertical": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
150
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8 4v15m0 0-4-4m4 4 4-4" }),
151
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M16 20V5m0 0-4 4m4-4 4 4" })
152
+ ] }),
153
+ expand: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M9 4H4v5M4 4l6 6M15 20h5v-5m0 5-6-6" }) }),
154
+ shrink: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M10 10H5V5m0 5 6-6M14 14h5v5m0-5-6 6" }) }),
155
+ fullscreen: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M9 4H4v5M15 4h5v5M9 20H4v-5M15 20h5v-5" }),
156
+ "fullscreen-exit": /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 9h5V4M20 9h-5V4M4 15h5v5M20 15h-5v5" }),
157
+ "menu-fold": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
158
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 6h16M4 12h10M4 18h16" }),
159
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m18 9-3 3 3 3" })
160
+ ] }),
161
+ "menu-unfold": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
162
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 6h16M10 12h10M4 18h16" }),
163
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m6 9 3 3-3 3" })
164
+ ] }),
165
+ login: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M10 5H5v14h5M13 8l4 4-4 4M8 12h9" }) }),
166
+ logout: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M14 5h5v14h-5M11 8l-4 4 4 4M16 12H7" }) }),
167
+ move: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
168
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 3v18M3 12h18" }),
169
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m9 6 3-3 3 3M9 18l3 3 3-3M6 9l-3 3 3 3M18 9l3 3-3 3" })
170
+ ] }),
171
+ "vertical-align-top": /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 4h16M12 7v13M8 11l4-4 4 4" }) }),
172
+ "vertical-align-middle": /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 12h16M12 4v16M8 8l4 4 4-4M8 16l4-4 4 4" }) }),
173
+ "vertical-align-bottom": /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 20h16M12 4v13M8 13l4 4 4-4" }) }),
174
+ "square-plus": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
175
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "3" }),
176
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 8v8M8 12h8" })
177
+ ] }),
178
+ "square-minus": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
179
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "3" }),
180
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8 12h8" })
181
+ ] }),
182
+ "square-check": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
183
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "3" }),
184
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m8 12 3 3 6-7" })
185
+ ] }),
186
+ "square-close": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
187
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "3" }),
188
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m8.5 8.5 7 7m0-7-7 7" })
189
+ ] }),
190
+ "tab-plus": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
191
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2.5" }),
192
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M3 9h18M7 6.5h.1M10 6.5h.1M15 12v6M12 15h6" })
193
+ ] }),
194
+ "folder-plus": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
195
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M3 6h7l2 2h9v11H3V6Z" }),
196
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M16 11v6M13 14h6" })
197
+ ] }),
198
+ pin: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8 3h8l-1.5 5 3 3v2H13v8l-2-2v-6H6.5v-2l3-3L8 3Z" }) }),
199
+ "pin-off": /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M9.5 8 8 3h8l-1.5 5 3 3v2H13v4M6.5 13v-2l1-1M3 3l18 18" }) }),
200
+ stop: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
201
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
202
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M6 18 18 6" })
203
+ ] }),
204
+ "help-circle": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
205
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
206
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M9.7 9a2.5 2.5 0 1 1 3.6 2.3c-.9.5-1.3 1.1-1.3 2.1M12 17v.1" })
207
+ ] }),
208
+ save: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
209
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 3h13l3 3v15H4V3Z" }),
210
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8 3v6h8V3M8 21v-7h8v7" })
211
+ ] }),
212
+ clipboard: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
213
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "5", y: "4", width: "14", height: "17", rx: "2.5" }),
214
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M9 4.5V3h6v1.5M9 9h6M9 13h6M9 17h4" })
215
+ ] }),
216
+ "clipboard-check": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
217
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "5", y: "4", width: "14", height: "17", rx: "2.5" }),
218
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M9 4.5V3h6v1.5m-6 9 2 2 4-5" })
219
+ ] }),
220
+ "file-plus": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
221
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M6 3h8l4 4v14H6V3Z" }),
222
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M14 3v5h4M12 11v6M9 14h6" })
223
+ ] }),
224
+ "file-check": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
225
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M6 3h8l4 4v14H6V3Z" }),
226
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M14 3v5h4m-8 6 2 2 4-5" })
227
+ ] }),
228
+ "file-warning": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
229
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M6 3h8l4 4v14H6V3Z" }),
230
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M14 3v5h4M12 11v4m0 3v.1" })
231
+ ] }),
232
+ "file-spreadsheet": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
233
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M6 3h8l4 4v14H6V3Z" }),
234
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M14 3v5h4M8.5 11h7v7h-7v-7Zm0 3.5h7M12 11v7" })
235
+ ] }),
236
+ "align-left": /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 6h16M4 10h11M4 14h16M4 18h11" }),
237
+ "align-center": /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 6h16M7 10h10M4 14h16M7 18h10" }),
238
+ "align-right": /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 6h16M9 10h11M4 14h16M9 18h11" }),
239
+ "align-justify": /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 6h16M4 10h16M4 14h16M4 18h16" }),
240
+ bold: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M7 4h6a4 4 0 0 1 0 8H7V4Zm0 8h7a4 4 0 0 1 0 8H7v-8Z" }),
241
+ italic: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M10 4h8M6 20h8M14 4 10 20" }),
242
+ underline: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M7 4v7a5 5 0 0 0 10 0V4M5 21h14" }) }),
243
+ strikethrough: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M5 12h14M8 8c.3-2.5 2-4 4.5-4 2.2 0 3.7 1 4.5 2.5M8 16c.8 2.5 2.5 4 5 4 2.2 0 3.8-1 4.5-2.5" }) }),
244
+ "list-ordered": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
245
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M9 6h12M9 12h12M9 18h12" }),
246
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 5h1v3M4 11h2l-2 3h2M4 17h2l-2 3h2" })
247
+ ] }),
248
+ "list-unordered": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
249
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M9 6h12M9 12h12M9 18h12" }),
250
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "4.5", cy: "6", r: ".5" }),
251
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "4.5", cy: "12", r: ".5" }),
252
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "4.5", cy: "18", r: ".5" })
253
+ ] }),
254
+ eraser: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
255
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m4 15 8-10 8 7-7 8H7l-3-3v-2Z" }),
256
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m9 9 8 7M13 20h8" })
257
+ ] }),
258
+ highlighter: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
259
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m7 14 7-10 5 4-8 9-4-3Z" }),
260
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m5 17 6 3H3l2-3ZM15 14l4 3" })
261
+ ] }),
262
+ table: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
263
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
264
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M3 9h18M3 14h18M9 4v16M15 4v16" })
265
+ ] }),
266
+ columns: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
267
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
268
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 4v16" })
269
+ ] }),
270
+ rows: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
271
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
272
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M3 9h18M3 15h18" })
273
+ ] }),
274
+ "bar-chart": /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 21V10h4v11M10 21V4h4v17M16 21v-8h4v8M3 21h18" }) }),
275
+ "line-chart": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
276
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M3 20h18M4 17l5-6 4 3 7-9" }),
277
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "9", cy: "11", r: "1" }),
278
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "13", cy: "14", r: "1" })
279
+ ] }),
280
+ "pie-chart": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
281
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M11 3a9 9 0 1 0 9 9h-9V3Z" }),
282
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M14 3.5A8.5 8.5 0 0 1 20.5 10H14V3.5Z" })
283
+ ] }),
284
+ "area-chart": /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M3 20h18M4 17l5-6 4 3 7-9v12H4Z" }) }),
285
+ activity: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M3 12h4l2-6 4 13 3-7h5" }),
286
+ "trending-up": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
287
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m4 17 6-6 4 4 6-7" }),
288
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M15 8h5v5" })
289
+ ] }),
290
+ "trending-down": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
291
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m4 7 6 6 4-4 6 7" }),
292
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M15 16h5v-5" })
293
+ ] }),
294
+ database: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
295
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("ellipse", { cx: "12", cy: "5", rx: "8", ry: "3" }),
296
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 5v7c0 1.7 3.6 3 8 3s8-1.3 8-3V5M4 12v7c0 1.7 3.6 3 8 3s8-1.3 8-3v-7" })
297
+ ] }),
298
+ cloud: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M7 19h11a4 4 0 0 0 .5-8A7 7 0 0 0 5.2 9.5 4.8 4.8 0 0 0 7 19Z" }),
299
+ "cloud-download": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
300
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M7 18H5a4 4 0 0 1 .2-8 7 7 0 0 1 13.3 1A4 4 0 0 1 19 19h-2" }),
301
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 11v10m-4-4 4 4 4-4" })
302
+ ] }),
303
+ "cloud-upload": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
304
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M7 18H5a4 4 0 0 1 .2-8 7 7 0 0 1 13.3 1A4 4 0 0 1 19 19h-2" }),
305
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 21V11m-4 4 4-4 4 4" })
306
+ ] }),
307
+ server: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
308
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "3", y: "4", width: "18", height: "7", rx: "2" }),
309
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "3", y: "13", width: "18", height: "7", rx: "2" }),
310
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M7 7.5h.1M7 16.5h.1M11 7.5h6M11 16.5h6" })
311
+ ] }),
312
+ desktop: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
313
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "3", y: "3", width: "18", height: "14", rx: "2" }),
314
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8 21h8M12 17v4" })
315
+ ] }),
316
+ laptop: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
317
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M5 5h14v11H5V5Z" }),
318
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m3 19 2-3h14l2 3H3Z" })
319
+ ] }),
320
+ mobile: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
321
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "7", y: "2", width: "10", height: "20", rx: "2.5" }),
322
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M10 5h4M12 19v.1" })
323
+ ] }),
324
+ tablet: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
325
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2.5" }),
326
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M10 5h4M12 19v.1" })
327
+ ] }),
328
+ printer: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
329
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M7 9V3h10v6M6 18H4V9h16v9h-2" }),
330
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M7 14h10v7H7v-7ZM17 11h.1" })
331
+ ] }),
332
+ camera: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
333
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M3 7h4l2-3h6l2 3h4v13H3V7Z" }),
334
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "13", r: "4" })
335
+ ] }),
336
+ video: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
337
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "3", y: "5", width: "13", height: "14", rx: "2" }),
338
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m16 10 5-3v10l-5-3v-4Z" })
339
+ ] }),
340
+ microphone: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
341
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "9", y: "3", width: "6", height: "12", rx: "3" }),
342
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M5 11a7 7 0 0 0 14 0M12 18v3M8 21h8" })
343
+ ] }),
344
+ "volume-up": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
345
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 10h4l5-4v12l-5-4H4v-4Z" }),
346
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M16 9a4 4 0 0 1 0 6M18.5 6.5a8 8 0 0 1 0 11" })
347
+ ] }),
348
+ "volume-off": /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 10h4l5-4v12l-5-4H4v-4ZM17 9l5 6m0-6-5 6" }) }),
349
+ "speaker-wave": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
350
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 10h3.5l4.7-3.6v11.2L7.5 14H4v-4Z", fill: "currentColor", stroke: "none" }),
351
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M15.2 9.2a4 4 0 0 1 0 5.6" })
352
+ ] }),
353
+ "speaker-muted": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
354
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 10h3.5l4.7-3.6v11.2L7.5 14H4v-4Z", fill: "currentColor", stroke: "none" }),
355
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m15.5 9.5 5 5m0-5-5 5" })
356
+ ] }),
357
+ wifi: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M3 9a14 14 0 0 1 18 0M6 13a9 9 0 0 1 12 0M9.5 17a4 4 0 0 1 5 0M12 21v.1" }) }),
358
+ power: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
359
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 3v9" }),
360
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M7 5.5a8 8 0 1 0 10 0" })
361
+ ] }),
362
+ key: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
363
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "8", cy: "15", r: "4" }),
364
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m11 12 8-8m-3 3 3 3m-6 0 3 3" })
365
+ ] }),
366
+ shield: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 3 4 6v6c0 5 3 8 8 10 5-2 8-5 8-10V6l-8-3Z" }),
367
+ "shield-check": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
368
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 3 4 6v6c0 5 3 8 8 10 5-2 8-5 8-10V6l-8-3Z" }),
369
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m8 12 2.5 2.5L16 9" })
370
+ ] }),
371
+ bug: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8 9h8v7a4 4 0 0 1-8 0V9ZM9 9a3 3 0 0 1 6 0M5 11h3M16 11h3M5 16h3M16 16h3M7 5l2 2M17 5l-2 2" }) }),
372
+ bulb: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
373
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8 15a7 7 0 1 1 8 0c-1.2.8-1.5 1.8-1.5 3h-5c0-1.2-.3-2.2-1.5-3Z" }),
374
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M9.5 21h5" })
375
+ ] }),
376
+ rocket: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
377
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8 16c-2-1-4-1-5 0 0-3 1-5 4-6M14 6c3-3 6-3 7-3 0 1 0 4-3 7l-6 6-4-4 6-6Z" }),
378
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M14 14c0 3-2 6-5 7 0-2 0-4-1-5M5 19l-2 2" })
379
+ ] }),
380
+ target: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
381
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
382
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "5" }),
383
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "1" })
384
+ ] }),
385
+ trophy: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
386
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8 4h8v5a4 4 0 0 1-8 0V4ZM9 20h6M12 13v7" }),
387
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8 6H4v2a4 4 0 0 0 5 4M16 6h4v2a4 4 0 0 1-5 4" })
388
+ ] }),
389
+ "shopping-cart": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
390
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M3 4h2l2 11h10l3-8H6" }),
391
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "9", cy: "20", r: "1" }),
392
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "17", cy: "20", r: "1" })
393
+ ] }),
394
+ "shopping-bag": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
395
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M5 8h14l1 13H4L5 8Z" }),
396
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M9 9V6a3 3 0 0 1 6 0v3" })
397
+ ] }),
398
+ shop: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
399
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 10v11h16V10M3 4h18l-2 6H5L3 4Z" }),
400
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M9 21v-6h6v6" })
401
+ ] }),
402
+ wallet: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
403
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "3", y: "5", width: "18", height: "15", rx: "2.5" }),
404
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M3 9h18M15 13h6v4h-6a2 2 0 0 1 0-4Z" })
405
+ ] }),
406
+ bank: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m3 9 9-6 9 6M5 10h14M6 10v8M10 10v8M14 10v8M18 10v8M3 21h18M4 18h16" }) }),
407
+ calculator: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
408
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2.5" }),
409
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8 5h8v4H8V5ZM8 13h.1M12 13h.1M16 13h.1M8 17h.1M12 17h.1M16 17h.1" })
410
+ ] }),
411
+ tag: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
412
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M3 12V4h8l10 10-7 7L3 12Z" }),
413
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "7.5", cy: "8.5", r: "1" })
414
+ ] }),
415
+ tags: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
416
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M6 12V4h7l8 8-6 6-9-6Z" }),
417
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "10", cy: "8", r: "1" }),
418
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m3 8 1 9 7 4 2-2" })
419
+ ] }),
420
+ message: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 4h16v13H9l-5 4V4Z" }),
421
+ comments: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
422
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M3 4h13v10H8l-5 4V4Z" }),
423
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M10 17h6l5 4V8h-2" })
424
+ ] }),
425
+ send: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m3 11 18-8-8 18-2-8-8-2Zm8 2 10-10" }),
426
+ share: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
427
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "18", cy: "5", r: "3" }),
428
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "6", cy: "12", r: "3" }),
429
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "18", cy: "19", r: "3" }),
430
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m8.5 10.5 7-4M8.5 13.5l7 4" })
431
+ ] }),
432
+ paperclip: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m8 12 7-7a4 4 0 0 1 6 6l-9 9a6 6 0 0 1-9-9l8-8" }),
433
+ location: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
434
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 22s7-6.2 7-13a7 7 0 1 0-14 0c0 6.8 7 13 7 13Z" }),
435
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "9", r: "2.5" })
436
+ ] }),
437
+ compass: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
438
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
439
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m15.5 8.5-2 5-5 2 2-5 5-2Z" })
440
+ ] }),
441
+ car: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
442
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 15V9l2-5h12l2 5v6M3 10h18M6 15h12" }),
443
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "7", cy: "18", r: "2" }),
444
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "17", cy: "18", r: "2" })
445
+ ] }),
446
+ truck: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
447
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M3 5h11v12H3V5ZM14 9h4l3 4v4h-7V9Z" }),
448
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "7", cy: "19", r: "2" }),
449
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "18", cy: "19", r: "2" })
450
+ ] }),
451
+ gift: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
452
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "3", y: "9", width: "18", height: "12", rx: "2" }),
453
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 9v12M3 13h18M12 9H8a3 3 0 1 1 4-3v3Zm0 0h4a3 3 0 1 0-4-3v3Z" })
454
+ ] }),
455
+ coffee: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
456
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 8h13v6a6 6 0 0 1-6 6H10a6 6 0 0 1-6-6V8ZM17 10h2a3 3 0 0 1 0 6h-3" }),
457
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8 4v1M12 3v2" })
458
+ ] }),
459
+ experiment: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
460
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M9 3h6M10 3v6l-6 10a2 2 0 0 0 2 3h12a2 2 0 0 0 2-3L14 9V3" }),
461
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M7 16h10" })
462
+ ] }),
463
+ tool: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M14 6a5 5 0 0 0-6-3l3 3-3 3-3-3a5 5 0 0 0 6 6l7 7a2 2 0 0 0 3-3l-7-7Z" }) }),
464
+ appstore: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
465
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "3", y: "3", width: "7", height: "7", rx: "2" }),
466
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "14", y: "3", width: "7", height: "7", rx: "2" }),
467
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "3", y: "14", width: "7", height: "7", rx: "2" }),
468
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "14", y: "14", width: "7", height: "7", rx: "2" })
469
+ ] }),
470
+ puzzle: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M9 3h4.2a2.8 2.8 0 1 0 5.6 0H21v6h-2.2a2.8 2.8 0 1 0 0 5.6H21V21h-6.4v-2.2a2.8 2.8 0 1 0-5.6 0V21H3v-6.4h2.2a2.8 2.8 0 1 0 0-5.6H3V3h6Z" }) }),
471
+ partition: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
472
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 5v5M6 14v-2h12v2M6 18v3M12 18v3M18 18v3" }),
473
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "3", r: "2" }),
474
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "6", cy: "16", r: "2" }),
475
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "16", r: "2" }),
476
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "18", cy: "16", r: "2" })
477
+ ] }),
478
+ branches: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
479
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "6", cy: "5", r: "2" }),
480
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "18", cy: "7", r: "2" }),
481
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "6", cy: "19", r: "2" }),
482
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M6 7v10M8 10c6 0 4-3 8-3M8 14c6 0 4 3 8 3" })
483
+ ] }),
484
+ scan: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8 3H3v5M16 3h5v5M8 21H3v-5M16 21h5v-5M7 12h10" }),
485
+ "qr-code": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
486
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "3", y: "3", width: "7", height: "7", rx: "1" }),
487
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "14", y: "3", width: "7", height: "7", rx: "1" }),
488
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "3", y: "14", width: "7", height: "7", rx: "1" }),
489
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M14 14h3v3h-3v-3ZM18 18h3v3h-3v-3ZM14 20h1M20 14h1" })
490
+ ] }),
491
+ barcode: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 5v14M7 5v14M11 5v14M14 5v14M16 5v14M20 5v14" }),
492
+ "user-plus": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
493
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "10", cy: "8", r: "4" }),
494
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M3 21c.7-4.3 3-6.5 7-6.5 2 0 3.6.6 4.7 1.7M19 14v7M15.5 17.5h7" })
495
+ ] }),
496
+ "user-minus": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
497
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "10", cy: "8", r: "4" }),
498
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M3 21c.7-4.3 3-6.5 7-6.5 2 0 3.6.6 4.7 1.7M15.5 17.5h7" })
499
+ ] }),
500
+ smile: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
501
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
502
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8 10h.1M16 10h.1M8 15c1 1.4 2.3 2 4 2s3-.6 4-2" })
503
+ ] }),
504
+ meh: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
505
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
506
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8 10h.1M16 10h.1M8 16h8" })
507
+ ] }),
508
+ frown: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
509
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
510
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8 10h.1M16 10h.1M8 17c1-1.4 2.3-2 4-2s3 .6 4 2" })
511
+ ] }),
512
+ "game-cultivator": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
513
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M7.2 7.5h9.6M9 5.2 12 2l3 3.2" }),
514
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "8.8", r: "3.6" }),
515
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M7.5 21c.2-4.9 1.8-7.3 4.5-7.3s4.3 2.4 4.5 7.3M9.4 15.2 7 18m7.6-2.8L17 18M10 21l2-4 2 4" })
516
+ ] }),
517
+ "game-swordsman": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
518
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M9.2 5.2h5.6M12 2.5v2.7" }),
519
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "8.8", r: "3.4" }),
520
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M7.2 21c.3-5 1.9-7.4 4.8-7.4s4.5 2.4 4.8 7.4M9.2 14.8 7 18.2m7.8-3.4 2.2 3.4M9.5 21l2.5-4 2.5 4" }),
521
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m17.7 5.1 2.2-1-.9 2.3-5.2 5.2M16.2 7.8l1.8 1.8" })
522
+ ] }),
523
+ "game-spirit-wolf": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
524
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m5.2 8.2.7-4 3.3 2.2A9 9 0 0 1 12 6c1 0 1.9.1 2.8.4l3.3-2.2.7 4A7.7 7.7 0 0 1 20 13c0 4.3-3.5 7.7-8 7.7S4 17.3 4 13c0-1.8.4-3.4 1.2-4.8Z" }),
525
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8.3 12h.1m7.2 0h.1M9 16c1.8 1.3 4.2 1.3 6 0m-3-1.5v1M7 18l-2.2 2M17 18l2.2 2" })
526
+ ] }),
527
+ "game-gem": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
528
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m4 8 3-4h10l3 4-8 13L4 8Z" }),
529
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 8h16M8 4l-2 4 6 13 6-13-2-4M6 8h12" })
530
+ ] }),
531
+ "game-ingot": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
532
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 9.5c2.2 1 4.1 1.5 5.8 1.6L12 6l2.2 5.1c1.7-.1 3.6-.6 5.8-1.6-.3 5.1-2.9 8.4-8 10-5.1-1.6-7.7-4.9-8-10Z" }),
533
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4.6 10.1 3 6.5c2.3 1.2 4.2 1.6 5.8 1.2M19.4 10.1 21 6.5c-2.3 1.2-4.2 1.6-5.8 1.2M7 16.3c3.3 1 6.7 1 10 0" })
534
+ ] }),
535
+ "game-sword": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
536
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m14.5 4.5 5-1-1 5L9 18l-3 1 1-3 9.5-9.5M5 19l-1 1" }),
537
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m12.5 7.5 4 4M7.5 14.5l2 2" })
538
+ ] }),
539
+ "game-robe": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
540
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m8.5 4 3.5 2 3.5-2 4 4-2.5 3-1.2-1V21H8.2V10L7 11 4.5 8l4-4Z" }),
541
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M9 4.5 12 9l3-4.5M12 9v12" })
542
+ ] }),
543
+ "game-pants": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
544
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M7 3h10l1 18h-5l-1-10-1 10H6L7 3Z" }),
545
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M7 7h10M12 3v8" })
546
+ ] }),
547
+ "game-pendant": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
548
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M5 4c1.7 4.4 4 6.6 7 6.6S17.3 8.4 19 4" }),
549
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 10.6c-2.7 1.8-4 3.8-4 6a4 4 0 0 0 8 0c0-2.2-1.3-4.2-4-6Z" }),
550
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "16.5", r: "1.5" })
551
+ ] }),
552
+ "game-necklace": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
553
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M5 4c.7 6.3 3 9.5 7 9.5S18.3 10.3 19 4" }),
554
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m12 13.5 3 2.4-1.2 4.1h-3.6L9 15.9l3-2.4Z" }),
555
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M7 7h.1m10 0h.1M9 10h.1m6 0h.1" })
556
+ ] }),
557
+ "game-pill": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
558
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M6.2 17.8a5.7 5.7 0 0 1 0-8.1l3.5-3.5a5.7 5.7 0 1 1 8.1 8.1l-3.5 3.5a5.7 5.7 0 0 1-8.1 0Z" }),
559
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m8 8 8 8" }),
560
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M6.3 12.2c1.3.2 2.5.7 3.5 1.7s1.6 2.2 1.8 3.5" })
561
+ ] }),
562
+ "game-potion": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
563
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M9 3h6M10 3v5l-5 7.5A3.5 3.5 0 0 0 8 21h8a3.5 3.5 0 0 0 3-5.5L14 8V3" }),
564
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M7 15h10M9.5 12h5" })
565
+ ] }),
566
+ "game-elixir-jar": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
567
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8 3h8l-1 4c2.6 1.2 4 3.5 4 6.8V21H5v-7.2C5 10.5 6.4 8.2 9 7L8 3Z" }),
568
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8.5 7h7M5 14h14M9 17h6" })
569
+ ] }),
570
+ "game-flame": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
571
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M13.8 2.5c.6 3.6-2.1 4.8-2.1 7.2 0 1.1.7 1.9 1.7 1.9 1.8 0 2.4-2.1 2-4.1 2.6 2 4.1 4.6 4.1 7.4A7.5 7.5 0 0 1 4.5 15c0-3.5 1.8-6.5 5.2-9-.2 2.3.8 3.4 1.8 3.7-.4-2.6.3-5.1 2.3-7.2Z" }),
572
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 21c-2 0-3.3-1.3-3.3-3.2 0-1.5.9-2.8 2.6-4.2 0 1.7.8 2.5 1.7 2.5 1 0 1.7-.9 1.5-2.3 1.2 1.2 1.8 2.5 1.8 4A4 4 0 0 1 12 21Z" })
573
+ ] }),
574
+ "game-soul-elixir": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
575
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "4.2" }),
576
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 2.5v3M12 18.5v3M2.5 12h3M18.5 12h3M5.3 5.3l2.2 2.2m9 9 2.2 2.2m0-13.4-2.2 2.2m-9 9-2.2 2.2" }),
577
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m10 12 1.4 1.4L14.5 10" })
578
+ ] }),
579
+ "game-herb": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
580
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 21V9" }),
581
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 13c-5.5.1-8-2.6-8-7.5 5-.2 7.8 2.1 8 7.5Zm0 4c5.5.1 8-2.6 8-7.5-5-.2-7.8 2.1-8 7.5Z" })
582
+ ] }),
583
+ "game-meditate": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
584
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "5.5", r: "2.5" }),
585
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8.5 11c1-1.5 2.2-2.2 3.5-2.2s2.5.7 3.5 2.2l2.8 4M5.7 15l2.8-4M4 19c2.5-2.2 5.2-2.5 8-1 2.8-1.5 5.5-1.2 8 1M7 21h10" }),
586
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m9.5 14.5 2.5 3.4 2.5-3.4" })
587
+ ] }),
588
+ "game-backpack": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
589
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8 8V5.5a4 4 0 0 1 8 0V8M6 8h12l2 13H4L6 8Z" }),
590
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8.5 13h7v5h-7v-5ZM9 5.5h6" })
591
+ ] }),
592
+ "game-qi": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
593
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
594
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M7 8.5c2.5-2.8 7-2.2 8.7.2 1.7 2.4.9 5.6-1.6 6.8-2.4 1.2-5.5-.1-5.8-2.5-.2-1.8 1.4-3.1 3.2-2.8 1.8.3 2.6 2.2 1.7 3.5" })
595
+ ] })
596
+ };
597
+
598
+ // src/components/Icon.tsx
599
+ var import_jsx_runtime3 = require("react/jsx-runtime");
600
+ var coreIconPaths = {
601
+ search: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
602
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "10.8", cy: "10.8", r: "6.8" }),
603
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m15.8 15.8 5.2 5.2" })
604
+ ] }),
605
+ plus: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M12 4v16M4 12h16" }),
606
+ minus: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M4 12h16" }),
607
+ close: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m5 5 14 14M19 5 5 19" }),
608
+ check: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m4 12.5 5.2 5L20 6.5" }),
609
+ info: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
610
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
611
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M12 11v6M12 7.2v.1" })
612
+ ] }),
613
+ question: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
614
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
615
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M9.8 9a2.4 2.4 0 1 1 3.5 2.2c-.9.5-1.3 1.1-1.3 2.1M12 16.8v.1" })
616
+ ] }),
617
+ warning: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
618
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M10.3 4.1 2.6 18a2 2 0 0 0 1.8 3h15.2a2 2 0 0 0 1.8-3L13.7 4.1a2 2 0 0 0-3.4 0Z" }),
619
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M12 9v4M12 17v.1" })
620
+ ] }),
621
+ "circle-check": /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
622
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
623
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m8 12 2.7 2.7L16.5 9" })
624
+ ] }),
625
+ "circle-close": /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
626
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
627
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m9 9 6 6M15 9l-6 6" })
628
+ ] }),
629
+ "circle-plus": /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
630
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
631
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M12 8v8M8 12h8" })
632
+ ] }),
633
+ "circle-minus": /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
634
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
635
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M8 12h8" })
636
+ ] }),
637
+ "chevron-left": /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m15.5 5-7 7 7 7" }),
638
+ "chevron-right": /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m8.5 5 7 7-7 7" }),
639
+ "chevron-up": /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m5 15.5 7-7 7 7" }),
640
+ "chevron-down": /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m5 8.5 7 7 7-7" }),
641
+ "double-left": /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
642
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m12 5-7 7 7 7" }),
643
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m19 5-7 7 7 7" })
644
+ ] }),
645
+ "double-right": /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
646
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m5 5 7 7-7 7" }),
647
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m12 5 7 7-7 7" })
648
+ ] }),
649
+ "arrow-left": /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
650
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m10 5-7 7 7 7" }),
651
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M3 12h18" })
652
+ ] }),
653
+ "arrow-right": /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
654
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m14 5 7 7-7 7" }),
655
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M3 12h18" })
656
+ ] }),
657
+ "arrow-up": /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
658
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m5 10 7-7 7 7" }),
659
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M12 3v18" })
660
+ ] }),
661
+ "arrow-down": /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
662
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m5 14 7 7 7-7" }),
663
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M12 3v18" })
664
+ ] }),
665
+ menu: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M4 6h16M4 12h16M4 18h16" }),
666
+ "more-horizontal": /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M5 12h.1M12 12h.1M19 12h.1" }),
667
+ "more-vertical": /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M12 5v.1M12 12v.1M12 19v.1" }),
668
+ home: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
669
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m3.5 11 8.5-7 8.5 7" }),
670
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M5.5 9.5V20h13V9.5M9.5 20v-6h5v6" })
671
+ ] }),
672
+ user: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
673
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "12", cy: "8", r: "4" }),
674
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M4.5 21c.7-4.2 3.2-6.5 7.5-6.5s6.8 2.3 7.5 6.5" })
675
+ ] }),
676
+ users: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
677
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "9", cy: "8", r: "3.5" }),
678
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M2.8 20c.6-3.8 2.7-5.8 6.2-5.8s5.6 2 6.2 5.8" }),
679
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M15 5.2a3.5 3.5 0 0 1 0 6.6M16.2 14.5c2.9.5 4.4 2.3 4.9 5.5" })
680
+ ] }),
681
+ settings: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
682
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "12", cy: "12", r: "3" }),
683
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M19.4 15a1.7 1.7 0 0 0 .3 1.9l.1.1-2.8 2.8-.1-.1a1.7 1.7 0 0 0-1.9-.3 1.7 1.7 0 0 0-1 1.6v.2h-4V21a1.7 1.7 0 0 0-1-1.6 1.7 1.7 0 0 0-1.9.3l-.1.1L4.2 17l.1-.1a1.7 1.7 0 0 0 .3-1.9A1.7 1.7 0 0 0 3 14H2.8v-4H3a1.7 1.7 0 0 0 1.6-1 1.7 1.7 0 0 0-.3-1.9L4.2 7 7 4.2l.1.1a1.7 1.7 0 0 0 1.9.3A1.7 1.7 0 0 0 10 3v-.2h4V3a1.7 1.7 0 0 0 1 1.6 1.7 1.7 0 0 0 1.9-.3l.1-.1L19.8 7l-.1.1a1.7 1.7 0 0 0-.3 1.9 1.7 1.7 0 0 0 1.6 1h.2v4H21a1.7 1.7 0 0 0-1.6 1Z" })
684
+ ] }),
685
+ edit: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
686
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M4 20h4l11-11a2.8 2.8 0 0 0-4-4L4 16v4Z" }),
687
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m13.5 6.5 4 4M4 20h16" })
688
+ ] }),
689
+ copy: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
690
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("rect", { x: "8", y: "8", width: "12", height: "12", rx: "2.5" }),
691
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2" })
692
+ ] }),
693
+ trash: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M4 7h16M9 3h6l1 4H8l1-4ZM6 7l1 14h10l1-14M10 11v6M14 11v6" }) }),
694
+ scissors: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
695
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "6", cy: "7", r: "3" }),
696
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "6", cy: "17", r: "3" }),
697
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m8.7 8.3 11.3 6.2M8.7 15.7 20 9.5" })
698
+ ] }),
699
+ undo: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
700
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m8 7-5 5 5 5" }),
701
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M3 12h10a7 7 0 0 1 7 7" })
702
+ ] }),
703
+ redo: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
704
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m16 7 5 5-5 5" }),
705
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M21 12H11a7 7 0 0 0-7 7" })
706
+ ] }),
707
+ "zoom-in": /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
708
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "10.8", cy: "10.8", r: "6.8" }),
709
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m15.8 15.8 5.2 5.2M10.8 7.8v6M7.8 10.8h6" })
710
+ ] }),
711
+ "zoom-out": /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
712
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "10.8", cy: "10.8", r: "6.8" }),
713
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m15.8 15.8 5.2 5.2M7.8 10.8h6" })
714
+ ] }),
715
+ download: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M12 3v12M7 10l5 5 5-5M4 20h16" }) }),
716
+ upload: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M12 16V4M7 9l5-5 5 5M4 20h16" }) }),
717
+ refresh: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
718
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M20 7v5h-5" }),
719
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M19 12a7.5 7.5 0 1 1-2-5" })
720
+ ] }),
721
+ loader: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M18.4 5.6l-2.1 2.1M7.7 16.3l-2.1 2.1" }),
722
+ calendar: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
723
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("rect", { x: "3", y: "5", width: "18", height: "16", rx: "2.5" }),
724
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M8 3v4M16 3v4M3 10h18M7 14h2M11 14h2M15 14h2M7 18h2M11 18h2" })
725
+ ] }),
726
+ clock: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
727
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
728
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M12 7v5l3.5 2" })
729
+ ] }),
730
+ mail: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
731
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("rect", { x: "3", y: "5", width: "18", height: "14", rx: "2.5" }),
732
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m4 7 8 6 8-6" })
733
+ ] }),
734
+ phone: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M8.2 3.5 5.4 4.8c-1 .5-1.5 1.7-1.1 2.8 2.2 5.9 6.2 9.9 12.1 12.1 1.1.4 2.3-.1 2.8-1.1l1.3-2.8-4.2-2-1.4 2.1c-2.8-1.2-5.6-4-6.8-6.8l2.1-1.4-2-4.2Z" }),
735
+ link: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
736
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m9.5 14.5 5-5" }),
737
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M7.5 16.5 6 18a3.5 3.5 0 0 1-5-5l3-3a3.5 3.5 0 0 1 5 0M16.5 7.5 18 6a3.5 3.5 0 0 1 5 5l-3 3a3.5 3.5 0 0 1-5 0" })
738
+ ] }),
739
+ "external-link": /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
740
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M14 4h6v6M20 4 11 13" }),
741
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M19 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h6" })
742
+ ] }),
743
+ eye: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
744
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M2.5 12s3.5-6 9.5-6 9.5 6 9.5 6-3.5 6-9.5 6-9.5-6-9.5-6Z" }),
745
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "12", cy: "12", r: "3" })
746
+ ] }),
747
+ "eye-off": /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m3 3 18 18M10.6 6.1A10 10 0 0 1 12 6c6 0 9.5 6 9.5 6a14.5 14.5 0 0 1-2.2 3M6.4 6.4C3.9 8.2 2.5 12 2.5 12s3.5 6 9.5 6a9.7 9.7 0 0 0 3-.5M9.9 9.9a3 3 0 0 0 4.2 4.2" }) }),
748
+ lock: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
749
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("rect", { x: "4", y: "10", width: "16", height: "11", rx: "2.5" }),
750
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M8 10V7a4 4 0 0 1 8 0v3M12 14v3" })
751
+ ] }),
752
+ unlock: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
753
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("rect", { x: "4", y: "10", width: "16", height: "11", rx: "2.5" }),
754
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M8 10V7a4 4 0 0 1 7.5-2M12 14v3" })
755
+ ] }),
756
+ bell: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
757
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M18 9a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9Z" }),
758
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M10 21h4" })
759
+ ] }),
760
+ star: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m12 3 2.8 5.7 6.2.9-4.5 4.4 1.1 6.2-5.6-3-5.6 3 1.1-6.2L3 9.6l6.2-.9L12 3Z" }),
761
+ heart: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M20.8 5.8a5.5 5.5 0 0 0-7.8 0L12 6.9l-1-1.1a5.5 5.5 0 1 0-7.8 7.8L12 21l8.8-7.4a5.5 5.5 0 0 0 0-7.8Z" }),
762
+ file: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
763
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M6 3h8l4 4v14H6V3Z" }),
764
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M14 3v5h4" })
765
+ ] }),
766
+ folder: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M3 6h7l2 2h9v11H3V6Z" }),
767
+ image: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
768
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2.5" }),
769
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "9", cy: "9", r: "2" }),
770
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m4 17 4.5-4.5 3.5 3 2.5-2.5 5.5 5" })
771
+ ] }),
772
+ filter: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M3 5h18l-7 8v6l-4 2v-8L3 5Z" }),
773
+ "sort-ascending": /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
774
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M7 19V5M3.5 8.5 7 5l3.5 3.5" }),
775
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M13 7h8M13 12h6M13 17h4" })
776
+ ] }),
777
+ "sort-descending": /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
778
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M7 5v14M3.5 15.5 7 19l3.5-3.5" }),
779
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M13 7h4M13 12h6M13 17h8" })
780
+ ] }),
781
+ play: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
782
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
783
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m10 8 6 4-6 4V8Z" })
784
+ ] }),
785
+ pause: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
786
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
787
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M9.5 9v6M14.5 9v6" })
788
+ ] }),
789
+ book: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
790
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M4 5.5A2.5 2.5 0 0 1 6.5 3H11v17H6.5A2.5 2.5 0 0 0 4 22V5.5Z" }),
791
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M20 5.5A2.5 2.5 0 0 0 17.5 3H13v17h4.5A2.5 2.5 0 0 1 20 22V5.5Z" })
792
+ ] }),
793
+ component: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
794
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("rect", { x: "4", y: "4", width: "6", height: "6", rx: "1.5" }),
795
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("rect", { x: "14", y: "4", width: "6", height: "6", rx: "1.5" }),
796
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("rect", { x: "4", y: "14", width: "6", height: "6", rx: "1.5" }),
797
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("rect", { x: "14", y: "14", width: "6", height: "6", rx: "1.5" })
798
+ ] }),
799
+ token: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
800
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "12", cy: "12", r: "4" }),
801
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M12 2.5v3M12 18.5v3M2.5 12h3M18.5 12h3M5.3 5.3l2.1 2.1M16.6 16.6l2.1 2.1M18.7 5.3l-2.1 2.1M7.4 16.6l-2.1 2.1" })
802
+ ] }),
803
+ sun: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
804
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "12", cy: "12", r: "3.6" }),
805
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M12 2.5v2M12 19.5v2M2.5 12h2M19.5 12h2M5.3 5.3l1.4 1.4M17.3 17.3l1.4 1.4M18.7 5.3l-1.4 1.4M6.7 17.3l-1.4 1.4" })
806
+ ] }),
807
+ moon: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M20 15.2A8 8 0 0 1 8.8 4 8.5 8.5 0 1 0 20 15.2Z" }),
808
+ code: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m9 18-6-6 6-6M15 6l6 6-6 6" }),
809
+ github: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M9 19c-4 1.2-4-2-5-2.5M14 22v-3.1c0-.9.3-1.5.8-1.9 2.7-.3 5.5-1.3 5.5-6A4.7 4.7 0 0 0 19 7.7 4.4 4.4 0 0 0 18.9 4S17.8 3.7 15 5.3a11.7 11.7 0 0 0-6 0C6.2 3.7 5.1 4 5.1 4A4.4 4.4 0 0 0 5 7.7 4.7 4.7 0 0 0 3.7 11c0 4.7 2.8 5.7 5.5 6 .5.4.8 1 .8 1.9V22" })
810
+ };
811
+ var iconPaths = { ...coreIconPaths, ...extendedIconPaths };
812
+ var ICON_NAMES = Object.freeze(Object.keys(iconPaths));
813
+ var filledIconPaths = {
814
+ info: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
815
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
816
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M12 10.5v6M12 7.2v.1", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
817
+ ] }),
818
+ question: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
819
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
820
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M9.6 9a2.5 2.5 0 1 1 3.6 2.3c-.8.5-1.2 1.1-1.2 2.1M12 16.8v.1", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
821
+ ] }),
822
+ warning: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
823
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M10.3 3.5 1.8 19a2 2 0 0 0 1.8 3h16.8a2 2 0 0 0 1.8-3L13.7 3.5a2 2 0 0 0-3.4 0Z", fill: "currentColor", stroke: "none" }),
824
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M12 9v5M12 18v.1", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
825
+ ] }),
826
+ "circle-check": /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
827
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
828
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m7.5 12 3 3 6-6", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
829
+ ] }),
830
+ "circle-close": /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
831
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
832
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m8.8 8.8 6.4 6.4M15.2 8.8l-6.4 6.4", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
833
+ ] }),
834
+ "circle-plus": /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
835
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
836
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M12 7.5v9M7.5 12h9", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
837
+ ] }),
838
+ "circle-minus": /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
839
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
840
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M7.5 12h9", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
841
+ ] }),
842
+ home: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M2.6 10.8 12 2.8l9.4 8a1 1 0 0 1-1.3 1.5l-.6-.5V21h-5.2v-6.2H9.7V21H4.5v-9.2l-.6.5a1 1 0 1 1-1.3-1.5Z", fill: "currentColor", stroke: "none" }),
843
+ user: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
844
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "12", cy: "7.5", r: "4.5", fill: "currentColor", stroke: "none" }),
845
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M3.5 21c.7-5 3.6-7.5 8.5-7.5s7.8 2.5 8.5 7.5H3.5Z", fill: "currentColor", stroke: "none" })
846
+ ] }),
847
+ users: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
848
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "8.5", cy: "8", r: "3.8", fill: "currentColor", stroke: "none" }),
849
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "17", cy: "8.5", r: "3", fill: "currentColor", stroke: "none", opacity: ".7" }),
850
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M1.8 21c.6-4.6 2.8-7 6.7-7s6.1 2.4 6.7 7H1.8ZM14.4 15.2c3.9-.2 6.4 1.7 7 5.8h-4.5a9.9 9.9 0 0 0-2.5-5.8Z", fill: "currentColor", stroke: "none" })
851
+ ] }),
852
+ trash: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M8 3h8l1 3h4v2H3V6h4l1-3Zm-2.5 7h13l-1 11h-11l-1-11Z", fill: "currentColor", stroke: "none" }),
853
+ bell: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M12 2.5a2 2 0 0 1 2 1.6c3 .9 5 3.6 5 6.9v4.3l2 3.2H3l2-3.2V11c0-3.3 2-6 5-6.9a2 2 0 0 1 2-1.6ZM9.2 20h5.6a3 3 0 0 1-5.6 0Z", fill: "currentColor", stroke: "none" }),
854
+ star: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m12 2.2 3 6 6.6 1-4.8 4.6 1.1 6.6-5.9-3.1-5.9 3.1 1.1-6.6-4.8-4.6 6.6-1 3-6Z", fill: "currentColor", stroke: "none" }),
855
+ heart: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M12 21.3 3.1 13.7A5.8 5.8 0 0 1 11 5.2l1 1 1-1a5.8 5.8 0 0 1 7.9 8.5L12 21.3Z", fill: "currentColor", stroke: "none" }),
856
+ mail: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
857
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("rect", { x: "2.5", y: "4.5", width: "19", height: "15", rx: "2.5", fill: "currentColor", stroke: "none" }),
858
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m4.5 7 7.5 5.8L19.5 7", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "1.8" })
859
+ ] }),
860
+ lock: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M7 10V7a5 5 0 0 1 10 0v3h1.5a2.5 2.5 0 0 1 2.5 2.5v7a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 19.5v-7A2.5 2.5 0 0 1 5.5 10H7Zm2.5 0h5V7a2.5 2.5 0 0 0-5 0v3Z", fill: "currentColor", stroke: "none" }),
861
+ unlock: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M7 10V7a5 5 0 0 1 9.5-2.2l-2.2 1.1A2.5 2.5 0 0 0 9.5 7v3h9A2.5 2.5 0 0 1 21 12.5v7a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 19.5v-7A2.5 2.5 0 0 1 5.5 10H7Z", fill: "currentColor", stroke: "none" }),
862
+ calendar: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
863
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("rect", { x: "2.5", y: "4.5", width: "19", height: "17", rx: "2.5", fill: "currentColor", stroke: "none" }),
864
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M3 9.5h18M8 2.5v4M16 2.5v4", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "1.8" })
865
+ ] }),
866
+ clock: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
867
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
868
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M12 6.5V12l4 2.3", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
869
+ ] }),
870
+ file: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M5 2.5h10l4 4V22H5V2.5Zm9 1.8V8h3.7L14 4.3Z", fill: "currentColor", stroke: "none" }),
871
+ folder: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M2.5 5h7l2.2 2.5h9.8V20H2.5V5Z", fill: "currentColor", stroke: "none" }),
872
+ image: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
873
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("rect", { x: "2.5", y: "3.5", width: "19", height: "17", rx: "2.5", fill: "currentColor", stroke: "none" }),
874
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m4.5 18 4.3-4.6 3.4 3 2.5-2.6 4.8 4.2", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "1.7" }),
875
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "8", cy: "8.5", r: "1.7", fill: "var(--sia-icon-contrast, #fff)", stroke: "none" })
876
+ ] }),
877
+ filter: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M2 4h20l-7.8 9v6.2L9.8 22v-9L2 4Z", fill: "currentColor", stroke: "none" }),
878
+ play: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
879
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
880
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "m10 7.8 6.5 4.2-6.5 4.2V7.8Z", fill: "var(--sia-icon-contrast, #fff)", stroke: "none" })
881
+ ] }),
882
+ pause: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
883
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
884
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M8.5 7.5h2.5v9H8.5v-9Zm4.5 0h2.5v9H13v-9Z", fill: "var(--sia-icon-contrast, #fff)", stroke: "none" })
885
+ ] }),
886
+ book: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M3 4.5A3.5 3.5 0 0 1 6.5 1H11v19H6.5A3.5 3.5 0 0 0 3 23V4.5ZM21 4.5A3.5 3.5 0 0 0 17.5 1H13v19h4.5A3.5 3.5 0 0 1 21 23V4.5Z", fill: "currentColor", stroke: "none" }),
887
+ component: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
888
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("rect", { x: "3", y: "3", width: "8", height: "8", rx: "2", fill: "currentColor", stroke: "none" }),
889
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("rect", { x: "13", y: "3", width: "8", height: "8", rx: "2", fill: "currentColor", stroke: "none" }),
890
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("rect", { x: "3", y: "13", width: "8", height: "8", rx: "2", fill: "currentColor", stroke: "none" }),
891
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("rect", { x: "13", y: "13", width: "8", height: "8", rx: "2", fill: "currentColor", stroke: "none" })
892
+ ] }),
893
+ token: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
894
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "12", cy: "12", r: "5", fill: "currentColor", stroke: "none" }),
895
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M12 1v4M12 19v4M1 12h4M19 12h4M4.2 4.2 7 7M17 17l2.8 2.8M19.8 4.2 17 7M7 17l-2.8 2.8", stroke: "currentColor", strokeWidth: "2.2" })
896
+ ] })
897
+ };
898
+ var FILLED_ICON_NAMES = Object.freeze(Object.keys(filledIconPaths));
899
+ var Icon = (0, import_react2.forwardRef)(function Icon2({ name, size = "1em", strokeWidth = 1.8, rotate = 0, spin = false, pulse = false, label, variant = "outline", className = "", style, ...props }, ref) {
900
+ const resolvedSize = typeof size === "number" ? `${size}px` : size;
901
+ const mergedStyle = { "--sia-icon-size": resolvedSize, "--sia-icon-rotate": `${rotate}deg`, ...style };
902
+ const animationClass = spin ? " sia-icon--spin" : pulse ? " sia-icon--pulse" : "";
903
+ const filledPath = filledIconPaths[name];
904
+ const resolvedVariant = variant === "filled" && filledPath ? "filled" : "outline";
905
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
906
+ "span",
907
+ {
908
+ ref,
909
+ className: `sia-icon${animationClass} ${className}`.trim(),
910
+ "data-variant": resolvedVariant,
911
+ role: label ? "img" : void 0,
912
+ "aria-label": label,
913
+ "aria-hidden": label ? void 0 : true,
914
+ style: mergedStyle,
915
+ ...props,
916
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth, strokeLinecap: "round", strokeLinejoin: "round", focusable: "false", children: resolvedVariant === "filled" ? filledPath : iconPaths[name] })
917
+ }
918
+ );
919
+ });
920
+
921
+ // src/components/Navigation.tsx
922
+ var import_react5 = require("react");
923
+
924
+ // src/components/PopupPortal.tsx
925
+ var import_react3 = require("react");
926
+ var import_react_dom = require("react-dom");
927
+ var import_jsx_runtime4 = require("react/jsx-runtime");
928
+ function setForwardedRef(ref, value) {
929
+ if (typeof ref === "function") ref(value);
930
+ else if (ref) ref.current = value;
931
+ }
932
+ function clamp(value, min, max) {
933
+ return Math.min(Math.max(value, min), Math.max(min, max));
934
+ }
935
+ var PopupPortal = (0, import_react3.forwardRef)(function PopupPortal2({
936
+ anchorRef,
937
+ open = true,
938
+ placement = "bottom-start",
939
+ offset = 6,
940
+ viewportPadding = 8,
941
+ className = "",
942
+ style,
943
+ children,
944
+ ...props
945
+ }, forwardedRef) {
946
+ const popupRef = (0, import_react3.useRef)(null);
947
+ const [position, setPosition] = (0, import_react3.useState)();
948
+ (0, import_react3.useLayoutEffect)(() => {
949
+ if (!open || typeof document === "undefined") {
950
+ setPosition(void 0);
951
+ return;
952
+ }
953
+ const update = () => {
954
+ const anchor = anchorRef.current;
955
+ const popup = popupRef.current;
956
+ if (!anchor || !popup) return;
957
+ const anchorRect = anchor.getBoundingClientRect();
958
+ const popupRect = popup.getBoundingClientRect();
959
+ const viewportWidth = document.documentElement.clientWidth;
960
+ const viewportHeight = document.documentElement.clientHeight;
961
+ let resolvedPlacement = placement;
962
+ const availableBelow = Math.max(0, viewportHeight - viewportPadding - anchorRect.bottom - offset);
963
+ const availableAbove = Math.max(0, anchorRect.top - offset - viewportPadding);
964
+ const availableRight = Math.max(0, viewportWidth - viewportPadding - anchorRect.right - offset);
965
+ const availableLeft = Math.max(0, anchorRect.left - offset - viewportPadding);
966
+ const horizontalSide = placement.startsWith("right") || placement.startsWith("left");
967
+ if (horizontalSide) {
968
+ const prefersRight = placement.startsWith("right");
969
+ const fitsRight = popupRect.width <= availableRight;
970
+ const fitsLeft = popupRect.width <= availableLeft;
971
+ if (prefersRight && !fitsRight && (fitsLeft || availableLeft > availableRight)) {
972
+ resolvedPlacement = placement.replace("right", "left");
973
+ } else if (!prefersRight && !fitsLeft && (fitsRight || availableRight > availableLeft)) {
974
+ resolvedPlacement = placement.replace("left", "right");
975
+ }
976
+ } else {
977
+ const prefersBottom = placement.startsWith("bottom");
978
+ const fitsBelow = popupRect.height <= availableBelow;
979
+ const fitsAbove = popupRect.height <= availableAbove;
980
+ if (prefersBottom && !fitsBelow && (fitsAbove || availableAbove > availableBelow)) {
981
+ resolvedPlacement = placement.replace("bottom", "top");
982
+ } else if (!prefersBottom && !fitsAbove && (fitsBelow || availableBelow > availableAbove)) {
983
+ resolvedPlacement = placement.replace("top", "bottom");
984
+ }
985
+ }
986
+ const resolvedHorizontalSide = resolvedPlacement.startsWith("right") || resolvedPlacement.startsWith("left");
987
+ const top = resolvedHorizontalSide ? resolvedPlacement.endsWith("end") ? anchorRect.bottom - popupRect.height : anchorRect.top : resolvedPlacement.startsWith("bottom") ? anchorRect.bottom + offset : anchorRect.top - popupRect.height - offset;
988
+ const availableHeight = resolvedHorizontalSide ? Math.max(0, viewportHeight - viewportPadding * 2) : resolvedPlacement.startsWith("bottom") ? availableBelow : availableAbove;
989
+ const alignedLeft = resolvedHorizontalSide ? resolvedPlacement.startsWith("right") ? anchorRect.right + offset : anchorRect.left - popupRect.width - offset : resolvedPlacement.endsWith("end") ? anchorRect.right - popupRect.width : anchorRect.left;
990
+ const next = {
991
+ top: clamp(top, viewportPadding, viewportHeight - popupRect.height - viewportPadding),
992
+ left: clamp(alignedLeft, viewportPadding, viewportWidth - popupRect.width - viewportPadding),
993
+ anchorWidth: anchorRect.width,
994
+ availableHeight,
995
+ placement: resolvedPlacement
996
+ };
997
+ setPosition((current) => current && current.top === next.top && current.left === next.left && current.anchorWidth === next.anchorWidth && current.availableHeight === next.availableHeight && current.placement === next.placement ? current : next);
998
+ };
999
+ update();
1000
+ window.addEventListener("resize", update);
1001
+ window.addEventListener("scroll", update, true);
1002
+ const observer = new ResizeObserver(update);
1003
+ if (anchorRef.current) observer.observe(anchorRef.current);
1004
+ if (popupRef.current) observer.observe(popupRef.current);
1005
+ return () => {
1006
+ window.removeEventListener("resize", update);
1007
+ window.removeEventListener("scroll", update, true);
1008
+ observer.disconnect();
1009
+ };
1010
+ }, [anchorRef, offset, open, placement, viewportPadding]);
1011
+ if (!open || typeof document === "undefined") return null;
1012
+ return (0, import_react_dom.createPortal)(
1013
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1014
+ "div",
1015
+ {
1016
+ ref: (node) => {
1017
+ popupRef.current = node;
1018
+ setForwardedRef(forwardedRef, node);
1019
+ },
1020
+ className: `sia-popup-portal ${className}`.trim(),
1021
+ "data-sia-popup-layer": "",
1022
+ "data-placement": position?.placement ?? placement,
1023
+ style: {
1024
+ ...style,
1025
+ "--sia-popup-anchor-width": `${position?.anchorWidth ?? anchorRef.current?.getBoundingClientRect().width ?? 0}px`,
1026
+ "--sia-popup-available-height": position ? `${position.availableHeight}px` : void 0,
1027
+ top: position?.top ?? 0,
1028
+ left: position?.left ?? 0,
1029
+ visibility: position ? "visible" : "hidden"
1030
+ },
1031
+ ...props,
1032
+ children
1033
+ }
1034
+ ),
1035
+ document.body
1036
+ );
1037
+ });
1038
+
1039
+ // src/components/shared.ts
1040
+ var import_react4 = require("react");
1041
+ function useControllableState({ value, defaultValue, onChange }) {
1042
+ const [internalValue, setInternalValue] = (0, import_react4.useState)(defaultValue);
1043
+ const controlled = value !== void 0;
1044
+ const currentValue = controlled ? value : internalValue;
1045
+ const setValue = (0, import_react4.useCallback)((nextValue) => {
1046
+ if (Object.is(currentValue, nextValue)) return;
1047
+ if (!controlled) setInternalValue(nextValue);
1048
+ onChange?.(nextValue);
1049
+ }, [controlled, currentValue, onChange]);
1050
+ return [currentValue, setValue];
1051
+ }
1052
+
1053
+ // src/components/Navigation.tsx
1054
+ var import_jsx_runtime5 = require("react/jsx-runtime");
1055
+ function MenuPopup({
1056
+ anchorRef,
1057
+ open,
1058
+ placement,
1059
+ menuId,
1060
+ theme,
1061
+ children,
1062
+ onMouseEnter,
1063
+ onMouseLeave
1064
+ }) {
1065
+ const [mounted, setMounted] = (0, import_react5.useState)(open);
1066
+ (0, import_react5.useEffect)(() => {
1067
+ if (open) {
1068
+ setMounted(true);
1069
+ return void 0;
1070
+ }
1071
+ const timer = window.setTimeout(() => setMounted(false), 160);
1072
+ return () => window.clearTimeout(timer);
1073
+ }, [open]);
1074
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1075
+ PopupPortal,
1076
+ {
1077
+ anchorRef,
1078
+ open: mounted,
1079
+ placement,
1080
+ offset: 4,
1081
+ className: `sia-menu__popup sia-menu--${theme}${open ? " is-open" : " is-closing"}`,
1082
+ "data-sia-menu-owner": menuId,
1083
+ onMouseEnter,
1084
+ onMouseLeave,
1085
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("ul", { className: "sia-menu__popup-list", role: "menu", children })
1086
+ }
1087
+ );
1088
+ }
1089
+ function MenuEntry({
1090
+ item,
1091
+ level,
1092
+ parents,
1093
+ props
1094
+ }) {
1095
+ const anchorRef = (0, import_react5.useRef)(null);
1096
+ const closeTimerRef = (0, import_react5.useRef)(void 0);
1097
+ const hasChildren = Boolean(item.children?.length);
1098
+ const isOpen = props.open.includes(item.key);
1099
+ const isSelected = props.selected.includes(item.key);
1100
+ const path = [item.key, ...parents];
1101
+ const collapsed = props.inlineCollapsed && level === 0;
1102
+ const inlineSubmenu = props.mode === "inline" && !collapsed;
1103
+ (0, import_react5.useEffect)(() => () => {
1104
+ if (closeTimerRef.current !== void 0) window.clearTimeout(closeTimerRef.current);
1105
+ }, []);
1106
+ function cancelClose() {
1107
+ if (closeTimerRef.current !== void 0) {
1108
+ window.clearTimeout(closeTimerRef.current);
1109
+ closeTimerRef.current = void 0;
1110
+ }
1111
+ }
1112
+ function scheduleClose() {
1113
+ cancelClose();
1114
+ closeTimerRef.current = window.setTimeout(() => props.toggle(item.key, false), 100);
1115
+ }
1116
+ const hover = props.triggerSubMenuAction === "hover" && hasChildren && !inlineSubmenu;
1117
+ const submenu = hasChildren ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(MenuLevel, { items: item.children ?? [], level: level + 1, parents: [item.key, ...parents], props }) : null;
1118
+ const popupPlacement = props.mode === "horizontal" && level === 0 ? "bottom-start" : "right-start";
1119
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1120
+ "li",
1121
+ {
1122
+ className: `sia-menu__entry${isOpen ? " is-open" : ""}${isSelected ? " is-selected" : ""}${item.disabled ? " is-disabled" : ""}${item.danger ? " is-danger" : ""}`,
1123
+ onMouseEnter: hover ? () => {
1124
+ cancelClose();
1125
+ props.toggle(item.key, true);
1126
+ } : void 0,
1127
+ onMouseLeave: hover ? scheduleClose : void 0,
1128
+ children: [
1129
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1130
+ "button",
1131
+ {
1132
+ ref: anchorRef,
1133
+ type: "button",
1134
+ className: "sia-menu__item",
1135
+ style: { paddingInlineStart: collapsed ? void 0 : 12 + level * props.inlineIndent },
1136
+ title: collapsed ? item.title ?? (typeof item.label === "string" ? item.label : void 0) : item.title,
1137
+ disabled: item.disabled,
1138
+ "aria-current": isSelected ? "page" : void 0,
1139
+ "aria-expanded": hasChildren ? isOpen : void 0,
1140
+ onClick: (event) => hasChildren ? props.toggle(item.key) : props.select(item, path, event),
1141
+ children: [
1142
+ item.icon ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "sia-menu__icon", children: item.icon }) : null,
1143
+ !collapsed ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "sia-menu__label", children: item.label }) : null,
1144
+ !collapsed && item.extra ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "sia-menu__extra", children: item.extra }) : null,
1145
+ !collapsed && hasChildren ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { className: "sia-menu__expand-icon", name: "chevron-down", size: 13 }) : null
1146
+ ]
1147
+ }
1148
+ ),
1149
+ hasChildren ? inlineSubmenu ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("ul", { className: "sia-menu__submenu", role: "menu", "aria-hidden": !isOpen, children: submenu }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1150
+ MenuPopup,
1151
+ {
1152
+ anchorRef,
1153
+ open: isOpen,
1154
+ placement: popupPlacement,
1155
+ menuId: props.menuId,
1156
+ theme: props.theme,
1157
+ onMouseEnter: hover ? cancelClose : void 0,
1158
+ onMouseLeave: hover ? scheduleClose : void 0,
1159
+ children: submenu
1160
+ }
1161
+ ) : null
1162
+ ]
1163
+ }
1164
+ );
1165
+ }
1166
+ function MenuLevel({
1167
+ items,
1168
+ level,
1169
+ parents,
1170
+ props
1171
+ }) {
1172
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, { children: items.map((item, index) => {
1173
+ if (item.type === "divider") return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("li", { className: "sia-menu__divider", role: "separator" }, item.key || `divider-${index}`);
1174
+ if (item.type === "group") return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("li", { className: "sia-menu__group", children: [
1175
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "sia-menu__group-title", children: item.label }),
1176
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("ul", { role: "group", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(MenuLevel, { items: item.children ?? [], level: level + 1, parents: [...parents, item.key], props }) })
1177
+ ] }, item.key);
1178
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(MenuEntry, { item, level, parents, props }, item.key);
1179
+ }) });
1180
+ }
1181
+ function Menu({
1182
+ items,
1183
+ mode = "vertical",
1184
+ theme = "light",
1185
+ selectedKeys,
1186
+ defaultSelectedKeys = [],
1187
+ openKeys,
1188
+ defaultOpenKeys = [],
1189
+ multiple = false,
1190
+ selectable = true,
1191
+ inlineCollapsed = false,
1192
+ inlineIndent = 20,
1193
+ triggerSubMenuAction = "click",
1194
+ onClick,
1195
+ onSelect,
1196
+ onDeselect,
1197
+ onOpenChange,
1198
+ className = "",
1199
+ ...rest
1200
+ }) {
1201
+ const menuId = (0, import_react5.useId)();
1202
+ const rootRef = (0, import_react5.useRef)(null);
1203
+ const [selected, setSelected] = useControllableState({ value: selectedKeys, defaultValue: defaultSelectedKeys });
1204
+ const [open, setOpen] = useControllableState({ value: openKeys, defaultValue: defaultOpenKeys, onChange: (next) => onOpenChange?.([...next]) });
1205
+ (0, import_react5.useEffect)(() => {
1206
+ if (mode === "inline" || !open.length) return void 0;
1207
+ const closeOutside = (event) => {
1208
+ const target = event.target;
1209
+ if (rootRef.current?.contains(target)) return;
1210
+ const owner = target instanceof Element ? target.closest("[data-sia-menu-owner]")?.getAttribute("data-sia-menu-owner") : null;
1211
+ if (owner !== menuId) setOpen([]);
1212
+ };
1213
+ document.addEventListener("pointerdown", closeOutside);
1214
+ return () => document.removeEventListener("pointerdown", closeOutside);
1215
+ }, [menuId, mode, open.length, setOpen]);
1216
+ function toggle(key, force) {
1217
+ const shouldOpen = force ?? !open.includes(key);
1218
+ setOpen(shouldOpen ? open.includes(key) ? open : [...open, key] : open.filter((item) => item !== key));
1219
+ }
1220
+ function select(item, keyPath, domEvent) {
1221
+ const info = { key: item.key, keyPath, domEvent, item };
1222
+ onClick?.(info);
1223
+ if (!selectable) return;
1224
+ const exists = selected.includes(item.key);
1225
+ const next = multiple ? exists ? selected.filter((key) => key !== item.key) : [...selected, item.key] : [item.key];
1226
+ setSelected(next);
1227
+ if (exists && multiple) onDeselect?.({ ...info, selectedKeys: [...next] });
1228
+ else onSelect?.({ ...info, selectedKeys: [...next] });
1229
+ if (mode !== "inline") setOpen([]);
1230
+ }
1231
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("ul", { ref: rootRef, className: `sia-menu sia-menu--${mode} sia-menu--${theme}${inlineCollapsed ? " sia-menu--collapsed" : ""} ${className}`.trim(), role: "menu", ...rest, "data-sia-menu-owner": menuId, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(MenuLevel, { items, level: 0, parents: [], props: { menuId, mode, theme, multiple, selectable, inlineCollapsed, inlineIndent, triggerSubMenuAction, selected, open, select, toggle } }) });
1232
+ }
1233
+
1234
+ // src/components/Dropdown.tsx
1235
+ var import_jsx_runtime6 = require("react/jsx-runtime");
1236
+ var placementMap = {
1237
+ bottomLeft: "bottom-start",
1238
+ bottomRight: "bottom-end",
1239
+ topLeft: "top-start",
1240
+ topRight: "top-end"
1241
+ };
1242
+ function DropdownRoot({
1243
+ menu,
1244
+ children,
1245
+ trigger = ["hover"],
1246
+ placement = "bottomLeft",
1247
+ open,
1248
+ defaultOpen = false,
1249
+ disabled = false,
1250
+ arrow = false,
1251
+ autoFocus = false,
1252
+ openDelay = 80,
1253
+ closeDelay = 120,
1254
+ popupClassName = "",
1255
+ popupStyle,
1256
+ popupRender,
1257
+ onOpenChange,
1258
+ className = "",
1259
+ onClick,
1260
+ onMouseEnter,
1261
+ onMouseLeave,
1262
+ onContextMenu,
1263
+ onKeyDown,
1264
+ ...props
1265
+ }) {
1266
+ const rootRef = (0, import_react6.useRef)(null);
1267
+ const contextAnchorRef = (0, import_react6.useRef)(null);
1268
+ const popupRef = (0, import_react6.useRef)(null);
1269
+ const openTimerRef = (0, import_react6.useRef)(void 0);
1270
+ const closeTimerRef = (0, import_react6.useRef)(void 0);
1271
+ const [internalOpen, setInternalOpen] = (0, import_react6.useState)(defaultOpen);
1272
+ const [mounted, setMounted] = (0, import_react6.useState)(open ?? defaultOpen);
1273
+ const [contextPoint, setContextPoint] = (0, import_react6.useState)();
1274
+ const visible = open ?? internalOpen;
1275
+ const triggerSet = new Set(trigger);
1276
+ const pointAtCenter = typeof arrow === "object" && arrow.pointAtCenter;
1277
+ function clearTimer(ref) {
1278
+ if (ref.current === void 0) return;
1279
+ window.clearTimeout(ref.current);
1280
+ ref.current = void 0;
1281
+ }
1282
+ function clearTimers() {
1283
+ clearTimer(openTimerRef);
1284
+ clearTimer(closeTimerRef);
1285
+ }
1286
+ function updateOpen(next, source) {
1287
+ clearTimers();
1288
+ if (next === visible) return;
1289
+ if (open === void 0) setInternalOpen(next);
1290
+ onOpenChange?.(next, { source });
1291
+ }
1292
+ function scheduleOpen() {
1293
+ clearTimer(closeTimerRef);
1294
+ clearTimer(openTimerRef);
1295
+ openTimerRef.current = window.setTimeout(() => updateOpen(true, "trigger"), Math.max(0, openDelay));
1296
+ }
1297
+ function scheduleClose() {
1298
+ clearTimer(openTimerRef);
1299
+ clearTimer(closeTimerRef);
1300
+ closeTimerRef.current = window.setTimeout(() => updateOpen(false, "trigger"), Math.max(0, closeDelay));
1301
+ }
1302
+ (0, import_react6.useEffect)(() => {
1303
+ if (visible) {
1304
+ setMounted(true);
1305
+ return void 0;
1306
+ }
1307
+ const timer = window.setTimeout(() => setMounted(false), 160);
1308
+ return () => window.clearTimeout(timer);
1309
+ }, [visible]);
1310
+ (0, import_react6.useEffect)(() => {
1311
+ if (!visible && !mounted) setContextPoint(void 0);
1312
+ }, [mounted, visible]);
1313
+ (0, import_react6.useEffect)(() => () => clearTimers(), []);
1314
+ (0, import_react6.useEffect)(() => {
1315
+ if (!visible) return void 0;
1316
+ const contextMenuTrigger = triggerSet.has("contextMenu");
1317
+ const closeOutside = (event) => {
1318
+ const target = event.target;
1319
+ if (popupRef.current?.contains(target)) return;
1320
+ if (!contextMenuTrigger && rootRef.current?.contains(target)) return;
1321
+ const targetOwner = target instanceof Element ? target.closest("[data-sia-menu-owner]")?.getAttribute("data-sia-menu-owner") : null;
1322
+ const menuOwner = popupRef.current?.querySelector("[data-sia-menu-owner]")?.getAttribute("data-sia-menu-owner");
1323
+ if (menuOwner && targetOwner === menuOwner) return;
1324
+ updateOpen(false, "trigger");
1325
+ };
1326
+ const closeWithEscape = (event) => {
1327
+ if (event.key !== "Escape") return;
1328
+ updateOpen(false, "trigger");
1329
+ rootRef.current?.querySelector("button, a, [tabindex]:not([tabindex='-1'])")?.focus();
1330
+ };
1331
+ const keepOpenOverNestedMenu = (event) => {
1332
+ const target = event.target;
1333
+ if (target instanceof Element && target.closest(".sia-menu__popup")) clearTimer(closeTimerRef);
1334
+ };
1335
+ document.addEventListener("pointerdown", closeOutside);
1336
+ document.addEventListener("keydown", closeWithEscape);
1337
+ document.addEventListener("pointerover", keepOpenOverNestedMenu);
1338
+ return () => {
1339
+ document.removeEventListener("pointerdown", closeOutside);
1340
+ document.removeEventListener("keydown", closeWithEscape);
1341
+ document.removeEventListener("pointerover", keepOpenOverNestedMenu);
1342
+ };
1343
+ }, [visible]);
1344
+ (0, import_react6.useEffect)(() => {
1345
+ if (!visible || !mounted || !autoFocus) return void 0;
1346
+ const frame = window.requestAnimationFrame(() => {
1347
+ popupRef.current?.querySelector(
1348
+ "[data-sia-dropdown-autofocus], input:not(:disabled), textarea:not(:disabled), .sia-menu__item:not(:disabled)"
1349
+ )?.focus();
1350
+ });
1351
+ return () => window.cancelAnimationFrame(frame);
1352
+ }, [autoFocus, mounted, visible]);
1353
+ function handleMenuClick(info) {
1354
+ info.domEvent.stopPropagation();
1355
+ menu.onClick?.(info);
1356
+ updateOpen(false, "menu");
1357
+ }
1358
+ function handleClick(event) {
1359
+ onClick?.(event);
1360
+ if (disabled || !triggerSet.has("click") || event.defaultPrevented) return;
1361
+ setContextPoint(void 0);
1362
+ updateOpen(!visible, "trigger");
1363
+ }
1364
+ function handleMouseEnter(event) {
1365
+ onMouseEnter?.(event);
1366
+ if (!disabled && triggerSet.has("hover")) scheduleOpen();
1367
+ }
1368
+ function handleMouseLeave(event) {
1369
+ onMouseLeave?.(event);
1370
+ if (!disabled && triggerSet.has("hover")) scheduleClose();
1371
+ }
1372
+ function handleContextMenu(event) {
1373
+ onContextMenu?.(event);
1374
+ if (disabled || !triggerSet.has("contextMenu") || event.defaultPrevented) return;
1375
+ event.preventDefault();
1376
+ event.stopPropagation();
1377
+ setContextPoint({ x: event.clientX, y: event.clientY });
1378
+ updateOpen(true, "trigger");
1379
+ }
1380
+ function handleKeyDown(event) {
1381
+ onKeyDown?.(event);
1382
+ if (disabled || event.defaultPrevented) return;
1383
+ if (event.key === "ArrowDown" && (triggerSet.has("click") || triggerSet.has("hover"))) {
1384
+ event.preventDefault();
1385
+ setContextPoint(void 0);
1386
+ updateOpen(true, "trigger");
1387
+ } else if (triggerSet.has("contextMenu") && (event.key === "ContextMenu" || event.shiftKey && event.key === "F10")) {
1388
+ event.preventDefault();
1389
+ setContextPoint(void 0);
1390
+ updateOpen(true, "trigger");
1391
+ }
1392
+ }
1393
+ const menuNode = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1394
+ Menu,
1395
+ {
1396
+ mode: "vertical",
1397
+ theme: menu.theme,
1398
+ items: menu.items,
1399
+ multiple: menu.multiple,
1400
+ selectable: menu.selectable,
1401
+ selectedKeys: menu.selectedKeys,
1402
+ defaultSelectedKeys: menu.defaultSelectedKeys,
1403
+ triggerSubMenuAction: "hover",
1404
+ onClick: handleMenuClick,
1405
+ onSelect: menu.onSelect,
1406
+ onDeselect: menu.onDeselect,
1407
+ className: "sia-dropdown__menu"
1408
+ }
1409
+ );
1410
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1411
+ "span",
1412
+ {
1413
+ ref: rootRef,
1414
+ className: `sia-dropdown${visible ? " is-open" : ""}${disabled ? " is-disabled" : ""} ${className}`.trim(),
1415
+ "aria-expanded": visible,
1416
+ "aria-haspopup": "menu",
1417
+ tabIndex: triggerSet.has("contextMenu") ? 0 : void 0,
1418
+ onClick: handleClick,
1419
+ onMouseEnter: handleMouseEnter,
1420
+ onMouseLeave: handleMouseLeave,
1421
+ onContextMenu: handleContextMenu,
1422
+ onKeyDown: handleKeyDown,
1423
+ ...props,
1424
+ children: [
1425
+ children,
1426
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1427
+ "span",
1428
+ {
1429
+ ref: contextAnchorRef,
1430
+ className: "sia-dropdown__context-anchor",
1431
+ style: contextPoint ? { left: contextPoint.x, top: contextPoint.y } : void 0,
1432
+ "aria-hidden": "true"
1433
+ }
1434
+ ),
1435
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1436
+ PopupPortal,
1437
+ {
1438
+ ref: popupRef,
1439
+ anchorRef: contextPoint ? contextAnchorRef : rootRef,
1440
+ open: mounted,
1441
+ placement: contextPoint ? "bottom-start" : placementMap[placement],
1442
+ offset: contextPoint ? 2 : 6,
1443
+ className: `sia-dropdown__popup${visible ? " is-open" : " is-closing"}${arrow ? " sia-dropdown__popup--arrow" : ""}${pointAtCenter ? " sia-dropdown__popup--arrow-center" : ""} ${popupClassName}`.trim(),
1444
+ style: popupStyle,
1445
+ onMouseEnter: () => {
1446
+ clearTimer(closeTimerRef);
1447
+ if (!disabled && triggerSet.has("hover")) clearTimer(openTimerRef);
1448
+ },
1449
+ onMouseLeave: () => {
1450
+ if (!disabled && triggerSet.has("hover")) scheduleClose();
1451
+ },
1452
+ onClick: (event) => event.stopPropagation(),
1453
+ children: popupRender ? popupRender(menuNode) : menuNode
1454
+ },
1455
+ contextPoint ? `context-${contextPoint.x}-${contextPoint.y}` : "trigger"
1456
+ )
1457
+ ]
1458
+ }
1459
+ );
1460
+ }
1461
+ function DropdownButton({
1462
+ children,
1463
+ className = "",
1464
+ buttonProps,
1465
+ onClick,
1466
+ disabled,
1467
+ trigger = ["click"],
1468
+ ...dropdownProps
1469
+ }) {
1470
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: `sia-dropdown-button ${className}`.trim(), children: [
1471
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Button, { ...buttonProps, disabled, onClick, children }),
1472
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DropdownRoot, { ...dropdownProps, disabled, trigger, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1473
+ Button,
1474
+ {
1475
+ ...buttonProps,
1476
+ className: `sia-dropdown-button__arrow ${buttonProps?.className ?? ""}`.trim(),
1477
+ disabled,
1478
+ icon: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "chevron-down", size: 14 }),
1479
+ "aria-label": "\u5C55\u5F00\u4E0B\u62C9\u83DC\u5355"
1480
+ }
1481
+ ) })
1482
+ ] });
1483
+ }
1484
+ var Dropdown = Object.assign(DropdownRoot, { Button: DropdownButton });
1485
+
1486
+ // src/components/Input.tsx
1487
+ var import_react7 = require("react");
1488
+ var import_jsx_runtime7 = require("react/jsx-runtime");
1489
+ var Input = (0, import_react7.forwardRef)(function Input2({
1490
+ label,
1491
+ hint,
1492
+ status = "default",
1493
+ size = "medium",
1494
+ prefix,
1495
+ suffix,
1496
+ allowClear = false,
1497
+ onClear,
1498
+ showCount = false,
1499
+ placeholderMode = "default",
1500
+ placeholder,
1501
+ className = "",
1502
+ id,
1503
+ disabled,
1504
+ value,
1505
+ defaultValue,
1506
+ maxLength,
1507
+ onChange,
1508
+ ...props
1509
+ }, forwardedRef) {
1510
+ const fallbackId = (0, import_react7.useId)();
1511
+ const inputId = id ?? fallbackId;
1512
+ const localRef = (0, import_react7.useRef)(null);
1513
+ const [uncontrolledValue, setUncontrolledValue] = (0, import_react7.useState)(() => defaultValue === void 0 ? "" : String(defaultValue));
1514
+ const currentText = value !== void 0 ? String(value) : uncontrolledValue;
1515
+ const hasValue = currentText.length > 0;
1516
+ const floatingPlaceholder = placeholderMode === "floating" && Boolean(placeholder);
1517
+ const hintId = `${inputId}-hint`;
1518
+ const describedBy = [props["aria-describedby"], hint ? hintId : null].filter(Boolean).join(" ") || void 0;
1519
+ function setRef(node) {
1520
+ localRef.current = node;
1521
+ if (typeof forwardedRef === "function") forwardedRef(node);
1522
+ else if (forwardedRef) forwardedRef.current = node;
1523
+ }
1524
+ function handleChange(event) {
1525
+ if (maxLength !== void 0 && maxLength >= 0 && event.target.value.length > maxLength) {
1526
+ const valueSetter = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")?.set;
1527
+ valueSetter?.call(event.target, event.target.value.slice(0, maxLength));
1528
+ }
1529
+ setUncontrolledValue(event.target.value);
1530
+ onChange?.(event);
1531
+ }
1532
+ function clearValue() {
1533
+ const input2 = localRef.current;
1534
+ if (!input2 || disabled) return;
1535
+ const valueSetter = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")?.set;
1536
+ valueSetter?.call(input2, "");
1537
+ input2.dispatchEvent(new Event("input", { bubbles: true }));
1538
+ setUncontrolledValue("");
1539
+ input2.focus();
1540
+ onClear?.();
1541
+ }
1542
+ const input = /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1543
+ "input",
1544
+ {
1545
+ ...props,
1546
+ ref: setRef,
1547
+ id: inputId,
1548
+ className: "sia-input",
1549
+ disabled,
1550
+ value,
1551
+ defaultValue,
1552
+ maxLength,
1553
+ placeholder,
1554
+ "aria-describedby": describedBy,
1555
+ "aria-invalid": status === "error" || void 0,
1556
+ onChange: handleChange
1557
+ }
1558
+ );
1559
+ const control = /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { className: `sia-input-control sia-input-control--${size} sia-input-control--${status}${floatingPlaceholder ? " sia-input-control--floating" : ""}${floatingPlaceholder && hasValue ? " is-filled" : ""}${disabled ? " is-disabled" : ""}`, children: [
1560
+ prefix ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "sia-input-control__affix", children: prefix }) : null,
1561
+ floatingPlaceholder ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { className: "sia-input-control__input-wrap", children: [
1562
+ input,
1563
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "sia-input-control__floating-placeholder", "aria-hidden": "true", children: placeholder })
1564
+ ] }) : input,
1565
+ allowClear && hasValue && !disabled ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("button", { className: "sia-input-control__clear", type: "button", "aria-label": "\u6E05\u7A7A\u8F93\u5165", onClick: clearValue, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "circle-close", variant: "filled", size: 15 }) }) : null,
1566
+ suffix ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "sia-input-control__affix", children: suffix }) : null,
1567
+ showCount ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { className: `sia-input-control__count${maxLength !== void 0 && currentText.length >= maxLength ? " is-limit" : ""}`, "aria-live": "polite", children: [
1568
+ currentText.length,
1569
+ maxLength !== void 0 ? `/${maxLength}` : null
1570
+ ] }) : null
1571
+ ] });
1572
+ if (!label && !hint) return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: `sia-field ${className}`.trim(), children: control });
1573
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { className: `sia-field ${className}`.trim(), children: [
1574
+ label ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { className: "sia-field__label", htmlFor: inputId, children: label }) : null,
1575
+ control,
1576
+ hint ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { id: hintId, className: `sia-field__hint sia-field__hint--${status}`, children: hint }) : null
1577
+ ] });
1578
+ });
1579
+
1580
+ // src/components/RichTextEditor.tsx
1581
+ var import_jsx_runtime8 = require("react/jsx-runtime");
1582
+ function escapeHtml(value) {
1583
+ return value.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll('"', "&quot;").replaceAll("'", "&#039;");
1584
+ }
1585
+ function normalizeContent(value) {
1586
+ if (!value.trim()) return "";
1587
+ if (/<\/?[a-z][\s\S]*>/i.test(value)) return value;
1588
+ return escapeHtml(value).replace(/\r?\n/g, "<br>");
1589
+ }
1590
+ function sanitizeContent(value) {
1591
+ return import_dompurify.default.sanitize(normalizeContent(value), {
1592
+ USE_PROFILES: { html: true },
1593
+ ADD_ATTR: ["loading", "decoding"]
1594
+ }).replace(/<img\b/giu, '<img loading="lazy" decoding="async"');
1595
+ }
1596
+ function RichTextContent({ content, emptyText = "\u6682\u65E0\u5185\u5BB9", className = "", ...props }) {
1597
+ const html = (0, import_react8.useMemo)(() => sanitizeContent(content), [content]);
1598
+ if (!html.trim()) return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: `sia-rich-text-content sia-rich-text-content--empty ${className}`.trim(), children: emptyText });
1599
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("article", { className: `sia-rich-text-content ${className}`.trim(), dangerouslySetInnerHTML: { __html: html }, ...props });
1600
+ }
1601
+ function RichTextEditor({
1602
+ value,
1603
+ defaultValue = "",
1604
+ contentFormat = "html",
1605
+ toolbar = "basic",
1606
+ placeholder = "\u8BF7\u8F93\u5165\u5185\u5BB9",
1607
+ disabled = false,
1608
+ minHeight = 150,
1609
+ pasteImageHint = "\u53EF\u76F4\u63A5\u7C98\u8D34\u56FE\u7247",
1610
+ onChange,
1611
+ onPasteImage,
1612
+ saveShortcut,
1613
+ className = "",
1614
+ id,
1615
+ style,
1616
+ "aria-label": ariaLabel,
1617
+ ...props
1618
+ }) {
1619
+ const initialValueRef = (0, import_react8.useRef)(value ?? defaultValue);
1620
+ const lastEmittedValueRef = (0, import_react8.useRef)(value ?? defaultValue);
1621
+ const onChangeRef = (0, import_react8.useRef)(onChange);
1622
+ const onPasteImageRef = (0, import_react8.useRef)(onPasteImage);
1623
+ const saveShortcutRef = (0, import_react8.useRef)(saveShortcut);
1624
+ const contentFormatRef = (0, import_react8.useRef)(contentFormat);
1625
+ const editorElementRef = (0, import_react8.useRef)(null);
1626
+ const editorRef = (0, import_react8.useRef)(null);
1627
+ const [editor, setEditor] = (0, import_react8.useState)(null);
1628
+ const [linkEditorOpen, setLinkEditorOpen] = (0, import_react8.useState)(false);
1629
+ const [linkHref, setLinkHref] = (0, import_react8.useState)("");
1630
+ const [, setEditorRevision] = (0, import_react8.useState)(0);
1631
+ (0, import_react8.useEffect)(() => {
1632
+ onChangeRef.current = onChange;
1633
+ }, [onChange]);
1634
+ (0, import_react8.useEffect)(() => {
1635
+ onPasteImageRef.current = onPasteImage;
1636
+ }, [onPasteImage]);
1637
+ (0, import_react8.useEffect)(() => {
1638
+ saveShortcutRef.current = saveShortcut;
1639
+ }, [saveShortcut]);
1640
+ (0, import_react8.useEffect)(() => {
1641
+ contentFormatRef.current = contentFormat;
1642
+ }, [contentFormat]);
1643
+ const extensions = (0, import_react8.useMemo)(() => [
1644
+ import_starter_kit.default.configure({
1645
+ heading: { levels: [1, 2, 3, 4, 5, 6] },
1646
+ link: { openOnClick: false, autolink: true, linkOnPaste: true },
1647
+ underline: { HTMLAttributes: { "data-sia-underline": "" } }
1648
+ }),
1649
+ import_extension_placeholder.default.configure({ placeholder }),
1650
+ import_extension_image.default.configure({ allowBase64: false, inline: false }),
1651
+ import_extension_table.Table.configure({ resizable: true }),
1652
+ import_extension_table_row.default,
1653
+ import_extension_table_header.default,
1654
+ import_extension_table_cell.default,
1655
+ import_extension_task_list.default,
1656
+ import_extension_task_item.default.configure({ nested: true }),
1657
+ import_markdown.Markdown.configure({ markedOptions: { gfm: true } })
1658
+ ], [placeholder]);
1659
+ (0, import_react8.useEffect)(() => {
1660
+ const element = editorElementRef.current;
1661
+ if (!element) return;
1662
+ const nextEditor = new import_core.Editor({
1663
+ element,
1664
+ extensions,
1665
+ content: initialValueRef.current,
1666
+ contentType: contentFormatRef.current,
1667
+ editable: !disabled,
1668
+ editorProps: {
1669
+ attributes: {
1670
+ role: "textbox",
1671
+ "aria-label": ariaLabel ?? "\u5BCC\u6587\u672C\u7F16\u8F91\u5668",
1672
+ "aria-multiline": "true"
1673
+ },
1674
+ handlePaste: (_view, event) => {
1675
+ const pasteHandler = onPasteImageRef.current;
1676
+ if (!pasteHandler) return false;
1677
+ const images = Array.from(event.clipboardData?.items ?? []).filter((item) => item.kind === "file" && item.type.startsWith("image/")).map((item) => item.getAsFile()).filter((file) => Boolean(file));
1678
+ if (!images.length) return false;
1679
+ event.preventDefault();
1680
+ void (async () => {
1681
+ for (const file of images) {
1682
+ try {
1683
+ const src = await pasteHandler(file);
1684
+ if (src) nextEditor.chain().focus().setImage({ src, alt: file.name || "\u7C98\u8D34\u7684\u56FE\u7247" }).run();
1685
+ } catch {
1686
+ }
1687
+ }
1688
+ })();
1689
+ return true;
1690
+ },
1691
+ handleKeyDown: (_view, event) => {
1692
+ if ((event.ctrlKey || event.metaKey) && event.key.toLowerCase() === "s" && saveShortcutRef.current) {
1693
+ event.preventDefault();
1694
+ saveShortcutRef.current();
1695
+ return true;
1696
+ }
1697
+ return false;
1698
+ }
1699
+ },
1700
+ onSelectionUpdate: () => setEditorRevision((current) => current + 1),
1701
+ onUpdate: ({ editor: currentEditor }) => {
1702
+ setEditorRevision((current) => current + 1);
1703
+ const nextValue = contentFormatRef.current === "markdown" ? currentEditor.getMarkdown() : currentEditor.getHTML();
1704
+ lastEmittedValueRef.current = nextValue;
1705
+ onChangeRef.current?.(nextValue);
1706
+ }
1707
+ });
1708
+ editorRef.current = nextEditor;
1709
+ setEditor(nextEditor);
1710
+ return () => {
1711
+ editorRef.current = null;
1712
+ setEditor(null);
1713
+ nextEditor.destroy();
1714
+ };
1715
+ }, [ariaLabel, extensions]);
1716
+ (0, import_react8.useEffect)(() => {
1717
+ editor?.setEditable(!disabled);
1718
+ }, [disabled, editor]);
1719
+ (0, import_react8.useEffect)(() => {
1720
+ if (!editor || value === void 0 || value === lastEmittedValueRef.current) return;
1721
+ editor.commands.setContent(value, { emitUpdate: false, contentType: contentFormat });
1722
+ lastEmittedValueRef.current = value;
1723
+ }, [contentFormat, editor, value]);
1724
+ function openLinkEditor(open) {
1725
+ if (open && editor) setLinkHref(String(editor.getAttributes("link").href ?? ""));
1726
+ setLinkEditorOpen(open);
1727
+ }
1728
+ function submitLink(event) {
1729
+ event?.preventDefault();
1730
+ if (!editor) return;
1731
+ if (!linkHref.trim()) {
1732
+ editor.chain().focus().extendMarkRange("link").unsetLink().run();
1733
+ } else {
1734
+ editor.chain().focus().extendMarkRange("link").setLink({ href: linkHref.trim() }).run();
1735
+ }
1736
+ setLinkEditorOpen(false);
1737
+ }
1738
+ function formatButton(label, action, active = false, disabledByState = false, content) {
1739
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1740
+ Button,
1741
+ {
1742
+ type: "button",
1743
+ variant: "text",
1744
+ size: "small",
1745
+ className: `sia-rich-text-editor__tool${active ? " is-active" : ""}`,
1746
+ disabled: disabled || disabledByState || !editor,
1747
+ "aria-label": label,
1748
+ "aria-pressed": active || void 0,
1749
+ title: label,
1750
+ onMouseDown: (event) => event.preventDefault(),
1751
+ onClick: action,
1752
+ children: content ?? label
1753
+ }
1754
+ );
1755
+ }
1756
+ const mergedStyle = {
1757
+ ...style,
1758
+ "--sia-rich-text-min-height": typeof minHeight === "number" ? `${minHeight}px` : minHeight
1759
+ };
1760
+ const currentBlockLabel = editor?.isActive("heading", { level: 1 }) ? "H1" : editor?.isActive("heading", { level: 2 }) ? "H2" : editor?.isActive("heading", { level: 3 }) ? "H3" : "\u6B63\u6587";
1761
+ const blockTypeMenu = {
1762
+ selectable: true,
1763
+ selectedKeys: [editor?.isActive("heading", { level: 1 }) ? "h1" : editor?.isActive("heading", { level: 2 }) ? "h2" : editor?.isActive("heading", { level: 3 }) ? "h3" : "paragraph"],
1764
+ items: [
1765
+ { key: "paragraph", label: "\u6B63\u6587" },
1766
+ { key: "h1", label: "\u4E00\u7EA7\u6807\u9898" },
1767
+ { key: "h2", label: "\u4E8C\u7EA7\u6807\u9898" },
1768
+ { key: "h3", label: "\u4E09\u7EA7\u6807\u9898" }
1769
+ ],
1770
+ onClick: ({ key }) => {
1771
+ if (!editor) return;
1772
+ if (key === "paragraph") editor.chain().focus().setParagraph().run();
1773
+ else editor.chain().focus().toggleHeading({ level: Number(key.slice(1)) }).run();
1774
+ }
1775
+ };
1776
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { ...props, id, style: mergedStyle, className: `sia-rich-text-editor${disabled ? " is-disabled" : ""} sia-rich-text-editor--${toolbar} ${className}`.trim(), children: [
1777
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "sia-rich-text-editor__toolbar", "aria-label": "\u6587\u672C\u683C\u5F0F\u5DE5\u5177\u680F", children: [
1778
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "sia-rich-text-editor__toolbar-main", children: [
1779
+ toolbar === "full" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
1780
+ formatButton("\u64A4\u9500", () => editor?.chain().focus().undo().run(), false, !editor?.can().undo(), /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "undo" })),
1781
+ formatButton("\u91CD\u505A", () => editor?.chain().focus().redo().run(), false, !editor?.can().redo(), /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "redo" })),
1782
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "sia-rich-text-editor__divider" }),
1783
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Dropdown, { menu: blockTypeMenu, trigger: ["click"], placement: "bottomLeft", disabled: disabled || !editor, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(Button, { type: "button", variant: "text", size: "small", className: "sia-rich-text-editor__block-type", disabled: disabled || !editor, "aria-label": "\u6BB5\u843D\u683C\u5F0F", title: "\u6BB5\u843D\u683C\u5F0F", onMouseDown: (event) => event.preventDefault(), children: [
1784
+ currentBlockLabel,
1785
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "chevron-down", size: 13 })
1786
+ ] }) }),
1787
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "sia-rich-text-editor__divider" })
1788
+ ] }) : null,
1789
+ formatButton("\u52A0\u7C97", () => editor?.chain().focus().toggleBold().run(), Boolean(editor?.isActive("bold")), false, /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("strong", { children: "B" })),
1790
+ formatButton("\u659C\u4F53", () => editor?.chain().focus().toggleItalic().run(), Boolean(editor?.isActive("italic")), false, /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("em", { children: "I" })),
1791
+ toolbar === "full" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
1792
+ formatButton("\u4E0B\u5212\u7EBF", () => editor?.chain().focus().toggleUnderline().run(), Boolean(editor?.isActive("underline")), false, /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("u", { children: "U" })),
1793
+ formatButton("\u5220\u9664\u7EBF", () => editor?.chain().focus().toggleStrike().run(), Boolean(editor?.isActive("strike")), false, /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("s", { children: "S" })),
1794
+ formatButton("\u884C\u5185\u4EE3\u7801", () => editor?.chain().focus().toggleCode().run(), Boolean(editor?.isActive("code")), false, "</>"),
1795
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1796
+ Dropdown,
1797
+ {
1798
+ menu: { items: [] },
1799
+ trigger: ["click"],
1800
+ placement: "bottomLeft",
1801
+ open: linkEditorOpen,
1802
+ disabled: disabled || !editor,
1803
+ onOpenChange: openLinkEditor,
1804
+ popupClassName: "sia-rich-text-editor__link-popup",
1805
+ popupRender: () => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("form", { className: "sia-rich-text-editor__link-form", onSubmit: submitLink, children: [
1806
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Input, { autoFocus: true, "aria-label": "\u94FE\u63A5\u5730\u5740", value: linkHref, onChange: (event) => setLinkHref(event.target.value), placeholder: "https://example.com" }),
1807
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Button, { type: "submit", variant: "primary", size: "small", children: "\u5E94\u7528" }),
1808
+ editor?.isActive("link") ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Button, { type: "button", size: "small", onClick: () => {
1809
+ setLinkHref("");
1810
+ editor.chain().focus().extendMarkRange("link").unsetLink().run();
1811
+ setLinkEditorOpen(false);
1812
+ }, children: "\u79FB\u9664" }) : null
1813
+ ] }),
1814
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Button, { type: "button", variant: "text", size: "small", className: `sia-rich-text-editor__tool${editor?.isActive("link") ? " is-active" : ""}`, disabled: disabled || !editor, "aria-label": "\u94FE\u63A5", "aria-pressed": editor?.isActive("link") || void 0, title: "\u94FE\u63A5", onMouseDown: (event) => event.preventDefault(), children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "link" }) })
1815
+ }
1816
+ ),
1817
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "sia-rich-text-editor__divider" })
1818
+ ] }) : null,
1819
+ formatButton("\u65E0\u5E8F\u5217\u8868", () => editor?.chain().focus().toggleBulletList().run(), Boolean(editor?.isActive("bulletList")), false, "\u2022 \u5217\u8868"),
1820
+ formatButton("\u6709\u5E8F\u5217\u8868", () => editor?.chain().focus().toggleOrderedList().run(), Boolean(editor?.isActive("orderedList")), false, "1. \u5217\u8868"),
1821
+ toolbar === "full" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
1822
+ formatButton("\u4EFB\u52A1\u5217\u8868", () => editor?.chain().focus().toggleTaskList().run(), Boolean(editor?.isActive("taskList")), false, "\u2611 \u4EFB\u52A1"),
1823
+ formatButton("\u5F15\u7528", () => editor?.chain().focus().toggleBlockquote().run(), Boolean(editor?.isActive("blockquote")), false, "\u275D \u5F15\u7528"),
1824
+ formatButton("\u4EE3\u7801\u5757", () => editor?.chain().focus().toggleCodeBlock().run(), Boolean(editor?.isActive("codeBlock")), false, "\u4EE3\u7801\u5757"),
1825
+ formatButton("\u63D2\u5165\u8868\u683C", () => editor?.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: true }).run(), Boolean(editor?.isActive("table")), false, "\u8868\u683C"),
1826
+ formatButton("\u5206\u5272\u7EBF", () => editor?.chain().focus().setHorizontalRule().run(), false, false, /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "minus" }))
1827
+ ] }) : null
1828
+ ] }),
1829
+ onPasteImage ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("small", { children: [
1830
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "image", size: 14 }),
1831
+ pasteImageHint
1832
+ ] }) : null
1833
+ ] }),
1834
+ toolbar === "full" && editor?.isActive("table") ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "sia-rich-text-editor__table-toolbar", "aria-label": "\u8868\u683C\u5DE5\u5177\u680F", children: [
1835
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "\u8868\u683C" }),
1836
+ formatButton("\u524D\u65B9\u63D2\u5165\u5217", () => editor.chain().focus().addColumnBefore().run(), false, !editor.can().addColumnBefore(), "\u524D\u63D2\u5217"),
1837
+ formatButton("\u540E\u65B9\u63D2\u5165\u5217", () => editor.chain().focus().addColumnAfter().run(), false, !editor.can().addColumnAfter(), "\u540E\u63D2\u5217"),
1838
+ formatButton("\u5220\u9664\u5F53\u524D\u5217", () => editor.chain().focus().deleteColumn().run(), false, !editor.can().deleteColumn(), "\u5220\u5217"),
1839
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "sia-rich-text-editor__divider" }),
1840
+ formatButton("\u4E0A\u65B9\u63D2\u5165\u884C", () => editor.chain().focus().addRowBefore().run(), false, !editor.can().addRowBefore(), "\u4E0A\u63D2\u884C"),
1841
+ formatButton("\u4E0B\u65B9\u63D2\u5165\u884C", () => editor.chain().focus().addRowAfter().run(), false, !editor.can().addRowAfter(), "\u4E0B\u63D2\u884C"),
1842
+ formatButton("\u5220\u9664\u5F53\u524D\u884C", () => editor.chain().focus().deleteRow().run(), false, !editor.can().deleteRow(), "\u5220\u884C"),
1843
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "sia-rich-text-editor__divider" }),
1844
+ formatButton("\u5220\u9664\u8868\u683C", () => editor.chain().focus().deleteTable().run(), false, !editor.can().deleteTable(), "\u5220\u9664\u8868\u683C")
1845
+ ] }) : null,
1846
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { ref: editorElementRef, className: "sia-rich-text-editor__content" })
1847
+ ] });
1848
+ }
1849
+ // Annotate the CommonJS export names for ESM import in node:
1850
+ 0 && (module.exports = {
1851
+ RichTextContent,
1852
+ RichTextEditor
1853
+ });