@lanaco/lnc-react-ui 4.0.35 → 4.0.37
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/Accordion.cjs +5 -5
- package/dist/Accordion.js +11 -11
- package/dist/AccordionDetails.cjs +1 -1
- package/dist/AccordionDetails.js +1 -1
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +3 -3
- package/dist/ActionsToolbar.cjs +1 -1
- package/dist/ActionsToolbar.js +2 -2
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +2 -2
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.js +3 -3
- package/dist/Badge.cjs +2 -2
- package/dist/Badge.js +3 -3
- package/dist/BannerSectionBasic.cjs +1 -1
- package/dist/BannerSectionBasic.js +1 -1
- package/dist/BannerSectionCarousel.cjs +2 -2
- package/dist/BannerSectionCarousel.js +63 -63
- package/dist/BannerSectionGrid.cjs +3 -3
- package/dist/BannerSectionGrid.js +43 -39
- package/dist/BannerSectionSimple.cjs +1 -1
- package/dist/BannerSectionSimple.js +1 -1
- package/dist/BannerSectionWithList.cjs +1 -1
- package/dist/BannerSectionWithList.js +2 -2
- package/dist/BannerSectionWithListImage.cjs +1 -1
- package/dist/BannerSectionWithListImage.js +1 -1
- package/dist/BlogsSectionDetailed.cjs +1 -1
- package/dist/BlogsSectionDetailed.js +3 -3
- package/dist/BlogsSectionLarge.cjs +1 -1
- package/dist/BlogsSectionLarge.js +2 -2
- package/dist/BlogsSectionSimple.cjs +1 -1
- package/dist/BlogsSectionSimple.js +3 -3
- package/dist/BlogsSectionSimpleCentered.cjs +1 -1
- package/dist/BlogsSectionSimpleCentered.js +2 -2
- package/dist/BlogsSectionWithFilters.cjs +11 -108
- package/dist/BlogsSectionWithFilters.js +59 -437
- package/dist/BrandHitsSection.cjs +1 -1
- package/dist/BrandHitsSection.js +2 -2
- package/dist/Breadcrumbs.cjs +3 -3
- package/dist/Breadcrumbs.js +12 -12
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +4 -4
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.js +3 -3
- package/dist/CalorieCalculatorSection.cjs +333 -0
- package/dist/CalorieCalculatorSection.js +851 -0
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +3 -3
- package/dist/Chip.cjs +2 -2
- package/dist/Chip.js +3 -3
- package/dist/ColorInput.cjs +1 -1
- package/dist/ColorInput.js +4 -4
- package/dist/ConfirmationForm.cjs +2 -2
- package/dist/ConfirmationForm.js +3 -3
- package/dist/CustomLoanMapSection.cjs +1 -1
- package/dist/CustomLoanMapSection.js +2 -2
- package/dist/{CustomStyles-BMY2-z7P.js → CustomStyles-BwnfUVvi.js} +8 -8
- package/dist/{CustomStyles-zroEcINq.cjs → CustomStyles-DUDHRSkh.cjs} +2 -2
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +1 -1
- package/dist/DateInput.cjs +4 -4
- package/dist/DateInput.js +76 -80
- package/dist/DecimalInput.cjs +3 -3
- package/dist/DecimalInput.js +4 -4
- package/dist/DecimalInputV2.cjs +2 -2
- package/dist/DecimalInputV2.js +3 -3
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +4 -4
- package/dist/DetailsView.cjs +2 -2
- package/dist/DetailsView.js +3 -3
- package/dist/DoubleRangeSlider.cjs +1 -1
- package/dist/DoubleRangeSlider.js +3 -3
- package/dist/DragAndDropFile.cjs +6 -6
- package/dist/DragAndDropFile.js +4 -4
- package/dist/DragDropFiles.cjs +1 -1
- package/dist/DragDropFiles.js +3 -3
- package/dist/Drawer.cjs +1 -1
- package/dist/Drawer.js +12 -12
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +5 -5
- package/dist/DropdownItem.cjs +1 -1
- package/dist/DropdownItem.js +10 -10
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +5 -5
- package/dist/DropdownMenu.cjs +1 -1
- package/dist/DropdownMenu.js +6 -6
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +3 -3
- package/dist/FieldOfInterestsMasonrySection.cjs +6 -6
- package/dist/FieldOfInterestsMasonrySection.js +43 -42
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +3 -3
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +3 -3
- package/dist/FieldOfInterestsWithTagsCardsSection.js +3 -3
- package/dist/FileInput.cjs +2 -2
- package/dist/FileInput.js +3 -3
- package/dist/FlexBox.cjs +1 -1
- package/dist/FlexBox.js +1 -1
- package/dist/FlexGridItem.cjs +1 -1
- package/dist/FlexGridItem.js +2 -2
- package/dist/FormField.cjs +1 -1
- package/dist/FormField.js +7 -7
- package/dist/FormView.cjs +2 -2
- package/dist/FormView.js +15 -15
- package/dist/GeneralWithTagsCardsSection.cjs +1 -1
- package/dist/GeneralWithTagsCardsSection.js +3 -3
- package/dist/GiftCardsSection.cjs +1 -1
- package/dist/GiftCardsSection.js +2 -2
- package/dist/Grid.cjs +1 -1
- package/dist/Grid.js +1 -1
- package/dist/GridItem.cjs +1 -1
- package/dist/GridItem.js +1 -1
- package/dist/Icon.cjs +2 -2
- package/dist/Icon.js +6 -6
- package/dist/IconButton.cjs +1 -1
- package/dist/IconButton.js +3 -3
- package/dist/Kanban.cjs +7 -7
- package/dist/Kanban.js +37 -41
- package/dist/KanbanActionsToolbar.cjs +1 -1
- package/dist/KanbanActionsToolbar.js +2 -2
- package/dist/{KanbanCard-BDyFaKYd.js → KanbanCard-BDRSqfVD.js} +2 -2
- package/dist/{KanbanCard-CofqdTrO.cjs → KanbanCard-CLOKZFYP.cjs} +1 -1
- package/dist/KanbanCard.cjs +1 -1
- package/dist/KanbanCard.js +3 -3
- package/dist/KanbanFooter.cjs +1 -1
- package/dist/KanbanFooter.js +2 -2
- package/dist/KanbanHeader.cjs +2 -2
- package/dist/KanbanHeader.js +2 -2
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +3 -3
- package/dist/Link.cjs +2 -2
- package/dist/Link.js +6 -6
- package/dist/LocationSearchSection.cjs +53 -0
- package/dist/LocationSearchSection.js +108 -0
- package/dist/MasonryGeneralCardsSection.cjs +1 -1
- package/dist/MasonryGeneralCardsSection.js +3 -3
- package/dist/MenuItem.cjs +2 -2
- package/dist/MenuItem.js +3 -3
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +6 -6
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +3 -3
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +3 -3
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +9 -9
- package/dist/NestedMenuItem.cjs +2 -2
- package/dist/NestedMenuItem.js +8 -8
- package/dist/Notification.cjs +1 -1
- package/dist/Notification.js +1 -1
- package/dist/NotificationContainer.cjs +1 -1
- package/dist/NotificationContainer.js +3 -3
- package/dist/NotificationMessage.cjs +1 -1
- package/dist/NotificationMessage.js +3 -3
- package/dist/NumberInput.cjs +2 -2
- package/dist/NumberInput.js +4 -4
- package/dist/OverlayGeneralCardsSection.cjs +1 -1
- package/dist/OverlayGeneralCardsSection.js +3 -3
- package/dist/PageLayout.cjs +2 -2
- package/dist/PageLayout.js +2 -2
- package/dist/Pagination.cjs +2 -2
- package/dist/Pagination.js +2 -2
- package/dist/PasswordInput.cjs +2 -2
- package/dist/PasswordInput.js +4 -4
- package/dist/PopoverContent.cjs +1 -1
- package/dist/PopoverContent.js +5 -5
- package/dist/PopoverDescription.cjs +1 -1
- package/dist/PopoverDescription.js +1 -1
- package/dist/PopoverHeading.cjs +1 -1
- package/dist/PopoverHeading.js +1 -1
- package/dist/PopoverTrigger.cjs +1 -1
- package/dist/PopoverTrigger.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +1 -1
- package/dist/ProductsWithBannerSection.js +3 -3
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +8 -8
- package/dist/QuizSection.cjs +1 -1
- package/dist/QuizSection.js +2 -2
- package/dist/RadioGroup.cjs +1 -1
- package/dist/RadioGroup.js +2 -2
- package/dist/RadioInput.cjs +1 -1
- package/dist/RadioInput.js +3 -3
- package/dist/RangeSlider.cjs +2 -2
- package/dist/RangeSlider.js +3 -3
- package/dist/SalesCampaignsSection.cjs +423 -0
- package/dist/SalesCampaignsSection.js +967 -0
- package/dist/SearchBar.cjs +1 -1
- package/dist/SearchBar.js +6 -6
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +3 -3
- package/dist/ShopCardsSection.cjs +1 -1
- package/dist/ShopCardsSection.js +2 -2
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +3 -3
- package/dist/SimpleCategoriesSection.cjs +9 -9
- package/dist/SimpleCategoriesSection.js +48 -44
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +3 -3
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +12 -12
- package/dist/Surface.cjs +2 -2
- package/dist/Surface.js +3 -3
- package/dist/SwipeableDrawer.cjs +2 -2
- package/dist/SwipeableDrawer.js +3 -3
- package/dist/TabItem.cjs +1 -1
- package/dist/TabItem.js +11 -11
- package/dist/Table.cjs +7 -7
- package/dist/Table.js +4 -4
- package/dist/TableView.cjs +1 -1
- package/dist/TableView.js +2 -2
- package/dist/Tabs.cjs +2 -2
- package/dist/Tabs.js +2 -2
- package/dist/TextAreaInput.cjs +12 -12
- package/dist/TextAreaInput.js +124 -112
- package/dist/TextInput.cjs +2 -2
- package/dist/TextInput.js +4 -4
- package/dist/ThemeProvider.cjs +10 -10
- package/dist/ThemeProvider.js +189 -187
- package/dist/TimeInput.cjs +2 -2
- package/dist/TimeInput.js +4 -4
- package/dist/Toggle.cjs +15 -15
- package/dist/Toggle.js +40 -50
- package/dist/TreeMenu.cjs +1 -1
- package/dist/TreeMenu.js +1 -1
- package/dist/TreeMenuSeparator.cjs +1 -1
- package/dist/TreeMenuSeparator.js +3 -3
- package/dist/UploadedFile.cjs +2 -2
- package/dist/UploadedFile.js +16 -16
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +2 -2
- package/dist/{defineProperty-DHvxLH8G.cjs → defineProperty-CqVRDJI8.cjs} +1 -1
- package/dist/{defineProperty-B5pLF6px.js → defineProperty-DF3p0mVo.js} +5 -5
- package/dist/emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs +1 -0
- package/dist/emotion-element-f0de968e.browser.esm-CkCiQliQ.js +877 -0
- package/dist/{emotion-is-prop-valid.esm-CMrshNb7.cjs → emotion-is-prop-valid.esm-BNsx9k19.cjs} +1 -1
- package/dist/{emotion-is-prop-valid.esm-DkbeH1Xy.js → emotion-is-prop-valid.esm-CbWxtx4i.js} +1 -1
- package/dist/emotion-react.browser.esm-1R69UXoj.cjs +1 -0
- package/dist/emotion-react.browser.esm-C6iWxXPG.js +95 -0
- package/dist/{emotion-styled.browser.esm-BiK8DcgW.js → emotion-styled.browser.esm-CjCaF13H.js} +55 -53
- package/dist/emotion-styled.browser.esm-Cle7tAM9.cjs +1 -0
- package/dist/floating-ui.dom-CFbLeFcw.cjs +1 -0
- package/dist/floating-ui.dom-vNhdy5RI.js +947 -0
- package/dist/{floating-ui.react.esm-C4vrBVJU.cjs → floating-ui.react.esm-7Yt4LHw6.cjs} +1 -1
- package/dist/{floating-ui.react.esm-72DKnou_.js → floating-ui.react.esm-umB-tMXa.js} +3 -3
- package/dist/{index--Kmch3aI.js → index-64mXPFBC.js} +6724 -6724
- package/dist/{index-CvebWhtp.js → index-BlxaTV-D.js} +1 -1
- package/dist/{index-CkPex_K5.js → index-CHkb_Sj6.js} +2 -2
- package/dist/index-CT6_7UFb.js +350 -0
- package/dist/index-Cb_AeN9A.cjs +4 -0
- package/dist/{index-CNBqQrtK.js → index-CkWvbrVT.js} +1 -1
- package/dist/{index-BUChtubz.js → index-D-c5IxDk.js} +1 -1
- package/dist/{index-DKztZfzw.js → index-D6g5ZqyJ.js} +2 -2
- package/dist/{index-BP5r5zGN.cjs → index-DZoWlChs.cjs} +1 -1
- package/dist/{index-B67WqHGh.cjs → index-Dit169OA.cjs} +1 -1
- package/dist/{index-BmobrEkT.cjs → index-Dj5wZCVs.cjs} +1 -1
- package/dist/{index-CTJZaJ_S.js → index-DxdBg_r_.js} +1 -1
- package/dist/index-EeoArxOx.cjs +174 -0
- package/dist/index-Q_i-aqsF.cjs +95 -0
- package/dist/{index-C5vAqIS6.cjs → index-vXmvgZ2Y.cjs} +1 -1
- package/dist/index-wy-PXQR9.js +47 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +96 -92
- package/dist/{motion-Oud-wpUz.cjs → motion-B_VPZaJq.cjs} +1 -1
- package/dist/{motion-ecIGZGwI.js → motion-Ckekul_K.js} +1 -1
- package/dist/objectWithoutPropertiesLoose-BLga_MQA.cjs +1 -0
- package/dist/{objectWithoutPropertiesLoose-DwEN6RBQ.js → objectWithoutPropertiesLoose-DhwSMsjf.js} +1 -1
- package/dist/{react-toastify.esm-CkXGwKXL.js → react-toastify.esm--2awuizG.js} +1 -1
- package/dist/{react-toastify.esm-Dqcb4SQT.cjs → react-toastify.esm-Dq1k28O7.cjs} +1 -1
- package/dist/{style-BGQ1B_dp.js → style-6tSw9aqK.js} +1 -1
- package/dist/{style-BEUISPP7.cjs → style-BR3tIhP1.cjs} +1 -1
- package/dist/usePopover.cjs +1 -1
- package/dist/usePopover.js +6 -6
- package/dist/{utils-jiuifwtJ.js → utils-DtRLzzTZ.js} +224 -73
- package/dist/utils-NZLCh-J5.cjs +51 -0
- package/package.json +5 -2
- package/vite.config.js +12 -1
- package/dist/emotion-element-5486c51c.browser.esm-Bb4VkP8U.js +0 -886
- package/dist/emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs +0 -1
- package/dist/emotion-react.browser.esm-CN-s34fZ.js +0 -94
- package/dist/emotion-react.browser.esm-D7h2t2Bz.cjs +0 -1
- package/dist/emotion-styled.browser.esm-Cbp_XsK4.cjs +0 -1
- package/dist/floating-ui.dom-1F2mTXOe.cjs +0 -1
- package/dist/floating-ui.dom-BdUovkEr.js +0 -938
- package/dist/index-Ct1N7fF4.cjs +0 -174
- package/dist/objectWithoutPropertiesLoose-Bz3hwpmU.cjs +0 -1
- package/dist/utils-scuIeOqU.cjs +0 -51
|
@@ -0,0 +1,947 @@
|
|
|
1
|
+
const U = Math.min, B = Math.max, K = Math.round, X = Math.floor, L = (t) => ({
|
|
2
|
+
x: t,
|
|
3
|
+
y: t
|
|
4
|
+
}), Pt = {
|
|
5
|
+
left: "right",
|
|
6
|
+
right: "left",
|
|
7
|
+
bottom: "top",
|
|
8
|
+
top: "bottom"
|
|
9
|
+
}, Bt = {
|
|
10
|
+
start: "end",
|
|
11
|
+
end: "start"
|
|
12
|
+
};
|
|
13
|
+
function gt(t, e, o) {
|
|
14
|
+
return B(t, U(e, o));
|
|
15
|
+
}
|
|
16
|
+
function Q(t, e) {
|
|
17
|
+
return typeof t == "function" ? t(e) : t;
|
|
18
|
+
}
|
|
19
|
+
function M(t) {
|
|
20
|
+
return t.split("-")[0];
|
|
21
|
+
}
|
|
22
|
+
function Z(t) {
|
|
23
|
+
return t.split("-")[1];
|
|
24
|
+
}
|
|
25
|
+
function vt(t) {
|
|
26
|
+
return t === "x" ? "y" : "x";
|
|
27
|
+
}
|
|
28
|
+
function bt(t) {
|
|
29
|
+
return t === "y" ? "height" : "width";
|
|
30
|
+
}
|
|
31
|
+
function D(t) {
|
|
32
|
+
return ["top", "bottom"].includes(M(t)) ? "y" : "x";
|
|
33
|
+
}
|
|
34
|
+
function At(t) {
|
|
35
|
+
return vt(D(t));
|
|
36
|
+
}
|
|
37
|
+
function Mt(t, e, o) {
|
|
38
|
+
o === void 0 && (o = !1);
|
|
39
|
+
const n = Z(t), i = At(t), r = bt(i);
|
|
40
|
+
let s = i === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
41
|
+
return e.reference[r] > e.floating[r] && (s = G(s)), [s, G(s)];
|
|
42
|
+
}
|
|
43
|
+
function Nt(t) {
|
|
44
|
+
const e = G(t);
|
|
45
|
+
return [rt(t), e, rt(e)];
|
|
46
|
+
}
|
|
47
|
+
function rt(t) {
|
|
48
|
+
return t.replace(/start|end/g, (e) => Bt[e]);
|
|
49
|
+
}
|
|
50
|
+
function Vt(t, e, o) {
|
|
51
|
+
const n = ["left", "right"], i = ["right", "left"], r = ["top", "bottom"], s = ["bottom", "top"];
|
|
52
|
+
switch (t) {
|
|
53
|
+
case "top":
|
|
54
|
+
case "bottom":
|
|
55
|
+
return o ? e ? i : n : e ? n : i;
|
|
56
|
+
case "left":
|
|
57
|
+
case "right":
|
|
58
|
+
return e ? r : s;
|
|
59
|
+
default:
|
|
60
|
+
return [];
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
function Wt(t, e, o, n) {
|
|
64
|
+
const i = Z(t);
|
|
65
|
+
let r = Vt(M(t), o === "start", n);
|
|
66
|
+
return i && (r = r.map((s) => s + "-" + i), e && (r = r.concat(r.map(rt)))), r;
|
|
67
|
+
}
|
|
68
|
+
function G(t) {
|
|
69
|
+
return t.replace(/left|right|bottom|top/g, (e) => Pt[e]);
|
|
70
|
+
}
|
|
71
|
+
function Ht(t) {
|
|
72
|
+
return {
|
|
73
|
+
top: 0,
|
|
74
|
+
right: 0,
|
|
75
|
+
bottom: 0,
|
|
76
|
+
left: 0,
|
|
77
|
+
...t
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function _t(t) {
|
|
81
|
+
return typeof t != "number" ? Ht(t) : {
|
|
82
|
+
top: t,
|
|
83
|
+
right: t,
|
|
84
|
+
bottom: t,
|
|
85
|
+
left: t
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
function J(t) {
|
|
89
|
+
const {
|
|
90
|
+
x: e,
|
|
91
|
+
y: o,
|
|
92
|
+
width: n,
|
|
93
|
+
height: i
|
|
94
|
+
} = t;
|
|
95
|
+
return {
|
|
96
|
+
width: n,
|
|
97
|
+
height: i,
|
|
98
|
+
top: o,
|
|
99
|
+
left: e,
|
|
100
|
+
right: e + n,
|
|
101
|
+
bottom: o + i,
|
|
102
|
+
x: e,
|
|
103
|
+
y: o
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
function pt(t, e, o) {
|
|
107
|
+
let {
|
|
108
|
+
reference: n,
|
|
109
|
+
floating: i
|
|
110
|
+
} = t;
|
|
111
|
+
const r = D(e), s = At(e), c = bt(s), l = M(e), f = r === "y", d = n.x + n.width / 2 - i.width / 2, a = n.y + n.height / 2 - i.height / 2, m = n[c] / 2 - i[c] / 2;
|
|
112
|
+
let u;
|
|
113
|
+
switch (l) {
|
|
114
|
+
case "top":
|
|
115
|
+
u = {
|
|
116
|
+
x: d,
|
|
117
|
+
y: n.y - i.height
|
|
118
|
+
};
|
|
119
|
+
break;
|
|
120
|
+
case "bottom":
|
|
121
|
+
u = {
|
|
122
|
+
x: d,
|
|
123
|
+
y: n.y + n.height
|
|
124
|
+
};
|
|
125
|
+
break;
|
|
126
|
+
case "right":
|
|
127
|
+
u = {
|
|
128
|
+
x: n.x + n.width,
|
|
129
|
+
y: a
|
|
130
|
+
};
|
|
131
|
+
break;
|
|
132
|
+
case "left":
|
|
133
|
+
u = {
|
|
134
|
+
x: n.x - i.width,
|
|
135
|
+
y: a
|
|
136
|
+
};
|
|
137
|
+
break;
|
|
138
|
+
default:
|
|
139
|
+
u = {
|
|
140
|
+
x: n.x,
|
|
141
|
+
y: n.y
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
switch (Z(e)) {
|
|
145
|
+
case "start":
|
|
146
|
+
u[s] -= m * (o && f ? -1 : 1);
|
|
147
|
+
break;
|
|
148
|
+
case "end":
|
|
149
|
+
u[s] += m * (o && f ? -1 : 1);
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
return u;
|
|
153
|
+
}
|
|
154
|
+
const $t = async (t, e, o) => {
|
|
155
|
+
const {
|
|
156
|
+
placement: n = "bottom",
|
|
157
|
+
strategy: i = "absolute",
|
|
158
|
+
middleware: r = [],
|
|
159
|
+
platform: s
|
|
160
|
+
} = o, c = r.filter(Boolean), l = await (s.isRTL == null ? void 0 : s.isRTL(e));
|
|
161
|
+
let f = await s.getElementRects({
|
|
162
|
+
reference: t,
|
|
163
|
+
floating: e,
|
|
164
|
+
strategy: i
|
|
165
|
+
}), {
|
|
166
|
+
x: d,
|
|
167
|
+
y: a
|
|
168
|
+
} = pt(f, n, l), m = n, u = {}, h = 0;
|
|
169
|
+
for (let p = 0; p < c.length; p++) {
|
|
170
|
+
const {
|
|
171
|
+
name: w,
|
|
172
|
+
fn: g
|
|
173
|
+
} = c[p], {
|
|
174
|
+
x,
|
|
175
|
+
y,
|
|
176
|
+
data: b,
|
|
177
|
+
reset: v
|
|
178
|
+
} = await g({
|
|
179
|
+
x: d,
|
|
180
|
+
y: a,
|
|
181
|
+
initialPlacement: n,
|
|
182
|
+
placement: m,
|
|
183
|
+
strategy: i,
|
|
184
|
+
middlewareData: u,
|
|
185
|
+
rects: f,
|
|
186
|
+
platform: s,
|
|
187
|
+
elements: {
|
|
188
|
+
reference: t,
|
|
189
|
+
floating: e
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
d = x ?? d, a = y ?? a, u = {
|
|
193
|
+
...u,
|
|
194
|
+
[w]: {
|
|
195
|
+
...u[w],
|
|
196
|
+
...b
|
|
197
|
+
}
|
|
198
|
+
}, v && h <= 50 && (h++, typeof v == "object" && (v.placement && (m = v.placement), v.rects && (f = v.rects === !0 ? await s.getElementRects({
|
|
199
|
+
reference: t,
|
|
200
|
+
floating: e,
|
|
201
|
+
strategy: i
|
|
202
|
+
}) : v.rects), {
|
|
203
|
+
x: d,
|
|
204
|
+
y: a
|
|
205
|
+
} = pt(f, m, l)), p = -1);
|
|
206
|
+
}
|
|
207
|
+
return {
|
|
208
|
+
x: d,
|
|
209
|
+
y: a,
|
|
210
|
+
placement: m,
|
|
211
|
+
strategy: i,
|
|
212
|
+
middlewareData: u
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
async function Rt(t, e) {
|
|
216
|
+
var o;
|
|
217
|
+
e === void 0 && (e = {});
|
|
218
|
+
const {
|
|
219
|
+
x: n,
|
|
220
|
+
y: i,
|
|
221
|
+
platform: r,
|
|
222
|
+
rects: s,
|
|
223
|
+
elements: c,
|
|
224
|
+
strategy: l
|
|
225
|
+
} = t, {
|
|
226
|
+
boundary: f = "clippingAncestors",
|
|
227
|
+
rootBoundary: d = "viewport",
|
|
228
|
+
elementContext: a = "floating",
|
|
229
|
+
altBoundary: m = !1,
|
|
230
|
+
padding: u = 0
|
|
231
|
+
} = Q(e, t), h = _t(u), w = c[m ? a === "floating" ? "reference" : "floating" : a], g = J(await r.getClippingRect({
|
|
232
|
+
element: (o = await (r.isElement == null ? void 0 : r.isElement(w))) == null || o ? w : w.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(c.floating)),
|
|
233
|
+
boundary: f,
|
|
234
|
+
rootBoundary: d,
|
|
235
|
+
strategy: l
|
|
236
|
+
})), x = a === "floating" ? {
|
|
237
|
+
x: n,
|
|
238
|
+
y: i,
|
|
239
|
+
width: s.floating.width,
|
|
240
|
+
height: s.floating.height
|
|
241
|
+
} : s.reference, y = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(c.floating)), b = await (r.isElement == null ? void 0 : r.isElement(y)) ? await (r.getScale == null ? void 0 : r.getScale(y)) || {
|
|
242
|
+
x: 1,
|
|
243
|
+
y: 1
|
|
244
|
+
} : {
|
|
245
|
+
x: 1,
|
|
246
|
+
y: 1
|
|
247
|
+
}, v = J(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
248
|
+
elements: c,
|
|
249
|
+
rect: x,
|
|
250
|
+
offsetParent: y,
|
|
251
|
+
strategy: l
|
|
252
|
+
}) : x);
|
|
253
|
+
return {
|
|
254
|
+
top: (g.top - v.top + h.top) / b.y,
|
|
255
|
+
bottom: (v.bottom - g.bottom + h.bottom) / b.y,
|
|
256
|
+
left: (g.left - v.left + h.left) / b.x,
|
|
257
|
+
right: (v.right - g.right + h.right) / b.x
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
const zt = function(t) {
|
|
261
|
+
return t === void 0 && (t = {}), {
|
|
262
|
+
name: "flip",
|
|
263
|
+
options: t,
|
|
264
|
+
async fn(e) {
|
|
265
|
+
var o, n;
|
|
266
|
+
const {
|
|
267
|
+
placement: i,
|
|
268
|
+
middlewareData: r,
|
|
269
|
+
rects: s,
|
|
270
|
+
initialPlacement: c,
|
|
271
|
+
platform: l,
|
|
272
|
+
elements: f
|
|
273
|
+
} = e, {
|
|
274
|
+
mainAxis: d = !0,
|
|
275
|
+
crossAxis: a = !0,
|
|
276
|
+
fallbackPlacements: m,
|
|
277
|
+
fallbackStrategy: u = "bestFit",
|
|
278
|
+
fallbackAxisSideDirection: h = "none",
|
|
279
|
+
flipAlignment: p = !0,
|
|
280
|
+
...w
|
|
281
|
+
} = Q(t, e);
|
|
282
|
+
if ((o = r.arrow) != null && o.alignmentOffset)
|
|
283
|
+
return {};
|
|
284
|
+
const g = M(i), x = D(c), y = M(c) === c, b = await (l.isRTL == null ? void 0 : l.isRTL(f.floating)), v = m || (y || !p ? [G(c)] : Nt(c)), z = h !== "none";
|
|
285
|
+
!m && z && v.push(...Wt(c, p, h, b));
|
|
286
|
+
const V = [c, ...v], ot = await Rt(e, w), q = [];
|
|
287
|
+
let W = ((n = r.flip) == null ? void 0 : n.overflows) || [];
|
|
288
|
+
if (d && q.push(ot[g]), a) {
|
|
289
|
+
const k = Mt(i, s, b);
|
|
290
|
+
q.push(ot[k[0]], ot[k[1]]);
|
|
291
|
+
}
|
|
292
|
+
if (W = [...W, {
|
|
293
|
+
placement: i,
|
|
294
|
+
overflows: q
|
|
295
|
+
}], !q.every((k) => k <= 0)) {
|
|
296
|
+
var dt, mt;
|
|
297
|
+
const k = (((dt = r.flip) == null ? void 0 : dt.index) || 0) + 1, it = V[k];
|
|
298
|
+
if (it && (!(a === "alignment" ? x !== D(it) : !1) || // We leave the current main axis only if every placement on that axis
|
|
299
|
+
// overflows the main axis.
|
|
300
|
+
W.every((R) => R.overflows[0] > 0 && D(R.placement) === x)))
|
|
301
|
+
return {
|
|
302
|
+
data: {
|
|
303
|
+
index: k,
|
|
304
|
+
overflows: W
|
|
305
|
+
},
|
|
306
|
+
reset: {
|
|
307
|
+
placement: it
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
let I = (mt = W.filter((P) => P.overflows[0] <= 0).sort((P, R) => P.overflows[1] - R.overflows[1])[0]) == null ? void 0 : mt.placement;
|
|
311
|
+
if (!I)
|
|
312
|
+
switch (u) {
|
|
313
|
+
case "bestFit": {
|
|
314
|
+
var ht;
|
|
315
|
+
const P = (ht = W.filter((R) => {
|
|
316
|
+
if (z) {
|
|
317
|
+
const S = D(R.placement);
|
|
318
|
+
return S === x || // Create a bias to the `y` side axis due to horizontal
|
|
319
|
+
// reading directions favoring greater width.
|
|
320
|
+
S === "y";
|
|
321
|
+
}
|
|
322
|
+
return !0;
|
|
323
|
+
}).map((R) => [R.placement, R.overflows.filter((S) => S > 0).reduce((S, kt) => S + kt, 0)]).sort((R, S) => R[1] - S[1])[0]) == null ? void 0 : ht[0];
|
|
324
|
+
P && (I = P);
|
|
325
|
+
break;
|
|
326
|
+
}
|
|
327
|
+
case "initialPlacement":
|
|
328
|
+
I = c;
|
|
329
|
+
break;
|
|
330
|
+
}
|
|
331
|
+
if (i !== I)
|
|
332
|
+
return {
|
|
333
|
+
reset: {
|
|
334
|
+
placement: I
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
return {};
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
async function It(t, e) {
|
|
343
|
+
const {
|
|
344
|
+
placement: o,
|
|
345
|
+
platform: n,
|
|
346
|
+
elements: i
|
|
347
|
+
} = t, r = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), s = M(o), c = Z(o), l = D(o) === "y", f = ["left", "top"].includes(s) ? -1 : 1, d = r && l ? -1 : 1, a = Q(e, t);
|
|
348
|
+
let {
|
|
349
|
+
mainAxis: m,
|
|
350
|
+
crossAxis: u,
|
|
351
|
+
alignmentAxis: h
|
|
352
|
+
} = typeof a == "number" ? {
|
|
353
|
+
mainAxis: a,
|
|
354
|
+
crossAxis: 0,
|
|
355
|
+
alignmentAxis: null
|
|
356
|
+
} : {
|
|
357
|
+
mainAxis: a.mainAxis || 0,
|
|
358
|
+
crossAxis: a.crossAxis || 0,
|
|
359
|
+
alignmentAxis: a.alignmentAxis
|
|
360
|
+
};
|
|
361
|
+
return c && typeof h == "number" && (u = c === "end" ? h * -1 : h), l ? {
|
|
362
|
+
x: u * d,
|
|
363
|
+
y: m * f
|
|
364
|
+
} : {
|
|
365
|
+
x: m * f,
|
|
366
|
+
y: u * d
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
const jt = function(t) {
|
|
370
|
+
return t === void 0 && (t = 0), {
|
|
371
|
+
name: "offset",
|
|
372
|
+
options: t,
|
|
373
|
+
async fn(e) {
|
|
374
|
+
var o, n;
|
|
375
|
+
const {
|
|
376
|
+
x: i,
|
|
377
|
+
y: r,
|
|
378
|
+
placement: s,
|
|
379
|
+
middlewareData: c
|
|
380
|
+
} = e, l = await It(e, t);
|
|
381
|
+
return s === ((o = c.offset) == null ? void 0 : o.placement) && (n = c.arrow) != null && n.alignmentOffset ? {} : {
|
|
382
|
+
x: i + l.x,
|
|
383
|
+
y: r + l.y,
|
|
384
|
+
data: {
|
|
385
|
+
...l,
|
|
386
|
+
placement: s
|
|
387
|
+
}
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
}, Yt = function(t) {
|
|
392
|
+
return t === void 0 && (t = {}), {
|
|
393
|
+
name: "shift",
|
|
394
|
+
options: t,
|
|
395
|
+
async fn(e) {
|
|
396
|
+
const {
|
|
397
|
+
x: o,
|
|
398
|
+
y: n,
|
|
399
|
+
placement: i
|
|
400
|
+
} = e, {
|
|
401
|
+
mainAxis: r = !0,
|
|
402
|
+
crossAxis: s = !1,
|
|
403
|
+
limiter: c = {
|
|
404
|
+
fn: (w) => {
|
|
405
|
+
let {
|
|
406
|
+
x: g,
|
|
407
|
+
y: x
|
|
408
|
+
} = w;
|
|
409
|
+
return {
|
|
410
|
+
x: g,
|
|
411
|
+
y: x
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
...l
|
|
416
|
+
} = Q(t, e), f = {
|
|
417
|
+
x: o,
|
|
418
|
+
y: n
|
|
419
|
+
}, d = await Rt(e, l), a = D(M(i)), m = vt(a);
|
|
420
|
+
let u = f[m], h = f[a];
|
|
421
|
+
if (r) {
|
|
422
|
+
const w = m === "y" ? "top" : "left", g = m === "y" ? "bottom" : "right", x = u + d[w], y = u - d[g];
|
|
423
|
+
u = gt(x, u, y);
|
|
424
|
+
}
|
|
425
|
+
if (s) {
|
|
426
|
+
const w = a === "y" ? "top" : "left", g = a === "y" ? "bottom" : "right", x = h + d[w], y = h - d[g];
|
|
427
|
+
h = gt(x, h, y);
|
|
428
|
+
}
|
|
429
|
+
const p = c.fn({
|
|
430
|
+
...e,
|
|
431
|
+
[m]: u,
|
|
432
|
+
[a]: h
|
|
433
|
+
});
|
|
434
|
+
return {
|
|
435
|
+
...p,
|
|
436
|
+
data: {
|
|
437
|
+
x: p.x - o,
|
|
438
|
+
y: p.y - n,
|
|
439
|
+
enabled: {
|
|
440
|
+
[m]: r,
|
|
441
|
+
[a]: s
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
};
|
|
445
|
+
}
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
function tt() {
|
|
449
|
+
return typeof window < "u";
|
|
450
|
+
}
|
|
451
|
+
function $(t) {
|
|
452
|
+
return Ot(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
453
|
+
}
|
|
454
|
+
function A(t) {
|
|
455
|
+
var e;
|
|
456
|
+
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
457
|
+
}
|
|
458
|
+
function E(t) {
|
|
459
|
+
var e;
|
|
460
|
+
return (e = (Ot(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
461
|
+
}
|
|
462
|
+
function Ot(t) {
|
|
463
|
+
return tt() ? t instanceof Node || t instanceof A(t).Node : !1;
|
|
464
|
+
}
|
|
465
|
+
function O(t) {
|
|
466
|
+
return tt() ? t instanceof Element || t instanceof A(t).Element : !1;
|
|
467
|
+
}
|
|
468
|
+
function T(t) {
|
|
469
|
+
return tt() ? t instanceof HTMLElement || t instanceof A(t).HTMLElement : !1;
|
|
470
|
+
}
|
|
471
|
+
function wt(t) {
|
|
472
|
+
return !tt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof A(t).ShadowRoot;
|
|
473
|
+
}
|
|
474
|
+
function Y(t) {
|
|
475
|
+
const {
|
|
476
|
+
overflow: e,
|
|
477
|
+
overflowX: o,
|
|
478
|
+
overflowY: n,
|
|
479
|
+
display: i
|
|
480
|
+
} = C(t);
|
|
481
|
+
return /auto|scroll|overlay|hidden|clip/.test(e + n + o) && !["inline", "contents"].includes(i);
|
|
482
|
+
}
|
|
483
|
+
function qt(t) {
|
|
484
|
+
return ["table", "td", "th"].includes($(t));
|
|
485
|
+
}
|
|
486
|
+
function et(t) {
|
|
487
|
+
return [":popover-open", ":modal"].some((e) => {
|
|
488
|
+
try {
|
|
489
|
+
return t.matches(e);
|
|
490
|
+
} catch {
|
|
491
|
+
return !1;
|
|
492
|
+
}
|
|
493
|
+
});
|
|
494
|
+
}
|
|
495
|
+
function lt(t) {
|
|
496
|
+
const e = ft(), o = O(t) ? C(t) : t;
|
|
497
|
+
return ["transform", "translate", "scale", "rotate", "perspective"].some((n) => o[n] ? o[n] !== "none" : !1) || (o.containerType ? o.containerType !== "normal" : !1) || !e && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !e && (o.filter ? o.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((n) => (o.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (o.contain || "").includes(n));
|
|
498
|
+
}
|
|
499
|
+
function Xt(t) {
|
|
500
|
+
let e = F(t);
|
|
501
|
+
for (; T(e) && !_(e); ) {
|
|
502
|
+
if (lt(e))
|
|
503
|
+
return e;
|
|
504
|
+
if (et(e))
|
|
505
|
+
return null;
|
|
506
|
+
e = F(e);
|
|
507
|
+
}
|
|
508
|
+
return null;
|
|
509
|
+
}
|
|
510
|
+
function ft() {
|
|
511
|
+
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
512
|
+
}
|
|
513
|
+
function _(t) {
|
|
514
|
+
return ["html", "body", "#document"].includes($(t));
|
|
515
|
+
}
|
|
516
|
+
function C(t) {
|
|
517
|
+
return A(t).getComputedStyle(t);
|
|
518
|
+
}
|
|
519
|
+
function nt(t) {
|
|
520
|
+
return O(t) ? {
|
|
521
|
+
scrollLeft: t.scrollLeft,
|
|
522
|
+
scrollTop: t.scrollTop
|
|
523
|
+
} : {
|
|
524
|
+
scrollLeft: t.scrollX,
|
|
525
|
+
scrollTop: t.scrollY
|
|
526
|
+
};
|
|
527
|
+
}
|
|
528
|
+
function F(t) {
|
|
529
|
+
if ($(t) === "html")
|
|
530
|
+
return t;
|
|
531
|
+
const e = (
|
|
532
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
533
|
+
t.assignedSlot || // DOM Element detected.
|
|
534
|
+
t.parentNode || // ShadowRoot detected.
|
|
535
|
+
wt(t) && t.host || // Fallback.
|
|
536
|
+
E(t)
|
|
537
|
+
);
|
|
538
|
+
return wt(e) ? e.host : e;
|
|
539
|
+
}
|
|
540
|
+
function Ct(t) {
|
|
541
|
+
const e = F(t);
|
|
542
|
+
return _(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : T(e) && Y(e) ? e : Ct(e);
|
|
543
|
+
}
|
|
544
|
+
function j(t, e, o) {
|
|
545
|
+
var n;
|
|
546
|
+
e === void 0 && (e = []), o === void 0 && (o = !0);
|
|
547
|
+
const i = Ct(t), r = i === ((n = t.ownerDocument) == null ? void 0 : n.body), s = A(i);
|
|
548
|
+
if (r) {
|
|
549
|
+
const c = ct(s);
|
|
550
|
+
return e.concat(s, s.visualViewport || [], Y(i) ? i : [], c && o ? j(c) : []);
|
|
551
|
+
}
|
|
552
|
+
return e.concat(i, j(i, [], o));
|
|
553
|
+
}
|
|
554
|
+
function ct(t) {
|
|
555
|
+
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
556
|
+
}
|
|
557
|
+
function Lt(t) {
|
|
558
|
+
const e = C(t);
|
|
559
|
+
let o = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
|
|
560
|
+
const i = T(t), r = i ? t.offsetWidth : o, s = i ? t.offsetHeight : n, c = K(o) !== r || K(n) !== s;
|
|
561
|
+
return c && (o = r, n = s), {
|
|
562
|
+
width: o,
|
|
563
|
+
height: n,
|
|
564
|
+
$: c
|
|
565
|
+
};
|
|
566
|
+
}
|
|
567
|
+
function at(t) {
|
|
568
|
+
return O(t) ? t : t.contextElement;
|
|
569
|
+
}
|
|
570
|
+
function H(t) {
|
|
571
|
+
const e = at(t);
|
|
572
|
+
if (!T(e))
|
|
573
|
+
return L(1);
|
|
574
|
+
const o = e.getBoundingClientRect(), {
|
|
575
|
+
width: n,
|
|
576
|
+
height: i,
|
|
577
|
+
$: r
|
|
578
|
+
} = Lt(e);
|
|
579
|
+
let s = (r ? K(o.width) : o.width) / n, c = (r ? K(o.height) : o.height) / i;
|
|
580
|
+
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
581
|
+
x: s,
|
|
582
|
+
y: c
|
|
583
|
+
};
|
|
584
|
+
}
|
|
585
|
+
const Ut = /* @__PURE__ */ L(0);
|
|
586
|
+
function Tt(t) {
|
|
587
|
+
const e = A(t);
|
|
588
|
+
return !ft() || !e.visualViewport ? Ut : {
|
|
589
|
+
x: e.visualViewport.offsetLeft,
|
|
590
|
+
y: e.visualViewport.offsetTop
|
|
591
|
+
};
|
|
592
|
+
}
|
|
593
|
+
function Kt(t, e, o) {
|
|
594
|
+
return e === void 0 && (e = !1), !o || e && o !== A(t) ? !1 : e;
|
|
595
|
+
}
|
|
596
|
+
function N(t, e, o, n) {
|
|
597
|
+
e === void 0 && (e = !1), o === void 0 && (o = !1);
|
|
598
|
+
const i = t.getBoundingClientRect(), r = at(t);
|
|
599
|
+
let s = L(1);
|
|
600
|
+
e && (n ? O(n) && (s = H(n)) : s = H(t));
|
|
601
|
+
const c = Kt(r, o, n) ? Tt(r) : L(0);
|
|
602
|
+
let l = (i.left + c.x) / s.x, f = (i.top + c.y) / s.y, d = i.width / s.x, a = i.height / s.y;
|
|
603
|
+
if (r) {
|
|
604
|
+
const m = A(r), u = n && O(n) ? A(n) : n;
|
|
605
|
+
let h = m, p = ct(h);
|
|
606
|
+
for (; p && n && u !== h; ) {
|
|
607
|
+
const w = H(p), g = p.getBoundingClientRect(), x = C(p), y = g.left + (p.clientLeft + parseFloat(x.paddingLeft)) * w.x, b = g.top + (p.clientTop + parseFloat(x.paddingTop)) * w.y;
|
|
608
|
+
l *= w.x, f *= w.y, d *= w.x, a *= w.y, l += y, f += b, h = A(p), p = ct(h);
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
return J({
|
|
612
|
+
width: d,
|
|
613
|
+
height: a,
|
|
614
|
+
x: l,
|
|
615
|
+
y: f
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
function ut(t, e) {
|
|
619
|
+
const o = nt(t).scrollLeft;
|
|
620
|
+
return e ? e.left + o : N(E(t)).left + o;
|
|
621
|
+
}
|
|
622
|
+
function Et(t, e, o) {
|
|
623
|
+
o === void 0 && (o = !1);
|
|
624
|
+
const n = t.getBoundingClientRect(), i = n.left + e.scrollLeft - (o ? 0 : (
|
|
625
|
+
// RTL <body> scrollbar.
|
|
626
|
+
ut(t, n)
|
|
627
|
+
)), r = n.top + e.scrollTop;
|
|
628
|
+
return {
|
|
629
|
+
x: i,
|
|
630
|
+
y: r
|
|
631
|
+
};
|
|
632
|
+
}
|
|
633
|
+
function Gt(t) {
|
|
634
|
+
let {
|
|
635
|
+
elements: e,
|
|
636
|
+
rect: o,
|
|
637
|
+
offsetParent: n,
|
|
638
|
+
strategy: i
|
|
639
|
+
} = t;
|
|
640
|
+
const r = i === "fixed", s = E(n), c = e ? et(e.floating) : !1;
|
|
641
|
+
if (n === s || c && r)
|
|
642
|
+
return o;
|
|
643
|
+
let l = {
|
|
644
|
+
scrollLeft: 0,
|
|
645
|
+
scrollTop: 0
|
|
646
|
+
}, f = L(1);
|
|
647
|
+
const d = L(0), a = T(n);
|
|
648
|
+
if ((a || !a && !r) && (($(n) !== "body" || Y(s)) && (l = nt(n)), T(n))) {
|
|
649
|
+
const u = N(n);
|
|
650
|
+
f = H(n), d.x = u.x + n.clientLeft, d.y = u.y + n.clientTop;
|
|
651
|
+
}
|
|
652
|
+
const m = s && !a && !r ? Et(s, l, !0) : L(0);
|
|
653
|
+
return {
|
|
654
|
+
width: o.width * f.x,
|
|
655
|
+
height: o.height * f.y,
|
|
656
|
+
x: o.x * f.x - l.scrollLeft * f.x + d.x + m.x,
|
|
657
|
+
y: o.y * f.y - l.scrollTop * f.y + d.y + m.y
|
|
658
|
+
};
|
|
659
|
+
}
|
|
660
|
+
function Jt(t) {
|
|
661
|
+
return Array.from(t.getClientRects());
|
|
662
|
+
}
|
|
663
|
+
function Qt(t) {
|
|
664
|
+
const e = E(t), o = nt(t), n = t.ownerDocument.body, i = B(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), r = B(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
|
665
|
+
let s = -o.scrollLeft + ut(t);
|
|
666
|
+
const c = -o.scrollTop;
|
|
667
|
+
return C(n).direction === "rtl" && (s += B(e.clientWidth, n.clientWidth) - i), {
|
|
668
|
+
width: i,
|
|
669
|
+
height: r,
|
|
670
|
+
x: s,
|
|
671
|
+
y: c
|
|
672
|
+
};
|
|
673
|
+
}
|
|
674
|
+
function Zt(t, e) {
|
|
675
|
+
const o = A(t), n = E(t), i = o.visualViewport;
|
|
676
|
+
let r = n.clientWidth, s = n.clientHeight, c = 0, l = 0;
|
|
677
|
+
if (i) {
|
|
678
|
+
r = i.width, s = i.height;
|
|
679
|
+
const f = ft();
|
|
680
|
+
(!f || f && e === "fixed") && (c = i.offsetLeft, l = i.offsetTop);
|
|
681
|
+
}
|
|
682
|
+
return {
|
|
683
|
+
width: r,
|
|
684
|
+
height: s,
|
|
685
|
+
x: c,
|
|
686
|
+
y: l
|
|
687
|
+
};
|
|
688
|
+
}
|
|
689
|
+
function te(t, e) {
|
|
690
|
+
const o = N(t, !0, e === "fixed"), n = o.top + t.clientTop, i = o.left + t.clientLeft, r = T(t) ? H(t) : L(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = i * r.x, f = n * r.y;
|
|
691
|
+
return {
|
|
692
|
+
width: s,
|
|
693
|
+
height: c,
|
|
694
|
+
x: l,
|
|
695
|
+
y: f
|
|
696
|
+
};
|
|
697
|
+
}
|
|
698
|
+
function xt(t, e, o) {
|
|
699
|
+
let n;
|
|
700
|
+
if (e === "viewport")
|
|
701
|
+
n = Zt(t, o);
|
|
702
|
+
else if (e === "document")
|
|
703
|
+
n = Qt(E(t));
|
|
704
|
+
else if (O(e))
|
|
705
|
+
n = te(e, o);
|
|
706
|
+
else {
|
|
707
|
+
const i = Tt(t);
|
|
708
|
+
n = {
|
|
709
|
+
x: e.x - i.x,
|
|
710
|
+
y: e.y - i.y,
|
|
711
|
+
width: e.width,
|
|
712
|
+
height: e.height
|
|
713
|
+
};
|
|
714
|
+
}
|
|
715
|
+
return J(n);
|
|
716
|
+
}
|
|
717
|
+
function St(t, e) {
|
|
718
|
+
const o = F(t);
|
|
719
|
+
return o === e || !O(o) || _(o) ? !1 : C(o).position === "fixed" || St(o, e);
|
|
720
|
+
}
|
|
721
|
+
function ee(t, e) {
|
|
722
|
+
const o = e.get(t);
|
|
723
|
+
if (o)
|
|
724
|
+
return o;
|
|
725
|
+
let n = j(t, [], !1).filter((c) => O(c) && $(c) !== "body"), i = null;
|
|
726
|
+
const r = C(t).position === "fixed";
|
|
727
|
+
let s = r ? F(t) : t;
|
|
728
|
+
for (; O(s) && !_(s); ) {
|
|
729
|
+
const c = C(s), l = lt(s);
|
|
730
|
+
!l && c.position === "fixed" && (i = null), (r ? !l && !i : !l && c.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Y(s) && !l && St(t, s)) ? n = n.filter((d) => d !== s) : i = c, s = F(s);
|
|
731
|
+
}
|
|
732
|
+
return e.set(t, n), n;
|
|
733
|
+
}
|
|
734
|
+
function ne(t) {
|
|
735
|
+
let {
|
|
736
|
+
element: e,
|
|
737
|
+
boundary: o,
|
|
738
|
+
rootBoundary: n,
|
|
739
|
+
strategy: i
|
|
740
|
+
} = t;
|
|
741
|
+
const s = [...o === "clippingAncestors" ? et(e) ? [] : ee(e, this._c) : [].concat(o), n], c = s[0], l = s.reduce((f, d) => {
|
|
742
|
+
const a = xt(e, d, i);
|
|
743
|
+
return f.top = B(a.top, f.top), f.right = U(a.right, f.right), f.bottom = U(a.bottom, f.bottom), f.left = B(a.left, f.left), f;
|
|
744
|
+
}, xt(e, c, i));
|
|
745
|
+
return {
|
|
746
|
+
width: l.right - l.left,
|
|
747
|
+
height: l.bottom - l.top,
|
|
748
|
+
x: l.left,
|
|
749
|
+
y: l.top
|
|
750
|
+
};
|
|
751
|
+
}
|
|
752
|
+
function oe(t) {
|
|
753
|
+
const {
|
|
754
|
+
width: e,
|
|
755
|
+
height: o
|
|
756
|
+
} = Lt(t);
|
|
757
|
+
return {
|
|
758
|
+
width: e,
|
|
759
|
+
height: o
|
|
760
|
+
};
|
|
761
|
+
}
|
|
762
|
+
function ie(t, e, o) {
|
|
763
|
+
const n = T(e), i = E(e), r = o === "fixed", s = N(t, !0, r, e);
|
|
764
|
+
let c = {
|
|
765
|
+
scrollLeft: 0,
|
|
766
|
+
scrollTop: 0
|
|
767
|
+
};
|
|
768
|
+
const l = L(0);
|
|
769
|
+
function f() {
|
|
770
|
+
l.x = ut(i);
|
|
771
|
+
}
|
|
772
|
+
if (n || !n && !r)
|
|
773
|
+
if (($(e) !== "body" || Y(i)) && (c = nt(e)), n) {
|
|
774
|
+
const u = N(e, !0, r, e);
|
|
775
|
+
l.x = u.x + e.clientLeft, l.y = u.y + e.clientTop;
|
|
776
|
+
} else i && f();
|
|
777
|
+
r && !n && i && f();
|
|
778
|
+
const d = i && !n && !r ? Et(i, c) : L(0), a = s.left + c.scrollLeft - l.x - d.x, m = s.top + c.scrollTop - l.y - d.y;
|
|
779
|
+
return {
|
|
780
|
+
x: a,
|
|
781
|
+
y: m,
|
|
782
|
+
width: s.width,
|
|
783
|
+
height: s.height
|
|
784
|
+
};
|
|
785
|
+
}
|
|
786
|
+
function st(t) {
|
|
787
|
+
return C(t).position === "static";
|
|
788
|
+
}
|
|
789
|
+
function yt(t, e) {
|
|
790
|
+
if (!T(t) || C(t).position === "fixed")
|
|
791
|
+
return null;
|
|
792
|
+
if (e)
|
|
793
|
+
return e(t);
|
|
794
|
+
let o = t.offsetParent;
|
|
795
|
+
return E(t) === o && (o = o.ownerDocument.body), o;
|
|
796
|
+
}
|
|
797
|
+
function Dt(t, e) {
|
|
798
|
+
const o = A(t);
|
|
799
|
+
if (et(t))
|
|
800
|
+
return o;
|
|
801
|
+
if (!T(t)) {
|
|
802
|
+
let i = F(t);
|
|
803
|
+
for (; i && !_(i); ) {
|
|
804
|
+
if (O(i) && !st(i))
|
|
805
|
+
return i;
|
|
806
|
+
i = F(i);
|
|
807
|
+
}
|
|
808
|
+
return o;
|
|
809
|
+
}
|
|
810
|
+
let n = yt(t, e);
|
|
811
|
+
for (; n && qt(n) && st(n); )
|
|
812
|
+
n = yt(n, e);
|
|
813
|
+
return n && _(n) && st(n) && !lt(n) ? o : n || Xt(t) || o;
|
|
814
|
+
}
|
|
815
|
+
const se = async function(t) {
|
|
816
|
+
const e = this.getOffsetParent || Dt, o = this.getDimensions, n = await o(t.floating);
|
|
817
|
+
return {
|
|
818
|
+
reference: ie(t.reference, await e(t.floating), t.strategy),
|
|
819
|
+
floating: {
|
|
820
|
+
x: 0,
|
|
821
|
+
y: 0,
|
|
822
|
+
width: n.width,
|
|
823
|
+
height: n.height
|
|
824
|
+
}
|
|
825
|
+
};
|
|
826
|
+
};
|
|
827
|
+
function re(t) {
|
|
828
|
+
return C(t).direction === "rtl";
|
|
829
|
+
}
|
|
830
|
+
const ce = {
|
|
831
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Gt,
|
|
832
|
+
getDocumentElement: E,
|
|
833
|
+
getClippingRect: ne,
|
|
834
|
+
getOffsetParent: Dt,
|
|
835
|
+
getElementRects: se,
|
|
836
|
+
getClientRects: Jt,
|
|
837
|
+
getDimensions: oe,
|
|
838
|
+
getScale: H,
|
|
839
|
+
isElement: O,
|
|
840
|
+
isRTL: re
|
|
841
|
+
};
|
|
842
|
+
function Ft(t, e) {
|
|
843
|
+
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
844
|
+
}
|
|
845
|
+
function le(t, e) {
|
|
846
|
+
let o = null, n;
|
|
847
|
+
const i = E(t);
|
|
848
|
+
function r() {
|
|
849
|
+
var c;
|
|
850
|
+
clearTimeout(n), (c = o) == null || c.disconnect(), o = null;
|
|
851
|
+
}
|
|
852
|
+
function s(c, l) {
|
|
853
|
+
c === void 0 && (c = !1), l === void 0 && (l = 1), r();
|
|
854
|
+
const f = t.getBoundingClientRect(), {
|
|
855
|
+
left: d,
|
|
856
|
+
top: a,
|
|
857
|
+
width: m,
|
|
858
|
+
height: u
|
|
859
|
+
} = f;
|
|
860
|
+
if (c || e(), !m || !u)
|
|
861
|
+
return;
|
|
862
|
+
const h = X(a), p = X(i.clientWidth - (d + m)), w = X(i.clientHeight - (a + u)), g = X(d), y = {
|
|
863
|
+
rootMargin: -h + "px " + -p + "px " + -w + "px " + -g + "px",
|
|
864
|
+
threshold: B(0, U(1, l)) || 1
|
|
865
|
+
};
|
|
866
|
+
let b = !0;
|
|
867
|
+
function v(z) {
|
|
868
|
+
const V = z[0].intersectionRatio;
|
|
869
|
+
if (V !== l) {
|
|
870
|
+
if (!b)
|
|
871
|
+
return s();
|
|
872
|
+
V ? s(!1, V) : n = setTimeout(() => {
|
|
873
|
+
s(!1, 1e-7);
|
|
874
|
+
}, 1e3);
|
|
875
|
+
}
|
|
876
|
+
V === 1 && !Ft(f, t.getBoundingClientRect()) && s(), b = !1;
|
|
877
|
+
}
|
|
878
|
+
try {
|
|
879
|
+
o = new IntersectionObserver(v, {
|
|
880
|
+
...y,
|
|
881
|
+
// Handle <iframe>s
|
|
882
|
+
root: i.ownerDocument
|
|
883
|
+
});
|
|
884
|
+
} catch {
|
|
885
|
+
o = new IntersectionObserver(v, y);
|
|
886
|
+
}
|
|
887
|
+
o.observe(t);
|
|
888
|
+
}
|
|
889
|
+
return s(!0), r;
|
|
890
|
+
}
|
|
891
|
+
function fe(t, e, o, n) {
|
|
892
|
+
n === void 0 && (n = {});
|
|
893
|
+
const {
|
|
894
|
+
ancestorScroll: i = !0,
|
|
895
|
+
ancestorResize: r = !0,
|
|
896
|
+
elementResize: s = typeof ResizeObserver == "function",
|
|
897
|
+
layoutShift: c = typeof IntersectionObserver == "function",
|
|
898
|
+
animationFrame: l = !1
|
|
899
|
+
} = n, f = at(t), d = i || r ? [...f ? j(f) : [], ...j(e)] : [];
|
|
900
|
+
d.forEach((g) => {
|
|
901
|
+
i && g.addEventListener("scroll", o, {
|
|
902
|
+
passive: !0
|
|
903
|
+
}), r && g.addEventListener("resize", o);
|
|
904
|
+
});
|
|
905
|
+
const a = f && c ? le(f, o) : null;
|
|
906
|
+
let m = -1, u = null;
|
|
907
|
+
s && (u = new ResizeObserver((g) => {
|
|
908
|
+
let [x] = g;
|
|
909
|
+
x && x.target === f && u && (u.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
910
|
+
var y;
|
|
911
|
+
(y = u) == null || y.observe(e);
|
|
912
|
+
})), o();
|
|
913
|
+
}), f && !l && u.observe(f), u.observe(e));
|
|
914
|
+
let h, p = l ? N(t) : null;
|
|
915
|
+
l && w();
|
|
916
|
+
function w() {
|
|
917
|
+
const g = N(t);
|
|
918
|
+
p && !Ft(p, g) && o(), p = g, h = requestAnimationFrame(w);
|
|
919
|
+
}
|
|
920
|
+
return o(), () => {
|
|
921
|
+
var g;
|
|
922
|
+
d.forEach((x) => {
|
|
923
|
+
i && x.removeEventListener("scroll", o), r && x.removeEventListener("resize", o);
|
|
924
|
+
}), a == null || a(), (g = u) == null || g.disconnect(), u = null, l && cancelAnimationFrame(h);
|
|
925
|
+
};
|
|
926
|
+
}
|
|
927
|
+
const ae = jt, ue = Yt, de = zt, me = (t, e, o) => {
|
|
928
|
+
const n = /* @__PURE__ */ new Map(), i = {
|
|
929
|
+
platform: ce,
|
|
930
|
+
...o
|
|
931
|
+
}, r = {
|
|
932
|
+
...i.platform,
|
|
933
|
+
_c: n
|
|
934
|
+
};
|
|
935
|
+
return $t(t, e, {
|
|
936
|
+
...i,
|
|
937
|
+
platform: r
|
|
938
|
+
});
|
|
939
|
+
};
|
|
940
|
+
export {
|
|
941
|
+
fe as a,
|
|
942
|
+
me as c,
|
|
943
|
+
de as f,
|
|
944
|
+
j as g,
|
|
945
|
+
ae as o,
|
|
946
|
+
ue as s
|
|
947
|
+
};
|