@lanaco/lnc-react-ui 3.11.35 → 4.0.2

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 (218) hide show
  1. package/README.md +0 -3
  2. package/dist/Accordion.cjs +6 -0
  3. package/dist/Accordion.js +65 -0
  4. package/dist/AccordionDetails.cjs +7 -0
  5. package/dist/AccordionDetails.js +32 -0
  6. package/dist/AccordionSummary.cjs +12 -0
  7. package/dist/AccordionSummary.js +78 -0
  8. package/dist/ActionsToolbar.cjs +19 -0
  9. package/dist/ActionsToolbar.js +225 -0
  10. package/dist/Alert.cjs +40 -0
  11. package/dist/Alert.js +138 -0
  12. package/dist/Avatar.cjs +16 -0
  13. package/dist/Avatar.js +114 -0
  14. package/dist/Badge.cjs +17 -0
  15. package/dist/Badge.js +70 -0
  16. package/dist/Breadcrumbs.cjs +8 -0
  17. package/dist/Breadcrumbs.js +131 -0
  18. package/dist/Button.cjs +127 -0
  19. package/dist/Button.js +542 -0
  20. package/dist/ButtonGroup.cjs +44 -0
  21. package/dist/ButtonGroup.js +112 -0
  22. package/dist/CheckBoxInput.cjs +118 -0
  23. package/dist/CheckBoxInput.js +348 -0
  24. package/dist/Chip.cjs +27 -0
  25. package/dist/Chip.js +189 -0
  26. package/dist/ColorInput.cjs +60 -0
  27. package/dist/ColorInput.js +256 -0
  28. package/dist/ConfirmationForm.cjs +22 -0
  29. package/dist/ConfirmationForm.js +169 -0
  30. package/dist/Content.cjs +1 -0
  31. package/dist/Content.js +18 -0
  32. package/dist/CustomStyles-CqlCjTgU.cjs +8 -0
  33. package/dist/CustomStyles-nfD3J1mi.js +2881 -0
  34. package/dist/DataView.cjs +1 -0
  35. package/dist/DataView.js +62 -0
  36. package/dist/DateInput.cjs +296 -0
  37. package/dist/DateInput.js +7042 -0
  38. package/dist/DecimalInput.cjs +54 -0
  39. package/dist/DecimalInput.js +697 -0
  40. package/dist/DetailsView.cjs +18 -0
  41. package/dist/DetailsView.js +243 -0
  42. package/dist/DoubleRangeSlider.cjs +114 -0
  43. package/dist/DoubleRangeSlider.js +289 -0
  44. package/dist/DragAndDropFile.cjs +31 -0
  45. package/dist/DragAndDropFile.js +2331 -0
  46. package/dist/DragDropFiles.cjs +14 -0
  47. package/dist/DragDropFiles.js +175 -0
  48. package/dist/Drawer.cjs +6 -0
  49. package/dist/Drawer.js +206 -0
  50. package/dist/Dropdown.cjs +1 -0
  51. package/dist/Dropdown.js +266 -0
  52. package/dist/DropdownItem.cjs +36 -0
  53. package/dist/DropdownItem.js +241 -0
  54. package/dist/DropdownLookup.cjs +1 -0
  55. package/dist/DropdownLookup.js +325 -0
  56. package/dist/DropdownMenu-B6qr13ik.cjs +19 -0
  57. package/dist/DropdownMenu-DZi3TJ8Q.js +1547 -0
  58. package/dist/DropdownMenu.cjs +1 -0
  59. package/dist/DropdownMenu.js +12 -0
  60. package/dist/EditableTable.cjs +21 -0
  61. package/dist/EditableTable.js +462 -0
  62. package/dist/FileInput.cjs +47 -0
  63. package/dist/FileInput.js +206 -0
  64. package/dist/FlexBox.cjs +9 -0
  65. package/dist/FlexBox.js +97 -0
  66. package/dist/FlexGrid.cjs +1 -0
  67. package/dist/FlexGrid.js +78 -0
  68. package/dist/FlexGridItem.cjs +7 -0
  69. package/dist/FlexGridItem.js +97 -0
  70. package/dist/Footer.cjs +1 -0
  71. package/dist/Footer.js +18 -0
  72. package/dist/FormField.cjs +11 -0
  73. package/dist/FormField.js +65 -0
  74. package/dist/FormView.cjs +13 -0
  75. package/dist/FormView.js +354 -0
  76. package/dist/Grid.cjs +13 -0
  77. package/dist/Grid.js +62 -0
  78. package/dist/GridItem.cjs +15 -0
  79. package/dist/GridItem.js +72 -0
  80. package/dist/Header.cjs +1 -0
  81. package/dist/Header.js +18 -0
  82. package/dist/Icon.cjs +8 -0
  83. package/dist/Icon.js +59 -0
  84. package/dist/IconButton.cjs +122 -0
  85. package/dist/IconButton.js +481 -0
  86. package/dist/Kanban.cjs +85 -0
  87. package/dist/Kanban.js +4793 -0
  88. package/dist/KanbanActionsToolbar.cjs +19 -0
  89. package/dist/KanbanActionsToolbar.js +152 -0
  90. package/dist/KanbanCard-ConTmu3w.cjs +30 -0
  91. package/dist/KanbanCard-D9OhU8C6.js +175 -0
  92. package/dist/KanbanCard.cjs +1 -0
  93. package/dist/KanbanCard.js +12 -0
  94. package/dist/KanbanFooter.cjs +5 -0
  95. package/dist/KanbanFooter.js +84 -0
  96. package/dist/KanbanHeader.cjs +15 -0
  97. package/dist/KanbanHeader.js +127 -0
  98. package/dist/KanbanView.cjs +8 -0
  99. package/dist/KanbanView.js +255 -0
  100. package/dist/Link.cjs +15 -0
  101. package/dist/Link.js +62 -0
  102. package/dist/MenuItem.cjs +36 -0
  103. package/dist/MenuItem.js +230 -0
  104. package/dist/Modal.cjs +84 -0
  105. package/dist/Modal.js +372 -0
  106. package/dist/MultiSelectDropdown.cjs +1 -0
  107. package/dist/MultiSelectDropdown.js +261 -0
  108. package/dist/MultiSelectDropdownLookup.cjs +1 -0
  109. package/dist/MultiSelectDropdownLookup.js +274 -0
  110. package/dist/NestedDropdownItem.cjs +6 -0
  111. package/dist/NestedDropdownItem.js +102 -0
  112. package/dist/NestedMenuItem.cjs +6 -0
  113. package/dist/NestedMenuItem.js +115 -0
  114. package/dist/Notification.cjs +83 -0
  115. package/dist/Notification.js +1079 -0
  116. package/dist/NumberInput.cjs +45 -0
  117. package/dist/NumberInput.js +241 -0
  118. package/dist/PageLayout.cjs +26 -0
  119. package/dist/PageLayout.js +92 -0
  120. package/dist/PasswordInput.cjs +47 -0
  121. package/dist/PasswordInput.js +230 -0
  122. package/dist/ProgressBar.cjs +22 -0
  123. package/dist/ProgressBar.js +92 -0
  124. package/dist/RadioGroup.cjs +7 -0
  125. package/dist/RadioGroup.js +104 -0
  126. package/dist/RadioInput.cjs +117 -0
  127. package/dist/RadioInput.js +362 -0
  128. package/dist/RangeSlider.cjs +72 -0
  129. package/dist/RangeSlider.js +253 -0
  130. package/dist/SearchBar.cjs +100 -0
  131. package/dist/SearchBar.js +994 -0
  132. package/dist/Separator.cjs +6 -0
  133. package/dist/Separator.js +37 -0
  134. package/dist/Sidebar.cjs +39 -0
  135. package/dist/Sidebar.js +123 -0
  136. package/dist/Spinner.cjs +38 -0
  137. package/dist/Spinner.js +114 -0
  138. package/dist/Surface.cjs +7 -0
  139. package/dist/Surface.js +60 -0
  140. package/dist/SwipeableDrawer.cjs +33 -0
  141. package/dist/SwipeableDrawer.js +213 -0
  142. package/dist/Table.cjs +170 -0
  143. package/dist/Table.js +1408 -0
  144. package/dist/TableView-Cj5_fbSR.js +481 -0
  145. package/dist/TableView-D8ex512p.cjs +19 -0
  146. package/dist/TableView.cjs +1 -0
  147. package/dist/TableView.js +11 -0
  148. package/dist/Tabs.cjs +7 -0
  149. package/dist/Tabs.js +72 -0
  150. package/dist/TextAreaInput.cjs +33 -0
  151. package/dist/TextAreaInput.js +320 -0
  152. package/dist/TextInput.cjs +45 -0
  153. package/dist/TextInput.js +227 -0
  154. package/dist/ThemeProvider.cjs +113 -0
  155. package/dist/ThemeProvider.js +1340 -0
  156. package/dist/TimeInput.cjs +31 -0
  157. package/dist/TimeInput.js +133 -0
  158. package/dist/Toggle.cjs +151 -0
  159. package/dist/Toggle.js +421 -0
  160. package/dist/TreeMenu.cjs +15 -0
  161. package/dist/TreeMenu.js +108 -0
  162. package/dist/TreeMenuSeparator.cjs +6 -0
  163. package/dist/TreeMenuSeparator.js +40 -0
  164. package/dist/UploadedFile.cjs +39 -0
  165. package/dist/UploadedFile.js +192 -0
  166. package/dist/defineProperty-BHpTtkhC.js +110 -0
  167. package/dist/defineProperty-DHvxLH8G.cjs +1 -0
  168. package/dist/emotion-element-5486c51c.browser.esm-CSejtOeT.js +886 -0
  169. package/dist/emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs +1 -0
  170. package/dist/emotion-is-prop-valid.esm-BzFBwmJz.js +10 -0
  171. package/dist/emotion-is-prop-valid.esm-CMrshNb7.cjs +1 -0
  172. package/dist/emotion-react.browser.esm-DQBL7Wls.cjs +1 -0
  173. package/dist/emotion-react.browser.esm-OWM-uG8Q.js +94 -0
  174. package/dist/emotion-styled.browser.esm-BZSYYThs.js +210 -0
  175. package/dist/emotion-styled.browser.esm-Cbp_XsK4.cjs +1 -0
  176. package/dist/floating-ui.dom-1F2mTXOe.cjs +1 -0
  177. package/dist/floating-ui.dom-BdUovkEr.js +938 -0
  178. package/dist/hoist-non-react-statics.cjs-B8r9S_ak.cjs +15 -0
  179. package/dist/hoist-non-react-statics.cjs-Drf1aBlk.js +235 -0
  180. package/dist/index-BLQWNy78.js +109 -0
  181. package/dist/index-BP5r5zGN.cjs +1 -0
  182. package/dist/index-B_da1uvD.js +451 -0
  183. package/dist/index-BjdOz5Ok.cjs +1 -0
  184. package/dist/index-BklgDeu4.js +42 -0
  185. package/dist/index-C29T0m2a.cjs +174 -0
  186. package/dist/index-CZJEA84h.js +19069 -0
  187. package/dist/index-Cdkz-XH-.js +127 -0
  188. package/dist/index-D5vEbKUT.js +81 -0
  189. package/dist/index-DXnSjbfJ.cjs +20 -0
  190. package/dist/index-Ds9PUTwb.js +667 -0
  191. package/dist/index-Dzkd2i4n.cjs +1 -0
  192. package/dist/index-IO9v6o0I.cjs +5 -0
  193. package/dist/index-P-naJISQ.cjs +1 -0
  194. package/dist/index.cjs +26 -0
  195. package/dist/index.js +378 -0
  196. package/dist/motion-CtkUpWEn.js +3785 -0
  197. package/dist/motion-Oud-wpUz.cjs +1 -0
  198. package/dist/objectWithoutPropertiesLoose-Bz3hwpmU.cjs +1 -0
  199. package/dist/objectWithoutPropertiesLoose-DwEN6RBQ.js +12 -0
  200. package/dist/setPrototypeOf-4aSEnBDm.cjs +1 -0
  201. package/dist/setPrototypeOf-a891FLQJ.js +13 -0
  202. package/dist/style.css +5 -0
  203. package/dist/tslib.es6-ZNVz5r_T.js +90 -0
  204. package/dist/tslib.es6-fPwcSa2V.cjs +1 -0
  205. package/dist/use-isomorphic-layout-effect.browser.esm-CkGv31zs.cjs +1 -0
  206. package/dist/use-isomorphic-layout-effect.browser.esm-DERp5kr6.js +5 -0
  207. package/dist/useUpdateEffect-BtMgpgIV.cjs +1 -0
  208. package/dist/useUpdateEffect-CuYWz7EA.js +15 -0
  209. package/dist/utils-DEke8iwo.js +10196 -0
  210. package/dist/utils-hdRGTsQ7.cjs +13 -0
  211. package/eslint.config.js +38 -0
  212. package/package.json +137 -58
  213. package/vite.config.js +135 -0
  214. package/jest.config.js +0 -7
  215. package/lib/index.esm.js +0 -84028
  216. package/lib/index.js +0 -84165
  217. package/rc1 +0 -0
  218. package/test/jest/__mocks__/styleMock.js +0 -1
@@ -0,0 +1,938 @@
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
+ };