@arkitektbedriftene/fe-lib 0.4.7 → 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-f8076813.js → TextInput-c4d1672c.js} +1460 -1278
- package/dist/icons.es.js +1 -1
- package/dist/{index.esm-969855d2.js → index.esm-b848a615.js} +26 -22
- package/dist/oidc/firmAccess.d.ts +3 -0
- package/dist/oidc.es.js +75 -63
- package/dist/rich-text/Plugins/LinkEditPlugin.d.ts +2 -0
- 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 +2 -0
- package/dist/rich-text.es.js +689 -506
- 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 +54 -138
- 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
|
|
4
|
-
import * 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
|
+
import * as zn from "react-dom";
|
|
5
5
|
import { createPortal as rn } from "react-dom";
|
|
6
|
-
import * as
|
|
7
|
-
import {
|
|
8
|
-
import * as
|
|
9
|
-
|
|
6
|
+
import * as je from "@radix-ui/react-toolbar";
|
|
7
|
+
import { g as Wn, h as Nn, i as jn } from "./index.esm-b848a615.js";
|
|
8
|
+
import * as te from "@radix-ui/react-dropdown-menu";
|
|
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
|
-
return (t, n, ...
|
|
12
|
-
const
|
|
13
|
-
return
|
|
12
|
+
return (t, n, ...o) => {
|
|
13
|
+
const r = ((i) => JSON.stringify(i, _n))(t);
|
|
14
|
+
return r in e ? e[r] : e[r] = n(t, ...o);
|
|
14
15
|
};
|
|
15
|
-
},
|
|
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
|
-
const a = (c,
|
|
22
|
-
let f,
|
|
23
|
-
const
|
|
22
|
+
const a = (c, g, u) => {
|
|
23
|
+
let f, d;
|
|
24
|
+
const m = (p) => {
|
|
24
25
|
for (f in p) {
|
|
25
26
|
const x = f.charCodeAt(0) === 64, P = x && Array.isArray(p[f]) ? p[f] : [p[f]];
|
|
26
|
-
for (
|
|
27
|
-
const S = /[A-Z]/.test(h = f) ? h : h.replace(/-[^]/g, (C) => C[1].toUpperCase()), k = typeof
|
|
28
|
-
if (S in
|
|
29
|
-
const C =
|
|
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);
|
|
29
|
+
if (S in o.utils && !k) {
|
|
30
|
+
const C = o.utils[S];
|
|
30
31
|
if (C !== s) {
|
|
31
|
-
s = C,
|
|
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
|
-
l = C,
|
|
38
|
+
l = C, m(C(d)), l = null;
|
|
38
39
|
continue;
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
|
-
if (x && (w = f.slice(1) in
|
|
42
|
-
const M = nt.test(B), O = 0.0625 * (M ? -1 : 1), [b, v] = M ? [
|
|
43
|
-
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) + (
|
|
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];
|
|
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 ?
|
|
46
|
-
i !== void 0 &&
|
|
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 = [[],
|
|
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
|
-
|
|
54
|
+
m(c), i !== void 0 && r(It(...i)), i = void 0;
|
|
54
55
|
};
|
|
55
56
|
a(e, t, n);
|
|
56
|
-
},
|
|
57
|
-
let n,
|
|
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) => {
|
|
58
|
+
let n, o = "";
|
|
58
59
|
for (n = Math.abs(t); n > 52; n = n / 52 | 0)
|
|
59
|
-
|
|
60
|
-
return
|
|
60
|
+
o = Pt(n % 52) + o;
|
|
61
|
+
return Pt(n % 52) + o;
|
|
61
62
|
})(((t, n) => {
|
|
62
|
-
let
|
|
63
|
-
for (;
|
|
64
|
-
t = 33 * t ^ n.charCodeAt(--
|
|
63
|
+
let o = n.length;
|
|
64
|
+
for (; o; )
|
|
65
|
+
t = 33 * t ^ n.charCodeAt(--o);
|
|
65
66
|
return t;
|
|
66
|
-
})(5381, JSON.stringify(e)) >>> 0),
|
|
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,16 +72,16 @@ var W = "colors", Y = "sizes", E = "space", Nn = { 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
|
-
const { cssRules:
|
|
78
|
-
return [].map.call(
|
|
78
|
+
const { cssRules: r } = t.sheet;
|
|
79
|
+
return [].map.call(r, (i, s) => {
|
|
79
80
|
const { cssText: l } = i;
|
|
80
81
|
let a = "";
|
|
81
82
|
if (l.startsWith("--sxs"))
|
|
82
83
|
return "";
|
|
83
|
-
if (
|
|
84
|
+
if (r[s - 1] && (a = r[s - 1].cssText).startsWith("--sxs")) {
|
|
84
85
|
if (!i.cssRules.length)
|
|
85
86
|
return "";
|
|
86
87
|
for (const c in t.rules)
|
|
@@ -90,7 +91,7 @@ var W = "colors", Y = "sizes", E = "space", Nn = { gap: E, gridGap: E, columnGap
|
|
|
90
91
|
}
|
|
91
92
|
return l;
|
|
92
93
|
}).join("");
|
|
93
|
-
},
|
|
94
|
+
}, o = () => {
|
|
94
95
|
if (t) {
|
|
95
96
|
const { rules: l, sheet: a } = t;
|
|
96
97
|
if (!a.deleteRule) {
|
|
@@ -101,284 +102,284 @@ var W = "colors", Y = "sizes", E = "space", Nn = { gap: E, gridGap: E, columnGap
|
|
|
101
102
|
for (const c in l)
|
|
102
103
|
delete l[c];
|
|
103
104
|
}
|
|
104
|
-
const
|
|
105
|
-
for (const l of
|
|
106
|
-
if (
|
|
105
|
+
const r = Object(e).styleSheets || [];
|
|
106
|
+
for (const l of r)
|
|
107
|
+
if (Qn(l)) {
|
|
107
108
|
for (let a = 0, c = l.cssRules; c[a]; ++a) {
|
|
108
|
-
const
|
|
109
|
-
if (
|
|
109
|
+
const g = Object(c[a]);
|
|
110
|
+
if (g.type !== 1)
|
|
110
111
|
continue;
|
|
111
|
-
const
|
|
112
|
-
if (
|
|
112
|
+
const u = Object(c[a + 1]);
|
|
113
|
+
if (u.type !== 4)
|
|
113
114
|
continue;
|
|
114
115
|
++a;
|
|
115
|
-
const { cssText: f } =
|
|
116
|
+
const { cssText: f } = g;
|
|
116
117
|
if (!f.startsWith("--sxs"))
|
|
117
118
|
continue;
|
|
118
|
-
const
|
|
119
|
-
|
|
119
|
+
const d = f.slice(14, -3).trim().split(/\s+/), m = We[d[0]];
|
|
120
|
+
m && (t || (t = { sheet: l, reset: o, rules: {}, toString: n }), t.rules[m] = { group: u, index: a, cache: new Set(d) });
|
|
120
121
|
}
|
|
121
122
|
if (t)
|
|
122
123
|
break;
|
|
123
124
|
}
|
|
124
125
|
if (!t) {
|
|
125
|
-
const l = (a, c) => ({ type: c, cssRules: [], insertRule(
|
|
126
|
-
this.cssRules.splice(
|
|
126
|
+
const l = (a, c) => ({ type: c, cssRules: [], insertRule(g, u) {
|
|
127
|
+
this.cssRules.splice(u, 0, l(g, { import: 3, undefined: 1 }[(g.toLowerCase().match(/^@([a-z]+)/) || [])[1]] || 4));
|
|
127
128
|
}, get cssText() {
|
|
128
|
-
return a === "@media{}" ? `@media{${[].map.call(this.cssRules, (
|
|
129
|
+
return a === "@media{}" ? `@media{${[].map.call(this.cssRules, (g) => g.cssText).join("")}}` : a;
|
|
129
130
|
} });
|
|
130
|
-
t = { sheet: e ? (e.head || e).appendChild(document.createElement("style")).sheet : l("", "text/css"), rules: {}, reset:
|
|
131
|
+
t = { sheet: e ? (e.head || e).appendChild(document.createElement("style")).sheet : l("", "text/css"), rules: {}, reset: o, toString: n };
|
|
131
132
|
}
|
|
132
133
|
const { sheet: i, rules: s } = t;
|
|
133
|
-
for (let l =
|
|
134
|
-
const a =
|
|
134
|
+
for (let l = We.length - 1; l >= 0; --l) {
|
|
135
|
+
const a = We[l];
|
|
135
136
|
if (!s[a]) {
|
|
136
|
-
const c =
|
|
137
|
-
i.insertRule("@media{}",
|
|
137
|
+
const c = We[l + 1], g = s[c] ? s[c].index : i.cssRules.length;
|
|
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
|
-
return
|
|
143
|
-
},
|
|
143
|
+
return o(), t;
|
|
144
|
+
}, to = (e) => {
|
|
144
145
|
const t = e.group;
|
|
145
146
|
let n = t.cssRules.length;
|
|
146
|
-
e.apply = (
|
|
147
|
+
e.apply = (o) => {
|
|
147
148
|
try {
|
|
148
|
-
t.insertRule(
|
|
149
|
+
t.insertRule(o, n), ++n;
|
|
149
150
|
} catch {
|
|
150
151
|
}
|
|
151
152
|
};
|
|
152
|
-
},
|
|
153
|
-
let
|
|
154
|
-
for (const
|
|
155
|
-
if (
|
|
156
|
-
if (
|
|
157
|
-
|
|
158
|
-
for (const i of
|
|
159
|
-
|
|
153
|
+
}, ze = Symbol(), no = De(), Bt = (e, t) => no(e, () => (...n) => {
|
|
154
|
+
let o = { type: null, composers: /* @__PURE__ */ new Set() };
|
|
155
|
+
for (const r of n)
|
|
156
|
+
if (r != null)
|
|
157
|
+
if (r[pe]) {
|
|
158
|
+
o.type == null && (o.type = r[pe].type);
|
|
159
|
+
for (const i of r[pe].composers)
|
|
160
|
+
o.composers.add(i);
|
|
160
161
|
} else
|
|
161
|
-
|
|
162
|
-
return
|
|
163
|
-
}),
|
|
164
|
-
const i = `${
|
|
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) => {
|
|
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
|
-
|
|
170
|
-
const
|
|
171
|
-
for (const
|
|
172
|
-
const p = { [f]: String(
|
|
173
|
-
String(
|
|
174
|
-
const w =
|
|
170
|
+
g = a, u = f, Yn.call(g, u) || (a[f] = "undefined");
|
|
171
|
+
const d = e[f];
|
|
172
|
+
for (const m in d) {
|
|
173
|
+
const p = { [f]: String(m) };
|
|
174
|
+
String(m) === "undefined" && c.push(f);
|
|
175
|
+
const w = d[m], h = [p, w, !kt(w)];
|
|
175
176
|
s.push(h);
|
|
176
177
|
}
|
|
177
178
|
}
|
|
178
|
-
var
|
|
179
|
+
var g, u;
|
|
179
180
|
if (typeof t == "object" && t)
|
|
180
181
|
for (const f of t) {
|
|
181
|
-
let { css:
|
|
182
|
-
|
|
183
|
-
for (const w in
|
|
184
|
-
|
|
185
|
-
const p = [
|
|
182
|
+
let { css: d, ...m } = f;
|
|
183
|
+
d = typeof d == "object" && d || {};
|
|
184
|
+
for (const w in m)
|
|
185
|
+
m[w] = String(m[w]);
|
|
186
|
+
const p = [m, d, !kt(d)];
|
|
186
187
|
l.push(p);
|
|
187
188
|
}
|
|
188
|
-
return [i,
|
|
189
|
-
},
|
|
190
|
-
const [
|
|
189
|
+
return [i, o, s, l, a, c];
|
|
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
|
-
for (let
|
|
193
|
-
const [
|
|
194
|
-
|
|
193
|
+
for (let d = 0; d < f[ze].length; d++) {
|
|
194
|
+
const [m, p] = f[ze][d];
|
|
195
|
+
u.rules[m].apply(p);
|
|
195
196
|
}
|
|
196
|
-
return f[
|
|
197
|
+
return f[ze] = [], null;
|
|
197
198
|
}
|
|
198
|
-
return f[
|
|
199
|
-
})(n) : null, a = (l || n).rules, c = `.${
|
|
200
|
-
|
|
201
|
-
const { css: f, ...
|
|
199
|
+
return f[ze] = [], f.rules = {}, We.forEach((d) => f.rules[d] = { apply: (m) => f[ze].push([d, m]) }), f;
|
|
200
|
+
})(n) : null, a = (l || n).rules, c = `.${o}${r.length > 1 ? `:where(.${r.slice(1).join(".")})` : ""}`, g = (u) => {
|
|
201
|
+
u = typeof u == "object" && u || so;
|
|
202
|
+
const { css: f, ...d } = u, m = {};
|
|
202
203
|
for (const h in i)
|
|
203
|
-
if (delete
|
|
204
|
-
let x =
|
|
205
|
-
typeof x == "object" && x ?
|
|
204
|
+
if (delete d[h], h in u) {
|
|
205
|
+
let x = u[h];
|
|
206
|
+
typeof x == "object" && x ? m[h] = { "@initial": i[h], ...x } : (x = String(x), m[h] = x !== "undefined" || s.has(h) ? x : i[h]);
|
|
206
207
|
} else
|
|
207
|
-
|
|
208
|
-
const p = /* @__PURE__ */ new Set([...
|
|
208
|
+
m[h] = i[h];
|
|
209
|
+
const p = /* @__PURE__ */ new Set([...r]);
|
|
209
210
|
for (const [h, x, P, S] of t.composers) {
|
|
210
|
-
n.rules.styled.cache.has(h) || (n.rules.styled.cache.add(h),
|
|
211
|
+
n.rules.styled.cache.has(h) || (n.rules.styled.cache.add(h), Te(x, [`.${h}`], [], e, (B) => {
|
|
211
212
|
a.styled.apply(B);
|
|
212
213
|
}));
|
|
213
|
-
const k =
|
|
214
|
+
const k = At(P, m, e.media), C = At(S, m, e.media, !0);
|
|
214
215
|
for (const B of k)
|
|
215
216
|
if (B !== void 0)
|
|
216
|
-
for (const [T,
|
|
217
|
-
const
|
|
218
|
-
p.add(
|
|
219
|
-
const M = (
|
|
220
|
-
M.has(
|
|
217
|
+
for (const [T, D, A] of B) {
|
|
218
|
+
const L = `${h}-${he(D)}-${T}`;
|
|
219
|
+
p.add(L);
|
|
220
|
+
const M = (A ? n.rules.resonevar : n.rules.onevar).cache, O = A ? a.resonevar : a.onevar;
|
|
221
|
+
M.has(L) || (M.add(L), Te(D, [`.${L}`], [], e, (b) => {
|
|
221
222
|
O.apply(b);
|
|
222
223
|
}));
|
|
223
224
|
}
|
|
224
225
|
for (const B of C)
|
|
225
226
|
if (B !== void 0)
|
|
226
|
-
for (const [T,
|
|
227
|
-
const
|
|
228
|
-
p.add(
|
|
229
|
-
a.allvar.apply(
|
|
227
|
+
for (const [T, D] of B) {
|
|
228
|
+
const A = `${h}-${he(D)}-${T}`;
|
|
229
|
+
p.add(A), n.rules.allvar.cache.has(A) || (n.rules.allvar.cache.add(A), Te(D, [`.${A}`], [], e, (L) => {
|
|
230
|
+
a.allvar.apply(L);
|
|
230
231
|
}));
|
|
231
232
|
}
|
|
232
233
|
}
|
|
233
234
|
if (typeof f == "object" && f) {
|
|
234
|
-
const h = `${
|
|
235
|
-
p.add(h), n.rules.inline.cache.has(h) || (n.rules.inline.cache.add(h),
|
|
235
|
+
const h = `${o}-i${he(f)}-css`;
|
|
236
|
+
p.add(h), n.rules.inline.cache.has(h) || (n.rules.inline.cache.add(h), Te(f, [`.${h}`], [], e, (x) => {
|
|
236
237
|
a.inline.apply(x);
|
|
237
238
|
}));
|
|
238
239
|
}
|
|
239
|
-
for (const h of String(
|
|
240
|
+
for (const h of String(u.className || "").trim().split(/\s+/))
|
|
240
241
|
h && p.add(h);
|
|
241
|
-
const w =
|
|
242
|
-
return { type: t.type, className: w, selector: c, props:
|
|
242
|
+
const w = d.className = [...p].join(" ");
|
|
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
|
-
const n = [],
|
|
248
|
+
const n = [], o = {}, r = [];
|
|
248
249
|
for (const [i, , , , s, l] of e) {
|
|
249
|
-
t === "" && (t = i), n.push(i),
|
|
250
|
+
t === "" && (t = i), n.push(i), r.push(...l);
|
|
250
251
|
for (const a in s) {
|
|
251
252
|
const c = s[a];
|
|
252
|
-
(
|
|
253
|
+
(o[a] === void 0 || c !== "undefined" || l.includes(c)) && (o[a] = c);
|
|
253
254
|
}
|
|
254
255
|
}
|
|
255
|
-
return [t, n,
|
|
256
|
-
},
|
|
257
|
-
const
|
|
256
|
+
return [t, n, o, new Set(r)];
|
|
257
|
+
}, At = (e, t, n, o) => {
|
|
258
|
+
const r = [];
|
|
258
259
|
e:
|
|
259
260
|
for (let [i, s, l] of e) {
|
|
260
261
|
if (l)
|
|
261
262
|
continue;
|
|
262
|
-
let a, c = 0,
|
|
263
|
+
let a, c = 0, g = !1;
|
|
263
264
|
for (a in i) {
|
|
264
|
-
const
|
|
265
|
+
const u = i[a];
|
|
265
266
|
let f = t[a];
|
|
266
|
-
if (f !==
|
|
267
|
+
if (f !== u) {
|
|
267
268
|
if (typeof f != "object" || !f)
|
|
268
269
|
continue e;
|
|
269
270
|
{
|
|
270
|
-
let
|
|
271
|
+
let d, m, p = 0;
|
|
271
272
|
for (const w in f) {
|
|
272
|
-
if (
|
|
273
|
+
if (u === String(f[w])) {
|
|
273
274
|
if (w !== "@initial") {
|
|
274
275
|
const h = w.slice(1);
|
|
275
|
-
(
|
|
276
|
+
(m = m || []).push(h in n ? n[h] : w.replace(/^@media ?/, "")), g = !0;
|
|
276
277
|
}
|
|
277
|
-
c += p,
|
|
278
|
+
c += p, d = !0;
|
|
278
279
|
}
|
|
279
280
|
++p;
|
|
280
281
|
}
|
|
281
|
-
if (
|
|
282
|
+
if (m && m.length && (s = { ["@media " + m.join(", ")]: s }), !d)
|
|
282
283
|
continue e;
|
|
283
284
|
}
|
|
284
285
|
}
|
|
285
286
|
}
|
|
286
|
-
(
|
|
287
|
-
}
|
|
288
|
-
return
|
|
289
|
-
},
|
|
290
|
-
const
|
|
291
|
-
for (let
|
|
292
|
-
|
|
293
|
-
let i =
|
|
287
|
+
(r[c] = r[c] || []).push([o ? "cv" : `${a}-${i[a]}`, s, g]);
|
|
288
|
+
}
|
|
289
|
+
return r;
|
|
290
|
+
}, so = {}, lo = De(), ao = (e, t) => lo(e, () => (...n) => {
|
|
291
|
+
const o = () => {
|
|
292
|
+
for (let r of n) {
|
|
293
|
+
r = typeof r == "object" && r || {};
|
|
294
|
+
let i = he(r);
|
|
294
295
|
if (!t.rules.global.cache.has(i)) {
|
|
295
|
-
if (t.rules.global.cache.add(i), "@import" in
|
|
296
|
+
if (t.rules.global.cache.add(i), "@import" in r) {
|
|
296
297
|
let s = [].indexOf.call(t.sheet.cssRules, t.rules.themed.group) - 1;
|
|
297
|
-
for (let l of [].concat(
|
|
298
|
+
for (let l of [].concat(r["@import"]))
|
|
298
299
|
l = l.includes('"') || l.includes("'") ? l : `"${l}"`, t.sheet.insertRule(`@import ${l};`, s++);
|
|
299
|
-
delete
|
|
300
|
+
delete r["@import"];
|
|
300
301
|
}
|
|
301
|
-
|
|
302
|
+
Te(r, [], [], e, (s) => {
|
|
302
303
|
t.rules.global.apply(s);
|
|
303
304
|
});
|
|
304
305
|
}
|
|
305
306
|
}
|
|
306
307
|
return "";
|
|
307
308
|
};
|
|
308
|
-
return
|
|
309
|
-
}),
|
|
310
|
-
const
|
|
311
|
-
if (!t.rules.global.cache.has(
|
|
312
|
-
t.rules.global.cache.add(
|
|
309
|
+
return ht(o, { toString: o });
|
|
310
|
+
}), co = De(), uo = (e, t) => co(e, () => (n) => {
|
|
311
|
+
const o = `${ne(e.prefix)}k-${he(n)}`, r = () => {
|
|
312
|
+
if (!t.rules.global.cache.has(o)) {
|
|
313
|
+
t.rules.global.cache.add(o);
|
|
313
314
|
const i = [];
|
|
314
|
-
|
|
315
|
-
const s = `@keyframes ${
|
|
315
|
+
Te(n, [], [], e, (l) => i.push(l));
|
|
316
|
+
const s = `@keyframes ${o}{${i.join("")}}`;
|
|
316
317
|
t.rules.global.apply(s);
|
|
317
318
|
}
|
|
318
|
-
return
|
|
319
|
+
return o;
|
|
319
320
|
};
|
|
320
|
-
return
|
|
321
|
-
return
|
|
322
|
-
}, toString:
|
|
323
|
-
}),
|
|
324
|
-
constructor(e, t, n,
|
|
325
|
-
this.token = e == null ? "" : String(e), this.value = t == null ? "" : String(t), this.scale = n == null ? "" : String(n), this.prefix =
|
|
321
|
+
return ht(r, { get name() {
|
|
322
|
+
return r();
|
|
323
|
+
}, toString: r });
|
|
324
|
+
}), fo = class {
|
|
325
|
+
constructor(e, t, n, o) {
|
|
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
|
}
|
|
327
328
|
get computedValue() {
|
|
328
329
|
return "var(" + this.variable + ")";
|
|
329
330
|
}
|
|
330
331
|
get variable() {
|
|
331
|
-
return "--" +
|
|
332
|
+
return "--" + ne(this.prefix) + ne(this.scale) + this.token;
|
|
332
333
|
}
|
|
333
334
|
toString() {
|
|
334
335
|
return this.computedValue;
|
|
335
336
|
}
|
|
336
|
-
},
|
|
337
|
-
|
|
338
|
-
const
|
|
339
|
-
for (const a in
|
|
337
|
+
}, go = De(), mo = (e, t) => go(e, () => (n, o) => {
|
|
338
|
+
o = typeof n == "object" && n || Object(o);
|
|
339
|
+
const r = `.${n = (n = typeof n == "string" ? n : "") || `${ne(e.prefix)}t-${he(o)}`}`, i = {}, s = [];
|
|
340
|
+
for (const a in o) {
|
|
340
341
|
i[a] = {};
|
|
341
|
-
for (const c in
|
|
342
|
-
const
|
|
343
|
-
i[a][c] = new
|
|
342
|
+
for (const c in o[a]) {
|
|
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 = () => {
|
|
347
348
|
if (s.length && !t.rules.themed.cache.has(n)) {
|
|
348
349
|
t.rules.themed.cache.add(n);
|
|
349
|
-
const a = `${
|
|
350
|
+
const a = `${o === e.theme ? ":root," : ""}.${n}{${s.join(";")}}`;
|
|
350
351
|
t.rules.themed.apply(a);
|
|
351
352
|
}
|
|
352
353
|
return n;
|
|
353
354
|
};
|
|
354
355
|
return { ...i, get className() {
|
|
355
356
|
return l();
|
|
356
|
-
}, selector:
|
|
357
|
-
}),
|
|
357
|
+
}, selector: r, toString: l };
|
|
358
|
+
}), po = De(), ho = De(), bo = (e) => {
|
|
358
359
|
const t = ((n) => {
|
|
359
|
-
let
|
|
360
|
-
const
|
|
361
|
-
|
|
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 || {},
|
|
363
|
-
|
|
364
|
-
}, theme: {}, sheet:
|
|
360
|
+
let o = !1;
|
|
361
|
+
const r = po(n, (i) => {
|
|
362
|
+
o = !0;
|
|
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() {
|
|
364
|
+
u.reset(), f.theme.toString();
|
|
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
|
-
return
|
|
368
|
+
return o || r.reset(), r;
|
|
368
369
|
})(e);
|
|
369
|
-
return t.styled = (({ config: n, sheet:
|
|
370
|
-
const
|
|
370
|
+
return t.styled = (({ config: n, sheet: o }) => ho(n, () => {
|
|
371
|
+
const r = Bt(n, o);
|
|
371
372
|
return (...i) => {
|
|
372
|
-
const s =
|
|
373
|
-
const
|
|
374
|
-
return delete f.as, f.ref =
|
|
373
|
+
const s = r(...i), l = s[pe].type, a = Se.forwardRef((c, g) => {
|
|
374
|
+
const u = c && c.as || l, { props: f, deferredInjector: d } = s(c);
|
|
375
|
+
return delete f.as, f.ref = g, d ? Se.createElement(Se.Fragment, null, Se.createElement(u, f), Se.createElement(d, null)) : Se.createElement(u, f);
|
|
375
376
|
});
|
|
376
|
-
return a.className = s.className, a.displayName = `Styled.${l.displayName || l.name || l}`, a.selector = s.selector, a.toString = () => s.selector, a[
|
|
377
|
+
return a.className = s.className, a.displayName = `Styled.${l.displayName || l.name || l}`, a.selector = s.selector, a.toString = () => s.selector, a[pe] = s[pe], a;
|
|
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: We, keyframes: De, globalCss: Ei,
|
|
|
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: We, keyframes: De, globalCss: Ei,
|
|
|
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: We, keyframes: De, globalCss: Ei,
|
|
|
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: We, keyframes: De, globalCss: Ei,
|
|
|
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: We, keyframes: De, globalCss: Ei,
|
|
|
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: We, keyframes: De, globalCss: Ei,
|
|
|
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,24 +750,24 @@ const Ot = () => (At--, At), { styled: j, css: We, keyframes: De, globalCss: Ei,
|
|
|
736
750
|
color: "secondary",
|
|
737
751
|
size: "md"
|
|
738
752
|
}
|
|
739
|
-
}),
|
|
740
|
-
({ children: e, disabled: t, isLoading: n, variant:
|
|
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",
|
|
745
759
|
role: "button",
|
|
746
760
|
disabled: t || n,
|
|
747
|
-
variant:
|
|
748
|
-
color:
|
|
761
|
+
variant: o,
|
|
762
|
+
color: r,
|
|
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: We, keyframes: De, globalCss: Ei,
|
|
|
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: We, keyframes: De, globalCss: Ei,
|
|
|
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",
|
|
@@ -824,33 +838,33 @@ const Ot = () => (At--, At), { styled: j, css: We, keyframes: De, globalCss: Ei,
|
|
|
824
838
|
// so for other popups that uses `OverlayCard` to work
|
|
825
839
|
// we need to explicitly set this.
|
|
826
840
|
pointerEvents: "auto"
|
|
827
|
-
}),
|
|
841
|
+
}), Bo = He({
|
|
828
842
|
animationDuration: "400ms",
|
|
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
|
-
|
|
840
|
-
|
|
853
|
+
Po,
|
|
854
|
+
Bo
|
|
841
855
|
);
|
|
842
|
-
function
|
|
843
|
-
return
|
|
856
|
+
function se(e) {
|
|
857
|
+
return cn(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
844
858
|
}
|
|
845
859
|
function q(e) {
|
|
846
860
|
var t;
|
|
847
861
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
848
862
|
}
|
|
849
|
-
function
|
|
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,39 +873,39 @@ 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
|
-
function
|
|
879
|
+
function Ve(e) {
|
|
866
880
|
const {
|
|
867
881
|
overflow: t,
|
|
868
882
|
overflowX: n,
|
|
869
|
-
overflowY:
|
|
870
|
-
display:
|
|
883
|
+
overflowY: o,
|
|
884
|
+
display: r
|
|
871
885
|
} = J(e);
|
|
872
|
-
return /auto|scroll|overlay|hidden|clip/.test(t +
|
|
886
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(r);
|
|
873
887
|
}
|
|
874
|
-
function
|
|
875
|
-
return ["table", "td", "th"].includes(
|
|
888
|
+
function Ao(e) {
|
|
889
|
+
return ["table", "td", "th"].includes(se(e));
|
|
876
890
|
}
|
|
877
|
-
function
|
|
878
|
-
const t =
|
|
879
|
-
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((
|
|
891
|
+
function bt(e) {
|
|
892
|
+
const t = yt(), n = J(e);
|
|
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
|
|
882
|
-
let t =
|
|
883
|
-
for (; Z(t) && !
|
|
884
|
-
if (
|
|
895
|
+
function Oo(e) {
|
|
896
|
+
let t = ye(e);
|
|
897
|
+
for (; Z(t) && !Ae(t); ) {
|
|
898
|
+
if (bt(t))
|
|
885
899
|
return t;
|
|
886
|
-
t =
|
|
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
|
-
function
|
|
894
|
-
return ["html", "body", "#document"].includes(
|
|
907
|
+
function Ae(e) {
|
|
908
|
+
return ["html", "body", "#document"].includes(se(e));
|
|
895
909
|
}
|
|
896
910
|
function J(e) {
|
|
897
911
|
return q(e).getComputedStyle(e);
|
|
@@ -905,29 +919,29 @@ function et(e) {
|
|
|
905
919
|
scrollTop: e.pageYOffset
|
|
906
920
|
};
|
|
907
921
|
}
|
|
908
|
-
function
|
|
909
|
-
if (
|
|
922
|
+
function ye(e) {
|
|
923
|
+
if (se(e) === "html")
|
|
910
924
|
return e;
|
|
911
925
|
const t = (
|
|
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
|
-
|
|
916
|
-
|
|
929
|
+
ut(e) && e.host || // Fallback.
|
|
930
|
+
re(e)
|
|
917
931
|
);
|
|
918
|
-
return
|
|
932
|
+
return ut(t) ? t.host : t;
|
|
919
933
|
}
|
|
920
|
-
function
|
|
921
|
-
const t =
|
|
922
|
-
return
|
|
934
|
+
function un(e) {
|
|
935
|
+
const t = ye(e);
|
|
936
|
+
return Ae(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Z(t) && Ve(t) ? t : un(t);
|
|
923
937
|
}
|
|
924
|
-
function
|
|
925
|
-
var
|
|
938
|
+
function ie(e, t, n) {
|
|
939
|
+
var o;
|
|
926
940
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
927
|
-
const
|
|
928
|
-
return i ? t.concat(s, s.visualViewport || [],
|
|
941
|
+
const r = un(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), s = q(r);
|
|
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;
|
|
@@ -935,39 +949,39 @@ function Pr(e) {
|
|
|
935
949
|
}
|
|
936
950
|
return t;
|
|
937
951
|
}
|
|
938
|
-
function
|
|
952
|
+
function be(e, t) {
|
|
939
953
|
if (!e || !t)
|
|
940
954
|
return !1;
|
|
941
955
|
const n = t.getRootNode == null ? void 0 : t.getRootNode();
|
|
942
956
|
if (e.contains(t))
|
|
943
957
|
return !0;
|
|
944
|
-
if (n &&
|
|
945
|
-
let
|
|
946
|
-
for (;
|
|
947
|
-
if (e ===
|
|
958
|
+
if (n && ut(n)) {
|
|
959
|
+
let o = t;
|
|
960
|
+
for (; o; ) {
|
|
961
|
+
if (e === o)
|
|
948
962
|
return !0;
|
|
949
|
-
|
|
963
|
+
o = o.parentNode || o.host;
|
|
950
964
|
}
|
|
951
965
|
}
|
|
952
966
|
return !1;
|
|
953
967
|
}
|
|
954
|
-
function
|
|
968
|
+
function Mo() {
|
|
955
969
|
return /apple/i.test(navigator.vendor);
|
|
956
970
|
}
|
|
957
|
-
function
|
|
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) {
|
|
968
982
|
return (e == null ? void 0 : e.ownerDocument) || document;
|
|
969
983
|
}
|
|
970
|
-
function
|
|
984
|
+
function ot(e, t) {
|
|
971
985
|
if (t == null)
|
|
972
986
|
return !1;
|
|
973
987
|
if ("composedPath" in e)
|
|
@@ -975,68 +989,68 @@ function rt(e, t) {
|
|
|
975
989
|
const n = e;
|
|
976
990
|
return n.target != null && t.contains(n.target);
|
|
977
991
|
}
|
|
978
|
-
function
|
|
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
|
-
const
|
|
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
|
|
998
|
-
return
|
|
1011
|
+
function Mt(e, t, n) {
|
|
1012
|
+
return Y(e, oe(t, n));
|
|
999
1013
|
}
|
|
1000
|
-
function
|
|
1014
|
+
function Le(e, t) {
|
|
1001
1015
|
return typeof e == "function" ? e(t) : e;
|
|
1002
1016
|
}
|
|
1003
|
-
function
|
|
1017
|
+
function ee(e) {
|
|
1004
1018
|
return e.split("-")[0];
|
|
1005
1019
|
}
|
|
1006
|
-
function
|
|
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
|
-
function
|
|
1016
|
-
return ["top", "bottom"].includes(
|
|
1029
|
+
function Fe(e) {
|
|
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
|
|
1024
|
-
let s =
|
|
1025
|
-
return t.reference[i] > t.floating[i] && (s =
|
|
1037
|
+
const o = _e(e), r = gn(e), i = fn(r);
|
|
1038
|
+
let s = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
1039
|
+
return t.reference[i] > t.floating[i] && (s = qe(s)), [s, qe(s)];
|
|
1026
1040
|
}
|
|
1027
|
-
function
|
|
1028
|
-
const t =
|
|
1029
|
-
return [
|
|
1041
|
+
function Vo(e) {
|
|
1042
|
+
const t = qe(e);
|
|
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
|
|
1035
|
-
const
|
|
1048
|
+
function _o(e, t, n) {
|
|
1049
|
+
const o = ["left", "right"], r = ["right", "left"], i = ["top", "bottom"], s = ["bottom", "top"];
|
|
1036
1050
|
switch (e) {
|
|
1037
1051
|
case "top":
|
|
1038
1052
|
case "bottom":
|
|
1039
|
-
return n ? t ?
|
|
1053
|
+
return n ? t ? r : o : t ? o : r;
|
|
1040
1054
|
case "left":
|
|
1041
1055
|
case "right":
|
|
1042
1056
|
return t ? i : s;
|
|
@@ -1044,15 +1058,15 @@ function Nr(e, t, n) {
|
|
|
1044
1058
|
return [];
|
|
1045
1059
|
}
|
|
1046
1060
|
}
|
|
1047
|
-
function
|
|
1048
|
-
const
|
|
1049
|
-
let i =
|
|
1050
|
-
return
|
|
1061
|
+
function Yo(e, t, n, o) {
|
|
1062
|
+
const r = _e(e);
|
|
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
|
-
function
|
|
1053
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
1066
|
+
function qe(e) {
|
|
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,15 +1075,15 @@ function Hr(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,
|
|
1069
1083
|
left: e
|
|
1070
1084
|
};
|
|
1071
1085
|
}
|
|
1072
|
-
function
|
|
1086
|
+
function Oe(e) {
|
|
1073
1087
|
return {
|
|
1074
1088
|
...e,
|
|
1075
1089
|
top: e.y,
|
|
@@ -1078,69 +1092,69 @@ function qe(e) {
|
|
|
1078
1092
|
bottom: e.y + e.height
|
|
1079
1093
|
};
|
|
1080
1094
|
}
|
|
1081
|
-
function
|
|
1095
|
+
function Lt(e, t, n) {
|
|
1082
1096
|
let {
|
|
1083
|
-
reference:
|
|
1084
|
-
floating:
|
|
1097
|
+
reference: o,
|
|
1098
|
+
floating: r
|
|
1085
1099
|
} = e;
|
|
1086
|
-
const i =
|
|
1087
|
-
let
|
|
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;
|
|
1101
|
+
let d;
|
|
1088
1102
|
switch (a) {
|
|
1089
1103
|
case "top":
|
|
1090
|
-
|
|
1091
|
-
x:
|
|
1092
|
-
y:
|
|
1104
|
+
d = {
|
|
1105
|
+
x: g,
|
|
1106
|
+
y: o.y - r.height
|
|
1093
1107
|
};
|
|
1094
1108
|
break;
|
|
1095
1109
|
case "bottom":
|
|
1096
|
-
|
|
1097
|
-
x:
|
|
1098
|
-
y:
|
|
1110
|
+
d = {
|
|
1111
|
+
x: g,
|
|
1112
|
+
y: o.y + o.height
|
|
1099
1113
|
};
|
|
1100
1114
|
break;
|
|
1101
1115
|
case "right":
|
|
1102
|
-
|
|
1103
|
-
x:
|
|
1104
|
-
y:
|
|
1116
|
+
d = {
|
|
1117
|
+
x: o.x + o.width,
|
|
1118
|
+
y: u
|
|
1105
1119
|
};
|
|
1106
1120
|
break;
|
|
1107
1121
|
case "left":
|
|
1108
|
-
|
|
1109
|
-
x:
|
|
1110
|
-
y:
|
|
1122
|
+
d = {
|
|
1123
|
+
x: o.x - r.width,
|
|
1124
|
+
y: u
|
|
1111
1125
|
};
|
|
1112
1126
|
break;
|
|
1113
1127
|
default:
|
|
1114
|
-
|
|
1115
|
-
x:
|
|
1116
|
-
y:
|
|
1128
|
+
d = {
|
|
1129
|
+
x: o.x,
|
|
1130
|
+
y: o.y
|
|
1117
1131
|
};
|
|
1118
1132
|
}
|
|
1119
|
-
switch (
|
|
1133
|
+
switch (_e(t)) {
|
|
1120
1134
|
case "start":
|
|
1121
|
-
|
|
1135
|
+
d[s] -= f * (n && c ? -1 : 1);
|
|
1122
1136
|
break;
|
|
1123
1137
|
case "end":
|
|
1124
|
-
|
|
1138
|
+
d[s] += f * (n && c ? -1 : 1);
|
|
1125
1139
|
break;
|
|
1126
1140
|
}
|
|
1127
|
-
return
|
|
1141
|
+
return d;
|
|
1128
1142
|
}
|
|
1129
|
-
const
|
|
1143
|
+
const Ko = async (e, t, n) => {
|
|
1130
1144
|
const {
|
|
1131
|
-
placement:
|
|
1132
|
-
strategy:
|
|
1145
|
+
placement: o = "bottom",
|
|
1146
|
+
strategy: r = "absolute",
|
|
1133
1147
|
middleware: i = [],
|
|
1134
1148
|
platform: s
|
|
1135
1149
|
} = n, l = i.filter(Boolean), a = await (s.isRTL == null ? void 0 : s.isRTL(t));
|
|
1136
1150
|
let c = await s.getElementRects({
|
|
1137
1151
|
reference: e,
|
|
1138
1152
|
floating: t,
|
|
1139
|
-
strategy:
|
|
1153
|
+
strategy: r
|
|
1140
1154
|
}), {
|
|
1141
|
-
x:
|
|
1142
|
-
y:
|
|
1143
|
-
} =
|
|
1155
|
+
x: g,
|
|
1156
|
+
y: u
|
|
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,
|
|
@@ -1151,12 +1165,12 @@ const _r = async (e, t, n) => {
|
|
|
1151
1165
|
data: S,
|
|
1152
1166
|
reset: k
|
|
1153
1167
|
} = await h({
|
|
1154
|
-
x:
|
|
1155
|
-
y:
|
|
1156
|
-
initialPlacement:
|
|
1168
|
+
x: g,
|
|
1169
|
+
y: u,
|
|
1170
|
+
initialPlacement: o,
|
|
1157
1171
|
placement: f,
|
|
1158
|
-
strategy:
|
|
1159
|
-
middlewareData:
|
|
1172
|
+
strategy: r,
|
|
1173
|
+
middlewareData: d,
|
|
1160
1174
|
rects: c,
|
|
1161
1175
|
platform: s,
|
|
1162
1176
|
elements: {
|
|
@@ -1164,111 +1178,111 @@ const _r = async (e, t, n) => {
|
|
|
1164
1178
|
floating: t
|
|
1165
1179
|
}
|
|
1166
1180
|
});
|
|
1167
|
-
|
|
1168
|
-
...
|
|
1181
|
+
g = x ?? g, u = P ?? u, d = {
|
|
1182
|
+
...d,
|
|
1169
1183
|
[w]: {
|
|
1170
|
-
...
|
|
1184
|
+
...d[w],
|
|
1171
1185
|
...S
|
|
1172
1186
|
}
|
|
1173
|
-
}, k &&
|
|
1187
|
+
}, k && m <= 50 && (m++, typeof k == "object" && (k.placement && (f = k.placement), k.rects && (c = k.rects === !0 ? await s.getElementRects({
|
|
1174
1188
|
reference: e,
|
|
1175
1189
|
floating: t,
|
|
1176
|
-
strategy:
|
|
1190
|
+
strategy: r
|
|
1177
1191
|
}) : k.rects), {
|
|
1178
|
-
x:
|
|
1179
|
-
y:
|
|
1180
|
-
} =
|
|
1192
|
+
x: g,
|
|
1193
|
+
y: u
|
|
1194
|
+
} = Lt(c, f, a)), p = -1);
|
|
1181
1195
|
}
|
|
1182
1196
|
return {
|
|
1183
|
-
x:
|
|
1184
|
-
y:
|
|
1197
|
+
x: g,
|
|
1198
|
+
y: u,
|
|
1185
1199
|
placement: f,
|
|
1186
|
-
strategy:
|
|
1187
|
-
middlewareData:
|
|
1200
|
+
strategy: r,
|
|
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 {
|
|
1194
|
-
x:
|
|
1195
|
-
y:
|
|
1208
|
+
x: o,
|
|
1209
|
+
y: r,
|
|
1196
1210
|
platform: i,
|
|
1197
1211
|
rects: s,
|
|
1198
1212
|
elements: l,
|
|
1199
1213
|
strategy: a
|
|
1200
1214
|
} = e, {
|
|
1201
1215
|
boundary: c = "clippingAncestors",
|
|
1202
|
-
rootBoundary:
|
|
1203
|
-
elementContext:
|
|
1216
|
+
rootBoundary: g = "viewport",
|
|
1217
|
+
elementContext: u = "floating",
|
|
1204
1218
|
altBoundary: f = !1,
|
|
1205
|
-
padding:
|
|
1206
|
-
} =
|
|
1219
|
+
padding: d = 0
|
|
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
|
-
rootBoundary:
|
|
1223
|
+
rootBoundary: g,
|
|
1210
1224
|
strategy: a
|
|
1211
|
-
})), x =
|
|
1225
|
+
})), x = u === "floating" ? {
|
|
1212
1226
|
...s.floating,
|
|
1213
|
-
x:
|
|
1214
|
-
y:
|
|
1227
|
+
x: o,
|
|
1228
|
+
y: r
|
|
1215
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
|
} : {
|
|
1219
1233
|
x: 1,
|
|
1220
1234
|
y: 1
|
|
1221
|
-
}, k =
|
|
1235
|
+
}, k = Oe(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1222
1236
|
elements: l,
|
|
1223
1237
|
rect: x,
|
|
1224
1238
|
offsetParent: P,
|
|
1225
1239
|
strategy: a
|
|
1226
1240
|
}) : x);
|
|
1227
1241
|
return {
|
|
1228
|
-
top: (h.top - k.top +
|
|
1229
|
-
bottom: (k.bottom - h.bottom +
|
|
1230
|
-
left: (h.left - k.left +
|
|
1231
|
-
right: (k.right - h.right +
|
|
1242
|
+
top: (h.top - k.top + m.top) / S.y,
|
|
1243
|
+
bottom: (k.bottom - h.bottom + m.bottom) / S.y,
|
|
1244
|
+
left: (h.left - k.left + m.left) / S.x,
|
|
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,
|
|
1238
1252
|
async fn(t) {
|
|
1239
|
-
var n,
|
|
1253
|
+
var n, o;
|
|
1240
1254
|
const {
|
|
1241
|
-
placement:
|
|
1255
|
+
placement: r,
|
|
1242
1256
|
middlewareData: i,
|
|
1243
1257
|
rects: s,
|
|
1244
1258
|
initialPlacement: l,
|
|
1245
1259
|
platform: a,
|
|
1246
1260
|
elements: c
|
|
1247
1261
|
} = t, {
|
|
1248
|
-
mainAxis:
|
|
1249
|
-
crossAxis:
|
|
1262
|
+
mainAxis: g = !0,
|
|
1263
|
+
crossAxis: u = !0,
|
|
1250
1264
|
fallbackPlacements: f,
|
|
1251
|
-
fallbackStrategy:
|
|
1252
|
-
fallbackAxisSideDirection:
|
|
1265
|
+
fallbackStrategy: d = "bestFit",
|
|
1266
|
+
fallbackAxisSideDirection: m = "none",
|
|
1253
1267
|
flipAlignment: p = !0,
|
|
1254
1268
|
...w
|
|
1255
|
-
} =
|
|
1269
|
+
} = Le(e, t);
|
|
1256
1270
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
1257
1271
|
return {};
|
|
1258
|
-
const h =
|
|
1259
|
-
!f &&
|
|
1260
|
-
const k = [l, ...S], C = await
|
|
1261
|
-
let T = ((
|
|
1262
|
-
if (
|
|
1263
|
-
const M =
|
|
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 = [];
|
|
1275
|
+
let T = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
1276
|
+
if (g && B.push(C[h]), u) {
|
|
1277
|
+
const M = Ho(r, s, P);
|
|
1264
1278
|
B.push(C[M[0]], C[M[1]]);
|
|
1265
1279
|
}
|
|
1266
1280
|
if (T = [...T, {
|
|
1267
|
-
placement:
|
|
1281
|
+
placement: r,
|
|
1268
1282
|
overflows: B
|
|
1269
1283
|
}], !B.every((M) => M <= 0)) {
|
|
1270
|
-
var
|
|
1271
|
-
const M = (((
|
|
1284
|
+
var D, A;
|
|
1285
|
+
const M = (((D = i.flip) == null ? void 0 : D.index) || 0) + 1, O = k[M];
|
|
1272
1286
|
if (O)
|
|
1273
1287
|
return {
|
|
1274
1288
|
data: {
|
|
@@ -1279,12 +1293,12 @@ const Yr = function(e) {
|
|
|
1279
1293
|
placement: O
|
|
1280
1294
|
}
|
|
1281
1295
|
};
|
|
1282
|
-
let b = (
|
|
1296
|
+
let b = (A = T.filter((v) => v.overflows[0] <= 0).sort((v, I) => v.overflows[1] - I.overflows[1])[0]) == null ? void 0 : A.placement;
|
|
1283
1297
|
if (!b)
|
|
1284
|
-
switch (
|
|
1298
|
+
switch (d) {
|
|
1285
1299
|
case "bestFit": {
|
|
1286
|
-
var
|
|
1287
|
-
const v = (
|
|
1300
|
+
var L;
|
|
1301
|
+
const v = (L = T.map((I) => [I.placement, I.overflows.filter((R) => R > 0).reduce((R, $) => R + $, 0)]).sort((I, R) => I[1] - R[1])[0]) == null ? void 0 : L[0];
|
|
1288
1302
|
v && (b = v);
|
|
1289
1303
|
break;
|
|
1290
1304
|
}
|
|
@@ -1292,7 +1306,7 @@ const Yr = function(e) {
|
|
|
1292
1306
|
b = l;
|
|
1293
1307
|
break;
|
|
1294
1308
|
}
|
|
1295
|
-
if (
|
|
1309
|
+
if (r !== b)
|
|
1296
1310
|
return {
|
|
1297
1311
|
reset: {
|
|
1298
1312
|
placement: b
|
|
@@ -1303,48 +1317,128 @@ const Yr = function(e) {
|
|
|
1303
1317
|
}
|
|
1304
1318
|
};
|
|
1305
1319
|
};
|
|
1306
|
-
|
|
1320
|
+
function pn(e) {
|
|
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));
|
|
1322
|
+
return {
|
|
1323
|
+
x: t,
|
|
1324
|
+
y: n,
|
|
1325
|
+
width: o - t,
|
|
1326
|
+
height: r - n
|
|
1327
|
+
};
|
|
1328
|
+
}
|
|
1329
|
+
function Uo(e) {
|
|
1330
|
+
const t = e.slice().sort((r, i) => r.y - i.y), n = [];
|
|
1331
|
+
let o = null;
|
|
1332
|
+
for (let r = 0; r < t.length; r++) {
|
|
1333
|
+
const i = t[r];
|
|
1334
|
+
!o || i.y - o.y > o.height / 2 ? n.push([i]) : n[n.length - 1].push(i), o = i;
|
|
1335
|
+
}
|
|
1336
|
+
return n.map((r) => Oe(pn(r)));
|
|
1337
|
+
}
|
|
1338
|
+
const qo = function(e) {
|
|
1339
|
+
return e === void 0 && (e = {}), {
|
|
1340
|
+
name: "inline",
|
|
1341
|
+
options: e,
|
|
1342
|
+
async fn(t) {
|
|
1343
|
+
const {
|
|
1344
|
+
placement: n,
|
|
1345
|
+
elements: o,
|
|
1346
|
+
rects: r,
|
|
1347
|
+
platform: i,
|
|
1348
|
+
strategy: s
|
|
1349
|
+
} = t, {
|
|
1350
|
+
padding: l = 2,
|
|
1351
|
+
x: a,
|
|
1352
|
+
y: c
|
|
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);
|
|
1354
|
+
function m() {
|
|
1355
|
+
if (u.length === 2 && u[0].left > u[1].right && a != null && c != null)
|
|
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;
|
|
1357
|
+
if (u.length >= 2) {
|
|
1358
|
+
if (Fe(n) === "y") {
|
|
1359
|
+
const A = u[0], L = u[u.length - 1], M = ee(n) === "top", O = A.top, b = L.bottom, v = M ? A.left : L.left, I = M ? A.right : L.right, R = I - v, $ = b - O;
|
|
1360
|
+
return {
|
|
1361
|
+
top: O,
|
|
1362
|
+
bottom: b,
|
|
1363
|
+
left: v,
|
|
1364
|
+
right: I,
|
|
1365
|
+
width: R,
|
|
1366
|
+
height: $,
|
|
1367
|
+
x: v,
|
|
1368
|
+
y: O
|
|
1369
|
+
};
|
|
1370
|
+
}
|
|
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;
|
|
1372
|
+
return {
|
|
1373
|
+
top: S,
|
|
1374
|
+
bottom: k,
|
|
1375
|
+
left: C,
|
|
1376
|
+
right: B,
|
|
1377
|
+
width: T,
|
|
1378
|
+
height: D,
|
|
1379
|
+
x: C,
|
|
1380
|
+
y: S
|
|
1381
|
+
};
|
|
1382
|
+
}
|
|
1383
|
+
return f;
|
|
1384
|
+
}
|
|
1385
|
+
const p = await i.getElementRects({
|
|
1386
|
+
reference: {
|
|
1387
|
+
getBoundingClientRect: m
|
|
1388
|
+
},
|
|
1389
|
+
floating: o.floating,
|
|
1390
|
+
strategy: s
|
|
1391
|
+
});
|
|
1392
|
+
return r.reference.x !== p.reference.x || r.reference.y !== p.reference.y || r.reference.width !== p.reference.width || r.reference.height !== p.reference.height ? {
|
|
1393
|
+
reset: {
|
|
1394
|
+
rects: p
|
|
1395
|
+
}
|
|
1396
|
+
} : {};
|
|
1397
|
+
}
|
|
1398
|
+
};
|
|
1399
|
+
};
|
|
1400
|
+
async function Zo(e, t) {
|
|
1307
1401
|
const {
|
|
1308
1402
|
placement: n,
|
|
1309
|
-
platform:
|
|
1310
|
-
elements:
|
|
1311
|
-
} = e, i = await (
|
|
1403
|
+
platform: o,
|
|
1404
|
+
elements: r
|
|
1405
|
+
} = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = ee(n), l = _e(n), a = Fe(n) === "y", c = ["left", "top"].includes(s) ? -1 : 1, g = i && a ? -1 : 1, u = Le(t, e);
|
|
1312
1406
|
let {
|
|
1313
1407
|
mainAxis: f,
|
|
1314
|
-
crossAxis:
|
|
1315
|
-
alignmentAxis:
|
|
1316
|
-
} = typeof
|
|
1317
|
-
mainAxis:
|
|
1408
|
+
crossAxis: d,
|
|
1409
|
+
alignmentAxis: m
|
|
1410
|
+
} = typeof u == "number" ? {
|
|
1411
|
+
mainAxis: u,
|
|
1318
1412
|
crossAxis: 0,
|
|
1319
1413
|
alignmentAxis: null
|
|
1320
1414
|
} : {
|
|
1321
1415
|
mainAxis: 0,
|
|
1322
1416
|
crossAxis: 0,
|
|
1323
1417
|
alignmentAxis: null,
|
|
1324
|
-
...
|
|
1418
|
+
...u
|
|
1325
1419
|
};
|
|
1326
|
-
return l && typeof
|
|
1327
|
-
x:
|
|
1420
|
+
return l && typeof m == "number" && (d = l === "end" ? m * -1 : m), a ? {
|
|
1421
|
+
x: d * g,
|
|
1328
1422
|
y: f * c
|
|
1329
1423
|
} : {
|
|
1330
1424
|
x: f * c,
|
|
1331
|
-
y:
|
|
1425
|
+
y: d * g
|
|
1332
1426
|
};
|
|
1333
1427
|
}
|
|
1334
|
-
const
|
|
1428
|
+
const Jo = function(e) {
|
|
1335
1429
|
return e === void 0 && (e = 0), {
|
|
1336
1430
|
name: "offset",
|
|
1337
1431
|
options: e,
|
|
1338
1432
|
async fn(t) {
|
|
1339
|
-
var n,
|
|
1433
|
+
var n, o;
|
|
1340
1434
|
const {
|
|
1341
|
-
x:
|
|
1435
|
+
x: r,
|
|
1342
1436
|
y: i,
|
|
1343
1437
|
placement: s,
|
|
1344
1438
|
middlewareData: l
|
|
1345
|
-
} = t, a = await
|
|
1346
|
-
return s === ((n = l.offset) == null ? void 0 : n.placement) && (
|
|
1347
|
-
x:
|
|
1439
|
+
} = t, a = await Zo(t, e);
|
|
1440
|
+
return s === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
|
|
1441
|
+
x: r + a.x,
|
|
1348
1442
|
y: i + a.y,
|
|
1349
1443
|
data: {
|
|
1350
1444
|
...a,
|
|
@@ -1353,15 +1447,15 @@ const Xr = function(e) {
|
|
|
1353
1447
|
};
|
|
1354
1448
|
}
|
|
1355
1449
|
};
|
|
1356
|
-
},
|
|
1450
|
+
}, Qo = function(e) {
|
|
1357
1451
|
return e === void 0 && (e = {}), {
|
|
1358
1452
|
name: "shift",
|
|
1359
1453
|
options: e,
|
|
1360
1454
|
async fn(t) {
|
|
1361
1455
|
const {
|
|
1362
1456
|
x: n,
|
|
1363
|
-
y:
|
|
1364
|
-
placement:
|
|
1457
|
+
y: o,
|
|
1458
|
+
placement: r
|
|
1365
1459
|
} = t, {
|
|
1366
1460
|
mainAxis: i = !0,
|
|
1367
1461
|
crossAxis: s = !1,
|
|
@@ -1378,73 +1472,73 @@ const Xr = function(e) {
|
|
|
1378
1472
|
}
|
|
1379
1473
|
},
|
|
1380
1474
|
...a
|
|
1381
|
-
} =
|
|
1475
|
+
} = Le(e, t), c = {
|
|
1382
1476
|
x: n,
|
|
1383
|
-
y:
|
|
1384
|
-
},
|
|
1385
|
-
let
|
|
1477
|
+
y: o
|
|
1478
|
+
}, g = await vt(t, a), u = Fe(ee(r)), f = dn(u);
|
|
1479
|
+
let d = c[f], m = c[u];
|
|
1386
1480
|
if (i) {
|
|
1387
|
-
const w = f === "y" ? "top" : "left", h = f === "y" ? "bottom" : "right", x =
|
|
1388
|
-
|
|
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);
|
|
1389
1483
|
}
|
|
1390
1484
|
if (s) {
|
|
1391
|
-
const w =
|
|
1392
|
-
|
|
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);
|
|
1393
1487
|
}
|
|
1394
1488
|
const p = l.fn({
|
|
1395
1489
|
...t,
|
|
1396
|
-
[f]:
|
|
1397
|
-
[
|
|
1490
|
+
[f]: d,
|
|
1491
|
+
[u]: m
|
|
1398
1492
|
});
|
|
1399
1493
|
return {
|
|
1400
1494
|
...p,
|
|
1401
1495
|
data: {
|
|
1402
1496
|
x: p.x - n,
|
|
1403
|
-
y: p.y -
|
|
1497
|
+
y: p.y - o
|
|
1404
1498
|
}
|
|
1405
1499
|
};
|
|
1406
1500
|
}
|
|
1407
1501
|
};
|
|
1408
|
-
},
|
|
1502
|
+
}, er = function(e) {
|
|
1409
1503
|
return e === void 0 && (e = {}), {
|
|
1410
1504
|
name: "size",
|
|
1411
1505
|
options: e,
|
|
1412
1506
|
async fn(t) {
|
|
1413
1507
|
const {
|
|
1414
1508
|
placement: n,
|
|
1415
|
-
rects:
|
|
1416
|
-
platform:
|
|
1509
|
+
rects: o,
|
|
1510
|
+
platform: r,
|
|
1417
1511
|
elements: i
|
|
1418
1512
|
} = t, {
|
|
1419
1513
|
apply: s = () => {
|
|
1420
1514
|
},
|
|
1421
1515
|
...l
|
|
1422
|
-
} =
|
|
1516
|
+
} = Le(e, t), a = await vt(t, l), c = ee(n), g = _e(n), u = Fe(n) === "y", {
|
|
1423
1517
|
width: f,
|
|
1424
|
-
height:
|
|
1425
|
-
} =
|
|
1426
|
-
let
|
|
1427
|
-
c === "top" || c === "bottom" ? (
|
|
1428
|
-
const w =
|
|
1518
|
+
height: d
|
|
1519
|
+
} = o.floating;
|
|
1520
|
+
let m, p;
|
|
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");
|
|
1522
|
+
const w = d - a[m], h = f - a[p], x = !t.middlewareData.shift;
|
|
1429
1523
|
let P = w, S = h;
|
|
1430
|
-
if (
|
|
1524
|
+
if (u) {
|
|
1431
1525
|
const C = f - a.left - a.right;
|
|
1432
|
-
S =
|
|
1526
|
+
S = g || x ? oe(h, C) : C;
|
|
1433
1527
|
} else {
|
|
1434
|
-
const C =
|
|
1435
|
-
P =
|
|
1528
|
+
const C = d - a.top - a.bottom;
|
|
1529
|
+
P = g || x ? oe(w, C) : C;
|
|
1436
1530
|
}
|
|
1437
|
-
if (x && !
|
|
1438
|
-
const C =
|
|
1439
|
-
|
|
1531
|
+
if (x && !g) {
|
|
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));
|
|
1440
1534
|
}
|
|
1441
1535
|
await s({
|
|
1442
1536
|
...t,
|
|
1443
1537
|
availableWidth: S,
|
|
1444
1538
|
availableHeight: P
|
|
1445
1539
|
});
|
|
1446
|
-
const k = await
|
|
1447
|
-
return f !== k.width ||
|
|
1540
|
+
const k = await r.getDimensions(i.floating);
|
|
1541
|
+
return f !== k.width || d !== k.height ? {
|
|
1448
1542
|
reset: {
|
|
1449
1543
|
rects: !0
|
|
1450
1544
|
}
|
|
@@ -1452,70 +1546,70 @@ const Xr = function(e) {
|
|
|
1452
1546
|
}
|
|
1453
1547
|
};
|
|
1454
1548
|
};
|
|
1455
|
-
function
|
|
1549
|
+
function hn(e) {
|
|
1456
1550
|
const t = J(e);
|
|
1457
|
-
let n = parseFloat(t.width) || 0,
|
|
1458
|
-
const
|
|
1459
|
-
return l && (n = i,
|
|
1551
|
+
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
1552
|
+
const r = Z(e), i = r ? e.offsetWidth : n, s = r ? e.offsetHeight : o, l = Ue(n) !== i || Ue(o) !== s;
|
|
1553
|
+
return l && (n = i, o = s), {
|
|
1460
1554
|
width: n,
|
|
1461
|
-
height:
|
|
1555
|
+
height: o,
|
|
1462
1556
|
$: l
|
|
1463
1557
|
};
|
|
1464
1558
|
}
|
|
1465
|
-
function
|
|
1559
|
+
function xt(e) {
|
|
1466
1560
|
return N(e) ? e : e.contextElement;
|
|
1467
1561
|
}
|
|
1468
|
-
function
|
|
1469
|
-
const t =
|
|
1562
|
+
function Pe(e) {
|
|
1563
|
+
const t = xt(e);
|
|
1470
1564
|
if (!Z(t))
|
|
1471
|
-
return
|
|
1565
|
+
return le(1);
|
|
1472
1566
|
const n = t.getBoundingClientRect(), {
|
|
1473
|
-
width:
|
|
1474
|
-
height:
|
|
1567
|
+
width: o,
|
|
1568
|
+
height: r,
|
|
1475
1569
|
$: i
|
|
1476
|
-
} =
|
|
1477
|
-
let s = (i ?
|
|
1570
|
+
} = hn(t);
|
|
1571
|
+
let s = (i ? Ue(n.width) : n.width) / o, l = (i ? Ue(n.height) : n.height) / r;
|
|
1478
1572
|
return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
1479
1573
|
x: s,
|
|
1480
1574
|
y: l
|
|
1481
1575
|
};
|
|
1482
1576
|
}
|
|
1483
|
-
const
|
|
1484
|
-
function
|
|
1577
|
+
const tr = /* @__PURE__ */ le(0);
|
|
1578
|
+
function bn(e) {
|
|
1485
1579
|
const t = q(e);
|
|
1486
|
-
return !
|
|
1580
|
+
return !yt() || !t.visualViewport ? tr : {
|
|
1487
1581
|
x: t.visualViewport.offsetLeft,
|
|
1488
1582
|
y: t.visualViewport.offsetTop
|
|
1489
1583
|
};
|
|
1490
1584
|
}
|
|
1491
|
-
function
|
|
1585
|
+
function nr(e, t, n) {
|
|
1492
1586
|
return t === void 0 && (t = !1), !n || t && n !== q(e) ? !1 : t;
|
|
1493
1587
|
}
|
|
1494
|
-
function
|
|
1588
|
+
function ve(e, t, n, o) {
|
|
1495
1589
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1496
|
-
const
|
|
1497
|
-
let s =
|
|
1498
|
-
t && (
|
|
1499
|
-
const l =
|
|
1500
|
-
let a = (
|
|
1590
|
+
const r = e.getBoundingClientRect(), i = xt(e);
|
|
1591
|
+
let s = le(1);
|
|
1592
|
+
t && (o ? N(o) && (s = Pe(o)) : s = Pe(e));
|
|
1593
|
+
const l = nr(i, n, o) ? bn(i) : le(0);
|
|
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;
|
|
1501
1595
|
if (i) {
|
|
1502
|
-
const f = q(i),
|
|
1503
|
-
let
|
|
1504
|
-
for (; p &&
|
|
1505
|
-
const w =
|
|
1506
|
-
a *= w.x, c *= w.y,
|
|
1596
|
+
const f = q(i), d = o && N(o) ? q(o) : o;
|
|
1597
|
+
let m = f, p = m.frameElement;
|
|
1598
|
+
for (; p && o && d !== m; ) {
|
|
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;
|
|
1507
1601
|
}
|
|
1508
1602
|
}
|
|
1509
|
-
return
|
|
1510
|
-
width:
|
|
1511
|
-
height:
|
|
1603
|
+
return Oe({
|
|
1604
|
+
width: g,
|
|
1605
|
+
height: u,
|
|
1512
1606
|
x: a,
|
|
1513
1607
|
y: c
|
|
1514
1608
|
});
|
|
1515
1609
|
}
|
|
1516
|
-
const
|
|
1517
|
-
function
|
|
1518
|
-
return
|
|
1610
|
+
const or = [":popover-open", ":modal"];
|
|
1611
|
+
function yn(e) {
|
|
1612
|
+
return or.some((t) => {
|
|
1519
1613
|
try {
|
|
1520
1614
|
return e.matches(t);
|
|
1521
1615
|
} catch {
|
|
@@ -1523,56 +1617,56 @@ function pn(e) {
|
|
|
1523
1617
|
}
|
|
1524
1618
|
});
|
|
1525
1619
|
}
|
|
1526
|
-
function
|
|
1620
|
+
function rr(e) {
|
|
1527
1621
|
let {
|
|
1528
1622
|
elements: t,
|
|
1529
1623
|
rect: n,
|
|
1530
|
-
offsetParent:
|
|
1531
|
-
strategy:
|
|
1624
|
+
offsetParent: o,
|
|
1625
|
+
strategy: r
|
|
1532
1626
|
} = e;
|
|
1533
|
-
const i =
|
|
1534
|
-
if (
|
|
1627
|
+
const i = r === "fixed", s = re(o), l = t ? yn(t.floating) : !1;
|
|
1628
|
+
if (o === s || l && i)
|
|
1535
1629
|
return n;
|
|
1536
1630
|
let a = {
|
|
1537
1631
|
scrollLeft: 0,
|
|
1538
1632
|
scrollTop: 0
|
|
1539
|
-
}, c =
|
|
1540
|
-
const
|
|
1541
|
-
if ((
|
|
1542
|
-
const f =
|
|
1543
|
-
c =
|
|
1633
|
+
}, c = le(1);
|
|
1634
|
+
const g = le(0), u = Z(o);
|
|
1635
|
+
if ((u || !u && !i) && ((se(o) !== "body" || Ve(s)) && (a = et(o)), Z(o))) {
|
|
1636
|
+
const f = ve(o);
|
|
1637
|
+
c = Pe(o), g.x = f.x + o.clientLeft, g.y = f.y + o.clientTop;
|
|
1544
1638
|
}
|
|
1545
1639
|
return {
|
|
1546
1640
|
width: n.width * c.x,
|
|
1547
1641
|
height: n.height * c.y,
|
|
1548
|
-
x: n.x * c.x - a.scrollLeft * c.x +
|
|
1549
|
-
y: n.y * c.y - a.scrollTop * c.y +
|
|
1642
|
+
x: n.x * c.x - a.scrollLeft * c.x + g.x,
|
|
1643
|
+
y: n.y * c.y - a.scrollTop * c.y + g.y
|
|
1550
1644
|
};
|
|
1551
1645
|
}
|
|
1552
|
-
function
|
|
1646
|
+
function ir(e) {
|
|
1553
1647
|
return Array.from(e.getClientRects());
|
|
1554
1648
|
}
|
|
1555
|
-
function
|
|
1556
|
-
return
|
|
1649
|
+
function vn(e) {
|
|
1650
|
+
return ve(re(e)).left + et(e).scrollLeft;
|
|
1557
1651
|
}
|
|
1558
|
-
function
|
|
1559
|
-
const t =
|
|
1560
|
-
let s = -n.scrollLeft +
|
|
1652
|
+
function sr(e) {
|
|
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);
|
|
1654
|
+
let s = -n.scrollLeft + vn(e);
|
|
1561
1655
|
const l = -n.scrollTop;
|
|
1562
|
-
return J(
|
|
1563
|
-
width:
|
|
1656
|
+
return J(o).direction === "rtl" && (s += Y(t.clientWidth, o.clientWidth) - r), {
|
|
1657
|
+
width: r,
|
|
1564
1658
|
height: i,
|
|
1565
1659
|
x: s,
|
|
1566
1660
|
y: l
|
|
1567
1661
|
};
|
|
1568
1662
|
}
|
|
1569
|
-
function
|
|
1570
|
-
const n = q(e),
|
|
1571
|
-
let i =
|
|
1572
|
-
if (
|
|
1573
|
-
i =
|
|
1574
|
-
const c =
|
|
1575
|
-
(!c || c && t === "fixed") && (l =
|
|
1663
|
+
function lr(e, t) {
|
|
1664
|
+
const n = q(e), o = re(e), r = n.visualViewport;
|
|
1665
|
+
let i = o.clientWidth, s = o.clientHeight, l = 0, a = 0;
|
|
1666
|
+
if (r) {
|
|
1667
|
+
i = r.width, s = r.height;
|
|
1668
|
+
const c = yt();
|
|
1669
|
+
(!c || c && t === "fixed") && (l = r.offsetLeft, a = r.offsetTop);
|
|
1576
1670
|
}
|
|
1577
1671
|
return {
|
|
1578
1672
|
width: i,
|
|
@@ -1581,8 +1675,8 @@ function no(e, t) {
|
|
|
1581
1675
|
y: a
|
|
1582
1676
|
};
|
|
1583
1677
|
}
|
|
1584
|
-
function
|
|
1585
|
-
const n =
|
|
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;
|
|
1586
1680
|
return {
|
|
1587
1681
|
width: s,
|
|
1588
1682
|
height: l,
|
|
@@ -1591,51 +1685,51 @@ function ro(e, t) {
|
|
|
1591
1685
|
};
|
|
1592
1686
|
}
|
|
1593
1687
|
function Ft(e, t, n) {
|
|
1594
|
-
let
|
|
1688
|
+
let o;
|
|
1595
1689
|
if (t === "viewport")
|
|
1596
|
-
|
|
1690
|
+
o = lr(e, n);
|
|
1597
1691
|
else if (t === "document")
|
|
1598
|
-
|
|
1692
|
+
o = sr(re(e));
|
|
1599
1693
|
else if (N(t))
|
|
1600
|
-
|
|
1694
|
+
o = ar(t, n);
|
|
1601
1695
|
else {
|
|
1602
|
-
const
|
|
1603
|
-
|
|
1696
|
+
const r = bn(e);
|
|
1697
|
+
o = {
|
|
1604
1698
|
...t,
|
|
1605
|
-
x: t.x -
|
|
1606
|
-
y: t.y -
|
|
1699
|
+
x: t.x - r.x,
|
|
1700
|
+
y: t.y - r.y
|
|
1607
1701
|
};
|
|
1608
1702
|
}
|
|
1609
|
-
return
|
|
1703
|
+
return Oe(o);
|
|
1610
1704
|
}
|
|
1611
|
-
function
|
|
1612
|
-
const n =
|
|
1613
|
-
return n === t || !N(n) ||
|
|
1705
|
+
function xn(e, t) {
|
|
1706
|
+
const n = ye(e);
|
|
1707
|
+
return n === t || !N(n) || Ae(n) ? !1 : J(n).position === "fixed" || xn(n, t);
|
|
1614
1708
|
}
|
|
1615
|
-
function
|
|
1709
|
+
function cr(e, t) {
|
|
1616
1710
|
const n = t.get(e);
|
|
1617
1711
|
if (n)
|
|
1618
1712
|
return n;
|
|
1619
|
-
let
|
|
1713
|
+
let o = ie(e, [], !1).filter((l) => N(l) && se(l) !== "body"), r = null;
|
|
1620
1714
|
const i = J(e).position === "fixed";
|
|
1621
|
-
let s = i ?
|
|
1622
|
-
for (; N(s) && !
|
|
1623
|
-
const l = J(s), a =
|
|
1624
|
-
!a && l.position === "fixed" && (
|
|
1715
|
+
let s = i ? ye(e) : e;
|
|
1716
|
+
for (; N(s) && !Ae(s); ) {
|
|
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);
|
|
1625
1719
|
}
|
|
1626
|
-
return t.set(e,
|
|
1720
|
+
return t.set(e, o), o;
|
|
1627
1721
|
}
|
|
1628
|
-
function
|
|
1722
|
+
function ur(e) {
|
|
1629
1723
|
let {
|
|
1630
1724
|
element: t,
|
|
1631
1725
|
boundary: n,
|
|
1632
|
-
rootBoundary:
|
|
1633
|
-
strategy:
|
|
1726
|
+
rootBoundary: o,
|
|
1727
|
+
strategy: r
|
|
1634
1728
|
} = e;
|
|
1635
|
-
const s = [...n === "clippingAncestors" ?
|
|
1636
|
-
const
|
|
1637
|
-
return c.top =
|
|
1638
|
-
}, Ft(t, l,
|
|
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);
|
|
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;
|
|
1732
|
+
}, Ft(t, l, r));
|
|
1639
1733
|
return {
|
|
1640
1734
|
width: a.right - a.left,
|
|
1641
1735
|
height: a.bottom - a.top,
|
|
@@ -1643,53 +1737,53 @@ function io(e) {
|
|
|
1643
1737
|
y: a.top
|
|
1644
1738
|
};
|
|
1645
1739
|
}
|
|
1646
|
-
function
|
|
1740
|
+
function dr(e) {
|
|
1647
1741
|
const {
|
|
1648
1742
|
width: t,
|
|
1649
1743
|
height: n
|
|
1650
|
-
} =
|
|
1744
|
+
} = hn(e);
|
|
1651
1745
|
return {
|
|
1652
1746
|
width: t,
|
|
1653
1747
|
height: n
|
|
1654
1748
|
};
|
|
1655
1749
|
}
|
|
1656
|
-
function
|
|
1657
|
-
const
|
|
1750
|
+
function fr(e, t, n) {
|
|
1751
|
+
const o = Z(t), r = re(t), i = n === "fixed", s = ve(e, !0, i, t);
|
|
1658
1752
|
let l = {
|
|
1659
1753
|
scrollLeft: 0,
|
|
1660
1754
|
scrollTop: 0
|
|
1661
1755
|
};
|
|
1662
|
-
const a =
|
|
1663
|
-
if (
|
|
1664
|
-
if ((
|
|
1665
|
-
const
|
|
1666
|
-
a.x =
|
|
1756
|
+
const a = le(0);
|
|
1757
|
+
if (o || !o && !i)
|
|
1758
|
+
if ((se(t) !== "body" || Ve(r)) && (l = et(t)), o) {
|
|
1759
|
+
const u = ve(t, !0, i, t);
|
|
1760
|
+
a.x = u.x + t.clientLeft, a.y = u.y + t.clientTop;
|
|
1667
1761
|
} else
|
|
1668
|
-
|
|
1669
|
-
const c = s.left + l.scrollLeft - a.x,
|
|
1762
|
+
r && (a.x = vn(r));
|
|
1763
|
+
const c = s.left + l.scrollLeft - a.x, g = s.top + l.scrollTop - a.y;
|
|
1670
1764
|
return {
|
|
1671
1765
|
x: c,
|
|
1672
|
-
y:
|
|
1766
|
+
y: g,
|
|
1673
1767
|
width: s.width,
|
|
1674
1768
|
height: s.height
|
|
1675
1769
|
};
|
|
1676
1770
|
}
|
|
1677
|
-
function
|
|
1771
|
+
function zt(e, t) {
|
|
1678
1772
|
return !Z(e) || J(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
1679
1773
|
}
|
|
1680
|
-
function
|
|
1774
|
+
function wn(e, t) {
|
|
1681
1775
|
const n = q(e);
|
|
1682
|
-
if (!Z(e) ||
|
|
1776
|
+
if (!Z(e) || yn(e))
|
|
1683
1777
|
return n;
|
|
1684
|
-
let
|
|
1685
|
-
for (;
|
|
1686
|
-
|
|
1687
|
-
return
|
|
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;
|
|
1688
1782
|
}
|
|
1689
|
-
const
|
|
1690
|
-
const t = this.getOffsetParent ||
|
|
1783
|
+
const gr = async function(e) {
|
|
1784
|
+
const t = this.getOffsetParent || wn, n = this.getDimensions;
|
|
1691
1785
|
return {
|
|
1692
|
-
reference:
|
|
1786
|
+
reference: fr(e.reference, await t(e.floating), e.strategy),
|
|
1693
1787
|
floating: {
|
|
1694
1788
|
x: 0,
|
|
1695
1789
|
y: 0,
|
|
@@ -1697,41 +1791,41 @@ const ao = async function(e) {
|
|
|
1697
1791
|
}
|
|
1698
1792
|
};
|
|
1699
1793
|
};
|
|
1700
|
-
function
|
|
1794
|
+
function mr(e) {
|
|
1701
1795
|
return J(e).direction === "rtl";
|
|
1702
1796
|
}
|
|
1703
|
-
const
|
|
1704
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1705
|
-
getDocumentElement:
|
|
1706
|
-
getClippingRect:
|
|
1707
|
-
getOffsetParent:
|
|
1708
|
-
getElementRects:
|
|
1709
|
-
getClientRects:
|
|
1710
|
-
getDimensions:
|
|
1711
|
-
getScale:
|
|
1797
|
+
const pr = {
|
|
1798
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: rr,
|
|
1799
|
+
getDocumentElement: re,
|
|
1800
|
+
getClippingRect: ur,
|
|
1801
|
+
getOffsetParent: wn,
|
|
1802
|
+
getElementRects: gr,
|
|
1803
|
+
getClientRects: ir,
|
|
1804
|
+
getDimensions: dr,
|
|
1805
|
+
getScale: Pe,
|
|
1712
1806
|
isElement: N,
|
|
1713
|
-
isRTL:
|
|
1807
|
+
isRTL: mr
|
|
1714
1808
|
};
|
|
1715
|
-
function
|
|
1716
|
-
let n = null,
|
|
1717
|
-
const
|
|
1809
|
+
function hr(e, t) {
|
|
1810
|
+
let n = null, o;
|
|
1811
|
+
const r = re(e);
|
|
1718
1812
|
function i() {
|
|
1719
1813
|
var l;
|
|
1720
|
-
clearTimeout(
|
|
1814
|
+
clearTimeout(o), (l = n) == null || l.disconnect(), n = null;
|
|
1721
1815
|
}
|
|
1722
1816
|
function s(l, a) {
|
|
1723
1817
|
l === void 0 && (l = !1), a === void 0 && (a = 1), i();
|
|
1724
1818
|
const {
|
|
1725
1819
|
left: c,
|
|
1726
|
-
top:
|
|
1727
|
-
width:
|
|
1820
|
+
top: g,
|
|
1821
|
+
width: u,
|
|
1728
1822
|
height: f
|
|
1729
1823
|
} = e.getBoundingClientRect();
|
|
1730
|
-
if (l || t(), !
|
|
1824
|
+
if (l || t(), !u || !f)
|
|
1731
1825
|
return;
|
|
1732
|
-
const
|
|
1733
|
-
rootMargin: -
|
|
1734
|
-
threshold:
|
|
1826
|
+
const d = Ye(g), m = Ye(r.clientWidth - (c + u)), p = Ye(r.clientHeight - (g + f)), w = Ye(c), x = {
|
|
1827
|
+
rootMargin: -d + "px " + -m + "px " + -p + "px " + -w + "px",
|
|
1828
|
+
threshold: Y(0, oe(1, a)) || 1
|
|
1735
1829
|
};
|
|
1736
1830
|
let P = !0;
|
|
1737
1831
|
function S(k) {
|
|
@@ -1739,7 +1833,7 @@ function fo(e, t) {
|
|
|
1739
1833
|
if (C !== a) {
|
|
1740
1834
|
if (!P)
|
|
1741
1835
|
return s();
|
|
1742
|
-
C ? s(!1, C) :
|
|
1836
|
+
C ? s(!1, C) : o = setTimeout(() => {
|
|
1743
1837
|
s(!1, 1e-7);
|
|
1744
1838
|
}, 100);
|
|
1745
1839
|
}
|
|
@@ -1749,7 +1843,7 @@ function fo(e, t) {
|
|
|
1749
1843
|
n = new IntersectionObserver(S, {
|
|
1750
1844
|
...x,
|
|
1751
1845
|
// Handle <iframe>s
|
|
1752
|
-
root:
|
|
1846
|
+
root: r.ownerDocument
|
|
1753
1847
|
});
|
|
1754
1848
|
} catch {
|
|
1755
1849
|
n = new IntersectionObserver(S, x);
|
|
@@ -1758,56 +1852,56 @@ function fo(e, t) {
|
|
|
1758
1852
|
}
|
|
1759
1853
|
return s(!0), i;
|
|
1760
1854
|
}
|
|
1761
|
-
function
|
|
1762
|
-
|
|
1855
|
+
function br(e, t, n, o) {
|
|
1856
|
+
o === void 0 && (o = {});
|
|
1763
1857
|
const {
|
|
1764
|
-
ancestorScroll:
|
|
1858
|
+
ancestorScroll: r = !0,
|
|
1765
1859
|
ancestorResize: i = !0,
|
|
1766
1860
|
elementResize: s = typeof ResizeObserver == "function",
|
|
1767
1861
|
layoutShift: l = typeof IntersectionObserver == "function",
|
|
1768
1862
|
animationFrame: a = !1
|
|
1769
|
-
} =
|
|
1770
|
-
|
|
1771
|
-
|
|
1863
|
+
} = o, c = xt(e), g = r || i ? [...c ? ie(c) : [], ...ie(t)] : [];
|
|
1864
|
+
g.forEach((h) => {
|
|
1865
|
+
r && h.addEventListener("scroll", n, {
|
|
1772
1866
|
passive: !0
|
|
1773
1867
|
}), i && h.addEventListener("resize", n);
|
|
1774
1868
|
});
|
|
1775
|
-
const
|
|
1776
|
-
let f = -1,
|
|
1777
|
-
s && (
|
|
1869
|
+
const u = c && l ? hr(c, n) : null;
|
|
1870
|
+
let f = -1, d = null;
|
|
1871
|
+
s && (d = new ResizeObserver((h) => {
|
|
1778
1872
|
let [x] = h;
|
|
1779
|
-
x && x.target === c &&
|
|
1873
|
+
x && x.target === c && d && (d.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
1780
1874
|
var P;
|
|
1781
|
-
(P =
|
|
1875
|
+
(P = d) == null || P.observe(t);
|
|
1782
1876
|
})), n();
|
|
1783
|
-
}), c && !a &&
|
|
1784
|
-
let
|
|
1877
|
+
}), c && !a && d.observe(c), d.observe(t));
|
|
1878
|
+
let m, p = a ? ve(e) : null;
|
|
1785
1879
|
a && w();
|
|
1786
1880
|
function w() {
|
|
1787
|
-
const h =
|
|
1788
|
-
p && (h.x !== p.x || h.y !== p.y || h.width !== p.width || h.height !== p.height) && n(), p = h,
|
|
1881
|
+
const h = ve(e);
|
|
1882
|
+
p && (h.x !== p.x || h.y !== p.y || h.width !== p.width || h.height !== p.height) && n(), p = h, m = requestAnimationFrame(w);
|
|
1789
1883
|
}
|
|
1790
1884
|
return n(), () => {
|
|
1791
1885
|
var h;
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
}),
|
|
1886
|
+
g.forEach((x) => {
|
|
1887
|
+
r && x.removeEventListener("scroll", n), i && x.removeEventListener("resize", n);
|
|
1888
|
+
}), u == null || u(), (h = d) == null || h.disconnect(), d = null, a && cancelAnimationFrame(m);
|
|
1795
1889
|
};
|
|
1796
1890
|
}
|
|
1797
|
-
const
|
|
1798
|
-
const
|
|
1799
|
-
platform:
|
|
1891
|
+
const yr = Qo, vr = Go, Li = er, Fi = qo, xr = (e, t, n) => {
|
|
1892
|
+
const o = /* @__PURE__ */ new Map(), r = {
|
|
1893
|
+
platform: pr,
|
|
1800
1894
|
...n
|
|
1801
1895
|
}, i = {
|
|
1802
|
-
...
|
|
1803
|
-
_c:
|
|
1896
|
+
...r.platform,
|
|
1897
|
+
_c: o
|
|
1804
1898
|
};
|
|
1805
|
-
return
|
|
1806
|
-
...
|
|
1899
|
+
return Ko(e, t, {
|
|
1900
|
+
...r,
|
|
1807
1901
|
platform: i
|
|
1808
1902
|
});
|
|
1809
1903
|
};
|
|
1810
|
-
var
|
|
1904
|
+
var Xe = typeof document < "u" ? tn : pt;
|
|
1811
1905
|
function Ze(e, t) {
|
|
1812
1906
|
if (e === t)
|
|
1813
1907
|
return !0;
|
|
@@ -1815,23 +1909,23 @@ function Ze(e, t) {
|
|
|
1815
1909
|
return !1;
|
|
1816
1910
|
if (typeof e == "function" && e.toString() === t.toString())
|
|
1817
1911
|
return !0;
|
|
1818
|
-
let n,
|
|
1912
|
+
let n, o, r;
|
|
1819
1913
|
if (e && t && typeof e == "object") {
|
|
1820
1914
|
if (Array.isArray(e)) {
|
|
1821
1915
|
if (n = e.length, n !== t.length)
|
|
1822
1916
|
return !1;
|
|
1823
|
-
for (
|
|
1824
|
-
if (!Ze(e[
|
|
1917
|
+
for (o = n; o-- !== 0; )
|
|
1918
|
+
if (!Ze(e[o], t[o]))
|
|
1825
1919
|
return !1;
|
|
1826
1920
|
return !0;
|
|
1827
1921
|
}
|
|
1828
|
-
if (
|
|
1922
|
+
if (r = Object.keys(e), n = r.length, n !== Object.keys(t).length)
|
|
1829
1923
|
return !1;
|
|
1830
|
-
for (
|
|
1831
|
-
if (!{}.hasOwnProperty.call(t, o
|
|
1924
|
+
for (o = n; o-- !== 0; )
|
|
1925
|
+
if (!{}.hasOwnProperty.call(t, r[o]))
|
|
1832
1926
|
return !1;
|
|
1833
|
-
for (
|
|
1834
|
-
const i = o
|
|
1927
|
+
for (o = n; o-- !== 0; ) {
|
|
1928
|
+
const i = r[o];
|
|
1835
1929
|
if (!(i === "_owner" && e.$$typeof) && !Ze(e[i], t[i]))
|
|
1836
1930
|
return !1;
|
|
1837
1931
|
}
|
|
@@ -1839,26 +1933,26 @@ function Ze(e, t) {
|
|
|
1839
1933
|
}
|
|
1840
1934
|
return e !== e && t !== t;
|
|
1841
1935
|
}
|
|
1842
|
-
function
|
|
1936
|
+
function $n(e) {
|
|
1843
1937
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1844
1938
|
}
|
|
1845
|
-
function
|
|
1846
|
-
const n =
|
|
1939
|
+
function Wt(e, t) {
|
|
1940
|
+
const n = $n(e);
|
|
1847
1941
|
return Math.round(t * n) / n;
|
|
1848
1942
|
}
|
|
1849
|
-
function
|
|
1943
|
+
function Nt(e) {
|
|
1850
1944
|
const t = y.useRef(e);
|
|
1851
|
-
return
|
|
1945
|
+
return Xe(() => {
|
|
1852
1946
|
t.current = e;
|
|
1853
1947
|
}), t;
|
|
1854
1948
|
}
|
|
1855
|
-
function
|
|
1949
|
+
function wr(e) {
|
|
1856
1950
|
e === void 0 && (e = {});
|
|
1857
1951
|
const {
|
|
1858
1952
|
placement: t = "bottom",
|
|
1859
1953
|
strategy: n = "absolute",
|
|
1860
|
-
middleware:
|
|
1861
|
-
platform:
|
|
1954
|
+
middleware: o = [],
|
|
1955
|
+
platform: r,
|
|
1862
1956
|
elements: {
|
|
1863
1957
|
reference: i,
|
|
1864
1958
|
floating: s
|
|
@@ -1866,20 +1960,20 @@ function bo(e) {
|
|
|
1866
1960
|
transform: l = !0,
|
|
1867
1961
|
whileElementsMounted: a,
|
|
1868
1962
|
open: c
|
|
1869
|
-
} = e, [
|
|
1963
|
+
} = e, [g, u] = y.useState({
|
|
1870
1964
|
x: 0,
|
|
1871
1965
|
y: 0,
|
|
1872
1966
|
strategy: n,
|
|
1873
1967
|
placement: t,
|
|
1874
1968
|
middlewareData: {},
|
|
1875
1969
|
isPositioned: !1
|
|
1876
|
-
}), [f,
|
|
1877
|
-
Ze(f,
|
|
1878
|
-
const [
|
|
1970
|
+
}), [f, d] = y.useState(o);
|
|
1971
|
+
Ze(f, o) || d(o);
|
|
1972
|
+
const [m, p] = y.useState(null), [w, h] = y.useState(null), x = y.useCallback((R) => {
|
|
1879
1973
|
R !== C.current && (C.current = R, p(R));
|
|
1880
1974
|
}, []), P = y.useCallback((R) => {
|
|
1881
1975
|
R !== B.current && (B.current = R, h(R));
|
|
1882
|
-
}, []), S = i ||
|
|
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(() => {
|
|
1883
1977
|
if (!C.current || !B.current)
|
|
1884
1978
|
return;
|
|
1885
1979
|
const R = {
|
|
@@ -1887,32 +1981,32 @@ function bo(e) {
|
|
|
1887
1981
|
strategy: n,
|
|
1888
1982
|
middleware: f
|
|
1889
1983
|
};
|
|
1890
|
-
|
|
1891
|
-
const
|
|
1984
|
+
L.current && (R.platform = L.current), xr(C.current, B.current, R).then(($) => {
|
|
1985
|
+
const F = {
|
|
1892
1986
|
...$,
|
|
1893
1987
|
isPositioned: !0
|
|
1894
1988
|
};
|
|
1895
|
-
O.current && !Ze(T.current,
|
|
1896
|
-
|
|
1989
|
+
O.current && !Ze(T.current, F) && (T.current = F, zn.flushSync(() => {
|
|
1990
|
+
u(F);
|
|
1897
1991
|
}));
|
|
1898
1992
|
});
|
|
1899
|
-
}, [f, t, n,
|
|
1900
|
-
|
|
1901
|
-
c === !1 && T.current.isPositioned && (T.current.isPositioned = !1,
|
|
1993
|
+
}, [f, t, n, L]);
|
|
1994
|
+
Xe(() => {
|
|
1995
|
+
c === !1 && T.current.isPositioned && (T.current.isPositioned = !1, u((R) => ({
|
|
1902
1996
|
...R,
|
|
1903
1997
|
isPositioned: !1
|
|
1904
1998
|
})));
|
|
1905
1999
|
}, [c]);
|
|
1906
2000
|
const O = y.useRef(!1);
|
|
1907
|
-
|
|
2001
|
+
Xe(() => (O.current = !0, () => {
|
|
1908
2002
|
O.current = !1;
|
|
1909
|
-
}), []),
|
|
2003
|
+
}), []), Xe(() => {
|
|
1910
2004
|
if (S && (C.current = S), k && (B.current = k), S && k) {
|
|
1911
|
-
if (
|
|
1912
|
-
return
|
|
2005
|
+
if (A.current)
|
|
2006
|
+
return A.current(S, k, M);
|
|
1913
2007
|
M();
|
|
1914
2008
|
}
|
|
1915
|
-
}, [S, k, M,
|
|
2009
|
+
}, [S, k, M, A, D]);
|
|
1916
2010
|
const b = y.useMemo(() => ({
|
|
1917
2011
|
reference: C,
|
|
1918
2012
|
floating: B,
|
|
@@ -1929,281 +2023,281 @@ function bo(e) {
|
|
|
1929
2023
|
};
|
|
1930
2024
|
if (!v.floating)
|
|
1931
2025
|
return R;
|
|
1932
|
-
const $ =
|
|
2026
|
+
const $ = Wt(v.floating, g.x), F = Wt(v.floating, g.y);
|
|
1933
2027
|
return l ? {
|
|
1934
2028
|
...R,
|
|
1935
|
-
transform: "translate(" + $ + "px, " +
|
|
1936
|
-
|
|
2029
|
+
transform: "translate(" + $ + "px, " + F + "px)",
|
|
2030
|
+
...$n(v.floating) >= 1.5 && {
|
|
1937
2031
|
willChange: "transform"
|
|
1938
2032
|
}
|
|
1939
2033
|
} : {
|
|
1940
2034
|
position: n,
|
|
1941
2035
|
left: $,
|
|
1942
|
-
top:
|
|
2036
|
+
top: F
|
|
1943
2037
|
};
|
|
1944
|
-
}, [n, l, v.floating,
|
|
2038
|
+
}, [n, l, v.floating, g.x, g.y]);
|
|
1945
2039
|
return y.useMemo(() => ({
|
|
1946
|
-
...
|
|
2040
|
+
...g,
|
|
1947
2041
|
update: M,
|
|
1948
2042
|
refs: b,
|
|
1949
2043
|
elements: v,
|
|
1950
2044
|
floatingStyles: I
|
|
1951
|
-
}), [
|
|
2045
|
+
}), [g, M, b, v, I]);
|
|
1952
2046
|
}
|
|
1953
2047
|
/*!
|
|
1954
2048
|
* tabbable 6.2.0
|
|
1955
2049
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
1956
2050
|
*/
|
|
1957
|
-
var
|
|
1958
|
-
} : 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) {
|
|
1959
2053
|
var t;
|
|
1960
2054
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
1961
2055
|
} : function(e) {
|
|
1962
2056
|
return e == null ? void 0 : e.ownerDocument;
|
|
1963
2057
|
}, Qe = function e(t, n) {
|
|
1964
|
-
var
|
|
2058
|
+
var o;
|
|
1965
2059
|
n === void 0 && (n = !0);
|
|
1966
|
-
var
|
|
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);
|
|
1967
2061
|
return s;
|
|
1968
|
-
},
|
|
1969
|
-
var n,
|
|
1970
|
-
return
|
|
1971
|
-
},
|
|
2062
|
+
}, Sr = function(t) {
|
|
2063
|
+
var n, o = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
|
|
2064
|
+
return o === "" || o === "true";
|
|
2065
|
+
}, Rr = function(t, n, o) {
|
|
1972
2066
|
if (Qe(t))
|
|
1973
2067
|
return [];
|
|
1974
|
-
var
|
|
1975
|
-
return n &&
|
|
1976
|
-
},
|
|
1977
|
-
for (var
|
|
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) {
|
|
2071
|
+
for (var r = [], i = Array.from(t); i.length; ) {
|
|
1978
2072
|
var s = i.shift();
|
|
1979
2073
|
if (!Qe(s, !1))
|
|
1980
2074
|
if (s.tagName === "SLOT") {
|
|
1981
|
-
var l = s.assignedElements(), a = l.length ? l : s.children, c = e(a, !0,
|
|
1982
|
-
|
|
2075
|
+
var l = s.assignedElements(), a = l.length ? l : s.children, c = e(a, !0, o);
|
|
2076
|
+
o.flatten ? r.push.apply(r, c) : r.push({
|
|
1983
2077
|
scopeParent: s,
|
|
1984
2078
|
candidates: c
|
|
1985
2079
|
});
|
|
1986
2080
|
} else {
|
|
1987
|
-
var
|
|
1988
|
-
|
|
1989
|
-
var
|
|
1990
|
-
typeof
|
|
1991
|
-
if (
|
|
1992
|
-
var
|
|
1993
|
-
|
|
2081
|
+
var g = Ne.call(s, ft);
|
|
2082
|
+
g && o.filter(s) && (n || !t.includes(s)) && r.push(s);
|
|
2083
|
+
var u = s.shadowRoot || // check for an undisclosed shadow
|
|
2084
|
+
typeof o.getShadowRoot == "function" && o.getShadowRoot(s), f = !Qe(u, !1) && (!o.shadowRootFilter || o.shadowRootFilter(s));
|
|
2085
|
+
if (u && f) {
|
|
2086
|
+
var d = e(u === !0 ? s.children : u.children, !0, o);
|
|
2087
|
+
o.flatten ? r.push.apply(r, d) : r.push({
|
|
1994
2088
|
scopeParent: s,
|
|
1995
|
-
candidates:
|
|
2089
|
+
candidates: d
|
|
1996
2090
|
});
|
|
1997
2091
|
} else
|
|
1998
2092
|
i.unshift.apply(i, s.children);
|
|
1999
2093
|
}
|
|
2000
2094
|
}
|
|
2001
|
-
return
|
|
2002
|
-
},
|
|
2095
|
+
return r;
|
|
2096
|
+
}, Rn = function(t) {
|
|
2003
2097
|
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
2004
|
-
},
|
|
2098
|
+
}, En = function(t) {
|
|
2005
2099
|
if (!t)
|
|
2006
2100
|
throw new Error("No node provided");
|
|
2007
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
|
2008
|
-
},
|
|
2009
|
-
var
|
|
2010
|
-
return
|
|
2011
|
-
},
|
|
2101
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Sr(t)) && !Rn(t) ? 0 : t.tabIndex;
|
|
2102
|
+
}, Cr = function(t, n) {
|
|
2103
|
+
var o = En(t);
|
|
2104
|
+
return o < 0 && n && !Rn(t) ? 0 : o;
|
|
2105
|
+
}, kr = function(t, n) {
|
|
2012
2106
|
return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
|
|
2013
|
-
},
|
|
2107
|
+
}, Cn = function(t) {
|
|
2014
2108
|
return t.tagName === "INPUT";
|
|
2015
|
-
},
|
|
2016
|
-
return
|
|
2017
|
-
},
|
|
2018
|
-
var n = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(
|
|
2019
|
-
return
|
|
2109
|
+
}, Tr = function(t) {
|
|
2110
|
+
return Cn(t) && t.type === "hidden";
|
|
2111
|
+
}, Ir = function(t) {
|
|
2112
|
+
var n = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(o) {
|
|
2113
|
+
return o.tagName === "SUMMARY";
|
|
2020
2114
|
});
|
|
2021
2115
|
return n;
|
|
2022
|
-
},
|
|
2023
|
-
for (var
|
|
2024
|
-
if (t[
|
|
2025
|
-
return t[
|
|
2026
|
-
},
|
|
2116
|
+
}, Pr = function(t, n) {
|
|
2117
|
+
for (var o = 0; o < t.length; o++)
|
|
2118
|
+
if (t[o].checked && t[o].form === n)
|
|
2119
|
+
return t[o];
|
|
2120
|
+
}, Br = function(t) {
|
|
2027
2121
|
if (!t.name)
|
|
2028
2122
|
return !0;
|
|
2029
|
-
var n = t.form || Je(t),
|
|
2123
|
+
var n = t.form || Je(t), o = function(l) {
|
|
2030
2124
|
return n.querySelectorAll('input[type="radio"][name="' + l + '"]');
|
|
2031
|
-
},
|
|
2125
|
+
}, r;
|
|
2032
2126
|
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
2033
|
-
|
|
2127
|
+
r = o(window.CSS.escape(t.name));
|
|
2034
2128
|
else
|
|
2035
2129
|
try {
|
|
2036
|
-
|
|
2130
|
+
r = o(t.name);
|
|
2037
2131
|
} catch (s) {
|
|
2038
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;
|
|
2039
2133
|
}
|
|
2040
|
-
var i =
|
|
2134
|
+
var i = Pr(r, t.form);
|
|
2041
2135
|
return !i || i === t;
|
|
2042
|
-
},
|
|
2043
|
-
return
|
|
2044
|
-
},
|
|
2045
|
-
return
|
|
2046
|
-
},
|
|
2047
|
-
var n,
|
|
2048
|
-
if (
|
|
2136
|
+
}, Ar = function(t) {
|
|
2137
|
+
return Cn(t) && t.type === "radio";
|
|
2138
|
+
}, Or = function(t) {
|
|
2139
|
+
return Ar(t) && !Br(t);
|
|
2140
|
+
}, Dr = function(t) {
|
|
2141
|
+
var n, o = t && Je(t), r = (n = o) === null || n === void 0 ? void 0 : n.host, i = !1;
|
|
2142
|
+
if (o && o !== t) {
|
|
2049
2143
|
var s, l, a;
|
|
2050
|
-
for (i = !!((s =
|
|
2051
|
-
var c,
|
|
2052
|
-
|
|
2144
|
+
for (i = !!((s = r) !== null && s !== void 0 && (l = s.ownerDocument) !== null && l !== void 0 && l.contains(r) || t != null && (a = t.ownerDocument) !== null && a !== void 0 && a.contains(t)); !i && r; ) {
|
|
2145
|
+
var c, g, u;
|
|
2146
|
+
o = Je(r), r = (c = o) === null || c === void 0 ? void 0 : c.host, i = !!((g = r) !== null && g !== void 0 && (u = g.ownerDocument) !== null && u !== void 0 && u.contains(r));
|
|
2053
2147
|
}
|
|
2054
2148
|
}
|
|
2055
2149
|
return i;
|
|
2056
|
-
},
|
|
2057
|
-
var n = t.getBoundingClientRect(),
|
|
2058
|
-
return
|
|
2059
|
-
},
|
|
2060
|
-
var
|
|
2150
|
+
}, jt = function(t) {
|
|
2151
|
+
var n = t.getBoundingClientRect(), o = n.width, r = n.height;
|
|
2152
|
+
return o === 0 && r === 0;
|
|
2153
|
+
}, Mr = function(t, n) {
|
|
2154
|
+
var o = n.displayCheck, r = n.getShadowRoot;
|
|
2061
2155
|
if (getComputedStyle(t).visibility === "hidden")
|
|
2062
2156
|
return !0;
|
|
2063
|
-
var i =
|
|
2064
|
-
if (
|
|
2157
|
+
var i = Ne.call(t, "details>summary:first-of-type"), s = i ? t.parentElement : t;
|
|
2158
|
+
if (Ne.call(s, "details:not([open]) *"))
|
|
2065
2159
|
return !0;
|
|
2066
|
-
if (!
|
|
2067
|
-
if (typeof
|
|
2160
|
+
if (!o || o === "full" || o === "legacy-full") {
|
|
2161
|
+
if (typeof r == "function") {
|
|
2068
2162
|
for (var l = t; t; ) {
|
|
2069
2163
|
var a = t.parentElement, c = Je(t);
|
|
2070
|
-
if (a && !a.shadowRoot &&
|
|
2071
|
-
return
|
|
2164
|
+
if (a && !a.shadowRoot && r(a) === !0)
|
|
2165
|
+
return jt(t);
|
|
2072
2166
|
t.assignedSlot ? t = t.assignedSlot : !a && c !== t.ownerDocument ? t = c.host : t = a;
|
|
2073
2167
|
}
|
|
2074
2168
|
t = l;
|
|
2075
2169
|
}
|
|
2076
|
-
if (
|
|
2170
|
+
if (Dr(t))
|
|
2077
2171
|
return !t.getClientRects().length;
|
|
2078
|
-
if (
|
|
2172
|
+
if (o !== "legacy-full")
|
|
2079
2173
|
return !0;
|
|
2080
|
-
} else if (
|
|
2081
|
-
return
|
|
2174
|
+
} else if (o === "non-zero-area")
|
|
2175
|
+
return jt(t);
|
|
2082
2176
|
return !1;
|
|
2083
|
-
},
|
|
2177
|
+
}, Lr = function(t) {
|
|
2084
2178
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
2085
2179
|
for (var n = t.parentElement; n; ) {
|
|
2086
2180
|
if (n.tagName === "FIELDSET" && n.disabled) {
|
|
2087
|
-
for (var
|
|
2088
|
-
var
|
|
2089
|
-
if (
|
|
2090
|
-
return
|
|
2181
|
+
for (var o = 0; o < n.children.length; o++) {
|
|
2182
|
+
var r = n.children.item(o);
|
|
2183
|
+
if (r.tagName === "LEGEND")
|
|
2184
|
+
return Ne.call(n, "fieldset[disabled] *") ? !0 : !r.contains(t);
|
|
2091
2185
|
}
|
|
2092
2186
|
return !0;
|
|
2093
2187
|
}
|
|
2094
2188
|
n = n.parentElement;
|
|
2095
2189
|
}
|
|
2096
2190
|
return !1;
|
|
2097
|
-
},
|
|
2191
|
+
}, Fr = function(t, n) {
|
|
2098
2192
|
return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
2099
2193
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
2100
2194
|
// note related to `candidateSelectors`)
|
|
2101
|
-
Qe(n) ||
|
|
2102
|
-
|
|
2103
|
-
},
|
|
2104
|
-
return !(
|
|
2105
|
-
},
|
|
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) {
|
|
2106
2200
|
var n = parseInt(t.getAttribute("tabindex"), 10);
|
|
2107
2201
|
return !!(isNaN(n) || n >= 0);
|
|
2108
|
-
},
|
|
2109
|
-
var n = [],
|
|
2110
|
-
return t.forEach(function(
|
|
2111
|
-
var s = !!
|
|
2112
|
-
a === 0 ? s ? n.push.apply(n, c) : n.push(l) :
|
|
2202
|
+
}, Wr = function e(t) {
|
|
2203
|
+
var n = [], o = [];
|
|
2204
|
+
return t.forEach(function(r, i) {
|
|
2205
|
+
var s = !!r.scopeParent, l = s ? r.scopeParent : r, a = Cr(l, s), c = s ? e(r.candidates) : l;
|
|
2206
|
+
a === 0 ? s ? n.push.apply(n, c) : n.push(l) : o.push({
|
|
2113
2207
|
documentOrder: i,
|
|
2114
2208
|
tabIndex: a,
|
|
2115
|
-
item:
|
|
2209
|
+
item: r,
|
|
2116
2210
|
isScope: s,
|
|
2117
2211
|
content: c
|
|
2118
2212
|
});
|
|
2119
|
-
}),
|
|
2120
|
-
return i.isScope ?
|
|
2213
|
+
}), o.sort(kr).reduce(function(r, i) {
|
|
2214
|
+
return i.isScope ? r.push.apply(r, i.content) : r.push(i.content), r;
|
|
2121
2215
|
}, []).concat(n);
|
|
2122
|
-
},
|
|
2216
|
+
}, kn = function(t, n) {
|
|
2123
2217
|
n = n || {};
|
|
2124
|
-
var
|
|
2125
|
-
return n.getShadowRoot ?
|
|
2126
|
-
filter:
|
|
2218
|
+
var o;
|
|
2219
|
+
return n.getShadowRoot ? o = Er([t], n.includeContainer, {
|
|
2220
|
+
filter: Ht.bind(null, n),
|
|
2127
2221
|
flatten: !1,
|
|
2128
2222
|
getShadowRoot: n.getShadowRoot,
|
|
2129
|
-
shadowRootFilter:
|
|
2130
|
-
}) :
|
|
2223
|
+
shadowRootFilter: zr
|
|
2224
|
+
}) : o = Rr(t, n.includeContainer, Ht.bind(null, n)), Wr(o);
|
|
2131
2225
|
};
|
|
2132
|
-
const
|
|
2133
|
-
function
|
|
2226
|
+
const Nr = y[/* @__PURE__ */ "useInsertionEffect".toString()], jr = Nr || ((e) => e());
|
|
2227
|
+
function ke(e) {
|
|
2134
2228
|
const t = y.useRef(() => {
|
|
2135
2229
|
if (process.env.NODE_ENV !== "production")
|
|
2136
2230
|
throw new Error("Cannot call an event handler while rendering.");
|
|
2137
2231
|
});
|
|
2138
|
-
return
|
|
2232
|
+
return jr(() => {
|
|
2139
2233
|
t.current = e;
|
|
2140
2234
|
}), y.useCallback(function() {
|
|
2141
|
-
for (var n = arguments.length,
|
|
2142
|
-
r
|
|
2143
|
-
return t.current == null ? void 0 : t.current(...
|
|
2235
|
+
for (var n = arguments.length, o = new Array(n), r = 0; r < n; r++)
|
|
2236
|
+
o[r] = arguments[r];
|
|
2237
|
+
return t.current == null ? void 0 : t.current(...o);
|
|
2144
2238
|
}, []);
|
|
2145
2239
|
}
|
|
2146
|
-
var Q = typeof document < "u" ?
|
|
2147
|
-
function
|
|
2148
|
-
return
|
|
2240
|
+
var Q = typeof document < "u" ? tn : pt;
|
|
2241
|
+
function gt() {
|
|
2242
|
+
return gt = Object.assign ? Object.assign.bind() : function(e) {
|
|
2149
2243
|
for (var t = 1; t < arguments.length; t++) {
|
|
2150
2244
|
var n = arguments[t];
|
|
2151
|
-
for (var
|
|
2152
|
-
Object.prototype.hasOwnProperty.call(n,
|
|
2245
|
+
for (var o in n)
|
|
2246
|
+
Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
|
|
2153
2247
|
}
|
|
2154
2248
|
return e;
|
|
2155
|
-
},
|
|
2249
|
+
}, gt.apply(this, arguments);
|
|
2156
2250
|
}
|
|
2157
|
-
let
|
|
2158
|
-
const
|
|
2159
|
-
function
|
|
2160
|
-
const [e, t] = y.useState(() =>
|
|
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);
|
|
2161
2255
|
return Q(() => {
|
|
2162
|
-
e == null && t(
|
|
2256
|
+
e == null && t(Vt());
|
|
2163
2257
|
}, []), y.useEffect(() => {
|
|
2164
|
-
|
|
2258
|
+
rt || (rt = !0);
|
|
2165
2259
|
}, []), e;
|
|
2166
2260
|
}
|
|
2167
|
-
const
|
|
2168
|
-
function
|
|
2261
|
+
const _r = y[/* @__PURE__ */ "useId".toString()], wt = _r || Vr;
|
|
2262
|
+
function Yr() {
|
|
2169
2263
|
const e = /* @__PURE__ */ new Map();
|
|
2170
2264
|
return {
|
|
2171
2265
|
emit(t, n) {
|
|
2172
|
-
var
|
|
2173
|
-
(
|
|
2266
|
+
var o;
|
|
2267
|
+
(o = e.get(t)) == null || o.forEach((r) => r(n));
|
|
2174
2268
|
},
|
|
2175
2269
|
on(t, n) {
|
|
2176
2270
|
e.set(t, [...e.get(t) || [], n]);
|
|
2177
2271
|
},
|
|
2178
2272
|
off(t, n) {
|
|
2179
|
-
var
|
|
2180
|
-
e.set(t, ((
|
|
2273
|
+
var o;
|
|
2274
|
+
e.set(t, ((o = e.get(t)) == null ? void 0 : o.filter((r) => r !== n)) || []);
|
|
2181
2275
|
}
|
|
2182
2276
|
};
|
|
2183
2277
|
}
|
|
2184
|
-
const
|
|
2278
|
+
const Xr = /* @__PURE__ */ y.createContext(null), Kr = /* @__PURE__ */ y.createContext(null), $t = () => {
|
|
2185
2279
|
var e;
|
|
2186
|
-
return ((e = y.useContext(
|
|
2187
|
-
},
|
|
2280
|
+
return ((e = y.useContext(Xr)) == null ? void 0 : e.id) || null;
|
|
2281
|
+
}, St = () => y.useContext(Kr);
|
|
2188
2282
|
function tt(e) {
|
|
2189
2283
|
return "data-floating-ui-" + e;
|
|
2190
2284
|
}
|
|
2191
|
-
function
|
|
2192
|
-
const t =
|
|
2285
|
+
function Ie(e) {
|
|
2286
|
+
const t = nn(e);
|
|
2193
2287
|
return Q(() => {
|
|
2194
2288
|
t.current = e;
|
|
2195
2289
|
}), t;
|
|
2196
2290
|
}
|
|
2197
|
-
const
|
|
2291
|
+
const _t = /* @__PURE__ */ tt("safe-polygon");
|
|
2198
2292
|
function it(e, t, n) {
|
|
2199
|
-
return n && !
|
|
2293
|
+
return n && !Ge(n) ? 0 : typeof e == "number" ? e : e == null ? void 0 : e[t];
|
|
2200
2294
|
}
|
|
2201
|
-
function
|
|
2295
|
+
function Gr(e, t) {
|
|
2202
2296
|
t === void 0 && (t = {});
|
|
2203
2297
|
const {
|
|
2204
2298
|
open: n,
|
|
2205
|
-
onOpenChange:
|
|
2206
|
-
dataRef:
|
|
2299
|
+
onOpenChange: o,
|
|
2300
|
+
dataRef: r,
|
|
2207
2301
|
events: i,
|
|
2208
2302
|
elements: {
|
|
2209
2303
|
domReference: s,
|
|
@@ -2212,17 +2306,17 @@ function _o(e, t) {
|
|
|
2212
2306
|
refs: a
|
|
2213
2307
|
} = e, {
|
|
2214
2308
|
enabled: c = !0,
|
|
2215
|
-
delay:
|
|
2216
|
-
handleClose:
|
|
2309
|
+
delay: g = 0,
|
|
2310
|
+
handleClose: u = null,
|
|
2217
2311
|
mouseOnly: f = !1,
|
|
2218
|
-
restMs:
|
|
2219
|
-
move:
|
|
2220
|
-
} = t, p =
|
|
2221
|
-
}),
|
|
2312
|
+
restMs: d = 0,
|
|
2313
|
+
move: m = !0
|
|
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(() => {
|
|
2315
|
+
}), A = y.useCallback(() => {
|
|
2222
2316
|
var b;
|
|
2223
|
-
const v = (b =
|
|
2317
|
+
const v = (b = r.current.openEvent) == null ? void 0 : b.type;
|
|
2224
2318
|
return (v == null ? void 0 : v.includes("mouse")) && v !== "mousedown";
|
|
2225
|
-
}, [
|
|
2319
|
+
}, [r]);
|
|
2226
2320
|
y.useEffect(() => {
|
|
2227
2321
|
if (!c)
|
|
2228
2322
|
return;
|
|
@@ -2239,44 +2333,44 @@ function _o(e, t) {
|
|
|
2239
2333
|
if (!c || !h.current || !n)
|
|
2240
2334
|
return;
|
|
2241
2335
|
function b(I) {
|
|
2242
|
-
|
|
2336
|
+
A() && o(!1, I, "hover");
|
|
2243
2337
|
}
|
|
2244
2338
|
const v = me(l).documentElement;
|
|
2245
2339
|
return v.addEventListener("mouseleave", b), () => {
|
|
2246
2340
|
v.removeEventListener("mouseleave", b);
|
|
2247
2341
|
};
|
|
2248
|
-
}, [l, n,
|
|
2249
|
-
const
|
|
2342
|
+
}, [l, n, o, c, h, A]);
|
|
2343
|
+
const L = y.useCallback(function(b, v, I) {
|
|
2250
2344
|
v === void 0 && (v = !0), I === void 0 && (I = "hover");
|
|
2251
2345
|
const R = it(x.current, "close", P.current);
|
|
2252
|
-
R && !k.current ? (clearTimeout(S.current), S.current = setTimeout(() =>
|
|
2253
|
-
}, [x,
|
|
2254
|
-
|
|
2346
|
+
R && !k.current ? (clearTimeout(S.current), S.current = setTimeout(() => o(!1, b, I), R)) : v && (clearTimeout(S.current), o(!1, b, I));
|
|
2347
|
+
}, [x, o]), M = y.useCallback(() => {
|
|
2348
|
+
D.current(), k.current = void 0;
|
|
2255
2349
|
}, []), O = y.useCallback(() => {
|
|
2256
2350
|
if (T.current) {
|
|
2257
2351
|
const b = me(a.floating.current).body;
|
|
2258
|
-
b.style.pointerEvents = "", b.removeAttribute(
|
|
2352
|
+
b.style.pointerEvents = "", b.removeAttribute(_t), T.current = !1;
|
|
2259
2353
|
}
|
|
2260
2354
|
}, [a]);
|
|
2261
2355
|
return y.useEffect(() => {
|
|
2262
2356
|
if (!c)
|
|
2263
2357
|
return;
|
|
2264
2358
|
function b() {
|
|
2265
|
-
return
|
|
2359
|
+
return r.current.openEvent ? ["click", "mousedown"].includes(r.current.openEvent.type) : !1;
|
|
2266
2360
|
}
|
|
2267
2361
|
function v($) {
|
|
2268
|
-
if (clearTimeout(S.current), B.current = !1, f && !
|
|
2362
|
+
if (clearTimeout(S.current), B.current = !1, f && !Ge(P.current) || d > 0 && it(x.current, "open") === 0)
|
|
2269
2363
|
return;
|
|
2270
|
-
const
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
},
|
|
2364
|
+
const F = it(x.current, "open", P.current);
|
|
2365
|
+
F ? S.current = setTimeout(() => {
|
|
2366
|
+
o(!0, $, "hover");
|
|
2367
|
+
}, F) : o(!0, $, "hover");
|
|
2274
2368
|
}
|
|
2275
2369
|
function I($) {
|
|
2276
2370
|
if (b())
|
|
2277
2371
|
return;
|
|
2278
|
-
|
|
2279
|
-
const
|
|
2372
|
+
D.current();
|
|
2373
|
+
const F = me(l);
|
|
2280
2374
|
if (clearTimeout(C.current), h.current) {
|
|
2281
2375
|
n || clearTimeout(S.current), k.current = h.current({
|
|
2282
2376
|
...e,
|
|
@@ -2284,16 +2378,16 @@ function _o(e, t) {
|
|
|
2284
2378
|
x: $.clientX,
|
|
2285
2379
|
y: $.clientY,
|
|
2286
2380
|
onClose() {
|
|
2287
|
-
O(), M(),
|
|
2381
|
+
O(), M(), L($, !0, "safe-polygon");
|
|
2288
2382
|
}
|
|
2289
2383
|
});
|
|
2290
|
-
const
|
|
2291
|
-
|
|
2292
|
-
|
|
2384
|
+
const U = k.current;
|
|
2385
|
+
F.addEventListener("mousemove", U), D.current = () => {
|
|
2386
|
+
F.removeEventListener("mousemove", U);
|
|
2293
2387
|
};
|
|
2294
2388
|
return;
|
|
2295
2389
|
}
|
|
2296
|
-
(P.current === "touch" ? !
|
|
2390
|
+
(P.current === "touch" ? !be(l, $.relatedTarget) : !0) && L($);
|
|
2297
2391
|
}
|
|
2298
2392
|
function R($) {
|
|
2299
2393
|
b() || h.current == null || h.current({
|
|
@@ -2302,31 +2396,31 @@ function _o(e, t) {
|
|
|
2302
2396
|
x: $.clientX,
|
|
2303
2397
|
y: $.clientY,
|
|
2304
2398
|
onClose() {
|
|
2305
|
-
O(), M(),
|
|
2399
|
+
O(), M(), L($);
|
|
2306
2400
|
}
|
|
2307
2401
|
})($);
|
|
2308
2402
|
}
|
|
2309
2403
|
if (N(s)) {
|
|
2310
2404
|
const $ = s;
|
|
2311
|
-
return n && $.addEventListener("mouseleave", R), l == null || l.addEventListener("mouseleave", R),
|
|
2405
|
+
return n && $.addEventListener("mouseleave", R), l == null || l.addEventListener("mouseleave", R), m && $.addEventListener("mousemove", v, {
|
|
2312
2406
|
once: !0
|
|
2313
2407
|
}), $.addEventListener("mouseenter", v), $.addEventListener("mouseleave", I), () => {
|
|
2314
|
-
n && $.removeEventListener("mouseleave", R), l == null || l.removeEventListener("mouseleave", R),
|
|
2408
|
+
n && $.removeEventListener("mouseleave", R), l == null || l.removeEventListener("mouseleave", R), m && $.removeEventListener("mousemove", v), $.removeEventListener("mouseenter", v), $.removeEventListener("mouseleave", I);
|
|
2315
2409
|
};
|
|
2316
2410
|
}
|
|
2317
|
-
}, [s, l, c, e, f,
|
|
2411
|
+
}, [s, l, c, e, f, d, m, L, M, O, o, n, p, x, h, r]), Q(() => {
|
|
2318
2412
|
var b;
|
|
2319
|
-
if (c && n && (b = h.current) != null && b.__options.blockPointerEvents &&
|
|
2413
|
+
if (c && n && (b = h.current) != null && b.__options.blockPointerEvents && A()) {
|
|
2320
2414
|
const I = me(l).body;
|
|
2321
|
-
if (I.setAttribute(
|
|
2415
|
+
if (I.setAttribute(_t, ""), I.style.pointerEvents = "none", T.current = !0, N(s) && l) {
|
|
2322
2416
|
var v;
|
|
2323
|
-
const R = s, $ = p == null || (v = p.nodesRef.current.find((
|
|
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;
|
|
2324
2418
|
return $ && ($.style.pointerEvents = ""), R.style.pointerEvents = "auto", l.style.pointerEvents = "auto", () => {
|
|
2325
2419
|
R.style.pointerEvents = "", l.style.pointerEvents = "";
|
|
2326
2420
|
};
|
|
2327
2421
|
}
|
|
2328
2422
|
}
|
|
2329
|
-
}, [c, n, w, l, s, p, h,
|
|
2423
|
+
}, [c, n, w, l, s, p, h, A]), Q(() => {
|
|
2330
2424
|
n || (P.current = void 0, M(), O());
|
|
2331
2425
|
}, [n, M, O]), y.useEffect(() => () => {
|
|
2332
2426
|
M(), clearTimeout(S.current), clearTimeout(C.current), O();
|
|
@@ -2341,9 +2435,9 @@ function _o(e, t) {
|
|
|
2341
2435
|
onPointerDown: b,
|
|
2342
2436
|
onPointerEnter: b,
|
|
2343
2437
|
onMouseMove(v) {
|
|
2344
|
-
n ||
|
|
2345
|
-
B.current ||
|
|
2346
|
-
},
|
|
2438
|
+
n || d === 0 || (clearTimeout(C.current), C.current = setTimeout(() => {
|
|
2439
|
+
B.current || o(!0, v.nativeEvent, "hover");
|
|
2440
|
+
}, d));
|
|
2347
2441
|
}
|
|
2348
2442
|
},
|
|
2349
2443
|
floating: {
|
|
@@ -2351,28 +2445,28 @@ function _o(e, t) {
|
|
|
2351
2445
|
clearTimeout(S.current);
|
|
2352
2446
|
},
|
|
2353
2447
|
onMouseLeave(v) {
|
|
2354
|
-
|
|
2448
|
+
L(v.nativeEvent, !1);
|
|
2355
2449
|
}
|
|
2356
2450
|
}
|
|
2357
2451
|
};
|
|
2358
|
-
}, [c,
|
|
2452
|
+
}, [c, d, n, o, L]);
|
|
2359
2453
|
}
|
|
2360
2454
|
function Ke(e, t) {
|
|
2361
|
-
let n = e.filter((
|
|
2455
|
+
let n = e.filter((r) => {
|
|
2362
2456
|
var i;
|
|
2363
|
-
return
|
|
2364
|
-
}),
|
|
2365
|
-
for (;
|
|
2366
|
-
|
|
2457
|
+
return r.parentId === t && ((i = r.context) == null ? void 0 : i.open);
|
|
2458
|
+
}), o = n;
|
|
2459
|
+
for (; o.length; )
|
|
2460
|
+
o = e.filter((r) => {
|
|
2367
2461
|
var i;
|
|
2368
|
-
return (i =
|
|
2462
|
+
return (i = o) == null ? void 0 : i.some((s) => {
|
|
2369
2463
|
var l;
|
|
2370
|
-
return
|
|
2464
|
+
return r.parentId === s.id && ((l = r.context) == null ? void 0 : l.open);
|
|
2371
2465
|
});
|
|
2372
|
-
}), n = n.concat(
|
|
2466
|
+
}), n = n.concat(o);
|
|
2373
2467
|
return n;
|
|
2374
2468
|
}
|
|
2375
|
-
const
|
|
2469
|
+
const Tn = () => ({
|
|
2376
2470
|
getShadowRoot: !0,
|
|
2377
2471
|
displayCheck: (
|
|
2378
2472
|
// JSDOM does not support the `tabbable` library. To solve this we can
|
|
@@ -2381,34 +2475,34 @@ const En = () => ({
|
|
|
2381
2475
|
typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
|
|
2382
2476
|
)
|
|
2383
2477
|
});
|
|
2384
|
-
function
|
|
2385
|
-
const n =
|
|
2478
|
+
function In(e, t) {
|
|
2479
|
+
const n = kn(e, Tn());
|
|
2386
2480
|
t === "prev" && n.reverse();
|
|
2387
|
-
const
|
|
2388
|
-
return n.slice(
|
|
2481
|
+
const o = n.indexOf(Do(me(e)));
|
|
2482
|
+
return n.slice(o + 1)[0];
|
|
2389
2483
|
}
|
|
2390
|
-
function
|
|
2391
|
-
return
|
|
2484
|
+
function Ur() {
|
|
2485
|
+
return In(document.body, "next");
|
|
2392
2486
|
}
|
|
2393
|
-
function
|
|
2394
|
-
return
|
|
2487
|
+
function qr() {
|
|
2488
|
+
return In(document.body, "prev");
|
|
2395
2489
|
}
|
|
2396
2490
|
function st(e, t) {
|
|
2397
|
-
const n = t || e.currentTarget,
|
|
2398
|
-
return !
|
|
2491
|
+
const n = t || e.currentTarget, o = e.relatedTarget;
|
|
2492
|
+
return !o || !be(n, o);
|
|
2399
2493
|
}
|
|
2400
|
-
function
|
|
2401
|
-
|
|
2494
|
+
function Zr(e) {
|
|
2495
|
+
kn(e, Tn()).forEach((n) => {
|
|
2402
2496
|
n.dataset.tabindex = n.getAttribute("tabindex") || "", n.setAttribute("tabindex", "-1");
|
|
2403
2497
|
});
|
|
2404
2498
|
}
|
|
2405
|
-
function
|
|
2499
|
+
function Jr(e) {
|
|
2406
2500
|
e.querySelectorAll("[data-tabindex]").forEach((n) => {
|
|
2407
|
-
const
|
|
2408
|
-
delete n.dataset.tabindex,
|
|
2501
|
+
const o = n.dataset.tabindex;
|
|
2502
|
+
delete n.dataset.tabindex, o ? n.setAttribute("tabindex", o) : n.removeAttribute("tabindex");
|
|
2409
2503
|
});
|
|
2410
2504
|
}
|
|
2411
|
-
const
|
|
2505
|
+
const Pn = {
|
|
2412
2506
|
border: 0,
|
|
2413
2507
|
clip: "rect(0 0 0 0)",
|
|
2414
2508
|
height: "1px",
|
|
@@ -2421,44 +2515,44 @@ const kn = {
|
|
|
2421
2515
|
top: 0,
|
|
2422
2516
|
left: 0
|
|
2423
2517
|
};
|
|
2424
|
-
let
|
|
2425
|
-
function
|
|
2426
|
-
e.key === "Tab" && (e.target, clearTimeout(
|
|
2427
|
-
}
|
|
2428
|
-
const
|
|
2429
|
-
const [
|
|
2430
|
-
Q(() => (
|
|
2431
|
-
document.removeEventListener("keydown",
|
|
2518
|
+
let Qr;
|
|
2519
|
+
function Yt(e) {
|
|
2520
|
+
e.key === "Tab" && (e.target, clearTimeout(Qr));
|
|
2521
|
+
}
|
|
2522
|
+
const Xt = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
2523
|
+
const [o, r] = y.useState();
|
|
2524
|
+
Q(() => (Mo() && r("button"), document.addEventListener("keydown", Yt), () => {
|
|
2525
|
+
document.removeEventListener("keydown", Yt);
|
|
2432
2526
|
}), []);
|
|
2433
2527
|
const i = {
|
|
2434
2528
|
ref: n,
|
|
2435
2529
|
tabIndex: 0,
|
|
2436
2530
|
// Role is only for VoiceOver
|
|
2437
|
-
role:
|
|
2438
|
-
"aria-hidden":
|
|
2531
|
+
role: o,
|
|
2532
|
+
"aria-hidden": o ? void 0 : !0,
|
|
2439
2533
|
[tt("focus-guard")]: "",
|
|
2440
|
-
style:
|
|
2534
|
+
style: Pn
|
|
2441
2535
|
};
|
|
2442
|
-
return /* @__PURE__ */ y.createElement("span",
|
|
2443
|
-
}),
|
|
2444
|
-
function
|
|
2536
|
+
return /* @__PURE__ */ y.createElement("span", gt({}, t, i));
|
|
2537
|
+
}), Bn = /* @__PURE__ */ y.createContext(null), Kt = /* @__PURE__ */ tt("portal");
|
|
2538
|
+
function ei(e) {
|
|
2445
2539
|
let {
|
|
2446
2540
|
id: t,
|
|
2447
2541
|
root: n
|
|
2448
2542
|
} = e === void 0 ? {} : e;
|
|
2449
|
-
const [
|
|
2543
|
+
const [o, r] = y.useState(null), i = wt(), s = ni(), l = y.useRef(null);
|
|
2450
2544
|
return Q(() => () => {
|
|
2451
|
-
|
|
2545
|
+
o == null || o.remove(), queueMicrotask(() => {
|
|
2452
2546
|
l.current = null;
|
|
2453
2547
|
});
|
|
2454
|
-
}, [
|
|
2548
|
+
}, [o]), Q(() => {
|
|
2455
2549
|
if (l.current)
|
|
2456
2550
|
return;
|
|
2457
2551
|
const a = t ? document.getElementById(t) : null;
|
|
2458
2552
|
if (!a)
|
|
2459
2553
|
return;
|
|
2460
2554
|
const c = document.createElement("div");
|
|
2461
|
-
c.id = i, c.setAttribute(Kt, ""), a.appendChild(c), l.current = c,
|
|
2555
|
+
c.id = i, c.setAttribute(Kt, ""), a.appendChild(c), l.current = c, r(c);
|
|
2462
2556
|
}, [t, i]), Q(() => {
|
|
2463
2557
|
if (l.current)
|
|
2464
2558
|
return;
|
|
@@ -2466,88 +2560,88 @@ function qo(e) {
|
|
|
2466
2560
|
a && !N(a) && (a = a.current), a = a || document.body;
|
|
2467
2561
|
let c = null;
|
|
2468
2562
|
t && (c = document.createElement("div"), c.id = t, a.appendChild(c));
|
|
2469
|
-
const
|
|
2470
|
-
|
|
2471
|
-
}, [t, n, i, s]),
|
|
2563
|
+
const g = document.createElement("div");
|
|
2564
|
+
g.id = i, g.setAttribute(Kt, ""), a = c || a, a.appendChild(g), l.current = g, r(g);
|
|
2565
|
+
}, [t, n, i, s]), o;
|
|
2472
2566
|
}
|
|
2473
|
-
function
|
|
2567
|
+
function ti(e) {
|
|
2474
2568
|
let {
|
|
2475
2569
|
children: t,
|
|
2476
2570
|
id: n,
|
|
2477
|
-
root:
|
|
2478
|
-
preserveTabOrder:
|
|
2571
|
+
root: o = null,
|
|
2572
|
+
preserveTabOrder: r = !0
|
|
2479
2573
|
} = e;
|
|
2480
|
-
const i =
|
|
2574
|
+
const i = ei({
|
|
2481
2575
|
id: n,
|
|
2482
|
-
root:
|
|
2483
|
-
}), [s, l] = y.useState(null), a = y.useRef(null), c = y.useRef(null),
|
|
2576
|
+
root: o
|
|
2577
|
+
}), [s, l] = y.useState(null), a = y.useRef(null), c = y.useRef(null), g = y.useRef(null), u = y.useRef(null), f = (
|
|
2484
2578
|
// The FocusManager and therefore floating element are currently open/
|
|
2485
2579
|
// rendered.
|
|
2486
2580
|
!!s && // Guards are only for non-modal focus management.
|
|
2487
2581
|
!s.modal && // Don't render if unmount is transitioning.
|
|
2488
|
-
s.open &&
|
|
2582
|
+
s.open && r && !!(o || i)
|
|
2489
2583
|
);
|
|
2490
2584
|
return y.useEffect(() => {
|
|
2491
|
-
if (!i || !
|
|
2585
|
+
if (!i || !r || s != null && s.modal)
|
|
2492
2586
|
return;
|
|
2493
|
-
function
|
|
2494
|
-
i && st(
|
|
2587
|
+
function d(m) {
|
|
2588
|
+
i && st(m) && (m.type === "focusin" ? Jr : Zr)(i);
|
|
2495
2589
|
}
|
|
2496
|
-
return i.addEventListener("focusin",
|
|
2497
|
-
i.removeEventListener("focusin",
|
|
2590
|
+
return i.addEventListener("focusin", d, !0), i.addEventListener("focusout", d, !0), () => {
|
|
2591
|
+
i.removeEventListener("focusin", d, !0), i.removeEventListener("focusout", d, !0);
|
|
2498
2592
|
};
|
|
2499
|
-
}, [i,
|
|
2593
|
+
}, [i, r, s == null ? void 0 : s.modal]), /* @__PURE__ */ y.createElement(Bn.Provider, {
|
|
2500
2594
|
value: y.useMemo(() => ({
|
|
2501
|
-
preserveTabOrder:
|
|
2595
|
+
preserveTabOrder: r,
|
|
2502
2596
|
beforeOutsideRef: a,
|
|
2503
2597
|
afterOutsideRef: c,
|
|
2504
|
-
beforeInsideRef:
|
|
2505
|
-
afterInsideRef:
|
|
2598
|
+
beforeInsideRef: g,
|
|
2599
|
+
afterInsideRef: u,
|
|
2506
2600
|
portalNode: i,
|
|
2507
2601
|
setFocusManagerState: l
|
|
2508
|
-
}), [
|
|
2509
|
-
}, f && i && /* @__PURE__ */ y.createElement(
|
|
2602
|
+
}), [r, i])
|
|
2603
|
+
}, f && i && /* @__PURE__ */ y.createElement(Xt, {
|
|
2510
2604
|
"data-type": "outside",
|
|
2511
2605
|
ref: a,
|
|
2512
|
-
onFocus: (
|
|
2513
|
-
if (st(
|
|
2514
|
-
var
|
|
2515
|
-
(
|
|
2606
|
+
onFocus: (d) => {
|
|
2607
|
+
if (st(d, i)) {
|
|
2608
|
+
var m;
|
|
2609
|
+
(m = g.current) == null || m.focus();
|
|
2516
2610
|
} else {
|
|
2517
|
-
const p =
|
|
2611
|
+
const p = qr() || (s == null ? void 0 : s.refs.domReference.current);
|
|
2518
2612
|
p == null || p.focus();
|
|
2519
2613
|
}
|
|
2520
2614
|
}
|
|
2521
2615
|
}), f && i && /* @__PURE__ */ y.createElement("span", {
|
|
2522
2616
|
"aria-owns": i.id,
|
|
2523
|
-
style:
|
|
2524
|
-
}), i && /* @__PURE__ */ rn(t, i), f && i && /* @__PURE__ */ y.createElement(
|
|
2617
|
+
style: Pn
|
|
2618
|
+
}), i && /* @__PURE__ */ rn(t, i), f && i && /* @__PURE__ */ y.createElement(Xt, {
|
|
2525
2619
|
"data-type": "outside",
|
|
2526
2620
|
ref: c,
|
|
2527
|
-
onFocus: (
|
|
2528
|
-
if (st(
|
|
2529
|
-
var
|
|
2530
|
-
(
|
|
2621
|
+
onFocus: (d) => {
|
|
2622
|
+
if (st(d, i)) {
|
|
2623
|
+
var m;
|
|
2624
|
+
(m = u.current) == null || m.focus();
|
|
2531
2625
|
} else {
|
|
2532
|
-
const p =
|
|
2533
|
-
p == null || p.focus(), s != null && s.closeOnFocusOut && (s == null || s.onOpenChange(!1,
|
|
2626
|
+
const p = Ur() || (s == null ? void 0 : s.refs.domReference.current);
|
|
2627
|
+
p == null || p.focus(), s != null && s.closeOnFocusOut && (s == null || s.onOpenChange(!1, d.nativeEvent));
|
|
2534
2628
|
}
|
|
2535
2629
|
}
|
|
2536
2630
|
}));
|
|
2537
2631
|
}
|
|
2538
|
-
const
|
|
2539
|
-
function
|
|
2632
|
+
const ni = () => y.useContext(Bn);
|
|
2633
|
+
function Gt(e) {
|
|
2540
2634
|
return Z(e.target) && e.target.tagName === "BUTTON";
|
|
2541
2635
|
}
|
|
2542
|
-
function
|
|
2543
|
-
return
|
|
2636
|
+
function Ut(e) {
|
|
2637
|
+
return Wo(e);
|
|
2544
2638
|
}
|
|
2545
|
-
function
|
|
2639
|
+
function oi(e, t) {
|
|
2546
2640
|
t === void 0 && (t = {});
|
|
2547
2641
|
const {
|
|
2548
2642
|
open: n,
|
|
2549
|
-
onOpenChange:
|
|
2550
|
-
dataRef:
|
|
2643
|
+
onOpenChange: o,
|
|
2644
|
+
dataRef: r,
|
|
2551
2645
|
elements: {
|
|
2552
2646
|
domReference: i
|
|
2553
2647
|
}
|
|
@@ -2556,53 +2650,53 @@ function Qo(e, t) {
|
|
|
2556
2650
|
event: l = "click",
|
|
2557
2651
|
toggle: a = !0,
|
|
2558
2652
|
ignoreMouse: c = !1,
|
|
2559
|
-
keyboardHandlers:
|
|
2560
|
-
} = t,
|
|
2653
|
+
keyboardHandlers: g = !0
|
|
2654
|
+
} = t, u = y.useRef(), f = y.useRef(!1);
|
|
2561
2655
|
return y.useMemo(() => s ? {
|
|
2562
2656
|
reference: {
|
|
2563
|
-
onPointerDown(
|
|
2564
|
-
|
|
2657
|
+
onPointerDown(d) {
|
|
2658
|
+
u.current = d.pointerType;
|
|
2565
2659
|
},
|
|
2566
|
-
onMouseDown(
|
|
2567
|
-
|
|
2660
|
+
onMouseDown(d) {
|
|
2661
|
+
d.button === 0 && (Ge(u.current, !0) && c || l !== "click" && (n && a && (!r.current.openEvent || r.current.openEvent.type === "mousedown") ? o(!1, d.nativeEvent, "click") : (d.preventDefault(), o(!0, d.nativeEvent, "click"))));
|
|
2568
2662
|
},
|
|
2569
|
-
onClick(
|
|
2570
|
-
if (l === "mousedown" &&
|
|
2571
|
-
|
|
2663
|
+
onClick(d) {
|
|
2664
|
+
if (l === "mousedown" && u.current) {
|
|
2665
|
+
u.current = void 0;
|
|
2572
2666
|
return;
|
|
2573
2667
|
}
|
|
2574
|
-
|
|
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"));
|
|
2575
2669
|
},
|
|
2576
|
-
onKeyDown(
|
|
2577
|
-
|
|
2670
|
+
onKeyDown(d) {
|
|
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"));
|
|
2578
2672
|
},
|
|
2579
|
-
onKeyUp(
|
|
2580
|
-
|
|
2673
|
+
onKeyUp(d) {
|
|
2674
|
+
d.defaultPrevented || !g || Gt(d) || Ut(i) || d.key === " " && f.current && (f.current = !1, o(!(n && a), d.nativeEvent, "click"));
|
|
2581
2675
|
}
|
|
2582
2676
|
}
|
|
2583
|
-
} : {}, [s,
|
|
2677
|
+
} : {}, [s, r, l, c, g, i, a, n, o]);
|
|
2584
2678
|
}
|
|
2585
|
-
const
|
|
2679
|
+
const ri = {
|
|
2586
2680
|
pointerdown: "onPointerDown",
|
|
2587
2681
|
mousedown: "onMouseDown",
|
|
2588
2682
|
click: "onClick"
|
|
2589
|
-
},
|
|
2683
|
+
}, ii = {
|
|
2590
2684
|
pointerdown: "onPointerDownCapture",
|
|
2591
2685
|
mousedown: "onMouseDownCapture",
|
|
2592
2686
|
click: "onClickCapture"
|
|
2593
|
-
},
|
|
2687
|
+
}, qt = (e) => {
|
|
2594
2688
|
var t, n;
|
|
2595
2689
|
return {
|
|
2596
2690
|
escapeKey: typeof e == "boolean" ? e : (t = e == null ? void 0 : e.escapeKey) != null ? t : !1,
|
|
2597
2691
|
outsidePress: typeof e == "boolean" ? e : (n = e == null ? void 0 : e.outsidePress) != null ? n : !0
|
|
2598
2692
|
};
|
|
2599
2693
|
};
|
|
2600
|
-
function
|
|
2694
|
+
function si(e, t) {
|
|
2601
2695
|
t === void 0 && (t = {});
|
|
2602
2696
|
const {
|
|
2603
2697
|
open: n,
|
|
2604
|
-
onOpenChange:
|
|
2605
|
-
nodeId:
|
|
2698
|
+
onOpenChange: o,
|
|
2699
|
+
nodeId: r,
|
|
2606
2700
|
elements: {
|
|
2607
2701
|
reference: i,
|
|
2608
2702
|
domReference: s,
|
|
@@ -2611,149 +2705,149 @@ function ni(e, t) {
|
|
|
2611
2705
|
dataRef: a
|
|
2612
2706
|
} = e, {
|
|
2613
2707
|
enabled: c = !0,
|
|
2614
|
-
escapeKey:
|
|
2615
|
-
outsidePress:
|
|
2708
|
+
escapeKey: g = !0,
|
|
2709
|
+
outsidePress: u = !0,
|
|
2616
2710
|
outsidePressEvent: f = "pointerdown",
|
|
2617
|
-
referencePress:
|
|
2618
|
-
referencePressEvent:
|
|
2711
|
+
referencePress: d = !1,
|
|
2712
|
+
referencePressEvent: m = "pointerdown",
|
|
2619
2713
|
ancestorScroll: p = !1,
|
|
2620
2714
|
bubbles: w,
|
|
2621
2715
|
capture: h
|
|
2622
|
-
} = t, x =
|
|
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), {
|
|
2623
2717
|
escapeKey: B,
|
|
2624
2718
|
outsidePress: T
|
|
2625
|
-
} =
|
|
2626
|
-
escapeKey:
|
|
2627
|
-
outsidePress:
|
|
2628
|
-
} =
|
|
2629
|
-
if (!n || !c || !
|
|
2719
|
+
} = qt(w), {
|
|
2720
|
+
escapeKey: D,
|
|
2721
|
+
outsidePress: A
|
|
2722
|
+
} = qt(h), L = ke((v) => {
|
|
2723
|
+
if (!n || !c || !g || v.key !== "Escape")
|
|
2630
2724
|
return;
|
|
2631
|
-
const I = x ? Ke(x.nodesRef.current,
|
|
2725
|
+
const I = x ? Ke(x.nodesRef.current, r) : [];
|
|
2632
2726
|
if (!B && (v.stopPropagation(), I.length > 0)) {
|
|
2633
2727
|
let R = !0;
|
|
2634
2728
|
if (I.forEach(($) => {
|
|
2635
|
-
var
|
|
2636
|
-
if ((
|
|
2729
|
+
var F;
|
|
2730
|
+
if ((F = $.context) != null && F.open && !$.context.dataRef.current.__escapeKeyBubbles) {
|
|
2637
2731
|
R = !1;
|
|
2638
2732
|
return;
|
|
2639
2733
|
}
|
|
2640
2734
|
}), !R)
|
|
2641
2735
|
return;
|
|
2642
2736
|
}
|
|
2643
|
-
|
|
2644
|
-
}), M =
|
|
2737
|
+
o(!1, Lo(v) ? v.nativeEvent : v, "escape-key");
|
|
2738
|
+
}), M = ke((v) => {
|
|
2645
2739
|
var I;
|
|
2646
2740
|
const R = () => {
|
|
2647
2741
|
var $;
|
|
2648
|
-
|
|
2742
|
+
L(v), ($ = Ce(v)) == null || $.removeEventListener("keydown", R);
|
|
2649
2743
|
};
|
|
2650
|
-
(I =
|
|
2651
|
-
}), O =
|
|
2744
|
+
(I = Ce(v)) == null || I.addEventListener("keydown", R);
|
|
2745
|
+
}), O = ke((v) => {
|
|
2652
2746
|
const I = k.current;
|
|
2653
2747
|
k.current = !1;
|
|
2654
2748
|
const R = C.current;
|
|
2655
2749
|
if (C.current = !1, f === "click" && R || I || typeof S == "function" && !S(v))
|
|
2656
2750
|
return;
|
|
2657
|
-
const $ =
|
|
2658
|
-
let
|
|
2659
|
-
for (;
|
|
2660
|
-
const V =
|
|
2661
|
-
if (
|
|
2751
|
+
const $ = Ce(v), F = "[" + tt("inert") + "]", K = me(l).querySelectorAll(F);
|
|
2752
|
+
let U = N($) ? $ : null;
|
|
2753
|
+
for (; U && !Ae(U); ) {
|
|
2754
|
+
const V = ye(U);
|
|
2755
|
+
if (Ae(V) || !N(V))
|
|
2662
2756
|
break;
|
|
2663
|
-
|
|
2757
|
+
U = V;
|
|
2664
2758
|
}
|
|
2665
|
-
if (K.length && N($) && !
|
|
2666
|
-
!
|
|
2759
|
+
if (K.length && N($) && !Fo($) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
2760
|
+
!be($, l) && // If the target root element contains none of the markers, then the
|
|
2667
2761
|
// element was injected after the floating element rendered.
|
|
2668
|
-
Array.from(K).every((V) => !
|
|
2762
|
+
Array.from(K).every((V) => !be(U, V)))
|
|
2669
2763
|
return;
|
|
2670
2764
|
if (Z($) && l) {
|
|
2671
|
-
const V = $.clientWidth > 0 && $.scrollWidth > $.clientWidth,
|
|
2672
|
-
let
|
|
2673
|
-
if (
|
|
2765
|
+
const V = $.clientWidth > 0 && $.scrollWidth > $.clientWidth, G = $.clientHeight > 0 && $.scrollHeight > $.clientHeight;
|
|
2766
|
+
let ce = G && v.offsetX > $.clientWidth;
|
|
2767
|
+
if (G && J($).direction === "rtl" && (ce = v.offsetX <= $.offsetWidth - $.clientWidth), ce || V && v.offsetY > $.clientHeight)
|
|
2674
2768
|
return;
|
|
2675
2769
|
}
|
|
2676
|
-
const
|
|
2677
|
-
var
|
|
2678
|
-
return
|
|
2770
|
+
const we = x && Ke(x.nodesRef.current, r).some((V) => {
|
|
2771
|
+
var G;
|
|
2772
|
+
return ot(v, (G = V.context) == null ? void 0 : G.elements.floating);
|
|
2679
2773
|
});
|
|
2680
|
-
if (
|
|
2774
|
+
if (ot(v, l) || ot(v, s) || we)
|
|
2681
2775
|
return;
|
|
2682
|
-
const
|
|
2683
|
-
if (
|
|
2776
|
+
const ae = x ? Ke(x.nodesRef.current, r) : [];
|
|
2777
|
+
if (ae.length > 0) {
|
|
2684
2778
|
let V = !0;
|
|
2685
|
-
if (
|
|
2686
|
-
var
|
|
2687
|
-
if ((
|
|
2779
|
+
if (ae.forEach((G) => {
|
|
2780
|
+
var ce;
|
|
2781
|
+
if ((ce = G.context) != null && ce.open && !G.context.dataRef.current.__outsidePressBubbles) {
|
|
2688
2782
|
V = !1;
|
|
2689
2783
|
return;
|
|
2690
2784
|
}
|
|
2691
2785
|
}), !V)
|
|
2692
2786
|
return;
|
|
2693
2787
|
}
|
|
2694
|
-
|
|
2695
|
-
}), b =
|
|
2788
|
+
o(!1, v, "outside-press");
|
|
2789
|
+
}), b = ke((v) => {
|
|
2696
2790
|
var I;
|
|
2697
2791
|
const R = () => {
|
|
2698
2792
|
var $;
|
|
2699
|
-
O(v), ($ =
|
|
2793
|
+
O(v), ($ = Ce(v)) == null || $.removeEventListener(f, R);
|
|
2700
2794
|
};
|
|
2701
|
-
(I =
|
|
2795
|
+
(I = Ce(v)) == null || I.addEventListener(f, R);
|
|
2702
2796
|
});
|
|
2703
2797
|
return y.useEffect(() => {
|
|
2704
2798
|
if (!n || !c)
|
|
2705
2799
|
return;
|
|
2706
2800
|
a.current.__escapeKeyBubbles = B, a.current.__outsidePressBubbles = T;
|
|
2707
2801
|
function v($) {
|
|
2708
|
-
|
|
2802
|
+
o(!1, $, "ancestor-scroll");
|
|
2709
2803
|
}
|
|
2710
2804
|
const I = me(l);
|
|
2711
|
-
|
|
2805
|
+
g && I.addEventListener("keydown", D ? M : L, D), S && I.addEventListener(f, A ? b : O, A);
|
|
2712
2806
|
let R = [];
|
|
2713
|
-
return p && (N(s) && (R =
|
|
2714
|
-
var
|
|
2715
|
-
return $ !== ((
|
|
2807
|
+
return p && (N(s) && (R = ie(s)), N(l) && (R = R.concat(ie(l))), !N(i) && i && i.contextElement && (R = R.concat(ie(i.contextElement)))), R = R.filter(($) => {
|
|
2808
|
+
var F;
|
|
2809
|
+
return $ !== ((F = I.defaultView) == null ? void 0 : F.visualViewport);
|
|
2716
2810
|
}), R.forEach(($) => {
|
|
2717
2811
|
$.addEventListener("scroll", v, {
|
|
2718
2812
|
passive: !0
|
|
2719
2813
|
});
|
|
2720
2814
|
}), () => {
|
|
2721
|
-
|
|
2815
|
+
g && I.removeEventListener("keydown", D ? M : L, D), S && I.removeEventListener(f, A ? b : O, A), R.forEach(($) => {
|
|
2722
2816
|
$.removeEventListener("scroll", v);
|
|
2723
2817
|
});
|
|
2724
2818
|
};
|
|
2725
|
-
}, [a, l, s, i,
|
|
2819
|
+
}, [a, l, s, i, g, S, f, n, o, p, c, B, T, L, D, M, O, A, b]), y.useEffect(() => {
|
|
2726
2820
|
k.current = !1;
|
|
2727
2821
|
}, [S, f]), y.useMemo(() => c ? {
|
|
2728
2822
|
reference: {
|
|
2729
|
-
onKeyDown:
|
|
2730
|
-
[
|
|
2731
|
-
|
|
2823
|
+
onKeyDown: L,
|
|
2824
|
+
[ri[m]]: (v) => {
|
|
2825
|
+
d && o(!1, v.nativeEvent, "reference-press");
|
|
2732
2826
|
}
|
|
2733
2827
|
},
|
|
2734
2828
|
floating: {
|
|
2735
|
-
onKeyDown:
|
|
2829
|
+
onKeyDown: L,
|
|
2736
2830
|
onMouseDown() {
|
|
2737
2831
|
C.current = !0;
|
|
2738
2832
|
},
|
|
2739
2833
|
onMouseUp() {
|
|
2740
2834
|
C.current = !0;
|
|
2741
2835
|
},
|
|
2742
|
-
[
|
|
2836
|
+
[ii[f]]: () => {
|
|
2743
2837
|
k.current = !0;
|
|
2744
2838
|
}
|
|
2745
2839
|
}
|
|
2746
|
-
} : {}, [c,
|
|
2840
|
+
} : {}, [c, d, f, m, o, L]);
|
|
2747
2841
|
}
|
|
2748
2842
|
let mt;
|
|
2749
2843
|
process.env.NODE_ENV !== "production" && (mt = /* @__PURE__ */ new Set());
|
|
2750
|
-
function
|
|
2844
|
+
function li(e) {
|
|
2751
2845
|
var t;
|
|
2752
2846
|
e === void 0 && (e = {});
|
|
2753
2847
|
const {
|
|
2754
2848
|
open: n = !1,
|
|
2755
|
-
onOpenChange:
|
|
2756
|
-
nodeId:
|
|
2849
|
+
onOpenChange: o,
|
|
2850
|
+
nodeId: r
|
|
2757
2851
|
} = e;
|
|
2758
2852
|
if (process.env.NODE_ENV !== "production") {
|
|
2759
2853
|
var i;
|
|
@@ -2766,61 +2860,61 @@ function ri(e) {
|
|
|
2766
2860
|
}
|
|
2767
2861
|
}
|
|
2768
2862
|
}
|
|
2769
|
-
const [a, c] = y.useState(null),
|
|
2770
|
-
T && (w.current.openEvent =
|
|
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) => {
|
|
2864
|
+
T && (w.current.openEvent = D), h.emit("openchange", {
|
|
2771
2865
|
open: T,
|
|
2772
|
-
event:
|
|
2773
|
-
reason:
|
|
2774
|
-
nested:
|
|
2775
|
-
}),
|
|
2776
|
-
}), p = y.useRef(null), w = y.useRef({}), h = y.useState(() =>
|
|
2777
|
-
const
|
|
2866
|
+
event: D,
|
|
2867
|
+
reason: A,
|
|
2868
|
+
nested: d
|
|
2869
|
+
}), o == null || o(T, D, A);
|
|
2870
|
+
}), p = y.useRef(null), w = y.useRef({}), h = y.useState(() => Yr())[0], x = wt(), P = y.useCallback((T) => {
|
|
2871
|
+
const D = N(T) ? {
|
|
2778
2872
|
getBoundingClientRect: () => T.getBoundingClientRect(),
|
|
2779
2873
|
contextElement: T
|
|
2780
2874
|
} : T;
|
|
2781
|
-
|
|
2782
|
-
}, [
|
|
2783
|
-
(N(T) || T === null) && (p.current = T, c(T)), (N(
|
|
2875
|
+
u.refs.setReference(D);
|
|
2876
|
+
}, [u.refs]), S = y.useCallback((T) => {
|
|
2877
|
+
(N(T) || T === null) && (p.current = T, c(T)), (N(u.refs.reference.current) || u.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
2784
2878
|
// `null` to support `positionReference` + an unstable `reference`
|
|
2785
2879
|
// callback ref.
|
|
2786
|
-
T !== null && !N(T)) &&
|
|
2787
|
-
}, [
|
|
2788
|
-
...
|
|
2880
|
+
T !== null && !N(T)) && u.refs.setReference(T);
|
|
2881
|
+
}, [u.refs]), k = y.useMemo(() => ({
|
|
2882
|
+
...u.refs,
|
|
2789
2883
|
setReference: S,
|
|
2790
2884
|
setPositionReference: P,
|
|
2791
2885
|
domReference: p
|
|
2792
|
-
}), [
|
|
2793
|
-
...
|
|
2794
|
-
domReference:
|
|
2795
|
-
}), [
|
|
2796
|
-
...
|
|
2886
|
+
}), [u.refs, S, P]), C = y.useMemo(() => ({
|
|
2887
|
+
...u.elements,
|
|
2888
|
+
domReference: g
|
|
2889
|
+
}), [u.elements, g]), B = y.useMemo(() => ({
|
|
2890
|
+
...u,
|
|
2797
2891
|
refs: k,
|
|
2798
2892
|
elements: C,
|
|
2799
2893
|
dataRef: w,
|
|
2800
|
-
nodeId:
|
|
2894
|
+
nodeId: r,
|
|
2801
2895
|
floatingId: x,
|
|
2802
2896
|
events: h,
|
|
2803
2897
|
open: n,
|
|
2804
|
-
onOpenChange:
|
|
2805
|
-
}), [
|
|
2898
|
+
onOpenChange: m
|
|
2899
|
+
}), [u, r, x, h, n, m, k, C]);
|
|
2806
2900
|
return Q(() => {
|
|
2807
|
-
const T = f == null ? void 0 : f.nodesRef.current.find((
|
|
2901
|
+
const T = f == null ? void 0 : f.nodesRef.current.find((D) => D.id === r);
|
|
2808
2902
|
T && (T.context = B);
|
|
2809
2903
|
}), y.useMemo(() => ({
|
|
2810
|
-
...
|
|
2904
|
+
...u,
|
|
2811
2905
|
context: B,
|
|
2812
2906
|
refs: k,
|
|
2813
2907
|
elements: C
|
|
2814
|
-
}), [
|
|
2908
|
+
}), [u, k, C, B]);
|
|
2815
2909
|
}
|
|
2816
|
-
const
|
|
2910
|
+
const Zt = "active", Jt = "selected";
|
|
2817
2911
|
function lt(e, t, n) {
|
|
2818
|
-
const
|
|
2912
|
+
const o = /* @__PURE__ */ new Map(), r = n === "item";
|
|
2819
2913
|
let i = e;
|
|
2820
|
-
if (
|
|
2914
|
+
if (r && e) {
|
|
2821
2915
|
const {
|
|
2822
|
-
[
|
|
2823
|
-
[
|
|
2916
|
+
[Zt]: s,
|
|
2917
|
+
[Jt]: l,
|
|
2824
2918
|
...a
|
|
2825
2919
|
} = e;
|
|
2826
2920
|
i = a;
|
|
@@ -2834,25 +2928,25 @@ function lt(e, t, n) {
|
|
|
2834
2928
|
const l = s ? s[n] : null;
|
|
2835
2929
|
return typeof l == "function" ? e ? l(e) : null : l;
|
|
2836
2930
|
}).concat(e).reduce((s, l) => (l && Object.entries(l).forEach((a) => {
|
|
2837
|
-
let [c,
|
|
2838
|
-
if (!(
|
|
2931
|
+
let [c, g] = a;
|
|
2932
|
+
if (!(r && [Zt, Jt].includes(c)))
|
|
2839
2933
|
if (c.indexOf("on") === 0) {
|
|
2840
|
-
if (
|
|
2841
|
-
var
|
|
2842
|
-
(
|
|
2843
|
-
for (var f,
|
|
2844
|
-
|
|
2845
|
-
return (f =
|
|
2934
|
+
if (o.has(c) || o.set(c, []), typeof g == "function") {
|
|
2935
|
+
var u;
|
|
2936
|
+
(u = o.get(c)) == null || u.push(g), s[c] = function() {
|
|
2937
|
+
for (var f, d = arguments.length, m = new Array(d), p = 0; p < d; p++)
|
|
2938
|
+
m[p] = arguments[p];
|
|
2939
|
+
return (f = o.get(c)) == null ? void 0 : f.map((w) => w(...m)).find((w) => w !== void 0);
|
|
2846
2940
|
};
|
|
2847
2941
|
}
|
|
2848
2942
|
} else
|
|
2849
|
-
s[c] =
|
|
2943
|
+
s[c] = g;
|
|
2850
2944
|
}), s), {})
|
|
2851
2945
|
};
|
|
2852
2946
|
}
|
|
2853
|
-
function
|
|
2947
|
+
function ai(e) {
|
|
2854
2948
|
e === void 0 && (e = []);
|
|
2855
|
-
const t = e, n = y.useCallback((i) => lt(i, e, "reference"), t),
|
|
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(
|
|
2856
2950
|
(i) => lt(i, e, "item"),
|
|
2857
2951
|
// Granularly check for `item` changes, because the `getItemProps` getter
|
|
2858
2952
|
// should be as referentially stable as possible since it may be passed as
|
|
@@ -2862,47 +2956,47 @@ function oi(e) {
|
|
|
2862
2956
|
);
|
|
2863
2957
|
return y.useMemo(() => ({
|
|
2864
2958
|
getReferenceProps: n,
|
|
2865
|
-
getFloatingProps:
|
|
2866
|
-
getItemProps:
|
|
2867
|
-
}), [n,
|
|
2959
|
+
getFloatingProps: o,
|
|
2960
|
+
getItemProps: r
|
|
2961
|
+
}), [n, o, r]);
|
|
2868
2962
|
}
|
|
2869
|
-
const
|
|
2870
|
-
function
|
|
2963
|
+
const ci = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
|
|
2964
|
+
function ui(e, t) {
|
|
2871
2965
|
var n;
|
|
2872
2966
|
t === void 0 && (t = {});
|
|
2873
2967
|
const {
|
|
2874
|
-
open:
|
|
2875
|
-
floatingId:
|
|
2968
|
+
open: o,
|
|
2969
|
+
floatingId: r
|
|
2876
2970
|
} = e, {
|
|
2877
2971
|
enabled: i = !0,
|
|
2878
2972
|
role: s = "dialog"
|
|
2879
|
-
} = t, l = (n =
|
|
2973
|
+
} = t, l = (n = ci.get(s)) != null ? n : s, a = wt(), g = $t() != null;
|
|
2880
2974
|
return y.useMemo(() => {
|
|
2881
2975
|
if (!i)
|
|
2882
2976
|
return {};
|
|
2883
|
-
const
|
|
2884
|
-
id:
|
|
2977
|
+
const u = {
|
|
2978
|
+
id: r,
|
|
2885
2979
|
...l && {
|
|
2886
2980
|
role: l
|
|
2887
2981
|
}
|
|
2888
2982
|
};
|
|
2889
2983
|
return l === "tooltip" || s === "label" ? {
|
|
2890
2984
|
reference: {
|
|
2891
|
-
["aria-" + (s === "label" ? "labelledby" : "describedby")]:
|
|
2985
|
+
["aria-" + (s === "label" ? "labelledby" : "describedby")]: o ? r : void 0
|
|
2892
2986
|
},
|
|
2893
|
-
floating:
|
|
2987
|
+
floating: u
|
|
2894
2988
|
} : {
|
|
2895
2989
|
reference: {
|
|
2896
|
-
"aria-expanded":
|
|
2990
|
+
"aria-expanded": o ? "true" : "false",
|
|
2897
2991
|
"aria-haspopup": l === "alertdialog" ? "dialog" : l,
|
|
2898
|
-
"aria-controls":
|
|
2992
|
+
"aria-controls": o ? r : void 0,
|
|
2899
2993
|
...l === "listbox" && {
|
|
2900
2994
|
role: "combobox"
|
|
2901
2995
|
},
|
|
2902
2996
|
...l === "menu" && {
|
|
2903
2997
|
id: a
|
|
2904
2998
|
},
|
|
2905
|
-
...l === "menu" &&
|
|
2999
|
+
...l === "menu" && g && {
|
|
2906
3000
|
role: "menuitem"
|
|
2907
3001
|
},
|
|
2908
3002
|
...s === "select" && {
|
|
@@ -2913,32 +3007,32 @@ function si(e, t) {
|
|
|
2913
3007
|
}
|
|
2914
3008
|
},
|
|
2915
3009
|
floating: {
|
|
2916
|
-
...
|
|
3010
|
+
...u,
|
|
2917
3011
|
...l === "menu" && {
|
|
2918
3012
|
"aria-labelledby": a
|
|
2919
3013
|
}
|
|
2920
3014
|
},
|
|
2921
3015
|
item(f) {
|
|
2922
3016
|
let {
|
|
2923
|
-
active:
|
|
2924
|
-
selected:
|
|
3017
|
+
active: d,
|
|
3018
|
+
selected: m
|
|
2925
3019
|
} = f;
|
|
2926
3020
|
const p = {
|
|
2927
3021
|
role: "option",
|
|
2928
|
-
...
|
|
2929
|
-
id:
|
|
3022
|
+
...d && {
|
|
3023
|
+
id: r + "-option"
|
|
2930
3024
|
}
|
|
2931
3025
|
};
|
|
2932
3026
|
switch (s) {
|
|
2933
3027
|
case "select":
|
|
2934
3028
|
return {
|
|
2935
3029
|
...p,
|
|
2936
|
-
"aria-selected":
|
|
3030
|
+
"aria-selected": d && m
|
|
2937
3031
|
};
|
|
2938
3032
|
case "combobox":
|
|
2939
3033
|
return {
|
|
2940
3034
|
...p,
|
|
2941
|
-
...
|
|
3035
|
+
...d && {
|
|
2942
3036
|
"aria-selected": !0
|
|
2943
3037
|
}
|
|
2944
3038
|
};
|
|
@@ -2946,232 +3040,232 @@ function si(e, t) {
|
|
|
2946
3040
|
return {};
|
|
2947
3041
|
}
|
|
2948
3042
|
};
|
|
2949
|
-
}, [i, s, l,
|
|
3043
|
+
}, [i, s, l, o, r, a, g]);
|
|
2950
3044
|
}
|
|
2951
|
-
const
|
|
2952
|
-
function
|
|
3045
|
+
const Qt = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (t, n) => (n ? "-" : "") + t.toLowerCase());
|
|
3046
|
+
function Ee(e, t) {
|
|
2953
3047
|
return typeof e == "function" ? e(t) : e;
|
|
2954
3048
|
}
|
|
2955
|
-
function
|
|
2956
|
-
const [n,
|
|
2957
|
-
return e && !n &&
|
|
3049
|
+
function di(e, t) {
|
|
3050
|
+
const [n, o] = y.useState(e);
|
|
3051
|
+
return e && !n && o(!0), y.useEffect(() => {
|
|
2958
3052
|
if (!e) {
|
|
2959
|
-
const
|
|
2960
|
-
return () => clearTimeout(
|
|
3053
|
+
const r = setTimeout(() => o(!1), t);
|
|
3054
|
+
return () => clearTimeout(r);
|
|
2961
3055
|
}
|
|
2962
3056
|
}, [e, t]), n;
|
|
2963
3057
|
}
|
|
2964
|
-
function
|
|
3058
|
+
function fi(e, t) {
|
|
2965
3059
|
t === void 0 && (t = {});
|
|
2966
3060
|
const {
|
|
2967
3061
|
open: n,
|
|
2968
3062
|
elements: {
|
|
2969
|
-
floating:
|
|
3063
|
+
floating: o
|
|
2970
3064
|
}
|
|
2971
3065
|
} = e, {
|
|
2972
|
-
duration:
|
|
2973
|
-
} = t, s = (typeof
|
|
3066
|
+
duration: r = 250
|
|
3067
|
+
} = t, s = (typeof r == "number" ? r : r.close) || 0, [l, a] = y.useState(!1), [c, g] = y.useState("unmounted"), u = di(n, s);
|
|
2974
3068
|
return Q(() => {
|
|
2975
|
-
l && !
|
|
2976
|
-
}, [l,
|
|
2977
|
-
if (
|
|
3069
|
+
l && !u && g("unmounted");
|
|
3070
|
+
}, [l, u]), Q(() => {
|
|
3071
|
+
if (o) {
|
|
2978
3072
|
if (n) {
|
|
2979
|
-
|
|
3073
|
+
g("initial");
|
|
2980
3074
|
const f = requestAnimationFrame(() => {
|
|
2981
|
-
|
|
3075
|
+
g("open");
|
|
2982
3076
|
});
|
|
2983
3077
|
return () => {
|
|
2984
3078
|
cancelAnimationFrame(f);
|
|
2985
3079
|
};
|
|
2986
3080
|
}
|
|
2987
|
-
a(!0),
|
|
3081
|
+
a(!0), g("close");
|
|
2988
3082
|
}
|
|
2989
|
-
}, [n,
|
|
2990
|
-
isMounted:
|
|
3083
|
+
}, [n, o]), {
|
|
3084
|
+
isMounted: u,
|
|
2991
3085
|
status: c
|
|
2992
3086
|
};
|
|
2993
3087
|
}
|
|
2994
|
-
function
|
|
3088
|
+
function gi(e, t) {
|
|
2995
3089
|
t === void 0 && (t = {});
|
|
2996
3090
|
const {
|
|
2997
3091
|
initial: n = {
|
|
2998
3092
|
opacity: 0
|
|
2999
3093
|
},
|
|
3000
|
-
open:
|
|
3001
|
-
close:
|
|
3094
|
+
open: o,
|
|
3095
|
+
close: r,
|
|
3002
3096
|
common: i,
|
|
3003
3097
|
duration: s = 250
|
|
3004
3098
|
} = t, l = e.placement, a = l.split("-")[0], c = y.useMemo(() => ({
|
|
3005
3099
|
side: a,
|
|
3006
3100
|
placement: l
|
|
3007
|
-
}), [a, l]),
|
|
3008
|
-
...
|
|
3009
|
-
...
|
|
3101
|
+
}), [a, l]), g = typeof s == "number", u = (g ? s : s.open) || 0, f = (g ? s : s.close) || 0, [d, m] = y.useState(() => ({
|
|
3102
|
+
...Ee(i, c),
|
|
3103
|
+
...Ee(n, c)
|
|
3010
3104
|
})), {
|
|
3011
3105
|
isMounted: p,
|
|
3012
3106
|
status: w
|
|
3013
|
-
} =
|
|
3107
|
+
} = fi(e, {
|
|
3014
3108
|
duration: s
|
|
3015
|
-
}), h =
|
|
3109
|
+
}), h = Ie(n), x = Ie(o), P = Ie(r), S = Ie(i);
|
|
3016
3110
|
return Q(() => {
|
|
3017
|
-
const k =
|
|
3018
|
-
if (w === "initial" &&
|
|
3019
|
-
transitionProperty:
|
|
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), {});
|
|
3112
|
+
if (w === "initial" && m((D) => ({
|
|
3113
|
+
transitionProperty: D.transitionProperty,
|
|
3020
3114
|
...B,
|
|
3021
3115
|
...k
|
|
3022
|
-
})), w === "open" &&
|
|
3023
|
-
transitionProperty: Object.keys(T).map(
|
|
3024
|
-
transitionDuration:
|
|
3116
|
+
})), w === "open" && m({
|
|
3117
|
+
transitionProperty: Object.keys(T).map(Qt).join(","),
|
|
3118
|
+
transitionDuration: u + "ms",
|
|
3025
3119
|
...B,
|
|
3026
3120
|
...T
|
|
3027
3121
|
}), w === "close") {
|
|
3028
|
-
const
|
|
3029
|
-
|
|
3030
|
-
transitionProperty: Object.keys(
|
|
3122
|
+
const D = C || k;
|
|
3123
|
+
m({
|
|
3124
|
+
transitionProperty: Object.keys(D).map(Qt).join(","),
|
|
3031
3125
|
transitionDuration: f + "ms",
|
|
3032
3126
|
...B,
|
|
3033
|
-
...
|
|
3127
|
+
...D
|
|
3034
3128
|
});
|
|
3035
3129
|
}
|
|
3036
|
-
}, [f, P, h, x, S,
|
|
3130
|
+
}, [f, P, h, x, S, u, w, c]), {
|
|
3037
3131
|
isMounted: p,
|
|
3038
|
-
styles:
|
|
3132
|
+
styles: d
|
|
3039
3133
|
};
|
|
3040
3134
|
}
|
|
3041
|
-
function
|
|
3042
|
-
const [n,
|
|
3043
|
-
let
|
|
3135
|
+
function en(e, t) {
|
|
3136
|
+
const [n, o] = e;
|
|
3137
|
+
let r = !1;
|
|
3044
3138
|
const i = t.length;
|
|
3045
3139
|
for (let s = 0, l = i - 1; s < i; l = s++) {
|
|
3046
|
-
const [a, c] = t[s] || [0, 0], [
|
|
3047
|
-
c >=
|
|
3140
|
+
const [a, c] = t[s] || [0, 0], [g, u] = t[l] || [0, 0];
|
|
3141
|
+
c >= o != u >= o && n <= (g - a) * (o - c) / (u - c) + a && (r = !r);
|
|
3048
3142
|
}
|
|
3049
|
-
return
|
|
3143
|
+
return r;
|
|
3050
3144
|
}
|
|
3051
|
-
function
|
|
3145
|
+
function mi(e, t) {
|
|
3052
3146
|
return e[0] >= t.x && e[0] <= t.x + t.width && e[1] >= t.y && e[1] <= t.y + t.height;
|
|
3053
3147
|
}
|
|
3054
|
-
function
|
|
3148
|
+
function pi(e) {
|
|
3055
3149
|
e === void 0 && (e = {});
|
|
3056
3150
|
const {
|
|
3057
3151
|
buffer: t = 0.5,
|
|
3058
3152
|
blockPointerEvents: n = !1,
|
|
3059
|
-
requireIntent:
|
|
3153
|
+
requireIntent: o = !0
|
|
3060
3154
|
} = e;
|
|
3061
|
-
let
|
|
3062
|
-
function c(
|
|
3063
|
-
const
|
|
3064
|
-
if (s === null || l === null ||
|
|
3065
|
-
return s =
|
|
3066
|
-
const p =
|
|
3067
|
-
return s =
|
|
3155
|
+
let r, i = !1, s = null, l = null, a = performance.now();
|
|
3156
|
+
function c(u, f) {
|
|
3157
|
+
const d = performance.now(), m = d - a;
|
|
3158
|
+
if (s === null || l === null || m === 0)
|
|
3159
|
+
return s = u, l = f, a = d, null;
|
|
3160
|
+
const p = u - s, w = f - l, x = Math.sqrt(p * p + w * w) / m;
|
|
3161
|
+
return s = u, l = f, a = d, x;
|
|
3068
3162
|
}
|
|
3069
|
-
const
|
|
3163
|
+
const g = (u) => {
|
|
3070
3164
|
let {
|
|
3071
3165
|
x: f,
|
|
3072
|
-
y:
|
|
3073
|
-
placement:
|
|
3166
|
+
y: d,
|
|
3167
|
+
placement: m,
|
|
3074
3168
|
elements: p,
|
|
3075
3169
|
onClose: w,
|
|
3076
3170
|
nodeId: h,
|
|
3077
3171
|
tree: x
|
|
3078
|
-
} =
|
|
3172
|
+
} = u;
|
|
3079
3173
|
return function(S) {
|
|
3080
3174
|
function k() {
|
|
3081
|
-
clearTimeout(
|
|
3175
|
+
clearTimeout(r), w();
|
|
3082
3176
|
}
|
|
3083
|
-
if (clearTimeout(
|
|
3177
|
+
if (clearTimeout(r), !p.domReference || !p.floating || m == null || f == null || d == null)
|
|
3084
3178
|
return;
|
|
3085
3179
|
const {
|
|
3086
3180
|
clientX: C,
|
|
3087
3181
|
clientY: B
|
|
3088
|
-
} = S, T = [C, B],
|
|
3089
|
-
if (
|
|
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;
|
|
3183
|
+
if (L && (i = !0, !A))
|
|
3090
3184
|
return;
|
|
3091
|
-
if (M && (i = !1), M && !
|
|
3185
|
+
if (M && (i = !1), M && !A) {
|
|
3092
3186
|
i = !0;
|
|
3093
3187
|
return;
|
|
3094
3188
|
}
|
|
3095
|
-
if (
|
|
3189
|
+
if (A && N(S.relatedTarget) && be(p.floating, S.relatedTarget) || x && Ke(x.nodesRef.current, h).some((ue) => {
|
|
3096
3190
|
let {
|
|
3097
3191
|
context: H
|
|
3098
|
-
} =
|
|
3192
|
+
} = ue;
|
|
3099
3193
|
return H == null ? void 0 : H.open;
|
|
3100
3194
|
}))
|
|
3101
3195
|
return;
|
|
3102
|
-
if (v === "top" &&
|
|
3196
|
+
if (v === "top" && d >= O.bottom - 1 || v === "bottom" && d <= O.top + 1 || v === "left" && f >= O.right - 1 || v === "right" && f <= O.left + 1)
|
|
3103
3197
|
return k();
|
|
3104
|
-
let
|
|
3198
|
+
let G = [];
|
|
3105
3199
|
switch (v) {
|
|
3106
3200
|
case "top":
|
|
3107
|
-
|
|
3201
|
+
G = [[U, O.top + 1], [U, b.bottom - 1], [we, b.bottom - 1], [we, O.top + 1]];
|
|
3108
3202
|
break;
|
|
3109
3203
|
case "bottom":
|
|
3110
|
-
|
|
3204
|
+
G = [[U, b.top + 1], [U, O.bottom - 1], [we, O.bottom - 1], [we, b.top + 1]];
|
|
3111
3205
|
break;
|
|
3112
3206
|
case "left":
|
|
3113
|
-
|
|
3207
|
+
G = [[b.right - 1, V], [b.right - 1, ae], [O.left + 1, ae], [O.left + 1, V]];
|
|
3114
3208
|
break;
|
|
3115
3209
|
case "right":
|
|
3116
|
-
|
|
3210
|
+
G = [[O.right - 1, V], [O.right - 1, ae], [b.left + 1, ae], [b.left + 1, V]];
|
|
3117
3211
|
break;
|
|
3118
3212
|
}
|
|
3119
|
-
function
|
|
3120
|
-
let [H, _] =
|
|
3213
|
+
function ce(ue) {
|
|
3214
|
+
let [H, _] = ue;
|
|
3121
3215
|
switch (v) {
|
|
3122
3216
|
case "top": {
|
|
3123
|
-
const
|
|
3124
|
-
return [
|
|
3217
|
+
const de = [F ? H + t / 2 : I ? H + t * 4 : H - t * 4, _ + t + 1], fe = [F ? H - t / 2 : I ? H + t * 4 : H - t * 4, _ + t + 1], $e = [[b.left, I || F ? b.bottom - t : b.top], [b.right, I ? F ? b.bottom - t : b.top : b.bottom - t]];
|
|
3218
|
+
return [de, fe, ...$e];
|
|
3125
3219
|
}
|
|
3126
3220
|
case "bottom": {
|
|
3127
|
-
const
|
|
3128
|
-
return [
|
|
3221
|
+
const de = [F ? H + t / 2 : I ? H + t * 4 : H - t * 4, _ - t], fe = [F ? H - t / 2 : I ? H + t * 4 : H - t * 4, _ - t], $e = [[b.left, I || F ? b.top + t : b.bottom], [b.right, I ? F ? b.top + t : b.bottom : b.top + t]];
|
|
3222
|
+
return [de, fe, ...$e];
|
|
3129
3223
|
}
|
|
3130
3224
|
case "left": {
|
|
3131
|
-
const
|
|
3132
|
-
return [...[[R || K ? b.right - t : b.left, b.top], [R ? K ? b.right - t : b.left : b.right - t, b.bottom]],
|
|
3225
|
+
const de = [H + t + 1, K ? _ + t / 2 : R ? _ + t * 4 : _ - t * 4], fe = [H + t + 1, K ? _ - t / 2 : R ? _ + t * 4 : _ - t * 4];
|
|
3226
|
+
return [...[[R || K ? b.right - t : b.left, b.top], [R ? K ? b.right - t : b.left : b.right - t, b.bottom]], de, fe];
|
|
3133
3227
|
}
|
|
3134
3228
|
case "right": {
|
|
3135
|
-
const
|
|
3136
|
-
return [
|
|
3229
|
+
const de = [H - t, K ? _ + t / 2 : R ? _ + t * 4 : _ - t * 4], fe = [H - t, K ? _ - t / 2 : R ? _ + t * 4 : _ - t * 4], $e = [[R || K ? b.left + t : b.right, b.top], [R ? K ? b.left + t : b.right : b.left + t, b.bottom]];
|
|
3230
|
+
return [de, fe, ...$e];
|
|
3137
3231
|
}
|
|
3138
3232
|
}
|
|
3139
3233
|
}
|
|
3140
|
-
if (!
|
|
3234
|
+
if (!en([C, B], G)) {
|
|
3141
3235
|
if (i && !$)
|
|
3142
3236
|
return k();
|
|
3143
|
-
if (!
|
|
3144
|
-
const
|
|
3145
|
-
if (
|
|
3237
|
+
if (!A && o) {
|
|
3238
|
+
const ue = c(S.clientX, S.clientY);
|
|
3239
|
+
if (ue !== null && ue < 0.1)
|
|
3146
3240
|
return k();
|
|
3147
3241
|
}
|
|
3148
|
-
|
|
3242
|
+
en([C, B], ce([f, d])) ? !i && o && (r = window.setTimeout(k, 40)) : k();
|
|
3149
3243
|
}
|
|
3150
3244
|
};
|
|
3151
3245
|
};
|
|
3152
|
-
return
|
|
3246
|
+
return g.__options = {
|
|
3153
3247
|
blockPointerEvents: n
|
|
3154
|
-
},
|
|
3248
|
+
}, g;
|
|
3155
3249
|
}
|
|
3156
|
-
const
|
|
3250
|
+
const ge = j("div"), Rt = Dn(
|
|
3157
3251
|
{}
|
|
3158
|
-
),
|
|
3252
|
+
), zi = ({
|
|
3159
3253
|
children: e,
|
|
3160
3254
|
offset: t,
|
|
3161
3255
|
open: n,
|
|
3162
|
-
onOpenChange:
|
|
3163
|
-
trigger:
|
|
3256
|
+
onOpenChange: o,
|
|
3257
|
+
trigger: r = "click",
|
|
3164
3258
|
hoverDelay: i,
|
|
3165
3259
|
placement: s = "bottom",
|
|
3166
3260
|
role: l = "dialog"
|
|
3167
3261
|
}) => {
|
|
3168
|
-
const { refs: a, floatingStyles: c, context:
|
|
3262
|
+
const { refs: a, floatingStyles: c, context: g } = li({
|
|
3169
3263
|
open: n,
|
|
3170
|
-
onOpenChange:
|
|
3264
|
+
onOpenChange: o,
|
|
3171
3265
|
placement: s,
|
|
3172
|
-
whileElementsMounted:
|
|
3173
|
-
middleware: [
|
|
3174
|
-
}), { isMounted:
|
|
3266
|
+
whileElementsMounted: br,
|
|
3267
|
+
middleware: [Jo(t), vr(), yr()]
|
|
3268
|
+
}), { isMounted: u, styles: f } = gi(g, {
|
|
3175
3269
|
initial: ({ side: S }) => ({
|
|
3176
3270
|
opacity: 0,
|
|
3177
3271
|
transform: {
|
|
@@ -3181,61 +3275,61 @@ const fe = j("div"), St = Bn(
|
|
|
3181
3275
|
left: "translateX(-0.5rem)"
|
|
3182
3276
|
}[S]
|
|
3183
3277
|
})
|
|
3184
|
-
}),
|
|
3185
|
-
enabled:
|
|
3278
|
+
}), d = oi(g, { enabled: r === "click" }), m = Gr(g, {
|
|
3279
|
+
enabled: r === "hover",
|
|
3186
3280
|
delay: i,
|
|
3187
|
-
handleClose:
|
|
3188
|
-
}), p =
|
|
3189
|
-
|
|
3190
|
-
|
|
3281
|
+
handleClose: pi()
|
|
3282
|
+
}), p = si(g), w = ui(g, { role: l }), { getFloatingProps: h, getReferenceProps: x } = ai([
|
|
3283
|
+
d,
|
|
3284
|
+
m,
|
|
3191
3285
|
p,
|
|
3192
3286
|
w
|
|
3193
|
-
]), P =
|
|
3287
|
+
]), P = at(
|
|
3194
3288
|
() => ({
|
|
3195
3289
|
getFloatingProps: h,
|
|
3196
3290
|
getReferenceProps: x,
|
|
3197
3291
|
floatingStyles: c,
|
|
3198
3292
|
refs: a,
|
|
3199
|
-
isMounted:
|
|
3293
|
+
isMounted: u,
|
|
3200
3294
|
transitionStyles: f
|
|
3201
3295
|
}),
|
|
3202
3296
|
[
|
|
3203
3297
|
h,
|
|
3204
3298
|
x,
|
|
3205
|
-
|
|
3299
|
+
u,
|
|
3206
3300
|
a,
|
|
3207
3301
|
c,
|
|
3208
3302
|
f
|
|
3209
3303
|
]
|
|
3210
3304
|
);
|
|
3211
|
-
return /* @__PURE__ */ z(
|
|
3212
|
-
},
|
|
3213
|
-
const { getReferenceProps: t, refs: n } =
|
|
3214
|
-
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, {
|
|
3215
3309
|
ref: n.setReference,
|
|
3216
3310
|
...t()
|
|
3217
3311
|
}) });
|
|
3218
|
-
},
|
|
3312
|
+
}, Ni = ({ children: e, overlayCardProps: t }) => {
|
|
3219
3313
|
const {
|
|
3220
3314
|
getFloatingProps: n,
|
|
3221
|
-
isMounted:
|
|
3222
|
-
refs:
|
|
3315
|
+
isMounted: o,
|
|
3316
|
+
refs: r,
|
|
3223
3317
|
floatingStyles: i,
|
|
3224
3318
|
transitionStyles: s
|
|
3225
|
-
} =
|
|
3226
|
-
return
|
|
3227
|
-
|
|
3319
|
+
} = on(Rt);
|
|
3320
|
+
return o ? /* @__PURE__ */ z(ti, { children: /* @__PURE__ */ z(
|
|
3321
|
+
ge,
|
|
3228
3322
|
{
|
|
3229
|
-
ref:
|
|
3323
|
+
ref: r.setFloating,
|
|
3230
3324
|
style: i,
|
|
3231
3325
|
...n(),
|
|
3232
3326
|
css: {
|
|
3233
3327
|
zIndex: "$overlayCard"
|
|
3234
3328
|
},
|
|
3235
|
-
children: /* @__PURE__ */ z(
|
|
3329
|
+
children: /* @__PURE__ */ z(an, { ...t, style: s, children: e })
|
|
3236
3330
|
}
|
|
3237
3331
|
) }) : null;
|
|
3238
|
-
},
|
|
3332
|
+
}, ji = j("span", {
|
|
3239
3333
|
flex: "0 0 auto",
|
|
3240
3334
|
display: "inline-flex",
|
|
3241
3335
|
padding: "$1 $2",
|
|
@@ -3272,24 +3366,24 @@ const fe = j("div"), St = Bn(
|
|
|
3272
3366
|
defaultVariants: {
|
|
3273
3367
|
color: "primary"
|
|
3274
3368
|
}
|
|
3275
|
-
}),
|
|
3369
|
+
}), Hi = j(je.Root, {
|
|
3276
3370
|
backgroundColor: "$gray50",
|
|
3277
3371
|
display: "flex",
|
|
3278
3372
|
alignItems: "center",
|
|
3279
3373
|
padding: "$1",
|
|
3280
3374
|
gap: "$1"
|
|
3281
|
-
}),
|
|
3375
|
+
}), Vi = j(je.ToggleGroup, {
|
|
3282
3376
|
display: "flex",
|
|
3283
3377
|
gap: "$1",
|
|
3284
3378
|
alignItems: "center"
|
|
3285
|
-
}),
|
|
3379
|
+
}), _i = j(je.Separator, {
|
|
3286
3380
|
width: "1px",
|
|
3287
3381
|
height: "1.5rem",
|
|
3288
3382
|
my: "$1",
|
|
3289
3383
|
mx: "$1",
|
|
3290
3384
|
backgroundColor: "$border"
|
|
3291
|
-
}),
|
|
3292
|
-
|
|
3385
|
+
}), An = xe(({ css: e, ...t }, n) => /* @__PURE__ */ z(
|
|
3386
|
+
ln,
|
|
3293
3387
|
{
|
|
3294
3388
|
ref: n,
|
|
3295
3389
|
icon: !0,
|
|
@@ -3303,38 +3397,38 @@ const fe = j("div"), St = Bn(
|
|
|
3303
3397
|
},
|
|
3304
3398
|
...t
|
|
3305
3399
|
}
|
|
3306
|
-
)),
|
|
3307
|
-
({ children: e, dropdown: t, ...n },
|
|
3308
|
-
|
|
3400
|
+
)), Yi = xe(
|
|
3401
|
+
({ children: e, dropdown: t, ...n }, o) => /* @__PURE__ */ z(
|
|
3402
|
+
je.Button,
|
|
3309
3403
|
{
|
|
3310
3404
|
asChild: !0,
|
|
3311
|
-
ref:
|
|
3312
|
-
children: /* @__PURE__ */
|
|
3313
|
-
|
|
3405
|
+
ref: o,
|
|
3406
|
+
children: /* @__PURE__ */ Be(
|
|
3407
|
+
An,
|
|
3314
3408
|
{
|
|
3315
3409
|
variant: "transparent",
|
|
3316
3410
|
color: "primary",
|
|
3317
3411
|
...n,
|
|
3318
3412
|
children: [
|
|
3319
3413
|
e,
|
|
3320
|
-
t && /* @__PURE__ */ z(
|
|
3414
|
+
t && /* @__PURE__ */ z(Wn, {})
|
|
3321
3415
|
]
|
|
3322
3416
|
}
|
|
3323
3417
|
)
|
|
3324
3418
|
}
|
|
3325
3419
|
)
|
|
3326
|
-
),
|
|
3420
|
+
), Xi = xe(({
|
|
3327
3421
|
children: e,
|
|
3328
3422
|
value: t,
|
|
3329
3423
|
...n
|
|
3330
|
-
},
|
|
3331
|
-
|
|
3424
|
+
}, o) => /* @__PURE__ */ z(
|
|
3425
|
+
je.ToggleItem,
|
|
3332
3426
|
{
|
|
3333
3427
|
value: t,
|
|
3334
3428
|
asChild: !0,
|
|
3335
|
-
ref:
|
|
3429
|
+
ref: o,
|
|
3336
3430
|
children: /* @__PURE__ */ z(
|
|
3337
|
-
|
|
3431
|
+
An,
|
|
3338
3432
|
{
|
|
3339
3433
|
variant: "transparent",
|
|
3340
3434
|
color: "primary",
|
|
@@ -3344,7 +3438,7 @@ const fe = j("div"), St = Bn(
|
|
|
3344
3438
|
}
|
|
3345
3439
|
)
|
|
3346
3440
|
}
|
|
3347
|
-
)),
|
|
3441
|
+
)), Ki = j("div", {
|
|
3348
3442
|
color: "$$cardText",
|
|
3349
3443
|
backgroundColor: "$$cardBackground",
|
|
3350
3444
|
borderRadius: "$md",
|
|
@@ -3369,7 +3463,7 @@ const fe = j("div"), St = Bn(
|
|
|
3369
3463
|
variant: "primary",
|
|
3370
3464
|
elevation: "raised"
|
|
3371
3465
|
}
|
|
3372
|
-
}),
|
|
3466
|
+
}), hi = j("div", {
|
|
3373
3467
|
borderRadius: "$md",
|
|
3374
3468
|
padding: "$1",
|
|
3375
3469
|
border: "2px solid $blue100",
|
|
@@ -3377,12 +3471,12 @@ const fe = j("div"), St = Bn(
|
|
|
3377
3471
|
display: "flex",
|
|
3378
3472
|
alignItems: "center",
|
|
3379
3473
|
gap: "$1"
|
|
3380
|
-
}),
|
|
3474
|
+
}), Gi = (e) => /* @__PURE__ */ z(hi, { ...e }), Ui = ({
|
|
3381
3475
|
children: e,
|
|
3382
3476
|
active: t = !1,
|
|
3383
3477
|
...n
|
|
3384
3478
|
}) => /* @__PURE__ */ z(
|
|
3385
|
-
|
|
3479
|
+
ln,
|
|
3386
3480
|
{
|
|
3387
3481
|
variant: "transparent",
|
|
3388
3482
|
color: "primary",
|
|
@@ -3395,7 +3489,7 @@ const fe = j("div"), St = Bn(
|
|
|
3395
3489
|
...n,
|
|
3396
3490
|
children: e
|
|
3397
3491
|
}
|
|
3398
|
-
),
|
|
3492
|
+
), bi = j("dialog", {
|
|
3399
3493
|
border: 0,
|
|
3400
3494
|
padding: 0,
|
|
3401
3495
|
outline: "none",
|
|
@@ -3407,50 +3501,50 @@ const fe = j("div"), St = Bn(
|
|
|
3407
3501
|
"&::backdrop": {
|
|
3408
3502
|
background: "rgba(0, 0, 0, 0.8)"
|
|
3409
3503
|
}
|
|
3410
|
-
}),
|
|
3504
|
+
}), qi = ({
|
|
3411
3505
|
children: e,
|
|
3412
3506
|
open: t = !1,
|
|
3413
3507
|
onOpenChange: n,
|
|
3414
|
-
...
|
|
3508
|
+
...o
|
|
3415
3509
|
}) => {
|
|
3416
|
-
const
|
|
3417
|
-
|
|
3418
|
-
|
|
3510
|
+
const r = nn(null);
|
|
3511
|
+
pt(() => {
|
|
3512
|
+
r.current && t && r.current.showModal();
|
|
3419
3513
|
}, [t]);
|
|
3420
|
-
const i =
|
|
3514
|
+
const i = Ct(() => {
|
|
3421
3515
|
n(!1);
|
|
3422
|
-
}, [n]), s =
|
|
3516
|
+
}, [n]), s = Ct((l) => {
|
|
3423
3517
|
var a;
|
|
3424
|
-
l.target ===
|
|
3518
|
+
l.target === r.current && ((a = r.current) == null || a.close());
|
|
3425
3519
|
}, []);
|
|
3426
3520
|
return t ? rn(
|
|
3427
3521
|
/* @__PURE__ */ z(
|
|
3428
|
-
|
|
3522
|
+
bi,
|
|
3429
3523
|
{
|
|
3430
|
-
ref:
|
|
3524
|
+
ref: r,
|
|
3431
3525
|
onClose: i,
|
|
3432
3526
|
onClick: s,
|
|
3433
|
-
...
|
|
3434
|
-
children: /* @__PURE__ */ z(
|
|
3527
|
+
...o,
|
|
3528
|
+
children: /* @__PURE__ */ z(ge, { css: { padding: "$4" }, children: e })
|
|
3435
3529
|
}
|
|
3436
3530
|
),
|
|
3437
3531
|
document.body
|
|
3438
3532
|
) : null;
|
|
3439
|
-
},
|
|
3533
|
+
}, Zi = j("h2", {
|
|
3440
3534
|
fontSize: "$xl",
|
|
3441
3535
|
fontWeight: "$medium",
|
|
3442
3536
|
marginBottom: "$6"
|
|
3443
|
-
}),
|
|
3537
|
+
}), Ji = j("div", {
|
|
3444
3538
|
display: "flex",
|
|
3445
3539
|
gap: "$2",
|
|
3446
3540
|
justifyContent: "flex-end",
|
|
3447
3541
|
background: "$gray100",
|
|
3448
3542
|
margin: "$6 -$4 -$4 -$4",
|
|
3449
3543
|
padding: "$2"
|
|
3450
|
-
}),
|
|
3544
|
+
}), yi = j(an, {
|
|
3451
3545
|
minWidth: "max(var(--radix-popper-anchor-width), 12rem)",
|
|
3452
3546
|
padding: "$1"
|
|
3453
|
-
}),
|
|
3547
|
+
}), Et = He({
|
|
3454
3548
|
padding: "$2 $2 $2 1.5rem",
|
|
3455
3549
|
fontSize: "$sm",
|
|
3456
3550
|
lineHeight: "1.25",
|
|
@@ -3473,27 +3567,27 @@ const fe = j("div"), St = Bn(
|
|
|
3473
3567
|
backgroundColor: "transparent"
|
|
3474
3568
|
}
|
|
3475
3569
|
}
|
|
3476
|
-
}),
|
|
3570
|
+
}), Qi = ({
|
|
3477
3571
|
side: e = "bottom",
|
|
3478
3572
|
align: t = "center",
|
|
3479
3573
|
trigger: n,
|
|
3480
|
-
children:
|
|
3481
|
-
sideOffset:
|
|
3574
|
+
children: o,
|
|
3575
|
+
sideOffset: r,
|
|
3482
3576
|
modal: i
|
|
3483
|
-
}) => /* @__PURE__ */
|
|
3484
|
-
/* @__PURE__ */ z(
|
|
3485
|
-
/* @__PURE__ */ z(
|
|
3486
|
-
|
|
3577
|
+
}) => /* @__PURE__ */ Be(te.Root, { modal: i, children: [
|
|
3578
|
+
/* @__PURE__ */ z(te.Trigger, { asChild: !0, children: n }),
|
|
3579
|
+
/* @__PURE__ */ z(te.Portal, { children: /* @__PURE__ */ z(
|
|
3580
|
+
te.Content,
|
|
3487
3581
|
{
|
|
3488
3582
|
asChild: !0,
|
|
3489
3583
|
side: e,
|
|
3490
3584
|
align: t,
|
|
3491
3585
|
collisionPadding: 10,
|
|
3492
|
-
sideOffset:
|
|
3493
|
-
children: /* @__PURE__ */ z(
|
|
3586
|
+
sideOffset: r,
|
|
3587
|
+
children: /* @__PURE__ */ z(yi, { children: o })
|
|
3494
3588
|
}
|
|
3495
3589
|
) })
|
|
3496
|
-
] }),
|
|
3590
|
+
] }), vi = j(te.ItemIndicator, {
|
|
3497
3591
|
position: "absolute",
|
|
3498
3592
|
left: 0,
|
|
3499
3593
|
top: 0,
|
|
@@ -3502,30 +3596,114 @@ const fe = j("div"), St = Bn(
|
|
|
3502
3596
|
display: "flex",
|
|
3503
3597
|
justifyContent: "center",
|
|
3504
3598
|
alignItems: "center"
|
|
3505
|
-
}),
|
|
3599
|
+
}), es = j(te.Separator, {
|
|
3506
3600
|
height: 1,
|
|
3507
3601
|
backgroundColor: "$gray200",
|
|
3508
3602
|
margin: 1
|
|
3509
|
-
}),
|
|
3603
|
+
}), ts = j(te.Item, Et), ns = j(te.Item, Et, {
|
|
3510
3604
|
padding: "$2",
|
|
3511
3605
|
display: "flex",
|
|
3512
3606
|
alignItems: "center",
|
|
3513
3607
|
gap: "$2"
|
|
3514
|
-
}),
|
|
3608
|
+
}), xi = j(te.CheckboxItem, Et), os = ({
|
|
3515
3609
|
value: e,
|
|
3516
3610
|
onChange: t,
|
|
3517
3611
|
children: n
|
|
3518
|
-
}) => /* @__PURE__ */
|
|
3519
|
-
|
|
3612
|
+
}) => /* @__PURE__ */ Be(
|
|
3613
|
+
xi,
|
|
3520
3614
|
{
|
|
3521
3615
|
checked: e,
|
|
3522
3616
|
onCheckedChange: t,
|
|
3523
3617
|
children: [
|
|
3524
|
-
/* @__PURE__ */ z(
|
|
3618
|
+
/* @__PURE__ */ z(vi, { children: /* @__PURE__ */ z(Nn, { size: "0.75rem" }) }),
|
|
3525
3619
|
n
|
|
3526
3620
|
]
|
|
3527
3621
|
}
|
|
3528
|
-
),
|
|
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({
|
|
3529
3707
|
display: "block",
|
|
3530
3708
|
width: "100%",
|
|
3531
3709
|
padding: "0.5rem 0.75rem",
|
|
@@ -3537,7 +3715,7 @@ const fe = j("div"), St = Bn(
|
|
|
3537
3715
|
"-webkit-appearance": "none",
|
|
3538
3716
|
"-moz-appearance": "none",
|
|
3539
3717
|
appearance: "none"
|
|
3540
|
-
}),
|
|
3718
|
+
}), Ei = He({
|
|
3541
3719
|
display: "block",
|
|
3542
3720
|
width: "100%",
|
|
3543
3721
|
background: "#fff",
|
|
@@ -3561,17 +3739,17 @@ const fe = j("div"), St = Bn(
|
|
|
3561
3739
|
}
|
|
3562
3740
|
}
|
|
3563
3741
|
}
|
|
3564
|
-
}),
|
|
3742
|
+
}), Ci = j("input", Ri), ki = j("div", Ei, {
|
|
3565
3743
|
display: "flex",
|
|
3566
3744
|
alignItems: "center",
|
|
3567
3745
|
gap: "$2",
|
|
3568
3746
|
width: "100%"
|
|
3569
|
-
}),
|
|
3570
|
-
({ type: e = "text", label: t, error: n, style:
|
|
3571
|
-
const c =
|
|
3572
|
-
return s = s || c, /* @__PURE__ */
|
|
3747
|
+
}), is = xe(
|
|
3748
|
+
({ type: e = "text", label: t, error: n, style: o, css: r, suffix: i, id: s, ...l }, a) => {
|
|
3749
|
+
const c = Fn();
|
|
3750
|
+
return s = s || c, /* @__PURE__ */ Be(ge, { css: r, children: [
|
|
3573
3751
|
t && /* @__PURE__ */ z(
|
|
3574
|
-
|
|
3752
|
+
ge,
|
|
3575
3753
|
{
|
|
3576
3754
|
as: "label",
|
|
3577
3755
|
htmlFor: s,
|
|
@@ -3583,9 +3761,9 @@ const fe = j("div"), St = Bn(
|
|
|
3583
3761
|
children: t
|
|
3584
3762
|
}
|
|
3585
3763
|
),
|
|
3586
|
-
/* @__PURE__ */
|
|
3764
|
+
/* @__PURE__ */ Be(ki, { error: !!n, children: [
|
|
3587
3765
|
/* @__PURE__ */ z(
|
|
3588
|
-
|
|
3766
|
+
Ci,
|
|
3589
3767
|
{
|
|
3590
3768
|
id: s,
|
|
3591
3769
|
ref: a,
|
|
@@ -3595,7 +3773,7 @@ const fe = j("div"), St = Bn(
|
|
|
3595
3773
|
}
|
|
3596
3774
|
),
|
|
3597
3775
|
i && /* @__PURE__ */ z(
|
|
3598
|
-
|
|
3776
|
+
ge,
|
|
3599
3777
|
{
|
|
3600
3778
|
css: {
|
|
3601
3779
|
fontSize: "$sm",
|
|
@@ -3606,60 +3784,64 @@ const fe = j("div"), St = Bn(
|
|
|
3606
3784
|
}
|
|
3607
3785
|
),
|
|
3608
3786
|
n && /* @__PURE__ */ z(
|
|
3609
|
-
|
|
3787
|
+
ge,
|
|
3610
3788
|
{
|
|
3611
|
-
as:
|
|
3789
|
+
as: jn,
|
|
3612
3790
|
css: { color: "$red600", marginRight: "$2" },
|
|
3613
3791
|
size: 24
|
|
3614
3792
|
}
|
|
3615
3793
|
)
|
|
3616
3794
|
] }),
|
|
3617
|
-
typeof n == "string" && /* @__PURE__ */ z(
|
|
3795
|
+
typeof n == "string" && /* @__PURE__ */ z(ge, { css: { color: "$red600", fontSize: "$sm", marginTop: "$2" }, children: n })
|
|
3618
3796
|
] });
|
|
3619
3797
|
}
|
|
3620
3798
|
);
|
|
3621
3799
|
export {
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3800
|
+
Me as A,
|
|
3801
|
+
ge as B,
|
|
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,
|
|
3823
|
+
He as c,
|
|
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,
|
|
3657
3839
|
j as s,
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
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
|
|
3665
3847
|
};
|