teodor-new-chat-ui 4.3.426 → 4.3.428
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/index.esm.js
CHANGED
|
@@ -2,14 +2,14 @@ var Rg = Object.defineProperty;
|
|
|
2
2
|
var Ig = (e, t, n) => t in e ? Rg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var Wl = (e, t, n) => Ig(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import * as h from "react";
|
|
5
|
-
import O, { useMemo as Ze, createContext as Ar, useContext as jr, useState as fe, useRef as $e, useCallback as ge, useEffect as nt, useReducer as Ng, useLayoutEffect as Ag, createElement as
|
|
5
|
+
import O, { useMemo as Ze, createContext as Ar, useContext as jr, useState as fe, useRef as $e, useCallback as ge, useEffect as nt, useReducer as Ng, useLayoutEffect as Ag, createElement as Ko, memo as jg, useImperativeHandle as _g, forwardRef as Pg, isValidElement as ma } from "react";
|
|
6
6
|
import { Slot as Mg, createSlot as Cr, createSlottable as Og } from "@radix-ui/react-slot";
|
|
7
7
|
import { cva as fo } from "class-variance-authority";
|
|
8
8
|
import { clsx as Dg } from "clsx";
|
|
9
9
|
import { twMerge as Lg } from "tailwind-merge";
|
|
10
10
|
import * as po from "react-dom";
|
|
11
11
|
import Ii from "react-dom";
|
|
12
|
-
import { ChevronRight as Mu, Check as
|
|
12
|
+
import { ChevronRight as Mu, Check as Cs, Circle as $g, Square as Fg, Send as Bg, X as Xn, ExternalLink as Wa, Download as zg, Image as Hg, FileText as Vl, Loader as Ni, Clock as ga, CheckCircle as Ug, Search as Ou, ChevronUp as Ai, ChevronDown as Es, Paperclip as Va, Bot as xa, Wrench as Wg, User as Vg, ChevronLeft as Kg, Copy as Kl, Edit as ql, RotateCcw as Gl, Loader2 as qn, Edit3 as ho, Plus as qg, FileSpreadsheet as Gg, Calendar as Yg, MoreHorizontal as Du, Share2 as Xg, Trash2 as Jg, MessageSquare as Lu, Maximize2 as Zg, Minimize2 as Qg, History as ex } from "lucide-react";
|
|
13
13
|
const Yl = 120;
|
|
14
14
|
function tx(e) {
|
|
15
15
|
if (!Array.isArray(e))
|
|
@@ -576,17 +576,17 @@ function ux() {
|
|
|
576
576
|
}
|
|
577
577
|
function He(I) {
|
|
578
578
|
try {
|
|
579
|
-
return
|
|
579
|
+
return lt(I), !1;
|
|
580
580
|
} catch {
|
|
581
581
|
return !0;
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function lt(I) {
|
|
585
585
|
return "" + I;
|
|
586
586
|
}
|
|
587
587
|
function st(I) {
|
|
588
588
|
if (He(I))
|
|
589
|
-
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(I)),
|
|
589
|
+
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(I)), lt(I);
|
|
590
590
|
}
|
|
591
591
|
var et = b.ReactCurrentOwner, Ct = {
|
|
592
592
|
key: !0,
|
|
@@ -932,7 +932,7 @@ const { toString: dx } = Object.prototype, { getPrototypeOf: ji } = Object, { it
|
|
|
932
932
|
const n = dx.call(t);
|
|
933
933
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
934
934
|
})(/* @__PURE__ */ Object.create(null)), pn = (e) => (e = e.toLowerCase(), (t) => Rs(t) === e), Is = (e) => (t) => typeof t === e, { isArray: _r } = Array, Er = Is("undefined");
|
|
935
|
-
function
|
|
935
|
+
function mo(e) {
|
|
936
936
|
return e !== null && !Er(e) && e.constructor !== null && !Er(e.constructor) && Vt(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
937
937
|
}
|
|
938
938
|
const zu = pn("ArrayBuffer");
|
|
@@ -940,25 +940,25 @@ function fx(e) {
|
|
|
940
940
|
let t;
|
|
941
941
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && zu(e.buffer), t;
|
|
942
942
|
}
|
|
943
|
-
const px = Is("string"), Vt = Is("function"), Hu = Is("number"),
|
|
943
|
+
const px = Is("string"), Vt = Is("function"), Hu = Is("number"), go = (e) => e !== null && typeof e == "object", hx = (e) => e === !0 || e === !1, qo = (e) => {
|
|
944
944
|
if (Rs(e) !== "object")
|
|
945
945
|
return !1;
|
|
946
946
|
const t = ji(e);
|
|
947
947
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Bu in e) && !(ks in e);
|
|
948
948
|
}, mx = (e) => {
|
|
949
|
-
if (!
|
|
949
|
+
if (!go(e) || mo(e))
|
|
950
950
|
return !1;
|
|
951
951
|
try {
|
|
952
952
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
953
953
|
} catch {
|
|
954
954
|
return !1;
|
|
955
955
|
}
|
|
956
|
-
}, gx = pn("Date"), xx = pn("File"), vx = pn("Blob"), wx = pn("FileList"), bx = (e) =>
|
|
956
|
+
}, gx = pn("Date"), xx = pn("File"), vx = pn("Blob"), wx = pn("FileList"), bx = (e) => go(e) && Vt(e.pipe), yx = (e) => {
|
|
957
957
|
let t;
|
|
958
958
|
return e && (typeof FormData == "function" && e instanceof FormData || Vt(e.append) && ((t = Rs(e)) === "formdata" || // detect form-data instance
|
|
959
959
|
t === "object" && Vt(e.toString) && e.toString() === "[object FormData]"));
|
|
960
960
|
}, Sx = pn("URLSearchParams"), [Tx, Cx, Ex, kx] = ["ReadableStream", "Request", "Response", "Headers"].map(pn), Rx = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
961
|
-
function
|
|
961
|
+
function xo(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
962
962
|
if (e === null || typeof e > "u")
|
|
963
963
|
return;
|
|
964
964
|
let r, o;
|
|
@@ -966,7 +966,7 @@ function go(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
966
966
|
for (r = 0, o = e.length; r < o; r++)
|
|
967
967
|
t.call(null, e[r], r, e);
|
|
968
968
|
else {
|
|
969
|
-
if (
|
|
969
|
+
if (mo(e))
|
|
970
970
|
return;
|
|
971
971
|
const s = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = s.length;
|
|
972
972
|
let i;
|
|
@@ -975,7 +975,7 @@ function go(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
975
975
|
}
|
|
976
976
|
}
|
|
977
977
|
function Uu(e, t) {
|
|
978
|
-
if (
|
|
978
|
+
if (mo(e))
|
|
979
979
|
return null;
|
|
980
980
|
t = t.toLowerCase();
|
|
981
981
|
const n = Object.keys(e);
|
|
@@ -989,13 +989,13 @@ const Gn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typ
|
|
|
989
989
|
function qa() {
|
|
990
990
|
const { caseless: e, skipUndefined: t } = Wu(this) && this || {}, n = {}, r = (o, s) => {
|
|
991
991
|
const a = e && Uu(n, s) || s;
|
|
992
|
-
|
|
992
|
+
qo(n[a]) && qo(o) ? n[a] = qa(n[a], o) : qo(o) ? n[a] = qa({}, o) : _r(o) ? n[a] = o.slice() : (!t || !Er(o)) && (n[a] = o);
|
|
993
993
|
};
|
|
994
994
|
for (let o = 0, s = arguments.length; o < s; o++)
|
|
995
|
-
arguments[o] &&
|
|
995
|
+
arguments[o] && xo(arguments[o], r);
|
|
996
996
|
return n;
|
|
997
997
|
}
|
|
998
|
-
const Ix = (e, t, n, { allOwnKeys: r } = {}) => (
|
|
998
|
+
const Ix = (e, t, n, { allOwnKeys: r } = {}) => (xo(t, (o, s) => {
|
|
999
999
|
n && Vt(o) ? e[s] = Fu(o, n) : e[s] = o;
|
|
1000
1000
|
}, { allOwnKeys: r }), e), Nx = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ax = (e, t, n, r) => {
|
|
1001
1001
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
@@ -1044,7 +1044,7 @@ const Ix = (e, t, n, { allOwnKeys: r } = {}) => (go(t, (o, s) => {
|
|
|
1044
1044
|
}
|
|
1045
1045
|
), ec = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Fx = pn("RegExp"), Vu = (e, t) => {
|
|
1046
1046
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
1047
|
-
|
|
1047
|
+
xo(n, (o, s) => {
|
|
1048
1048
|
let a;
|
|
1049
1049
|
(a = t(o, s, e)) !== !1 && (r[s] = a || o);
|
|
1050
1050
|
}), Object.defineProperties(e, r);
|
|
@@ -1077,15 +1077,15 @@ function Wx(e) {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
const Vx = (e) => {
|
|
1079
1079
|
const t = new Array(10), n = (r, o) => {
|
|
1080
|
-
if (
|
|
1080
|
+
if (go(r)) {
|
|
1081
1081
|
if (t.indexOf(r) >= 0)
|
|
1082
1082
|
return;
|
|
1083
|
-
if (
|
|
1083
|
+
if (mo(r))
|
|
1084
1084
|
return r;
|
|
1085
1085
|
if (!("toJSON" in r)) {
|
|
1086
1086
|
t[o] = r;
|
|
1087
1087
|
const s = _r(r) ? [] : {};
|
|
1088
|
-
return
|
|
1088
|
+
return xo(r, (a, i) => {
|
|
1089
1089
|
const l = n(a, o + 1);
|
|
1090
1090
|
!Er(l) && (s[i] = l);
|
|
1091
1091
|
}), t[o] = void 0, s;
|
|
@@ -1094,7 +1094,7 @@ const Vx = (e) => {
|
|
|
1094
1094
|
return r;
|
|
1095
1095
|
};
|
|
1096
1096
|
return n(e, 0);
|
|
1097
|
-
}, Kx = pn("AsyncFunction"), qx = (e) => e && (
|
|
1097
|
+
}, Kx = pn("AsyncFunction"), qx = (e) => e && (go(e) || Vt(e)) && Vt(e.then) && Vt(e.catch), Ku = ((e, t) => e ? setImmediate : t ? ((n, r) => (Gn.addEventListener("message", ({ source: o, data: s }) => {
|
|
1098
1098
|
o === Gn && s === n && r.length && r.shift()();
|
|
1099
1099
|
}, !1), (o) => {
|
|
1100
1100
|
r.push(o), Gn.postMessage(n, "*");
|
|
@@ -1104,14 +1104,14 @@ const Vx = (e) => {
|
|
|
1104
1104
|
), Gx = typeof queueMicrotask < "u" ? queueMicrotask.bind(Gn) : typeof process < "u" && process.nextTick || Ku, Yx = (e) => e != null && Vt(e[ks]), H = {
|
|
1105
1105
|
isArray: _r,
|
|
1106
1106
|
isArrayBuffer: zu,
|
|
1107
|
-
isBuffer:
|
|
1107
|
+
isBuffer: mo,
|
|
1108
1108
|
isFormData: yx,
|
|
1109
1109
|
isArrayBufferView: fx,
|
|
1110
1110
|
isString: px,
|
|
1111
1111
|
isNumber: Hu,
|
|
1112
1112
|
isBoolean: hx,
|
|
1113
|
-
isObject:
|
|
1114
|
-
isPlainObject:
|
|
1113
|
+
isObject: go,
|
|
1114
|
+
isPlainObject: qo,
|
|
1115
1115
|
isEmptyObject: mx,
|
|
1116
1116
|
isReadableStream: Tx,
|
|
1117
1117
|
isRequest: Cx,
|
|
@@ -1127,7 +1127,7 @@ const Vx = (e) => {
|
|
|
1127
1127
|
isURLSearchParams: Sx,
|
|
1128
1128
|
isTypedArray: Mx,
|
|
1129
1129
|
isFileList: wx,
|
|
1130
|
-
forEach:
|
|
1130
|
+
forEach: xo,
|
|
1131
1131
|
merge: qa,
|
|
1132
1132
|
extend: Ix,
|
|
1133
1133
|
trim: Rx,
|
|
@@ -1464,7 +1464,7 @@ function dv(e, t, n) {
|
|
|
1464
1464
|
}
|
|
1465
1465
|
return (n || JSON.stringify)(e);
|
|
1466
1466
|
}
|
|
1467
|
-
const
|
|
1467
|
+
const vo = {
|
|
1468
1468
|
transitional: Zu,
|
|
1469
1469
|
adapter: ["xhr", "http", "fetch"],
|
|
1470
1470
|
transformRequest: [function(t, n) {
|
|
@@ -1493,7 +1493,7 @@ const xo = {
|
|
|
1493
1493
|
return s || o ? (n.setContentType("application/json", !1), dv(t)) : t;
|
|
1494
1494
|
}],
|
|
1495
1495
|
transformResponse: [function(t) {
|
|
1496
|
-
const n = this.transitional ||
|
|
1496
|
+
const n = this.transitional || vo.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
1497
1497
|
if (H.isResponse(t) || H.isReadableStream(t))
|
|
1498
1498
|
return t;
|
|
1499
1499
|
if (t && H.isString(t) && (r && !this.responseType || o)) {
|
|
@@ -1531,7 +1531,7 @@ const xo = {
|
|
|
1531
1531
|
}
|
|
1532
1532
|
};
|
|
1533
1533
|
H.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
1534
|
-
|
|
1534
|
+
vo.headers[e] = {};
|
|
1535
1535
|
});
|
|
1536
1536
|
const fv = H.toObjectSet([
|
|
1537
1537
|
"age",
|
|
@@ -1562,8 +1562,8 @@ const fv = H.toObjectSet([
|
|
|
1562
1562
|
function Ur(e) {
|
|
1563
1563
|
return e && String(e).trim().toLowerCase();
|
|
1564
1564
|
}
|
|
1565
|
-
function
|
|
1566
|
-
return e === !1 || e == null ? e : H.isArray(e) ? e.map(
|
|
1565
|
+
function Go(e) {
|
|
1566
|
+
return e === !1 || e == null ? e : H.isArray(e) ? e.map(Go) : String(e);
|
|
1567
1567
|
}
|
|
1568
1568
|
function hv(e) {
|
|
1569
1569
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -1608,7 +1608,7 @@ let Kt = class {
|
|
|
1608
1608
|
if (!d)
|
|
1609
1609
|
throw new Error("header name must be a non-empty string");
|
|
1610
1610
|
const p = H.findKey(o, d);
|
|
1611
|
-
(!p || o[p] === void 0 || c === !0 || c === void 0 && o[p] !== !1) && (o[p || l] =
|
|
1611
|
+
(!p || o[p] === void 0 || c === !0 || c === void 0 && o[p] !== !1) && (o[p || l] = Go(i));
|
|
1612
1612
|
}
|
|
1613
1613
|
const a = (i, l) => H.forEach(i, (c, d) => s(c, d, l));
|
|
1614
1614
|
if (H.isPlainObject(t) || t instanceof this.constructor)
|
|
@@ -1676,11 +1676,11 @@ let Kt = class {
|
|
|
1676
1676
|
return H.forEach(this, (o, s) => {
|
|
1677
1677
|
const a = H.findKey(r, s);
|
|
1678
1678
|
if (a) {
|
|
1679
|
-
n[a] =
|
|
1679
|
+
n[a] = Go(o), delete n[s];
|
|
1680
1680
|
return;
|
|
1681
1681
|
}
|
|
1682
1682
|
const i = t ? gv(s) : String(s).trim();
|
|
1683
|
-
i !== s && delete n[s], n[i] =
|
|
1683
|
+
i !== s && delete n[s], n[i] = Go(o), r[i] = !0;
|
|
1684
1684
|
}), this;
|
|
1685
1685
|
}
|
|
1686
1686
|
concat(...t) {
|
|
@@ -1735,7 +1735,7 @@ H.reduceDescriptors(Kt.prototype, ({ value: e }, t) => {
|
|
|
1735
1735
|
});
|
|
1736
1736
|
H.freezeMethods(Kt);
|
|
1737
1737
|
function wa(e, t) {
|
|
1738
|
-
const n = this ||
|
|
1738
|
+
const n = this || vo, r = t || n, o = Kt.from(r.headers);
|
|
1739
1739
|
let s = r.data;
|
|
1740
1740
|
return H.forEach(e, function(i) {
|
|
1741
1741
|
s = i.call(n, s, o.normalize(), t ? t.status : void 0);
|
|
@@ -1792,7 +1792,7 @@ function bv(e, t) {
|
|
|
1792
1792
|
}, r - p)));
|
|
1793
1793
|
}, () => o && a(o)];
|
|
1794
1794
|
}
|
|
1795
|
-
const
|
|
1795
|
+
const as = (e, t, n = 3) => {
|
|
1796
1796
|
let r = 0;
|
|
1797
1797
|
const o = wv(50, 250);
|
|
1798
1798
|
return bv((s) => {
|
|
@@ -1992,7 +1992,7 @@ const rd = (e) => {
|
|
|
1992
1992
|
)), x = null;
|
|
1993
1993
|
}, s === void 0 && a.setContentType(null), "setRequestHeader" in x && H.forEach(a.toJSON(), function(C, T) {
|
|
1994
1994
|
x.setRequestHeader(T, C);
|
|
1995
|
-
}), H.isUndefined(o.withCredentials) || (x.withCredentials = !!o.withCredentials), i && i !== "json" && (x.responseType = o.responseType), c && ([m, v] =
|
|
1995
|
+
}), H.isUndefined(o.withCredentials) || (x.withCredentials = !!o.withCredentials), i && i !== "json" && (x.responseType = o.responseType), c && ([m, v] = as(c, !0), x.addEventListener("progress", m)), l && x.upload && ([p, f] = as(l), x.upload.addEventListener("progress", p), x.upload.addEventListener("loadend", f)), (o.cancelToken || o.signal) && (d = (y) => {
|
|
1996
1996
|
x && (r(!y || y.type ? new Pr(null, e, x) : y), x.abort(), x = null);
|
|
1997
1997
|
}, o.cancelToken && o.cancelToken.subscribe(d), o.signal && (o.signal.aborted ? d() : o.signal.addEventListener("abort", d)));
|
|
1998
1998
|
const w = vv(o.url);
|
|
@@ -2082,7 +2082,7 @@ const rd = (e) => {
|
|
|
2082
2082
|
}, {
|
|
2083
2083
|
highWaterMark: 2
|
|
2084
2084
|
});
|
|
2085
|
-
}, cc = 64 * 1024, { isFunction:
|
|
2085
|
+
}, cc = 64 * 1024, { isFunction: Mo } = H, jv = (({ Request: e, Response: t }) => ({
|
|
2086
2086
|
Request: e,
|
|
2087
2087
|
Response: t
|
|
2088
2088
|
}))(H.global), {
|
|
@@ -2098,10 +2098,10 @@ const rd = (e) => {
|
|
|
2098
2098
|
e = H.merge.call({
|
|
2099
2099
|
skipUndefined: !0
|
|
2100
2100
|
}, jv, e);
|
|
2101
|
-
const { fetch: t, Request: n, Response: r } = e, o = t ?
|
|
2101
|
+
const { fetch: t, Request: n, Response: r } = e, o = t ? Mo(t) : typeof fetch == "function", s = Mo(n), a = Mo(r);
|
|
2102
2102
|
if (!o)
|
|
2103
2103
|
return !1;
|
|
2104
|
-
const i = o &&
|
|
2104
|
+
const i = o && Mo(uc), l = o && (typeof dc == "function" ? /* @__PURE__ */ ((v) => (g) => v.encode(g))(new dc()) : async (v) => new Uint8Array(await new n(v).arrayBuffer())), c = s && i && fc(() => {
|
|
2105
2105
|
let v = !1;
|
|
2106
2106
|
const g = new n(Mt.origin, {
|
|
2107
2107
|
body: new uc(),
|
|
@@ -2171,7 +2171,7 @@ const rd = (e) => {
|
|
|
2171
2171
|
if (H.isFormData(b) && (_ = J.headers.get("content-type")) && R.setContentType(_), J.body) {
|
|
2172
2172
|
const [P, K] = sc(
|
|
2173
2173
|
U,
|
|
2174
|
-
|
|
2174
|
+
as(ac(S))
|
|
2175
2175
|
);
|
|
2176
2176
|
b = lc(J.body, cc, P, K);
|
|
2177
2177
|
}
|
|
@@ -2196,7 +2196,7 @@ const rd = (e) => {
|
|
|
2196
2196
|
});
|
|
2197
2197
|
const _ = H.toFiniteNumber(j.headers.get("content-length")), [P, K] = T && sc(
|
|
2198
2198
|
_,
|
|
2199
|
-
|
|
2199
|
+
as(ac(T), !0)
|
|
2200
2200
|
) || [];
|
|
2201
2201
|
j = new r(
|
|
2202
2202
|
lc(j.body, cc, P, () => {
|
|
@@ -2294,7 +2294,7 @@ function hc(e) {
|
|
|
2294
2294
|
return ba(e), e.headers = Kt.from(e.headers), e.data = wa.call(
|
|
2295
2295
|
e,
|
|
2296
2296
|
e.transformRequest
|
|
2297
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), sd.getAdapter(e.adapter ||
|
|
2297
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), sd.getAdapter(e.adapter || vo.adapter, e)(e).then(function(r) {
|
|
2298
2298
|
return ba(e), r.data = wa.call(
|
|
2299
2299
|
e,
|
|
2300
2300
|
e.transformResponse,
|
|
@@ -2353,10 +2353,10 @@ function Ov(e, t, n) {
|
|
|
2353
2353
|
throw new _e("Unknown option " + s, _e.ERR_BAD_OPTION);
|
|
2354
2354
|
}
|
|
2355
2355
|
}
|
|
2356
|
-
const
|
|
2356
|
+
const Yo = {
|
|
2357
2357
|
assertOptions: Ov,
|
|
2358
2358
|
validators: As
|
|
2359
|
-
}, gn =
|
|
2359
|
+
}, gn = Yo.validators;
|
|
2360
2360
|
let Zn = class {
|
|
2361
2361
|
constructor(t) {
|
|
2362
2362
|
this.defaults = t || {}, this.interceptors = {
|
|
@@ -2392,16 +2392,16 @@ let Zn = class {
|
|
|
2392
2392
|
_request(t, n) {
|
|
2393
2393
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = tr(this.defaults, n);
|
|
2394
2394
|
const { transitional: r, paramsSerializer: o, headers: s } = n;
|
|
2395
|
-
r !== void 0 &&
|
|
2395
|
+
r !== void 0 && Yo.assertOptions(r, {
|
|
2396
2396
|
silentJSONParsing: gn.transitional(gn.boolean),
|
|
2397
2397
|
forcedJSONParsing: gn.transitional(gn.boolean),
|
|
2398
2398
|
clarifyTimeoutError: gn.transitional(gn.boolean)
|
|
2399
2399
|
}, !1), o != null && (H.isFunction(o) ? n.paramsSerializer = {
|
|
2400
2400
|
serialize: o
|
|
2401
|
-
} :
|
|
2401
|
+
} : Yo.assertOptions(o, {
|
|
2402
2402
|
encode: gn.function,
|
|
2403
2403
|
serialize: gn.function
|
|
2404
|
-
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0),
|
|
2404
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Yo.assertOptions(n, {
|
|
2405
2405
|
baseUrl: gn.spelling("baseURL"),
|
|
2406
2406
|
withXsrfToken: gn.spelling("withXSRFToken")
|
|
2407
2407
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -2636,7 +2636,7 @@ function ld(e) {
|
|
|
2636
2636
|
return ld(tr(e, o));
|
|
2637
2637
|
}, n;
|
|
2638
2638
|
}
|
|
2639
|
-
const St = ld(
|
|
2639
|
+
const St = ld(vo);
|
|
2640
2640
|
St.Axios = Zn;
|
|
2641
2641
|
St.CanceledError = Pr;
|
|
2642
2642
|
St.CancelToken = Dv;
|
|
@@ -2678,13 +2678,13 @@ function Rn(e) {
|
|
|
2678
2678
|
const n = (e != null && e.trim() ? e.trim() : "/api/chat").replace(/\/+$/, "");
|
|
2679
2679
|
return n ? n.endsWith("/chat") ? n : `${n}/chat` : "/api/chat";
|
|
2680
2680
|
}
|
|
2681
|
-
let
|
|
2681
|
+
let is = null;
|
|
2682
2682
|
const Za = /* @__PURE__ */ new Set();
|
|
2683
2683
|
function Fv() {
|
|
2684
|
-
return
|
|
2684
|
+
return is;
|
|
2685
2685
|
}
|
|
2686
2686
|
function Qa(e) {
|
|
2687
|
-
|
|
2687
|
+
is = e, Za.forEach((t) => t(e));
|
|
2688
2688
|
}
|
|
2689
2689
|
function Bv(e) {
|
|
2690
2690
|
return Za.add(e), () => Za.delete(e);
|
|
@@ -2696,7 +2696,7 @@ const zv = 3e4, Hv = 9e4, on = St.create({
|
|
|
2696
2696
|
timeout: zv,
|
|
2697
2697
|
withCredentials: !0
|
|
2698
2698
|
});
|
|
2699
|
-
on.interceptors.request.use((e) => (
|
|
2699
|
+
on.interceptors.request.use((e) => (is && (e.headers.Authorization = `Bearer ${is}`), e));
|
|
2700
2700
|
on.interceptors.response.use(
|
|
2701
2701
|
(e) => {
|
|
2702
2702
|
if (typeof window < "u" && (e != null && e.data))
|
|
@@ -3009,7 +3009,7 @@ function Xv(e = {}) {
|
|
|
3009
3009
|
throw (re = A == null ? void 0 : A.onConnectionError) == null || re.call(A, he), q = !0, j = "error", N = he, new Error(he);
|
|
3010
3010
|
}
|
|
3011
3011
|
w(!0);
|
|
3012
|
-
const
|
|
3012
|
+
const lt = He.body.getReader(), st = new TextDecoder();
|
|
3013
3013
|
let et = "", Ct = [];
|
|
3014
3014
|
T.current = 0, x(0);
|
|
3015
3015
|
let xt = 0, dt = null;
|
|
@@ -3036,7 +3036,7 @@ function Xv(e = {}) {
|
|
|
3036
3036
|
...S.current,
|
|
3037
3037
|
threadId: Ue
|
|
3038
3038
|
}), (W = A == null ? void 0 : A.onOpen) == null || W.call(A, { threadId: Ue, created: Ye }); ; ) {
|
|
3039
|
-
const { value: vt, done: $t } = await
|
|
3039
|
+
const { value: vt, done: $t } = await lt.read();
|
|
3040
3040
|
if ($t) break;
|
|
3041
3041
|
et += st.decode(vt, { stream: !0 }), et.length > Rt && (et = "", console.warn("Stream buffer reset: exceeded 1MB"));
|
|
3042
3042
|
let te;
|
|
@@ -3128,10 +3128,10 @@ function Xv(e = {}) {
|
|
|
3128
3128
|
}
|
|
3129
3129
|
} finally {
|
|
3130
3130
|
try {
|
|
3131
|
-
await
|
|
3131
|
+
await lt.cancel();
|
|
3132
3132
|
} catch {
|
|
3133
3133
|
} finally {
|
|
3134
|
-
(xe =
|
|
3134
|
+
(xe = lt.releaseLock) == null || xe.call(lt);
|
|
3135
3135
|
}
|
|
3136
3136
|
dt !== null && typeof window < "u" && window.cancelAnimationFrame(dt), clearInterval(kt);
|
|
3137
3137
|
}
|
|
@@ -3153,8 +3153,8 @@ function Xv(e = {}) {
|
|
|
3153
3153
|
lastStateHistory: Ge,
|
|
3154
3154
|
error: N
|
|
3155
3155
|
});
|
|
3156
|
-
} catch (
|
|
3157
|
-
console.warn("[use-chat] onClosed callback failed",
|
|
3156
|
+
} catch (lt) {
|
|
3157
|
+
console.warn("[use-chat] onClosed callback failed", lt);
|
|
3158
3158
|
}
|
|
3159
3159
|
l(!1), w(!1), y.current = null, T.current = 0, x(0), S.current = null;
|
|
3160
3160
|
}
|
|
@@ -3179,7 +3179,7 @@ function Xv(e = {}) {
|
|
|
3179
3179
|
};
|
|
3180
3180
|
}
|
|
3181
3181
|
const Jv = ["detail", "message", "error", "description", "title"];
|
|
3182
|
-
function
|
|
3182
|
+
function Xo(e) {
|
|
3183
3183
|
if (!e) return null;
|
|
3184
3184
|
if (typeof e == "string") {
|
|
3185
3185
|
const t = e.trim();
|
|
@@ -3187,7 +3187,7 @@ function Yo(e) {
|
|
|
3187
3187
|
}
|
|
3188
3188
|
if (Array.isArray(e)) {
|
|
3189
3189
|
for (const t of e) {
|
|
3190
|
-
const n =
|
|
3190
|
+
const n = Xo(t);
|
|
3191
3191
|
if (n)
|
|
3192
3192
|
return n;
|
|
3193
3193
|
}
|
|
@@ -3196,12 +3196,12 @@ function Yo(e) {
|
|
|
3196
3196
|
if (typeof e == "object") {
|
|
3197
3197
|
const t = e;
|
|
3198
3198
|
for (const n of Jv) {
|
|
3199
|
-
const r =
|
|
3199
|
+
const r = Xo(t[n]);
|
|
3200
3200
|
if (r)
|
|
3201
3201
|
return r;
|
|
3202
3202
|
}
|
|
3203
3203
|
if ("errors" in t) {
|
|
3204
|
-
const n =
|
|
3204
|
+
const n = Xo(t.errors);
|
|
3205
3205
|
if (n) return n;
|
|
3206
3206
|
}
|
|
3207
3207
|
}
|
|
@@ -3209,7 +3209,7 @@ function Yo(e) {
|
|
|
3209
3209
|
}
|
|
3210
3210
|
function Zv(e) {
|
|
3211
3211
|
if (!e) return "Request failed";
|
|
3212
|
-
const t = e.response, n =
|
|
3212
|
+
const t = e.response, n = Xo(t == null ? void 0 : t.data);
|
|
3213
3213
|
if (n) return n;
|
|
3214
3214
|
if (t != null && t.statusText)
|
|
3215
3215
|
return t.statusText;
|
|
@@ -3429,7 +3429,7 @@ function ew({
|
|
|
3429
3429
|
);
|
|
3430
3430
|
return /* @__PURE__ */ u.jsx(ud.Provider, { value: w, children: e });
|
|
3431
3431
|
}
|
|
3432
|
-
function
|
|
3432
|
+
function wo() {
|
|
3433
3433
|
const e = jr(ud);
|
|
3434
3434
|
if (!e) throw new Error("useThreads must be used within a ThreadsProvider");
|
|
3435
3435
|
return e;
|
|
@@ -3530,7 +3530,7 @@ function Li(e) {
|
|
|
3530
3530
|
toolCallId: r ?? void 0
|
|
3531
3531
|
};
|
|
3532
3532
|
}
|
|
3533
|
-
function
|
|
3533
|
+
function Jo(e) {
|
|
3534
3534
|
if (e == null) return null;
|
|
3535
3535
|
const t = String(e).trim();
|
|
3536
3536
|
return t.length > 0 ? t : null;
|
|
@@ -3623,7 +3623,7 @@ function Sa(e) {
|
|
|
3623
3623
|
return !!(n || r || s);
|
|
3624
3624
|
});
|
|
3625
3625
|
}
|
|
3626
|
-
function
|
|
3626
|
+
function bo(e, t, n) {
|
|
3627
3627
|
return t < 0 || t >= e.length ? e : [...e.slice(0, t), n, ...e.slice(t + 1)];
|
|
3628
3628
|
}
|
|
3629
3629
|
function uw(e) {
|
|
@@ -3691,7 +3691,7 @@ function pw(e, t, n) {
|
|
|
3691
3691
|
for (let r = e.length - 1; r >= 0; r--)
|
|
3692
3692
|
if (e[r].role === "assistant") {
|
|
3693
3693
|
const s = { ...e[r], checkpointId: t, checkpointNs: n ?? void 0 };
|
|
3694
|
-
return
|
|
3694
|
+
return bo(e, r, s);
|
|
3695
3695
|
}
|
|
3696
3696
|
return e;
|
|
3697
3697
|
}
|
|
@@ -3821,7 +3821,7 @@ function Cc(e, t) {
|
|
|
3821
3821
|
return console.debug("[MessageReducer] skipping delta - seq <= lastSeq", { seq: f, lastSeq: m.lastSeq }), e;
|
|
3822
3822
|
const { newParts: v, newMeta: g, changed: x } = dw(l.content, t.delta, m, f);
|
|
3823
3823
|
if (!x) return e;
|
|
3824
|
-
const b = { ...l, content: v }, w =
|
|
3824
|
+
const b = { ...l, content: v }, w = bo(a, i, b), y = !p || p.lastSeq !== g.lastSeq || p.lastText !== g.lastText, C = y ? { ...d, [s]: g } : c;
|
|
3825
3825
|
return y ? {
|
|
3826
3826
|
...e,
|
|
3827
3827
|
messages: w,
|
|
@@ -3943,7 +3943,7 @@ function ww(e, t) {
|
|
|
3943
3943
|
name: o ?? i.name,
|
|
3944
3944
|
additionalKwargs: c
|
|
3945
3945
|
};
|
|
3946
|
-
return { ...e, messages:
|
|
3946
|
+
return { ...e, messages: bo(e.messages, r, d) };
|
|
3947
3947
|
}
|
|
3948
3948
|
const a = hd(s, n, o, t.args);
|
|
3949
3949
|
return { ...e, messages: [...e.messages, a] };
|
|
@@ -3965,7 +3965,7 @@ function bw(e, t) {
|
|
|
3965
3965
|
const a = t.idx;
|
|
3966
3966
|
typeof a == "number" && (o.idx = a);
|
|
3967
3967
|
const i = md(e.messages[r], o);
|
|
3968
|
-
return { ...e, messages:
|
|
3968
|
+
return { ...e, messages: bo(e.messages, r, i) };
|
|
3969
3969
|
}
|
|
3970
3970
|
function yw(e, t) {
|
|
3971
3971
|
const n = $i(t), r = pd(t);
|
|
@@ -3991,7 +3991,7 @@ function yw(e, t) {
|
|
|
3991
3991
|
toolStreaming: !1
|
|
3992
3992
|
}
|
|
3993
3993
|
};
|
|
3994
|
-
return { ...e, messages:
|
|
3994
|
+
return { ...e, messages: bo(o, s, f) };
|
|
3995
3995
|
}
|
|
3996
3996
|
function Sw({
|
|
3997
3997
|
api: e,
|
|
@@ -4245,7 +4245,7 @@ function Cw({
|
|
|
4245
4245
|
isStreaming: s,
|
|
4246
4246
|
onError: a
|
|
4247
4247
|
}) {
|
|
4248
|
-
const { api: i } = js(), { currentThreadId: l } =
|
|
4248
|
+
const { api: i } = js(), { currentThreadId: l } = wo(), { state: c, seed: d, prepend: p, pushUser: m, onEvent: f } = xw(), {
|
|
4249
4249
|
threadCheckpoints: v,
|
|
4250
4250
|
threadTimeline: g,
|
|
4251
4251
|
checkpointIndex: x,
|
|
@@ -4453,7 +4453,7 @@ function Nw({
|
|
|
4453
4453
|
onConnectionError: s,
|
|
4454
4454
|
onToolEnd: a
|
|
4455
4455
|
}) {
|
|
4456
|
-
const { stream: i, stop: l, isStreaming: c, error: d, setToken: p } = n, { setCurrentThreadId: m, currentThreadIdRef: f, addThreadFromEvent: v } =
|
|
4456
|
+
const { stream: i, stop: l, isStreaming: c, error: d, setToken: p } = n, { setCurrentThreadId: m, currentThreadIdRef: f, addThreadFromEvent: v } = wo(), {
|
|
4457
4457
|
checkpoint: g,
|
|
4458
4458
|
timelineCheckpoints: x,
|
|
4459
4459
|
handleStateHistoryEvent: b,
|
|
@@ -4779,7 +4779,7 @@ const $w = fo(
|
|
|
4779
4779
|
size: "default"
|
|
4780
4780
|
}
|
|
4781
4781
|
}
|
|
4782
|
-
),
|
|
4782
|
+
), it = h.forwardRef(
|
|
4783
4783
|
({ className: e, variant: t, size: n, asChild: r = !1, ...o }, s) => {
|
|
4784
4784
|
const a = r ? Mg : "button";
|
|
4785
4785
|
return /* @__PURE__ */ u.jsx(
|
|
@@ -4792,7 +4792,7 @@ const $w = fo(
|
|
|
4792
4792
|
);
|
|
4793
4793
|
}
|
|
4794
4794
|
);
|
|
4795
|
-
|
|
4795
|
+
it.displayName = "Button";
|
|
4796
4796
|
function ae(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
4797
4797
|
return function(o) {
|
|
4798
4798
|
if (e == null || e(o), n === !1 || !o.defaultPrevented)
|
|
@@ -5294,7 +5294,7 @@ function Lt(e) {
|
|
|
5294
5294
|
n((r) => r ?? String(cb++));
|
|
5295
5295
|
}, [e]), t ? `radix-${t}` : "";
|
|
5296
5296
|
}
|
|
5297
|
-
const ub = ["top", "right", "bottom", "left"], Pn = Math.min, Xt = Math.max,
|
|
5297
|
+
const ub = ["top", "right", "bottom", "left"], Pn = Math.min, Xt = Math.max, ls = Math.round, Oo = Math.floor, yn = (e) => ({
|
|
5298
5298
|
x: e,
|
|
5299
5299
|
y: e
|
|
5300
5300
|
}), db = {
|
|
@@ -5335,10 +5335,10 @@ function hb(e, t, n) {
|
|
|
5335
5335
|
n === void 0 && (n = !1);
|
|
5336
5336
|
const r = Or(e), o = Wi(e), s = Ui(o);
|
|
5337
5337
|
let a = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
5338
|
-
return t.reference[s] > t.floating[s] && (a =
|
|
5338
|
+
return t.reference[s] > t.floating[s] && (a = cs(a)), [a, cs(a)];
|
|
5339
5339
|
}
|
|
5340
5340
|
function mb(e) {
|
|
5341
|
-
const t =
|
|
5341
|
+
const t = cs(e);
|
|
5342
5342
|
return [ni(e), t, ni(t)];
|
|
5343
5343
|
}
|
|
5344
5344
|
function ni(e) {
|
|
@@ -5362,7 +5362,7 @@ function wb(e, t, n, r) {
|
|
|
5362
5362
|
let s = vb(Nn(e), n === "start", r);
|
|
5363
5363
|
return o && (s = s.map((a) => a + "-" + o), t && (s = s.concat(s.map(ni)))), s;
|
|
5364
5364
|
}
|
|
5365
|
-
function
|
|
5365
|
+
function cs(e) {
|
|
5366
5366
|
return e.replace(/left|right|bottom|top/g, (t) => db[t]);
|
|
5367
5367
|
}
|
|
5368
5368
|
function bb(e) {
|
|
@@ -5382,7 +5382,7 @@ function Id(e) {
|
|
|
5382
5382
|
left: e
|
|
5383
5383
|
};
|
|
5384
5384
|
}
|
|
5385
|
-
function
|
|
5385
|
+
function us(e) {
|
|
5386
5386
|
const {
|
|
5387
5387
|
x: t,
|
|
5388
5388
|
y: n,
|
|
@@ -5525,7 +5525,7 @@ async function to(e, t) {
|
|
|
5525
5525
|
elementContext: p = "floating",
|
|
5526
5526
|
altBoundary: m = !1,
|
|
5527
5527
|
padding: f = 0
|
|
5528
|
-
} = In(t, e), v = Id(f), x = i[m ? p === "floating" ? "reference" : "floating" : p], b =
|
|
5528
|
+
} = In(t, e), v = Id(f), x = i[m ? p === "floating" ? "reference" : "floating" : p], b = us(await s.getClippingRect({
|
|
5529
5529
|
element: (n = await (s.isElement == null ? void 0 : s.isElement(x))) == null || n ? x : x.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(i.floating)),
|
|
5530
5530
|
boundary: c,
|
|
5531
5531
|
rootBoundary: d,
|
|
@@ -5541,7 +5541,7 @@ async function to(e, t) {
|
|
|
5541
5541
|
} : {
|
|
5542
5542
|
x: 1,
|
|
5543
5543
|
y: 1
|
|
5544
|
-
}, T =
|
|
5544
|
+
}, T = us(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
5545
5545
|
elements: i,
|
|
5546
5546
|
rect: w,
|
|
5547
5547
|
offsetParent: y,
|
|
@@ -5615,7 +5615,7 @@ const Sb = (e) => ({
|
|
|
5615
5615
|
} = In(e, t);
|
|
5616
5616
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
5617
5617
|
return {};
|
|
5618
|
-
const b = Nn(o), w = wn(i), y = Nn(i) === i, C = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), T = m || (y || !g ? [
|
|
5618
|
+
const b = Nn(o), w = wn(i), y = Nn(i) === i, C = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), T = m || (y || !g ? [cs(i)] : mb(i)), S = v !== "none";
|
|
5619
5619
|
!m && S && T.push(...wb(i, g, v, C));
|
|
5620
5620
|
const E = [i, ...T], R = await to(t, x), M = [];
|
|
5621
5621
|
let $ = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
@@ -5941,7 +5941,7 @@ function Bc(e) {
|
|
|
5941
5941
|
return !Ds() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Zt(e).ShadowRoot;
|
|
5942
5942
|
}
|
|
5943
5943
|
const Ab = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
5944
|
-
function
|
|
5944
|
+
function yo(e) {
|
|
5945
5945
|
const {
|
|
5946
5946
|
overflow: t,
|
|
5947
5947
|
overflowX: n,
|
|
@@ -6013,7 +6013,7 @@ function Mn(e) {
|
|
|
6013
6013
|
}
|
|
6014
6014
|
function jd(e) {
|
|
6015
6015
|
const t = Mn(e);
|
|
6016
|
-
return Rr(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Sn(t) &&
|
|
6016
|
+
return Rr(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Sn(t) && yo(t) ? t : jd(t);
|
|
6017
6017
|
}
|
|
6018
6018
|
function no(e, t, n) {
|
|
6019
6019
|
var r;
|
|
@@ -6021,7 +6021,7 @@ function no(e, t, n) {
|
|
|
6021
6021
|
const o = jd(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a = Zt(o);
|
|
6022
6022
|
if (s) {
|
|
6023
6023
|
const i = ri(a);
|
|
6024
|
-
return t.concat(a, a.visualViewport || [],
|
|
6024
|
+
return t.concat(a, a.visualViewport || [], yo(o) ? o : [], i && n ? no(i) : []);
|
|
6025
6025
|
}
|
|
6026
6026
|
return t.concat(o, no(o, [], n));
|
|
6027
6027
|
}
|
|
@@ -6031,7 +6031,7 @@ function ri(e) {
|
|
|
6031
6031
|
function _d(e) {
|
|
6032
6032
|
const t = dn(e);
|
|
6033
6033
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
6034
|
-
const o = Sn(e), s = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, i =
|
|
6034
|
+
const o = Sn(e), s = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, i = ls(n) !== s || ls(r) !== a;
|
|
6035
6035
|
return i && (n = s, r = a), {
|
|
6036
6036
|
width: n,
|
|
6037
6037
|
height: r,
|
|
@@ -6050,7 +6050,7 @@ function yr(e) {
|
|
|
6050
6050
|
height: o,
|
|
6051
6051
|
$: s
|
|
6052
6052
|
} = _d(t);
|
|
6053
|
-
let a = (s ?
|
|
6053
|
+
let a = (s ? ls(n.width) : n.width) / r, i = (s ? ls(n.height) : n.height) / o;
|
|
6054
6054
|
return (!a || !Number.isFinite(a)) && (a = 1), (!i || !Number.isFinite(i)) && (i = 1), {
|
|
6055
6055
|
x: a,
|
|
6056
6056
|
y: i
|
|
@@ -6082,7 +6082,7 @@ function rr(e, t, n, r) {
|
|
|
6082
6082
|
l *= x.x, c *= x.y, d *= x.x, p *= x.y, l += y, c += C, v = Zt(g), g = ri(v);
|
|
6083
6083
|
}
|
|
6084
6084
|
}
|
|
6085
|
-
return
|
|
6085
|
+
return us({
|
|
6086
6086
|
width: d,
|
|
6087
6087
|
height: p,
|
|
6088
6088
|
x: l,
|
|
@@ -6115,7 +6115,7 @@ function zb(e) {
|
|
|
6115
6115
|
scrollTop: 0
|
|
6116
6116
|
}, c = yn(1);
|
|
6117
6117
|
const d = yn(0), p = Sn(r);
|
|
6118
|
-
if ((p || !p && !s) && ((Dr(r) !== "body" ||
|
|
6118
|
+
if ((p || !p && !s) && ((Dr(r) !== "body" || yo(a)) && (l = $s(r)), Sn(r))) {
|
|
6119
6119
|
const f = rr(r);
|
|
6120
6120
|
c = yr(r), d.x = f.x + r.clientLeft, d.y = f.y + r.clientTop;
|
|
6121
6121
|
}
|
|
@@ -6189,7 +6189,7 @@ function Hc(e, t, n) {
|
|
|
6189
6189
|
height: t.height
|
|
6190
6190
|
};
|
|
6191
6191
|
}
|
|
6192
|
-
return
|
|
6192
|
+
return us(r);
|
|
6193
6193
|
}
|
|
6194
6194
|
function Od(e, t) {
|
|
6195
6195
|
const n = Mn(e);
|
|
@@ -6204,7 +6204,7 @@ function qb(e, t) {
|
|
|
6204
6204
|
let a = s ? Mn(e) : e;
|
|
6205
6205
|
for (; un(a) && !Rr(a); ) {
|
|
6206
6206
|
const i = dn(a), l = Vi(a);
|
|
6207
|
-
!l && i.position === "fixed" && (o = null), (s ? !l && !o : !l && i.position === "static" && !!o && Vb.has(o.position) ||
|
|
6207
|
+
!l && i.position === "fixed" && (o = null), (s ? !l && !o : !l && i.position === "static" && !!o && Vb.has(o.position) || yo(a) && !l && Od(e, a)) ? r = r.filter((d) => d !== a) : o = i, a = Mn(a);
|
|
6208
6208
|
}
|
|
6209
6209
|
return t.set(e, r), r;
|
|
6210
6210
|
}
|
|
@@ -6247,7 +6247,7 @@ function Xb(e, t, n) {
|
|
|
6247
6247
|
l.x = Fs(o);
|
|
6248
6248
|
}
|
|
6249
6249
|
if (r || !r && !s)
|
|
6250
|
-
if ((Dr(t) !== "body" ||
|
|
6250
|
+
if ((Dr(t) !== "body" || yo(o)) && (i = $s(t)), r) {
|
|
6251
6251
|
const f = rr(t, !0, s, t);
|
|
6252
6252
|
l.x = f.x + t.clientLeft, l.y = f.y + t.clientTop;
|
|
6253
6253
|
} else o && c();
|
|
@@ -6336,7 +6336,7 @@ function ey(e, t) {
|
|
|
6336
6336
|
} = c;
|
|
6337
6337
|
if (i || t(), !m || !f)
|
|
6338
6338
|
return;
|
|
6339
|
-
const v =
|
|
6339
|
+
const v = Oo(p), g = Oo(o.clientWidth - (d + m)), x = Oo(o.clientHeight - (p + f)), b = Oo(d), y = {
|
|
6340
6340
|
rootMargin: -v + "px " + -g + "px " + -x + "px " + -b + "px",
|
|
6341
6341
|
threshold: Xt(0, Pn(1, l)) || 1
|
|
6342
6342
|
};
|
|
@@ -6415,8 +6415,8 @@ const ny = kb, ry = Rb, oy = Tb, sy = Nb, ay = Cb, Wc = Sb, iy = Ib, ly = (e, t,
|
|
|
6415
6415
|
});
|
|
6416
6416
|
};
|
|
6417
6417
|
var cy = typeof document < "u", uy = function() {
|
|
6418
|
-
},
|
|
6419
|
-
function
|
|
6418
|
+
}, Zo = cy ? Ag : uy;
|
|
6419
|
+
function ds(e, t) {
|
|
6420
6420
|
if (e === t)
|
|
6421
6421
|
return !0;
|
|
6422
6422
|
if (typeof e != typeof t)
|
|
@@ -6428,7 +6428,7 @@ function us(e, t) {
|
|
|
6428
6428
|
if (Array.isArray(e)) {
|
|
6429
6429
|
if (n = e.length, n !== t.length) return !1;
|
|
6430
6430
|
for (r = n; r-- !== 0; )
|
|
6431
|
-
if (!
|
|
6431
|
+
if (!ds(e[r], t[r]))
|
|
6432
6432
|
return !1;
|
|
6433
6433
|
return !0;
|
|
6434
6434
|
}
|
|
@@ -6439,7 +6439,7 @@ function us(e, t) {
|
|
|
6439
6439
|
return !1;
|
|
6440
6440
|
for (r = n; r-- !== 0; ) {
|
|
6441
6441
|
const s = o[r];
|
|
6442
|
-
if (!(s === "_owner" && e.$$typeof) && !
|
|
6442
|
+
if (!(s === "_owner" && e.$$typeof) && !ds(e[s], t[s]))
|
|
6443
6443
|
return !1;
|
|
6444
6444
|
}
|
|
6445
6445
|
return !0;
|
|
@@ -6455,7 +6455,7 @@ function Vc(e, t) {
|
|
|
6455
6455
|
}
|
|
6456
6456
|
function Ra(e) {
|
|
6457
6457
|
const t = h.useRef(e);
|
|
6458
|
-
return
|
|
6458
|
+
return Zo(() => {
|
|
6459
6459
|
t.current = e;
|
|
6460
6460
|
}), t;
|
|
6461
6461
|
}
|
|
@@ -6481,7 +6481,7 @@ function dy(e) {
|
|
|
6481
6481
|
middlewareData: {},
|
|
6482
6482
|
isPositioned: !1
|
|
6483
6483
|
}), [m, f] = h.useState(r);
|
|
6484
|
-
|
|
6484
|
+
ds(m, r) || f(r);
|
|
6485
6485
|
const [v, g] = h.useState(null), [x, b] = h.useState(null), w = h.useCallback((j) => {
|
|
6486
6486
|
j !== S.current && (S.current = j, g(j));
|
|
6487
6487
|
}, []), y = h.useCallback((j) => {
|
|
@@ -6503,21 +6503,21 @@ function dy(e) {
|
|
|
6503
6503
|
// setting it to `true` when `open === false` (must be specified).
|
|
6504
6504
|
isPositioned: V.current !== !1
|
|
6505
6505
|
};
|
|
6506
|
-
k.current && !
|
|
6506
|
+
k.current && !ds(R.current, q) && (R.current = q, po.flushSync(() => {
|
|
6507
6507
|
p(q);
|
|
6508
6508
|
}));
|
|
6509
6509
|
});
|
|
6510
6510
|
}, [m, t, n, B, V]);
|
|
6511
|
-
|
|
6511
|
+
Zo(() => {
|
|
6512
6512
|
c === !1 && R.current.isPositioned && (R.current.isPositioned = !1, p((j) => ({
|
|
6513
6513
|
...j,
|
|
6514
6514
|
isPositioned: !1
|
|
6515
6515
|
})));
|
|
6516
6516
|
}, [c]);
|
|
6517
6517
|
const k = h.useRef(!1);
|
|
6518
|
-
|
|
6518
|
+
Zo(() => (k.current = !0, () => {
|
|
6519
6519
|
k.current = !1;
|
|
6520
|
-
}), []),
|
|
6520
|
+
}), []), Zo(() => {
|
|
6521
6521
|
if (C && (S.current = C), T && (E.current = T), C && T) {
|
|
6522
6522
|
if ($.current)
|
|
6523
6523
|
return $.current(C, T, z);
|
|
@@ -6841,14 +6841,14 @@ function Yd(e) {
|
|
|
6841
6841
|
const [t, n = "center"] = e.split("-");
|
|
6842
6842
|
return [t, n];
|
|
6843
6843
|
}
|
|
6844
|
-
var Xi = Ud, Ji = Vd, Zi = Kd, Qi = Gd, Iy = "Portal",
|
|
6844
|
+
var Xi = Ud, Ji = Vd, Zi = Kd, Qi = Gd, Iy = "Portal", So = h.forwardRef((e, t) => {
|
|
6845
6845
|
var i;
|
|
6846
6846
|
const { container: n, ...r } = e, [o, s] = h.useState(!1);
|
|
6847
6847
|
At(() => s(!0), []);
|
|
6848
6848
|
const a = n || o && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
|
|
6849
6849
|
return a ? Ii.createPortal(/* @__PURE__ */ u.jsx(we.div, { ...r, ref: t }), a) : null;
|
|
6850
6850
|
});
|
|
6851
|
-
|
|
6851
|
+
So.displayName = Iy;
|
|
6852
6852
|
function Ny(e, t) {
|
|
6853
6853
|
return h.useReducer((n, r) => t[n][r] ?? n, e);
|
|
6854
6854
|
}
|
|
@@ -6872,19 +6872,19 @@ function Ay(e) {
|
|
|
6872
6872
|
}
|
|
6873
6873
|
});
|
|
6874
6874
|
return h.useEffect(() => {
|
|
6875
|
-
const c =
|
|
6875
|
+
const c = Do(r.current);
|
|
6876
6876
|
s.current = i === "mounted" ? c : "none";
|
|
6877
6877
|
}, [i]), At(() => {
|
|
6878
6878
|
const c = r.current, d = o.current;
|
|
6879
6879
|
if (d !== e) {
|
|
6880
|
-
const m = s.current, f =
|
|
6880
|
+
const m = s.current, f = Do(c);
|
|
6881
6881
|
e ? l("MOUNT") : f === "none" || (c == null ? void 0 : c.display) === "none" ? l("UNMOUNT") : l(d && m !== f ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
6882
6882
|
}
|
|
6883
6883
|
}, [e, l]), At(() => {
|
|
6884
6884
|
if (t) {
|
|
6885
6885
|
let c;
|
|
6886
6886
|
const d = t.ownerDocument.defaultView ?? window, p = (f) => {
|
|
6887
|
-
const g =
|
|
6887
|
+
const g = Do(r.current).includes(CSS.escape(f.animationName));
|
|
6888
6888
|
if (f.target === t && g && (l("ANIMATION_END"), !o.current)) {
|
|
6889
6889
|
const x = t.style.animationFillMode;
|
|
6890
6890
|
t.style.animationFillMode = "forwards", c = d.setTimeout(() => {
|
|
@@ -6892,7 +6892,7 @@ function Ay(e) {
|
|
|
6892
6892
|
});
|
|
6893
6893
|
}
|
|
6894
6894
|
}, m = (f) => {
|
|
6895
|
-
f.target === t && (s.current =
|
|
6895
|
+
f.target === t && (s.current = Do(r.current));
|
|
6896
6896
|
};
|
|
6897
6897
|
return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", p), t.addEventListener("animationend", p), () => {
|
|
6898
6898
|
d.clearTimeout(c), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", p), t.removeEventListener("animationend", p);
|
|
@@ -6906,7 +6906,7 @@ function Ay(e) {
|
|
|
6906
6906
|
}, [])
|
|
6907
6907
|
};
|
|
6908
6908
|
}
|
|
6909
|
-
function
|
|
6909
|
+
function Do(e) {
|
|
6910
6910
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
6911
6911
|
}
|
|
6912
6912
|
function jy(e) {
|
|
@@ -6914,13 +6914,13 @@ function jy(e) {
|
|
|
6914
6914
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
6915
6915
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
6916
6916
|
}
|
|
6917
|
-
var Ia = "rovingFocusGroup.onEntryFocus", _y = { bubbles: !1, cancelable: !0 },
|
|
6918
|
-
|
|
6917
|
+
var Ia = "rovingFocusGroup.onEntryFocus", _y = { bubbles: !1, cancelable: !0 }, To = "RovingFocusGroup", [oi, Xd, Py] = Ps(To), [My, Jd] = hn(
|
|
6918
|
+
To,
|
|
6919
6919
|
[Py]
|
|
6920
|
-
), [Oy, Dy] = My(
|
|
6920
|
+
), [Oy, Dy] = My(To), Zd = h.forwardRef(
|
|
6921
6921
|
(e, t) => /* @__PURE__ */ u.jsx(oi.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ u.jsx(oi.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ u.jsx(Ly, { ...e, ref: t }) }) })
|
|
6922
6922
|
);
|
|
6923
|
-
Zd.displayName =
|
|
6923
|
+
Zd.displayName = To;
|
|
6924
6924
|
var Ly = h.forwardRef((e, t) => {
|
|
6925
6925
|
const {
|
|
6926
6926
|
__scopeRovingFocusGroup: n,
|
|
@@ -6937,7 +6937,7 @@ var Ly = h.forwardRef((e, t) => {
|
|
|
6937
6937
|
prop: a,
|
|
6938
6938
|
defaultProp: i ?? null,
|
|
6939
6939
|
onChange: l,
|
|
6940
|
-
caller:
|
|
6940
|
+
caller: To
|
|
6941
6941
|
}), [b, w] = h.useState(!1), y = yt(c), C = Xd(n), T = h.useRef(!1), [S, E] = h.useState(0);
|
|
6942
6942
|
return h.useEffect(() => {
|
|
6943
6943
|
const R = m.current;
|
|
@@ -7083,7 +7083,7 @@ var Hy = Zd, Uy = ef, Wy = function(e) {
|
|
|
7083
7083
|
return null;
|
|
7084
7084
|
var t = Array.isArray(e) ? e[0] : e;
|
|
7085
7085
|
return t.ownerDocument.body;
|
|
7086
|
-
}, mr = /* @__PURE__ */ new WeakMap(),
|
|
7086
|
+
}, mr = /* @__PURE__ */ new WeakMap(), Lo = /* @__PURE__ */ new WeakMap(), $o = {}, Na = 0, nf = function(e) {
|
|
7087
7087
|
return e && (e.host || nf(e.parentNode));
|
|
7088
7088
|
}, Vy = function(e, t) {
|
|
7089
7089
|
return t.map(function(n) {
|
|
@@ -7096,8 +7096,8 @@ var Hy = Zd, Uy = ef, Wy = function(e) {
|
|
|
7096
7096
|
});
|
|
7097
7097
|
}, Ky = function(e, t, n, r) {
|
|
7098
7098
|
var o = Vy(t, Array.isArray(e) ? e : [e]);
|
|
7099
|
-
|
|
7100
|
-
var s =
|
|
7099
|
+
$o[n] || ($o[n] = /* @__PURE__ */ new WeakMap());
|
|
7100
|
+
var s = $o[n], a = [], i = /* @__PURE__ */ new Set(), l = new Set(o), c = function(p) {
|
|
7101
7101
|
!p || i.has(p) || (i.add(p), c(p.parentNode));
|
|
7102
7102
|
};
|
|
7103
7103
|
o.forEach(c);
|
|
@@ -7108,7 +7108,7 @@ var Hy = Zd, Uy = ef, Wy = function(e) {
|
|
|
7108
7108
|
else
|
|
7109
7109
|
try {
|
|
7110
7110
|
var f = m.getAttribute(r), v = f !== null && f !== "false", g = (mr.get(m) || 0) + 1, x = (s.get(m) || 0) + 1;
|
|
7111
|
-
mr.set(m, g), s.set(m, x), a.push(m), g === 1 && v &&
|
|
7111
|
+
mr.set(m, g), s.set(m, x), a.push(m), g === 1 && v && Lo.set(m, !0), x === 1 && m.setAttribute(n, "true"), v || m.setAttribute(r, "true");
|
|
7112
7112
|
} catch (b) {
|
|
7113
7113
|
console.error("aria-hidden: cannot operate on ", m, b);
|
|
7114
7114
|
}
|
|
@@ -7117,8 +7117,8 @@ var Hy = Zd, Uy = ef, Wy = function(e) {
|
|
|
7117
7117
|
return d(t), i.clear(), Na++, function() {
|
|
7118
7118
|
a.forEach(function(p) {
|
|
7119
7119
|
var m = mr.get(p) - 1, f = s.get(p) - 1;
|
|
7120
|
-
mr.set(p, m), s.set(p, f), m || (
|
|
7121
|
-
}), Na--, Na || (mr = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap(),
|
|
7120
|
+
mr.set(p, m), s.set(p, f), m || (Lo.has(p) || p.removeAttribute(r), Lo.delete(p)), f || p.removeAttribute(n);
|
|
7121
|
+
}), Na--, Na || (mr = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap(), Lo = /* @__PURE__ */ new WeakMap(), $o = {});
|
|
7122
7122
|
};
|
|
7123
7123
|
}, el = function(e, t, n) {
|
|
7124
7124
|
n === void 0 && (n = "data-aria-hidden");
|
|
@@ -7148,7 +7148,7 @@ function qy(e, t, n) {
|
|
|
7148
7148
|
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
7149
7149
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
7150
7150
|
}
|
|
7151
|
-
var
|
|
7151
|
+
var Qo = "right-scroll-bar-position", es = "width-before-scroll-bar", Gy = "with-scroll-bars-hidden", Yy = "--removed-body-scroll-bar-size";
|
|
7152
7152
|
function Aa(e, t) {
|
|
7153
7153
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
7154
7154
|
}
|
|
@@ -7289,8 +7289,8 @@ Bs.defaultProps = {
|
|
|
7289
7289
|
inert: !1
|
|
7290
7290
|
};
|
|
7291
7291
|
Bs.classNames = {
|
|
7292
|
-
fullWidth:
|
|
7293
|
-
zeroRight:
|
|
7292
|
+
fullWidth: es,
|
|
7293
|
+
zeroRight: Qo
|
|
7294
7294
|
};
|
|
7295
7295
|
var r0 = function() {
|
|
7296
7296
|
if (typeof __webpack_nonce__ < "u")
|
|
@@ -7380,19 +7380,19 @@ var i0 = function() {
|
|
|
7380
7380
|
].filter(Boolean).join(""), `
|
|
7381
7381
|
}
|
|
7382
7382
|
|
|
7383
|
-
.`).concat(
|
|
7383
|
+
.`).concat(Qo, ` {
|
|
7384
7384
|
right: `).concat(i, "px ").concat(r, `;
|
|
7385
7385
|
}
|
|
7386
7386
|
|
|
7387
|
-
.`).concat(
|
|
7387
|
+
.`).concat(es, ` {
|
|
7388
7388
|
margin-right: `).concat(i, "px ").concat(r, `;
|
|
7389
7389
|
}
|
|
7390
7390
|
|
|
7391
|
-
.`).concat(
|
|
7391
|
+
.`).concat(Qo, " .").concat(Qo, ` {
|
|
7392
7392
|
right: 0 `).concat(r, `;
|
|
7393
7393
|
}
|
|
7394
7394
|
|
|
7395
|
-
.`).concat(
|
|
7395
|
+
.`).concat(es, " .").concat(es, ` {
|
|
7396
7396
|
margin-right: 0 `).concat(r, `;
|
|
7397
7397
|
}
|
|
7398
7398
|
|
|
@@ -7420,12 +7420,12 @@ var i0 = function() {
|
|
|
7420
7420
|
}, si = !1;
|
|
7421
7421
|
if (typeof window < "u")
|
|
7422
7422
|
try {
|
|
7423
|
-
var
|
|
7423
|
+
var Fo = Object.defineProperty({}, "passive", {
|
|
7424
7424
|
get: function() {
|
|
7425
7425
|
return si = !0, !0;
|
|
7426
7426
|
}
|
|
7427
7427
|
});
|
|
7428
|
-
window.addEventListener("test",
|
|
7428
|
+
window.addEventListener("test", Fo, Fo), window.removeEventListener("test", Fo, Fo);
|
|
7429
7429
|
} catch {
|
|
7430
7430
|
si = !1;
|
|
7431
7431
|
}
|
|
@@ -7492,7 +7492,7 @@ var gr = si ? { passive: !1 } : !1, g0 = function(e) {
|
|
|
7492
7492
|
l && (t.contains(i) || t === i)
|
|
7493
7493
|
);
|
|
7494
7494
|
return (d && Math.abs(p) < 1 || !d && Math.abs(m) < 1) && (c = !0), c;
|
|
7495
|
-
},
|
|
7495
|
+
}, Bo = function(e) {
|
|
7496
7496
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
7497
7497
|
}, Yc = function(e) {
|
|
7498
7498
|
return [e.deltaX, e.deltaY];
|
|
@@ -7526,7 +7526,7 @@ function k0(e) {
|
|
|
7526
7526
|
var i = h.useCallback(function(g, x) {
|
|
7527
7527
|
if ("touches" in g && g.touches.length === 2 || g.type === "wheel" && g.ctrlKey)
|
|
7528
7528
|
return !a.current.allowPinchZoom;
|
|
7529
|
-
var b =
|
|
7529
|
+
var b = Bo(g), w = n.current, y = "deltaX" in g ? g.deltaX : w[0] - b[0], C = "deltaY" in g ? g.deltaY : w[1] - b[1], T, S = g.target, E = Math.abs(y) > Math.abs(C) ? "h" : "v";
|
|
7530
7530
|
if ("touches" in g && E === "h" && S.type === "range")
|
|
7531
7531
|
return !1;
|
|
7532
7532
|
var R = Gc(E, S);
|
|
@@ -7541,7 +7541,7 @@ function k0(e) {
|
|
|
7541
7541
|
}, []), l = h.useCallback(function(g) {
|
|
7542
7542
|
var x = g;
|
|
7543
7543
|
if (!(!xr.length || xr[xr.length - 1] !== s)) {
|
|
7544
|
-
var b = "deltaY" in x ? Yc(x) :
|
|
7544
|
+
var b = "deltaY" in x ? Yc(x) : Bo(x), w = t.current.filter(function(T) {
|
|
7545
7545
|
return T.name === x.type && (T.target === x.target || x.target === T.shadowParent) && T0(T.delta, b);
|
|
7546
7546
|
})[0];
|
|
7547
7547
|
if (w && w.should) {
|
|
@@ -7563,11 +7563,11 @@ function k0(e) {
|
|
|
7563
7563
|
});
|
|
7564
7564
|
}, 1);
|
|
7565
7565
|
}, []), d = h.useCallback(function(g) {
|
|
7566
|
-
n.current =
|
|
7566
|
+
n.current = Bo(g), r.current = void 0;
|
|
7567
7567
|
}, []), p = h.useCallback(function(g) {
|
|
7568
7568
|
c(g.type, Yc(g), g.target, i(g, e.lockRef.current));
|
|
7569
7569
|
}, []), m = h.useCallback(function(g) {
|
|
7570
|
-
c(g.type,
|
|
7570
|
+
c(g.type, Bo(g), g.target, i(g, e.lockRef.current));
|
|
7571
7571
|
}, []);
|
|
7572
7572
|
h.useEffect(function() {
|
|
7573
7573
|
return xr.push(s), e.setCallbacks({
|
|
@@ -7604,11 +7604,11 @@ var ai = ["Enter", " "], N0 = ["ArrowDown", "PageUp", "Home"], df = ["ArrowUp",
|
|
|
7604
7604
|
}, _0 = {
|
|
7605
7605
|
ltr: ["ArrowLeft"],
|
|
7606
7606
|
rtl: ["ArrowRight"]
|
|
7607
|
-
},
|
|
7607
|
+
}, Co = "Menu", [ro, P0, M0] = Ps(Co), [cr, ff] = hn(Co, [
|
|
7608
7608
|
M0,
|
|
7609
7609
|
Lr,
|
|
7610
7610
|
Jd
|
|
7611
|
-
]), Hs = Lr(), pf = Jd(), [O0, ur] = cr(
|
|
7611
|
+
]), Hs = Lr(), pf = Jd(), [O0, ur] = cr(Co), [D0, Eo] = cr(Co), hf = (e) => {
|
|
7612
7612
|
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: a = !0 } = e, i = Hs(t), [l, c] = h.useState(null), d = h.useRef(!1), p = yt(s), m = Ms(o);
|
|
7613
7613
|
return h.useEffect(() => {
|
|
7614
7614
|
const f = () => {
|
|
@@ -7639,7 +7639,7 @@ var ai = ["Enter", " "], N0 = ["ArrowDown", "PageUp", "Home"], df = ["ArrowUp",
|
|
|
7639
7639
|
}
|
|
7640
7640
|
) });
|
|
7641
7641
|
};
|
|
7642
|
-
hf.displayName =
|
|
7642
|
+
hf.displayName = Co;
|
|
7643
7643
|
var L0 = "MenuAnchor", tl = h.forwardRef(
|
|
7644
7644
|
(e, t) => {
|
|
7645
7645
|
const { __scopeMenu: n, ...r } = e, o = Hs(n);
|
|
@@ -7651,12 +7651,12 @@ var nl = "MenuPortal", [$0, mf] = cr(nl, {
|
|
|
7651
7651
|
forceMount: void 0
|
|
7652
7652
|
}), gf = (e) => {
|
|
7653
7653
|
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = ur(nl, t);
|
|
7654
|
-
return /* @__PURE__ */ u.jsx($0, { scope: t, forceMount: n, children: /* @__PURE__ */ u.jsx(Gt, { present: n || s.open, children: /* @__PURE__ */ u.jsx(
|
|
7654
|
+
return /* @__PURE__ */ u.jsx($0, { scope: t, forceMount: n, children: /* @__PURE__ */ u.jsx(Gt, { present: n || s.open, children: /* @__PURE__ */ u.jsx(So, { asChild: !0, container: o, children: r }) }) });
|
|
7655
7655
|
};
|
|
7656
7656
|
gf.displayName = nl;
|
|
7657
7657
|
var rn = "MenuContent", [F0, rl] = cr(rn), xf = h.forwardRef(
|
|
7658
7658
|
(e, t) => {
|
|
7659
|
-
const n = mf(rn, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = ur(rn, e.__scopeMenu), a =
|
|
7659
|
+
const n = mf(rn, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = ur(rn, e.__scopeMenu), a = Eo(rn, e.__scopeMenu);
|
|
7660
7660
|
return /* @__PURE__ */ u.jsx(ro.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ u.jsx(Gt, { present: r || s.open, children: /* @__PURE__ */ u.jsx(ro.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ u.jsx(B0, { ...o, ref: t }) : /* @__PURE__ */ u.jsx(z0, { ...o, ref: t }) }) }) });
|
|
7661
7661
|
}
|
|
7662
7662
|
), B0 = h.forwardRef(
|
|
@@ -7712,7 +7712,7 @@ var rn = "MenuContent", [F0, rl] = cr(rn), xf = h.forwardRef(
|
|
|
7712
7712
|
onDismiss: f,
|
|
7713
7713
|
disableOutsideScroll: v,
|
|
7714
7714
|
...g
|
|
7715
|
-
} = e, x = ur(rn, n), b =
|
|
7715
|
+
} = e, x = ur(rn, n), b = Eo(rn, n), w = Hs(n), y = pf(n), C = P0(n), [T, S] = h.useState(null), E = h.useRef(null), R = Be(t, E, x.onContentChange), M = h.useRef(0), $ = h.useRef(""), B = h.useRef(0), V = h.useRef(null), z = h.useRef("right"), k = h.useRef(0), U = v ? zs : h.Fragment, A = v ? { as: H0, allowPinchZoom: !0 } : void 0, D = (N) => {
|
|
7716
7716
|
var W, L;
|
|
7717
7717
|
const q = $.current + N, J = C().filter((G) => !G.disabled), _ = document.activeElement, P = (W = J.find((G) => G.ref.current === _)) == null ? void 0 : W.textValue, K = J.map((G) => G.textValue), Y = eS(K, q, P), re = (L = J.find((G) => G.textValue === Y)) == null ? void 0 : L.ref.current;
|
|
7718
7718
|
(function G(X) {
|
|
@@ -7847,9 +7847,9 @@ var W0 = "MenuLabel", vf = h.forwardRef(
|
|
|
7847
7847
|
}
|
|
7848
7848
|
);
|
|
7849
7849
|
vf.displayName = W0;
|
|
7850
|
-
var
|
|
7850
|
+
var fs = "MenuItem", Jc = "menu.itemSelect", Us = h.forwardRef(
|
|
7851
7851
|
(e, t) => {
|
|
7852
|
-
const { disabled: n = !1, onSelect: r, ...o } = e, s = h.useRef(null), a =
|
|
7852
|
+
const { disabled: n = !1, onSelect: r, ...o } = e, s = h.useRef(null), a = Eo(fs, e.__scopeMenu), i = rl(fs, e.__scopeMenu), l = Be(t, s), c = h.useRef(!1), d = () => {
|
|
7853
7853
|
const p = s.current;
|
|
7854
7854
|
if (!n && p) {
|
|
7855
7855
|
const m = new CustomEvent(Jc, { bubbles: !0, cancelable: !0 });
|
|
@@ -7879,10 +7879,10 @@ var ds = "MenuItem", Jc = "menu.itemSelect", Us = h.forwardRef(
|
|
|
7879
7879
|
);
|
|
7880
7880
|
}
|
|
7881
7881
|
);
|
|
7882
|
-
Us.displayName =
|
|
7882
|
+
Us.displayName = fs;
|
|
7883
7883
|
var wf = h.forwardRef(
|
|
7884
7884
|
(e, t) => {
|
|
7885
|
-
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, a = rl(
|
|
7885
|
+
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, a = rl(fs, n), i = pf(n), l = h.useRef(null), c = Be(t, l), [d, p] = h.useState(!1), [m, f] = h.useState("");
|
|
7886
7886
|
return h.useEffect(() => {
|
|
7887
7887
|
const v = l.current;
|
|
7888
7888
|
v && f((v.textContent ?? "").trim());
|
|
@@ -7925,13 +7925,13 @@ var wf = h.forwardRef(
|
|
|
7925
7925
|
Us,
|
|
7926
7926
|
{
|
|
7927
7927
|
role: "menuitemcheckbox",
|
|
7928
|
-
"aria-checked":
|
|
7928
|
+
"aria-checked": ps(n) ? "mixed" : n,
|
|
7929
7929
|
...o,
|
|
7930
7930
|
ref: t,
|
|
7931
7931
|
"data-state": il(n),
|
|
7932
7932
|
onSelect: ae(
|
|
7933
7933
|
o.onSelect,
|
|
7934
|
-
() => r == null ? void 0 : r(
|
|
7934
|
+
() => r == null ? void 0 : r(ps(n) ? !0 : !n),
|
|
7935
7935
|
{ checkForDefaultPrevented: !1 }
|
|
7936
7936
|
)
|
|
7937
7937
|
}
|
|
@@ -7983,7 +7983,7 @@ var al = "MenuItemIndicator", [Ef, G0] = cr(
|
|
|
7983
7983
|
return /* @__PURE__ */ u.jsx(
|
|
7984
7984
|
Gt,
|
|
7985
7985
|
{
|
|
7986
|
-
present: r ||
|
|
7986
|
+
present: r || ps(s.checked) || s.checked === !0,
|
|
7987
7987
|
children: /* @__PURE__ */ u.jsx(
|
|
7988
7988
|
we.span,
|
|
7989
7989
|
{
|
|
@@ -8021,7 +8021,7 @@ var X0 = "MenuArrow", If = h.forwardRef(
|
|
|
8021
8021
|
If.displayName = X0;
|
|
8022
8022
|
var J0 = "MenuSub", [iN, Nf] = cr(J0), Kr = "MenuSubTrigger", Af = h.forwardRef(
|
|
8023
8023
|
(e, t) => {
|
|
8024
|
-
const n = ur(Kr, e.__scopeMenu), r =
|
|
8024
|
+
const n = ur(Kr, e.__scopeMenu), r = Eo(Kr, e.__scopeMenu), o = Nf(Kr, e.__scopeMenu), s = rl(Kr, e.__scopeMenu), a = h.useRef(null), { pointerGraceTimerRef: i, onPointerGraceIntentChange: l } = s, c = { __scopeMenu: e.__scopeMenu }, d = h.useCallback(() => {
|
|
8025
8025
|
a.current && window.clearTimeout(a.current), a.current = null;
|
|
8026
8026
|
}, []);
|
|
8027
8027
|
return h.useEffect(() => d, [d]), h.useEffect(() => {
|
|
@@ -8092,7 +8092,7 @@ var J0 = "MenuSub", [iN, Nf] = cr(J0), Kr = "MenuSubTrigger", Af = h.forwardRef(
|
|
|
8092
8092
|
Af.displayName = Kr;
|
|
8093
8093
|
var jf = "MenuSubContent", _f = h.forwardRef(
|
|
8094
8094
|
(e, t) => {
|
|
8095
|
-
const n = mf(rn, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = ur(rn, e.__scopeMenu), a =
|
|
8095
|
+
const n = mf(rn, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = ur(rn, e.__scopeMenu), a = Eo(rn, e.__scopeMenu), i = Nf(jf, e.__scopeMenu), l = h.useRef(null), c = Be(t, l);
|
|
8096
8096
|
return /* @__PURE__ */ u.jsx(ro.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ u.jsx(Gt, { present: r || s.open, children: /* @__PURE__ */ u.jsx(ro.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ u.jsx(
|
|
8097
8097
|
ol,
|
|
8098
8098
|
{
|
|
@@ -8129,11 +8129,11 @@ _f.displayName = jf;
|
|
|
8129
8129
|
function Pf(e) {
|
|
8130
8130
|
return e ? "open" : "closed";
|
|
8131
8131
|
}
|
|
8132
|
-
function
|
|
8132
|
+
function ps(e) {
|
|
8133
8133
|
return e === "indeterminate";
|
|
8134
8134
|
}
|
|
8135
8135
|
function il(e) {
|
|
8136
|
-
return
|
|
8136
|
+
return ps(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
8137
8137
|
}
|
|
8138
8138
|
function Z0(e) {
|
|
8139
8139
|
const t = document.activeElement;
|
|
@@ -8412,7 +8412,7 @@ const BS = h.forwardRef(({ className: e, children: t, checked: n, ...r }, o) =>
|
|
|
8412
8412
|
checked: n,
|
|
8413
8413
|
...r,
|
|
8414
8414
|
children: [
|
|
8415
|
-
/* @__PURE__ */ u.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ u.jsx(ep, { children: /* @__PURE__ */ u.jsx(
|
|
8415
|
+
/* @__PURE__ */ u.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ u.jsx(ep, { children: /* @__PURE__ */ u.jsx(Cs, { className: "h-4 w-4" }) }) }),
|
|
8416
8416
|
t
|
|
8417
8417
|
]
|
|
8418
8418
|
}
|
|
@@ -8576,7 +8576,7 @@ function VS({
|
|
|
8576
8576
|
$ && /* @__PURE__ */ u.jsx("p", { className: "mt-1 text-xs text-destructive font-medium", children: $ })
|
|
8577
8577
|
] }),
|
|
8578
8578
|
/* @__PURE__ */ u.jsx("div", { children: r ? /* @__PURE__ */ u.jsx(
|
|
8579
|
-
|
|
8579
|
+
it,
|
|
8580
8580
|
{
|
|
8581
8581
|
type: "button",
|
|
8582
8582
|
onClick: () => {
|
|
@@ -8590,7 +8590,7 @@ function VS({
|
|
|
8590
8590
|
children: /* @__PURE__ */ u.jsx(Fg, { size: 16 })
|
|
8591
8591
|
}
|
|
8592
8592
|
) : /* @__PURE__ */ u.jsx(
|
|
8593
|
-
|
|
8593
|
+
it,
|
|
8594
8594
|
{
|
|
8595
8595
|
type: "submit",
|
|
8596
8596
|
size: "icon",
|
|
@@ -9072,9 +9072,9 @@ function li(e, t) {
|
|
|
9072
9072
|
return r;
|
|
9073
9073
|
{
|
|
9074
9074
|
const [s, a] = dp(r);
|
|
9075
|
-
return
|
|
9075
|
+
return ts(Nt(e, { k: s, l: up(r), v: a }));
|
|
9076
9076
|
}
|
|
9077
|
-
} else return t < n ?
|
|
9077
|
+
} else return t < n ? ts(Nt(e, { l: li(r, t) })) : ts(Nt(e, { r: li(o, t) }));
|
|
9078
9078
|
}
|
|
9079
9079
|
function Yn(e) {
|
|
9080
9080
|
return ct(e) ? [] : [...Yn(e.l), { k: e.k, v: e.v }, ...Yn(e.r)];
|
|
@@ -9086,7 +9086,7 @@ function ci(e, t, n) {
|
|
|
9086
9086
|
let i = [];
|
|
9087
9087
|
return r > t && (i = i.concat(ci(o, t, n))), r >= t && r <= n && i.push({ k: r, v: a }), r <= n && (i = i.concat(ci(s, t, n))), i;
|
|
9088
9088
|
}
|
|
9089
|
-
function
|
|
9089
|
+
function ts(e) {
|
|
9090
9090
|
const { l: t, lvl: n, r } = e;
|
|
9091
9091
|
if (r.lvl >= n - 1 && t.lvl >= n - 1)
|
|
9092
9092
|
return e;
|
|
@@ -9130,7 +9130,7 @@ function Nt(e, t) {
|
|
|
9130
9130
|
);
|
|
9131
9131
|
}
|
|
9132
9132
|
function up(e) {
|
|
9133
|
-
return ct(e.r) ? e.l :
|
|
9133
|
+
return ct(e.r) ? e.l : ts(Nt(e, { r: up(e.r) }));
|
|
9134
9134
|
}
|
|
9135
9135
|
function Pa(e) {
|
|
9136
9136
|
return ct(e) || e.lvl > e.r.lvl;
|
|
@@ -9167,9 +9167,9 @@ const pl = Qe(
|
|
|
9167
9167
|
{ singleton: !0 }
|
|
9168
9168
|
);
|
|
9169
9169
|
function mp(e, t, n) {
|
|
9170
|
-
return e[
|
|
9170
|
+
return e[hs(e, t, n)];
|
|
9171
9171
|
}
|
|
9172
|
-
function
|
|
9172
|
+
function hs(e, t, n, r = 0) {
|
|
9173
9173
|
let o = e.length - 1;
|
|
9174
9174
|
for (; r <= o; ) {
|
|
9175
9175
|
const s = Math.floor((r + o) / 2), a = e[s], i = n(a, t);
|
|
@@ -9188,7 +9188,7 @@ function ps(e, t, n, r = 0) {
|
|
|
9188
9188
|
throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`);
|
|
9189
9189
|
}
|
|
9190
9190
|
function aT(e, t, n, r) {
|
|
9191
|
-
const o =
|
|
9191
|
+
const o = hs(e, t, r), s = hs(e, n, r, o);
|
|
9192
9192
|
return e.slice(o, s + 1);
|
|
9193
9193
|
}
|
|
9194
9194
|
function On(e, t) {
|
|
@@ -9298,7 +9298,7 @@ function ru(e, t) {
|
|
|
9298
9298
|
function di(e, t, n, r) {
|
|
9299
9299
|
let o = e, s = 0, a = 0, i = 0, l = 0;
|
|
9300
9300
|
if (t !== 0) {
|
|
9301
|
-
l =
|
|
9301
|
+
l = hs(o, t - 1, hl), i = o[l].offset;
|
|
9302
9302
|
const c = fn(n, t - 1);
|
|
9303
9303
|
s = c[0], a = c[1], o.length && o[l].size === fn(n, t)[1] && (l -= 1), o = o.slice(0, l + 1);
|
|
9304
9304
|
} else
|
|
@@ -9620,7 +9620,7 @@ function wp(e) {
|
|
|
9620
9620
|
const t = typeof e == "number" ? { index: e } : e;
|
|
9621
9621
|
return t.align || (t.align = "start"), (!t.behavior || !vT) && (t.behavior = "auto"), t.offset || (t.offset = 0), t;
|
|
9622
9622
|
}
|
|
9623
|
-
const
|
|
9623
|
+
const ko = Qe(
|
|
9624
9624
|
([
|
|
9625
9625
|
{ gap: e, listRefresh: t, sizes: n, totalCount: r },
|
|
9626
9626
|
{
|
|
@@ -9702,7 +9702,7 @@ function gl(e, t) {
|
|
|
9702
9702
|
const n = t - 1;
|
|
9703
9703
|
return typeof e == "number" ? e : e.index === "LAST" ? n : e.index;
|
|
9704
9704
|
}
|
|
9705
|
-
const
|
|
9705
|
+
const Ro = Qe(
|
|
9706
9706
|
([{ defaultItemSize: e, listRefresh: t, sizes: n }, { scrollTop: r }, { scrollTargetReached: o, scrollToIndex: s }, { didMount: a }]) => {
|
|
9707
9707
|
const i = oe(!0), l = oe(0), c = oe(!0);
|
|
9708
9708
|
return be(
|
|
@@ -9743,7 +9743,7 @@ const ko = Qe(
|
|
|
9743
9743
|
scrolledToInitialItem: i
|
|
9744
9744
|
};
|
|
9745
9745
|
},
|
|
9746
|
-
ht(Cn, Bt,
|
|
9746
|
+
ht(Cn, Bt, ko, zn),
|
|
9747
9747
|
{ singleton: !0 }
|
|
9748
9748
|
);
|
|
9749
9749
|
function bp(e, t) {
|
|
@@ -9758,7 +9758,7 @@ const co = "up", Yr = "down", bT = "none", yT = {
|
|
|
9758
9758
|
scrollTop: 0,
|
|
9759
9759
|
viewportHeight: 0
|
|
9760
9760
|
}
|
|
9761
|
-
}, ST = 0,
|
|
9761
|
+
}, ST = 0, Io = Qe(([{ footerHeight: e, headerHeight: t, scrollBy: n, scrollContainerState: r, scrollTop: o, viewportHeight: s }]) => {
|
|
9762
9762
|
const a = oe(!1), i = oe(!0), l = qe(), c = qe(), d = oe(4), p = oe(ST), m = Dt(
|
|
9763
9763
|
Z(
|
|
9764
9764
|
ii(Z(ke(o), or(1), xn(!0)), Z(ke(o), or(1), xn(!1), eu(100))),
|
|
@@ -9890,9 +9890,9 @@ const co = "up", Yr = "down", bT = "none", yT = {
|
|
|
9890
9890
|
scrollDirection: x,
|
|
9891
9891
|
scrollVelocity: b
|
|
9892
9892
|
};
|
|
9893
|
-
}, ht(Bt)),
|
|
9893
|
+
}, ht(Bt)), ms = "top", gs = "bottom", ou = "none";
|
|
9894
9894
|
function su(e, t, n) {
|
|
9895
|
-
return typeof e == "number" ? n === co && t ===
|
|
9895
|
+
return typeof e == "number" ? n === co && t === ms || n === Yr && t === gs ? e : 0 : n === co ? t === ms ? e.main : e.reverse : t === gs ? e.main : e.reverse;
|
|
9896
9896
|
}
|
|
9897
9897
|
function au(e, t) {
|
|
9898
9898
|
var n;
|
|
@@ -9927,10 +9927,10 @@ const xl = Qe(
|
|
|
9927
9927
|
]) => {
|
|
9928
9928
|
const C = d - w, T = x + b, S = Math.max(m - C, 0);
|
|
9929
9929
|
let E = ou;
|
|
9930
|
-
const R = au(y,
|
|
9930
|
+
const R = au(y, ms), M = au(y, gs);
|
|
9931
9931
|
return f -= w, f += m + b, v += m + b, v -= w, f > d + T - R && (E = co), v < d - S + p + M && (E = Yr), E !== ou ? [
|
|
9932
|
-
Math.max(C - m - su(g,
|
|
9933
|
-
C - S - b + p + su(g,
|
|
9932
|
+
Math.max(C - m - su(g, ms, E) - R, 0),
|
|
9933
|
+
C - S - b + p + su(g, gs, E) + M
|
|
9934
9934
|
] : null;
|
|
9935
9935
|
}
|
|
9936
9936
|
),
|
|
@@ -9973,7 +9973,7 @@ const Ma = {
|
|
|
9973
9973
|
topListHeight: 0,
|
|
9974
9974
|
totalCount: 0
|
|
9975
9975
|
};
|
|
9976
|
-
function
|
|
9976
|
+
function ns(e, t, n, r, o, s) {
|
|
9977
9977
|
const { lastIndex: a, lastOffset: i, lastSize: l } = o;
|
|
9978
9978
|
let c = 0, d = 0;
|
|
9979
9979
|
if (e.length > 0) {
|
|
@@ -10008,7 +10008,7 @@ function yp(e, t, n, r, o, s) {
|
|
|
10008
10008
|
offset: 0,
|
|
10009
10009
|
size: 0
|
|
10010
10010
|
}));
|
|
10011
|
-
return
|
|
10011
|
+
return ns(c, [], i, o, n, r);
|
|
10012
10012
|
}
|
|
10013
10013
|
function iu(e, t, n) {
|
|
10014
10014
|
if (e.length === 0)
|
|
@@ -10088,7 +10088,7 @@ const fr = Qe(
|
|
|
10088
10088
|
if (S === 0 && E === 0)
|
|
10089
10089
|
return N === 0 ? { ...Ma, totalCount: R } : yp(N, $, M, z, k, U || []);
|
|
10090
10090
|
if (ct(j))
|
|
10091
|
-
return N > 0 ? null :
|
|
10091
|
+
return N > 0 ? null : ns(
|
|
10092
10092
|
TT(gl($, R), A, U),
|
|
10093
10093
|
[],
|
|
10094
10094
|
R,
|
|
@@ -10107,7 +10107,7 @@ const fr = Qe(
|
|
|
10107
10107
|
}
|
|
10108
10108
|
}
|
|
10109
10109
|
if (!B)
|
|
10110
|
-
return
|
|
10110
|
+
return ns([], q, R, k, A, z);
|
|
10111
10111
|
const J = V.length > 0 ? V[V.length - 1] + 1 : 0, _ = dT(D, S, E, J);
|
|
10112
10112
|
if (_.length === 0)
|
|
10113
10113
|
return null;
|
|
@@ -10127,7 +10127,7 @@ const fr = Qe(
|
|
|
10127
10127
|
Y.push({ data: U == null ? void 0 : U[F], index: F, offset: L, size: X }), L += X + k;
|
|
10128
10128
|
}
|
|
10129
10129
|
});
|
|
10130
|
-
return
|
|
10130
|
+
return ns(K, q, R, k, A, z);
|
|
10131
10131
|
}
|
|
10132
10132
|
),
|
|
10133
10133
|
//@ts-expect-error filter needs to be fixed
|
|
@@ -10204,9 +10204,9 @@ const fr = Qe(
|
|
|
10204
10204
|
Cn,
|
|
10205
10205
|
vp,
|
|
10206
10206
|
xl,
|
|
10207
|
-
ko,
|
|
10208
|
-
Eo,
|
|
10209
10207
|
Ro,
|
|
10208
|
+
ko,
|
|
10209
|
+
Io,
|
|
10210
10210
|
zn,
|
|
10211
10211
|
pl
|
|
10212
10212
|
),
|
|
@@ -10286,7 +10286,7 @@ const fr = Qe(
|
|
|
10286
10286
|
scrollIntoView: d
|
|
10287
10287
|
};
|
|
10288
10288
|
},
|
|
10289
|
-
ht(Cn, Bt,
|
|
10289
|
+
ht(Cn, Bt, ko, fr, Bn),
|
|
10290
10290
|
{ singleton: !0 }
|
|
10291
10291
|
);
|
|
10292
10292
|
function lu(e) {
|
|
@@ -10388,9 +10388,9 @@ const kT = (e, t) => typeof e == "function" ? lu(e(t)) : t && lu(e), RT = Qe(
|
|
|
10388
10388
|
},
|
|
10389
10389
|
ht(
|
|
10390
10390
|
Cn,
|
|
10391
|
-
|
|
10392
|
-
Eo,
|
|
10391
|
+
Io,
|
|
10393
10392
|
ko,
|
|
10393
|
+
Ro,
|
|
10394
10394
|
zn,
|
|
10395
10395
|
Bn,
|
|
10396
10396
|
Bt,
|
|
@@ -10408,7 +10408,7 @@ const kT = (e, t) => typeof e == "function" ? lu(e(t)) : t && lu(e), RT = Qe(
|
|
|
10408
10408
|
),
|
|
10409
10409
|
a
|
|
10410
10410
|
), {}),
|
|
10411
|
-
ht(Cn,
|
|
10411
|
+
ht(Cn, Ro, fr, zn),
|
|
10412
10412
|
{ singleton: !0 }
|
|
10413
10413
|
), NT = Qe(
|
|
10414
10414
|
([{ didMount: e }, { scrollTo: t }, { listState: n }]) => {
|
|
@@ -10467,7 +10467,7 @@ const kT = (e, t) => typeof e == "function" ? lu(e(t)) : t && lu(e), RT = Qe(
|
|
|
10467
10467
|
}
|
|
10468
10468
|
), { isSeeking: t, scrollSeekConfiguration: r, scrollSeekRangeChanged: n, scrollVelocity: e };
|
|
10469
10469
|
},
|
|
10470
|
-
ht(
|
|
10470
|
+
ht(Io),
|
|
10471
10471
|
{ singleton: !0 }
|
|
10472
10472
|
), vl = Qe(([{ scrollContainerState: e, scrollTo: t }]) => {
|
|
10473
10473
|
const n = qe(), r = qe(), o = qe(), s = oe(!1), a = oe(void 0);
|
|
@@ -10533,7 +10533,7 @@ const kT = (e, t) => typeof e == "function" ? lu(e(t)) : t && lu(e), RT = Qe(
|
|
|
10533
10533
|
restoreStateFrom: d
|
|
10534
10534
|
};
|
|
10535
10535
|
},
|
|
10536
|
-
ht(Cn, Bt,
|
|
10536
|
+
ht(Cn, Bt, Ro, zn, vl)
|
|
10537
10537
|
);
|
|
10538
10538
|
function jT(e) {
|
|
10539
10539
|
return { align: "start", index: 0, offset: e.scrollTop };
|
|
@@ -10631,7 +10631,7 @@ const PT = kp(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
10631
10631
|
}
|
|
10632
10632
|
), { deviation: e };
|
|
10633
10633
|
},
|
|
10634
|
-
ht(Bt,
|
|
10634
|
+
ht(Bt, Io, fr, Cn, Bn, pl)
|
|
10635
10635
|
), OT = Qe(
|
|
10636
10636
|
([
|
|
10637
10637
|
e,
|
|
@@ -10736,12 +10736,12 @@ const PT = kp(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
10736
10736
|
}),
|
|
10737
10737
|
ht(
|
|
10738
10738
|
Cn,
|
|
10739
|
-
|
|
10739
|
+
Ro,
|
|
10740
10740
|
Bt,
|
|
10741
10741
|
AT,
|
|
10742
10742
|
RT,
|
|
10743
10743
|
fr,
|
|
10744
|
-
|
|
10744
|
+
ko,
|
|
10745
10745
|
MT,
|
|
10746
10746
|
_T,
|
|
10747
10747
|
vp,
|
|
@@ -10758,7 +10758,7 @@ function DT(e, t) {
|
|
|
10758
10758
|
Object.hasOwn(r, a) || (n[a] = t[a]);
|
|
10759
10759
|
return n;
|
|
10760
10760
|
}
|
|
10761
|
-
const
|
|
10761
|
+
const zo = typeof document < "u" ? O.useLayoutEffect : O.useEffect;
|
|
10762
10762
|
function Ip(e, t, n) {
|
|
10763
10763
|
const r = Object.keys(t.required || {}), o = Object.keys(t.optional || {}), s = Object.keys(t.methods || {}), a = Object.keys(t.events || {}), i = O.createContext({});
|
|
10764
10764
|
function l(x, b) {
|
|
@@ -10787,13 +10787,13 @@ function Ip(e, t, n) {
|
|
|
10787
10787
|
const { children: w, ...y } = x, [C] = O.useState(() => qs(eT(e), (E) => {
|
|
10788
10788
|
l(E, y);
|
|
10789
10789
|
})), [T] = O.useState(Qc(d, C));
|
|
10790
|
-
|
|
10790
|
+
zo(() => {
|
|
10791
10791
|
for (const E of a)
|
|
10792
10792
|
E in y && rt(T[E], y[E]);
|
|
10793
10793
|
return () => {
|
|
10794
10794
|
Object.values(T).map(dl);
|
|
10795
10795
|
};
|
|
10796
|
-
}, [y, T, C]),
|
|
10796
|
+
}, [y, T, C]), zo(() => {
|
|
10797
10797
|
l(C, y);
|
|
10798
10798
|
}), O.useImperativeHandle(b, Zc(c(C)));
|
|
10799
10799
|
const S = n;
|
|
@@ -10818,7 +10818,7 @@ function Ip(e, t, n) {
|
|
|
10818
10818
|
);
|
|
10819
10819
|
}, v = (x) => {
|
|
10820
10820
|
const b = O.useContext(i)[x], [w, y] = O.useState(Qc(bt, b));
|
|
10821
|
-
return
|
|
10821
|
+
return zo(
|
|
10822
10822
|
() => rt(b, (C) => {
|
|
10823
10823
|
C !== w && y(Zc(C));
|
|
10824
10824
|
}),
|
|
@@ -10829,7 +10829,7 @@ function Ip(e, t, n) {
|
|
|
10829
10829
|
Component: p,
|
|
10830
10830
|
useEmitter: (x, b) => {
|
|
10831
10831
|
const w = O.useContext(i)[x];
|
|
10832
|
-
|
|
10832
|
+
zo(() => rt(w, b), [b, w]);
|
|
10833
10833
|
},
|
|
10834
10834
|
useEmitterValue: g,
|
|
10835
10835
|
usePublisher: m
|
|
@@ -10971,7 +10971,7 @@ const $T = /* @__PURE__ */ Qe(() => {
|
|
|
10971
10971
|
style: z,
|
|
10972
10972
|
children: (e ? t.topItems : t.items).map((k) => {
|
|
10973
10973
|
const U = k.originalIndex, A = R(U + t.firstItemIndex, k.data, c);
|
|
10974
|
-
return M ? /* @__PURE__ */
|
|
10974
|
+
return M ? /* @__PURE__ */ Ko(
|
|
10975
10975
|
C,
|
|
10976
10976
|
{
|
|
10977
10977
|
...Ot(C, c),
|
|
@@ -10981,7 +10981,7 @@ const $T = /* @__PURE__ */ Qe(() => {
|
|
|
10981
10981
|
type: k.type || "item",
|
|
10982
10982
|
...k.type === "group" ? {} : { groupIndex: k.groupIndex }
|
|
10983
10983
|
}
|
|
10984
|
-
) : k.type === "group" ? /* @__PURE__ */
|
|
10984
|
+
) : k.type === "group" ? /* @__PURE__ */ Ko(
|
|
10985
10985
|
E,
|
|
10986
10986
|
{
|
|
10987
10987
|
...Ot(E, c),
|
|
@@ -10992,7 +10992,7 @@ const $T = /* @__PURE__ */ Qe(() => {
|
|
|
10992
10992
|
style: zT
|
|
10993
10993
|
},
|
|
10994
10994
|
d(k.index, c)
|
|
10995
|
-
) : /* @__PURE__ */
|
|
10995
|
+
) : /* @__PURE__ */ Ko(
|
|
10996
10996
|
S,
|
|
10997
10997
|
{
|
|
10998
10998
|
...Ot(S, c),
|
|
@@ -11263,7 +11263,7 @@ const du = {
|
|
|
11263
11263
|
offsetBottom: 0,
|
|
11264
11264
|
offsetTop: 0,
|
|
11265
11265
|
top: 0
|
|
11266
|
-
}, { ceil: fu, floor:
|
|
11266
|
+
}, { ceil: fu, floor: xs, max: Xr, min: La, round: pu } = Math;
|
|
11267
11267
|
function hu(e, t, n) {
|
|
11268
11268
|
return Array.from({ length: t - e + 1 }).map((r, o) => ({ data: n === null ? null : n[o + e], index: o + e }));
|
|
11269
11269
|
}
|
|
@@ -11273,7 +11273,7 @@ function sC(e) {
|
|
|
11273
11273
|
items: e
|
|
11274
11274
|
};
|
|
11275
11275
|
}
|
|
11276
|
-
function
|
|
11276
|
+
function Ho(e, t) {
|
|
11277
11277
|
return e && e.width === t.width && e.height === t.height;
|
|
11278
11278
|
}
|
|
11279
11279
|
function aC(e, t) {
|
|
@@ -11338,8 +11338,8 @@ const iC = /* @__PURE__ */ Qe(
|
|
|
11338
11338
|
), be(
|
|
11339
11339
|
Z(
|
|
11340
11340
|
Tt(
|
|
11341
|
-
ke(M,
|
|
11342
|
-
ke($,
|
|
11341
|
+
ke(M, Ho),
|
|
11342
|
+
ke($, Ho),
|
|
11343
11343
|
ke(U, (L, G) => L && L.column === G.column && L.row === G.row),
|
|
11344
11344
|
ke(c)
|
|
11345
11345
|
),
|
|
@@ -11357,8 +11357,8 @@ const iC = /* @__PURE__ */ Qe(
|
|
|
11357
11357
|
ke(S),
|
|
11358
11358
|
r,
|
|
11359
11359
|
ke(U, aC),
|
|
11360
|
-
ke($,
|
|
11361
|
-
ke(M,
|
|
11360
|
+
ke($, Ho),
|
|
11361
|
+
ke(M, Ho),
|
|
11362
11362
|
ke(k),
|
|
11363
11363
|
ke(E),
|
|
11364
11364
|
ke(j),
|
|
@@ -11387,9 +11387,9 @@ const iC = /* @__PURE__ */ Qe(
|
|
|
11387
11387
|
return sC(hu(jt, _t, ce));
|
|
11388
11388
|
}
|
|
11389
11389
|
const Ge = Dp(ot, ze, Ae);
|
|
11390
|
-
let He,
|
|
11391
|
-
xe ? G === 0 && X === 0 && ie > 0 ? (He = 0,
|
|
11392
|
-
const st = hu(He,
|
|
11390
|
+
let He, lt;
|
|
11391
|
+
xe ? G === 0 && X === 0 && ie > 0 ? (He = 0, lt = ie - 1) : (He = Ge * xs((G + De) / (Ne + De)), lt = Ge * fu((X + De) / (Ne + De)) - 1, lt = La(L - 1, Xr(lt, Ge - 1)), He = La(lt, Xr(0, He))) : (He = 0, lt = -1);
|
|
11392
|
+
const st = hu(He, lt, ce), { bottom: et, top: Ct } = mu(ne, le, F, st), xt = fu(L / Ge), dt = xt * Ne + (xt - 1) * De - et;
|
|
11393
11393
|
return { bottom: et, itemHeight: Ne, items: st, itemWidth: ze, offsetBottom: dt, offsetTop: Ct, top: Ct };
|
|
11394
11394
|
}
|
|
11395
11395
|
)
|
|
@@ -11524,10 +11524,10 @@ const iC = /* @__PURE__ */ Qe(
|
|
|
11524
11524
|
...T
|
|
11525
11525
|
};
|
|
11526
11526
|
},
|
|
11527
|
-
ht(xl, Bt,
|
|
11527
|
+
ht(xl, Bt, Io, Ep, zn, vl, Bn)
|
|
11528
11528
|
);
|
|
11529
11529
|
function Dp(e, t, n) {
|
|
11530
|
-
return Xr(1,
|
|
11530
|
+
return Xr(1, xs((e + n) / (xs(t) + n)));
|
|
11531
11531
|
}
|
|
11532
11532
|
function mu(e, t, n, r) {
|
|
11533
11533
|
const { height: o } = n;
|
|
@@ -11537,7 +11537,7 @@ function mu(e, t, n, r) {
|
|
|
11537
11537
|
return { bottom: fi(e, t, n, r[r.length - 1].index) + o, top: s };
|
|
11538
11538
|
}
|
|
11539
11539
|
function fi(e, t, n, r) {
|
|
11540
|
-
const o = Dp(e.width, n.width, t.column), s =
|
|
11540
|
+
const o = Dp(e.width, n.width, t.column), s = xs(r / o), a = s * n.height + Xr(0, s - 1) * t.row;
|
|
11541
11541
|
return a > 0 ? a + t.row : a;
|
|
11542
11542
|
}
|
|
11543
11543
|
const lC = /* @__PURE__ */ Qe(() => {
|
|
@@ -11612,7 +11612,7 @@ const lC = /* @__PURE__ */ Qe(() => {
|
|
|
11612
11612
|
width: e.itemWidth
|
|
11613
11613
|
},
|
|
11614
11614
|
w
|
|
11615
|
-
) : /* @__PURE__ */
|
|
11615
|
+
) : /* @__PURE__ */ Ko(
|
|
11616
11616
|
i,
|
|
11617
11617
|
{
|
|
11618
11618
|
...Ot(i, d),
|
|
@@ -11798,19 +11798,19 @@ var Sl = "DialogPortal", [yC, Hp] = $p(Sl, {
|
|
|
11798
11798
|
forceMount: void 0
|
|
11799
11799
|
}), Up = (e) => {
|
|
11800
11800
|
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = mn(Sl, t);
|
|
11801
|
-
return /* @__PURE__ */ u.jsx(yC, { scope: t, forceMount: n, children: h.Children.map(r, (a) => /* @__PURE__ */ u.jsx(Gt, { present: n || s.open, children: /* @__PURE__ */ u.jsx(
|
|
11801
|
+
return /* @__PURE__ */ u.jsx(yC, { scope: t, forceMount: n, children: h.Children.map(r, (a) => /* @__PURE__ */ u.jsx(Gt, { present: n || s.open, children: /* @__PURE__ */ u.jsx(So, { asChild: !0, container: o, children: a }) })) });
|
|
11802
11802
|
};
|
|
11803
11803
|
Up.displayName = Sl;
|
|
11804
|
-
var
|
|
11804
|
+
var vs = "DialogOverlay", Wp = h.forwardRef(
|
|
11805
11805
|
(e, t) => {
|
|
11806
|
-
const n = Hp(
|
|
11806
|
+
const n = Hp(vs, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = mn(vs, e.__scopeDialog);
|
|
11807
11807
|
return s.modal ? /* @__PURE__ */ u.jsx(Gt, { present: r || s.open, children: /* @__PURE__ */ u.jsx(TC, { ...o, ref: t }) }) : null;
|
|
11808
11808
|
}
|
|
11809
11809
|
);
|
|
11810
|
-
Wp.displayName =
|
|
11810
|
+
Wp.displayName = vs;
|
|
11811
11811
|
var SC = Cr("DialogOverlay.RemoveScroll"), TC = h.forwardRef(
|
|
11812
11812
|
(e, t) => {
|
|
11813
|
-
const { __scopeDialog: n, ...r } = e, o = mn(
|
|
11813
|
+
const { __scopeDialog: n, ...r } = e, o = mn(vs, n);
|
|
11814
11814
|
return (
|
|
11815
11815
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
11816
11816
|
// ie. when `Overlay` and `Content` are siblings
|
|
@@ -11968,9 +11968,9 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
11968
11968
|
const o = (s = e.current) == null ? void 0 : s.getAttribute("aria-describedby");
|
|
11969
11969
|
t && o && (document.getElementById(t) || console.warn(r));
|
|
11970
11970
|
}, [r, e, t]), null;
|
|
11971
|
-
}, El = Fp, NC = zp, kl = Up,
|
|
11971
|
+
}, El = Fp, NC = zp, kl = Up, No = Wp, Ao = Vp, er = qp, Zs = Yp, eh = Jp;
|
|
11972
11972
|
const th = El, AC = kl, nh = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
11973
|
-
|
|
11973
|
+
No,
|
|
11974
11974
|
{
|
|
11975
11975
|
ref: n,
|
|
11976
11976
|
className: ee(
|
|
@@ -11980,7 +11980,7 @@ const th = El, AC = kl, nh = h.forwardRef(({ className: e, ...t }, n) => /* @__P
|
|
|
11980
11980
|
...t
|
|
11981
11981
|
}
|
|
11982
11982
|
));
|
|
11983
|
-
nh.displayName =
|
|
11983
|
+
nh.displayName = No.displayName;
|
|
11984
11984
|
const Rl = h.forwardRef(({ className: e, children: t, ...n }, r) => {
|
|
11985
11985
|
const o = h.useMemo(() => {
|
|
11986
11986
|
let s = !1;
|
|
@@ -12000,7 +12000,7 @@ const Rl = h.forwardRef(({ className: e, children: t, ...n }, r) => {
|
|
|
12000
12000
|
return /* @__PURE__ */ u.jsxs(AC, { children: [
|
|
12001
12001
|
/* @__PURE__ */ u.jsx(nh, {}),
|
|
12002
12002
|
/* @__PURE__ */ u.jsxs(
|
|
12003
|
-
|
|
12003
|
+
Ao,
|
|
12004
12004
|
{
|
|
12005
12005
|
ref: r,
|
|
12006
12006
|
className: ee(
|
|
@@ -12020,7 +12020,7 @@ const Rl = h.forwardRef(({ className: e, children: t, ...n }, r) => {
|
|
|
12020
12020
|
)
|
|
12021
12021
|
] });
|
|
12022
12022
|
});
|
|
12023
|
-
Rl.displayName =
|
|
12023
|
+
Rl.displayName = Ao.displayName;
|
|
12024
12024
|
const Il = ({
|
|
12025
12025
|
className: e,
|
|
12026
12026
|
...t
|
|
@@ -12108,11 +12108,11 @@ const Fa = /* @__PURE__ */ new Map(), xu = (e) => {
|
|
|
12108
12108
|
toasts: e.toasts.filter((n) => n.id !== t.toastId)
|
|
12109
12109
|
};
|
|
12110
12110
|
}
|
|
12111
|
-
},
|
|
12112
|
-
let
|
|
12111
|
+
}, rs = [];
|
|
12112
|
+
let os = { toasts: [] };
|
|
12113
12113
|
function Jr(e) {
|
|
12114
|
-
|
|
12115
|
-
t(
|
|
12114
|
+
os = OC(os, e), rs.forEach((t) => {
|
|
12115
|
+
t(os);
|
|
12116
12116
|
});
|
|
12117
12117
|
}
|
|
12118
12118
|
function DC({ ...e }) {
|
|
@@ -12137,10 +12137,10 @@ function DC({ ...e }) {
|
|
|
12137
12137
|
};
|
|
12138
12138
|
}
|
|
12139
12139
|
function Al() {
|
|
12140
|
-
const [e, t] = h.useState(
|
|
12141
|
-
return h.useEffect(() => (
|
|
12142
|
-
const n =
|
|
12143
|
-
n > -1 &&
|
|
12140
|
+
const [e, t] = h.useState(os);
|
|
12141
|
+
return h.useEffect(() => (rs.push(t), () => {
|
|
12142
|
+
const n = rs.indexOf(t);
|
|
12143
|
+
n > -1 && rs.splice(n, 1);
|
|
12144
12144
|
}), [e]), {
|
|
12145
12145
|
...e,
|
|
12146
12146
|
toast: DC,
|
|
@@ -12185,7 +12185,7 @@ function LC({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
|
|
|
12185
12185
|
] }) : c ? /* @__PURE__ */ u.jsxs("div", { className: "flex flex-col items-center justify-center py-12 text-center", children: [
|
|
12186
12186
|
/* @__PURE__ */ u.jsx("div", { className: "text-red-500 mb-4", children: "⚠️" }),
|
|
12187
12187
|
/* @__PURE__ */ u.jsx("p", { className: "text-red-600 mb-4", children: c }),
|
|
12188
|
-
/* @__PURE__ */ u.jsx(
|
|
12188
|
+
/* @__PURE__ */ u.jsx(it, { onClick: m, variant: "outline", children: "Try Again" })
|
|
12189
12189
|
] }) : i ? o.startsWith("image/") ? /* @__PURE__ */ u.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ u.jsx(
|
|
12190
12190
|
"img",
|
|
12191
12191
|
{
|
|
@@ -12225,7 +12225,7 @@ function LC({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
|
|
|
12225
12225
|
] }),
|
|
12226
12226
|
/* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
12227
12227
|
/* @__PURE__ */ u.jsxs(
|
|
12228
|
-
|
|
12228
|
+
it,
|
|
12229
12229
|
{
|
|
12230
12230
|
variant: "outline",
|
|
12231
12231
|
size: "sm",
|
|
@@ -12238,7 +12238,7 @@ function LC({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
|
|
|
12238
12238
|
}
|
|
12239
12239
|
),
|
|
12240
12240
|
/* @__PURE__ */ u.jsxs(
|
|
12241
|
-
|
|
12241
|
+
it,
|
|
12242
12242
|
{
|
|
12243
12243
|
variant: "outline",
|
|
12244
12244
|
size: "sm",
|
|
@@ -12331,13 +12331,13 @@ function wu(e, t, n) {
|
|
|
12331
12331
|
}
|
|
12332
12332
|
return n;
|
|
12333
12333
|
}
|
|
12334
|
-
const
|
|
12334
|
+
const Uo = {}, KC = /^[^:]+:\/*[^/]*$/, qC = /^([^:]+:)[\s\S]*$/, GC = /^([^:]+:\/*[^/]*)[\s\S]*$/;
|
|
12335
12335
|
function YC(e, t) {
|
|
12336
|
-
|
|
12336
|
+
Uo[" " + e] || (KC.test(e) ? Uo[" " + e] = e + "/" : Uo[" " + e] = ss(e, "/", !0)), e = Uo[" " + e];
|
|
12337
12337
|
const n = e.indexOf(":") === -1;
|
|
12338
12338
|
return t.substring(0, 2) === "//" ? n ? t : e.replace(qC, "$1") + t : t.charAt(0) === "/" ? n ? t : e.replace(GC, "$1") + t : e + t;
|
|
12339
12339
|
}
|
|
12340
|
-
const
|
|
12340
|
+
const ws = { exec: function() {
|
|
12341
12341
|
} };
|
|
12342
12342
|
function bu(e, t) {
|
|
12343
12343
|
const n = e.replace(/\|/g, (s, a, i) => {
|
|
@@ -12354,7 +12354,7 @@ function bu(e, t) {
|
|
|
12354
12354
|
r[o] = r[o].trim().replace(/\\\|/g, "|");
|
|
12355
12355
|
return r;
|
|
12356
12356
|
}
|
|
12357
|
-
function
|
|
12357
|
+
function ss(e, t, n) {
|
|
12358
12358
|
const r = e.length;
|
|
12359
12359
|
if (r === 0)
|
|
12360
12360
|
return "";
|
|
@@ -12452,7 +12452,7 @@ class jl {
|
|
|
12452
12452
|
type: "code",
|
|
12453
12453
|
raw: n[0],
|
|
12454
12454
|
codeBlockStyle: "indented",
|
|
12455
|
-
text: this.options.pedantic ? r :
|
|
12455
|
+
text: this.options.pedantic ? r : ss(r, `
|
|
12456
12456
|
`)
|
|
12457
12457
|
};
|
|
12458
12458
|
}
|
|
@@ -12474,7 +12474,7 @@ class jl {
|
|
|
12474
12474
|
if (n) {
|
|
12475
12475
|
let r = n[2].trim();
|
|
12476
12476
|
if (/#$/.test(r)) {
|
|
12477
|
-
const o =
|
|
12477
|
+
const o = ss(r, "#");
|
|
12478
12478
|
(this.options.pedantic || !o || / $/.test(o)) && (r = o.trim());
|
|
12479
12479
|
}
|
|
12480
12480
|
return {
|
|
@@ -12681,7 +12681,7 @@ class jl {
|
|
|
12681
12681
|
if (!this.options.pedantic && /^</.test(r)) {
|
|
12682
12682
|
if (!/>$/.test(r))
|
|
12683
12683
|
return;
|
|
12684
|
-
const a =
|
|
12684
|
+
const a = ss(r.slice(0, -1), "\\");
|
|
12685
12685
|
if ((r.length - a.length) % 2 === 0)
|
|
12686
12686
|
return;
|
|
12687
12687
|
} else {
|
|
@@ -12856,7 +12856,7 @@ const Te = {
|
|
|
12856
12856
|
list: /^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,
|
|
12857
12857
|
html: "^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",
|
|
12858
12858
|
def: /^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,
|
|
12859
|
-
table:
|
|
12859
|
+
table: ws,
|
|
12860
12860
|
lheading: /^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
12861
12861
|
// regex template, placeholders will be replaced according to different paragraph
|
|
12862
12862
|
// interruption rules of commonmark and the original markdown spec:
|
|
@@ -12889,7 +12889,7 @@ Te.pedantic = {
|
|
|
12889
12889
|
).replace("comment", Te._comment).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
12890
12890
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
12891
12891
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
12892
|
-
fences:
|
|
12892
|
+
fences: ws,
|
|
12893
12893
|
// fences not supported
|
|
12894
12894
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
12895
12895
|
paragraph: ut(Te.normal._paragraph).replace("hr", Te.hr).replace("heading", ` *#{1,6} *[^
|
|
@@ -12898,7 +12898,7 @@ Te.pedantic = {
|
|
|
12898
12898
|
const me = {
|
|
12899
12899
|
escape: /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,
|
|
12900
12900
|
autolink: /^<(scheme:[^\s\x00-\x1f<>]*|email)>/,
|
|
12901
|
-
url:
|
|
12901
|
+
url: ws,
|
|
12902
12902
|
tag: "^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",
|
|
12903
12903
|
// CDATA section
|
|
12904
12904
|
link: /^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,
|
|
@@ -12915,7 +12915,7 @@ const me = {
|
|
|
12915
12915
|
},
|
|
12916
12916
|
code: /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,
|
|
12917
12917
|
br: /^( {2,}|\\)\n(?!\s*$)/,
|
|
12918
|
-
del:
|
|
12918
|
+
del: ws,
|
|
12919
12919
|
text: /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,
|
|
12920
12920
|
punctuation: /^([\spunctuation])/
|
|
12921
12921
|
};
|
|
@@ -13590,7 +13590,7 @@ class Ln {
|
|
|
13590
13590
|
return r;
|
|
13591
13591
|
}
|
|
13592
13592
|
}
|
|
13593
|
-
class
|
|
13593
|
+
class bs {
|
|
13594
13594
|
constructor(t) {
|
|
13595
13595
|
this.options = t || pr;
|
|
13596
13596
|
}
|
|
@@ -13607,7 +13607,7 @@ class ws {
|
|
|
13607
13607
|
return t;
|
|
13608
13608
|
}
|
|
13609
13609
|
}
|
|
13610
|
-
Wl(
|
|
13610
|
+
Wl(bs, "passThroughHooks", /* @__PURE__ */ new Set([
|
|
13611
13611
|
"preprocess",
|
|
13612
13612
|
"postprocess"
|
|
13613
13613
|
]));
|
|
@@ -13738,10 +13738,10 @@ ye.use = function(...e) {
|
|
|
13738
13738
|
r.tokenizer = o;
|
|
13739
13739
|
}
|
|
13740
13740
|
if (n.hooks) {
|
|
13741
|
-
const o = ye.defaults.hooks || new
|
|
13741
|
+
const o = ye.defaults.hooks || new bs();
|
|
13742
13742
|
for (const s in n.hooks) {
|
|
13743
13743
|
const a = o[s];
|
|
13744
|
-
|
|
13744
|
+
bs.passThroughHooks.has(s) ? o[s] = (i) => {
|
|
13745
13745
|
if (ye.defaults.async)
|
|
13746
13746
|
return Promise.resolve(n.hooks[s].call(o, i)).then((c) => a.call(o, c));
|
|
13747
13747
|
const l = n.hooks[s].call(o, i);
|
|
@@ -13795,7 +13795,7 @@ ye.Lexer = Dn;
|
|
|
13795
13795
|
ye.lexer = Dn.lex;
|
|
13796
13796
|
ye.Tokenizer = jl;
|
|
13797
13797
|
ye.Slugger = lh;
|
|
13798
|
-
ye.Hooks =
|
|
13798
|
+
ye.Hooks = bs;
|
|
13799
13799
|
ye.parse = ye;
|
|
13800
13800
|
ye.options;
|
|
13801
13801
|
ye.setOptions;
|
|
@@ -13804,7 +13804,7 @@ ye.walkTokens;
|
|
|
13804
13804
|
ye.parseInline;
|
|
13805
13805
|
Ln.parse;
|
|
13806
13806
|
Dn.lex;
|
|
13807
|
-
function
|
|
13807
|
+
function jo({
|
|
13808
13808
|
content: e,
|
|
13809
13809
|
className: t = "",
|
|
13810
13810
|
allowHtml: n = !1,
|
|
@@ -13936,7 +13936,7 @@ function nE({ artifact: e }) {
|
|
|
13936
13936
|
typeof e.results == "string" && e.results.trim() && /* @__PURE__ */ u.jsxs("div", { className: "text-sm text-blue-900 dark:text-blue-100 bg-white dark:bg-blue-900/30 rounded px-3 py-2 space-y-2", children: [
|
|
13937
13937
|
/* @__PURE__ */ u.jsx("p", { className: "font-semibold text-xs text-blue-600 dark:text-blue-400", children: "Results:" }),
|
|
13938
13938
|
/* @__PURE__ */ u.jsx(
|
|
13939
|
-
|
|
13939
|
+
jo,
|
|
13940
13940
|
{
|
|
13941
13941
|
content: e.results,
|
|
13942
13942
|
allowHtml: !1,
|
|
@@ -14068,7 +14068,7 @@ function oE({
|
|
|
14068
14068
|
i && /* @__PURE__ */ u.jsx(hh, { className: "pt-0 pb-3", children: i }),
|
|
14069
14069
|
/* @__PURE__ */ u.jsx(mh, { className: "pt-0", children: /* @__PURE__ */ u.jsxs("div", { className: "flex gap-2 ml-auto", children: [
|
|
14070
14070
|
/* @__PURE__ */ u.jsx(
|
|
14071
|
-
|
|
14071
|
+
it,
|
|
14072
14072
|
{
|
|
14073
14073
|
size: "sm",
|
|
14074
14074
|
variant: "outline",
|
|
@@ -14079,7 +14079,7 @@ function oE({
|
|
|
14079
14079
|
}
|
|
14080
14080
|
),
|
|
14081
14081
|
/* @__PURE__ */ u.jsx(
|
|
14082
|
-
|
|
14082
|
+
it,
|
|
14083
14083
|
{
|
|
14084
14084
|
size: "sm",
|
|
14085
14085
|
onClick: () => t(e),
|
|
@@ -14155,7 +14155,7 @@ function iE({ message: e, viewMode: t, isStreaming: n = !1 }) {
|
|
|
14155
14155
|
}, a = (l) => {
|
|
14156
14156
|
if (l == null) return null;
|
|
14157
14157
|
const { content: c, isMarkdown: d } = nw(l);
|
|
14158
|
-
return d ? /* @__PURE__ */ u.jsx(
|
|
14158
|
+
return d ? /* @__PURE__ */ u.jsx(jo, { content: c, className: "text-current" }) : s(l);
|
|
14159
14159
|
}, i = () => {
|
|
14160
14160
|
const l = e.content.find((p) => p.type !== "tool_call");
|
|
14161
14161
|
if (!l)
|
|
@@ -14205,7 +14205,7 @@ function cE({
|
|
|
14205
14205
|
}) {
|
|
14206
14206
|
const s = Math.max(e.length - r, 0), a = e.substring(0, r);
|
|
14207
14207
|
return /* @__PURE__ */ u.jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
14208
|
-
/* @__PURE__ */ u.jsx("div", { className: ee("text-sm text-[hsl(var(--chat-bubble-user-text))]", o && "text-xs"), children: t ? /* @__PURE__ */ u.jsx(
|
|
14208
|
+
/* @__PURE__ */ u.jsx("div", { className: ee("text-sm text-[hsl(var(--chat-bubble-user-text))]", o && "text-xs"), children: t ? /* @__PURE__ */ u.jsx(jo, { content: e, allowHtml: !1 }) : /* @__PURE__ */ u.jsxs(
|
|
14209
14209
|
"pre",
|
|
14210
14210
|
{
|
|
14211
14211
|
className: ee(
|
|
@@ -14219,7 +14219,7 @@ function cE({
|
|
|
14219
14219
|
}
|
|
14220
14220
|
) }),
|
|
14221
14221
|
/* @__PURE__ */ u.jsx(
|
|
14222
|
-
|
|
14222
|
+
it,
|
|
14223
14223
|
{
|
|
14224
14224
|
type: "button",
|
|
14225
14225
|
variant: "ghost",
|
|
@@ -14230,7 +14230,7 @@ function cE({
|
|
|
14230
14230
|
/* @__PURE__ */ u.jsx(Ai, { className: "h-3 w-3 mr-1" }),
|
|
14231
14231
|
" Show less"
|
|
14232
14232
|
] }) : /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
14233
|
-
/* @__PURE__ */ u.jsx(
|
|
14233
|
+
/* @__PURE__ */ u.jsx(Es, { className: "h-3 w-3 mr-1" }),
|
|
14234
14234
|
" Show more (",
|
|
14235
14235
|
s,
|
|
14236
14236
|
" chars)"
|
|
@@ -14284,7 +14284,7 @@ function uE({
|
|
|
14284
14284
|
isCompact: E
|
|
14285
14285
|
},
|
|
14286
14286
|
U
|
|
14287
|
-
) : /* @__PURE__ */ u.jsx(
|
|
14287
|
+
) : /* @__PURE__ */ u.jsx(jo, { content: A, allowHtml: !1 }, U);
|
|
14288
14288
|
}
|
|
14289
14289
|
if (k.type === "image_url") {
|
|
14290
14290
|
const A = k;
|
|
@@ -14319,7 +14319,7 @@ function uE({
|
|
|
14319
14319
|
);
|
|
14320
14320
|
}
|
|
14321
14321
|
if (k.type === "interrupt") {
|
|
14322
|
-
const A = k, D =
|
|
14322
|
+
const A = k, D = Jo(
|
|
14323
14323
|
(A == null ? void 0 : A.id) ?? (A == null ? void 0 : A.interrupt_id)
|
|
14324
14324
|
), j = !!(R && D && D === R), N = j ? M ?? (A == null ? void 0 : A.value) : A == null ? void 0 : A.value, q = D ? { ...A, id: D, interrupt_id: D } : A;
|
|
14325
14325
|
return /* @__PURE__ */ u.jsx(
|
|
@@ -14497,7 +14497,7 @@ const Pl = jg(function({
|
|
|
14497
14497
|
onSelectCheckpoint: E,
|
|
14498
14498
|
attemptMetas: R = []
|
|
14499
14499
|
}) {
|
|
14500
|
-
const [M, $] = fe(!1), [B, V] = fe("preview"), [z, k] = fe(!1), { currentThreadId: U } =
|
|
14500
|
+
const [M, $] = fe(!1), [B, V] = fe("preview"), [z, k] = fe(!1), { currentThreadId: U } = wo(), { respondToInterrupt: A } = _s(), D = l === "phone" || l === "half-screen", j = t.role, N = j === "tool", q = Ze(() => "type" in t && t.type === "default_message" ? t : null, [t]), J = !!q, _ = !(r && j !== "user"), {
|
|
14501
14501
|
uploadingFiles: P,
|
|
14502
14502
|
handleFileClick: K,
|
|
14503
14503
|
fileViewerOpen: Y,
|
|
@@ -14525,7 +14525,7 @@ const Pl = jg(function({
|
|
|
14525
14525
|
toolMeta: ie,
|
|
14526
14526
|
toolRaw: xe,
|
|
14527
14527
|
isToolStreaming: Ie
|
|
14528
|
-
} = G, Ae = (b == null ? void 0 : b.id) ?? (b == null ? void 0 : b.interrupt_id), De =
|
|
14528
|
+
} = G, Ae = (b == null ? void 0 : b.id) ?? (b == null ? void 0 : b.interrupt_id), De = Jo(Ae), Ne = b == null ? void 0 : b.value, ze = Ze(() => q || !m ? null : t.artifact || null, [q, t, m]), ot = ge(async () => {
|
|
14529
14529
|
const he = N ? xe : ce;
|
|
14530
14530
|
async function Ue(Ye) {
|
|
14531
14531
|
if (navigator.clipboard && typeof navigator.clipboard.writeText == "function") {
|
|
@@ -14557,7 +14557,7 @@ const Pl = jg(function({
|
|
|
14557
14557
|
v(t.id, he, Ue);
|
|
14558
14558
|
}, [v, t.id, N, xe, ce, t]), He = ge(() => {
|
|
14559
14559
|
g == null || g(n);
|
|
14560
|
-
}, [g, n]),
|
|
14560
|
+
}, [g, n]), lt = ge(() => {
|
|
14561
14561
|
const Ue = ee(D ? "h-3 w-3" : "h-4 w-4", "opacity-60 flex-shrink-0", L);
|
|
14562
14562
|
switch (j) {
|
|
14563
14563
|
case "user":
|
|
@@ -14623,7 +14623,7 @@ const Pl = jg(function({
|
|
|
14623
14623
|
}, [D, J, j]), Ct = ge(async (he) => {
|
|
14624
14624
|
if (w)
|
|
14625
14625
|
return;
|
|
14626
|
-
const Ue =
|
|
14626
|
+
const Ue = Jo(
|
|
14627
14627
|
(he == null ? void 0 : he.id) ?? (he == null ? void 0 : he.interrupt_id)
|
|
14628
14628
|
);
|
|
14629
14629
|
if (!Ue) {
|
|
@@ -14640,7 +14640,7 @@ const Pl = jg(function({
|
|
|
14640
14640
|
}, [w, C, y, A]), xt = ge(async (he) => {
|
|
14641
14641
|
if (w)
|
|
14642
14642
|
return;
|
|
14643
|
-
const Ue =
|
|
14643
|
+
const Ue = Jo(
|
|
14644
14644
|
(he == null ? void 0 : he.id) ?? (he == null ? void 0 : he.interrupt_id)
|
|
14645
14645
|
);
|
|
14646
14646
|
if (!Ue) {
|
|
@@ -14665,7 +14665,7 @@ const Pl = jg(function({
|
|
|
14665
14665
|
i && /* @__PURE__ */ u.jsx("span", { className: "font-medium text-sm", children: "Assistant" })
|
|
14666
14666
|
] }),
|
|
14667
14667
|
/* @__PURE__ */ u.jsx(
|
|
14668
|
-
|
|
14668
|
+
jo,
|
|
14669
14669
|
{
|
|
14670
14670
|
content: q.content,
|
|
14671
14671
|
className: "text-current"
|
|
@@ -14684,7 +14684,7 @@ const Pl = jg(function({
|
|
|
14684
14684
|
),
|
|
14685
14685
|
children: [
|
|
14686
14686
|
/* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
14687
|
-
|
|
14687
|
+
lt(),
|
|
14688
14688
|
i && dt && /* @__PURE__ */ u.jsx("span", { className: ee("font-medium", D ? "text-xs" : "text-sm"), children: dt }),
|
|
14689
14689
|
N && /* @__PURE__ */ u.jsxs(
|
|
14690
14690
|
wC,
|
|
@@ -14706,7 +14706,7 @@ const Pl = jg(function({
|
|
|
14706
14706
|
children: [
|
|
14707
14707
|
/* @__PURE__ */ u.jsx("span", { children: ie.name ?? "Tool Output" }),
|
|
14708
14708
|
ie.toolCallId && /* @__PURE__ */ u.jsx("span", { className: "opacity-70", children: ie.toolCallId.slice(0, 8) }),
|
|
14709
|
-
B === "expanded" ? /* @__PURE__ */ u.jsx(Ai, { className: "h-3 w-3" }) : /* @__PURE__ */ u.jsx(
|
|
14709
|
+
B === "expanded" ? /* @__PURE__ */ u.jsx(Ai, { className: "h-3 w-3" }) : /* @__PURE__ */ u.jsx(Es, { className: "h-3 w-3" })
|
|
14710
14710
|
]
|
|
14711
14711
|
}
|
|
14712
14712
|
)
|
|
@@ -14770,7 +14770,7 @@ const Pl = jg(function({
|
|
|
14770
14770
|
),
|
|
14771
14771
|
children: [
|
|
14772
14772
|
/* @__PURE__ */ u.jsx("div", { className: "relative", children: /* @__PURE__ */ u.jsx(
|
|
14773
|
-
|
|
14773
|
+
it,
|
|
14774
14774
|
{
|
|
14775
14775
|
variant: "ghost",
|
|
14776
14776
|
size: "sm",
|
|
@@ -14782,7 +14782,7 @@ const Pl = jg(function({
|
|
|
14782
14782
|
}
|
|
14783
14783
|
) }),
|
|
14784
14784
|
j === "user" && v && /* @__PURE__ */ u.jsx(
|
|
14785
|
-
|
|
14785
|
+
it,
|
|
14786
14786
|
{
|
|
14787
14787
|
variant: "ghost",
|
|
14788
14788
|
size: "sm",
|
|
@@ -14793,7 +14793,7 @@ const Pl = jg(function({
|
|
|
14793
14793
|
}
|
|
14794
14794
|
),
|
|
14795
14795
|
j === "assistant" && g && /* @__PURE__ */ u.jsx(
|
|
14796
|
-
|
|
14796
|
+
it,
|
|
14797
14797
|
{
|
|
14798
14798
|
variant: "ghost",
|
|
14799
14799
|
size: "sm",
|
|
@@ -14865,7 +14865,7 @@ const Pl = jg(function({
|
|
|
14865
14865
|
),
|
|
14866
14866
|
children: [
|
|
14867
14867
|
/* @__PURE__ */ u.jsx(
|
|
14868
|
-
|
|
14868
|
+
it,
|
|
14869
14869
|
{
|
|
14870
14870
|
variant: "ghost",
|
|
14871
14871
|
size: "sm",
|
|
@@ -14875,7 +14875,7 @@ const Pl = jg(function({
|
|
|
14875
14875
|
}
|
|
14876
14876
|
),
|
|
14877
14877
|
j === "user" && v && /* @__PURE__ */ u.jsx(
|
|
14878
|
-
|
|
14878
|
+
it,
|
|
14879
14879
|
{
|
|
14880
14880
|
variant: "ghost",
|
|
14881
14881
|
size: "sm",
|
|
@@ -14885,7 +14885,7 @@ const Pl = jg(function({
|
|
|
14885
14885
|
}
|
|
14886
14886
|
),
|
|
14887
14887
|
j === "assistant" && g && /* @__PURE__ */ u.jsx(
|
|
14888
|
-
|
|
14888
|
+
it,
|
|
14889
14889
|
{
|
|
14890
14890
|
variant: "ghost",
|
|
14891
14891
|
size: "sm",
|
|
@@ -15216,7 +15216,7 @@ function Zr({
|
|
|
15216
15216
|
onExcelUploadSuccess: v,
|
|
15217
15217
|
onError: g
|
|
15218
15218
|
}) {
|
|
15219
|
-
const { api: x } = js(), { currentThreadId: b } =
|
|
15219
|
+
const { api: x } = js(), { currentThreadId: b } = wo(), {
|
|
15220
15220
|
threadId: w,
|
|
15221
15221
|
messages: y,
|
|
15222
15222
|
isHistoryLoading: C,
|
|
@@ -15236,7 +15236,7 @@ function Zr({
|
|
|
15236
15236
|
re(!0);
|
|
15237
15237
|
}, []), L = ge(() => {
|
|
15238
15238
|
re(!1);
|
|
15239
|
-
}, []), G = !!K || Y, [X, le] = fe(null), [F, ne] = fe(""), [ce, ie] = fe(null), [xe, Ie] = fe(null), [Ae, De] = fe([]), [Ne, ze] = fe(0), [ot, Ge] = fe(0), [He,
|
|
15239
|
+
}, []), G = !!K || Y, [X, le] = fe(null), [F, ne] = fe(""), [ce, ie] = fe(null), [xe, Ie] = fe(null), [Ae, De] = fe([]), [Ne, ze] = fe(0), [ot, Ge] = fe(0), [He, lt] = fe(!1), [st, et] = fe(null), [Ct, xt] = fe(null), [dt, jt] = fe(!1), [_t, Et] = fe(null), kt = $e(!1), [Rt, Ve] = fe(() => Cu.value), he = $e(Rt), Ue = $e(null), Ye = ge((se) => {
|
|
15240
15240
|
Cu.value = se, Ve(se);
|
|
15241
15241
|
}, []), [vt, $t] = fe(!1), te = $e(null), Se = $e(null), ft = $e(null), ve = ge(() => {
|
|
15242
15242
|
Se.current && (Se.current.value = ""), ft.current && (ft.current.value = ""), ze((se) => se + 1), Ge((se) => se + 1);
|
|
@@ -15356,7 +15356,7 @@ function Zr({
|
|
|
15356
15356
|
}, I = async (se) => {
|
|
15357
15357
|
const ue = (se.target.files || [])[0];
|
|
15358
15358
|
if (ue) {
|
|
15359
|
-
et(null), xt(null),
|
|
15359
|
+
et(null), xt(null), lt(!0);
|
|
15360
15360
|
try {
|
|
15361
15361
|
await A(
|
|
15362
15362
|
{ attachments: [ue] },
|
|
@@ -15371,7 +15371,7 @@ function Zr({
|
|
|
15371
15371
|
const Me = Ee instanceof Error ? Ee.message : "Failed to upload Excel file";
|
|
15372
15372
|
console.error("Excel upload failed", Ee), et(Me), g == null || g(Me);
|
|
15373
15373
|
} finally {
|
|
15374
|
-
|
|
15374
|
+
lt(!1), se.target.value = "", ve();
|
|
15375
15375
|
}
|
|
15376
15376
|
}
|
|
15377
15377
|
}, Q = async (se) => {
|
|
@@ -15404,7 +15404,7 @@ function Zr({
|
|
|
15404
15404
|
!!k && !dt && /* @__PURE__ */ u.jsxs("div", { className: "flex-shrink-0 bg-red-50 border border-red-200 text-red-800 px-4 py-2 text-sm flex items-center justify-between", children: [
|
|
15405
15405
|
/* @__PURE__ */ u.jsx("span", { children: k }),
|
|
15406
15406
|
/* @__PURE__ */ u.jsx(
|
|
15407
|
-
|
|
15407
|
+
it,
|
|
15408
15408
|
{
|
|
15409
15409
|
variant: "ghost",
|
|
15410
15410
|
size: "sm",
|
|
@@ -15471,11 +15471,11 @@ function Zr({
|
|
|
15471
15471
|
/* @__PURE__ */ u.jsxs("div", { className: at, children: [
|
|
15472
15472
|
X && /* @__PURE__ */ u.jsx("div", { className: "mb-3 p-3 bg-blue-50 border border-blue-200 rounded-lg", children: /* @__PURE__ */ u.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
15473
15473
|
/* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
15474
|
-
/* @__PURE__ */ u.jsx(
|
|
15474
|
+
/* @__PURE__ */ u.jsx(ho, { size: 16, className: "text-blue-600" }),
|
|
15475
15475
|
/* @__PURE__ */ u.jsx("span", { className: "text-sm font-medium text-blue-800", children: "Editing message" })
|
|
15476
15476
|
] }),
|
|
15477
15477
|
/* @__PURE__ */ u.jsx(
|
|
15478
|
-
|
|
15478
|
+
it,
|
|
15479
15479
|
{
|
|
15480
15480
|
variant: "ghost",
|
|
15481
15481
|
size: "sm",
|
|
@@ -15502,7 +15502,7 @@ function Zr({
|
|
|
15502
15502
|
/* @__PURE__ */ u.jsx(Va, { size: 14 }),
|
|
15503
15503
|
/* @__PURE__ */ u.jsx("span", { className: "truncate max-w-[150px]", children: se.name }),
|
|
15504
15504
|
/* @__PURE__ */ u.jsx(
|
|
15505
|
-
|
|
15505
|
+
it,
|
|
15506
15506
|
{
|
|
15507
15507
|
variant: "ghost",
|
|
15508
15508
|
size: "sm",
|
|
@@ -15538,7 +15538,7 @@ function Zr({
|
|
|
15538
15538
|
/* @__PURE__ */ u.jsxs("div", { className: "flex items-end gap-2", children: [
|
|
15539
15539
|
(i || l) && /* @__PURE__ */ u.jsxs(ll, { children: [
|
|
15540
15540
|
/* @__PURE__ */ u.jsx(cl, { asChild: !0, children: /* @__PURE__ */ u.jsx(
|
|
15541
|
-
|
|
15541
|
+
it,
|
|
15542
15542
|
{
|
|
15543
15543
|
type: "button",
|
|
15544
15544
|
size: "icon",
|
|
@@ -15608,7 +15608,7 @@ function ku(e) {
|
|
|
15608
15608
|
function SE(e, t, n) {
|
|
15609
15609
|
return e = n && n.length > 0 ? `${e + " " + n.join(" ")}` : e, pi(e, t, ku(e), ku(t), 0, 0, {});
|
|
15610
15610
|
}
|
|
15611
|
-
var Vr = '[cmdk-group=""]', Ha = '[cmdk-group-items=""]', TE = '[cmdk-group-heading=""]', yh = '[cmdk-item=""]', Ru = `${yh}:not([aria-disabled="true"])`, hi = "cmdk-item-select", vr = "data-value", CE = (e, t, n) => SE(e, t, n), Sh = h.createContext(void 0),
|
|
15611
|
+
var Vr = '[cmdk-group=""]', Ha = '[cmdk-group-items=""]', TE = '[cmdk-group-heading=""]', yh = '[cmdk-item=""]', Ru = `${yh}:not([aria-disabled="true"])`, hi = "cmdk-item-select", vr = "data-value", CE = (e, t, n) => SE(e, t, n), Sh = h.createContext(void 0), _o = () => h.useContext(Sh), Th = h.createContext(void 0), Ml = () => h.useContext(Th), Ch = h.createContext(void 0), Eh = h.forwardRef((e, t) => {
|
|
15612
15612
|
let n = wr(() => {
|
|
15613
15613
|
var _, P;
|
|
15614
15614
|
return { search: "", value: (P = (_ = e.value) != null ? _ : e.defaultValue) != null ? P : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
@@ -15785,7 +15785,7 @@ var Vr = '[cmdk-group=""]', Ha = '[cmdk-group-items=""]', TE = '[cmdk-group-head
|
|
|
15785
15785
|
} }, h.createElement("label", { "cmdk-label": "", htmlFor: R.inputId, id: R.labelId, style: LE }, l), Qs(e, (_) => h.createElement(Th.Provider, { value: E }, h.createElement(Sh.Provider, { value: R }, _))));
|
|
15786
15786
|
}), EE = h.forwardRef((e, t) => {
|
|
15787
15787
|
var n, r;
|
|
15788
|
-
let o = Lt(), s = h.useRef(null), a = h.useContext(Ch), i =
|
|
15788
|
+
let o = Lt(), s = h.useRef(null), a = h.useContext(Ch), i = _o(), l = kh(e), c = (r = (n = l.current) == null ? void 0 : n.forceMount) != null ? r : a == null ? void 0 : a.forceMount;
|
|
15789
15789
|
ar(() => {
|
|
15790
15790
|
if (!c) return i.item(o, a == null ? void 0 : a.id);
|
|
15791
15791
|
}, [c]);
|
|
@@ -15805,7 +15805,7 @@ var Vr = '[cmdk-group=""]', Ha = '[cmdk-group-items=""]', TE = '[cmdk-group-head
|
|
|
15805
15805
|
let { disabled: x, value: b, onSelect: w, forceMount: y, keywords: C, ...T } = e;
|
|
15806
15806
|
return h.createElement(we.div, { ref: jn(s, t), ...T, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!x, "aria-selected": !!m, "data-disabled": !!x, "data-selected": !!m, onPointerMove: x || i.getDisablePointerSelection() ? void 0 : g, onClick: x ? void 0 : v }, e.children);
|
|
15807
15807
|
}), kE = h.forwardRef((e, t) => {
|
|
15808
|
-
let { heading: n, children: r, forceMount: o, ...s } = e, a = Lt(), i = h.useRef(null), l = h.useRef(null), c = Lt(), d =
|
|
15808
|
+
let { heading: n, children: r, forceMount: o, ...s } = e, a = Lt(), i = h.useRef(null), l = h.useRef(null), c = Lt(), d = _o(), p = $n((f) => o || d.filter() === !1 ? !0 : f.search ? f.filtered.groups.has(a) : !0);
|
|
15809
15809
|
ar(() => d.group(a), []), Rh(a, i, [e.value, e.heading, l]);
|
|
15810
15810
|
let m = h.useMemo(() => ({ id: a, forceMount: o }), [o]);
|
|
15811
15811
|
return h.createElement(we.div, { ref: jn(i, t), ...s, "cmdk-group": "", role: "presentation", hidden: p ? void 0 : !0 }, n && h.createElement("div", { ref: l, "cmdk-group-heading": "", "aria-hidden": !0, id: c }, n), Qs(e, (f) => h.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": n ? c : void 0 }, h.createElement(Ch.Provider, { value: m }, f))));
|
|
@@ -15813,14 +15813,14 @@ var Vr = '[cmdk-group=""]', Ha = '[cmdk-group-items=""]', TE = '[cmdk-group-head
|
|
|
15813
15813
|
let { alwaysRender: n, ...r } = e, o = h.useRef(null), s = $n((a) => !a.search);
|
|
15814
15814
|
return !n && !s ? null : h.createElement(we.div, { ref: jn(o, t), ...r, "cmdk-separator": "", role: "separator" });
|
|
15815
15815
|
}), IE = h.forwardRef((e, t) => {
|
|
15816
|
-
let { onValueChange: n, ...r } = e, o = e.value != null, s = Ml(), a = $n((c) => c.search), i = $n((c) => c.selectedItemId), l =
|
|
15816
|
+
let { onValueChange: n, ...r } = e, o = e.value != null, s = Ml(), a = $n((c) => c.search), i = $n((c) => c.selectedItemId), l = _o();
|
|
15817
15817
|
return h.useEffect(() => {
|
|
15818
15818
|
e.value != null && s.setState("search", e.value);
|
|
15819
15819
|
}, [e.value]), h.createElement(we.input, { ref: t, ...r, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": l.listId, "aria-labelledby": l.labelId, "aria-activedescendant": i, id: l.inputId, type: "text", value: o ? e.value : a, onChange: (c) => {
|
|
15820
15820
|
o || s.setState("search", c.target.value), n == null || n(c.target.value);
|
|
15821
15821
|
} });
|
|
15822
15822
|
}), NE = h.forwardRef((e, t) => {
|
|
15823
|
-
let { children: n, label: r = "Suggestions", ...o } = e, s = h.useRef(null), a = h.useRef(null), i = $n((c) => c.selectedItemId), l =
|
|
15823
|
+
let { children: n, label: r = "Suggestions", ...o } = e, s = h.useRef(null), a = h.useRef(null), i = $n((c) => c.selectedItemId), l = _o();
|
|
15824
15824
|
return h.useEffect(() => {
|
|
15825
15825
|
if (a.current && s.current) {
|
|
15826
15826
|
let c = a.current, d = s.current, p, m = new ResizeObserver(() => {
|
|
@@ -15836,7 +15836,7 @@ var Vr = '[cmdk-group=""]', Ha = '[cmdk-group-items=""]', TE = '[cmdk-group-head
|
|
|
15836
15836
|
}, []), h.createElement(we.div, { ref: jn(s, t), ...o, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": i, "aria-label": r, id: l.listId }, Qs(e, (c) => h.createElement("div", { ref: jn(a, l.listInnerRef), "cmdk-list-sizer": "" }, c)));
|
|
15837
15837
|
}), AE = h.forwardRef((e, t) => {
|
|
15838
15838
|
let { open: n, onOpenChange: r, overlayClassName: o, contentClassName: s, container: a, ...i } = e;
|
|
15839
|
-
return h.createElement(El, { open: n, onOpenChange: r }, h.createElement(kl, { container: a }, h.createElement(
|
|
15839
|
+
return h.createElement(El, { open: n, onOpenChange: r }, h.createElement(kl, { container: a }, h.createElement(No, { "cmdk-overlay": "", className: o }), h.createElement(Ao, { "aria-label": e.label, "cmdk-dialog": "", className: s }, h.createElement(Eh, { ref: t, ...i }))));
|
|
15840
15840
|
}), jE = h.forwardRef((e, t) => $n((n) => n.filtered.count === 0) ? h.createElement(we.div, { ref: t, ...e, "cmdk-empty": "", role: "presentation" }) : null), _E = h.forwardRef((e, t) => {
|
|
15841
15841
|
let { progress: n, children: r, label: o = "Loading...", ...s } = e;
|
|
15842
15842
|
return h.createElement(we.div, { ref: t, ...s, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": o }, Qs(e, (a) => h.createElement("div", { "aria-hidden": !0 }, a)));
|
|
@@ -15871,7 +15871,7 @@ function $n(e) {
|
|
|
15871
15871
|
return h.useSyncExternalStore(t.subscribe, n, n);
|
|
15872
15872
|
}
|
|
15873
15873
|
function Rh(e, t, n, r = []) {
|
|
15874
|
-
let o = h.useRef(), s =
|
|
15874
|
+
let o = h.useRef(), s = _o();
|
|
15875
15875
|
return ar(() => {
|
|
15876
15876
|
var a;
|
|
15877
15877
|
let i = (() => {
|
|
@@ -16254,8 +16254,8 @@ var zE = h.forwardRef((e, t) => {
|
|
|
16254
16254
|
viewport: s.viewport.offsetWidth,
|
|
16255
16255
|
scrollbar: {
|
|
16256
16256
|
size: l.current.clientWidth,
|
|
16257
|
-
paddingStart:
|
|
16258
|
-
paddingEnd:
|
|
16257
|
+
paddingStart: Ss(a.paddingLeft),
|
|
16258
|
+
paddingEnd: Ss(a.paddingRight)
|
|
16259
16259
|
}
|
|
16260
16260
|
});
|
|
16261
16261
|
}
|
|
@@ -16294,8 +16294,8 @@ var zE = h.forwardRef((e, t) => {
|
|
|
16294
16294
|
viewport: s.viewport.offsetHeight,
|
|
16295
16295
|
scrollbar: {
|
|
16296
16296
|
size: l.current.clientHeight,
|
|
16297
|
-
paddingStart:
|
|
16298
|
-
paddingEnd:
|
|
16297
|
+
paddingStart: Ss(a.paddingTop),
|
|
16298
|
+
paddingEnd: Ss(a.paddingBottom)
|
|
16299
16299
|
}
|
|
16300
16300
|
});
|
|
16301
16301
|
}
|
|
@@ -16355,14 +16355,14 @@ var zE = h.forwardRef((e, t) => {
|
|
|
16355
16355
|
)
|
|
16356
16356
|
}
|
|
16357
16357
|
);
|
|
16358
|
-
}),
|
|
16358
|
+
}), ys = "ScrollAreaThumb", zh = h.forwardRef(
|
|
16359
16359
|
(e, t) => {
|
|
16360
|
-
const { forceMount: n, ...r } = e, o = Fh(
|
|
16360
|
+
const { forceMount: n, ...r } = e, o = Fh(ys, e.__scopeScrollArea);
|
|
16361
16361
|
return /* @__PURE__ */ u.jsx(Gt, { present: n || o.hasThumb, children: /* @__PURE__ */ u.jsx(KE, { ref: t, ...r }) });
|
|
16362
16362
|
}
|
|
16363
16363
|
), KE = h.forwardRef(
|
|
16364
16364
|
(e, t) => {
|
|
16365
|
-
const { __scopeScrollArea: n, style: r, ...o } = e, s = sn(
|
|
16365
|
+
const { __scopeScrollArea: n, style: r, ...o } = e, s = sn(ys, n), a = Fh(ys, n), { onThumbPositionChange: i } = a, l = Be(
|
|
16366
16366
|
t,
|
|
16367
16367
|
(p) => a.onThumbChange(p)
|
|
16368
16368
|
), c = h.useRef(void 0), d = ta(() => {
|
|
@@ -16399,7 +16399,7 @@ var zE = h.forwardRef((e, t) => {
|
|
|
16399
16399
|
);
|
|
16400
16400
|
}
|
|
16401
16401
|
);
|
|
16402
|
-
zh.displayName =
|
|
16402
|
+
zh.displayName = ys;
|
|
16403
16403
|
var $l = "ScrollAreaCorner", Hh = h.forwardRef(
|
|
16404
16404
|
(e, t) => {
|
|
16405
16405
|
const n = sn($l, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
|
|
@@ -16434,7 +16434,7 @@ var qE = h.forwardRef((e, t) => {
|
|
|
16434
16434
|
}
|
|
16435
16435
|
) : null;
|
|
16436
16436
|
});
|
|
16437
|
-
function
|
|
16437
|
+
function Ss(e) {
|
|
16438
16438
|
return e ? parseInt(e, 10) : 0;
|
|
16439
16439
|
}
|
|
16440
16440
|
function Uh(e, t) {
|
|
@@ -16582,16 +16582,16 @@ function tk({
|
|
|
16582
16582
|
}
|
|
16583
16583
|
),
|
|
16584
16584
|
/* @__PURE__ */ u.jsx(
|
|
16585
|
-
|
|
16585
|
+
it,
|
|
16586
16586
|
{
|
|
16587
16587
|
variant: "ghost",
|
|
16588
16588
|
size: "sm",
|
|
16589
16589
|
onClick: () => i(e.threadId),
|
|
16590
16590
|
className: "h-6 w-6 p-0",
|
|
16591
|
-
children: /* @__PURE__ */ u.jsx(
|
|
16591
|
+
children: /* @__PURE__ */ u.jsx(Cs, { size: 12 })
|
|
16592
16592
|
}
|
|
16593
16593
|
),
|
|
16594
|
-
/* @__PURE__ */ u.jsx(
|
|
16594
|
+
/* @__PURE__ */ u.jsx(it, { variant: "ghost", size: "sm", onClick: l, className: "h-6 w-6 p-0", children: /* @__PURE__ */ u.jsx(Xn, { size: 12 }) })
|
|
16595
16595
|
] }) : /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
16596
16596
|
/* @__PURE__ */ u.jsx("div", { className: "font-medium text-sm truncate text-gray-900 dark:text-slate-100", children: v(e) }),
|
|
16597
16597
|
/* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-2 text-xs text-gray-500 dark:text-slate-400 mt-1", children: [
|
|
@@ -16601,7 +16601,7 @@ function tk({
|
|
|
16601
16601
|
g && /* @__PURE__ */ u.jsx("div", { className: "text-[11px] text-muted-foreground mt-1", children: g })
|
|
16602
16602
|
] }) }),
|
|
16603
16603
|
/* @__PURE__ */ u.jsx("div", { className: "flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity ml-2", children: /* @__PURE__ */ u.jsxs(ll, { children: [
|
|
16604
|
-
/* @__PURE__ */ u.jsx(cl, { asChild: !0, children: /* @__PURE__ */ u.jsx(
|
|
16604
|
+
/* @__PURE__ */ u.jsx(cl, { asChild: !0, children: /* @__PURE__ */ u.jsx(it, { variant: "ghost", size: "sm", className: "h-6 w-6 p-0", children: /* @__PURE__ */ u.jsx(Du, { size: 12 }) }) }),
|
|
16605
16605
|
/* @__PURE__ */ u.jsxs(Vs, { align: "end", sideOffset: 6, className: "w-44", children: [
|
|
16606
16606
|
/* @__PURE__ */ u.jsxs(
|
|
16607
16607
|
Qn,
|
|
@@ -16622,7 +16622,7 @@ function tk({
|
|
|
16622
16622
|
T.preventDefault(), s(e, T);
|
|
16623
16623
|
},
|
|
16624
16624
|
children: [
|
|
16625
|
-
/* @__PURE__ */ u.jsx(
|
|
16625
|
+
/* @__PURE__ */ u.jsx(ho, { className: "mr-2 h-4 w-4" }),
|
|
16626
16626
|
"Rename"
|
|
16627
16627
|
]
|
|
16628
16628
|
}
|
|
@@ -16712,7 +16712,7 @@ function gi({
|
|
|
16712
16712
|
shareInFlight: B,
|
|
16713
16713
|
shareStatus: V,
|
|
16714
16714
|
clearShareStatus: z
|
|
16715
|
-
} =
|
|
16715
|
+
} = wo(), { createThread: k, deleteThread: U, renameThread: A, shareThread: D } = $, { loadThread: j } = _s(), N = a ?? S, [q, J] = fe(Array.isArray(C) ? C : []), _ = $e(q.length > 0), P = $e(null), K = $e(0), [Y, re] = fe(null), [W, L] = fe(""), [G, X] = fe(!1), [le, F] = fe(!1), [ne, ce] = fe(null), [ie, xe] = fe(""), Ie = v && v.length > 0 ? v : sk, Ae = ok({ defaultView: m }), De = g ?? Ae, Ne = p ?? De.view, ze = ge(
|
|
16716
16716
|
(te) => {
|
|
16717
16717
|
p || De.setView(te), f == null || f(te);
|
|
16718
16718
|
},
|
|
@@ -16721,7 +16721,7 @@ function gi({
|
|
|
16721
16721
|
ce(te), xe(""), F(!0);
|
|
16722
16722
|
}, He = () => {
|
|
16723
16723
|
F(!1), ce(null), xe(""), z();
|
|
16724
|
-
},
|
|
16724
|
+
}, lt = ge(
|
|
16725
16725
|
async (te) => {
|
|
16726
16726
|
if (!(!ne || B) && te.id)
|
|
16727
16727
|
try {
|
|
@@ -16818,7 +16818,7 @@ function gi({
|
|
|
16818
16818
|
className: s.header || "flex flex-col gap-2 px-1 py-0 border border-slate-200 bg-white dark:border-slate-700 dark:bg-slate-900 shadow-sm",
|
|
16819
16819
|
children: [
|
|
16820
16820
|
t && /* @__PURE__ */ u.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ u.jsxs(
|
|
16821
|
-
|
|
16821
|
+
it,
|
|
16822
16822
|
{
|
|
16823
16823
|
onClick: kt,
|
|
16824
16824
|
disabled: G || R,
|
|
@@ -16827,7 +16827,7 @@ function gi({
|
|
|
16827
16827
|
variant: "ghost",
|
|
16828
16828
|
title: G ? "Creating..." : "New Chat",
|
|
16829
16829
|
children: [
|
|
16830
|
-
/* @__PURE__ */ u.jsx(
|
|
16830
|
+
/* @__PURE__ */ u.jsx(ho, { size: 16 }),
|
|
16831
16831
|
/* @__PURE__ */ u.jsx("span", { children: "New chat" })
|
|
16832
16832
|
]
|
|
16833
16833
|
}
|
|
@@ -16836,7 +16836,7 @@ function gi({
|
|
|
16836
16836
|
/* @__PURE__ */ u.jsx("span", { children: "Current View" }),
|
|
16837
16837
|
/* @__PURE__ */ u.jsxs(ll, { children: [
|
|
16838
16838
|
/* @__PURE__ */ u.jsx(cl, { asChild: !0, children: /* @__PURE__ */ u.jsx(
|
|
16839
|
-
|
|
16839
|
+
it,
|
|
16840
16840
|
{
|
|
16841
16841
|
variant: "outline",
|
|
16842
16842
|
size: "sm",
|
|
@@ -16853,7 +16853,7 @@ function gi({
|
|
|
16853
16853
|
},
|
|
16854
16854
|
children: [
|
|
16855
16855
|
/* @__PURE__ */ u.jsx("span", { children: te.label }),
|
|
16856
|
-
Ne === te.key && /* @__PURE__ */ u.jsx(
|
|
16856
|
+
Ne === te.key && /* @__PURE__ */ u.jsx(Cs, { className: "h-3 w-3" })
|
|
16857
16857
|
]
|
|
16858
16858
|
},
|
|
16859
16859
|
te.key
|
|
@@ -16928,7 +16928,7 @@ function gi({
|
|
|
16928
16928
|
/* @__PURE__ */ u.jsx(qn, { className: "h-4 w-4 animate-spin" }),
|
|
16929
16929
|
"Loading recipients…"
|
|
16930
16930
|
] }) : "No matching recipients found" }),
|
|
16931
|
-
st.length > 0 && /* @__PURE__ */ u.jsx(_h, { heading: "Recipients", children: st.map((te) => /* @__PURE__ */ u.jsx(Ph, { onSelect: () =>
|
|
16931
|
+
st.length > 0 && /* @__PURE__ */ u.jsx(_h, { heading: "Recipients", children: st.map((te) => /* @__PURE__ */ u.jsx(Ph, { onSelect: () => lt(te), children: /* @__PURE__ */ u.jsxs("div", { className: "flex flex-col items-start text-sm", children: [
|
|
16932
16932
|
/* @__PURE__ */ u.jsx("span", { className: "font-medium", children: te.label }),
|
|
16933
16933
|
te.secondaryLabel && /* @__PURE__ */ u.jsx("span", { className: "text-xs text-muted-foreground", children: te.secondaryLabel })
|
|
16934
16934
|
] }) }, te.id)) })
|
|
@@ -17092,7 +17092,7 @@ function hN({
|
|
|
17092
17092
|
] }),
|
|
17093
17093
|
/* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
17094
17094
|
/* @__PURE__ */ u.jsx(
|
|
17095
|
-
|
|
17095
|
+
it,
|
|
17096
17096
|
{
|
|
17097
17097
|
variant: "ghost",
|
|
17098
17098
|
size: "sm",
|
|
@@ -17102,17 +17102,17 @@ function hN({
|
|
|
17102
17102
|
}
|
|
17103
17103
|
),
|
|
17104
17104
|
/* @__PURE__ */ u.jsx(
|
|
17105
|
-
|
|
17105
|
+
it,
|
|
17106
17106
|
{
|
|
17107
17107
|
variant: "ghost",
|
|
17108
17108
|
size: "sm",
|
|
17109
17109
|
className: "text-white hover:bg-white/10 h-8 w-8 p-0",
|
|
17110
17110
|
title: "Compose",
|
|
17111
|
-
children: /* @__PURE__ */ u.jsx(
|
|
17111
|
+
children: /* @__PURE__ */ u.jsx(ho, { size: 16 })
|
|
17112
17112
|
}
|
|
17113
17113
|
),
|
|
17114
17114
|
/* @__PURE__ */ u.jsx(
|
|
17115
|
-
|
|
17115
|
+
it,
|
|
17116
17116
|
{
|
|
17117
17117
|
variant: "ghost",
|
|
17118
17118
|
size: "sm",
|
|
@@ -17133,6 +17133,31 @@ function hN({
|
|
|
17133
17133
|
}
|
|
17134
17134
|
) }) : null;
|
|
17135
17135
|
}
|
|
17136
|
+
function mN({
|
|
17137
|
+
label: e = "New chat",
|
|
17138
|
+
children: t,
|
|
17139
|
+
className: n,
|
|
17140
|
+
variant: r = "ghost",
|
|
17141
|
+
size: o = "sm",
|
|
17142
|
+
...s
|
|
17143
|
+
}) {
|
|
17144
|
+
return /* @__PURE__ */ u.jsxs(
|
|
17145
|
+
it,
|
|
17146
|
+
{
|
|
17147
|
+
variant: r,
|
|
17148
|
+
size: o,
|
|
17149
|
+
className: ee(
|
|
17150
|
+
"gap-2 rounded-full px-3 font-semibold transition-all hover:scale-[1.01]",
|
|
17151
|
+
n
|
|
17152
|
+
),
|
|
17153
|
+
...s,
|
|
17154
|
+
children: [
|
|
17155
|
+
/* @__PURE__ */ u.jsx(ho, { size: 16 }),
|
|
17156
|
+
t ?? e
|
|
17157
|
+
]
|
|
17158
|
+
}
|
|
17159
|
+
);
|
|
17160
|
+
}
|
|
17136
17161
|
var ik = "Label", Jh = h.forwardRef((e, t) => /* @__PURE__ */ u.jsx(
|
|
17137
17162
|
we.label,
|
|
17138
17163
|
{
|
|
@@ -17184,7 +17209,7 @@ var em = Object.freeze({
|
|
|
17184
17209
|
)
|
|
17185
17210
|
);
|
|
17186
17211
|
na.displayName = uk;
|
|
17187
|
-
var dk = na, fk = [" ", "Enter", "ArrowUp", "ArrowDown"], pk = [" ", "Enter"], ir = "Select", [ra, oa, hk] = Ps(ir), [Br,
|
|
17212
|
+
var dk = na, fk = [" ", "Enter", "ArrowUp", "ArrowDown"], pk = [" ", "Enter"], ir = "Select", [ra, oa, hk] = Ps(ir), [Br, gN] = hn(ir, [
|
|
17188
17213
|
hk,
|
|
17189
17214
|
Lr
|
|
17190
17215
|
]), sa = Lr(), [mk, Hn] = Br(ir), [gk, xk] = Br(ir), tm = (e) => {
|
|
@@ -17342,7 +17367,7 @@ var vk = "SelectIcon", am = h.forwardRef(
|
|
|
17342
17367
|
}
|
|
17343
17368
|
);
|
|
17344
17369
|
am.displayName = vk;
|
|
17345
|
-
var wk = "SelectPortal", im = (e) => /* @__PURE__ */ u.jsx(
|
|
17370
|
+
var wk = "SelectPortal", im = (e) => /* @__PURE__ */ u.jsx(So, { asChild: !0, ...e });
|
|
17346
17371
|
im.displayName = wk;
|
|
17347
17372
|
var lr = "SelectContent", lm = h.forwardRef(
|
|
17348
17373
|
(e, t) => {
|
|
@@ -17732,7 +17757,7 @@ var hm = "SelectLabel", mm = h.forwardRef(
|
|
|
17732
17757
|
}
|
|
17733
17758
|
);
|
|
17734
17759
|
mm.displayName = hm;
|
|
17735
|
-
var
|
|
17760
|
+
var Ts = "SelectItem", [Ik, gm] = Br(Ts), xm = h.forwardRef(
|
|
17736
17761
|
(e, t) => {
|
|
17737
17762
|
const {
|
|
17738
17763
|
__scopeSelect: n,
|
|
@@ -17740,7 +17765,7 @@ var Ss = "SelectItem", [Ik, gm] = Br(Ss), xm = h.forwardRef(
|
|
|
17740
17765
|
disabled: o = !1,
|
|
17741
17766
|
textValue: s,
|
|
17742
17767
|
...a
|
|
17743
|
-
} = e, i = Hn(
|
|
17768
|
+
} = e, i = Hn(Ts, n), l = Un(Ts, n), c = i.value === r, [d, p] = h.useState(s ?? ""), [m, f] = h.useState(!1), v = Be(
|
|
17744
17769
|
t,
|
|
17745
17770
|
(w) => {
|
|
17746
17771
|
var y;
|
|
@@ -17815,7 +17840,7 @@ var Ss = "SelectItem", [Ik, gm] = Br(Ss), xm = h.forwardRef(
|
|
|
17815
17840
|
);
|
|
17816
17841
|
}
|
|
17817
17842
|
);
|
|
17818
|
-
xm.displayName =
|
|
17843
|
+
xm.displayName = Ts;
|
|
17819
17844
|
var qr = "SelectItemText", vm = h.forwardRef(
|
|
17820
17845
|
(e, t) => {
|
|
17821
17846
|
const { __scopeSelect: n, className: r, style: o, ...s } = e, a = Hn(qr, n), i = Un(qr, n), l = gm(qr, n), c = xk(qr, n), [d, p] = h.useState(null), m = Be(
|
|
@@ -17989,7 +18014,7 @@ function _k(e, t) {
|
|
|
17989
18014
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
17990
18015
|
}
|
|
17991
18016
|
var Pk = tm, Nm = rm, Mk = sm, Ok = am, Dk = im, Am = lm, Lk = fm, jm = mm, _m = xm, $k = vm, Fk = bm, Pm = ym, Mm = Sm, Om = Cm;
|
|
17992
|
-
const
|
|
18017
|
+
const xN = Pk, vN = Mk, Bk = h.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ u.jsxs(
|
|
17993
18018
|
Nm,
|
|
17994
18019
|
{
|
|
17995
18020
|
ref: r,
|
|
@@ -18000,7 +18025,7 @@ const gN = Pk, xN = Mk, Bk = h.forwardRef(({ className: e, children: t, ...n },
|
|
|
18000
18025
|
...n,
|
|
18001
18026
|
children: [
|
|
18002
18027
|
t,
|
|
18003
|
-
/* @__PURE__ */ u.jsx(Ok, { asChild: !0, children: /* @__PURE__ */ u.jsx(
|
|
18028
|
+
/* @__PURE__ */ u.jsx(Ok, { asChild: !0, children: /* @__PURE__ */ u.jsx(Es, { className: "h-4 w-4 opacity-50" }) })
|
|
18004
18029
|
]
|
|
18005
18030
|
}
|
|
18006
18031
|
));
|
|
@@ -18027,7 +18052,7 @@ const Lm = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
|
18027
18052
|
e
|
|
18028
18053
|
),
|
|
18029
18054
|
...t,
|
|
18030
|
-
children: /* @__PURE__ */ u.jsx(
|
|
18055
|
+
children: /* @__PURE__ */ u.jsx(Es, { className: "h-4 w-4" })
|
|
18031
18056
|
}
|
|
18032
18057
|
));
|
|
18033
18058
|
Lm.displayName = Mm.displayName;
|
|
@@ -18078,7 +18103,7 @@ const Uk = h.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
18078
18103
|
),
|
|
18079
18104
|
...n,
|
|
18080
18105
|
children: [
|
|
18081
|
-
/* @__PURE__ */ u.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ u.jsx(Fk, { children: /* @__PURE__ */ u.jsx(
|
|
18106
|
+
/* @__PURE__ */ u.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ u.jsx(Fk, { children: /* @__PURE__ */ u.jsx(Cs, { className: "h-4 w-4" }) }) }),
|
|
18082
18107
|
/* @__PURE__ */ u.jsx($k, { children: t })
|
|
18083
18108
|
]
|
|
18084
18109
|
}
|
|
@@ -18127,7 +18152,7 @@ const Gk = h.forwardRef(
|
|
|
18127
18152
|
)
|
|
18128
18153
|
);
|
|
18129
18154
|
Gk.displayName = Fm.displayName;
|
|
18130
|
-
var aa = "Switch", [Yk,
|
|
18155
|
+
var aa = "Switch", [Yk, wN] = hn(aa), [Xk, Jk] = Yk(aa), Bm = h.forwardRef(
|
|
18131
18156
|
(e, t) => {
|
|
18132
18157
|
const {
|
|
18133
18158
|
__scopeSwitch: n,
|
|
@@ -18264,8 +18289,8 @@ const eR = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
|
18264
18289
|
}
|
|
18265
18290
|
));
|
|
18266
18291
|
eR.displayName = Vm.displayName;
|
|
18267
|
-
const
|
|
18268
|
-
|
|
18292
|
+
const bN = El, yN = NC, tR = kl, Km = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
18293
|
+
No,
|
|
18269
18294
|
{
|
|
18270
18295
|
className: ee(
|
|
18271
18296
|
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
@@ -18275,7 +18300,7 @@ const wN = El, bN = NC, tR = kl, Km = h.forwardRef(({ className: e, ...t }, n) =
|
|
|
18275
18300
|
ref: n
|
|
18276
18301
|
}
|
|
18277
18302
|
));
|
|
18278
|
-
Km.displayName =
|
|
18303
|
+
Km.displayName = No.displayName;
|
|
18279
18304
|
const nR = fo(
|
|
18280
18305
|
"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
18281
18306
|
{
|
|
@@ -18294,7 +18319,7 @@ const nR = fo(
|
|
|
18294
18319
|
), rR = h.forwardRef(({ side: e = "right", className: t, children: n, ...r }, o) => /* @__PURE__ */ u.jsxs(tR, { children: [
|
|
18295
18320
|
/* @__PURE__ */ u.jsx(Km, {}),
|
|
18296
18321
|
/* @__PURE__ */ u.jsxs(
|
|
18297
|
-
|
|
18322
|
+
Ao,
|
|
18298
18323
|
{
|
|
18299
18324
|
ref: o,
|
|
18300
18325
|
className: ee(nR({ side: e }), t),
|
|
@@ -18309,7 +18334,7 @@ const nR = fo(
|
|
|
18309
18334
|
}
|
|
18310
18335
|
)
|
|
18311
18336
|
] }));
|
|
18312
|
-
rR.displayName =
|
|
18337
|
+
rR.displayName = Ao.displayName;
|
|
18313
18338
|
const oR = ({
|
|
18314
18339
|
className: e,
|
|
18315
18340
|
...t
|
|
@@ -18342,7 +18367,7 @@ const aR = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
|
18342
18367
|
}
|
|
18343
18368
|
));
|
|
18344
18369
|
aR.displayName = Zs.displayName;
|
|
18345
|
-
var [ia,
|
|
18370
|
+
var [ia, SN] = hn("Tooltip", [
|
|
18346
18371
|
Lr
|
|
18347
18372
|
]), la = Lr(), qm = "TooltipProvider", iR = 700, Si = "tooltip.open", [lR, Bl] = ia(qm), Gm = (e) => {
|
|
18348
18373
|
const {
|
|
@@ -18459,7 +18484,7 @@ var Ti = "TooltipTrigger", Xm = h.forwardRef(
|
|
|
18459
18484
|
}
|
|
18460
18485
|
);
|
|
18461
18486
|
Xm.displayName = Ti;
|
|
18462
|
-
var uR = "TooltipPortal", [
|
|
18487
|
+
var uR = "TooltipPortal", [TN, dR] = ia(uR, {
|
|
18463
18488
|
forceMount: void 0
|
|
18464
18489
|
}), Nr = "TooltipContent", Jm = h.forwardRef(
|
|
18465
18490
|
(e, t) => {
|
|
@@ -18648,7 +18673,7 @@ function SR(e) {
|
|
|
18648
18673
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
18649
18674
|
}
|
|
18650
18675
|
var TR = Gm, CR = Ym, ER = Xm, eg = Jm;
|
|
18651
|
-
const
|
|
18676
|
+
const CN = TR, EN = CR, kN = ER, kR = h.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ u.jsx(
|
|
18652
18677
|
eg,
|
|
18653
18678
|
{
|
|
18654
18679
|
ref: r,
|
|
@@ -18661,7 +18686,7 @@ const TN = TR, CN = CR, EN = ER, kR = h.forwardRef(({ className: e, sideOffset:
|
|
|
18661
18686
|
}
|
|
18662
18687
|
));
|
|
18663
18688
|
kR.displayName = eg.displayName;
|
|
18664
|
-
var zl = "ToastProvider", [Hl, RR, IR] = Ps("Toast"), [tg,
|
|
18689
|
+
var zl = "ToastProvider", [Hl, RR, IR] = Ps("Toast"), [tg, RN] = hn("Toast", [IR]), [NR, ua] = tg(zl), ng = (e) => {
|
|
18665
18690
|
const {
|
|
18666
18691
|
__scopeToast: t,
|
|
18667
18692
|
label: n = "Notification",
|
|
@@ -18817,13 +18842,13 @@ var sg = "ToastFocusProxy", ki = h.forwardRef(
|
|
|
18817
18842
|
}
|
|
18818
18843
|
);
|
|
18819
18844
|
ki.displayName = sg;
|
|
18820
|
-
var
|
|
18845
|
+
var Po = "Toast", jR = "toast.swipeStart", _R = "toast.swipeMove", PR = "toast.swipeCancel", MR = "toast.swipeEnd", ag = h.forwardRef(
|
|
18821
18846
|
(e, t) => {
|
|
18822
18847
|
const { forceMount: n, open: r, defaultOpen: o, onOpenChange: s, ...a } = e, [i, l] = _n({
|
|
18823
18848
|
prop: r,
|
|
18824
18849
|
defaultProp: o ?? !0,
|
|
18825
18850
|
onChange: s,
|
|
18826
|
-
caller:
|
|
18851
|
+
caller: Po
|
|
18827
18852
|
});
|
|
18828
18853
|
return /* @__PURE__ */ u.jsx(Gt, { present: n || i, children: /* @__PURE__ */ u.jsx(
|
|
18829
18854
|
LR,
|
|
@@ -18852,8 +18877,8 @@ var _o = "Toast", jR = "toast.swipeStart", _R = "toast.swipeMove", PR = "toast.s
|
|
|
18852
18877
|
) });
|
|
18853
18878
|
}
|
|
18854
18879
|
);
|
|
18855
|
-
ag.displayName =
|
|
18856
|
-
var [OR, DR] = tg(
|
|
18880
|
+
ag.displayName = Po;
|
|
18881
|
+
var [OR, DR] = tg(Po, {
|
|
18857
18882
|
onClose() {
|
|
18858
18883
|
}
|
|
18859
18884
|
}), LR = h.forwardRef(
|
|
@@ -18872,7 +18897,7 @@ var [OR, DR] = tg(_o, {
|
|
|
18872
18897
|
onSwipeCancel: m,
|
|
18873
18898
|
onSwipeEnd: f,
|
|
18874
18899
|
...v
|
|
18875
|
-
} = e, g = ua(
|
|
18900
|
+
} = e, g = ua(Po, n), [x, b] = h.useState(null), w = Be(t, (k) => b(k)), y = h.useRef(null), C = h.useRef(null), T = o || g.duration, S = h.useRef(0), E = h.useRef(T), R = h.useRef(0), { onToastAdd: M, onToastRemove: $ } = g, B = yt(() => {
|
|
18876
18901
|
var U;
|
|
18877
18902
|
(x == null ? void 0 : x.contains(document.activeElement)) && ((U = g.viewport) == null || U.focus()), a();
|
|
18878
18903
|
}), V = h.useCallback(
|
|
@@ -18934,9 +18959,9 @@ var [OR, DR] = tg(_o, {
|
|
|
18934
18959
|
onPointerMove: ae(e.onPointerMove, (k) => {
|
|
18935
18960
|
if (!y.current) return;
|
|
18936
18961
|
const U = k.clientX - y.current.x, A = k.clientY - y.current.y, D = !!C.current, j = ["left", "right"].includes(g.swipeDirection), N = ["left", "up"].includes(g.swipeDirection) ? Math.min : Math.max, q = j ? N(0, U) : 0, J = j ? 0 : N(0, A), _ = k.pointerType === "touch" ? 10 : 2, P = { x: q, y: J }, K = { originalEvent: k, delta: P };
|
|
18937
|
-
D ? (C.current = P,
|
|
18962
|
+
D ? (C.current = P, Wo(_R, p, K, {
|
|
18938
18963
|
discrete: !1
|
|
18939
|
-
})) : ju(P, g.swipeDirection, _) ? (C.current = P,
|
|
18964
|
+
})) : ju(P, g.swipeDirection, _) ? (C.current = P, Wo(jR, d, K, {
|
|
18940
18965
|
discrete: !1
|
|
18941
18966
|
}), k.target.setPointerCapture(k.pointerId)) : (Math.abs(U) > _ || Math.abs(A) > _) && (y.current = null);
|
|
18942
18967
|
}),
|
|
@@ -18944,9 +18969,9 @@ var [OR, DR] = tg(_o, {
|
|
|
18944
18969
|
const U = C.current, A = k.target;
|
|
18945
18970
|
if (A.hasPointerCapture(k.pointerId) && A.releasePointerCapture(k.pointerId), C.current = null, y.current = null, U) {
|
|
18946
18971
|
const D = k.currentTarget, j = { originalEvent: k, delta: U };
|
|
18947
|
-
ju(U, g.swipeDirection, g.swipeThreshold) ?
|
|
18972
|
+
ju(U, g.swipeDirection, g.swipeThreshold) ? Wo(MR, f, j, {
|
|
18948
18973
|
discrete: !0
|
|
18949
|
-
}) :
|
|
18974
|
+
}) : Wo(
|
|
18950
18975
|
PR,
|
|
18951
18976
|
m,
|
|
18952
18977
|
j,
|
|
@@ -18967,11 +18992,11 @@ var [OR, DR] = tg(_o, {
|
|
|
18967
18992
|
] }) : null;
|
|
18968
18993
|
}
|
|
18969
18994
|
), $R = (e) => {
|
|
18970
|
-
const { __scopeToast: t, children: n, ...r } = e, o = ua(
|
|
18995
|
+
const { __scopeToast: t, children: n, ...r } = e, o = ua(Po, t), [s, a] = h.useState(!1), [i, l] = h.useState(!1);
|
|
18971
18996
|
return zR(() => a(!0)), h.useEffect(() => {
|
|
18972
18997
|
const c = window.setTimeout(() => l(!0), 1e3);
|
|
18973
18998
|
return () => window.clearTimeout(c);
|
|
18974
|
-
}, []), i ? null : /* @__PURE__ */ u.jsx(
|
|
18999
|
+
}, []), i ? null : /* @__PURE__ */ u.jsx(So, { asChild: !0, children: /* @__PURE__ */ u.jsx(na, { ...r, children: s && /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
18975
19000
|
o.label,
|
|
18976
19001
|
" ",
|
|
18977
19002
|
n
|
|
@@ -19040,7 +19065,7 @@ function pg(e) {
|
|
|
19040
19065
|
}
|
|
19041
19066
|
}), t;
|
|
19042
19067
|
}
|
|
19043
|
-
function
|
|
19068
|
+
function Wo(e, t, n, { discrete: r }) {
|
|
19044
19069
|
const o = n.originalEvent.currentTarget, s = new CustomEvent(e, { bubbles: !0, cancelable: !0, detail: n });
|
|
19045
19070
|
t && o.addEventListener(e, t, { once: !0 }), r ? Bi(o, s) : o.dispatchEvent(s);
|
|
19046
19071
|
}
|
|
@@ -19154,7 +19179,7 @@ const Cg = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
|
19154
19179
|
}
|
|
19155
19180
|
));
|
|
19156
19181
|
Cg.displayName = xg.displayName;
|
|
19157
|
-
function
|
|
19182
|
+
function IN() {
|
|
19158
19183
|
const { toasts: e } = Al();
|
|
19159
19184
|
return /* @__PURE__ */ u.jsxs(VR, { children: [
|
|
19160
19185
|
e.map(function({ id: t, title: n, description: r, action: o, ...s }) {
|
|
@@ -19278,7 +19303,7 @@ function pI(e, { insertAt: t } = {}) {
|
|
|
19278
19303
|
}
|
|
19279
19304
|
pI(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
|
|
19280
19305
|
`);
|
|
19281
|
-
function
|
|
19306
|
+
function Vo(e) {
|
|
19282
19307
|
return e.label !== void 0;
|
|
19283
19308
|
}
|
|
19284
19309
|
var hI = 3, mI = "32px", gI = "16px", _u = 4e3, xI = 356, vI = 14, wI = 20, bI = 200;
|
|
@@ -19291,7 +19316,7 @@ function yI(e) {
|
|
|
19291
19316
|
}
|
|
19292
19317
|
var SI = (e) => {
|
|
19293
19318
|
var t, n, r, o, s, a, i, l, c, d, p;
|
|
19294
|
-
let { invert: m, toast: f, unstyled: v, interacting: g, setHeights: x, visibleToasts: b, heights: w, index: y, toasts: C, expanded: T, removeToast: S, defaultRichColors: E, closeButton: R, style: M, cancelButtonStyle: $, actionButtonStyle: B, className: V = "", descriptionClassName: z = "", duration: k, position: U, gap: A, loadingIcon: D, expandByDefault: j, classNames: N, icons: q, closeButtonAriaLabel: J = "Close toast", pauseWhenPageIsHidden: _ } = e, [P, K] = O.useState(null), [Y, re] = O.useState(null), [W, L] = O.useState(!1), [G, X] = O.useState(!1), [le, F] = O.useState(!1), [ne, ce] = O.useState(!1), [ie, xe] = O.useState(!1), [Ie, Ae] = O.useState(0), [De, Ne] = O.useState(0), ze = O.useRef(f.duration || k || _u), ot = O.useRef(null), Ge = O.useRef(null), He = y === 0,
|
|
19319
|
+
let { invert: m, toast: f, unstyled: v, interacting: g, setHeights: x, visibleToasts: b, heights: w, index: y, toasts: C, expanded: T, removeToast: S, defaultRichColors: E, closeButton: R, style: M, cancelButtonStyle: $, actionButtonStyle: B, className: V = "", descriptionClassName: z = "", duration: k, position: U, gap: A, loadingIcon: D, expandByDefault: j, classNames: N, icons: q, closeButtonAriaLabel: J = "Close toast", pauseWhenPageIsHidden: _ } = e, [P, K] = O.useState(null), [Y, re] = O.useState(null), [W, L] = O.useState(!1), [G, X] = O.useState(!1), [le, F] = O.useState(!1), [ne, ce] = O.useState(!1), [ie, xe] = O.useState(!1), [Ie, Ae] = O.useState(0), [De, Ne] = O.useState(0), ze = O.useRef(f.duration || k || _u), ot = O.useRef(null), Ge = O.useRef(null), He = y === 0, lt = y + 1 <= b, st = f.type, et = f.dismissible !== !1, Ct = f.className || "", xt = f.descriptionClassName || "", dt = O.useMemo(() => w.findIndex((ve) => ve.toastId === f.id) || 0, [w, f.id]), jt = O.useMemo(() => {
|
|
19295
19320
|
var ve;
|
|
19296
19321
|
return (ve = f.closeButton) != null ? ve : R;
|
|
19297
19322
|
}, [f.closeButton, R]), _t = O.useMemo(() => f.duration || k || _u, [f.duration, k]), Et = O.useRef(0), kt = O.useRef(0), Rt = O.useRef(0), Ve = O.useRef(null), [he, Ue] = U.split("-"), Ye = O.useMemo(() => w.reduce((ve, Pe, We) => We >= dt ? ve : ve + Pe.height, 0), [w, dt]), vt = aI(), $t = f.invert || m, te = st === "loading";
|
|
@@ -19337,7 +19362,7 @@ var SI = (e) => {
|
|
|
19337
19362
|
var ve, Pe, We;
|
|
19338
19363
|
return q != null && q.loading ? O.createElement("div", { className: an(N == null ? void 0 : N.loader, (ve = f == null ? void 0 : f.classNames) == null ? void 0 : ve.loader, "sonner-loader"), "data-visible": st === "loading" }, q.loading) : D ? O.createElement("div", { className: an(N == null ? void 0 : N.loader, (Pe = f == null ? void 0 : f.classNames) == null ? void 0 : Pe.loader, "sonner-loader"), "data-visible": st === "loading" }, D) : O.createElement(eI, { className: an(N == null ? void 0 : N.loader, (We = f == null ? void 0 : f.classNames) == null ? void 0 : We.loader), visible: st === "loading" });
|
|
19339
19364
|
}
|
|
19340
|
-
return O.createElement("li", { tabIndex: 0, ref: Ge, className: an(V, Ct, N == null ? void 0 : N.toast, (t = f == null ? void 0 : f.classNames) == null ? void 0 : t.toast, N == null ? void 0 : N.default, N == null ? void 0 : N[st], (n = f == null ? void 0 : f.classNames) == null ? void 0 : n[st]), "data-sonner-toast": "", "data-rich-colors": (r = f.richColors) != null ? r : E, "data-styled": !(f.jsx || f.unstyled || v), "data-mounted": W, "data-promise": !!f.promise, "data-swiped": ie, "data-removed": G, "data-visible":
|
|
19365
|
+
return O.createElement("li", { tabIndex: 0, ref: Ge, className: an(V, Ct, N == null ? void 0 : N.toast, (t = f == null ? void 0 : f.classNames) == null ? void 0 : t.toast, N == null ? void 0 : N.default, N == null ? void 0 : N[st], (n = f == null ? void 0 : f.classNames) == null ? void 0 : n[st]), "data-sonner-toast": "", "data-rich-colors": (r = f.richColors) != null ? r : E, "data-styled": !(f.jsx || f.unstyled || v), "data-mounted": W, "data-promise": !!f.promise, "data-swiped": ie, "data-removed": G, "data-visible": lt, "data-y-position": he, "data-x-position": Ue, "data-index": y, "data-front": He, "data-swiping": le, "data-dismissible": et, "data-type": st, "data-invert": $t, "data-swipe-out": ne, "data-swipe-direction": Y, "data-expanded": !!(T || j && W), style: { "--index": y, "--toasts-before": y, "--z-index": C.length - y, "--offset": `${G ? Ie : kt.current}px`, "--initial-height": j ? "auto" : `${De}px`, ...M, ...f.style }, onDragEnd: () => {
|
|
19341
19366
|
F(!1), K(null), Ve.current = null;
|
|
19342
19367
|
}, onPointerDown: (ve) => {
|
|
19343
19368
|
te || !et || (ot.current = /* @__PURE__ */ new Date(), Ae(kt.current), ve.target.setPointerCapture(ve.pointerId), ve.target.tagName !== "BUTTON" && (F(!0), Ve.current = { x: ve.clientX, y: ve.clientY }));
|
|
@@ -19362,12 +19387,12 @@ var SI = (e) => {
|
|
|
19362
19387
|
} : () => {
|
|
19363
19388
|
var ve;
|
|
19364
19389
|
Se(), (ve = f.onDismiss) == null || ve.call(f, f);
|
|
19365
|
-
}, className: an(N == null ? void 0 : N.closeButton, (o = f == null ? void 0 : f.classNames) == null ? void 0 : o.closeButton) }, (s = q == null ? void 0 : q.close) != null ? s : sI) : null, f.jsx || ma(f.title) ? f.jsx ? f.jsx : typeof f.title == "function" ? f.title() : f.title : O.createElement(O.Fragment, null, st || f.icon || f.promise ? O.createElement("div", { "data-icon": "", className: an(N == null ? void 0 : N.icon, (a = f == null ? void 0 : f.classNames) == null ? void 0 : a.icon) }, f.promise || f.type === "loading" && !f.icon ? f.icon || ft() : null, f.type !== "loading" ? f.icon || (q == null ? void 0 : q[st]) || ZR(st) : null) : null, O.createElement("div", { "data-content": "", className: an(N == null ? void 0 : N.content, (i = f == null ? void 0 : f.classNames) == null ? void 0 : i.content) }, O.createElement("div", { "data-title": "", className: an(N == null ? void 0 : N.title, (l = f == null ? void 0 : f.classNames) == null ? void 0 : l.title) }, typeof f.title == "function" ? f.title() : f.title), f.description ? O.createElement("div", { "data-description": "", className: an(z, xt, N == null ? void 0 : N.description, (c = f == null ? void 0 : f.classNames) == null ? void 0 : c.description) }, typeof f.description == "function" ? f.description() : f.description) : null), ma(f.cancel) ? f.cancel : f.cancel &&
|
|
19390
|
+
}, className: an(N == null ? void 0 : N.closeButton, (o = f == null ? void 0 : f.classNames) == null ? void 0 : o.closeButton) }, (s = q == null ? void 0 : q.close) != null ? s : sI) : null, f.jsx || ma(f.title) ? f.jsx ? f.jsx : typeof f.title == "function" ? f.title() : f.title : O.createElement(O.Fragment, null, st || f.icon || f.promise ? O.createElement("div", { "data-icon": "", className: an(N == null ? void 0 : N.icon, (a = f == null ? void 0 : f.classNames) == null ? void 0 : a.icon) }, f.promise || f.type === "loading" && !f.icon ? f.icon || ft() : null, f.type !== "loading" ? f.icon || (q == null ? void 0 : q[st]) || ZR(st) : null) : null, O.createElement("div", { "data-content": "", className: an(N == null ? void 0 : N.content, (i = f == null ? void 0 : f.classNames) == null ? void 0 : i.content) }, O.createElement("div", { "data-title": "", className: an(N == null ? void 0 : N.title, (l = f == null ? void 0 : f.classNames) == null ? void 0 : l.title) }, typeof f.title == "function" ? f.title() : f.title), f.description ? O.createElement("div", { "data-description": "", className: an(z, xt, N == null ? void 0 : N.description, (c = f == null ? void 0 : f.classNames) == null ? void 0 : c.description) }, typeof f.description == "function" ? f.description() : f.description) : null), ma(f.cancel) ? f.cancel : f.cancel && Vo(f.cancel) ? O.createElement("button", { "data-button": !0, "data-cancel": !0, style: f.cancelButtonStyle || $, onClick: (ve) => {
|
|
19366
19391
|
var Pe, We;
|
|
19367
|
-
|
|
19368
|
-
}, className: an(N == null ? void 0 : N.cancelButton, (d = f == null ? void 0 : f.classNames) == null ? void 0 : d.cancelButton) }, f.cancel.label) : null, ma(f.action) ? f.action : f.action &&
|
|
19392
|
+
Vo(f.cancel) && et && ((We = (Pe = f.cancel).onClick) == null || We.call(Pe, ve), Se());
|
|
19393
|
+
}, className: an(N == null ? void 0 : N.cancelButton, (d = f == null ? void 0 : f.classNames) == null ? void 0 : d.cancelButton) }, f.cancel.label) : null, ma(f.action) ? f.action : f.action && Vo(f.action) ? O.createElement("button", { "data-button": !0, "data-action": !0, style: f.actionButtonStyle || B, onClick: (ve) => {
|
|
19369
19394
|
var Pe, We;
|
|
19370
|
-
|
|
19395
|
+
Vo(f.action) && ((We = (Pe = f.action).onClick) == null || We.call(Pe, ve), !ve.defaultPrevented && Se());
|
|
19371
19396
|
}, className: an(N == null ? void 0 : N.actionButton, (p = f == null ? void 0 : f.classNames) == null ? void 0 : p.actionButton) }, f.action.label) : null));
|
|
19372
19397
|
};
|
|
19373
19398
|
function Pu() {
|
|
@@ -19458,7 +19483,7 @@ var CI = Pg(function(e, t) {
|
|
|
19458
19483
|
})) : null;
|
|
19459
19484
|
}));
|
|
19460
19485
|
});
|
|
19461
|
-
const
|
|
19486
|
+
const NN = ({ ...e }) => {
|
|
19462
19487
|
const { theme: t = "system" } = JR();
|
|
19463
19488
|
return /* @__PURE__ */ u.jsx(
|
|
19464
19489
|
CI,
|
|
@@ -19483,7 +19508,7 @@ export {
|
|
|
19483
19508
|
Kv as ApiProvider,
|
|
19484
19509
|
rE as ArtifactRenderer,
|
|
19485
19510
|
wC as Badge,
|
|
19486
|
-
|
|
19511
|
+
it as Button,
|
|
19487
19512
|
uh as Card,
|
|
19488
19513
|
hh as CardContent,
|
|
19489
19514
|
ph as CardDescription,
|
|
@@ -19515,30 +19540,31 @@ export {
|
|
|
19515
19540
|
Yh as Input,
|
|
19516
19541
|
oE as InterruptPartRenderer,
|
|
19517
19542
|
ck as Label,
|
|
19518
|
-
|
|
19543
|
+
jo as MarkdownContent,
|
|
19519
19544
|
uE as MessageBody,
|
|
19520
19545
|
Pl as MessageComponent,
|
|
19521
19546
|
wh as MessageList,
|
|
19522
19547
|
vh as MessageRow,
|
|
19548
|
+
mN as NewChatButton,
|
|
19523
19549
|
tE as PlotArtifact,
|
|
19524
19550
|
nE as ResearchTaskArtifact,
|
|
19525
19551
|
Td as SETTINGS_STORAGE_KEY,
|
|
19526
19552
|
qh as ScrollArea,
|
|
19527
|
-
|
|
19553
|
+
xN as Select,
|
|
19528
19554
|
zk as SelectContent,
|
|
19529
19555
|
Uk as SelectItem,
|
|
19530
19556
|
Bk as SelectTrigger,
|
|
19531
|
-
|
|
19557
|
+
vN as SelectValue,
|
|
19532
19558
|
Gk as Separator,
|
|
19533
|
-
|
|
19559
|
+
bN as Sheet,
|
|
19534
19560
|
rR as SheetContent,
|
|
19535
19561
|
aR as SheetDescription,
|
|
19536
19562
|
oR as SheetHeader,
|
|
19537
19563
|
sR as SheetTitle,
|
|
19538
|
-
|
|
19564
|
+
yN as SheetTrigger,
|
|
19539
19565
|
pN as SimpleChat,
|
|
19540
19566
|
gh as SimpleJsonView,
|
|
19541
|
-
|
|
19567
|
+
NN as Sonner,
|
|
19542
19568
|
aE as StreamProgress,
|
|
19543
19569
|
eR as Switch,
|
|
19544
19570
|
op as Textarea,
|
|
@@ -19548,12 +19574,12 @@ export {
|
|
|
19548
19574
|
Cw as ThreadStateProvider,
|
|
19549
19575
|
ew as ThreadsProvider,
|
|
19550
19576
|
OI as TimelineColumn,
|
|
19551
|
-
|
|
19577
|
+
IN as Toaster,
|
|
19552
19578
|
iE as ToolComponent,
|
|
19553
|
-
|
|
19579
|
+
EN as Tooltip,
|
|
19554
19580
|
kR as TooltipContent,
|
|
19555
|
-
|
|
19556
|
-
|
|
19581
|
+
CN as TooltipProvider,
|
|
19582
|
+
kN as TooltipTrigger,
|
|
19557
19583
|
cE as UserTextContent,
|
|
19558
19584
|
aN as applySettings,
|
|
19559
19585
|
nx as buildCheckpointIndex,
|
|
@@ -19602,7 +19628,7 @@ export {
|
|
|
19602
19628
|
ok as useThreadManagerViewState,
|
|
19603
19629
|
_s as useThreadState,
|
|
19604
19630
|
Tw as useThreadStateUpdater,
|
|
19605
|
-
|
|
19631
|
+
wo as useThreads,
|
|
19606
19632
|
Qv as useThreadsState,
|
|
19607
19633
|
nN as viewFileById
|
|
19608
19634
|
};
|