@arkitektbedriftene/fe-lib 0.4.8 → 0.4.9
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/{TextInput-986922b7.js → TextInput-c4d1672c.js} +649 -549
- package/dist/rich-text/Plugins/LinkInsertPlugin.d.ts +3 -1
- package/dist/rich-text/Plugins/RutineLinkNode.d.ts +25 -0
- package/dist/rich-text/rich-text.d.ts +1 -0
- package/dist/rich-text.es.js +660 -546
- package/dist/ui/components/Button.d.ts +1 -1
- package/dist/ui/components/NavBar.d.ts +1 -1
- package/dist/ui/components/Toolbar.d.ts +1 -1
- package/dist/ui.es.js +53 -137
- package/package.json +1 -1
|
@@ -1,69 +1,70 @@
|
|
|
1
|
-
import { jsx as z, jsxs as
|
|
1
|
+
import { jsx as z, jsxs as Be, Fragment as On } from "react/jsx-runtime";
|
|
2
2
|
import * as y from "react";
|
|
3
|
-
import Se, { forwardRef as xe, useLayoutEffect as
|
|
3
|
+
import Se, { forwardRef as xe, useLayoutEffect as tn, useEffect as pt, useRef as nn, createContext as Dn, useMemo as at, useContext as on, isValidElement as Mn, cloneElement as Ln, useCallback as Ct, useId as Fn } from "react";
|
|
4
4
|
import * as zn from "react-dom";
|
|
5
|
-
import { createPortal as
|
|
5
|
+
import { createPortal as rn } from "react-dom";
|
|
6
6
|
import * as je from "@radix-ui/react-toolbar";
|
|
7
7
|
import { g as Wn, h as Nn, i as jn } from "./index.esm-b848a615.js";
|
|
8
8
|
import * as te from "@radix-ui/react-dropdown-menu";
|
|
9
|
-
|
|
9
|
+
import Hn from "react-select";
|
|
10
|
+
var W = "colors", X = "sizes", E = "space", Vn = { gap: E, gridGap: E, columnGap: E, gridColumnGap: E, rowGap: E, gridRowGap: E, inset: E, insetBlock: E, insetBlockEnd: E, insetBlockStart: E, insetInline: E, insetInlineEnd: E, insetInlineStart: E, margin: E, marginTop: E, marginRight: E, marginBottom: E, marginLeft: E, marginBlock: E, marginBlockEnd: E, marginBlockStart: E, marginInline: E, marginInlineEnd: E, marginInlineStart: E, padding: E, paddingTop: E, paddingRight: E, paddingBottom: E, paddingLeft: E, paddingBlock: E, paddingBlockEnd: E, paddingBlockStart: E, paddingInline: E, paddingInlineEnd: E, paddingInlineStart: E, top: E, right: E, bottom: E, left: E, scrollMargin: E, scrollMarginTop: E, scrollMarginRight: E, scrollMarginBottom: E, scrollMarginLeft: E, scrollMarginX: E, scrollMarginY: E, scrollMarginBlock: E, scrollMarginBlockEnd: E, scrollMarginBlockStart: E, scrollMarginInline: E, scrollMarginInlineEnd: E, scrollMarginInlineStart: E, scrollPadding: E, scrollPaddingTop: E, scrollPaddingRight: E, scrollPaddingBottom: E, scrollPaddingLeft: E, scrollPaddingX: E, scrollPaddingY: E, scrollPaddingBlock: E, scrollPaddingBlockEnd: E, scrollPaddingBlockStart: E, scrollPaddingInline: E, scrollPaddingInlineEnd: E, scrollPaddingInlineStart: E, fontSize: "fontSizes", background: W, backgroundColor: W, backgroundImage: W, borderImage: W, border: W, borderBlock: W, borderBlockEnd: W, borderBlockStart: W, borderBottom: W, borderBottomColor: W, borderColor: W, borderInline: W, borderInlineEnd: W, borderInlineStart: W, borderLeft: W, borderLeftColor: W, borderRight: W, borderRightColor: W, borderTop: W, borderTopColor: W, caretColor: W, color: W, columnRuleColor: W, fill: W, outline: W, outlineColor: W, stroke: W, textDecorationColor: W, fontFamily: "fonts", fontWeight: "fontWeights", lineHeight: "lineHeights", letterSpacing: "letterSpacings", blockSize: X, minBlockSize: X, maxBlockSize: X, inlineSize: X, minInlineSize: X, maxInlineSize: X, width: X, minWidth: X, maxWidth: X, height: X, minHeight: X, maxHeight: X, flexBasis: X, gridTemplateColumns: X, gridTemplateRows: X, borderWidth: "borderWidths", borderTopWidth: "borderWidths", borderRightWidth: "borderWidths", borderBottomWidth: "borderWidths", borderLeftWidth: "borderWidths", borderStyle: "borderStyles", borderTopStyle: "borderStyles", borderRightStyle: "borderStyles", borderBottomStyle: "borderStyles", borderLeftStyle: "borderStyles", borderRadius: "radii", borderTopLeftRadius: "radii", borderTopRightRadius: "radii", borderBottomRightRadius: "radii", borderBottomLeftRadius: "radii", boxShadow: "shadows", textShadow: "shadows", transition: "transitions", zIndex: "zIndices" }, _n = (e, t) => typeof t == "function" ? { "()": Function.prototype.toString.call(t) } : t, De = () => {
|
|
10
11
|
const e = /* @__PURE__ */ Object.create(null);
|
|
11
12
|
return (t, n, ...o) => {
|
|
12
|
-
const r = ((i) => JSON.stringify(i,
|
|
13
|
+
const r = ((i) => JSON.stringify(i, _n))(t);
|
|
13
14
|
return r in e ? e[r] : e[r] = n(t, ...o);
|
|
14
15
|
};
|
|
15
|
-
}, pe = Symbol.for("sxs.internal"),
|
|
16
|
+
}, pe = Symbol.for("sxs.internal"), ht = (e, t) => Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)), kt = (e) => {
|
|
16
17
|
for (const t in e)
|
|
17
18
|
return !0;
|
|
18
19
|
return !1;
|
|
19
|
-
}, { hasOwnProperty:
|
|
20
|
+
}, { hasOwnProperty: Yn } = Object.prototype, ct = (e) => e.includes("-") ? e : e.replace(/[A-Z]/g, (t) => "-" + t.toLowerCase()), Xn = /\s+(?![^()]*\))/, Re = (e) => (t) => e(...typeof t == "string" ? String(t).split(Xn) : [t]), Tt = { appearance: (e) => ({ WebkitAppearance: e, appearance: e }), backfaceVisibility: (e) => ({ WebkitBackfaceVisibility: e, backfaceVisibility: e }), backdropFilter: (e) => ({ WebkitBackdropFilter: e, backdropFilter: e }), backgroundClip: (e) => ({ WebkitBackgroundClip: e, backgroundClip: e }), boxDecorationBreak: (e) => ({ WebkitBoxDecorationBreak: e, boxDecorationBreak: e }), clipPath: (e) => ({ WebkitClipPath: e, clipPath: e }), content: (e) => ({ content: e.includes('"') || e.includes("'") || /^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e) ? e : `"${e}"` }), hyphens: (e) => ({ WebkitHyphens: e, hyphens: e }), maskImage: (e) => ({ WebkitMaskImage: e, maskImage: e }), maskSize: (e) => ({ WebkitMaskSize: e, maskSize: e }), tabSize: (e) => ({ MozTabSize: e, tabSize: e }), textSizeAdjust: (e) => ({ WebkitTextSizeAdjust: e, textSizeAdjust: e }), userSelect: (e) => ({ WebkitUserSelect: e, userSelect: e }), marginBlock: Re((e, t) => ({ marginBlockStart: e, marginBlockEnd: t || e })), marginInline: Re((e, t) => ({ marginInlineStart: e, marginInlineEnd: t || e })), maxSize: Re((e, t) => ({ maxBlockSize: e, maxInlineSize: t || e })), minSize: Re((e, t) => ({ minBlockSize: e, minInlineSize: t || e })), paddingBlock: Re((e, t) => ({ paddingBlockStart: e, paddingBlockEnd: t || e })), paddingInline: Re((e, t) => ({ paddingInlineStart: e, paddingInlineEnd: t || e })) }, nt = /([\d.]+)([^]*)/, Kn = (e, t) => e.length ? e.reduce((n, o) => (n.push(...t.map((r) => r.includes("&") ? r.replace(/&/g, /[ +>|~]/.test(o) && /&.*&/.test(r) ? `:is(${o})` : o) : o + " " + r)), n), []) : t, Gn = (e, t) => e in Un && typeof t == "string" ? t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/, (n, o, r, i) => o + (r === "stretch" ? `-moz-available${i};${ct(e)}:${o}-webkit-fill-available` : `-moz-fit-content${i};${ct(e)}:${o}fit-content`) + i) : String(t), Un = { blockSize: 1, height: 1, inlineSize: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, width: 1 }, ne = (e) => e ? e + "-" : "", sn = (e, t, n) => e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g, (o, r, i, s, l) => s == "$" == !!i ? o : (r || s == "--" ? "calc(" : "") + "var(--" + (s === "$" ? ne(t) + (l.includes("$") ? "" : ne(n)) + l.replace(/\$/g, "-") : l) + ")" + (r || s == "--" ? "*" + (r || "") + (i || "1") + ")" : "")), qn = /\s*,\s*(?![^()]*\))/, Zn = Object.prototype.toString, Te = (e, t, n, o, r) => {
|
|
20
21
|
let i, s, l;
|
|
21
22
|
const a = (c, g, u) => {
|
|
22
23
|
let f, d;
|
|
23
24
|
const m = (p) => {
|
|
24
25
|
for (f in p) {
|
|
25
|
-
const x = f.charCodeAt(0) === 64,
|
|
26
|
-
for (d of
|
|
27
|
-
const S = /[A-Z]/.test(h = f) ? h : h.replace(/-[^]/g, (C) => C[1].toUpperCase()), k = typeof d == "object" && d && d.toString ===
|
|
26
|
+
const x = f.charCodeAt(0) === 64, P = x && Array.isArray(p[f]) ? p[f] : [p[f]];
|
|
27
|
+
for (d of P) {
|
|
28
|
+
const S = /[A-Z]/.test(h = f) ? h : h.replace(/-[^]/g, (C) => C[1].toUpperCase()), k = typeof d == "object" && d && d.toString === Zn && (!o.utils[S] || !g.length);
|
|
28
29
|
if (S in o.utils && !k) {
|
|
29
30
|
const C = o.utils[S];
|
|
30
31
|
if (C !== s) {
|
|
31
32
|
s = C, m(C(d)), s = null;
|
|
32
33
|
continue;
|
|
33
34
|
}
|
|
34
|
-
} else if (S in
|
|
35
|
-
const C =
|
|
35
|
+
} else if (S in Tt) {
|
|
36
|
+
const C = Tt[S];
|
|
36
37
|
if (C !== l) {
|
|
37
38
|
l = C, m(C(d)), l = null;
|
|
38
39
|
continue;
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
|
-
if (x && (w = f.slice(1) in o.media ? "@media " + o.media[f.slice(1)] : f, f = w.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g, (C,
|
|
42
|
-
const M = nt.test(
|
|
42
|
+
if (x && (w = f.slice(1) in o.media ? "@media " + o.media[f.slice(1)] : f, f = w.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g, (C, B, T, D, A, L) => {
|
|
43
|
+
const M = nt.test(B), O = 0.0625 * (M ? -1 : 1), [b, v] = M ? [D, B] : [B, D];
|
|
43
44
|
return "(" + (T[0] === "=" ? "" : T[0] === ">" === M ? "max-" : "min-") + b + ":" + (T[0] !== "=" && T.length === 1 ? v.replace(nt, (I, R, $) => Number(R) + O * (T === ">" ? 1 : -1) + $) : v) + (A ? ") and (" + (A[0] === ">" ? "min-" : "max-") + b + ":" + (A.length === 1 ? L.replace(nt, (I, R, $) => Number(R) + O * (A === ">" ? -1 : 1) + $) : L) : "") + ")";
|
|
44
45
|
})), k) {
|
|
45
|
-
const C = x ? u.concat(f) : [...u],
|
|
46
|
-
i !== void 0 && r(
|
|
46
|
+
const C = x ? u.concat(f) : [...u], B = x ? [...g] : Kn(g, f.split(qn));
|
|
47
|
+
i !== void 0 && r(It(...i)), i = void 0, a(d, B, C);
|
|
47
48
|
} else
|
|
48
|
-
i === void 0 && (i = [[], g, u]), f = x || f.charCodeAt(0) !== 36 ? f : `--${ne(o.prefix)}${f.slice(1).replace(/\$/g, "-")}`, d = k ? d : typeof d == "number" ? d && S in
|
|
49
|
+
i === void 0 && (i = [[], g, u]), f = x || f.charCodeAt(0) !== 36 ? f : `--${ne(o.prefix)}${f.slice(1).replace(/\$/g, "-")}`, d = k ? d : typeof d == "number" ? d && S in Jn ? String(d) + "px" : String(d) : sn(Gn(S, d ?? ""), o.prefix, o.themeMap[S]), i[0].push(`${x ? `${f} ` : `${ct(f)}:`}${d}`);
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
52
|
var w, h;
|
|
52
53
|
};
|
|
53
|
-
m(c), i !== void 0 && r(
|
|
54
|
+
m(c), i !== void 0 && r(It(...i)), i = void 0;
|
|
54
55
|
};
|
|
55
56
|
a(e, t, n);
|
|
56
|
-
},
|
|
57
|
+
}, It = (e, t, n) => `${n.map((o) => `${o}{`).join("")}${t.length ? `${t.join(",")}{` : ""}${e.join(";")}${t.length ? "}" : ""}${Array(n.length ? n.length + 1 : 0).join("}")}`, Jn = { animationDelay: 1, animationDuration: 1, backgroundSize: 1, blockSize: 1, border: 1, borderBlock: 1, borderBlockEnd: 1, borderBlockEndWidth: 1, borderBlockStart: 1, borderBlockStartWidth: 1, borderBlockWidth: 1, borderBottom: 1, borderBottomLeftRadius: 1, borderBottomRightRadius: 1, borderBottomWidth: 1, borderEndEndRadius: 1, borderEndStartRadius: 1, borderInlineEnd: 1, borderInlineEndWidth: 1, borderInlineStart: 1, borderInlineStartWidth: 1, borderInlineWidth: 1, borderLeft: 1, borderLeftWidth: 1, borderRadius: 1, borderRight: 1, borderRightWidth: 1, borderSpacing: 1, borderStartEndRadius: 1, borderStartStartRadius: 1, borderTop: 1, borderTopLeftRadius: 1, borderTopRightRadius: 1, borderTopWidth: 1, borderWidth: 1, bottom: 1, columnGap: 1, columnRule: 1, columnRuleWidth: 1, columnWidth: 1, containIntrinsicSize: 1, flexBasis: 1, fontSize: 1, gap: 1, gridAutoColumns: 1, gridAutoRows: 1, gridTemplateColumns: 1, gridTemplateRows: 1, height: 1, inlineSize: 1, inset: 1, insetBlock: 1, insetBlockEnd: 1, insetBlockStart: 1, insetInline: 1, insetInlineEnd: 1, insetInlineStart: 1, left: 1, letterSpacing: 1, margin: 1, marginBlock: 1, marginBlockEnd: 1, marginBlockStart: 1, marginBottom: 1, marginInline: 1, marginInlineEnd: 1, marginInlineStart: 1, marginLeft: 1, marginRight: 1, marginTop: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, offsetDistance: 1, offsetRotate: 1, outline: 1, outlineOffset: 1, outlineWidth: 1, overflowClipMargin: 1, padding: 1, paddingBlock: 1, paddingBlockEnd: 1, paddingBlockStart: 1, paddingBottom: 1, paddingInline: 1, paddingInlineEnd: 1, paddingInlineStart: 1, paddingLeft: 1, paddingRight: 1, paddingTop: 1, perspective: 1, right: 1, rowGap: 1, scrollMargin: 1, scrollMarginBlock: 1, scrollMarginBlockEnd: 1, scrollMarginBlockStart: 1, scrollMarginBottom: 1, scrollMarginInline: 1, scrollMarginInlineEnd: 1, scrollMarginInlineStart: 1, scrollMarginLeft: 1, scrollMarginRight: 1, scrollMarginTop: 1, scrollPadding: 1, scrollPaddingBlock: 1, scrollPaddingBlockEnd: 1, scrollPaddingBlockStart: 1, scrollPaddingBottom: 1, scrollPaddingInline: 1, scrollPaddingInlineEnd: 1, scrollPaddingInlineStart: 1, scrollPaddingLeft: 1, scrollPaddingRight: 1, scrollPaddingTop: 1, shapeMargin: 1, textDecoration: 1, textDecorationThickness: 1, textIndent: 1, textUnderlineOffset: 1, top: 1, transitionDelay: 1, transitionDuration: 1, verticalAlign: 1, width: 1, wordSpacing: 1 }, Pt = (e) => String.fromCharCode(e + (e > 25 ? 39 : 97)), he = (e) => ((t) => {
|
|
57
58
|
let n, o = "";
|
|
58
59
|
for (n = Math.abs(t); n > 52; n = n / 52 | 0)
|
|
59
|
-
o =
|
|
60
|
-
return
|
|
60
|
+
o = Pt(n % 52) + o;
|
|
61
|
+
return Pt(n % 52) + o;
|
|
61
62
|
})(((t, n) => {
|
|
62
63
|
let o = n.length;
|
|
63
64
|
for (; o; )
|
|
64
65
|
t = 33 * t ^ n.charCodeAt(--o);
|
|
65
66
|
return t;
|
|
66
|
-
})(5381, JSON.stringify(e)) >>> 0), We = ["themed", "global", "styled", "onevar", "resonevar", "allvar", "inline"],
|
|
67
|
+
})(5381, JSON.stringify(e)) >>> 0), We = ["themed", "global", "styled", "onevar", "resonevar", "allvar", "inline"], Qn = (e) => {
|
|
67
68
|
if (e.href && !e.href.startsWith(location.origin))
|
|
68
69
|
return !1;
|
|
69
70
|
try {
|
|
@@ -71,7 +72,7 @@ var W = "colors", X = "sizes", E = "space", Hn = { gap: E, gridGap: E, columnGap
|
|
|
71
72
|
} catch {
|
|
72
73
|
return !1;
|
|
73
74
|
}
|
|
74
|
-
},
|
|
75
|
+
}, eo = (e) => {
|
|
75
76
|
let t;
|
|
76
77
|
const n = () => {
|
|
77
78
|
const { cssRules: r } = t.sheet;
|
|
@@ -103,7 +104,7 @@ var W = "colors", X = "sizes", E = "space", Hn = { gap: E, gridGap: E, columnGap
|
|
|
103
104
|
}
|
|
104
105
|
const r = Object(e).styleSheets || [];
|
|
105
106
|
for (const l of r)
|
|
106
|
-
if (
|
|
107
|
+
if (Qn(l)) {
|
|
107
108
|
for (let a = 0, c = l.cssRules; c[a]; ++a) {
|
|
108
109
|
const g = Object(c[a]);
|
|
109
110
|
if (g.type !== 1)
|
|
@@ -136,11 +137,11 @@ var W = "colors", X = "sizes", E = "space", Hn = { gap: E, gridGap: E, columnGap
|
|
|
136
137
|
const c = We[l + 1], g = s[c] ? s[c].index : i.cssRules.length;
|
|
137
138
|
i.insertRule("@media{}", g), i.insertRule(`--sxs{--sxs:${l}}`, g), s[a] = { group: i.cssRules[g + 1], index: g, cache: /* @__PURE__ */ new Set([l]) };
|
|
138
139
|
}
|
|
139
|
-
|
|
140
|
+
to(s[a]);
|
|
140
141
|
}
|
|
141
142
|
};
|
|
142
143
|
return o(), t;
|
|
143
|
-
},
|
|
144
|
+
}, to = (e) => {
|
|
144
145
|
const t = e.group;
|
|
145
146
|
let n = t.cssRules.length;
|
|
146
147
|
e.apply = (o) => {
|
|
@@ -149,7 +150,7 @@ var W = "colors", X = "sizes", E = "space", Hn = { gap: E, gridGap: E, columnGap
|
|
|
149
150
|
} catch {
|
|
150
151
|
}
|
|
151
152
|
};
|
|
152
|
-
}, ze = Symbol(),
|
|
153
|
+
}, ze = Symbol(), no = De(), Bt = (e, t) => no(e, () => (...n) => {
|
|
153
154
|
let o = { type: null, composers: /* @__PURE__ */ new Set() };
|
|
154
155
|
for (const r of n)
|
|
155
156
|
if (r != null)
|
|
@@ -158,20 +159,20 @@ var W = "colors", X = "sizes", E = "space", Hn = { gap: E, gridGap: E, columnGap
|
|
|
158
159
|
for (const i of r[pe].composers)
|
|
159
160
|
o.composers.add(i);
|
|
160
161
|
} else
|
|
161
|
-
r.constructor !== Object || r.$$typeof ? o.type == null && (o.type = r) : o.composers.add(
|
|
162
|
-
return o.type == null && (o.type = "span"), o.composers.size || o.composers.add(["PJLV", {}, [], [], {}, []]),
|
|
163
|
-
}),
|
|
162
|
+
r.constructor !== Object || r.$$typeof ? o.type == null && (o.type = r) : o.composers.add(oo(r, e));
|
|
163
|
+
return o.type == null && (o.type = "span"), o.composers.size || o.composers.add(["PJLV", {}, [], [], {}, []]), ro(e, o, t);
|
|
164
|
+
}), oo = ({ variants: e, compoundVariants: t, defaultVariants: n, ...o }, r) => {
|
|
164
165
|
const i = `${ne(r.prefix)}c-${he(o)}`, s = [], l = [], a = /* @__PURE__ */ Object.create(null), c = [];
|
|
165
166
|
for (const f in n)
|
|
166
167
|
a[f] = String(n[f]);
|
|
167
168
|
if (typeof e == "object" && e)
|
|
168
169
|
for (const f in e) {
|
|
169
|
-
g = a, u = f,
|
|
170
|
+
g = a, u = f, Yn.call(g, u) || (a[f] = "undefined");
|
|
170
171
|
const d = e[f];
|
|
171
172
|
for (const m in d) {
|
|
172
173
|
const p = { [f]: String(m) };
|
|
173
174
|
String(m) === "undefined" && c.push(f);
|
|
174
|
-
const w = d[m], h = [p, w, !
|
|
175
|
+
const w = d[m], h = [p, w, !kt(w)];
|
|
175
176
|
s.push(h);
|
|
176
177
|
}
|
|
177
178
|
}
|
|
@@ -182,12 +183,12 @@ var W = "colors", X = "sizes", E = "space", Hn = { gap: E, gridGap: E, columnGap
|
|
|
182
183
|
d = typeof d == "object" && d || {};
|
|
183
184
|
for (const w in m)
|
|
184
185
|
m[w] = String(m[w]);
|
|
185
|
-
const p = [m, d, !
|
|
186
|
+
const p = [m, d, !kt(d)];
|
|
186
187
|
l.push(p);
|
|
187
188
|
}
|
|
188
189
|
return [i, o, s, l, a, c];
|
|
189
|
-
},
|
|
190
|
-
const [o, r, i, s] =
|
|
190
|
+
}, ro = (e, t, n) => {
|
|
191
|
+
const [o, r, i, s] = io(t.composers), l = typeof t.type == "function" || t.type.$$typeof ? ((u) => {
|
|
191
192
|
function f() {
|
|
192
193
|
for (let d = 0; d < f[ze].length; d++) {
|
|
193
194
|
const [m, p] = f[ze][d];
|
|
@@ -197,7 +198,7 @@ var W = "colors", X = "sizes", E = "space", Hn = { gap: E, gridGap: E, columnGap
|
|
|
197
198
|
}
|
|
198
199
|
return f[ze] = [], f.rules = {}, We.forEach((d) => f.rules[d] = { apply: (m) => f[ze].push([d, m]) }), f;
|
|
199
200
|
})(n) : null, a = (l || n).rules, c = `.${o}${r.length > 1 ? `:where(.${r.slice(1).join(".")})` : ""}`, g = (u) => {
|
|
200
|
-
u = typeof u == "object" && u ||
|
|
201
|
+
u = typeof u == "object" && u || so;
|
|
201
202
|
const { css: f, ...d } = u, m = {};
|
|
202
203
|
for (const h in i)
|
|
203
204
|
if (delete d[h], h in u) {
|
|
@@ -206,14 +207,14 @@ var W = "colors", X = "sizes", E = "space", Hn = { gap: E, gridGap: E, columnGap
|
|
|
206
207
|
} else
|
|
207
208
|
m[h] = i[h];
|
|
208
209
|
const p = /* @__PURE__ */ new Set([...r]);
|
|
209
|
-
for (const [h, x,
|
|
210
|
-
n.rules.styled.cache.has(h) || (n.rules.styled.cache.add(h), Te(x, [`.${h}`], [], e, (
|
|
211
|
-
a.styled.apply(
|
|
210
|
+
for (const [h, x, P, S] of t.composers) {
|
|
211
|
+
n.rules.styled.cache.has(h) || (n.rules.styled.cache.add(h), Te(x, [`.${h}`], [], e, (B) => {
|
|
212
|
+
a.styled.apply(B);
|
|
212
213
|
}));
|
|
213
|
-
const k =
|
|
214
|
-
for (const
|
|
215
|
-
if (
|
|
216
|
-
for (const [T, D, A] of
|
|
214
|
+
const k = At(P, m, e.media), C = At(S, m, e.media, !0);
|
|
215
|
+
for (const B of k)
|
|
216
|
+
if (B !== void 0)
|
|
217
|
+
for (const [T, D, A] of B) {
|
|
217
218
|
const L = `${h}-${he(D)}-${T}`;
|
|
218
219
|
p.add(L);
|
|
219
220
|
const M = (A ? n.rules.resonevar : n.rules.onevar).cache, O = A ? a.resonevar : a.onevar;
|
|
@@ -221,9 +222,9 @@ var W = "colors", X = "sizes", E = "space", Hn = { gap: E, gridGap: E, columnGap
|
|
|
221
222
|
O.apply(b);
|
|
222
223
|
}));
|
|
223
224
|
}
|
|
224
|
-
for (const
|
|
225
|
-
if (
|
|
226
|
-
for (const [T, D] of
|
|
225
|
+
for (const B of C)
|
|
226
|
+
if (B !== void 0)
|
|
227
|
+
for (const [T, D] of B) {
|
|
227
228
|
const A = `${h}-${he(D)}-${T}`;
|
|
228
229
|
p.add(A), n.rules.allvar.cache.has(A) || (n.rules.allvar.cache.add(A), Te(D, [`.${A}`], [], e, (L) => {
|
|
229
230
|
a.allvar.apply(L);
|
|
@@ -241,8 +242,8 @@ var W = "colors", X = "sizes", E = "space", Hn = { gap: E, gridGap: E, columnGap
|
|
|
241
242
|
const w = d.className = [...p].join(" ");
|
|
242
243
|
return { type: t.type, className: w, selector: c, props: d, toString: () => w, deferredInjector: l };
|
|
243
244
|
};
|
|
244
|
-
return
|
|
245
|
-
},
|
|
245
|
+
return ht(g, { className: o, selector: c, [pe]: t, toString: () => (n.rules.styled.cache.has(o) || g(), o) });
|
|
246
|
+
}, io = (e) => {
|
|
246
247
|
let t = "";
|
|
247
248
|
const n = [], o = {}, r = [];
|
|
248
249
|
for (const [i, , , , s, l] of e) {
|
|
@@ -253,7 +254,7 @@ var W = "colors", X = "sizes", E = "space", Hn = { gap: E, gridGap: E, columnGap
|
|
|
253
254
|
}
|
|
254
255
|
}
|
|
255
256
|
return [t, n, o, new Set(r)];
|
|
256
|
-
},
|
|
257
|
+
}, At = (e, t, n, o) => {
|
|
257
258
|
const r = [];
|
|
258
259
|
e:
|
|
259
260
|
for (let [i, s, l] of e) {
|
|
@@ -286,7 +287,7 @@ var W = "colors", X = "sizes", E = "space", Hn = { gap: E, gridGap: E, columnGap
|
|
|
286
287
|
(r[c] = r[c] || []).push([o ? "cv" : `${a}-${i[a]}`, s, g]);
|
|
287
288
|
}
|
|
288
289
|
return r;
|
|
289
|
-
},
|
|
290
|
+
}, so = {}, lo = De(), ao = (e, t) => lo(e, () => (...n) => {
|
|
290
291
|
const o = () => {
|
|
291
292
|
for (let r of n) {
|
|
292
293
|
r = typeof r == "object" && r || {};
|
|
@@ -305,8 +306,8 @@ var W = "colors", X = "sizes", E = "space", Hn = { gap: E, gridGap: E, columnGap
|
|
|
305
306
|
}
|
|
306
307
|
return "";
|
|
307
308
|
};
|
|
308
|
-
return
|
|
309
|
-
}),
|
|
309
|
+
return ht(o, { toString: o });
|
|
310
|
+
}), co = De(), uo = (e, t) => co(e, () => (n) => {
|
|
310
311
|
const o = `${ne(e.prefix)}k-${he(n)}`, r = () => {
|
|
311
312
|
if (!t.rules.global.cache.has(o)) {
|
|
312
313
|
t.rules.global.cache.add(o);
|
|
@@ -317,10 +318,10 @@ var W = "colors", X = "sizes", E = "space", Hn = { gap: E, gridGap: E, columnGap
|
|
|
317
318
|
}
|
|
318
319
|
return o;
|
|
319
320
|
};
|
|
320
|
-
return
|
|
321
|
+
return ht(r, { get name() {
|
|
321
322
|
return r();
|
|
322
323
|
}, toString: r });
|
|
323
|
-
}),
|
|
324
|
+
}), fo = class {
|
|
324
325
|
constructor(e, t, n, o) {
|
|
325
326
|
this.token = e == null ? "" : String(e), this.value = t == null ? "" : String(t), this.scale = n == null ? "" : String(n), this.prefix = o == null ? "" : String(o);
|
|
326
327
|
}
|
|
@@ -333,14 +334,14 @@ var W = "colors", X = "sizes", E = "space", Hn = { gap: E, gridGap: E, columnGap
|
|
|
333
334
|
toString() {
|
|
334
335
|
return this.computedValue;
|
|
335
336
|
}
|
|
336
|
-
},
|
|
337
|
+
}, go = De(), mo = (e, t) => go(e, () => (n, o) => {
|
|
337
338
|
o = typeof n == "object" && n || Object(o);
|
|
338
339
|
const r = `.${n = (n = typeof n == "string" ? n : "") || `${ne(e.prefix)}t-${he(o)}`}`, i = {}, s = [];
|
|
339
340
|
for (const a in o) {
|
|
340
341
|
i[a] = {};
|
|
341
342
|
for (const c in o[a]) {
|
|
342
|
-
const g = `--${ne(e.prefix)}${a}-${c}`, u =
|
|
343
|
-
i[a][c] = new
|
|
343
|
+
const g = `--${ne(e.prefix)}${a}-${c}`, u = sn(String(o[a][c]), e.prefix, a);
|
|
344
|
+
i[a][c] = new fo(c, u, a, e.prefix), s.push(`${g}:${u}`);
|
|
344
345
|
}
|
|
345
346
|
}
|
|
346
347
|
const l = () => {
|
|
@@ -354,19 +355,19 @@ var W = "colors", X = "sizes", E = "space", Hn = { gap: E, gridGap: E, columnGap
|
|
|
354
355
|
return { ...i, get className() {
|
|
355
356
|
return l();
|
|
356
357
|
}, selector: r, toString: l };
|
|
357
|
-
}),
|
|
358
|
+
}), po = De(), ho = De(), bo = (e) => {
|
|
358
359
|
const t = ((n) => {
|
|
359
360
|
let o = !1;
|
|
360
|
-
const r =
|
|
361
|
+
const r = po(n, (i) => {
|
|
361
362
|
o = !0;
|
|
362
|
-
const s = "prefix" in (i = typeof i == "object" && i || {}) ? String(i.prefix) : "", l = typeof i.media == "object" && i.media || {}, a = typeof i.root == "object" ? i.root || null : globalThis.document || null, c = typeof i.theme == "object" && i.theme || {}, g = { prefix: s, media: l, theme: c, themeMap: typeof i.themeMap == "object" && i.themeMap || { ...
|
|
363
|
+
const s = "prefix" in (i = typeof i == "object" && i || {}) ? String(i.prefix) : "", l = typeof i.media == "object" && i.media || {}, a = typeof i.root == "object" ? i.root || null : globalThis.document || null, c = typeof i.theme == "object" && i.theme || {}, g = { prefix: s, media: l, theme: c, themeMap: typeof i.themeMap == "object" && i.themeMap || { ...Vn }, utils: typeof i.utils == "object" && i.utils || {} }, u = eo(a), f = { css: Bt(g, u), globalCss: ao(g, u), keyframes: uo(g, u), createTheme: mo(g, u), reset() {
|
|
363
364
|
u.reset(), f.theme.toString();
|
|
364
365
|
}, theme: {}, sheet: u, config: g, prefix: s, getCssText: u.toString, toString: u.toString };
|
|
365
366
|
return String(f.theme = f.createTheme(c)), f;
|
|
366
367
|
});
|
|
367
368
|
return o || r.reset(), r;
|
|
368
369
|
})(e);
|
|
369
|
-
return t.styled = (({ config: n, sheet: o }) =>
|
|
370
|
+
return t.styled = (({ config: n, sheet: o }) => ho(n, () => {
|
|
370
371
|
const r = Bt(n, o);
|
|
371
372
|
return (...i) => {
|
|
372
373
|
const s = r(...i), l = s[pe].type, a = Se.forwardRef((c, g) => {
|
|
@@ -377,8 +378,8 @@ var W = "colors", X = "sizes", E = "space", Hn = { gap: E, gridGap: E, columnGap
|
|
|
377
378
|
};
|
|
378
379
|
}))(t), t;
|
|
379
380
|
};
|
|
380
|
-
let
|
|
381
|
-
const
|
|
381
|
+
let Ot = 9999;
|
|
382
|
+
const Dt = () => (Ot--, Ot), { styled: j, css: He, keyframes: Me, globalCss: Oi, getCssText: Di } = bo({
|
|
382
383
|
theme: {
|
|
383
384
|
colors: {
|
|
384
385
|
gray50: "#F9FAFA",
|
|
@@ -496,32 +497,32 @@ const Ot = () => (At--, At), { styled: j, css: He, keyframes: Me, globalCss: Ti,
|
|
|
496
497
|
* By using createLayerBelow() we can order the list of layers.
|
|
497
498
|
* Layers higher up will be on top of layers lower down.
|
|
498
499
|
*/
|
|
499
|
-
toast:
|
|
500
|
-
overlayCard:
|
|
500
|
+
toast: Dt(),
|
|
501
|
+
overlayCard: Dt()
|
|
501
502
|
}
|
|
502
503
|
},
|
|
503
504
|
media: {
|
|
504
505
|
lg: "(min-width: 1200px)",
|
|
505
506
|
print: "print"
|
|
506
507
|
}
|
|
507
|
-
}),
|
|
508
|
+
}), yo = Me({
|
|
508
509
|
"0%": {
|
|
509
510
|
transform: "rotate(0)"
|
|
510
511
|
},
|
|
511
512
|
"100%": {
|
|
512
513
|
transform: "rotate(360deg)"
|
|
513
514
|
}
|
|
514
|
-
}),
|
|
515
|
+
}), vo = Me({
|
|
515
516
|
"0%": {
|
|
516
517
|
strokeDashoffset: 600
|
|
517
518
|
},
|
|
518
519
|
"100%": {
|
|
519
520
|
strokeDashoffset: 0
|
|
520
521
|
}
|
|
521
|
-
}),
|
|
522
|
-
animation: `${
|
|
523
|
-
}),
|
|
524
|
-
animation: `${
|
|
522
|
+
}), xo = j("svg", {
|
|
523
|
+
animation: `${yo} 2s linear infinite`
|
|
524
|
+
}), wo = j("circle", {
|
|
525
|
+
animation: `${vo} 1.6s cubic-bezier(0.4, 0.15, 0.6, 0.85) infinite`,
|
|
525
526
|
fill: "transparent",
|
|
526
527
|
stroke: "currentColor",
|
|
527
528
|
strokeDasharray: 300,
|
|
@@ -529,7 +530,7 @@ const Ot = () => (At--, At), { styled: j, css: He, keyframes: Me, globalCss: Ti,
|
|
|
529
530
|
strokeLinecap: "round",
|
|
530
531
|
strokeMiterlimit: 10,
|
|
531
532
|
strokeWidth: 12
|
|
532
|
-
}),
|
|
533
|
+
}), $o = j("div", {
|
|
533
534
|
lineHeight: 0,
|
|
534
535
|
flexShrink: 0,
|
|
535
536
|
variants: {
|
|
@@ -567,20 +568,20 @@ const Ot = () => (At--, At), { styled: j, css: He, keyframes: Me, globalCss: Ti,
|
|
|
567
568
|
size: "sm",
|
|
568
569
|
color: "dark"
|
|
569
570
|
}
|
|
570
|
-
}),
|
|
571
|
+
}), So = xe(
|
|
571
572
|
(e, t) => /* @__PURE__ */ z(
|
|
572
|
-
|
|
573
|
+
$o,
|
|
573
574
|
{
|
|
574
575
|
ref: t,
|
|
575
576
|
...e,
|
|
576
577
|
children: /* @__PURE__ */ z(
|
|
577
|
-
|
|
578
|
+
xo,
|
|
578
579
|
{
|
|
579
580
|
x: "0px",
|
|
580
581
|
y: "0px",
|
|
581
582
|
viewBox: "0 0 150 150",
|
|
582
583
|
children: /* @__PURE__ */ z(
|
|
583
|
-
|
|
584
|
+
wo,
|
|
584
585
|
{
|
|
585
586
|
cx: "75",
|
|
586
587
|
cy: "75",
|
|
@@ -591,7 +592,7 @@ const Ot = () => (At--, At), { styled: j, css: He, keyframes: Me, globalCss: Ti,
|
|
|
591
592
|
)
|
|
592
593
|
}
|
|
593
594
|
)
|
|
594
|
-
),
|
|
595
|
+
), Ro = j("button", {
|
|
595
596
|
appearance: "none",
|
|
596
597
|
margin: 0,
|
|
597
598
|
padding: 0,
|
|
@@ -665,6 +666,11 @@ const Ot = () => (At--, At), { styled: j, css: He, keyframes: Me, globalCss: Ti,
|
|
|
665
666
|
}
|
|
666
667
|
},
|
|
667
668
|
size: {
|
|
669
|
+
sm: {
|
|
670
|
+
fontSize: "$sm",
|
|
671
|
+
padding: "$1 $2",
|
|
672
|
+
height: "1.75rem"
|
|
673
|
+
},
|
|
668
674
|
md: {
|
|
669
675
|
fontSize: "$sm",
|
|
670
676
|
padding: "$2 $4",
|
|
@@ -714,6 +720,14 @@ const Ot = () => (At--, At), { styled: j, css: He, keyframes: Me, globalCss: Ti,
|
|
|
714
720
|
}
|
|
715
721
|
},
|
|
716
722
|
compoundVariants: [
|
|
723
|
+
{
|
|
724
|
+
icon: !0,
|
|
725
|
+
size: "sm",
|
|
726
|
+
css: {
|
|
727
|
+
padding: "$1",
|
|
728
|
+
width: "1.75rem"
|
|
729
|
+
}
|
|
730
|
+
},
|
|
717
731
|
{
|
|
718
732
|
icon: !0,
|
|
719
733
|
size: "md",
|
|
@@ -736,9 +750,9 @@ const Ot = () => (At--, At), { styled: j, css: He, keyframes: Me, globalCss: Ti,
|
|
|
736
750
|
color: "secondary",
|
|
737
751
|
size: "md"
|
|
738
752
|
}
|
|
739
|
-
}),
|
|
740
|
-
({ children: e, disabled: t, isLoading: n, variant: o, color: r, ...i }, s) => (!r && o === "primary" && (r = "primary"), /* @__PURE__ */
|
|
741
|
-
|
|
753
|
+
}), ln = xe(
|
|
754
|
+
({ children: e, disabled: t, isLoading: n, variant: o, color: r, ...i }, s) => (!r && o === "primary" && (r = "primary"), /* @__PURE__ */ Be(
|
|
755
|
+
Ro,
|
|
742
756
|
{
|
|
743
757
|
ref: s,
|
|
744
758
|
type: "button",
|
|
@@ -749,11 +763,11 @@ const Ot = () => (At--, At), { styled: j, css: He, keyframes: Me, globalCss: Ti,
|
|
|
749
763
|
...i,
|
|
750
764
|
children: [
|
|
751
765
|
e,
|
|
752
|
-
n && /* @__PURE__ */ z(
|
|
766
|
+
n && /* @__PURE__ */ z(So, { color: "inherit" })
|
|
753
767
|
]
|
|
754
768
|
}
|
|
755
769
|
))
|
|
756
|
-
),
|
|
770
|
+
), Eo = j("div", {
|
|
757
771
|
padding: "$3",
|
|
758
772
|
borderRadius: "$md",
|
|
759
773
|
variants: {
|
|
@@ -792,9 +806,9 @@ const Ot = () => (At--, At), { styled: j, css: He, keyframes: Me, globalCss: Ti,
|
|
|
792
806
|
color: "info",
|
|
793
807
|
size: "md"
|
|
794
808
|
}
|
|
795
|
-
}),
|
|
809
|
+
}), Mi = xe(
|
|
796
810
|
({ children: e, ...t }, n) => /* @__PURE__ */ z(
|
|
797
|
-
|
|
811
|
+
Eo,
|
|
798
812
|
{
|
|
799
813
|
ref: n,
|
|
800
814
|
role: "alert",
|
|
@@ -802,19 +816,19 @@ const Ot = () => (At--, At), { styled: j, css: He, keyframes: Me, globalCss: Ti,
|
|
|
802
816
|
children: e
|
|
803
817
|
}
|
|
804
818
|
)
|
|
805
|
-
),
|
|
819
|
+
), Co = Me({
|
|
806
820
|
"0%": { opacity: 0, transform: "translateY(0.5rem)" },
|
|
807
821
|
"100%": { opacity: 1, transform: "translateY(0)" }
|
|
808
|
-
}),
|
|
822
|
+
}), ko = Me({
|
|
809
823
|
"0%": { opacity: 0, transform: "translateX(-0.5rem)" },
|
|
810
824
|
"100%": { opacity: 1, transform: "translateX(0)" }
|
|
811
|
-
}),
|
|
825
|
+
}), To = Me({
|
|
812
826
|
"0%": { opacity: 0, transform: "translateY(-0.5rem)" },
|
|
813
827
|
"100%": { opacity: 1, transform: "translateY(0)" }
|
|
814
|
-
}),
|
|
828
|
+
}), Io = Me({
|
|
815
829
|
"0%": { opacity: 0, transform: "translateX(0.5rem)" },
|
|
816
830
|
"100%": { opacity: 1, transform: "translateX(0)" }
|
|
817
|
-
}),
|
|
831
|
+
}), Po = He({
|
|
818
832
|
backgroundColor: "white",
|
|
819
833
|
boxShadow: "$overlayCard",
|
|
820
834
|
borderRadius: "$sm",
|
|
@@ -829,18 +843,18 @@ const Ot = () => (At--, At), { styled: j, css: He, keyframes: Me, globalCss: Ti,
|
|
|
829
843
|
animationTimingFunction: "cubic-bezier(0.16, 1, 0.3, 1)",
|
|
830
844
|
willChange: "transform, opacity",
|
|
831
845
|
'&[data-state="open"]': {
|
|
832
|
-
'&[data-side="top"]': { animationName:
|
|
833
|
-
'&[data-side="right"]': { animationName:
|
|
834
|
-
'&[data-side="bottom"]': { animationName:
|
|
835
|
-
'&[data-side="left"]': { animationName:
|
|
846
|
+
'&[data-side="top"]': { animationName: To },
|
|
847
|
+
'&[data-side="right"]': { animationName: Io },
|
|
848
|
+
'&[data-side="bottom"]': { animationName: Co },
|
|
849
|
+
'&[data-side="left"]': { animationName: ko }
|
|
836
850
|
}
|
|
837
|
-
}),
|
|
851
|
+
}), an = j(
|
|
838
852
|
"div",
|
|
839
|
-
|
|
853
|
+
Po,
|
|
840
854
|
Bo
|
|
841
855
|
);
|
|
842
856
|
function se(e) {
|
|
843
|
-
return
|
|
857
|
+
return cn(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
844
858
|
}
|
|
845
859
|
function q(e) {
|
|
846
860
|
var t;
|
|
@@ -848,9 +862,9 @@ function q(e) {
|
|
|
848
862
|
}
|
|
849
863
|
function re(e) {
|
|
850
864
|
var t;
|
|
851
|
-
return (t = (
|
|
865
|
+
return (t = (cn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
852
866
|
}
|
|
853
|
-
function
|
|
867
|
+
function cn(e) {
|
|
854
868
|
return e instanceof Node || e instanceof q(e).Node;
|
|
855
869
|
}
|
|
856
870
|
function N(e) {
|
|
@@ -859,7 +873,7 @@ function N(e) {
|
|
|
859
873
|
function Z(e) {
|
|
860
874
|
return e instanceof HTMLElement || e instanceof q(e).HTMLElement;
|
|
861
875
|
}
|
|
862
|
-
function
|
|
876
|
+
function ut(e) {
|
|
863
877
|
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
|
|
864
878
|
}
|
|
865
879
|
function Ve(e) {
|
|
@@ -871,23 +885,23 @@ function Ve(e) {
|
|
|
871
885
|
} = J(e);
|
|
872
886
|
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(r);
|
|
873
887
|
}
|
|
874
|
-
function
|
|
888
|
+
function Ao(e) {
|
|
875
889
|
return ["table", "td", "th"].includes(se(e));
|
|
876
890
|
}
|
|
877
|
-
function
|
|
878
|
-
const t =
|
|
891
|
+
function bt(e) {
|
|
892
|
+
const t = yt(), n = J(e);
|
|
879
893
|
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
|
|
880
894
|
}
|
|
881
|
-
function
|
|
895
|
+
function Oo(e) {
|
|
882
896
|
let t = ye(e);
|
|
883
897
|
for (; Z(t) && !Ae(t); ) {
|
|
884
|
-
if (
|
|
898
|
+
if (bt(t))
|
|
885
899
|
return t;
|
|
886
900
|
t = ye(t);
|
|
887
901
|
}
|
|
888
902
|
return null;
|
|
889
903
|
}
|
|
890
|
-
function
|
|
904
|
+
function yt() {
|
|
891
905
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
892
906
|
}
|
|
893
907
|
function Ae(e) {
|
|
@@ -912,22 +926,22 @@ function ye(e) {
|
|
|
912
926
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
913
927
|
e.assignedSlot || // DOM Element detected.
|
|
914
928
|
e.parentNode || // ShadowRoot detected.
|
|
915
|
-
|
|
929
|
+
ut(e) && e.host || // Fallback.
|
|
916
930
|
re(e)
|
|
917
931
|
);
|
|
918
|
-
return
|
|
932
|
+
return ut(t) ? t.host : t;
|
|
919
933
|
}
|
|
920
|
-
function
|
|
934
|
+
function un(e) {
|
|
921
935
|
const t = ye(e);
|
|
922
|
-
return Ae(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Z(t) && Ve(t) ? t :
|
|
936
|
+
return Ae(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Z(t) && Ve(t) ? t : un(t);
|
|
923
937
|
}
|
|
924
938
|
function ie(e, t, n) {
|
|
925
939
|
var o;
|
|
926
940
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
927
|
-
const r =
|
|
941
|
+
const r = un(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), s = q(r);
|
|
928
942
|
return i ? t.concat(s, s.visualViewport || [], Ve(r) ? r : [], s.frameElement && n ? ie(s.frameElement) : []) : t.concat(r, ie(r, [], n));
|
|
929
943
|
}
|
|
930
|
-
function
|
|
944
|
+
function Do(e) {
|
|
931
945
|
let t = e.activeElement;
|
|
932
946
|
for (; ((n = t) == null || (n = n.shadowRoot) == null ? void 0 : n.activeElement) != null; ) {
|
|
933
947
|
var n;
|
|
@@ -941,7 +955,7 @@ function be(e, t) {
|
|
|
941
955
|
const n = t.getRootNode == null ? void 0 : t.getRootNode();
|
|
942
956
|
if (e.contains(t))
|
|
943
957
|
return !0;
|
|
944
|
-
if (n &&
|
|
958
|
+
if (n && ut(n)) {
|
|
945
959
|
let o = t;
|
|
946
960
|
for (; o; ) {
|
|
947
961
|
if (e === o)
|
|
@@ -951,17 +965,17 @@ function be(e, t) {
|
|
|
951
965
|
}
|
|
952
966
|
return !1;
|
|
953
967
|
}
|
|
954
|
-
function
|
|
968
|
+
function Mo() {
|
|
955
969
|
return /apple/i.test(navigator.vendor);
|
|
956
970
|
}
|
|
957
971
|
function Ge(e, t) {
|
|
958
972
|
const n = ["mouse", "pen"];
|
|
959
973
|
return t || n.push("", void 0), n.includes(e);
|
|
960
974
|
}
|
|
961
|
-
function
|
|
975
|
+
function Lo(e) {
|
|
962
976
|
return "nativeEvent" in e;
|
|
963
977
|
}
|
|
964
|
-
function
|
|
978
|
+
function Fo(e) {
|
|
965
979
|
return e.matches("html,body");
|
|
966
980
|
}
|
|
967
981
|
function me(e) {
|
|
@@ -978,23 +992,23 @@ function ot(e, t) {
|
|
|
978
992
|
function Ce(e) {
|
|
979
993
|
return "composedPath" in e ? e.composedPath()[0] : e.target;
|
|
980
994
|
}
|
|
981
|
-
const
|
|
982
|
-
function
|
|
983
|
-
return Z(e) && e.matches(
|
|
995
|
+
const zo = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
|
|
996
|
+
function Wo(e) {
|
|
997
|
+
return Z(e) && e.matches(zo);
|
|
984
998
|
}
|
|
985
999
|
const oe = Math.min, Y = Math.max, Ue = Math.round, Ye = Math.floor, le = (e) => ({
|
|
986
1000
|
x: e,
|
|
987
1001
|
y: e
|
|
988
|
-
}),
|
|
1002
|
+
}), No = {
|
|
989
1003
|
left: "right",
|
|
990
1004
|
right: "left",
|
|
991
1005
|
bottom: "top",
|
|
992
1006
|
top: "bottom"
|
|
993
|
-
},
|
|
1007
|
+
}, jo = {
|
|
994
1008
|
start: "end",
|
|
995
1009
|
end: "start"
|
|
996
1010
|
};
|
|
997
|
-
function
|
|
1011
|
+
function Mt(e, t, n) {
|
|
998
1012
|
return Y(e, oe(t, n));
|
|
999
1013
|
}
|
|
1000
1014
|
function Le(e, t) {
|
|
@@ -1006,32 +1020,32 @@ function ee(e) {
|
|
|
1006
1020
|
function _e(e) {
|
|
1007
1021
|
return e.split("-")[1];
|
|
1008
1022
|
}
|
|
1009
|
-
function
|
|
1023
|
+
function dn(e) {
|
|
1010
1024
|
return e === "x" ? "y" : "x";
|
|
1011
1025
|
}
|
|
1012
|
-
function
|
|
1026
|
+
function fn(e) {
|
|
1013
1027
|
return e === "y" ? "height" : "width";
|
|
1014
1028
|
}
|
|
1015
1029
|
function Fe(e) {
|
|
1016
1030
|
return ["top", "bottom"].includes(ee(e)) ? "y" : "x";
|
|
1017
1031
|
}
|
|
1018
|
-
function
|
|
1019
|
-
return
|
|
1032
|
+
function gn(e) {
|
|
1033
|
+
return dn(Fe(e));
|
|
1020
1034
|
}
|
|
1021
|
-
function
|
|
1035
|
+
function Ho(e, t, n) {
|
|
1022
1036
|
n === void 0 && (n = !1);
|
|
1023
|
-
const o = _e(e), r =
|
|
1037
|
+
const o = _e(e), r = gn(e), i = fn(r);
|
|
1024
1038
|
let s = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
1025
1039
|
return t.reference[i] > t.floating[i] && (s = qe(s)), [s, qe(s)];
|
|
1026
1040
|
}
|
|
1027
|
-
function
|
|
1041
|
+
function Vo(e) {
|
|
1028
1042
|
const t = qe(e);
|
|
1029
|
-
return [
|
|
1043
|
+
return [dt(e), t, dt(t)];
|
|
1030
1044
|
}
|
|
1031
|
-
function
|
|
1032
|
-
return e.replace(/start|end/g, (t) =>
|
|
1045
|
+
function dt(e) {
|
|
1046
|
+
return e.replace(/start|end/g, (t) => jo[t]);
|
|
1033
1047
|
}
|
|
1034
|
-
function
|
|
1048
|
+
function _o(e, t, n) {
|
|
1035
1049
|
const o = ["left", "right"], r = ["right", "left"], i = ["top", "bottom"], s = ["bottom", "top"];
|
|
1036
1050
|
switch (e) {
|
|
1037
1051
|
case "top":
|
|
@@ -1044,15 +1058,15 @@ function Vo(e, t, n) {
|
|
|
1044
1058
|
return [];
|
|
1045
1059
|
}
|
|
1046
1060
|
}
|
|
1047
|
-
function
|
|
1061
|
+
function Yo(e, t, n, o) {
|
|
1048
1062
|
const r = _e(e);
|
|
1049
|
-
let i =
|
|
1050
|
-
return r && (i = i.map((s) => s + "-" + r), t && (i = i.concat(i.map(
|
|
1063
|
+
let i = _o(ee(e), n === "start", o);
|
|
1064
|
+
return r && (i = i.map((s) => s + "-" + r), t && (i = i.concat(i.map(dt)))), i;
|
|
1051
1065
|
}
|
|
1052
1066
|
function qe(e) {
|
|
1053
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
1067
|
+
return e.replace(/left|right|bottom|top/g, (t) => No[t]);
|
|
1054
1068
|
}
|
|
1055
|
-
function
|
|
1069
|
+
function Xo(e) {
|
|
1056
1070
|
return {
|
|
1057
1071
|
top: 0,
|
|
1058
1072
|
right: 0,
|
|
@@ -1061,8 +1075,8 @@ function Yo(e) {
|
|
|
1061
1075
|
...e
|
|
1062
1076
|
};
|
|
1063
1077
|
}
|
|
1064
|
-
function
|
|
1065
|
-
return typeof e != "number" ?
|
|
1078
|
+
function mn(e) {
|
|
1079
|
+
return typeof e != "number" ? Xo(e) : {
|
|
1066
1080
|
top: e,
|
|
1067
1081
|
right: e,
|
|
1068
1082
|
bottom: e,
|
|
@@ -1078,12 +1092,12 @@ function Oe(e) {
|
|
|
1078
1092
|
bottom: e.y + e.height
|
|
1079
1093
|
};
|
|
1080
1094
|
}
|
|
1081
|
-
function
|
|
1095
|
+
function Lt(e, t, n) {
|
|
1082
1096
|
let {
|
|
1083
1097
|
reference: o,
|
|
1084
1098
|
floating: r
|
|
1085
1099
|
} = e;
|
|
1086
|
-
const i = Fe(t), s =
|
|
1100
|
+
const i = Fe(t), s = gn(t), l = fn(s), a = ee(t), c = i === "y", g = o.x + o.width / 2 - r.width / 2, u = o.y + o.height / 2 - r.height / 2, f = o[l] / 2 - r[l] / 2;
|
|
1087
1101
|
let d;
|
|
1088
1102
|
switch (a) {
|
|
1089
1103
|
case "top":
|
|
@@ -1126,7 +1140,7 @@ function Mt(e, t, n) {
|
|
|
1126
1140
|
}
|
|
1127
1141
|
return d;
|
|
1128
1142
|
}
|
|
1129
|
-
const
|
|
1143
|
+
const Ko = async (e, t, n) => {
|
|
1130
1144
|
const {
|
|
1131
1145
|
placement: o = "bottom",
|
|
1132
1146
|
strategy: r = "absolute",
|
|
@@ -1140,14 +1154,14 @@ const Xo = async (e, t, n) => {
|
|
|
1140
1154
|
}), {
|
|
1141
1155
|
x: g,
|
|
1142
1156
|
y: u
|
|
1143
|
-
} =
|
|
1157
|
+
} = Lt(c, o, a), f = o, d = {}, m = 0;
|
|
1144
1158
|
for (let p = 0; p < l.length; p++) {
|
|
1145
1159
|
const {
|
|
1146
1160
|
name: w,
|
|
1147
1161
|
fn: h
|
|
1148
1162
|
} = l[p], {
|
|
1149
1163
|
x,
|
|
1150
|
-
y:
|
|
1164
|
+
y: P,
|
|
1151
1165
|
data: S,
|
|
1152
1166
|
reset: k
|
|
1153
1167
|
} = await h({
|
|
@@ -1164,7 +1178,7 @@ const Xo = async (e, t, n) => {
|
|
|
1164
1178
|
floating: t
|
|
1165
1179
|
}
|
|
1166
1180
|
});
|
|
1167
|
-
g = x ?? g, u =
|
|
1181
|
+
g = x ?? g, u = P ?? u, d = {
|
|
1168
1182
|
...d,
|
|
1169
1183
|
[w]: {
|
|
1170
1184
|
...d[w],
|
|
@@ -1177,7 +1191,7 @@ const Xo = async (e, t, n) => {
|
|
|
1177
1191
|
}) : k.rects), {
|
|
1178
1192
|
x: g,
|
|
1179
1193
|
y: u
|
|
1180
|
-
} =
|
|
1194
|
+
} = Lt(c, f, a)), p = -1);
|
|
1181
1195
|
}
|
|
1182
1196
|
return {
|
|
1183
1197
|
x: g,
|
|
@@ -1187,7 +1201,7 @@ const Xo = async (e, t, n) => {
|
|
|
1187
1201
|
middlewareData: d
|
|
1188
1202
|
};
|
|
1189
1203
|
};
|
|
1190
|
-
async function
|
|
1204
|
+
async function vt(e, t) {
|
|
1191
1205
|
var n;
|
|
1192
1206
|
t === void 0 && (t = {});
|
|
1193
1207
|
const {
|
|
@@ -1203,7 +1217,7 @@ async function yt(e, t) {
|
|
|
1203
1217
|
elementContext: u = "floating",
|
|
1204
1218
|
altBoundary: f = !1,
|
|
1205
1219
|
padding: d = 0
|
|
1206
|
-
} = Le(t, e), m =
|
|
1220
|
+
} = Le(t, e), m = mn(d), w = l[f ? u === "floating" ? "reference" : "floating" : u], h = Oe(await i.getClippingRect({
|
|
1207
1221
|
element: (n = await (i.isElement == null ? void 0 : i.isElement(w))) == null || n ? w : w.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(l.floating)),
|
|
1208
1222
|
boundary: c,
|
|
1209
1223
|
rootBoundary: g,
|
|
@@ -1212,7 +1226,7 @@ async function yt(e, t) {
|
|
|
1212
1226
|
...s.floating,
|
|
1213
1227
|
x: o,
|
|
1214
1228
|
y: r
|
|
1215
|
-
} : s.reference,
|
|
1229
|
+
} : s.reference, P = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l.floating)), S = await (i.isElement == null ? void 0 : i.isElement(P)) ? await (i.getScale == null ? void 0 : i.getScale(P)) || {
|
|
1216
1230
|
x: 1,
|
|
1217
1231
|
y: 1
|
|
1218
1232
|
} : {
|
|
@@ -1221,7 +1235,7 @@ async function yt(e, t) {
|
|
|
1221
1235
|
}, k = Oe(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1222
1236
|
elements: l,
|
|
1223
1237
|
rect: x,
|
|
1224
|
-
offsetParent:
|
|
1238
|
+
offsetParent: P,
|
|
1225
1239
|
strategy: a
|
|
1226
1240
|
}) : x);
|
|
1227
1241
|
return {
|
|
@@ -1231,7 +1245,7 @@ async function yt(e, t) {
|
|
|
1231
1245
|
right: (k.right - h.right + m.right) / S.x
|
|
1232
1246
|
};
|
|
1233
1247
|
}
|
|
1234
|
-
const
|
|
1248
|
+
const Go = function(e) {
|
|
1235
1249
|
return e === void 0 && (e = {}), {
|
|
1236
1250
|
name: "flip",
|
|
1237
1251
|
options: e,
|
|
@@ -1255,18 +1269,18 @@ const Ko = function(e) {
|
|
|
1255
1269
|
} = Le(e, t);
|
|
1256
1270
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
1257
1271
|
return {};
|
|
1258
|
-
const h = ee(r), x = ee(l) === l,
|
|
1259
|
-
!f && m !== "none" && S.push(...
|
|
1260
|
-
const k = [l, ...S], C = await
|
|
1272
|
+
const h = ee(r), x = ee(l) === l, P = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), S = f || (x || !p ? [qe(l)] : Vo(l));
|
|
1273
|
+
!f && m !== "none" && S.push(...Yo(l, p, m, P));
|
|
1274
|
+
const k = [l, ...S], C = await vt(t, w), B = [];
|
|
1261
1275
|
let T = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
1262
|
-
if (g &&
|
|
1263
|
-
const M =
|
|
1264
|
-
|
|
1276
|
+
if (g && B.push(C[h]), u) {
|
|
1277
|
+
const M = Ho(r, s, P);
|
|
1278
|
+
B.push(C[M[0]], C[M[1]]);
|
|
1265
1279
|
}
|
|
1266
1280
|
if (T = [...T, {
|
|
1267
1281
|
placement: r,
|
|
1268
|
-
overflows:
|
|
1269
|
-
}], !
|
|
1282
|
+
overflows: B
|
|
1283
|
+
}], !B.every((M) => M <= 0)) {
|
|
1270
1284
|
var D, A;
|
|
1271
1285
|
const M = (((D = i.flip) == null ? void 0 : D.index) || 0) + 1, O = k[M];
|
|
1272
1286
|
if (O)
|
|
@@ -1303,7 +1317,7 @@ const Ko = function(e) {
|
|
|
1303
1317
|
}
|
|
1304
1318
|
};
|
|
1305
1319
|
};
|
|
1306
|
-
function
|
|
1320
|
+
function pn(e) {
|
|
1307
1321
|
const t = oe(...e.map((i) => i.left)), n = oe(...e.map((i) => i.top)), o = Y(...e.map((i) => i.right)), r = Y(...e.map((i) => i.bottom));
|
|
1308
1322
|
return {
|
|
1309
1323
|
x: t,
|
|
@@ -1312,16 +1326,16 @@ function mn(e) {
|
|
|
1312
1326
|
height: r - n
|
|
1313
1327
|
};
|
|
1314
1328
|
}
|
|
1315
|
-
function
|
|
1329
|
+
function Uo(e) {
|
|
1316
1330
|
const t = e.slice().sort((r, i) => r.y - i.y), n = [];
|
|
1317
1331
|
let o = null;
|
|
1318
1332
|
for (let r = 0; r < t.length; r++) {
|
|
1319
1333
|
const i = t[r];
|
|
1320
1334
|
!o || i.y - o.y > o.height / 2 ? n.push([i]) : n[n.length - 1].push(i), o = i;
|
|
1321
1335
|
}
|
|
1322
|
-
return n.map((r) => Oe(
|
|
1336
|
+
return n.map((r) => Oe(pn(r)));
|
|
1323
1337
|
}
|
|
1324
|
-
const
|
|
1338
|
+
const qo = function(e) {
|
|
1325
1339
|
return e === void 0 && (e = {}), {
|
|
1326
1340
|
name: "inline",
|
|
1327
1341
|
options: e,
|
|
@@ -1336,7 +1350,7 @@ const Uo = function(e) {
|
|
|
1336
1350
|
padding: l = 2,
|
|
1337
1351
|
x: a,
|
|
1338
1352
|
y: c
|
|
1339
|
-
} = Le(e, t), g = Array.from(await (i.getClientRects == null ? void 0 : i.getClientRects(o.reference)) || []), u =
|
|
1353
|
+
} = Le(e, t), g = Array.from(await (i.getClientRects == null ? void 0 : i.getClientRects(o.reference)) || []), u = Uo(g), f = Oe(pn(g)), d = mn(l);
|
|
1340
1354
|
function m() {
|
|
1341
1355
|
if (u.length === 2 && u[0].left > u[1].right && a != null && c != null)
|
|
1342
1356
|
return u.find((w) => a > w.left - d.left && a < w.right + d.right && c > w.top - d.top && c < w.bottom + d.bottom) || f;
|
|
@@ -1354,12 +1368,12 @@ const Uo = function(e) {
|
|
|
1354
1368
|
y: O
|
|
1355
1369
|
};
|
|
1356
1370
|
}
|
|
1357
|
-
const w = ee(n) === "left", h = Y(...u.map((A) => A.right)), x = oe(...u.map((A) => A.left)),
|
|
1371
|
+
const w = ee(n) === "left", h = Y(...u.map((A) => A.right)), x = oe(...u.map((A) => A.left)), P = u.filter((A) => w ? A.left === x : A.right === h), S = P[0].top, k = P[P.length - 1].bottom, C = x, B = h, T = B - C, D = k - S;
|
|
1358
1372
|
return {
|
|
1359
1373
|
top: S,
|
|
1360
1374
|
bottom: k,
|
|
1361
1375
|
left: C,
|
|
1362
|
-
right:
|
|
1376
|
+
right: B,
|
|
1363
1377
|
width: T,
|
|
1364
1378
|
height: D,
|
|
1365
1379
|
x: C,
|
|
@@ -1383,7 +1397,7 @@ const Uo = function(e) {
|
|
|
1383
1397
|
}
|
|
1384
1398
|
};
|
|
1385
1399
|
};
|
|
1386
|
-
async function
|
|
1400
|
+
async function Zo(e, t) {
|
|
1387
1401
|
const {
|
|
1388
1402
|
placement: n,
|
|
1389
1403
|
platform: o,
|
|
@@ -1411,7 +1425,7 @@ async function qo(e, t) {
|
|
|
1411
1425
|
y: d * g
|
|
1412
1426
|
};
|
|
1413
1427
|
}
|
|
1414
|
-
const
|
|
1428
|
+
const Jo = function(e) {
|
|
1415
1429
|
return e === void 0 && (e = 0), {
|
|
1416
1430
|
name: "offset",
|
|
1417
1431
|
options: e,
|
|
@@ -1422,7 +1436,7 @@ const Zo = function(e) {
|
|
|
1422
1436
|
y: i,
|
|
1423
1437
|
placement: s,
|
|
1424
1438
|
middlewareData: l
|
|
1425
|
-
} = t, a = await
|
|
1439
|
+
} = t, a = await Zo(t, e);
|
|
1426
1440
|
return s === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
|
|
1427
1441
|
x: r + a.x,
|
|
1428
1442
|
y: i + a.y,
|
|
@@ -1433,7 +1447,7 @@ const Zo = function(e) {
|
|
|
1433
1447
|
};
|
|
1434
1448
|
}
|
|
1435
1449
|
};
|
|
1436
|
-
},
|
|
1450
|
+
}, Qo = function(e) {
|
|
1437
1451
|
return e === void 0 && (e = {}), {
|
|
1438
1452
|
name: "shift",
|
|
1439
1453
|
options: e,
|
|
@@ -1461,15 +1475,15 @@ const Zo = function(e) {
|
|
|
1461
1475
|
} = Le(e, t), c = {
|
|
1462
1476
|
x: n,
|
|
1463
1477
|
y: o
|
|
1464
|
-
}, g = await
|
|
1478
|
+
}, g = await vt(t, a), u = Fe(ee(r)), f = dn(u);
|
|
1465
1479
|
let d = c[f], m = c[u];
|
|
1466
1480
|
if (i) {
|
|
1467
|
-
const w = f === "y" ? "top" : "left", h = f === "y" ? "bottom" : "right", x = d + g[w],
|
|
1468
|
-
d =
|
|
1481
|
+
const w = f === "y" ? "top" : "left", h = f === "y" ? "bottom" : "right", x = d + g[w], P = d - g[h];
|
|
1482
|
+
d = Mt(x, d, P);
|
|
1469
1483
|
}
|
|
1470
1484
|
if (s) {
|
|
1471
|
-
const w = u === "y" ? "top" : "left", h = u === "y" ? "bottom" : "right", x = m + g[w],
|
|
1472
|
-
m =
|
|
1485
|
+
const w = u === "y" ? "top" : "left", h = u === "y" ? "bottom" : "right", x = m + g[w], P = m - g[h];
|
|
1486
|
+
m = Mt(x, m, P);
|
|
1473
1487
|
}
|
|
1474
1488
|
const p = l.fn({
|
|
1475
1489
|
...t,
|
|
@@ -1485,7 +1499,7 @@ const Zo = function(e) {
|
|
|
1485
1499
|
};
|
|
1486
1500
|
}
|
|
1487
1501
|
};
|
|
1488
|
-
},
|
|
1502
|
+
}, er = function(e) {
|
|
1489
1503
|
return e === void 0 && (e = {}), {
|
|
1490
1504
|
name: "size",
|
|
1491
1505
|
options: e,
|
|
@@ -1499,29 +1513,29 @@ const Zo = function(e) {
|
|
|
1499
1513
|
apply: s = () => {
|
|
1500
1514
|
},
|
|
1501
1515
|
...l
|
|
1502
|
-
} = Le(e, t), a = await
|
|
1516
|
+
} = Le(e, t), a = await vt(t, l), c = ee(n), g = _e(n), u = Fe(n) === "y", {
|
|
1503
1517
|
width: f,
|
|
1504
1518
|
height: d
|
|
1505
1519
|
} = o.floating;
|
|
1506
1520
|
let m, p;
|
|
1507
1521
|
c === "top" || c === "bottom" ? (m = c, p = g === (await (r.isRTL == null ? void 0 : r.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (p = c, m = g === "end" ? "top" : "bottom");
|
|
1508
1522
|
const w = d - a[m], h = f - a[p], x = !t.middlewareData.shift;
|
|
1509
|
-
let
|
|
1523
|
+
let P = w, S = h;
|
|
1510
1524
|
if (u) {
|
|
1511
1525
|
const C = f - a.left - a.right;
|
|
1512
1526
|
S = g || x ? oe(h, C) : C;
|
|
1513
1527
|
} else {
|
|
1514
1528
|
const C = d - a.top - a.bottom;
|
|
1515
|
-
|
|
1529
|
+
P = g || x ? oe(w, C) : C;
|
|
1516
1530
|
}
|
|
1517
1531
|
if (x && !g) {
|
|
1518
|
-
const C = Y(a.left, 0),
|
|
1519
|
-
u ? S = f - 2 * (C !== 0 ||
|
|
1532
|
+
const C = Y(a.left, 0), B = Y(a.right, 0), T = Y(a.top, 0), D = Y(a.bottom, 0);
|
|
1533
|
+
u ? S = f - 2 * (C !== 0 || B !== 0 ? C + B : Y(a.left, a.right)) : P = d - 2 * (T !== 0 || D !== 0 ? T + D : Y(a.top, a.bottom));
|
|
1520
1534
|
}
|
|
1521
1535
|
await s({
|
|
1522
1536
|
...t,
|
|
1523
1537
|
availableWidth: S,
|
|
1524
|
-
availableHeight:
|
|
1538
|
+
availableHeight: P
|
|
1525
1539
|
});
|
|
1526
1540
|
const k = await r.getDimensions(i.floating);
|
|
1527
1541
|
return f !== k.width || d !== k.height ? {
|
|
@@ -1532,7 +1546,7 @@ const Zo = function(e) {
|
|
|
1532
1546
|
}
|
|
1533
1547
|
};
|
|
1534
1548
|
};
|
|
1535
|
-
function
|
|
1549
|
+
function hn(e) {
|
|
1536
1550
|
const t = J(e);
|
|
1537
1551
|
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
1538
1552
|
const r = Z(e), i = r ? e.offsetWidth : n, s = r ? e.offsetHeight : o, l = Ue(n) !== i || Ue(o) !== s;
|
|
@@ -1542,48 +1556,48 @@ function pn(e) {
|
|
|
1542
1556
|
$: l
|
|
1543
1557
|
};
|
|
1544
1558
|
}
|
|
1545
|
-
function
|
|
1559
|
+
function xt(e) {
|
|
1546
1560
|
return N(e) ? e : e.contextElement;
|
|
1547
1561
|
}
|
|
1548
|
-
function
|
|
1549
|
-
const t =
|
|
1562
|
+
function Pe(e) {
|
|
1563
|
+
const t = xt(e);
|
|
1550
1564
|
if (!Z(t))
|
|
1551
1565
|
return le(1);
|
|
1552
1566
|
const n = t.getBoundingClientRect(), {
|
|
1553
1567
|
width: o,
|
|
1554
1568
|
height: r,
|
|
1555
1569
|
$: i
|
|
1556
|
-
} =
|
|
1570
|
+
} = hn(t);
|
|
1557
1571
|
let s = (i ? Ue(n.width) : n.width) / o, l = (i ? Ue(n.height) : n.height) / r;
|
|
1558
1572
|
return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
1559
1573
|
x: s,
|
|
1560
1574
|
y: l
|
|
1561
1575
|
};
|
|
1562
1576
|
}
|
|
1563
|
-
const
|
|
1564
|
-
function
|
|
1577
|
+
const tr = /* @__PURE__ */ le(0);
|
|
1578
|
+
function bn(e) {
|
|
1565
1579
|
const t = q(e);
|
|
1566
|
-
return !
|
|
1580
|
+
return !yt() || !t.visualViewport ? tr : {
|
|
1567
1581
|
x: t.visualViewport.offsetLeft,
|
|
1568
1582
|
y: t.visualViewport.offsetTop
|
|
1569
1583
|
};
|
|
1570
1584
|
}
|
|
1571
|
-
function
|
|
1585
|
+
function nr(e, t, n) {
|
|
1572
1586
|
return t === void 0 && (t = !1), !n || t && n !== q(e) ? !1 : t;
|
|
1573
1587
|
}
|
|
1574
1588
|
function ve(e, t, n, o) {
|
|
1575
1589
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1576
|
-
const r = e.getBoundingClientRect(), i =
|
|
1590
|
+
const r = e.getBoundingClientRect(), i = xt(e);
|
|
1577
1591
|
let s = le(1);
|
|
1578
|
-
t && (o ? N(o) && (s =
|
|
1579
|
-
const l =
|
|
1592
|
+
t && (o ? N(o) && (s = Pe(o)) : s = Pe(e));
|
|
1593
|
+
const l = nr(i, n, o) ? bn(i) : le(0);
|
|
1580
1594
|
let a = (r.left + l.x) / s.x, c = (r.top + l.y) / s.y, g = r.width / s.x, u = r.height / s.y;
|
|
1581
1595
|
if (i) {
|
|
1582
1596
|
const f = q(i), d = o && N(o) ? q(o) : o;
|
|
1583
1597
|
let m = f, p = m.frameElement;
|
|
1584
1598
|
for (; p && o && d !== m; ) {
|
|
1585
|
-
const w =
|
|
1586
|
-
a *= w.x, c *= w.y, g *= w.x, u *= w.y, a +=
|
|
1599
|
+
const w = Pe(p), h = p.getBoundingClientRect(), x = J(p), P = h.left + (p.clientLeft + parseFloat(x.paddingLeft)) * w.x, S = h.top + (p.clientTop + parseFloat(x.paddingTop)) * w.y;
|
|
1600
|
+
a *= w.x, c *= w.y, g *= w.x, u *= w.y, a += P, c += S, m = q(p), p = m.frameElement;
|
|
1587
1601
|
}
|
|
1588
1602
|
}
|
|
1589
1603
|
return Oe({
|
|
@@ -1593,9 +1607,9 @@ function ve(e, t, n, o) {
|
|
|
1593
1607
|
y: c
|
|
1594
1608
|
});
|
|
1595
1609
|
}
|
|
1596
|
-
const
|
|
1597
|
-
function
|
|
1598
|
-
return
|
|
1610
|
+
const or = [":popover-open", ":modal"];
|
|
1611
|
+
function yn(e) {
|
|
1612
|
+
return or.some((t) => {
|
|
1599
1613
|
try {
|
|
1600
1614
|
return e.matches(t);
|
|
1601
1615
|
} catch {
|
|
@@ -1603,14 +1617,14 @@ function bn(e) {
|
|
|
1603
1617
|
}
|
|
1604
1618
|
});
|
|
1605
1619
|
}
|
|
1606
|
-
function
|
|
1620
|
+
function rr(e) {
|
|
1607
1621
|
let {
|
|
1608
1622
|
elements: t,
|
|
1609
1623
|
rect: n,
|
|
1610
1624
|
offsetParent: o,
|
|
1611
1625
|
strategy: r
|
|
1612
1626
|
} = e;
|
|
1613
|
-
const i = r === "fixed", s = re(o), l = t ?
|
|
1627
|
+
const i = r === "fixed", s = re(o), l = t ? yn(t.floating) : !1;
|
|
1614
1628
|
if (o === s || l && i)
|
|
1615
1629
|
return n;
|
|
1616
1630
|
let a = {
|
|
@@ -1620,7 +1634,7 @@ function or(e) {
|
|
|
1620
1634
|
const g = le(0), u = Z(o);
|
|
1621
1635
|
if ((u || !u && !i) && ((se(o) !== "body" || Ve(s)) && (a = et(o)), Z(o))) {
|
|
1622
1636
|
const f = ve(o);
|
|
1623
|
-
c =
|
|
1637
|
+
c = Pe(o), g.x = f.x + o.clientLeft, g.y = f.y + o.clientTop;
|
|
1624
1638
|
}
|
|
1625
1639
|
return {
|
|
1626
1640
|
width: n.width * c.x,
|
|
@@ -1629,15 +1643,15 @@ function or(e) {
|
|
|
1629
1643
|
y: n.y * c.y - a.scrollTop * c.y + g.y
|
|
1630
1644
|
};
|
|
1631
1645
|
}
|
|
1632
|
-
function
|
|
1646
|
+
function ir(e) {
|
|
1633
1647
|
return Array.from(e.getClientRects());
|
|
1634
1648
|
}
|
|
1635
|
-
function
|
|
1649
|
+
function vn(e) {
|
|
1636
1650
|
return ve(re(e)).left + et(e).scrollLeft;
|
|
1637
1651
|
}
|
|
1638
|
-
function
|
|
1652
|
+
function sr(e) {
|
|
1639
1653
|
const t = re(e), n = et(e), o = e.ownerDocument.body, r = Y(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = Y(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
1640
|
-
let s = -n.scrollLeft +
|
|
1654
|
+
let s = -n.scrollLeft + vn(e);
|
|
1641
1655
|
const l = -n.scrollTop;
|
|
1642
1656
|
return J(o).direction === "rtl" && (s += Y(t.clientWidth, o.clientWidth) - r), {
|
|
1643
1657
|
width: r,
|
|
@@ -1646,12 +1660,12 @@ function ir(e) {
|
|
|
1646
1660
|
y: l
|
|
1647
1661
|
};
|
|
1648
1662
|
}
|
|
1649
|
-
function
|
|
1663
|
+
function lr(e, t) {
|
|
1650
1664
|
const n = q(e), o = re(e), r = n.visualViewport;
|
|
1651
1665
|
let i = o.clientWidth, s = o.clientHeight, l = 0, a = 0;
|
|
1652
1666
|
if (r) {
|
|
1653
1667
|
i = r.width, s = r.height;
|
|
1654
|
-
const c =
|
|
1668
|
+
const c = yt();
|
|
1655
1669
|
(!c || c && t === "fixed") && (l = r.offsetLeft, a = r.offsetTop);
|
|
1656
1670
|
}
|
|
1657
1671
|
return {
|
|
@@ -1661,8 +1675,8 @@ function sr(e, t) {
|
|
|
1661
1675
|
y: a
|
|
1662
1676
|
};
|
|
1663
1677
|
}
|
|
1664
|
-
function
|
|
1665
|
-
const n = ve(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = Z(e) ?
|
|
1678
|
+
function ar(e, t) {
|
|
1679
|
+
const n = ve(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = Z(e) ? Pe(e) : le(1), s = e.clientWidth * i.x, l = e.clientHeight * i.y, a = r * i.x, c = o * i.y;
|
|
1666
1680
|
return {
|
|
1667
1681
|
width: s,
|
|
1668
1682
|
height: l,
|
|
@@ -1670,16 +1684,16 @@ function lr(e, t) {
|
|
|
1670
1684
|
y: c
|
|
1671
1685
|
};
|
|
1672
1686
|
}
|
|
1673
|
-
function
|
|
1687
|
+
function Ft(e, t, n) {
|
|
1674
1688
|
let o;
|
|
1675
1689
|
if (t === "viewport")
|
|
1676
|
-
o =
|
|
1690
|
+
o = lr(e, n);
|
|
1677
1691
|
else if (t === "document")
|
|
1678
|
-
o =
|
|
1692
|
+
o = sr(re(e));
|
|
1679
1693
|
else if (N(t))
|
|
1680
|
-
o =
|
|
1694
|
+
o = ar(t, n);
|
|
1681
1695
|
else {
|
|
1682
|
-
const r =
|
|
1696
|
+
const r = bn(e);
|
|
1683
1697
|
o = {
|
|
1684
1698
|
...t,
|
|
1685
1699
|
x: t.x - r.x,
|
|
@@ -1688,11 +1702,11 @@ function Lt(e, t, n) {
|
|
|
1688
1702
|
}
|
|
1689
1703
|
return Oe(o);
|
|
1690
1704
|
}
|
|
1691
|
-
function
|
|
1705
|
+
function xn(e, t) {
|
|
1692
1706
|
const n = ye(e);
|
|
1693
|
-
return n === t || !N(n) || Ae(n) ? !1 : J(n).position === "fixed" ||
|
|
1707
|
+
return n === t || !N(n) || Ae(n) ? !1 : J(n).position === "fixed" || xn(n, t);
|
|
1694
1708
|
}
|
|
1695
|
-
function
|
|
1709
|
+
function cr(e, t) {
|
|
1696
1710
|
const n = t.get(e);
|
|
1697
1711
|
if (n)
|
|
1698
1712
|
return n;
|
|
@@ -1700,22 +1714,22 @@ function ar(e, t) {
|
|
|
1700
1714
|
const i = J(e).position === "fixed";
|
|
1701
1715
|
let s = i ? ye(e) : e;
|
|
1702
1716
|
for (; N(s) && !Ae(s); ) {
|
|
1703
|
-
const l = J(s), a =
|
|
1704
|
-
!a && l.position === "fixed" && (r = null), (i ? !a && !r : !a && l.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || Ve(s) && !a &&
|
|
1717
|
+
const l = J(s), a = bt(s);
|
|
1718
|
+
!a && l.position === "fixed" && (r = null), (i ? !a && !r : !a && l.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || Ve(s) && !a && xn(e, s)) ? o = o.filter((g) => g !== s) : r = l, s = ye(s);
|
|
1705
1719
|
}
|
|
1706
1720
|
return t.set(e, o), o;
|
|
1707
1721
|
}
|
|
1708
|
-
function
|
|
1722
|
+
function ur(e) {
|
|
1709
1723
|
let {
|
|
1710
1724
|
element: t,
|
|
1711
1725
|
boundary: n,
|
|
1712
1726
|
rootBoundary: o,
|
|
1713
1727
|
strategy: r
|
|
1714
1728
|
} = e;
|
|
1715
|
-
const s = [...n === "clippingAncestors" ?
|
|
1716
|
-
const u =
|
|
1729
|
+
const s = [...n === "clippingAncestors" ? cr(t, this._c) : [].concat(n), o], l = s[0], a = s.reduce((c, g) => {
|
|
1730
|
+
const u = Ft(t, g, r);
|
|
1717
1731
|
return c.top = Y(u.top, c.top), c.right = oe(u.right, c.right), c.bottom = oe(u.bottom, c.bottom), c.left = Y(u.left, c.left), c;
|
|
1718
|
-
},
|
|
1732
|
+
}, Ft(t, l, r));
|
|
1719
1733
|
return {
|
|
1720
1734
|
width: a.right - a.left,
|
|
1721
1735
|
height: a.bottom - a.top,
|
|
@@ -1723,17 +1737,17 @@ function cr(e) {
|
|
|
1723
1737
|
y: a.top
|
|
1724
1738
|
};
|
|
1725
1739
|
}
|
|
1726
|
-
function
|
|
1740
|
+
function dr(e) {
|
|
1727
1741
|
const {
|
|
1728
1742
|
width: t,
|
|
1729
1743
|
height: n
|
|
1730
|
-
} =
|
|
1744
|
+
} = hn(e);
|
|
1731
1745
|
return {
|
|
1732
1746
|
width: t,
|
|
1733
1747
|
height: n
|
|
1734
1748
|
};
|
|
1735
1749
|
}
|
|
1736
|
-
function
|
|
1750
|
+
function fr(e, t, n) {
|
|
1737
1751
|
const o = Z(t), r = re(t), i = n === "fixed", s = ve(e, !0, i, t);
|
|
1738
1752
|
let l = {
|
|
1739
1753
|
scrollLeft: 0,
|
|
@@ -1745,7 +1759,7 @@ function dr(e, t, n) {
|
|
|
1745
1759
|
const u = ve(t, !0, i, t);
|
|
1746
1760
|
a.x = u.x + t.clientLeft, a.y = u.y + t.clientTop;
|
|
1747
1761
|
} else
|
|
1748
|
-
r && (a.x =
|
|
1762
|
+
r && (a.x = vn(r));
|
|
1749
1763
|
const c = s.left + l.scrollLeft - a.x, g = s.top + l.scrollTop - a.y;
|
|
1750
1764
|
return {
|
|
1751
1765
|
x: c,
|
|
@@ -1754,22 +1768,22 @@ function dr(e, t, n) {
|
|
|
1754
1768
|
height: s.height
|
|
1755
1769
|
};
|
|
1756
1770
|
}
|
|
1757
|
-
function
|
|
1771
|
+
function zt(e, t) {
|
|
1758
1772
|
return !Z(e) || J(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
1759
1773
|
}
|
|
1760
|
-
function
|
|
1774
|
+
function wn(e, t) {
|
|
1761
1775
|
const n = q(e);
|
|
1762
|
-
if (!Z(e) ||
|
|
1776
|
+
if (!Z(e) || yn(e))
|
|
1763
1777
|
return n;
|
|
1764
|
-
let o =
|
|
1765
|
-
for (; o &&
|
|
1766
|
-
o =
|
|
1767
|
-
return o && (se(o) === "html" || se(o) === "body" && J(o).position === "static" && !
|
|
1778
|
+
let o = zt(e, t);
|
|
1779
|
+
for (; o && Ao(o) && J(o).position === "static"; )
|
|
1780
|
+
o = zt(o, t);
|
|
1781
|
+
return o && (se(o) === "html" || se(o) === "body" && J(o).position === "static" && !bt(o)) ? n : o || Oo(e) || n;
|
|
1768
1782
|
}
|
|
1769
|
-
const
|
|
1770
|
-
const t = this.getOffsetParent ||
|
|
1783
|
+
const gr = async function(e) {
|
|
1784
|
+
const t = this.getOffsetParent || wn, n = this.getDimensions;
|
|
1771
1785
|
return {
|
|
1772
|
-
reference:
|
|
1786
|
+
reference: fr(e.reference, await t(e.floating), e.strategy),
|
|
1773
1787
|
floating: {
|
|
1774
1788
|
x: 0,
|
|
1775
1789
|
y: 0,
|
|
@@ -1777,22 +1791,22 @@ const fr = async function(e) {
|
|
|
1777
1791
|
}
|
|
1778
1792
|
};
|
|
1779
1793
|
};
|
|
1780
|
-
function
|
|
1794
|
+
function mr(e) {
|
|
1781
1795
|
return J(e).direction === "rtl";
|
|
1782
1796
|
}
|
|
1783
|
-
const
|
|
1784
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1797
|
+
const pr = {
|
|
1798
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: rr,
|
|
1785
1799
|
getDocumentElement: re,
|
|
1786
|
-
getClippingRect:
|
|
1787
|
-
getOffsetParent:
|
|
1788
|
-
getElementRects:
|
|
1789
|
-
getClientRects:
|
|
1790
|
-
getDimensions:
|
|
1791
|
-
getScale:
|
|
1800
|
+
getClippingRect: ur,
|
|
1801
|
+
getOffsetParent: wn,
|
|
1802
|
+
getElementRects: gr,
|
|
1803
|
+
getClientRects: ir,
|
|
1804
|
+
getDimensions: dr,
|
|
1805
|
+
getScale: Pe,
|
|
1792
1806
|
isElement: N,
|
|
1793
|
-
isRTL:
|
|
1807
|
+
isRTL: mr
|
|
1794
1808
|
};
|
|
1795
|
-
function
|
|
1809
|
+
function hr(e, t) {
|
|
1796
1810
|
let n = null, o;
|
|
1797
1811
|
const r = re(e);
|
|
1798
1812
|
function i() {
|
|
@@ -1813,17 +1827,17 @@ function pr(e, t) {
|
|
|
1813
1827
|
rootMargin: -d + "px " + -m + "px " + -p + "px " + -w + "px",
|
|
1814
1828
|
threshold: Y(0, oe(1, a)) || 1
|
|
1815
1829
|
};
|
|
1816
|
-
let
|
|
1830
|
+
let P = !0;
|
|
1817
1831
|
function S(k) {
|
|
1818
1832
|
const C = k[0].intersectionRatio;
|
|
1819
1833
|
if (C !== a) {
|
|
1820
|
-
if (!
|
|
1834
|
+
if (!P)
|
|
1821
1835
|
return s();
|
|
1822
1836
|
C ? s(!1, C) : o = setTimeout(() => {
|
|
1823
1837
|
s(!1, 1e-7);
|
|
1824
1838
|
}, 100);
|
|
1825
1839
|
}
|
|
1826
|
-
|
|
1840
|
+
P = !1;
|
|
1827
1841
|
}
|
|
1828
1842
|
try {
|
|
1829
1843
|
n = new IntersectionObserver(S, {
|
|
@@ -1838,7 +1852,7 @@ function pr(e, t) {
|
|
|
1838
1852
|
}
|
|
1839
1853
|
return s(!0), i;
|
|
1840
1854
|
}
|
|
1841
|
-
function
|
|
1855
|
+
function br(e, t, n, o) {
|
|
1842
1856
|
o === void 0 && (o = {});
|
|
1843
1857
|
const {
|
|
1844
1858
|
ancestorScroll: r = !0,
|
|
@@ -1846,19 +1860,19 @@ function hr(e, t, n, o) {
|
|
|
1846
1860
|
elementResize: s = typeof ResizeObserver == "function",
|
|
1847
1861
|
layoutShift: l = typeof IntersectionObserver == "function",
|
|
1848
1862
|
animationFrame: a = !1
|
|
1849
|
-
} = o, c =
|
|
1863
|
+
} = o, c = xt(e), g = r || i ? [...c ? ie(c) : [], ...ie(t)] : [];
|
|
1850
1864
|
g.forEach((h) => {
|
|
1851
1865
|
r && h.addEventListener("scroll", n, {
|
|
1852
1866
|
passive: !0
|
|
1853
1867
|
}), i && h.addEventListener("resize", n);
|
|
1854
1868
|
});
|
|
1855
|
-
const u = c && l ?
|
|
1869
|
+
const u = c && l ? hr(c, n) : null;
|
|
1856
1870
|
let f = -1, d = null;
|
|
1857
1871
|
s && (d = new ResizeObserver((h) => {
|
|
1858
1872
|
let [x] = h;
|
|
1859
1873
|
x && x.target === c && d && (d.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
1860
|
-
var
|
|
1861
|
-
(
|
|
1874
|
+
var P;
|
|
1875
|
+
(P = d) == null || P.observe(t);
|
|
1862
1876
|
})), n();
|
|
1863
1877
|
}), c && !a && d.observe(c), d.observe(t));
|
|
1864
1878
|
let m, p = a ? ve(e) : null;
|
|
@@ -1874,20 +1888,20 @@ function hr(e, t, n, o) {
|
|
|
1874
1888
|
}), u == null || u(), (h = d) == null || h.disconnect(), d = null, a && cancelAnimationFrame(m);
|
|
1875
1889
|
};
|
|
1876
1890
|
}
|
|
1877
|
-
const
|
|
1891
|
+
const yr = Qo, vr = Go, Li = er, Fi = qo, xr = (e, t, n) => {
|
|
1878
1892
|
const o = /* @__PURE__ */ new Map(), r = {
|
|
1879
|
-
platform:
|
|
1893
|
+
platform: pr,
|
|
1880
1894
|
...n
|
|
1881
1895
|
}, i = {
|
|
1882
1896
|
...r.platform,
|
|
1883
1897
|
_c: o
|
|
1884
1898
|
};
|
|
1885
|
-
return
|
|
1899
|
+
return Ko(e, t, {
|
|
1886
1900
|
...r,
|
|
1887
1901
|
platform: i
|
|
1888
1902
|
});
|
|
1889
1903
|
};
|
|
1890
|
-
var Xe = typeof document < "u" ?
|
|
1904
|
+
var Xe = typeof document < "u" ? tn : pt;
|
|
1891
1905
|
function Ze(e, t) {
|
|
1892
1906
|
if (e === t)
|
|
1893
1907
|
return !0;
|
|
@@ -1919,20 +1933,20 @@ function Ze(e, t) {
|
|
|
1919
1933
|
}
|
|
1920
1934
|
return e !== e && t !== t;
|
|
1921
1935
|
}
|
|
1922
|
-
function
|
|
1936
|
+
function $n(e) {
|
|
1923
1937
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1924
1938
|
}
|
|
1925
|
-
function
|
|
1926
|
-
const n =
|
|
1939
|
+
function Wt(e, t) {
|
|
1940
|
+
const n = $n(e);
|
|
1927
1941
|
return Math.round(t * n) / n;
|
|
1928
1942
|
}
|
|
1929
|
-
function
|
|
1943
|
+
function Nt(e) {
|
|
1930
1944
|
const t = y.useRef(e);
|
|
1931
1945
|
return Xe(() => {
|
|
1932
1946
|
t.current = e;
|
|
1933
1947
|
}), t;
|
|
1934
1948
|
}
|
|
1935
|
-
function
|
|
1949
|
+
function wr(e) {
|
|
1936
1950
|
e === void 0 && (e = {});
|
|
1937
1951
|
const {
|
|
1938
1952
|
placement: t = "bottom",
|
|
@@ -1957,17 +1971,17 @@ function xr(e) {
|
|
|
1957
1971
|
Ze(f, o) || d(o);
|
|
1958
1972
|
const [m, p] = y.useState(null), [w, h] = y.useState(null), x = y.useCallback((R) => {
|
|
1959
1973
|
R !== C.current && (C.current = R, p(R));
|
|
1960
|
-
}, []),
|
|
1961
|
-
R !==
|
|
1962
|
-
}, []), S = i || m, k = s || w, C = y.useRef(null),
|
|
1963
|
-
if (!C.current || !
|
|
1974
|
+
}, []), P = y.useCallback((R) => {
|
|
1975
|
+
R !== B.current && (B.current = R, h(R));
|
|
1976
|
+
}, []), S = i || m, k = s || w, C = y.useRef(null), B = y.useRef(null), T = y.useRef(g), D = a != null, A = Nt(a), L = Nt(r), M = y.useCallback(() => {
|
|
1977
|
+
if (!C.current || !B.current)
|
|
1964
1978
|
return;
|
|
1965
1979
|
const R = {
|
|
1966
1980
|
placement: t,
|
|
1967
1981
|
strategy: n,
|
|
1968
1982
|
middleware: f
|
|
1969
1983
|
};
|
|
1970
|
-
L.current && (R.platform = L.current),
|
|
1984
|
+
L.current && (R.platform = L.current), xr(C.current, B.current, R).then(($) => {
|
|
1971
1985
|
const F = {
|
|
1972
1986
|
...$,
|
|
1973
1987
|
isPositioned: !0
|
|
@@ -1987,7 +2001,7 @@ function xr(e) {
|
|
|
1987
2001
|
Xe(() => (O.current = !0, () => {
|
|
1988
2002
|
O.current = !1;
|
|
1989
2003
|
}), []), Xe(() => {
|
|
1990
|
-
if (S && (C.current = S), k && (
|
|
2004
|
+
if (S && (C.current = S), k && (B.current = k), S && k) {
|
|
1991
2005
|
if (A.current)
|
|
1992
2006
|
return A.current(S, k, M);
|
|
1993
2007
|
M();
|
|
@@ -1995,10 +2009,10 @@ function xr(e) {
|
|
|
1995
2009
|
}, [S, k, M, A, D]);
|
|
1996
2010
|
const b = y.useMemo(() => ({
|
|
1997
2011
|
reference: C,
|
|
1998
|
-
floating:
|
|
2012
|
+
floating: B,
|
|
1999
2013
|
setReference: x,
|
|
2000
|
-
setFloating:
|
|
2001
|
-
}), [x,
|
|
2014
|
+
setFloating: P
|
|
2015
|
+
}), [x, P]), v = y.useMemo(() => ({
|
|
2002
2016
|
reference: S,
|
|
2003
2017
|
floating: k
|
|
2004
2018
|
}), [S, k]), I = y.useMemo(() => {
|
|
@@ -2009,11 +2023,11 @@ function xr(e) {
|
|
|
2009
2023
|
};
|
|
2010
2024
|
if (!v.floating)
|
|
2011
2025
|
return R;
|
|
2012
|
-
const $ =
|
|
2026
|
+
const $ = Wt(v.floating, g.x), F = Wt(v.floating, g.y);
|
|
2013
2027
|
return l ? {
|
|
2014
2028
|
...R,
|
|
2015
2029
|
transform: "translate(" + $ + "px, " + F + "px)",
|
|
2016
|
-
|
|
2030
|
+
...$n(v.floating) >= 1.5 && {
|
|
2017
2031
|
willChange: "transform"
|
|
2018
2032
|
}
|
|
2019
2033
|
} : {
|
|
@@ -2034,8 +2048,8 @@ function xr(e) {
|
|
|
2034
2048
|
* tabbable 6.2.0
|
|
2035
2049
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
2036
2050
|
*/
|
|
2037
|
-
var
|
|
2038
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Je =
|
|
2051
|
+
var $r = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], ft = /* @__PURE__ */ $r.join(","), Sn = typeof Element > "u", Ne = Sn ? function() {
|
|
2052
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Je = !Sn && Element.prototype.getRootNode ? function(e) {
|
|
2039
2053
|
var t;
|
|
2040
2054
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
2041
2055
|
} : function(e) {
|
|
@@ -2045,15 +2059,15 @@ var wr = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2045
2059
|
n === void 0 && (n = !0);
|
|
2046
2060
|
var r = t == null || (o = t.getAttribute) === null || o === void 0 ? void 0 : o.call(t, "inert"), i = r === "" || r === "true", s = i || n && t && e(t.parentNode);
|
|
2047
2061
|
return s;
|
|
2048
|
-
},
|
|
2062
|
+
}, Sr = function(t) {
|
|
2049
2063
|
var n, o = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
|
|
2050
2064
|
return o === "" || o === "true";
|
|
2051
|
-
},
|
|
2065
|
+
}, Rr = function(t, n, o) {
|
|
2052
2066
|
if (Qe(t))
|
|
2053
2067
|
return [];
|
|
2054
|
-
var r = Array.prototype.slice.apply(t.querySelectorAll(
|
|
2055
|
-
return n && Ne.call(t,
|
|
2056
|
-
},
|
|
2068
|
+
var r = Array.prototype.slice.apply(t.querySelectorAll(ft));
|
|
2069
|
+
return n && Ne.call(t, ft) && r.unshift(t), r = r.filter(o), r;
|
|
2070
|
+
}, Er = function e(t, n, o) {
|
|
2057
2071
|
for (var r = [], i = Array.from(t); i.length; ) {
|
|
2058
2072
|
var s = i.shift();
|
|
2059
2073
|
if (!Qe(s, !1))
|
|
@@ -2064,7 +2078,7 @@ var wr = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2064
2078
|
candidates: c
|
|
2065
2079
|
});
|
|
2066
2080
|
} else {
|
|
2067
|
-
var g = Ne.call(s,
|
|
2081
|
+
var g = Ne.call(s, ft);
|
|
2068
2082
|
g && o.filter(s) && (n || !t.includes(s)) && r.push(s);
|
|
2069
2083
|
var u = s.shadowRoot || // check for an undisclosed shadow
|
|
2070
2084
|
typeof o.getShadowRoot == "function" && o.getShadowRoot(s), f = !Qe(u, !1) && (!o.shadowRootFilter || o.shadowRootFilter(s));
|
|
@@ -2079,27 +2093,27 @@ var wr = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2079
2093
|
}
|
|
2080
2094
|
}
|
|
2081
2095
|
return r;
|
|
2082
|
-
}, Sn = function(t) {
|
|
2083
|
-
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
2084
2096
|
}, Rn = function(t) {
|
|
2097
|
+
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
2098
|
+
}, En = function(t) {
|
|
2085
2099
|
if (!t)
|
|
2086
2100
|
throw new Error("No node provided");
|
|
2087
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
|
2088
|
-
}, Er = function(t, n) {
|
|
2089
|
-
var o = Rn(t);
|
|
2090
|
-
return o < 0 && n && !Sn(t) ? 0 : o;
|
|
2101
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Sr(t)) && !Rn(t) ? 0 : t.tabIndex;
|
|
2091
2102
|
}, Cr = function(t, n) {
|
|
2103
|
+
var o = En(t);
|
|
2104
|
+
return o < 0 && n && !Rn(t) ? 0 : o;
|
|
2105
|
+
}, kr = function(t, n) {
|
|
2092
2106
|
return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
|
|
2093
|
-
},
|
|
2107
|
+
}, Cn = function(t) {
|
|
2094
2108
|
return t.tagName === "INPUT";
|
|
2095
|
-
}, kr = function(t) {
|
|
2096
|
-
return En(t) && t.type === "hidden";
|
|
2097
2109
|
}, Tr = function(t) {
|
|
2110
|
+
return Cn(t) && t.type === "hidden";
|
|
2111
|
+
}, Ir = function(t) {
|
|
2098
2112
|
var n = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(o) {
|
|
2099
2113
|
return o.tagName === "SUMMARY";
|
|
2100
2114
|
});
|
|
2101
2115
|
return n;
|
|
2102
|
-
},
|
|
2116
|
+
}, Pr = function(t, n) {
|
|
2103
2117
|
for (var o = 0; o < t.length; o++)
|
|
2104
2118
|
if (t[o].checked && t[o].form === n)
|
|
2105
2119
|
return t[o];
|
|
@@ -2117,13 +2131,13 @@ var wr = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2117
2131
|
} catch (s) {
|
|
2118
2132
|
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", s.message), !1;
|
|
2119
2133
|
}
|
|
2120
|
-
var i =
|
|
2134
|
+
var i = Pr(r, t.form);
|
|
2121
2135
|
return !i || i === t;
|
|
2122
|
-
}, Pr = function(t) {
|
|
2123
|
-
return En(t) && t.type === "radio";
|
|
2124
2136
|
}, Ar = function(t) {
|
|
2125
|
-
return
|
|
2137
|
+
return Cn(t) && t.type === "radio";
|
|
2126
2138
|
}, Or = function(t) {
|
|
2139
|
+
return Ar(t) && !Br(t);
|
|
2140
|
+
}, Dr = function(t) {
|
|
2127
2141
|
var n, o = t && Je(t), r = (n = o) === null || n === void 0 ? void 0 : n.host, i = !1;
|
|
2128
2142
|
if (o && o !== t) {
|
|
2129
2143
|
var s, l, a;
|
|
@@ -2133,10 +2147,10 @@ var wr = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2133
2147
|
}
|
|
2134
2148
|
}
|
|
2135
2149
|
return i;
|
|
2136
|
-
},
|
|
2150
|
+
}, jt = function(t) {
|
|
2137
2151
|
var n = t.getBoundingClientRect(), o = n.width, r = n.height;
|
|
2138
2152
|
return o === 0 && r === 0;
|
|
2139
|
-
},
|
|
2153
|
+
}, Mr = function(t, n) {
|
|
2140
2154
|
var o = n.displayCheck, r = n.getShadowRoot;
|
|
2141
2155
|
if (getComputedStyle(t).visibility === "hidden")
|
|
2142
2156
|
return !0;
|
|
@@ -2148,19 +2162,19 @@ var wr = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2148
2162
|
for (var l = t; t; ) {
|
|
2149
2163
|
var a = t.parentElement, c = Je(t);
|
|
2150
2164
|
if (a && !a.shadowRoot && r(a) === !0)
|
|
2151
|
-
return
|
|
2165
|
+
return jt(t);
|
|
2152
2166
|
t.assignedSlot ? t = t.assignedSlot : !a && c !== t.ownerDocument ? t = c.host : t = a;
|
|
2153
2167
|
}
|
|
2154
2168
|
t = l;
|
|
2155
2169
|
}
|
|
2156
|
-
if (
|
|
2170
|
+
if (Dr(t))
|
|
2157
2171
|
return !t.getClientRects().length;
|
|
2158
2172
|
if (o !== "legacy-full")
|
|
2159
2173
|
return !0;
|
|
2160
2174
|
} else if (o === "non-zero-area")
|
|
2161
|
-
return
|
|
2175
|
+
return jt(t);
|
|
2162
2176
|
return !1;
|
|
2163
|
-
},
|
|
2177
|
+
}, Lr = function(t) {
|
|
2164
2178
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
2165
2179
|
for (var n = t.parentElement; n; ) {
|
|
2166
2180
|
if (n.tagName === "FIELDSET" && n.disabled) {
|
|
@@ -2174,21 +2188,21 @@ var wr = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2174
2188
|
n = n.parentElement;
|
|
2175
2189
|
}
|
|
2176
2190
|
return !1;
|
|
2177
|
-
},
|
|
2191
|
+
}, Fr = function(t, n) {
|
|
2178
2192
|
return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
2179
2193
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
2180
2194
|
// note related to `candidateSelectors`)
|
|
2181
|
-
Qe(n) ||
|
|
2182
|
-
|
|
2183
|
-
},
|
|
2184
|
-
return !(
|
|
2185
|
-
},
|
|
2195
|
+
Qe(n) || Tr(n) || Mr(n, t) || // For a details element with a summary, the summary element gets the focus
|
|
2196
|
+
Ir(n) || Lr(n));
|
|
2197
|
+
}, Ht = function(t, n) {
|
|
2198
|
+
return !(Or(n) || En(n) < 0 || !Fr(t, n));
|
|
2199
|
+
}, zr = function(t) {
|
|
2186
2200
|
var n = parseInt(t.getAttribute("tabindex"), 10);
|
|
2187
2201
|
return !!(isNaN(n) || n >= 0);
|
|
2188
|
-
},
|
|
2202
|
+
}, Wr = function e(t) {
|
|
2189
2203
|
var n = [], o = [];
|
|
2190
2204
|
return t.forEach(function(r, i) {
|
|
2191
|
-
var s = !!r.scopeParent, l = s ? r.scopeParent : r, a =
|
|
2205
|
+
var s = !!r.scopeParent, l = s ? r.scopeParent : r, a = Cr(l, s), c = s ? e(r.candidates) : l;
|
|
2192
2206
|
a === 0 ? s ? n.push.apply(n, c) : n.push(l) : o.push({
|
|
2193
2207
|
documentOrder: i,
|
|
2194
2208
|
tabIndex: a,
|
|
@@ -2196,26 +2210,26 @@ var wr = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2196
2210
|
isScope: s,
|
|
2197
2211
|
content: c
|
|
2198
2212
|
});
|
|
2199
|
-
}), o.sort(
|
|
2213
|
+
}), o.sort(kr).reduce(function(r, i) {
|
|
2200
2214
|
return i.isScope ? r.push.apply(r, i.content) : r.push(i.content), r;
|
|
2201
2215
|
}, []).concat(n);
|
|
2202
|
-
},
|
|
2216
|
+
}, kn = function(t, n) {
|
|
2203
2217
|
n = n || {};
|
|
2204
2218
|
var o;
|
|
2205
|
-
return n.getShadowRoot ? o =
|
|
2206
|
-
filter:
|
|
2219
|
+
return n.getShadowRoot ? o = Er([t], n.includeContainer, {
|
|
2220
|
+
filter: Ht.bind(null, n),
|
|
2207
2221
|
flatten: !1,
|
|
2208
2222
|
getShadowRoot: n.getShadowRoot,
|
|
2209
|
-
shadowRootFilter:
|
|
2210
|
-
}) : o =
|
|
2223
|
+
shadowRootFilter: zr
|
|
2224
|
+
}) : o = Rr(t, n.includeContainer, Ht.bind(null, n)), Wr(o);
|
|
2211
2225
|
};
|
|
2212
|
-
const
|
|
2226
|
+
const Nr = y[/* @__PURE__ */ "useInsertionEffect".toString()], jr = Nr || ((e) => e());
|
|
2213
2227
|
function ke(e) {
|
|
2214
2228
|
const t = y.useRef(() => {
|
|
2215
2229
|
if (process.env.NODE_ENV !== "production")
|
|
2216
2230
|
throw new Error("Cannot call an event handler while rendering.");
|
|
2217
2231
|
});
|
|
2218
|
-
return
|
|
2232
|
+
return jr(() => {
|
|
2219
2233
|
t.current = e;
|
|
2220
2234
|
}), y.useCallback(function() {
|
|
2221
2235
|
for (var n = arguments.length, o = new Array(n), r = 0; r < n; r++)
|
|
@@ -2223,29 +2237,29 @@ function ke(e) {
|
|
|
2223
2237
|
return t.current == null ? void 0 : t.current(...o);
|
|
2224
2238
|
}, []);
|
|
2225
2239
|
}
|
|
2226
|
-
var Q = typeof document < "u" ?
|
|
2227
|
-
function
|
|
2228
|
-
return
|
|
2240
|
+
var Q = typeof document < "u" ? tn : pt;
|
|
2241
|
+
function gt() {
|
|
2242
|
+
return gt = Object.assign ? Object.assign.bind() : function(e) {
|
|
2229
2243
|
for (var t = 1; t < arguments.length; t++) {
|
|
2230
2244
|
var n = arguments[t];
|
|
2231
2245
|
for (var o in n)
|
|
2232
2246
|
Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
|
|
2233
2247
|
}
|
|
2234
2248
|
return e;
|
|
2235
|
-
},
|
|
2249
|
+
}, gt.apply(this, arguments);
|
|
2236
2250
|
}
|
|
2237
|
-
let rt = !1,
|
|
2238
|
-
const
|
|
2239
|
-
function
|
|
2240
|
-
const [e, t] = y.useState(() => rt ?
|
|
2251
|
+
let rt = !1, Hr = 0;
|
|
2252
|
+
const Vt = () => "floating-ui-" + Hr++;
|
|
2253
|
+
function Vr() {
|
|
2254
|
+
const [e, t] = y.useState(() => rt ? Vt() : void 0);
|
|
2241
2255
|
return Q(() => {
|
|
2242
|
-
e == null && t(
|
|
2256
|
+
e == null && t(Vt());
|
|
2243
2257
|
}, []), y.useEffect(() => {
|
|
2244
2258
|
rt || (rt = !0);
|
|
2245
2259
|
}, []), e;
|
|
2246
2260
|
}
|
|
2247
|
-
const
|
|
2248
|
-
function
|
|
2261
|
+
const _r = y[/* @__PURE__ */ "useId".toString()], wt = _r || Vr;
|
|
2262
|
+
function Yr() {
|
|
2249
2263
|
const e = /* @__PURE__ */ new Map();
|
|
2250
2264
|
return {
|
|
2251
2265
|
emit(t, n) {
|
|
@@ -2261,24 +2275,24 @@ function _r() {
|
|
|
2261
2275
|
}
|
|
2262
2276
|
};
|
|
2263
2277
|
}
|
|
2264
|
-
const
|
|
2278
|
+
const Xr = /* @__PURE__ */ y.createContext(null), Kr = /* @__PURE__ */ y.createContext(null), $t = () => {
|
|
2265
2279
|
var e;
|
|
2266
|
-
return ((e = y.useContext(
|
|
2267
|
-
},
|
|
2280
|
+
return ((e = y.useContext(Xr)) == null ? void 0 : e.id) || null;
|
|
2281
|
+
}, St = () => y.useContext(Kr);
|
|
2268
2282
|
function tt(e) {
|
|
2269
2283
|
return "data-floating-ui-" + e;
|
|
2270
2284
|
}
|
|
2271
2285
|
function Ie(e) {
|
|
2272
|
-
const t =
|
|
2286
|
+
const t = nn(e);
|
|
2273
2287
|
return Q(() => {
|
|
2274
2288
|
t.current = e;
|
|
2275
2289
|
}), t;
|
|
2276
2290
|
}
|
|
2277
|
-
const
|
|
2291
|
+
const _t = /* @__PURE__ */ tt("safe-polygon");
|
|
2278
2292
|
function it(e, t, n) {
|
|
2279
2293
|
return n && !Ge(n) ? 0 : typeof e == "number" ? e : e == null ? void 0 : e[t];
|
|
2280
2294
|
}
|
|
2281
|
-
function
|
|
2295
|
+
function Gr(e, t) {
|
|
2282
2296
|
t === void 0 && (t = {});
|
|
2283
2297
|
const {
|
|
2284
2298
|
open: n,
|
|
@@ -2297,7 +2311,7 @@ function Kr(e, t) {
|
|
|
2297
2311
|
mouseOnly: f = !1,
|
|
2298
2312
|
restMs: d = 0,
|
|
2299
2313
|
move: m = !0
|
|
2300
|
-
} = t, p =
|
|
2314
|
+
} = t, p = St(), w = $t(), h = Ie(u), x = Ie(g), P = y.useRef(), S = y.useRef(), k = y.useRef(), C = y.useRef(), B = y.useRef(!0), T = y.useRef(!1), D = y.useRef(() => {
|
|
2301
2315
|
}), A = y.useCallback(() => {
|
|
2302
2316
|
var b;
|
|
2303
2317
|
const v = (b = r.current.openEvent) == null ? void 0 : b.type;
|
|
@@ -2310,7 +2324,7 @@ function Kr(e, t) {
|
|
|
2310
2324
|
let {
|
|
2311
2325
|
open: I
|
|
2312
2326
|
} = v;
|
|
2313
|
-
I || (clearTimeout(S.current), clearTimeout(C.current),
|
|
2327
|
+
I || (clearTimeout(S.current), clearTimeout(C.current), B.current = !0);
|
|
2314
2328
|
}
|
|
2315
2329
|
return i.on("openchange", b), () => {
|
|
2316
2330
|
i.off("openchange", b);
|
|
@@ -2328,14 +2342,14 @@ function Kr(e, t) {
|
|
|
2328
2342
|
}, [l, n, o, c, h, A]);
|
|
2329
2343
|
const L = y.useCallback(function(b, v, I) {
|
|
2330
2344
|
v === void 0 && (v = !0), I === void 0 && (I = "hover");
|
|
2331
|
-
const R = it(x.current, "close",
|
|
2345
|
+
const R = it(x.current, "close", P.current);
|
|
2332
2346
|
R && !k.current ? (clearTimeout(S.current), S.current = setTimeout(() => o(!1, b, I), R)) : v && (clearTimeout(S.current), o(!1, b, I));
|
|
2333
2347
|
}, [x, o]), M = y.useCallback(() => {
|
|
2334
2348
|
D.current(), k.current = void 0;
|
|
2335
2349
|
}, []), O = y.useCallback(() => {
|
|
2336
2350
|
if (T.current) {
|
|
2337
2351
|
const b = me(a.floating.current).body;
|
|
2338
|
-
b.style.pointerEvents = "", b.removeAttribute(
|
|
2352
|
+
b.style.pointerEvents = "", b.removeAttribute(_t), T.current = !1;
|
|
2339
2353
|
}
|
|
2340
2354
|
}, [a]);
|
|
2341
2355
|
return y.useEffect(() => {
|
|
@@ -2345,9 +2359,9 @@ function Kr(e, t) {
|
|
|
2345
2359
|
return r.current.openEvent ? ["click", "mousedown"].includes(r.current.openEvent.type) : !1;
|
|
2346
2360
|
}
|
|
2347
2361
|
function v($) {
|
|
2348
|
-
if (clearTimeout(S.current),
|
|
2362
|
+
if (clearTimeout(S.current), B.current = !1, f && !Ge(P.current) || d > 0 && it(x.current, "open") === 0)
|
|
2349
2363
|
return;
|
|
2350
|
-
const F = it(x.current, "open",
|
|
2364
|
+
const F = it(x.current, "open", P.current);
|
|
2351
2365
|
F ? S.current = setTimeout(() => {
|
|
2352
2366
|
o(!0, $, "hover");
|
|
2353
2367
|
}, F) : o(!0, $, "hover");
|
|
@@ -2373,7 +2387,7 @@ function Kr(e, t) {
|
|
|
2373
2387
|
};
|
|
2374
2388
|
return;
|
|
2375
2389
|
}
|
|
2376
|
-
(
|
|
2390
|
+
(P.current === "touch" ? !be(l, $.relatedTarget) : !0) && L($);
|
|
2377
2391
|
}
|
|
2378
2392
|
function R($) {
|
|
2379
2393
|
b() || h.current == null || h.current({
|
|
@@ -2398,7 +2412,7 @@ function Kr(e, t) {
|
|
|
2398
2412
|
var b;
|
|
2399
2413
|
if (c && n && (b = h.current) != null && b.__options.blockPointerEvents && A()) {
|
|
2400
2414
|
const I = me(l).body;
|
|
2401
|
-
if (I.setAttribute(
|
|
2415
|
+
if (I.setAttribute(_t, ""), I.style.pointerEvents = "none", T.current = !0, N(s) && l) {
|
|
2402
2416
|
var v;
|
|
2403
2417
|
const R = s, $ = p == null || (v = p.nodesRef.current.find((F) => F.id === w)) == null || (v = v.context) == null ? void 0 : v.elements.floating;
|
|
2404
2418
|
return $ && ($.style.pointerEvents = ""), R.style.pointerEvents = "auto", l.style.pointerEvents = "auto", () => {
|
|
@@ -2407,14 +2421,14 @@ function Kr(e, t) {
|
|
|
2407
2421
|
}
|
|
2408
2422
|
}
|
|
2409
2423
|
}, [c, n, w, l, s, p, h, A]), Q(() => {
|
|
2410
|
-
n || (
|
|
2424
|
+
n || (P.current = void 0, M(), O());
|
|
2411
2425
|
}, [n, M, O]), y.useEffect(() => () => {
|
|
2412
2426
|
M(), clearTimeout(S.current), clearTimeout(C.current), O();
|
|
2413
2427
|
}, [c, s, M, O]), y.useMemo(() => {
|
|
2414
2428
|
if (!c)
|
|
2415
2429
|
return {};
|
|
2416
2430
|
function b(v) {
|
|
2417
|
-
|
|
2431
|
+
P.current = v.pointerType;
|
|
2418
2432
|
}
|
|
2419
2433
|
return {
|
|
2420
2434
|
reference: {
|
|
@@ -2422,7 +2436,7 @@ function Kr(e, t) {
|
|
|
2422
2436
|
onPointerEnter: b,
|
|
2423
2437
|
onMouseMove(v) {
|
|
2424
2438
|
n || d === 0 || (clearTimeout(C.current), C.current = setTimeout(() => {
|
|
2425
|
-
|
|
2439
|
+
B.current || o(!0, v.nativeEvent, "hover");
|
|
2426
2440
|
}, d));
|
|
2427
2441
|
}
|
|
2428
2442
|
},
|
|
@@ -2452,7 +2466,7 @@ function Ke(e, t) {
|
|
|
2452
2466
|
}), n = n.concat(o);
|
|
2453
2467
|
return n;
|
|
2454
2468
|
}
|
|
2455
|
-
const
|
|
2469
|
+
const Tn = () => ({
|
|
2456
2470
|
getShadowRoot: !0,
|
|
2457
2471
|
displayCheck: (
|
|
2458
2472
|
// JSDOM does not support the `tabbable` library. To solve this we can
|
|
@@ -2461,34 +2475,34 @@ const kn = () => ({
|
|
|
2461
2475
|
typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
|
|
2462
2476
|
)
|
|
2463
2477
|
});
|
|
2464
|
-
function
|
|
2465
|
-
const n =
|
|
2478
|
+
function In(e, t) {
|
|
2479
|
+
const n = kn(e, Tn());
|
|
2466
2480
|
t === "prev" && n.reverse();
|
|
2467
|
-
const o = n.indexOf(
|
|
2481
|
+
const o = n.indexOf(Do(me(e)));
|
|
2468
2482
|
return n.slice(o + 1)[0];
|
|
2469
2483
|
}
|
|
2470
|
-
function Gr() {
|
|
2471
|
-
return Tn(document.body, "next");
|
|
2472
|
-
}
|
|
2473
2484
|
function Ur() {
|
|
2474
|
-
return
|
|
2485
|
+
return In(document.body, "next");
|
|
2486
|
+
}
|
|
2487
|
+
function qr() {
|
|
2488
|
+
return In(document.body, "prev");
|
|
2475
2489
|
}
|
|
2476
2490
|
function st(e, t) {
|
|
2477
2491
|
const n = t || e.currentTarget, o = e.relatedTarget;
|
|
2478
2492
|
return !o || !be(n, o);
|
|
2479
2493
|
}
|
|
2480
|
-
function
|
|
2481
|
-
|
|
2494
|
+
function Zr(e) {
|
|
2495
|
+
kn(e, Tn()).forEach((n) => {
|
|
2482
2496
|
n.dataset.tabindex = n.getAttribute("tabindex") || "", n.setAttribute("tabindex", "-1");
|
|
2483
2497
|
});
|
|
2484
2498
|
}
|
|
2485
|
-
function
|
|
2499
|
+
function Jr(e) {
|
|
2486
2500
|
e.querySelectorAll("[data-tabindex]").forEach((n) => {
|
|
2487
2501
|
const o = n.dataset.tabindex;
|
|
2488
2502
|
delete n.dataset.tabindex, o ? n.setAttribute("tabindex", o) : n.removeAttribute("tabindex");
|
|
2489
2503
|
});
|
|
2490
2504
|
}
|
|
2491
|
-
const
|
|
2505
|
+
const Pn = {
|
|
2492
2506
|
border: 0,
|
|
2493
2507
|
clip: "rect(0 0 0 0)",
|
|
2494
2508
|
height: "1px",
|
|
@@ -2501,14 +2515,14 @@ const In = {
|
|
|
2501
2515
|
top: 0,
|
|
2502
2516
|
left: 0
|
|
2503
2517
|
};
|
|
2504
|
-
let
|
|
2505
|
-
function
|
|
2506
|
-
e.key === "Tab" && (e.target, clearTimeout(
|
|
2518
|
+
let Qr;
|
|
2519
|
+
function Yt(e) {
|
|
2520
|
+
e.key === "Tab" && (e.target, clearTimeout(Qr));
|
|
2507
2521
|
}
|
|
2508
|
-
const
|
|
2522
|
+
const Xt = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
2509
2523
|
const [o, r] = y.useState();
|
|
2510
|
-
Q(() => (
|
|
2511
|
-
document.removeEventListener("keydown",
|
|
2524
|
+
Q(() => (Mo() && r("button"), document.addEventListener("keydown", Yt), () => {
|
|
2525
|
+
document.removeEventListener("keydown", Yt);
|
|
2512
2526
|
}), []);
|
|
2513
2527
|
const i = {
|
|
2514
2528
|
ref: n,
|
|
@@ -2517,16 +2531,16 @@ const Yt = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
2517
2531
|
role: o,
|
|
2518
2532
|
"aria-hidden": o ? void 0 : !0,
|
|
2519
2533
|
[tt("focus-guard")]: "",
|
|
2520
|
-
style:
|
|
2534
|
+
style: Pn
|
|
2521
2535
|
};
|
|
2522
|
-
return /* @__PURE__ */ y.createElement("span",
|
|
2523
|
-
}), Bn = /* @__PURE__ */ y.createContext(null),
|
|
2524
|
-
function
|
|
2536
|
+
return /* @__PURE__ */ y.createElement("span", gt({}, t, i));
|
|
2537
|
+
}), Bn = /* @__PURE__ */ y.createContext(null), Kt = /* @__PURE__ */ tt("portal");
|
|
2538
|
+
function ei(e) {
|
|
2525
2539
|
let {
|
|
2526
2540
|
id: t,
|
|
2527
2541
|
root: n
|
|
2528
2542
|
} = e === void 0 ? {} : e;
|
|
2529
|
-
const [o, r] = y.useState(null), i =
|
|
2543
|
+
const [o, r] = y.useState(null), i = wt(), s = ni(), l = y.useRef(null);
|
|
2530
2544
|
return Q(() => () => {
|
|
2531
2545
|
o == null || o.remove(), queueMicrotask(() => {
|
|
2532
2546
|
l.current = null;
|
|
@@ -2538,7 +2552,7 @@ function Qr(e) {
|
|
|
2538
2552
|
if (!a)
|
|
2539
2553
|
return;
|
|
2540
2554
|
const c = document.createElement("div");
|
|
2541
|
-
c.id = i, c.setAttribute(
|
|
2555
|
+
c.id = i, c.setAttribute(Kt, ""), a.appendChild(c), l.current = c, r(c);
|
|
2542
2556
|
}, [t, i]), Q(() => {
|
|
2543
2557
|
if (l.current)
|
|
2544
2558
|
return;
|
|
@@ -2547,17 +2561,17 @@ function Qr(e) {
|
|
|
2547
2561
|
let c = null;
|
|
2548
2562
|
t && (c = document.createElement("div"), c.id = t, a.appendChild(c));
|
|
2549
2563
|
const g = document.createElement("div");
|
|
2550
|
-
g.id = i, g.setAttribute(
|
|
2564
|
+
g.id = i, g.setAttribute(Kt, ""), a = c || a, a.appendChild(g), l.current = g, r(g);
|
|
2551
2565
|
}, [t, n, i, s]), o;
|
|
2552
2566
|
}
|
|
2553
|
-
function
|
|
2567
|
+
function ti(e) {
|
|
2554
2568
|
let {
|
|
2555
2569
|
children: t,
|
|
2556
2570
|
id: n,
|
|
2557
2571
|
root: o = null,
|
|
2558
2572
|
preserveTabOrder: r = !0
|
|
2559
2573
|
} = e;
|
|
2560
|
-
const i =
|
|
2574
|
+
const i = ei({
|
|
2561
2575
|
id: n,
|
|
2562
2576
|
root: o
|
|
2563
2577
|
}), [s, l] = y.useState(null), a = y.useRef(null), c = y.useRef(null), g = y.useRef(null), u = y.useRef(null), f = (
|
|
@@ -2571,7 +2585,7 @@ function ei(e) {
|
|
|
2571
2585
|
if (!i || !r || s != null && s.modal)
|
|
2572
2586
|
return;
|
|
2573
2587
|
function d(m) {
|
|
2574
|
-
i && st(m) && (m.type === "focusin" ?
|
|
2588
|
+
i && st(m) && (m.type === "focusin" ? Jr : Zr)(i);
|
|
2575
2589
|
}
|
|
2576
2590
|
return i.addEventListener("focusin", d, !0), i.addEventListener("focusout", d, !0), () => {
|
|
2577
2591
|
i.removeEventListener("focusin", d, !0), i.removeEventListener("focusout", d, !0);
|
|
@@ -2586,7 +2600,7 @@ function ei(e) {
|
|
|
2586
2600
|
portalNode: i,
|
|
2587
2601
|
setFocusManagerState: l
|
|
2588
2602
|
}), [r, i])
|
|
2589
|
-
}, f && i && /* @__PURE__ */ y.createElement(
|
|
2603
|
+
}, f && i && /* @__PURE__ */ y.createElement(Xt, {
|
|
2590
2604
|
"data-type": "outside",
|
|
2591
2605
|
ref: a,
|
|
2592
2606
|
onFocus: (d) => {
|
|
@@ -2594,14 +2608,14 @@ function ei(e) {
|
|
|
2594
2608
|
var m;
|
|
2595
2609
|
(m = g.current) == null || m.focus();
|
|
2596
2610
|
} else {
|
|
2597
|
-
const p =
|
|
2611
|
+
const p = qr() || (s == null ? void 0 : s.refs.domReference.current);
|
|
2598
2612
|
p == null || p.focus();
|
|
2599
2613
|
}
|
|
2600
2614
|
}
|
|
2601
2615
|
}), f && i && /* @__PURE__ */ y.createElement("span", {
|
|
2602
2616
|
"aria-owns": i.id,
|
|
2603
|
-
style:
|
|
2604
|
-
}), i && /* @__PURE__ */
|
|
2617
|
+
style: Pn
|
|
2618
|
+
}), i && /* @__PURE__ */ rn(t, i), f && i && /* @__PURE__ */ y.createElement(Xt, {
|
|
2605
2619
|
"data-type": "outside",
|
|
2606
2620
|
ref: c,
|
|
2607
2621
|
onFocus: (d) => {
|
|
@@ -2609,20 +2623,20 @@ function ei(e) {
|
|
|
2609
2623
|
var m;
|
|
2610
2624
|
(m = u.current) == null || m.focus();
|
|
2611
2625
|
} else {
|
|
2612
|
-
const p =
|
|
2626
|
+
const p = Ur() || (s == null ? void 0 : s.refs.domReference.current);
|
|
2613
2627
|
p == null || p.focus(), s != null && s.closeOnFocusOut && (s == null || s.onOpenChange(!1, d.nativeEvent));
|
|
2614
2628
|
}
|
|
2615
2629
|
}
|
|
2616
2630
|
}));
|
|
2617
2631
|
}
|
|
2618
|
-
const
|
|
2619
|
-
function
|
|
2632
|
+
const ni = () => y.useContext(Bn);
|
|
2633
|
+
function Gt(e) {
|
|
2620
2634
|
return Z(e.target) && e.target.tagName === "BUTTON";
|
|
2621
2635
|
}
|
|
2622
|
-
function
|
|
2623
|
-
return
|
|
2636
|
+
function Ut(e) {
|
|
2637
|
+
return Wo(e);
|
|
2624
2638
|
}
|
|
2625
|
-
function
|
|
2639
|
+
function oi(e, t) {
|
|
2626
2640
|
t === void 0 && (t = {});
|
|
2627
2641
|
const {
|
|
2628
2642
|
open: n,
|
|
@@ -2654,30 +2668,30 @@ function ni(e, t) {
|
|
|
2654
2668
|
Ge(u.current, !0) && c || (n && a && (!r.current.openEvent || r.current.openEvent.type === "click") ? o(!1, d.nativeEvent, "click") : o(!0, d.nativeEvent, "click"));
|
|
2655
2669
|
},
|
|
2656
2670
|
onKeyDown(d) {
|
|
2657
|
-
u.current = void 0, !(d.defaultPrevented || !g ||
|
|
2671
|
+
u.current = void 0, !(d.defaultPrevented || !g || Gt(d)) && (d.key === " " && !Ut(i) && (d.preventDefault(), f.current = !0), d.key === "Enter" && o(!(n && a), d.nativeEvent, "click"));
|
|
2658
2672
|
},
|
|
2659
2673
|
onKeyUp(d) {
|
|
2660
|
-
d.defaultPrevented || !g ||
|
|
2674
|
+
d.defaultPrevented || !g || Gt(d) || Ut(i) || d.key === " " && f.current && (f.current = !1, o(!(n && a), d.nativeEvent, "click"));
|
|
2661
2675
|
}
|
|
2662
2676
|
}
|
|
2663
2677
|
} : {}, [s, r, l, c, g, i, a, n, o]);
|
|
2664
2678
|
}
|
|
2665
|
-
const
|
|
2679
|
+
const ri = {
|
|
2666
2680
|
pointerdown: "onPointerDown",
|
|
2667
2681
|
mousedown: "onMouseDown",
|
|
2668
2682
|
click: "onClick"
|
|
2669
|
-
},
|
|
2683
|
+
}, ii = {
|
|
2670
2684
|
pointerdown: "onPointerDownCapture",
|
|
2671
2685
|
mousedown: "onMouseDownCapture",
|
|
2672
2686
|
click: "onClickCapture"
|
|
2673
|
-
},
|
|
2687
|
+
}, qt = (e) => {
|
|
2674
2688
|
var t, n;
|
|
2675
2689
|
return {
|
|
2676
2690
|
escapeKey: typeof e == "boolean" ? e : (t = e == null ? void 0 : e.escapeKey) != null ? t : !1,
|
|
2677
2691
|
outsidePress: typeof e == "boolean" ? e : (n = e == null ? void 0 : e.outsidePress) != null ? n : !0
|
|
2678
2692
|
};
|
|
2679
2693
|
};
|
|
2680
|
-
function
|
|
2694
|
+
function si(e, t) {
|
|
2681
2695
|
t === void 0 && (t = {});
|
|
2682
2696
|
const {
|
|
2683
2697
|
open: n,
|
|
@@ -2699,17 +2713,17 @@ function ii(e, t) {
|
|
|
2699
2713
|
ancestorScroll: p = !1,
|
|
2700
2714
|
bubbles: w,
|
|
2701
2715
|
capture: h
|
|
2702
|
-
} = t, x =
|
|
2703
|
-
escapeKey:
|
|
2716
|
+
} = t, x = St(), P = ke(typeof u == "function" ? u : () => !1), S = typeof u == "function" ? P : u, k = y.useRef(!1), C = y.useRef(!1), {
|
|
2717
|
+
escapeKey: B,
|
|
2704
2718
|
outsidePress: T
|
|
2705
|
-
} =
|
|
2719
|
+
} = qt(w), {
|
|
2706
2720
|
escapeKey: D,
|
|
2707
2721
|
outsidePress: A
|
|
2708
|
-
} =
|
|
2722
|
+
} = qt(h), L = ke((v) => {
|
|
2709
2723
|
if (!n || !c || !g || v.key !== "Escape")
|
|
2710
2724
|
return;
|
|
2711
2725
|
const I = x ? Ke(x.nodesRef.current, r) : [];
|
|
2712
|
-
if (!
|
|
2726
|
+
if (!B && (v.stopPropagation(), I.length > 0)) {
|
|
2713
2727
|
let R = !0;
|
|
2714
2728
|
if (I.forEach(($) => {
|
|
2715
2729
|
var F;
|
|
@@ -2720,7 +2734,7 @@ function ii(e, t) {
|
|
|
2720
2734
|
}), !R)
|
|
2721
2735
|
return;
|
|
2722
2736
|
}
|
|
2723
|
-
o(!1,
|
|
2737
|
+
o(!1, Lo(v) ? v.nativeEvent : v, "escape-key");
|
|
2724
2738
|
}), M = ke((v) => {
|
|
2725
2739
|
var I;
|
|
2726
2740
|
const R = () => {
|
|
@@ -2742,7 +2756,7 @@ function ii(e, t) {
|
|
|
2742
2756
|
break;
|
|
2743
2757
|
U = V;
|
|
2744
2758
|
}
|
|
2745
|
-
if (K.length && N($) && !
|
|
2759
|
+
if (K.length && N($) && !Fo($) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
2746
2760
|
!be($, l) && // If the target root element contains none of the markers, then the
|
|
2747
2761
|
// element was injected after the floating element rendered.
|
|
2748
2762
|
Array.from(K).every((V) => !be(U, V)))
|
|
@@ -2783,7 +2797,7 @@ function ii(e, t) {
|
|
|
2783
2797
|
return y.useEffect(() => {
|
|
2784
2798
|
if (!n || !c)
|
|
2785
2799
|
return;
|
|
2786
|
-
a.current.__escapeKeyBubbles =
|
|
2800
|
+
a.current.__escapeKeyBubbles = B, a.current.__outsidePressBubbles = T;
|
|
2787
2801
|
function v($) {
|
|
2788
2802
|
o(!1, $, "ancestor-scroll");
|
|
2789
2803
|
}
|
|
@@ -2802,12 +2816,12 @@ function ii(e, t) {
|
|
|
2802
2816
|
$.removeEventListener("scroll", v);
|
|
2803
2817
|
});
|
|
2804
2818
|
};
|
|
2805
|
-
}, [a, l, s, i, g, S, f, n, o, p, c,
|
|
2819
|
+
}, [a, l, s, i, g, S, f, n, o, p, c, B, T, L, D, M, O, A, b]), y.useEffect(() => {
|
|
2806
2820
|
k.current = !1;
|
|
2807
2821
|
}, [S, f]), y.useMemo(() => c ? {
|
|
2808
2822
|
reference: {
|
|
2809
2823
|
onKeyDown: L,
|
|
2810
|
-
[
|
|
2824
|
+
[ri[m]]: (v) => {
|
|
2811
2825
|
d && o(!1, v.nativeEvent, "reference-press");
|
|
2812
2826
|
}
|
|
2813
2827
|
},
|
|
@@ -2819,15 +2833,15 @@ function ii(e, t) {
|
|
|
2819
2833
|
onMouseUp() {
|
|
2820
2834
|
C.current = !0;
|
|
2821
2835
|
},
|
|
2822
|
-
[
|
|
2836
|
+
[ii[f]]: () => {
|
|
2823
2837
|
k.current = !0;
|
|
2824
2838
|
}
|
|
2825
2839
|
}
|
|
2826
2840
|
} : {}, [c, d, f, m, o, L]);
|
|
2827
2841
|
}
|
|
2828
|
-
let
|
|
2829
|
-
process.env.NODE_ENV !== "production" && (
|
|
2830
|
-
function
|
|
2842
|
+
let mt;
|
|
2843
|
+
process.env.NODE_ENV !== "production" && (mt = /* @__PURE__ */ new Set());
|
|
2844
|
+
function li(e) {
|
|
2831
2845
|
var t;
|
|
2832
2846
|
e === void 0 && (e = {});
|
|
2833
2847
|
const {
|
|
@@ -2840,20 +2854,20 @@ function si(e) {
|
|
|
2840
2854
|
const T = "Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";
|
|
2841
2855
|
if ((i = e.elements) != null && i.reference && !N(e.elements.reference)) {
|
|
2842
2856
|
var s;
|
|
2843
|
-
if (!((s =
|
|
2857
|
+
if (!((s = mt) != null && s.has(T))) {
|
|
2844
2858
|
var l;
|
|
2845
|
-
(l =
|
|
2859
|
+
(l = mt) == null || l.add(T), console.error(T);
|
|
2846
2860
|
}
|
|
2847
2861
|
}
|
|
2848
2862
|
}
|
|
2849
|
-
const [a, c] = y.useState(null), g = ((t = e.elements) == null ? void 0 : t.reference) || a, u =
|
|
2863
|
+
const [a, c] = y.useState(null), g = ((t = e.elements) == null ? void 0 : t.reference) || a, u = wr(e), f = St(), d = $t() != null, m = ke((T, D, A) => {
|
|
2850
2864
|
T && (w.current.openEvent = D), h.emit("openchange", {
|
|
2851
2865
|
open: T,
|
|
2852
2866
|
event: D,
|
|
2853
2867
|
reason: A,
|
|
2854
2868
|
nested: d
|
|
2855
2869
|
}), o == null || o(T, D, A);
|
|
2856
|
-
}), p = y.useRef(null), w = y.useRef({}), h = y.useState(() =>
|
|
2870
|
+
}), p = y.useRef(null), w = y.useRef({}), h = y.useState(() => Yr())[0], x = wt(), P = y.useCallback((T) => {
|
|
2857
2871
|
const D = N(T) ? {
|
|
2858
2872
|
getBoundingClientRect: () => T.getBoundingClientRect(),
|
|
2859
2873
|
contextElement: T
|
|
@@ -2867,12 +2881,12 @@ function si(e) {
|
|
|
2867
2881
|
}, [u.refs]), k = y.useMemo(() => ({
|
|
2868
2882
|
...u.refs,
|
|
2869
2883
|
setReference: S,
|
|
2870
|
-
setPositionReference:
|
|
2884
|
+
setPositionReference: P,
|
|
2871
2885
|
domReference: p
|
|
2872
|
-
}), [u.refs, S,
|
|
2886
|
+
}), [u.refs, S, P]), C = y.useMemo(() => ({
|
|
2873
2887
|
...u.elements,
|
|
2874
2888
|
domReference: g
|
|
2875
|
-
}), [u.elements, g]),
|
|
2889
|
+
}), [u.elements, g]), B = y.useMemo(() => ({
|
|
2876
2890
|
...u,
|
|
2877
2891
|
refs: k,
|
|
2878
2892
|
elements: C,
|
|
@@ -2885,22 +2899,22 @@ function si(e) {
|
|
|
2885
2899
|
}), [u, r, x, h, n, m, k, C]);
|
|
2886
2900
|
return Q(() => {
|
|
2887
2901
|
const T = f == null ? void 0 : f.nodesRef.current.find((D) => D.id === r);
|
|
2888
|
-
T && (T.context =
|
|
2902
|
+
T && (T.context = B);
|
|
2889
2903
|
}), y.useMemo(() => ({
|
|
2890
2904
|
...u,
|
|
2891
|
-
context:
|
|
2905
|
+
context: B,
|
|
2892
2906
|
refs: k,
|
|
2893
2907
|
elements: C
|
|
2894
|
-
}), [u, k, C,
|
|
2908
|
+
}), [u, k, C, B]);
|
|
2895
2909
|
}
|
|
2896
|
-
const
|
|
2910
|
+
const Zt = "active", Jt = "selected";
|
|
2897
2911
|
function lt(e, t, n) {
|
|
2898
2912
|
const o = /* @__PURE__ */ new Map(), r = n === "item";
|
|
2899
2913
|
let i = e;
|
|
2900
2914
|
if (r && e) {
|
|
2901
2915
|
const {
|
|
2902
|
-
[
|
|
2903
|
-
[
|
|
2916
|
+
[Zt]: s,
|
|
2917
|
+
[Jt]: l,
|
|
2904
2918
|
...a
|
|
2905
2919
|
} = e;
|
|
2906
2920
|
i = a;
|
|
@@ -2915,7 +2929,7 @@ function lt(e, t, n) {
|
|
|
2915
2929
|
return typeof l == "function" ? e ? l(e) : null : l;
|
|
2916
2930
|
}).concat(e).reduce((s, l) => (l && Object.entries(l).forEach((a) => {
|
|
2917
2931
|
let [c, g] = a;
|
|
2918
|
-
if (!(r && [
|
|
2932
|
+
if (!(r && [Zt, Jt].includes(c)))
|
|
2919
2933
|
if (c.indexOf("on") === 0) {
|
|
2920
2934
|
if (o.has(c) || o.set(c, []), typeof g == "function") {
|
|
2921
2935
|
var u;
|
|
@@ -2930,7 +2944,7 @@ function lt(e, t, n) {
|
|
|
2930
2944
|
}), s), {})
|
|
2931
2945
|
};
|
|
2932
2946
|
}
|
|
2933
|
-
function
|
|
2947
|
+
function ai(e) {
|
|
2934
2948
|
e === void 0 && (e = []);
|
|
2935
2949
|
const t = e, n = y.useCallback((i) => lt(i, e, "reference"), t), o = y.useCallback((i) => lt(i, e, "floating"), t), r = y.useCallback(
|
|
2936
2950
|
(i) => lt(i, e, "item"),
|
|
@@ -2946,8 +2960,8 @@ function li(e) {
|
|
|
2946
2960
|
getItemProps: r
|
|
2947
2961
|
}), [n, o, r]);
|
|
2948
2962
|
}
|
|
2949
|
-
const
|
|
2950
|
-
function
|
|
2963
|
+
const ci = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
|
|
2964
|
+
function ui(e, t) {
|
|
2951
2965
|
var n;
|
|
2952
2966
|
t === void 0 && (t = {});
|
|
2953
2967
|
const {
|
|
@@ -2956,7 +2970,7 @@ function ci(e, t) {
|
|
|
2956
2970
|
} = e, {
|
|
2957
2971
|
enabled: i = !0,
|
|
2958
2972
|
role: s = "dialog"
|
|
2959
|
-
} = t, l = (n =
|
|
2973
|
+
} = t, l = (n = ci.get(s)) != null ? n : s, a = wt(), g = $t() != null;
|
|
2960
2974
|
return y.useMemo(() => {
|
|
2961
2975
|
if (!i)
|
|
2962
2976
|
return {};
|
|
@@ -3028,11 +3042,11 @@ function ci(e, t) {
|
|
|
3028
3042
|
};
|
|
3029
3043
|
}, [i, s, l, o, r, a, g]);
|
|
3030
3044
|
}
|
|
3031
|
-
const
|
|
3045
|
+
const Qt = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (t, n) => (n ? "-" : "") + t.toLowerCase());
|
|
3032
3046
|
function Ee(e, t) {
|
|
3033
3047
|
return typeof e == "function" ? e(t) : e;
|
|
3034
3048
|
}
|
|
3035
|
-
function
|
|
3049
|
+
function di(e, t) {
|
|
3036
3050
|
const [n, o] = y.useState(e);
|
|
3037
3051
|
return e && !n && o(!0), y.useEffect(() => {
|
|
3038
3052
|
if (!e) {
|
|
@@ -3041,7 +3055,7 @@ function ui(e, t) {
|
|
|
3041
3055
|
}
|
|
3042
3056
|
}, [e, t]), n;
|
|
3043
3057
|
}
|
|
3044
|
-
function
|
|
3058
|
+
function fi(e, t) {
|
|
3045
3059
|
t === void 0 && (t = {});
|
|
3046
3060
|
const {
|
|
3047
3061
|
open: n,
|
|
@@ -3050,7 +3064,7 @@ function di(e, t) {
|
|
|
3050
3064
|
}
|
|
3051
3065
|
} = e, {
|
|
3052
3066
|
duration: r = 250
|
|
3053
|
-
} = t, s = (typeof r == "number" ? r : r.close) || 0, [l, a] = y.useState(!1), [c, g] = y.useState("unmounted"), u =
|
|
3067
|
+
} = t, s = (typeof r == "number" ? r : r.close) || 0, [l, a] = y.useState(!1), [c, g] = y.useState("unmounted"), u = di(n, s);
|
|
3054
3068
|
return Q(() => {
|
|
3055
3069
|
l && !u && g("unmounted");
|
|
3056
3070
|
}, [l, u]), Q(() => {
|
|
@@ -3071,7 +3085,7 @@ function di(e, t) {
|
|
|
3071
3085
|
status: c
|
|
3072
3086
|
};
|
|
3073
3087
|
}
|
|
3074
|
-
function
|
|
3088
|
+
function gi(e, t) {
|
|
3075
3089
|
t === void 0 && (t = {});
|
|
3076
3090
|
const {
|
|
3077
3091
|
initial: n = {
|
|
@@ -3090,35 +3104,35 @@ function fi(e, t) {
|
|
|
3090
3104
|
})), {
|
|
3091
3105
|
isMounted: p,
|
|
3092
3106
|
status: w
|
|
3093
|
-
} =
|
|
3107
|
+
} = fi(e, {
|
|
3094
3108
|
duration: s
|
|
3095
|
-
}), h = Ie(n), x = Ie(o),
|
|
3109
|
+
}), h = Ie(n), x = Ie(o), P = Ie(r), S = Ie(i);
|
|
3096
3110
|
return Q(() => {
|
|
3097
|
-
const k = Ee(h.current, c), C = Ee(
|
|
3111
|
+
const k = Ee(h.current, c), C = Ee(P.current, c), B = Ee(S.current, c), T = Ee(x.current, c) || Object.keys(k).reduce((D, A) => (D[A] = "", D), {});
|
|
3098
3112
|
if (w === "initial" && m((D) => ({
|
|
3099
3113
|
transitionProperty: D.transitionProperty,
|
|
3100
|
-
...
|
|
3114
|
+
...B,
|
|
3101
3115
|
...k
|
|
3102
3116
|
})), w === "open" && m({
|
|
3103
|
-
transitionProperty: Object.keys(T).map(
|
|
3117
|
+
transitionProperty: Object.keys(T).map(Qt).join(","),
|
|
3104
3118
|
transitionDuration: u + "ms",
|
|
3105
|
-
...
|
|
3119
|
+
...B,
|
|
3106
3120
|
...T
|
|
3107
3121
|
}), w === "close") {
|
|
3108
3122
|
const D = C || k;
|
|
3109
3123
|
m({
|
|
3110
|
-
transitionProperty: Object.keys(D).map(
|
|
3124
|
+
transitionProperty: Object.keys(D).map(Qt).join(","),
|
|
3111
3125
|
transitionDuration: f + "ms",
|
|
3112
|
-
...
|
|
3126
|
+
...B,
|
|
3113
3127
|
...D
|
|
3114
3128
|
});
|
|
3115
3129
|
}
|
|
3116
|
-
}, [f,
|
|
3130
|
+
}, [f, P, h, x, S, u, w, c]), {
|
|
3117
3131
|
isMounted: p,
|
|
3118
3132
|
styles: d
|
|
3119
3133
|
};
|
|
3120
3134
|
}
|
|
3121
|
-
function
|
|
3135
|
+
function en(e, t) {
|
|
3122
3136
|
const [n, o] = e;
|
|
3123
3137
|
let r = !1;
|
|
3124
3138
|
const i = t.length;
|
|
@@ -3128,10 +3142,10 @@ function Qt(e, t) {
|
|
|
3128
3142
|
}
|
|
3129
3143
|
return r;
|
|
3130
3144
|
}
|
|
3131
|
-
function
|
|
3145
|
+
function mi(e, t) {
|
|
3132
3146
|
return e[0] >= t.x && e[0] <= t.x + t.width && e[1] >= t.y && e[1] <= t.y + t.height;
|
|
3133
3147
|
}
|
|
3134
|
-
function
|
|
3148
|
+
function pi(e) {
|
|
3135
3149
|
e === void 0 && (e = {});
|
|
3136
3150
|
const {
|
|
3137
3151
|
buffer: t = 0.5,
|
|
@@ -3164,8 +3178,8 @@ function mi(e) {
|
|
|
3164
3178
|
return;
|
|
3165
3179
|
const {
|
|
3166
3180
|
clientX: C,
|
|
3167
|
-
clientY:
|
|
3168
|
-
} = S, T = [C,
|
|
3181
|
+
clientY: B
|
|
3182
|
+
} = S, T = [C, B], D = Ce(S), A = S.type === "mouseleave", L = be(p.floating, D), M = be(p.domReference, D), O = p.domReference.getBoundingClientRect(), b = p.floating.getBoundingClientRect(), v = m.split("-")[0], I = f > b.right - b.width / 2, R = d > b.bottom - b.height / 2, $ = mi(T, O), F = b.width > O.width, K = b.height > O.height, U = (F ? O : b).left, we = (F ? O : b).right, ae = (K ? O : b).top, V = (K ? O : b).bottom;
|
|
3169
3183
|
if (L && (i = !0, !A))
|
|
3170
3184
|
return;
|
|
3171
3185
|
if (M && (i = !1), M && !A) {
|
|
@@ -3217,7 +3231,7 @@ function mi(e) {
|
|
|
3217
3231
|
}
|
|
3218
3232
|
}
|
|
3219
3233
|
}
|
|
3220
|
-
if (!
|
|
3234
|
+
if (!en([C, B], G)) {
|
|
3221
3235
|
if (i && !$)
|
|
3222
3236
|
return k();
|
|
3223
3237
|
if (!A && o) {
|
|
@@ -3225,7 +3239,7 @@ function mi(e) {
|
|
|
3225
3239
|
if (ue !== null && ue < 0.1)
|
|
3226
3240
|
return k();
|
|
3227
3241
|
}
|
|
3228
|
-
|
|
3242
|
+
en([C, B], ce([f, d])) ? !i && o && (r = window.setTimeout(k, 40)) : k();
|
|
3229
3243
|
}
|
|
3230
3244
|
};
|
|
3231
3245
|
};
|
|
@@ -3233,9 +3247,9 @@ function mi(e) {
|
|
|
3233
3247
|
blockPointerEvents: n
|
|
3234
3248
|
}, g;
|
|
3235
3249
|
}
|
|
3236
|
-
const ge = j("div"),
|
|
3250
|
+
const ge = j("div"), Rt = Dn(
|
|
3237
3251
|
{}
|
|
3238
|
-
),
|
|
3252
|
+
), zi = ({
|
|
3239
3253
|
children: e,
|
|
3240
3254
|
offset: t,
|
|
3241
3255
|
open: n,
|
|
@@ -3245,13 +3259,13 @@ const ge = j("div"), St = On(
|
|
|
3245
3259
|
placement: s = "bottom",
|
|
3246
3260
|
role: l = "dialog"
|
|
3247
3261
|
}) => {
|
|
3248
|
-
const { refs: a, floatingStyles: c, context: g } =
|
|
3262
|
+
const { refs: a, floatingStyles: c, context: g } = li({
|
|
3249
3263
|
open: n,
|
|
3250
3264
|
onOpenChange: o,
|
|
3251
3265
|
placement: s,
|
|
3252
|
-
whileElementsMounted:
|
|
3253
|
-
middleware: [
|
|
3254
|
-
}), { isMounted: u, styles: f } =
|
|
3266
|
+
whileElementsMounted: br,
|
|
3267
|
+
middleware: [Jo(t), vr(), yr()]
|
|
3268
|
+
}), { isMounted: u, styles: f } = gi(g, {
|
|
3255
3269
|
initial: ({ side: S }) => ({
|
|
3256
3270
|
opacity: 0,
|
|
3257
3271
|
transform: {
|
|
@@ -3261,16 +3275,16 @@ const ge = j("div"), St = On(
|
|
|
3261
3275
|
left: "translateX(-0.5rem)"
|
|
3262
3276
|
}[S]
|
|
3263
3277
|
})
|
|
3264
|
-
}), d =
|
|
3278
|
+
}), d = oi(g, { enabled: r === "click" }), m = Gr(g, {
|
|
3265
3279
|
enabled: r === "hover",
|
|
3266
3280
|
delay: i,
|
|
3267
|
-
handleClose:
|
|
3268
|
-
}), p =
|
|
3281
|
+
handleClose: pi()
|
|
3282
|
+
}), p = si(g), w = ui(g, { role: l }), { getFloatingProps: h, getReferenceProps: x } = ai([
|
|
3269
3283
|
d,
|
|
3270
3284
|
m,
|
|
3271
3285
|
p,
|
|
3272
3286
|
w
|
|
3273
|
-
]),
|
|
3287
|
+
]), P = at(
|
|
3274
3288
|
() => ({
|
|
3275
3289
|
getFloatingProps: h,
|
|
3276
3290
|
getReferenceProps: x,
|
|
@@ -3288,22 +3302,22 @@ const ge = j("div"), St = On(
|
|
|
3288
3302
|
f
|
|
3289
3303
|
]
|
|
3290
3304
|
);
|
|
3291
|
-
return /* @__PURE__ */ z(
|
|
3292
|
-
},
|
|
3293
|
-
const { getReferenceProps: t, refs: n } =
|
|
3294
|
-
return /* @__PURE__ */ z(
|
|
3305
|
+
return /* @__PURE__ */ z(Rt.Provider, { value: P, children: e });
|
|
3306
|
+
}, Wi = ({ children: e }) => {
|
|
3307
|
+
const { getReferenceProps: t, refs: n } = on(Rt);
|
|
3308
|
+
return /* @__PURE__ */ z(On, { children: Mn(e) && Ln(e, {
|
|
3295
3309
|
ref: n.setReference,
|
|
3296
3310
|
...t()
|
|
3297
3311
|
}) });
|
|
3298
|
-
},
|
|
3312
|
+
}, Ni = ({ children: e, overlayCardProps: t }) => {
|
|
3299
3313
|
const {
|
|
3300
3314
|
getFloatingProps: n,
|
|
3301
3315
|
isMounted: o,
|
|
3302
3316
|
refs: r,
|
|
3303
3317
|
floatingStyles: i,
|
|
3304
3318
|
transitionStyles: s
|
|
3305
|
-
} =
|
|
3306
|
-
return o ? /* @__PURE__ */ z(
|
|
3319
|
+
} = on(Rt);
|
|
3320
|
+
return o ? /* @__PURE__ */ z(ti, { children: /* @__PURE__ */ z(
|
|
3307
3321
|
ge,
|
|
3308
3322
|
{
|
|
3309
3323
|
ref: r.setFloating,
|
|
@@ -3312,10 +3326,10 @@ const ge = j("div"), St = On(
|
|
|
3312
3326
|
css: {
|
|
3313
3327
|
zIndex: "$overlayCard"
|
|
3314
3328
|
},
|
|
3315
|
-
children: /* @__PURE__ */ z(
|
|
3329
|
+
children: /* @__PURE__ */ z(an, { ...t, style: s, children: e })
|
|
3316
3330
|
}
|
|
3317
3331
|
) }) : null;
|
|
3318
|
-
},
|
|
3332
|
+
}, ji = j("span", {
|
|
3319
3333
|
flex: "0 0 auto",
|
|
3320
3334
|
display: "inline-flex",
|
|
3321
3335
|
padding: "$1 $2",
|
|
@@ -3352,24 +3366,24 @@ const ge = j("div"), St = On(
|
|
|
3352
3366
|
defaultVariants: {
|
|
3353
3367
|
color: "primary"
|
|
3354
3368
|
}
|
|
3355
|
-
}),
|
|
3369
|
+
}), Hi = j(je.Root, {
|
|
3356
3370
|
backgroundColor: "$gray50",
|
|
3357
3371
|
display: "flex",
|
|
3358
3372
|
alignItems: "center",
|
|
3359
3373
|
padding: "$1",
|
|
3360
3374
|
gap: "$1"
|
|
3361
|
-
}),
|
|
3375
|
+
}), Vi = j(je.ToggleGroup, {
|
|
3362
3376
|
display: "flex",
|
|
3363
3377
|
gap: "$1",
|
|
3364
3378
|
alignItems: "center"
|
|
3365
|
-
}),
|
|
3379
|
+
}), _i = j(je.Separator, {
|
|
3366
3380
|
width: "1px",
|
|
3367
3381
|
height: "1.5rem",
|
|
3368
3382
|
my: "$1",
|
|
3369
3383
|
mx: "$1",
|
|
3370
3384
|
backgroundColor: "$border"
|
|
3371
|
-
}),
|
|
3372
|
-
|
|
3385
|
+
}), An = xe(({ css: e, ...t }, n) => /* @__PURE__ */ z(
|
|
3386
|
+
ln,
|
|
3373
3387
|
{
|
|
3374
3388
|
ref: n,
|
|
3375
3389
|
icon: !0,
|
|
@@ -3383,14 +3397,14 @@ const ge = j("div"), St = On(
|
|
|
3383
3397
|
},
|
|
3384
3398
|
...t
|
|
3385
3399
|
}
|
|
3386
|
-
)),
|
|
3400
|
+
)), Yi = xe(
|
|
3387
3401
|
({ children: e, dropdown: t, ...n }, o) => /* @__PURE__ */ z(
|
|
3388
3402
|
je.Button,
|
|
3389
3403
|
{
|
|
3390
3404
|
asChild: !0,
|
|
3391
3405
|
ref: o,
|
|
3392
|
-
children: /* @__PURE__ */
|
|
3393
|
-
|
|
3406
|
+
children: /* @__PURE__ */ Be(
|
|
3407
|
+
An,
|
|
3394
3408
|
{
|
|
3395
3409
|
variant: "transparent",
|
|
3396
3410
|
color: "primary",
|
|
@@ -3403,7 +3417,7 @@ const ge = j("div"), St = On(
|
|
|
3403
3417
|
)
|
|
3404
3418
|
}
|
|
3405
3419
|
)
|
|
3406
|
-
),
|
|
3420
|
+
), Xi = xe(({
|
|
3407
3421
|
children: e,
|
|
3408
3422
|
value: t,
|
|
3409
3423
|
...n
|
|
@@ -3414,7 +3428,7 @@ const ge = j("div"), St = On(
|
|
|
3414
3428
|
asChild: !0,
|
|
3415
3429
|
ref: o,
|
|
3416
3430
|
children: /* @__PURE__ */ z(
|
|
3417
|
-
|
|
3431
|
+
An,
|
|
3418
3432
|
{
|
|
3419
3433
|
variant: "transparent",
|
|
3420
3434
|
color: "primary",
|
|
@@ -3424,7 +3438,7 @@ const ge = j("div"), St = On(
|
|
|
3424
3438
|
}
|
|
3425
3439
|
)
|
|
3426
3440
|
}
|
|
3427
|
-
)),
|
|
3441
|
+
)), Ki = j("div", {
|
|
3428
3442
|
color: "$$cardText",
|
|
3429
3443
|
backgroundColor: "$$cardBackground",
|
|
3430
3444
|
borderRadius: "$md",
|
|
@@ -3449,7 +3463,7 @@ const ge = j("div"), St = On(
|
|
|
3449
3463
|
variant: "primary",
|
|
3450
3464
|
elevation: "raised"
|
|
3451
3465
|
}
|
|
3452
|
-
}),
|
|
3466
|
+
}), hi = j("div", {
|
|
3453
3467
|
borderRadius: "$md",
|
|
3454
3468
|
padding: "$1",
|
|
3455
3469
|
border: "2px solid $blue100",
|
|
@@ -3457,12 +3471,12 @@ const ge = j("div"), St = On(
|
|
|
3457
3471
|
display: "flex",
|
|
3458
3472
|
alignItems: "center",
|
|
3459
3473
|
gap: "$1"
|
|
3460
|
-
}),
|
|
3474
|
+
}), Gi = (e) => /* @__PURE__ */ z(hi, { ...e }), Ui = ({
|
|
3461
3475
|
children: e,
|
|
3462
3476
|
active: t = !1,
|
|
3463
3477
|
...n
|
|
3464
3478
|
}) => /* @__PURE__ */ z(
|
|
3465
|
-
|
|
3479
|
+
ln,
|
|
3466
3480
|
{
|
|
3467
3481
|
variant: "transparent",
|
|
3468
3482
|
color: "primary",
|
|
@@ -3475,7 +3489,7 @@ const ge = j("div"), St = On(
|
|
|
3475
3489
|
...n,
|
|
3476
3490
|
children: e
|
|
3477
3491
|
}
|
|
3478
|
-
),
|
|
3492
|
+
), bi = j("dialog", {
|
|
3479
3493
|
border: 0,
|
|
3480
3494
|
padding: 0,
|
|
3481
3495
|
outline: "none",
|
|
@@ -3487,25 +3501,25 @@ const ge = j("div"), St = On(
|
|
|
3487
3501
|
"&::backdrop": {
|
|
3488
3502
|
background: "rgba(0, 0, 0, 0.8)"
|
|
3489
3503
|
}
|
|
3490
|
-
}),
|
|
3504
|
+
}), qi = ({
|
|
3491
3505
|
children: e,
|
|
3492
3506
|
open: t = !1,
|
|
3493
3507
|
onOpenChange: n,
|
|
3494
3508
|
...o
|
|
3495
3509
|
}) => {
|
|
3496
|
-
const r =
|
|
3497
|
-
|
|
3510
|
+
const r = nn(null);
|
|
3511
|
+
pt(() => {
|
|
3498
3512
|
r.current && t && r.current.showModal();
|
|
3499
3513
|
}, [t]);
|
|
3500
|
-
const i =
|
|
3514
|
+
const i = Ct(() => {
|
|
3501
3515
|
n(!1);
|
|
3502
|
-
}, [n]), s =
|
|
3516
|
+
}, [n]), s = Ct((l) => {
|
|
3503
3517
|
var a;
|
|
3504
3518
|
l.target === r.current && ((a = r.current) == null || a.close());
|
|
3505
3519
|
}, []);
|
|
3506
|
-
return t ?
|
|
3520
|
+
return t ? rn(
|
|
3507
3521
|
/* @__PURE__ */ z(
|
|
3508
|
-
|
|
3522
|
+
bi,
|
|
3509
3523
|
{
|
|
3510
3524
|
ref: r,
|
|
3511
3525
|
onClose: i,
|
|
@@ -3516,21 +3530,21 @@ const ge = j("div"), St = On(
|
|
|
3516
3530
|
),
|
|
3517
3531
|
document.body
|
|
3518
3532
|
) : null;
|
|
3519
|
-
},
|
|
3533
|
+
}, Zi = j("h2", {
|
|
3520
3534
|
fontSize: "$xl",
|
|
3521
3535
|
fontWeight: "$medium",
|
|
3522
3536
|
marginBottom: "$6"
|
|
3523
|
-
}),
|
|
3537
|
+
}), Ji = j("div", {
|
|
3524
3538
|
display: "flex",
|
|
3525
3539
|
gap: "$2",
|
|
3526
3540
|
justifyContent: "flex-end",
|
|
3527
3541
|
background: "$gray100",
|
|
3528
3542
|
margin: "$6 -$4 -$4 -$4",
|
|
3529
3543
|
padding: "$2"
|
|
3530
|
-
}),
|
|
3544
|
+
}), yi = j(an, {
|
|
3531
3545
|
minWidth: "max(var(--radix-popper-anchor-width), 12rem)",
|
|
3532
3546
|
padding: "$1"
|
|
3533
|
-
}),
|
|
3547
|
+
}), Et = He({
|
|
3534
3548
|
padding: "$2 $2 $2 1.5rem",
|
|
3535
3549
|
fontSize: "$sm",
|
|
3536
3550
|
lineHeight: "1.25",
|
|
@@ -3553,14 +3567,14 @@ const ge = j("div"), St = On(
|
|
|
3553
3567
|
backgroundColor: "transparent"
|
|
3554
3568
|
}
|
|
3555
3569
|
}
|
|
3556
|
-
}),
|
|
3570
|
+
}), Qi = ({
|
|
3557
3571
|
side: e = "bottom",
|
|
3558
3572
|
align: t = "center",
|
|
3559
3573
|
trigger: n,
|
|
3560
3574
|
children: o,
|
|
3561
3575
|
sideOffset: r,
|
|
3562
3576
|
modal: i
|
|
3563
|
-
}) => /* @__PURE__ */
|
|
3577
|
+
}) => /* @__PURE__ */ Be(te.Root, { modal: i, children: [
|
|
3564
3578
|
/* @__PURE__ */ z(te.Trigger, { asChild: !0, children: n }),
|
|
3565
3579
|
/* @__PURE__ */ z(te.Portal, { children: /* @__PURE__ */ z(
|
|
3566
3580
|
te.Content,
|
|
@@ -3570,10 +3584,10 @@ const ge = j("div"), St = On(
|
|
|
3570
3584
|
align: t,
|
|
3571
3585
|
collisionPadding: 10,
|
|
3572
3586
|
sideOffset: r,
|
|
3573
|
-
children: /* @__PURE__ */ z(
|
|
3587
|
+
children: /* @__PURE__ */ z(yi, { children: o })
|
|
3574
3588
|
}
|
|
3575
3589
|
) })
|
|
3576
|
-
] }),
|
|
3590
|
+
] }), vi = j(te.ItemIndicator, {
|
|
3577
3591
|
position: "absolute",
|
|
3578
3592
|
left: 0,
|
|
3579
3593
|
top: 0,
|
|
@@ -3582,30 +3596,114 @@ const ge = j("div"), St = On(
|
|
|
3582
3596
|
display: "flex",
|
|
3583
3597
|
justifyContent: "center",
|
|
3584
3598
|
alignItems: "center"
|
|
3585
|
-
}),
|
|
3599
|
+
}), es = j(te.Separator, {
|
|
3586
3600
|
height: 1,
|
|
3587
3601
|
backgroundColor: "$gray200",
|
|
3588
3602
|
margin: 1
|
|
3589
|
-
}),
|
|
3603
|
+
}), ts = j(te.Item, Et), ns = j(te.Item, Et, {
|
|
3590
3604
|
padding: "$2",
|
|
3591
3605
|
display: "flex",
|
|
3592
3606
|
alignItems: "center",
|
|
3593
3607
|
gap: "$2"
|
|
3594
|
-
}),
|
|
3608
|
+
}), xi = j(te.CheckboxItem, Et), os = ({
|
|
3595
3609
|
value: e,
|
|
3596
3610
|
onChange: t,
|
|
3597
3611
|
children: n
|
|
3598
|
-
}) => /* @__PURE__ */
|
|
3599
|
-
|
|
3612
|
+
}) => /* @__PURE__ */ Be(
|
|
3613
|
+
xi,
|
|
3600
3614
|
{
|
|
3601
3615
|
checked: e,
|
|
3602
3616
|
onCheckedChange: t,
|
|
3603
3617
|
children: [
|
|
3604
|
-
/* @__PURE__ */ z(
|
|
3618
|
+
/* @__PURE__ */ z(vi, { children: /* @__PURE__ */ z(Nn, { size: "0.75rem" }) }),
|
|
3605
3619
|
n
|
|
3606
3620
|
]
|
|
3607
3621
|
}
|
|
3608
|
-
),
|
|
3622
|
+
), wi = {
|
|
3623
|
+
container: (e) => ({
|
|
3624
|
+
...e,
|
|
3625
|
+
minWidth: "200px"
|
|
3626
|
+
}),
|
|
3627
|
+
control: (e, { isFocused: t }) => ({
|
|
3628
|
+
...e,
|
|
3629
|
+
"&:hover": {},
|
|
3630
|
+
border: t ? "1px solid var(--colors-blue300)" : "1px solid var(--colors-gray300)",
|
|
3631
|
+
outline: "none",
|
|
3632
|
+
borderRadius: "var(--radii-sm)",
|
|
3633
|
+
boxShadow: t ? "0 0 0 4px var(--colors-blue100)" : "none"
|
|
3634
|
+
}),
|
|
3635
|
+
menu: (e) => ({
|
|
3636
|
+
...e,
|
|
3637
|
+
boxShadow: "var(--shadows-overlayCard)",
|
|
3638
|
+
borderRadius: "var(--radii-md)",
|
|
3639
|
+
border: "none",
|
|
3640
|
+
padding: "var(--space-1)"
|
|
3641
|
+
}),
|
|
3642
|
+
option: (e, { isFocused: t, isSelected: n }) => ({
|
|
3643
|
+
...e,
|
|
3644
|
+
background: t ? "var(--colors-gray100)" : n ? "var(--colors-blue100)" : "transparent",
|
|
3645
|
+
"&:active": {
|
|
3646
|
+
background: "var(--colors-gray200)"
|
|
3647
|
+
},
|
|
3648
|
+
borderRadius: "var(--radii-sm)",
|
|
3649
|
+
color: "var(--colors-text)"
|
|
3650
|
+
}),
|
|
3651
|
+
menuList: (e) => ({
|
|
3652
|
+
...e,
|
|
3653
|
+
padding: 0
|
|
3654
|
+
}),
|
|
3655
|
+
multiValueRemove: (e) => ({
|
|
3656
|
+
...e,
|
|
3657
|
+
background: "transparent",
|
|
3658
|
+
color: "var(--colors-text)",
|
|
3659
|
+
"&:hover": {
|
|
3660
|
+
background: "var(--colors-red200)",
|
|
3661
|
+
color: "var(--colors-red800)"
|
|
3662
|
+
}
|
|
3663
|
+
}),
|
|
3664
|
+
clearIndicator: (e) => ({
|
|
3665
|
+
...e,
|
|
3666
|
+
paddingLeft: 0,
|
|
3667
|
+
paddingRight: 0
|
|
3668
|
+
}),
|
|
3669
|
+
menuPortal: (e) => ({
|
|
3670
|
+
...e,
|
|
3671
|
+
zIndex: "var(--zIndices-overlayCard)"
|
|
3672
|
+
})
|
|
3673
|
+
}, $i = {
|
|
3674
|
+
IndicatorSeparator: () => null
|
|
3675
|
+
}, Si = ({
|
|
3676
|
+
styles: e,
|
|
3677
|
+
components: t,
|
|
3678
|
+
...n
|
|
3679
|
+
}) => {
|
|
3680
|
+
const o = at(
|
|
3681
|
+
() => ({
|
|
3682
|
+
...wi,
|
|
3683
|
+
...e
|
|
3684
|
+
}),
|
|
3685
|
+
[e]
|
|
3686
|
+
), r = at(
|
|
3687
|
+
() => ({
|
|
3688
|
+
...$i,
|
|
3689
|
+
...t
|
|
3690
|
+
}),
|
|
3691
|
+
[t]
|
|
3692
|
+
);
|
|
3693
|
+
return /* @__PURE__ */ z(Hn, { components: r, styles: o, ...n });
|
|
3694
|
+
}, rs = ({
|
|
3695
|
+
clearable: e = !0,
|
|
3696
|
+
multi: t = !1,
|
|
3697
|
+
...n
|
|
3698
|
+
}) => (e = t ? !1 : e, /* @__PURE__ */ z(
|
|
3699
|
+
Si,
|
|
3700
|
+
{
|
|
3701
|
+
...n,
|
|
3702
|
+
isClearable: e,
|
|
3703
|
+
isMulti: t,
|
|
3704
|
+
isSearchable: !0
|
|
3705
|
+
}
|
|
3706
|
+
)), Ri = He({
|
|
3609
3707
|
display: "block",
|
|
3610
3708
|
width: "100%",
|
|
3611
3709
|
padding: "0.5rem 0.75rem",
|
|
@@ -3617,7 +3715,7 @@ const ge = j("div"), St = On(
|
|
|
3617
3715
|
"-webkit-appearance": "none",
|
|
3618
3716
|
"-moz-appearance": "none",
|
|
3619
3717
|
appearance: "none"
|
|
3620
|
-
}),
|
|
3718
|
+
}), Ei = He({
|
|
3621
3719
|
display: "block",
|
|
3622
3720
|
width: "100%",
|
|
3623
3721
|
background: "#fff",
|
|
@@ -3641,15 +3739,15 @@ const ge = j("div"), St = On(
|
|
|
3641
3739
|
}
|
|
3642
3740
|
}
|
|
3643
3741
|
}
|
|
3644
|
-
}),
|
|
3742
|
+
}), Ci = j("input", Ri), ki = j("div", Ei, {
|
|
3645
3743
|
display: "flex",
|
|
3646
3744
|
alignItems: "center",
|
|
3647
3745
|
gap: "$2",
|
|
3648
3746
|
width: "100%"
|
|
3649
|
-
}),
|
|
3747
|
+
}), is = xe(
|
|
3650
3748
|
({ type: e = "text", label: t, error: n, style: o, css: r, suffix: i, id: s, ...l }, a) => {
|
|
3651
3749
|
const c = Fn();
|
|
3652
|
-
return s = s || c, /* @__PURE__ */
|
|
3750
|
+
return s = s || c, /* @__PURE__ */ Be(ge, { css: r, children: [
|
|
3653
3751
|
t && /* @__PURE__ */ z(
|
|
3654
3752
|
ge,
|
|
3655
3753
|
{
|
|
@@ -3663,9 +3761,9 @@ const ge = j("div"), St = On(
|
|
|
3663
3761
|
children: t
|
|
3664
3762
|
}
|
|
3665
3763
|
),
|
|
3666
|
-
/* @__PURE__ */
|
|
3764
|
+
/* @__PURE__ */ Be(ki, { error: !!n, children: [
|
|
3667
3765
|
/* @__PURE__ */ z(
|
|
3668
|
-
|
|
3766
|
+
Ci,
|
|
3669
3767
|
{
|
|
3670
3768
|
id: s,
|
|
3671
3769
|
ref: a,
|
|
@@ -3701,47 +3799,49 @@ const ge = j("div"), St = On(
|
|
|
3701
3799
|
export {
|
|
3702
3800
|
Me as A,
|
|
3703
3801
|
ge as B,
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3802
|
+
rs as C,
|
|
3803
|
+
Qi as D,
|
|
3804
|
+
Oi as E,
|
|
3805
|
+
ti as F,
|
|
3806
|
+
Di as G,
|
|
3807
|
+
Mi as H,
|
|
3808
|
+
ji as I,
|
|
3809
|
+
An as J,
|
|
3810
|
+
Ki as K,
|
|
3811
|
+
Zi as L,
|
|
3812
|
+
yi as M,
|
|
3813
|
+
Gi as N,
|
|
3814
|
+
an as O,
|
|
3815
|
+
zi as P,
|
|
3816
|
+
Et as Q,
|
|
3817
|
+
Si as R,
|
|
3818
|
+
So as S,
|
|
3819
|
+
Yi as T,
|
|
3820
|
+
os as U,
|
|
3821
|
+
ns as a,
|
|
3822
|
+
Vi as b,
|
|
3723
3823
|
He as c,
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3824
|
+
Xi as d,
|
|
3825
|
+
br as e,
|
|
3826
|
+
Li as f,
|
|
3827
|
+
vr as g,
|
|
3828
|
+
yr as h,
|
|
3829
|
+
ai as i,
|
|
3830
|
+
ui as j,
|
|
3831
|
+
Hi as k,
|
|
3832
|
+
_i as l,
|
|
3833
|
+
ln as m,
|
|
3834
|
+
ts as n,
|
|
3835
|
+
Jo as o,
|
|
3836
|
+
es as p,
|
|
3837
|
+
qi as q,
|
|
3838
|
+
Ui as r,
|
|
3739
3839
|
j as s,
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3840
|
+
is as t,
|
|
3841
|
+
li as u,
|
|
3842
|
+
Ji as v,
|
|
3843
|
+
Fi as w,
|
|
3844
|
+
si as x,
|
|
3845
|
+
Wi as y,
|
|
3846
|
+
Ni as z
|
|
3747
3847
|
};
|