wecool-chat 0.11.0 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.ja.md +1 -1
  3. package/README.md +1 -1
  4. package/dist/CopyIndicator-DcJtCBYP.js +63 -0
  5. package/dist/{MarkdownBody-DrX3zb2T.js → MarkdownBody-DX0DoV4C.js} +901 -893
  6. package/dist/{VoiceControls-C8_Tl-c9.js → VoiceControls-B_kX2Uj3.js} +79 -67
  7. package/dist/{VoiceRuntime-DGB607-E.js → VoiceRuntime-D1nURNly.js} +13 -13
  8. package/dist/blank-line-D-aLg3m0.js +213 -0
  9. package/dist/{browser-BjSilng8.js → browser-a2qIWP48.js} +1 -1
  10. package/dist/createLucideIcon-Dc6H577p.js +120 -0
  11. package/dist/index.css +2 -2
  12. package/dist/index.js +6849 -5728
  13. package/dist/{jsx-runtime-BTTIwChF.js → jsx-runtime-2MlY8uwR.js} +132 -122
  14. package/dist/{messages-BEE-IywU.js → messages-ZLdeJx9N.js} +9 -31
  15. package/dist/plugins/qrcode.js +7 -6
  16. package/dist/remark-gfm-DDNju7JY.js +2247 -0
  17. package/dist/{remark-parse-BJR7F87B.js → remark-parse-B3YPcONN.js} +377 -445
  18. package/dist/rolldown-runtime-Csywlj8R.js +25 -0
  19. package/dist/ui/components/ChatFooter.d.ts +1 -1
  20. package/dist/ui/components/ChatHeader.d.ts +1 -1
  21. package/dist/ui/components/ChatHeaderMenu.d.ts +1 -1
  22. package/dist/ui/components/ChatPanel.d.ts +1 -1
  23. package/dist/ui/components/CommandConfirmationCard.d.ts +1 -1
  24. package/dist/ui/components/CommandOverlays.d.ts +1 -1
  25. package/dist/ui/components/CommandPalette.d.ts +1 -1
  26. package/dist/ui/components/ConversationSelect.d.ts +1 -1
  27. package/dist/ui/components/CopyIndicator.d.ts +1 -1
  28. package/dist/ui/components/FloatButton.d.ts +1 -1
  29. package/dist/ui/components/FooterActions.d.ts +1 -1
  30. package/dist/ui/components/HelpDialogContent.d.ts +1 -1
  31. package/dist/ui/components/MessageActionsPopover.d.ts +1 -1
  32. package/dist/ui/components/MessageAttachments.d.ts +1 -1
  33. package/dist/ui/components/MessageBubble.d.ts +1 -1
  34. package/dist/ui/components/MessageCopyButton.d.ts +1 -1
  35. package/dist/ui/components/MessageEditor.d.ts +1 -1
  36. package/dist/ui/components/MessageList.d.ts +1 -1
  37. package/dist/ui/components/MessagePopoverButton.d.ts +1 -1
  38. package/dist/ui/components/MessageRow.d.ts +1 -1
  39. package/dist/ui/components/MessageRowActions.d.ts +1 -1
  40. package/dist/ui/components/MicButton.d.ts +1 -1
  41. package/dist/ui/components/ResizeHandles.d.ts +1 -1
  42. package/dist/ui/components/ToolConfirmationCard.d.ts +1 -1
  43. package/dist/ui/components/ToolConfirmationRecord.d.ts +1 -1
  44. package/dist/ui/components/ToolsDialogContent.d.ts +1 -1
  45. package/dist/ui/components/VoiceControls.d.ts +1 -1
  46. package/dist/ui/components/VoiceLoopStatusBar.d.ts +1 -1
  47. package/dist/ui/components/VoiceLoopToggle.d.ts +1 -1
  48. package/dist/ui/components/VoiceRuntime.d.ts +1 -1
  49. package/dist/ui/components/WidgetDialog.d.ts +1 -1
  50. package/dist/ui/components/markdown/CodeBlock.d.ts +1 -1
  51. package/dist/ui/components/markdown/MarkdownBody.d.ts +1 -1
  52. package/dist/ui/components/markdown/MarkdownMessage.d.ts +1 -1
  53. package/dist/{unified-NsWgUw0i.js → unified-DvM6W8YC.js} +3 -3
  54. package/dist/{use-voice-input-CLRsyP04.js → use-voice-input-DJtyHnsT.js} +3 -3
  55. package/dist/{voice-support-Cdpf-m3g.js → voice-support-DYXg7xML.js} +2 -2
  56. package/package.json +20 -20
  57. package/dist/CopyIndicator-DSRPjXWl.js +0 -51
  58. package/dist/blank-line-CUDmZ-mX.js +0 -143
  59. package/dist/createLucideIcon-CL_Vxx_2.js +0 -43
  60. package/dist/remark-gfm-Bzy1u34W.js +0 -1962
@@ -1,52 +1,64 @@
1
- import { a as b } from "./messages-BEE-IywU.js";
2
- import { i as M, r as k, t as x } from "./jsx-runtime-BTTIwChF.js";
1
+ import { r as k } from "./rolldown-runtime-Csywlj8R.js";
2
+ import { i as x, r as E, t as w } from "./jsx-runtime-2MlY8uwR.js";
3
+ import { t as y } from "./use-voice-input-DJtyHnsT.js";
4
+ import { n as I, t as L } from "./voice-support-DYXg7xML.js";
3
5
  import { t as f } from "./clsx-Cf23UI1w.js";
4
- import { n as E, t as w } from "./voice-support-Cdpf-m3g.js";
5
- import { t as v } from "./createLucideIcon-CL_Vxx_2.js";
6
- import { t as y } from "./use-voice-input-CLRsyP04.js";
7
- var I = [
8
- ["path", {
9
- d: "M2 10v3",
10
- key: "1fnikh"
11
- }],
12
- ["path", {
13
- d: "M6 6v11",
14
- key: "11sgs0"
15
- }],
16
- ["path", {
17
- d: "M10 3v18",
18
- key: "yhl04a"
19
- }],
20
- ["path", {
21
- d: "M14 8v7",
22
- key: "3a1oy3"
23
- }],
24
- ["path", {
25
- d: "M18 5v13",
26
- key: "123xd1"
27
- }],
28
- ["path", {
29
- d: "M22 10v3",
30
- key: "154ddg"
31
- }]
32
- ], L = v("audio-lines", I), R = [
33
- ["path", {
34
- d: "M12 19v3",
35
- key: "npa21l"
36
- }],
37
- ["path", {
38
- d: "M19 10v2a7 7 0 0 1-14 0v-2",
39
- key: "1vc78b"
40
- }],
41
- ["rect", {
42
- x: "9",
43
- y: "2",
44
- width: "6",
45
- height: "13",
46
- rx: "3",
47
- key: "s6n7sd"
48
- }]
49
- ], S = v("mic", R), s = /* @__PURE__ */ b(M(), 1), T = 4e3, _ = (e) => ({
6
+ import { t as v } from "./createLucideIcon-Dc6H577p.js";
7
+ var h = {
8
+ name: "audio-lines",
9
+ size: 24,
10
+ node: [
11
+ ["path", {
12
+ d: "M2 10v3",
13
+ key: "1fnikh"
14
+ }],
15
+ ["path", {
16
+ d: "M6 6v11",
17
+ key: "11sgs0"
18
+ }],
19
+ ["path", {
20
+ d: "M10 3v18",
21
+ key: "yhl04a"
22
+ }],
23
+ ["path", {
24
+ d: "M14 8v7",
25
+ key: "3a1oy3"
26
+ }],
27
+ ["path", {
28
+ d: "M18 5v13",
29
+ key: "123xd1"
30
+ }],
31
+ ["path", {
32
+ d: "M22 10v3",
33
+ key: "154ddg"
34
+ }]
35
+ ]
36
+ };
37
+ h.node;
38
+ var R = v(h), g = {
39
+ name: "mic",
40
+ size: 24,
41
+ node: [
42
+ ["path", {
43
+ d: "M12 19v3",
44
+ key: "npa21l"
45
+ }],
46
+ ["path", {
47
+ d: "M19 10v2a7 7 0 0 1-14 0v-2",
48
+ key: "1vc78b"
49
+ }],
50
+ ["rect", {
51
+ x: "9",
52
+ y: "2",
53
+ width: "6",
54
+ height: "13",
55
+ rx: "3",
56
+ key: "s6n7sd"
57
+ }]
58
+ ]
59
+ };
60
+ g.node;
61
+ var S = v(g), s = /* @__PURE__ */ k(x(), 1), T = 4e3, _ = (e) => ({
50
62
  unsupported: e.errorGeneric,
51
63
  permission_denied: e.voiceInputErrorPermissionDenied,
52
64
  timeout: e.voiceInputErrorTimeout,
@@ -55,7 +67,7 @@ var I = [
55
67
  device_unavailable: e.voiceInputErrorDeviceUnavailable,
56
68
  language_unsupported: e.voiceInputErrorLanguageUnsupported
57
69
  }), j = ({ voice: e, onBeforeListen: u, onTranscript: a, messages: t, announce: i }) => {
58
- const r = y(), [l, o] = (0, s.useState)(null), c = (0, s.useRef)(null), p = e && w(), m = (0, s.useRef)(t);
70
+ const r = y(), [l, o] = (0, s.useState)(null), c = (0, s.useRef)(null), d = e && L(), m = (0, s.useRef)(t);
59
71
  m.current = t, (0, s.useEffect)(() => {
60
72
  r.error && (o(r.error), i(_(m.current)[r.error]), c.current && clearTimeout(c.current), c.current = setTimeout(() => {
61
73
  o(null), i("");
@@ -63,31 +75,31 @@ var I = [
63
75
  }, [r.error, i]), (0, s.useEffect)(() => () => {
64
76
  c.current && clearTimeout(c.current);
65
77
  }, []);
66
- const d = (0, s.useCallback)(() => {
78
+ const p = (0, s.useCallback)(() => {
67
79
  c.current && clearTimeout(c.current), c.current = null, o(null), i("");
68
- }, [i]), h = (0, s.useCallback)(() => {
80
+ }, [i]), b = (0, s.useCallback)(() => {
69
81
  if (r.isListening) {
70
82
  r.stop();
71
83
  return;
72
84
  }
73
- u?.(), d(), i(t.voiceInputListeningAnnouncement), r.start(a);
85
+ u?.(), p(), i(t.voiceInputListeningAnnouncement), r.start(a);
74
86
  }, [
75
87
  r,
76
88
  u,
77
- d,
89
+ p,
78
90
  t.voiceInputListeningAnnouncement,
79
91
  i,
80
92
  a
81
- ]), g = r.isListening ? t.voiceInputListeningAria : t.voiceInputButtonAria;
93
+ ]), M = r.isListening ? t.voiceInputListeningAria : t.voiceInputButtonAria;
82
94
  return {
83
- showsMic: p,
95
+ showsMic: d,
84
96
  isListening: r.isListening,
85
97
  micErrorText: l ? _(t)[l] : null,
86
- ariaLabel: g,
87
- handleMicClick: h,
88
- clearStatus: d
98
+ ariaLabel: M,
99
+ handleMicClick: b,
100
+ clearStatus: p
89
101
  };
90
- }, n = x();
102
+ }, n = w();
91
103
  function C({ isListening: e, disabled: u, errorText: a, ariaLabel: t, onClick: i }) {
92
104
  return /* @__PURE__ */ (0, n.jsxs)(n.Fragment, { children: [/* @__PURE__ */ (0, n.jsx)("button", {
93
105
  type: "button",
@@ -104,7 +116,7 @@ function C({ isListening: e, disabled: u, errorText: a, ariaLabel: t, onClick: i
104
116
  children: a
105
117
  })] });
106
118
  }
107
- function N({ isRunning: e, disabled: u, ariaLabel: a, onClick: t }) {
119
+ function A({ isRunning: e, disabled: u, ariaLabel: a, onClick: t }) {
108
120
  return /* @__PURE__ */ (0, n.jsx)("button", {
109
121
  type: "button",
110
122
  onClick: t,
@@ -112,14 +124,14 @@ function N({ isRunning: e, disabled: u, ariaLabel: a, onClick: t }) {
112
124
  "aria-pressed": e,
113
125
  "aria-label": a,
114
126
  className: f("wecool-footer__button", "wecool-footer__button--voice-loop", e && "wecool-footer__button--voice-loop-on"),
115
- children: /* @__PURE__ */ (0, n.jsx)(L, {
127
+ children: /* @__PURE__ */ (0, n.jsx)(R, {
116
128
  className: "wecool-icon--md",
117
129
  "aria-hidden": "true"
118
130
  })
119
131
  });
120
132
  }
121
- function O({ voice: e, isLoading: u, onBeforeListen: a, onTranscript: t, announce: i, voiceLoop: r }) {
122
- const l = k(), o = j({
133
+ function F({ voice: e, isLoading: u, onBeforeListen: a, onTranscript: t, announce: i, voiceLoop: r }) {
134
+ const l = E(), o = j({
123
135
  voice: e,
124
136
  onBeforeListen: a,
125
137
  onTranscript: t,
@@ -127,7 +139,7 @@ function O({ voice: e, isLoading: u, onBeforeListen: a, onTranscript: t, announc
127
139
  announce: i
128
140
  });
129
141
  if (!o.showsMic) return null;
130
- const c = r !== void 0 && E(), p = () => {
142
+ const c = r !== void 0 && I(), d = () => {
131
143
  r && (r.isRunning || o.clearStatus(), r.toggle());
132
144
  };
133
145
  return /* @__PURE__ */ (0, n.jsxs)(n.Fragment, { children: [/* @__PURE__ */ (0, n.jsx)(C, {
@@ -136,13 +148,13 @@ function O({ voice: e, isLoading: u, onBeforeListen: a, onTranscript: t, announc
136
148
  errorText: o.micErrorText,
137
149
  ariaLabel: o.ariaLabel,
138
150
  onClick: o.handleMicClick
139
- }), c && /* @__PURE__ */ (0, n.jsx)(N, {
151
+ }), c && /* @__PURE__ */ (0, n.jsx)(A, {
140
152
  isRunning: r.isRunning,
141
153
  disabled: o.isListening && !r.isRunning,
142
154
  ariaLabel: r.isRunning ? l.voiceLoopToggleStopAria : l.voiceLoopToggleStartAria,
143
- onClick: p
155
+ onClick: d
144
156
  })] });
145
157
  }
146
158
  export {
147
- O as VoiceControls
159
+ F as VoiceControls
148
160
  };
@@ -1,14 +1,14 @@
1
- import { a as re } from "./messages-BEE-IywU.js";
2
- import { i as oe, r as O, t as ce } from "./jsx-runtime-BTTIwChF.js";
3
- import { i as X, n as V } from "./voice-support-Cdpf-m3g.js";
4
- import { t as se } from "./voice-runtime-F5NxN_0m.js";
5
- import { n as ie, t as ue } from "./use-voice-input-CLRsyP04.js";
6
- import { t as ae } from "./stable-prefix-BHsGj4tL.js";
1
+ import { r as re } from "./rolldown-runtime-Csywlj8R.js";
2
+ import { i as oe, r as O, t as ce } from "./jsx-runtime-2MlY8uwR.js";
3
+ import { i as X, n as V } from "./voice-support-DYXg7xML.js";
4
+ import { n as se, t as ie } from "./use-voice-input-DJtyHnsT.js";
5
+ import { t as ue } from "./stable-prefix-BHsGj4tL.js";
6
+ import { t as ae } from "./voice-runtime-F5NxN_0m.js";
7
7
  var t = /* @__PURE__ */ re(oe(), 1), le = 2e3, fe = new RegExp("\\p{Extended_Pictographic}|[\\u{1F3FB}-\\u{1F3FF}]|\\u{FE0F}|\\u{200D}|\\u{20E3}", "gu"), pe = /(?:https?:\/\/|www\.)\S+/gi, de = /^(?:https?:\/\/|www\.|mailto:)/i, G = null, he = () => (G ??= (async () => {
8
8
  const [{ unified: e }, { default: r }, { default: o }] = await Promise.all([
9
- import("./unified-NsWgUw0i.js").then((c) => c.t),
10
- import("./remark-parse-BJR7F87B.js").then((c) => c.t),
11
- import("./remark-gfm-Bzy1u34W.js")
9
+ import("./unified-DvM6W8YC.js").then((c) => c.t),
10
+ import("./remark-parse-B3YPcONN.js").then((c) => c.t),
11
+ import("./remark-gfm-DDNju7JY.js")
12
12
  ]), n = e().use(r).use(o, { singleTilde: !1 });
13
13
  return (c) => n.parse(c);
14
14
  })(), G), D = (e) => (e.children ?? []).map(me).join(""), me = (e) => {
@@ -63,7 +63,7 @@ ${r.truncatedNotice}`;
63
63
  d.current.forEach((f) => f()), d.current.clear(), V() && window.speechSynthesis.cancel(), s.current = null, n(null), a(0);
64
64
  }, []), h = (0, t.useCallback)(() => a((f) => Math.max(f - 1, 0)), []), k = (0, t.useCallback)((f, i) => {
65
65
  const u = new SpeechSynthesisUtterance(f);
66
- u.lang = ie[e];
66
+ u.lang = se[e];
67
67
  let m = !1, R = 0;
68
68
  const E = () => {
69
69
  R = window.setTimeout(() => {
@@ -158,7 +158,7 @@ ${r.truncatedNotice}`;
158
158
  if (e)
159
159
  for (const u of o) {
160
160
  if (l.current.has(u.id)) continue;
161
- const m = r ? ae(u.content).prefix : u.content;
161
+ const m = r ? ue(u.content).prefix : u.content;
162
162
  m.trim().length !== 0 && d.current.get(u.id) !== m && (d.current.set(u.id, m), f(u.id, m));
163
163
  }
164
164
  }, [
@@ -190,7 +190,7 @@ ${r.truncatedNotice}`;
190
190
  device: e.voiceLoopEndedDevice,
191
191
  language: e.voiceLoopEndedLanguage
192
192
  }), P = 300, _e = 12e4, W = 1500, Te = 6e3, be = ({ isSupported: e, isLoading: r, hasTurnFailed: o, hasPendingConfirmation: n, isSpeaking: c, assistantMessages: a, onSubmit: s, speak: d, stopSpeaking: l, startCue: h }) => {
193
- const k = X(), S = O(), { error: w, start: b, stop: f } = ue(), [i, u] = (0, t.useState)("idle"), [m, R] = (0, t.useState)(null), E = (0, t.useRef)("idle"), v = (0, t.useRef)(null), L = (0, t.useRef)(null), M = (0, t.useRef)(0), I = (0, t.useRef)(""), y = (0, t.useRef)(!1), x = (0, t.useRef)(!1), B = (0, t.useRef)(() => {
193
+ const k = X(), S = O(), { error: w, start: b, stop: f } = ie(), [i, u] = (0, t.useState)("idle"), [m, R] = (0, t.useState)(null), E = (0, t.useRef)("idle"), v = (0, t.useRef)(null), L = (0, t.useRef)(null), M = (0, t.useRef)(0), I = (0, t.useRef)(""), y = (0, t.useRef)(!1), x = (0, t.useRef)(!1), B = (0, t.useRef)(() => {
194
194
  }), j = (0, t.useRef)(d);
195
195
  j.current = d;
196
196
  const F = (0, t.useRef)(K(S));
@@ -447,7 +447,7 @@ function Ie({ onSnapshotChange: e, ...r }) {
447
447
  return (0, t.useLayoutEffect)(() => {
448
448
  e(o);
449
449
  }, [e, o]), (0, t.useLayoutEffect)(() => () => {
450
- s(), e(se);
450
+ s(), e(ae);
451
451
  }, [e, s]), /* @__PURE__ */ (0, C.jsx)(xe, {
452
452
  statusKey: n,
453
453
  endReason: c,
@@ -0,0 +1,213 @@
1
+ var P = o(/[A-Za-z]/), z = o(/[\dA-Za-z]/), I = o(/[#-'*+\--9=?A-Z^-~]/);
2
+ function E(n) {
3
+ return n !== null && (n < 32 || n === 127);
4
+ }
5
+ var L = o(/\d/), N = o(/[\dA-Fa-f]/), O = o(/[!-/:-@[-`{-~]/);
6
+ function d(n) {
7
+ return n !== null && n < -2;
8
+ }
9
+ function m(n) {
10
+ return n !== null && (n < 0 || n === 32);
11
+ }
12
+ function f(n) {
13
+ return n === -2 || n === -1 || n === 32;
14
+ }
15
+ var y = o(new RegExp("\\p{P}|\\p{S}", "u")), b = o(/\s/);
16
+ function o(n) {
17
+ return r;
18
+ function r(t) {
19
+ return t !== null && t > -1 && n.test(String.fromCharCode(t));
20
+ }
21
+ }
22
+ function v(n) {
23
+ return n.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
24
+ }
25
+ function B(n) {
26
+ if (n === null || m(n) || b(n)) return 1;
27
+ if (y(n)) return 2;
28
+ }
29
+ var Z = [
30
+ "address",
31
+ "article",
32
+ "aside",
33
+ "base",
34
+ "basefont",
35
+ "blockquote",
36
+ "body",
37
+ "caption",
38
+ "center",
39
+ "col",
40
+ "colgroup",
41
+ "dd",
42
+ "details",
43
+ "dialog",
44
+ "dir",
45
+ "div",
46
+ "dl",
47
+ "dt",
48
+ "fieldset",
49
+ "figcaption",
50
+ "figure",
51
+ "footer",
52
+ "form",
53
+ "frame",
54
+ "frameset",
55
+ "h1",
56
+ "h2",
57
+ "h3",
58
+ "h4",
59
+ "h5",
60
+ "h6",
61
+ "head",
62
+ "header",
63
+ "hr",
64
+ "html",
65
+ "iframe",
66
+ "legend",
67
+ "li",
68
+ "link",
69
+ "main",
70
+ "menu",
71
+ "menuitem",
72
+ "nav",
73
+ "noframes",
74
+ "ol",
75
+ "optgroup",
76
+ "option",
77
+ "p",
78
+ "param",
79
+ "search",
80
+ "section",
81
+ "summary",
82
+ "table",
83
+ "tbody",
84
+ "td",
85
+ "tfoot",
86
+ "th",
87
+ "thead",
88
+ "title",
89
+ "tr",
90
+ "track",
91
+ "ul"
92
+ ], j = [
93
+ "pre",
94
+ "script",
95
+ "style",
96
+ "textarea"
97
+ ], k = {};
98
+ function D(n, r) {
99
+ const t = r || k;
100
+ return p(n, typeof t.includeImageAlt == "boolean" ? t.includeImageAlt : !0, typeof t.includeHtml == "boolean" ? t.includeHtml : !0);
101
+ }
102
+ function p(n, r, t) {
103
+ if (A(n)) {
104
+ if ("value" in n) return n.type === "html" && !t ? "" : n.value;
105
+ if (r && "alt" in n && n.alt) return n.alt;
106
+ if ("children" in n) return c(n.children, r, t);
107
+ }
108
+ return Array.isArray(n) ? c(n, r, t) : "";
109
+ }
110
+ function c(n, r, t) {
111
+ const i = [];
112
+ let a = -1;
113
+ for (; ++a < n.length; ) i[a] = p(n[a], r, t);
114
+ return i.join("");
115
+ }
116
+ function A(n) {
117
+ return !!(n && typeof n == "object");
118
+ }
119
+ function g(n, r, t, i) {
120
+ const a = n.length;
121
+ let e = 0, l;
122
+ if (r < 0 ? r = -r > a ? 0 : a + r : r = r > a ? a : r, t = t > 0 ? t : 0, i.length < 1e4)
123
+ l = Array.from(i), l.unshift(r, t), n.splice(...l);
124
+ else
125
+ for (t && n.splice(r, t); e < i.length; )
126
+ l = i.slice(e, e + 1e4), l.unshift(r, 0), n.splice(...l), e += 1e4, r += 1e4;
127
+ }
128
+ function F(n, r) {
129
+ return n.length > 0 ? (g(n, n.length, 0, r), n) : r;
130
+ }
131
+ var h = {}.hasOwnProperty;
132
+ function T(n) {
133
+ const r = {};
134
+ let t = -1;
135
+ for (; ++t < n.length; ) w(r, n[t]);
136
+ return r;
137
+ }
138
+ function w(n, r) {
139
+ let t;
140
+ for (t in r) {
141
+ const i = (h.call(n, t) ? n[t] : void 0) || (n[t] = {}), a = r[t];
142
+ let e;
143
+ if (a) for (e in a) {
144
+ h.call(i, e) || (i[e] = []);
145
+ const l = a[e];
146
+ x(i[e], Array.isArray(l) ? l : l ? [l] : []);
147
+ }
148
+ }
149
+ }
150
+ function x(n, r) {
151
+ let t = -1;
152
+ const i = [];
153
+ for (; ++t < r.length; ) (r[t].add === "after" ? n : i).push(r[t]);
154
+ g(n, 0, 0, i);
155
+ }
156
+ function _(n, r, t) {
157
+ const i = [];
158
+ let a = -1;
159
+ for (; ++a < n.length; ) {
160
+ const e = n[a].resolveAll;
161
+ e && !i.includes(e) && (r = e(r, t), i.push(e));
162
+ }
163
+ return r;
164
+ }
165
+ function S(n, r, t, i) {
166
+ const a = i ? i - 1 : Number.POSITIVE_INFINITY;
167
+ let e = 0;
168
+ return l;
169
+ function l(u) {
170
+ return f(u) ? (n.enter(t), s(u)) : r(u);
171
+ }
172
+ function s(u) {
173
+ return f(u) && e++ < a ? (n.consume(u), s) : (n.exit(t), r(u));
174
+ }
175
+ }
176
+ var q = {
177
+ partial: !0,
178
+ tokenize: C
179
+ };
180
+ function C(n, r, t) {
181
+ return i;
182
+ function i(e) {
183
+ return f(e) ? S(n, a, "linePrefix")(e) : a(e);
184
+ }
185
+ function a(e) {
186
+ return e === null || d(e) ? r(e) : t(e);
187
+ }
188
+ }
189
+ export {
190
+ b as C,
191
+ y as S,
192
+ N as _,
193
+ F as a,
194
+ m as b,
195
+ Z as c,
196
+ v as d,
197
+ P as f,
198
+ L as g,
199
+ E as h,
200
+ T as i,
201
+ j as l,
202
+ I as m,
203
+ S as n,
204
+ g as o,
205
+ z as p,
206
+ _ as r,
207
+ D as s,
208
+ q as t,
209
+ B as u,
210
+ O as v,
211
+ f as x,
212
+ d as y
213
+ };
@@ -1,4 +1,4 @@
1
- import { r as b } from "./messages-BEE-IywU.js";
1
+ import { t as b } from "./rolldown-runtime-Csywlj8R.js";
2
2
  var tt = /* @__PURE__ */ b(((o, u) => {
3
3
  u.exports = function() {
4
4
  return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
@@ -0,0 +1,120 @@
1
+ import { r as B } from "./rolldown-runtime-Csywlj8R.js";
2
+ import { i as E } from "./jsx-runtime-2MlY8uwR.js";
3
+ var l = /* @__PURE__ */ B(E(), 1), I = (t) => t?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
4
+ function $(t, e, r = []) {
5
+ if (e == null) throw new Error("[lucide]: iconNode is required when icon name is used");
6
+ return {
7
+ name: I(t),
8
+ size: 24,
9
+ node: e,
10
+ ...r.length > 0 ? { aliases: r } : {}
11
+ };
12
+ }
13
+ var j = (t) => {
14
+ let e = "", r = !1;
15
+ for (const o of t) {
16
+ if (o === "-" || o === "_" || o <= " ") {
17
+ r = e.length > 0;
18
+ continue;
19
+ }
20
+ e.length === 0 ? e += o.toLowerCase() : e += r ? o.toUpperCase() : o, r = !1;
21
+ }
22
+ return e;
23
+ }, P = (t) => {
24
+ const e = j(t);
25
+ return e.charAt(0).toUpperCase() + e.slice(1);
26
+ }, v = (...t) => t.filter((e, r, o) => !!e && e.trim() !== "" && o.indexOf(e) === r).join(" ").trim(), c = {
27
+ xmlns: "http://www.w3.org/2000/svg",
28
+ width: 24,
29
+ height: 24,
30
+ viewBox: "0 0 24 24",
31
+ fill: "none",
32
+ stroke: "currentColor",
33
+ "stroke-width": 2,
34
+ "stroke-linecap": "round",
35
+ "stroke-linejoin": "round"
36
+ };
37
+ function C(t) {
38
+ return t != null;
39
+ }
40
+ function _(t, e = {}) {
41
+ const r = e.attributeNames ?? {}, o = (i) => r[i] ?? i, u = t.size ?? t.width ?? c.width, d = t.size ?? t.height ?? c.height, h = t.aliases?.filter((i) => typeof i == "string" && i.trim() !== "").map((i) => `lucide-${i}`) ?? [], f = [...t.name ? [`lucide-${t.name}`] : [], ...h], n = e.className?.split(" ").filter(Boolean) ?? [], w = e.includeDefaultClasses === !1 ? v(...n) : v("lucide", ...f, ...n), b = e.absoluteStrokeWidth ? Number(e.strokeWidth ?? c["stroke-width"]) * Number(t.size ?? t.width ?? c.width) / Number(e.size ?? e.width ?? c.width) : e.strokeWidth ?? c["stroke-width"];
42
+ return [
43
+ "svg",
44
+ {
45
+ ...Object.entries(c).reduce((i, [a, s]) => (i[o(a)] = s, i), {}),
46
+ ..."color" in e && e.color && { [o("stroke")]: e.color },
47
+ ..."size" in e && C(e.size) && {
48
+ [o("width")]: e.size,
49
+ [o("height")]: e.size
50
+ },
51
+ ..."width" in e && C(e.width) && { [o("width")]: e.width },
52
+ ..."height" in e && C(e.height) && { [o("height")]: e.height },
53
+ [o("stroke-width")]: b,
54
+ ...w && { [o("class")]: w },
55
+ [o("viewBox")]: `0 0 ${u} ${d}`,
56
+ ...e.hasA11yProp === !1 ? { [o("aria-hidden")]: "true" } : {},
57
+ ..."attributes" in e && e.attributes
58
+ },
59
+ t.node.map((i) => {
60
+ const [a, s, k] = i, g = e.nonScalingStroke ? {
61
+ [o("vector-effect")]: "non-scaling-stroke",
62
+ ...s
63
+ } : s;
64
+ return k ? [
65
+ a,
66
+ g,
67
+ k
68
+ ] : [a, g];
69
+ })
70
+ ];
71
+ }
72
+ function p(t, e = {}) {
73
+ return _(t, {
74
+ ...e,
75
+ attributeNames: {
76
+ ...e.attributeNames,
77
+ class: "className",
78
+ "stroke-width": "strokeWidth",
79
+ "stroke-linecap": "strokeLinecap",
80
+ "stroke-linejoin": "strokeLinejoin",
81
+ "vector-effect": "vectorEffect"
82
+ }
83
+ });
84
+ }
85
+ var R = (t) => {
86
+ for (const e in t) if (e.startsWith("aria-") || e === "role" || e === "title") return !0;
87
+ return !1;
88
+ }, q = (0, l.createContext)({}), D = () => (0, l.useContext)(q), F = (0, l.forwardRef)(({ color: t, size: e, width: r, height: o, strokeWidth: u, absoluteStrokeWidth: d, nonScalingStroke: h, className: f = "", children: n, iconNode: w = [], icon: b = {
89
+ node: w,
90
+ aliases: [],
91
+ size: 24
92
+ }, ...i }, a) => {
93
+ const { size: s = 24, strokeWidth: k = 2, absoluteStrokeWidth: g = !1, nonScalingStroke: x = !1, color: N = "currentColor", className: m = "" } = D() ?? {}, S = !!n || R(i), [A, W, z = []] = p(b, {
94
+ color: t ?? N,
95
+ width: r ?? e ?? s,
96
+ height: o ?? e ?? s,
97
+ strokeWidth: u ?? k,
98
+ absoluteStrokeWidth: d ?? g,
99
+ nonScalingStroke: h ?? x,
100
+ className: v(m, f),
101
+ hasA11yProp: S,
102
+ attributes: i
103
+ });
104
+ return (0, l.createElement)(A, {
105
+ ref: a,
106
+ ...W
107
+ }, [...z.map(([L, y]) => (0, l.createElement)(L, y)), ...Array.isArray(n) ? n : [n]]);
108
+ });
109
+ function K(t, e = [], r = []) {
110
+ const o = typeof t == "string" ? $(t, e, r) : t, u = (0, l.forwardRef)(({ className: d, ...h }, f) => (0, l.createElement)(F, {
111
+ ref: f,
112
+ icon: o,
113
+ className: d,
114
+ ...h
115
+ }));
116
+ return o.name && (u.displayName = P(o.name)), u;
117
+ }
118
+ export {
119
+ K as t
120
+ };