wecool-chat 0.7.1 → 0.9.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 +50 -3
- package/README.ja.md +161 -13
- package/README.md +301 -33
- package/dist/CopyIndicator-D50ixqNB.js +407 -0
- package/dist/MarkdownBody-eopKrDot.js +19983 -0
- package/dist/abort-BjeyCmGn.js +6 -0
- package/dist/browser-D1aZQhQL.js +1358 -0
- package/dist/core/client.d.ts +46 -2
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/consume-stream.d.ts +5 -0
- package/dist/core/consume-stream.d.ts.map +1 -1
- package/dist/core/debug-logger.d.ts +26 -0
- package/dist/core/debug-logger.d.ts.map +1 -0
- package/dist/core/error-reporter.d.ts +59 -0
- package/dist/core/error-reporter.d.ts.map +1 -0
- package/dist/core/global-error-capture.d.ts +10 -0
- package/dist/core/global-error-capture.d.ts.map +1 -0
- package/dist/core/i18n/messages.d.ts +83 -0
- package/dist/core/i18n/messages.d.ts.map +1 -1
- package/dist/core/run-conversation.d.ts +12 -0
- package/dist/core/run-conversation.d.ts.map +1 -1
- package/dist/core/sanitize-user-message.d.ts +11 -0
- package/dist/core/sanitize-user-message.d.ts.map +1 -0
- package/dist/core/stream-state.d.ts.map +1 -1
- package/dist/core/tool-confirmation.d.ts +35 -0
- package/dist/core/tool-confirmation.d.ts.map +1 -0
- package/dist/core/tool-runner.d.ts +15 -1
- package/dist/core/tool-runner.d.ts.map +1 -1
- package/dist/core/types.d.ts +168 -4
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/widget-origin.d.ts +33 -0
- package/dist/core/widget-origin.d.ts.map +1 -0
- package/dist/define-DZ0itsfG.js +4 -0
- package/dist/index.css +3 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8421 -32540
- package/dist/loader.d.ts +12 -0
- package/dist/loader.d.ts.map +1 -0
- package/dist/messages-CveZLPSJ.js +175 -0
- package/dist/observe/__tests__/format.test.d.ts +2 -0
- package/dist/observe/__tests__/format.test.d.ts.map +1 -0
- package/dist/observe/__tests__/http.test.d.ts +2 -0
- package/dist/observe/__tests__/http.test.d.ts.map +1 -0
- package/dist/observe/__tests__/index.test.d.ts +2 -0
- package/dist/observe/__tests__/index.test.d.ts.map +1 -0
- package/dist/observe/__tests__/js-error.test.d.ts +2 -0
- package/dist/observe/__tests__/js-error.test.d.ts.map +1 -0
- package/dist/observe/__tests__/redact.test.d.ts +2 -0
- package/dist/observe/__tests__/redact.test.d.ts.map +1 -0
- package/dist/observe/__tests__/ring-buffer.test.d.ts +2 -0
- package/dist/observe/__tests__/ring-buffer.test.d.ts.map +1 -0
- package/dist/observe/format.d.ts +10 -0
- package/dist/observe/format.d.ts.map +1 -0
- package/dist/observe/index.d.ts +33 -0
- package/dist/observe/index.d.ts.map +1 -0
- package/dist/observe/observers/http.d.ts +24 -0
- package/dist/observe/observers/http.d.ts.map +1 -0
- package/dist/observe/observers/js-error.d.ts +22 -0
- package/dist/observe/observers/js-error.d.ts.map +1 -0
- package/dist/observe/redact.d.ts +27 -0
- package/dist/observe/redact.d.ts.map +1 -0
- package/dist/observe/ring-buffer.d.ts +20 -0
- package/dist/observe/ring-buffer.d.ts.map +1 -0
- package/dist/observe/types.d.ts +25 -0
- package/dist/observe/types.d.ts.map +1 -0
- package/dist/plugin/registry.d.ts.map +1 -1
- package/dist/plugin/types.d.ts +19 -1
- package/dist/plugin/types.d.ts.map +1 -1
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.js +2 -2
- package/dist/plugins/page-reader/__tests__/get-meta.test.d.ts +2 -0
- package/dist/plugins/page-reader/__tests__/get-meta.test.d.ts.map +1 -0
- package/dist/plugins/page-reader/__tests__/index.test.d.ts +2 -0
- package/dist/plugins/page-reader/__tests__/index.test.d.ts.map +1 -0
- package/dist/plugins/page-reader/__tests__/read-content.test.d.ts +2 -0
- package/dist/plugins/page-reader/__tests__/read-content.test.d.ts.map +1 -0
- package/dist/plugins/page-reader/__tests__/scroll.test.d.ts +2 -0
- package/dist/plugins/page-reader/__tests__/scroll.test.d.ts.map +1 -0
- package/dist/plugins/page-reader/index.d.ts +18 -0
- package/dist/plugins/page-reader/index.d.ts.map +1 -0
- package/dist/plugins/page-reader/tools/get-meta.d.ts +29 -0
- package/dist/plugins/page-reader/tools/get-meta.d.ts.map +1 -0
- package/dist/plugins/page-reader/tools/read-content.d.ts +34 -0
- package/dist/plugins/page-reader/tools/read-content.d.ts.map +1 -0
- package/dist/plugins/page-reader/tools/scroll.d.ts +29 -0
- package/dist/plugins/page-reader/tools/scroll.d.ts.map +1 -0
- package/dist/plugins/page-reader.d.ts +2 -0
- package/dist/plugins/page-reader.js +230 -0
- package/dist/plugins/qrcode/tool.d.ts +9 -6
- package/dist/plugins/qrcode/tool.d.ts.map +1 -1
- package/dist/plugins/qrcode.d.ts +1 -1
- package/dist/plugins/qrcode.js +121 -100
- package/dist/plugins/shared/abort.d.ts +7 -0
- package/dist/plugins/shared/abort.d.ts.map +1 -0
- package/dist/ui/builtin-tools/get-current-page-info.d.ts.map +1 -1
- package/dist/ui/builtin-tools/index.d.ts +1 -1
- package/dist/ui/builtin-tools/index.d.ts.map +1 -1
- package/dist/ui/builtin-tools/merge-builtin-tools.d.ts +9 -0
- package/dist/ui/builtin-tools/merge-builtin-tools.d.ts.map +1 -1
- package/dist/ui/commands/builtin-commands.d.ts +46 -0
- package/dist/ui/commands/builtin-commands.d.ts.map +1 -0
- package/dist/ui/components/ChatErrorBoundary.d.ts +30 -0
- package/dist/ui/components/ChatErrorBoundary.d.ts.map +1 -0
- package/dist/ui/components/ChatFooter.d.ts +18 -2
- package/dist/ui/components/ChatFooter.d.ts.map +1 -1
- package/dist/ui/components/ChatHeader.d.ts +14 -1
- package/dist/ui/components/ChatHeader.d.ts.map +1 -1
- package/dist/ui/components/ChatHeaderMenu.d.ts +7 -2
- package/dist/ui/components/ChatHeaderMenu.d.ts.map +1 -1
- package/dist/ui/components/ChatPanel.d.ts +35 -4
- package/dist/ui/components/ChatPanel.d.ts.map +1 -1
- package/dist/ui/components/ChatWidget.d.ts +1 -1
- package/dist/ui/components/ChatWidget.d.ts.map +1 -1
- package/dist/ui/components/CommandConfirmationCard.d.ts +22 -0
- package/dist/ui/components/CommandConfirmationCard.d.ts.map +1 -0
- package/dist/ui/components/CommandOverlays.d.ts +28 -0
- package/dist/ui/components/CommandOverlays.d.ts.map +1 -0
- package/dist/ui/components/CommandPalette.d.ts +25 -0
- package/dist/ui/components/CommandPalette.d.ts.map +1 -0
- package/dist/ui/components/ConversationSelect.d.ts +15 -0
- package/dist/ui/components/ConversationSelect.d.ts.map +1 -0
- package/dist/ui/components/CopyIndicator.d.ts +1 -1
- package/dist/ui/components/CopyIndicator.d.ts.map +1 -1
- package/dist/ui/components/FloatButton.d.ts +1 -1
- package/dist/ui/components/FloatButton.d.ts.map +1 -1
- package/dist/ui/components/HelpDialogContent.d.ts +7 -0
- package/dist/ui/components/HelpDialogContent.d.ts.map +1 -0
- package/dist/ui/components/MessageActionsPopover.d.ts +1 -1
- package/dist/ui/components/MessageActionsPopover.d.ts.map +1 -1
- package/dist/ui/components/MessageAttachments.d.ts +1 -1
- package/dist/ui/components/MessageAttachments.d.ts.map +1 -1
- package/dist/ui/components/MessageBubble.d.ts +1 -1
- package/dist/ui/components/MessageBubble.d.ts.map +1 -1
- package/dist/ui/components/MessageCopyButton.d.ts +1 -1
- package/dist/ui/components/MessageCopyButton.d.ts.map +1 -1
- package/dist/ui/components/MessageEditor.d.ts +1 -1
- package/dist/ui/components/MessageEditor.d.ts.map +1 -1
- package/dist/ui/components/MessageList.d.ts +6 -1
- package/dist/ui/components/MessageList.d.ts.map +1 -1
- package/dist/ui/components/MessagePopoverButton.d.ts +1 -1
- package/dist/ui/components/MessagePopoverButton.d.ts.map +1 -1
- package/dist/ui/components/MessageRow.d.ts +1 -1
- package/dist/ui/components/MessageRow.d.ts.map +1 -1
- package/dist/ui/components/MessageRowActions.d.ts +1 -1
- package/dist/ui/components/MessageRowActions.d.ts.map +1 -1
- package/dist/ui/components/ResizeHandles.d.ts +15 -0
- package/dist/ui/components/ResizeHandles.d.ts.map +1 -0
- package/dist/ui/components/ToolConfirmationCard.d.ts +22 -0
- package/dist/ui/components/ToolConfirmationCard.d.ts.map +1 -0
- package/dist/ui/components/ToolConfirmationRecord.d.ts +16 -0
- package/dist/ui/components/ToolConfirmationRecord.d.ts.map +1 -0
- package/dist/ui/components/ToolsDialogContent.d.ts +20 -0
- package/dist/ui/components/ToolsDialogContent.d.ts.map +1 -0
- package/dist/ui/components/WidgetDialog.d.ts +22 -0
- package/dist/ui/components/WidgetDialog.d.ts.map +1 -0
- package/dist/ui/components/markdown/CodeBlock.d.ts +1 -1
- package/dist/ui/components/markdown/CodeBlock.d.ts.map +1 -1
- package/dist/ui/components/markdown/MarkdownBody.d.ts +28 -0
- package/dist/ui/components/markdown/MarkdownBody.d.ts.map +1 -0
- package/dist/ui/components/markdown/MarkdownMessage.d.ts +13 -14
- package/dist/ui/components/markdown/MarkdownMessage.d.ts.map +1 -1
- package/dist/ui/components/markdown/trim-autolink-cjk.d.ts +21 -0
- package/dist/ui/components/markdown/trim-autolink-cjk.d.ts.map +1 -0
- package/dist/ui/hooks/conversationPersistence.d.ts +21 -0
- package/dist/ui/hooks/conversationPersistence.d.ts.map +1 -0
- package/dist/ui/hooks/resize-geometry.d.ts +42 -0
- package/dist/ui/hooks/resize-geometry.d.ts.map +1 -0
- package/dist/ui/hooks/use-command-execution.d.ts +38 -0
- package/dist/ui/hooks/use-command-execution.d.ts.map +1 -0
- package/dist/ui/hooks/use-command-palette.d.ts +45 -0
- package/dist/ui/hooks/use-command-palette.d.ts.map +1 -0
- package/dist/ui/hooks/use-fullscreen.d.ts +21 -0
- package/dist/ui/hooks/use-fullscreen.d.ts.map +1 -0
- package/dist/ui/hooks/use-global-error-capture.d.ts +16 -0
- package/dist/ui/hooks/use-global-error-capture.d.ts.map +1 -0
- package/dist/ui/hooks/use-locale-preference.d.ts +14 -0
- package/dist/ui/hooks/use-locale-preference.d.ts.map +1 -0
- package/dist/ui/hooks/use-menu-keyboard.d.ts +7 -1
- package/dist/ui/hooks/use-menu-keyboard.d.ts.map +1 -1
- package/dist/ui/hooks/use-send-message.d.ts +20 -0
- package/dist/ui/hooks/use-send-message.d.ts.map +1 -1
- package/dist/ui/hooks/use-tool-confirmation.d.ts +22 -0
- package/dist/ui/hooks/use-tool-confirmation.d.ts.map +1 -0
- package/dist/ui/hooks/use-tool-runner.d.ts +17 -2
- package/dist/ui/hooks/use-tool-runner.d.ts.map +1 -1
- package/dist/ui/hooks/use-visitor-id.d.ts +10 -0
- package/dist/ui/hooks/use-visitor-id.d.ts.map +1 -0
- package/dist/ui/hooks/useChatStream.d.ts +35 -0
- package/dist/ui/hooks/useChatStream.d.ts.map +1 -1
- package/dist/ui/hooks/useConversationList.d.ts +33 -0
- package/dist/ui/hooks/useConversationList.d.ts.map +1 -0
- package/dist/ui/hooks/useDraggablePanel.d.ts +2 -0
- package/dist/ui/hooks/useDraggablePanel.d.ts.map +1 -1
- package/dist/ui/hooks/useResizablePanel.d.ts +48 -0
- package/dist/ui/hooks/useResizablePanel.d.ts.map +1 -0
- package/dist/ui/types.d.ts +6 -0
- package/dist/ui/types.d.ts.map +1 -1
- package/package.json +43 -27
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/browser-beO7dF90.js +0 -1538
|
@@ -0,0 +1,407 @@
|
|
|
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
|
+
};
|