@pdf-viewer/react 1.15.0-beta.1 → 1.15.0-beta.3
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/{ToolbarLayout.module-5b9624f8.js → ToolbarLayout.module-533a6d5a.js} +1035 -988
- package/dist/components/RPController.js +4 -4
- package/dist/components/RPPages.js +4 -4
- package/dist/components/RPProvider.js +4 -4
- package/dist/components/layout/LayoutContainer.js +4 -4
- package/dist/components/layout/RPDefaultLayout.js +4 -4
- package/dist/components/layout/RPLayout.js +4 -4
- package/dist/components/layout/sidebar/RPSidebar.js +4 -4
- package/dist/components/layout/sidebar/Thumbnail.js +4 -4
- package/dist/components/layout/sidebar/Thumbnails.js +4 -4
- package/dist/components/layout/toolbar/DarkModeTool.js +2 -2
- package/dist/components/layout/toolbar/DocumentDialog.js +4 -4
- package/dist/components/layout/toolbar/DocumentProperties.js +3 -3
- package/dist/components/layout/toolbar/FileDownloadTool.js +4 -4
- package/dist/components/layout/toolbar/FileUploadTool.js +3 -3
- package/dist/components/layout/toolbar/FullScreenTool.js +3 -3
- package/dist/components/layout/toolbar/MenuItem.js +3 -3
- package/dist/components/layout/toolbar/MenuSeparator.js +3 -3
- package/dist/components/layout/toolbar/MostPageTool.js +4 -4
- package/dist/components/layout/toolbar/OtherTool.js +4 -4
- package/dist/components/layout/toolbar/Paginate.js +4 -4
- package/dist/components/layout/toolbar/PrintTool.js +4 -4
- package/dist/components/layout/toolbar/RPMenuItem.js +3 -3
- package/dist/components/layout/toolbar/RPMoreOptions.js +4 -4
- package/dist/components/layout/toolbar/RPToolbar.js +4 -4
- package/dist/components/layout/toolbar/RPToolbarEnd.js +4 -4
- package/dist/components/layout/toolbar/RotateTool.js +3 -3
- package/dist/components/layout/toolbar/ScrollModeTool.js +3 -3
- package/dist/components/layout/toolbar/SearchCloseButton.js +2 -2
- package/dist/components/layout/toolbar/SearchResultNavigator.js +4 -4
- package/dist/components/layout/toolbar/SearchTool.js +4 -4
- package/dist/components/layout/toolbar/SelectionModeTool.js +3 -3
- package/dist/components/layout/toolbar/ThumbnailTool.js +4 -4
- package/dist/components/layout/toolbar/ToolbarCustom.js +4 -4
- package/dist/components/layout/toolbar/ToolbarDefault.js +4 -4
- package/dist/components/layout/toolbar/ToolbarLayout.js +4 -4
- package/dist/components/layout/toolbar/ViewModeTool.js +3 -3
- package/dist/components/layout/toolbar/ZoomTool.js +4 -4
- package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +4 -4
- package/dist/components/layout/toolbar/tools/FileDownloadTool.js +4 -4
- package/dist/components/layout/toolbar/tools/FileUploadTool.js +2 -2
- package/dist/components/layout/toolbar/tools/FullScreenTool.js +2 -2
- package/dist/components/layout/toolbar/tools/InputPageTool.js +4 -4
- package/dist/components/layout/toolbar/tools/NextPageTool.js +4 -4
- package/dist/components/layout/toolbar/tools/PreviousPageTool.js +4 -4
- package/dist/components/layout/toolbar/tools/PrintTool.js +4 -4
- package/dist/components/layout/toolbar/tools/RotateClockwiseTool.js +2 -2
- package/dist/components/layout/toolbar/tools/RotateCounterclockwiseTool.js +2 -2
- package/dist/components/layout/toolbar/tools/SelectionModeSwitcherTool.js +2 -2
- package/dist/components/layout/toolbar/tools/ThemeSwitcherTool.js +2 -2
- package/dist/components/layout/toolbar/tools/ThumbnailTool.js +4 -4
- package/dist/components/layout/toolbar/tools/ZoomInTool.js +2 -2
- package/dist/components/layout/toolbar/tools/ZoomLevelDisplay.js +4 -4
- package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +4 -4
- package/dist/components/layout/toolbar/tools/ZoomOutTool.js +2 -2
- package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +4 -4
- package/dist/components/layout/toolbar/tools/defaults/RPVerticalBar.js +4 -4
- package/dist/components/layout/toolbar/tools/more-options/DocumentProperties.js +3 -3
- package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +4 -4
- package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +4 -4
- package/dist/components/layout/toolbar/tools/more-options/FullScreenTool.js +3 -3
- package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +4 -4
- package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +4 -4
- package/dist/components/layout/toolbar/tools/more-options/RotateTool.js +3 -3
- package/dist/components/layout/toolbar/tools/more-options/ScrollModeTool.js +3 -3
- package/dist/components/layout/toolbar/tools/more-options/SelectionModeTool.js +3 -3
- package/dist/components/layout/toolbar/tools/more-options/ViewModeTool.js +3 -3
- package/dist/components/page/AnnotationLayer.js +4 -4
- package/dist/components/page/CanvasLayer.js +4 -4
- package/dist/components/page/DualPage.js +4 -4
- package/dist/components/page/RPPage.js +4 -4
- package/dist/components/page/SinglePage.js +4 -4
- package/dist/components/page/TextHighlightLayer.js +4 -4
- package/dist/components/page/TextLayer.js +4 -4
- package/dist/components/ui/Checkbox.js +1 -1
- package/dist/components/ui/DropDown.js +3 -3
- package/dist/components/ui/LoadingIndicator.js +4 -4
- package/dist/components/ui/RPTooltip.js +201 -415
- package/dist/contexts/PaginationContext.js +4 -4
- package/dist/contexts/PrintContext.js +4 -4
- package/dist/contexts/RenderQueueProvider.js +4 -4
- package/dist/contexts/SearchContext.js +4 -4
- package/dist/contexts/ThumbnailsContext.js +4 -4
- package/dist/index-808ea7bf.js +1685 -0
- package/dist/index-a48ec088.js +1672 -0
- package/dist/{index-35c7f4a2.js → index-c9a2990a.js} +3 -3
- package/dist/main.js +4 -4
- package/dist/utils/hooks/useFileDownload.js +4 -4
- package/dist/utils/hooks/useLicense.js +1 -1
- package/dist/utils/hooks/usePaginate.js +4 -4
- package/dist/utils/hooks/usePresentPage.js +4 -4
- package/dist/utils/hooks/usePrint.js +4 -4
- package/dist/utils/hooks/useScrollToPage.js +4 -4
- package/dist/utils/hooks/useSearch.js +4 -4
- package/dist/utils/hooks/useThumbnail.js +4 -4
- package/dist/utils/hooks/useVirtualReactWindow.js +4 -4
- package/package.json +1 -1
- package/dist/floating-ui.react-dom-6b2fe0df.js +0 -1474
- package/dist/index-f563c6f0.js +0 -1889
package/dist/index-f563c6f0.js
DELETED
|
@@ -1,1889 +0,0 @@
|
|
|
1
|
-
import * as a from "react";
|
|
2
|
-
import j, { useState as Dn } from "react";
|
|
3
|
-
import { f as $e, P as O, c as pe, u as $, i as Ue, d as On, e as ht, a as S, b as _e, j as gt, h as Fn } from "./index-35c7f4a2.js";
|
|
4
|
-
import { jsx as d } from "react/jsx-runtime";
|
|
5
|
-
import { d as oe, u as kn, a as Ln, o as Gn, s as Kn, l as $n, f as Un, b as Bn, c as Wn, h as Hn, e as Be, D as Yn } from "./floating-ui.react-dom-6b2fe0df.js";
|
|
6
|
-
import Vn from "react-dom";
|
|
7
|
-
var Xn = "Portal", wt = a.forwardRef((e, t) => {
|
|
8
|
-
var i;
|
|
9
|
-
const { container: n, ...r } = e, [o, c] = a.useState(!1);
|
|
10
|
-
$e(() => c(!0), []);
|
|
11
|
-
const u = n || o && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
|
|
12
|
-
return u ? Vn.createPortal(/* @__PURE__ */ d(O.div, { ...r, ref: t }), u) : null;
|
|
13
|
-
});
|
|
14
|
-
wt.displayName = Xn;
|
|
15
|
-
function yt(e) {
|
|
16
|
-
const t = e + "CollectionProvider", [n, r] = pe(t), [o, c] = n(
|
|
17
|
-
t,
|
|
18
|
-
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
19
|
-
), u = (l) => {
|
|
20
|
-
const { scope: v, children: g } = l, b = j.useRef(null), y = j.useRef(/* @__PURE__ */ new Map()).current;
|
|
21
|
-
return /* @__PURE__ */ d(o, { scope: v, itemMap: y, collectionRef: b, children: g });
|
|
22
|
-
};
|
|
23
|
-
u.displayName = t;
|
|
24
|
-
const i = e + "CollectionSlot", h = Ue(i), m = j.forwardRef(
|
|
25
|
-
(l, v) => {
|
|
26
|
-
const { scope: g, children: b } = l, y = c(i, g), E = $(v, y.collectionRef);
|
|
27
|
-
return /* @__PURE__ */ d(h, { ref: E, children: b });
|
|
28
|
-
}
|
|
29
|
-
);
|
|
30
|
-
m.displayName = i;
|
|
31
|
-
const f = e + "CollectionItemSlot", s = "data-radix-collection-item", p = Ue(f), w = j.forwardRef(
|
|
32
|
-
(l, v) => {
|
|
33
|
-
const { scope: g, children: b, ...y } = l, E = j.useRef(null), R = $(v, E), P = c(f, g);
|
|
34
|
-
return j.useEffect(() => (P.itemMap.set(E, { ref: E, ...y }), () => void P.itemMap.delete(E))), /* @__PURE__ */ d(p, { [s]: "", ref: R, children: b });
|
|
35
|
-
}
|
|
36
|
-
);
|
|
37
|
-
w.displayName = f;
|
|
38
|
-
function C(l) {
|
|
39
|
-
const v = c(e + "CollectionConsumer", l);
|
|
40
|
-
return j.useCallback(() => {
|
|
41
|
-
const b = v.collectionRef.current;
|
|
42
|
-
if (!b)
|
|
43
|
-
return [];
|
|
44
|
-
const y = Array.from(b.querySelectorAll(`[${s}]`));
|
|
45
|
-
return Array.from(v.itemMap.values()).sort(
|
|
46
|
-
(P, I) => y.indexOf(P.ref.current) - y.indexOf(I.ref.current)
|
|
47
|
-
);
|
|
48
|
-
}, [v.collectionRef, v.itemMap]);
|
|
49
|
-
}
|
|
50
|
-
return [
|
|
51
|
-
{ Provider: u, Slot: m, ItemSlot: w },
|
|
52
|
-
C,
|
|
53
|
-
r
|
|
54
|
-
];
|
|
55
|
-
}
|
|
56
|
-
var jn = a.createContext(void 0);
|
|
57
|
-
function Ct(e) {
|
|
58
|
-
const t = a.useContext(jn);
|
|
59
|
-
return e || t || "ltr";
|
|
60
|
-
}
|
|
61
|
-
var Ne = 0;
|
|
62
|
-
function zn() {
|
|
63
|
-
a.useEffect(() => {
|
|
64
|
-
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
65
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ?? ot()), document.body.insertAdjacentElement("beforeend", e[1] ?? ot()), Ne++, () => {
|
|
66
|
-
Ne === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Ne--;
|
|
67
|
-
};
|
|
68
|
-
}, []);
|
|
69
|
-
}
|
|
70
|
-
function ot() {
|
|
71
|
-
const e = document.createElement("span");
|
|
72
|
-
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
73
|
-
}
|
|
74
|
-
var De = "focusScope.autoFocusOnMount", Oe = "focusScope.autoFocusOnUnmount", at = { bubbles: !1, cancelable: !0 }, Zn = "FocusScope", bt = a.forwardRef((e, t) => {
|
|
75
|
-
const {
|
|
76
|
-
loop: n = !1,
|
|
77
|
-
trapped: r = !1,
|
|
78
|
-
onMountAutoFocus: o,
|
|
79
|
-
onUnmountAutoFocus: c,
|
|
80
|
-
...u
|
|
81
|
-
} = e, [i, h] = a.useState(null), m = oe(o), f = oe(c), s = a.useRef(null), p = $(t, (l) => h(l)), w = a.useRef({
|
|
82
|
-
paused: !1,
|
|
83
|
-
pause() {
|
|
84
|
-
this.paused = !0;
|
|
85
|
-
},
|
|
86
|
-
resume() {
|
|
87
|
-
this.paused = !1;
|
|
88
|
-
}
|
|
89
|
-
}).current;
|
|
90
|
-
a.useEffect(() => {
|
|
91
|
-
if (r) {
|
|
92
|
-
let l = function(y) {
|
|
93
|
-
if (w.paused || !i)
|
|
94
|
-
return;
|
|
95
|
-
const E = y.target;
|
|
96
|
-
i.contains(E) ? s.current = E : V(s.current, { select: !0 });
|
|
97
|
-
}, v = function(y) {
|
|
98
|
-
if (w.paused || !i)
|
|
99
|
-
return;
|
|
100
|
-
const E = y.relatedTarget;
|
|
101
|
-
E !== null && (i.contains(E) || V(s.current, { select: !0 }));
|
|
102
|
-
}, g = function(y) {
|
|
103
|
-
if (document.activeElement === document.body)
|
|
104
|
-
for (const R of y)
|
|
105
|
-
R.removedNodes.length > 0 && V(i);
|
|
106
|
-
};
|
|
107
|
-
document.addEventListener("focusin", l), document.addEventListener("focusout", v);
|
|
108
|
-
const b = new MutationObserver(g);
|
|
109
|
-
return i && b.observe(i, { childList: !0, subtree: !0 }), () => {
|
|
110
|
-
document.removeEventListener("focusin", l), document.removeEventListener("focusout", v), b.disconnect();
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
}, [r, i, w.paused]), a.useEffect(() => {
|
|
114
|
-
if (i) {
|
|
115
|
-
it.add(w);
|
|
116
|
-
const l = document.activeElement;
|
|
117
|
-
if (!i.contains(l)) {
|
|
118
|
-
const g = new CustomEvent(De, at);
|
|
119
|
-
i.addEventListener(De, m), i.dispatchEvent(g), g.defaultPrevented || (qn(nr(Et(i)), { select: !0 }), document.activeElement === l && V(i));
|
|
120
|
-
}
|
|
121
|
-
return () => {
|
|
122
|
-
i.removeEventListener(De, m), setTimeout(() => {
|
|
123
|
-
const g = new CustomEvent(Oe, at);
|
|
124
|
-
i.addEventListener(Oe, f), i.dispatchEvent(g), g.defaultPrevented || V(l ?? document.body, { select: !0 }), i.removeEventListener(Oe, f), it.remove(w);
|
|
125
|
-
}, 0);
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
}, [i, m, f, w]);
|
|
129
|
-
const C = a.useCallback(
|
|
130
|
-
(l) => {
|
|
131
|
-
if (!n && !r || w.paused)
|
|
132
|
-
return;
|
|
133
|
-
const v = l.key === "Tab" && !l.altKey && !l.ctrlKey && !l.metaKey, g = document.activeElement;
|
|
134
|
-
if (v && g) {
|
|
135
|
-
const b = l.currentTarget, [y, E] = Qn(b);
|
|
136
|
-
y && E ? !l.shiftKey && g === E ? (l.preventDefault(), n && V(y, { select: !0 })) : l.shiftKey && g === y && (l.preventDefault(), n && V(E, { select: !0 })) : g === b && l.preventDefault();
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
[n, r, w.paused]
|
|
140
|
-
);
|
|
141
|
-
return /* @__PURE__ */ d(O.div, { tabIndex: -1, ...u, ref: p, onKeyDown: C });
|
|
142
|
-
});
|
|
143
|
-
bt.displayName = Zn;
|
|
144
|
-
function qn(e, { select: t = !1 } = {}) {
|
|
145
|
-
const n = document.activeElement;
|
|
146
|
-
for (const r of e)
|
|
147
|
-
if (V(r, { select: t }), document.activeElement !== n)
|
|
148
|
-
return;
|
|
149
|
-
}
|
|
150
|
-
function Qn(e) {
|
|
151
|
-
const t = Et(e), n = ct(t, e), r = ct(t.reverse(), e);
|
|
152
|
-
return [n, r];
|
|
153
|
-
}
|
|
154
|
-
function Et(e) {
|
|
155
|
-
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
156
|
-
acceptNode: (r) => {
|
|
157
|
-
const o = r.tagName === "INPUT" && r.type === "hidden";
|
|
158
|
-
return r.disabled || r.hidden || o ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
for (; n.nextNode(); )
|
|
162
|
-
t.push(n.currentNode);
|
|
163
|
-
return t;
|
|
164
|
-
}
|
|
165
|
-
function ct(e, t) {
|
|
166
|
-
for (const n of e)
|
|
167
|
-
if (!Jn(n, { upTo: t }))
|
|
168
|
-
return n;
|
|
169
|
-
}
|
|
170
|
-
function Jn(e, { upTo: t }) {
|
|
171
|
-
if (getComputedStyle(e).visibility === "hidden")
|
|
172
|
-
return !0;
|
|
173
|
-
for (; e; ) {
|
|
174
|
-
if (t !== void 0 && e === t)
|
|
175
|
-
return !1;
|
|
176
|
-
if (getComputedStyle(e).display === "none")
|
|
177
|
-
return !0;
|
|
178
|
-
e = e.parentElement;
|
|
179
|
-
}
|
|
180
|
-
return !1;
|
|
181
|
-
}
|
|
182
|
-
function er(e) {
|
|
183
|
-
return e instanceof HTMLInputElement && "select" in e;
|
|
184
|
-
}
|
|
185
|
-
function V(e, { select: t = !1 } = {}) {
|
|
186
|
-
if (e && e.focus) {
|
|
187
|
-
const n = document.activeElement;
|
|
188
|
-
e.focus({ preventScroll: !0 }), e !== n && er(e) && t && e.select();
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
var it = tr();
|
|
192
|
-
function tr() {
|
|
193
|
-
let e = [];
|
|
194
|
-
return {
|
|
195
|
-
add(t) {
|
|
196
|
-
const n = e[0];
|
|
197
|
-
t !== n && (n == null || n.pause()), e = ut(e, t), e.unshift(t);
|
|
198
|
-
},
|
|
199
|
-
remove(t) {
|
|
200
|
-
var n;
|
|
201
|
-
e = ut(e, t), (n = e[0]) == null || n.resume();
|
|
202
|
-
}
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
function ut(e, t) {
|
|
206
|
-
const n = [...e], r = n.indexOf(t);
|
|
207
|
-
return r !== -1 && n.splice(r, 1), n;
|
|
208
|
-
}
|
|
209
|
-
function nr(e) {
|
|
210
|
-
return e.filter((t) => t.tagName !== "A");
|
|
211
|
-
}
|
|
212
|
-
var rr = "Arrow", Mt = a.forwardRef((e, t) => {
|
|
213
|
-
const { children: n, width: r = 10, height: o = 5, ...c } = e;
|
|
214
|
-
return /* @__PURE__ */ d(
|
|
215
|
-
O.svg,
|
|
216
|
-
{
|
|
217
|
-
...c,
|
|
218
|
-
ref: t,
|
|
219
|
-
width: r,
|
|
220
|
-
height: o,
|
|
221
|
-
viewBox: "0 0 30 10",
|
|
222
|
-
preserveAspectRatio: "none",
|
|
223
|
-
children: e.asChild ? n : /* @__PURE__ */ d("polygon", { points: "0,0 30,0 15,10" })
|
|
224
|
-
}
|
|
225
|
-
);
|
|
226
|
-
});
|
|
227
|
-
Mt.displayName = rr;
|
|
228
|
-
var or = Mt, Ve = "Popper", [St, Rt] = pe(Ve), [ar, Pt] = St(Ve), _t = (e) => {
|
|
229
|
-
const { __scopePopper: t, children: n } = e, [r, o] = a.useState(null);
|
|
230
|
-
return /* @__PURE__ */ d(ar, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
231
|
-
};
|
|
232
|
-
_t.displayName = Ve;
|
|
233
|
-
var It = "PopperAnchor", At = a.forwardRef(
|
|
234
|
-
(e, t) => {
|
|
235
|
-
const { __scopePopper: n, virtualRef: r, ...o } = e, c = Pt(It, n), u = a.useRef(null), i = $(t, u), h = a.useRef(null);
|
|
236
|
-
return a.useEffect(() => {
|
|
237
|
-
const m = h.current;
|
|
238
|
-
h.current = (r == null ? void 0 : r.current) || u.current, m !== h.current && c.onAnchorChange(h.current);
|
|
239
|
-
}), r ? null : /* @__PURE__ */ d(O.div, { ...o, ref: i });
|
|
240
|
-
}
|
|
241
|
-
);
|
|
242
|
-
At.displayName = It;
|
|
243
|
-
var Xe = "PopperContent", [cr, ir] = St(Xe), xt = a.forwardRef(
|
|
244
|
-
(e, t) => {
|
|
245
|
-
var Y, ie, k, ue, tt, nt;
|
|
246
|
-
const {
|
|
247
|
-
__scopePopper: n,
|
|
248
|
-
side: r = "bottom",
|
|
249
|
-
sideOffset: o = 0,
|
|
250
|
-
align: c = "center",
|
|
251
|
-
alignOffset: u = 0,
|
|
252
|
-
arrowPadding: i = 0,
|
|
253
|
-
avoidCollisions: h = !0,
|
|
254
|
-
collisionBoundary: m = [],
|
|
255
|
-
collisionPadding: f = 0,
|
|
256
|
-
sticky: s = "partial",
|
|
257
|
-
hideWhenDetached: p = !1,
|
|
258
|
-
updatePositionStrategy: w = "optimized",
|
|
259
|
-
onPlaced: C,
|
|
260
|
-
...l
|
|
261
|
-
} = e, v = Pt(Xe, n), [g, b] = a.useState(null), y = $(t, (se) => b(se)), [E, R] = a.useState(null), P = On(E), I = (P == null ? void 0 : P.width) ?? 0, _ = (P == null ? void 0 : P.height) ?? 0, F = r + (c !== "center" ? "-" + c : ""), G = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, N = Array.isArray(m) ? m : [m], U = N.length > 0, H = {
|
|
262
|
-
padding: G,
|
|
263
|
-
boundary: N.filter(sr),
|
|
264
|
-
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
265
|
-
altBoundary: U
|
|
266
|
-
}, { refs: q, floatingStyles: Q, placement: K, isPositioned: J, middlewareData: D } = kn({
|
|
267
|
-
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
268
|
-
strategy: "fixed",
|
|
269
|
-
placement: F,
|
|
270
|
-
whileElementsMounted: (...se) => Ln(...se, {
|
|
271
|
-
animationFrame: w === "always"
|
|
272
|
-
}),
|
|
273
|
-
elements: {
|
|
274
|
-
reference: v.anchor
|
|
275
|
-
},
|
|
276
|
-
middleware: [
|
|
277
|
-
Gn({ mainAxis: o + _, alignmentAxis: u }),
|
|
278
|
-
h && Kn({
|
|
279
|
-
mainAxis: !0,
|
|
280
|
-
crossAxis: !1,
|
|
281
|
-
limiter: s === "partial" ? $n() : void 0,
|
|
282
|
-
...H
|
|
283
|
-
}),
|
|
284
|
-
h && Un({ ...H }),
|
|
285
|
-
Bn({
|
|
286
|
-
...H,
|
|
287
|
-
apply: ({ elements: se, rects: rt, availableWidth: An, availableHeight: xn }) => {
|
|
288
|
-
const { width: Tn, height: Nn } = rt.reference, we = se.floating.style;
|
|
289
|
-
we.setProperty("--radix-popper-available-width", `${An}px`), we.setProperty("--radix-popper-available-height", `${xn}px`), we.setProperty("--radix-popper-anchor-width", `${Tn}px`), we.setProperty("--radix-popper-anchor-height", `${Nn}px`);
|
|
290
|
-
}
|
|
291
|
-
}),
|
|
292
|
-
E && Wn({ element: E, padding: i }),
|
|
293
|
-
lr({ arrowWidth: I, arrowHeight: _ }),
|
|
294
|
-
p && Hn({ strategy: "referenceHidden", ...H })
|
|
295
|
-
]
|
|
296
|
-
}), [M, T] = Dt(K), A = oe(C);
|
|
297
|
-
$e(() => {
|
|
298
|
-
J && (A == null || A());
|
|
299
|
-
}, [J, A]);
|
|
300
|
-
const B = (Y = D.arrow) == null ? void 0 : Y.x, ae = (ie = D.arrow) == null ? void 0 : ie.y, ce = ((k = D.arrow) == null ? void 0 : k.centerOffset) !== 0, [ge, X] = a.useState();
|
|
301
|
-
return $e(() => {
|
|
302
|
-
g && X(window.getComputedStyle(g).zIndex);
|
|
303
|
-
}, [g]), /* @__PURE__ */ d(
|
|
304
|
-
"div",
|
|
305
|
-
{
|
|
306
|
-
ref: q.setFloating,
|
|
307
|
-
"data-radix-popper-content-wrapper": "",
|
|
308
|
-
style: {
|
|
309
|
-
...Q,
|
|
310
|
-
transform: J ? Q.transform : "translate(0, -200%)",
|
|
311
|
-
// keep off the page when measuring
|
|
312
|
-
minWidth: "max-content",
|
|
313
|
-
zIndex: ge,
|
|
314
|
-
"--radix-popper-transform-origin": [
|
|
315
|
-
(ue = D.transformOrigin) == null ? void 0 : ue.x,
|
|
316
|
-
(tt = D.transformOrigin) == null ? void 0 : tt.y
|
|
317
|
-
].join(" "),
|
|
318
|
-
// hide the content if using the hide middleware and should be hidden
|
|
319
|
-
// set visibility to hidden and disable pointer events so the UI behaves
|
|
320
|
-
// as if the PopperContent isn't there at all
|
|
321
|
-
...((nt = D.hide) == null ? void 0 : nt.referenceHidden) && {
|
|
322
|
-
visibility: "hidden",
|
|
323
|
-
pointerEvents: "none"
|
|
324
|
-
}
|
|
325
|
-
},
|
|
326
|
-
dir: e.dir,
|
|
327
|
-
children: /* @__PURE__ */ d(
|
|
328
|
-
cr,
|
|
329
|
-
{
|
|
330
|
-
scope: n,
|
|
331
|
-
placedSide: M,
|
|
332
|
-
onArrowChange: R,
|
|
333
|
-
arrowX: B,
|
|
334
|
-
arrowY: ae,
|
|
335
|
-
shouldHideArrow: ce,
|
|
336
|
-
children: /* @__PURE__ */ d(
|
|
337
|
-
O.div,
|
|
338
|
-
{
|
|
339
|
-
"data-side": M,
|
|
340
|
-
"data-align": T,
|
|
341
|
-
...l,
|
|
342
|
-
ref: y,
|
|
343
|
-
style: {
|
|
344
|
-
...l.style,
|
|
345
|
-
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
346
|
-
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
347
|
-
animation: J ? void 0 : "none"
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
)
|
|
351
|
-
}
|
|
352
|
-
)
|
|
353
|
-
}
|
|
354
|
-
);
|
|
355
|
-
}
|
|
356
|
-
);
|
|
357
|
-
xt.displayName = Xe;
|
|
358
|
-
var Tt = "PopperArrow", ur = {
|
|
359
|
-
top: "bottom",
|
|
360
|
-
right: "left",
|
|
361
|
-
bottom: "top",
|
|
362
|
-
left: "right"
|
|
363
|
-
}, Nt = a.forwardRef(function(t, n) {
|
|
364
|
-
const { __scopePopper: r, ...o } = t, c = ir(Tt, r), u = ur[c.placedSide];
|
|
365
|
-
return (
|
|
366
|
-
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
367
|
-
// doesn't report size as we'd expect on SVG elements.
|
|
368
|
-
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
369
|
-
/* @__PURE__ */ d(
|
|
370
|
-
"span",
|
|
371
|
-
{
|
|
372
|
-
ref: c.onArrowChange,
|
|
373
|
-
style: {
|
|
374
|
-
position: "absolute",
|
|
375
|
-
left: c.arrowX,
|
|
376
|
-
top: c.arrowY,
|
|
377
|
-
[u]: 0,
|
|
378
|
-
transformOrigin: {
|
|
379
|
-
top: "",
|
|
380
|
-
right: "0 0",
|
|
381
|
-
bottom: "center 0",
|
|
382
|
-
left: "100% 0"
|
|
383
|
-
}[c.placedSide],
|
|
384
|
-
transform: {
|
|
385
|
-
top: "translateY(100%)",
|
|
386
|
-
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
387
|
-
bottom: "rotate(180deg)",
|
|
388
|
-
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
389
|
-
}[c.placedSide],
|
|
390
|
-
visibility: c.shouldHideArrow ? "hidden" : void 0
|
|
391
|
-
},
|
|
392
|
-
children: /* @__PURE__ */ d(
|
|
393
|
-
or,
|
|
394
|
-
{
|
|
395
|
-
...o,
|
|
396
|
-
ref: n,
|
|
397
|
-
style: {
|
|
398
|
-
...o.style,
|
|
399
|
-
// ensures the element can be measured correctly (mostly for if SVG)
|
|
400
|
-
display: "block"
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
)
|
|
404
|
-
}
|
|
405
|
-
)
|
|
406
|
-
);
|
|
407
|
-
});
|
|
408
|
-
Nt.displayName = Tt;
|
|
409
|
-
function sr(e) {
|
|
410
|
-
return e !== null;
|
|
411
|
-
}
|
|
412
|
-
var lr = (e) => ({
|
|
413
|
-
name: "transformOrigin",
|
|
414
|
-
options: e,
|
|
415
|
-
fn(t) {
|
|
416
|
-
var v, g, b;
|
|
417
|
-
const { placement: n, rects: r, middlewareData: o } = t, u = ((v = o.arrow) == null ? void 0 : v.centerOffset) !== 0, i = u ? 0 : e.arrowWidth, h = u ? 0 : e.arrowHeight, [m, f] = Dt(n), s = { start: "0%", center: "50%", end: "100%" }[f], p = (((g = o.arrow) == null ? void 0 : g.x) ?? 0) + i / 2, w = (((b = o.arrow) == null ? void 0 : b.y) ?? 0) + h / 2;
|
|
418
|
-
let C = "", l = "";
|
|
419
|
-
return m === "bottom" ? (C = u ? s : `${p}px`, l = `${-h}px`) : m === "top" ? (C = u ? s : `${p}px`, l = `${r.floating.height + h}px`) : m === "right" ? (C = `${-h}px`, l = u ? s : `${w}px`) : m === "left" && (C = `${r.floating.width + h}px`, l = u ? s : `${w}px`), { data: { x: C, y: l } };
|
|
420
|
-
}
|
|
421
|
-
});
|
|
422
|
-
function Dt(e) {
|
|
423
|
-
const [t, n = "center"] = e.split("-");
|
|
424
|
-
return [t, n];
|
|
425
|
-
}
|
|
426
|
-
var dr = _t, fr = At, pr = xt, vr = Nt, Fe = "rovingFocusGroup.onEntryFocus", mr = { bubbles: !1, cancelable: !0 }, ve = "RovingFocusGroup", [We, Ot, hr] = yt(ve), [gr, Ft] = pe(
|
|
427
|
-
ve,
|
|
428
|
-
[hr]
|
|
429
|
-
), [wr, yr] = gr(ve), kt = a.forwardRef(
|
|
430
|
-
(e, t) => /* @__PURE__ */ d(We.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d(We.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d(Cr, { ...e, ref: t }) }) })
|
|
431
|
-
);
|
|
432
|
-
kt.displayName = ve;
|
|
433
|
-
var Cr = a.forwardRef((e, t) => {
|
|
434
|
-
const {
|
|
435
|
-
__scopeRovingFocusGroup: n,
|
|
436
|
-
orientation: r,
|
|
437
|
-
loop: o = !1,
|
|
438
|
-
dir: c,
|
|
439
|
-
currentTabStopId: u,
|
|
440
|
-
defaultCurrentTabStopId: i,
|
|
441
|
-
onCurrentTabStopIdChange: h,
|
|
442
|
-
onEntryFocus: m,
|
|
443
|
-
preventScrollOnEntryFocus: f = !1,
|
|
444
|
-
...s
|
|
445
|
-
} = e, p = a.useRef(null), w = $(t, p), C = Ct(c), [l, v] = ht({
|
|
446
|
-
prop: u,
|
|
447
|
-
defaultProp: i ?? null,
|
|
448
|
-
onChange: h,
|
|
449
|
-
caller: ve
|
|
450
|
-
}), [g, b] = a.useState(!1), y = oe(m), E = Ot(n), R = a.useRef(!1), [P, I] = a.useState(0);
|
|
451
|
-
return a.useEffect(() => {
|
|
452
|
-
const _ = p.current;
|
|
453
|
-
if (_)
|
|
454
|
-
return _.addEventListener(Fe, y), () => _.removeEventListener(Fe, y);
|
|
455
|
-
}, [y]), /* @__PURE__ */ d(
|
|
456
|
-
wr,
|
|
457
|
-
{
|
|
458
|
-
scope: n,
|
|
459
|
-
orientation: r,
|
|
460
|
-
dir: C,
|
|
461
|
-
loop: o,
|
|
462
|
-
currentTabStopId: l,
|
|
463
|
-
onItemFocus: a.useCallback(
|
|
464
|
-
(_) => v(_),
|
|
465
|
-
[v]
|
|
466
|
-
),
|
|
467
|
-
onItemShiftTab: a.useCallback(() => b(!0), []),
|
|
468
|
-
onFocusableItemAdd: a.useCallback(
|
|
469
|
-
() => I((_) => _ + 1),
|
|
470
|
-
[]
|
|
471
|
-
),
|
|
472
|
-
onFocusableItemRemove: a.useCallback(
|
|
473
|
-
() => I((_) => _ - 1),
|
|
474
|
-
[]
|
|
475
|
-
),
|
|
476
|
-
children: /* @__PURE__ */ d(
|
|
477
|
-
O.div,
|
|
478
|
-
{
|
|
479
|
-
tabIndex: g || P === 0 ? -1 : 0,
|
|
480
|
-
"data-orientation": r,
|
|
481
|
-
...s,
|
|
482
|
-
ref: w,
|
|
483
|
-
style: { outline: "none", ...e.style },
|
|
484
|
-
onMouseDown: S(e.onMouseDown, () => {
|
|
485
|
-
R.current = !0;
|
|
486
|
-
}),
|
|
487
|
-
onFocus: S(e.onFocus, (_) => {
|
|
488
|
-
const F = !R.current;
|
|
489
|
-
if (_.target === _.currentTarget && F && !g) {
|
|
490
|
-
const G = new CustomEvent(Fe, mr);
|
|
491
|
-
if (_.currentTarget.dispatchEvent(G), !G.defaultPrevented) {
|
|
492
|
-
const N = E().filter((K) => K.focusable), U = N.find((K) => K.active), H = N.find((K) => K.id === l), Q = [U, H, ...N].filter(
|
|
493
|
-
Boolean
|
|
494
|
-
).map((K) => K.ref.current);
|
|
495
|
-
Kt(Q, f);
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
R.current = !1;
|
|
499
|
-
}),
|
|
500
|
-
onBlur: S(e.onBlur, () => b(!1))
|
|
501
|
-
}
|
|
502
|
-
)
|
|
503
|
-
}
|
|
504
|
-
);
|
|
505
|
-
}), Lt = "RovingFocusGroupItem", Gt = a.forwardRef(
|
|
506
|
-
(e, t) => {
|
|
507
|
-
const {
|
|
508
|
-
__scopeRovingFocusGroup: n,
|
|
509
|
-
focusable: r = !0,
|
|
510
|
-
active: o = !1,
|
|
511
|
-
tabStopId: c,
|
|
512
|
-
children: u,
|
|
513
|
-
...i
|
|
514
|
-
} = e, h = Be(), m = c || h, f = yr(Lt, n), s = f.currentTabStopId === m, p = Ot(n), { onFocusableItemAdd: w, onFocusableItemRemove: C, currentTabStopId: l } = f;
|
|
515
|
-
return a.useEffect(() => {
|
|
516
|
-
if (r)
|
|
517
|
-
return w(), () => C();
|
|
518
|
-
}, [r, w, C]), /* @__PURE__ */ d(
|
|
519
|
-
We.ItemSlot,
|
|
520
|
-
{
|
|
521
|
-
scope: n,
|
|
522
|
-
id: m,
|
|
523
|
-
focusable: r,
|
|
524
|
-
active: o,
|
|
525
|
-
children: /* @__PURE__ */ d(
|
|
526
|
-
O.span,
|
|
527
|
-
{
|
|
528
|
-
tabIndex: s ? 0 : -1,
|
|
529
|
-
"data-orientation": f.orientation,
|
|
530
|
-
...i,
|
|
531
|
-
ref: t,
|
|
532
|
-
onMouseDown: S(e.onMouseDown, (v) => {
|
|
533
|
-
r ? f.onItemFocus(m) : v.preventDefault();
|
|
534
|
-
}),
|
|
535
|
-
onFocus: S(e.onFocus, () => f.onItemFocus(m)),
|
|
536
|
-
onKeyDown: S(e.onKeyDown, (v) => {
|
|
537
|
-
if (v.key === "Tab" && v.shiftKey) {
|
|
538
|
-
f.onItemShiftTab();
|
|
539
|
-
return;
|
|
540
|
-
}
|
|
541
|
-
if (v.target !== v.currentTarget)
|
|
542
|
-
return;
|
|
543
|
-
const g = Mr(v, f.orientation, f.dir);
|
|
544
|
-
if (g !== void 0) {
|
|
545
|
-
if (v.metaKey || v.ctrlKey || v.altKey || v.shiftKey)
|
|
546
|
-
return;
|
|
547
|
-
v.preventDefault();
|
|
548
|
-
let y = p().filter((E) => E.focusable).map((E) => E.ref.current);
|
|
549
|
-
if (g === "last")
|
|
550
|
-
y.reverse();
|
|
551
|
-
else if (g === "prev" || g === "next") {
|
|
552
|
-
g === "prev" && y.reverse();
|
|
553
|
-
const E = y.indexOf(v.currentTarget);
|
|
554
|
-
y = f.loop ? Sr(y, E + 1) : y.slice(E + 1);
|
|
555
|
-
}
|
|
556
|
-
setTimeout(() => Kt(y));
|
|
557
|
-
}
|
|
558
|
-
}),
|
|
559
|
-
children: typeof u == "function" ? u({ isCurrentTabStop: s, hasTabStop: l != null }) : u
|
|
560
|
-
}
|
|
561
|
-
)
|
|
562
|
-
}
|
|
563
|
-
);
|
|
564
|
-
}
|
|
565
|
-
);
|
|
566
|
-
Gt.displayName = Lt;
|
|
567
|
-
var br = {
|
|
568
|
-
ArrowLeft: "prev",
|
|
569
|
-
ArrowUp: "prev",
|
|
570
|
-
ArrowRight: "next",
|
|
571
|
-
ArrowDown: "next",
|
|
572
|
-
PageUp: "first",
|
|
573
|
-
Home: "first",
|
|
574
|
-
PageDown: "last",
|
|
575
|
-
End: "last"
|
|
576
|
-
};
|
|
577
|
-
function Er(e, t) {
|
|
578
|
-
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
579
|
-
}
|
|
580
|
-
function Mr(e, t, n) {
|
|
581
|
-
const r = Er(e.key, n);
|
|
582
|
-
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
|
|
583
|
-
return br[r];
|
|
584
|
-
}
|
|
585
|
-
function Kt(e, t = !1) {
|
|
586
|
-
const n = document.activeElement;
|
|
587
|
-
for (const r of e)
|
|
588
|
-
if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n))
|
|
589
|
-
return;
|
|
590
|
-
}
|
|
591
|
-
function Sr(e, t) {
|
|
592
|
-
return e.map((n, r) => e[(t + r) % e.length]);
|
|
593
|
-
}
|
|
594
|
-
var Rr = kt, Pr = Gt, _r = function(e) {
|
|
595
|
-
if (typeof document > "u")
|
|
596
|
-
return null;
|
|
597
|
-
var t = Array.isArray(e) ? e[0] : e;
|
|
598
|
-
return t.ownerDocument.body;
|
|
599
|
-
}, ee = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap(), Ce = {}, ke = 0, $t = function(e) {
|
|
600
|
-
return e && (e.host || $t(e.parentNode));
|
|
601
|
-
}, Ir = function(e, t) {
|
|
602
|
-
return t.map(function(n) {
|
|
603
|
-
if (e.contains(n))
|
|
604
|
-
return n;
|
|
605
|
-
var r = $t(n);
|
|
606
|
-
return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
|
|
607
|
-
}).filter(function(n) {
|
|
608
|
-
return !!n;
|
|
609
|
-
});
|
|
610
|
-
}, Ar = function(e, t, n, r) {
|
|
611
|
-
var o = Ir(t, Array.isArray(e) ? e : [e]);
|
|
612
|
-
Ce[n] || (Ce[n] = /* @__PURE__ */ new WeakMap());
|
|
613
|
-
var c = Ce[n], u = [], i = /* @__PURE__ */ new Set(), h = new Set(o), m = function(s) {
|
|
614
|
-
!s || i.has(s) || (i.add(s), m(s.parentNode));
|
|
615
|
-
};
|
|
616
|
-
o.forEach(m);
|
|
617
|
-
var f = function(s) {
|
|
618
|
-
!s || h.has(s) || Array.prototype.forEach.call(s.children, function(p) {
|
|
619
|
-
if (i.has(p))
|
|
620
|
-
f(p);
|
|
621
|
-
else
|
|
622
|
-
try {
|
|
623
|
-
var w = p.getAttribute(r), C = w !== null && w !== "false", l = (ee.get(p) || 0) + 1, v = (c.get(p) || 0) + 1;
|
|
624
|
-
ee.set(p, l), c.set(p, v), u.push(p), l === 1 && C && ye.set(p, !0), v === 1 && p.setAttribute(n, "true"), C || p.setAttribute(r, "true");
|
|
625
|
-
} catch (g) {
|
|
626
|
-
console.error("aria-hidden: cannot operate on ", p, g);
|
|
627
|
-
}
|
|
628
|
-
});
|
|
629
|
-
};
|
|
630
|
-
return f(t), i.clear(), ke++, function() {
|
|
631
|
-
u.forEach(function(s) {
|
|
632
|
-
var p = ee.get(s) - 1, w = c.get(s) - 1;
|
|
633
|
-
ee.set(s, p), c.set(s, w), p || (ye.has(s) || s.removeAttribute(r), ye.delete(s)), w || s.removeAttribute(n);
|
|
634
|
-
}), ke--, ke || (ee = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap(), Ce = {});
|
|
635
|
-
};
|
|
636
|
-
}, xr = function(e, t, n) {
|
|
637
|
-
n === void 0 && (n = "data-aria-hidden");
|
|
638
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), o = t || _r(e);
|
|
639
|
-
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Ar(r, o, n, "aria-hidden")) : function() {
|
|
640
|
-
return null;
|
|
641
|
-
};
|
|
642
|
-
}, W = function() {
|
|
643
|
-
return W = Object.assign || function(t) {
|
|
644
|
-
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
645
|
-
n = arguments[r];
|
|
646
|
-
for (var c in n)
|
|
647
|
-
Object.prototype.hasOwnProperty.call(n, c) && (t[c] = n[c]);
|
|
648
|
-
}
|
|
649
|
-
return t;
|
|
650
|
-
}, W.apply(this, arguments);
|
|
651
|
-
};
|
|
652
|
-
function Ut(e, t) {
|
|
653
|
-
var n = {};
|
|
654
|
-
for (var r in e)
|
|
655
|
-
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
656
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
657
|
-
for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
|
|
658
|
-
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
659
|
-
return n;
|
|
660
|
-
}
|
|
661
|
-
function Tr(e, t, n) {
|
|
662
|
-
if (n || arguments.length === 2)
|
|
663
|
-
for (var r = 0, o = t.length, c; r < o; r++)
|
|
664
|
-
(c || !(r in t)) && (c || (c = Array.prototype.slice.call(t, 0, r)), c[r] = t[r]);
|
|
665
|
-
return e.concat(c || Array.prototype.slice.call(t));
|
|
666
|
-
}
|
|
667
|
-
var Me = "right-scroll-bar-position", Se = "width-before-scroll-bar", Nr = "with-scroll-bars-hidden", Dr = "--removed-body-scroll-bar-size";
|
|
668
|
-
function Le(e, t) {
|
|
669
|
-
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
670
|
-
}
|
|
671
|
-
function Or(e, t) {
|
|
672
|
-
var n = Dn(function() {
|
|
673
|
-
return {
|
|
674
|
-
// value
|
|
675
|
-
value: e,
|
|
676
|
-
// last callback
|
|
677
|
-
callback: t,
|
|
678
|
-
// "memoized" public interface
|
|
679
|
-
facade: {
|
|
680
|
-
get current() {
|
|
681
|
-
return n.value;
|
|
682
|
-
},
|
|
683
|
-
set current(r) {
|
|
684
|
-
var o = n.value;
|
|
685
|
-
o !== r && (n.value = r, n.callback(r, o));
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
};
|
|
689
|
-
})[0];
|
|
690
|
-
return n.callback = t, n.facade;
|
|
691
|
-
}
|
|
692
|
-
var Fr = typeof window < "u" ? a.useLayoutEffect : a.useEffect, st = /* @__PURE__ */ new WeakMap();
|
|
693
|
-
function kr(e, t) {
|
|
694
|
-
var n = Or(t || null, function(r) {
|
|
695
|
-
return e.forEach(function(o) {
|
|
696
|
-
return Le(o, r);
|
|
697
|
-
});
|
|
698
|
-
});
|
|
699
|
-
return Fr(function() {
|
|
700
|
-
var r = st.get(n);
|
|
701
|
-
if (r) {
|
|
702
|
-
var o = new Set(r), c = new Set(e), u = n.current;
|
|
703
|
-
o.forEach(function(i) {
|
|
704
|
-
c.has(i) || Le(i, null);
|
|
705
|
-
}), c.forEach(function(i) {
|
|
706
|
-
o.has(i) || Le(i, u);
|
|
707
|
-
});
|
|
708
|
-
}
|
|
709
|
-
st.set(n, e);
|
|
710
|
-
}, [e]), n;
|
|
711
|
-
}
|
|
712
|
-
function Lr(e) {
|
|
713
|
-
return e;
|
|
714
|
-
}
|
|
715
|
-
function Gr(e, t) {
|
|
716
|
-
t === void 0 && (t = Lr);
|
|
717
|
-
var n = [], r = !1, o = {
|
|
718
|
-
read: function() {
|
|
719
|
-
if (r)
|
|
720
|
-
throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
721
|
-
return n.length ? n[n.length - 1] : e;
|
|
722
|
-
},
|
|
723
|
-
useMedium: function(c) {
|
|
724
|
-
var u = t(c, r);
|
|
725
|
-
return n.push(u), function() {
|
|
726
|
-
n = n.filter(function(i) {
|
|
727
|
-
return i !== u;
|
|
728
|
-
});
|
|
729
|
-
};
|
|
730
|
-
},
|
|
731
|
-
assignSyncMedium: function(c) {
|
|
732
|
-
for (r = !0; n.length; ) {
|
|
733
|
-
var u = n;
|
|
734
|
-
n = [], u.forEach(c);
|
|
735
|
-
}
|
|
736
|
-
n = {
|
|
737
|
-
push: function(i) {
|
|
738
|
-
return c(i);
|
|
739
|
-
},
|
|
740
|
-
filter: function() {
|
|
741
|
-
return n;
|
|
742
|
-
}
|
|
743
|
-
};
|
|
744
|
-
},
|
|
745
|
-
assignMedium: function(c) {
|
|
746
|
-
r = !0;
|
|
747
|
-
var u = [];
|
|
748
|
-
if (n.length) {
|
|
749
|
-
var i = n;
|
|
750
|
-
n = [], i.forEach(c), u = n;
|
|
751
|
-
}
|
|
752
|
-
var h = function() {
|
|
753
|
-
var f = u;
|
|
754
|
-
u = [], f.forEach(c);
|
|
755
|
-
}, m = function() {
|
|
756
|
-
return Promise.resolve().then(h);
|
|
757
|
-
};
|
|
758
|
-
m(), n = {
|
|
759
|
-
push: function(f) {
|
|
760
|
-
u.push(f), m();
|
|
761
|
-
},
|
|
762
|
-
filter: function(f) {
|
|
763
|
-
return u = u.filter(f), n;
|
|
764
|
-
}
|
|
765
|
-
};
|
|
766
|
-
}
|
|
767
|
-
};
|
|
768
|
-
return o;
|
|
769
|
-
}
|
|
770
|
-
function Kr(e) {
|
|
771
|
-
e === void 0 && (e = {});
|
|
772
|
-
var t = Gr(null);
|
|
773
|
-
return t.options = W({ async: !0, ssr: !1 }, e), t;
|
|
774
|
-
}
|
|
775
|
-
var Bt = function(e) {
|
|
776
|
-
var t = e.sideCar, n = Ut(e, ["sideCar"]);
|
|
777
|
-
if (!t)
|
|
778
|
-
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
779
|
-
var r = t.read();
|
|
780
|
-
if (!r)
|
|
781
|
-
throw new Error("Sidecar medium not found");
|
|
782
|
-
return a.createElement(r, W({}, n));
|
|
783
|
-
};
|
|
784
|
-
Bt.isSideCarExport = !0;
|
|
785
|
-
function $r(e, t) {
|
|
786
|
-
return e.useMedium(t), Bt;
|
|
787
|
-
}
|
|
788
|
-
var Wt = Kr(), Ge = function() {
|
|
789
|
-
}, Ie = a.forwardRef(function(e, t) {
|
|
790
|
-
var n = a.useRef(null), r = a.useState({
|
|
791
|
-
onScrollCapture: Ge,
|
|
792
|
-
onWheelCapture: Ge,
|
|
793
|
-
onTouchMoveCapture: Ge
|
|
794
|
-
}), o = r[0], c = r[1], u = e.forwardProps, i = e.children, h = e.className, m = e.removeScrollBar, f = e.enabled, s = e.shards, p = e.sideCar, w = e.noRelative, C = e.noIsolation, l = e.inert, v = e.allowPinchZoom, g = e.as, b = g === void 0 ? "div" : g, y = e.gapMode, E = Ut(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), R = p, P = kr([n, t]), I = W(W({}, E), o);
|
|
795
|
-
return a.createElement(
|
|
796
|
-
a.Fragment,
|
|
797
|
-
null,
|
|
798
|
-
f && a.createElement(R, { sideCar: Wt, removeScrollBar: m, shards: s, noRelative: w, noIsolation: C, inert: l, setCallbacks: c, allowPinchZoom: !!v, lockRef: n, gapMode: y }),
|
|
799
|
-
u ? a.cloneElement(a.Children.only(i), W(W({}, I), { ref: P })) : a.createElement(b, W({}, I, { className: h, ref: P }), i)
|
|
800
|
-
);
|
|
801
|
-
});
|
|
802
|
-
Ie.defaultProps = {
|
|
803
|
-
enabled: !0,
|
|
804
|
-
removeScrollBar: !0,
|
|
805
|
-
inert: !1
|
|
806
|
-
};
|
|
807
|
-
Ie.classNames = {
|
|
808
|
-
fullWidth: Se,
|
|
809
|
-
zeroRight: Me
|
|
810
|
-
};
|
|
811
|
-
var lt, Ur = function() {
|
|
812
|
-
if (lt)
|
|
813
|
-
return lt;
|
|
814
|
-
if (typeof __webpack_nonce__ < "u")
|
|
815
|
-
return __webpack_nonce__;
|
|
816
|
-
};
|
|
817
|
-
function Br() {
|
|
818
|
-
if (!document)
|
|
819
|
-
return null;
|
|
820
|
-
var e = document.createElement("style");
|
|
821
|
-
e.type = "text/css";
|
|
822
|
-
var t = Ur();
|
|
823
|
-
return t && e.setAttribute("nonce", t), e;
|
|
824
|
-
}
|
|
825
|
-
function Wr(e, t) {
|
|
826
|
-
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
827
|
-
}
|
|
828
|
-
function Hr(e) {
|
|
829
|
-
var t = document.head || document.getElementsByTagName("head")[0];
|
|
830
|
-
t.appendChild(e);
|
|
831
|
-
}
|
|
832
|
-
var Yr = function() {
|
|
833
|
-
var e = 0, t = null;
|
|
834
|
-
return {
|
|
835
|
-
add: function(n) {
|
|
836
|
-
e == 0 && (t = Br()) && (Wr(t, n), Hr(t)), e++;
|
|
837
|
-
},
|
|
838
|
-
remove: function() {
|
|
839
|
-
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
840
|
-
}
|
|
841
|
-
};
|
|
842
|
-
}, Vr = function() {
|
|
843
|
-
var e = Yr();
|
|
844
|
-
return function(t, n) {
|
|
845
|
-
a.useEffect(function() {
|
|
846
|
-
return e.add(t), function() {
|
|
847
|
-
e.remove();
|
|
848
|
-
};
|
|
849
|
-
}, [t && n]);
|
|
850
|
-
};
|
|
851
|
-
}, Ht = function() {
|
|
852
|
-
var e = Vr(), t = function(n) {
|
|
853
|
-
var r = n.styles, o = n.dynamic;
|
|
854
|
-
return e(r, o), null;
|
|
855
|
-
};
|
|
856
|
-
return t;
|
|
857
|
-
}, Xr = {
|
|
858
|
-
left: 0,
|
|
859
|
-
top: 0,
|
|
860
|
-
right: 0,
|
|
861
|
-
gap: 0
|
|
862
|
-
}, Ke = function(e) {
|
|
863
|
-
return parseInt(e || "", 10) || 0;
|
|
864
|
-
}, jr = function(e) {
|
|
865
|
-
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
866
|
-
return [Ke(n), Ke(r), Ke(o)];
|
|
867
|
-
}, zr = function(e) {
|
|
868
|
-
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
869
|
-
return Xr;
|
|
870
|
-
var t = jr(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
871
|
-
return {
|
|
872
|
-
left: t[0],
|
|
873
|
-
top: t[1],
|
|
874
|
-
right: t[2],
|
|
875
|
-
gap: Math.max(0, r - n + t[2] - t[0])
|
|
876
|
-
};
|
|
877
|
-
}, Zr = Ht(), re = "data-scroll-locked", qr = function(e, t, n, r) {
|
|
878
|
-
var o = e.left, c = e.top, u = e.right, i = e.gap;
|
|
879
|
-
return n === void 0 && (n = "margin"), `
|
|
880
|
-
.`.concat(Nr, ` {
|
|
881
|
-
overflow: hidden `).concat(r, `;
|
|
882
|
-
padding-right: `).concat(i, "px ").concat(r, `;
|
|
883
|
-
}
|
|
884
|
-
body[`).concat(re, `] {
|
|
885
|
-
overflow: hidden `).concat(r, `;
|
|
886
|
-
overscroll-behavior: contain;
|
|
887
|
-
`).concat([
|
|
888
|
-
t && "position: relative ".concat(r, ";"),
|
|
889
|
-
n === "margin" && `
|
|
890
|
-
padding-left: `.concat(o, `px;
|
|
891
|
-
padding-top: `).concat(c, `px;
|
|
892
|
-
padding-right: `).concat(u, `px;
|
|
893
|
-
margin-left:0;
|
|
894
|
-
margin-top:0;
|
|
895
|
-
margin-right: `).concat(i, "px ").concat(r, `;
|
|
896
|
-
`),
|
|
897
|
-
n === "padding" && "padding-right: ".concat(i, "px ").concat(r, ";")
|
|
898
|
-
].filter(Boolean).join(""), `
|
|
899
|
-
}
|
|
900
|
-
|
|
901
|
-
.`).concat(Me, ` {
|
|
902
|
-
right: `).concat(i, "px ").concat(r, `;
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
.`).concat(Se, ` {
|
|
906
|
-
margin-right: `).concat(i, "px ").concat(r, `;
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
.`).concat(Me, " .").concat(Me, ` {
|
|
910
|
-
right: 0 `).concat(r, `;
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
.`).concat(Se, " .").concat(Se, ` {
|
|
914
|
-
margin-right: 0 `).concat(r, `;
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
body[`).concat(re, `] {
|
|
918
|
-
`).concat(Dr, ": ").concat(i, `px;
|
|
919
|
-
}
|
|
920
|
-
`);
|
|
921
|
-
}, dt = function() {
|
|
922
|
-
var e = parseInt(document.body.getAttribute(re) || "0", 10);
|
|
923
|
-
return isFinite(e) ? e : 0;
|
|
924
|
-
}, Qr = function() {
|
|
925
|
-
a.useEffect(function() {
|
|
926
|
-
return document.body.setAttribute(re, (dt() + 1).toString()), function() {
|
|
927
|
-
var e = dt() - 1;
|
|
928
|
-
e <= 0 ? document.body.removeAttribute(re) : document.body.setAttribute(re, e.toString());
|
|
929
|
-
};
|
|
930
|
-
}, []);
|
|
931
|
-
}, Jr = function(e) {
|
|
932
|
-
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
933
|
-
Qr();
|
|
934
|
-
var c = a.useMemo(function() {
|
|
935
|
-
return zr(o);
|
|
936
|
-
}, [o]);
|
|
937
|
-
return a.createElement(Zr, { styles: qr(c, !t, o, n ? "" : "!important") });
|
|
938
|
-
}, He = !1;
|
|
939
|
-
if (typeof window < "u")
|
|
940
|
-
try {
|
|
941
|
-
var be = Object.defineProperty({}, "passive", {
|
|
942
|
-
get: function() {
|
|
943
|
-
return He = !0, !0;
|
|
944
|
-
}
|
|
945
|
-
});
|
|
946
|
-
window.addEventListener("test", be, be), window.removeEventListener("test", be, be);
|
|
947
|
-
} catch {
|
|
948
|
-
He = !1;
|
|
949
|
-
}
|
|
950
|
-
var te = He ? { passive: !1 } : !1, eo = function(e) {
|
|
951
|
-
return e.tagName === "TEXTAREA";
|
|
952
|
-
}, Yt = function(e, t) {
|
|
953
|
-
if (!(e instanceof Element))
|
|
954
|
-
return !1;
|
|
955
|
-
var n = window.getComputedStyle(e);
|
|
956
|
-
return (
|
|
957
|
-
// not-not-scrollable
|
|
958
|
-
n[t] !== "hidden" && // contains scroll inside self
|
|
959
|
-
!(n.overflowY === n.overflowX && !eo(e) && n[t] === "visible")
|
|
960
|
-
);
|
|
961
|
-
}, to = function(e) {
|
|
962
|
-
return Yt(e, "overflowY");
|
|
963
|
-
}, no = function(e) {
|
|
964
|
-
return Yt(e, "overflowX");
|
|
965
|
-
}, ft = function(e, t) {
|
|
966
|
-
var n = t.ownerDocument, r = t;
|
|
967
|
-
do {
|
|
968
|
-
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
969
|
-
var o = Vt(e, r);
|
|
970
|
-
if (o) {
|
|
971
|
-
var c = Xt(e, r), u = c[1], i = c[2];
|
|
972
|
-
if (u > i)
|
|
973
|
-
return !0;
|
|
974
|
-
}
|
|
975
|
-
r = r.parentNode;
|
|
976
|
-
} while (r && r !== n.body);
|
|
977
|
-
return !1;
|
|
978
|
-
}, ro = function(e) {
|
|
979
|
-
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
980
|
-
return [
|
|
981
|
-
t,
|
|
982
|
-
n,
|
|
983
|
-
r
|
|
984
|
-
];
|
|
985
|
-
}, oo = function(e) {
|
|
986
|
-
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
987
|
-
return [
|
|
988
|
-
t,
|
|
989
|
-
n,
|
|
990
|
-
r
|
|
991
|
-
];
|
|
992
|
-
}, Vt = function(e, t) {
|
|
993
|
-
return e === "v" ? to(t) : no(t);
|
|
994
|
-
}, Xt = function(e, t) {
|
|
995
|
-
return e === "v" ? ro(t) : oo(t);
|
|
996
|
-
}, ao = function(e, t) {
|
|
997
|
-
return e === "h" && t === "rtl" ? -1 : 1;
|
|
998
|
-
}, co = function(e, t, n, r, o) {
|
|
999
|
-
var c = ao(e, window.getComputedStyle(t).direction), u = c * r, i = n.target, h = t.contains(i), m = !1, f = u > 0, s = 0, p = 0;
|
|
1000
|
-
do {
|
|
1001
|
-
if (!i)
|
|
1002
|
-
break;
|
|
1003
|
-
var w = Xt(e, i), C = w[0], l = w[1], v = w[2], g = l - v - c * C;
|
|
1004
|
-
(C || g) && Vt(e, i) && (s += g, p += C);
|
|
1005
|
-
var b = i.parentNode;
|
|
1006
|
-
i = b && b.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? b.host : b;
|
|
1007
|
-
} while (
|
|
1008
|
-
// portaled content
|
|
1009
|
-
!h && i !== document.body || // self content
|
|
1010
|
-
h && (t.contains(i) || t === i)
|
|
1011
|
-
);
|
|
1012
|
-
return (f && (o && Math.abs(s) < 1 || !o && u > s) || !f && (o && Math.abs(p) < 1 || !o && -u > p)) && (m = !0), m;
|
|
1013
|
-
}, Ee = function(e) {
|
|
1014
|
-
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
1015
|
-
}, pt = function(e) {
|
|
1016
|
-
return [e.deltaX, e.deltaY];
|
|
1017
|
-
}, vt = function(e) {
|
|
1018
|
-
return e && "current" in e ? e.current : e;
|
|
1019
|
-
}, io = function(e, t) {
|
|
1020
|
-
return e[0] === t[0] && e[1] === t[1];
|
|
1021
|
-
}, uo = function(e) {
|
|
1022
|
-
return `
|
|
1023
|
-
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
1024
|
-
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
1025
|
-
`);
|
|
1026
|
-
}, so = 0, ne = [];
|
|
1027
|
-
function lo(e) {
|
|
1028
|
-
var t = a.useRef([]), n = a.useRef([0, 0]), r = a.useRef(), o = a.useState(so++)[0], c = a.useState(Ht)[0], u = a.useRef(e);
|
|
1029
|
-
a.useEffect(function() {
|
|
1030
|
-
u.current = e;
|
|
1031
|
-
}, [e]), a.useEffect(function() {
|
|
1032
|
-
if (e.inert) {
|
|
1033
|
-
document.body.classList.add("block-interactivity-".concat(o));
|
|
1034
|
-
var l = Tr([e.lockRef.current], (e.shards || []).map(vt), !0).filter(Boolean);
|
|
1035
|
-
return l.forEach(function(v) {
|
|
1036
|
-
return v.classList.add("allow-interactivity-".concat(o));
|
|
1037
|
-
}), function() {
|
|
1038
|
-
document.body.classList.remove("block-interactivity-".concat(o)), l.forEach(function(v) {
|
|
1039
|
-
return v.classList.remove("allow-interactivity-".concat(o));
|
|
1040
|
-
});
|
|
1041
|
-
};
|
|
1042
|
-
}
|
|
1043
|
-
}, [e.inert, e.lockRef.current, e.shards]);
|
|
1044
|
-
var i = a.useCallback(function(l, v) {
|
|
1045
|
-
if ("touches" in l && l.touches.length === 2 || l.type === "wheel" && l.ctrlKey)
|
|
1046
|
-
return !u.current.allowPinchZoom;
|
|
1047
|
-
var g = Ee(l), b = n.current, y = "deltaX" in l ? l.deltaX : b[0] - g[0], E = "deltaY" in l ? l.deltaY : b[1] - g[1], R, P = l.target, I = Math.abs(y) > Math.abs(E) ? "h" : "v";
|
|
1048
|
-
if ("touches" in l && I === "h" && P.type === "range")
|
|
1049
|
-
return !1;
|
|
1050
|
-
var _ = window.getSelection(), F = _ && _.anchorNode, G = F ? F === P || F.contains(P) : !1;
|
|
1051
|
-
if (G)
|
|
1052
|
-
return !1;
|
|
1053
|
-
var N = ft(I, P);
|
|
1054
|
-
if (!N)
|
|
1055
|
-
return !0;
|
|
1056
|
-
if (N ? R = I : (R = I === "v" ? "h" : "v", N = ft(I, P)), !N)
|
|
1057
|
-
return !1;
|
|
1058
|
-
if (!r.current && "changedTouches" in l && (y || E) && (r.current = R), !R)
|
|
1059
|
-
return !0;
|
|
1060
|
-
var U = r.current || R;
|
|
1061
|
-
return co(U, v, l, U === "h" ? y : E, !0);
|
|
1062
|
-
}, []), h = a.useCallback(function(l) {
|
|
1063
|
-
var v = l;
|
|
1064
|
-
if (!(!ne.length || ne[ne.length - 1] !== c)) {
|
|
1065
|
-
var g = "deltaY" in v ? pt(v) : Ee(v), b = t.current.filter(function(R) {
|
|
1066
|
-
return R.name === v.type && (R.target === v.target || v.target === R.shadowParent) && io(R.delta, g);
|
|
1067
|
-
})[0];
|
|
1068
|
-
if (b && b.should) {
|
|
1069
|
-
v.cancelable && v.preventDefault();
|
|
1070
|
-
return;
|
|
1071
|
-
}
|
|
1072
|
-
if (!b) {
|
|
1073
|
-
var y = (u.current.shards || []).map(vt).filter(Boolean).filter(function(R) {
|
|
1074
|
-
return R.contains(v.target);
|
|
1075
|
-
}), E = y.length > 0 ? i(v, y[0]) : !u.current.noIsolation;
|
|
1076
|
-
E && v.cancelable && v.preventDefault();
|
|
1077
|
-
}
|
|
1078
|
-
}
|
|
1079
|
-
}, []), m = a.useCallback(function(l, v, g, b) {
|
|
1080
|
-
var y = { name: l, delta: v, target: g, should: b, shadowParent: fo(g) };
|
|
1081
|
-
t.current.push(y), setTimeout(function() {
|
|
1082
|
-
t.current = t.current.filter(function(E) {
|
|
1083
|
-
return E !== y;
|
|
1084
|
-
});
|
|
1085
|
-
}, 1);
|
|
1086
|
-
}, []), f = a.useCallback(function(l) {
|
|
1087
|
-
n.current = Ee(l), r.current = void 0;
|
|
1088
|
-
}, []), s = a.useCallback(function(l) {
|
|
1089
|
-
m(l.type, pt(l), l.target, i(l, e.lockRef.current));
|
|
1090
|
-
}, []), p = a.useCallback(function(l) {
|
|
1091
|
-
m(l.type, Ee(l), l.target, i(l, e.lockRef.current));
|
|
1092
|
-
}, []);
|
|
1093
|
-
a.useEffect(function() {
|
|
1094
|
-
return ne.push(c), e.setCallbacks({
|
|
1095
|
-
onScrollCapture: s,
|
|
1096
|
-
onWheelCapture: s,
|
|
1097
|
-
onTouchMoveCapture: p
|
|
1098
|
-
}), document.addEventListener("wheel", h, te), document.addEventListener("touchmove", h, te), document.addEventListener("touchstart", f, te), function() {
|
|
1099
|
-
ne = ne.filter(function(l) {
|
|
1100
|
-
return l !== c;
|
|
1101
|
-
}), document.removeEventListener("wheel", h, te), document.removeEventListener("touchmove", h, te), document.removeEventListener("touchstart", f, te);
|
|
1102
|
-
};
|
|
1103
|
-
}, []);
|
|
1104
|
-
var w = e.removeScrollBar, C = e.inert;
|
|
1105
|
-
return a.createElement(
|
|
1106
|
-
a.Fragment,
|
|
1107
|
-
null,
|
|
1108
|
-
C ? a.createElement(c, { styles: uo(o) }) : null,
|
|
1109
|
-
w ? a.createElement(Jr, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
1110
|
-
);
|
|
1111
|
-
}
|
|
1112
|
-
function fo(e) {
|
|
1113
|
-
for (var t = null; e !== null; )
|
|
1114
|
-
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
1115
|
-
return t;
|
|
1116
|
-
}
|
|
1117
|
-
const po = $r(Wt, lo);
|
|
1118
|
-
var jt = a.forwardRef(function(e, t) {
|
|
1119
|
-
return a.createElement(Ie, W({}, e, { ref: t, sideCar: po }));
|
|
1120
|
-
});
|
|
1121
|
-
jt.classNames = Ie.classNames;
|
|
1122
|
-
const vo = jt;
|
|
1123
|
-
var Ye = ["Enter", " "], mo = ["ArrowDown", "PageUp", "Home"], zt = ["ArrowUp", "PageDown", "End"], ho = [...mo, ...zt], go = {
|
|
1124
|
-
ltr: [...Ye, "ArrowRight"],
|
|
1125
|
-
rtl: [...Ye, "ArrowLeft"]
|
|
1126
|
-
}, wo = {
|
|
1127
|
-
ltr: ["ArrowLeft"],
|
|
1128
|
-
rtl: ["ArrowRight"]
|
|
1129
|
-
}, me = "Menu", [de, yo, Co] = yt(me), [z, Zt] = pe(me, [
|
|
1130
|
-
Co,
|
|
1131
|
-
Rt,
|
|
1132
|
-
Ft
|
|
1133
|
-
]), Ae = Rt(), qt = Ft(), [bo, Z] = z(me), [Eo, he] = z(me), Qt = (e) => {
|
|
1134
|
-
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: c, modal: u = !0 } = e, i = Ae(t), [h, m] = a.useState(null), f = a.useRef(!1), s = oe(c), p = Ct(o);
|
|
1135
|
-
return a.useEffect(() => {
|
|
1136
|
-
const w = () => {
|
|
1137
|
-
f.current = !0, document.addEventListener("pointerdown", C, { capture: !0, once: !0 }), document.addEventListener("pointermove", C, { capture: !0, once: !0 });
|
|
1138
|
-
}, C = () => f.current = !1;
|
|
1139
|
-
return document.addEventListener("keydown", w, { capture: !0 }), () => {
|
|
1140
|
-
document.removeEventListener("keydown", w, { capture: !0 }), document.removeEventListener("pointerdown", C, { capture: !0 }), document.removeEventListener("pointermove", C, { capture: !0 });
|
|
1141
|
-
};
|
|
1142
|
-
}, []), /* @__PURE__ */ d(dr, { ...i, children: /* @__PURE__ */ d(
|
|
1143
|
-
bo,
|
|
1144
|
-
{
|
|
1145
|
-
scope: t,
|
|
1146
|
-
open: n,
|
|
1147
|
-
onOpenChange: s,
|
|
1148
|
-
content: h,
|
|
1149
|
-
onContentChange: m,
|
|
1150
|
-
children: /* @__PURE__ */ d(
|
|
1151
|
-
Eo,
|
|
1152
|
-
{
|
|
1153
|
-
scope: t,
|
|
1154
|
-
onClose: a.useCallback(() => s(!1), [s]),
|
|
1155
|
-
isUsingKeyboardRef: f,
|
|
1156
|
-
dir: p,
|
|
1157
|
-
modal: u,
|
|
1158
|
-
children: r
|
|
1159
|
-
}
|
|
1160
|
-
)
|
|
1161
|
-
}
|
|
1162
|
-
) });
|
|
1163
|
-
};
|
|
1164
|
-
Qt.displayName = me;
|
|
1165
|
-
var Mo = "MenuAnchor", je = a.forwardRef(
|
|
1166
|
-
(e, t) => {
|
|
1167
|
-
const { __scopeMenu: n, ...r } = e, o = Ae(n);
|
|
1168
|
-
return /* @__PURE__ */ d(fr, { ...o, ...r, ref: t });
|
|
1169
|
-
}
|
|
1170
|
-
);
|
|
1171
|
-
je.displayName = Mo;
|
|
1172
|
-
var ze = "MenuPortal", [So, Jt] = z(ze, {
|
|
1173
|
-
forceMount: void 0
|
|
1174
|
-
}), en = (e) => {
|
|
1175
|
-
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, c = Z(ze, t);
|
|
1176
|
-
return /* @__PURE__ */ d(So, { scope: t, forceMount: n, children: /* @__PURE__ */ d(_e, { present: n || c.open, children: /* @__PURE__ */ d(wt, { asChild: !0, container: o, children: r }) }) });
|
|
1177
|
-
};
|
|
1178
|
-
en.displayName = ze;
|
|
1179
|
-
var L = "MenuContent", [Ro, Ze] = z(L), tn = a.forwardRef(
|
|
1180
|
-
(e, t) => {
|
|
1181
|
-
const n = Jt(L, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, c = Z(L, e.__scopeMenu), u = he(L, e.__scopeMenu);
|
|
1182
|
-
return /* @__PURE__ */ d(de.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ d(_e, { present: r || c.open, children: /* @__PURE__ */ d(de.Slot, { scope: e.__scopeMenu, children: u.modal ? /* @__PURE__ */ d(Po, { ...o, ref: t }) : /* @__PURE__ */ d(_o, { ...o, ref: t }) }) }) });
|
|
1183
|
-
}
|
|
1184
|
-
), Po = a.forwardRef(
|
|
1185
|
-
(e, t) => {
|
|
1186
|
-
const n = Z(L, e.__scopeMenu), r = a.useRef(null), o = $(t, r);
|
|
1187
|
-
return a.useEffect(() => {
|
|
1188
|
-
const c = r.current;
|
|
1189
|
-
if (c)
|
|
1190
|
-
return xr(c);
|
|
1191
|
-
}, []), /* @__PURE__ */ d(
|
|
1192
|
-
qe,
|
|
1193
|
-
{
|
|
1194
|
-
...e,
|
|
1195
|
-
ref: o,
|
|
1196
|
-
trapFocus: n.open,
|
|
1197
|
-
disableOutsidePointerEvents: n.open,
|
|
1198
|
-
disableOutsideScroll: !0,
|
|
1199
|
-
onFocusOutside: S(
|
|
1200
|
-
e.onFocusOutside,
|
|
1201
|
-
(c) => c.preventDefault(),
|
|
1202
|
-
{ checkForDefaultPrevented: !1 }
|
|
1203
|
-
),
|
|
1204
|
-
onDismiss: () => n.onOpenChange(!1)
|
|
1205
|
-
}
|
|
1206
|
-
);
|
|
1207
|
-
}
|
|
1208
|
-
), _o = a.forwardRef((e, t) => {
|
|
1209
|
-
const n = Z(L, e.__scopeMenu);
|
|
1210
|
-
return /* @__PURE__ */ d(
|
|
1211
|
-
qe,
|
|
1212
|
-
{
|
|
1213
|
-
...e,
|
|
1214
|
-
ref: t,
|
|
1215
|
-
trapFocus: !1,
|
|
1216
|
-
disableOutsidePointerEvents: !1,
|
|
1217
|
-
disableOutsideScroll: !1,
|
|
1218
|
-
onDismiss: () => n.onOpenChange(!1)
|
|
1219
|
-
}
|
|
1220
|
-
);
|
|
1221
|
-
}), Io = Ue("MenuContent.ScrollLock"), qe = a.forwardRef(
|
|
1222
|
-
(e, t) => {
|
|
1223
|
-
const {
|
|
1224
|
-
__scopeMenu: n,
|
|
1225
|
-
loop: r = !1,
|
|
1226
|
-
trapFocus: o,
|
|
1227
|
-
onOpenAutoFocus: c,
|
|
1228
|
-
onCloseAutoFocus: u,
|
|
1229
|
-
disableOutsidePointerEvents: i,
|
|
1230
|
-
onEntryFocus: h,
|
|
1231
|
-
onEscapeKeyDown: m,
|
|
1232
|
-
onPointerDownOutside: f,
|
|
1233
|
-
onFocusOutside: s,
|
|
1234
|
-
onInteractOutside: p,
|
|
1235
|
-
onDismiss: w,
|
|
1236
|
-
disableOutsideScroll: C,
|
|
1237
|
-
...l
|
|
1238
|
-
} = e, v = Z(L, n), g = he(L, n), b = Ae(n), y = qt(n), E = yo(n), [R, P] = a.useState(null), I = a.useRef(null), _ = $(t, I, v.onContentChange), F = a.useRef(0), G = a.useRef(""), N = a.useRef(0), U = a.useRef(null), H = a.useRef("right"), q = a.useRef(0), Q = C ? vo : a.Fragment, K = C ? { as: Io, allowPinchZoom: !0 } : void 0, J = (M) => {
|
|
1239
|
-
var Y, ie;
|
|
1240
|
-
const T = G.current + M, A = E().filter((k) => !k.disabled), B = document.activeElement, ae = (Y = A.find((k) => k.ref.current === B)) == null ? void 0 : Y.textValue, ce = A.map((k) => k.textValue), ge = $o(ce, T, ae), X = (ie = A.find((k) => k.textValue === ge)) == null ? void 0 : ie.ref.current;
|
|
1241
|
-
(function k(ue) {
|
|
1242
|
-
G.current = ue, window.clearTimeout(F.current), ue !== "" && (F.current = window.setTimeout(() => k(""), 1e3));
|
|
1243
|
-
})(T), X && setTimeout(() => X.focus());
|
|
1244
|
-
};
|
|
1245
|
-
a.useEffect(() => () => window.clearTimeout(F.current), []), zn();
|
|
1246
|
-
const D = a.useCallback((M) => {
|
|
1247
|
-
var A, B;
|
|
1248
|
-
return H.current === ((A = U.current) == null ? void 0 : A.side) && Bo(M, (B = U.current) == null ? void 0 : B.area);
|
|
1249
|
-
}, []);
|
|
1250
|
-
return /* @__PURE__ */ d(
|
|
1251
|
-
Ro,
|
|
1252
|
-
{
|
|
1253
|
-
scope: n,
|
|
1254
|
-
searchRef: G,
|
|
1255
|
-
onItemEnter: a.useCallback(
|
|
1256
|
-
(M) => {
|
|
1257
|
-
D(M) && M.preventDefault();
|
|
1258
|
-
},
|
|
1259
|
-
[D]
|
|
1260
|
-
),
|
|
1261
|
-
onItemLeave: a.useCallback(
|
|
1262
|
-
(M) => {
|
|
1263
|
-
var T;
|
|
1264
|
-
D(M) || ((T = I.current) == null || T.focus(), P(null));
|
|
1265
|
-
},
|
|
1266
|
-
[D]
|
|
1267
|
-
),
|
|
1268
|
-
onTriggerLeave: a.useCallback(
|
|
1269
|
-
(M) => {
|
|
1270
|
-
D(M) && M.preventDefault();
|
|
1271
|
-
},
|
|
1272
|
-
[D]
|
|
1273
|
-
),
|
|
1274
|
-
pointerGraceTimerRef: N,
|
|
1275
|
-
onPointerGraceIntentChange: a.useCallback((M) => {
|
|
1276
|
-
U.current = M;
|
|
1277
|
-
}, []),
|
|
1278
|
-
children: /* @__PURE__ */ d(Q, { ...K, children: /* @__PURE__ */ d(
|
|
1279
|
-
bt,
|
|
1280
|
-
{
|
|
1281
|
-
asChild: !0,
|
|
1282
|
-
trapped: o,
|
|
1283
|
-
onMountAutoFocus: S(c, (M) => {
|
|
1284
|
-
var T;
|
|
1285
|
-
M.preventDefault(), (T = I.current) == null || T.focus({ preventScroll: !0 });
|
|
1286
|
-
}),
|
|
1287
|
-
onUnmountAutoFocus: u,
|
|
1288
|
-
children: /* @__PURE__ */ d(
|
|
1289
|
-
Yn,
|
|
1290
|
-
{
|
|
1291
|
-
asChild: !0,
|
|
1292
|
-
disableOutsidePointerEvents: i,
|
|
1293
|
-
onEscapeKeyDown: m,
|
|
1294
|
-
onPointerDownOutside: f,
|
|
1295
|
-
onFocusOutside: s,
|
|
1296
|
-
onInteractOutside: p,
|
|
1297
|
-
onDismiss: w,
|
|
1298
|
-
children: /* @__PURE__ */ d(
|
|
1299
|
-
Rr,
|
|
1300
|
-
{
|
|
1301
|
-
asChild: !0,
|
|
1302
|
-
...y,
|
|
1303
|
-
dir: g.dir,
|
|
1304
|
-
orientation: "vertical",
|
|
1305
|
-
loop: r,
|
|
1306
|
-
currentTabStopId: R,
|
|
1307
|
-
onCurrentTabStopIdChange: P,
|
|
1308
|
-
onEntryFocus: S(h, (M) => {
|
|
1309
|
-
g.isUsingKeyboardRef.current || M.preventDefault();
|
|
1310
|
-
}),
|
|
1311
|
-
preventScrollOnEntryFocus: !0,
|
|
1312
|
-
children: /* @__PURE__ */ d(
|
|
1313
|
-
pr,
|
|
1314
|
-
{
|
|
1315
|
-
role: "menu",
|
|
1316
|
-
"aria-orientation": "vertical",
|
|
1317
|
-
"data-state": wn(v.open),
|
|
1318
|
-
"data-radix-menu-content": "",
|
|
1319
|
-
dir: g.dir,
|
|
1320
|
-
...b,
|
|
1321
|
-
...l,
|
|
1322
|
-
ref: _,
|
|
1323
|
-
style: { outline: "none", ...l.style },
|
|
1324
|
-
onKeyDown: S(l.onKeyDown, (M) => {
|
|
1325
|
-
const A = M.target.closest("[data-radix-menu-content]") === M.currentTarget, B = M.ctrlKey || M.altKey || M.metaKey, ae = M.key.length === 1;
|
|
1326
|
-
A && (M.key === "Tab" && M.preventDefault(), !B && ae && J(M.key));
|
|
1327
|
-
const ce = I.current;
|
|
1328
|
-
if (M.target !== ce || !ho.includes(M.key))
|
|
1329
|
-
return;
|
|
1330
|
-
M.preventDefault();
|
|
1331
|
-
const X = E().filter((Y) => !Y.disabled).map((Y) => Y.ref.current);
|
|
1332
|
-
zt.includes(M.key) && X.reverse(), Go(X);
|
|
1333
|
-
}),
|
|
1334
|
-
onBlur: S(e.onBlur, (M) => {
|
|
1335
|
-
M.currentTarget.contains(M.target) || (window.clearTimeout(F.current), G.current = "");
|
|
1336
|
-
}),
|
|
1337
|
-
onPointerMove: S(
|
|
1338
|
-
e.onPointerMove,
|
|
1339
|
-
fe((M) => {
|
|
1340
|
-
const T = M.target, A = q.current !== M.clientX;
|
|
1341
|
-
if (M.currentTarget.contains(T) && A) {
|
|
1342
|
-
const B = M.clientX > q.current ? "right" : "left";
|
|
1343
|
-
H.current = B, q.current = M.clientX;
|
|
1344
|
-
}
|
|
1345
|
-
})
|
|
1346
|
-
)
|
|
1347
|
-
}
|
|
1348
|
-
)
|
|
1349
|
-
}
|
|
1350
|
-
)
|
|
1351
|
-
}
|
|
1352
|
-
)
|
|
1353
|
-
}
|
|
1354
|
-
) })
|
|
1355
|
-
}
|
|
1356
|
-
);
|
|
1357
|
-
}
|
|
1358
|
-
);
|
|
1359
|
-
tn.displayName = L;
|
|
1360
|
-
var Ao = "MenuGroup", Qe = a.forwardRef(
|
|
1361
|
-
(e, t) => {
|
|
1362
|
-
const { __scopeMenu: n, ...r } = e;
|
|
1363
|
-
return /* @__PURE__ */ d(O.div, { role: "group", ...r, ref: t });
|
|
1364
|
-
}
|
|
1365
|
-
);
|
|
1366
|
-
Qe.displayName = Ao;
|
|
1367
|
-
var xo = "MenuLabel", nn = a.forwardRef(
|
|
1368
|
-
(e, t) => {
|
|
1369
|
-
const { __scopeMenu: n, ...r } = e;
|
|
1370
|
-
return /* @__PURE__ */ d(O.div, { ...r, ref: t });
|
|
1371
|
-
}
|
|
1372
|
-
);
|
|
1373
|
-
nn.displayName = xo;
|
|
1374
|
-
var Re = "MenuItem", mt = "menu.itemSelect", xe = a.forwardRef(
|
|
1375
|
-
(e, t) => {
|
|
1376
|
-
const { disabled: n = !1, onSelect: r, ...o } = e, c = a.useRef(null), u = he(Re, e.__scopeMenu), i = Ze(Re, e.__scopeMenu), h = $(t, c), m = a.useRef(!1), f = () => {
|
|
1377
|
-
const s = c.current;
|
|
1378
|
-
if (!n && s) {
|
|
1379
|
-
const p = new CustomEvent(mt, { bubbles: !0, cancelable: !0 });
|
|
1380
|
-
s.addEventListener(mt, (w) => r == null ? void 0 : r(w), { once: !0 }), Fn(s, p), p.defaultPrevented ? m.current = !1 : u.onClose();
|
|
1381
|
-
}
|
|
1382
|
-
};
|
|
1383
|
-
return /* @__PURE__ */ d(
|
|
1384
|
-
rn,
|
|
1385
|
-
{
|
|
1386
|
-
...o,
|
|
1387
|
-
ref: h,
|
|
1388
|
-
disabled: n,
|
|
1389
|
-
onClick: S(e.onClick, f),
|
|
1390
|
-
onPointerDown: (s) => {
|
|
1391
|
-
var p;
|
|
1392
|
-
(p = e.onPointerDown) == null || p.call(e, s), m.current = !0;
|
|
1393
|
-
},
|
|
1394
|
-
onPointerUp: S(e.onPointerUp, (s) => {
|
|
1395
|
-
var p;
|
|
1396
|
-
m.current || (p = s.currentTarget) == null || p.click();
|
|
1397
|
-
}),
|
|
1398
|
-
onKeyDown: S(e.onKeyDown, (s) => {
|
|
1399
|
-
const p = i.searchRef.current !== "";
|
|
1400
|
-
n || p && s.key === " " || Ye.includes(s.key) && (s.currentTarget.click(), s.preventDefault());
|
|
1401
|
-
})
|
|
1402
|
-
}
|
|
1403
|
-
);
|
|
1404
|
-
}
|
|
1405
|
-
);
|
|
1406
|
-
xe.displayName = Re;
|
|
1407
|
-
var rn = a.forwardRef(
|
|
1408
|
-
(e, t) => {
|
|
1409
|
-
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...c } = e, u = Ze(Re, n), i = qt(n), h = a.useRef(null), m = $(t, h), [f, s] = a.useState(!1), [p, w] = a.useState("");
|
|
1410
|
-
return a.useEffect(() => {
|
|
1411
|
-
const C = h.current;
|
|
1412
|
-
C && w((C.textContent ?? "").trim());
|
|
1413
|
-
}, [c.children]), /* @__PURE__ */ d(
|
|
1414
|
-
de.ItemSlot,
|
|
1415
|
-
{
|
|
1416
|
-
scope: n,
|
|
1417
|
-
disabled: r,
|
|
1418
|
-
textValue: o ?? p,
|
|
1419
|
-
children: /* @__PURE__ */ d(Pr, { asChild: !0, ...i, focusable: !r, children: /* @__PURE__ */ d(
|
|
1420
|
-
O.div,
|
|
1421
|
-
{
|
|
1422
|
-
role: "menuitem",
|
|
1423
|
-
"data-highlighted": f ? "" : void 0,
|
|
1424
|
-
"aria-disabled": r || void 0,
|
|
1425
|
-
"data-disabled": r ? "" : void 0,
|
|
1426
|
-
...c,
|
|
1427
|
-
ref: m,
|
|
1428
|
-
onPointerMove: S(
|
|
1429
|
-
e.onPointerMove,
|
|
1430
|
-
fe((C) => {
|
|
1431
|
-
r ? u.onItemLeave(C) : (u.onItemEnter(C), C.defaultPrevented || C.currentTarget.focus({ preventScroll: !0 }));
|
|
1432
|
-
})
|
|
1433
|
-
),
|
|
1434
|
-
onPointerLeave: S(
|
|
1435
|
-
e.onPointerLeave,
|
|
1436
|
-
fe((C) => u.onItemLeave(C))
|
|
1437
|
-
),
|
|
1438
|
-
onFocus: S(e.onFocus, () => s(!0)),
|
|
1439
|
-
onBlur: S(e.onBlur, () => s(!1))
|
|
1440
|
-
}
|
|
1441
|
-
) })
|
|
1442
|
-
}
|
|
1443
|
-
);
|
|
1444
|
-
}
|
|
1445
|
-
), To = "MenuCheckboxItem", on = a.forwardRef(
|
|
1446
|
-
(e, t) => {
|
|
1447
|
-
const { checked: n = !1, onCheckedChange: r, ...o } = e;
|
|
1448
|
-
return /* @__PURE__ */ d(ln, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ d(
|
|
1449
|
-
xe,
|
|
1450
|
-
{
|
|
1451
|
-
role: "menuitemcheckbox",
|
|
1452
|
-
"aria-checked": Pe(n) ? "mixed" : n,
|
|
1453
|
-
...o,
|
|
1454
|
-
ref: t,
|
|
1455
|
-
"data-state": et(n),
|
|
1456
|
-
onSelect: S(
|
|
1457
|
-
o.onSelect,
|
|
1458
|
-
() => r == null ? void 0 : r(Pe(n) ? !0 : !n),
|
|
1459
|
-
{ checkForDefaultPrevented: !1 }
|
|
1460
|
-
)
|
|
1461
|
-
}
|
|
1462
|
-
) });
|
|
1463
|
-
}
|
|
1464
|
-
);
|
|
1465
|
-
on.displayName = To;
|
|
1466
|
-
var an = "MenuRadioGroup", [No, Do] = z(
|
|
1467
|
-
an,
|
|
1468
|
-
{ value: void 0, onValueChange: () => {
|
|
1469
|
-
} }
|
|
1470
|
-
), cn = a.forwardRef(
|
|
1471
|
-
(e, t) => {
|
|
1472
|
-
const { value: n, onValueChange: r, ...o } = e, c = oe(r);
|
|
1473
|
-
return /* @__PURE__ */ d(No, { scope: e.__scopeMenu, value: n, onValueChange: c, children: /* @__PURE__ */ d(Qe, { ...o, ref: t }) });
|
|
1474
|
-
}
|
|
1475
|
-
);
|
|
1476
|
-
cn.displayName = an;
|
|
1477
|
-
var un = "MenuRadioItem", sn = a.forwardRef(
|
|
1478
|
-
(e, t) => {
|
|
1479
|
-
const { value: n, ...r } = e, o = Do(un, e.__scopeMenu), c = n === o.value;
|
|
1480
|
-
return /* @__PURE__ */ d(ln, { scope: e.__scopeMenu, checked: c, children: /* @__PURE__ */ d(
|
|
1481
|
-
xe,
|
|
1482
|
-
{
|
|
1483
|
-
role: "menuitemradio",
|
|
1484
|
-
"aria-checked": c,
|
|
1485
|
-
...r,
|
|
1486
|
-
ref: t,
|
|
1487
|
-
"data-state": et(c),
|
|
1488
|
-
onSelect: S(
|
|
1489
|
-
r.onSelect,
|
|
1490
|
-
() => {
|
|
1491
|
-
var u;
|
|
1492
|
-
return (u = o.onValueChange) == null ? void 0 : u.call(o, n);
|
|
1493
|
-
},
|
|
1494
|
-
{ checkForDefaultPrevented: !1 }
|
|
1495
|
-
)
|
|
1496
|
-
}
|
|
1497
|
-
) });
|
|
1498
|
-
}
|
|
1499
|
-
);
|
|
1500
|
-
sn.displayName = un;
|
|
1501
|
-
var Je = "MenuItemIndicator", [ln, Oo] = z(
|
|
1502
|
-
Je,
|
|
1503
|
-
{ checked: !1 }
|
|
1504
|
-
), dn = a.forwardRef(
|
|
1505
|
-
(e, t) => {
|
|
1506
|
-
const { __scopeMenu: n, forceMount: r, ...o } = e, c = Oo(Je, n);
|
|
1507
|
-
return /* @__PURE__ */ d(
|
|
1508
|
-
_e,
|
|
1509
|
-
{
|
|
1510
|
-
present: r || Pe(c.checked) || c.checked === !0,
|
|
1511
|
-
children: /* @__PURE__ */ d(
|
|
1512
|
-
O.span,
|
|
1513
|
-
{
|
|
1514
|
-
...o,
|
|
1515
|
-
ref: t,
|
|
1516
|
-
"data-state": et(c.checked)
|
|
1517
|
-
}
|
|
1518
|
-
)
|
|
1519
|
-
}
|
|
1520
|
-
);
|
|
1521
|
-
}
|
|
1522
|
-
);
|
|
1523
|
-
dn.displayName = Je;
|
|
1524
|
-
var Fo = "MenuSeparator", fn = a.forwardRef(
|
|
1525
|
-
(e, t) => {
|
|
1526
|
-
const { __scopeMenu: n, ...r } = e;
|
|
1527
|
-
return /* @__PURE__ */ d(
|
|
1528
|
-
O.div,
|
|
1529
|
-
{
|
|
1530
|
-
role: "separator",
|
|
1531
|
-
"aria-orientation": "horizontal",
|
|
1532
|
-
...r,
|
|
1533
|
-
ref: t
|
|
1534
|
-
}
|
|
1535
|
-
);
|
|
1536
|
-
}
|
|
1537
|
-
);
|
|
1538
|
-
fn.displayName = Fo;
|
|
1539
|
-
var ko = "MenuArrow", pn = a.forwardRef(
|
|
1540
|
-
(e, t) => {
|
|
1541
|
-
const { __scopeMenu: n, ...r } = e, o = Ae(n);
|
|
1542
|
-
return /* @__PURE__ */ d(vr, { ...o, ...r, ref: t });
|
|
1543
|
-
}
|
|
1544
|
-
);
|
|
1545
|
-
pn.displayName = ko;
|
|
1546
|
-
var Lo = "MenuSub", [Ta, vn] = z(Lo), le = "MenuSubTrigger", mn = a.forwardRef(
|
|
1547
|
-
(e, t) => {
|
|
1548
|
-
const n = Z(le, e.__scopeMenu), r = he(le, e.__scopeMenu), o = vn(le, e.__scopeMenu), c = Ze(le, e.__scopeMenu), u = a.useRef(null), { pointerGraceTimerRef: i, onPointerGraceIntentChange: h } = c, m = { __scopeMenu: e.__scopeMenu }, f = a.useCallback(() => {
|
|
1549
|
-
u.current && window.clearTimeout(u.current), u.current = null;
|
|
1550
|
-
}, []);
|
|
1551
|
-
return a.useEffect(() => f, [f]), a.useEffect(() => {
|
|
1552
|
-
const s = i.current;
|
|
1553
|
-
return () => {
|
|
1554
|
-
window.clearTimeout(s), h(null);
|
|
1555
|
-
};
|
|
1556
|
-
}, [i, h]), /* @__PURE__ */ d(je, { asChild: !0, ...m, children: /* @__PURE__ */ d(
|
|
1557
|
-
rn,
|
|
1558
|
-
{
|
|
1559
|
-
id: o.triggerId,
|
|
1560
|
-
"aria-haspopup": "menu",
|
|
1561
|
-
"aria-expanded": n.open,
|
|
1562
|
-
"aria-controls": o.contentId,
|
|
1563
|
-
"data-state": wn(n.open),
|
|
1564
|
-
...e,
|
|
1565
|
-
ref: gt(t, o.onTriggerChange),
|
|
1566
|
-
onClick: (s) => {
|
|
1567
|
-
var p;
|
|
1568
|
-
(p = e.onClick) == null || p.call(e, s), !(e.disabled || s.defaultPrevented) && (s.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
1569
|
-
},
|
|
1570
|
-
onPointerMove: S(
|
|
1571
|
-
e.onPointerMove,
|
|
1572
|
-
fe((s) => {
|
|
1573
|
-
c.onItemEnter(s), !s.defaultPrevented && !e.disabled && !n.open && !u.current && (c.onPointerGraceIntentChange(null), u.current = window.setTimeout(() => {
|
|
1574
|
-
n.onOpenChange(!0), f();
|
|
1575
|
-
}, 100));
|
|
1576
|
-
})
|
|
1577
|
-
),
|
|
1578
|
-
onPointerLeave: S(
|
|
1579
|
-
e.onPointerLeave,
|
|
1580
|
-
fe((s) => {
|
|
1581
|
-
var w, C;
|
|
1582
|
-
f();
|
|
1583
|
-
const p = (w = n.content) == null ? void 0 : w.getBoundingClientRect();
|
|
1584
|
-
if (p) {
|
|
1585
|
-
const l = (C = n.content) == null ? void 0 : C.dataset.side, v = l === "right", g = v ? -5 : 5, b = p[v ? "left" : "right"], y = p[v ? "right" : "left"];
|
|
1586
|
-
c.onPointerGraceIntentChange({
|
|
1587
|
-
area: [
|
|
1588
|
-
// Apply a bleed on clientX to ensure that our exit point is
|
|
1589
|
-
// consistently within polygon bounds
|
|
1590
|
-
{ x: s.clientX + g, y: s.clientY },
|
|
1591
|
-
{ x: b, y: p.top },
|
|
1592
|
-
{ x: y, y: p.top },
|
|
1593
|
-
{ x: y, y: p.bottom },
|
|
1594
|
-
{ x: b, y: p.bottom }
|
|
1595
|
-
],
|
|
1596
|
-
side: l
|
|
1597
|
-
}), window.clearTimeout(i.current), i.current = window.setTimeout(
|
|
1598
|
-
() => c.onPointerGraceIntentChange(null),
|
|
1599
|
-
300
|
|
1600
|
-
);
|
|
1601
|
-
} else {
|
|
1602
|
-
if (c.onTriggerLeave(s), s.defaultPrevented)
|
|
1603
|
-
return;
|
|
1604
|
-
c.onPointerGraceIntentChange(null);
|
|
1605
|
-
}
|
|
1606
|
-
})
|
|
1607
|
-
),
|
|
1608
|
-
onKeyDown: S(e.onKeyDown, (s) => {
|
|
1609
|
-
var w;
|
|
1610
|
-
const p = c.searchRef.current !== "";
|
|
1611
|
-
e.disabled || p && s.key === " " || go[r.dir].includes(s.key) && (n.onOpenChange(!0), (w = n.content) == null || w.focus(), s.preventDefault());
|
|
1612
|
-
})
|
|
1613
|
-
}
|
|
1614
|
-
) });
|
|
1615
|
-
}
|
|
1616
|
-
);
|
|
1617
|
-
mn.displayName = le;
|
|
1618
|
-
var hn = "MenuSubContent", gn = a.forwardRef(
|
|
1619
|
-
(e, t) => {
|
|
1620
|
-
const n = Jt(L, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, c = Z(L, e.__scopeMenu), u = he(L, e.__scopeMenu), i = vn(hn, e.__scopeMenu), h = a.useRef(null), m = $(t, h);
|
|
1621
|
-
return /* @__PURE__ */ d(de.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ d(_e, { present: r || c.open, children: /* @__PURE__ */ d(de.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ d(
|
|
1622
|
-
qe,
|
|
1623
|
-
{
|
|
1624
|
-
id: i.contentId,
|
|
1625
|
-
"aria-labelledby": i.triggerId,
|
|
1626
|
-
...o,
|
|
1627
|
-
ref: m,
|
|
1628
|
-
align: "start",
|
|
1629
|
-
side: u.dir === "rtl" ? "left" : "right",
|
|
1630
|
-
disableOutsidePointerEvents: !1,
|
|
1631
|
-
disableOutsideScroll: !1,
|
|
1632
|
-
trapFocus: !1,
|
|
1633
|
-
onOpenAutoFocus: (f) => {
|
|
1634
|
-
var s;
|
|
1635
|
-
u.isUsingKeyboardRef.current && ((s = h.current) == null || s.focus()), f.preventDefault();
|
|
1636
|
-
},
|
|
1637
|
-
onCloseAutoFocus: (f) => f.preventDefault(),
|
|
1638
|
-
onFocusOutside: S(e.onFocusOutside, (f) => {
|
|
1639
|
-
f.target !== i.trigger && c.onOpenChange(!1);
|
|
1640
|
-
}),
|
|
1641
|
-
onEscapeKeyDown: S(e.onEscapeKeyDown, (f) => {
|
|
1642
|
-
u.onClose(), f.preventDefault();
|
|
1643
|
-
}),
|
|
1644
|
-
onKeyDown: S(e.onKeyDown, (f) => {
|
|
1645
|
-
var w;
|
|
1646
|
-
const s = f.currentTarget.contains(f.target), p = wo[u.dir].includes(f.key);
|
|
1647
|
-
s && p && (c.onOpenChange(!1), (w = i.trigger) == null || w.focus(), f.preventDefault());
|
|
1648
|
-
})
|
|
1649
|
-
}
|
|
1650
|
-
) }) }) });
|
|
1651
|
-
}
|
|
1652
|
-
);
|
|
1653
|
-
gn.displayName = hn;
|
|
1654
|
-
function wn(e) {
|
|
1655
|
-
return e ? "open" : "closed";
|
|
1656
|
-
}
|
|
1657
|
-
function Pe(e) {
|
|
1658
|
-
return e === "indeterminate";
|
|
1659
|
-
}
|
|
1660
|
-
function et(e) {
|
|
1661
|
-
return Pe(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
1662
|
-
}
|
|
1663
|
-
function Go(e) {
|
|
1664
|
-
const t = document.activeElement;
|
|
1665
|
-
for (const n of e)
|
|
1666
|
-
if (n === t || (n.focus(), document.activeElement !== t))
|
|
1667
|
-
return;
|
|
1668
|
-
}
|
|
1669
|
-
function Ko(e, t) {
|
|
1670
|
-
return e.map((n, r) => e[(t + r) % e.length]);
|
|
1671
|
-
}
|
|
1672
|
-
function $o(e, t, n) {
|
|
1673
|
-
const o = t.length > 1 && Array.from(t).every((m) => m === t[0]) ? t[0] : t, c = n ? e.indexOf(n) : -1;
|
|
1674
|
-
let u = Ko(e, Math.max(c, 0));
|
|
1675
|
-
o.length === 1 && (u = u.filter((m) => m !== n));
|
|
1676
|
-
const h = u.find(
|
|
1677
|
-
(m) => m.toLowerCase().startsWith(o.toLowerCase())
|
|
1678
|
-
);
|
|
1679
|
-
return h !== n ? h : void 0;
|
|
1680
|
-
}
|
|
1681
|
-
function Uo(e, t) {
|
|
1682
|
-
const { x: n, y: r } = e;
|
|
1683
|
-
let o = !1;
|
|
1684
|
-
for (let c = 0, u = t.length - 1; c < t.length; u = c++) {
|
|
1685
|
-
const i = t[c], h = t[u], m = i.x, f = i.y, s = h.x, p = h.y;
|
|
1686
|
-
f > r != p > r && n < (s - m) * (r - f) / (p - f) + m && (o = !o);
|
|
1687
|
-
}
|
|
1688
|
-
return o;
|
|
1689
|
-
}
|
|
1690
|
-
function Bo(e, t) {
|
|
1691
|
-
if (!t)
|
|
1692
|
-
return !1;
|
|
1693
|
-
const n = { x: e.clientX, y: e.clientY };
|
|
1694
|
-
return Uo(n, t);
|
|
1695
|
-
}
|
|
1696
|
-
function fe(e) {
|
|
1697
|
-
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
1698
|
-
}
|
|
1699
|
-
var Wo = Qt, Ho = je, Yo = en, Vo = tn, Xo = Qe, jo = nn, zo = xe, Zo = on, qo = cn, Qo = sn, Jo = dn, ea = fn, ta = pn, na = mn, ra = gn, Te = "DropdownMenu", [oa, Na] = pe(
|
|
1700
|
-
Te,
|
|
1701
|
-
[Zt]
|
|
1702
|
-
), x = Zt(), [aa, yn] = oa(Te), Cn = (e) => {
|
|
1703
|
-
const {
|
|
1704
|
-
__scopeDropdownMenu: t,
|
|
1705
|
-
children: n,
|
|
1706
|
-
dir: r,
|
|
1707
|
-
open: o,
|
|
1708
|
-
defaultOpen: c,
|
|
1709
|
-
onOpenChange: u,
|
|
1710
|
-
modal: i = !0
|
|
1711
|
-
} = e, h = x(t), m = a.useRef(null), [f, s] = ht({
|
|
1712
|
-
prop: o,
|
|
1713
|
-
defaultProp: c ?? !1,
|
|
1714
|
-
onChange: u,
|
|
1715
|
-
caller: Te
|
|
1716
|
-
});
|
|
1717
|
-
return /* @__PURE__ */ d(
|
|
1718
|
-
aa,
|
|
1719
|
-
{
|
|
1720
|
-
scope: t,
|
|
1721
|
-
triggerId: Be(),
|
|
1722
|
-
triggerRef: m,
|
|
1723
|
-
contentId: Be(),
|
|
1724
|
-
open: f,
|
|
1725
|
-
onOpenChange: s,
|
|
1726
|
-
onOpenToggle: a.useCallback(() => s((p) => !p), [s]),
|
|
1727
|
-
modal: i,
|
|
1728
|
-
children: /* @__PURE__ */ d(Wo, { ...h, open: f, onOpenChange: s, dir: r, modal: i, children: n })
|
|
1729
|
-
}
|
|
1730
|
-
);
|
|
1731
|
-
};
|
|
1732
|
-
Cn.displayName = Te;
|
|
1733
|
-
var bn = "DropdownMenuTrigger", En = a.forwardRef(
|
|
1734
|
-
(e, t) => {
|
|
1735
|
-
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, c = yn(bn, n), u = x(n);
|
|
1736
|
-
return /* @__PURE__ */ d(Ho, { asChild: !0, ...u, children: /* @__PURE__ */ d(
|
|
1737
|
-
O.button,
|
|
1738
|
-
{
|
|
1739
|
-
type: "button",
|
|
1740
|
-
id: c.triggerId,
|
|
1741
|
-
"aria-haspopup": "menu",
|
|
1742
|
-
"aria-expanded": c.open,
|
|
1743
|
-
"aria-controls": c.open ? c.contentId : void 0,
|
|
1744
|
-
"data-state": c.open ? "open" : "closed",
|
|
1745
|
-
"data-disabled": r ? "" : void 0,
|
|
1746
|
-
disabled: r,
|
|
1747
|
-
...o,
|
|
1748
|
-
ref: gt(t, c.triggerRef),
|
|
1749
|
-
onPointerDown: S(e.onPointerDown, (i) => {
|
|
1750
|
-
!r && i.button === 0 && i.ctrlKey === !1 && (c.onOpenToggle(), c.open || i.preventDefault());
|
|
1751
|
-
}),
|
|
1752
|
-
onKeyDown: S(e.onKeyDown, (i) => {
|
|
1753
|
-
r || (["Enter", " "].includes(i.key) && c.onOpenToggle(), i.key === "ArrowDown" && c.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(i.key) && i.preventDefault());
|
|
1754
|
-
})
|
|
1755
|
-
}
|
|
1756
|
-
) });
|
|
1757
|
-
}
|
|
1758
|
-
);
|
|
1759
|
-
En.displayName = bn;
|
|
1760
|
-
var ca = "DropdownMenuPortal", Mn = (e) => {
|
|
1761
|
-
const { __scopeDropdownMenu: t, ...n } = e, r = x(t);
|
|
1762
|
-
return /* @__PURE__ */ d(Yo, { ...r, ...n });
|
|
1763
|
-
};
|
|
1764
|
-
Mn.displayName = ca;
|
|
1765
|
-
var Sn = "DropdownMenuContent", Rn = a.forwardRef(
|
|
1766
|
-
(e, t) => {
|
|
1767
|
-
const { __scopeDropdownMenu: n, ...r } = e, o = yn(Sn, n), c = x(n), u = a.useRef(!1);
|
|
1768
|
-
return /* @__PURE__ */ d(
|
|
1769
|
-
Vo,
|
|
1770
|
-
{
|
|
1771
|
-
id: o.contentId,
|
|
1772
|
-
"aria-labelledby": o.triggerId,
|
|
1773
|
-
...c,
|
|
1774
|
-
...r,
|
|
1775
|
-
ref: t,
|
|
1776
|
-
onCloseAutoFocus: S(e.onCloseAutoFocus, (i) => {
|
|
1777
|
-
var h;
|
|
1778
|
-
u.current || (h = o.triggerRef.current) == null || h.focus(), u.current = !1, i.preventDefault();
|
|
1779
|
-
}),
|
|
1780
|
-
onInteractOutside: S(e.onInteractOutside, (i) => {
|
|
1781
|
-
const h = i.detail.originalEvent, m = h.button === 0 && h.ctrlKey === !0, f = h.button === 2 || m;
|
|
1782
|
-
(!o.modal || f) && (u.current = !0);
|
|
1783
|
-
}),
|
|
1784
|
-
style: {
|
|
1785
|
-
...e.style,
|
|
1786
|
-
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
1787
|
-
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
1788
|
-
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
1789
|
-
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
1790
|
-
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
1791
|
-
}
|
|
1792
|
-
}
|
|
1793
|
-
);
|
|
1794
|
-
}
|
|
1795
|
-
);
|
|
1796
|
-
Rn.displayName = Sn;
|
|
1797
|
-
var ia = "DropdownMenuGroup", Pn = a.forwardRef(
|
|
1798
|
-
(e, t) => {
|
|
1799
|
-
const { __scopeDropdownMenu: n, ...r } = e, o = x(n);
|
|
1800
|
-
return /* @__PURE__ */ d(Xo, { ...o, ...r, ref: t });
|
|
1801
|
-
}
|
|
1802
|
-
);
|
|
1803
|
-
Pn.displayName = ia;
|
|
1804
|
-
var ua = "DropdownMenuLabel", sa = a.forwardRef(
|
|
1805
|
-
(e, t) => {
|
|
1806
|
-
const { __scopeDropdownMenu: n, ...r } = e, o = x(n);
|
|
1807
|
-
return /* @__PURE__ */ d(jo, { ...o, ...r, ref: t });
|
|
1808
|
-
}
|
|
1809
|
-
);
|
|
1810
|
-
sa.displayName = ua;
|
|
1811
|
-
var la = "DropdownMenuItem", _n = a.forwardRef(
|
|
1812
|
-
(e, t) => {
|
|
1813
|
-
const { __scopeDropdownMenu: n, ...r } = e, o = x(n);
|
|
1814
|
-
return /* @__PURE__ */ d(zo, { ...o, ...r, ref: t });
|
|
1815
|
-
}
|
|
1816
|
-
);
|
|
1817
|
-
_n.displayName = la;
|
|
1818
|
-
var da = "DropdownMenuCheckboxItem", fa = a.forwardRef((e, t) => {
|
|
1819
|
-
const { __scopeDropdownMenu: n, ...r } = e, o = x(n);
|
|
1820
|
-
return /* @__PURE__ */ d(Zo, { ...o, ...r, ref: t });
|
|
1821
|
-
});
|
|
1822
|
-
fa.displayName = da;
|
|
1823
|
-
var pa = "DropdownMenuRadioGroup", va = a.forwardRef((e, t) => {
|
|
1824
|
-
const { __scopeDropdownMenu: n, ...r } = e, o = x(n);
|
|
1825
|
-
return /* @__PURE__ */ d(qo, { ...o, ...r, ref: t });
|
|
1826
|
-
});
|
|
1827
|
-
va.displayName = pa;
|
|
1828
|
-
var ma = "DropdownMenuRadioItem", ha = a.forwardRef((e, t) => {
|
|
1829
|
-
const { __scopeDropdownMenu: n, ...r } = e, o = x(n);
|
|
1830
|
-
return /* @__PURE__ */ d(Qo, { ...o, ...r, ref: t });
|
|
1831
|
-
});
|
|
1832
|
-
ha.displayName = ma;
|
|
1833
|
-
var ga = "DropdownMenuItemIndicator", wa = a.forwardRef((e, t) => {
|
|
1834
|
-
const { __scopeDropdownMenu: n, ...r } = e, o = x(n);
|
|
1835
|
-
return /* @__PURE__ */ d(Jo, { ...o, ...r, ref: t });
|
|
1836
|
-
});
|
|
1837
|
-
wa.displayName = ga;
|
|
1838
|
-
var ya = "DropdownMenuSeparator", In = a.forwardRef((e, t) => {
|
|
1839
|
-
const { __scopeDropdownMenu: n, ...r } = e, o = x(n);
|
|
1840
|
-
return /* @__PURE__ */ d(ea, { ...o, ...r, ref: t });
|
|
1841
|
-
});
|
|
1842
|
-
In.displayName = ya;
|
|
1843
|
-
var Ca = "DropdownMenuArrow", ba = a.forwardRef(
|
|
1844
|
-
(e, t) => {
|
|
1845
|
-
const { __scopeDropdownMenu: n, ...r } = e, o = x(n);
|
|
1846
|
-
return /* @__PURE__ */ d(ta, { ...o, ...r, ref: t });
|
|
1847
|
-
}
|
|
1848
|
-
);
|
|
1849
|
-
ba.displayName = Ca;
|
|
1850
|
-
var Ea = "DropdownMenuSubTrigger", Ma = a.forwardRef((e, t) => {
|
|
1851
|
-
const { __scopeDropdownMenu: n, ...r } = e, o = x(n);
|
|
1852
|
-
return /* @__PURE__ */ d(na, { ...o, ...r, ref: t });
|
|
1853
|
-
});
|
|
1854
|
-
Ma.displayName = Ea;
|
|
1855
|
-
var Sa = "DropdownMenuSubContent", Ra = a.forwardRef((e, t) => {
|
|
1856
|
-
const { __scopeDropdownMenu: n, ...r } = e, o = x(n);
|
|
1857
|
-
return /* @__PURE__ */ d(
|
|
1858
|
-
ra,
|
|
1859
|
-
{
|
|
1860
|
-
...o,
|
|
1861
|
-
...r,
|
|
1862
|
-
ref: t,
|
|
1863
|
-
style: {
|
|
1864
|
-
...e.style,
|
|
1865
|
-
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
1866
|
-
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
1867
|
-
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
1868
|
-
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
1869
|
-
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
1870
|
-
}
|
|
1871
|
-
}
|
|
1872
|
-
);
|
|
1873
|
-
});
|
|
1874
|
-
Ra.displayName = Sa;
|
|
1875
|
-
var Da = Cn, Oa = En, Fa = Mn, ka = Rn, La = Pn, Ga = _n, Ka = In;
|
|
1876
|
-
export {
|
|
1877
|
-
ka as C,
|
|
1878
|
-
bt as F,
|
|
1879
|
-
La as G,
|
|
1880
|
-
Ga as I,
|
|
1881
|
-
Fa as P,
|
|
1882
|
-
Da as R,
|
|
1883
|
-
Ka as S,
|
|
1884
|
-
Oa as T,
|
|
1885
|
-
vo as a,
|
|
1886
|
-
wt as b,
|
|
1887
|
-
xr as h,
|
|
1888
|
-
zn as u
|
|
1889
|
-
};
|