wecool-chat 0.9.0 → 0.10.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.
- package/CHANGELOG.md +52 -0
- package/README.ja.md +78 -20
- package/README.md +145 -23
- package/dist/CopyIndicator-RR3hSsBA.js +51 -0
- package/dist/MarkdownBody-EIz0jnQy.js +14910 -0
- package/dist/VoiceControls-A7N4uPTo.js +146 -0
- package/dist/VoiceRuntime-DrYjNkZK.js +459 -0
- package/dist/blank-line-CUDmZ-mX.js +143 -0
- package/dist/{browser-D1aZQhQL.js → browser-M7mS-hAN.js} +5 -5
- package/dist/clsx-Cf23UI1w.js +16 -0
- package/dist/core/client.d.ts +11 -3
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/error-reporter.d.ts +1 -1
- package/dist/core/error-reporter.d.ts.map +1 -1
- package/dist/core/i18n/messages.d.ts +77 -1
- package/dist/core/i18n/messages.d.ts.map +1 -1
- package/dist/core/tool-runner.d.ts.map +1 -1
- package/dist/core/types.d.ts +23 -1
- package/dist/core/types.d.ts.map +1 -1
- package/dist/createLucideIcon-C7wGkK-Q.js +43 -0
- package/dist/default-sNAxTmdF.js +8 -0
- package/dist/index.css +2 -2
- package/dist/index.js +5181 -4871
- package/dist/jsx-runtime-Cyy0mp0f.js +328 -0
- package/dist/lib-DG_DjiCr.js +15 -0
- package/dist/{messages-CveZLPSJ.js → messages-FvtWi3lI.js} +99 -27
- package/dist/plugins/qrcode.js +2 -2
- package/dist/remark-gfm-Bzy1u34W.js +1962 -0
- package/dist/remark-parse-BnwSmQr-.js +2486 -0
- package/dist/stable-prefix-BHsGj4tL.js +21 -0
- package/dist/ui/components/ChatFooter.d.ts +16 -2
- package/dist/ui/components/ChatFooter.d.ts.map +1 -1
- package/dist/ui/components/ChatHeader.d.ts +9 -2
- package/dist/ui/components/ChatHeader.d.ts.map +1 -1
- package/dist/ui/components/ChatHeaderMenu.d.ts +23 -2
- package/dist/ui/components/ChatHeaderMenu.d.ts.map +1 -1
- package/dist/ui/components/ChatPanel.d.ts +13 -3
- package/dist/ui/components/ChatPanel.d.ts.map +1 -1
- package/dist/ui/components/ChatWidget.d.ts.map +1 -1
- package/dist/ui/components/CommandConfirmationCard.d.ts +7 -1
- package/dist/ui/components/CommandConfirmationCard.d.ts.map +1 -1
- package/dist/ui/components/CommandOverlays.d.ts +13 -1
- package/dist/ui/components/CommandOverlays.d.ts.map +1 -1
- package/dist/ui/components/FooterActions.d.ts +18 -0
- package/dist/ui/components/FooterActions.d.ts.map +1 -0
- package/dist/ui/components/MessageList.d.ts +7 -1
- package/dist/ui/components/MessageList.d.ts.map +1 -1
- package/dist/ui/components/MessageRow.d.ts +7 -1
- package/dist/ui/components/MessageRow.d.ts.map +1 -1
- package/dist/ui/components/MessageRowActions.d.ts +9 -3
- package/dist/ui/components/MessageRowActions.d.ts.map +1 -1
- package/dist/ui/components/MicButton.d.ts +11 -0
- package/dist/ui/components/MicButton.d.ts.map +1 -0
- package/dist/ui/components/VoiceControls.d.ts +22 -0
- package/dist/ui/components/VoiceControls.d.ts.map +1 -0
- package/dist/ui/components/VoiceLoopStatusBar.d.ts +17 -0
- package/dist/ui/components/VoiceLoopStatusBar.d.ts.map +1 -0
- package/dist/ui/components/VoiceLoopToggle.d.ts +15 -0
- package/dist/ui/components/VoiceLoopToggle.d.ts.map +1 -0
- package/dist/ui/components/VoiceRuntime.d.ts +16 -0
- package/dist/ui/components/VoiceRuntime.d.ts.map +1 -0
- package/dist/ui/components/lazy-voice.d.ts +19 -0
- package/dist/ui/components/lazy-voice.d.ts.map +1 -0
- package/dist/ui/hooks/use-command-execution.d.ts +23 -1
- package/dist/ui/hooks/use-command-execution.d.ts.map +1 -1
- package/dist/ui/hooks/use-message-history.d.ts +14 -0
- package/dist/ui/hooks/use-message-history.d.ts.map +1 -1
- package/dist/ui/hooks/use-mic-button.d.ts +29 -0
- package/dist/ui/hooks/use-mic-button.d.ts.map +1 -0
- package/dist/ui/hooks/use-send-message.d.ts.map +1 -1
- package/dist/ui/hooks/use-speak-message.d.ts +26 -0
- package/dist/ui/hooks/use-speak-message.d.ts.map +1 -0
- package/dist/ui/hooks/use-visitor-id.d.ts +15 -3
- package/dist/ui/hooks/use-visitor-id.d.ts.map +1 -1
- package/dist/ui/hooks/use-voice-input.d.ts +38 -0
- package/dist/ui/hooks/use-voice-input.d.ts.map +1 -0
- package/dist/ui/hooks/use-voice-loop-speech.d.ts +38 -0
- package/dist/ui/hooks/use-voice-loop-speech.d.ts.map +1 -0
- package/dist/ui/hooks/use-voice-loop.d.ts +12 -0
- package/dist/ui/hooks/use-voice-loop.d.ts.map +1 -0
- package/dist/ui/hooks/use-voice-runtime-snapshot.d.ts +19 -0
- package/dist/ui/hooks/use-voice-runtime-snapshot.d.ts.map +1 -0
- package/dist/ui/hooks/use-voice-runtime.d.ts +29 -0
- package/dist/ui/hooks/use-voice-runtime.d.ts.map +1 -0
- package/dist/ui/hooks/useChatStream.d.ts +5 -0
- package/dist/ui/hooks/useChatStream.d.ts.map +1 -1
- package/dist/ui/hooks/useConversationList.d.ts +7 -0
- package/dist/ui/hooks/useConversationList.d.ts.map +1 -1
- package/dist/ui/utils/speech-text.d.ts +29 -0
- package/dist/ui/utils/speech-text.d.ts.map +1 -0
- package/dist/ui/utils/voice-locale.d.ts +3 -0
- package/dist/ui/utils/voice-locale.d.ts.map +1 -0
- package/dist/ui/utils/voice-loop-cue.d.ts +23 -0
- package/dist/ui/utils/voice-loop-cue.d.ts.map +1 -0
- package/dist/ui/utils/voice-loop-status.d.ts +17 -0
- package/dist/ui/utils/voice-loop-status.d.ts.map +1 -0
- package/dist/ui/utils/voice-loop-types.d.ts +40 -0
- package/dist/ui/utils/voice-loop-types.d.ts.map +1 -0
- package/dist/ui/utils/voice-runtime.d.ts +38 -0
- package/dist/ui/utils/voice-runtime.d.ts.map +1 -0
- package/dist/ui/utils/voice-support.d.ts +9 -0
- package/dist/ui/utils/voice-support.d.ts.map +1 -0
- package/dist/unified-DctkAd9P.js +518 -0
- package/dist/use-voice-input-LtJJz-zQ.js +102 -0
- package/dist/version.d.ts +17 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/voice-runtime-F5NxN_0m.js +11 -0
- package/dist/voice-support-BeOiOzcn.js +9 -0
- package/package.json +27 -25
- package/dist/CopyIndicator-D50ixqNB.js +0 -407
- package/dist/MarkdownBody-eopKrDot.js +0 -19983
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wecool-chat",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Drop-in LLM chat widget that executes your JavaScript functions via natural language",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -55,42 +55,44 @@
|
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"clsx": "^2.1.1",
|
|
58
|
-
"highlight.js": "^11.
|
|
59
|
-
"lucide-react": "^
|
|
58
|
+
"highlight.js": "^11.12.0",
|
|
59
|
+
"lucide-react": "^1.25.0",
|
|
60
60
|
"qrcode": "^1.5.4",
|
|
61
|
-
"react": "^19.2.
|
|
62
|
-
"react-dom": "^19.2.
|
|
61
|
+
"react": "^19.2.8",
|
|
62
|
+
"react-dom": "^19.2.8",
|
|
63
63
|
"react-markdown": "^10.1.0",
|
|
64
64
|
"rehype-highlight": "^7.0.2",
|
|
65
|
-
"remark-gfm": "^4.0.1"
|
|
65
|
+
"remark-gfm": "^4.0.1",
|
|
66
|
+
"remark-parse": "^11.0.0",
|
|
67
|
+
"unified": "^11.0.5"
|
|
66
68
|
},
|
|
67
69
|
"devDependencies": {
|
|
68
70
|
"@eslint/js": "^10.0.1",
|
|
69
71
|
"@size-limit/file": "^12.1.0",
|
|
70
|
-
"@tailwindcss/vite": "^4.3.
|
|
71
|
-
"@testing-library/react": "^16.3.
|
|
72
|
-
"@testing-library/user-event": "^14.6.
|
|
72
|
+
"@tailwindcss/vite": "^4.3.3",
|
|
73
|
+
"@testing-library/react": "^16.3.3",
|
|
74
|
+
"@testing-library/user-event": "^14.6.7",
|
|
73
75
|
"@types/qrcode": "^1.5.5",
|
|
74
|
-
"@types/react": "^19.2.
|
|
75
|
-
"@types/react-dom": "^19.2.
|
|
76
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
77
|
-
"@typescript-eslint/parser": "^8.
|
|
78
|
-
"@vitejs/plugin-react": "^6.
|
|
79
|
-
"@vitest/coverage-v8": "^4.1.
|
|
80
|
-
"axe-core": "^4.
|
|
81
|
-
"eslint": "^10.
|
|
76
|
+
"@types/react": "^19.2.18",
|
|
77
|
+
"@types/react-dom": "^19.2.7",
|
|
78
|
+
"@typescript-eslint/eslint-plugin": "^8.69.0",
|
|
79
|
+
"@typescript-eslint/parser": "^8.69.0",
|
|
80
|
+
"@vitejs/plugin-react": "^6.1.1",
|
|
81
|
+
"@vitest/coverage-v8": "^4.1.11",
|
|
82
|
+
"axe-core": "^4.13.0",
|
|
83
|
+
"eslint": "^10.9.1",
|
|
82
84
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
83
|
-
"globals": "^17.
|
|
85
|
+
"globals": "^17.12.0",
|
|
84
86
|
"jsdom": "^29.1.1",
|
|
85
|
-
"react": "^19.2.
|
|
86
|
-
"react-dom": "^19.2.
|
|
87
|
-
"rollup-plugin-visualizer": "^7.
|
|
87
|
+
"react": "^19.2.8",
|
|
88
|
+
"react-dom": "^19.2.8",
|
|
89
|
+
"rollup-plugin-visualizer": "^7.1.1",
|
|
88
90
|
"size-limit": "^12.1.0",
|
|
89
|
-
"tailwindcss": "^4.3.
|
|
91
|
+
"tailwindcss": "^4.3.3",
|
|
90
92
|
"typescript": "^5.9.3",
|
|
91
|
-
"vite": "^8.
|
|
92
|
-
"vite-plugin-dts": "^5.0
|
|
93
|
-
"vitest": "^4.1.
|
|
93
|
+
"vite": "^8.2.2",
|
|
94
|
+
"vite-plugin-dts": "^5.1.0",
|
|
95
|
+
"vitest": "^4.1.11"
|
|
94
96
|
},
|
|
95
97
|
"keywords": [
|
|
96
98
|
"llm",
|
|
@@ -1,407 +0,0 @@
|
|
|
1
|
-
import { a as te, r as h, t as re } from "./messages-CveZLPSJ.js";
|
|
2
|
-
var ne = /* @__PURE__ */ h(((r) => {
|
|
3
|
-
var o = /* @__PURE__ */ Symbol.for("react.transitional.element"), a = /* @__PURE__ */ Symbol.for("react.portal"), _ = /* @__PURE__ */ Symbol.for("react.fragment"), m = /* @__PURE__ */ Symbol.for("react.strict_mode"), l = /* @__PURE__ */ Symbol.for("react.profiler"), v = /* @__PURE__ */ Symbol.for("react.consumer"), C = /* @__PURE__ */ Symbol.for("react.context"), T = /* @__PURE__ */ Symbol.for("react.forward_ref"), g = /* @__PURE__ */ Symbol.for("react.suspense"), S = /* @__PURE__ */ Symbol.for("react.memo"), $ = /* @__PURE__ */ Symbol.for("react.lazy"), J = /* @__PURE__ */ Symbol.for("react.activity"), I = Symbol.iterator;
|
|
4
|
-
function Q(e) {
|
|
5
|
-
return e === null || typeof e != "object" ? null : (e = I && e[I] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
6
|
-
}
|
|
7
|
-
var L = {
|
|
8
|
-
isMounted: function() {
|
|
9
|
-
return !1;
|
|
10
|
-
},
|
|
11
|
-
enqueueForceUpdate: function() {
|
|
12
|
-
},
|
|
13
|
-
enqueueReplaceState: function() {
|
|
14
|
-
},
|
|
15
|
-
enqueueSetState: function() {
|
|
16
|
-
}
|
|
17
|
-
}, N = Object.assign, Y = {};
|
|
18
|
-
function d(e, t, u) {
|
|
19
|
-
this.props = e, this.context = t, this.refs = Y, this.updater = u || L;
|
|
20
|
-
}
|
|
21
|
-
d.prototype.isReactComponent = {}, d.prototype.setState = function(e, t) {
|
|
22
|
-
if (typeof e != "object" && typeof e != "function" && e != null) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
|
|
23
|
-
this.updater.enqueueSetState(this, e, t, "setState");
|
|
24
|
-
}, d.prototype.forceUpdate = function(e) {
|
|
25
|
-
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
26
|
-
};
|
|
27
|
-
function b() {
|
|
28
|
-
}
|
|
29
|
-
b.prototype = d.prototype;
|
|
30
|
-
function j(e, t, u) {
|
|
31
|
-
this.props = e, this.context = t, this.refs = Y, this.updater = u || L;
|
|
32
|
-
}
|
|
33
|
-
var P = j.prototype = new b();
|
|
34
|
-
P.constructor = j, N(P, d.prototype), P.isPureReactComponent = !0;
|
|
35
|
-
var D = Array.isArray;
|
|
36
|
-
function O() {
|
|
37
|
-
}
|
|
38
|
-
var c = {
|
|
39
|
-
H: null,
|
|
40
|
-
A: null,
|
|
41
|
-
T: null,
|
|
42
|
-
S: null
|
|
43
|
-
}, U = Object.prototype.hasOwnProperty;
|
|
44
|
-
function M(e, t, u) {
|
|
45
|
-
var n = u.ref;
|
|
46
|
-
return {
|
|
47
|
-
$$typeof: o,
|
|
48
|
-
type: e,
|
|
49
|
-
key: t,
|
|
50
|
-
ref: n !== void 0 ? n : null,
|
|
51
|
-
props: u
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
function X(e, t) {
|
|
55
|
-
return M(e.type, t, e.props);
|
|
56
|
-
}
|
|
57
|
-
function k(e) {
|
|
58
|
-
return typeof e == "object" && e !== null && e.$$typeof === o;
|
|
59
|
-
}
|
|
60
|
-
function F(e) {
|
|
61
|
-
var t = {
|
|
62
|
-
"=": "=0",
|
|
63
|
-
":": "=2"
|
|
64
|
-
};
|
|
65
|
-
return "$" + e.replace(/[=:]/g, function(u) {
|
|
66
|
-
return t[u];
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
var q = /\/+/g;
|
|
70
|
-
function H(e, t) {
|
|
71
|
-
return typeof e == "object" && e !== null && e.key != null ? F("" + e.key) : t.toString(36);
|
|
72
|
-
}
|
|
73
|
-
function K(e) {
|
|
74
|
-
switch (e.status) {
|
|
75
|
-
case "fulfilled":
|
|
76
|
-
return e.value;
|
|
77
|
-
case "rejected":
|
|
78
|
-
throw e.reason;
|
|
79
|
-
default:
|
|
80
|
-
switch (typeof e.status == "string" ? e.then(O, O) : (e.status = "pending", e.then(function(t) {
|
|
81
|
-
e.status === "pending" && (e.status = "fulfilled", e.value = t);
|
|
82
|
-
}, function(t) {
|
|
83
|
-
e.status === "pending" && (e.status = "rejected", e.reason = t);
|
|
84
|
-
})), e.status) {
|
|
85
|
-
case "fulfilled":
|
|
86
|
-
return e.value;
|
|
87
|
-
case "rejected":
|
|
88
|
-
throw e.reason;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
throw e;
|
|
92
|
-
}
|
|
93
|
-
function R(e, t, u, n, s) {
|
|
94
|
-
var i = typeof e;
|
|
95
|
-
(i === "undefined" || i === "boolean") && (e = null);
|
|
96
|
-
var f = !1;
|
|
97
|
-
if (e === null) f = !0;
|
|
98
|
-
else switch (i) {
|
|
99
|
-
case "bigint":
|
|
100
|
-
case "string":
|
|
101
|
-
case "number":
|
|
102
|
-
f = !0;
|
|
103
|
-
break;
|
|
104
|
-
case "object":
|
|
105
|
-
switch (e.$$typeof) {
|
|
106
|
-
case o:
|
|
107
|
-
case a:
|
|
108
|
-
f = !0;
|
|
109
|
-
break;
|
|
110
|
-
case $:
|
|
111
|
-
return f = e._init, R(f(e._payload), t, u, n, s);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
if (f) return s = s(e), f = n === "" ? "." + H(e, 0) : n, D(s) ? (u = "", f != null && (u = f.replace(q, "$&/") + "/"), R(s, t, u, "", function(ee) {
|
|
115
|
-
return ee;
|
|
116
|
-
})) : s != null && (k(s) && (s = X(s, u + (s.key == null || e && e.key === s.key ? "" : ("" + s.key).replace(q, "$&/") + "/") + f)), t.push(s)), 1;
|
|
117
|
-
f = 0;
|
|
118
|
-
var y = n === "" ? "." : n + ":";
|
|
119
|
-
if (D(e)) for (var p = 0; p < e.length; p++) n = e[p], i = y + H(n, p), f += R(n, t, u, i, s);
|
|
120
|
-
else if (p = Q(e), typeof p == "function") for (e = p.call(e), p = 0; !(n = e.next()).done; ) n = n.value, i = y + H(n, p++), f += R(n, t, u, i, s);
|
|
121
|
-
else if (i === "object") {
|
|
122
|
-
if (typeof e.then == "function") return R(K(e), t, u, n, s);
|
|
123
|
-
throw t = String(e), Error("Objects are not valid as a React child (found: " + (t === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : t) + "). If you meant to render a collection of children, use an array instead.");
|
|
124
|
-
}
|
|
125
|
-
return f;
|
|
126
|
-
}
|
|
127
|
-
function A(e, t, u) {
|
|
128
|
-
if (e == null) return e;
|
|
129
|
-
var n = [], s = 0;
|
|
130
|
-
return R(e, n, "", "", function(i) {
|
|
131
|
-
return t.call(u, i, s++);
|
|
132
|
-
}), n;
|
|
133
|
-
}
|
|
134
|
-
function V(e) {
|
|
135
|
-
if (e._status === -1) {
|
|
136
|
-
var t = e._result;
|
|
137
|
-
t = t(), t.then(function(u) {
|
|
138
|
-
(e._status === 0 || e._status === -1) && (e._status = 1, e._result = u);
|
|
139
|
-
}, function(u) {
|
|
140
|
-
(e._status === 0 || e._status === -1) && (e._status = 2, e._result = u);
|
|
141
|
-
}), e._status === -1 && (e._status = 0, e._result = t);
|
|
142
|
-
}
|
|
143
|
-
if (e._status === 1) return e._result.default;
|
|
144
|
-
throw e._result;
|
|
145
|
-
}
|
|
146
|
-
var z = typeof reportError == "function" ? reportError : function(e) {
|
|
147
|
-
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
148
|
-
var t = new window.ErrorEvent("error", {
|
|
149
|
-
bubbles: !0,
|
|
150
|
-
cancelable: !0,
|
|
151
|
-
message: typeof e == "object" && e !== null && typeof e.message == "string" ? String(e.message) : String(e),
|
|
152
|
-
error: e
|
|
153
|
-
});
|
|
154
|
-
if (!window.dispatchEvent(t)) return;
|
|
155
|
-
} else if (typeof process == "object" && typeof process.emit == "function") {
|
|
156
|
-
process.emit("uncaughtException", e);
|
|
157
|
-
return;
|
|
158
|
-
}
|
|
159
|
-
console.error(e);
|
|
160
|
-
}, x = {
|
|
161
|
-
map: A,
|
|
162
|
-
forEach: function(e, t, u) {
|
|
163
|
-
A(e, function() {
|
|
164
|
-
t.apply(this, arguments);
|
|
165
|
-
}, u);
|
|
166
|
-
},
|
|
167
|
-
count: function(e) {
|
|
168
|
-
var t = 0;
|
|
169
|
-
return A(e, function() {
|
|
170
|
-
t++;
|
|
171
|
-
}), t;
|
|
172
|
-
},
|
|
173
|
-
toArray: function(e) {
|
|
174
|
-
return A(e, function(t) {
|
|
175
|
-
return t;
|
|
176
|
-
}) || [];
|
|
177
|
-
},
|
|
178
|
-
only: function(e) {
|
|
179
|
-
if (!k(e)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
180
|
-
return e;
|
|
181
|
-
}
|
|
182
|
-
};
|
|
183
|
-
r.Activity = J, r.Children = x, r.Component = d, r.Fragment = _, r.Profiler = l, r.PureComponent = j, r.StrictMode = m, r.Suspense = g, r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = c, r.__COMPILER_RUNTIME = {
|
|
184
|
-
__proto__: null,
|
|
185
|
-
c: function(e) {
|
|
186
|
-
return c.H.useMemoCache(e);
|
|
187
|
-
}
|
|
188
|
-
}, r.cache = function(e) {
|
|
189
|
-
return function() {
|
|
190
|
-
return e.apply(null, arguments);
|
|
191
|
-
};
|
|
192
|
-
}, r.cacheSignal = function() {
|
|
193
|
-
return null;
|
|
194
|
-
}, r.cloneElement = function(e, t, u) {
|
|
195
|
-
if (e == null) throw Error("The argument must be a React element, but you passed " + e + ".");
|
|
196
|
-
var n = N({}, e.props), s = e.key;
|
|
197
|
-
if (t != null) for (i in t.key !== void 0 && (s = "" + t.key), t) !U.call(t, i) || i === "key" || i === "__self" || i === "__source" || i === "ref" && t.ref === void 0 || (n[i] = t[i]);
|
|
198
|
-
var i = arguments.length - 2;
|
|
199
|
-
if (i === 1) n.children = u;
|
|
200
|
-
else if (1 < i) {
|
|
201
|
-
for (var f = Array(i), y = 0; y < i; y++) f[y] = arguments[y + 2];
|
|
202
|
-
n.children = f;
|
|
203
|
-
}
|
|
204
|
-
return M(e.type, s, n);
|
|
205
|
-
}, r.createContext = function(e) {
|
|
206
|
-
return e = {
|
|
207
|
-
$$typeof: C,
|
|
208
|
-
_currentValue: e,
|
|
209
|
-
_currentValue2: e,
|
|
210
|
-
_threadCount: 0,
|
|
211
|
-
Provider: null,
|
|
212
|
-
Consumer: null
|
|
213
|
-
}, e.Provider = e, e.Consumer = {
|
|
214
|
-
$$typeof: v,
|
|
215
|
-
_context: e
|
|
216
|
-
}, e;
|
|
217
|
-
}, r.createElement = function(e, t, u) {
|
|
218
|
-
var n, s = {}, i = null;
|
|
219
|
-
if (t != null) for (n in t.key !== void 0 && (i = "" + t.key), t) U.call(t, n) && n !== "key" && n !== "__self" && n !== "__source" && (s[n] = t[n]);
|
|
220
|
-
var f = arguments.length - 2;
|
|
221
|
-
if (f === 1) s.children = u;
|
|
222
|
-
else if (1 < f) {
|
|
223
|
-
for (var y = Array(f), p = 0; p < f; p++) y[p] = arguments[p + 2];
|
|
224
|
-
s.children = y;
|
|
225
|
-
}
|
|
226
|
-
if (e && e.defaultProps) for (n in f = e.defaultProps, f) s[n] === void 0 && (s[n] = f[n]);
|
|
227
|
-
return M(e, i, s);
|
|
228
|
-
}, r.createRef = function() {
|
|
229
|
-
return { current: null };
|
|
230
|
-
}, r.forwardRef = function(e) {
|
|
231
|
-
return {
|
|
232
|
-
$$typeof: T,
|
|
233
|
-
render: e
|
|
234
|
-
};
|
|
235
|
-
}, r.isValidElement = k, r.lazy = function(e) {
|
|
236
|
-
return {
|
|
237
|
-
$$typeof: $,
|
|
238
|
-
_payload: {
|
|
239
|
-
_status: -1,
|
|
240
|
-
_result: e
|
|
241
|
-
},
|
|
242
|
-
_init: V
|
|
243
|
-
};
|
|
244
|
-
}, r.memo = function(e, t) {
|
|
245
|
-
return {
|
|
246
|
-
$$typeof: S,
|
|
247
|
-
type: e,
|
|
248
|
-
compare: t === void 0 ? null : t
|
|
249
|
-
};
|
|
250
|
-
}, r.startTransition = function(e) {
|
|
251
|
-
var t = c.T, u = {};
|
|
252
|
-
c.T = u;
|
|
253
|
-
try {
|
|
254
|
-
var n = e(), s = c.S;
|
|
255
|
-
s !== null && s(u, n), typeof n == "object" && n !== null && typeof n.then == "function" && n.then(O, z);
|
|
256
|
-
} catch (i) {
|
|
257
|
-
z(i);
|
|
258
|
-
} finally {
|
|
259
|
-
t !== null && u.types !== null && (t.types = u.types), c.T = t;
|
|
260
|
-
}
|
|
261
|
-
}, r.unstable_useCacheRefresh = function() {
|
|
262
|
-
return c.H.useCacheRefresh();
|
|
263
|
-
}, r.use = function(e) {
|
|
264
|
-
return c.H.use(e);
|
|
265
|
-
}, r.useActionState = function(e, t, u) {
|
|
266
|
-
return c.H.useActionState(e, t, u);
|
|
267
|
-
}, r.useCallback = function(e, t) {
|
|
268
|
-
return c.H.useCallback(e, t);
|
|
269
|
-
}, r.useContext = function(e) {
|
|
270
|
-
return c.H.useContext(e);
|
|
271
|
-
}, r.useDebugValue = function() {
|
|
272
|
-
}, r.useDeferredValue = function(e, t) {
|
|
273
|
-
return c.H.useDeferredValue(e, t);
|
|
274
|
-
}, r.useEffect = function(e, t) {
|
|
275
|
-
return c.H.useEffect(e, t);
|
|
276
|
-
}, r.useEffectEvent = function(e) {
|
|
277
|
-
return c.H.useEffectEvent(e);
|
|
278
|
-
}, r.useId = function() {
|
|
279
|
-
return c.H.useId();
|
|
280
|
-
}, r.useImperativeHandle = function(e, t, u) {
|
|
281
|
-
return c.H.useImperativeHandle(e, t, u);
|
|
282
|
-
}, r.useInsertionEffect = function(e, t) {
|
|
283
|
-
return c.H.useInsertionEffect(e, t);
|
|
284
|
-
}, r.useLayoutEffect = function(e, t) {
|
|
285
|
-
return c.H.useLayoutEffect(e, t);
|
|
286
|
-
}, r.useMemo = function(e, t) {
|
|
287
|
-
return c.H.useMemo(e, t);
|
|
288
|
-
}, r.useOptimistic = function(e, t) {
|
|
289
|
-
return c.H.useOptimistic(e, t);
|
|
290
|
-
}, r.useReducer = function(e, t, u) {
|
|
291
|
-
return c.H.useReducer(e, t, u);
|
|
292
|
-
}, r.useRef = function(e) {
|
|
293
|
-
return c.H.useRef(e);
|
|
294
|
-
}, r.useState = function(e) {
|
|
295
|
-
return c.H.useState(e);
|
|
296
|
-
}, r.useSyncExternalStore = function(e, t, u) {
|
|
297
|
-
return c.H.useSyncExternalStore(e, t, u);
|
|
298
|
-
}, r.useTransition = function() {
|
|
299
|
-
return c.H.useTransition();
|
|
300
|
-
}, r.version = "19.2.7";
|
|
301
|
-
})), ue = /* @__PURE__ */ h(((r, o) => {
|
|
302
|
-
o.exports = ne();
|
|
303
|
-
})), E = /* @__PURE__ */ te(ue(), 1), B = (0, E.createContext)(re()), he = B.Provider, oe = () => (0, E.useContext)(B), se = (r) => r.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), ie = (r) => r.replace(/^([A-Z])|[\s-_]+(\w)/g, (o, a, _) => _ ? _.toUpperCase() : a.toLowerCase()), G = (r) => {
|
|
304
|
-
const o = ie(r);
|
|
305
|
-
return o.charAt(0).toUpperCase() + o.slice(1);
|
|
306
|
-
}, W = (...r) => r.filter((o, a, _) => !!o && o.trim() !== "" && _.indexOf(o) === a).join(" ").trim(), ce = (r) => {
|
|
307
|
-
for (const o in r) if (o.startsWith("aria-") || o === "role" || o === "title") return !0;
|
|
308
|
-
}, fe = {
|
|
309
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
310
|
-
width: 24,
|
|
311
|
-
height: 24,
|
|
312
|
-
viewBox: "0 0 24 24",
|
|
313
|
-
fill: "none",
|
|
314
|
-
stroke: "currentColor",
|
|
315
|
-
strokeWidth: 2,
|
|
316
|
-
strokeLinecap: "round",
|
|
317
|
-
strokeLinejoin: "round"
|
|
318
|
-
}, ae = (0, E.forwardRef)(({ color: r = "currentColor", size: o = 24, strokeWidth: a = 2, absoluteStrokeWidth: _, className: m = "", children: l, iconNode: v, ...C }, T) => (0, E.createElement)("svg", {
|
|
319
|
-
ref: T,
|
|
320
|
-
...fe,
|
|
321
|
-
width: o,
|
|
322
|
-
height: o,
|
|
323
|
-
stroke: r,
|
|
324
|
-
strokeWidth: _ ? Number(a) * 24 / Number(o) : a,
|
|
325
|
-
className: W("lucide", m),
|
|
326
|
-
...!l && !ce(C) && { "aria-hidden": "true" },
|
|
327
|
-
...C
|
|
328
|
-
}, [...v.map(([g, S]) => (0, E.createElement)(g, S)), ...Array.isArray(l) ? l : [l]])), Z = (r, o) => {
|
|
329
|
-
const a = (0, E.forwardRef)(({ className: _, ...m }, l) => (0, E.createElement)(ae, {
|
|
330
|
-
ref: l,
|
|
331
|
-
iconNode: o,
|
|
332
|
-
className: W(`lucide-${se(G(r))}`, `lucide-${r}`, _),
|
|
333
|
-
...m
|
|
334
|
-
}));
|
|
335
|
-
return a.displayName = G(r), a;
|
|
336
|
-
}, le = [["path", {
|
|
337
|
-
d: "M20 6 9 17l-5-5",
|
|
338
|
-
key: "1gmf2c"
|
|
339
|
-
}]], _e = Z("check", le), pe = [["rect", {
|
|
340
|
-
width: "14",
|
|
341
|
-
height: "14",
|
|
342
|
-
x: "8",
|
|
343
|
-
y: "8",
|
|
344
|
-
rx: "2",
|
|
345
|
-
ry: "2",
|
|
346
|
-
key: "17jyea"
|
|
347
|
-
}], ["path", {
|
|
348
|
-
d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
|
|
349
|
-
key: "zix9uf"
|
|
350
|
-
}]], ve = Z("copy", pe), Ee = /* @__PURE__ */ h(((r) => {
|
|
351
|
-
var o = /* @__PURE__ */ Symbol.for("react.transitional.element"), a = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
352
|
-
function _(m, l, v) {
|
|
353
|
-
var C = null;
|
|
354
|
-
if (v !== void 0 && (C = "" + v), l.key !== void 0 && (C = "" + l.key), "key" in l) {
|
|
355
|
-
v = {};
|
|
356
|
-
for (var T in l) T !== "key" && (v[T] = l[T]);
|
|
357
|
-
} else v = l;
|
|
358
|
-
return l = v.ref, {
|
|
359
|
-
$$typeof: o,
|
|
360
|
-
type: m,
|
|
361
|
-
key: C,
|
|
362
|
-
ref: l !== void 0 ? l : null,
|
|
363
|
-
props: v
|
|
364
|
-
};
|
|
365
|
-
}
|
|
366
|
-
r.Fragment = a, r.jsx = _, r.jsxs = _;
|
|
367
|
-
})), ye = /* @__PURE__ */ h(((r, o) => {
|
|
368
|
-
o.exports = Ee();
|
|
369
|
-
})), Ce = /!\[[^\]]*\]\(\s*data:[^)]*\)/gi, me = /!\[[^\]]*\]\(\s*data:[A-Za-z0-9+/=,;_\-.%\s]*/gi, ge = (r) => {
|
|
370
|
-
let o = r.replace(Ce, "");
|
|
371
|
-
return o = o.replace(me, ""), o;
|
|
372
|
-
}, Te = /[\x00-\x08\x0b\x0c\x0e-\x1f\x7f]/g, de = /[\u200b\u200c\u200d\u2060\ufeff]/g, Re = (r) => r.replace(/\r\n?/g, `
|
|
373
|
-
`).replace(Te, "").replace(de, ""), Ae = 2e3, Se = () => {
|
|
374
|
-
const [r, o] = (0, E.useState)(!1), a = (0, E.useRef)(null);
|
|
375
|
-
return (0, E.useEffect)(() => () => {
|
|
376
|
-
a.current !== null && window.clearTimeout(a.current);
|
|
377
|
-
}, []), {
|
|
378
|
-
copied: r,
|
|
379
|
-
copy: (0, E.useCallback)(async (_) => {
|
|
380
|
-
if (navigator.clipboard)
|
|
381
|
-
try {
|
|
382
|
-
await navigator.clipboard.writeText(Re(_)), o(!0), a.current !== null && window.clearTimeout(a.current), a.current = window.setTimeout(() => {
|
|
383
|
-
o(!1), a.current = null;
|
|
384
|
-
}, Ae);
|
|
385
|
-
} catch {
|
|
386
|
-
}
|
|
387
|
-
}, [])
|
|
388
|
-
};
|
|
389
|
-
}, w = ye();
|
|
390
|
-
function je({ copied: r }) {
|
|
391
|
-
const o = oe(), a = r ? _e : ve, _ = r ? o.copiedLabel : o.copyLabel;
|
|
392
|
-
return /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(a, {
|
|
393
|
-
className: "wecool-icon--xs",
|
|
394
|
-
"aria-hidden": "true"
|
|
395
|
-
}), /* @__PURE__ */ (0, w.jsx)("span", { children: _ })] });
|
|
396
|
-
}
|
|
397
|
-
export {
|
|
398
|
-
_e as a,
|
|
399
|
-
oe as c,
|
|
400
|
-
ye as i,
|
|
401
|
-
ue as l,
|
|
402
|
-
Se as n,
|
|
403
|
-
Z as o,
|
|
404
|
-
ge as r,
|
|
405
|
-
he as s,
|
|
406
|
-
je as t
|
|
407
|
-
};
|