@ganpatiinfo/gids-core-web 13.0.0 → 14.0.0

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 (195) hide show
  1. package/dist/css/index.css +912 -56
  2. package/dist/css/index.css.map +1 -1
  3. package/dist/gids-action-bar.js +1 -1
  4. package/dist/gids-activity-gauge.js +1 -1
  5. package/dist/gids-advanced-tooltip.d.ts +11 -0
  6. package/dist/gids-advanced-tooltip.js +1 -0
  7. package/dist/gids-bar-chart.js +1 -1
  8. package/dist/gids-calendar-header-panel.js +1 -1
  9. package/dist/gids-calendar-month-list.js +1 -1
  10. package/dist/gids-calendar-year-list.js +1 -1
  11. package/dist/gids-calendar.js +1 -1
  12. package/dist/gids-chart-legend-item.js +1 -1
  13. package/dist/gids-chart-legend.js +1 -1
  14. package/dist/gids-chart.js +1 -1
  15. package/dist/gids-chevron-button.js +1 -1
  16. package/dist/gids-dot.js +1 -1
  17. package/dist/gids-dropdown-field.js +1 -1
  18. package/dist/gids-dropdown-picker.js +1 -1
  19. package/dist/gids-dropdown.js +1 -1
  20. package/dist/gids-expansion-body-list-item.js +1 -1
  21. package/dist/gids-expansion-body-list.js +1 -1
  22. package/dist/gids-expansion-group.js +1 -1
  23. package/dist/gids-expansion.js +1 -1
  24. package/dist/gids-field.js +1 -1
  25. package/dist/gids-filter.js +1 -1
  26. package/dist/gids-icon.js +1 -1
  27. package/dist/gids-input.js +1 -1
  28. package/dist/gids-line-chart.js +1 -1
  29. package/dist/gids-md-table.js +1 -1
  30. package/dist/gids-overflow-container.js +1 -1
  31. package/dist/gids-overlay-provider.js +1 -1
  32. package/dist/gids-password-field.js +1 -1
  33. package/dist/gids-pie-chart.js +1 -1
  34. package/dist/gids-popover.js +1 -1
  35. package/dist/gids-scrim.js +1 -1
  36. package/dist/gids-tab-item.js +1 -1
  37. package/dist/gids-tab.js +1 -1
  38. package/dist/gids-text-field.js +1 -1
  39. package/dist/gids-toggle-button.js +1 -1
  40. package/dist/gids-tooltip.js +1 -1
  41. package/dist/{p-pSb81aE0.js → p-1fMG8D4t.js} +1 -1
  42. package/dist/p-BBszCFSA.js +1 -0
  43. package/dist/p-BKcvOO8o.js +1 -0
  44. package/dist/p-BV0jg2ix.js +1 -0
  45. package/dist/p-BVA1LAFM.js +1 -0
  46. package/dist/p-BYt-9DKT.js +1 -0
  47. package/dist/{p-C3We7Q8Q.js → p-Bab1qxsC.js} +1 -1
  48. package/dist/{p-C3w3wdCt.js → p-Bh8qYmAS.js} +1 -1
  49. package/dist/{p-BSbOhfLZ.js → p-BzzDNTlP.js} +1 -1
  50. package/dist/{p-C2O_pGky.js → p-CU5JIcEp.js} +1 -1
  51. package/dist/{p-Chqeexny.js → p-C_RW9IFo.js} +1 -1
  52. package/dist/{p-ub0GuVHb.js → p-CatvDz2b.js} +1 -1
  53. package/dist/{p-BVAtja26.js → p-CnVmK0dH.js} +1 -1
  54. package/dist/p-D5DRatg0.js +1 -0
  55. package/dist/{p-6APCjBEI.js → p-DAnkY5ik.js} +1 -1
  56. package/dist/p-DMVCMnTe.js +1 -0
  57. package/dist/p-DUUxlY-K.js +1 -0
  58. package/dist/{p-COHuQEfZ.js → p-Dan1sCNk.js} +1 -1
  59. package/dist/{p-BCVFQSjK.js → p-DslOQITw.js} +1 -1
  60. package/dist/{p-DUojHltk.js → p-_HwuS8vK.js} +1 -1
  61. package/dist/{p-4lN1OdcA.js → p-jzl-rPxB.js} +1 -1
  62. package/dist/types/components/html/GidsBasicTableBody/GidsBasicTableBody.d.ts +28 -4
  63. package/dist/types/components/html/GidsBasicTableHead/GidsBasicTableHead.d.ts +15 -0
  64. package/dist/types/components/html/GidsBasicTableHeader/GidsBasicTableHeader.d.ts +22 -3
  65. package/dist/types/components/html/GidsBasicTableRow/GidsBasicTableRow.d.ts +19 -3
  66. package/dist/types/components/html/GidsBsTable/GidsBsTable.d.ts +26 -3
  67. package/dist/types/components/html/GidsColorSwatch/GidsColorSwatch.d.ts +6 -0
  68. package/dist/types/components/html/GidsMatrixTable/GidsMatrixTable.d.ts +11 -0
  69. package/dist/types/components/html/GidsMatrixTableBody/GidsMatrixTableBody.d.ts +11 -0
  70. package/dist/types/components/html/GidsPagination/GidsPagination.d.ts +10 -0
  71. package/dist/types/components/html/GidsPaginator/GidsPaginator.d.ts +6 -0
  72. package/dist/types/components/html/GidsPaginatorItem/GidsPaginatorItem.d.ts +7 -0
  73. package/dist/types/components/html/GidsTable/GidsTable.d.ts +16 -0
  74. package/dist/types/components/html/GidsTableBody/GidsTableBody.d.ts +11 -0
  75. package/dist/types/components/html/GidsTableCell/GidsTableCell.d.ts +21 -0
  76. package/dist/types/components/html/GidsTableEntry/GidsTableEntry.d.ts +9 -0
  77. package/dist/types/components/html/GidsTableFooter/GidsTableFooter.d.ts +12 -0
  78. package/dist/types/components/html/GidsTableFooterControl/GidsTableFooterControl.d.ts +8 -0
  79. package/dist/types/components/html/GidsTableHeader/GidsTableHeader.d.ts +9 -0
  80. package/dist/types/components/html/GidsTableRow/GidsTableRow.d.ts +9 -0
  81. package/dist/types/components/html/GidsTableToolbar/GidsTableToolbar.d.ts +11 -0
  82. package/dist/types/components/html/_GidsPaginationItem/GidsPaginationItem.d.ts +10 -0
  83. package/dist/types/components/webComponents/GidsAdvancedTooltip/GidsAdvancedTooltip.d.ts +28 -0
  84. package/dist/types/components/webComponents/GidsBarChart/GidsBarChart.d.ts +7 -0
  85. package/dist/types/components/webComponents/GidsChartLegendItem/GidsChartLegendItem.d.ts +7 -0
  86. package/dist/types/components/webComponents/GidsLineChart/GidsLineChart.d.ts +7 -0
  87. package/dist/types/components/webComponents/GidsMdTable/GidsMdTable.d.ts +12 -9
  88. package/dist/types/components.d.ts +114 -17
  89. package/dist-bundled/es/gids-action-bar.js +3 -3
  90. package/dist-bundled/es/gids-activity-gauge.js +4 -4
  91. package/dist-bundled/es/gids-advanced-tooltip.js +6 -0
  92. package/dist-bundled/es/gids-bar-chart.js +1 -1
  93. package/dist-bundled/es/gids-calendar-header-panel.js +3 -3
  94. package/dist-bundled/es/gids-calendar-month-list.js +3 -3
  95. package/dist-bundled/es/gids-calendar-year-list.js +4 -4
  96. package/dist-bundled/es/gids-calendar.js +23 -23
  97. package/dist-bundled/es/gids-chart-legend-item.js +4 -4
  98. package/dist-bundled/es/gids-chart-legend.js +4 -4
  99. package/dist-bundled/es/gids-chart.js +38 -34
  100. package/dist-bundled/es/gids-chevron-button.js +7 -7
  101. package/dist-bundled/es/gids-dot.js +1 -1
  102. package/dist-bundled/es/gids-dropdown-field.js +6 -6
  103. package/dist-bundled/es/gids-dropdown-picker.js +2 -2
  104. package/dist-bundled/es/gids-dropdown.js +3 -3
  105. package/dist-bundled/es/gids-expansion-body-list-item.js +3 -3
  106. package/dist-bundled/es/gids-expansion-body-list.js +2 -2
  107. package/dist-bundled/es/gids-expansion-group.js +13 -13
  108. package/dist-bundled/es/gids-expansion.js +6 -6
  109. package/dist-bundled/es/gids-field.js +3 -3
  110. package/dist-bundled/es/gids-filter.js +4 -4
  111. package/dist-bundled/es/gids-icon.js +1 -1
  112. package/dist-bundled/es/gids-input.js +4 -4
  113. package/dist-bundled/es/gids-line-chart.js +1 -1
  114. package/dist-bundled/es/gids-md-table.js +121 -88
  115. package/dist-bundled/es/gids-overflow-container.js +1 -1
  116. package/dist-bundled/es/gids-overlay-provider.js +1 -1
  117. package/dist-bundled/es/gids-password-field.js +9 -9
  118. package/dist-bundled/es/gids-pie-chart.js +4 -4
  119. package/dist-bundled/es/gids-popover.js +2 -2
  120. package/dist-bundled/es/gids-scrim.js +7 -7
  121. package/dist-bundled/es/gids-tab-item.js +1 -1
  122. package/dist-bundled/es/gids-tab.js +1 -1
  123. package/dist-bundled/es/gids-text-field.js +9 -9
  124. package/dist-bundled/es/gids-toggle-button.js +1 -1
  125. package/dist-bundled/es/gids-tooltip.js +2 -2
  126. package/dist-bundled/es/{p-pSb81aE0-WzAszFOQ.js → p-1fMG8D4t-CIEDM74u.js} +2 -2
  127. package/dist-bundled/es/p-BBszCFSA-BN0-eWJX.js +115 -0
  128. package/dist-bundled/es/p-BKcvOO8o-L5KtCP_k.js +1024 -0
  129. package/dist-bundled/es/{p-C3xv7tfs-DHsjc3Ns.js → p-BV0jg2ix-DI0fZl_6.js} +15 -12
  130. package/dist-bundled/es/p-BVA1LAFM-DdsY_n8R.js +129 -0
  131. package/dist-bundled/es/{p-CI-sN9Lr-BvWzRJw-.js → p-BYt-9DKT-DByyhIUd.js} +13 -13
  132. package/dist-bundled/es/{p-C3We7Q8Q-2EoDLj5m.js → p-Bab1qxsC-BMbD0lEy.js} +2 -2
  133. package/dist-bundled/es/{p-C3w3wdCt-BTH-jYlI.js → p-Bh8qYmAS-DhSpwB20.js} +4 -4
  134. package/dist-bundled/es/{p-BSbOhfLZ-BdEHhmFM.js → p-BzzDNTlP-BkSyrafk.js} +8 -8
  135. package/dist-bundled/es/{p-C2O_pGky-CP4PN55D.js → p-CU5JIcEp-CuVpd-eZ.js} +10 -10
  136. package/dist-bundled/es/{p-Chqeexny-BuJ-PhNi.js → p-C_RW9IFo-DNQqJS8t.js} +5 -5
  137. package/dist-bundled/es/{p-ub0GuVHb-C9vrhXyF.js → p-CatvDz2b-C-Hlv2Xb.js} +9 -9
  138. package/dist-bundled/es/{p-BVAtja26-C16IjShX.js → p-CnVmK0dH-CbmnN-RR.js} +6 -6
  139. package/dist-bundled/es/{p-_SIWct9h-jMYFZ-VO.js → p-D5DRatg0-DtQL-DQg.js} +2 -2
  140. package/dist-bundled/es/{p-6APCjBEI-BREg63Xr.js → p-DAnkY5ik-ChPtRpOX.js} +5 -5
  141. package/dist-bundled/es/p-DMVCMnTe-D4eJKJsj.js +111 -0
  142. package/dist-bundled/es/p-DUUxlY-K-mypBhVt6.js +99 -0
  143. package/dist-bundled/es/{p-COHuQEfZ-DcUxD9TI.js → p-Dan1sCNk-mWcyyplK.js} +11 -11
  144. package/dist-bundled/es/{p-BCVFQSjK-CKrYrI4b.js → p-DslOQITw-BfwtLWqG.js} +7 -7
  145. package/dist-bundled/es/{p-DUojHltk-BQ0ryfLD.js → p-_HwuS8vK-C0w4T5rV.js} +2 -2
  146. package/dist-bundled/es/{p-4lN1OdcA-xYP8gbDc.js → p-jzl-rPxB-CC735zJp.js} +7 -7
  147. package/dist-bundled/umd/gids-action-bar.umd.js +2 -2
  148. package/dist-bundled/umd/gids-activity-gauge.umd.js +2 -2
  149. package/dist-bundled/umd/gids-advanced-tooltip.umd.js +5 -0
  150. package/dist-bundled/umd/gids-bar-chart.umd.js +8 -8
  151. package/dist-bundled/umd/gids-calendar-header-panel.umd.js +1 -1
  152. package/dist-bundled/umd/gids-calendar-month-list.umd.js +2 -2
  153. package/dist-bundled/umd/gids-calendar-year-list.umd.js +1 -1
  154. package/dist-bundled/umd/gids-calendar.umd.js +1 -1
  155. package/dist-bundled/umd/gids-chart-legend-item.umd.js +2 -2
  156. package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
  157. package/dist-bundled/umd/gids-chart.umd.js +5 -5
  158. package/dist-bundled/umd/gids-chevron-button.umd.js +1 -1
  159. package/dist-bundled/umd/gids-dot.umd.js +1 -1
  160. package/dist-bundled/umd/gids-dropdown-field.umd.js +1 -1
  161. package/dist-bundled/umd/gids-dropdown-picker.umd.js +1 -1
  162. package/dist-bundled/umd/gids-dropdown.umd.js +1 -1
  163. package/dist-bundled/umd/gids-expansion-body-list-item.umd.js +1 -1
  164. package/dist-bundled/umd/gids-expansion-body-list.umd.js +1 -1
  165. package/dist-bundled/umd/gids-expansion-group.umd.js +1 -1
  166. package/dist-bundled/umd/gids-expansion.umd.js +1 -1
  167. package/dist-bundled/umd/gids-field.umd.js +1 -1
  168. package/dist-bundled/umd/gids-filter.umd.js +2 -2
  169. package/dist-bundled/umd/gids-icon.umd.js +1 -1
  170. package/dist-bundled/umd/gids-input.umd.js +1 -1
  171. package/dist-bundled/umd/gids-line-chart.umd.js +2 -2
  172. package/dist-bundled/umd/gids-md-table.umd.js +2 -2
  173. package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
  174. package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
  175. package/dist-bundled/umd/gids-password-field.umd.js +1 -1
  176. package/dist-bundled/umd/gids-pie-chart.umd.js +2 -2
  177. package/dist-bundled/umd/gids-popover.umd.js +2 -2
  178. package/dist-bundled/umd/gids-scrim.umd.js +1 -1
  179. package/dist-bundled/umd/gids-tab-item.umd.js +2 -2
  180. package/dist-bundled/umd/gids-tab.umd.js +1 -1
  181. package/dist-bundled/umd/gids-text-field.umd.js +1 -1
  182. package/dist-bundled/umd/gids-toggle-button.umd.js +2 -2
  183. package/dist-bundled/umd/gids-tooltip.umd.js +1 -1
  184. package/dist-bundled/umd-complete/gids-core-web.umd.js +8 -8
  185. package/package.json +17 -9
  186. package/dist/p-C3xv7tfs.js +0 -1
  187. package/dist/p-C56G7JRy.js +0 -1
  188. package/dist/p-CI-sN9Lr.js +0 -1
  189. package/dist/p-DO0MyFf4.js +0 -1
  190. package/dist/p-_SIWct9h.js +0 -1
  191. package/dist/p-a3JfEYJp.js +0 -1
  192. package/dist/types/components/html/GidsBasicTableCell/GidsBasicTableCell.d.ts +0 -5
  193. package/dist-bundled/es/p-C56G7JRy-BCGZG2-3.js +0 -88
  194. package/dist-bundled/es/p-DO0MyFf4-Ddg5sVMx.js +0 -115
  195. package/dist-bundled/es/p-a3JfEYJp-DyhDK6VZ.js +0 -1128
@@ -0,0 +1,1024 @@
1
+ const q = Math.min, I = Math.max, it = Math.round, ot = Math.floor, P = (t) => ({
2
+ x: t,
3
+ y: t
4
+ }), zt = {
5
+ left: "right",
6
+ right: "left",
7
+ bottom: "top",
8
+ top: "bottom"
9
+ };
10
+ function ht(t, e, n) {
11
+ return I(t, q(e, n));
12
+ }
13
+ function tt(t, e) {
14
+ return typeof t == "function" ? t(e) : t;
15
+ }
16
+ function X(t) {
17
+ return t.split("-")[0];
18
+ }
19
+ function et(t) {
20
+ return t.split("-")[1];
21
+ }
22
+ function Dt(t) {
23
+ return t === "x" ? "y" : "x";
24
+ }
25
+ function xt(t) {
26
+ return t === "y" ? "height" : "width";
27
+ }
28
+ function W(t) {
29
+ const e = t[0];
30
+ return e === "t" || e === "b" ? "y" : "x";
31
+ }
32
+ function yt(t) {
33
+ return Dt(W(t));
34
+ }
35
+ function It(t, e, n) {
36
+ n === void 0 && (n = !1);
37
+ const o = et(t), i = yt(t), s = xt(i);
38
+ let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
39
+ return e.reference[s] > e.floating[s] && (r = rt(r)), [r, rt(r)];
40
+ }
41
+ function Xt(t) {
42
+ const e = rt(t);
43
+ return [pt(t), e, pt(e)];
44
+ }
45
+ function pt(t) {
46
+ return t.includes("start") ? t.replace("start", "end") : t.replace("end", "start");
47
+ }
48
+ const Ot = ["left", "right"], At = ["right", "left"], jt = ["top", "bottom"], Yt = ["bottom", "top"];
49
+ function qt(t, e, n) {
50
+ switch (t) {
51
+ case "top":
52
+ case "bottom":
53
+ return n ? e ? At : Ot : e ? Ot : At;
54
+ case "left":
55
+ case "right":
56
+ return e ? jt : Yt;
57
+ default:
58
+ return [];
59
+ }
60
+ }
61
+ function Ut(t, e, n, o) {
62
+ const i = et(t);
63
+ let s = qt(X(t), n === "start", o);
64
+ return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(pt)))), s;
65
+ }
66
+ function rt(t) {
67
+ const e = X(t);
68
+ return zt[e] + t.slice(e.length);
69
+ }
70
+ function Kt(t) {
71
+ return {
72
+ top: 0,
73
+ right: 0,
74
+ bottom: 0,
75
+ left: 0,
76
+ ...t
77
+ };
78
+ }
79
+ function Ft(t) {
80
+ return typeof t != "number" ? Kt(t) : {
81
+ top: t,
82
+ right: t,
83
+ bottom: t,
84
+ left: t
85
+ };
86
+ }
87
+ function st(t) {
88
+ const {
89
+ x: e,
90
+ y: n,
91
+ width: o,
92
+ height: i
93
+ } = t;
94
+ return {
95
+ width: o,
96
+ height: i,
97
+ top: n,
98
+ left: e,
99
+ right: e + o,
100
+ bottom: n + i,
101
+ x: e,
102
+ y: n
103
+ };
104
+ }
105
+ function Ct(t, e, n) {
106
+ let {
107
+ reference: o,
108
+ floating: i
109
+ } = t;
110
+ const s = W(e), r = yt(e), c = xt(r), l = X(e), a = s === "y", d = o.x + o.width / 2 - i.width / 2, u = o.y + o.height / 2 - i.height / 2, m = o[c] / 2 - i[c] / 2;
111
+ let f;
112
+ switch (l) {
113
+ case "top":
114
+ f = {
115
+ x: d,
116
+ y: o.y - i.height
117
+ };
118
+ break;
119
+ case "bottom":
120
+ f = {
121
+ x: d,
122
+ y: o.y + o.height
123
+ };
124
+ break;
125
+ case "right":
126
+ f = {
127
+ x: o.x + o.width,
128
+ y: u
129
+ };
130
+ break;
131
+ case "left":
132
+ f = {
133
+ x: o.x - i.width,
134
+ y: u
135
+ };
136
+ break;
137
+ default:
138
+ f = {
139
+ x: o.x,
140
+ y: o.y
141
+ };
142
+ }
143
+ switch (et(e)) {
144
+ case "start":
145
+ f[r] -= m * (n && a ? -1 : 1);
146
+ break;
147
+ case "end":
148
+ f[r] += m * (n && a ? -1 : 1);
149
+ break;
150
+ }
151
+ return f;
152
+ }
153
+ async function Gt(t, e) {
154
+ var n;
155
+ e === void 0 && (e = {});
156
+ const {
157
+ x: o,
158
+ y: i,
159
+ platform: s,
160
+ rects: r,
161
+ elements: c,
162
+ strategy: l
163
+ } = t, {
164
+ boundary: a = "clippingAncestors",
165
+ rootBoundary: d = "viewport",
166
+ elementContext: u = "floating",
167
+ altBoundary: m = !1,
168
+ padding: f = 0
169
+ } = tt(e, t), g = Ft(f), w = c[m ? u === "floating" ? "reference" : "floating" : u], p = st(await s.getClippingRect({
170
+ element: (n = await (s.isElement == null ? void 0 : s.isElement(w))) == null || n ? w : w.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
171
+ boundary: a,
172
+ rootBoundary: d,
173
+ strategy: l
174
+ })), x = u === "floating" ? {
175
+ x: o,
176
+ y: i,
177
+ width: r.floating.width,
178
+ height: r.floating.height
179
+ } : r.reference, y = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), v = await (s.isElement == null ? void 0 : s.isElement(y)) ? await (s.getScale == null ? void 0 : s.getScale(y)) || {
180
+ x: 1,
181
+ y: 1
182
+ } : {
183
+ x: 1,
184
+ y: 1
185
+ }, O = st(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
186
+ elements: c,
187
+ rect: x,
188
+ offsetParent: y,
189
+ strategy: l
190
+ }) : x);
191
+ return {
192
+ top: (p.top - O.top + g.top) / v.y,
193
+ bottom: (O.bottom - p.bottom + g.bottom) / v.y,
194
+ left: (p.left - O.left + g.left) / v.x,
195
+ right: (O.right - p.right + g.right) / v.x
196
+ };
197
+ }
198
+ const Jt = 50, Qt = async (t, e, n) => {
199
+ const {
200
+ placement: o = "bottom",
201
+ strategy: i = "absolute",
202
+ middleware: s = [],
203
+ platform: r
204
+ } = n, c = r.detectOverflow ? r : {
205
+ ...r,
206
+ detectOverflow: Gt
207
+ }, l = await (r.isRTL == null ? void 0 : r.isRTL(e));
208
+ let a = await r.getElementRects({
209
+ reference: t,
210
+ floating: e,
211
+ strategy: i
212
+ }), {
213
+ x: d,
214
+ y: u
215
+ } = Ct(a, o, l), m = o, f = 0;
216
+ const g = {};
217
+ for (let h = 0; h < s.length; h++) {
218
+ const w = s[h];
219
+ if (!w)
220
+ continue;
221
+ const {
222
+ name: p,
223
+ fn: x
224
+ } = w, {
225
+ x: y,
226
+ y: v,
227
+ data: O,
228
+ reset: b
229
+ } = await x({
230
+ x: d,
231
+ y: u,
232
+ initialPlacement: o,
233
+ placement: m,
234
+ strategy: i,
235
+ middlewareData: g,
236
+ rects: a,
237
+ platform: c,
238
+ elements: {
239
+ reference: t,
240
+ floating: e
241
+ }
242
+ });
243
+ d = y ?? d, u = v ?? u, g[p] = {
244
+ ...g[p],
245
+ ...O
246
+ }, b && f < Jt && (f++, typeof b == "object" && (b.placement && (m = b.placement), b.rects && (a = b.rects === !0 ? await r.getElementRects({
247
+ reference: t,
248
+ floating: e,
249
+ strategy: i
250
+ }) : b.rects), {
251
+ x: d,
252
+ y: u
253
+ } = Ct(a, m, l)), h = -1);
254
+ }
255
+ return {
256
+ x: d,
257
+ y: u,
258
+ placement: m,
259
+ strategy: i,
260
+ middlewareData: g
261
+ };
262
+ }, Zt = (t) => ({
263
+ name: "arrow",
264
+ options: t,
265
+ async fn(e) {
266
+ const {
267
+ x: n,
268
+ y: o,
269
+ placement: i,
270
+ rects: s,
271
+ platform: r,
272
+ elements: c,
273
+ middlewareData: l
274
+ } = e, {
275
+ element: a,
276
+ padding: d = 0
277
+ } = tt(t, e) || {};
278
+ if (a == null)
279
+ return {};
280
+ const u = Ft(d), m = {
281
+ x: n,
282
+ y: o
283
+ }, f = yt(i), g = xt(f), h = await r.getDimensions(a), w = f === "y", p = w ? "top" : "left", x = w ? "bottom" : "right", y = w ? "clientHeight" : "clientWidth", v = s.reference[g] + s.reference[f] - m[f] - s.floating[g], O = m[f] - s.reference[f], b = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(a));
284
+ let C = b ? b[y] : 0;
285
+ (!C || !await (r.isElement == null ? void 0 : r.isElement(b))) && (C = c.floating[y] || s.floating[g]);
286
+ const G = v / 2 - O / 2, V = C / 2 - h[g] / 2 - 1, F = q(u[p], V), J = q(u[x], V), _ = F, Q = C - h[g] - J, R = C / 2 - h[g] / 2 + G, $ = ht(_, R, Q), k = !l.arrow && et(i) != null && R !== $ && s.reference[g] / 2 - (R < _ ? F : J) - h[g] / 2 < 0, S = k ? R < _ ? R - _ : R - Q : 0;
287
+ return {
288
+ [f]: m[f] + S,
289
+ data: {
290
+ [f]: $,
291
+ centerOffset: R - $ - S,
292
+ ...k && {
293
+ alignmentOffset: S
294
+ }
295
+ },
296
+ reset: k
297
+ };
298
+ }
299
+ }), te = function(t) {
300
+ return t === void 0 && (t = {}), {
301
+ name: "flip",
302
+ options: t,
303
+ async fn(e) {
304
+ var n, o;
305
+ const {
306
+ placement: i,
307
+ middlewareData: s,
308
+ rects: r,
309
+ initialPlacement: c,
310
+ platform: l,
311
+ elements: a
312
+ } = e, {
313
+ mainAxis: d = !0,
314
+ crossAxis: u = !0,
315
+ fallbackPlacements: m,
316
+ fallbackStrategy: f = "bestFit",
317
+ fallbackAxisSideDirection: g = "none",
318
+ flipAlignment: h = !0,
319
+ ...w
320
+ } = tt(t, e);
321
+ if ((n = s.arrow) != null && n.alignmentOffset)
322
+ return {};
323
+ const p = X(i), x = W(c), y = X(c) === c, v = await (l.isRTL == null ? void 0 : l.isRTL(a.floating)), O = m || (y || !h ? [rt(c)] : Xt(c)), b = g !== "none";
324
+ !m && b && O.push(...Ut(c, h, g, v));
325
+ const C = [c, ...O], G = await l.detectOverflow(e, w), V = [];
326
+ let F = ((o = s.flip) == null ? void 0 : o.overflows) || [];
327
+ if (d && V.push(G[p]), u) {
328
+ const R = It(i, r, v);
329
+ V.push(G[R[0]], G[R[1]]);
330
+ }
331
+ if (F = [...F, {
332
+ placement: i,
333
+ overflows: V
334
+ }], !V.every((R) => R <= 0)) {
335
+ var J, _;
336
+ const R = (((J = s.flip) == null ? void 0 : J.index) || 0) + 1, $ = C[R];
337
+ if ($ && (!(u === "alignment" ? x !== W($) : !1) || // We leave the current main axis only if every placement on that axis
338
+ // overflows the main axis.
339
+ F.every((E) => W(E.placement) === x ? E.overflows[0] > 0 : !0)))
340
+ return {
341
+ data: {
342
+ index: R,
343
+ overflows: F
344
+ },
345
+ reset: {
346
+ placement: $
347
+ }
348
+ };
349
+ let k = (_ = F.filter((S) => S.overflows[0] <= 0).sort((S, E) => S.overflows[1] - E.overflows[1])[0]) == null ? void 0 : _.placement;
350
+ if (!k)
351
+ switch (f) {
352
+ case "bestFit": {
353
+ var Q;
354
+ const S = (Q = F.filter((E) => {
355
+ if (b) {
356
+ const M = W(E.placement);
357
+ return M === x || // Create a bias to the `y` side axis due to horizontal
358
+ // reading directions favoring greater width.
359
+ M === "y";
360
+ }
361
+ return !0;
362
+ }).map((E) => [E.placement, E.overflows.filter((M) => M > 0).reduce((M, Ht) => M + Ht, 0)]).sort((E, M) => E[1] - M[1])[0]) == null ? void 0 : Q[0];
363
+ S && (k = S);
364
+ break;
365
+ }
366
+ case "initialPlacement":
367
+ k = c;
368
+ break;
369
+ }
370
+ if (i !== k)
371
+ return {
372
+ reset: {
373
+ placement: k
374
+ }
375
+ };
376
+ }
377
+ return {};
378
+ }
379
+ };
380
+ }, ee = /* @__PURE__ */ new Set(["left", "top"]);
381
+ async function ne(t, e) {
382
+ const {
383
+ placement: n,
384
+ platform: o,
385
+ elements: i
386
+ } = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = X(n), c = et(n), l = W(n) === "y", a = ee.has(r) ? -1 : 1, d = s && l ? -1 : 1, u = tt(e, t);
387
+ let {
388
+ mainAxis: m,
389
+ crossAxis: f,
390
+ alignmentAxis: g
391
+ } = typeof u == "number" ? {
392
+ mainAxis: u,
393
+ crossAxis: 0,
394
+ alignmentAxis: null
395
+ } : {
396
+ mainAxis: u.mainAxis || 0,
397
+ crossAxis: u.crossAxis || 0,
398
+ alignmentAxis: u.alignmentAxis
399
+ };
400
+ return c && typeof g == "number" && (f = c === "end" ? g * -1 : g), l ? {
401
+ x: f * d,
402
+ y: m * a
403
+ } : {
404
+ x: m * a,
405
+ y: f * d
406
+ };
407
+ }
408
+ const oe = function(t) {
409
+ return t === void 0 && (t = 0), {
410
+ name: "offset",
411
+ options: t,
412
+ async fn(e) {
413
+ var n, o;
414
+ const {
415
+ x: i,
416
+ y: s,
417
+ placement: r,
418
+ middlewareData: c
419
+ } = e, l = await ne(e, t);
420
+ return r === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
421
+ x: i + l.x,
422
+ y: s + l.y,
423
+ data: {
424
+ ...l,
425
+ placement: r
426
+ }
427
+ };
428
+ }
429
+ };
430
+ }, ie = function(t) {
431
+ return t === void 0 && (t = {}), {
432
+ name: "shift",
433
+ options: t,
434
+ async fn(e) {
435
+ const {
436
+ x: n,
437
+ y: o,
438
+ placement: i,
439
+ platform: s
440
+ } = e, {
441
+ mainAxis: r = !0,
442
+ crossAxis: c = !1,
443
+ limiter: l = {
444
+ fn: (p) => {
445
+ let {
446
+ x,
447
+ y
448
+ } = p;
449
+ return {
450
+ x,
451
+ y
452
+ };
453
+ }
454
+ },
455
+ ...a
456
+ } = tt(t, e), d = {
457
+ x: n,
458
+ y: o
459
+ }, u = await s.detectOverflow(e, a), m = W(X(i)), f = Dt(m);
460
+ let g = d[f], h = d[m];
461
+ if (r) {
462
+ const p = f === "y" ? "top" : "left", x = f === "y" ? "bottom" : "right", y = g + u[p], v = g - u[x];
463
+ g = ht(y, g, v);
464
+ }
465
+ if (c) {
466
+ const p = m === "y" ? "top" : "left", x = m === "y" ? "bottom" : "right", y = h + u[p], v = h - u[x];
467
+ h = ht(y, h, v);
468
+ }
469
+ const w = l.fn({
470
+ ...e,
471
+ [f]: g,
472
+ [m]: h
473
+ });
474
+ return {
475
+ ...w,
476
+ data: {
477
+ x: w.x - n,
478
+ y: w.y - o,
479
+ enabled: {
480
+ [f]: r,
481
+ [m]: c
482
+ }
483
+ }
484
+ };
485
+ }
486
+ };
487
+ };
488
+ function ct() {
489
+ return typeof window < "u";
490
+ }
491
+ function K(t) {
492
+ return kt(t) ? (t.nodeName || "").toLowerCase() : "#document";
493
+ }
494
+ function A(t) {
495
+ var e;
496
+ return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
497
+ }
498
+ function D(t) {
499
+ var e;
500
+ return (e = (kt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
501
+ }
502
+ function kt(t) {
503
+ return ct() ? t instanceof Node || t instanceof A(t).Node : !1;
504
+ }
505
+ function L(t) {
506
+ return ct() ? t instanceof Element || t instanceof A(t).Element : !1;
507
+ }
508
+ function N(t) {
509
+ return ct() ? t instanceof HTMLElement || t instanceof A(t).HTMLElement : !1;
510
+ }
511
+ function St(t) {
512
+ return !ct() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof A(t).ShadowRoot;
513
+ }
514
+ function nt(t) {
515
+ const {
516
+ overflow: e,
517
+ overflowX: n,
518
+ overflowY: o,
519
+ display: i
520
+ } = T(t);
521
+ return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && i !== "inline" && i !== "contents";
522
+ }
523
+ function re(t) {
524
+ return /^(table|td|th)$/.test(K(t));
525
+ }
526
+ function lt(t) {
527
+ try {
528
+ if (t.matches(":popover-open"))
529
+ return !0;
530
+ } catch {
531
+ }
532
+ try {
533
+ return t.matches(":modal");
534
+ } catch {
535
+ return !1;
536
+ }
537
+ }
538
+ const se = /transform|translate|scale|rotate|perspective|filter/, ce = /paint|layout|strict|content/, H = (t) => !!t && t !== "none";
539
+ let ut;
540
+ function vt(t) {
541
+ const e = L(t) ? T(t) : t;
542
+ return H(e.transform) || H(e.translate) || H(e.scale) || H(e.rotate) || H(e.perspective) || !bt() && (H(e.backdropFilter) || H(e.filter)) || se.test(e.willChange || "") || ce.test(e.contain || "");
543
+ }
544
+ function le(t) {
545
+ let e = B(t);
546
+ for (; N(e) && !U(e); ) {
547
+ if (vt(e))
548
+ return e;
549
+ if (lt(e))
550
+ return null;
551
+ e = B(e);
552
+ }
553
+ return null;
554
+ }
555
+ function bt() {
556
+ return ut == null && (ut = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), ut;
557
+ }
558
+ function U(t) {
559
+ return /^(html|body|#document)$/.test(K(t));
560
+ }
561
+ function T(t) {
562
+ return A(t).getComputedStyle(t);
563
+ }
564
+ function ft(t) {
565
+ return L(t) ? {
566
+ scrollLeft: t.scrollLeft,
567
+ scrollTop: t.scrollTop
568
+ } : {
569
+ scrollLeft: t.scrollX,
570
+ scrollTop: t.scrollY
571
+ };
572
+ }
573
+ function B(t) {
574
+ if (K(t) === "html")
575
+ return t;
576
+ const e = (
577
+ // Step into the shadow DOM of the parent of a slotted node.
578
+ t.assignedSlot || // DOM Element detected.
579
+ t.parentNode || // ShadowRoot detected.
580
+ St(t) && t.host || // Fallback.
581
+ D(t)
582
+ );
583
+ return St(e) ? e.host : e;
584
+ }
585
+ function Nt(t) {
586
+ const e = B(t);
587
+ return U(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : N(e) && nt(e) ? e : Nt(e);
588
+ }
589
+ function Z(t, e, n) {
590
+ var o;
591
+ e === void 0 && (e = []), n === void 0 && (n = !0);
592
+ const i = Nt(t), s = i === ((o = t.ownerDocument) == null ? void 0 : o.body), r = A(i);
593
+ if (s) {
594
+ const c = wt(r);
595
+ return e.concat(r, r.visualViewport || [], nt(i) ? i : [], c && n ? Z(c) : []);
596
+ } else
597
+ return e.concat(i, Z(i, [], n));
598
+ }
599
+ function wt(t) {
600
+ return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
601
+ }
602
+ function Mt(t) {
603
+ const e = T(t);
604
+ let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
605
+ const i = N(t), s = i ? t.offsetWidth : n, r = i ? t.offsetHeight : o, c = it(n) !== s || it(o) !== r;
606
+ return c && (n = s, o = r), {
607
+ width: n,
608
+ height: o,
609
+ $: c
610
+ };
611
+ }
612
+ function Rt(t) {
613
+ return L(t) ? t : t.contextElement;
614
+ }
615
+ function Y(t) {
616
+ const e = Rt(t);
617
+ if (!N(e))
618
+ return P(1);
619
+ const n = e.getBoundingClientRect(), {
620
+ width: o,
621
+ height: i,
622
+ $: s
623
+ } = Mt(e);
624
+ let r = (s ? it(n.width) : n.width) / o, c = (s ? it(n.height) : n.height) / i;
625
+ return (!r || !Number.isFinite(r)) && (r = 1), (!c || !Number.isFinite(c)) && (c = 1), {
626
+ x: r,
627
+ y: c
628
+ };
629
+ }
630
+ const fe = /* @__PURE__ */ P(0);
631
+ function Wt(t) {
632
+ const e = A(t);
633
+ return !bt() || !e.visualViewport ? fe : {
634
+ x: e.visualViewport.offsetLeft,
635
+ y: e.visualViewport.offsetTop
636
+ };
637
+ }
638
+ function ae(t, e, n) {
639
+ return e === void 0 && (e = !1), !n || e && n !== A(t) ? !1 : e;
640
+ }
641
+ function j(t, e, n, o) {
642
+ e === void 0 && (e = !1), n === void 0 && (n = !1);
643
+ const i = t.getBoundingClientRect(), s = Rt(t);
644
+ let r = P(1);
645
+ e && (o ? L(o) && (r = Y(o)) : r = Y(t));
646
+ const c = ae(s, n, o) ? Wt(s) : P(0);
647
+ let l = (i.left + c.x) / r.x, a = (i.top + c.y) / r.y, d = i.width / r.x, u = i.height / r.y;
648
+ if (s) {
649
+ const m = A(s), f = o && L(o) ? A(o) : o;
650
+ let g = m, h = wt(g);
651
+ for (; h && o && f !== g; ) {
652
+ const w = Y(h), p = h.getBoundingClientRect(), x = T(h), y = p.left + (h.clientLeft + parseFloat(x.paddingLeft)) * w.x, v = p.top + (h.clientTop + parseFloat(x.paddingTop)) * w.y;
653
+ l *= w.x, a *= w.y, d *= w.x, u *= w.y, l += y, a += v, g = A(h), h = wt(g);
654
+ }
655
+ }
656
+ return st({
657
+ width: d,
658
+ height: u,
659
+ x: l,
660
+ y: a
661
+ });
662
+ }
663
+ function at(t, e) {
664
+ const n = ft(t).scrollLeft;
665
+ return e ? e.left + n : j(D(t)).left + n;
666
+ }
667
+ function Bt(t, e) {
668
+ const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - at(t, n), i = n.top + e.scrollTop;
669
+ return {
670
+ x: o,
671
+ y: i
672
+ };
673
+ }
674
+ function ue(t) {
675
+ let {
676
+ elements: e,
677
+ rect: n,
678
+ offsetParent: o,
679
+ strategy: i
680
+ } = t;
681
+ const s = i === "fixed", r = D(o), c = e ? lt(e.floating) : !1;
682
+ if (o === r || c && s)
683
+ return n;
684
+ let l = {
685
+ scrollLeft: 0,
686
+ scrollTop: 0
687
+ }, a = P(1);
688
+ const d = P(0), u = N(o);
689
+ if ((u || !u && !s) && ((K(o) !== "body" || nt(r)) && (l = ft(o)), u)) {
690
+ const f = j(o);
691
+ a = Y(o), d.x = f.x + o.clientLeft, d.y = f.y + o.clientTop;
692
+ }
693
+ const m = r && !u && !s ? Bt(r, l) : P(0);
694
+ return {
695
+ width: n.width * a.x,
696
+ height: n.height * a.y,
697
+ x: n.x * a.x - l.scrollLeft * a.x + d.x + m.x,
698
+ y: n.y * a.y - l.scrollTop * a.y + d.y + m.y
699
+ };
700
+ }
701
+ function de(t) {
702
+ return Array.from(t.getClientRects());
703
+ }
704
+ function me(t) {
705
+ const e = D(t), n = ft(t), o = t.ownerDocument.body, i = I(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = I(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
706
+ let r = -n.scrollLeft + at(t);
707
+ const c = -n.scrollTop;
708
+ return T(o).direction === "rtl" && (r += I(e.clientWidth, o.clientWidth) - i), {
709
+ width: i,
710
+ height: s,
711
+ x: r,
712
+ y: c
713
+ };
714
+ }
715
+ const Et = 25;
716
+ function ge(t, e) {
717
+ const n = A(t), o = D(t), i = n.visualViewport;
718
+ let s = o.clientWidth, r = o.clientHeight, c = 0, l = 0;
719
+ if (i) {
720
+ s = i.width, r = i.height;
721
+ const d = bt();
722
+ (!d || d && e === "fixed") && (c = i.offsetLeft, l = i.offsetTop);
723
+ }
724
+ const a = at(o);
725
+ if (a <= 0) {
726
+ const d = o.ownerDocument, u = d.body, m = getComputedStyle(u), f = d.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, g = Math.abs(o.clientWidth - u.clientWidth - f);
727
+ g <= Et && (s -= g);
728
+ } else a <= Et && (s += a);
729
+ return {
730
+ width: s,
731
+ height: r,
732
+ x: c,
733
+ y: l
734
+ };
735
+ }
736
+ function he(t, e) {
737
+ const n = j(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s = N(t) ? Y(t) : P(1), r = t.clientWidth * s.x, c = t.clientHeight * s.y, l = i * s.x, a = o * s.y;
738
+ return {
739
+ width: r,
740
+ height: c,
741
+ x: l,
742
+ y: a
743
+ };
744
+ }
745
+ function Lt(t, e, n) {
746
+ let o;
747
+ if (e === "viewport")
748
+ o = ge(t, n);
749
+ else if (e === "document")
750
+ o = me(D(t));
751
+ else if (L(e))
752
+ o = he(e, n);
753
+ else {
754
+ const i = Wt(t);
755
+ o = {
756
+ x: e.x - i.x,
757
+ y: e.y - i.y,
758
+ width: e.width,
759
+ height: e.height
760
+ };
761
+ }
762
+ return st(o);
763
+ }
764
+ function Vt(t, e) {
765
+ const n = B(t);
766
+ return n === e || !L(n) || U(n) ? !1 : T(n).position === "fixed" || Vt(n, e);
767
+ }
768
+ function pe(t, e) {
769
+ const n = e.get(t);
770
+ if (n)
771
+ return n;
772
+ let o = Z(t, [], !1).filter((c) => L(c) && K(c) !== "body"), i = null;
773
+ const s = T(t).position === "fixed";
774
+ let r = s ? B(t) : t;
775
+ for (; L(r) && !U(r); ) {
776
+ const c = T(r), l = vt(r);
777
+ !l && c.position === "fixed" && (i = null), (s ? !l && !i : !l && c.position === "static" && !!i && (i.position === "absolute" || i.position === "fixed") || nt(r) && !l && Vt(t, r)) ? o = o.filter((d) => d !== r) : i = c, r = B(r);
778
+ }
779
+ return e.set(t, o), o;
780
+ }
781
+ function we(t) {
782
+ let {
783
+ element: e,
784
+ boundary: n,
785
+ rootBoundary: o,
786
+ strategy: i
787
+ } = t;
788
+ const r = [...n === "clippingAncestors" ? lt(e) ? [] : pe(e, this._c) : [].concat(n), o], c = Lt(e, r[0], i);
789
+ let l = c.top, a = c.right, d = c.bottom, u = c.left;
790
+ for (let m = 1; m < r.length; m++) {
791
+ const f = Lt(e, r[m], i);
792
+ l = I(f.top, l), a = q(f.right, a), d = q(f.bottom, d), u = I(f.left, u);
793
+ }
794
+ return {
795
+ width: a - u,
796
+ height: d - l,
797
+ x: u,
798
+ y: l
799
+ };
800
+ }
801
+ function xe(t) {
802
+ const {
803
+ width: e,
804
+ height: n
805
+ } = Mt(t);
806
+ return {
807
+ width: e,
808
+ height: n
809
+ };
810
+ }
811
+ function ye(t, e, n) {
812
+ const o = N(e), i = D(e), s = n === "fixed", r = j(t, !0, s, e);
813
+ let c = {
814
+ scrollLeft: 0,
815
+ scrollTop: 0
816
+ };
817
+ const l = P(0);
818
+ function a() {
819
+ l.x = at(i);
820
+ }
821
+ if (o || !o && !s)
822
+ if ((K(e) !== "body" || nt(i)) && (c = ft(e)), o) {
823
+ const f = j(e, !0, s, e);
824
+ l.x = f.x + e.clientLeft, l.y = f.y + e.clientTop;
825
+ } else i && a();
826
+ s && !o && i && a();
827
+ const d = i && !o && !s ? Bt(i, c) : P(0), u = r.left + c.scrollLeft - l.x - d.x, m = r.top + c.scrollTop - l.y - d.y;
828
+ return {
829
+ x: u,
830
+ y: m,
831
+ width: r.width,
832
+ height: r.height
833
+ };
834
+ }
835
+ function dt(t) {
836
+ return T(t).position === "static";
837
+ }
838
+ function Tt(t, e) {
839
+ if (!N(t) || T(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 _t(t, e) {
847
+ const n = A(t);
848
+ if (lt(t))
849
+ return n;
850
+ if (!N(t)) {
851
+ let i = B(t);
852
+ for (; i && !U(i); ) {
853
+ if (L(i) && !dt(i))
854
+ return i;
855
+ i = B(i);
856
+ }
857
+ return n;
858
+ }
859
+ let o = Tt(t, e);
860
+ for (; o && re(o) && dt(o); )
861
+ o = Tt(o, e);
862
+ return o && U(o) && dt(o) && !vt(o) ? n : o || le(t) || n;
863
+ }
864
+ const ve = async function(t) {
865
+ const e = this.getOffsetParent || _t, n = this.getDimensions, o = await n(t.floating);
866
+ return {
867
+ reference: ye(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 be(t) {
877
+ return T(t).direction === "rtl";
878
+ }
879
+ const Re = {
880
+ convertOffsetParentRelativeRectToViewportRelativeRect: ue,
881
+ getDocumentElement: D,
882
+ getClippingRect: we,
883
+ getOffsetParent: _t,
884
+ getElementRects: ve,
885
+ getClientRects: de,
886
+ getDimensions: xe,
887
+ getScale: Y,
888
+ isElement: L,
889
+ isRTL: be
890
+ };
891
+ function $t(t, e) {
892
+ return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
893
+ }
894
+ function Oe(t, e) {
895
+ let n = null, o;
896
+ const i = D(t);
897
+ function s() {
898
+ var c;
899
+ clearTimeout(o), (c = n) == null || c.disconnect(), n = null;
900
+ }
901
+ function r(c, l) {
902
+ c === void 0 && (c = !1), l === void 0 && (l = 1), s();
903
+ const a = t.getBoundingClientRect(), {
904
+ left: d,
905
+ top: u,
906
+ width: m,
907
+ height: f
908
+ } = a;
909
+ if (c || e(), !m || !f)
910
+ return;
911
+ const g = ot(u), h = ot(i.clientWidth - (d + m)), w = ot(i.clientHeight - (u + f)), p = ot(d), y = {
912
+ rootMargin: -g + "px " + -h + "px " + -w + "px " + -p + "px",
913
+ threshold: I(0, q(1, l)) || 1
914
+ };
915
+ let v = !0;
916
+ function O(b) {
917
+ const C = b[0].intersectionRatio;
918
+ if (C !== l) {
919
+ if (!v)
920
+ return r();
921
+ C ? r(!1, C) : o = setTimeout(() => {
922
+ r(!1, 1e-7);
923
+ }, 1e3);
924
+ }
925
+ C === 1 && !$t(a, t.getBoundingClientRect()) && r(), v = !1;
926
+ }
927
+ try {
928
+ n = new IntersectionObserver(O, {
929
+ ...y,
930
+ // Handle <iframe>s
931
+ root: i.ownerDocument
932
+ });
933
+ } catch {
934
+ n = new IntersectionObserver(O, y);
935
+ }
936
+ n.observe(t);
937
+ }
938
+ return r(!0), s;
939
+ }
940
+ function Ee(t, e, n, o) {
941
+ o === void 0 && (o = {});
942
+ const {
943
+ ancestorScroll: i = !0,
944
+ ancestorResize: s = !0,
945
+ elementResize: r = typeof ResizeObserver == "function",
946
+ layoutShift: c = typeof IntersectionObserver == "function",
947
+ animationFrame: l = !1
948
+ } = o, a = Rt(t), d = i || s ? [...a ? Z(a) : [], ...e ? Z(e) : []] : [];
949
+ d.forEach((p) => {
950
+ i && p.addEventListener("scroll", n, {
951
+ passive: !0
952
+ }), s && p.addEventListener("resize", n);
953
+ });
954
+ const u = a && c ? Oe(a, n) : null;
955
+ let m = -1, f = null;
956
+ r && (f = new ResizeObserver((p) => {
957
+ let [x] = p;
958
+ x && x.target === a && f && e && (f.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
959
+ var y;
960
+ (y = f) == null || y.observe(e);
961
+ })), n();
962
+ }), a && !l && f.observe(a), e && f.observe(e));
963
+ let g, h = l ? j(t) : null;
964
+ l && w();
965
+ function w() {
966
+ const p = j(t);
967
+ h && !$t(h, p) && n(), h = p, g = requestAnimationFrame(w);
968
+ }
969
+ return n(), () => {
970
+ var p;
971
+ d.forEach((x) => {
972
+ i && x.removeEventListener("scroll", n), s && x.removeEventListener("resize", n);
973
+ }), u?.(), (p = f) == null || p.disconnect(), f = null, l && cancelAnimationFrame(g);
974
+ };
975
+ }
976
+ const Le = oe, Te = ie, Pe = te, De = Zt, Fe = (t, e, n) => {
977
+ const o = /* @__PURE__ */ new Map(), i = {
978
+ platform: Re,
979
+ ...n
980
+ }, s = {
981
+ ...i.platform,
982
+ _c: o
983
+ };
984
+ return Qt(t, e, {
985
+ ...i,
986
+ platform: s
987
+ });
988
+ };
989
+ function Pt(t) {
990
+ var e;
991
+ return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
992
+ }
993
+ const Ae = /transform|translate|scale|rotate|perspective|filter/, Ce = /paint|layout|strict|content/, z = (t) => !!t && t !== "none";
994
+ let mt;
995
+ function Se(t) {
996
+ const e = (n = t, typeof window < "u" && (n instanceof Element || n instanceof Pt(n).Element) ? Pt(o = t).getComputedStyle(o) : t);
997
+ var n, o;
998
+ return z(e.transform) || z(e.translate) || z(e.scale) || z(e.rotate) || z(e.perspective) || (mt == null && (mt = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), !mt && (z(e.backdropFilter) || z(e.filter))) || Ae.test(e.willChange || "") || Ce.test(e.contain || "");
999
+ }
1000
+ function ke(t) {
1001
+ return (function(e) {
1002
+ for (let n = e; n; n = gt(n)) if (n instanceof Element && getComputedStyle(n).display === "none") return null;
1003
+ for (let n = gt(e); n; n = gt(n)) {
1004
+ if (!(n instanceof Element)) continue;
1005
+ const o = getComputedStyle(n);
1006
+ if (o.display !== "contents" && (o.position !== "static" || Se(o) || n.tagName === "BODY"))
1007
+ return n;
1008
+ }
1009
+ return null;
1010
+ })(t);
1011
+ }
1012
+ function gt(t) {
1013
+ return t.assignedSlot ? t.assignedSlot : t.parentNode instanceof ShadowRoot ? t.parentNode.host : t.parentNode;
1014
+ }
1015
+ export {
1016
+ De as a,
1017
+ Ee as b,
1018
+ Fe as c,
1019
+ Pe as d,
1020
+ ke as f,
1021
+ Le as o,
1022
+ Re as p,
1023
+ Te as s
1024
+ };