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