@altinn/altinn-components 0.63.4 → 0.63.6

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 (217) hide show
  1. package/dist/{ToolbarSearch-CDOcKzpM.js → ToolbarSearch-75dn6Vnh.js} +208 -207
  2. package/dist/assets/ToolbarSearch.css +1 -1
  3. package/dist/components/AccessAreaListItem/AccessAreaListItem.js +4 -3
  4. package/dist/components/AccessPackageListItem/AccessPackageListItem.js +10 -9
  5. package/dist/components/Account/AccountList.js +8 -7
  6. package/dist/components/Account/AccountListItem.js +8 -7
  7. package/dist/components/Account/AccountListItemControls.js +4 -3
  8. package/dist/components/Account/AccountListItemDetails.js +4 -3
  9. package/dist/components/Account/AccountListVirtual.js +4 -3
  10. package/dist/components/Account/AccountMenu.js +8 -7
  11. package/dist/components/Account/AccountNotificationSettings.js +8 -7
  12. package/dist/components/Account/AccountOrganization.js +4 -3
  13. package/dist/components/AccountSelector/AccountSelector.js +18 -19
  14. package/dist/components/ActivityLog/ActivityLog.js +4 -3
  15. package/dist/components/ActivityLog/ActivityLogItem.js +4 -3
  16. package/dist/components/ActivityLog/ActivityLogSegment.js +4 -3
  17. package/dist/components/Alert/Alert.js +8 -7
  18. package/dist/components/Article/Article.js +4 -3
  19. package/dist/components/Article/ArticleContact.js +4 -3
  20. package/dist/components/Article/ArticleHeader.js +4 -3
  21. package/dist/components/Attachment/AttachmentLink.js +1 -1
  22. package/dist/components/Badge/Badge.js +3 -2
  23. package/dist/components/Badge/index.js +1 -1
  24. package/dist/components/Banner/Banner.js +4 -3
  25. package/dist/components/Bookmarks/BookmarkModal.js +7 -6
  26. package/dist/components/Bookmarks/BookmarkSettingsItem.js +4 -3
  27. package/dist/components/Bookmarks/BookmarkSettingsItemLabel.js +7 -6
  28. package/dist/components/Bookmarks/BookmarkSettingsList.js +8 -7
  29. package/dist/components/Breadcrumbs/Breadcrumbs.js +4 -3
  30. package/dist/components/Bulk/BulkHeader.js +8 -7
  31. package/dist/components/Button/Button.js +4 -4
  32. package/dist/components/Button/ButtonIcon.js +4 -3
  33. package/dist/components/Button/ComboButton.js +4 -3
  34. package/dist/components/Button/FloatingActionButton.js +4 -3
  35. package/dist/components/Button/IconButton.js +7 -6
  36. package/dist/components/Byline/Byline.js +3 -2
  37. package/dist/components/Byline/index.js +1 -1
  38. package/dist/components/ContextMenu/ContextMenu.js +17 -16
  39. package/dist/components/Dashboard/DashboardCard.js +22 -40
  40. package/dist/components/Dashboard/DashboardHeader.js +8 -7
  41. package/dist/components/Datepicker/Datepicker.js +1 -1
  42. package/dist/components/Datepicker/DatepickerHeader.js +7 -6
  43. package/dist/components/Datepicker/DatepickerTable.js +11 -10
  44. package/dist/components/Dialog/Dialog.js +4 -3
  45. package/dist/components/Dialog/DialogActions.js +4 -3
  46. package/dist/components/Dialog/DialogActivityLog.js +4 -3
  47. package/dist/components/Dialog/DialogAttachments.js +5 -4
  48. package/dist/components/Dialog/DialogBody.js +4 -3
  49. package/dist/components/Dialog/DialogByline.js +3 -2
  50. package/dist/components/Dialog/DialogContact.js +4 -3
  51. package/dist/components/Dialog/DialogHeader.js +8 -7
  52. package/dist/components/Dialog/DialogHistory.js +8 -7
  53. package/dist/components/Dialog/DialogHistoryItem.js +4 -3
  54. package/dist/components/Dialog/DialogHistorySegment.js +4 -3
  55. package/dist/components/Dialog/DialogLayout.js +7 -6
  56. package/dist/components/Dialog/DialogList.js +3 -2
  57. package/dist/components/Dialog/DialogListItem.js +3 -2
  58. package/dist/components/Dialog/DialogMetadata.js +3 -2
  59. package/dist/components/Dialog/DialogSection.js +6 -5
  60. package/dist/components/Dialog/DialogSeenBy.js +19 -18
  61. package/dist/components/Dialog/DialogSelect.js +10 -9
  62. package/dist/components/Dialog/DialogStatus.js +4 -3
  63. package/dist/components/Dialog/DialogTabs.js +4 -3
  64. package/dist/components/Dialog/SeenByLog.js +10 -9
  65. package/dist/components/Dialog/SeenByLogButton.js +4 -3
  66. package/dist/components/Dialog/SeenByLogItem.js +8 -7
  67. package/dist/components/Dialog/index.js +1 -1
  68. package/dist/components/Dropdown/DrawerButton.js +4 -3
  69. package/dist/components/Dropdown/DrawerHeader.js +4 -3
  70. package/dist/components/Dropdown/Dropdown.js +3 -2
  71. package/dist/components/Dropdown/DropdownBase.js +4 -3
  72. package/dist/components/Dropdown/FloatingDropdown.js +4 -3
  73. package/dist/components/Dropdown/index.js +1 -1
  74. package/dist/components/DsComponents/index.js +26 -31
  75. package/dist/components/Forms/Checkbox.js +4 -3
  76. package/dist/components/Forms/CheckboxOptions.js +4 -3
  77. package/dist/components/Forms/Field.js +6 -5
  78. package/dist/components/Forms/FieldBase.js +3 -2
  79. package/dist/components/Forms/Fieldset.js +10 -23
  80. package/dist/components/Forms/FieldsetBase.js +4 -3
  81. package/dist/components/Forms/Input.js +8 -7
  82. package/dist/components/Forms/Label.js +3 -2
  83. package/dist/components/Forms/Legend.js +4 -3
  84. package/dist/components/Forms/Radio.js +4 -3
  85. package/dist/components/Forms/RadioOptions.js +4 -3
  86. package/dist/components/Forms/SearchField.js +3 -2
  87. package/dist/components/Forms/Select.js +5 -23
  88. package/dist/components/Forms/SelectField.js +4 -3
  89. package/dist/components/Forms/Switch.js +4 -3
  90. package/dist/components/Forms/SwitchOptions.js +4 -3
  91. package/dist/components/Forms/TextField.js +4 -3
  92. package/dist/components/Forms/TextFieldDropdown.js +4 -3
  93. package/dist/components/Forms/Textarea.js +4 -3
  94. package/dist/components/Forms/TextareaField.js +4 -3
  95. package/dist/components/Forms/index.js +1 -1
  96. package/dist/components/GlobalHeader/GlobalAccountButton.js +4 -3
  97. package/dist/components/GlobalHeader/GlobalHeader.js +29 -28
  98. package/dist/components/GlobalHeader/GlobalMenuButton.js +7 -6
  99. package/dist/components/GlobalHeader/HeaderDrawer.js +12 -11
  100. package/dist/components/GlobalHeader/HeaderDropdown.js +6 -5
  101. package/dist/components/GlobalHeader/HeaderLogo.js +4 -3
  102. package/dist/components/GlobalMenu/GlobalMenu.js +11 -10
  103. package/dist/components/GlobalMenu/LocaleSwitcher.js +4 -3
  104. package/dist/components/GlobalMenu/LogoutButton.js +7 -6
  105. package/dist/components/Icon/Icon.js +4 -3
  106. package/dist/components/Icon/index.js +1 -1
  107. package/dist/components/Inbox/InboxPage.js +7 -6
  108. package/dist/components/InboxSearch/InboxSearch.js +7 -6
  109. package/dist/components/Item/ItemLabel.js +1 -1
  110. package/dist/components/Item/ItemMedia.js +3 -2
  111. package/dist/components/Item/ItemSelect.js +5 -4
  112. package/dist/components/Item/index.js +1 -1
  113. package/dist/components/Layout/Layout.js +8 -7
  114. package/dist/components/List/List.js +4 -3
  115. package/dist/components/List/ListBase.js +4 -3
  116. package/dist/components/List/ListItemHeader.js +14 -13
  117. package/dist/components/List/ListItemIcon.js +5 -4
  118. package/dist/components/List/ListItemLabel.js +12 -11
  119. package/dist/components/Menu/Menu.js +1 -1
  120. package/dist/components/Menu/MenuItem.js +3 -2
  121. package/dist/components/Menu/MenuItems.js +3 -2
  122. package/dist/components/Menu/MenuListSearch.js +3 -2
  123. package/dist/components/Menu/MenuOption.js +1 -1
  124. package/dist/components/Menu/TabMenu.js +4 -3
  125. package/dist/components/Menu/VirtualizedMenuItems.js +3 -2
  126. package/dist/components/Menu/index.js +1 -1
  127. package/dist/components/Menu/useMenuSearch.js +1 -1
  128. package/dist/components/Metadata/MetaItem.js +1 -1
  129. package/dist/components/Metadata/MetaItemIcon.js +3 -2
  130. package/dist/components/Metadata/MetaTimestamp.js +1 -1
  131. package/dist/components/Metadata/Metadata.js +4 -3
  132. package/dist/components/Metadata/index.js +1 -1
  133. package/dist/components/Modal/Modal.js +4 -3
  134. package/dist/components/Modal/ModalBase.js +4 -3
  135. package/dist/components/Modal/ModalHeader.js +4 -3
  136. package/dist/components/Modal/ModalIcon.js +6 -5
  137. package/dist/components/Notifications/NotificationItem.js +4 -3
  138. package/dist/components/Notifications/NotificationItemBase.js +4 -3
  139. package/dist/components/Notifications/NotificationItemControls.js +7 -6
  140. package/dist/components/Notifications/NotificationItemIcon.js +6 -5
  141. package/dist/components/Page/AccordionSection.js +4 -3
  142. package/dist/components/Page/ContactButtons.js +4 -3
  143. package/dist/components/Page/ContactSection.js +4 -3
  144. package/dist/components/Page/PageDetails.js +7 -6
  145. package/dist/components/Page/PageMenu.js +9 -8
  146. package/dist/components/Page/PageNav.js +8 -7
  147. package/dist/components/Page/Section.js +8 -7
  148. package/dist/components/Pagination/Pagination.js +11 -10
  149. package/dist/components/ResourceListItem/ResourceListItem.js +4 -3
  150. package/dist/components/RootProvider/RootProvider.js +4 -3
  151. package/dist/components/RootProvider/index.js +1 -1
  152. package/dist/components/Search/SearchItem.js +8 -7
  153. package/dist/components/Searchbar/Autocomplete.js +11 -10
  154. package/dist/components/Searchbar/AutocompleteItem.js +4 -3
  155. package/dist/components/Searchbar/Searchbar.js +8 -7
  156. package/dist/components/Searchbar/SearchbarField.js +8 -7
  157. package/dist/components/Settings/SettingsItem.js +4 -3
  158. package/dist/components/Settings/SettingsItemBase.js +13 -12
  159. package/dist/components/Settings/SettingsList.js +4 -3
  160. package/dist/components/Settings/SettingsListVirtual.js +4 -3
  161. package/dist/components/Settings/SettingsModal.js +4 -3
  162. package/dist/components/Settings/SettingsSection.js +10 -9
  163. package/dist/components/Settings/UsedByLog.js +12 -11
  164. package/dist/components/Settings/UsedByLogItem.js +10 -9
  165. package/dist/components/SkipLink/SkipLink.js +9 -12
  166. package/dist/components/Snackbar/SnackbarItem.js +4 -3
  167. package/dist/components/Timeline/Timeline.js +4 -3
  168. package/dist/components/Timeline/TimelineActivity.js +4 -3
  169. package/dist/components/Timeline/TimelineBase.js +8 -7
  170. package/dist/components/Timeline/TimelineFooter.js +4 -3
  171. package/dist/components/Timeline/TimelineHeader.js +4 -3
  172. package/dist/components/Timeline/TimelineIcon.js +6 -5
  173. package/dist/components/Timeline/TimelineSection.js +4 -3
  174. package/dist/components/Timeline/TimelineSegment.js +4 -3
  175. package/dist/components/Toolbar/DatepickerFilter.js +5 -4
  176. package/dist/components/Toolbar/SelectDateFilter.js +4 -3
  177. package/dist/components/Toolbar/Toolbar.js +1 -1
  178. package/dist/components/Toolbar/ToolbarFilter.js +4 -3
  179. package/dist/components/Toolbar/ToolbarFilterAddMenu.js +4 -3
  180. package/dist/components/Toolbar/ToolbarFilterButton.js +4 -3
  181. package/dist/components/Toolbar/ToolbarFilterMenu.js +12 -11
  182. package/dist/components/Toolbar/ToolbarMenu.js +3 -2
  183. package/dist/components/Toolbar/ToolbarSearch.js +3 -2
  184. package/dist/components/Toolbar/index.js +1 -1
  185. package/dist/components/Tooltip/Tooltip.js +7 -99
  186. package/dist/components/Transmission/Transmission.js +4 -3
  187. package/dist/components/Transmission/TransmissionList.js +10 -9
  188. package/dist/components/Transmission/TransmissionType.js +4 -3
  189. package/dist/components/Typography/Heading.js +3 -2
  190. package/dist/components/Typography/Link.js +4 -4
  191. package/dist/components/Typography/index.js +1 -1
  192. package/dist/components/UserListItem/UserListItem.js +4 -3
  193. package/dist/components/index.js +421 -426
  194. package/dist/hooks/useAccountSelector.js +4 -3
  195. package/dist/index.js +434 -439
  196. package/dist/tooltip-B5zQ3zF0.js +6303 -0
  197. package/dist/types/lib/components/Toolbar/ToolbarSearch.stories.d.ts +2 -0
  198. package/dist/types/lib/components/UserListItem/UserListItem.d.ts +1 -1
  199. package/dist/types/lib/components/UserListItem/UserListItem.stories.d.ts +7 -0
  200. package/dist/use-pagination-mAaJfKMF.js +52 -0
  201. package/package.json +4 -4
  202. package/dist/alert-BzifOfXl.js +0 -10
  203. package/dist/button-BB5sYVKY.js +0 -38
  204. package/dist/fieldset-legend-B6lDmp0N.js +0 -10
  205. package/dist/floating-ui.dom-bEgaHJCq.js +0 -997
  206. package/dist/heading-C_XYsUfi.js +0 -12
  207. package/dist/index-D7FJjvrv.js +0 -86
  208. package/dist/index-Q0EA2XB0.js +0 -111
  209. package/dist/index-z82sbSVU.js +0 -105
  210. package/dist/input-wBv_FkEV.js +0 -12
  211. package/dist/label-xTmTyPhk.js +0 -11
  212. package/dist/link-D1SA3LCe.js +0 -10
  213. package/dist/lite-1fxw3LjI.js +0 -7
  214. package/dist/paragraph-BRiIBpbY.js +0 -11
  215. package/dist/textarea-BBstVlPT.js +0 -10
  216. package/dist/textfield-f4Za2qt6.js +0 -3484
  217. package/dist/use-merge-refs-Cj4kTYVj.js +0 -29
@@ -1,997 +0,0 @@
1
- const I = Math.min, A = Math.max, et = Math.round, tt = Math.floor, T = (t) => ({
2
- x: t,
3
- y: t
4
- }), Bt = {
5
- left: "right",
6
- right: "left",
7
- bottom: "top",
8
- top: "bottom"
9
- }, Nt = {
10
- start: "end",
11
- end: "start"
12
- };
13
- function pt(t, e, n) {
14
- return A(t, I(e, n));
15
- }
16
- function J(t, e) {
17
- return typeof t == "function" ? t(e) : t;
18
- }
19
- function k(t) {
20
- return t.split("-")[0];
21
- }
22
- function Q(t) {
23
- return t.split("-")[1];
24
- }
25
- function Ct(t) {
26
- return t === "x" ? "y" : "x";
27
- }
28
- function Ot(t) {
29
- return t === "y" ? "height" : "width";
30
- }
31
- const Vt = /* @__PURE__ */ new Set(["top", "bottom"]);
32
- function F(t) {
33
- return Vt.has(k(t)) ? "y" : "x";
34
- }
35
- function St(t) {
36
- return Ct(F(t));
37
- }
38
- function Ht(t, e, n) {
39
- n === void 0 && (n = !1);
40
- const o = Q(t), i = St(t), r = Ot(i);
41
- let s = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
42
- return e.reference[r] > e.floating[r] && (s = nt(s)), [s, nt(s)];
43
- }
44
- function _t(t) {
45
- const e = nt(t);
46
- return [ft(t), e, ft(e)];
47
- }
48
- function ft(t) {
49
- return t.replace(/start|end/g, (e) => Nt[e]);
50
- }
51
- const wt = ["left", "right"], xt = ["right", "left"], $t = ["top", "bottom"], zt = ["bottom", "top"];
52
- function It(t, e, n) {
53
- switch (t) {
54
- case "top":
55
- case "bottom":
56
- return n ? e ? xt : wt : e ? wt : xt;
57
- case "left":
58
- case "right":
59
- return e ? $t : zt;
60
- default:
61
- return [];
62
- }
63
- }
64
- function Xt(t, e, n, o) {
65
- const i = Q(t);
66
- let r = It(k(t), n === "start", o);
67
- return i && (r = r.map((s) => s + "-" + i), e && (r = r.concat(r.map(ft)))), r;
68
- }
69
- function nt(t) {
70
- return t.replace(/left|right|bottom|top/g, (e) => Bt[e]);
71
- }
72
- function jt(t) {
73
- return {
74
- top: 0,
75
- right: 0,
76
- bottom: 0,
77
- left: 0,
78
- ...t
79
- };
80
- }
81
- function Yt(t) {
82
- return typeof t != "number" ? jt(t) : {
83
- top: t,
84
- right: t,
85
- bottom: t,
86
- left: t
87
- };
88
- }
89
- function ot(t) {
90
- const {
91
- x: e,
92
- y: n,
93
- width: o,
94
- height: i
95
- } = t;
96
- return {
97
- width: o,
98
- height: i,
99
- top: n,
100
- left: e,
101
- right: e + o,
102
- bottom: n + i,
103
- x: e,
104
- y: n
105
- };
106
- }
107
- function yt(t, e, n) {
108
- let {
109
- reference: o,
110
- floating: i
111
- } = t;
112
- const r = F(e), s = St(e), c = Ot(s), l = k(e), a = r === "y", f = o.x + o.width / 2 - i.width / 2, u = o.y + o.height / 2 - i.height / 2, m = o[c] / 2 - i[c] / 2;
113
- let d;
114
- switch (l) {
115
- case "top":
116
- d = {
117
- x: f,
118
- y: o.y - i.height
119
- };
120
- break;
121
- case "bottom":
122
- d = {
123
- x: f,
124
- y: o.y + o.height
125
- };
126
- break;
127
- case "right":
128
- d = {
129
- x: o.x + o.width,
130
- y: u
131
- };
132
- break;
133
- case "left":
134
- d = {
135
- x: o.x - i.width,
136
- y: u
137
- };
138
- break;
139
- default:
140
- d = {
141
- x: o.x,
142
- y: o.y
143
- };
144
- }
145
- switch (Q(e)) {
146
- case "start":
147
- d[s] -= m * (n && a ? -1 : 1);
148
- break;
149
- case "end":
150
- d[s] += m * (n && a ? -1 : 1);
151
- break;
152
- }
153
- return d;
154
- }
155
- const qt = async (t, e, n) => {
156
- const {
157
- placement: o = "bottom",
158
- strategy: i = "absolute",
159
- middleware: r = [],
160
- platform: s
161
- } = n, c = r.filter(Boolean), l = await (s.isRTL == null ? void 0 : s.isRTL(e));
162
- let a = await s.getElementRects({
163
- reference: t,
164
- floating: e,
165
- strategy: i
166
- }), {
167
- x: f,
168
- y: u
169
- } = yt(a, o, l), m = o, d = {}, h = 0;
170
- for (let p = 0; p < c.length; p++) {
171
- const {
172
- name: w,
173
- fn: g
174
- } = c[p], {
175
- x,
176
- y,
177
- data: b,
178
- reset: v
179
- } = await g({
180
- x: f,
181
- y: u,
182
- initialPlacement: o,
183
- placement: m,
184
- strategy: i,
185
- middlewareData: d,
186
- rects: a,
187
- platform: s,
188
- elements: {
189
- reference: t,
190
- floating: e
191
- }
192
- });
193
- f = x ?? f, u = y ?? u, d = {
194
- ...d,
195
- [w]: {
196
- ...d[w],
197
- ...b
198
- }
199
- }, v && h <= 50 && (h++, typeof v == "object" && (v.placement && (m = v.placement), v.rects && (a = v.rects === !0 ? await s.getElementRects({
200
- reference: t,
201
- floating: e,
202
- strategy: i
203
- }) : v.rects), {
204
- x: f,
205
- y: u
206
- } = yt(a, m, l)), p = -1);
207
- }
208
- return {
209
- x: f,
210
- y: u,
211
- placement: m,
212
- strategy: i,
213
- middlewareData: d
214
- };
215
- };
216
- async function dt(t, e) {
217
- var n;
218
- e === void 0 && (e = {});
219
- const {
220
- x: o,
221
- y: i,
222
- platform: r,
223
- rects: s,
224
- elements: c,
225
- strategy: l
226
- } = t, {
227
- boundary: a = "clippingAncestors",
228
- rootBoundary: f = "viewport",
229
- elementContext: u = "floating",
230
- altBoundary: m = !1,
231
- padding: d = 0
232
- } = J(e, t), h = Yt(d), w = c[m ? u === "floating" ? "reference" : "floating" : u], g = ot(await r.getClippingRect({
233
- 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)),
234
- boundary: a,
235
- rootBoundary: f,
236
- strategy: l
237
- })), x = u === "floating" ? {
238
- x: o,
239
- y: i,
240
- width: s.floating.width,
241
- height: s.floating.height
242
- } : 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)) || {
243
- x: 1,
244
- y: 1
245
- } : {
246
- x: 1,
247
- y: 1
248
- }, v = ot(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
249
- elements: c,
250
- rect: x,
251
- offsetParent: y,
252
- strategy: l
253
- }) : x);
254
- return {
255
- top: (g.top - v.top + h.top) / b.y,
256
- bottom: (v.bottom - g.bottom + h.bottom) / b.y,
257
- left: (g.left - v.left + h.left) / b.x,
258
- right: (v.right - g.right + h.right) / b.x
259
- };
260
- }
261
- const Ut = function(t) {
262
- return t === void 0 && (t = {}), {
263
- name: "flip",
264
- options: t,
265
- async fn(e) {
266
- var n, o;
267
- const {
268
- placement: i,
269
- middlewareData: r,
270
- rects: s,
271
- initialPlacement: c,
272
- platform: l,
273
- elements: a
274
- } = e, {
275
- mainAxis: f = !0,
276
- crossAxis: u = !0,
277
- fallbackPlacements: m,
278
- fallbackStrategy: d = "bestFit",
279
- fallbackAxisSideDirection: h = "none",
280
- flipAlignment: p = !0,
281
- ...w
282
- } = J(t, e);
283
- if ((n = r.arrow) != null && n.alignmentOffset)
284
- return {};
285
- const g = k(i), x = F(c), y = k(c) === c, b = await (l.isRTL == null ? void 0 : l.isRTL(a.floating)), v = m || (y || !p ? [nt(c)] : _t(c)), B = h !== "none";
286
- !m && B && v.push(...Xt(c, p, h, b));
287
- const L = [c, ...v], N = await dt(e, w), V = [];
288
- let P = ((o = r.flip) == null ? void 0 : o.overflows) || [];
289
- if (f && V.push(N[g]), u) {
290
- const H = Ht(i, s, b);
291
- V.push(N[H[0]], N[H[1]]);
292
- }
293
- if (P = [...P, {
294
- placement: i,
295
- overflows: V
296
- }], !V.every((H) => H <= 0)) {
297
- var Y, q;
298
- const H = (((Y = r.flip) == null ? void 0 : Y.index) || 0) + 1, lt = L[H];
299
- if (lt && (!(u === "alignment" ? x !== F(lt) : !1) || // We leave the current main axis only if every placement on that axis
300
- // overflows the main axis.
301
- P.every((C) => F(C.placement) === x ? C.overflows[0] > 0 : !0)))
302
- return {
303
- data: {
304
- index: H,
305
- overflows: P
306
- },
307
- reset: {
308
- placement: lt
309
- }
310
- };
311
- let K = (q = P.filter((_) => _.overflows[0] <= 0).sort((_, C) => _.overflows[1] - C.overflows[1])[0]) == null ? void 0 : q.placement;
312
- if (!K)
313
- switch (d) {
314
- case "bestFit": {
315
- var U;
316
- const _ = (U = P.filter((C) => {
317
- if (B) {
318
- const M = F(C.placement);
319
- return M === x || // Create a bias to the `y` side axis due to horizontal
320
- // reading directions favoring greater width.
321
- M === "y";
322
- }
323
- return !0;
324
- }).map((C) => [C.placement, C.overflows.filter((M) => M > 0).reduce((M, Wt) => M + Wt, 0)]).sort((C, M) => C[1] - M[1])[0]) == null ? void 0 : U[0];
325
- _ && (K = _);
326
- break;
327
- }
328
- case "initialPlacement":
329
- K = c;
330
- break;
331
- }
332
- if (i !== K)
333
- return {
334
- reset: {
335
- placement: K
336
- }
337
- };
338
- }
339
- return {};
340
- }
341
- };
342
- }, Kt = /* @__PURE__ */ new Set(["left", "top"]);
343
- async function Gt(t, e) {
344
- const {
345
- placement: n,
346
- platform: o,
347
- elements: i
348
- } = t, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), s = k(n), c = Q(n), l = F(n) === "y", a = Kt.has(s) ? -1 : 1, f = r && l ? -1 : 1, u = J(e, t);
349
- let {
350
- mainAxis: m,
351
- crossAxis: d,
352
- alignmentAxis: h
353
- } = typeof u == "number" ? {
354
- mainAxis: u,
355
- crossAxis: 0,
356
- alignmentAxis: null
357
- } : {
358
- mainAxis: u.mainAxis || 0,
359
- crossAxis: u.crossAxis || 0,
360
- alignmentAxis: u.alignmentAxis
361
- };
362
- return c && typeof h == "number" && (d = c === "end" ? h * -1 : h), l ? {
363
- x: d * f,
364
- y: m * a
365
- } : {
366
- x: m * a,
367
- y: d * f
368
- };
369
- }
370
- const Jt = function(t) {
371
- return t === void 0 && (t = 0), {
372
- name: "offset",
373
- options: t,
374
- async fn(e) {
375
- var n, o;
376
- const {
377
- x: i,
378
- y: r,
379
- placement: s,
380
- middlewareData: c
381
- } = e, l = await Gt(e, t);
382
- return s === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
383
- x: i + l.x,
384
- y: r + l.y,
385
- data: {
386
- ...l,
387
- placement: s
388
- }
389
- };
390
- }
391
- };
392
- }, Qt = function(t) {
393
- return t === void 0 && (t = {}), {
394
- name: "shift",
395
- options: t,
396
- async fn(e) {
397
- const {
398
- x: n,
399
- y: o,
400
- placement: i
401
- } = e, {
402
- mainAxis: r = !0,
403
- crossAxis: s = !1,
404
- limiter: c = {
405
- fn: (w) => {
406
- let {
407
- x: g,
408
- y: x
409
- } = w;
410
- return {
411
- x: g,
412
- y: x
413
- };
414
- }
415
- },
416
- ...l
417
- } = J(t, e), a = {
418
- x: n,
419
- y: o
420
- }, f = await dt(e, l), u = F(k(i)), m = Ct(u);
421
- let d = a[m], h = a[u];
422
- if (r) {
423
- const w = m === "y" ? "top" : "left", g = m === "y" ? "bottom" : "right", x = d + f[w], y = d - f[g];
424
- d = pt(x, d, y);
425
- }
426
- if (s) {
427
- const w = u === "y" ? "top" : "left", g = u === "y" ? "bottom" : "right", x = h + f[w], y = h - f[g];
428
- h = pt(x, h, y);
429
- }
430
- const p = c.fn({
431
- ...e,
432
- [m]: d,
433
- [u]: h
434
- });
435
- return {
436
- ...p,
437
- data: {
438
- x: p.x - n,
439
- y: p.y - o,
440
- enabled: {
441
- [m]: r,
442
- [u]: s
443
- }
444
- }
445
- };
446
- }
447
- };
448
- }, Zt = function(t) {
449
- return t === void 0 && (t = {}), {
450
- name: "size",
451
- options: t,
452
- async fn(e) {
453
- var n, o;
454
- const {
455
- placement: i,
456
- rects: r,
457
- platform: s,
458
- elements: c
459
- } = e, {
460
- apply: l = () => {
461
- },
462
- ...a
463
- } = J(t, e), f = await dt(e, a), u = k(i), m = Q(i), d = F(i) === "y", {
464
- width: h,
465
- height: p
466
- } = r.floating;
467
- let w, g;
468
- u === "top" || u === "bottom" ? (w = u, g = m === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (g = u, w = m === "end" ? "top" : "bottom");
469
- const x = p - f.top - f.bottom, y = h - f.left - f.right, b = I(p - f[w], x), v = I(h - f[g], y), B = !e.middlewareData.shift;
470
- let L = b, N = v;
471
- if ((n = e.middlewareData.shift) != null && n.enabled.x && (N = y), (o = e.middlewareData.shift) != null && o.enabled.y && (L = x), B && !m) {
472
- const P = A(f.left, 0), Y = A(f.right, 0), q = A(f.top, 0), U = A(f.bottom, 0);
473
- d ? N = h - 2 * (P !== 0 || Y !== 0 ? P + Y : A(f.left, f.right)) : L = p - 2 * (q !== 0 || U !== 0 ? q + U : A(f.top, f.bottom));
474
- }
475
- await l({
476
- ...e,
477
- availableWidth: N,
478
- availableHeight: L
479
- });
480
- const V = await s.getDimensions(c.floating);
481
- return h !== V.width || p !== V.height ? {
482
- reset: {
483
- rects: !0
484
- }
485
- } : {};
486
- }
487
- };
488
- };
489
- function it() {
490
- return typeof window < "u";
491
- }
492
- function j(t) {
493
- return Lt(t) ? (t.nodeName || "").toLowerCase() : "#document";
494
- }
495
- function R(t) {
496
- var e;
497
- return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
498
- }
499
- function D(t) {
500
- var e;
501
- return (e = (Lt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
502
- }
503
- function Lt(t) {
504
- return it() ? t instanceof Node || t instanceof R(t).Node : !1;
505
- }
506
- function O(t) {
507
- return it() ? t instanceof Element || t instanceof R(t).Element : !1;
508
- }
509
- function E(t) {
510
- return it() ? t instanceof HTMLElement || t instanceof R(t).HTMLElement : !1;
511
- }
512
- function vt(t) {
513
- return !it() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof R(t).ShadowRoot;
514
- }
515
- const te = /* @__PURE__ */ new Set(["inline", "contents"]);
516
- function Z(t) {
517
- const {
518
- overflow: e,
519
- overflowX: n,
520
- overflowY: o,
521
- display: i
522
- } = S(t);
523
- return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !te.has(i);
524
- }
525
- const ee = /* @__PURE__ */ new Set(["table", "td", "th"]);
526
- function ne(t) {
527
- return ee.has(j(t));
528
- }
529
- const oe = [":popover-open", ":modal"];
530
- function st(t) {
531
- return oe.some((e) => {
532
- try {
533
- return t.matches(e);
534
- } catch {
535
- return !1;
536
- }
537
- });
538
- }
539
- const ie = ["transform", "translate", "scale", "rotate", "perspective"], se = ["transform", "translate", "scale", "rotate", "perspective", "filter"], re = ["paint", "layout", "strict", "content"];
540
- function mt(t) {
541
- const e = ht(), n = O(t) ? S(t) : t;
542
- return ie.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || se.some((o) => (n.willChange || "").includes(o)) || re.some((o) => (n.contain || "").includes(o));
543
- }
544
- function ce(t) {
545
- let e = W(t);
546
- for (; E(e) && !X(e); ) {
547
- if (mt(e))
548
- return e;
549
- if (st(e))
550
- return null;
551
- e = W(e);
552
- }
553
- return null;
554
- }
555
- function ht() {
556
- return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
557
- }
558
- const le = /* @__PURE__ */ new Set(["html", "body", "#document"]);
559
- function X(t) {
560
- return le.has(j(t));
561
- }
562
- function S(t) {
563
- return R(t).getComputedStyle(t);
564
- }
565
- function rt(t) {
566
- return O(t) ? {
567
- scrollLeft: t.scrollLeft,
568
- scrollTop: t.scrollTop
569
- } : {
570
- scrollLeft: t.scrollX,
571
- scrollTop: t.scrollY
572
- };
573
- }
574
- function W(t) {
575
- if (j(t) === "html")
576
- return t;
577
- const e = (
578
- // Step into the shadow DOM of the parent of a slotted node.
579
- t.assignedSlot || // DOM Element detected.
580
- t.parentNode || // ShadowRoot detected.
581
- vt(t) && t.host || // Fallback.
582
- D(t)
583
- );
584
- return vt(e) ? e.host : e;
585
- }
586
- function Tt(t) {
587
- const e = W(t);
588
- return X(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : E(e) && Z(e) ? e : Tt(e);
589
- }
590
- function G(t, e, n) {
591
- var o;
592
- e === void 0 && (e = []), n === void 0 && (n = !0);
593
- const i = Tt(t), r = i === ((o = t.ownerDocument) == null ? void 0 : o.body), s = R(i);
594
- if (r) {
595
- const c = ut(s);
596
- return e.concat(s, s.visualViewport || [], Z(i) ? i : [], c && n ? G(c) : []);
597
- }
598
- return e.concat(i, G(i, [], n));
599
- }
600
- function ut(t) {
601
- return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
602
- }
603
- function Et(t) {
604
- const e = S(t);
605
- let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
606
- const i = E(t), r = i ? t.offsetWidth : n, s = i ? t.offsetHeight : o, c = et(n) !== r || et(o) !== s;
607
- return c && (n = r, o = s), {
608
- width: n,
609
- height: o,
610
- $: c
611
- };
612
- }
613
- function gt(t) {
614
- return O(t) ? t : t.contextElement;
615
- }
616
- function z(t) {
617
- const e = gt(t);
618
- if (!E(e))
619
- return T(1);
620
- const n = e.getBoundingClientRect(), {
621
- width: o,
622
- height: i,
623
- $: r
624
- } = Et(e);
625
- let s = (r ? et(n.width) : n.width) / o, c = (r ? et(n.height) : n.height) / i;
626
- return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
627
- x: s,
628
- y: c
629
- };
630
- }
631
- const ae = /* @__PURE__ */ T(0);
632
- function Dt(t) {
633
- const e = R(t);
634
- return !ht() || !e.visualViewport ? ae : {
635
- x: e.visualViewport.offsetLeft,
636
- y: e.visualViewport.offsetTop
637
- };
638
- }
639
- function fe(t, e, n) {
640
- return e === void 0 && (e = !1), !n || e && n !== R(t) ? !1 : e;
641
- }
642
- function $(t, e, n, o) {
643
- e === void 0 && (e = !1), n === void 0 && (n = !1);
644
- const i = t.getBoundingClientRect(), r = gt(t);
645
- let s = T(1);
646
- e && (o ? O(o) && (s = z(o)) : s = z(t));
647
- const c = fe(r, n, o) ? Dt(r) : T(0);
648
- let l = (i.left + c.x) / s.x, a = (i.top + c.y) / s.y, f = i.width / s.x, u = i.height / s.y;
649
- if (r) {
650
- const m = R(r), d = o && O(o) ? R(o) : o;
651
- let h = m, p = ut(h);
652
- for (; p && o && d !== h; ) {
653
- const w = z(p), g = p.getBoundingClientRect(), x = S(p), y = g.left + (p.clientLeft + parseFloat(x.paddingLeft)) * w.x, b = g.top + (p.clientTop + parseFloat(x.paddingTop)) * w.y;
654
- l *= w.x, a *= w.y, f *= w.x, u *= w.y, l += y, a += b, h = R(p), p = ut(h);
655
- }
656
- }
657
- return ot({
658
- width: f,
659
- height: u,
660
- x: l,
661
- y: a
662
- });
663
- }
664
- function ct(t, e) {
665
- const n = rt(t).scrollLeft;
666
- return e ? e.left + n : $(D(t)).left + n;
667
- }
668
- function Pt(t, e) {
669
- const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - ct(t, n), i = n.top + e.scrollTop;
670
- return {
671
- x: o,
672
- y: i
673
- };
674
- }
675
- function ue(t) {
676
- let {
677
- elements: e,
678
- rect: n,
679
- offsetParent: o,
680
- strategy: i
681
- } = t;
682
- const r = i === "fixed", s = D(o), c = e ? st(e.floating) : !1;
683
- if (o === s || c && r)
684
- return n;
685
- let l = {
686
- scrollLeft: 0,
687
- scrollTop: 0
688
- }, a = T(1);
689
- const f = T(0), u = E(o);
690
- if ((u || !u && !r) && ((j(o) !== "body" || Z(s)) && (l = rt(o)), E(o))) {
691
- const d = $(o);
692
- a = z(o), f.x = d.x + o.clientLeft, f.y = d.y + o.clientTop;
693
- }
694
- const m = s && !u && !r ? Pt(s, l) : T(0);
695
- return {
696
- width: n.width * a.x,
697
- height: n.height * a.y,
698
- x: n.x * a.x - l.scrollLeft * a.x + f.x + m.x,
699
- y: n.y * a.y - l.scrollTop * a.y + f.y + m.y
700
- };
701
- }
702
- function de(t) {
703
- return Array.from(t.getClientRects());
704
- }
705
- function me(t) {
706
- const e = D(t), n = rt(t), o = t.ownerDocument.body, i = A(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), r = A(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
707
- let s = -n.scrollLeft + ct(t);
708
- const c = -n.scrollTop;
709
- return S(o).direction === "rtl" && (s += A(e.clientWidth, o.clientWidth) - i), {
710
- width: i,
711
- height: r,
712
- x: s,
713
- y: c
714
- };
715
- }
716
- const bt = 25;
717
- function he(t, e) {
718
- const n = R(t), o = D(t), i = n.visualViewport;
719
- let r = o.clientWidth, s = o.clientHeight, c = 0, l = 0;
720
- if (i) {
721
- r = i.width, s = i.height;
722
- const f = ht();
723
- (!f || f && e === "fixed") && (c = i.offsetLeft, l = i.offsetTop);
724
- }
725
- const a = ct(o);
726
- if (a <= 0) {
727
- const f = o.ownerDocument, u = f.body, m = getComputedStyle(u), d = f.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, h = Math.abs(o.clientWidth - u.clientWidth - d);
728
- h <= bt && (r -= h);
729
- } else a <= bt && (r += a);
730
- return {
731
- width: r,
732
- height: s,
733
- x: c,
734
- y: l
735
- };
736
- }
737
- const ge = /* @__PURE__ */ new Set(["absolute", "fixed"]);
738
- function pe(t, e) {
739
- const n = $(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, r = E(t) ? z(t) : T(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = i * r.x, a = o * r.y;
740
- return {
741
- width: s,
742
- height: c,
743
- x: l,
744
- y: a
745
- };
746
- }
747
- function At(t, e, n) {
748
- let o;
749
- if (e === "viewport")
750
- o = he(t, n);
751
- else if (e === "document")
752
- o = me(D(t));
753
- else if (O(e))
754
- o = pe(e, n);
755
- else {
756
- const i = Dt(t);
757
- o = {
758
- x: e.x - i.x,
759
- y: e.y - i.y,
760
- width: e.width,
761
- height: e.height
762
- };
763
- }
764
- return ot(o);
765
- }
766
- function Ft(t, e) {
767
- const n = W(t);
768
- return n === e || !O(n) || X(n) ? !1 : S(n).position === "fixed" || Ft(n, e);
769
- }
770
- function we(t, e) {
771
- const n = e.get(t);
772
- if (n)
773
- return n;
774
- let o = G(t, [], !1).filter((c) => O(c) && j(c) !== "body"), i = null;
775
- const r = S(t).position === "fixed";
776
- let s = r ? W(t) : t;
777
- for (; O(s) && !X(s); ) {
778
- const c = S(s), l = mt(s);
779
- !l && c.position === "fixed" && (i = null), (r ? !l && !i : !l && c.position === "static" && !!i && ge.has(i.position) || Z(s) && !l && Ft(t, s)) ? o = o.filter((f) => f !== s) : i = c, s = W(s);
780
- }
781
- return e.set(t, o), o;
782
- }
783
- function xe(t) {
784
- let {
785
- element: e,
786
- boundary: n,
787
- rootBoundary: o,
788
- strategy: i
789
- } = t;
790
- const s = [...n === "clippingAncestors" ? st(e) ? [] : we(e, this._c) : [].concat(n), o], c = s[0], l = s.reduce((a, f) => {
791
- const u = At(e, f, i);
792
- return a.top = A(u.top, a.top), a.right = I(u.right, a.right), a.bottom = I(u.bottom, a.bottom), a.left = A(u.left, a.left), a;
793
- }, At(e, c, i));
794
- return {
795
- width: l.right - l.left,
796
- height: l.bottom - l.top,
797
- x: l.left,
798
- y: l.top
799
- };
800
- }
801
- function ye(t) {
802
- const {
803
- width: e,
804
- height: n
805
- } = Et(t);
806
- return {
807
- width: e,
808
- height: n
809
- };
810
- }
811
- function ve(t, e, n) {
812
- const o = E(e), i = D(e), r = n === "fixed", s = $(t, !0, r, e);
813
- let c = {
814
- scrollLeft: 0,
815
- scrollTop: 0
816
- };
817
- const l = T(0);
818
- function a() {
819
- l.x = ct(i);
820
- }
821
- if (o || !o && !r)
822
- if ((j(e) !== "body" || Z(i)) && (c = rt(e)), o) {
823
- const d = $(e, !0, r, e);
824
- l.x = d.x + e.clientLeft, l.y = d.y + e.clientTop;
825
- } else i && a();
826
- r && !o && i && a();
827
- const f = i && !o && !r ? Pt(i, c) : T(0), u = s.left + c.scrollLeft - l.x - f.x, m = s.top + c.scrollTop - l.y - f.y;
828
- return {
829
- x: u,
830
- y: m,
831
- width: s.width,
832
- height: s.height
833
- };
834
- }
835
- function at(t) {
836
- return S(t).position === "static";
837
- }
838
- function Rt(t, e) {
839
- if (!E(t) || S(t).position === "fixed")
840
- return null;
841
- if (e)
842
- return e(t);
843
- let n = t.offsetParent;
844
- return D(t) === n && (n = n.ownerDocument.body), n;
845
- }
846
- function Mt(t, e) {
847
- const n = R(t);
848
- if (st(t))
849
- return n;
850
- if (!E(t)) {
851
- let i = W(t);
852
- for (; i && !X(i); ) {
853
- if (O(i) && !at(i))
854
- return i;
855
- i = W(i);
856
- }
857
- return n;
858
- }
859
- let o = Rt(t, e);
860
- for (; o && ne(o) && at(o); )
861
- o = Rt(o, e);
862
- return o && X(o) && at(o) && !mt(o) ? n : o || ce(t) || n;
863
- }
864
- const be = async function(t) {
865
- const e = this.getOffsetParent || Mt, n = this.getDimensions, o = await n(t.floating);
866
- return {
867
- reference: ve(t.reference, await e(t.floating), t.strategy),
868
- floating: {
869
- x: 0,
870
- y: 0,
871
- width: o.width,
872
- height: o.height
873
- }
874
- };
875
- };
876
- function Ae(t) {
877
- return S(t).direction === "rtl";
878
- }
879
- const Re = {
880
- convertOffsetParentRelativeRectToViewportRelativeRect: ue,
881
- getDocumentElement: D,
882
- getClippingRect: xe,
883
- getOffsetParent: Mt,
884
- getElementRects: be,
885
- getClientRects: de,
886
- getDimensions: ye,
887
- getScale: z,
888
- isElement: O,
889
- isRTL: Ae
890
- };
891
- function kt(t, e) {
892
- return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
893
- }
894
- function Ce(t, e) {
895
- let n = null, o;
896
- const i = D(t);
897
- function r() {
898
- var c;
899
- clearTimeout(o), (c = n) == null || c.disconnect(), n = null;
900
- }
901
- function s(c, l) {
902
- c === void 0 && (c = !1), l === void 0 && (l = 1), r();
903
- const a = t.getBoundingClientRect(), {
904
- left: f,
905
- top: u,
906
- width: m,
907
- height: d
908
- } = a;
909
- if (c || e(), !m || !d)
910
- return;
911
- const h = tt(u), p = tt(i.clientWidth - (f + m)), w = tt(i.clientHeight - (u + d)), g = tt(f), y = {
912
- rootMargin: -h + "px " + -p + "px " + -w + "px " + -g + "px",
913
- threshold: A(0, I(1, l)) || 1
914
- };
915
- let b = !0;
916
- function v(B) {
917
- const L = B[0].intersectionRatio;
918
- if (L !== l) {
919
- if (!b)
920
- return s();
921
- L ? s(!1, L) : o = setTimeout(() => {
922
- s(!1, 1e-7);
923
- }, 1e3);
924
- }
925
- L === 1 && !kt(a, t.getBoundingClientRect()) && s(), b = !1;
926
- }
927
- try {
928
- n = new IntersectionObserver(v, {
929
- ...y,
930
- // Handle <iframe>s
931
- root: i.ownerDocument
932
- });
933
- } catch {
934
- n = new IntersectionObserver(v, y);
935
- }
936
- n.observe(t);
937
- }
938
- return s(!0), r;
939
- }
940
- function Oe(t, e, n, o) {
941
- o === void 0 && (o = {});
942
- const {
943
- ancestorScroll: i = !0,
944
- ancestorResize: r = !0,
945
- elementResize: s = typeof ResizeObserver == "function",
946
- layoutShift: c = typeof IntersectionObserver == "function",
947
- animationFrame: l = !1
948
- } = o, a = gt(t), f = i || r ? [...a ? G(a) : [], ...G(e)] : [];
949
- f.forEach((g) => {
950
- i && g.addEventListener("scroll", n, {
951
- passive: !0
952
- }), r && g.addEventListener("resize", n);
953
- });
954
- const u = a && c ? Ce(a, n) : null;
955
- let m = -1, d = null;
956
- s && (d = new ResizeObserver((g) => {
957
- let [x] = g;
958
- x && x.target === a && d && (d.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
959
- var y;
960
- (y = d) == null || y.observe(e);
961
- })), n();
962
- }), a && !l && d.observe(a), d.observe(e));
963
- let h, p = l ? $(t) : null;
964
- l && w();
965
- function w() {
966
- const g = $(t);
967
- p && !kt(p, g) && n(), p = g, h = requestAnimationFrame(w);
968
- }
969
- return n(), () => {
970
- var g;
971
- f.forEach((x) => {
972
- i && x.removeEventListener("scroll", n), r && x.removeEventListener("resize", n);
973
- }), u?.(), (g = d) == null || g.disconnect(), d = null, l && cancelAnimationFrame(h);
974
- };
975
- }
976
- const Se = Jt, Le = Qt, Te = Ut, Ee = Zt, De = (t, e, n) => {
977
- const o = /* @__PURE__ */ new Map(), i = {
978
- platform: Re,
979
- ...n
980
- }, r = {
981
- ...i.platform,
982
- _c: o
983
- };
984
- return qt(t, e, {
985
- ...i,
986
- platform: r
987
- });
988
- };
989
- export {
990
- Oe as a,
991
- Ee as b,
992
- De as c,
993
- Te as f,
994
- G as g,
995
- Se as o,
996
- Le as s
997
- };