@mesh.ai/rabbit 1.47.0 → 1.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@mesh.ai/rabbit.es.js +119 -118
- package/dist/@mesh.ai/rabbit.umd.js +1 -1
- package/dist/index.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as f, Fragment as
|
|
1
|
+
import { jsx as f, Fragment as Ft, jsxs as B } from "react/jsx-runtime";
|
|
2
2
|
import * as M from "react";
|
|
3
3
|
import H, { forwardRef as ue, createElement as Ym, useState as Ye, useRef as Ke, useEffect as Xe, useLayoutEffect as pS, createContext as fo, useContext as je, useMemo as fe, isValidElement as Ou, useCallback as ye, useImperativeHandle as mS, Children as gS } from "react";
|
|
4
4
|
import * as Dc from "react-dom";
|
|
@@ -244,7 +244,7 @@ var Q0 = M.forwardRef((e, t) => {
|
|
|
244
244
|
return M.Children.count(n) > 1 ? M.Children.only(null) : null;
|
|
245
245
|
});
|
|
246
246
|
Q0.displayName = "SlotClone";
|
|
247
|
-
var bh = ({ children: e }) => /* @__PURE__ */ f(
|
|
247
|
+
var bh = ({ children: e }) => /* @__PURE__ */ f(Ft, { children: e });
|
|
248
248
|
function AS(e) {
|
|
249
249
|
return M.isValidElement(e) && e.type === bh;
|
|
250
250
|
}
|
|
@@ -5822,7 +5822,7 @@ function W_(e, t) {
|
|
|
5822
5822
|
Defaulting to \`null\`.`;
|
|
5823
5823
|
}
|
|
5824
5824
|
var j_ = w8, H_ = C8, is = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5825
|
-
function
|
|
5825
|
+
function It(e) {
|
|
5826
5826
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5827
5827
|
}
|
|
5828
5828
|
function Lc(e) {
|
|
@@ -5941,7 +5941,7 @@ function Y_() {
|
|
|
5941
5941
|
return xo.millify = o, xo.default = o, xo;
|
|
5942
5942
|
}
|
|
5943
5943
|
var G_ = Y_();
|
|
5944
|
-
const Tu = /* @__PURE__ */
|
|
5944
|
+
const Tu = /* @__PURE__ */ It(G_);
|
|
5945
5945
|
var st = /* @__PURE__ */ ((e) => (e.CLOSED_ACHIEVED = "CLOSED_ACHIEVED", e.CLOSED_DROPPED = "CLOSED_DROPPED", e.CLOSED_NOT_ACHIEVED = "CLOSED_NOT_ACHIEVED", e.ON_TRACK = "ON_TRACK", e.OFF_TRACK = "OFF_TRACK", e.AT_RISK = "AT_RISK", e))(st || {});
|
|
5946
5946
|
const qo = {
|
|
5947
5947
|
[st.ON_TRACK]: { backgroundColor: "#EAEAEA", indicatorColor: "#EFFFEA", textColor: "#44812F" },
|
|
@@ -7358,13 +7358,14 @@ function x6(e) {
|
|
|
7358
7358
|
}
|
|
7359
7359
|
var C6 = f6, A6 = m6, sO = v6, M6 = y6, S6 = w6;
|
|
7360
7360
|
const lO = ue(({ children: e, ...t }, n) => /* @__PURE__ */ f(C6, { ref: n, ...t, className: J("rabbit-ds", t.className), children: e })), uO = ue(({ children: e, ...t }, n) => /* @__PURE__ */ f(A6, { ref: n, ...t, className: J("rabbit-ds", t.className), children: e })), cO = ue(
|
|
7361
|
-
({ children: e, icon: t = b_, iconClassName: n,
|
|
7361
|
+
({ children: e, icon: t = b_, iconClassName: n, asChild: r, ...o }, a) => /* @__PURE__ */ f(sO, { className: "flex", children: /* @__PURE__ */ f(
|
|
7362
7362
|
M6,
|
|
7363
7363
|
{
|
|
7364
|
-
ref:
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7364
|
+
ref: a,
|
|
7365
|
+
asChild: r,
|
|
7366
|
+
...o,
|
|
7367
|
+
className: r ? o.className : J("rabbit-ds accordion-trigger group flex items-center bg-transparent", o.className),
|
|
7368
|
+
children: r ? e : /* @__PURE__ */ B(Ft, { children: [
|
|
7368
7369
|
t ? /* @__PURE__ */ f(
|
|
7369
7370
|
Ae,
|
|
7370
7371
|
{
|
|
@@ -7377,7 +7378,7 @@ const lO = ue(({ children: e, ...t }, n) => /* @__PURE__ */ f(C6, { ref: n, ...t
|
|
|
7377
7378
|
}
|
|
7378
7379
|
) : null,
|
|
7379
7380
|
e
|
|
7380
|
-
]
|
|
7381
|
+
] })
|
|
7381
7382
|
}
|
|
7382
7383
|
) })
|
|
7383
7384
|
), fO = ue(({ children: e, ...t }, n) => /* @__PURE__ */ f(
|
|
@@ -8354,7 +8355,7 @@ var wT = M.forwardRef(
|
|
|
8354
8355
|
), Y6 = M.forwardRef(
|
|
8355
8356
|
(e, t) => {
|
|
8356
8357
|
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...i } = e, s = yn(ao, n), l = M.useRef(null), u = be(t, l);
|
|
8357
|
-
return jh(), /* @__PURE__ */ B(
|
|
8358
|
+
return jh(), /* @__PURE__ */ B(Ft, { children: [
|
|
8358
8359
|
/* @__PURE__ */ f(
|
|
8359
8360
|
Hc,
|
|
8360
8361
|
{
|
|
@@ -8378,7 +8379,7 @@ var wT = M.forwardRef(
|
|
|
8378
8379
|
)
|
|
8379
8380
|
}
|
|
8380
8381
|
),
|
|
8381
|
-
/* @__PURE__ */ B(
|
|
8382
|
+
/* @__PURE__ */ B(Ft, { children: [
|
|
8382
8383
|
/* @__PURE__ */ f(AT, { titleId: s.titleId }),
|
|
8383
8384
|
/* @__PURE__ */ f(ST, { contentRef: l, descriptionId: s.descriptionId })
|
|
8384
8385
|
] })
|
|
@@ -10262,7 +10263,7 @@ function zb({
|
|
|
10262
10263
|
r && t && ` - ${Jf(hE(e, t), a)}`
|
|
10263
10264
|
] }) });
|
|
10264
10265
|
}
|
|
10265
|
-
const PN = ["top", "right", "bottom", "left"], xr = Math.min,
|
|
10266
|
+
const PN = ["top", "right", "bottom", "left"], xr = Math.min, Ht = Math.max, Xu = Math.round, ds = Math.floor, On = (e) => ({
|
|
10266
10267
|
x: e,
|
|
10267
10268
|
y: e
|
|
10268
10269
|
}), ON = {
|
|
@@ -10275,7 +10276,7 @@ const PN = ["top", "right", "bottom", "left"], xr = Math.min, jt = Math.max, Xu
|
|
|
10275
10276
|
end: "start"
|
|
10276
10277
|
};
|
|
10277
10278
|
function s1(e, t, n) {
|
|
10278
|
-
return
|
|
10279
|
+
return Ht(e, xr(t, n));
|
|
10279
10280
|
}
|
|
10280
10281
|
function Qn(e, t) {
|
|
10281
10282
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -10862,8 +10863,8 @@ const qN = function(e) {
|
|
|
10862
10863
|
const b = g - c.top - c.bottom, w = p - c.left - c.right, C = xr(g - c[v], b), x = xr(p - c[y], w), P = !t.middlewareData.shift;
|
|
10863
10864
|
let O = C, T = x;
|
|
10864
10865
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (T = w), (r = t.middlewareData.shift) != null && r.enabled.y && (O = b), P && !h) {
|
|
10865
|
-
const A =
|
|
10866
|
-
m ? T = p - 2 * (A !== 0 || E !== 0 ? A + E :
|
|
10866
|
+
const A = Ht(c.left, 0), E = Ht(c.right, 0), R = Ht(c.top, 0), k = Ht(c.bottom, 0);
|
|
10867
|
+
m ? T = p - 2 * (A !== 0 || E !== 0 ? A + E : Ht(c.left, c.right)) : O = g - 2 * (R !== 0 || k !== 0 ? R + k : Ht(c.top, c.bottom));
|
|
10867
10868
|
}
|
|
10868
10869
|
await l({
|
|
10869
10870
|
...t,
|
|
@@ -10885,7 +10886,7 @@ function Yc() {
|
|
|
10885
10886
|
function pa(e) {
|
|
10886
10887
|
return Wb(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
10887
10888
|
}
|
|
10888
|
-
function
|
|
10889
|
+
function Vt(e) {
|
|
10889
10890
|
var t;
|
|
10890
10891
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
10891
10892
|
}
|
|
@@ -10894,16 +10895,16 @@ function In(e) {
|
|
|
10894
10895
|
return (t = (Wb(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
10895
10896
|
}
|
|
10896
10897
|
function Wb(e) {
|
|
10897
|
-
return Yc() ? e instanceof Node || e instanceof
|
|
10898
|
+
return Yc() ? e instanceof Node || e instanceof Vt(e).Node : !1;
|
|
10898
10899
|
}
|
|
10899
10900
|
function gn(e) {
|
|
10900
|
-
return Yc() ? e instanceof Element || e instanceof
|
|
10901
|
+
return Yc() ? e instanceof Element || e instanceof Vt(e).Element : !1;
|
|
10901
10902
|
}
|
|
10902
10903
|
function Rn(e) {
|
|
10903
|
-
return Yc() ? e instanceof HTMLElement || e instanceof
|
|
10904
|
+
return Yc() ? e instanceof HTMLElement || e instanceof Vt(e).HTMLElement : !1;
|
|
10904
10905
|
}
|
|
10905
10906
|
function T2(e) {
|
|
10906
|
-
return !Yc() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
10907
|
+
return !Yc() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Vt(e).ShadowRoot;
|
|
10907
10908
|
}
|
|
10908
10909
|
function Di(e) {
|
|
10909
10910
|
const {
|
|
@@ -10948,7 +10949,7 @@ function Go(e) {
|
|
|
10948
10949
|
return ["html", "body", "#document"].includes(pa(e));
|
|
10949
10950
|
}
|
|
10950
10951
|
function vn(e) {
|
|
10951
|
-
return
|
|
10952
|
+
return Vt(e).getComputedStyle(e);
|
|
10952
10953
|
}
|
|
10953
10954
|
function $c(e) {
|
|
10954
10955
|
return gn(e) ? {
|
|
@@ -10978,7 +10979,7 @@ function jb(e) {
|
|
|
10978
10979
|
function pi(e, t, n) {
|
|
10979
10980
|
var r;
|
|
10980
10981
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
10981
|
-
const o = jb(e), a = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i =
|
|
10982
|
+
const o = jb(e), a = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = Vt(o);
|
|
10982
10983
|
if (a) {
|
|
10983
10984
|
const s = u1(i);
|
|
10984
10985
|
return t.concat(i, i.visualViewport || [], Di(o) ? o : [], s && n ? pi(s) : []);
|
|
@@ -11018,14 +11019,14 @@ function Ho(e) {
|
|
|
11018
11019
|
}
|
|
11019
11020
|
const YN = /* @__PURE__ */ On(0);
|
|
11020
11021
|
function Ub(e) {
|
|
11021
|
-
const t =
|
|
11022
|
+
const t = Vt(e);
|
|
11022
11023
|
return !ep() || !t.visualViewport ? YN : {
|
|
11023
11024
|
x: t.visualViewport.offsetLeft,
|
|
11024
11025
|
y: t.visualViewport.offsetTop
|
|
11025
11026
|
};
|
|
11026
11027
|
}
|
|
11027
11028
|
function GN(e, t, n) {
|
|
11028
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
11029
|
+
return t === void 0 && (t = !1), !n || t && n !== Vt(e) ? !1 : t;
|
|
11029
11030
|
}
|
|
11030
11031
|
function io(e, t, n, r) {
|
|
11031
11032
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
@@ -11035,11 +11036,11 @@ function io(e, t, n, r) {
|
|
|
11035
11036
|
const s = GN(a, n, r) ? Ub(a) : On(0);
|
|
11036
11037
|
let l = (o.left + s.x) / i.x, u = (o.top + s.y) / i.y, c = o.width / i.x, d = o.height / i.y;
|
|
11037
11038
|
if (a) {
|
|
11038
|
-
const h =
|
|
11039
|
+
const h = Vt(a), m = r && gn(r) ? Vt(r) : r;
|
|
11039
11040
|
let p = h, g = u1(p);
|
|
11040
11041
|
for (; g && r && m !== p; ) {
|
|
11041
11042
|
const v = Ho(g), y = g.getBoundingClientRect(), b = vn(g), w = y.left + (g.clientLeft + parseFloat(b.paddingLeft)) * v.x, C = y.top + (g.clientTop + parseFloat(b.paddingTop)) * v.y;
|
|
11042
|
-
l *= v.x, u *= v.y, c *= v.x, d *= v.y, l += w, u += C, p =
|
|
11043
|
+
l *= v.x, u *= v.y, c *= v.x, d *= v.y, l += w, u += C, p = Vt(g), g = u1(p);
|
|
11043
11044
|
}
|
|
11044
11045
|
}
|
|
11045
11046
|
return Qu({
|
|
@@ -11095,10 +11096,10 @@ function XN(e) {
|
|
|
11095
11096
|
return Array.from(e.getClientRects());
|
|
11096
11097
|
}
|
|
11097
11098
|
function KN(e) {
|
|
11098
|
-
const t = In(e), n = $c(e), r = e.ownerDocument.body, o =
|
|
11099
|
+
const t = In(e), n = $c(e), r = e.ownerDocument.body, o = Ht(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = Ht(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
11099
11100
|
let i = -n.scrollLeft + np(e);
|
|
11100
11101
|
const s = -n.scrollTop;
|
|
11101
|
-
return vn(r).direction === "rtl" && (i +=
|
|
11102
|
+
return vn(r).direction === "rtl" && (i += Ht(t.clientWidth, r.clientWidth) - o), {
|
|
11102
11103
|
width: o,
|
|
11103
11104
|
height: a,
|
|
11104
11105
|
x: i,
|
|
@@ -11106,7 +11107,7 @@ function KN(e) {
|
|
|
11106
11107
|
};
|
|
11107
11108
|
}
|
|
11108
11109
|
function QN(e, t) {
|
|
11109
|
-
const n =
|
|
11110
|
+
const n = Vt(e), r = In(e), o = n.visualViewport;
|
|
11110
11111
|
let a = r.clientWidth, i = r.clientHeight, s = 0, l = 0;
|
|
11111
11112
|
if (o) {
|
|
11112
11113
|
a = o.width, i = o.height;
|
|
@@ -11174,7 +11175,7 @@ function eR(e) {
|
|
|
11174
11175
|
} = e;
|
|
11175
11176
|
const i = [...n === "clippingAncestors" ? Gc(t) ? [] : JN(t, this._c) : [].concat(n), r], s = i[0], l = i.reduce((u, c) => {
|
|
11176
11177
|
const d = E2(t, c, o);
|
|
11177
|
-
return u.top =
|
|
11178
|
+
return u.top = Ht(d.top, u.top), u.right = xr(d.right, u.right), u.bottom = xr(d.bottom, u.bottom), u.left = Ht(d.left, u.left), u;
|
|
11178
11179
|
}, E2(t, s, o));
|
|
11179
11180
|
return {
|
|
11180
11181
|
width: l.right - l.left,
|
|
@@ -11225,7 +11226,7 @@ function N2(e, t) {
|
|
|
11225
11226
|
return In(e) === n && (n = n.ownerDocument.body), n;
|
|
11226
11227
|
}
|
|
11227
11228
|
function Gb(e, t) {
|
|
11228
|
-
const n =
|
|
11229
|
+
const n = Vt(e);
|
|
11229
11230
|
if (Gc(e))
|
|
11230
11231
|
return n;
|
|
11231
11232
|
if (!Rn(e)) {
|
|
@@ -11291,7 +11292,7 @@ function iR(e, t) {
|
|
|
11291
11292
|
return;
|
|
11292
11293
|
const p = ds(d), g = ds(o.clientWidth - (c + h)), v = ds(o.clientHeight - (d + m)), y = ds(c), w = {
|
|
11293
11294
|
rootMargin: -p + "px " + -g + "px " + -v + "px " + -y + "px",
|
|
11294
|
-
threshold:
|
|
11295
|
+
threshold: Ht(0, xr(1, l)) || 1
|
|
11295
11296
|
};
|
|
11296
11297
|
let C = !0;
|
|
11297
11298
|
function x(P) {
|
|
@@ -12979,7 +12980,7 @@ var bw = "SelectValue", ww = M.forwardRef(
|
|
|
12979
12980
|
...s,
|
|
12980
12981
|
ref: d,
|
|
12981
12982
|
style: { pointerEvents: "none" },
|
|
12982
|
-
children: zw(l.value) ? /* @__PURE__ */ f(
|
|
12983
|
+
children: zw(l.value) ? /* @__PURE__ */ f(Ft, { children: i }) : a
|
|
12983
12984
|
}
|
|
12984
12985
|
);
|
|
12985
12986
|
}
|
|
@@ -13318,7 +13319,7 @@ f1.displayName = oD;
|
|
|
13318
13319
|
var [aD, yp] = ma(so, {}), d1 = "SelectViewport", Pw = M.forwardRef(
|
|
13319
13320
|
(e, t) => {
|
|
13320
13321
|
const { __scopeSelect: n, nonce: r, ...o } = e, a = Nr(d1, n), i = yp(d1, n), s = be(t, a.onViewportChange), l = M.useRef(0);
|
|
13321
|
-
return /* @__PURE__ */ B(
|
|
13322
|
+
return /* @__PURE__ */ B(Ft, { children: [
|
|
13322
13323
|
/* @__PURE__ */ f(
|
|
13323
13324
|
"style",
|
|
13324
13325
|
{
|
|
@@ -13480,7 +13481,7 @@ var ri = "SelectItemText", Dw = M.forwardRef(
|
|
|
13480
13481
|
() => /* @__PURE__ */ f("option", { value: l.value, disabled: l.disabled, children: m }, l.value),
|
|
13481
13482
|
[l.disabled, l.value, m]
|
|
13482
13483
|
), { onNativeOptionAdd: g, onNativeOptionRemove: v } = u;
|
|
13483
|
-
return tt(() => (g(p), () => v(p)), [g, v, p]), /* @__PURE__ */ B(
|
|
13484
|
+
return tt(() => (g(p), () => v(p)), [g, v, p]), /* @__PURE__ */ B(Ft, { children: [
|
|
13484
13485
|
/* @__PURE__ */ f(ce.span, { id: l.textId, ...a, ref: h }),
|
|
13485
13486
|
l.isSelected && i.valueNode && !i.valueNodeHasChildren ? Dc.createPortal(a.children, i.valueNode) : null
|
|
13486
13487
|
] });
|
|
@@ -14350,10 +14351,10 @@ var TF = (e) => {
|
|
|
14350
14351
|
let { invert: h, toast: m, unstyled: p, interacting: g, setHeights: v, visibleToasts: y, heights: b, index: w, toasts: C, expanded: x, removeToast: P, defaultRichColors: O, closeButton: T, style: S, cancelButtonStyle: A, actionButtonStyle: E, className: R = "", descriptionClassName: k = "", duration: q, position: _, gap: N, loadingIcon: z, expandByDefault: I, classNames: D, icons: F, closeButtonAriaLabel: j = "Close toast", pauseWhenPageIsHidden: $ } = e, [Y, L] = H.useState(null), [U, Q] = H.useState(null), [G, ee] = H.useState(!1), [X, K] = H.useState(!1), [te, W] = H.useState(!1), [ae, se] = H.useState(!1), [de, ve] = H.useState(!1), [we, $e] = H.useState(0), [Ge, ct] = H.useState(0), ft = H.useRef(m.duration || q || F2), he = H.useRef(null), nt = H.useRef(null), bt = w === 0, Ee = w + 1 <= y, ze = m.type, De = m.dismissible !== !1, Ue = m.className || "", wt = m.descriptionClassName || "", rt = H.useMemo(() => b.findIndex((ge) => ge.toastId === m.id) || 0, [b, m.id]), _t = H.useMemo(() => {
|
|
14351
14352
|
var ge;
|
|
14352
14353
|
return (ge = m.closeButton) != null ? ge : T;
|
|
14353
|
-
}, [m.closeButton, T]),
|
|
14354
|
-
|
|
14355
|
-
ft.current =
|
|
14356
|
-
}, [
|
|
14354
|
+
}, [m.closeButton, T]), Lt = H.useMemo(() => m.duration || q || F2, [m.duration, q]), xn = H.useRef(0), Bt = H.useRef(0), zn = H.useRef(0), zt = H.useRef(null), [Cn, qn] = _.split("-"), An = H.useMemo(() => b.reduce((ge, Pe, xe) => xe >= rt ? ge : ge + Pe.height, 0), [b, rt]), V = hF(), Z = m.invert || h, oe = ze === "loading";
|
|
14355
|
+
Bt.current = H.useMemo(() => rt * N + An, [rt, An]), H.useEffect(() => {
|
|
14356
|
+
ft.current = Lt;
|
|
14357
|
+
}, [Lt]), H.useEffect(() => {
|
|
14357
14358
|
ee(!0);
|
|
14358
14359
|
}, []), H.useEffect(() => {
|
|
14359
14360
|
let ge = nt.current;
|
|
@@ -14369,10 +14370,10 @@ var TF = (e) => {
|
|
|
14369
14370
|
ge.style.height = Pe, ct(xe), v((Le) => Le.find((Qe) => Qe.toastId === m.id) ? Le.map((Qe) => Qe.toastId === m.id ? { ...Qe, height: xe } : Qe) : [{ toastId: m.id, height: xe, position: m.position }, ...Le]);
|
|
14370
14371
|
}, [G, m.title, m.description, v, m.id]);
|
|
14371
14372
|
let ie = H.useCallback(() => {
|
|
14372
|
-
K(!0), $e(
|
|
14373
|
+
K(!0), $e(Bt.current), v((ge) => ge.filter((Pe) => Pe.toastId !== m.id)), setTimeout(() => {
|
|
14373
14374
|
P(m);
|
|
14374
14375
|
}, PF);
|
|
14375
|
-
}, [m, P, v,
|
|
14376
|
+
}, [m, P, v, Bt]);
|
|
14376
14377
|
H.useEffect(() => {
|
|
14377
14378
|
if (m.promise && ze === "loading" || m.duration === 1 / 0 || m.type === "loading") return;
|
|
14378
14379
|
let ge;
|
|
@@ -14389,28 +14390,28 @@ var TF = (e) => {
|
|
|
14389
14390
|
}, [x, g, m, ze, $, V, ie]), H.useEffect(() => {
|
|
14390
14391
|
m.delete && ie();
|
|
14391
14392
|
}, [ie, m.delete]);
|
|
14392
|
-
function
|
|
14393
|
+
function qt() {
|
|
14393
14394
|
var ge, Pe, xe;
|
|
14394
14395
|
return F != null && F.loading ? H.createElement("div", { className: rn(D == null ? void 0 : D.loader, (ge = m == null ? void 0 : m.classNames) == null ? void 0 : ge.loader, "sonner-loader"), "data-visible": ze === "loading" }, F.loading) : z ? H.createElement("div", { className: rn(D == null ? void 0 : D.loader, (Pe = m == null ? void 0 : m.classNames) == null ? void 0 : Pe.loader, "sonner-loader"), "data-visible": ze === "loading" }, z) : H.createElement(sF, { className: rn(D == null ? void 0 : D.loader, (xe = m == null ? void 0 : m.classNames) == null ? void 0 : xe.loader), visible: ze === "loading" });
|
|
14395
14396
|
}
|
|
14396
|
-
return H.createElement("li", { tabIndex: 0, ref: nt, className: rn(R, Ue, D == null ? void 0 : D.toast, (t = m == null ? void 0 : m.classNames) == null ? void 0 : t.toast, D == null ? void 0 : D.default, D == null ? void 0 : D[ze], (n = m == null ? void 0 : m.classNames) == null ? void 0 : n[ze]), "data-sonner-toast": "", "data-rich-colors": (r = m.richColors) != null ? r : O, "data-styled": !(m.jsx || m.unstyled || p), "data-mounted": G, "data-promise": !!m.promise, "data-swiped": de, "data-removed": X, "data-visible": Ee, "data-y-position": Cn, "data-x-position": qn, "data-index": w, "data-front": bt, "data-swiping": te, "data-dismissible": De, "data-type": ze, "data-invert": Z, "data-swipe-out": ae, "data-swipe-direction": U, "data-expanded": !!(x || I && G), style: { "--index": w, "--toasts-before": w, "--z-index": C.length - w, "--offset": `${X ? we :
|
|
14397
|
-
W(!1), L(null),
|
|
14397
|
+
return H.createElement("li", { tabIndex: 0, ref: nt, className: rn(R, Ue, D == null ? void 0 : D.toast, (t = m == null ? void 0 : m.classNames) == null ? void 0 : t.toast, D == null ? void 0 : D.default, D == null ? void 0 : D[ze], (n = m == null ? void 0 : m.classNames) == null ? void 0 : n[ze]), "data-sonner-toast": "", "data-rich-colors": (r = m.richColors) != null ? r : O, "data-styled": !(m.jsx || m.unstyled || p), "data-mounted": G, "data-promise": !!m.promise, "data-swiped": de, "data-removed": X, "data-visible": Ee, "data-y-position": Cn, "data-x-position": qn, "data-index": w, "data-front": bt, "data-swiping": te, "data-dismissible": De, "data-type": ze, "data-invert": Z, "data-swipe-out": ae, "data-swipe-direction": U, "data-expanded": !!(x || I && G), style: { "--index": w, "--toasts-before": w, "--z-index": C.length - w, "--offset": `${X ? we : Bt.current}px`, "--initial-height": I ? "auto" : `${Ge}px`, ...S, ...m.style }, onDragEnd: () => {
|
|
14398
|
+
W(!1), L(null), zt.current = null;
|
|
14398
14399
|
}, onPointerDown: (ge) => {
|
|
14399
|
-
oe || !De || (he.current = /* @__PURE__ */ new Date(), $e(
|
|
14400
|
+
oe || !De || (he.current = /* @__PURE__ */ new Date(), $e(Bt.current), ge.target.setPointerCapture(ge.pointerId), ge.target.tagName !== "BUTTON" && (W(!0), zt.current = { x: ge.clientX, y: ge.clientY }));
|
|
14400
14401
|
}, onPointerUp: () => {
|
|
14401
14402
|
var ge, Pe, xe, Le;
|
|
14402
14403
|
if (ae || !De) return;
|
|
14403
|
-
|
|
14404
|
+
zt.current = null;
|
|
14404
14405
|
let Qe = Number(((ge = nt.current) == null ? void 0 : ge.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), dt = Number(((Pe = nt.current) == null ? void 0 : Pe.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), Ze = (/* @__PURE__ */ new Date()).getTime() - ((xe = he.current) == null ? void 0 : xe.getTime()), it = Y === "x" ? Qe : dt, Pt = Math.abs(it) / Ze;
|
|
14405
14406
|
if (Math.abs(it) >= _F || Pt > 0.11) {
|
|
14406
|
-
$e(
|
|
14407
|
+
$e(Bt.current), (Le = m.onDismiss) == null || Le.call(m, m), Q(Y === "x" ? Qe > 0 ? "right" : "left" : dt > 0 ? "down" : "up"), ie(), se(!0), ve(!1);
|
|
14407
14408
|
return;
|
|
14408
14409
|
}
|
|
14409
14410
|
W(!1), L(null);
|
|
14410
14411
|
}, onPointerMove: (ge) => {
|
|
14411
14412
|
var Pe, xe, Le, Qe;
|
|
14412
|
-
if (!
|
|
14413
|
-
let dt = ge.clientY -
|
|
14413
|
+
if (!zt.current || !De || ((Pe = window.getSelection()) == null ? void 0 : Pe.toString().length) > 0) return;
|
|
14414
|
+
let dt = ge.clientY - zt.current.y, Ze = ge.clientX - zt.current.x, it = (xe = e.swipeDirections) != null ? xe : OF(_);
|
|
14414
14415
|
!Y && (Math.abs(Ze) > 1 || Math.abs(dt) > 1) && L(Math.abs(Ze) > Math.abs(dt) ? "x" : "y");
|
|
14415
14416
|
let Pt = { x: 0, y: 0 };
|
|
14416
14417
|
Y === "y" ? (it.includes("top") || it.includes("bottom")) && (it.includes("top") && dt < 0 || it.includes("bottom") && dt > 0) && (Pt.y = dt) : Y === "x" && (it.includes("left") || it.includes("right")) && (it.includes("left") && Ze < 0 || it.includes("right") && Ze > 0) && (Pt.x = Ze), (Math.abs(Pt.x) > 0 || Math.abs(Pt.y) > 0) && ve(!0), (Le = nt.current) == null || Le.style.setProperty("--swipe-amount-x", `${Pt.x}px`), (Qe = nt.current) == null || Qe.style.setProperty("--swipe-amount-y", `${Pt.y}px`);
|
|
@@ -14418,7 +14419,7 @@ var TF = (e) => {
|
|
|
14418
14419
|
} : () => {
|
|
14419
14420
|
var ge;
|
|
14420
14421
|
ie(), (ge = m.onDismiss) == null || ge.call(m, m);
|
|
14421
|
-
}, className: rn(D == null ? void 0 : D.closeButton, (o = m == null ? void 0 : m.classNames) == null ? void 0 : o.closeButton) }, (a = F == null ? void 0 : F.close) != null ? a : dF) : null, m.jsx || Ou(m.title) ? m.jsx ? m.jsx : typeof m.title == "function" ? m.title() : m.title : H.createElement(H.Fragment, null, ze || m.icon || m.promise ? H.createElement("div", { "data-icon": "", className: rn(D == null ? void 0 : D.icon, (i = m == null ? void 0 : m.classNames) == null ? void 0 : i.icon) }, m.promise || m.type === "loading" && !m.icon ? m.icon ||
|
|
14422
|
+
}, className: rn(D == null ? void 0 : D.closeButton, (o = m == null ? void 0 : m.classNames) == null ? void 0 : o.closeButton) }, (a = F == null ? void 0 : F.close) != null ? a : dF) : null, m.jsx || Ou(m.title) ? m.jsx ? m.jsx : typeof m.title == "function" ? m.title() : m.title : H.createElement(H.Fragment, null, ze || m.icon || m.promise ? H.createElement("div", { "data-icon": "", className: rn(D == null ? void 0 : D.icon, (i = m == null ? void 0 : m.classNames) == null ? void 0 : i.icon) }, m.promise || m.type === "loading" && !m.icon ? m.icon || qt() : null, m.type !== "loading" ? m.icon || (F == null ? void 0 : F[ze]) || aF(ze) : null) : null, H.createElement("div", { "data-content": "", className: rn(D == null ? void 0 : D.content, (s = m == null ? void 0 : m.classNames) == null ? void 0 : s.content) }, H.createElement("div", { "data-title": "", className: rn(D == null ? void 0 : D.title, (l = m == null ? void 0 : m.classNames) == null ? void 0 : l.title) }, typeof m.title == "function" ? m.title() : m.title), m.description ? H.createElement("div", { "data-description": "", className: rn(k, wt, D == null ? void 0 : D.description, (u = m == null ? void 0 : m.classNames) == null ? void 0 : u.description) }, typeof m.description == "function" ? m.description() : m.description) : null), Ou(m.cancel) ? m.cancel : m.cancel && hs(m.cancel) ? H.createElement("button", { "data-button": !0, "data-cancel": !0, style: m.cancelButtonStyle || A, onClick: (ge) => {
|
|
14422
14423
|
var Pe, xe;
|
|
14423
14424
|
hs(m.cancel) && De && ((xe = (Pe = m.cancel).onClick) == null || xe.call(Pe, ge), ie());
|
|
14424
14425
|
}, className: rn(D == null ? void 0 : D.cancelButton, (c = m == null ? void 0 : m.classNames) == null ? void 0 : c.cancelButton) }, m.cancel.label) : null, Ou(m.action) ? m.action : m.action && hs(m.action) ? H.createElement("button", { "data-button": !0, "data-action": !0, style: m.actionButtonStyle || E, onClick: (ge) => {
|
|
@@ -15973,26 +15974,26 @@ function DI(e, t, n, r, o, a, i, s) {
|
|
|
15973
15974
|
scrollBody: rt,
|
|
15974
15975
|
scrollBounds: _t,
|
|
15975
15976
|
options: {
|
|
15976
|
-
loop:
|
|
15977
|
+
loop: Lt
|
|
15977
15978
|
}
|
|
15978
15979
|
}) => {
|
|
15979
|
-
|
|
15980
|
+
Lt || _t.constrain(wt.pointerDown()), rt.seek();
|
|
15980
15981
|
}, ae = ({
|
|
15981
15982
|
scrollBody: wt,
|
|
15982
15983
|
translate: rt,
|
|
15983
15984
|
location: _t,
|
|
15984
|
-
offsetLocation:
|
|
15985
|
+
offsetLocation: Lt,
|
|
15985
15986
|
scrollLooper: xn,
|
|
15986
|
-
slideLooper:
|
|
15987
|
+
slideLooper: Bt,
|
|
15987
15988
|
dragHandler: zn,
|
|
15988
|
-
animation:
|
|
15989
|
+
animation: zt,
|
|
15989
15990
|
eventHandler: Cn,
|
|
15990
15991
|
options: {
|
|
15991
15992
|
loop: qn
|
|
15992
15993
|
}
|
|
15993
15994
|
}, An) => {
|
|
15994
15995
|
const V = wt.velocity(), Z = wt.settled();
|
|
15995
|
-
Z && !zn.pointerDown() && (
|
|
15996
|
+
Z && !zn.pointerDown() && (zt.stop(), Cn.emit("settle")), Z || Cn.emit("scroll"), Lt.set(_t.get() - V + V * An), qn && (xn.loop(wt.direction()), Bt.loop()), rt.to(Lt.get());
|
|
15996
15997
|
}, se = {
|
|
15997
15998
|
start: () => s.start(Ue),
|
|
15998
15999
|
stop: () => s.stop(Ue),
|
|
@@ -17561,7 +17562,7 @@ function uf() {
|
|
|
17561
17562
|
return ms.exports;
|
|
17562
17563
|
}
|
|
17563
17564
|
var _L = /* @__PURE__ */ uf();
|
|
17564
|
-
const ne = /* @__PURE__ */
|
|
17565
|
+
const ne = /* @__PURE__ */ It(_L);
|
|
17565
17566
|
var dd = { exports: {} };
|
|
17566
17567
|
/*!
|
|
17567
17568
|
Copyright (c) 2018 Jed Watson.
|
|
@@ -17602,7 +17603,7 @@ function cf() {
|
|
|
17602
17603
|
}(dd)), dd.exports;
|
|
17603
17604
|
}
|
|
17604
17605
|
var PL = cf();
|
|
17605
|
-
const mt = /* @__PURE__ */
|
|
17606
|
+
const mt = /* @__PURE__ */ It(PL);
|
|
17606
17607
|
var OL = ["top", "left", "transform", "className", "children", "innerRef"];
|
|
17607
17608
|
function x1() {
|
|
17608
17609
|
return x1 = Object.assign ? Object.assign.bind() : function(e) {
|
|
@@ -19194,7 +19195,7 @@ function bx() {
|
|
|
19194
19195
|
return Td = i, Td;
|
|
19195
19196
|
}
|
|
19196
19197
|
var WB = bx();
|
|
19197
|
-
const wx = /* @__PURE__ */
|
|
19198
|
+
const wx = /* @__PURE__ */ It(WB);
|
|
19198
19199
|
function uc() {
|
|
19199
19200
|
return uc = Object.assign ? Object.assign.bind() : function(e) {
|
|
19200
19201
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -19915,7 +19916,7 @@ function tz() {
|
|
|
19915
19916
|
return Bd;
|
|
19916
19917
|
}
|
|
19917
19918
|
var nz = tz();
|
|
19918
|
-
const zd = /* @__PURE__ */
|
|
19919
|
+
const zd = /* @__PURE__ */ It(nz);
|
|
19919
19920
|
var qd, Wg;
|
|
19920
19921
|
function rz() {
|
|
19921
19922
|
if (Wg) return qd;
|
|
@@ -20291,7 +20292,7 @@ function Ez() {
|
|
|
20291
20292
|
return n.Cache = e, v0 = n, v0;
|
|
20292
20293
|
}
|
|
20293
20294
|
var Nz = Ez();
|
|
20294
|
-
const Rz = /* @__PURE__ */
|
|
20295
|
+
const Rz = /* @__PURE__ */ It(Nz);
|
|
20295
20296
|
var bv = "__react_svg_text_measurement_id";
|
|
20296
20297
|
function kz(e, t) {
|
|
20297
20298
|
try {
|
|
@@ -23366,15 +23367,15 @@ _C.propTypes = {
|
|
|
23366
23367
|
rows: ne.bool,
|
|
23367
23368
|
columns: ne.bool
|
|
23368
23369
|
};
|
|
23369
|
-
var
|
|
23370
|
+
var Ut = {
|
|
23370
23371
|
top: "top",
|
|
23371
23372
|
left: "left",
|
|
23372
23373
|
bottom: "bottom"
|
|
23373
23374
|
};
|
|
23374
23375
|
function $H(e) {
|
|
23375
|
-
var t = e.labelOffset, n = e.labelProps, r = e.orientation, o = e.range, a = e.tickLabelFontSize, i = e.tickLength, s = r ===
|
|
23376
|
-
if (r ===
|
|
23377
|
-
var d = r ===
|
|
23376
|
+
var t = e.labelOffset, n = e.labelProps, r = e.orientation, o = e.range, a = e.tickLabelFontSize, i = e.tickLength, s = r === Ut.left || r === Ut.top ? -1 : 1, l, u, c;
|
|
23377
|
+
if (r === Ut.top || r === Ut.bottom) {
|
|
23378
|
+
var d = r === Ut.bottom && typeof n.fontSize == "number" ? n.fontSize : 0;
|
|
23378
23379
|
l = (Number(o[0]) + Number(o[o.length - 1])) / 2, u = s * (i + t + a + d);
|
|
23379
23380
|
} else
|
|
23380
23381
|
l = s * ((Number(o[0]) + Number(o[o.length - 1])) / 2), u = -(i + t), c = "rotate(" + s * 90 + ")";
|
|
@@ -23397,7 +23398,7 @@ function ci() {
|
|
|
23397
23398
|
function XH(e) {
|
|
23398
23399
|
var t = e.hideTicks, n = e.horizontal, r = e.orientation, o = e.tickClassName, a = e.tickComponent, i = e.tickLabelProps, s = e.tickStroke, l = s === void 0 ? "#222" : s, u = e.tickTransform, c = e.ticks, d = e.strokeWidth, h = e.tickLineProps;
|
|
23399
23400
|
return c.map(function(m) {
|
|
23400
|
-
var p, g = m.value, v = m.index, y = m.from, b = m.to, w = m.formattedValue, C = (p = i[v]) != null ? p : {}, x = Math.max(10, typeof C.fontSize == "number" && C.fontSize || 0), P = b.y + (n && r !==
|
|
23401
|
+
var p, g = m.value, v = m.index, y = m.from, b = m.to, w = m.formattedValue, C = (p = i[v]) != null ? p : {}, x = Math.max(10, typeof C.fontSize == "number" && C.fontSize || 0), P = b.y + (n && r !== Ut.top ? x : 0);
|
|
23401
23402
|
return /* @__PURE__ */ H.createElement(bn, {
|
|
23402
23403
|
key: "visx-tick-" + g + "-" + v,
|
|
23403
23404
|
className: mt("visx-axis-tick", o),
|
|
@@ -23435,7 +23436,7 @@ var f3 = {
|
|
|
23435
23436
|
fill: "#222"
|
|
23436
23437
|
};
|
|
23437
23438
|
function KH(e) {
|
|
23438
|
-
var t = e.axisFromPoint, n = e.axisLineClassName, r = e.axisToPoint, o = e.hideAxisLine, a = e.hideTicks, i = e.horizontal, s = e.label, l = s === void 0 ? "" : s, u = e.labelClassName, c = e.labelOffset, d = c === void 0 ? 14 : c, h = e.labelProps, m = e.orientation, p = m === void 0 ?
|
|
23439
|
+
var t = e.axisFromPoint, n = e.axisLineClassName, r = e.axisToPoint, o = e.hideAxisLine, a = e.hideTicks, i = e.horizontal, s = e.label, l = s === void 0 ? "" : s, u = e.labelClassName, c = e.labelOffset, d = c === void 0 ? 14 : c, h = e.labelProps, m = e.orientation, p = m === void 0 ? Ut.bottom : m, g = e.scale, v = e.stroke, y = v === void 0 ? "#222" : v, b = e.strokeDasharray, w = e.strokeWidth, C = w === void 0 ? 1 : w, x = e.tickClassName, P = e.tickComponent, O = e.tickLineProps, T = e.tickLabelProps, S = e.tickLength, A = S === void 0 ? 8 : S, E = e.tickStroke, R = E === void 0 ? "#222" : E, k = e.tickTransform, q = e.ticks, _ = e.ticksComponent, N = _ === void 0 ? XH : _, z = fi({}, f3, h), I = fi({}, f3, typeof T == "object" ? T : null), D = q.map(function(j) {
|
|
23439
23440
|
var $ = j.value, Y = j.index;
|
|
23440
23441
|
return typeof T == "function" ? T($, Y, q) : I;
|
|
23441
23442
|
}), F = Math.max.apply(Math, [10].concat(D.map(function(j) {
|
|
@@ -23537,7 +23538,7 @@ function tU(e, t) {
|
|
|
23537
23538
|
return n;
|
|
23538
23539
|
}
|
|
23539
23540
|
function Mi(e) {
|
|
23540
|
-
var t = e.children, n = t === void 0 ? KH : t, r = e.axisClassName, o = e.hideAxisLine, a = o === void 0 ? !1 : o, i = e.hideTicks, s = i === void 0 ? !1 : i, l = e.hideZero, u = l === void 0 ? !1 : l, c = e.innerRef, d = e.left, h = d === void 0 ? 0 : d, m = e.numTicks, p = m === void 0 ? 10 : m, g = e.orientation, v = g === void 0 ?
|
|
23541
|
+
var t = e.children, n = t === void 0 ? KH : t, r = e.axisClassName, o = e.hideAxisLine, a = o === void 0 ? !1 : o, i = e.hideTicks, s = i === void 0 ? !1 : i, l = e.hideZero, u = l === void 0 ? !1 : l, c = e.innerRef, d = e.left, h = d === void 0 ? 0 : d, m = e.numTicks, p = m === void 0 ? 10 : m, g = e.orientation, v = g === void 0 ? Ut.bottom : g, y = e.rangePadding, b = y === void 0 ? 0 : y, w = e.scale, C = e.tickFormat, x = e.tickLength, P = x === void 0 ? 8 : x, O = e.tickValues, T = e.top, S = T === void 0 ? 0 : T, A = tU(e, eU), E = C ?? ZH(w), R = v === Ut.left, k = v === Ut.top, q = k || v === Ut.bottom, _ = QH(w), N = R || k ? -1 : 1, z = w.range(), I = JH(b), D = Ms({
|
|
23541
23542
|
x: Number(z[0]) + 0.5 - I.start,
|
|
23542
23543
|
y: 0
|
|
23543
23544
|
}, q), F = Ms({
|
|
@@ -23620,7 +23621,7 @@ function aU(e) {
|
|
|
23620
23621
|
return /* @__PURE__ */ H.createElement(Mi, Cc({
|
|
23621
23622
|
axisClassName: mt("visx-axis-left", t),
|
|
23622
23623
|
labelOffset: r,
|
|
23623
|
-
orientation:
|
|
23624
|
+
orientation: Ut.left,
|
|
23624
23625
|
tickLabelProps: l,
|
|
23625
23626
|
tickLength: a
|
|
23626
23627
|
}, s));
|
|
@@ -23655,7 +23656,7 @@ function uU(e) {
|
|
|
23655
23656
|
return /* @__PURE__ */ H.createElement(Mi, Ac({
|
|
23656
23657
|
axisClassName: mt("visx-axis-bottom", t),
|
|
23657
23658
|
labelOffset: r,
|
|
23658
|
-
orientation:
|
|
23659
|
+
orientation: Ut.bottom,
|
|
23659
23660
|
tickLabelProps: l,
|
|
23660
23661
|
tickLength: a
|
|
23661
23662
|
}, s));
|
|
@@ -23676,9 +23677,9 @@ function oa(e) {
|
|
|
23676
23677
|
}, e));
|
|
23677
23678
|
}
|
|
23678
23679
|
var cU = /* @__PURE__ */ UH();
|
|
23679
|
-
const fU = /* @__PURE__ */
|
|
23680
|
+
const fU = /* @__PURE__ */ It(cU);
|
|
23680
23681
|
var dU = /* @__PURE__ */ VH();
|
|
23681
|
-
const hU = /* @__PURE__ */
|
|
23682
|
+
const hU = /* @__PURE__ */ It(dU);
|
|
23682
23683
|
function X1() {
|
|
23683
23684
|
return X1 = Object.assign ? Object.assign.bind() : function(e) {
|
|
23684
23685
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -24064,19 +24065,19 @@ function RC(e) {
|
|
|
24064
24065
|
var wt = ze(Ue, De.datum), rt = wt.left, _t = wt.top;
|
|
24065
24066
|
he = z && et(rt) ? rt : he, nt = D && et(_t) ? _t : nt;
|
|
24066
24067
|
}
|
|
24067
|
-
var
|
|
24068
|
+
var Lt = [];
|
|
24068
24069
|
if (ct && (S || k)) {
|
|
24069
|
-
var xn,
|
|
24070
|
+
var xn, Bt = Number((xn = y == null ? void 0 : y.radius) != null ? xn : 4);
|
|
24070
24071
|
if (k) {
|
|
24071
|
-
var zn,
|
|
24072
|
-
Object.values((zn = ae == null || (
|
|
24072
|
+
var zn, zt;
|
|
24073
|
+
Object.values((zn = ae == null || (zt = ae.tooltipData) == null ? void 0 : zt.datumByKey) != null ? zn : {}).forEach(function(xe) {
|
|
24073
24074
|
var Le, Qe, dt, Ze = xe.key, it = xe.datum, Pt = xe.index, _a = (Le = (Qe = L == null ? void 0 : L(Ze)) != null ? Qe : U == null || (dt = U.htmlLabel) == null ? void 0 : dt.color) != null ? Le : "#222", wo = ze(Ze, it), ts = wo.left, ns = wo.top;
|
|
24074
|
-
!et(ts) || !et(ns) ||
|
|
24075
|
+
!et(ts) || !et(ns) || Lt.push({
|
|
24075
24076
|
key: Ze,
|
|
24076
24077
|
color: _a,
|
|
24077
24078
|
datum: it,
|
|
24078
24079
|
index: Pt,
|
|
24079
|
-
size:
|
|
24080
|
+
size: Bt,
|
|
24080
24081
|
x: ts,
|
|
24081
24082
|
y: ns,
|
|
24082
24083
|
glyphStyle: y,
|
|
@@ -24086,13 +24087,13 @@ function RC(e) {
|
|
|
24086
24087
|
} else if (De) {
|
|
24087
24088
|
var Cn = ze(Ue, De.datum), qn = Cn.left, An = Cn.top;
|
|
24088
24089
|
if (et(qn) && et(An)) {
|
|
24089
|
-
var V, Z, oe, ie,
|
|
24090
|
-
|
|
24090
|
+
var V, Z, oe, ie, qt, ge, Pe = (V = (Z = (oe = (ie = Ue && (L == null ? void 0 : L(Ue))) != null ? ie : null) != null ? oe : U == null || (qt = U.gridStyles) == null ? void 0 : qt.stroke) != null ? Z : U == null || (ge = U.htmlLabel) == null ? void 0 : ge.color) != null ? V : "#222";
|
|
24091
|
+
Lt.push({
|
|
24091
24092
|
key: Ue,
|
|
24092
24093
|
color: Pe,
|
|
24093
24094
|
datum: De.datum,
|
|
24094
24095
|
index: De.index,
|
|
24095
|
-
size:
|
|
24096
|
+
size: Bt,
|
|
24096
24097
|
x: qn,
|
|
24097
24098
|
y: An,
|
|
24098
24099
|
glyphStyle: y,
|
|
@@ -24145,7 +24146,7 @@ function RC(e) {
|
|
|
24145
24146
|
y2: 0,
|
|
24146
24147
|
strokeWidth: 1.5,
|
|
24147
24148
|
stroke: (s = (l = U == null || (u = U.gridStyles) == null ? void 0 : u.stroke) != null ? l : U == null || (c = U.htmlLabel) == null ? void 0 : c.color) != null ? s : "#222"
|
|
24148
|
-
}, v)))),
|
|
24149
|
+
}, v)))), Lt.map(function(xe, Le) {
|
|
24149
24150
|
var Qe = xe.x, dt = xe.y, Ze = p3(xe, TU);
|
|
24150
24151
|
return (
|
|
24151
24152
|
// We render glyps in a portal so that they can overflow the container if necessary
|
|
@@ -24315,7 +24316,7 @@ function kU() {
|
|
|
24315
24316
|
}, Ss;
|
|
24316
24317
|
}
|
|
24317
24318
|
var DU = /* @__PURE__ */ kU();
|
|
24318
|
-
const FU = /* @__PURE__ */
|
|
24319
|
+
const FU = /* @__PURE__ */ It(DU);
|
|
24319
24320
|
var kC = /* @__PURE__ */ fo(null);
|
|
24320
24321
|
function vr(e, t, n) {
|
|
24321
24322
|
var r = je(kC), o = Ke();
|
|
@@ -29611,7 +29612,7 @@ function CA() {
|
|
|
29611
29612
|
};
|
|
29612
29613
|
}
|
|
29613
29614
|
function o(V) {
|
|
29614
|
-
var Z = V.dateTime, oe = V.date, ie = V.time,
|
|
29615
|
+
var Z = V.dateTime, oe = V.date, ie = V.time, qt = V.periods, ge = V.days, Pe = V.shortDays, xe = V.months, Le = V.shortMonths, Qe = d(qt), dt = h(qt), Ze = d(ge), it = h(ge), Pt = d(Pe), _a = h(Pe), wo = d(xe), ts = h(xe), ns = d(Le), YM = h(Le), Dr = {
|
|
29615
29616
|
a: nS,
|
|
29616
29617
|
A: rS,
|
|
29617
29618
|
b: oS,
|
|
@@ -29673,9 +29674,9 @@ function CA() {
|
|
|
29673
29674
|
W: _t,
|
|
29674
29675
|
x: null,
|
|
29675
29676
|
X: null,
|
|
29676
|
-
y:
|
|
29677
|
-
Y:
|
|
29678
|
-
Z:
|
|
29677
|
+
y: Lt,
|
|
29678
|
+
Y: Bt,
|
|
29679
|
+
Z: zt,
|
|
29679
29680
|
"%": Cn
|
|
29680
29681
|
}, GM = {
|
|
29681
29682
|
a: XM,
|
|
@@ -29714,31 +29715,31 @@ function CA() {
|
|
|
29714
29715
|
Dr.x = lr(oe, Dr), Dr.X = lr(ie, Dr), Dr.c = lr(Z, Dr), Fr.x = lr(oe, Fr), Fr.X = lr(ie, Fr), Fr.c = lr(Z, Fr);
|
|
29715
29716
|
function lr(pe, Se) {
|
|
29716
29717
|
return function(Oe) {
|
|
29717
|
-
var le = [], Nt = -1, Be = 0,
|
|
29718
|
-
for (Oe instanceof Date || (Oe = /* @__PURE__ */ new Date(+Oe)); ++Nt <
|
|
29719
|
-
pe.charCodeAt(Nt) === 37 && (le.push(pe.slice(Be, Nt)), (Ir = a[
|
|
29718
|
+
var le = [], Nt = -1, Be = 0, Wt = pe.length, jt, Ir, Vm;
|
|
29719
|
+
for (Oe instanceof Date || (Oe = /* @__PURE__ */ new Date(+Oe)); ++Nt < Wt; )
|
|
29720
|
+
pe.charCodeAt(Nt) === 37 && (le.push(pe.slice(Be, Nt)), (Ir = a[jt = pe.charAt(++Nt)]) != null ? jt = pe.charAt(++Nt) : Ir = jt === "e" ? " " : "0", (Vm = Se[jt]) && (jt = Vm(Oe, Ir)), le.push(jt), Be = Nt + 1);
|
|
29720
29721
|
return le.push(pe.slice(Be, Nt)), le.join("");
|
|
29721
29722
|
};
|
|
29722
29723
|
}
|
|
29723
29724
|
function Um(pe, Se) {
|
|
29724
29725
|
return function(Oe) {
|
|
29725
|
-
var le = r(1900, void 0, 1), Nt = rs(le, pe, Oe += "", 0), Be,
|
|
29726
|
+
var le = r(1900, void 0, 1), Nt = rs(le, pe, Oe += "", 0), Be, Wt;
|
|
29726
29727
|
if (Nt != Oe.length) return null;
|
|
29727
29728
|
if ("Q" in le) return new Date(le.Q);
|
|
29728
29729
|
if ("s" in le) return new Date(le.s * 1e3 + ("L" in le ? le.L : 0));
|
|
29729
29730
|
if (Se && !("Z" in le) && (le.Z = 0), "p" in le && (le.H = le.H % 12 + le.p * 12), le.m === void 0 && (le.m = "q" in le ? le.q : 0), "V" in le) {
|
|
29730
29731
|
if (le.V < 1 || le.V > 53) return null;
|
|
29731
|
-
"w" in le || (le.w = 1), "Z" in le ? (Be = n(r(le.y, 0, 1)),
|
|
29732
|
-
} else ("W" in le || "U" in le) && ("w" in le || (le.w = "u" in le ? le.u % 7 : "W" in le ? 1 : 0),
|
|
29732
|
+
"w" in le || (le.w = 1), "Z" in le ? (Be = n(r(le.y, 0, 1)), Wt = Be.getUTCDay(), Be = Wt > 4 || Wt === 0 ? e.utcMonday.ceil(Be) : (0, e.utcMonday)(Be), Be = e.utcDay.offset(Be, (le.V - 1) * 7), le.y = Be.getUTCFullYear(), le.m = Be.getUTCMonth(), le.d = Be.getUTCDate() + (le.w + 6) % 7) : (Be = t(r(le.y, 0, 1)), Wt = Be.getDay(), Be = Wt > 4 || Wt === 0 ? e.timeMonday.ceil(Be) : (0, e.timeMonday)(Be), Be = e.timeDay.offset(Be, (le.V - 1) * 7), le.y = Be.getFullYear(), le.m = Be.getMonth(), le.d = Be.getDate() + (le.w + 6) % 7);
|
|
29733
|
+
} else ("W" in le || "U" in le) && ("w" in le || (le.w = "u" in le ? le.u % 7 : "W" in le ? 1 : 0), Wt = "Z" in le ? n(r(le.y, 0, 1)).getUTCDay() : t(r(le.y, 0, 1)).getDay(), le.m = 0, le.d = "W" in le ? (le.w + 6) % 7 + le.W * 7 - (Wt + 5) % 7 : le.w + le.U * 7 - (Wt + 6) % 7);
|
|
29733
29734
|
return "Z" in le ? (le.H += le.Z / 100 | 0, le.M += le.Z % 100, n(le)) : t(le);
|
|
29734
29735
|
};
|
|
29735
29736
|
}
|
|
29736
29737
|
function rs(pe, Se, Oe, le) {
|
|
29737
|
-
for (var Nt = 0, Be = Se.length,
|
|
29738
|
-
if (le >=
|
|
29739
|
-
if (
|
|
29740
|
-
if (
|
|
29741
|
-
} else if (
|
|
29738
|
+
for (var Nt = 0, Be = Se.length, Wt = Oe.length, jt, Ir; Nt < Be; ) {
|
|
29739
|
+
if (le >= Wt) return -1;
|
|
29740
|
+
if (jt = Se.charCodeAt(Nt++), jt === 37) {
|
|
29741
|
+
if (jt = Se.charAt(Nt++), Ir = GM[jt in a ? Se.charAt(Nt++) : jt], !Ir || (le = Ir(pe, Oe, le)) < 0) return -1;
|
|
29742
|
+
} else if (jt != Oe.charCodeAt(le++))
|
|
29742
29743
|
return -1;
|
|
29743
29744
|
}
|
|
29744
29745
|
return le;
|
|
@@ -29785,7 +29786,7 @@ function CA() {
|
|
|
29785
29786
|
return xe[pe.getMonth()];
|
|
29786
29787
|
}
|
|
29787
29788
|
function iS(pe) {
|
|
29788
|
-
return
|
|
29789
|
+
return qt[+(pe.getHours() >= 12)];
|
|
29789
29790
|
}
|
|
29790
29791
|
function sS(pe) {
|
|
29791
29792
|
return 1 + ~~(pe.getMonth() / 3);
|
|
@@ -29803,7 +29804,7 @@ function CA() {
|
|
|
29803
29804
|
return xe[pe.getUTCMonth()];
|
|
29804
29805
|
}
|
|
29805
29806
|
function dS(pe) {
|
|
29806
|
-
return
|
|
29807
|
+
return qt[+(pe.getUTCHours() >= 12)];
|
|
29807
29808
|
}
|
|
29808
29809
|
function hS(pe) {
|
|
29809
29810
|
return 1 + ~~(pe.getUTCMonth() / 3);
|
|
@@ -29841,8 +29842,8 @@ function CA() {
|
|
|
29841
29842
|
0: "0"
|
|
29842
29843
|
}, i = /^\s*\d+/, s = /^%/, l = /[\\^$*+?|[\]().{}]/g;
|
|
29843
29844
|
function u(V, Z, oe) {
|
|
29844
|
-
var ie = V < 0 ? "-" : "",
|
|
29845
|
-
return ie + (ge < oe ? new Array(oe - ge + 1).join(Z) +
|
|
29845
|
+
var ie = V < 0 ? "-" : "", qt = (ie ? -V : V) + "", ge = qt.length;
|
|
29846
|
+
return ie + (ge < oe ? new Array(oe - ge + 1).join(Z) + qt : qt);
|
|
29846
29847
|
}
|
|
29847
29848
|
function c(V) {
|
|
29848
29849
|
return V.replace(l, "\\$&");
|
|
@@ -30044,20 +30045,20 @@ function CA() {
|
|
|
30044
30045
|
function _t(V, Z) {
|
|
30045
30046
|
return u(e.utcMonday.count((0, e.utcYear)(V) - 1, V), Z, 2);
|
|
30046
30047
|
}
|
|
30047
|
-
function
|
|
30048
|
+
function Lt(V, Z) {
|
|
30048
30049
|
return u(V.getUTCFullYear() % 100, Z, 2);
|
|
30049
30050
|
}
|
|
30050
30051
|
function xn(V, Z) {
|
|
30051
30052
|
return V = Ue(V), u(V.getUTCFullYear() % 100, Z, 2);
|
|
30052
30053
|
}
|
|
30053
|
-
function
|
|
30054
|
+
function Bt(V, Z) {
|
|
30054
30055
|
return u(V.getUTCFullYear() % 1e4, Z, 4);
|
|
30055
30056
|
}
|
|
30056
30057
|
function zn(V, Z) {
|
|
30057
30058
|
var oe = V.getUTCDay();
|
|
30058
30059
|
return V = oe >= 4 || oe === 0 ? (0, e.utcThursday)(V) : e.utcThursday.ceil(V), u(V.getUTCFullYear() % 1e4, Z, 4);
|
|
30059
30060
|
}
|
|
30060
|
-
function
|
|
30061
|
+
function zt() {
|
|
30061
30062
|
return "+0000";
|
|
30062
30063
|
}
|
|
30063
30064
|
function Cn() {
|
|
@@ -30917,7 +30918,7 @@ function xY() {
|
|
|
30917
30918
|
return Po;
|
|
30918
30919
|
}
|
|
30919
30920
|
var CY = /* @__PURE__ */ xY();
|
|
30920
|
-
const AY = /* @__PURE__ */
|
|
30921
|
+
const AY = /* @__PURE__ */ It(CY);
|
|
30921
30922
|
var gr = {
|
|
30922
30923
|
red: ["#fff5f5", "#ffe3e3", "#ffc9c9", "#ffa8a8", "#ff8787", "#ff6b6b", "#fa5252", "#f03e3e", "#e03131", "#c92a2a"],
|
|
30923
30924
|
pink: ["#fff0f6", "#ffdeeb", "#fcc2d7", "#faa2c1", "#f783ac", "#f06595", "#e64980", "#d6336c", "#c2255c", "#a61e4d"],
|
|
@@ -31794,9 +31795,9 @@ function ZY() {
|
|
|
31794
31795
|
}, o;
|
|
31795
31796
|
}
|
|
31796
31797
|
var JY = /* @__PURE__ */ VY();
|
|
31797
|
-
const eG = /* @__PURE__ */
|
|
31798
|
+
const eG = /* @__PURE__ */ It(JY);
|
|
31798
31799
|
var tG = /* @__PURE__ */ UY();
|
|
31799
|
-
const nG = /* @__PURE__ */
|
|
31800
|
+
const nG = /* @__PURE__ */ It(tG);
|
|
31800
31801
|
var Ry = function(t) {
|
|
31801
31802
|
var n;
|
|
31802
31803
|
return t == null || (n = t.data) == null ? void 0 : n.stack;
|
|
@@ -32054,7 +32055,7 @@ function yG() {
|
|
|
32054
32055
|
return wu;
|
|
32055
32056
|
}
|
|
32056
32057
|
var bG = /* @__PURE__ */ yG();
|
|
32057
|
-
const wG = /* @__PURE__ */
|
|
32058
|
+
const wG = /* @__PURE__ */ It(bG);
|
|
32058
32059
|
function lh() {
|
|
32059
32060
|
return lh = Object.assign ? Object.assign.bind() : function(e) {
|
|
32060
32061
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -33526,7 +33527,7 @@ const H$ = ({ x: e, y: t, datum: n, size: r }) => /* @__PURE__ */ f(ga, { cx: e,
|
|
|
33526
33527
|
}
|
|
33527
33528
|
}
|
|
33528
33529
|
),
|
|
33529
|
-
T.map((S, A) => /* @__PURE__ */ B(
|
|
33530
|
+
T.map((S, A) => /* @__PURE__ */ B(Ft, { children: [
|
|
33530
33531
|
/* @__PURE__ */ f(
|
|
33531
33532
|
j$,
|
|
33532
33533
|
{
|
|
@@ -34131,7 +34132,7 @@ lM.displayName = "Sankey";
|
|
|
34131
34132
|
const oX = ue((e, t) => /* @__PURE__ */ f(ar, { debounceTime: 10, children: ({ width: n, height: r }) => n && r && /* @__PURE__ */ f(lM, { ref: t, width: n, height: r, ...e }) }));
|
|
34132
34133
|
oX.displayName = "SankeyChart";
|
|
34133
34134
|
var aX = /* @__PURE__ */ um();
|
|
34134
|
-
const iX = /* @__PURE__ */
|
|
34135
|
+
const iX = /* @__PURE__ */ It(aX);
|
|
34135
34136
|
function sX(e) {
|
|
34136
34137
|
return "bandwidth" in e ? e.bandwidth() : 0;
|
|
34137
34138
|
}
|
|
@@ -34477,7 +34478,7 @@ const hX = (e) => e.value, pX = (e) => e.label, dM = ue(
|
|
|
34477
34478
|
innerRadius: u - Math.min(e * 0.07, 22) - 10,
|
|
34478
34479
|
cornerRadius: 2,
|
|
34479
34480
|
padAngle: 0.025,
|
|
34480
|
-
children: (P) => /* @__PURE__ */ f(
|
|
34481
|
+
children: (P) => /* @__PURE__ */ f(Ft, { children: P.arcs.map((O) => {
|
|
34481
34482
|
const T = pX(O.data);
|
|
34482
34483
|
return /* @__PURE__ */ f("g", { children: /* @__PURE__ */ f(
|
|
34483
34484
|
"path",
|
|
@@ -34668,7 +34669,7 @@ const Su = { top: 60, left: 20, right: 20, bottom: 20 }, Jy = {
|
|
|
34668
34669
|
},
|
|
34669
34670
|
`web1-${hn(0, 4294967295).toString(16)}`
|
|
34670
34671
|
)),
|
|
34671
|
-
c.map((F, j) => /* @__PURE__ */ B(
|
|
34672
|
+
c.map((F, j) => /* @__PURE__ */ B(Ft, { children: [
|
|
34672
34673
|
/* @__PURE__ */ f(
|
|
34673
34674
|
lm,
|
|
34674
34675
|
{
|
|
@@ -35325,7 +35326,7 @@ function RX({
|
|
|
35325
35326
|
connectNulls: r = !1
|
|
35326
35327
|
}) {
|
|
35327
35328
|
const o = je(St), a = r ? e.filter((i) => i.y !== null) : e;
|
|
35328
|
-
return a.length === 0 ? null : /* @__PURE__ */ B(
|
|
35329
|
+
return a.length === 0 ? null : /* @__PURE__ */ B(Ft, { children: [
|
|
35329
35330
|
/* @__PURE__ */ f(NX, { id: "marker-circle", stroke: "#666", size: 6, refX: 7, fill: "transparent", strokeWidth: 2 }),
|
|
35330
35331
|
/* @__PURE__ */ f(
|
|
35331
35332
|
OX,
|
|
@@ -35503,7 +35504,7 @@ const kX = ({ x: e, y: t, datum: n, size: r }) => /* @__PURE__ */ f(ga, { cx: e,
|
|
|
35503
35504
|
}
|
|
35504
35505
|
}
|
|
35505
35506
|
),
|
|
35506
|
-
T.map((A, E) => /* @__PURE__ */ B(
|
|
35507
|
+
T.map((A, E) => /* @__PURE__ */ B(Ft, { children: [
|
|
35507
35508
|
/* @__PURE__ */ f(
|
|
35508
35509
|
RX,
|
|
35509
35510
|
{
|
|
@@ -36152,7 +36153,7 @@ var RM = "NavigationMenuItem", [ZX, kM] = zm(RM), DM = M.forwardRef(
|
|
|
36152
36153
|
DM.displayName = RM;
|
|
36153
36154
|
var gh = "NavigationMenuTrigger", FM = M.forwardRef((e, t) => {
|
|
36154
36155
|
const { __scopeNavigationMenu: n, disabled: r, ...o } = e, a = en(gh, e.__scopeNavigationMenu), i = kM(gh, e.__scopeNavigationMenu), s = M.useRef(null), l = be(s, i.triggerRef, t), u = WM(a.baseId, i.value), c = jM(a.baseId, i.value), d = M.useRef(!1), h = M.useRef(!1), m = i.value === a.value;
|
|
36155
|
-
return /* @__PURE__ */ B(
|
|
36156
|
+
return /* @__PURE__ */ B(Ft, { children: [
|
|
36156
36157
|
/* @__PURE__ */ f(Bm.ItemSlot, { scope: n, value: i.value, children: /* @__PURE__ */ f(qM, { asChild: !0, children: /* @__PURE__ */ f(
|
|
36157
36158
|
ce.button,
|
|
36158
36159
|
{
|
|
@@ -36188,7 +36189,7 @@ var gh = "NavigationMenuTrigger", FM = M.forwardRef((e, t) => {
|
|
|
36188
36189
|
})
|
|
36189
36190
|
}
|
|
36190
36191
|
) }) }),
|
|
36191
|
-
m && /* @__PURE__ */ B(
|
|
36192
|
+
m && /* @__PURE__ */ B(Ft, { children: [
|
|
36192
36193
|
/* @__PURE__ */ f(
|
|
36193
36194
|
mw,
|
|
36194
36195
|
{
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
- less than the value passed to \`max\` (or ${id} if no \`max\` prop is set)
|
|
4
4
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
5
5
|
|
|
6
|
-
Defaulting to \`null\`.`}var jO=Jg,HO=ev,is=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ss(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var po={},Sa={},ov;function UO(){return ov||(ov=1,Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.defaultOptions=void 0,Sa.defaultOptions={lowercase:!1,precision:1,space:!1,units:["","K","M","B","T","P","E"]}),Sa}var Kt={},av;function VO(){if(av)return Kt;av=1,Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.getLocales=Kt.getFractionDigits=Kt.roundTo=Kt.parseValue=void 0;function e(o){const a=parseFloat(o==null?void 0:o.toString());if(isNaN(a))throw new Error("Input value is not a number");if(a>Number.MAX_SAFE_INTEGER||a<Number.MIN_SAFE_INTEGER)throw new RangeError("Input value is outside of safe integer range");return a}Kt.parseValue=e;function t(o,a){if(!Number.isFinite(o))throw new Error("Input value is not a finite number");if(!Number.isInteger(a)||a<0)throw new Error("Precision is not a positive integer");return Number.isInteger(o)?o:parseFloat(o.toFixed(a))}Kt.roundTo=t;function r(o){var a;if(Number.isInteger(o))return 0;const i=o.toString().split(".")[1];return(a=i==null?void 0:i.length)!==null&&a!==void 0?a:0}Kt.getFractionDigits=r;function n(){var o;return typeof navigator>"u"?[]:Array.from((o=navigator.languages)!==null&&o!==void 0?o:[])}return Kt.getLocales=n,Kt}var iv;function YO(){if(iv)return po;iv=1,Object.defineProperty(po,"__esModule",{value:!0}),po.millify=void 0;const e=UO(),t=VO(),r=1e3;function*n(a){let i=r;for(;;){const s=a/i;if(s<1)return;yield s,i*=r}}function o(a,i){var s,l;const u=i?{...e.defaultOptions,...i}:e.defaultOptions;if(!Array.isArray(u.units)||!u.units.length)throw new Error("Option `units` must be a non-empty array");let f;try{f=t.parseValue(a)}catch(w){return w instanceof Error&&console.warn(`WARN: ${w.message} (millify)`),String(a)}const d=f<0?"-":"";f=Math.abs(f);let h=0;for(const w of n(f))f=w,h+=1;if(h>=u.units.length)return a.toString();let p=t.roundTo(f,u.precision);for(const w of n(p))p=w,h+=1;const v=(s=u.units[h])!==null&&s!==void 0?s:"",m=u.lowercase?v.toLowerCase():v,y=u.space?" ":"",b=p.toLocaleString((l=u.locales)!==null&&l!==void 0?l:t.getLocales(),{minimumFractionDigits:t.getFractionDigits(p)});return`${d}${b}${y}${m}`}return po.millify=o,po.default=o,po}var GO=YO();const ls=Mt(GO);var et=(e=>(e.CLOSED_ACHIEVED="CLOSED_ACHIEVED",e.CLOSED_DROPPED="CLOSED_DROPPED",e.CLOSED_NOT_ACHIEVED="CLOSED_NOT_ACHIEVED",e.ON_TRACK="ON_TRACK",e.OFF_TRACK="OFF_TRACK",e.AT_RISK="AT_RISK",e))(et||{});const go={[et.ON_TRACK]:{backgroundColor:"#EAEAEA",indicatorColor:"#EFFFEA",textColor:"#44812F"},[et.OFF_TRACK]:{backgroundColor:"#EAEAEA",indicatorColor:"#FFF6D3",textColor:"#8C6A00"},[et.AT_RISK]:{backgroundColor:"#EAEAEA",indicatorColor:"#FFF1E4",textColor:"#C62C02"},[et.CLOSED_ACHIEVED]:{backgroundColor:"#EAEAEA",indicatorColor:"#DBF2D3",textColor:"#1A5724"},[et.CLOSED_DROPPED]:{backgroundColor:"#EAEAEA",indicatorColor:"#CCCCCC",textColor:"#666666"},[et.CLOSED_NOT_ACHIEVED]:{backgroundColor:"#EAEAEA",indicatorColor:"#FFE1D9",textColor:"#A12402"}},sd={[et.ON_TRACK]:"On-track",[et.OFF_TRACK]:"Off-track",[et.AT_RISK]:"At-risk",[et.CLOSED_ACHIEVED]:"Closed & achieved",[et.CLOSED_DROPPED]:"Closed & dropped",[et.CLOSED_NOT_ACHIEVED]:"Closed & not achieved"};function sv({progressInPercentage:e=0,status:t=et.ON_TRACK}){const{backgroundColor:r,indicatorColor:n,textColor:o}=go[t]?go[t]:go[et.ON_TRACK];return c.jsxs(jO,{className:"rabbit-ds relative box-border inline-flex h-5 w-full min-w-[210px] items-start justify-start overflow-hidden rounded-radius-150",style:{transform:"translateZ(0)",backgroundColor:r},value:e,children:[c.jsx(HO,{className:"duration-[660ms] ease-[cubic-bezier(0.65,0,0.35,1)] size-full transition-transform",style:{transform:`translateX(-${100-e>100?100:100-e}%)`,backgroundColor:n}}),c.jsx("div",{className:"absolute left-0 top-0 inline-flex items-center justify-start",children:c.jsx("div",{className:"inline-flex items-center justify-start px-1 py-0.5",children:c.jsx("div",{className:"text-xs font-semibold",style:{color:o},children:sd[t]?sd[t]:sd[et.ON_TRACK]})})}),c.jsx("div",{className:"absolute right-0 top-0 inline-flex items-center justify-start px-1 py-0.5",children:c.jsxs("div",{className:"text-right text-xs font-semibold",style:{color:o},children:[ls(e),"%"]})})]})}function cs(e,[t,r]){return Math.min(r,Math.max(t,e))}var $O=S.createContext(void 0);function tn(e){const t=S.useContext($O);return e||t||"ltr"}function Tn(e){const t=e+"CollectionProvider",[r,n]=Ke(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:p,children:v}=g,m=M.useRef(null),y=M.useRef(new Map).current;return c.jsx(o,{scope:p,itemMap:y,collectionRef:m,children:v})};i.displayName=t;const s=e+"CollectionSlot",l=M.forwardRef((g,p)=>{const{scope:v,children:m}=g,y=a(s,v),b=ve(p,y.collectionRef);return c.jsx(dr,{ref:b,children:m})});l.displayName=s;const u=e+"CollectionItemSlot",f="data-radix-collection-item",d=M.forwardRef((g,p)=>{const{scope:v,children:m,...y}=g,b=M.useRef(null),w=ve(p,b),C=a(u,v);return M.useEffect(()=>(C.itemMap.set(b,{ref:b,...y}),()=>void C.itemMap.delete(b))),c.jsx(dr,{[f]:"",ref:w,children:m})});d.displayName=u;function h(g){const p=a(e+"CollectionConsumer",g);return M.useCallback(()=>{const m=p.collectionRef.current;if(!m)return[];const y=Array.from(m.querySelectorAll(`[${f}]`));return Array.from(p.itemMap.values()).sort((C,x)=>y.indexOf(C.ref.current)-y.indexOf(x.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:i,Slot:l,ItemSlot:d},h,n]}var lv=["PageUp","PageDown"],cv=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],uv={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},vo="Slider",[ld,XO,KO]=Tn(vo),[fv,xJ]=Ke(vo,[KO]),[QO,us]=fv(vo),dv=S.forwardRef((e,t)=>{const{name:r,min:n=0,max:o=100,step:a=1,orientation:i="horizontal",disabled:s=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[n],value:f,onValueChange:d=()=>{},onValueCommit:h=()=>{},inverted:g=!1,form:p,...v}=e,m=S.useRef(new Set),y=S.useRef(0),w=i==="horizontal"?ZO:JO,[C=[],x]=Qe({prop:f,defaultProp:u,onChange:N=>{var F;(F=[...m.current][y.current])==null||F.focus(),d(N)}}),O=S.useRef(C);function T(N){const D=nT(C,N);A(N,D)}function E(N){A(N,y.current)}function P(){const N=O.current[y.current];C[y.current]!==N&&h(C)}function A(N,D,{commit:F}={commit:!1}){const W=sT(a),_=lT(Math.round((N-n)/a)*a+n,W),k=cs(_,[n,o]);x((q=[])=>{const B=tT(q,k,D);if(iT(B,l*a)){y.current=B.indexOf(k);const I=String(B)!==String(q);return I&&F&&h(B),I?B:q}else return q})}return c.jsx(QO,{scope:e.__scopeSlider,name:r,disabled:s,min:n,max:o,valueIndexToChangeRef:y,thumbs:m.current,values:C,orientation:i,form:p,children:c.jsx(ld.Provider,{scope:e.__scopeSlider,children:c.jsx(ld.Slot,{scope:e.__scopeSlider,children:c.jsx(w,{"aria-disabled":s,"data-disabled":s?"":void 0,...v,ref:t,onPointerDown:ne(v.onPointerDown,()=>{s||(O.current=C)}),min:n,max:o,inverted:g,onSlideStart:s?void 0:T,onSlideMove:s?void 0:E,onSlideEnd:s?void 0:P,onHomeKeyDown:()=>!s&&A(n,0,{commit:!0}),onEndKeyDown:()=>!s&&A(o,C.length-1,{commit:!0}),onStepKeyDown:({event:N,direction:D})=>{if(!s){const _=lv.includes(N.key)||N.shiftKey&&cv.includes(N.key)?10:1,k=y.current,q=C[k],B=a*_*D;A(q+B,k,{commit:!0})}}})})})})});dv.displayName=vo;var[hv,pv]=fv(vo,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ZO=S.forwardRef((e,t)=>{const{min:r,max:n,dir:o,inverted:a,onSlideStart:i,onSlideMove:s,onSlideEnd:l,onStepKeyDown:u,...f}=e,[d,h]=S.useState(null),g=ve(t,w=>h(w)),p=S.useRef(void 0),v=tn(o),m=v==="ltr",y=m&&!a||!m&&a;function b(w){const C=p.current||d.getBoundingClientRect(),x=[0,C.width],T=fd(x,y?[r,n]:[n,r]);return p.current=C,T(w-C.left)}return c.jsx(hv,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:c.jsx(gv,{dir:v,"data-orientation":"horizontal",...f,ref:g,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:w=>{const C=b(w.clientX);i==null||i(C)},onSlideMove:w=>{const C=b(w.clientX);s==null||s(C)},onSlideEnd:()=>{p.current=void 0,l==null||l()},onStepKeyDown:w=>{const x=uv[y?"from-left":"from-right"].includes(w.key);u==null||u({event:w,direction:x?-1:1})}})})}),JO=S.forwardRef((e,t)=>{const{min:r,max:n,inverted:o,onSlideStart:a,onSlideMove:i,onSlideEnd:s,onStepKeyDown:l,...u}=e,f=S.useRef(null),d=ve(t,f),h=S.useRef(void 0),g=!o;function p(v){const m=h.current||f.current.getBoundingClientRect(),y=[0,m.height],w=fd(y,g?[n,r]:[r,n]);return h.current=m,w(v-m.top)}return c.jsx(hv,{scope:e.__scopeSlider,startEdge:g?"bottom":"top",endEdge:g?"top":"bottom",size:"height",direction:g?1:-1,children:c.jsx(gv,{"data-orientation":"vertical",...u,ref:d,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:v=>{const m=p(v.clientY);a==null||a(m)},onSlideMove:v=>{const m=p(v.clientY);i==null||i(m)},onSlideEnd:()=>{h.current=void 0,s==null||s()},onStepKeyDown:v=>{const y=uv[g?"from-bottom":"from-top"].includes(v.key);l==null||l({event:v,direction:y?-1:1})}})})}),gv=S.forwardRef((e,t)=>{const{__scopeSlider:r,onSlideStart:n,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:i,onEndKeyDown:s,onStepKeyDown:l,...u}=e,f=us(vo,r);return c.jsx(ce.span,{...u,ref:t,onKeyDown:ne(e.onKeyDown,d=>{d.key==="Home"?(i(d),d.preventDefault()):d.key==="End"?(s(d),d.preventDefault()):lv.concat(cv).includes(d.key)&&(l(d),d.preventDefault())}),onPointerDown:ne(e.onPointerDown,d=>{const h=d.target;h.setPointerCapture(d.pointerId),d.preventDefault(),f.thumbs.has(h)?h.focus():n(d)}),onPointerMove:ne(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:ne(e.onPointerUp,d=>{const h=d.target;h.hasPointerCapture(d.pointerId)&&(h.releasePointerCapture(d.pointerId),a(d))})})}),vv="SliderTrack",mv=S.forwardRef((e,t)=>{const{__scopeSlider:r,...n}=e,o=us(vv,r);return c.jsx(ce.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...n,ref:t})});mv.displayName=vv;var cd="SliderRange",yv=S.forwardRef((e,t)=>{const{__scopeSlider:r,...n}=e,o=us(cd,r),a=pv(cd,r),i=S.useRef(null),s=ve(t,i),l=o.values.length,u=o.values.map(h=>wv(h,o.min,o.max)),f=l>1?Math.min(...u):0,d=100-Math.max(...u);return c.jsx(ce.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...n,ref:s,style:{...e.style,[a.startEdge]:f+"%",[a.endEdge]:d+"%"}})});yv.displayName=cd;var ud="SliderThumb",bv=S.forwardRef((e,t)=>{const r=XO(e.__scopeSlider),[n,o]=S.useState(null),a=ve(t,s=>o(s)),i=S.useMemo(()=>n?r().findIndex(s=>s.ref.current===n):-1,[r,n]);return c.jsx(RO,{...e,ref:a,index:i})}),RO=S.forwardRef((e,t)=>{const{__scopeSlider:r,index:n,name:o,...a}=e,i=us(ud,r),s=pv(ud,r),[l,u]=S.useState(null),f=ve(t,b=>u(b)),d=l?i.form||!!l.closest("form"):!0,h=Ji(l),g=i.values[n],p=g===void 0?0:wv(g,i.min,i.max),v=rT(n,i.values.length),m=h==null?void 0:h[s.size],y=m?oT(m,p,s.direction):0;return S.useEffect(()=>{if(l)return i.thumbs.add(l),()=>{i.thumbs.delete(l)}},[l,i.thumbs]),c.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${p}% + ${y}px)`},children:[c.jsx(ld.ItemSlot,{scope:e.__scopeSlider,children:c.jsx(ce.span,{role:"slider","aria-label":e["aria-label"]||v,"aria-valuemin":i.min,"aria-valuenow":g,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...a,ref:f,style:g===void 0?{display:"none"}:e.style,onFocus:ne(e.onFocus,()=>{i.valueIndexToChangeRef.current=n})})}),d&&c.jsx(eT,{name:o??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:g},n)]})});bv.displayName=ud;var eT=e=>{const{value:t,...r}=e,n=S.useRef(null),o=xa(t);return S.useEffect(()=>{const a=n.current,i=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(i,"value").set;if(o!==t&&l){const u=new Event("input",{bubbles:!0});l.call(a,t),a.dispatchEvent(u)}},[o,t]),c.jsx("input",{style:{display:"none"},...r,ref:n,defaultValue:t})};function tT(e=[],t,r){const n=[...e];return n[r]=t,n.sort((o,a)=>o-a)}function wv(e,t,r){const a=100/(r-t)*(e-t);return cs(a,[0,100])}function rT(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function nT(e,t){if(e.length===1)return 0;const r=e.map(o=>Math.abs(o-t)),n=Math.min(...r);return r.indexOf(n)}function oT(e,t,r){const n=e/2,a=fd([0,50],[0,n]);return(n-a(t)*r)*r}function aT(e){return e.slice(0,-1).map((t,r)=>e[r+1]-t)}function iT(e,t){if(t>0){const r=aT(e);return Math.min(...r)>=t}return!0}function fd(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function sT(e){return(String(e).split(".")[1]||"").length}function lT(e,t){const r=Math.pow(10,t);return Math.round(e*r)/r}var cT=dv,uT=mv,fT=yv,dT=bv;function hT({startValue:e=0,targetValue:t=100,achievedValue:r=0,isReadOnly:n=!1,status:o=et.ON_TRACK,onChangeEnd:a=()=>{},onChange:i=()=>{},onThumbClick:s=()=>{}}){const[l,u]=M.useState(r),[f,d]=M.useState(r),h=M.useRef(!0),g=e>t,p=g?t:e,v=g?e:t,m=g?-1:1;M.useEffect(()=>{r!==l&&u(r)},[r]),M.useEffect(()=>{h.current?h.current=!1:a(f)},[f]),M.useEffect(()=>{i(l)},[l]);const y=C=>{u(g?t+e-C:C)},b=C=>{d(g?t+e-C:C)},w=go[o]?go[o]:go[et.ON_TRACK];return c.jsxs(cT,{className:"rabbit-ds relative box-border flex w-full min-w-[200px] touch-none select-none items-center",value:[g?t+e-l:l],min:p,max:v,step:m,inverted:p>v,disabled:n,onValueCommit:C=>b(C[0]),onValueChange:C=>y(C[0]),onLostPointerCapture:()=>{f!==l&&d(l)},children:[c.jsx(uT,{className:"relative h-7 grow rounded-radius-100 bg-[#EAEAEA]",children:c.jsx(fT,{className:"absolute h-full rounded-l bg-white",style:{backgroundColor:w.indicatorColor}})}),c.jsx(dT,{className:"block size-7 rounded-radius-400 bg-primary p-0.5 focus:outline-none","aria-label":"Volume",style:{pointerEvents:n?"none":"auto"},onClick:s,children:c.jsx(be,{IconSVG:Ug,className:"text-white"})})]})}var pT=S.useId||(()=>{}),gT=0;function ut(e){const[t,r]=S.useState(pT());return Ye(()=>{r(n=>n??String(gT++))},[e]),e||(t?`radix-${t}`:"")}var dd="Collapsible",[vT,xv]=Ke(dd),[mT,hd]=vT(dd),Cv=S.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:a,onOpenChange:i,...s}=e,[l=!1,u]=Qe({prop:n,defaultProp:o,onChange:i});return c.jsx(mT,{scope:r,disabled:a,contentId:ut(),open:l,onOpenToggle:S.useCallback(()=>u(f=>!f),[u]),children:c.jsx(ce.div,{"data-state":gd(l),"data-disabled":a?"":void 0,...s,ref:t})})});Cv.displayName=dd;var Av="CollapsibleTrigger",Mv=S.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=hd(Av,r);return c.jsx(ce.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":gd(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:ne(e.onClick,o.onOpenToggle)})});Mv.displayName=Av;var pd="CollapsibleContent",Sv=S.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=hd(pd,e.__scopeCollapsible);return c.jsx(Re,{present:r||o.open,children:({present:a})=>c.jsx(yT,{...n,ref:t,present:a})})});Sv.displayName=pd;var yT=S.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...a}=e,i=hd(pd,r),[s,l]=S.useState(n),u=S.useRef(null),f=ve(t,u),d=S.useRef(0),h=d.current,g=S.useRef(0),p=g.current,v=i.open||s,m=S.useRef(v),y=S.useRef(void 0);return S.useEffect(()=>{const b=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(b)},[]),Ye(()=>{const b=u.current;if(b){y.current=y.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const w=b.getBoundingClientRect();d.current=w.height,g.current=w.width,m.current||(b.style.transitionDuration=y.current.transitionDuration,b.style.animationName=y.current.animationName),l(n)}},[i.open,n]),c.jsx(ce.div,{"data-state":gd(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!v,...a,ref:f,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":p?`${p}px`:void 0,...e.style},children:v&&o})});function gd(e){return e?"open":"closed"}var Pv=Cv,_v=Mv,Ov=Sv;const bT=Be("rabbit-ds box-border inline-flex h-auto w-full flex-col items-start justify-start rounded-radius-200 bg-white",{variants:{size:{default:"p-4",small:"px-3 py-2"}},defaultVariants:{size:"default"}}),Pa=M.forwardRef(({className:e,size:t,noShadow:r,...n},o)=>c.jsx("div",{ref:o,className:R(bT({size:t}),r?"":"shadow-card-homepage",e),...n}));Pa.defaultProps={noShadow:!1,size:"default"},Pa.displayName="Card";const Tv=M.forwardRef(({className:e,...t},r)=>c.jsx("div",{ref:r,className:R("flex h-auto flex-col items-start justify-start self-stretch px-1 pb-3",e),...t}));Tv.displayName="CardHeader";const vd=M.forwardRef(({className:e,children:t,...r},n)=>c.jsx("h3",{ref:n,className:R("text-sm font-semibold leading-500 text-body-primary",e),...r,children:t}));vd.displayName="CardTitle";const Ev=M.forwardRef(({className:e,...t},r)=>c.jsx("p",{ref:r,className:R("text-sm text-body-secondary",e),...t}));Ev.displayName="CardDescription";const md=M.forwardRef(({className:e,...t},r)=>c.jsx("div",{ref:r,className:R("w-full text-sm",e),...t}));md.displayName="CardContent";const Nv=M.forwardRef(({title:e,actions:t,children:r,disabled:n=!1,...o},a)=>c.jsx(Pv,{ref:a,disabled:n,...o,className:"group",asChild:!0,children:c.jsxs(Pa,{children:[c.jsxs("div",{className:"flex h-8 w-full items-center justify-between",children:[c.jsxs("div",{className:"flex items-center",children:[!n&&c.jsx(_v,{className:"mr-2 bg-transparent text-primary transition-transform data-[state=open]:rotate-90",children:c.jsx(be,{IconSVG:zg})}),c.jsx(vd,{children:e})]}),t?c.jsx("div",{className:"animate-in fade-in group-data-[state=closed]:invisible",children:t}):null]}),c.jsx(Ov,{asChild:!0,children:c.jsx(md,{className:"animate-in fade-in",children:r})})]})}));Nv.displayName="CollapsibleCard";var yd="Switch",[wT,CJ]=Ke(yd),[xT,CT]=wT(yd),kv=S.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:o,defaultChecked:a,required:i,disabled:s,value:l="on",onCheckedChange:u,form:f,...d}=e,[h,g]=S.useState(null),p=ve(t,w=>g(w)),v=S.useRef(!1),m=h?f||!!h.closest("form"):!0,[y=!1,b]=Qe({prop:o,defaultProp:a,onChange:u});return c.jsxs(xT,{scope:r,checked:y,disabled:s,children:[c.jsx(ce.button,{type:"button",role:"switch","aria-checked":y,"aria-required":i,"data-state":Iv(y),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:p,onClick:ne(e.onClick,w=>{b(C=>!C),m&&(v.current=w.isPropagationStopped(),v.current||w.stopPropagation())})}),m&&c.jsx(AT,{control:h,bubbles:!v.current,name:n,value:l,checked:y,required:i,disabled:s,form:f,style:{transform:"translateX(-100%)"}})]})});kv.displayName=yd;var Dv="SwitchThumb",Fv=S.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=CT(Dv,r);return c.jsx(ce.span,{"data-state":Iv(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});Fv.displayName=Dv;var AT=e=>{const{control:t,checked:r,bubbles:n=!0,...o}=e,a=S.useRef(null),i=xa(r),s=Ji(t);return S.useEffect(()=>{const l=a.current,u=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(u,"checked").set;if(i!==r&&d){const h=new Event("click",{bubbles:n});d.call(l,r),l.dispatchEvent(h)}},[i,r,n]),c.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Iv(e){return e?"checked":"unchecked"}var Lv=kv,MT=Fv;const Bv=S.forwardRef(({className:e,label:t,id:r,...n},o)=>{const a=r||`switch-${Xt(0,4294967295).toString(16)}`;return c.jsxs("div",{className:"rabbit-ds flex items-center",children:[c.jsx(Lv,{className:R("inline-flex h-500 w-900 shrink-0 cursor-pointer items-center rounded-full","border-2 border-transparent transition-colors","focus-visible:bg-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","data-[state=checked]:bg-button-primary-active data-[state=unchecked]:bg-surface-neutral-moderate","data-[state=checked]:disabled:bg-button-primary-disable data-[state=unchecked]:disabled:bg-surface-neutral-subtle","disabled:cursor-not-allowed",e),...n,ref:o,id:a,children:c.jsx(MT,{className:R("pointer-events-none block size-4 rounded-full bg-white ring-0 transition-transform","data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}),t&&c.jsx(os,{className:"ml-2",htmlFor:a,children:t})]})});Bv.displayName=Lv.displayName;const zv=M.forwardRef(({className:e,children:t,...r},n)=>c.jsx("div",{className:"rabbit-ds",children:c.jsx("div",{className:R("rounded-radius-200 bg-ai-gradient-border p-25"),children:c.jsx("div",{className:"rounded-radius-200 bg-white",children:c.jsx("div",{ref:n,className:R("bg-ai-gradient px-200 py-100 text-300sm leading-400 text-body-primary",e),...r,children:t})})})}));zv.displayName="AICard";var bd="rovingFocusGroup.onEntryFocus",ST={bubbles:!1,cancelable:!0},fs="RovingFocusGroup",[wd,qv,PT]=Tn(fs),[_T,mo]=Ke(fs,[PT]),[OT,TT]=_T(fs),Wv=S.forwardRef((e,t)=>c.jsx(wd.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(wd.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(ET,{...e,ref:t})})}));Wv.displayName=fs;var ET=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...d}=e,h=S.useRef(null),g=ve(t,h),p=tn(a),[v=null,m]=Qe({prop:i,defaultProp:s,onChange:l}),[y,b]=S.useState(!1),w=Ve(u),C=qv(r),x=S.useRef(!1),[O,T]=S.useState(0);return S.useEffect(()=>{const E=h.current;if(E)return E.addEventListener(bd,w),()=>E.removeEventListener(bd,w)},[w]),c.jsx(OT,{scope:r,orientation:n,dir:p,loop:o,currentTabStopId:v,onItemFocus:S.useCallback(E=>m(E),[m]),onItemShiftTab:S.useCallback(()=>b(!0),[]),onFocusableItemAdd:S.useCallback(()=>T(E=>E+1),[]),onFocusableItemRemove:S.useCallback(()=>T(E=>E-1),[]),children:c.jsx(ce.div,{tabIndex:y||O===0?-1:0,"data-orientation":n,...d,ref:g,style:{outline:"none",...e.style},onMouseDown:ne(e.onMouseDown,()=>{x.current=!0}),onFocus:ne(e.onFocus,E=>{const P=!x.current;if(E.target===E.currentTarget&&P&&!y){const A=new CustomEvent(bd,ST);if(E.currentTarget.dispatchEvent(A),!A.defaultPrevented){const N=C().filter(k=>k.focusable),D=N.find(k=>k.active),F=N.find(k=>k.id===v),_=[D,F,...N].filter(Boolean).map(k=>k.ref.current);Uv(_,f)}}x.current=!1}),onBlur:ne(e.onBlur,()=>b(!1))})})}),jv="RovingFocusGroupItem",Hv=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,...i}=e,s=ut(),l=a||s,u=TT(jv,r),f=u.currentTabStopId===l,d=qv(r),{onFocusableItemAdd:h,onFocusableItemRemove:g}=u;return S.useEffect(()=>{if(n)return h(),()=>g()},[n,h,g]),c.jsx(wd.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:c.jsx(ce.span,{tabIndex:f?0:-1,"data-orientation":u.orientation,...i,ref:t,onMouseDown:ne(e.onMouseDown,p=>{n?u.onItemFocus(l):p.preventDefault()}),onFocus:ne(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:ne(e.onKeyDown,p=>{if(p.key==="Tab"&&p.shiftKey){u.onItemShiftTab();return}if(p.target!==p.currentTarget)return;const v=DT(p,u.orientation,u.dir);if(v!==void 0){if(p.metaKey||p.ctrlKey||p.altKey||p.shiftKey)return;p.preventDefault();let y=d().filter(b=>b.focusable).map(b=>b.ref.current);if(v==="last")y.reverse();else if(v==="prev"||v==="next"){v==="prev"&&y.reverse();const b=y.indexOf(p.currentTarget);y=u.loop?FT(y,b+1):y.slice(b+1)}setTimeout(()=>Uv(y))}})})})});Hv.displayName=jv;var NT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function kT(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function DT(e,t,r){const n=kT(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return NT[n]}function Uv(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function FT(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var xd=Wv,Cd=Hv,yo="ToggleGroup",[Vv,AJ]=Ke(yo,[mo]),Yv=mo(),Ad=M.forwardRef((e,t)=>{const{type:r,...n}=e;if(r==="single"){const o=n;return c.jsx(IT,{...o,ref:t})}if(r==="multiple"){const o=n;return c.jsx(LT,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${yo}\``)});Ad.displayName=yo;var[Gv,$v]=Vv(yo),IT=M.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[i,s]=Qe({prop:r,defaultProp:n,onChange:o});return c.jsx(Gv,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:M.useCallback(()=>s(""),[s]),children:c.jsx(Xv,{...a,ref:t})})}),LT=M.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[i=[],s]=Qe({prop:r,defaultProp:n,onChange:o}),l=M.useCallback(f=>s((d=[])=>[...d,f]),[s]),u=M.useCallback(f=>s((d=[])=>d.filter(h=>h!==f)),[s]);return c.jsx(Gv,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:u,children:c.jsx(Xv,{...a,ref:t})})});Ad.displayName=yo;var[BT,zT]=Vv(yo),Xv=M.forwardRef((e,t)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,u=Yv(r),f=tn(i),d={role:"group",dir:f,...l};return c.jsx(BT,{scope:r,rovingFocus:o,disabled:n,children:o?c.jsx(xd,{asChild:!0,...u,orientation:a,dir:f,loop:s,children:c.jsx(ce.div,{...d,ref:t})}):c.jsx(ce.div,{...d,ref:t})})}),ds="ToggleGroupItem",Kv=M.forwardRef((e,t)=>{const r=$v(ds,e.__scopeToggleGroup),n=zT(ds,e.__scopeToggleGroup),o=Yv(e.__scopeToggleGroup),a=r.value.includes(e.value),i=n.disabled||e.disabled,s={...e,pressed:a,disabled:i},l=M.useRef(null);return n.rovingFocus?c.jsx(Cd,{asChild:!0,...o,focusable:!i,active:a,ref:l,children:c.jsx(Qv,{...s,ref:t})}):c.jsx(Qv,{...s,ref:t})});Kv.displayName=ds;var Qv=M.forwardRef((e,t)=>{const{__scopeToggleGroup:r,value:n,...o}=e,a=$v(ds,r),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return c.jsx(rd,{...s,...o,ref:t,onPressedChange:l=>{l?a.onItemActivate(n):a.onItemDeactivate(n)}})}),Zv=Ad,Jv=Kv;const qT="rabbit-ds-text",WT="text-body-primary",Md={normal:"font-normal",semibold:"font-semibold",bold:"font-bold"},jT=(e,t)=>t?Md.bold:e?Md.semibold:Md.normal,Sd=({bold:e=!1,xbold:t=!1,color:r=WT})=>R(qT,jT(e,t),r),HT=({children:e,className:t,...r})=>c.jsx("h3",{className:R("text-350sm leading-500",Sd(r),t),children:e}),UT=({children:e,className:t,...r})=>c.jsx("p",{className:R("text-300sm leading-400",Sd(r),t),children:e}),VT=({children:e,className:t,...r})=>c.jsx("p",{className:R("text-350sm leading-500",Sd(r),t),children:e}),Rv=M.forwardRef(({options:e,className:t,required:r=!0,onValueChange:n,...o},a)=>{const i=s=>{r&&s===""||n==null||n(s)};return c.jsx(Zv,{ref:a,type:"single",className:R("rabbit-ds inline-flex items-center justify-center gap-200 rounded-radius-100 bg-[#EBEFF3] p-100",t),onValueChange:i,...o,children:e.map(s=>{const l=o.value===s.value;return c.jsx(Jv,{value:s.value,disabled:s.disabled,className:R("rabbit-ds inline-flex cursor-pointer items-center justify-center text-nowrap transition-all duration-200 ease-in-out","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","data-[state=off]:bg-transparent","data-[state=on]:bg-white","min-h-[24px] rounded-radius-100 px-100 py-50"),"aria-label":s.label,children:c.jsx(VT,{bold:!0,color:l?"text-primary-focus":"text-body-secondary",children:s.label})},s.value)})})});Rv.displayName="ToggleGroup";var kr="Accordion",YT=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Pd,GT,$T]=Tn(kr),[hs,MJ]=Ke(kr,[$T,xv]),_d=xv(),em=M.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,a=n;return c.jsx(Pd.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?c.jsx(ZT,{...a,ref:t}):c.jsx(QT,{...o,ref:t})})});em.displayName=kr;var[tm,XT]=hs(kr),[rm,KT]=hs(kr,{collapsible:!1}),QT=M.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[s,l]=Qe({prop:r,defaultProp:n,onChange:o});return c.jsx(tm,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:M.useCallback(()=>a&&l(""),[a,l]),children:c.jsx(rm,{scope:e.__scopeAccordion,collapsible:a,children:c.jsx(nm,{...i,ref:t})})})}),ZT=M.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[i=[],s]=Qe({prop:r,defaultProp:n,onChange:o}),l=M.useCallback(f=>s((d=[])=>[...d,f]),[s]),u=M.useCallback(f=>s((d=[])=>d.filter(h=>h!==f)),[s]);return c.jsx(tm,{scope:e.__scopeAccordion,value:i,onItemOpen:l,onItemClose:u,children:c.jsx(rm,{scope:e.__scopeAccordion,collapsible:!0,children:c.jsx(nm,{...a,ref:t})})})}),[JT,ps]=hs(kr),nm=M.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:a="vertical",...i}=e,s=M.useRef(null),l=ve(s,t),u=GT(r),d=tn(o)==="ltr",h=ne(e.onKeyDown,g=>{var E;if(!YT.includes(g.key))return;const p=g.target,v=u().filter(P=>{var A;return!((A=P.ref.current)!=null&&A.disabled)}),m=v.findIndex(P=>P.ref.current===p),y=v.length;if(m===-1)return;g.preventDefault();let b=m;const w=0,C=y-1,x=()=>{b=m+1,b>C&&(b=w)},O=()=>{b=m-1,b<w&&(b=C)};switch(g.key){case"Home":b=w;break;case"End":b=C;break;case"ArrowRight":a==="horizontal"&&(d?x():O());break;case"ArrowDown":a==="vertical"&&x();break;case"ArrowLeft":a==="horizontal"&&(d?O():x());break;case"ArrowUp":a==="vertical"&&O();break}const T=b%y;(E=v[T].ref.current)==null||E.focus()});return c.jsx(JT,{scope:r,disabled:n,direction:o,orientation:a,children:c.jsx(Pd.Slot,{scope:r,children:c.jsx(ce.div,{...i,"data-orientation":a,ref:l,onKeyDown:n?void 0:h})})})}),gs="AccordionItem",[RT,Od]=hs(gs),om=M.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,a=ps(gs,r),i=XT(gs,r),s=_d(r),l=ut(),u=n&&i.value.includes(n)||!1,f=a.disabled||e.disabled;return c.jsx(RT,{scope:r,open:u,disabled:f,triggerId:l,children:c.jsx(Pv,{"data-orientation":a.orientation,"data-state":um(u),...s,...o,ref:t,disabled:f,open:u,onOpenChange:d=>{d?i.onItemOpen(n):i.onItemClose(n)}})})});om.displayName=gs;var am="AccordionHeader",im=M.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=ps(kr,r),a=Od(am,r);return c.jsx(ce.h3,{"data-orientation":o.orientation,"data-state":um(a.open),"data-disabled":a.disabled?"":void 0,...n,ref:t})});im.displayName=am;var Td="AccordionTrigger",sm=M.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=ps(kr,r),a=Od(Td,r),i=KT(Td,r),s=_d(r);return c.jsx(Pd.ItemSlot,{scope:r,children:c.jsx(_v,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...s,...n,ref:t})})});sm.displayName=Td;var lm="AccordionContent",cm=M.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=ps(kr,r),a=Od(lm,r),i=_d(r);return c.jsx(Ov,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...i,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});cm.displayName=lm;function um(e){return e?"open":"closed"}var fm=em,dm=om,eE=im,hm=sm,pm=cm;const gm=M.forwardRef(({children:e,...t},r)=>c.jsx(fm,{ref:r,...t,className:R("rabbit-ds",t.className),children:e})),vm=M.forwardRef(({children:e,...t},r)=>c.jsx(dm,{ref:r,...t,className:R("rabbit-ds",t.className),children:e})),mm=M.forwardRef(({children:e,icon:t=Fg,iconClassName:r,...n},o)=>c.jsx(eE,{className:"flex",children:c.jsxs(hm,{ref:o,...n,className:R("rabbit-ds accordion-trigger group flex items-center bg-transparent",n.className),children:[t?c.jsx(be,{"aria-hidden":!0,className:R("accordion-chevron mx-1 group-data-[state=open]:rotate-90",r===""?void 0:r??"text-button-tertiary-active"),IconSVG:t}):null,e]})})),ym=M.forwardRef(({children:e,...t},r)=>c.jsx(pm,{ref:r,...t,"data-rabbit-accordion-content":!0,className:R("rabbit-ds",t.className),children:c.jsx("div",{className:"rabbit-ds pl-8",children:e})}));gm.displayName=fm.displayName,vm.displayName=dm.displayName,mm.displayName=hm.displayName,ym.displayName=pm.displayName;const tE=Be("rabbit-ds relative inline-flex w-full items-center gap-1 rounded-radius-200 border px-4 py-3 text-sm",{variants:{variant:{default:"bg-tag-lightGray-bg text-tag-lightGray-text",warning:"bg-tag-yellow-bg text-tag-yellow-text",success:"bg-tag-lightGreen-bg text-tag-lightGreen-text",error:"bg-tag-red-bg text-tag-red-text"}},defaultVariants:{variant:"default"}}),bm=M.forwardRef(({className:e,variant:t="default",...r},n)=>c.jsx("div",{ref:n,role:"alert",className:R(tE({variant:t}),e),...r}));bm.displayName="Alert";const wm=M.forwardRef(({className:e,IconSVG:t,...r},n)=>c.jsx("div",{ref:n,className:R("text-sm",e),...r,children:c.jsx(be,{IconSVG:t})}));wm.displayName="AlertIcon";const xm=M.forwardRef(({className:e,...t},r)=>c.jsx("div",{ref:r,className:R("text-sm [&_p]:leading-relaxed",e),...t}));xm.displayName="AlertDescription";function rE(e,t=globalThis==null?void 0:globalThis.document){const r=Ve(e);S.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var nE="DismissableLayer",Ed="dismissableLayer.update",oE="dismissableLayer.pointerDownOutside",aE="dismissableLayer.focusOutside",Cm,Am=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),En=S.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...l}=e,u=S.useContext(Am),[f,d]=S.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=S.useState({}),p=ve(t,T=>d(T)),v=Array.from(u.layers),[m]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(m),b=f?v.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,C=b>=y,x=lE(T=>{const E=T.target,P=[...u.branches].some(A=>A.contains(E));!C||P||(o==null||o(T),i==null||i(T),T.defaultPrevented||s==null||s())},h),O=cE(T=>{const E=T.target;[...u.branches].some(A=>A.contains(E))||(a==null||a(T),i==null||i(T),T.defaultPrevented||s==null||s())},h);return rE(T=>{b===u.layers.size-1&&(n==null||n(T),!T.defaultPrevented&&s&&(T.preventDefault(),s()))},h),S.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Cm=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Mm(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Cm)}},[f,h,r,u]),S.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Mm())},[f,u]),S.useEffect(()=>{const T=()=>g({});return document.addEventListener(Ed,T),()=>document.removeEventListener(Ed,T)},[]),c.jsx(ce.div,{...l,ref:p,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:ne(e.onFocusCapture,O.onFocusCapture),onBlurCapture:ne(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:ne(e.onPointerDownCapture,x.onPointerDownCapture)})});En.displayName=nE;var iE="DismissableLayerBranch",sE=S.forwardRef((e,t)=>{const r=S.useContext(Am),n=S.useRef(null),o=ve(t,n);return S.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),c.jsx(ce.div,{...e,ref:o})});sE.displayName=iE;function lE(e,t=globalThis==null?void 0:globalThis.document){const r=Ve(e),n=S.useRef(!1),o=S.useRef(()=>{});return S.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let l=function(){Sm(oE,r,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function cE(e,t=globalThis==null?void 0:globalThis.document){const r=Ve(e),n=S.useRef(!1);return S.useEffect(()=>{const o=a=>{a.target&&!n.current&&Sm(aE,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Mm(){const e=new CustomEvent(Ed);document.dispatchEvent(e)}function Sm(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?es(o,a):o.dispatchEvent(a)}var Nd="focusScope.autoFocusOnMount",kd="focusScope.autoFocusOnUnmount",Pm={bubbles:!1,cancelable:!0},uE="FocusScope",vs=S.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=S.useState(null),u=Ve(o),f=Ve(a),d=S.useRef(null),h=ve(t,v=>l(v)),g=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(n){let v=function(w){if(g.paused||!s)return;const C=w.target;s.contains(C)?d.current=C:rn(d.current,{select:!0})},m=function(w){if(g.paused||!s)return;const C=w.relatedTarget;C!==null&&(s.contains(C)||rn(d.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const x of w)x.removedNodes.length>0&&rn(s)};document.addEventListener("focusin",v),document.addEventListener("focusout",m);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",m),b.disconnect()}}},[n,s,g.paused]),S.useEffect(()=>{if(s){Tm.add(g);const v=document.activeElement;if(!s.contains(v)){const y=new CustomEvent(Nd,Pm);s.addEventListener(Nd,u),s.dispatchEvent(y),y.defaultPrevented||(fE(vE(_m(s)),{select:!0}),document.activeElement===v&&rn(s))}return()=>{s.removeEventListener(Nd,u),setTimeout(()=>{const y=new CustomEvent(kd,Pm);s.addEventListener(kd,f),s.dispatchEvent(y),y.defaultPrevented||rn(v??document.body,{select:!0}),s.removeEventListener(kd,f),Tm.remove(g)},0)}}},[s,u,f,g]);const p=S.useCallback(v=>{if(!r&&!n||g.paused)return;const m=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,y=document.activeElement;if(m&&y){const b=v.currentTarget,[w,C]=dE(b);w&&C?!v.shiftKey&&y===C?(v.preventDefault(),r&&rn(w,{select:!0})):v.shiftKey&&y===w&&(v.preventDefault(),r&&rn(C,{select:!0})):y===b&&v.preventDefault()}},[r,n,g.paused]);return c.jsx(ce.div,{tabIndex:-1,...i,ref:h,onKeyDown:p})});vs.displayName=uE;function fE(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(rn(n,{select:t}),document.activeElement!==r)return}function dE(e){const t=_m(e),r=Om(t,e),n=Om(t.reverse(),e);return[r,n]}function _m(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Om(e,t){for(const r of e)if(!hE(r,{upTo:t}))return r}function hE(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function pE(e){return e instanceof HTMLInputElement&&"select"in e}function rn(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&pE(e)&&t&&e.select()}}var Tm=gE();function gE(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Em(e,t),e.unshift(t)},remove(t){var r;e=Em(e,t),(r=e[0])==null||r.resume()}}}function Em(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function vE(e){return e.filter(t=>t.tagName!=="A")}var mE="Portal",bo=S.forwardRef((e,t)=>{var s;const{container:r,...n}=e,[o,a]=S.useState(!1);Ye(()=>a(!0),[]);const i=r||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?fo.createPortal(c.jsx(ce.div,{...n,ref:t}),i):null});bo.displayName=mE;var Dd=0;function Fd(){S.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Nm()),document.body.insertAdjacentElement("beforeend",e[1]??Nm()),Dd++,()=>{Dd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Dd--}},[])}function Nm(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var hr=function(){return hr=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},hr.apply(this,arguments)};function km(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function yE(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var ms="right-scroll-bar-position",ys="width-before-scroll-bar",bE="with-scroll-bars-hidden",wE="--removed-body-scroll-bar-size";function Id(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function xE(e,t){var r=M.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var CE=typeof window<"u"?S.useLayoutEffect:S.useEffect,Dm=new WeakMap;function AE(e,t){var r=xE(null,function(n){return e.forEach(function(o){return Id(o,n)})});return CE(function(){var n=Dm.get(r);if(n){var o=new Set(n),a=new Set(e),i=r.current;o.forEach(function(s){a.has(s)||Id(s,null)}),a.forEach(function(s){o.has(s)||Id(s,i)})}Dm.set(r,e)},[e]),r}function ME(e){return e}function SE(e,t){t===void 0&&(t=ME);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var i=t(a,n);return r.push(i),function(){r=r.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(n=!0;r.length;){var i=r;r=[],i.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var i=[];if(r.length){var s=r;r=[],s.forEach(a),i=r}var l=function(){var f=i;i=[],f.forEach(a)},u=function(){return Promise.resolve().then(l)};u(),r={push:function(f){i.push(f),u()},filter:function(f){return i=i.filter(f),r}}}};return o}function PE(e){e===void 0&&(e={});var t=SE(null);return t.options=hr({async:!0,ssr:!1},e),t}var Fm=function(e){var t=e.sideCar,r=km(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return S.createElement(n,hr({},r))};Fm.isSideCarExport=!0;function _E(e,t){return e.useMedium(t),Fm}var Im=PE(),Ld=function(){},bs=S.forwardRef(function(e,t){var r=S.useRef(null),n=S.useState({onScrollCapture:Ld,onWheelCapture:Ld,onTouchMoveCapture:Ld}),o=n[0],a=n[1],i=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,h=e.sideCar,g=e.noIsolation,p=e.inert,v=e.allowPinchZoom,m=e.as,y=m===void 0?"div":m,b=e.gapMode,w=km(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=h,x=AE([r,t]),O=hr(hr({},w),o);return S.createElement(S.Fragment,null,f&&S.createElement(C,{sideCar:Im,removeScrollBar:u,shards:d,noIsolation:g,inert:p,setCallbacks:a,allowPinchZoom:!!v,lockRef:r,gapMode:b}),i?S.cloneElement(S.Children.only(s),hr(hr({},O),{ref:x})):S.createElement(y,hr({},O,{className:l,ref:x}),s))});bs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},bs.classNames={fullWidth:ys,zeroRight:ms};var OE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function TE(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=OE();return t&&e.setAttribute("nonce",t),e}function EE(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function NE(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var kE=function(){var e=0,t=null;return{add:function(r){e==0&&(t=TE())&&(EE(t,r),NE(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},DE=function(){var e=kE();return function(t,r){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Lm=function(){var e=DE(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},FE={left:0,top:0,right:0,gap:0},Bd=function(e){return parseInt(e||"",10)||0},IE=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Bd(r),Bd(n),Bd(o)]},LE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return FE;var t=IE(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},BE=Lm(),wo="data-scroll-locked",zE=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
|
6
|
+
Defaulting to \`null\`.`}var jO=Jg,HO=ev,is=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ss(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var po={},Sa={},ov;function UO(){return ov||(ov=1,Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.defaultOptions=void 0,Sa.defaultOptions={lowercase:!1,precision:1,space:!1,units:["","K","M","B","T","P","E"]}),Sa}var Kt={},av;function VO(){if(av)return Kt;av=1,Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.getLocales=Kt.getFractionDigits=Kt.roundTo=Kt.parseValue=void 0;function e(o){const a=parseFloat(o==null?void 0:o.toString());if(isNaN(a))throw new Error("Input value is not a number");if(a>Number.MAX_SAFE_INTEGER||a<Number.MIN_SAFE_INTEGER)throw new RangeError("Input value is outside of safe integer range");return a}Kt.parseValue=e;function t(o,a){if(!Number.isFinite(o))throw new Error("Input value is not a finite number");if(!Number.isInteger(a)||a<0)throw new Error("Precision is not a positive integer");return Number.isInteger(o)?o:parseFloat(o.toFixed(a))}Kt.roundTo=t;function r(o){var a;if(Number.isInteger(o))return 0;const i=o.toString().split(".")[1];return(a=i==null?void 0:i.length)!==null&&a!==void 0?a:0}Kt.getFractionDigits=r;function n(){var o;return typeof navigator>"u"?[]:Array.from((o=navigator.languages)!==null&&o!==void 0?o:[])}return Kt.getLocales=n,Kt}var iv;function YO(){if(iv)return po;iv=1,Object.defineProperty(po,"__esModule",{value:!0}),po.millify=void 0;const e=UO(),t=VO(),r=1e3;function*n(a){let i=r;for(;;){const s=a/i;if(s<1)return;yield s,i*=r}}function o(a,i){var s,l;const u=i?{...e.defaultOptions,...i}:e.defaultOptions;if(!Array.isArray(u.units)||!u.units.length)throw new Error("Option `units` must be a non-empty array");let f;try{f=t.parseValue(a)}catch(w){return w instanceof Error&&console.warn(`WARN: ${w.message} (millify)`),String(a)}const d=f<0?"-":"";f=Math.abs(f);let h=0;for(const w of n(f))f=w,h+=1;if(h>=u.units.length)return a.toString();let p=t.roundTo(f,u.precision);for(const w of n(p))p=w,h+=1;const v=(s=u.units[h])!==null&&s!==void 0?s:"",m=u.lowercase?v.toLowerCase():v,y=u.space?" ":"",b=p.toLocaleString((l=u.locales)!==null&&l!==void 0?l:t.getLocales(),{minimumFractionDigits:t.getFractionDigits(p)});return`${d}${b}${y}${m}`}return po.millify=o,po.default=o,po}var GO=YO();const ls=Mt(GO);var et=(e=>(e.CLOSED_ACHIEVED="CLOSED_ACHIEVED",e.CLOSED_DROPPED="CLOSED_DROPPED",e.CLOSED_NOT_ACHIEVED="CLOSED_NOT_ACHIEVED",e.ON_TRACK="ON_TRACK",e.OFF_TRACK="OFF_TRACK",e.AT_RISK="AT_RISK",e))(et||{});const go={[et.ON_TRACK]:{backgroundColor:"#EAEAEA",indicatorColor:"#EFFFEA",textColor:"#44812F"},[et.OFF_TRACK]:{backgroundColor:"#EAEAEA",indicatorColor:"#FFF6D3",textColor:"#8C6A00"},[et.AT_RISK]:{backgroundColor:"#EAEAEA",indicatorColor:"#FFF1E4",textColor:"#C62C02"},[et.CLOSED_ACHIEVED]:{backgroundColor:"#EAEAEA",indicatorColor:"#DBF2D3",textColor:"#1A5724"},[et.CLOSED_DROPPED]:{backgroundColor:"#EAEAEA",indicatorColor:"#CCCCCC",textColor:"#666666"},[et.CLOSED_NOT_ACHIEVED]:{backgroundColor:"#EAEAEA",indicatorColor:"#FFE1D9",textColor:"#A12402"}},sd={[et.ON_TRACK]:"On-track",[et.OFF_TRACK]:"Off-track",[et.AT_RISK]:"At-risk",[et.CLOSED_ACHIEVED]:"Closed & achieved",[et.CLOSED_DROPPED]:"Closed & dropped",[et.CLOSED_NOT_ACHIEVED]:"Closed & not achieved"};function sv({progressInPercentage:e=0,status:t=et.ON_TRACK}){const{backgroundColor:r,indicatorColor:n,textColor:o}=go[t]?go[t]:go[et.ON_TRACK];return c.jsxs(jO,{className:"rabbit-ds relative box-border inline-flex h-5 w-full min-w-[210px] items-start justify-start overflow-hidden rounded-radius-150",style:{transform:"translateZ(0)",backgroundColor:r},value:e,children:[c.jsx(HO,{className:"duration-[660ms] ease-[cubic-bezier(0.65,0,0.35,1)] size-full transition-transform",style:{transform:`translateX(-${100-e>100?100:100-e}%)`,backgroundColor:n}}),c.jsx("div",{className:"absolute left-0 top-0 inline-flex items-center justify-start",children:c.jsx("div",{className:"inline-flex items-center justify-start px-1 py-0.5",children:c.jsx("div",{className:"text-xs font-semibold",style:{color:o},children:sd[t]?sd[t]:sd[et.ON_TRACK]})})}),c.jsx("div",{className:"absolute right-0 top-0 inline-flex items-center justify-start px-1 py-0.5",children:c.jsxs("div",{className:"text-right text-xs font-semibold",style:{color:o},children:[ls(e),"%"]})})]})}function cs(e,[t,r]){return Math.min(r,Math.max(t,e))}var $O=S.createContext(void 0);function tn(e){const t=S.useContext($O);return e||t||"ltr"}function Tn(e){const t=e+"CollectionProvider",[r,n]=Ke(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:p,children:v}=g,m=M.useRef(null),y=M.useRef(new Map).current;return c.jsx(o,{scope:p,itemMap:y,collectionRef:m,children:v})};i.displayName=t;const s=e+"CollectionSlot",l=M.forwardRef((g,p)=>{const{scope:v,children:m}=g,y=a(s,v),b=ve(p,y.collectionRef);return c.jsx(dr,{ref:b,children:m})});l.displayName=s;const u=e+"CollectionItemSlot",f="data-radix-collection-item",d=M.forwardRef((g,p)=>{const{scope:v,children:m,...y}=g,b=M.useRef(null),w=ve(p,b),C=a(u,v);return M.useEffect(()=>(C.itemMap.set(b,{ref:b,...y}),()=>void C.itemMap.delete(b))),c.jsx(dr,{[f]:"",ref:w,children:m})});d.displayName=u;function h(g){const p=a(e+"CollectionConsumer",g);return M.useCallback(()=>{const m=p.collectionRef.current;if(!m)return[];const y=Array.from(m.querySelectorAll(`[${f}]`));return Array.from(p.itemMap.values()).sort((C,x)=>y.indexOf(C.ref.current)-y.indexOf(x.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:i,Slot:l,ItemSlot:d},h,n]}var lv=["PageUp","PageDown"],cv=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],uv={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},vo="Slider",[ld,XO,KO]=Tn(vo),[fv,xJ]=Ke(vo,[KO]),[QO,us]=fv(vo),dv=S.forwardRef((e,t)=>{const{name:r,min:n=0,max:o=100,step:a=1,orientation:i="horizontal",disabled:s=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[n],value:f,onValueChange:d=()=>{},onValueCommit:h=()=>{},inverted:g=!1,form:p,...v}=e,m=S.useRef(new Set),y=S.useRef(0),w=i==="horizontal"?ZO:JO,[C=[],x]=Qe({prop:f,defaultProp:u,onChange:N=>{var F;(F=[...m.current][y.current])==null||F.focus(),d(N)}}),O=S.useRef(C);function T(N){const D=nT(C,N);A(N,D)}function E(N){A(N,y.current)}function P(){const N=O.current[y.current];C[y.current]!==N&&h(C)}function A(N,D,{commit:F}={commit:!1}){const W=sT(a),_=lT(Math.round((N-n)/a)*a+n,W),k=cs(_,[n,o]);x((q=[])=>{const B=tT(q,k,D);if(iT(B,l*a)){y.current=B.indexOf(k);const I=String(B)!==String(q);return I&&F&&h(B),I?B:q}else return q})}return c.jsx(QO,{scope:e.__scopeSlider,name:r,disabled:s,min:n,max:o,valueIndexToChangeRef:y,thumbs:m.current,values:C,orientation:i,form:p,children:c.jsx(ld.Provider,{scope:e.__scopeSlider,children:c.jsx(ld.Slot,{scope:e.__scopeSlider,children:c.jsx(w,{"aria-disabled":s,"data-disabled":s?"":void 0,...v,ref:t,onPointerDown:ne(v.onPointerDown,()=>{s||(O.current=C)}),min:n,max:o,inverted:g,onSlideStart:s?void 0:T,onSlideMove:s?void 0:E,onSlideEnd:s?void 0:P,onHomeKeyDown:()=>!s&&A(n,0,{commit:!0}),onEndKeyDown:()=>!s&&A(o,C.length-1,{commit:!0}),onStepKeyDown:({event:N,direction:D})=>{if(!s){const _=lv.includes(N.key)||N.shiftKey&&cv.includes(N.key)?10:1,k=y.current,q=C[k],B=a*_*D;A(q+B,k,{commit:!0})}}})})})})});dv.displayName=vo;var[hv,pv]=fv(vo,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ZO=S.forwardRef((e,t)=>{const{min:r,max:n,dir:o,inverted:a,onSlideStart:i,onSlideMove:s,onSlideEnd:l,onStepKeyDown:u,...f}=e,[d,h]=S.useState(null),g=ve(t,w=>h(w)),p=S.useRef(void 0),v=tn(o),m=v==="ltr",y=m&&!a||!m&&a;function b(w){const C=p.current||d.getBoundingClientRect(),x=[0,C.width],T=fd(x,y?[r,n]:[n,r]);return p.current=C,T(w-C.left)}return c.jsx(hv,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:c.jsx(gv,{dir:v,"data-orientation":"horizontal",...f,ref:g,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:w=>{const C=b(w.clientX);i==null||i(C)},onSlideMove:w=>{const C=b(w.clientX);s==null||s(C)},onSlideEnd:()=>{p.current=void 0,l==null||l()},onStepKeyDown:w=>{const x=uv[y?"from-left":"from-right"].includes(w.key);u==null||u({event:w,direction:x?-1:1})}})})}),JO=S.forwardRef((e,t)=>{const{min:r,max:n,inverted:o,onSlideStart:a,onSlideMove:i,onSlideEnd:s,onStepKeyDown:l,...u}=e,f=S.useRef(null),d=ve(t,f),h=S.useRef(void 0),g=!o;function p(v){const m=h.current||f.current.getBoundingClientRect(),y=[0,m.height],w=fd(y,g?[n,r]:[r,n]);return h.current=m,w(v-m.top)}return c.jsx(hv,{scope:e.__scopeSlider,startEdge:g?"bottom":"top",endEdge:g?"top":"bottom",size:"height",direction:g?1:-1,children:c.jsx(gv,{"data-orientation":"vertical",...u,ref:d,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:v=>{const m=p(v.clientY);a==null||a(m)},onSlideMove:v=>{const m=p(v.clientY);i==null||i(m)},onSlideEnd:()=>{h.current=void 0,s==null||s()},onStepKeyDown:v=>{const y=uv[g?"from-bottom":"from-top"].includes(v.key);l==null||l({event:v,direction:y?-1:1})}})})}),gv=S.forwardRef((e,t)=>{const{__scopeSlider:r,onSlideStart:n,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:i,onEndKeyDown:s,onStepKeyDown:l,...u}=e,f=us(vo,r);return c.jsx(ce.span,{...u,ref:t,onKeyDown:ne(e.onKeyDown,d=>{d.key==="Home"?(i(d),d.preventDefault()):d.key==="End"?(s(d),d.preventDefault()):lv.concat(cv).includes(d.key)&&(l(d),d.preventDefault())}),onPointerDown:ne(e.onPointerDown,d=>{const h=d.target;h.setPointerCapture(d.pointerId),d.preventDefault(),f.thumbs.has(h)?h.focus():n(d)}),onPointerMove:ne(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:ne(e.onPointerUp,d=>{const h=d.target;h.hasPointerCapture(d.pointerId)&&(h.releasePointerCapture(d.pointerId),a(d))})})}),vv="SliderTrack",mv=S.forwardRef((e,t)=>{const{__scopeSlider:r,...n}=e,o=us(vv,r);return c.jsx(ce.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...n,ref:t})});mv.displayName=vv;var cd="SliderRange",yv=S.forwardRef((e,t)=>{const{__scopeSlider:r,...n}=e,o=us(cd,r),a=pv(cd,r),i=S.useRef(null),s=ve(t,i),l=o.values.length,u=o.values.map(h=>wv(h,o.min,o.max)),f=l>1?Math.min(...u):0,d=100-Math.max(...u);return c.jsx(ce.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...n,ref:s,style:{...e.style,[a.startEdge]:f+"%",[a.endEdge]:d+"%"}})});yv.displayName=cd;var ud="SliderThumb",bv=S.forwardRef((e,t)=>{const r=XO(e.__scopeSlider),[n,o]=S.useState(null),a=ve(t,s=>o(s)),i=S.useMemo(()=>n?r().findIndex(s=>s.ref.current===n):-1,[r,n]);return c.jsx(RO,{...e,ref:a,index:i})}),RO=S.forwardRef((e,t)=>{const{__scopeSlider:r,index:n,name:o,...a}=e,i=us(ud,r),s=pv(ud,r),[l,u]=S.useState(null),f=ve(t,b=>u(b)),d=l?i.form||!!l.closest("form"):!0,h=Ji(l),g=i.values[n],p=g===void 0?0:wv(g,i.min,i.max),v=rT(n,i.values.length),m=h==null?void 0:h[s.size],y=m?oT(m,p,s.direction):0;return S.useEffect(()=>{if(l)return i.thumbs.add(l),()=>{i.thumbs.delete(l)}},[l,i.thumbs]),c.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${p}% + ${y}px)`},children:[c.jsx(ld.ItemSlot,{scope:e.__scopeSlider,children:c.jsx(ce.span,{role:"slider","aria-label":e["aria-label"]||v,"aria-valuemin":i.min,"aria-valuenow":g,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...a,ref:f,style:g===void 0?{display:"none"}:e.style,onFocus:ne(e.onFocus,()=>{i.valueIndexToChangeRef.current=n})})}),d&&c.jsx(eT,{name:o??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:g},n)]})});bv.displayName=ud;var eT=e=>{const{value:t,...r}=e,n=S.useRef(null),o=xa(t);return S.useEffect(()=>{const a=n.current,i=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(i,"value").set;if(o!==t&&l){const u=new Event("input",{bubbles:!0});l.call(a,t),a.dispatchEvent(u)}},[o,t]),c.jsx("input",{style:{display:"none"},...r,ref:n,defaultValue:t})};function tT(e=[],t,r){const n=[...e];return n[r]=t,n.sort((o,a)=>o-a)}function wv(e,t,r){const a=100/(r-t)*(e-t);return cs(a,[0,100])}function rT(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function nT(e,t){if(e.length===1)return 0;const r=e.map(o=>Math.abs(o-t)),n=Math.min(...r);return r.indexOf(n)}function oT(e,t,r){const n=e/2,a=fd([0,50],[0,n]);return(n-a(t)*r)*r}function aT(e){return e.slice(0,-1).map((t,r)=>e[r+1]-t)}function iT(e,t){if(t>0){const r=aT(e);return Math.min(...r)>=t}return!0}function fd(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function sT(e){return(String(e).split(".")[1]||"").length}function lT(e,t){const r=Math.pow(10,t);return Math.round(e*r)/r}var cT=dv,uT=mv,fT=yv,dT=bv;function hT({startValue:e=0,targetValue:t=100,achievedValue:r=0,isReadOnly:n=!1,status:o=et.ON_TRACK,onChangeEnd:a=()=>{},onChange:i=()=>{},onThumbClick:s=()=>{}}){const[l,u]=M.useState(r),[f,d]=M.useState(r),h=M.useRef(!0),g=e>t,p=g?t:e,v=g?e:t,m=g?-1:1;M.useEffect(()=>{r!==l&&u(r)},[r]),M.useEffect(()=>{h.current?h.current=!1:a(f)},[f]),M.useEffect(()=>{i(l)},[l]);const y=C=>{u(g?t+e-C:C)},b=C=>{d(g?t+e-C:C)},w=go[o]?go[o]:go[et.ON_TRACK];return c.jsxs(cT,{className:"rabbit-ds relative box-border flex w-full min-w-[200px] touch-none select-none items-center",value:[g?t+e-l:l],min:p,max:v,step:m,inverted:p>v,disabled:n,onValueCommit:C=>b(C[0]),onValueChange:C=>y(C[0]),onLostPointerCapture:()=>{f!==l&&d(l)},children:[c.jsx(uT,{className:"relative h-7 grow rounded-radius-100 bg-[#EAEAEA]",children:c.jsx(fT,{className:"absolute h-full rounded-l bg-white",style:{backgroundColor:w.indicatorColor}})}),c.jsx(dT,{className:"block size-7 rounded-radius-400 bg-primary p-0.5 focus:outline-none","aria-label":"Volume",style:{pointerEvents:n?"none":"auto"},onClick:s,children:c.jsx(be,{IconSVG:Ug,className:"text-white"})})]})}var pT=S.useId||(()=>{}),gT=0;function ut(e){const[t,r]=S.useState(pT());return Ye(()=>{r(n=>n??String(gT++))},[e]),e||(t?`radix-${t}`:"")}var dd="Collapsible",[vT,xv]=Ke(dd),[mT,hd]=vT(dd),Cv=S.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:a,onOpenChange:i,...s}=e,[l=!1,u]=Qe({prop:n,defaultProp:o,onChange:i});return c.jsx(mT,{scope:r,disabled:a,contentId:ut(),open:l,onOpenToggle:S.useCallback(()=>u(f=>!f),[u]),children:c.jsx(ce.div,{"data-state":gd(l),"data-disabled":a?"":void 0,...s,ref:t})})});Cv.displayName=dd;var Av="CollapsibleTrigger",Mv=S.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=hd(Av,r);return c.jsx(ce.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":gd(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:ne(e.onClick,o.onOpenToggle)})});Mv.displayName=Av;var pd="CollapsibleContent",Sv=S.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=hd(pd,e.__scopeCollapsible);return c.jsx(Re,{present:r||o.open,children:({present:a})=>c.jsx(yT,{...n,ref:t,present:a})})});Sv.displayName=pd;var yT=S.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...a}=e,i=hd(pd,r),[s,l]=S.useState(n),u=S.useRef(null),f=ve(t,u),d=S.useRef(0),h=d.current,g=S.useRef(0),p=g.current,v=i.open||s,m=S.useRef(v),y=S.useRef(void 0);return S.useEffect(()=>{const b=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(b)},[]),Ye(()=>{const b=u.current;if(b){y.current=y.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const w=b.getBoundingClientRect();d.current=w.height,g.current=w.width,m.current||(b.style.transitionDuration=y.current.transitionDuration,b.style.animationName=y.current.animationName),l(n)}},[i.open,n]),c.jsx(ce.div,{"data-state":gd(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!v,...a,ref:f,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":p?`${p}px`:void 0,...e.style},children:v&&o})});function gd(e){return e?"open":"closed"}var Pv=Cv,_v=Mv,Ov=Sv;const bT=Be("rabbit-ds box-border inline-flex h-auto w-full flex-col items-start justify-start rounded-radius-200 bg-white",{variants:{size:{default:"p-4",small:"px-3 py-2"}},defaultVariants:{size:"default"}}),Pa=M.forwardRef(({className:e,size:t,noShadow:r,...n},o)=>c.jsx("div",{ref:o,className:R(bT({size:t}),r?"":"shadow-card-homepage",e),...n}));Pa.defaultProps={noShadow:!1,size:"default"},Pa.displayName="Card";const Tv=M.forwardRef(({className:e,...t},r)=>c.jsx("div",{ref:r,className:R("flex h-auto flex-col items-start justify-start self-stretch px-1 pb-3",e),...t}));Tv.displayName="CardHeader";const vd=M.forwardRef(({className:e,children:t,...r},n)=>c.jsx("h3",{ref:n,className:R("text-sm font-semibold leading-500 text-body-primary",e),...r,children:t}));vd.displayName="CardTitle";const Ev=M.forwardRef(({className:e,...t},r)=>c.jsx("p",{ref:r,className:R("text-sm text-body-secondary",e),...t}));Ev.displayName="CardDescription";const md=M.forwardRef(({className:e,...t},r)=>c.jsx("div",{ref:r,className:R("w-full text-sm",e),...t}));md.displayName="CardContent";const Nv=M.forwardRef(({title:e,actions:t,children:r,disabled:n=!1,...o},a)=>c.jsx(Pv,{ref:a,disabled:n,...o,className:"group",asChild:!0,children:c.jsxs(Pa,{children:[c.jsxs("div",{className:"flex h-8 w-full items-center justify-between",children:[c.jsxs("div",{className:"flex items-center",children:[!n&&c.jsx(_v,{className:"mr-2 bg-transparent text-primary transition-transform data-[state=open]:rotate-90",children:c.jsx(be,{IconSVG:zg})}),c.jsx(vd,{children:e})]}),t?c.jsx("div",{className:"animate-in fade-in group-data-[state=closed]:invisible",children:t}):null]}),c.jsx(Ov,{asChild:!0,children:c.jsx(md,{className:"animate-in fade-in",children:r})})]})}));Nv.displayName="CollapsibleCard";var yd="Switch",[wT,CJ]=Ke(yd),[xT,CT]=wT(yd),kv=S.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:o,defaultChecked:a,required:i,disabled:s,value:l="on",onCheckedChange:u,form:f,...d}=e,[h,g]=S.useState(null),p=ve(t,w=>g(w)),v=S.useRef(!1),m=h?f||!!h.closest("form"):!0,[y=!1,b]=Qe({prop:o,defaultProp:a,onChange:u});return c.jsxs(xT,{scope:r,checked:y,disabled:s,children:[c.jsx(ce.button,{type:"button",role:"switch","aria-checked":y,"aria-required":i,"data-state":Iv(y),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:p,onClick:ne(e.onClick,w=>{b(C=>!C),m&&(v.current=w.isPropagationStopped(),v.current||w.stopPropagation())})}),m&&c.jsx(AT,{control:h,bubbles:!v.current,name:n,value:l,checked:y,required:i,disabled:s,form:f,style:{transform:"translateX(-100%)"}})]})});kv.displayName=yd;var Dv="SwitchThumb",Fv=S.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=CT(Dv,r);return c.jsx(ce.span,{"data-state":Iv(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});Fv.displayName=Dv;var AT=e=>{const{control:t,checked:r,bubbles:n=!0,...o}=e,a=S.useRef(null),i=xa(r),s=Ji(t);return S.useEffect(()=>{const l=a.current,u=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(u,"checked").set;if(i!==r&&d){const h=new Event("click",{bubbles:n});d.call(l,r),l.dispatchEvent(h)}},[i,r,n]),c.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Iv(e){return e?"checked":"unchecked"}var Lv=kv,MT=Fv;const Bv=S.forwardRef(({className:e,label:t,id:r,...n},o)=>{const a=r||`switch-${Xt(0,4294967295).toString(16)}`;return c.jsxs("div",{className:"rabbit-ds flex items-center",children:[c.jsx(Lv,{className:R("inline-flex h-500 w-900 shrink-0 cursor-pointer items-center rounded-full","border-2 border-transparent transition-colors","focus-visible:bg-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","data-[state=checked]:bg-button-primary-active data-[state=unchecked]:bg-surface-neutral-moderate","data-[state=checked]:disabled:bg-button-primary-disable data-[state=unchecked]:disabled:bg-surface-neutral-subtle","disabled:cursor-not-allowed",e),...n,ref:o,id:a,children:c.jsx(MT,{className:R("pointer-events-none block size-4 rounded-full bg-white ring-0 transition-transform","data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}),t&&c.jsx(os,{className:"ml-2",htmlFor:a,children:t})]})});Bv.displayName=Lv.displayName;const zv=M.forwardRef(({className:e,children:t,...r},n)=>c.jsx("div",{className:"rabbit-ds",children:c.jsx("div",{className:R("rounded-radius-200 bg-ai-gradient-border p-25"),children:c.jsx("div",{className:"rounded-radius-200 bg-white",children:c.jsx("div",{ref:n,className:R("bg-ai-gradient px-200 py-100 text-300sm leading-400 text-body-primary",e),...r,children:t})})})}));zv.displayName="AICard";var bd="rovingFocusGroup.onEntryFocus",ST={bubbles:!1,cancelable:!0},fs="RovingFocusGroup",[wd,qv,PT]=Tn(fs),[_T,mo]=Ke(fs,[PT]),[OT,TT]=_T(fs),Wv=S.forwardRef((e,t)=>c.jsx(wd.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(wd.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(ET,{...e,ref:t})})}));Wv.displayName=fs;var ET=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...d}=e,h=S.useRef(null),g=ve(t,h),p=tn(a),[v=null,m]=Qe({prop:i,defaultProp:s,onChange:l}),[y,b]=S.useState(!1),w=Ve(u),C=qv(r),x=S.useRef(!1),[O,T]=S.useState(0);return S.useEffect(()=>{const E=h.current;if(E)return E.addEventListener(bd,w),()=>E.removeEventListener(bd,w)},[w]),c.jsx(OT,{scope:r,orientation:n,dir:p,loop:o,currentTabStopId:v,onItemFocus:S.useCallback(E=>m(E),[m]),onItemShiftTab:S.useCallback(()=>b(!0),[]),onFocusableItemAdd:S.useCallback(()=>T(E=>E+1),[]),onFocusableItemRemove:S.useCallback(()=>T(E=>E-1),[]),children:c.jsx(ce.div,{tabIndex:y||O===0?-1:0,"data-orientation":n,...d,ref:g,style:{outline:"none",...e.style},onMouseDown:ne(e.onMouseDown,()=>{x.current=!0}),onFocus:ne(e.onFocus,E=>{const P=!x.current;if(E.target===E.currentTarget&&P&&!y){const A=new CustomEvent(bd,ST);if(E.currentTarget.dispatchEvent(A),!A.defaultPrevented){const N=C().filter(k=>k.focusable),D=N.find(k=>k.active),F=N.find(k=>k.id===v),_=[D,F,...N].filter(Boolean).map(k=>k.ref.current);Uv(_,f)}}x.current=!1}),onBlur:ne(e.onBlur,()=>b(!1))})})}),jv="RovingFocusGroupItem",Hv=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,...i}=e,s=ut(),l=a||s,u=TT(jv,r),f=u.currentTabStopId===l,d=qv(r),{onFocusableItemAdd:h,onFocusableItemRemove:g}=u;return S.useEffect(()=>{if(n)return h(),()=>g()},[n,h,g]),c.jsx(wd.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:c.jsx(ce.span,{tabIndex:f?0:-1,"data-orientation":u.orientation,...i,ref:t,onMouseDown:ne(e.onMouseDown,p=>{n?u.onItemFocus(l):p.preventDefault()}),onFocus:ne(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:ne(e.onKeyDown,p=>{if(p.key==="Tab"&&p.shiftKey){u.onItemShiftTab();return}if(p.target!==p.currentTarget)return;const v=DT(p,u.orientation,u.dir);if(v!==void 0){if(p.metaKey||p.ctrlKey||p.altKey||p.shiftKey)return;p.preventDefault();let y=d().filter(b=>b.focusable).map(b=>b.ref.current);if(v==="last")y.reverse();else if(v==="prev"||v==="next"){v==="prev"&&y.reverse();const b=y.indexOf(p.currentTarget);y=u.loop?FT(y,b+1):y.slice(b+1)}setTimeout(()=>Uv(y))}})})})});Hv.displayName=jv;var NT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function kT(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function DT(e,t,r){const n=kT(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return NT[n]}function Uv(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function FT(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var xd=Wv,Cd=Hv,yo="ToggleGroup",[Vv,AJ]=Ke(yo,[mo]),Yv=mo(),Ad=M.forwardRef((e,t)=>{const{type:r,...n}=e;if(r==="single"){const o=n;return c.jsx(IT,{...o,ref:t})}if(r==="multiple"){const o=n;return c.jsx(LT,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${yo}\``)});Ad.displayName=yo;var[Gv,$v]=Vv(yo),IT=M.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[i,s]=Qe({prop:r,defaultProp:n,onChange:o});return c.jsx(Gv,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:M.useCallback(()=>s(""),[s]),children:c.jsx(Xv,{...a,ref:t})})}),LT=M.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[i=[],s]=Qe({prop:r,defaultProp:n,onChange:o}),l=M.useCallback(f=>s((d=[])=>[...d,f]),[s]),u=M.useCallback(f=>s((d=[])=>d.filter(h=>h!==f)),[s]);return c.jsx(Gv,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:u,children:c.jsx(Xv,{...a,ref:t})})});Ad.displayName=yo;var[BT,zT]=Vv(yo),Xv=M.forwardRef((e,t)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,u=Yv(r),f=tn(i),d={role:"group",dir:f,...l};return c.jsx(BT,{scope:r,rovingFocus:o,disabled:n,children:o?c.jsx(xd,{asChild:!0,...u,orientation:a,dir:f,loop:s,children:c.jsx(ce.div,{...d,ref:t})}):c.jsx(ce.div,{...d,ref:t})})}),ds="ToggleGroupItem",Kv=M.forwardRef((e,t)=>{const r=$v(ds,e.__scopeToggleGroup),n=zT(ds,e.__scopeToggleGroup),o=Yv(e.__scopeToggleGroup),a=r.value.includes(e.value),i=n.disabled||e.disabled,s={...e,pressed:a,disabled:i},l=M.useRef(null);return n.rovingFocus?c.jsx(Cd,{asChild:!0,...o,focusable:!i,active:a,ref:l,children:c.jsx(Qv,{...s,ref:t})}):c.jsx(Qv,{...s,ref:t})});Kv.displayName=ds;var Qv=M.forwardRef((e,t)=>{const{__scopeToggleGroup:r,value:n,...o}=e,a=$v(ds,r),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return c.jsx(rd,{...s,...o,ref:t,onPressedChange:l=>{l?a.onItemActivate(n):a.onItemDeactivate(n)}})}),Zv=Ad,Jv=Kv;const qT="rabbit-ds-text",WT="text-body-primary",Md={normal:"font-normal",semibold:"font-semibold",bold:"font-bold"},jT=(e,t)=>t?Md.bold:e?Md.semibold:Md.normal,Sd=({bold:e=!1,xbold:t=!1,color:r=WT})=>R(qT,jT(e,t),r),HT=({children:e,className:t,...r})=>c.jsx("h3",{className:R("text-350sm leading-500",Sd(r),t),children:e}),UT=({children:e,className:t,...r})=>c.jsx("p",{className:R("text-300sm leading-400",Sd(r),t),children:e}),VT=({children:e,className:t,...r})=>c.jsx("p",{className:R("text-350sm leading-500",Sd(r),t),children:e}),Rv=M.forwardRef(({options:e,className:t,required:r=!0,onValueChange:n,...o},a)=>{const i=s=>{r&&s===""||n==null||n(s)};return c.jsx(Zv,{ref:a,type:"single",className:R("rabbit-ds inline-flex items-center justify-center gap-200 rounded-radius-100 bg-[#EBEFF3] p-100",t),onValueChange:i,...o,children:e.map(s=>{const l=o.value===s.value;return c.jsx(Jv,{value:s.value,disabled:s.disabled,className:R("rabbit-ds inline-flex cursor-pointer items-center justify-center text-nowrap transition-all duration-200 ease-in-out","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","data-[state=off]:bg-transparent","data-[state=on]:bg-white","min-h-[24px] rounded-radius-100 px-100 py-50"),"aria-label":s.label,children:c.jsx(VT,{bold:!0,color:l?"text-primary-focus":"text-body-secondary",children:s.label})},s.value)})})});Rv.displayName="ToggleGroup";var kr="Accordion",YT=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Pd,GT,$T]=Tn(kr),[hs,MJ]=Ke(kr,[$T,xv]),_d=xv(),em=M.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,a=n;return c.jsx(Pd.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?c.jsx(ZT,{...a,ref:t}):c.jsx(QT,{...o,ref:t})})});em.displayName=kr;var[tm,XT]=hs(kr),[rm,KT]=hs(kr,{collapsible:!1}),QT=M.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[s,l]=Qe({prop:r,defaultProp:n,onChange:o});return c.jsx(tm,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:M.useCallback(()=>a&&l(""),[a,l]),children:c.jsx(rm,{scope:e.__scopeAccordion,collapsible:a,children:c.jsx(nm,{...i,ref:t})})})}),ZT=M.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[i=[],s]=Qe({prop:r,defaultProp:n,onChange:o}),l=M.useCallback(f=>s((d=[])=>[...d,f]),[s]),u=M.useCallback(f=>s((d=[])=>d.filter(h=>h!==f)),[s]);return c.jsx(tm,{scope:e.__scopeAccordion,value:i,onItemOpen:l,onItemClose:u,children:c.jsx(rm,{scope:e.__scopeAccordion,collapsible:!0,children:c.jsx(nm,{...a,ref:t})})})}),[JT,ps]=hs(kr),nm=M.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:a="vertical",...i}=e,s=M.useRef(null),l=ve(s,t),u=GT(r),d=tn(o)==="ltr",h=ne(e.onKeyDown,g=>{var E;if(!YT.includes(g.key))return;const p=g.target,v=u().filter(P=>{var A;return!((A=P.ref.current)!=null&&A.disabled)}),m=v.findIndex(P=>P.ref.current===p),y=v.length;if(m===-1)return;g.preventDefault();let b=m;const w=0,C=y-1,x=()=>{b=m+1,b>C&&(b=w)},O=()=>{b=m-1,b<w&&(b=C)};switch(g.key){case"Home":b=w;break;case"End":b=C;break;case"ArrowRight":a==="horizontal"&&(d?x():O());break;case"ArrowDown":a==="vertical"&&x();break;case"ArrowLeft":a==="horizontal"&&(d?O():x());break;case"ArrowUp":a==="vertical"&&O();break}const T=b%y;(E=v[T].ref.current)==null||E.focus()});return c.jsx(JT,{scope:r,disabled:n,direction:o,orientation:a,children:c.jsx(Pd.Slot,{scope:r,children:c.jsx(ce.div,{...i,"data-orientation":a,ref:l,onKeyDown:n?void 0:h})})})}),gs="AccordionItem",[RT,Od]=hs(gs),om=M.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,a=ps(gs,r),i=XT(gs,r),s=_d(r),l=ut(),u=n&&i.value.includes(n)||!1,f=a.disabled||e.disabled;return c.jsx(RT,{scope:r,open:u,disabled:f,triggerId:l,children:c.jsx(Pv,{"data-orientation":a.orientation,"data-state":um(u),...s,...o,ref:t,disabled:f,open:u,onOpenChange:d=>{d?i.onItemOpen(n):i.onItemClose(n)}})})});om.displayName=gs;var am="AccordionHeader",im=M.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=ps(kr,r),a=Od(am,r);return c.jsx(ce.h3,{"data-orientation":o.orientation,"data-state":um(a.open),"data-disabled":a.disabled?"":void 0,...n,ref:t})});im.displayName=am;var Td="AccordionTrigger",sm=M.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=ps(kr,r),a=Od(Td,r),i=KT(Td,r),s=_d(r);return c.jsx(Pd.ItemSlot,{scope:r,children:c.jsx(_v,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...s,...n,ref:t})})});sm.displayName=Td;var lm="AccordionContent",cm=M.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=ps(kr,r),a=Od(lm,r),i=_d(r);return c.jsx(Ov,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...i,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});cm.displayName=lm;function um(e){return e?"open":"closed"}var fm=em,dm=om,eE=im,hm=sm,pm=cm;const gm=M.forwardRef(({children:e,...t},r)=>c.jsx(fm,{ref:r,...t,className:R("rabbit-ds",t.className),children:e})),vm=M.forwardRef(({children:e,...t},r)=>c.jsx(dm,{ref:r,...t,className:R("rabbit-ds",t.className),children:e})),mm=M.forwardRef(({children:e,icon:t=Fg,iconClassName:r,asChild:n,...o},a)=>c.jsx(eE,{className:"flex",children:c.jsx(hm,{ref:a,asChild:n,...o,className:n?o.className:R("rabbit-ds accordion-trigger group flex items-center bg-transparent",o.className),children:n?e:c.jsxs(c.Fragment,{children:[t?c.jsx(be,{"aria-hidden":!0,className:R("accordion-chevron mx-1 group-data-[state=open]:rotate-90",r===""?void 0:r??"text-button-tertiary-active"),IconSVG:t}):null,e]})})})),ym=M.forwardRef(({children:e,...t},r)=>c.jsx(pm,{ref:r,...t,"data-rabbit-accordion-content":!0,className:R("rabbit-ds",t.className),children:c.jsx("div",{className:"rabbit-ds pl-8",children:e})}));gm.displayName=fm.displayName,vm.displayName=dm.displayName,mm.displayName=hm.displayName,ym.displayName=pm.displayName;const tE=Be("rabbit-ds relative inline-flex w-full items-center gap-1 rounded-radius-200 border px-4 py-3 text-sm",{variants:{variant:{default:"bg-tag-lightGray-bg text-tag-lightGray-text",warning:"bg-tag-yellow-bg text-tag-yellow-text",success:"bg-tag-lightGreen-bg text-tag-lightGreen-text",error:"bg-tag-red-bg text-tag-red-text"}},defaultVariants:{variant:"default"}}),bm=M.forwardRef(({className:e,variant:t="default",...r},n)=>c.jsx("div",{ref:n,role:"alert",className:R(tE({variant:t}),e),...r}));bm.displayName="Alert";const wm=M.forwardRef(({className:e,IconSVG:t,...r},n)=>c.jsx("div",{ref:n,className:R("text-sm",e),...r,children:c.jsx(be,{IconSVG:t})}));wm.displayName="AlertIcon";const xm=M.forwardRef(({className:e,...t},r)=>c.jsx("div",{ref:r,className:R("text-sm [&_p]:leading-relaxed",e),...t}));xm.displayName="AlertDescription";function rE(e,t=globalThis==null?void 0:globalThis.document){const r=Ve(e);S.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var nE="DismissableLayer",Ed="dismissableLayer.update",oE="dismissableLayer.pointerDownOutside",aE="dismissableLayer.focusOutside",Cm,Am=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),En=S.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...l}=e,u=S.useContext(Am),[f,d]=S.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=S.useState({}),p=ve(t,T=>d(T)),v=Array.from(u.layers),[m]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(m),b=f?v.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,C=b>=y,x=lE(T=>{const E=T.target,P=[...u.branches].some(A=>A.contains(E));!C||P||(o==null||o(T),i==null||i(T),T.defaultPrevented||s==null||s())},h),O=cE(T=>{const E=T.target;[...u.branches].some(A=>A.contains(E))||(a==null||a(T),i==null||i(T),T.defaultPrevented||s==null||s())},h);return rE(T=>{b===u.layers.size-1&&(n==null||n(T),!T.defaultPrevented&&s&&(T.preventDefault(),s()))},h),S.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Cm=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Mm(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Cm)}},[f,h,r,u]),S.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Mm())},[f,u]),S.useEffect(()=>{const T=()=>g({});return document.addEventListener(Ed,T),()=>document.removeEventListener(Ed,T)},[]),c.jsx(ce.div,{...l,ref:p,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:ne(e.onFocusCapture,O.onFocusCapture),onBlurCapture:ne(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:ne(e.onPointerDownCapture,x.onPointerDownCapture)})});En.displayName=nE;var iE="DismissableLayerBranch",sE=S.forwardRef((e,t)=>{const r=S.useContext(Am),n=S.useRef(null),o=ve(t,n);return S.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),c.jsx(ce.div,{...e,ref:o})});sE.displayName=iE;function lE(e,t=globalThis==null?void 0:globalThis.document){const r=Ve(e),n=S.useRef(!1),o=S.useRef(()=>{});return S.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let l=function(){Sm(oE,r,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function cE(e,t=globalThis==null?void 0:globalThis.document){const r=Ve(e),n=S.useRef(!1);return S.useEffect(()=>{const o=a=>{a.target&&!n.current&&Sm(aE,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Mm(){const e=new CustomEvent(Ed);document.dispatchEvent(e)}function Sm(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?es(o,a):o.dispatchEvent(a)}var Nd="focusScope.autoFocusOnMount",kd="focusScope.autoFocusOnUnmount",Pm={bubbles:!1,cancelable:!0},uE="FocusScope",vs=S.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=S.useState(null),u=Ve(o),f=Ve(a),d=S.useRef(null),h=ve(t,v=>l(v)),g=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(n){let v=function(w){if(g.paused||!s)return;const C=w.target;s.contains(C)?d.current=C:rn(d.current,{select:!0})},m=function(w){if(g.paused||!s)return;const C=w.relatedTarget;C!==null&&(s.contains(C)||rn(d.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const x of w)x.removedNodes.length>0&&rn(s)};document.addEventListener("focusin",v),document.addEventListener("focusout",m);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",m),b.disconnect()}}},[n,s,g.paused]),S.useEffect(()=>{if(s){Tm.add(g);const v=document.activeElement;if(!s.contains(v)){const y=new CustomEvent(Nd,Pm);s.addEventListener(Nd,u),s.dispatchEvent(y),y.defaultPrevented||(fE(vE(_m(s)),{select:!0}),document.activeElement===v&&rn(s))}return()=>{s.removeEventListener(Nd,u),setTimeout(()=>{const y=new CustomEvent(kd,Pm);s.addEventListener(kd,f),s.dispatchEvent(y),y.defaultPrevented||rn(v??document.body,{select:!0}),s.removeEventListener(kd,f),Tm.remove(g)},0)}}},[s,u,f,g]);const p=S.useCallback(v=>{if(!r&&!n||g.paused)return;const m=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,y=document.activeElement;if(m&&y){const b=v.currentTarget,[w,C]=dE(b);w&&C?!v.shiftKey&&y===C?(v.preventDefault(),r&&rn(w,{select:!0})):v.shiftKey&&y===w&&(v.preventDefault(),r&&rn(C,{select:!0})):y===b&&v.preventDefault()}},[r,n,g.paused]);return c.jsx(ce.div,{tabIndex:-1,...i,ref:h,onKeyDown:p})});vs.displayName=uE;function fE(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(rn(n,{select:t}),document.activeElement!==r)return}function dE(e){const t=_m(e),r=Om(t,e),n=Om(t.reverse(),e);return[r,n]}function _m(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Om(e,t){for(const r of e)if(!hE(r,{upTo:t}))return r}function hE(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function pE(e){return e instanceof HTMLInputElement&&"select"in e}function rn(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&pE(e)&&t&&e.select()}}var Tm=gE();function gE(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Em(e,t),e.unshift(t)},remove(t){var r;e=Em(e,t),(r=e[0])==null||r.resume()}}}function Em(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function vE(e){return e.filter(t=>t.tagName!=="A")}var mE="Portal",bo=S.forwardRef((e,t)=>{var s;const{container:r,...n}=e,[o,a]=S.useState(!1);Ye(()=>a(!0),[]);const i=r||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?fo.createPortal(c.jsx(ce.div,{...n,ref:t}),i):null});bo.displayName=mE;var Dd=0;function Fd(){S.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Nm()),document.body.insertAdjacentElement("beforeend",e[1]??Nm()),Dd++,()=>{Dd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Dd--}},[])}function Nm(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var hr=function(){return hr=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},hr.apply(this,arguments)};function km(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function yE(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var ms="right-scroll-bar-position",ys="width-before-scroll-bar",bE="with-scroll-bars-hidden",wE="--removed-body-scroll-bar-size";function Id(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function xE(e,t){var r=M.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var CE=typeof window<"u"?S.useLayoutEffect:S.useEffect,Dm=new WeakMap;function AE(e,t){var r=xE(null,function(n){return e.forEach(function(o){return Id(o,n)})});return CE(function(){var n=Dm.get(r);if(n){var o=new Set(n),a=new Set(e),i=r.current;o.forEach(function(s){a.has(s)||Id(s,null)}),a.forEach(function(s){o.has(s)||Id(s,i)})}Dm.set(r,e)},[e]),r}function ME(e){return e}function SE(e,t){t===void 0&&(t=ME);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var i=t(a,n);return r.push(i),function(){r=r.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(n=!0;r.length;){var i=r;r=[],i.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var i=[];if(r.length){var s=r;r=[],s.forEach(a),i=r}var l=function(){var f=i;i=[],f.forEach(a)},u=function(){return Promise.resolve().then(l)};u(),r={push:function(f){i.push(f),u()},filter:function(f){return i=i.filter(f),r}}}};return o}function PE(e){e===void 0&&(e={});var t=SE(null);return t.options=hr({async:!0,ssr:!1},e),t}var Fm=function(e){var t=e.sideCar,r=km(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return S.createElement(n,hr({},r))};Fm.isSideCarExport=!0;function _E(e,t){return e.useMedium(t),Fm}var Im=PE(),Ld=function(){},bs=S.forwardRef(function(e,t){var r=S.useRef(null),n=S.useState({onScrollCapture:Ld,onWheelCapture:Ld,onTouchMoveCapture:Ld}),o=n[0],a=n[1],i=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,h=e.sideCar,g=e.noIsolation,p=e.inert,v=e.allowPinchZoom,m=e.as,y=m===void 0?"div":m,b=e.gapMode,w=km(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=h,x=AE([r,t]),O=hr(hr({},w),o);return S.createElement(S.Fragment,null,f&&S.createElement(C,{sideCar:Im,removeScrollBar:u,shards:d,noIsolation:g,inert:p,setCallbacks:a,allowPinchZoom:!!v,lockRef:r,gapMode:b}),i?S.cloneElement(S.Children.only(s),hr(hr({},O),{ref:x})):S.createElement(y,hr({},O,{className:l,ref:x}),s))});bs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},bs.classNames={fullWidth:ys,zeroRight:ms};var OE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function TE(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=OE();return t&&e.setAttribute("nonce",t),e}function EE(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function NE(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var kE=function(){var e=0,t=null;return{add:function(r){e==0&&(t=TE())&&(EE(t,r),NE(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},DE=function(){var e=kE();return function(t,r){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Lm=function(){var e=DE(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},FE={left:0,top:0,right:0,gap:0},Bd=function(e){return parseInt(e||"",10)||0},IE=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Bd(r),Bd(n),Bd(o)]},LE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return FE;var t=IE(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},BE=Lm(),wo="data-scroll-locked",zE=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
|
7
7
|
.`.concat(bE,` {
|
|
8
8
|
overflow: hidden `).concat(n,`;
|
|
9
9
|
padding-right: `).concat(s,"px ").concat(n,`;
|
package/dist/index.d.ts
CHANGED
|
@@ -158,6 +158,10 @@ icon?: IconType;
|
|
|
158
158
|
* Pass an empty string to remove the default color class entirely.
|
|
159
159
|
*/
|
|
160
160
|
iconClassName?: string;
|
|
161
|
+
/**
|
|
162
|
+
* Change the default rendered element for the one passed as a child.
|
|
163
|
+
*/
|
|
164
|
+
asChild?: boolean;
|
|
161
165
|
} & RefAttributes<HTMLButtonElement>>;
|
|
162
166
|
|
|
163
167
|
/**
|