@versini/sassysaint 8.13.4 → 8.13.5
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/dist/chunks/{AboutChangelog.60B4mTum.js → AboutChangelog.BpBrXYNM.js} +2 -2
- package/dist/chunks/{App.C2kFBvMx.js → App.B7Xa_Z07.js} +774 -782
- package/dist/chunks/{CPIOZS5X.B-iOdIEb.js → C2Q2AJ2U.cnyJsZhS.js} +7 -4
- package/dist/chunks/{Chart.kuTl_JkT.js → Chart.CAf8jkY7.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.CDuvNSHV.js → ChatBubbleAssistant.BwoYWFHP.js} +3 -3
- package/dist/chunks/{index.CtG14j-E.js → index.BP6bgRWy.js} +1 -1
- package/dist/chunks/{index.CanrnWlN.js → index.Ce1O2JYf.js} +1 -1
- package/dist/chunks/{index.DN1EGbvA.js → index.D9dFgPy2.js} +3 -3
- package/dist/chunks/{index.C9scPH5l.js → index.DQqHI3eN.js} +1 -1
- package/dist/chunks/{index.BfAfxHCg.js → index.pJb_KM5T.js} +2 -2
- package/dist/chunks/{index.DCuEX_OE.js → index.qUNN8KX2.js} +342 -339
- package/dist/chunks/{useMarkdown.DHKbL6TV.js → useMarkdown.Dk7E1mQe.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +2 -2
- package/package.json +5 -5
@@ -2,14 +2,14 @@ var So = (e) => {
|
|
2
2
|
throw TypeError(e);
|
3
3
|
};
|
4
4
|
var jr = (e, t, r) => t.has(e) || So("Cannot " + r);
|
5
|
-
var
|
6
|
-
import { jsx as c, jsxs as
|
7
|
-
import { Subscribable as zi, pendingThenable as No, resolveEnabled as
|
5
|
+
var L = (e, t, r) => (jr(e, t, "read from private field"), r ? r.call(e) : t.get(e)), fe = (e, t, r) => t.has(e) ? So("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), oe = (e, t, r, a) => (jr(e, t, "write to private field"), a ? a.call(e, r) : t.set(e, r), r), ce = (e, t, r) => (jr(e, t, "access private method"), r);
|
6
|
+
import { jsx as c, jsxs as N, Fragment as se } from "react/jsx-runtime";
|
7
|
+
import { Subscribable as zi, pendingThenable as No, resolveEnabled as ze, shallowEqualObjects as da, resolveStaleTime as kr, noop as Vi, isServer as ua, isValidTimeout as Ro, focusManager as Fi, fetchState as Ui, replaceData as Ao, notifyManager as Un, timeUntilStale as Hi, useQueryClient as Gi, I as re, ACTION_SORT as fa, ACTION_SEARCH as Hn, ACTION_RESET_PROMPT as Gn, ACTION_TOGGLE_PROMPT as jn, Qr as Ee, isElectron as ha, isProbablyiPhone as ma, re as Re, DEFAULT_ICON_ACTION_SIZE as Je, L as rr, j as Ue, C as pt, LOCAL_STORAGE_PREFIX as gt, LOCAL_STORAGE_PRIVATE_DISCLOSURE as ji, LOCAL_STORAGE_REASONING_DISCLOSURE as Wi, TOAST_CHAT_SAVED as qi, toastOptions as Er, TOAST_PROVIDER_CHANGED as Wn, PROMPT_CLASSNAME as Yi, PROMPT_EDITABLE_AREA_CLASSNAME as Ji, ERROR_MESSAGE as Ki, ROLE_INTERNAL as pa, CLIPBOARD_PROMPT as Oo, isProbablyMobile as at, qr as qn, GRANTS as Yn, INPUT_PLACEHOLDER_TEXT as $o, FOOTER_DISCLAIMER as Qi, S as Ne, renderDataAsList as Ir, CARDS as ne, pluralize as qt, ABOUT_TITLE as Xi, INFINITE_SCROLL_LIMIT as Lo, INFINITE_SCROLL_THRESHOLD as Mo, LOCAL_STORAGE_SORT as Jn, APP_CLASSNAME as Kn, TOAST_CHAT_DELETED as Zi, LOCAL_STORAGE_SEARCH as Qn, HISTORY_TITLE as el, fe as tl, debounce as rl, x as al, l as Do, PROFILE_TITLE as ol, LOCAL_STORAGE_CHAT_DETAILS as nl, SETTINGS_TITLE as sl, APP_NAME as il, PROMPTS_DESCRIPTION as ll, getCurrentGeoLocation as cl, USAGE_TITLE as dl, LOG_OUT as Bo, getMessageContaintWrapperClass as ul, UI_FOOTER_BUFFER as Xn, UI_BUTTON_SCROLL_BUFFER as fl, Logo as hl, UI_DEFAULT_MAIN_HEIGHT as Po, getMainPaddingClass as zo, r as ml } from "./index.qUNN8KX2.js";
|
8
8
|
import * as te from "react";
|
9
|
-
import U, { useEffect as z, useRef as
|
9
|
+
import U, { useEffect as z, useRef as M, useState as F, useCallback as q, useSyncExternalStore as Zn, useMemo as Ie, useId as Or, useContext as ee, useLayoutEffect as ge, isValidElement as $r, cloneElement as Ka, createContext as es, useDebugValue as pl, forwardRef as ts, Suspense as Qa, lazy as Xa, Fragment as gl, useReducer as Gt } from "react";
|
10
10
|
import g from "clsx";
|
11
11
|
import { useMergeRefs as Za, FloatingPortal as rs, FloatingOverlay as yl, FloatingFocusManager as as, useFloating as os, useClick as ns, useDismiss as ss, useRole as is, useInteractions as ls, FloatingTree as bl, useFloatingTree as cs, useFloatingNodeId as vl, useListItem as ds, autoUpdate as _l, offset as wl, flip as kl, shift as xl, useListNavigation as Tl, useTypeahead as El, FloatingNode as Il, FloatingList as Cl } from "@floating-ui/react";
|
12
|
-
var ke, j, er, ye, ft, St,
|
12
|
+
var ke, j, er, ye, ft, St, Ze, et, tr, Nt, Rt, ht, mt, tt, At, X, jt, ga, ya, ba, va, _a, wa, ka, us, Fn, Sl = (Fn = class extends zi {
|
13
13
|
constructor(t, r) {
|
14
14
|
super();
|
15
15
|
fe(this, X);
|
@@ -19,8 +19,8 @@ var ke, j, er, ye, ft, St, et, ze, tr, Nt, Rt, ht, mt, tt, At, X, jt, ga, ya, ba
|
|
19
19
|
fe(this, ye);
|
20
20
|
fe(this, ft);
|
21
21
|
fe(this, St);
|
22
|
+
fe(this, Ze);
|
22
23
|
fe(this, et);
|
23
|
-
fe(this, ze);
|
24
24
|
fe(this, tr);
|
25
25
|
fe(this, Nt);
|
26
26
|
// This property keeps track of the last query with defined data.
|
@@ -30,7 +30,7 @@ var ke, j, er, ye, ft, St, et, ze, tr, Nt, Rt, ht, mt, tt, At, X, jt, ga, ya, ba
|
|
30
30
|
fe(this, mt);
|
31
31
|
fe(this, tt);
|
32
32
|
fe(this, At, /* @__PURE__ */ new Set());
|
33
|
-
this.options = r,
|
33
|
+
this.options = r, oe(this, ke, t), oe(this, et, null), oe(this, Ze, No()), this.options.experimental_prefetchInRender || L(this, Ze).reject(
|
34
34
|
new Error("experimental_prefetchInRender feature flag is not enabled")
|
35
35
|
), this.bindMethods(), this.setOptions(r);
|
36
36
|
}
|
@@ -38,55 +38,55 @@ var ke, j, er, ye, ft, St, et, ze, tr, Nt, Rt, ht, mt, tt, At, X, jt, ga, ya, ba
|
|
38
38
|
this.refetch = this.refetch.bind(this);
|
39
39
|
}
|
40
40
|
onSubscribe() {
|
41
|
-
this.listeners.size === 1 && (
|
41
|
+
this.listeners.size === 1 && (L(this, j).addObserver(this), Vo(L(this, j), this.options) ? ce(this, X, jt).call(this) : this.updateResult(), ce(this, X, va).call(this));
|
42
42
|
}
|
43
43
|
onUnsubscribe() {
|
44
44
|
this.hasListeners() || this.destroy();
|
45
45
|
}
|
46
46
|
shouldFetchOnReconnect() {
|
47
47
|
return xa(
|
48
|
-
|
48
|
+
L(this, j),
|
49
49
|
this.options,
|
50
50
|
this.options.refetchOnReconnect
|
51
51
|
);
|
52
52
|
}
|
53
53
|
shouldFetchOnWindowFocus() {
|
54
54
|
return xa(
|
55
|
-
|
55
|
+
L(this, j),
|
56
56
|
this.options,
|
57
57
|
this.options.refetchOnWindowFocus
|
58
58
|
);
|
59
59
|
}
|
60
60
|
destroy() {
|
61
|
-
this.listeners = /* @__PURE__ */ new Set(), ce(this, X, _a).call(this), ce(this, X, wa).call(this),
|
61
|
+
this.listeners = /* @__PURE__ */ new Set(), ce(this, X, _a).call(this), ce(this, X, wa).call(this), L(this, j).removeObserver(this);
|
62
62
|
}
|
63
63
|
setOptions(t) {
|
64
|
-
const r = this.options, a =
|
65
|
-
if (this.options =
|
64
|
+
const r = this.options, a = L(this, j);
|
65
|
+
if (this.options = L(this, ke).defaultQueryOptions(t), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof ze(this.options.enabled, L(this, j)) != "boolean")
|
66
66
|
throw new Error(
|
67
67
|
"Expected enabled to be a boolean or a callback that returns a boolean"
|
68
68
|
);
|
69
|
-
ce(this, X, ka).call(this),
|
69
|
+
ce(this, X, ka).call(this), L(this, j).setOptions(this.options), r._defaulted && !da(this.options, r) && L(this, ke).getQueryCache().notify({
|
70
70
|
type: "observerOptionsUpdated",
|
71
|
-
query:
|
71
|
+
query: L(this, j),
|
72
72
|
observer: this
|
73
73
|
});
|
74
74
|
const o = this.hasListeners();
|
75
75
|
o && Fo(
|
76
|
-
|
76
|
+
L(this, j),
|
77
77
|
a,
|
78
78
|
this.options,
|
79
79
|
r
|
80
|
-
) && ce(this, X, jt).call(this), this.updateResult(), o && (
|
80
|
+
) && ce(this, X, jt).call(this), this.updateResult(), o && (L(this, j) !== a || ze(this.options.enabled, L(this, j)) !== ze(r.enabled, L(this, j)) || kr(this.options.staleTime, L(this, j)) !== kr(r.staleTime, L(this, j))) && ce(this, X, ga).call(this);
|
81
81
|
const n = ce(this, X, ya).call(this);
|
82
|
-
o && (
|
82
|
+
o && (L(this, j) !== a || ze(this.options.enabled, L(this, j)) !== ze(r.enabled, L(this, j)) || n !== L(this, tt)) && ce(this, X, ba).call(this, n);
|
83
83
|
}
|
84
84
|
getOptimisticResult(t) {
|
85
|
-
const r =
|
86
|
-
return Rl(this, a) && (
|
85
|
+
const r = L(this, ke).getQueryCache().build(L(this, ke), t), a = this.createResult(r, t);
|
86
|
+
return Rl(this, a) && (oe(this, ye, a), oe(this, St, this.options), oe(this, ft, L(this, j).state)), a;
|
87
87
|
}
|
88
88
|
getCurrentResult() {
|
89
|
-
return
|
89
|
+
return L(this, ye);
|
90
90
|
}
|
91
91
|
trackResult(t, r) {
|
92
92
|
const a = {};
|
@@ -99,10 +99,10 @@ var ke, j, er, ye, ft, St, et, ze, tr, Nt, Rt, ht, mt, tt, At, X, jt, ga, ya, ba
|
|
99
99
|
}), a;
|
100
100
|
}
|
101
101
|
trackProp(t) {
|
102
|
-
|
102
|
+
L(this, At).add(t);
|
103
103
|
}
|
104
104
|
getCurrentQuery() {
|
105
|
-
return
|
105
|
+
return L(this, j);
|
106
106
|
}
|
107
107
|
refetch({ ...t } = {}) {
|
108
108
|
return this.fetch({
|
@@ -110,66 +110,58 @@ var ke, j, er, ye, ft, St, et, ze, tr, Nt, Rt, ht, mt, tt, At, X, jt, ga, ya, ba
|
|
110
110
|
});
|
111
111
|
}
|
112
112
|
fetchOptimistic(t) {
|
113
|
-
const r =
|
113
|
+
const r = L(this, ke).defaultQueryOptions(t), a = L(this, ke).getQueryCache().build(L(this, ke), r);
|
114
114
|
return a.fetch().then(() => this.createResult(a, r));
|
115
115
|
}
|
116
116
|
fetch(t) {
|
117
117
|
return ce(this, X, jt).call(this, {
|
118
118
|
...t,
|
119
119
|
cancelRefetch: t.cancelRefetch ?? !0
|
120
|
-
}).then(() => (this.updateResult(),
|
120
|
+
}).then(() => (this.updateResult(), L(this, ye)));
|
121
121
|
}
|
122
122
|
createResult(t, r) {
|
123
|
-
var
|
124
|
-
const a =
|
123
|
+
var x;
|
124
|
+
const a = L(this, j), o = this.options, n = L(this, ye), s = L(this, ft), l = L(this, St), d = t !== a ? t.state : L(this, er), { state: f } = t;
|
125
125
|
let u = { ...f }, h = !1, m;
|
126
126
|
if (r._optimisticResults) {
|
127
|
-
const
|
128
|
-
(
|
127
|
+
const S = this.hasListeners(), R = !S && Vo(t, r), O = S && Fo(t, a, r, o);
|
128
|
+
(R || O) && (u = {
|
129
129
|
...u,
|
130
130
|
...Ui(f.data, t.options)
|
131
131
|
}), r._optimisticResults === "isRestoring" && (u.fetchStatus = "idle");
|
132
132
|
}
|
133
133
|
let { error: y, errorUpdatedAt: b, status: p } = u;
|
134
|
-
|
135
|
-
|
136
|
-
m = O(this, Nt);
|
137
|
-
else
|
138
|
-
try {
|
139
|
-
re(this, tr, r.select), m = r.select(u.data), m = Ao(n == null ? void 0 : n.data, m, r), re(this, Nt, m), re(this, ze, null);
|
140
|
-
} catch (k) {
|
141
|
-
re(this, ze, k);
|
142
|
-
}
|
143
|
-
else
|
144
|
-
m = u.data;
|
134
|
+
m = u.data;
|
135
|
+
let v = !1;
|
145
136
|
if (r.placeholderData !== void 0 && m === void 0 && p === "pending") {
|
146
|
-
let
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
O(this, Rt)
|
152
|
-
) : r.placeholderData, r.select && k !== void 0)
|
153
|
-
try {
|
154
|
-
k = r.select(k), re(this, ze, null);
|
155
|
-
} catch (N) {
|
156
|
-
re(this, ze, N);
|
157
|
-
}
|
158
|
-
k !== void 0 && (p = "success", m = Ao(
|
137
|
+
let S;
|
138
|
+
n != null && n.isPlaceholderData && r.placeholderData === (l == null ? void 0 : l.placeholderData) ? (S = n.data, v = !0) : S = typeof r.placeholderData == "function" ? r.placeholderData(
|
139
|
+
(x = L(this, Rt)) == null ? void 0 : x.state.data,
|
140
|
+
L(this, Rt)
|
141
|
+
) : r.placeholderData, S !== void 0 && (p = "success", m = Ao(
|
159
142
|
n == null ? void 0 : n.data,
|
160
|
-
|
143
|
+
S,
|
161
144
|
r
|
162
145
|
), h = !0);
|
163
146
|
}
|
164
|
-
|
165
|
-
|
147
|
+
if (r.select && m !== void 0 && !v)
|
148
|
+
if (n && m === (s == null ? void 0 : s.data) && r.select === L(this, tr))
|
149
|
+
m = L(this, Nt);
|
150
|
+
else
|
151
|
+
try {
|
152
|
+
oe(this, tr, r.select), m = r.select(m), m = Ao(n == null ? void 0 : n.data, m, r), oe(this, Nt, m), oe(this, et, null);
|
153
|
+
} catch (S) {
|
154
|
+
oe(this, et, S);
|
155
|
+
}
|
156
|
+
L(this, et) && (y = L(this, et), m = L(this, Nt), b = Date.now(), p = "error");
|
157
|
+
const w = u.fetchStatus === "fetching", k = p === "pending", I = p === "error", C = k && w, _ = m !== void 0, T = {
|
166
158
|
status: p,
|
167
159
|
fetchStatus: u.fetchStatus,
|
168
|
-
isPending:
|
160
|
+
isPending: k,
|
169
161
|
isSuccess: p === "success",
|
170
|
-
isError:
|
171
|
-
isInitialLoading:
|
172
|
-
isLoading:
|
162
|
+
isError: I,
|
163
|
+
isInitialLoading: C,
|
164
|
+
isLoading: C,
|
173
165
|
data: m,
|
174
166
|
dataUpdatedAt: u.dataUpdatedAt,
|
175
167
|
error: y,
|
@@ -179,54 +171,54 @@ var ke, j, er, ye, ft, St, et, ze, tr, Nt, Rt, ht, mt, tt, At, X, jt, ga, ya, ba
|
|
179
171
|
errorUpdateCount: u.errorUpdateCount,
|
180
172
|
isFetched: u.dataUpdateCount > 0 || u.errorUpdateCount > 0,
|
181
173
|
isFetchedAfterMount: u.dataUpdateCount > d.dataUpdateCount || u.errorUpdateCount > d.errorUpdateCount,
|
182
|
-
isFetching:
|
183
|
-
isRefetching:
|
184
|
-
isLoadingError:
|
174
|
+
isFetching: w,
|
175
|
+
isRefetching: w && !k,
|
176
|
+
isLoadingError: I && !_,
|
185
177
|
isPaused: u.fetchStatus === "paused",
|
186
178
|
isPlaceholderData: h,
|
187
|
-
isRefetchError:
|
179
|
+
isRefetchError: I && _,
|
188
180
|
isStale: eo(t, r),
|
189
181
|
refetch: this.refetch,
|
190
|
-
promise:
|
182
|
+
promise: L(this, Ze)
|
191
183
|
};
|
192
184
|
if (this.options.experimental_prefetchInRender) {
|
193
|
-
const
|
185
|
+
const S = ($) => {
|
194
186
|
T.status === "error" ? $.reject(T.error) : T.data !== void 0 && $.resolve(T.data);
|
195
|
-
},
|
196
|
-
const $ =
|
197
|
-
|
198
|
-
},
|
199
|
-
switch (
|
187
|
+
}, R = () => {
|
188
|
+
const $ = oe(this, Ze, T.promise = No());
|
189
|
+
S($);
|
190
|
+
}, O = L(this, Ze);
|
191
|
+
switch (O.status) {
|
200
192
|
case "pending":
|
201
|
-
t.queryHash === a.queryHash &&
|
193
|
+
t.queryHash === a.queryHash && S(O);
|
202
194
|
break;
|
203
195
|
case "fulfilled":
|
204
|
-
(T.status === "error" || T.data !==
|
196
|
+
(T.status === "error" || T.data !== O.value) && R();
|
205
197
|
break;
|
206
198
|
case "rejected":
|
207
|
-
(T.status !== "error" || T.error !==
|
199
|
+
(T.status !== "error" || T.error !== O.reason) && R();
|
208
200
|
break;
|
209
201
|
}
|
210
202
|
}
|
211
203
|
return T;
|
212
204
|
}
|
213
205
|
updateResult() {
|
214
|
-
const t =
|
215
|
-
if (
|
206
|
+
const t = L(this, ye), r = this.createResult(L(this, j), this.options);
|
207
|
+
if (oe(this, ft, L(this, j).state), oe(this, St, this.options), L(this, ft).data !== void 0 && oe(this, Rt, L(this, j)), da(r, t))
|
216
208
|
return;
|
217
|
-
|
209
|
+
oe(this, ye, r);
|
218
210
|
const a = () => {
|
219
211
|
if (!t)
|
220
212
|
return !0;
|
221
213
|
const { notifyOnChangeProps: o } = this.options, n = typeof o == "function" ? o() : o;
|
222
|
-
if (n === "all" || !n && !
|
214
|
+
if (n === "all" || !n && !L(this, At).size)
|
223
215
|
return !0;
|
224
216
|
const s = new Set(
|
225
|
-
n ??
|
217
|
+
n ?? L(this, At)
|
226
218
|
);
|
227
|
-
return this.options.throwOnError && s.add("error"), Object.keys(
|
219
|
+
return this.options.throwOnError && s.add("error"), Object.keys(L(this, ye)).some((l) => {
|
228
220
|
const i = l;
|
229
|
-
return
|
221
|
+
return L(this, ye)[i] !== t[i] && s.has(i);
|
230
222
|
});
|
231
223
|
};
|
232
224
|
ce(this, X, us).call(this, { listeners: a() });
|
@@ -234,9 +226,9 @@ var ke, j, er, ye, ft, St, et, ze, tr, Nt, Rt, ht, mt, tt, At, X, jt, ga, ya, ba
|
|
234
226
|
onQueryUpdate() {
|
235
227
|
this.updateResult(), this.hasListeners() && ce(this, X, va).call(this);
|
236
228
|
}
|
237
|
-
}, ke = new WeakMap(), j = new WeakMap(), er = new WeakMap(), ye = new WeakMap(), ft = new WeakMap(), St = new WeakMap(),
|
229
|
+
}, ke = new WeakMap(), j = new WeakMap(), er = new WeakMap(), ye = new WeakMap(), ft = new WeakMap(), St = new WeakMap(), Ze = new WeakMap(), et = new WeakMap(), tr = new WeakMap(), Nt = new WeakMap(), Rt = new WeakMap(), ht = new WeakMap(), mt = new WeakMap(), tt = new WeakMap(), At = new WeakMap(), X = new WeakSet(), jt = function(t) {
|
238
230
|
ce(this, X, ka).call(this);
|
239
|
-
let r =
|
231
|
+
let r = L(this, j).fetch(
|
240
232
|
this.options,
|
241
233
|
t
|
242
234
|
);
|
@@ -245,60 +237,60 @@ var ke, j, er, ye, ft, St, et, ze, tr, Nt, Rt, ht, mt, tt, At, X, jt, ga, ya, ba
|
|
245
237
|
ce(this, X, _a).call(this);
|
246
238
|
const t = kr(
|
247
239
|
this.options.staleTime,
|
248
|
-
|
240
|
+
L(this, j)
|
249
241
|
);
|
250
|
-
if (ua ||
|
242
|
+
if (ua || L(this, ye).isStale || !Ro(t))
|
251
243
|
return;
|
252
|
-
const a = Hi(
|
253
|
-
|
254
|
-
|
244
|
+
const a = Hi(L(this, ye).dataUpdatedAt, t) + 1;
|
245
|
+
oe(this, ht, setTimeout(() => {
|
246
|
+
L(this, ye).isStale || this.updateResult();
|
255
247
|
}, a));
|
256
248
|
}, ya = function() {
|
257
|
-
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(
|
249
|
+
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(L(this, j)) : this.options.refetchInterval) ?? !1;
|
258
250
|
}, ba = function(t) {
|
259
|
-
ce(this, X, wa).call(this),
|
251
|
+
ce(this, X, wa).call(this), oe(this, tt, t), !(ua || ze(this.options.enabled, L(this, j)) === !1 || !Ro(L(this, tt)) || L(this, tt) === 0) && oe(this, mt, setInterval(() => {
|
260
252
|
(this.options.refetchIntervalInBackground || Fi.isFocused()) && ce(this, X, jt).call(this);
|
261
|
-
},
|
253
|
+
}, L(this, tt)));
|
262
254
|
}, va = function() {
|
263
255
|
ce(this, X, ga).call(this), ce(this, X, ba).call(this, ce(this, X, ya).call(this));
|
264
256
|
}, _a = function() {
|
265
|
-
|
257
|
+
L(this, ht) && (clearTimeout(L(this, ht)), oe(this, ht, void 0));
|
266
258
|
}, wa = function() {
|
267
|
-
|
259
|
+
L(this, mt) && (clearInterval(L(this, mt)), oe(this, mt, void 0));
|
268
260
|
}, ka = function() {
|
269
|
-
const t =
|
270
|
-
if (t ===
|
261
|
+
const t = L(this, ke).getQueryCache().build(L(this, ke), this.options);
|
262
|
+
if (t === L(this, j))
|
271
263
|
return;
|
272
|
-
const r =
|
273
|
-
|
264
|
+
const r = L(this, j);
|
265
|
+
oe(this, j, t), oe(this, er, t.state), this.hasListeners() && (r == null || r.removeObserver(this), t.addObserver(this));
|
274
266
|
}, us = function(t) {
|
275
267
|
Un.batch(() => {
|
276
268
|
t.listeners && this.listeners.forEach((r) => {
|
277
|
-
r(
|
278
|
-
}),
|
279
|
-
query:
|
269
|
+
r(L(this, ye));
|
270
|
+
}), L(this, ke).getQueryCache().notify({
|
271
|
+
query: L(this, j),
|
280
272
|
type: "observerResultsUpdated"
|
281
273
|
});
|
282
274
|
});
|
283
275
|
}, Fn);
|
284
276
|
function Nl(e, t) {
|
285
|
-
return
|
277
|
+
return ze(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
|
286
278
|
}
|
287
279
|
function Vo(e, t) {
|
288
280
|
return Nl(e, t) || e.state.data !== void 0 && xa(e, t, t.refetchOnMount);
|
289
281
|
}
|
290
282
|
function xa(e, t, r) {
|
291
|
-
if (
|
283
|
+
if (ze(t.enabled, e) !== !1) {
|
292
284
|
const a = typeof r == "function" ? r(e) : r;
|
293
285
|
return a === "always" || a !== !1 && eo(e, t);
|
294
286
|
}
|
295
287
|
return !1;
|
296
288
|
}
|
297
289
|
function Fo(e, t, r, a) {
|
298
|
-
return (e !== t ||
|
290
|
+
return (e !== t || ze(a.enabled, e) === !1) && (!r.suspense || e.state.status !== "error") && eo(e, r);
|
299
291
|
}
|
300
292
|
function eo(e, t) {
|
301
|
-
return
|
293
|
+
return ze(t.enabled, e) !== !1 && e.isStaleByTime(kr(t.staleTime, e));
|
302
294
|
}
|
303
295
|
function Rl(e, t) {
|
304
296
|
return !da(e.getCurrentResult(), t);
|
@@ -409,7 +401,7 @@ const fs = ({
|
|
409
401
|
monotone: a,
|
410
402
|
...o
|
411
403
|
}) => /* @__PURE__ */ c(
|
412
|
-
|
404
|
+
re,
|
413
405
|
{
|
414
406
|
defaultViewBox: "0 0 24 24",
|
415
407
|
size: "size-5",
|
@@ -425,8 +417,8 @@ const fs = ({
|
|
425
417
|
title: r,
|
426
418
|
monotone: a,
|
427
419
|
...o
|
428
|
-
}) => /* @__PURE__ */
|
429
|
-
|
420
|
+
}) => /* @__PURE__ */ N(
|
421
|
+
re,
|
430
422
|
{
|
431
423
|
defaultViewBox: "0 0 512 512",
|
432
424
|
size: "size-5",
|
@@ -451,8 +443,8 @@ const fs = ({
|
|
451
443
|
title: r,
|
452
444
|
monotone: a,
|
453
445
|
...o
|
454
|
-
}) => /* @__PURE__ */
|
455
|
-
|
446
|
+
}) => /* @__PURE__ */ N(
|
447
|
+
re,
|
456
448
|
{
|
457
449
|
defaultViewBox: "0 0 448 512",
|
458
450
|
size: "size-5",
|
@@ -477,8 +469,8 @@ const fs = ({
|
|
477
469
|
title: r,
|
478
470
|
monotone: a,
|
479
471
|
...o
|
480
|
-
}) => /* @__PURE__ */
|
481
|
-
|
472
|
+
}) => /* @__PURE__ */ N(
|
473
|
+
re,
|
482
474
|
{
|
483
475
|
defaultViewBox: "0 0 448 512",
|
484
476
|
size: "size-5",
|
@@ -504,7 +496,7 @@ const fs = ({
|
|
504
496
|
monotone: a,
|
505
497
|
...o
|
506
498
|
}) => /* @__PURE__ */ c(
|
507
|
-
|
499
|
+
re,
|
508
500
|
{
|
509
501
|
defaultViewBox: "0 0 384 512",
|
510
502
|
size: "size-5",
|
@@ -526,8 +518,8 @@ const fs = ({
|
|
526
518
|
title: r,
|
527
519
|
monotone: a,
|
528
520
|
...o
|
529
|
-
}) => /* @__PURE__ */
|
530
|
-
|
521
|
+
}) => /* @__PURE__ */ N(
|
522
|
+
re,
|
531
523
|
{
|
532
524
|
defaultViewBox: "0 0 448 512",
|
533
525
|
size: "size-5",
|
@@ -552,8 +544,8 @@ const fs = ({
|
|
552
544
|
title: r,
|
553
545
|
monotone: a,
|
554
546
|
...o
|
555
|
-
}) => /* @__PURE__ */
|
556
|
-
|
547
|
+
}) => /* @__PURE__ */ N(
|
548
|
+
re,
|
557
549
|
{
|
558
550
|
defaultViewBox: "0 0 384 512",
|
559
551
|
size: "size-5",
|
@@ -578,8 +570,8 @@ const fs = ({
|
|
578
570
|
title: r,
|
579
571
|
monotone: a,
|
580
572
|
...o
|
581
|
-
}) => /* @__PURE__ */
|
582
|
-
|
573
|
+
}) => /* @__PURE__ */ N(
|
574
|
+
re,
|
583
575
|
{
|
584
576
|
defaultViewBox: "0 0 512 512",
|
585
577
|
size: "size-5",
|
@@ -605,7 +597,7 @@ const fs = ({
|
|
605
597
|
monotone: a,
|
606
598
|
...o
|
607
599
|
}) => /* @__PURE__ */ c(
|
608
|
-
|
600
|
+
re,
|
609
601
|
{
|
610
602
|
defaultViewBox: "0 0 24 24",
|
611
603
|
size: "size-5",
|
@@ -621,8 +613,8 @@ const fs = ({
|
|
621
613
|
title: r,
|
622
614
|
monotone: a,
|
623
615
|
...o
|
624
|
-
}) => /* @__PURE__ */
|
625
|
-
|
616
|
+
}) => /* @__PURE__ */ N(
|
617
|
+
re,
|
626
618
|
{
|
627
619
|
defaultViewBox: "0 0 512 512",
|
628
620
|
size: "size-5",
|
@@ -647,8 +639,8 @@ const fs = ({
|
|
647
639
|
title: r,
|
648
640
|
monotone: a,
|
649
641
|
...o
|
650
|
-
}) => /* @__PURE__ */
|
651
|
-
|
642
|
+
}) => /* @__PURE__ */ N(
|
643
|
+
re,
|
652
644
|
{
|
653
645
|
defaultViewBox: "0 0 512 512",
|
654
646
|
size: "size-5",
|
@@ -673,8 +665,8 @@ const fs = ({
|
|
673
665
|
title: r,
|
674
666
|
monotone: a,
|
675
667
|
...o
|
676
|
-
}) => /* @__PURE__ */
|
677
|
-
|
668
|
+
}) => /* @__PURE__ */ N(
|
669
|
+
re,
|
678
670
|
{
|
679
671
|
defaultViewBox: "0 0 384 512",
|
680
672
|
size: "size-5",
|
@@ -699,8 +691,8 @@ const fs = ({
|
|
699
691
|
title: r,
|
700
692
|
monotone: a,
|
701
693
|
...o
|
702
|
-
}) => /* @__PURE__ */
|
703
|
-
|
694
|
+
}) => /* @__PURE__ */ N(
|
695
|
+
re,
|
704
696
|
{
|
705
697
|
defaultViewBox: "0 0 448 512",
|
706
698
|
size: "size-5",
|
@@ -725,8 +717,8 @@ const fs = ({
|
|
725
717
|
title: r,
|
726
718
|
monotone: a,
|
727
719
|
...o
|
728
|
-
}) => /* @__PURE__ */
|
729
|
-
|
720
|
+
}) => /* @__PURE__ */ N(
|
721
|
+
re,
|
730
722
|
{
|
731
723
|
defaultViewBox: "0 0 576 512",
|
732
724
|
size: "size-5",
|
@@ -752,7 +744,7 @@ const fs = ({
|
|
752
744
|
monotone: a,
|
753
745
|
...o
|
754
746
|
}) => /* @__PURE__ */ c(
|
755
|
-
|
747
|
+
re,
|
756
748
|
{
|
757
749
|
defaultViewBox: "0 0 24 24",
|
758
750
|
size: "size-5",
|
@@ -768,8 +760,8 @@ const fs = ({
|
|
768
760
|
title: r,
|
769
761
|
monotone: a,
|
770
762
|
...o
|
771
|
-
}) => /* @__PURE__ */
|
772
|
-
|
763
|
+
}) => /* @__PURE__ */ N(
|
764
|
+
re,
|
773
765
|
{
|
774
766
|
defaultViewBox: "0 0 576 512",
|
775
767
|
size: "size-5",
|
@@ -794,8 +786,8 @@ const fs = ({
|
|
794
786
|
title: r,
|
795
787
|
monotone: a,
|
796
788
|
...o
|
797
|
-
}) => /* @__PURE__ */
|
798
|
-
|
789
|
+
}) => /* @__PURE__ */ N(
|
790
|
+
re,
|
799
791
|
{
|
800
792
|
defaultViewBox: "0 0 576 512",
|
801
793
|
size: "size-5",
|
@@ -820,8 +812,8 @@ const fs = ({
|
|
820
812
|
title: r,
|
821
813
|
monotone: a,
|
822
814
|
...o
|
823
|
-
}) => /* @__PURE__ */
|
824
|
-
|
815
|
+
}) => /* @__PURE__ */ N(
|
816
|
+
re,
|
825
817
|
{
|
826
818
|
defaultViewBox: "0 0 512 512",
|
827
819
|
size: "size-5",
|
@@ -846,8 +838,8 @@ const fs = ({
|
|
846
838
|
title: r,
|
847
839
|
monotone: a,
|
848
840
|
...o
|
849
|
-
}) => /* @__PURE__ */
|
850
|
-
|
841
|
+
}) => /* @__PURE__ */ N(
|
842
|
+
re,
|
851
843
|
{
|
852
844
|
defaultViewBox: "0 0 512 512",
|
853
845
|
size: "size-5",
|
@@ -872,8 +864,8 @@ const fs = ({
|
|
872
864
|
title: r,
|
873
865
|
monotone: a,
|
874
866
|
...o
|
875
|
-
}) => /* @__PURE__ */
|
876
|
-
|
867
|
+
}) => /* @__PURE__ */ N(
|
868
|
+
re,
|
877
869
|
{
|
878
870
|
defaultViewBox: "0 0 512 512",
|
879
871
|
size: "size-5",
|
@@ -898,8 +890,8 @@ const fs = ({
|
|
898
890
|
title: r,
|
899
891
|
monotone: a,
|
900
892
|
...o
|
901
|
-
}) => /* @__PURE__ */
|
902
|
-
|
893
|
+
}) => /* @__PURE__ */ N(
|
894
|
+
re,
|
903
895
|
{
|
904
896
|
defaultViewBox: "0 0 512 512",
|
905
897
|
size: "size-5",
|
@@ -925,7 +917,7 @@ const fs = ({
|
|
925
917
|
monotone: a,
|
926
918
|
...o
|
927
919
|
}) => /* @__PURE__ */ c(
|
928
|
-
|
920
|
+
re,
|
929
921
|
{
|
930
922
|
defaultViewBox: "0 0 448 512",
|
931
923
|
size: "size-5",
|
@@ -941,8 +933,8 @@ const fs = ({
|
|
941
933
|
title: r,
|
942
934
|
monotone: a,
|
943
935
|
...o
|
944
|
-
}) => /* @__PURE__ */
|
945
|
-
|
936
|
+
}) => /* @__PURE__ */ N(
|
937
|
+
re,
|
946
938
|
{
|
947
939
|
defaultViewBox: "0 0 512 512",
|
948
940
|
size: "size-5",
|
@@ -967,8 +959,8 @@ const fs = ({
|
|
967
959
|
title: r,
|
968
960
|
monotone: a,
|
969
961
|
...o
|
970
|
-
}) => /* @__PURE__ */
|
971
|
-
|
962
|
+
}) => /* @__PURE__ */ N(
|
963
|
+
re,
|
972
964
|
{
|
973
965
|
defaultViewBox: "0 0 448 512",
|
974
966
|
size: "size-5",
|
@@ -1086,7 +1078,7 @@ function ys(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
|
|
1086
1078
|
}, [e, t, r]);
|
1087
1079
|
}
|
1088
1080
|
function gc() {
|
1089
|
-
const e =
|
1081
|
+
const e = M(null), [t, r] = F(!1);
|
1090
1082
|
return { ref: q((a) => {
|
1091
1083
|
var o, n;
|
1092
1084
|
typeof IntersectionObserver < "u" && (a && !e.current ? e.current = new IntersectionObserver(
|
@@ -1095,7 +1087,7 @@ function gc() {
|
|
1095
1087
|
}, []), inViewport: t };
|
1096
1088
|
}
|
1097
1089
|
function yc() {
|
1098
|
-
const e =
|
1090
|
+
const e = M(!1);
|
1099
1091
|
return z(() => (e.current = !0, () => {
|
1100
1092
|
e.current = !1;
|
1101
1093
|
}), []), q(() => e.current, []);
|
@@ -1149,7 +1141,7 @@ const _c = {
|
|
1149
1141
|
right: 0
|
1150
1142
|
};
|
1151
1143
|
function vs(e) {
|
1152
|
-
const t = yc(), r =
|
1144
|
+
const t = yc(), r = M(0), a = M(null), [o, n] = F(_c), s = Ie(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
|
1153
1145
|
const i = l[0];
|
1154
1146
|
i && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
1155
1147
|
a.current && t() && n(i.contentRect);
|
@@ -1198,7 +1190,7 @@ function kc() {
|
|
1198
1190
|
window.visualViewport && (window.visualViewport.removeEventListener("resize", r), window.visualViewport.removeEventListener("orientationchange", r));
|
1199
1191
|
}), [r]), e;
|
1200
1192
|
}
|
1201
|
-
const Lr = "thead", to = "tfoot", Et = "tbody",
|
1193
|
+
const Lr = "thead", to = "tfoot", Et = "tbody", Ve = {
|
1202
1194
|
ASC: "asc",
|
1203
1195
|
DESC: "desc"
|
1204
1196
|
}, xc = ({
|
@@ -1624,7 +1616,7 @@ const Lr = "thead", to = "tfoot", Et = "tbody", Fe = {
|
|
1624
1616
|
});
|
1625
1617
|
ws.displayName = "BaseButton";
|
1626
1618
|
function Uc() {
|
1627
|
-
const e =
|
1619
|
+
const e = M(!1);
|
1628
1620
|
return z(() => (e.current = !0, () => {
|
1629
1621
|
e.current = !1;
|
1630
1622
|
}), []), q(() => e.current, []);
|
@@ -1648,7 +1640,7 @@ const Gc = {
|
|
1648
1640
|
right: 0
|
1649
1641
|
};
|
1650
1642
|
function Wr(e) {
|
1651
|
-
const t = Uc(), r =
|
1643
|
+
const t = Uc(), r = M(0), a = M(null), [o, n] = F(Gc), s = Ie(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
|
1652
1644
|
const i = l[0];
|
1653
1645
|
i && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
1654
1646
|
a.current && t() && n(i.contentRect);
|
@@ -1693,7 +1685,7 @@ const jc = {
|
|
1693
1685
|
radius: p = "large",
|
1694
1686
|
variant: v = "primary",
|
1695
1687
|
iconClassName: w,
|
1696
|
-
animated:
|
1688
|
+
animated: k = !1,
|
1697
1689
|
...I
|
1698
1690
|
}, C) => {
|
1699
1691
|
const _ = Vc({
|
@@ -1712,22 +1704,22 @@ const jc = {
|
|
1712
1704
|
align: b,
|
1713
1705
|
radius: p,
|
1714
1706
|
variant: v,
|
1715
|
-
animated:
|
1716
|
-
}),
|
1707
|
+
animated: k
|
1708
|
+
}), E = Pc({ mode: r, raw: l, iconClassName: w }), T = zc({ animated: k }), [x, S] = Wr(), [R, O] = Wr(), [$, A] = Wr(), D = M(0), B = M(null), W = Hc([C, B]);
|
1717
1709
|
return ge(() => {
|
1718
|
-
|
1719
|
-
}, [A,
|
1720
|
-
B && B.current &&
|
1710
|
+
$ && $.current && k && (D.current = A.width + Wc[u] + (i ? 0 : qc));
|
1711
|
+
}, [A, $, u, i, k]), ge(() => {
|
1712
|
+
B && B.current && k && (h && x && S.width > 0 ? (x.current && (x.current.style.opacity = "100"), B.current.style.width = `${S.width + D.current}px`) : m && O.width > 0 ? (R.current && (R.current.style.opacity = "100"), B.current.style.width = `${O.width + D.current}px`) : (x.current && (x.current.style.opacity = "0"), R.current && (R.current.style.opacity = "0"), B.current.style.width = `${jc[u]}px`));
|
1721
1713
|
}, [
|
1722
|
-
|
1714
|
+
S,
|
1723
1715
|
h,
|
1724
|
-
|
1725
|
-
|
1716
|
+
x,
|
1717
|
+
O,
|
1726
1718
|
m,
|
1727
1719
|
R,
|
1728
1720
|
u,
|
1729
|
-
|
1730
|
-
]), /* @__PURE__ */
|
1721
|
+
k
|
1722
|
+
]), /* @__PURE__ */ N(
|
1731
1723
|
ws,
|
1732
1724
|
{
|
1733
1725
|
ref: W,
|
@@ -1742,17 +1734,17 @@ const jc = {
|
|
1742
1734
|
{
|
1743
1735
|
label: m,
|
1744
1736
|
labelRef: R,
|
1745
|
-
labelClass:
|
1737
|
+
labelClass: T,
|
1746
1738
|
labelInnerClass: "pr-2"
|
1747
1739
|
}
|
1748
1740
|
),
|
1749
|
-
/* @__PURE__ */ c("span", { ref:
|
1741
|
+
/* @__PURE__ */ c("span", { ref: $, className: E, children: e }),
|
1750
1742
|
/* @__PURE__ */ c(
|
1751
1743
|
Yo,
|
1752
1744
|
{
|
1753
1745
|
label: h,
|
1754
|
-
labelRef:
|
1755
|
-
labelClass:
|
1746
|
+
labelRef: x,
|
1747
|
+
labelClass: T,
|
1756
1748
|
labelInnerClass: "pl-2"
|
1757
1749
|
}
|
1758
1750
|
)
|
@@ -1831,7 +1823,7 @@ const ao = ({
|
|
1831
1823
|
...i
|
1832
1824
|
}) => {
|
1833
1825
|
const d = g(n, a);
|
1834
|
-
return /* @__PURE__ */ c(se, { children: /* @__PURE__ */
|
1826
|
+
return /* @__PURE__ */ c(se, { children: /* @__PURE__ */ N(
|
1835
1827
|
"svg",
|
1836
1828
|
{
|
1837
1829
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -1868,7 +1860,7 @@ const Yc = ({
|
|
1868
1860
|
title: r,
|
1869
1861
|
monotone: a,
|
1870
1862
|
...o
|
1871
|
-
}) => /* @__PURE__ */
|
1863
|
+
}) => /* @__PURE__ */ N(
|
1872
1864
|
ao,
|
1873
1865
|
{
|
1874
1866
|
defaultViewBox: "0 0 576 512",
|
@@ -1894,7 +1886,7 @@ const Yc = ({
|
|
1894
1886
|
title: r,
|
1895
1887
|
monotone: a,
|
1896
1888
|
...o
|
1897
|
-
}) => /* @__PURE__ */
|
1889
|
+
}) => /* @__PURE__ */ N(
|
1898
1890
|
ao,
|
1899
1891
|
{
|
1900
1892
|
defaultViewBox: "0 0 576 512",
|
@@ -1920,7 +1912,7 @@ const Yc = ({
|
|
1920
1912
|
title: r,
|
1921
1913
|
monotone: a,
|
1922
1914
|
...o
|
1923
|
-
}) => /* @__PURE__ */
|
1915
|
+
}) => /* @__PURE__ */ N(
|
1924
1916
|
ao,
|
1925
1917
|
{
|
1926
1918
|
defaultViewBox: "0 0 576 512",
|
@@ -1991,7 +1983,7 @@ const Pt = U.createContext({
|
|
1991
1983
|
...l && {
|
1992
1984
|
style: { maxHeight: l }
|
1993
1985
|
},
|
1994
|
-
children: /* @__PURE__ */
|
1986
|
+
children: /* @__PURE__ */ N("table", { className: u.table, summary: o, ...f, children: [
|
1995
1987
|
r && /* @__PURE__ */ c("caption", { className: u.caption, children: r }),
|
1996
1988
|
e
|
1997
1989
|
] })
|
@@ -2075,7 +2067,7 @@ const Pt = U.createContext({
|
|
2075
2067
|
component: o,
|
2076
2068
|
className: a,
|
2077
2069
|
role: "columnheader",
|
2078
|
-
"aria-sort": i ===
|
2070
|
+
"aria-sort": i === Ve.ASC && d === f ? "ascending" : i === Ve.DESC && d === f ? "descending" : "other",
|
2079
2071
|
...u,
|
2080
2072
|
children: /* @__PURE__ */ c(
|
2081
2073
|
xs,
|
@@ -2089,7 +2081,7 @@ const Pt = U.createContext({
|
|
2089
2081
|
mode: s,
|
2090
2082
|
fullWidth: !0,
|
2091
2083
|
labelRight: t,
|
2092
|
-
children: i ===
|
2084
|
+
children: i === Ve.ASC && d === f ? /* @__PURE__ */ c(Kc, { className: "size-4", monotone: !0 }) : i === Ve.DESC && d === f ? /* @__PURE__ */ c(Jc, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ c(Yc, { className: "size-4", monotone: !0 })
|
2093
2085
|
}
|
2094
2086
|
)
|
2095
2087
|
}
|
@@ -2142,7 +2134,7 @@ function sd(e) {
|
|
2142
2134
|
}
|
2143
2135
|
sd(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
2144
2136
|
`);
|
2145
|
-
var ar = (e) => typeof e == "number" && !isNaN(e), bt = (e) => typeof e == "string",
|
2137
|
+
var ar = (e) => typeof e == "number" && !isNaN(e), bt = (e) => typeof e == "string", Ke = (e) => typeof e == "function", id = (e) => bt(e) || ar(e), Ea = (e) => bt(e) || Ke(e) ? e : null, ld = (e, t) => e === !1 || ar(e) && e > 0 ? e : t, Ia = (e) => $r(e) || bt(e) || Ke(e) || ar(e);
|
2146
2138
|
function cd(e, t, r = 300) {
|
2147
2139
|
let { scrollHeight: a, style: o } = e;
|
2148
2140
|
requestAnimationFrame(() => {
|
@@ -2153,7 +2145,7 @@ function cd(e, t, r = 300) {
|
|
2153
2145
|
}
|
2154
2146
|
function Ts({ enter: e, exit: t, appendPosition: r = !1, collapse: a = !0, collapseDuration: o = 300 }) {
|
2155
2147
|
return function({ children: n, position: s, preventExitTransition: l, done: i, nodeRef: d, isIn: f, playToast: u }) {
|
2156
|
-
let h = r ? `${e}--${s}` : e, m = r ? `${t}--${s}` : t, y =
|
2148
|
+
let h = r ? `${e}--${s}` : e, m = r ? `${t}--${s}` : t, y = M(0);
|
2157
2149
|
return ge(() => {
|
2158
2150
|
let b = d.current, p = h.split(" "), v = (w) => {
|
2159
2151
|
w.target === d.current && (u(), b.removeEventListener("animationend", v), b.removeEventListener("animationcancel", v), y.current === 0 && w.type !== "animationcancel" && b.classList.remove(...p));
|
@@ -2171,7 +2163,7 @@ function Ko(e, t) {
|
|
2171
2163
|
return { content: Es(e.content, e.props), containerId: e.props.containerId, id: e.props.toastId, theme: e.props.theme, type: e.props.type, data: e.props.data || {}, isLoading: e.props.isLoading, icon: e.props.icon, reason: e.removalReason, status: t };
|
2172
2164
|
}
|
2173
2165
|
function Es(e, t, r = !1) {
|
2174
|
-
return $r(e) && !bt(e.type) ? Ka(e, { closeToast: t.closeToast, toastProps: t, data: t.data, isPaused: r }) :
|
2166
|
+
return $r(e) && !bt(e.type) ? Ka(e, { closeToast: t.closeToast, toastProps: t, data: t.data, isPaused: r }) : Ke(e) ? e({ closeToast: t.closeToast, toastProps: t, data: t.data, isPaused: r }) : e;
|
2175
2167
|
}
|
2176
2168
|
function dd({ closeToast: e, theme: t, ariaLabel: r = "close" }) {
|
2177
2169
|
return U.createElement("button", { className: `Toastify__close-button Toastify__close-button--${t}`, type: "button", onClick: (a) => {
|
@@ -2181,7 +2173,7 @@ function dd({ closeToast: e, theme: t, ariaLabel: r = "close" }) {
|
|
2181
2173
|
function ud({ delay: e, isRunning: t, closeToast: r, type: a = "default", hide: o, className: n, controlledProgress: s, progress: l, rtl: i, isIn: d, theme: f }) {
|
2182
2174
|
let u = o || s && l === 0, h = { animationDuration: `${e}ms`, animationPlayState: t ? "running" : "paused" };
|
2183
2175
|
s && (h.transform = `scaleX(${l})`);
|
2184
|
-
let m = g("Toastify__progress-bar", s ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${f}`, `Toastify__progress-bar--${a}`, { "Toastify__progress-bar--rtl": i }), y =
|
2176
|
+
let m = g("Toastify__progress-bar", s ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${f}`, `Toastify__progress-bar--${a}`, { "Toastify__progress-bar--rtl": i }), y = Ke(n) ? n({ rtl: i, type: a, defaultClassName: m }) : g(m, n), b = { [s && l >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: s && l < 1 ? null : () => {
|
2185
2177
|
d && r();
|
2186
2178
|
} };
|
2187
2179
|
return U.createElement("div", { className: "Toastify__progress-bar--wrp", "data-hidden": u }, U.createElement("div", { className: `Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${a}` }), U.createElement("div", { role: "progressbar", "aria-hidden": u ? "true" : "false", "aria-label": "notification timer", className: y, style: h, ...b }));
|
@@ -2190,60 +2182,60 @@ var fd = 1, Is = () => `${fd++}`;
|
|
2190
2182
|
function hd(e, t, r) {
|
2191
2183
|
let a = 1, o = 0, n = [], s = [], l = t, i = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Set(), f = (w) => (d.add(w), () => d.delete(w)), u = () => {
|
2192
2184
|
s = Array.from(i.values()), d.forEach((w) => w());
|
2193
|
-
}, h = ({ containerId: w, toastId:
|
2194
|
-
let C = w ? w !== e : e !== 1, _ = i.has(
|
2185
|
+
}, h = ({ containerId: w, toastId: k, updateId: I }) => {
|
2186
|
+
let C = w ? w !== e : e !== 1, _ = i.has(k) && I == null;
|
2195
2187
|
return C || _;
|
2196
|
-
}, m = (w,
|
2188
|
+
}, m = (w, k) => {
|
2197
2189
|
i.forEach((I) => {
|
2198
2190
|
var C;
|
2199
|
-
(
|
2191
|
+
(k == null || k === I.props.toastId) && ((C = I.toggle) == null || C.call(I, w));
|
2200
2192
|
});
|
2201
2193
|
}, y = (w) => {
|
2202
|
-
var
|
2203
|
-
(I = (
|
2194
|
+
var k, I;
|
2195
|
+
(I = (k = w.props) == null ? void 0 : k.onClose) == null || I.call(k, w.removalReason), w.isActive = !1;
|
2204
2196
|
}, b = (w) => {
|
2205
2197
|
if (w == null) i.forEach(y);
|
2206
2198
|
else {
|
2207
|
-
let
|
2208
|
-
|
2199
|
+
let k = i.get(w);
|
2200
|
+
k && y(k);
|
2209
2201
|
}
|
2210
2202
|
u();
|
2211
2203
|
}, p = () => {
|
2212
2204
|
o -= n.length, n = [];
|
2213
2205
|
}, v = (w) => {
|
2214
|
-
var
|
2215
|
-
let { toastId: C, updateId: _ } = w.props,
|
2216
|
-
w.staleId && i.delete(w.staleId), w.isActive = !0, i.set(C, w), u(), r(Ko(w,
|
2206
|
+
var k, I;
|
2207
|
+
let { toastId: C, updateId: _ } = w.props, E = _ == null;
|
2208
|
+
w.staleId && i.delete(w.staleId), w.isActive = !0, i.set(C, w), u(), r(Ko(w, E ? "added" : "updated")), E && ((I = (k = w.props).onOpen) == null || I.call(k));
|
2217
2209
|
};
|
2218
|
-
return { id: e, props: l, observe: f, toggle: m, removeToast: b, toasts: i, clearQueue: p, buildToast: (w,
|
2219
|
-
if (h(
|
2220
|
-
let { toastId: I, updateId: C, data: _, staleId:
|
2221
|
-
|
2222
|
-
let
|
2223
|
-
i.get(I).removalReason =
|
2210
|
+
return { id: e, props: l, observe: f, toggle: m, removeToast: b, toasts: i, clearQueue: p, buildToast: (w, k) => {
|
2211
|
+
if (h(k)) return;
|
2212
|
+
let { toastId: I, updateId: C, data: _, staleId: E, delay: T } = k, x = C == null;
|
2213
|
+
x && o++;
|
2214
|
+
let S = { ...l, style: l.toastStyle, key: a++, ...Object.fromEntries(Object.entries(k).filter(([O, $]) => $ != null)), toastId: I, updateId: C, data: _, isIn: !1, className: Ea(k.className || l.toastClassName), progressClassName: Ea(k.progressClassName || l.progressClassName), autoClose: k.isLoading ? !1 : ld(k.autoClose, l.autoClose), closeToast(O) {
|
2215
|
+
i.get(I).removalReason = O, b(I);
|
2224
2216
|
}, deleteToast() {
|
2225
|
-
let
|
2226
|
-
if (
|
2227
|
-
if (r(Ko(
|
2217
|
+
let O = i.get(I);
|
2218
|
+
if (O != null) {
|
2219
|
+
if (r(Ko(O, "removed")), i.delete(I), o--, o < 0 && (o = 0), n.length > 0) {
|
2228
2220
|
v(n.shift());
|
2229
2221
|
return;
|
2230
2222
|
}
|
2231
2223
|
u();
|
2232
2224
|
}
|
2233
2225
|
} };
|
2234
|
-
|
2235
|
-
let R = { content: w, props:
|
2236
|
-
l.limit && l.limit > 0 && o > l.limit &&
|
2226
|
+
S.closeButton = l.closeButton, k.closeButton === !1 || Ia(k.closeButton) ? S.closeButton = k.closeButton : k.closeButton === !0 && (S.closeButton = Ia(l.closeButton) ? l.closeButton : !0);
|
2227
|
+
let R = { content: w, props: S, staleId: E };
|
2228
|
+
l.limit && l.limit > 0 && o > l.limit && x ? n.push(R) : ar(T) ? setTimeout(() => {
|
2237
2229
|
v(R);
|
2238
|
-
},
|
2230
|
+
}, T) : v(R);
|
2239
2231
|
}, setProps(w) {
|
2240
2232
|
l = w;
|
2241
|
-
}, setToggle: (w,
|
2233
|
+
}, setToggle: (w, k) => {
|
2242
2234
|
let I = i.get(w);
|
2243
|
-
I && (I.toggle =
|
2235
|
+
I && (I.toggle = k);
|
2244
2236
|
}, isToastActive: (w) => {
|
2245
|
-
var
|
2246
|
-
return (
|
2237
|
+
var k;
|
2238
|
+
return (k = i.get(w)) == null ? void 0 : k.isActive;
|
2247
2239
|
}, getSnapshot: () => s };
|
2248
2240
|
}
|
2249
2241
|
var ve = /* @__PURE__ */ new Map(), Kt = [], Ca = /* @__PURE__ */ new Set(), md = (e) => Ca.forEach((t) => t(e)), Cs = () => ve.size > 0;
|
@@ -2344,7 +2336,7 @@ function xd(e, { pending: t, error: r, success: a }, o) {
|
|
2344
2336
|
}
|
2345
2337
|
let h = { type: d, ...s, ...o, data: u }, m = bt(f) ? { render: f } : f;
|
2346
2338
|
return n ? Q.update(n, { ...h, ...m }) : Q(m.render, { ...h, ...m }), u;
|
2347
|
-
}, i =
|
2339
|
+
}, i = Ke(e) ? e() : e;
|
2348
2340
|
return i.then((d) => l("success", a, d)).catch((d) => l("error", r, d)), i;
|
2349
2341
|
}
|
2350
2342
|
Q.promise = xd;
|
@@ -2377,7 +2369,7 @@ Q.play = (e) => Rs(!0, e);
|
|
2377
2369
|
Q.pause = (e) => Rs(!1, e);
|
2378
2370
|
function Ed(e) {
|
2379
2371
|
var t;
|
2380
|
-
let { subscribe: r, getSnapshot: a, setProps: o } =
|
2372
|
+
let { subscribe: r, getSnapshot: a, setProps: o } = M(_d(e)).current;
|
2381
2373
|
o(e);
|
2382
2374
|
let n = (t = Zn(r, a, a)) == null ? void 0 : t.slice();
|
2383
2375
|
function s(l) {
|
@@ -2391,7 +2383,7 @@ function Ed(e) {
|
|
2391
2383
|
return { getToastToRender: s, isToastActive: Ss, count: n == null ? void 0 : n.length };
|
2392
2384
|
}
|
2393
2385
|
function Id(e) {
|
2394
|
-
let [t, r] = F(!1), [a, o] = F(!1), n =
|
2386
|
+
let [t, r] = F(!1), [a, o] = F(!1), n = M(null), s = M({ start: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, didMove: !1 }).current, { autoClose: l, pauseOnHover: i, closeToast: d, onClick: f, closeOnClick: u } = e;
|
2395
2387
|
vd({ id: e.toastId, containerId: e.containerId, fn: r }), z(() => {
|
2396
2388
|
if (e.pauseOnFocusLoss) return h(), () => {
|
2397
2389
|
m();
|
@@ -2403,16 +2395,16 @@ function Id(e) {
|
|
2403
2395
|
function m() {
|
2404
2396
|
window.removeEventListener("focus", p), window.removeEventListener("blur", v);
|
2405
2397
|
}
|
2406
|
-
function y(
|
2407
|
-
if (e.draggable === !0 || e.draggable ===
|
2398
|
+
function y(E) {
|
2399
|
+
if (e.draggable === !0 || e.draggable === E.pointerType) {
|
2408
2400
|
w();
|
2409
|
-
let
|
2410
|
-
s.canCloseOnClick = !0, s.canDrag = !0,
|
2401
|
+
let T = n.current;
|
2402
|
+
s.canCloseOnClick = !0, s.canDrag = !0, T.style.transition = "none", e.draggableDirection === "x" ? (s.start = E.clientX, s.removalDistance = T.offsetWidth * (e.draggablePercent / 100)) : (s.start = E.clientY, s.removalDistance = T.offsetHeight * (e.draggablePercent === 80 ? e.draggablePercent * 1.5 : e.draggablePercent) / 100);
|
2411
2403
|
}
|
2412
2404
|
}
|
2413
|
-
function b(
|
2414
|
-
let { top:
|
2415
|
-
|
2405
|
+
function b(E) {
|
2406
|
+
let { top: T, bottom: x, left: S, right: R } = n.current.getBoundingClientRect();
|
2407
|
+
E.nativeEvent.type !== "touchend" && e.pauseOnHover && E.clientX >= S && E.clientX <= R && E.clientY >= T && E.clientY <= x ? v() : p();
|
2416
2408
|
}
|
2417
2409
|
function p() {
|
2418
2410
|
r(!0);
|
@@ -2423,31 +2415,31 @@ function Id(e) {
|
|
2423
2415
|
function w() {
|
2424
2416
|
s.didMove = !1, document.addEventListener("pointermove", I), document.addEventListener("pointerup", C);
|
2425
2417
|
}
|
2426
|
-
function
|
2418
|
+
function k() {
|
2427
2419
|
document.removeEventListener("pointermove", I), document.removeEventListener("pointerup", C);
|
2428
2420
|
}
|
2429
|
-
function I(
|
2430
|
-
let
|
2431
|
-
if (s.canDrag &&
|
2432
|
-
s.didMove = !0, t && v(), e.draggableDirection === "x" ? s.delta =
|
2433
|
-
let
|
2434
|
-
|
2421
|
+
function I(E) {
|
2422
|
+
let T = n.current;
|
2423
|
+
if (s.canDrag && T) {
|
2424
|
+
s.didMove = !0, t && v(), e.draggableDirection === "x" ? s.delta = E.clientX - s.start : s.delta = E.clientY - s.start, s.start !== E.clientX && (s.canCloseOnClick = !1);
|
2425
|
+
let x = e.draggableDirection === "x" ? `${s.delta}px, var(--y)` : `0, calc(${s.delta}px + var(--y))`;
|
2426
|
+
T.style.transform = `translate3d(${x},0)`, T.style.opacity = `${1 - Math.abs(s.delta / s.removalDistance)}`;
|
2435
2427
|
}
|
2436
2428
|
}
|
2437
2429
|
function C() {
|
2438
|
-
|
2439
|
-
let
|
2440
|
-
if (s.canDrag && s.didMove &&
|
2430
|
+
k();
|
2431
|
+
let E = n.current;
|
2432
|
+
if (s.canDrag && s.didMove && E) {
|
2441
2433
|
if (s.canDrag = !1, Math.abs(s.delta) > s.removalDistance) {
|
2442
2434
|
o(!0), e.closeToast(!0), e.collapseAll();
|
2443
2435
|
return;
|
2444
2436
|
}
|
2445
|
-
|
2437
|
+
E.style.transition = "transform 0.2s, opacity 0.2s", E.style.removeProperty("transform"), E.style.removeProperty("opacity");
|
2446
2438
|
}
|
2447
2439
|
}
|
2448
2440
|
let _ = { onPointerDown: y, onPointerUp: b };
|
2449
|
-
return l && i && (_.onMouseEnter = v, e.stacked || (_.onMouseLeave = p)), u && (_.onClick = (
|
2450
|
-
f && f(
|
2441
|
+
return l && i && (_.onMouseEnter = v, e.stacked || (_.onMouseLeave = p)), u && (_.onClick = (E) => {
|
2442
|
+
f && f(E), s.canCloseOnClick && d(!0);
|
2451
2443
|
}), { playToast: p, pauseToast: v, isRunning: t, preventExitTransition: a, toastRef: n, eventHandlers: _ };
|
2452
2444
|
}
|
2453
2445
|
var Cd = typeof window < "u" ? ge : z, Br = ({ theme: e, type: t, isLoading: r, ...a }) => U.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: e === "colored" ? "currentColor" : `var(--toastify-icon-color-${t})`, ...a });
|
@@ -2469,17 +2461,17 @@ function Od() {
|
|
2469
2461
|
var Sa = { info: Nd, warning: Sd, success: Rd, error: Ad, spinner: Od }, $d = (e) => e in Sa;
|
2470
2462
|
function Ld({ theme: e, type: t, isLoading: r, icon: a }) {
|
2471
2463
|
let o = null, n = { theme: e, type: t };
|
2472
|
-
return a === !1 || (
|
2464
|
+
return a === !1 || (Ke(a) ? o = a({ ...n, isLoading: r }) : $r(a) ? o = Ka(a, n) : r ? o = Sa.spinner() : $d(t) && (o = Sa[t](n))), o;
|
2473
2465
|
}
|
2474
2466
|
var Md = (e) => {
|
2475
|
-
let { isRunning: t, preventExitTransition: r, toastRef: a, eventHandlers: o, playToast: n } = Id(e), { closeButton: s, children: l, autoClose: i, onClick: d, type: f, hideProgressBar: u, closeToast: h, transition: m, position: y, className: b, style: p, progressClassName: v, updateId: w, role:
|
2476
|
-
return s === !1 || (
|
2467
|
+
let { isRunning: t, preventExitTransition: r, toastRef: a, eventHandlers: o, playToast: n } = Id(e), { closeButton: s, children: l, autoClose: i, onClick: d, type: f, hideProgressBar: u, closeToast: h, transition: m, position: y, className: b, style: p, progressClassName: v, updateId: w, role: k, progress: I, rtl: C, toastId: _, deleteToast: E, isIn: T, isLoading: x, closeOnClick: S, theme: R, ariaLabel: O } = e, $ = g("Toastify__toast", `Toastify__toast-theme--${R}`, `Toastify__toast--${f}`, { "Toastify__toast--rtl": C }, { "Toastify__toast--close-on-click": S }), A = Ke(b) ? b({ rtl: C, position: y, type: f, defaultClassName: $ }) : g($, b), D = Ld(e), B = !!I || !i, W = { closeToast: h, type: f, theme: R }, G = null;
|
2468
|
+
return s === !1 || (Ke(s) ? G = s(W) : $r(s) ? G = Ka(s, W) : G = dd(W)), U.createElement(m, { isIn: T, done: E, position: y, preventExitTransition: r, nodeRef: a, playToast: n }, U.createElement("div", { id: _, tabIndex: 0, onClick: d, "data-in": T, className: A, ...o, style: p, ref: a, ...T && { role: k, "aria-label": O } }, D != null && U.createElement("div", { className: g("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !x }) }, D), Es(l, e, !t), G, !e.customProgressBar && U.createElement(ud, { ...w && !B ? { key: `p-${w}` } : {}, rtl: C, theme: R, delay: i, isRunning: t, isIn: T, closeToast: h, hide: u, type: f, className: v, controlledProgress: B, progress: I || 0 })));
|
2477
2469
|
}, As = (e, t = !1) => ({ enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t }), Dd = Ts(As("bounce", !0)), Cr = Ts(As("slide", !0)), Bd = { position: "top-right", transition: Dd, autoClose: 5e3, closeButton: !0, pauseOnHover: !0, pauseOnFocusLoss: !0, draggable: "touch", draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light", "aria-label": "Notifications Alt+T", hotKeys: (e) => e.altKey && e.code === "KeyT" };
|
2478
2470
|
function Na(e) {
|
2479
|
-
let t = { ...Bd, ...e }, r = e.stacked, [a, o] = F(!0), n =
|
2471
|
+
let t = { ...Bd, ...e }, r = e.stacked, [a, o] = F(!0), n = M(null), { getToastToRender: s, isToastActive: l, count: i } = Ed(t), { className: d, style: f, rtl: u, containerId: h, hotKeys: m } = t;
|
2480
2472
|
function y(p) {
|
2481
2473
|
let v = g("Toastify__toast-container", `Toastify__toast-container--${p}`, { "Toastify__toast-container--rtl": u });
|
2482
|
-
return
|
2474
|
+
return Ke(d) ? d({ position: p, rtl: u, defaultClassName: v }) : g(v, Ea(d));
|
2483
2475
|
}
|
2484
2476
|
function b() {
|
2485
2477
|
r && (o(!0), Q.play());
|
@@ -2487,19 +2479,19 @@ function Na(e) {
|
|
2487
2479
|
return Cd(() => {
|
2488
2480
|
var p;
|
2489
2481
|
if (r) {
|
2490
|
-
let v = n.current.querySelectorAll('[data-in="true"]'), w = 12,
|
2491
|
-
Array.from(v).reverse().forEach((_,
|
2492
|
-
let
|
2493
|
-
|
2494
|
-
let
|
2495
|
-
|
2482
|
+
let v = n.current.querySelectorAll('[data-in="true"]'), w = 12, k = (p = t.position) == null ? void 0 : p.includes("top"), I = 0, C = 0;
|
2483
|
+
Array.from(v).reverse().forEach((_, E) => {
|
2484
|
+
let T = _;
|
2485
|
+
T.classList.add("Toastify__toast--stacked"), E > 0 && (T.dataset.collapsed = `${a}`), T.dataset.pos || (T.dataset.pos = k ? "top" : "bot");
|
2486
|
+
let x = I * (a ? 0.2 : 1) + (a ? 0 : w * E);
|
2487
|
+
T.style.setProperty("--y", `${k ? x : x * -1}px`), T.style.setProperty("--g", `${w}`), T.style.setProperty("--s", `${1 - (a ? C : 0)}`), I += T.offsetHeight, C += 0.025;
|
2496
2488
|
});
|
2497
2489
|
}
|
2498
2490
|
}, [a, i, r]), z(() => {
|
2499
2491
|
function p(v) {
|
2500
2492
|
var w;
|
2501
|
-
let
|
2502
|
-
m(v) && ((w =
|
2493
|
+
let k = n.current;
|
2494
|
+
m(v) && ((w = k.querySelector('[tabIndex="0"]')) == null || w.focus(), o(!1), Q.pause()), v.key === "Escape" && (document.activeElement === k || k != null && k.contains(document.activeElement)) && (o(!0), Q.play());
|
2503
2495
|
}
|
2504
2496
|
return document.addEventListener("keydown", p), () => {
|
2505
2497
|
document.removeEventListener("keydown", p);
|
@@ -2508,7 +2500,7 @@ function Na(e) {
|
|
2508
2500
|
r && (o(!1), Q.pause());
|
2509
2501
|
}, onMouseLeave: b, "aria-live": "polite", "aria-atomic": "false", "aria-relevant": "additions text", "aria-label": t["aria-label"] }, s((p, v) => {
|
2510
2502
|
let w = v.length ? { ...f } : { ...f, pointerEvents: "none" };
|
2511
|
-
return U.createElement("div", { tabIndex: -1, className: y(p), "data-stacked": r, style: w, key: `c-${p}` }, v.map(({ content:
|
2503
|
+
return U.createElement("div", { tabIndex: -1, className: y(p), "data-stacked": r, style: w, key: `c-${p}` }, v.map(({ content: k, props: I }) => U.createElement(Md, { ...I, stacked: r, collapseAll: b, isIn: l(I.toastId, I.containerId), key: `t-${I.key}` }, k)));
|
2512
2504
|
}));
|
2513
2505
|
}
|
2514
2506
|
const Yt = "FOOTER_BOTTOM", Ra = "FOOTER_TOP", xr = "APP_SET_FOOTER_POSITION", Os = "APP_SET_FOOTER_HEIGHT", Pd = (e, t) => {
|
@@ -3718,71 +3710,71 @@ async function $u({
|
|
3718
3710
|
onFinishStepPart: b,
|
3719
3711
|
onStartStepPart: p
|
3720
3712
|
}) {
|
3721
|
-
const v = e.getReader(), w = new TextDecoder(),
|
3713
|
+
const v = e.getReader(), w = new TextDecoder(), k = [];
|
3722
3714
|
let I = 0;
|
3723
3715
|
for (; ; ) {
|
3724
3716
|
const { value: C } = await v.read();
|
3725
|
-
if (C && (
|
3717
|
+
if (C && (k.push(C), I += C.length, C[C.length - 1] !== Au))
|
3726
3718
|
continue;
|
3727
|
-
if (
|
3719
|
+
if (k.length === 0)
|
3728
3720
|
break;
|
3729
|
-
const _ = Ou(
|
3721
|
+
const _ = Ou(k, I);
|
3730
3722
|
I = 0;
|
3731
|
-
const
|
3732
|
-
`).filter((
|
3733
|
-
for (const { type:
|
3734
|
-
switch (
|
3723
|
+
const E = w.decode(_, { stream: !0 }).split(`
|
3724
|
+
`).filter((T) => T !== "").map(Ru);
|
3725
|
+
for (const { type: T, value: x } of E)
|
3726
|
+
switch (T) {
|
3735
3727
|
case "text":
|
3736
|
-
await (t == null ? void 0 : t(
|
3728
|
+
await (t == null ? void 0 : t(x));
|
3737
3729
|
break;
|
3738
3730
|
case "reasoning":
|
3739
|
-
await (r == null ? void 0 : r(
|
3731
|
+
await (r == null ? void 0 : r(x));
|
3740
3732
|
break;
|
3741
3733
|
case "reasoning_signature":
|
3742
|
-
await (a == null ? void 0 : a(
|
3734
|
+
await (a == null ? void 0 : a(x));
|
3743
3735
|
break;
|
3744
3736
|
case "redacted_reasoning":
|
3745
|
-
await (o == null ? void 0 : o(
|
3737
|
+
await (o == null ? void 0 : o(x));
|
3746
3738
|
break;
|
3747
3739
|
case "file":
|
3748
|
-
await (s == null ? void 0 : s(
|
3740
|
+
await (s == null ? void 0 : s(x));
|
3749
3741
|
break;
|
3750
3742
|
case "source":
|
3751
|
-
await (n == null ? void 0 : n(
|
3743
|
+
await (n == null ? void 0 : n(x));
|
3752
3744
|
break;
|
3753
3745
|
case "data":
|
3754
|
-
await (l == null ? void 0 : l(
|
3746
|
+
await (l == null ? void 0 : l(x));
|
3755
3747
|
break;
|
3756
3748
|
case "error":
|
3757
|
-
await (i == null ? void 0 : i(
|
3749
|
+
await (i == null ? void 0 : i(x));
|
3758
3750
|
break;
|
3759
3751
|
case "message_annotations":
|
3760
|
-
await (m == null ? void 0 : m(
|
3752
|
+
await (m == null ? void 0 : m(x));
|
3761
3753
|
break;
|
3762
3754
|
case "tool_call_streaming_start":
|
3763
|
-
await (d == null ? void 0 : d(
|
3755
|
+
await (d == null ? void 0 : d(x));
|
3764
3756
|
break;
|
3765
3757
|
case "tool_call_delta":
|
3766
|
-
await (f == null ? void 0 : f(
|
3758
|
+
await (f == null ? void 0 : f(x));
|
3767
3759
|
break;
|
3768
3760
|
case "tool_call":
|
3769
|
-
await (u == null ? void 0 : u(
|
3761
|
+
await (u == null ? void 0 : u(x));
|
3770
3762
|
break;
|
3771
3763
|
case "tool_result":
|
3772
|
-
await (h == null ? void 0 : h(
|
3764
|
+
await (h == null ? void 0 : h(x));
|
3773
3765
|
break;
|
3774
3766
|
case "finish_message":
|
3775
|
-
await (y == null ? void 0 : y(
|
3767
|
+
await (y == null ? void 0 : y(x));
|
3776
3768
|
break;
|
3777
3769
|
case "finish_step":
|
3778
|
-
await (b == null ? void 0 : b(
|
3770
|
+
await (b == null ? void 0 : b(x));
|
3779
3771
|
break;
|
3780
3772
|
case "start_step":
|
3781
|
-
await (p == null ? void 0 : p(
|
3773
|
+
await (p == null ? void 0 : p(x));
|
3782
3774
|
break;
|
3783
3775
|
default: {
|
3784
|
-
const
|
3785
|
-
throw new Error(`Unknown stream part type: ${
|
3776
|
+
const S = T;
|
3777
|
+
throw new Error(`Unknown stream part type: ${S}`);
|
3786
3778
|
}
|
3787
3779
|
}
|
3788
3780
|
}
|
@@ -3799,9 +3791,9 @@ async function Lu({
|
|
3799
3791
|
var l, i;
|
3800
3792
|
const d = (s == null ? void 0 : s.role) === "assistant";
|
3801
3793
|
let f = d ? 1 + // find max step in existing tool invocations:
|
3802
|
-
((i = (l = s.toolInvocations) == null ? void 0 : l.reduce((_,
|
3803
|
-
var
|
3804
|
-
return Math.max(_, (
|
3794
|
+
((i = (l = s.toolInvocations) == null ? void 0 : l.reduce((_, E) => {
|
3795
|
+
var T;
|
3796
|
+
return Math.max(_, (T = E.step) != null ? T : 0);
|
3805
3797
|
}, 0)) != null ? i : 0) : 0;
|
3806
3798
|
const u = d ? structuredClone(s) : {
|
3807
3799
|
id: o(),
|
@@ -3811,19 +3803,19 @@ async function Lu({
|
|
3811
3803
|
parts: []
|
3812
3804
|
};
|
3813
3805
|
let h, m, y;
|
3814
|
-
function b(_,
|
3815
|
-
const
|
3816
|
-
(
|
3806
|
+
function b(_, E) {
|
3807
|
+
const T = u.parts.find(
|
3808
|
+
(x) => x.type === "tool-invocation" && x.toolInvocation.toolCallId === _
|
3817
3809
|
);
|
3818
|
-
|
3810
|
+
T != null ? T.toolInvocation = E : u.parts.push({
|
3819
3811
|
type: "tool-invocation",
|
3820
|
-
toolInvocation:
|
3812
|
+
toolInvocation: E
|
3821
3813
|
});
|
3822
3814
|
}
|
3823
3815
|
const p = [];
|
3824
3816
|
let v = d ? s == null ? void 0 : s.annotations : void 0;
|
3825
3817
|
const w = {};
|
3826
|
-
let
|
3818
|
+
let k = {
|
3827
3819
|
completionTokens: NaN,
|
3828
3820
|
promptTokens: NaN,
|
3829
3821
|
totalTokens: NaN
|
@@ -3831,7 +3823,7 @@ async function Lu({
|
|
3831
3823
|
function C() {
|
3832
3824
|
const _ = [...p];
|
3833
3825
|
v != null && v.length && (u.annotations = v);
|
3834
|
-
const
|
3826
|
+
const E = {
|
3835
3827
|
// deep copy the message to ensure that deep changes (msg attachments) are updated
|
3836
3828
|
// with SolidJS. SolidJS uses referential integration of sub-objects to detect changes.
|
3837
3829
|
...structuredClone(u),
|
@@ -3843,7 +3835,7 @@ async function Lu({
|
|
3843
3835
|
revisionId: o()
|
3844
3836
|
};
|
3845
3837
|
t({
|
3846
|
-
message:
|
3838
|
+
message: E,
|
3847
3839
|
data: _,
|
3848
3840
|
replaceLastMessage: d
|
3849
3841
|
});
|
@@ -3857,12 +3849,12 @@ async function Lu({
|
|
3857
3849
|
}, u.parts.push(h)) : h.text += _, u.content += _, C();
|
3858
3850
|
},
|
3859
3851
|
onReasoningPart(_) {
|
3860
|
-
var
|
3852
|
+
var E;
|
3861
3853
|
y == null ? (y = { type: "text", text: _ }, m != null && m.details.push(y)) : y.text += _, m == null ? (m = {
|
3862
3854
|
type: "reasoning",
|
3863
3855
|
reasoning: _,
|
3864
3856
|
details: [y]
|
3865
|
-
}, u.parts.push(m)) : m.reasoning += _, u.reasoning = ((
|
3857
|
+
}, u.parts.push(m)) : m.reasoning += _, u.reasoning = ((E = u.reasoning) != null ? E : "") + _, C();
|
3866
3858
|
},
|
3867
3859
|
onReasoningSignaturePart(_) {
|
3868
3860
|
y != null && (y.signature = _.signature);
|
@@ -3897,63 +3889,63 @@ async function Lu({
|
|
3897
3889
|
toolName: _.toolName,
|
3898
3890
|
index: u.toolInvocations.length
|
3899
3891
|
};
|
3900
|
-
const
|
3892
|
+
const E = {
|
3901
3893
|
state: "partial-call",
|
3902
3894
|
step: f,
|
3903
3895
|
toolCallId: _.toolCallId,
|
3904
3896
|
toolName: _.toolName,
|
3905
3897
|
args: void 0
|
3906
3898
|
};
|
3907
|
-
u.toolInvocations.push(
|
3899
|
+
u.toolInvocations.push(E), b(_.toolCallId, E), C();
|
3908
3900
|
},
|
3909
3901
|
onToolCallDeltaPart(_) {
|
3910
|
-
const
|
3911
|
-
|
3912
|
-
const { value:
|
3902
|
+
const E = w[_.toolCallId];
|
3903
|
+
E.text += _.argsTextDelta;
|
3904
|
+
const { value: T } = uu(E.text), x = {
|
3913
3905
|
state: "partial-call",
|
3914
|
-
step:
|
3906
|
+
step: E.step,
|
3915
3907
|
toolCallId: _.toolCallId,
|
3916
|
-
toolName:
|
3917
|
-
args:
|
3908
|
+
toolName: E.toolName,
|
3909
|
+
args: T
|
3918
3910
|
};
|
3919
|
-
u.toolInvocations[
|
3911
|
+
u.toolInvocations[E.index] = x, b(_.toolCallId, x), C();
|
3920
3912
|
},
|
3921
3913
|
async onToolCallPart(_) {
|
3922
|
-
const
|
3914
|
+
const E = {
|
3923
3915
|
state: "call",
|
3924
3916
|
step: f,
|
3925
3917
|
..._
|
3926
3918
|
};
|
3927
|
-
if (w[_.toolCallId] != null ? u.toolInvocations[w[_.toolCallId].index] =
|
3928
|
-
const
|
3929
|
-
if (
|
3930
|
-
const
|
3919
|
+
if (w[_.toolCallId] != null ? u.toolInvocations[w[_.toolCallId].index] = E : (u.toolInvocations == null && (u.toolInvocations = []), u.toolInvocations.push(E)), b(_.toolCallId, E), C(), r) {
|
3920
|
+
const T = await r({ toolCall: _ });
|
3921
|
+
if (T != null) {
|
3922
|
+
const x = {
|
3931
3923
|
state: "result",
|
3932
3924
|
step: f,
|
3933
3925
|
..._,
|
3934
|
-
result:
|
3926
|
+
result: T
|
3935
3927
|
};
|
3936
|
-
u.toolInvocations[u.toolInvocations.length - 1] =
|
3928
|
+
u.toolInvocations[u.toolInvocations.length - 1] = x, b(_.toolCallId, x), C();
|
3937
3929
|
}
|
3938
3930
|
}
|
3939
3931
|
},
|
3940
3932
|
onToolResultPart(_) {
|
3941
|
-
const
|
3942
|
-
if (
|
3933
|
+
const E = u.toolInvocations;
|
3934
|
+
if (E == null)
|
3943
3935
|
throw new Error("tool_result must be preceded by a tool_call");
|
3944
|
-
const
|
3945
|
-
(
|
3936
|
+
const T = E.findIndex(
|
3937
|
+
(S) => S.toolCallId === _.toolCallId
|
3946
3938
|
);
|
3947
|
-
if (
|
3939
|
+
if (T === -1)
|
3948
3940
|
throw new Error(
|
3949
3941
|
"tool_result must be preceded by a tool_call with the same toolCallId"
|
3950
3942
|
);
|
3951
|
-
const
|
3952
|
-
...T
|
3943
|
+
const x = {
|
3944
|
+
...E[T],
|
3953
3945
|
state: "result",
|
3954
3946
|
..._
|
3955
3947
|
};
|
3956
|
-
T
|
3948
|
+
E[T] = x, b(_.toolCallId, x), C();
|
3957
3949
|
},
|
3958
3950
|
onDataPart(_) {
|
3959
3951
|
p.push(..._), C();
|
@@ -3968,12 +3960,12 @@ async function Lu({
|
|
3968
3960
|
d || (u.id = _.messageId), u.parts.push({ type: "step-start" }), C();
|
3969
3961
|
},
|
3970
3962
|
onFinishMessagePart(_) {
|
3971
|
-
I = _.finishReason, _.usage != null && (
|
3963
|
+
I = _.finishReason, _.usage != null && (k = cu(_.usage));
|
3972
3964
|
},
|
3973
3965
|
onErrorPart(_) {
|
3974
3966
|
throw new Error(_);
|
3975
3967
|
}
|
3976
|
-
}), a == null || a({ message: u, finishReason: I, usage:
|
3968
|
+
}), a == null || a({ message: u, finishReason: I, usage: k });
|
3977
3969
|
}
|
3978
3970
|
async function Mu({
|
3979
3971
|
stream: e,
|
@@ -4073,8 +4065,8 @@ async function Pu({
|
|
4073
4065
|
update: i,
|
4074
4066
|
lastMessage: m,
|
4075
4067
|
onToolCall: f,
|
4076
|
-
onFinish({ message: v, finishReason: w, usage:
|
4077
|
-
d && v != null && d(v, { usage:
|
4068
|
+
onFinish({ message: v, finishReason: w, usage: k }) {
|
4069
|
+
d && v != null && d(v, { usage: k, finishReason: w });
|
4078
4070
|
},
|
4079
4071
|
generateId: u
|
4080
4072
|
});
|
@@ -4350,15 +4342,15 @@ function Ma(e, t) {
|
|
4350
4342
|
}
|
4351
4343
|
return e !== e && t !== t;
|
4352
4344
|
}
|
4353
|
-
const
|
4345
|
+
const Ye = /* @__PURE__ */ new WeakMap(), rt = () => {
|
4354
4346
|
}, be = (
|
4355
4347
|
/*#__NOINLINE__*/
|
4356
4348
|
rt()
|
4357
|
-
), Da = Object, Y = (e) => e === be,
|
4349
|
+
), Da = Object, Y = (e) => e === be, Fe = (e) => typeof e == "function", nt = (e, t) => ({
|
4358
4350
|
...e,
|
4359
4351
|
...t
|
4360
|
-
}), ei = (e) =>
|
4361
|
-
const r =
|
4352
|
+
}), ei = (e) => Fe(e.then), Xr = {}, mr = {}, co = "undefined", sr = typeof window != co, Ba = typeof document != co, ju = sr && "Deno" in window, Wu = () => sr && typeof window.requestAnimationFrame != co, ti = (e, t) => {
|
4353
|
+
const r = Ye.get(e);
|
4362
4354
|
return [
|
4363
4355
|
// Getter
|
4364
4356
|
() => !Y(t) && e.get(t) || Xr,
|
@@ -4428,7 +4420,7 @@ const Fa = (e) => {
|
|
4428
4420
|
n = r ? e.toJSON() : t == "symbol" ? e.toString() : t == "string" ? JSON.stringify(e) : "" + e;
|
4429
4421
|
return n;
|
4430
4422
|
}, uo = (e) => {
|
4431
|
-
if (
|
4423
|
+
if (Fe(e))
|
4432
4424
|
try {
|
4433
4425
|
e = e();
|
4434
4426
|
} catch {
|
@@ -4453,7 +4445,7 @@ async function ri(...e) {
|
|
4453
4445
|
const l = n.rollbackOnError;
|
4454
4446
|
let i = n.optimisticData;
|
4455
4447
|
const d = (h) => typeof l == "function" ? l(h) : l !== !1, f = n.throwOnError;
|
4456
|
-
if (
|
4448
|
+
if (Fe(r)) {
|
4457
4449
|
const h = r, m = [], y = t.keys();
|
4458
4450
|
for (const b of y)
|
4459
4451
|
// Skip the special useSWRInfinite and useSWRSubscription keys.
|
@@ -4464,43 +4456,43 @@ async function ri(...e) {
|
|
4464
4456
|
async function u(h) {
|
4465
4457
|
const [m] = uo(h);
|
4466
4458
|
if (!m) return;
|
4467
|
-
const [y, b] = ti(t, m), [p, v, w,
|
4468
|
-
const
|
4469
|
-
return (
|
4459
|
+
const [y, b] = ti(t, m), [p, v, w, k] = Ye.get(t), I = () => {
|
4460
|
+
const $ = p[m];
|
4461
|
+
return (Fe(n.revalidate) ? n.revalidate(y().data, h) : n.revalidate !== !1) && (delete w[m], delete k[m], $ && $[0]) ? $[0](Zs).then(() => y().data) : y().data;
|
4470
4462
|
};
|
4471
4463
|
if (e.length < 3)
|
4472
4464
|
return I();
|
4473
4465
|
let C = a, _;
|
4474
|
-
const
|
4466
|
+
const E = Ua();
|
4475
4467
|
v[m] = [
|
4476
|
-
|
4468
|
+
E,
|
4477
4469
|
0
|
4478
4470
|
];
|
4479
|
-
const
|
4480
|
-
if (
|
4471
|
+
const T = !Y(i), x = y(), S = x.data, R = x._c, O = Y(R) ? S : R;
|
4472
|
+
if (T && (i = Fe(i) ? i(O, S) : i, b({
|
4481
4473
|
data: i,
|
4482
|
-
_c:
|
4483
|
-
})),
|
4474
|
+
_c: O
|
4475
|
+
})), Fe(C))
|
4484
4476
|
try {
|
4485
|
-
C = C(
|
4486
|
-
} catch (
|
4487
|
-
_ =
|
4477
|
+
C = C(O);
|
4478
|
+
} catch ($) {
|
4479
|
+
_ = $;
|
4488
4480
|
}
|
4489
4481
|
if (C && ei(C))
|
4490
|
-
if (C = await C.catch((
|
4491
|
-
_ =
|
4492
|
-
}),
|
4482
|
+
if (C = await C.catch(($) => {
|
4483
|
+
_ = $;
|
4484
|
+
}), E !== v[m][0]) {
|
4493
4485
|
if (_) throw _;
|
4494
4486
|
return C;
|
4495
|
-
} else _ &&
|
4496
|
-
data:
|
4487
|
+
} else _ && T && d(_) && (s = !0, b({
|
4488
|
+
data: O,
|
4497
4489
|
_c: be
|
4498
4490
|
}));
|
4499
4491
|
if (s && !_)
|
4500
|
-
if (
|
4501
|
-
const
|
4492
|
+
if (Fe(s)) {
|
4493
|
+
const $ = s(C, O);
|
4502
4494
|
b({
|
4503
|
-
data:
|
4495
|
+
data: $,
|
4504
4496
|
error: be,
|
4505
4497
|
_c: be
|
4506
4498
|
});
|
@@ -4525,7 +4517,7 @@ const dn = (e, t) => {
|
|
4525
4517
|
for (const r in e)
|
4526
4518
|
e[r][0] && e[r][0](t);
|
4527
4519
|
}, rf = (e, t) => {
|
4528
|
-
if (!
|
4520
|
+
if (!Ye.has(e)) {
|
4529
4521
|
const r = nt(Xu, t), a = {}, o = ri.bind(be, e);
|
4530
4522
|
let n = rt;
|
4531
4523
|
const s = {}, l = (f, u) => {
|
@@ -4538,7 +4530,7 @@ const dn = (e, t) => {
|
|
4538
4530
|
for (const y of m)
|
4539
4531
|
y(u, h);
|
4540
4532
|
}, d = () => {
|
4541
|
-
if (!
|
4533
|
+
if (!Ye.has(e) && (Ye.set(e, [
|
4542
4534
|
a,
|
4543
4535
|
{},
|
4544
4536
|
{},
|
@@ -4549,7 +4541,7 @@ const dn = (e, t) => {
|
|
4549
4541
|
]), !Qt)) {
|
4550
4542
|
const f = r.initFocus(setTimeout.bind(be, dn.bind(be, a, Qs))), u = r.initReconnect(setTimeout.bind(be, dn.bind(be, a, Xs)));
|
4551
4543
|
n = () => {
|
4552
|
-
f && f(), u && u(),
|
4544
|
+
f && f(), u && u(), Ye.delete(e);
|
4553
4545
|
};
|
4554
4546
|
}
|
4555
4547
|
};
|
@@ -4562,7 +4554,7 @@ const dn = (e, t) => {
|
|
4562
4554
|
}
|
4563
4555
|
return [
|
4564
4556
|
e,
|
4565
|
-
|
4557
|
+
Ye.get(e)[4]
|
4566
4558
|
];
|
4567
4559
|
}, af = (e, t, r, a, o) => {
|
4568
4560
|
const n = r.errorRetryCount, s = o.retryCount, l = ~~((Math.random() + 0.5) * (1 << (s < 8 ? s : 8))) * r.errorRetryInterval;
|
@@ -4603,7 +4595,7 @@ const dn = (e, t) => {
|
|
4603
4595
|
return r;
|
4604
4596
|
}, cf = es({}), df = "$inf$", oi = sr && window.__SWR_DEVTOOLS_USE__, uf = oi ? window.__SWR_DEVTOOLS_USE__ : [], ff = () => {
|
4605
4597
|
oi && (window.__SWR_DEVTOOLS_REACT__ = U);
|
4606
|
-
}, hf = (e) =>
|
4598
|
+
}, hf = (e) => Fe(e[1]) ? [
|
4607
4599
|
e[0],
|
4608
4600
|
e[1],
|
4609
4601
|
e[2] || {}
|
@@ -4612,7 +4604,7 @@ const dn = (e, t) => {
|
|
4612
4604
|
null,
|
4613
4605
|
(e[1] === null ? e[2] : e[1]) || {}
|
4614
4606
|
], mf = () => nt(sf, ee(cf)), pf = (e) => (t, r, a) => e(t, r && ((...n) => {
|
4615
|
-
const [s] = uo(t), [, , , l] =
|
4607
|
+
const [s] = uo(t), [, , , l] = Ye.get(ai);
|
4616
4608
|
if (s.startsWith(df))
|
4617
4609
|
return r(...n);
|
4618
4610
|
const i = l[s];
|
@@ -4654,30 +4646,30 @@ const ra = U.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4654
4646
|
}), aa = {
|
4655
4647
|
dedupe: !0
|
4656
4648
|
}, vf = (e, t, r) => {
|
4657
|
-
const { cache: a, compare: o, suspense: n, fallbackData: s, revalidateOnMount: l, revalidateIfStale: i, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: u, keepPreviousData: h } = r, [m, y, b, p] =
|
4649
|
+
const { cache: a, compare: o, suspense: n, fallbackData: s, revalidateOnMount: l, revalidateIfStale: i, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: u, keepPreviousData: h } = r, [m, y, b, p] = Ye.get(a), [v, w] = uo(e), k = M(!1), I = M(!1), C = M(v), _ = M(t), E = M(r), T = () => E.current, x = () => T().isVisible() && T().isOnline(), [S, R, O, $] = ti(a, v), A = M({}).current, D = Y(s) ? Y(r.fallback) ? be : r.fallback[v] : s, B = (P, V) => {
|
4658
4650
|
for (const Z in A) {
|
4659
4651
|
const K = Z;
|
4660
4652
|
if (K === "data") {
|
4661
|
-
if (!o(P[K], V[K]) && (!Y(P[K]) || !o(
|
4653
|
+
if (!o(P[K], V[K]) && (!Y(P[K]) || !o(je, V[K])))
|
4662
4654
|
return !1;
|
4663
4655
|
} else if (V[K] !== P[K])
|
4664
4656
|
return !1;
|
4665
4657
|
}
|
4666
4658
|
return !0;
|
4667
4659
|
}, W = Ie(() => {
|
4668
|
-
const P = !v || !t ? !1 : Y(l) ?
|
4660
|
+
const P = !v || !t ? !1 : Y(l) ? T().isPaused() || n ? !1 : i !== !1 : l, V = (ue) => {
|
4669
4661
|
const Oe = nt(ue);
|
4670
4662
|
return delete Oe._k, P ? {
|
4671
4663
|
isValidating: !0,
|
4672
4664
|
isLoading: !0,
|
4673
4665
|
...Oe
|
4674
4666
|
} : Oe;
|
4675
|
-
}, Z =
|
4676
|
-
let
|
4667
|
+
}, Z = S(), K = $(), le = V(Z), pe = Z === K ? le : V(K);
|
4668
|
+
let ae = le;
|
4677
4669
|
return [
|
4678
4670
|
() => {
|
4679
|
-
const ue = V(
|
4680
|
-
return B(ue,
|
4671
|
+
const ue = V(S());
|
4672
|
+
return B(ue, ae) ? (ae.data = ue.data, ae.isLoading = ue.isLoading, ae.isValidating = ue.isValidating, ae.error = ue.error, ae) : (ae = ue, ue);
|
4681
4673
|
},
|
4682
4674
|
() => pe
|
4683
4675
|
];
|
@@ -4685,7 +4677,7 @@ const ra = U.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4685
4677
|
a,
|
4686
4678
|
v
|
4687
4679
|
]), G = Gu.useSyncExternalStore(q(
|
4688
|
-
(P) =>
|
4680
|
+
(P) => O(v, (V, Z) => {
|
4689
4681
|
B(Z, V) || P();
|
4690
4682
|
}),
|
4691
4683
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
@@ -4693,13 +4685,13 @@ const ra = U.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4693
4685
|
a,
|
4694
4686
|
v
|
4695
4687
|
]
|
4696
|
-
), W[0], W[1]), J = !
|
4688
|
+
), W[0], W[1]), J = !k.current, me = m[v] && m[v].length > 0, Be = G.data, Ce = Y(Be) ? D && ei(D) ? ra(D) : D : Be, Xe = G.error, lt = M(Ce), je = h ? Y(Be) ? Y(lt.current) ? Ce : lt.current : Be : Ce, Pe = me && !Y(Xe) ? !1 : J && !Y(l) ? l : T().isPaused() ? !1 : n ? Y(Ce) ? !1 : i : Y(Ce) || i, _e = !!(v && t && J && Pe), Se = Y(G.isValidating) ? _e : G.isValidating, Ut = Y(G.isLoading) ? _e : G.isLoading, We = q(
|
4697
4689
|
async (P) => {
|
4698
4690
|
const V = _.current;
|
4699
|
-
if (!v || !V || I.current ||
|
4691
|
+
if (!v || !V || I.current || T().isPaused())
|
4700
4692
|
return !1;
|
4701
4693
|
let Z, K, le = !0;
|
4702
|
-
const pe = P || {},
|
4694
|
+
const pe = P || {}, ae = !b[v] || !pe.dedupe, ue = () => ln ? !I.current && v === C.current && k.current : v === C.current, Oe = {
|
4703
4695
|
isValidating: !1,
|
4704
4696
|
isLoading: !1
|
4705
4697
|
}, ur = () => {
|
@@ -4710,28 +4702,28 @@ const ra = U.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4710
4702
|
}, kt = {
|
4711
4703
|
isValidating: !0
|
4712
4704
|
};
|
4713
|
-
Y(
|
4705
|
+
Y(S().data) && (kt.isLoading = !0);
|
4714
4706
|
try {
|
4715
|
-
if (
|
4716
|
-
le && ue() &&
|
4707
|
+
if (ae && (R(kt), r.loadingTimeout && Y(S().data) && setTimeout(() => {
|
4708
|
+
le && ue() && T().onLoadingSlow(v, r);
|
4717
4709
|
}, r.loadingTimeout), b[v] = [
|
4718
4710
|
V(w),
|
4719
4711
|
Ua()
|
4720
|
-
]), [Z, K] = b[v], Z = await Z,
|
4721
|
-
return
|
4712
|
+
]), [Z, K] = b[v], Z = await Z, ae && setTimeout(Ht, r.dedupingInterval), !b[v] || b[v][1] !== K)
|
4713
|
+
return ae && ue() && T().onDiscarded(v), !1;
|
4722
4714
|
Oe.error = be;
|
4723
4715
|
const de = y[v];
|
4724
4716
|
if (!Y(de) && // case 1
|
4725
4717
|
(K <= de[0] || // case 2
|
4726
4718
|
K <= de[1] || // case 3
|
4727
4719
|
de[1] === 0))
|
4728
|
-
return ur(),
|
4729
|
-
const we =
|
4730
|
-
Oe.data = o(we, Z) ? we : Z,
|
4720
|
+
return ur(), ae && ue() && T().onDiscarded(v), !1;
|
4721
|
+
const we = S().data;
|
4722
|
+
Oe.data = o(we, Z) ? we : Z, ae && ue() && T().onSuccess(Z, v, r);
|
4731
4723
|
} catch (de) {
|
4732
4724
|
Ht();
|
4733
|
-
const we =
|
4734
|
-
we.isPaused() || (Oe.error = de,
|
4725
|
+
const we = T(), { shouldRetryOnError: xt } = we;
|
4726
|
+
we.isPaused() || (Oe.error = de, ae && ue() && (we.onError(de, v, we), (xt === !0 || Fe(xt) && xt(de)) && (!T().revalidateOnFocus || !T().revalidateOnReconnect || x()) && we.onErrorRetry(de, v, we, (fr) => {
|
4735
4727
|
const Tt = m[v];
|
4736
4728
|
Tt && Tt[0] && Tt[0](nn, fr);
|
4737
4729
|
}, {
|
@@ -4763,25 +4755,25 @@ const ra = U.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4763
4755
|
[]
|
4764
4756
|
);
|
4765
4757
|
if (Zr(() => {
|
4766
|
-
_.current = t,
|
4758
|
+
_.current = t, E.current = r, Y(Be) || (lt.current = Be);
|
4767
4759
|
}), Zr(() => {
|
4768
4760
|
if (!v) return;
|
4769
|
-
const P =
|
4761
|
+
const P = We.bind(be, aa);
|
4770
4762
|
let V = 0;
|
4771
4763
|
const K = bf(v, m, (le, pe = {}) => {
|
4772
4764
|
if (le == Qs) {
|
4773
|
-
const
|
4774
|
-
|
4765
|
+
const ae = Date.now();
|
4766
|
+
T().revalidateOnFocus && ae > V && x() && (V = ae + T().focusThrottleInterval, P());
|
4775
4767
|
} else if (le == Xs)
|
4776
|
-
|
4768
|
+
T().revalidateOnReconnect && x() && P();
|
4777
4769
|
else {
|
4778
4770
|
if (le == Zs)
|
4779
|
-
return
|
4771
|
+
return We();
|
4780
4772
|
if (le == nn)
|
4781
|
-
return
|
4773
|
+
return We(pe);
|
4782
4774
|
}
|
4783
4775
|
});
|
4784
|
-
return I.current = !1, C.current = v,
|
4776
|
+
return I.current = !1, C.current = v, k.current = !0, R({
|
4785
4777
|
_k: w
|
4786
4778
|
}), Pe && (Y(Ce) || Qt ? P() : Zu(P)), () => {
|
4787
4779
|
I.current = !0, K();
|
@@ -4791,11 +4783,11 @@ const ra = U.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4791
4783
|
]), Zr(() => {
|
4792
4784
|
let P;
|
4793
4785
|
function V() {
|
4794
|
-
const K =
|
4786
|
+
const K = Fe(d) ? d(S().data) : d;
|
4795
4787
|
K && P !== -1 && (P = setTimeout(Z, K));
|
4796
4788
|
}
|
4797
4789
|
function Z() {
|
4798
|
-
!
|
4790
|
+
!S().error && (f || T().isVisible()) && (u || T().isOnline()) ? We(aa).then(V) : V();
|
4799
4791
|
}
|
4800
4792
|
return V(), () => {
|
4801
4793
|
P && (clearTimeout(P), P = -1);
|
@@ -4805,28 +4797,28 @@ const ra = U.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4805
4797
|
f,
|
4806
4798
|
u,
|
4807
4799
|
v
|
4808
|
-
]), pl(
|
4800
|
+
]), pl(je), n && Y(Ce) && v) {
|
4809
4801
|
if (!ln && Qt)
|
4810
4802
|
throw new Error("Fallback data is required when using Suspense in SSR.");
|
4811
|
-
_.current = t,
|
4803
|
+
_.current = t, E.current = r, I.current = !1;
|
4812
4804
|
const P = p[v];
|
4813
4805
|
if (!Y(P)) {
|
4814
4806
|
const V = H(P);
|
4815
4807
|
ra(V);
|
4816
4808
|
}
|
4817
|
-
if (Y(
|
4818
|
-
const V =
|
4819
|
-
Y(
|
4809
|
+
if (Y(Xe)) {
|
4810
|
+
const V = We(aa);
|
4811
|
+
Y(je) || (V.status = "fulfilled", V.value = !0), ra(V);
|
4820
4812
|
} else
|
4821
|
-
throw
|
4813
|
+
throw Xe;
|
4822
4814
|
}
|
4823
4815
|
return {
|
4824
4816
|
mutate: H,
|
4825
4817
|
get data() {
|
4826
|
-
return A.data = !0,
|
4818
|
+
return A.data = !0, je;
|
4827
4819
|
},
|
4828
4820
|
get error() {
|
4829
|
-
return A.error = !0,
|
4821
|
+
return A.error = !0, Xe;
|
4830
4822
|
},
|
4831
4823
|
get isValidating() {
|
4832
4824
|
return A.isValidating = !0, Se;
|
@@ -4886,22 +4878,22 @@ function Tf({
|
|
4886
4878
|
keepLastMessageOnError: v = !0,
|
4887
4879
|
experimental_throttle: w
|
4888
4880
|
} = {}) {
|
4889
|
-
const [
|
4881
|
+
const [k] = F(b), I = t ?? k, C = typeof e == "string" ? [e, I] : I, _ = xf(r ?? []), E = Ie(
|
4890
4882
|
() => Jr(_),
|
4891
4883
|
[_]
|
4892
|
-
), { data:
|
4884
|
+
), { data: T, mutate: x } = gr(
|
4893
4885
|
[C, "messages"],
|
4894
4886
|
null,
|
4895
|
-
{ fallbackData:
|
4896
|
-
),
|
4887
|
+
{ fallbackData: E }
|
4888
|
+
), S = M(T || []);
|
4897
4889
|
z(() => {
|
4898
|
-
|
4899
|
-
}, [
|
4900
|
-
const { data: R, mutate:
|
4890
|
+
S.current = T || [];
|
4891
|
+
}, [T]);
|
4892
|
+
const { data: R, mutate: O } = gr([C, "streamData"], null), $ = M(R);
|
4901
4893
|
z(() => {
|
4902
|
-
|
4894
|
+
$.current = R;
|
4903
4895
|
}, [R]);
|
4904
|
-
const { data: A = "ready", mutate: D } = gr([C, "status"], null), { data: B = void 0, mutate: W } = gr([C, "error"], null), G =
|
4896
|
+
const { data: A = "ready", mutate: D } = gr([C, "status"], null), { data: B = void 0, mutate: W } = gr([C, "error"], null), G = M(null), J = M({
|
4905
4897
|
credentials: h,
|
4906
4898
|
headers: m,
|
4907
4899
|
body: y
|
@@ -4923,11 +4915,11 @@ function Tf({
|
|
4923
4915
|
try {
|
4924
4916
|
const pe = new AbortController();
|
4925
4917
|
G.current = pe;
|
4926
|
-
const
|
4927
|
-
|
4918
|
+
const ae = fn(x, w), ue = fn(
|
4919
|
+
O,
|
4928
4920
|
w
|
4929
|
-
), Oe =
|
4930
|
-
|
4921
|
+
), Oe = S.current;
|
4922
|
+
ae(V, !1);
|
4931
4923
|
const ur = o ? V : V.map(
|
4932
4924
|
({
|
4933
4925
|
role: kt,
|
@@ -4948,7 +4940,7 @@ function Tf({
|
|
4948
4940
|
...Tt !== void 0 && { toolInvocations: Tt },
|
4949
4941
|
...Co !== void 0 && { parts: Co }
|
4950
4942
|
})
|
4951
|
-
), Ht =
|
4943
|
+
), Ht = $.current;
|
4952
4944
|
await Pu({
|
4953
4945
|
api: e,
|
4954
4946
|
body: (P = s == null ? void 0 : s({
|
@@ -4971,11 +4963,11 @@ function Tf({
|
|
4971
4963
|
},
|
4972
4964
|
abortController: () => G.current,
|
4973
4965
|
restoreMessagesOnFailure() {
|
4974
|
-
v ||
|
4966
|
+
v || ae(Oe, !1);
|
4975
4967
|
},
|
4976
4968
|
onResponse: d,
|
4977
4969
|
onUpdate({ message: kt, data: de, replaceLastMessage: we }) {
|
4978
|
-
D("streaming"),
|
4970
|
+
D("streaming"), ae(
|
4979
4971
|
[
|
4980
4972
|
...we ? V.slice(0, V.length - 1) : V,
|
4981
4973
|
kt
|
@@ -4997,7 +4989,7 @@ function Tf({
|
|
4997
4989
|
return G.current = null, D("ready"), null;
|
4998
4990
|
u && pe instanceof Error && u(pe), W(pe), D("error");
|
4999
4991
|
}
|
5000
|
-
const le =
|
4992
|
+
const le = S.current;
|
5001
4993
|
zu({
|
5002
4994
|
originalMaxToolInvocationStep: K,
|
5003
4995
|
originalMessageCount: Z,
|
@@ -5006,7 +4998,7 @@ function Tf({
|
|
5006
4998
|
}) && await me({ messages: le });
|
5007
4999
|
},
|
5008
5000
|
[
|
5009
|
-
|
5001
|
+
x,
|
5010
5002
|
D,
|
5011
5003
|
e,
|
5012
5004
|
J,
|
@@ -5014,14 +5006,14 @@ function Tf({
|
|
5014
5006
|
f,
|
5015
5007
|
u,
|
5016
5008
|
W,
|
5009
|
+
O,
|
5017
5010
|
$,
|
5018
|
-
M,
|
5019
5011
|
i,
|
5020
5012
|
o,
|
5021
5013
|
s,
|
5022
5014
|
n,
|
5023
5015
|
l,
|
5024
|
-
|
5016
|
+
S,
|
5025
5017
|
G,
|
5026
5018
|
b,
|
5027
5019
|
p,
|
@@ -5039,19 +5031,19 @@ function Tf({
|
|
5039
5031
|
var K, le;
|
5040
5032
|
const pe = await tn(
|
5041
5033
|
Z
|
5042
|
-
),
|
5034
|
+
), ae = S.current.concat({
|
5043
5035
|
...H,
|
5044
5036
|
id: (K = H.id) != null ? K : b(),
|
5045
5037
|
createdAt: (le = H.createdAt) != null ? le : /* @__PURE__ */ new Date(),
|
5046
5038
|
experimental_attachments: pe.length > 0 ? pe : void 0,
|
5047
5039
|
parts: Js(H)
|
5048
5040
|
});
|
5049
|
-
return me({ messages:
|
5041
|
+
return me({ messages: ae, headers: P, body: V, data: ie });
|
5050
5042
|
},
|
5051
5043
|
[me, b]
|
5052
5044
|
), Ce = q(
|
5053
5045
|
async ({ data: H, headers: ie, body: P } = {}) => {
|
5054
|
-
const V =
|
5046
|
+
const V = S.current;
|
5055
5047
|
if (V.length === 0)
|
5056
5048
|
return null;
|
5057
5049
|
const Z = V[V.length - 1];
|
@@ -5063,20 +5055,20 @@ function Tf({
|
|
5063
5055
|
});
|
5064
5056
|
},
|
5065
5057
|
[me]
|
5066
|
-
),
|
5058
|
+
), Xe = q(() => {
|
5067
5059
|
G.current && (G.current.abort(), G.current = null);
|
5068
5060
|
}, []), lt = q(
|
5069
5061
|
(H) => {
|
5070
|
-
typeof H == "function" && (H = H(
|
5062
|
+
typeof H == "function" && (H = H(S.current));
|
5071
5063
|
const ie = Jr(H);
|
5072
|
-
|
5064
|
+
x(ie, !1), S.current = ie;
|
5073
5065
|
},
|
5074
|
-
[
|
5075
|
-
),
|
5066
|
+
[x]
|
5067
|
+
), je = q(
|
5076
5068
|
(H) => {
|
5077
|
-
typeof H == "function" && (H = H(
|
5069
|
+
typeof H == "function" && (H = H($.current)), O(H, !1), $.current = H;
|
5078
5070
|
},
|
5079
|
-
[
|
5071
|
+
[O]
|
5080
5072
|
), [Pe, _e] = F(a), Se = q(
|
5081
5073
|
async (H, ie = {}, P) => {
|
5082
5074
|
var V;
|
@@ -5089,7 +5081,7 @@ function Tf({
|
|
5089
5081
|
const Z = await tn(
|
5090
5082
|
ie.experimental_attachments
|
5091
5083
|
), le = {
|
5092
|
-
messages:
|
5084
|
+
messages: S.current.concat({
|
5093
5085
|
id: b(),
|
5094
5086
|
createdAt: /* @__PURE__ */ new Date(),
|
5095
5087
|
role: "user",
|
@@ -5106,14 +5098,14 @@ function Tf({
|
|
5106
5098
|
[Pe, b, me]
|
5107
5099
|
), Ut = (H) => {
|
5108
5100
|
_e(H.target.value);
|
5109
|
-
},
|
5101
|
+
}, We = q(
|
5110
5102
|
({ toolCallId: H, result: ie }) => {
|
5111
|
-
const P =
|
5103
|
+
const P = S.current;
|
5112
5104
|
if (Vu({
|
5113
5105
|
messages: P,
|
5114
5106
|
toolCallId: H,
|
5115
5107
|
toolResult: ie
|
5116
|
-
}),
|
5108
|
+
}), x(
|
5117
5109
|
[
|
5118
5110
|
...P.slice(0, P.length - 1),
|
5119
5111
|
{ ...P[P.length - 1] }
|
@@ -5124,25 +5116,25 @@ function Tf({
|
|
5124
5116
|
const V = P[P.length - 1];
|
5125
5117
|
Ks(V) && me({ messages: P });
|
5126
5118
|
},
|
5127
|
-
[
|
5119
|
+
[x, A, me]
|
5128
5120
|
);
|
5129
5121
|
return {
|
5130
|
-
messages:
|
5122
|
+
messages: T ?? [],
|
5131
5123
|
id: I,
|
5132
5124
|
setMessages: lt,
|
5133
5125
|
data: R,
|
5134
|
-
setData:
|
5126
|
+
setData: je,
|
5135
5127
|
error: B,
|
5136
5128
|
append: Be,
|
5137
5129
|
reload: Ce,
|
5138
|
-
stop:
|
5130
|
+
stop: Xe,
|
5139
5131
|
input: Pe,
|
5140
5132
|
setInput: _e,
|
5141
5133
|
handleInputChange: Ut,
|
5142
5134
|
handleSubmit: Se,
|
5143
5135
|
isLoading: A === "submitted" || A === "streaming",
|
5144
5136
|
status: A,
|
5145
|
-
addToolResult:
|
5137
|
+
addToolResult: We
|
5146
5138
|
};
|
5147
5139
|
}
|
5148
5140
|
const hn = () => ({
|
@@ -5155,7 +5147,7 @@ function wt(e = {}) {
|
|
5155
5147
|
const t = ee(ni);
|
5156
5148
|
if (!t)
|
5157
5149
|
throw new Error("useAiChat must be used within a AiChatProvider");
|
5158
|
-
const r =
|
5150
|
+
const r = M(e);
|
5159
5151
|
return z(() => {
|
5160
5152
|
r.current = e;
|
5161
5153
|
}, [e]), z(() => {
|
@@ -5169,7 +5161,7 @@ function Ef({
|
|
5169
5161
|
children: e,
|
5170
5162
|
value: t
|
5171
5163
|
}) {
|
5172
|
-
const r =
|
5164
|
+
const r = M(hn());
|
5173
5165
|
z(() => {
|
5174
5166
|
r.current = hn();
|
5175
5167
|
}, [t]);
|
@@ -5261,7 +5253,7 @@ const If = "z-20", Cf = "z-10", Sf = "user", mn = "assistant", Pr = "OpenAI", fo
|
|
5261
5253
|
},
|
5262
5254
|
dispatch: () => {
|
5263
5255
|
}
|
5264
|
-
}), Bf = "av-tooltip", Pf = "av-tooltip-arrow", Xt = Math.min, It = Math.max, Nr = Math.round,
|
5256
|
+
}), Bf = "av-tooltip", Pf = "av-tooltip-arrow", Xt = Math.min, It = Math.max, Nr = Math.round, He = (e) => ({
|
5265
5257
|
x: e,
|
5266
5258
|
y: e
|
5267
5259
|
}), zf = {
|
@@ -5435,7 +5427,7 @@ const Wf = async (e, t, r) => {
|
|
5435
5427
|
fn: v
|
5436
5428
|
} = l[b], {
|
5437
5429
|
x: w,
|
5438
|
-
y:
|
5430
|
+
y: k,
|
5439
5431
|
data: I,
|
5440
5432
|
reset: C
|
5441
5433
|
} = await v({
|
@@ -5452,7 +5444,7 @@ const Wf = async (e, t, r) => {
|
|
5452
5444
|
floating: t
|
5453
5445
|
}
|
5454
5446
|
});
|
5455
|
-
f = w ?? f, u =
|
5447
|
+
f = w ?? f, u = k ?? u, m = {
|
5456
5448
|
...m,
|
5457
5449
|
[p]: {
|
5458
5450
|
...m[p],
|
@@ -5501,7 +5493,7 @@ async function li(e, t) {
|
|
5501
5493
|
y: o,
|
5502
5494
|
width: s.floating.width,
|
5503
5495
|
height: s.floating.height
|
5504
|
-
} : s.reference, w = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(l.floating)),
|
5496
|
+
} : s.reference, w = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(l.floating)), k = await (n.isElement == null ? void 0 : n.isElement(w)) ? await (n.getScale == null ? void 0 : n.getScale(w)) || {
|
5505
5497
|
x: 1,
|
5506
5498
|
y: 1
|
5507
5499
|
} : {
|
@@ -5514,10 +5506,10 @@ async function li(e, t) {
|
|
5514
5506
|
strategy: i
|
5515
5507
|
}) : v);
|
5516
5508
|
return {
|
5517
|
-
top: (p.top - I.top + y.top) /
|
5518
|
-
bottom: (I.bottom - p.bottom + y.bottom) /
|
5519
|
-
left: (p.left - I.left + y.left) /
|
5520
|
-
right: (I.right - p.right + y.right) /
|
5509
|
+
top: (p.top - I.top + y.top) / k.y,
|
5510
|
+
bottom: (I.bottom - p.bottom + y.bottom) / k.y,
|
5511
|
+
left: (p.left - I.left + y.left) / k.x,
|
5512
|
+
right: (I.right - p.right + y.right) / k.x
|
5521
5513
|
};
|
5522
5514
|
}
|
5523
5515
|
const qf = (e) => ({
|
@@ -5541,10 +5533,10 @@ const qf = (e) => ({
|
|
5541
5533
|
const u = ii(f), h = {
|
5542
5534
|
x: r,
|
5543
5535
|
y: a
|
5544
|
-
}, m = yo(o), y = go(m), b = await s.getDimensions(d), p = m === "y", v = p ? "top" : "left", w = p ? "bottom" : "right",
|
5545
|
-
let
|
5546
|
-
(!
|
5547
|
-
const
|
5536
|
+
}, m = yo(o), y = go(m), b = await s.getDimensions(d), p = m === "y", v = p ? "top" : "left", w = p ? "bottom" : "right", k = p ? "clientHeight" : "clientWidth", I = n.reference[y] + n.reference[m] - h[m] - n.floating[y], C = h[m] - n.reference[m], _ = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
|
5537
|
+
let E = _ ? _[k] : 0;
|
5538
|
+
(!E || !await (s.isElement == null ? void 0 : s.isElement(_))) && (E = l.floating[k] || n.floating[y]);
|
5539
|
+
const T = I / 2 - C / 2, x = E / 2 - b[y] / 2 - 1, S = Xt(u[v], x), R = Xt(u[w], x), O = S, $ = E - b[y] - R, A = E / 2 - b[y] / 2 + T, D = Ha(O, A, $), B = !i.arrow && cr(o) != null && A !== D && n.reference[y] / 2 - (A < O ? S : R) - b[y] / 2 < 0, W = B ? A < O ? A - O : A - $ : 0;
|
5548
5540
|
return {
|
5549
5541
|
[m]: h[m] + W,
|
5550
5542
|
data: {
|
@@ -5581,36 +5573,36 @@ const qf = (e) => ({
|
|
5581
5573
|
} = lr(e, t);
|
5582
5574
|
if ((r = n.arrow) != null && r.alignmentOffset)
|
5583
5575
|
return {};
|
5584
|
-
const v = vt(o), w = Lt(l),
|
5576
|
+
const v = vt(o), w = Lt(l), k = vt(l) === l, I = await (i.isRTL == null ? void 0 : i.isRTL(d.floating)), C = h || (k || !b ? [Rr(l)] : Uf(l)), _ = y !== "none";
|
5585
5577
|
!h && _ && C.push(...Gf(l, b, y, I));
|
5586
|
-
const
|
5587
|
-
let
|
5588
|
-
if (f &&
|
5578
|
+
const E = [l, ...C], T = await li(t, p), x = [];
|
5579
|
+
let S = ((a = n.flip) == null ? void 0 : a.overflows) || [];
|
5580
|
+
if (f && x.push(T[v]), u) {
|
5589
5581
|
const A = Ff(o, s, I);
|
5590
|
-
|
5582
|
+
x.push(T[A[0]], T[A[1]]);
|
5591
5583
|
}
|
5592
|
-
if (
|
5584
|
+
if (S = [...S, {
|
5593
5585
|
placement: o,
|
5594
|
-
overflows:
|
5595
|
-
}], !
|
5596
|
-
var R,
|
5597
|
-
const A = (((R = n.flip) == null ? void 0 : R.index) || 0) + 1, D =
|
5586
|
+
overflows: x
|
5587
|
+
}], !x.every((A) => A <= 0)) {
|
5588
|
+
var R, O;
|
5589
|
+
const A = (((R = n.flip) == null ? void 0 : R.index) || 0) + 1, D = E[A];
|
5598
5590
|
if (D)
|
5599
5591
|
return {
|
5600
5592
|
data: {
|
5601
5593
|
index: A,
|
5602
|
-
overflows:
|
5594
|
+
overflows: S
|
5603
5595
|
},
|
5604
5596
|
reset: {
|
5605
5597
|
placement: D
|
5606
5598
|
}
|
5607
5599
|
};
|
5608
|
-
let B = (
|
5600
|
+
let B = (O = S.filter((W) => W.overflows[0] <= 0).sort((W, G) => W.overflows[1] - G.overflows[1])[0]) == null ? void 0 : O.placement;
|
5609
5601
|
if (!B)
|
5610
5602
|
switch (m) {
|
5611
5603
|
case "bestFit": {
|
5612
|
-
var
|
5613
|
-
const W = (
|
5604
|
+
var $;
|
5605
|
+
const W = ($ = S.filter((G) => {
|
5614
5606
|
if (_) {
|
5615
5607
|
const J = Lt(G.placement);
|
5616
5608
|
return J === w || // Create a bias to the `y` side axis due to horizontal
|
@@ -5618,7 +5610,7 @@ const qf = (e) => ({
|
|
5618
5610
|
J === "y";
|
5619
5611
|
}
|
5620
5612
|
return !0;
|
5621
|
-
}).map((G) => [G.placement, G.overflows.filter((J) => J > 0).reduce((J, me) => J + me, 0)]).sort((G, J) => G[1] - J[1])[0]) == null ? void 0 :
|
5613
|
+
}).map((G) => [G.placement, G.overflows.filter((J) => J > 0).reduce((J, me) => J + me, 0)]).sort((G, J) => G[1] - J[1])[0]) == null ? void 0 : $[0];
|
5622
5614
|
W && (B = W);
|
5623
5615
|
break;
|
5624
5616
|
}
|
@@ -5717,12 +5709,12 @@ const Kf = function(e) {
|
|
5717
5709
|
}, f = await li(t, i), u = Lt(vt(o)), h = si(u);
|
5718
5710
|
let m = d[h], y = d[u];
|
5719
5711
|
if (n) {
|
5720
|
-
const p = h === "y" ? "top" : "left", v = h === "y" ? "bottom" : "right", w = m + f[p],
|
5721
|
-
m = Ha(w, m,
|
5712
|
+
const p = h === "y" ? "top" : "left", v = h === "y" ? "bottom" : "right", w = m + f[p], k = m - f[v];
|
5713
|
+
m = Ha(w, m, k);
|
5722
5714
|
}
|
5723
5715
|
if (s) {
|
5724
|
-
const p = u === "y" ? "top" : "left", v = u === "y" ? "bottom" : "right", w = y + f[p],
|
5725
|
-
y = Ha(w, y,
|
5716
|
+
const p = u === "y" ? "top" : "left", v = u === "y" ? "bottom" : "right", w = y + f[p], k = y - f[v];
|
5717
|
+
y = Ha(w, y, k);
|
5726
5718
|
}
|
5727
5719
|
const b = l.fn({
|
5728
5720
|
...t,
|
@@ -5753,7 +5745,7 @@ function Te(e) {
|
|
5753
5745
|
var t;
|
5754
5746
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
5755
5747
|
}
|
5756
|
-
function
|
5748
|
+
function Qe(e) {
|
5757
5749
|
var t;
|
5758
5750
|
return (t = (ci(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
5759
5751
|
}
|
@@ -5763,7 +5755,7 @@ function ci(e) {
|
|
5763
5755
|
function Me(e) {
|
5764
5756
|
return zr() ? e instanceof Element || e instanceof Te(e).Element : !1;
|
5765
5757
|
}
|
5766
|
-
function
|
5758
|
+
function Ge(e) {
|
5767
5759
|
return zr() ? e instanceof HTMLElement || e instanceof Te(e).HTMLElement : !1;
|
5768
5760
|
}
|
5769
5761
|
function gn(e) {
|
@@ -5796,7 +5788,7 @@ function bo(e) {
|
|
5796
5788
|
}
|
5797
5789
|
function Zf(e) {
|
5798
5790
|
let t = st(e);
|
5799
|
-
for (;
|
5791
|
+
for (; Ge(t) && !Mt(t); ) {
|
5800
5792
|
if (bo(t))
|
5801
5793
|
return t;
|
5802
5794
|
if (Vr(t))
|
@@ -5831,13 +5823,13 @@ function st(e) {
|
|
5831
5823
|
e.assignedSlot || // DOM Element detected.
|
5832
5824
|
e.parentNode || // ShadowRoot detected.
|
5833
5825
|
gn(e) && e.host || // Fallback.
|
5834
|
-
|
5826
|
+
Qe(e)
|
5835
5827
|
);
|
5836
5828
|
return gn(t) ? t.host : t;
|
5837
5829
|
}
|
5838
5830
|
function di(e) {
|
5839
5831
|
const t = st(e);
|
5840
|
-
return Mt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body :
|
5832
|
+
return Mt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ge(t) && dr(t) ? t : di(t);
|
5841
5833
|
}
|
5842
5834
|
function ui(e, t, r) {
|
5843
5835
|
var a;
|
@@ -5851,7 +5843,7 @@ function yn(e) {
|
|
5851
5843
|
function fi(e) {
|
5852
5844
|
const t = De(e);
|
5853
5845
|
let r = parseFloat(t.width) || 0, a = parseFloat(t.height) || 0;
|
5854
|
-
const o =
|
5846
|
+
const o = Ge(e), n = o ? e.offsetWidth : r, s = o ? e.offsetHeight : a, l = Nr(r) !== n || Nr(a) !== s;
|
5855
5847
|
return l && (r = n, a = s), {
|
5856
5848
|
width: r,
|
5857
5849
|
height: a,
|
@@ -5863,8 +5855,8 @@ function hi(e) {
|
|
5863
5855
|
}
|
5864
5856
|
function Ct(e) {
|
5865
5857
|
const t = hi(e);
|
5866
|
-
if (!
|
5867
|
-
return
|
5858
|
+
if (!Ge(t))
|
5859
|
+
return He(1);
|
5868
5860
|
const r = t.getBoundingClientRect(), {
|
5869
5861
|
width: a,
|
5870
5862
|
height: o,
|
@@ -5876,7 +5868,7 @@ function Ct(e) {
|
|
5876
5868
|
y: l
|
5877
5869
|
};
|
5878
5870
|
}
|
5879
|
-
const eh = /* @__PURE__ */
|
5871
|
+
const eh = /* @__PURE__ */ He(0);
|
5880
5872
|
function mi(e) {
|
5881
5873
|
const t = Te(e);
|
5882
5874
|
return !vo() || !t.visualViewport ? eh : {
|
@@ -5890,16 +5882,16 @@ function th(e, t, r) {
|
|
5890
5882
|
function Zt(e, t, r, a) {
|
5891
5883
|
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
5892
5884
|
const o = e.getBoundingClientRect(), n = hi(e);
|
5893
|
-
let s =
|
5885
|
+
let s = He(1);
|
5894
5886
|
t && (a ? Me(a) && (s = Ct(a)) : s = Ct(e));
|
5895
|
-
const l = th(n, r, a) ? mi(n) :
|
5887
|
+
const l = th(n, r, a) ? mi(n) : He(0);
|
5896
5888
|
let i = (o.left + l.x) / s.x, d = (o.top + l.y) / s.y, f = o.width / s.x, u = o.height / s.y;
|
5897
5889
|
if (n) {
|
5898
5890
|
const h = Te(n), m = a && Me(a) ? Te(a) : a;
|
5899
5891
|
let y = h, b = yn(y);
|
5900
5892
|
for (; b && a && m !== y; ) {
|
5901
|
-
const p = Ct(b), v = b.getBoundingClientRect(), w = De(b),
|
5902
|
-
i *= p.x, d *= p.y, f *= p.x, u *= p.y, i +=
|
5893
|
+
const p = Ct(b), v = b.getBoundingClientRect(), w = De(b), k = v.left + (b.clientLeft + parseFloat(w.paddingLeft)) * p.x, I = v.top + (b.clientTop + parseFloat(w.paddingTop)) * p.y;
|
5894
|
+
i *= p.x, d *= p.y, f *= p.x, u *= p.y, i += k, d += I, y = Te(b), b = yn(y);
|
5903
5895
|
}
|
5904
5896
|
}
|
5905
5897
|
return Ar({
|
@@ -5911,7 +5903,7 @@ function Zt(e, t, r, a) {
|
|
5911
5903
|
}
|
5912
5904
|
function _o(e, t) {
|
5913
5905
|
const r = Fr(e).scrollLeft;
|
5914
|
-
return t ? t.left + r : Zt(
|
5906
|
+
return t ? t.left + r : Zt(Qe(e)).left + r;
|
5915
5907
|
}
|
5916
5908
|
function pi(e, t, r) {
|
5917
5909
|
r === void 0 && (r = !1);
|
@@ -5931,19 +5923,19 @@ function rh(e) {
|
|
5931
5923
|
offsetParent: a,
|
5932
5924
|
strategy: o
|
5933
5925
|
} = e;
|
5934
|
-
const n = o === "fixed", s =
|
5926
|
+
const n = o === "fixed", s = Qe(a), l = t ? Vr(t.floating) : !1;
|
5935
5927
|
if (a === s || l && n)
|
5936
5928
|
return r;
|
5937
5929
|
let i = {
|
5938
5930
|
scrollLeft: 0,
|
5939
5931
|
scrollTop: 0
|
5940
|
-
}, d =
|
5941
|
-
const f =
|
5942
|
-
if ((u || !u && !n) && ((Vt(a) !== "body" || dr(s)) && (i = Fr(a)),
|
5932
|
+
}, d = He(1);
|
5933
|
+
const f = He(0), u = Ge(a);
|
5934
|
+
if ((u || !u && !n) && ((Vt(a) !== "body" || dr(s)) && (i = Fr(a)), Ge(a))) {
|
5943
5935
|
const m = Zt(a);
|
5944
5936
|
d = Ct(a), f.x = m.x + a.clientLeft, f.y = m.y + a.clientTop;
|
5945
5937
|
}
|
5946
|
-
const h = s && !u && !n ? pi(s, i, !0) :
|
5938
|
+
const h = s && !u && !n ? pi(s, i, !0) : He(0);
|
5947
5939
|
return {
|
5948
5940
|
width: r.width * d.x,
|
5949
5941
|
height: r.height * d.y,
|
@@ -5955,7 +5947,7 @@ function ah(e) {
|
|
5955
5947
|
return Array.from(e.getClientRects());
|
5956
5948
|
}
|
5957
5949
|
function oh(e) {
|
5958
|
-
const t =
|
5950
|
+
const t = Qe(e), r = Fr(e), a = e.ownerDocument.body, o = It(t.scrollWidth, t.clientWidth, a.scrollWidth, a.clientWidth), n = It(t.scrollHeight, t.clientHeight, a.scrollHeight, a.clientHeight);
|
5959
5951
|
let s = -r.scrollLeft + _o(e);
|
5960
5952
|
const l = -r.scrollTop;
|
5961
5953
|
return De(a).direction === "rtl" && (s += It(t.clientWidth, a.clientWidth) - o), {
|
@@ -5966,7 +5958,7 @@ function oh(e) {
|
|
5966
5958
|
};
|
5967
5959
|
}
|
5968
5960
|
function nh(e, t) {
|
5969
|
-
const r = Te(e), a =
|
5961
|
+
const r = Te(e), a = Qe(e), o = r.visualViewport;
|
5970
5962
|
let n = a.clientWidth, s = a.clientHeight, l = 0, i = 0;
|
5971
5963
|
if (o) {
|
5972
5964
|
n = o.width, s = o.height;
|
@@ -5981,7 +5973,7 @@ function nh(e, t) {
|
|
5981
5973
|
};
|
5982
5974
|
}
|
5983
5975
|
function sh(e, t) {
|
5984
|
-
const r = Zt(e, !0, t === "fixed"), a = r.top + e.clientTop, o = r.left + e.clientLeft, n =
|
5976
|
+
const r = Zt(e, !0, t === "fixed"), a = r.top + e.clientTop, o = r.left + e.clientLeft, n = Ge(e) ? Ct(e) : He(1), s = e.clientWidth * n.x, l = e.clientHeight * n.y, i = o * n.x, d = a * n.y;
|
5985
5977
|
return {
|
5986
5978
|
width: s,
|
5987
5979
|
height: l,
|
@@ -5994,7 +5986,7 @@ function bn(e, t, r) {
|
|
5994
5986
|
if (t === "viewport")
|
5995
5987
|
a = nh(e, r);
|
5996
5988
|
else if (t === "document")
|
5997
|
-
a = oh(
|
5989
|
+
a = oh(Qe(e));
|
5998
5990
|
else if (Me(t))
|
5999
5991
|
a = sh(t, r);
|
6000
5992
|
else {
|
@@ -6054,18 +6046,18 @@ function ch(e) {
|
|
6054
6046
|
};
|
6055
6047
|
}
|
6056
6048
|
function dh(e, t, r) {
|
6057
|
-
const a =
|
6049
|
+
const a = Ge(t), o = Qe(t), n = r === "fixed", s = Zt(e, !0, n, t);
|
6058
6050
|
let l = {
|
6059
6051
|
scrollLeft: 0,
|
6060
6052
|
scrollTop: 0
|
6061
6053
|
};
|
6062
|
-
const i =
|
6054
|
+
const i = He(0);
|
6063
6055
|
if (a || !a && !n)
|
6064
6056
|
if ((Vt(t) !== "body" || dr(o)) && (l = Fr(t)), a) {
|
6065
6057
|
const h = Zt(t, !0, n, t);
|
6066
6058
|
i.x = h.x + t.clientLeft, i.y = h.y + t.clientTop;
|
6067
6059
|
} else o && (i.x = _o(o));
|
6068
|
-
const d = o && !a && !n ? pi(o, l) :
|
6060
|
+
const d = o && !a && !n ? pi(o, l) : He(0), f = s.left + l.scrollLeft - i.x - d.x, u = s.top + l.scrollTop - i.y - d.y;
|
6069
6061
|
return {
|
6070
6062
|
x: f,
|
6071
6063
|
y: u,
|
@@ -6077,18 +6069,18 @@ function na(e) {
|
|
6077
6069
|
return De(e).position === "static";
|
6078
6070
|
}
|
6079
6071
|
function vn(e, t) {
|
6080
|
-
if (!
|
6072
|
+
if (!Ge(e) || De(e).position === "fixed")
|
6081
6073
|
return null;
|
6082
6074
|
if (t)
|
6083
6075
|
return t(e);
|
6084
6076
|
let r = e.offsetParent;
|
6085
|
-
return
|
6077
|
+
return Qe(e) === r && (r = r.ownerDocument.body), r;
|
6086
6078
|
}
|
6087
6079
|
function yi(e, t) {
|
6088
6080
|
const r = Te(e);
|
6089
6081
|
if (Vr(e))
|
6090
6082
|
return r;
|
6091
|
-
if (!
|
6083
|
+
if (!Ge(e)) {
|
6092
6084
|
let o = st(e);
|
6093
6085
|
for (; o && !Mt(o); ) {
|
6094
6086
|
if (Me(o) && !na(o))
|
@@ -6119,7 +6111,7 @@ function fh(e) {
|
|
6119
6111
|
}
|
6120
6112
|
const hh = {
|
6121
6113
|
convertOffsetParentRelativeRectToViewportRelativeRect: rh,
|
6122
|
-
getDocumentElement:
|
6114
|
+
getDocumentElement: Qe,
|
6123
6115
|
getClippingRect: lh,
|
6124
6116
|
getOffsetParent: yi,
|
6125
6117
|
getElementRects: uh,
|
@@ -6142,7 +6134,7 @@ const hh = {
|
|
6142
6134
|
});
|
6143
6135
|
}, _n = ["mousedown", "touchstart"];
|
6144
6136
|
function vh(e, t, r) {
|
6145
|
-
const a =
|
6137
|
+
const a = M(null);
|
6146
6138
|
return z(() => {
|
6147
6139
|
const o = (n) => {
|
6148
6140
|
const s = n ? n.target : void 0;
|
@@ -6163,7 +6155,7 @@ function vh(e, t, r) {
|
|
6163
6155
|
}, [e, r, t]), a;
|
6164
6156
|
}
|
6165
6157
|
function _h(e, t) {
|
6166
|
-
const [r, a] = F(!1), o =
|
6158
|
+
const [r, a] = F(!1), o = M(null), n = M(null), s = q(() => {
|
6167
6159
|
a((i) => (!i && (!o.current || o.current === -1) && (o.current = window.setInterval(n.current, t)), !0));
|
6168
6160
|
}, [t]), l = q(() => {
|
6169
6161
|
a(!1), window.clearInterval(o.current || -1), o.current = -1;
|
@@ -6217,7 +6209,7 @@ const yr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, wh = (
|
|
6217
6209
|
}) => {
|
6218
6210
|
const i = vh(() => {
|
6219
6211
|
b.stop(), y(!1);
|
6220
|
-
}), d =
|
6212
|
+
}), d = M(null), f = M(null), [u, h] = F(!1), [m, y] = F(!1), b = _h(() => {
|
6221
6213
|
y(!1);
|
6222
6214
|
}, Ih), p = Th({
|
6223
6215
|
mode: a,
|
@@ -6225,13 +6217,13 @@ const yr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, wh = (
|
|
6225
6217
|
tooltipClassName: s,
|
6226
6218
|
arrowClassName: l
|
6227
6219
|
}), v = Eh({ delay: o }), w = q(async () => {
|
6228
|
-
var _,
|
6220
|
+
var _, E, T, x;
|
6229
6221
|
if (i.current && d.current && f.current) {
|
6230
6222
|
const {
|
6231
|
-
x:
|
6223
|
+
x: S,
|
6232
6224
|
y: R,
|
6233
|
-
middlewareData:
|
6234
|
-
placement:
|
6225
|
+
middlewareData: O,
|
6226
|
+
placement: $
|
6235
6227
|
} = await bh(i.current, d.current, {
|
6236
6228
|
placement: r,
|
6237
6229
|
middleware: [
|
@@ -6245,7 +6237,7 @@ const yr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, wh = (
|
|
6245
6237
|
]
|
6246
6238
|
});
|
6247
6239
|
(_ = d == null ? void 0 : d.current) != null && _.style && Object.assign(d.current.style, {
|
6248
|
-
left: yr(
|
6240
|
+
left: yr(S),
|
6249
6241
|
top: yr(R),
|
6250
6242
|
...v
|
6251
6243
|
});
|
@@ -6254,10 +6246,10 @@ const yr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, wh = (
|
|
6254
6246
|
right: "left",
|
6255
6247
|
bottom: "top",
|
6256
6248
|
left: "right"
|
6257
|
-
}[
|
6258
|
-
(
|
6259
|
-
left: yr((
|
6260
|
-
top: yr((
|
6249
|
+
}[$.split("-")[0]];
|
6250
|
+
(E = f == null ? void 0 : f.current) != null && E.style && Object.assign(f.current.style, {
|
6251
|
+
left: yr((T = O.arrow) == null ? void 0 : T.x),
|
6252
|
+
top: yr((x = O.arrow) == null ? void 0 : x.y),
|
6261
6253
|
right: "",
|
6262
6254
|
bottom: "",
|
6263
6255
|
[A]: "-4px"
|
@@ -6267,24 +6259,24 @@ const yr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, wh = (
|
|
6267
6259
|
z(() => {
|
6268
6260
|
(async () => u && await w())();
|
6269
6261
|
}, [w, u]);
|
6270
|
-
const
|
6262
|
+
const k = () => {
|
6271
6263
|
h(!1), y(!0), b.start();
|
6272
6264
|
}, I = () => {
|
6273
6265
|
m || h(!0);
|
6274
6266
|
}, C = () => {
|
6275
6267
|
m || h(!1);
|
6276
6268
|
};
|
6277
|
-
return /* @__PURE__ */
|
6269
|
+
return /* @__PURE__ */ N(
|
6278
6270
|
"div",
|
6279
6271
|
{
|
6280
6272
|
className: p.wrapper,
|
6281
6273
|
ref: i,
|
6282
6274
|
onMouseEnter: I,
|
6283
6275
|
onMouseLeave: C,
|
6284
|
-
onClick:
|
6276
|
+
onClick: k,
|
6285
6277
|
children: [
|
6286
6278
|
e,
|
6287
|
-
u && /* @__PURE__ */
|
6279
|
+
u && /* @__PURE__ */ N(
|
6288
6280
|
"div",
|
6289
6281
|
{
|
6290
6282
|
role: "tooltip",
|
@@ -6321,7 +6313,7 @@ const Ch = ({
|
|
6321
6313
|
dispatch: o,
|
6322
6314
|
setChatId: n,
|
6323
6315
|
setInitialMessages: s
|
6324
|
-
} = ee(xe), { id: l, setInput: i, stop: d } = wt(), f =
|
6316
|
+
} = ee(xe), { id: l, setInput: i, stop: d } = wt(), f = M(null), u = M(!1), h = () => {
|
6325
6317
|
n(ot()), s([]), i(""), o({
|
6326
6318
|
type: _t,
|
6327
6319
|
payload: {
|
@@ -6395,7 +6387,7 @@ const Ch = ({
|
|
6395
6387
|
label: "New Chat",
|
6396
6388
|
ref: f,
|
6397
6389
|
onClick: r || a ? m : y,
|
6398
|
-
children: r || a ? /* @__PURE__ */ c(hs, { size:
|
6390
|
+
children: r || a ? /* @__PURE__ */ c(hs, { size: Je, monotone: !0 }) : /* @__PURE__ */ c(Jl, { size: Je })
|
6399
6391
|
}
|
6400
6392
|
)
|
6401
6393
|
}
|
@@ -6711,7 +6703,7 @@ const Ch = ({
|
|
6711
6703
|
});
|
6712
6704
|
vi.displayName = "BaseButton";
|
6713
6705
|
function Fh() {
|
6714
|
-
const e =
|
6706
|
+
const e = M(!1);
|
6715
6707
|
return z(() => (e.current = !0, () => {
|
6716
6708
|
e.current = !1;
|
6717
6709
|
}), []), q(() => e.current, []);
|
@@ -6735,7 +6727,7 @@ const Hh = {
|
|
6735
6727
|
right: 0
|
6736
6728
|
};
|
6737
6729
|
function sa(e) {
|
6738
|
-
const t = Fh(), r =
|
6730
|
+
const t = Fh(), r = M(0), a = M(null), [o, n] = F(Hh), s = Ie(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
|
6739
6731
|
const i = l[0];
|
6740
6732
|
i && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
6741
6733
|
a.current && t() && n(i.contentRect);
|
@@ -6780,7 +6772,7 @@ const Gh = {
|
|
6780
6772
|
radius: p = "large",
|
6781
6773
|
variant: v = "primary",
|
6782
6774
|
iconClassName: w,
|
6783
|
-
animated:
|
6775
|
+
animated: k = !1,
|
6784
6776
|
...I
|
6785
6777
|
}, C) => {
|
6786
6778
|
const _ = zh({
|
@@ -6799,22 +6791,22 @@ const Gh = {
|
|
6799
6791
|
align: b,
|
6800
6792
|
radius: p,
|
6801
6793
|
variant: v,
|
6802
|
-
animated:
|
6803
|
-
}),
|
6794
|
+
animated: k
|
6795
|
+
}), E = Bh({ mode: r, raw: l, iconClassName: w }), T = Ph({ animated: k }), [x, S] = sa(), [R, O] = sa(), [$, A] = sa(), D = M(0), B = M(null), W = Uh([C, B]);
|
6804
6796
|
return ge(() => {
|
6805
|
-
|
6806
|
-
}, [A,
|
6807
|
-
B && B.current &&
|
6797
|
+
$ && $.current && k && (D.current = A.width + jh[u] + (i ? 0 : Wh));
|
6798
|
+
}, [A, $, u, i, k]), ge(() => {
|
6799
|
+
B && B.current && k && (h && x && S.width > 0 ? (x.current && (x.current.style.opacity = "100"), B.current.style.width = `${S.width + D.current}px`) : m && O.width > 0 ? (R.current && (R.current.style.opacity = "100"), B.current.style.width = `${O.width + D.current}px`) : (x.current && (x.current.style.opacity = "0"), R.current && (R.current.style.opacity = "0"), B.current.style.width = `${Gh[u]}px`));
|
6808
6800
|
}, [
|
6809
|
-
|
6801
|
+
S,
|
6810
6802
|
h,
|
6811
|
-
|
6812
|
-
|
6803
|
+
x,
|
6804
|
+
O,
|
6813
6805
|
m,
|
6814
6806
|
R,
|
6815
6807
|
u,
|
6816
|
-
|
6817
|
-
]), /* @__PURE__ */
|
6808
|
+
k
|
6809
|
+
]), /* @__PURE__ */ N(
|
6818
6810
|
vi,
|
6819
6811
|
{
|
6820
6812
|
ref: W,
|
@@ -6829,17 +6821,17 @@ const Gh = {
|
|
6829
6821
|
{
|
6830
6822
|
label: m,
|
6831
6823
|
labelRef: R,
|
6832
|
-
labelClass:
|
6824
|
+
labelClass: T,
|
6833
6825
|
labelInnerClass: "pr-2"
|
6834
6826
|
}
|
6835
6827
|
),
|
6836
|
-
/* @__PURE__ */ c("span", { ref:
|
6828
|
+
/* @__PURE__ */ c("span", { ref: $, className: E, children: e }),
|
6837
6829
|
/* @__PURE__ */ c(
|
6838
6830
|
En,
|
6839
6831
|
{
|
6840
6832
|
label: h,
|
6841
|
-
labelRef:
|
6842
|
-
labelClass:
|
6833
|
+
labelRef: x,
|
6834
|
+
labelClass: T,
|
6843
6835
|
labelInnerClass: "pl-2"
|
6844
6836
|
}
|
6845
6837
|
)
|
@@ -6918,7 +6910,7 @@ const Yh = ({
|
|
6918
6910
|
...i
|
6919
6911
|
}) => {
|
6920
6912
|
const d = g(n, a);
|
6921
|
-
return /* @__PURE__ */ c(se, { children: /* @__PURE__ */
|
6913
|
+
return /* @__PURE__ */ c(se, { children: /* @__PURE__ */ N(
|
6922
6914
|
"svg",
|
6923
6915
|
{
|
6924
6916
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7107,7 +7099,7 @@ const Wt = "panel", br = "messagebox", rm = ({
|
|
7107
7099
|
animation: i = !1,
|
7108
7100
|
animationType: d = am
|
7109
7101
|
}) => {
|
7110
|
-
const f =
|
7102
|
+
const f = M(""), [u, h] = F(
|
7111
7103
|
i ? d === In ? { opacity: 0 } : {
|
7112
7104
|
transform: "translateY(-100vh)"
|
7113
7105
|
} : {}
|
@@ -7135,8 +7127,8 @@ const Wt = "panel", br = "messagebox", rm = ({
|
|
7135
7127
|
}, 100);
|
7136
7128
|
return () => clearTimeout(y);
|
7137
7129
|
}
|
7138
|
-
}, [e, i, d]), /* @__PURE__ */ c(se, { children: e && /* @__PURE__ */ c(Qh, { open: e, onOpenChange: t, children: /* @__PURE__ */
|
7139
|
-
/* @__PURE__ */
|
7130
|
+
}, [e, i, d]), /* @__PURE__ */ c(se, { children: e && /* @__PURE__ */ c(Qh, { open: e, onOpenChange: t, children: /* @__PURE__ */ N(Xh, { className: m.main, style: u, children: [
|
7131
|
+
/* @__PURE__ */ N("div", { className: "flex flex-row-reverse items-center justify-between", children: [
|
7140
7132
|
/* @__PURE__ */ c(
|
7141
7133
|
tm,
|
7142
7134
|
{
|
@@ -7185,8 +7177,8 @@ const Dt = ({
|
|
7185
7177
|
open: e,
|
7186
7178
|
onOpenChange: t,
|
7187
7179
|
title: o.title,
|
7188
|
-
footer: /* @__PURE__ */
|
7189
|
-
/* @__PURE__ */ c(
|
7180
|
+
footer: /* @__PURE__ */ N(rr, { columnGap: 2, alignHorizontal: "flex-end", children: [
|
7181
|
+
/* @__PURE__ */ c(Ue, { children: /* @__PURE__ */ c(
|
7190
7182
|
pt,
|
7191
7183
|
{
|
7192
7184
|
mode: "dark",
|
@@ -7198,7 +7190,7 @@ const Dt = ({
|
|
7198
7190
|
children: o.cancelAction
|
7199
7191
|
}
|
7200
7192
|
) }),
|
7201
|
-
/* @__PURE__ */ c(
|
7193
|
+
/* @__PURE__ */ c(Ue, { children: /* @__PURE__ */ c(
|
7202
7194
|
pt,
|
7203
7195
|
{
|
7204
7196
|
mode: "dark",
|
@@ -7232,7 +7224,7 @@ const Dt = ({
|
|
7232
7224
|
}
|
7233
7225
|
});
|
7234
7226
|
};
|
7235
|
-
return /* @__PURE__ */
|
7227
|
+
return /* @__PURE__ */ N(se, { children: [
|
7236
7228
|
/* @__PURE__ */ c(
|
7237
7229
|
Dt,
|
7238
7230
|
{
|
@@ -7244,7 +7236,7 @@ const Dt = ({
|
|
7244
7236
|
cancelAction: "Cancel",
|
7245
7237
|
title: "Private Chat"
|
7246
7238
|
},
|
7247
|
-
children: /* @__PURE__ */
|
7239
|
+
children: /* @__PURE__ */ N("ul", { children: [
|
7248
7240
|
/* @__PURE__ */ c("li", { children: "Your chat sessions will not be saved to your chat history." }),
|
7249
7241
|
/* @__PURE__ */ c("li", { children: "If you refresh your browser, the setting will revert to the default (non-private) chat." })
|
7250
7242
|
] })
|
@@ -7271,7 +7263,7 @@ const Dt = ({
|
|
7271
7263
|
u.preventDefault(), l ? d() : (i("true"), s(!n));
|
7272
7264
|
},
|
7273
7265
|
className: "text-sm",
|
7274
|
-
children: t ? /* @__PURE__ */ c(Zl, { size:
|
7266
|
+
children: t ? /* @__PURE__ */ c(Zl, { size: Je }) : /* @__PURE__ */ c(cc, { size: Je })
|
7275
7267
|
}
|
7276
7268
|
)
|
7277
7269
|
}
|
@@ -7308,8 +7300,8 @@ const Dt = ({
|
|
7308
7300
|
focusMode: s = "system",
|
7309
7301
|
...l
|
7310
7302
|
}, i) => {
|
7311
|
-
const [d, f] = F(!1), [u, h] = F(!1), [m, y] = F(null), b =
|
7312
|
-
nodeId:
|
7303
|
+
const [d, f] = F(!1), [u, h] = F(!1), [m, y] = F(null), b = M([]), p = M([]), v = ee(Wa), w = cs(), k = vl(), I = ds(), { floatingStyles: C, refs: _, context: E } = os({
|
7304
|
+
nodeId: k,
|
7313
7305
|
open: d,
|
7314
7306
|
onOpenChange: (J) => {
|
7315
7307
|
f(J), o == null || o(J);
|
@@ -7318,21 +7310,21 @@ const Dt = ({
|
|
7318
7310
|
strategy: "fixed",
|
7319
7311
|
middleware: [wl({ mainAxis: 10 }), kl(), xl()],
|
7320
7312
|
whileElementsMounted: _l
|
7321
|
-
}),
|
7313
|
+
}), T = ns(E, {
|
7322
7314
|
event: "mousedown",
|
7323
7315
|
toggle: !0,
|
7324
7316
|
ignoreMouse: !1
|
7325
|
-
}),
|
7317
|
+
}), x = is(E, { role: "menu" }), S = ss(E, { bubbles: !0 }), R = Tl(E, {
|
7326
7318
|
listRef: b,
|
7327
7319
|
activeIndex: m,
|
7328
7320
|
nested: !1,
|
7329
7321
|
onNavigate: y,
|
7330
7322
|
loop: !0
|
7331
|
-
}),
|
7323
|
+
}), O = El(E, {
|
7332
7324
|
listRef: p,
|
7333
7325
|
onMatch: d ? y : void 0,
|
7334
7326
|
activeIndex: m
|
7335
|
-
}), { getReferenceProps:
|
7327
|
+
}), { getReferenceProps: $, getFloatingProps: A, getItemProps: D } = ls([T, x, S, R, O]), B = Cn(e) === "Button" || Cn(e) === "ButtonIcon", W = B ? {
|
7336
7328
|
noInternalClick: B,
|
7337
7329
|
focusMode: s,
|
7338
7330
|
mode: n
|
@@ -7344,7 +7336,7 @@ const Dt = ({
|
|
7344
7336
|
"data-open": d ? "" : void 0,
|
7345
7337
|
"data-focus-inside": u ? "" : void 0,
|
7346
7338
|
ref: Za([_.setReference, I.ref, i]),
|
7347
|
-
|
7339
|
+
...$(
|
7348
7340
|
v.getItemProps({
|
7349
7341
|
...l
|
7350
7342
|
})
|
@@ -7361,8 +7353,8 @@ const Dt = ({
|
|
7361
7353
|
w.events.off("click", J);
|
7362
7354
|
};
|
7363
7355
|
}, [w, o]), z(() => {
|
7364
|
-
d && w && w.events.emit("menuopen", { nodeId:
|
7365
|
-
}, [w, d,
|
7356
|
+
d && w && w.events.emit("menuopen", { nodeId: k });
|
7357
|
+
}, [w, d, k]), /* @__PURE__ */ N(Il, { id: k, children: [
|
7366
7358
|
G,
|
7367
7359
|
/* @__PURE__ */ c(
|
7368
7360
|
Wa.Provider,
|
@@ -7377,7 +7369,7 @@ const Dt = ({
|
|
7377
7369
|
children: /* @__PURE__ */ c(Cl, { elementsRef: b, labelsRef: p, children: d && /* @__PURE__ */ c(rs, { children: /* @__PURE__ */ c(
|
7378
7370
|
as,
|
7379
7371
|
{
|
7380
|
-
context:
|
7372
|
+
context: E,
|
7381
7373
|
modal: !1,
|
7382
7374
|
initialFocus: 0,
|
7383
7375
|
returnFocus: !0,
|
@@ -7412,7 +7404,7 @@ const om = ({
|
|
7412
7404
|
...i
|
7413
7405
|
}) => {
|
7414
7406
|
const d = g(n, a);
|
7415
|
-
return /* @__PURE__ */ c(se, { children: /* @__PURE__ */
|
7407
|
+
return /* @__PURE__ */ c(se, { children: /* @__PURE__ */ N(
|
7416
7408
|
"svg",
|
7417
7409
|
{
|
7418
7410
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7449,7 +7441,7 @@ const nm = ({
|
|
7449
7441
|
title: r,
|
7450
7442
|
monotone: a,
|
7451
7443
|
...o
|
7452
|
-
}) => /* @__PURE__ */
|
7444
|
+
}) => /* @__PURE__ */ N(
|
7453
7445
|
om,
|
7454
7446
|
{
|
7455
7447
|
defaultViewBox: "0 0 448 512",
|
@@ -7483,7 +7475,7 @@ try {
|
|
7483
7475
|
});
|
7484
7476
|
} catch {
|
7485
7477
|
}
|
7486
|
-
const
|
7478
|
+
const qe = te.forwardRef(
|
7487
7479
|
({
|
7488
7480
|
label: e,
|
7489
7481
|
disabled: t,
|
@@ -7518,7 +7510,7 @@ const Ye = te.forwardRef(
|
|
7518
7510
|
"bg-none": !t && !s
|
7519
7511
|
}
|
7520
7512
|
);
|
7521
|
-
return /* @__PURE__ */
|
7513
|
+
return /* @__PURE__ */ N(
|
7522
7514
|
"button",
|
7523
7515
|
{
|
7524
7516
|
...l,
|
@@ -7546,7 +7538,7 @@ const Ye = te.forwardRef(
|
|
7546
7538
|
);
|
7547
7539
|
}
|
7548
7540
|
);
|
7549
|
-
|
7541
|
+
qe.displayName = "MenuItem";
|
7550
7542
|
const sm = ({ className: e, ...t }) => {
|
7551
7543
|
const r = g(e, "my-1 border-t border-border-medium");
|
7552
7544
|
return /* @__PURE__ */ c("div", { className: r, ...t });
|
@@ -7604,12 +7596,12 @@ const im = (e) => {
|
|
7604
7596
|
label: "Prompts",
|
7605
7597
|
mode: "light",
|
7606
7598
|
className: e,
|
7607
|
-
trigger: /* @__PURE__ */
|
7599
|
+
trigger: /* @__PURE__ */ N(
|
7608
7600
|
Hr,
|
7609
7601
|
{
|
7610
7602
|
mode: "dark",
|
7611
7603
|
focusMode: "light",
|
7612
|
-
trigger: /* @__PURE__ */ c(Re, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ c(jl, { size:
|
7604
|
+
trigger: /* @__PURE__ */ c(Re, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ c(jl, { size: Je }) }),
|
7613
7605
|
defaultPlacement: t,
|
7614
7606
|
children: [
|
7615
7607
|
/* @__PURE__ */ c(xi, { children: "Prompts" }),
|
@@ -7630,7 +7622,7 @@ const im = (e) => {
|
|
7630
7622
|
break;
|
7631
7623
|
}
|
7632
7624
|
return u.enabled && u.label && u.content && /* @__PURE__ */ c(
|
7633
|
-
|
7625
|
+
qe,
|
7634
7626
|
{
|
7635
7627
|
label: u.label,
|
7636
7628
|
icon: h,
|
@@ -7667,7 +7659,7 @@ const im = (e) => {
|
|
7667
7659
|
}
|
7668
7660
|
});
|
7669
7661
|
};
|
7670
|
-
return /* @__PURE__ */
|
7662
|
+
return /* @__PURE__ */ N(se, { children: [
|
7671
7663
|
i && /* @__PURE__ */ c(
|
7672
7664
|
Dt,
|
7673
7665
|
{
|
@@ -7693,7 +7685,7 @@ const im = (e) => {
|
|
7693
7685
|
cancelAction: "Cancel",
|
7694
7686
|
title: "Reasoning Chat"
|
7695
7687
|
},
|
7696
|
-
children: /* @__PURE__ */
|
7688
|
+
children: /* @__PURE__ */ N("ul", { children: [
|
7697
7689
|
/* @__PURE__ */ c("li", { children: 'Your chat session will use "reasoning" model capabilities.' }),
|
7698
7690
|
/* @__PURE__ */ c("li", { children: "Responses will take a little bit longer." }),
|
7699
7691
|
/* @__PURE__ */ c("li", { children: "If you refresh your browser, the setting will revert to the default (non-reasoning) chat." })
|
@@ -7720,7 +7712,7 @@ const im = (e) => {
|
|
7720
7712
|
y && y.preventDefault(), f ? r > 0 ? d(!i) : h() : (u("true"), l(!s));
|
7721
7713
|
},
|
7722
7714
|
className: "text-sm",
|
7723
|
-
children: /* @__PURE__ */ c(Xl, { size:
|
7715
|
+
children: /* @__PURE__ */ c(Xl, { size: Je })
|
7724
7716
|
}
|
7725
7717
|
)
|
7726
7718
|
}
|
@@ -7741,9 +7733,9 @@ const im = (e) => {
|
|
7741
7733
|
}), [u, h] = F(!1), [m, y] = F(!1), b = async () => {
|
7742
7734
|
try {
|
7743
7735
|
if (i && l && n) {
|
7744
|
-
const v = l.filter(({ content: w }) => w).map(({ role: w, content:
|
7736
|
+
const v = l.filter(({ content: w }) => w).map(({ role: w, content: k, id: I }) => ({
|
7745
7737
|
role: w,
|
7746
|
-
content:
|
7738
|
+
content: k,
|
7747
7739
|
id: I
|
7748
7740
|
}));
|
7749
7741
|
await Ot({
|
@@ -7776,7 +7768,7 @@ const im = (e) => {
|
|
7776
7768
|
};
|
7777
7769
|
return z(() => {
|
7778
7770
|
s && (l == null ? void 0 : l.length) > 0 ? h(!0) : h(!1);
|
7779
|
-
}, [s, l]), /* @__PURE__ */
|
7771
|
+
}, [s, l]), /* @__PURE__ */ N(se, { children: [
|
7780
7772
|
m && /* @__PURE__ */ c(
|
7781
7773
|
Dt,
|
7782
7774
|
{
|
@@ -7806,7 +7798,7 @@ const im = (e) => {
|
|
7806
7798
|
focusMode: "light",
|
7807
7799
|
label: "Save Private Chat",
|
7808
7800
|
onClick: p,
|
7809
|
-
children: /* @__PURE__ */ c(Yl, { size:
|
7801
|
+
children: /* @__PURE__ */ c(Yl, { size: Je, monotone: !0 })
|
7810
7802
|
}
|
7811
7803
|
)
|
7812
7804
|
}
|
@@ -7880,7 +7872,7 @@ const im = (e) => {
|
|
7880
7872
|
type: "submit",
|
7881
7873
|
mode: "light",
|
7882
7874
|
focusMode: "light",
|
7883
|
-
children: /* @__PURE__ */ c(sc, { size:
|
7875
|
+
children: /* @__PURE__ */ c(sc, { size: Je })
|
7884
7876
|
}
|
7885
7877
|
)
|
7886
7878
|
}
|
@@ -7938,7 +7930,7 @@ const im = (e) => {
|
|
7938
7930
|
mode: "light",
|
7939
7931
|
placement: "right",
|
7940
7932
|
className: e,
|
7941
|
-
trigger: /* @__PURE__ */
|
7933
|
+
trigger: /* @__PURE__ */ N(
|
7942
7934
|
Hr,
|
7943
7935
|
{
|
7944
7936
|
mode: "dark",
|
@@ -7948,7 +7940,7 @@ const im = (e) => {
|
|
7948
7940
|
h.icon,
|
7949
7941
|
{
|
7950
7942
|
className: l === "streaming" ? "av-pulsate-icon" : "",
|
7951
|
-
size:
|
7943
|
+
size: Je
|
7952
7944
|
},
|
7953
7945
|
h.id
|
7954
7946
|
) : null
|
@@ -7957,7 +7949,7 @@ const im = (e) => {
|
|
7957
7949
|
children: [
|
7958
7950
|
/* @__PURE__ */ c(xi, { children: "Providers" }),
|
7959
7951
|
Sn.map((h) => /* @__PURE__ */ c(
|
7960
|
-
|
7952
|
+
qe,
|
7961
7953
|
{
|
7962
7954
|
selected: f.provider === h.id,
|
7963
7955
|
label: h.label,
|
@@ -8011,16 +8003,16 @@ const im = (e) => {
|
|
8011
8003
|
searchString: u.searchString,
|
8012
8004
|
sortDirection: u.sortDirection,
|
8013
8005
|
getAccessToken: t
|
8014
|
-
}), m =
|
8006
|
+
}), m = M(!1), y = M(0), b = M(null), p = M(null), v = Jt(), w = gm({
|
8015
8007
|
className: ""
|
8016
8008
|
}), {
|
8017
|
-
input:
|
8009
|
+
input: k,
|
8018
8010
|
setInput: I,
|
8019
8011
|
handleInputChange: C,
|
8020
8012
|
handleSubmit: _,
|
8021
|
-
setMessages:
|
8022
|
-
status:
|
8023
|
-
id:
|
8013
|
+
setMessages: E,
|
8014
|
+
status: T,
|
8015
|
+
id: x
|
8024
8016
|
} = wt({
|
8025
8017
|
onFinish: (A, { usage: D }) => {
|
8026
8018
|
h(), o({
|
@@ -8030,7 +8022,7 @@ const im = (e) => {
|
|
8030
8022
|
}
|
8031
8023
|
});
|
8032
8024
|
}
|
8033
|
-
}),
|
8025
|
+
}), S = q(
|
8034
8026
|
async (A) => {
|
8035
8027
|
A === _m && o({
|
8036
8028
|
type: ut,
|
@@ -8057,7 +8049,7 @@ const im = (e) => {
|
|
8057
8049
|
loading: !1,
|
8058
8050
|
streaming: !1
|
8059
8051
|
}
|
8060
|
-
}),
|
8052
|
+
}), E((D) => [
|
8061
8053
|
...D,
|
8062
8054
|
{
|
8063
8055
|
id: ot(),
|
@@ -8067,11 +8059,11 @@ const im = (e) => {
|
|
8067
8059
|
]));
|
8068
8060
|
}, 1e3);
|
8069
8061
|
},
|
8070
|
-
[o,
|
8062
|
+
[o, E, l]
|
8071
8063
|
);
|
8072
8064
|
z(() => {
|
8073
|
-
|
8074
|
-
}, [
|
8065
|
+
T && S(T);
|
8066
|
+
}, [T, S]);
|
8075
8067
|
const R = q(() => {
|
8076
8068
|
if (!p.current)
|
8077
8069
|
return;
|
@@ -8082,20 +8074,20 @@ const im = (e) => {
|
|
8082
8074
|
return;
|
8083
8075
|
}
|
8084
8076
|
p.current.style.height = `${A}px`, p.current.style.overflowY = "hidden";
|
8085
|
-
}, []),
|
8077
|
+
}, []), O = async (A) => {
|
8086
8078
|
A.preventDefault(), vr(p);
|
8087
8079
|
const D = await t();
|
8088
8080
|
_(A, {
|
8089
8081
|
headers: {
|
8090
8082
|
"Content-Type": "application/json",
|
8091
8083
|
authorization: `Bearer ${D}`,
|
8092
|
-
[Mf]:
|
8084
|
+
[Mf]: x
|
8093
8085
|
},
|
8094
8086
|
body: {
|
8095
8087
|
reasoning: n
|
8096
8088
|
}
|
8097
8089
|
});
|
8098
|
-
},
|
8090
|
+
}, $ = (A) => {
|
8099
8091
|
R(), C(A);
|
8100
8092
|
};
|
8101
8093
|
return ys([
|
@@ -8116,13 +8108,13 @@ const im = (e) => {
|
|
8116
8108
|
}
|
8117
8109
|
}, [d, f, I]), z(() => {
|
8118
8110
|
if (m.current === !1) {
|
8119
|
-
m.current = !0, !
|
8111
|
+
m.current = !0, !k && vr(p);
|
8120
8112
|
return;
|
8121
8113
|
}
|
8122
8114
|
i > 0 && i !== y.current ? (y.current = i, setTimeout(() => {
|
8123
|
-
p.current && (!
|
8124
|
-
}, ym)) : s === !1 && !
|
8125
|
-
}, [i, s,
|
8115
|
+
p.current && (!k && vr(p), p.current.focus());
|
8116
|
+
}, ym)) : s === !1 && !k && (vr(p), p.current && p.current.focus());
|
8117
|
+
}, [i, s, k]), z(() => {
|
8126
8118
|
d.lastTriggeredTimestamp && setTimeout(() => {
|
8127
8119
|
R();
|
8128
8120
|
}, 100);
|
@@ -8133,7 +8125,7 @@ const im = (e) => {
|
|
8133
8125
|
const A = await t(), D = await qn(A, [Yn.REASONING]);
|
8134
8126
|
a(D);
|
8135
8127
|
})();
|
8136
|
-
}, [t]), /* @__PURE__ */ c("div", { className: w.wrapper, ref: b, children: /* @__PURE__ */
|
8128
|
+
}, [t]), /* @__PURE__ */ c("div", { className: w.wrapper, ref: b, children: /* @__PURE__ */ N("form", { onSubmit: O, children: [
|
8137
8129
|
/* @__PURE__ */ c("div", { id: v, className: "sr-only", children: $o }),
|
8138
8130
|
/* @__PURE__ */ c("div", { className: "relative", children: /* @__PURE__ */ c(
|
8139
8131
|
"textarea",
|
@@ -8143,18 +8135,18 @@ const im = (e) => {
|
|
8143
8135
|
ref: p,
|
8144
8136
|
placeholder: $o,
|
8145
8137
|
translate: "no",
|
8146
|
-
onChange:
|
8147
|
-
value:
|
8148
|
-
onKeyDown: mc([["mod+Enter",
|
8138
|
+
onChange: $,
|
8139
|
+
value: k,
|
8140
|
+
onKeyDown: mc([["mod+Enter", O]]),
|
8149
8141
|
className: w.textArea,
|
8150
8142
|
"aria-labelledby": v
|
8151
8143
|
}
|
8152
8144
|
) }),
|
8153
|
-
/* @__PURE__ */
|
8145
|
+
/* @__PURE__ */ N("div", { className: "p-2 flex items-center", children: [
|
8154
8146
|
/* @__PURE__ */ c(dm, { className: "order-6 ml-auto" }),
|
8155
8147
|
/* @__PURE__ */ c(Ch, { className: "order-1 mr-4 sm:mr-2" }),
|
8156
8148
|
/* @__PURE__ */ c(lm, { className: "order-2 mr-4 sm:mr-2" }),
|
8157
|
-
!at() && /* @__PURE__ */
|
8149
|
+
!at() && /* @__PURE__ */ N(se, { children: [
|
8158
8150
|
r && /* @__PURE__ */ c(Ti, { className: "order-3 mr-4 sm:mr-2" }),
|
8159
8151
|
/* @__PURE__ */ c(wi, { className: "order-4 mr-4 sm:mr-2" }),
|
8160
8152
|
/* @__PURE__ */ c(Ei, { className: "order-5" })
|
@@ -8225,7 +8217,7 @@ const im = (e) => {
|
|
8225
8217
|
n,
|
8226
8218
|
d,
|
8227
8219
|
s
|
8228
|
-
]), /* @__PURE__ */
|
8220
|
+
]), /* @__PURE__ */ N(
|
8229
8221
|
"footer",
|
8230
8222
|
{
|
8231
8223
|
ref: f,
|
@@ -8245,19 +8237,19 @@ const im = (e) => {
|
|
8245
8237
|
}, Im = Xa(
|
8246
8238
|
() => import(
|
8247
8239
|
/* webpackChunkName: "LazyAboutChangelog" */
|
8248
|
-
"./AboutChangelog.
|
8240
|
+
"./AboutChangelog.BpBrXYNM.js"
|
8249
8241
|
)
|
8250
8242
|
), Cm = () => {
|
8251
8243
|
const e = Jt(), t = Jt(), { data: r, isSuccess: a } = Ud(), { data: o, isSuccess: n } = Hd(), s = (r == null ? void 0 : r.version) || "", l = (r == null ? void 0 : r.models) || [];
|
8252
|
-
return /* @__PURE__ */
|
8244
|
+
return /* @__PURE__ */ N(se, { children: [
|
8253
8245
|
/* @__PURE__ */ c(
|
8254
8246
|
Ne,
|
8255
8247
|
{
|
8256
8248
|
header: ne.ABOUT.TITLE_CLIENT,
|
8257
8249
|
className: "prose-dark dark:prose-lighter mb-4",
|
8258
8250
|
children: Ir(e, {
|
8259
|
-
[ne.ABOUT.VERSION]: "8.13.
|
8260
|
-
[ne.ABOUT.BUILD_TIMESTAMP]: "04/
|
8251
|
+
[ne.ABOUT.VERSION]: "8.13.5",
|
8252
|
+
[ne.ABOUT.BUILD_TIMESTAMP]: "04/14/2025 06:28 PM EDT"
|
8261
8253
|
})
|
8262
8254
|
}
|
8263
8255
|
),
|
@@ -8295,8 +8287,8 @@ const im = (e) => {
|
|
8295
8287
|
onOpenChange: r,
|
8296
8288
|
mutate: a
|
8297
8289
|
}) => {
|
8298
|
-
var
|
8299
|
-
const { user: o, getAccessToken: n } = Ee(), s =
|
8290
|
+
var T;
|
8291
|
+
const { user: o, getAccessToken: n } = Ee(), s = M(null), l = M({
|
8300
8292
|
id: "",
|
8301
8293
|
timestamp: "",
|
8302
8294
|
message: ""
|
@@ -8309,39 +8301,39 @@ const im = (e) => {
|
|
8309
8301
|
} = ee(xe), { setInput: v } = wt(), [, w] = yt({
|
8310
8302
|
key: gt + Jn,
|
8311
8303
|
initialValue: h.sortDirection
|
8312
|
-
}), { refetch:
|
8304
|
+
}), { refetch: k } = nr({
|
8313
8305
|
user: o == null ? void 0 : o.username,
|
8314
8306
|
getAccessToken: n
|
8315
|
-
}), I = (
|
8307
|
+
}), I = (x) => {
|
8316
8308
|
switch (h.sortDirection) {
|
8317
|
-
case
|
8318
|
-
w(
|
8309
|
+
case Ve.ASC:
|
8310
|
+
w(Ve.DESC), m({
|
8319
8311
|
type: fa,
|
8320
8312
|
payload: {
|
8321
|
-
sortedCell:
|
8322
|
-
sortDirection:
|
8313
|
+
sortedCell: x,
|
8314
|
+
sortDirection: Ve.DESC
|
8323
8315
|
}
|
8324
8316
|
});
|
8325
8317
|
break;
|
8326
8318
|
default:
|
8327
|
-
w(
|
8319
|
+
w(Ve.ASC), m({
|
8328
8320
|
type: fa,
|
8329
8321
|
payload: {
|
8330
|
-
sortedCell:
|
8331
|
-
sortDirection:
|
8322
|
+
sortedCell: x,
|
8323
|
+
sortDirection: Ve.ASC
|
8332
8324
|
}
|
8333
8325
|
});
|
8334
8326
|
break;
|
8335
8327
|
}
|
8336
8328
|
}, C = async () => {
|
8337
|
-
const
|
8329
|
+
const x = l.current;
|
8338
8330
|
try {
|
8339
8331
|
await Ot({
|
8340
8332
|
accessToken: await n(),
|
8341
8333
|
type: Ae.DELETE_CHAT,
|
8342
8334
|
params: {
|
8343
8335
|
userId: (o == null ? void 0 : o.username) || "",
|
8344
|
-
id:
|
8336
|
+
id: x.id
|
8345
8337
|
}
|
8346
8338
|
}), a(""), Q.error(
|
8347
8339
|
Zi,
|
@@ -8353,49 +8345,49 @@ const im = (e) => {
|
|
8353
8345
|
);
|
8354
8346
|
} catch {
|
8355
8347
|
}
|
8356
|
-
}, _ = async (
|
8348
|
+
}, _ = async (x, S, R, O, $, A) => {
|
8357
8349
|
try {
|
8358
8350
|
const D = await Ot({
|
8359
|
-
accessToken:
|
8351
|
+
accessToken: O,
|
8360
8352
|
type: Ae.GET_CHAT,
|
8361
8353
|
params: {
|
8362
|
-
id:
|
8354
|
+
id: x.id
|
8363
8355
|
}
|
8364
8356
|
});
|
8365
8357
|
D.status === 200 && (D.data.provider !== A && (await Ls({
|
8366
8358
|
provider: D.data.provider,
|
8367
|
-
accessToken:
|
8368
|
-
username:
|
8369
|
-
}),
|
8359
|
+
accessToken: O,
|
8360
|
+
username: $
|
8361
|
+
}), S({
|
8370
8362
|
type: oo,
|
8371
8363
|
payload: {
|
8372
8364
|
provider: D.data.provider
|
8373
8365
|
}
|
8374
|
-
}),
|
8366
|
+
}), k(), Q.success(
|
8375
8367
|
`${Wn} ${D.data.provider}`,
|
8376
8368
|
Er({
|
8377
8369
|
containerId: "toggle-provider",
|
8378
8370
|
transition: Cr
|
8379
8371
|
})
|
8380
|
-
)),
|
8372
|
+
)), S({
|
8381
8373
|
type: ut,
|
8382
8374
|
payload: {
|
8383
8375
|
restoring: !0
|
8384
8376
|
}
|
8385
|
-
}), v(""), b(
|
8377
|
+
}), v(""), b(x.id), p(D.data.messages), R(!1));
|
8386
8378
|
} catch {
|
8387
8379
|
}
|
8388
|
-
},
|
8389
|
-
|
8380
|
+
}, E = q((x) => {
|
8381
|
+
x[0].isIntersecting && u((R) => R + Lo);
|
8390
8382
|
}, []);
|
8391
8383
|
return z(() => {
|
8392
|
-
const
|
8384
|
+
const x = {
|
8393
8385
|
// root: null,
|
8394
8386
|
rootMargin: "20px"
|
8395
|
-
},
|
8396
|
-
s.current &&
|
8397
|
-
}), /* @__PURE__ */
|
8398
|
-
/* @__PURE__ */
|
8387
|
+
}, S = new IntersectionObserver(E, x);
|
8388
|
+
s.current && S.observe(s.current);
|
8389
|
+
}), /* @__PURE__ */ N(se, { children: [
|
8390
|
+
/* @__PURE__ */ N(
|
8399
8391
|
Dt,
|
8400
8392
|
{
|
8401
8393
|
showConfirmation: i,
|
@@ -8408,24 +8400,24 @@ const im = (e) => {
|
|
8408
8400
|
},
|
8409
8401
|
children: [
|
8410
8402
|
/* @__PURE__ */ c("p", { className: "m-0", children: "Are you sure you want to delete the following chat:" }),
|
8411
|
-
/* @__PURE__ */
|
8412
|
-
/* @__PURE__ */
|
8403
|
+
/* @__PURE__ */ N("ul", { className: "m-0", children: [
|
8404
|
+
/* @__PURE__ */ N("li", { children: [
|
8413
8405
|
"Timestamp:",
|
8414
8406
|
" ",
|
8415
8407
|
/* @__PURE__ */ c("span", { className: "text-lg", children: l.current && l.current.timestamp })
|
8416
8408
|
] }),
|
8417
|
-
/* @__PURE__ */
|
8409
|
+
/* @__PURE__ */ N("li", { children: [
|
8418
8410
|
"First message:",
|
8419
8411
|
" ",
|
8420
|
-
/* @__PURE__ */ c("span", { className: "text-lg", children: (
|
8412
|
+
/* @__PURE__ */ c("span", { className: "text-lg", children: (T = l.current) == null ? void 0 : T.message })
|
8421
8413
|
] })
|
8422
8414
|
] })
|
8423
8415
|
]
|
8424
8416
|
}
|
8425
8417
|
),
|
8426
8418
|
/* @__PURE__ */ c("div", { className: Kn, children: /* @__PURE__ */ c(Na, { containerId: "history-table" }) }),
|
8427
|
-
/* @__PURE__ */
|
8428
|
-
/* @__PURE__ */ c(Xc, { children: /* @__PURE__ */
|
8419
|
+
/* @__PURE__ */ N(Qc, { stickyHeader: !0, stickyFooter: !0, compact: !0, children: [
|
8420
|
+
/* @__PURE__ */ c(Xc, { children: /* @__PURE__ */ N(qr, { children: [
|
8429
8421
|
/* @__PURE__ */ c(Le, { className: "sr-only", children: "Row" }),
|
8430
8422
|
/* @__PURE__ */ c(
|
8431
8423
|
td,
|
@@ -8445,20 +8437,20 @@ const im = (e) => {
|
|
8445
8437
|
/* @__PURE__ */ c(Le, { className: "text-xs sm:text-sm", children: "Provider" }),
|
8446
8438
|
/* @__PURE__ */ c(Le, { className: "text-xs sm:text-sm text-right", children: "Actions" })
|
8447
8439
|
] }) }),
|
8448
|
-
/* @__PURE__ */ c(ed, { children: e.slice(0, f).map((
|
8440
|
+
/* @__PURE__ */ c(ed, { children: e.slice(0, f).map((x, S) => {
|
8449
8441
|
var A, D;
|
8450
|
-
const R =
|
8451
|
-
return ((D =
|
8452
|
-
|
8453
|
-
/* @__PURE__ */
|
8454
|
-
/* @__PURE__ */ c(Le, { children:
|
8442
|
+
const R = x.summary || (x.messages.length > 0 ? (A = x.messages[0]) == null ? void 0 : A.content : ""), O = x.model ? Df(x.model) : null, $ = O ? Nm[O] : null;
|
8443
|
+
return ((D = x == null ? void 0 : x.messages) == null ? void 0 : D.length) > 0 ? /* @__PURE__ */ N(gl, { children: [
|
8444
|
+
S === f - Mo && /* @__PURE__ */ c("tr", { ref: s }),
|
8445
|
+
/* @__PURE__ */ N(qr, { children: [
|
8446
|
+
/* @__PURE__ */ c(Le, { children: S + 1 }),
|
8455
8447
|
/* @__PURE__ */ c(
|
8456
8448
|
Le,
|
8457
8449
|
{
|
8458
8450
|
component: "th",
|
8459
8451
|
scope: "row",
|
8460
8452
|
className: "text-gray-400 sm:whitespace-nowrap text-xs sm:text-sm max-w-20 sm:max-w-none",
|
8461
|
-
children:
|
8453
|
+
children: x.timestamp.split(",")[0]
|
8462
8454
|
}
|
8463
8455
|
),
|
8464
8456
|
/* @__PURE__ */ c(
|
@@ -8478,10 +8470,10 @@ const im = (e) => {
|
|
8478
8470
|
scope: "row",
|
8479
8471
|
className: "text-gray-400",
|
8480
8472
|
align: "center",
|
8481
|
-
children:
|
8473
|
+
children: $ ? /* @__PURE__ */ c($, { size: "size-4 sm:size-5", semantic: !0 }) : null
|
8482
8474
|
}
|
8483
8475
|
),
|
8484
|
-
/* @__PURE__ */
|
8476
|
+
/* @__PURE__ */ N(Le, { align: "right", children: [
|
8485
8477
|
/* @__PURE__ */ c(
|
8486
8478
|
Re,
|
8487
8479
|
{
|
@@ -8492,7 +8484,7 @@ const im = (e) => {
|
|
8492
8484
|
onClick: async () => {
|
8493
8485
|
const B = await n();
|
8494
8486
|
_(
|
8495
|
-
|
8487
|
+
x,
|
8496
8488
|
t,
|
8497
8489
|
r,
|
8498
8490
|
B,
|
@@ -8512,9 +8504,9 @@ const im = (e) => {
|
|
8512
8504
|
onClick: () => {
|
8513
8505
|
var B;
|
8514
8506
|
l.current = {
|
8515
|
-
id:
|
8516
|
-
timestamp:
|
8517
|
-
message:
|
8507
|
+
id: x.id,
|
8508
|
+
timestamp: x.timestamp,
|
8509
|
+
message: x.messages.length > 0 ? (B = x.messages[0]) == null ? void 0 : B.content : ""
|
8518
8510
|
}, d(!i);
|
8519
8511
|
},
|
8520
8512
|
children: /* @__PURE__ */ c("div", { className: "text-red-400", children: /* @__PURE__ */ c(ql, { size: "size-3", monotone: !0 }) })
|
@@ -8522,7 +8514,7 @@ const im = (e) => {
|
|
8522
8514
|
)
|
8523
8515
|
] })
|
8524
8516
|
] })
|
8525
|
-
] }, `${ne.HISTORY.TITLE}-${
|
8517
|
+
] }, `${ne.HISTORY.TITLE}-${x.id}-${S}`) : null;
|
8526
8518
|
}) }),
|
8527
8519
|
/* @__PURE__ */ c(Zc, { children: /* @__PURE__ */ c(qr, { children: /* @__PURE__ */ c(Le, { colSpan: 1e3, children: /* @__PURE__ */ c("div", { children: qt(
|
8528
8520
|
`${e.length} chat`,
|
@@ -8534,7 +8526,7 @@ const im = (e) => {
|
|
8534
8526
|
open: e,
|
8535
8527
|
onOpenChange: t
|
8536
8528
|
}) => {
|
8537
|
-
const { getAccessToken: r, user: a } = Ee(), { dispatch: o } = ee(xe), [n, s] = F([]), l =
|
8529
|
+
const { getAccessToken: r, user: a } = Ee(), { dispatch: o } = ee(xe), [n, s] = F([]), l = M(null), { state: i, dispatch: d } = ee(ir), [f, u] = F(
|
8538
8530
|
i.sortDirection
|
8539
8531
|
), { data: h, refetch: m } = so({
|
8540
8532
|
enabled: e,
|
@@ -8568,7 +8560,7 @@ const im = (e) => {
|
|
8568
8560
|
open: e,
|
8569
8561
|
onOpenChange: t,
|
8570
8562
|
title: el,
|
8571
|
-
children: /* @__PURE__ */
|
8563
|
+
children: /* @__PURE__ */ N(se, { children: [
|
8572
8564
|
/* @__PURE__ */ c("form", { autoComplete: "off", onSubmit: v, children: /* @__PURE__ */ c(
|
8573
8565
|
tl,
|
8574
8566
|
{
|
@@ -8617,7 +8609,7 @@ const im = (e) => {
|
|
8617
8609
|
);
|
8618
8610
|
}, Om = () => {
|
8619
8611
|
const { isAuthenticated: e, user: t, registeringForPasskey: r, authenticationType: a } = Ee(), o = Jt(), n = (t == null ? void 0 : t.username) || "";
|
8620
|
-
return e && n ? /* @__PURE__ */
|
8612
|
+
return e && n ? /* @__PURE__ */ N(se, { children: [
|
8621
8613
|
/* @__PURE__ */ c(
|
8622
8614
|
Ne,
|
8623
8615
|
{
|
@@ -8629,13 +8621,13 @@ const im = (e) => {
|
|
8629
8621
|
})
|
8630
8622
|
}
|
8631
8623
|
),
|
8632
|
-
a !== al.PASSKEY && !ha() && /* @__PURE__ */
|
8624
|
+
a !== al.PASSKEY && !ha() && /* @__PURE__ */ N(
|
8633
8625
|
Ne,
|
8634
8626
|
{
|
8635
8627
|
className: "prose-dark dark:prose-lighter mt-4",
|
8636
|
-
header: /* @__PURE__ */ c("h2", { className: "m-0", children: /* @__PURE__ */
|
8637
|
-
/* @__PURE__ */ c(
|
8638
|
-
/* @__PURE__ */ c(
|
8628
|
+
header: /* @__PURE__ */ c("h2", { className: "m-0", children: /* @__PURE__ */ N(rr, { columnGap: 3, alignVertical: "center", children: [
|
8629
|
+
/* @__PURE__ */ c(Ue, { children: /* @__PURE__ */ c(Do, { size: "size-8" }) }),
|
8630
|
+
/* @__PURE__ */ c(Ue, { children: /* @__PURE__ */ c("div", { children: ne.PREFERENCES.PASSKEY_TITLE }) })
|
8639
8631
|
] }) }),
|
8640
8632
|
children: [
|
8641
8633
|
/* @__PURE__ */ c("p", { children: ne.PREFERENCES.PASSKEY_INSTRUCTIONS }),
|
@@ -8667,7 +8659,7 @@ const im = (e) => {
|
|
8667
8659
|
}
|
8668
8660
|
), Si = "av-text-area", Lm = "av-text-area-wrapper", ia = "av-text-area-helper-text", Mm = "av-text-area__control--right", Dm = "av-text-area__control--left";
|
8669
8661
|
function Bm() {
|
8670
|
-
const e =
|
8662
|
+
const e = M(!1);
|
8671
8663
|
return z(() => (e.current = !0, () => {
|
8672
8664
|
e.current = !1;
|
8673
8665
|
}), []), q(() => e.current, []);
|
@@ -8691,7 +8683,7 @@ const zm = {
|
|
8691
8683
|
right: 0
|
8692
8684
|
};
|
8693
8685
|
function $n(e) {
|
8694
|
-
const t = Bm(), r =
|
8686
|
+
const t = Bm(), r = M(0), a = M(null), [o, n] = F(zm), s = Ie(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
|
8695
8687
|
const i = l[0];
|
8696
8688
|
i && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
8697
8689
|
a.current && t() && n(i.contentRect);
|
@@ -8812,7 +8804,7 @@ function Wm({
|
|
8812
8804
|
visible: l,
|
8813
8805
|
...i
|
8814
8806
|
}) {
|
8815
|
-
const d =
|
8807
|
+
const d = M(null), f = M(null), [u, h] = Gt(Hm, {
|
8816
8808
|
announcement: null
|
8817
8809
|
});
|
8818
8810
|
let m = r;
|
@@ -9033,12 +9025,12 @@ const qm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
9033
9025
|
rightElement: p,
|
9034
9026
|
leftElement: v,
|
9035
9027
|
onChange: w,
|
9036
|
-
onFocus:
|
9028
|
+
onFocus: k,
|
9037
9029
|
onBlur: I,
|
9038
9030
|
...C
|
9039
9031
|
}, _) => {
|
9040
|
-
var
|
9041
|
-
const
|
9032
|
+
var E;
|
9033
|
+
const T = M(null), x = Pm([_, T]), [S, R] = $n(), [O, $] = $n(), A = M(80), D = M(-25), B = M(null), W = M(30), G = M(null), J = Fm({ id: e, prefix: `${Si}-` }), [me, Be] = F(0), [Ce, Xe] = F(0), [lt, je] = F(
|
9042
9034
|
!!(!b && y)
|
9043
9035
|
), Pe = `${t} error, ${y}`, _e = Zm({
|
9044
9036
|
className: n,
|
@@ -9062,19 +9054,19 @@ const qm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
9062
9054
|
}
|
9063
9055
|
});
|
9064
9056
|
}
|
9065
|
-
}),
|
9057
|
+
}), We = (P) => {
|
9066
9058
|
Ut(P.target.value);
|
9067
9059
|
}, H = (P) => {
|
9068
|
-
b && y &&
|
9060
|
+
b && y && je(!0), k && k(P);
|
9069
9061
|
}, ie = (P) => {
|
9070
|
-
b && y && !Se &&
|
9062
|
+
b && y && !Se && je(!1), I && I(P);
|
9071
9063
|
};
|
9072
9064
|
return ge(() => {
|
9073
9065
|
R && R.width && Be(R.width + 18 + 10);
|
9074
9066
|
}, [R]), ge(() => {
|
9075
|
-
|
9076
|
-
}, [
|
9077
|
-
o ||
|
9067
|
+
$ && $.width && Xe($.width + 18 + 10);
|
9068
|
+
}, [$]), ge(() => {
|
9069
|
+
o || T && T.current && Se !== void 0 && (T.current.style.height = "inherit", T.current.style.height = T.current.scrollHeight + "px");
|
9078
9070
|
}, [Se, o]), ge(() => {
|
9079
9071
|
o || setTimeout(() => {
|
9080
9072
|
var P;
|
@@ -9085,9 +9077,9 @@ const qm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
9085
9077
|
}, 0);
|
9086
9078
|
}, [Se, o]), ge(() => {
|
9087
9079
|
var P, V;
|
9088
|
-
if (!o &&
|
9080
|
+
if (!o && T && T.current && Se !== void 0) {
|
9089
9081
|
const { labelOffset: Z, helperTextOffset: K, scrollHeight: le } = ep({
|
9090
|
-
scrollHeight:
|
9082
|
+
scrollHeight: T.current.scrollHeight,
|
9091
9083
|
currentHeight: A.current,
|
9092
9084
|
currentLabelOffset: D.current,
|
9093
9085
|
currentHelperTextOffset: W.current
|
@@ -9100,10 +9092,10 @@ const qm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
9100
9092
|
`${K}px`
|
9101
9093
|
)), A.current = le || A.current;
|
9102
9094
|
}
|
9103
|
-
}, [Se, o]),
|
9095
|
+
}, [Se, o]), $.width > 0 && ((E = B == null ? void 0 : B.current) == null || E.style.setProperty(
|
9104
9096
|
"--tw-translate-x",
|
9105
|
-
`${12 +
|
9106
|
-
)), /* @__PURE__ */
|
9097
|
+
`${12 + $.width + 5}px`
|
9098
|
+
)), /* @__PURE__ */ N("div", { className: _e.wrapper, children: [
|
9107
9099
|
/* @__PURE__ */ c(
|
9108
9100
|
"label",
|
9109
9101
|
{
|
@@ -9116,7 +9108,7 @@ const qm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
9116
9108
|
v && /* @__PURE__ */ c(
|
9117
9109
|
"div",
|
9118
9110
|
{
|
9119
|
-
ref:
|
9111
|
+
ref: O,
|
9120
9112
|
className: _e.leftElement,
|
9121
9113
|
children: v
|
9122
9114
|
}
|
@@ -9124,7 +9116,7 @@ const qm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
9124
9116
|
/* @__PURE__ */ c(
|
9125
9117
|
"textarea",
|
9126
9118
|
{
|
9127
|
-
ref:
|
9119
|
+
ref: x,
|
9128
9120
|
id: J,
|
9129
9121
|
name: t,
|
9130
9122
|
disabled: u,
|
@@ -9142,7 +9134,7 @@ const qm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
9142
9134
|
}
|
9143
9135
|
},
|
9144
9136
|
value: Se,
|
9145
|
-
onChange:
|
9137
|
+
onChange: We,
|
9146
9138
|
onFocus: H,
|
9147
9139
|
onBlur: ie,
|
9148
9140
|
...C
|
@@ -9170,7 +9162,7 @@ const qm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
9170
9162
|
p && /* @__PURE__ */ c(
|
9171
9163
|
"div",
|
9172
9164
|
{
|
9173
|
-
ref:
|
9165
|
+
ref: S,
|
9174
9166
|
className: _e.rightElement,
|
9175
9167
|
children: p
|
9176
9168
|
}
|
@@ -9282,7 +9274,7 @@ const tp = "av-toggle", rp = () => g("peer", "h-6", "w-11", "rounded-full"), ap
|
|
9282
9274
|
}), f = (u) => {
|
9283
9275
|
t == null || t(u.target.checked);
|
9284
9276
|
};
|
9285
|
-
return /* @__PURE__ */
|
9277
|
+
return /* @__PURE__ */ N("label", { className: d.wrapper, children: [
|
9286
9278
|
/* @__PURE__ */ c(
|
9287
9279
|
"input",
|
9288
9280
|
{
|
@@ -9348,21 +9340,21 @@ const dp = ({
|
|
9348
9340
|
});
|
9349
9341
|
} catch {
|
9350
9342
|
}
|
9351
|
-
},
|
9343
|
+
}, k = async () => {
|
9352
9344
|
i({
|
9353
9345
|
loadingLocation: !0
|
9354
9346
|
}), y("...");
|
9355
9347
|
try {
|
9356
|
-
const _ = Date.now(),
|
9348
|
+
const _ = Date.now(), E = await cl(), T = await Ot({
|
9357
9349
|
accessToken: await r(),
|
9358
9350
|
type: Ae.GET_LOCATION,
|
9359
9351
|
params: {
|
9360
|
-
latitude:
|
9361
|
-
longitude:
|
9352
|
+
latitude: E.latitude,
|
9353
|
+
longitude: E.longitude
|
9362
9354
|
}
|
9363
|
-
}),
|
9364
|
-
if (
|
9365
|
-
const { city: R, state:
|
9355
|
+
}), S = Date.now() - _;
|
9356
|
+
if (S < 2e3 && await new Promise((R) => setTimeout(R, 2e3 - S)), T.status === 200) {
|
9357
|
+
const { city: R, state: O, country: $, displayName: A } = T.data, D = R && O && $ ? `${R}, ${O}, ${$}` : A;
|
9366
9358
|
i({
|
9367
9359
|
loadingLocation: !1
|
9368
9360
|
}), y(D);
|
@@ -9376,24 +9368,24 @@ const dp = ({
|
|
9376
9368
|
s(), t(!1);
|
9377
9369
|
}, C = ({
|
9378
9370
|
enabled: _ = !1,
|
9379
|
-
privateChat:
|
9380
|
-
clipboardAccess:
|
9381
|
-
...
|
9371
|
+
privateChat: E = !1,
|
9372
|
+
clipboardAccess: T = !1,
|
9373
|
+
...x
|
9382
9374
|
}) => {
|
9383
|
-
f((
|
9384
|
-
const R =
|
9385
|
-
...
|
9375
|
+
f((S) => {
|
9376
|
+
const R = S.prompts, O = {
|
9377
|
+
...x,
|
9386
9378
|
enabled: _,
|
9387
|
-
privateChat:
|
9388
|
-
clipboardAccess:
|
9379
|
+
privateChat: E,
|
9380
|
+
clipboardAccess: T
|
9389
9381
|
};
|
9390
|
-
|
9391
|
-
const
|
9392
|
-
return
|
9393
|
-
...
|
9394
|
-
prompts: [...R, {
|
9395
|
-
} : (R[
|
9396
|
-
...
|
9382
|
+
T ? O.content = O.content + " {{clipboard}}" : O.content = O.content.replace("{{clipboard}}", "");
|
9383
|
+
const $ = R.findIndex((A) => A.slot === x.slot);
|
9384
|
+
return $ === -1 ? {
|
9385
|
+
...S,
|
9386
|
+
prompts: [...R, { ...O }]
|
9387
|
+
} : (R[$] = O, {
|
9388
|
+
...S,
|
9397
9389
|
prompts: [...R]
|
9398
9390
|
});
|
9399
9391
|
});
|
@@ -9407,14 +9399,14 @@ const dp = ({
|
|
9407
9399
|
open: e,
|
9408
9400
|
onOpenChange: I,
|
9409
9401
|
title: sl,
|
9410
|
-
footer: /* @__PURE__ */
|
9402
|
+
footer: /* @__PURE__ */ N(
|
9411
9403
|
rr,
|
9412
9404
|
{
|
9413
9405
|
columnGap: 2,
|
9414
9406
|
alignHorizontal: "flex-end",
|
9415
9407
|
className: "pb-8 sm:pb-0",
|
9416
9408
|
children: [
|
9417
|
-
/* @__PURE__ */ c(
|
9409
|
+
/* @__PURE__ */ c(Ue, { children: /* @__PURE__ */ c(
|
9418
9410
|
pt,
|
9419
9411
|
{
|
9420
9412
|
mode: "dark",
|
@@ -9424,7 +9416,7 @@ const dp = ({
|
|
9424
9416
|
children: "Cancel"
|
9425
9417
|
}
|
9426
9418
|
) }),
|
9427
|
-
/* @__PURE__ */ c(
|
9419
|
+
/* @__PURE__ */ c(Ue, { children: /* @__PURE__ */ c(
|
9428
9420
|
pt,
|
9429
9421
|
{
|
9430
9422
|
mode: "dark",
|
@@ -9439,8 +9431,8 @@ const dp = ({
|
|
9439
9431
|
]
|
9440
9432
|
}
|
9441
9433
|
),
|
9442
|
-
children: /* @__PURE__ */
|
9443
|
-
/* @__PURE__ */
|
9434
|
+
children: /* @__PURE__ */ N(se, { children: [
|
9435
|
+
/* @__PURE__ */ N(
|
9444
9436
|
Ne,
|
9445
9437
|
{
|
9446
9438
|
header: ne.SETTINGS_DETAILS.TITLE,
|
@@ -9461,13 +9453,13 @@ const dp = ({
|
|
9461
9453
|
]
|
9462
9454
|
}
|
9463
9455
|
),
|
9464
|
-
/* @__PURE__ */
|
9456
|
+
/* @__PURE__ */ N(
|
9465
9457
|
Ne,
|
9466
9458
|
{
|
9467
9459
|
header: "Custom Instructions",
|
9468
9460
|
className: "prose-dark dark:prose-lighter mt-4",
|
9469
9461
|
children: [
|
9470
|
-
/* @__PURE__ */
|
9462
|
+
/* @__PURE__ */ N("p", { className: "text-sm", children: [
|
9471
9463
|
"What would you like ",
|
9472
9464
|
/* @__PURE__ */ c("em", { children: il }),
|
9473
9465
|
" to know about you to provide better responses?"
|
@@ -9491,7 +9483,7 @@ const dp = ({
|
|
9491
9483
|
]
|
9492
9484
|
}
|
9493
9485
|
),
|
9494
|
-
/* @__PURE__ */
|
9486
|
+
/* @__PURE__ */ N(
|
9495
9487
|
Ne,
|
9496
9488
|
{
|
9497
9489
|
header: "Location",
|
@@ -9518,21 +9510,21 @@ const dp = ({
|
|
9518
9510
|
size: "small",
|
9519
9511
|
noBorder: !0,
|
9520
9512
|
disabled: l.loadingLocation,
|
9521
|
-
onClick:
|
9513
|
+
onClick: k,
|
9522
9514
|
children: l.loadingLocation ? "Detecting..." : "Auto-detect"
|
9523
9515
|
}
|
9524
9516
|
)
|
9525
9517
|
]
|
9526
9518
|
}
|
9527
9519
|
),
|
9528
|
-
/* @__PURE__ */
|
9520
|
+
/* @__PURE__ */ N(
|
9529
9521
|
Ne,
|
9530
9522
|
{
|
9531
9523
|
header: ne.SETTINGS_PROMPTS.TITLE,
|
9532
9524
|
className: "prose-dark dark:prose-lighter mt-4",
|
9533
9525
|
children: [
|
9534
9526
|
/* @__PURE__ */ c("p", { className: "text-sm", children: ll }),
|
9535
|
-
d.prompts && d.prompts.slice(0, 3).map((_) => /* @__PURE__ */
|
9527
|
+
d.prompts && d.prompts.slice(0, 3).map((_) => /* @__PURE__ */ N(
|
9536
9528
|
Ne,
|
9537
9529
|
{
|
9538
9530
|
mode: "dark",
|
@@ -9549,10 +9541,10 @@ const dp = ({
|
|
9549
9541
|
noBorder: !0,
|
9550
9542
|
label: "Enabled",
|
9551
9543
|
name: _.slot.toString(),
|
9552
|
-
onChange: (
|
9544
|
+
onChange: (E) => {
|
9553
9545
|
C({
|
9554
9546
|
..._,
|
9555
|
-
enabled:
|
9547
|
+
enabled: E
|
9556
9548
|
});
|
9557
9549
|
},
|
9558
9550
|
checked: _.enabled
|
@@ -9566,10 +9558,10 @@ const dp = ({
|
|
9566
9558
|
noBorder: !0,
|
9567
9559
|
label: "Private Chat",
|
9568
9560
|
name: `private-${_.slot.toString()}`,
|
9569
|
-
onChange: (
|
9561
|
+
onChange: (E) => {
|
9570
9562
|
C({
|
9571
9563
|
..._,
|
9572
|
-
privateChat:
|
9564
|
+
privateChat: E
|
9573
9565
|
});
|
9574
9566
|
},
|
9575
9567
|
checked: _.privateChat
|
@@ -9583,10 +9575,10 @@ const dp = ({
|
|
9583
9575
|
noBorder: !0,
|
9584
9576
|
label: "Use Clipboard",
|
9585
9577
|
name: `clipboard-${_.slot.toString()}`,
|
9586
|
-
onChange: (
|
9578
|
+
onChange: (E) => {
|
9587
9579
|
C({
|
9588
9580
|
..._,
|
9589
|
-
clipboardAccess:
|
9581
|
+
clipboardAccess: E
|
9590
9582
|
});
|
9591
9583
|
},
|
9592
9584
|
checked: _.clipboardAccess
|
@@ -9604,7 +9596,7 @@ const dp = ({
|
|
9604
9596
|
) : null;
|
9605
9597
|
}, dt = [0, 3, 6, 9], up = Xa(() => import(
|
9606
9598
|
/* webpackChunkName: "LazyChart" */
|
9607
|
-
"./Chart.
|
9599
|
+
"./Chart.CAf8jkY7.js"
|
9608
9600
|
)), fp = ({
|
9609
9601
|
open: e,
|
9610
9602
|
onOpenChange: t
|
@@ -9631,7 +9623,7 @@ const dp = ({
|
|
9631
9623
|
open: e,
|
9632
9624
|
onOpenChange: t,
|
9633
9625
|
title: dl,
|
9634
|
-
children: /* @__PURE__ */
|
9626
|
+
children: /* @__PURE__ */ N(se, { children: [
|
9635
9627
|
/* @__PURE__ */ c(
|
9636
9628
|
Ne,
|
9637
9629
|
{
|
@@ -9659,10 +9651,10 @@ const dp = ({
|
|
9659
9651
|
{
|
9660
9652
|
header: ne.MAIN_STATISTICS.USAGE,
|
9661
9653
|
className: "prose-dark dark:prose-lighter mt-4 min-h-[535px]",
|
9662
|
-
children: i && l && l.usage && l.usage.series && l.usage.series.length ? /* @__PURE__ */
|
9654
|
+
children: i && l && l.usage && l.usage.series && l.usage.series.length ? /* @__PURE__ */ N(Qa, { fallback: /* @__PURE__ */ c("div", {}), children: [
|
9663
9655
|
/* @__PURE__ */ c("div", { className: "pt-4" }),
|
9664
9656
|
/* @__PURE__ */ c(up, { usage: l.usage.series, page: f }),
|
9665
|
-
/* @__PURE__ */ c(rr, { className: "mt-2", alignHorizontal: "center", children: /* @__PURE__ */
|
9657
|
+
/* @__PURE__ */ c(rr, { className: "mt-2", alignHorizontal: "center", children: /* @__PURE__ */ N(Ue, { children: [
|
9666
9658
|
/* @__PURE__ */ c(
|
9667
9659
|
pt,
|
9668
9660
|
{
|
@@ -9697,7 +9689,7 @@ const dp = ({
|
|
9697
9689
|
o(!a);
|
9698
9690
|
}, w = () => {
|
9699
9691
|
s(!n);
|
9700
|
-
},
|
9692
|
+
}, k = () => {
|
9701
9693
|
i(!l);
|
9702
9694
|
}, I = () => {
|
9703
9695
|
f(!d);
|
@@ -9710,10 +9702,10 @@ const dp = ({
|
|
9710
9702
|
(async () => {
|
9711
9703
|
if (!at())
|
9712
9704
|
return;
|
9713
|
-
const
|
9714
|
-
y(
|
9705
|
+
const E = await r(), T = await qn(E, [Yn.REASONING]);
|
9706
|
+
y(T);
|
9715
9707
|
})();
|
9716
|
-
}, [r]), /* @__PURE__ */
|
9708
|
+
}, [r]), /* @__PURE__ */ N(se, { children: [
|
9717
9709
|
/* @__PURE__ */ c(
|
9718
9710
|
Dt,
|
9719
9711
|
{
|
@@ -9733,7 +9725,7 @@ const dp = ({
|
|
9733
9725
|
l && /* @__PURE__ */ c(Am, { open: l, onOpenChange: i }),
|
9734
9726
|
d && /* @__PURE__ */ c(Sm, { open: d, onOpenChange: f }),
|
9735
9727
|
u && /* @__PURE__ */ c(fp, { open: u, onOpenChange: h }),
|
9736
|
-
/* @__PURE__ */ c("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */
|
9728
|
+
/* @__PURE__ */ c("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ N(
|
9737
9729
|
rr,
|
9738
9730
|
{
|
9739
9731
|
alignHorizontal: "space-between",
|
@@ -9741,19 +9733,19 @@ const dp = ({
|
|
9741
9733
|
rowGap: 0,
|
9742
9734
|
columnGap: 0,
|
9743
9735
|
children: [
|
9744
|
-
/* @__PURE__ */ c(
|
9745
|
-
/* @__PURE__ */ c(
|
9736
|
+
/* @__PURE__ */ c(Ue, { children: /* @__PURE__ */ c(um, { className: " mr-4 sm:mr-2" }) }),
|
9737
|
+
/* @__PURE__ */ c(Ue, { children: at() && /* @__PURE__ */ N(se, { children: [
|
9746
9738
|
m && /* @__PURE__ */ c(Ti, { className: "mr-4 sm:mr-2" }),
|
9747
9739
|
/* @__PURE__ */ c(wi, { className: "mr-4 sm:mr-2" }),
|
9748
9740
|
/* @__PURE__ */ c(Ei, {})
|
9749
9741
|
] }) }),
|
9750
|
-
/* @__PURE__ */ c(
|
9742
|
+
/* @__PURE__ */ c(Ue, { children: /* @__PURE__ */ c(
|
9751
9743
|
it,
|
9752
9744
|
{
|
9753
9745
|
label: "Profile, Settings, etc.",
|
9754
9746
|
mode: "light",
|
9755
9747
|
placement: "left",
|
9756
|
-
trigger: /* @__PURE__ */
|
9748
|
+
trigger: /* @__PURE__ */ N(
|
9757
9749
|
Hr,
|
9758
9750
|
{
|
9759
9751
|
mode: "dark",
|
@@ -9762,7 +9754,7 @@ const dp = ({
|
|
9762
9754
|
defaultPlacement: "bottom-end",
|
9763
9755
|
children: [
|
9764
9756
|
/* @__PURE__ */ c(
|
9765
|
-
|
9757
|
+
qe,
|
9766
9758
|
{
|
9767
9759
|
label: "Profile",
|
9768
9760
|
onClick: v,
|
@@ -9770,7 +9762,7 @@ const dp = ({
|
|
9770
9762
|
}
|
9771
9763
|
),
|
9772
9764
|
/* @__PURE__ */ c(
|
9773
|
-
|
9765
|
+
qe,
|
9774
9766
|
{
|
9775
9767
|
label: "Settings",
|
9776
9768
|
onClick: w,
|
@@ -9778,15 +9770,15 @@ const dp = ({
|
|
9778
9770
|
}
|
9779
9771
|
),
|
9780
9772
|
/* @__PURE__ */ c(
|
9781
|
-
|
9773
|
+
qe,
|
9782
9774
|
{
|
9783
9775
|
label: "History",
|
9784
|
-
onClick:
|
9776
|
+
onClick: k,
|
9785
9777
|
icon: /* @__PURE__ */ c(Kl, {})
|
9786
9778
|
}
|
9787
9779
|
),
|
9788
9780
|
/* @__PURE__ */ c(
|
9789
|
-
|
9781
|
+
qe,
|
9790
9782
|
{
|
9791
9783
|
label: "Usage",
|
9792
9784
|
onClick: C,
|
@@ -9794,17 +9786,17 @@ const dp = ({
|
|
9794
9786
|
}
|
9795
9787
|
),
|
9796
9788
|
/* @__PURE__ */ c(
|
9797
|
-
|
9789
|
+
qe,
|
9798
9790
|
{
|
9799
9791
|
label: "About",
|
9800
9792
|
onClick: I,
|
9801
9793
|
icon: /* @__PURE__ */ c(Ql, {})
|
9802
9794
|
}
|
9803
9795
|
),
|
9804
|
-
!e && /* @__PURE__ */
|
9796
|
+
!e && /* @__PURE__ */ N(se, { children: [
|
9805
9797
|
/* @__PURE__ */ c(sm, {}),
|
9806
9798
|
/* @__PURE__ */ c(
|
9807
|
-
|
9799
|
+
qe,
|
9808
9800
|
{
|
9809
9801
|
label: "Log out",
|
9810
9802
|
onClick: _,
|
@@ -10132,7 +10124,7 @@ const dp = ({
|
|
10132
10124
|
});
|
10133
10125
|
Oi.displayName = "BaseButton";
|
10134
10126
|
function Cp() {
|
10135
|
-
const e =
|
10127
|
+
const e = M(!1);
|
10136
10128
|
return z(() => (e.current = !0, () => {
|
10137
10129
|
e.current = !1;
|
10138
10130
|
}), []), q(() => e.current, []);
|
@@ -10156,7 +10148,7 @@ const Np = {
|
|
10156
10148
|
right: 0
|
10157
10149
|
};
|
10158
10150
|
function la(e) {
|
10159
|
-
const t = Cp(), r =
|
10151
|
+
const t = Cp(), r = M(0), a = M(null), [o, n] = F(Np), s = Ie(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
|
10160
10152
|
const i = l[0];
|
10161
10153
|
i && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
10162
10154
|
a.current && t() && n(i.contentRect);
|
@@ -10201,7 +10193,7 @@ const Rp = {
|
|
10201
10193
|
radius: p = "large",
|
10202
10194
|
variant: v = "primary",
|
10203
10195
|
iconClassName: w,
|
10204
|
-
animated:
|
10196
|
+
animated: k = !1,
|
10205
10197
|
...I
|
10206
10198
|
}, C) => {
|
10207
10199
|
const _ = Ep({
|
@@ -10220,22 +10212,22 @@ const Rp = {
|
|
10220
10212
|
align: b,
|
10221
10213
|
radius: p,
|
10222
10214
|
variant: v,
|
10223
|
-
animated:
|
10224
|
-
}),
|
10215
|
+
animated: k
|
10216
|
+
}), E = xp({ mode: r, raw: l, iconClassName: w }), T = Tp({ animated: k }), [x, S] = la(), [R, O] = la(), [$, A] = la(), D = M(0), B = M(null), W = Sp([C, B]);
|
10225
10217
|
return ge(() => {
|
10226
|
-
|
10227
|
-
}, [A,
|
10228
|
-
B && B.current &&
|
10218
|
+
$ && $.current && k && (D.current = A.width + Ap[u] + (i ? 0 : Op));
|
10219
|
+
}, [A, $, u, i, k]), ge(() => {
|
10220
|
+
B && B.current && k && (h && x && S.width > 0 ? (x.current && (x.current.style.opacity = "100"), B.current.style.width = `${S.width + D.current}px`) : m && O.width > 0 ? (R.current && (R.current.style.opacity = "100"), B.current.style.width = `${O.width + D.current}px`) : (x.current && (x.current.style.opacity = "0"), R.current && (R.current.style.opacity = "0"), B.current.style.width = `${Rp[u]}px`));
|
10229
10221
|
}, [
|
10230
|
-
|
10222
|
+
S,
|
10231
10223
|
h,
|
10232
|
-
|
10233
|
-
|
10224
|
+
x,
|
10225
|
+
O,
|
10234
10226
|
m,
|
10235
10227
|
R,
|
10236
10228
|
u,
|
10237
|
-
|
10238
|
-
]), /* @__PURE__ */
|
10229
|
+
k
|
10230
|
+
]), /* @__PURE__ */ N(
|
10239
10231
|
Oi,
|
10240
10232
|
{
|
10241
10233
|
ref: W,
|
@@ -10250,17 +10242,17 @@ const Rp = {
|
|
10250
10242
|
{
|
10251
10243
|
label: m,
|
10252
10244
|
labelRef: R,
|
10253
|
-
labelClass:
|
10245
|
+
labelClass: T,
|
10254
10246
|
labelInnerClass: "pr-2"
|
10255
10247
|
}
|
10256
10248
|
),
|
10257
|
-
/* @__PURE__ */ c("span", { ref:
|
10249
|
+
/* @__PURE__ */ c("span", { ref: $, className: E, children: e }),
|
10258
10250
|
/* @__PURE__ */ c(
|
10259
10251
|
Dn,
|
10260
10252
|
{
|
10261
10253
|
label: h,
|
10262
|
-
labelRef:
|
10263
|
-
labelClass:
|
10254
|
+
labelRef: x,
|
10255
|
+
labelClass: T,
|
10264
10256
|
labelInnerClass: "pl-2"
|
10265
10257
|
}
|
10266
10258
|
)
|
@@ -10339,7 +10331,7 @@ const $i = ({
|
|
10339
10331
|
...i
|
10340
10332
|
}) => {
|
10341
10333
|
const d = g(n, a);
|
10342
|
-
return /* @__PURE__ */ c(se, { children: /* @__PURE__ */
|
10334
|
+
return /* @__PURE__ */ c(se, { children: /* @__PURE__ */ N(
|
10343
10335
|
"svg",
|
10344
10336
|
{
|
10345
10337
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -10376,7 +10368,7 @@ const Lp = ({
|
|
10376
10368
|
title: r,
|
10377
10369
|
monotone: a,
|
10378
10370
|
...o
|
10379
|
-
}) => /* @__PURE__ */
|
10371
|
+
}) => /* @__PURE__ */ N(
|
10380
10372
|
$i,
|
10381
10373
|
{
|
10382
10374
|
defaultViewBox: "0 0 448 512",
|
@@ -10525,10 +10517,10 @@ const Dp = ({ kind: e, noMaxWidth: t }) => g("px-4 py-2", {
|
|
10525
10517
|
}, 3e3)), () => {
|
10526
10518
|
clearTimeout(p);
|
10527
10519
|
};
|
10528
|
-
}, [u]), /* @__PURE__ */
|
10529
|
-
/* @__PURE__ */
|
10520
|
+
}, [u]), /* @__PURE__ */ N("div", { className: m.wrapper, children: [
|
10521
|
+
/* @__PURE__ */ N("div", { children: [
|
10530
10522
|
/* @__PURE__ */ c("div", { className: m.main, children: e }),
|
10531
|
-
o && Object.keys(o).map((p, v) => o[p] ? /* @__PURE__ */ c("div", { className: "prose-p:m-0", children: /* @__PURE__ */
|
10523
|
+
o && Object.keys(o).map((p, v) => o[p] ? /* @__PURE__ */ c("div", { className: "prose-p:m-0", children: /* @__PURE__ */ N("p", { className: m.footer, children: [
|
10532
10524
|
p,
|
10533
10525
|
": ",
|
10534
10526
|
o[p]
|
@@ -10589,8 +10581,8 @@ const Bn = "av-spinner", Fp = ({
|
|
10589
10581
|
"fill-copy-dark dark:fill-copy-accent": t === "system",
|
10590
10582
|
"fill-copy-accent dark:fill-copy-dark": t === "alt-system"
|
10591
10583
|
});
|
10592
|
-
return /* @__PURE__ */
|
10593
|
-
r === "dots" && /* @__PURE__ */
|
10584
|
+
return /* @__PURE__ */ N("div", { ref: e, className: o, role: "status", children: [
|
10585
|
+
r === "dots" && /* @__PURE__ */ N("svg", { className: "h-8 w-8", children: [
|
10594
10586
|
/* @__PURE__ */ c("circle", { className: n, cx: "6", cy: "50%", r: "3" }),
|
10595
10587
|
/* @__PURE__ */ c("circle", { className: n, cx: "50%", cy: "50%", r: "3" }),
|
10596
10588
|
/* @__PURE__ */ c("circle", { className: n, cx: "80%", cy: "50%", r: "3" })
|
@@ -10965,7 +10957,7 @@ const Di = U.forwardRef(
|
|
10965
10957
|
);
|
10966
10958
|
Di.displayName = "Button";
|
10967
10959
|
function eg() {
|
10968
|
-
const e =
|
10960
|
+
const e = M(!1);
|
10969
10961
|
return z(() => (e.current = !0, () => {
|
10970
10962
|
e.current = !1;
|
10971
10963
|
}), []), q(() => e.current, []);
|
@@ -10989,7 +10981,7 @@ const rg = {
|
|
10989
10981
|
right: 0
|
10990
10982
|
};
|
10991
10983
|
function ca(e) {
|
10992
|
-
const t = eg(), r =
|
10984
|
+
const t = eg(), r = M(0), a = M(null), [o, n] = F(rg), s = Ie(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
|
10993
10985
|
const i = l[0];
|
10994
10986
|
i && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
10995
10987
|
a.current && t() && n(i.contentRect);
|
@@ -11034,7 +11026,7 @@ const ag = {
|
|
11034
11026
|
radius: p = "large",
|
11035
11027
|
variant: v = "primary",
|
11036
11028
|
iconClassName: w,
|
11037
|
-
animated:
|
11029
|
+
animated: k = !1,
|
11038
11030
|
...I
|
11039
11031
|
}, C) => {
|
11040
11032
|
const _ = Mi({
|
@@ -11053,22 +11045,22 @@ const ag = {
|
|
11053
11045
|
align: b,
|
11054
11046
|
radius: p,
|
11055
11047
|
variant: v,
|
11056
|
-
animated:
|
11057
|
-
}),
|
11048
|
+
animated: k
|
11049
|
+
}), E = Qp({ mode: r, raw: l, iconClassName: w }), T = Xp({ animated: k }), [x, S] = ca(), [R, O] = ca(), [$, A] = ca(), D = M(0), B = M(null), W = tg([C, B]);
|
11058
11050
|
return ge(() => {
|
11059
|
-
|
11060
|
-
}, [A,
|
11061
|
-
B && B.current &&
|
11051
|
+
$ && $.current && k && (D.current = A.width + og[u] + (i ? 0 : ng));
|
11052
|
+
}, [A, $, u, i, k]), ge(() => {
|
11053
|
+
B && B.current && k && (h && x && S.width > 0 ? (x.current && (x.current.style.opacity = "100"), B.current.style.width = `${S.width + D.current}px`) : m && O.width > 0 ? (R.current && (R.current.style.opacity = "100"), B.current.style.width = `${O.width + D.current}px`) : (x.current && (x.current.style.opacity = "0"), R.current && (R.current.style.opacity = "0"), B.current.style.width = `${ag[u]}px`));
|
11062
11054
|
}, [
|
11063
|
-
|
11055
|
+
S,
|
11064
11056
|
h,
|
11065
|
-
|
11066
|
-
|
11057
|
+
x,
|
11058
|
+
O,
|
11067
11059
|
m,
|
11068
11060
|
R,
|
11069
11061
|
u,
|
11070
|
-
|
11071
|
-
]), /* @__PURE__ */
|
11062
|
+
k
|
11063
|
+
]), /* @__PURE__ */ N(
|
11072
11064
|
Io,
|
11073
11065
|
{
|
11074
11066
|
ref: W,
|
@@ -11083,17 +11075,17 @@ const ag = {
|
|
11083
11075
|
{
|
11084
11076
|
label: m,
|
11085
11077
|
labelRef: R,
|
11086
|
-
labelClass:
|
11078
|
+
labelClass: T,
|
11087
11079
|
labelInnerClass: "pr-2"
|
11088
11080
|
}
|
11089
11081
|
),
|
11090
|
-
/* @__PURE__ */ c("span", { ref:
|
11082
|
+
/* @__PURE__ */ c("span", { ref: $, className: E, children: e }),
|
11091
11083
|
/* @__PURE__ */ c(
|
11092
11084
|
zn,
|
11093
11085
|
{
|
11094
11086
|
label: h,
|
11095
|
-
labelRef:
|
11096
|
-
labelClass:
|
11087
|
+
labelRef: x,
|
11088
|
+
labelClass: T,
|
11097
11089
|
labelInnerClass: "pl-2"
|
11098
11090
|
}
|
11099
11091
|
)
|
@@ -11186,7 +11178,7 @@ const ig = 200, lg = ({
|
|
11186
11178
|
string: e,
|
11187
11179
|
idealLength: t
|
11188
11180
|
});
|
11189
|
-
return /* @__PURE__ */
|
11181
|
+
return /* @__PURE__ */ N("span", { style: { wordBreak: "break-word" }, children: [
|
11190
11182
|
o ? e : s,
|
11191
11183
|
l && /* @__PURE__ */ c(
|
11192
11184
|
Di,
|
@@ -11229,7 +11221,7 @@ const dg = ({ content: e }) => /* @__PURE__ */ c(
|
|
11229
11221
|
), Vn = 2, ug = Xa(
|
11230
11222
|
() => import(
|
11231
11223
|
/* webpackChunkName: "LazyMessageAssistant" */
|
11232
|
-
"./ChatBubbleAssistant.
|
11224
|
+
"./ChatBubbleAssistant.BwoYWFHP.js"
|
11233
11225
|
)
|
11234
11226
|
), fg = U.memo(
|
11235
11227
|
({
|
@@ -11280,11 +11272,11 @@ const dg = ({ content: e }) => /* @__PURE__ */ c(
|
|
11280
11272
|
);
|
11281
11273
|
}) }) : null;
|
11282
11274
|
}, mg = () => {
|
11283
|
-
const { isAuthenticated: e } = Ee(), { ref: t, inViewport: r } = gc(), a =
|
11275
|
+
const { isAuthenticated: e } = Ee(), { ref: t, inViewport: r } = gc(), a = M(null), o = M(null), {
|
11284
11276
|
state: { footerPosition: n, footerHeight: s, footerOffset: l }
|
11285
11277
|
} = ee(po), {
|
11286
11278
|
state: { loading: i }
|
11287
|
-
} = ee(xe), d =
|
11279
|
+
} = ee(xe), d = M(0), f = ul({
|
11288
11280
|
isAuthenticated: e,
|
11289
11281
|
extraClass: "rounded-b-md relative"
|
11290
11282
|
}), u = q(() => {
|
@@ -11297,8 +11289,8 @@ const dg = ({ content: e }) => /* @__PURE__ */ c(
|
|
11297
11289
|
i && u();
|
11298
11290
|
}, [i, u]), z(() => {
|
11299
11291
|
d.current = n === Yt ? s + l + Xn + fl : 0;
|
11300
|
-
}, [n, s, l]), /* @__PURE__ */
|
11301
|
-
/* @__PURE__ */
|
11292
|
+
}, [n, s, l]), /* @__PURE__ */ N(se, { children: [
|
11293
|
+
/* @__PURE__ */ N("div", { className: f, ref: a, children: [
|
11302
11294
|
/* @__PURE__ */ c(hl, {}),
|
11303
11295
|
/* @__PURE__ */ c(hg, {}),
|
11304
11296
|
/* @__PURE__ */ c("div", { ref: t, className: "scroll-marker" }),
|
@@ -11323,7 +11315,7 @@ function Pi({
|
|
11323
11315
|
initialValue: ""
|
11324
11316
|
}), [m] = yt({
|
11325
11317
|
key: gt + Jn,
|
11326
|
-
initialValue:
|
11318
|
+
initialValue: Ve.ASC
|
11327
11319
|
}), [y, b] = Gt(Pd, {
|
11328
11320
|
footerPosition: "FOOTER_TOP",
|
11329
11321
|
footerHeight: 0,
|
@@ -11332,7 +11324,7 @@ function Pi({
|
|
11332
11324
|
searchString: h,
|
11333
11325
|
sortedCell: "timestamp",
|
11334
11326
|
sortDirection: m
|
11335
|
-
}), [w,
|
11327
|
+
}), [w, k] = Gt(Fd, {
|
11336
11328
|
prompt: "",
|
11337
11329
|
lastTriggeredTimestamp: 0
|
11338
11330
|
}), [I, C] = Gt(zd, {
|
@@ -11352,10 +11344,10 @@ function Pi({
|
|
11352
11344
|
getAccessToken: a
|
11353
11345
|
});
|
11354
11346
|
return z(() => {
|
11355
|
-
var
|
11356
|
-
(
|
11357
|
-
var
|
11358
|
-
(
|
11347
|
+
var E;
|
11348
|
+
(E = document.getElementById("logo")) == null || E.classList.add("fadeOut"), setTimeout(() => {
|
11349
|
+
var T;
|
11350
|
+
(T = document.getElementById("root")) == null || T.classList.replace("app-hidden", "fadeIn");
|
11359
11351
|
}, 500);
|
11360
11352
|
}), z(() => {
|
11361
11353
|
_ && _.provider && C({
|
@@ -11366,9 +11358,9 @@ function Pi({
|
|
11366
11358
|
});
|
11367
11359
|
}, [_]), z(() => {
|
11368
11360
|
if (y.footerPosition === "FOOTER_BOTTOM") {
|
11369
|
-
const
|
11361
|
+
const E = `calc(${l.height}px + 20px)`;
|
11370
11362
|
n(
|
11371
|
-
`calc(100svh - ${t}px - ${
|
11363
|
+
`calc(100svh - ${t}px - ${E} - ${y.footerHeight}px - ${y.footerOffset}px - ${Xn}px)`
|
11372
11364
|
);
|
11373
11365
|
} else
|
11374
11366
|
n(`${Po}px`);
|
@@ -11382,7 +11374,7 @@ function Pi({
|
|
11382
11374
|
children: /* @__PURE__ */ c(po.Provider, { value: { state: y, dispatch: b }, children: /* @__PURE__ */ c(
|
11383
11375
|
mo.Provider,
|
11384
11376
|
{
|
11385
|
-
value: { state: w, dispatch:
|
11377
|
+
value: { state: w, dispatch: k },
|
11386
11378
|
children: /* @__PURE__ */ c(
|
11387
11379
|
xe.Provider,
|
11388
11380
|
{
|
@@ -11392,7 +11384,7 @@ function Pi({
|
|
11392
11384
|
setChatId: d,
|
11393
11385
|
setInitialMessages: u
|
11394
11386
|
},
|
11395
|
-
children: /* @__PURE__ */
|
11387
|
+
children: /* @__PURE__ */ N(
|
11396
11388
|
Ef,
|
11397
11389
|
{
|
11398
11390
|
value: {
|
@@ -11411,7 +11403,7 @@ function Pi({
|
|
11411
11403
|
}
|
11412
11404
|
},
|
11413
11405
|
children: [
|
11414
|
-
/* @__PURE__ */
|
11406
|
+
/* @__PURE__ */ N("div", { className: Kn, children: [
|
11415
11407
|
/* @__PURE__ */ c(Na, { containerId: "toggle-save" }),
|
11416
11408
|
/* @__PURE__ */ c(Na, { containerId: "toggle-provider" })
|
11417
11409
|
] }),
|