@ganpatiinfo/gids-core-web 16.0.0 → 18.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 (271) hide show
  1. package/dist/css/elements.css +4 -0
  2. package/dist/css/elements.css.map +1 -1
  3. package/dist/css/index.css +701 -4
  4. package/dist/css/index.css.map +1 -1
  5. package/dist/custom-elements.json +7 -1
  6. package/dist/gids-action-bar.js +1 -1
  7. package/dist/gids-activity-gauge.js +1 -1
  8. package/dist/gids-advanced-tooltip.js +1 -1
  9. package/dist/gids-bar-chart.js +1 -1
  10. package/dist/gids-bento-card.d.ts +11 -0
  11. package/dist/gids-bento-card.js +1 -0
  12. package/dist/gids-calendar-header-panel.js +1 -1
  13. package/dist/gids-calendar-month-list.js +1 -1
  14. package/dist/gids-calendar-year-list.js +1 -1
  15. package/dist/gids-calendar.js +1 -1
  16. package/dist/gids-carousel.d.ts +11 -0
  17. package/dist/gids-carousel.js +1 -0
  18. package/dist/gids-chart-legend-item.js +1 -1
  19. package/dist/gids-chart-legend.js +1 -1
  20. package/dist/gids-chart.js +1 -1
  21. package/dist/gids-chevron-button.js +1 -1
  22. package/dist/gids-dot.js +1 -1
  23. package/dist/gids-dropdown-field.js +1 -1
  24. package/dist/gids-dropdown-picker.js +1 -1
  25. package/dist/gids-dropdown.js +1 -1
  26. package/dist/gids-expansion-body-list-item.js +1 -1
  27. package/dist/gids-expansion-body-list.js +1 -1
  28. package/dist/gids-expansion-group.js +1 -1
  29. package/dist/gids-expansion.js +1 -1
  30. package/dist/gids-field.js +1 -1
  31. package/dist/gids-filter.js +1 -1
  32. package/dist/gids-flyout-panel.d.ts +11 -0
  33. package/dist/gids-flyout-panel.js +1 -0
  34. package/dist/gids-header-navigation-item.js +1 -1
  35. package/dist/gids-header-navigation.js +1 -1
  36. package/dist/gids-icon.js +1 -1
  37. package/dist/gids-input.js +1 -1
  38. package/dist/gids-level-gauge.js +1 -1
  39. package/dist/gids-line-chart.js +1 -1
  40. package/dist/gids-md-table.js +1 -1
  41. package/dist/gids-notification.js +1 -1
  42. package/dist/gids-overflow-container.js +1 -1
  43. package/dist/gids-overlay-provider.js +1 -1
  44. package/dist/gids-password-field.js +1 -1
  45. package/dist/gids-pie-chart.js +1 -1
  46. package/dist/gids-popover.js +1 -1
  47. package/dist/gids-profile-menu-header.js +1 -1
  48. package/dist/gids-profile-menu.js +1 -1
  49. package/dist/gids-profile.js +1 -1
  50. package/dist/gids-progress-circle.js +1 -1
  51. package/dist/gids-scrim.js +1 -1
  52. package/dist/gids-skeleton.js +1 -1
  53. package/dist/gids-snackbar.js +1 -1
  54. package/dist/gids-tab-item.js +1 -1
  55. package/dist/gids-tab.js +1 -1
  56. package/dist/gids-text-field.js +1 -1
  57. package/dist/gids-toggle-button.js +1 -1
  58. package/dist/gids-tooltip.js +1 -1
  59. package/dist/gids-transfer-list.js +1 -1
  60. package/dist/index.js +1 -1
  61. package/dist/{p-CoS0NuDU.js → p-4zKS6zkg.js} +1 -1
  62. package/dist/{p-Degg_WJz.js → p-83YZrIJw.js} +1 -1
  63. package/dist/{p-oJFgjzK5.js → p-B0hLXifA.js} +1 -1
  64. package/dist/{p-Bf3p-DY2.js → p-B4hcsDH0.js} +1 -1
  65. package/dist/{p-Dd-ec-e0.js → p-BdsUwTgh.js} +1 -1
  66. package/dist/p-BkxmRN-4.js +1 -0
  67. package/dist/p-BsC3-MVH.js +1 -0
  68. package/dist/{p-CiWZdp48.js → p-BthkC6NU.js} +1 -1
  69. package/dist/p-C-Lpfqcg.js +1 -0
  70. package/dist/{p-pVSQxFDF.js → p-C6GHG170.js} +1 -1
  71. package/dist/{p-DGXqnrKo.js → p-CBiu-Vh3.js} +1 -1
  72. package/dist/{p-Co23kQaH.js → p-CH4nrjpL.js} +1 -1
  73. package/dist/p-CIxuyUAl.js +1 -0
  74. package/dist/{p-DiTjFG30.js → p-CMW3SjbP.js} +1 -1
  75. package/dist/p-CPgZgSBN.js +1 -0
  76. package/dist/p-CTri3IsV.js +1 -0
  77. package/dist/{p-CaauwQNd.js → p-CZ_9Mt3B.js} +1 -1
  78. package/dist/{p-DAuO4g6g.js → p-Cacy0Dji.js} +1 -1
  79. package/dist/p-CcKHKwS0.js +1 -0
  80. package/dist/p-Cf3Ny79u.js +1 -0
  81. package/dist/{p-DbaNvRpS.js → p-CrqHKmjy.js} +1 -1
  82. package/dist/{p-UDG6tkD1.js → p-Cz9nwmgK.js} +1 -1
  83. package/dist/{p-Bs8TP3Rb.js → p-D0coZTd2.js} +1 -1
  84. package/dist/{p-CCpxJ8wu.js → p-DKOr5iAk.js} +1 -1
  85. package/dist/{p-Chb2OeFe.js → p-DYjV5XrH.js} +1 -1
  86. package/dist/{p-C-HyXFGR.js → p-DZ6xQXis.js} +1 -1
  87. package/dist/{p-CHGTBObD.js → p-DaB_FzcG.js} +1 -1
  88. package/dist/{p-DxX3B1f0.js → p-DgKrPmDn.js} +1 -1
  89. package/dist/p-Dg_WeHpV.js +1 -0
  90. package/dist/p-Do_VlNHg.js +1 -0
  91. package/dist/{p-DELTZ9Fh.js → p-DrDadv7P.js} +1 -1
  92. package/dist/p-Dw_kb9MC.js +1 -0
  93. package/dist/p-GcC8pCKF.js +1 -0
  94. package/dist/{p-BrYLEey4.js → p-KQxuw_F-.js} +1 -1
  95. package/dist/{p-d-t7__OQ.js → p-PcSMc4jQ.js} +1 -1
  96. package/dist/p-iQRr_fAH.js +1 -0
  97. package/dist/{p-u06XOrpj.js → p-j2_DKwBz.js} +1 -1
  98. package/dist/p-jGho9nbS.js +1 -0
  99. package/dist/{p-Bzjuvoza.js → p-xbqOQZl9.js} +1 -1
  100. package/dist/types/components/html/_GidsCarouselControl/GidsCarouselControl.d.ts +6 -0
  101. package/dist/types/components/html/_GidsCarouselPagination/GidsCarouselPagination.d.ts +5 -0
  102. package/dist/types/components/html/_GidsCarouselPaginationItem/GidsCarouselPaginationItem.d.ts +5 -0
  103. package/dist/types/components/shared/GidsFloatingElementManager.d.ts +6 -1
  104. package/dist/types/components/shared/GidsFloatingElementTypes.d.ts +2 -1
  105. package/dist/types/components/webComponents/GidsBentoCard/GidsBentoCard.d.ts +34 -0
  106. package/dist/types/components/webComponents/GidsCarousel/GidsCarousel.d.ts +49 -0
  107. package/dist/types/components/webComponents/GidsFlyoutPanel/GidsFlyoutPanel.d.ts +24 -0
  108. package/dist/types/components/webComponents/GidsHeaderNavigationItem/GidsHeaderNavigationItem.d.ts +2 -0
  109. package/dist/types/components/webComponents/GidsProfile/GidsProfile.d.ts +4 -0
  110. package/dist/types/components/webComponents/GidsProfileMenu/GidsProfileMenu.d.ts +4 -0
  111. package/dist/types/components.d.ts +168 -2
  112. package/dist-bundled/es/gids-action-bar.js +9 -9
  113. package/dist-bundled/es/gids-activity-gauge.js +1 -1
  114. package/dist-bundled/es/gids-advanced-tooltip.js +2 -2
  115. package/dist-bundled/es/gids-bar-chart.js +1 -1
  116. package/dist-bundled/es/gids-bento-card.js +84 -0
  117. package/dist-bundled/es/gids-calendar-header-panel.js +3 -3
  118. package/dist-bundled/es/gids-calendar-month-list.js +1 -1
  119. package/dist-bundled/es/gids-calendar-year-list.js +2 -2
  120. package/dist-bundled/es/gids-calendar.js +24 -24
  121. package/dist-bundled/es/gids-carousel.js +179 -0
  122. package/dist-bundled/es/gids-chart-legend-item.js +3 -3
  123. package/dist-bundled/es/gids-chart-legend.js +4 -4
  124. package/dist-bundled/es/gids-chart.js +11 -11
  125. package/dist-bundled/es/gids-chevron-button.js +3 -3
  126. package/dist-bundled/es/gids-dot.js +3 -3
  127. package/dist-bundled/es/gids-dropdown-field.js +9 -9
  128. package/dist-bundled/es/gids-dropdown-picker.js +4 -4
  129. package/dist-bundled/es/gids-dropdown.js +4 -4
  130. package/dist-bundled/es/gids-expansion-body-list-item.js +3 -3
  131. package/dist-bundled/es/gids-expansion-body-list.js +3 -3
  132. package/dist-bundled/es/gids-expansion-group.js +4 -4
  133. package/dist-bundled/es/gids-expansion.js +3 -3
  134. package/dist-bundled/es/gids-field.js +4 -4
  135. package/dist-bundled/es/gids-filter.js +2 -2
  136. package/dist-bundled/es/gids-flyout-panel.js +110 -0
  137. package/dist-bundled/es/gids-header-navigation-item.js +1 -1
  138. package/dist-bundled/es/gids-header-navigation.js +5 -5
  139. package/dist-bundled/es/gids-icon.js +4 -4
  140. package/dist-bundled/es/gids-input.js +2 -2
  141. package/dist-bundled/es/gids-level-gauge.js +2 -2
  142. package/dist-bundled/es/gids-line-chart.js +4 -4
  143. package/dist-bundled/es/gids-md-table.js +5 -5
  144. package/dist-bundled/es/gids-notification.js +1 -1
  145. package/dist-bundled/es/gids-overflow-container.js +5 -5
  146. package/dist-bundled/es/gids-overlay-provider.js +4 -4
  147. package/dist-bundled/es/gids-password-field.js +15 -15
  148. package/dist-bundled/es/gids-pie-chart.js +4 -4
  149. package/dist-bundled/es/gids-popover.js +4 -4
  150. package/dist-bundled/es/gids-profile-menu-header.js +1 -1
  151. package/dist-bundled/es/gids-profile-menu.js +3 -3
  152. package/dist-bundled/es/gids-profile.js +40 -34
  153. package/dist-bundled/es/gids-progress-circle.js +1 -1
  154. package/dist-bundled/es/gids-scrim.js +2 -2
  155. package/dist-bundled/es/gids-skeleton.js +9 -9
  156. package/dist-bundled/es/gids-snackbar.js +1 -1
  157. package/dist-bundled/es/gids-tab-item.js +7 -7
  158. package/dist-bundled/es/gids-tab.js +2 -2
  159. package/dist-bundled/es/gids-text-field.js +16 -16
  160. package/dist-bundled/es/gids-toggle-button.js +1 -1
  161. package/dist-bundled/es/gids-tooltip.js +7 -7
  162. package/dist-bundled/es/gids-transfer-list.js +7 -7
  163. package/dist-bundled/es/index.js +2 -2
  164. package/dist-bundled/es/{p-CoS0NuDU-ByDvQAzA.js → p-4zKS6zkg-CujzUjb6.js} +3 -3
  165. package/dist-bundled/es/{p-Degg_WJz-ORZcjc8G.js → p-83YZrIJw-Cu-e6WD3.js} +3 -3
  166. package/dist-bundled/es/{p-oJFgjzK5-CzagP1qD.js → p-B0hLXifA-CoImnX3T.js} +4 -4
  167. package/dist-bundled/es/p-BKcvOO8o-DcnO39au.js +1065 -0
  168. package/dist-bundled/es/{p-Dd-ec-e0-BqX_F6y0.js → p-BdsUwTgh-Cc7AQBsx.js} +9 -9
  169. package/dist-bundled/es/{p-Dg2yoUxw-DliMstZy.js → p-BkxmRN-4-DSiXCW8b.js} +5 -5
  170. package/dist-bundled/es/{p-C2POfZhu-DzG_JxV6.js → p-BsC3-MVH-j4fPhip5.js} +1 -1
  171. package/dist-bundled/es/{p-CiWZdp48-1vf7Xh2R.js → p-BthkC6NU-F03MhDw7.js} +7 -7
  172. package/dist-bundled/es/{p-DMNS1d8v-BX8e_AsY.js → p-C-Lpfqcg-DIuBhXzX.js} +5 -5
  173. package/dist-bundled/es/{p-pVSQxFDF-CsWxUaZX.js → p-C6GHG170-Di8lwQkY.js} +4 -4
  174. package/dist-bundled/es/{p-DGXqnrKo-C7feKS94.js → p-CBiu-Vh3-r-McGzCb.js} +9 -9
  175. package/dist-bundled/es/{p-Co23kQaH-QJyKkzgc.js → p-CH4nrjpL-CrEJXTn0.js} +9 -9
  176. package/dist-bundled/es/{p-DObJEzlz-tt9h5cuI.js → p-CIxuyUAl-B2DxRM64.js} +4 -4
  177. package/dist-bundled/es/{p-DiTjFG30-CQkxfu2K.js → p-CMW3SjbP-ZYYIF_i6.js} +4 -4
  178. package/dist-bundled/es/p-CPgZgSBN-DsTNcUR7.js +7 -0
  179. package/dist-bundled/es/p-CTri3IsV-B1u0rrXF.js +122 -0
  180. package/dist-bundled/es/{p-CaauwQNd-D6_PbcRr.js → p-CZ_9Mt3B-BIYkPAXM.js} +1 -1
  181. package/dist-bundled/es/{p-DAuO4g6g-C8miaL-N.js → p-Cacy0Dji-D-D254kT.js} +7 -7
  182. package/dist-bundled/es/{p-CXFvqDBs-offadaUn.js → p-CcKHKwS0-Bw63tTOA.js} +1 -1
  183. package/dist-bundled/es/p-Cf3Ny79u-VGT_IyGI.js +82 -0
  184. package/dist-bundled/es/{p-DbaNvRpS-r7kCW1TY.js → p-CrqHKmjy-DwSsCofb.js} +10 -10
  185. package/dist-bundled/es/{p-UDG6tkD1-JTLPxkEn.js → p-Cz9nwmgK-BO8HUAvD.js} +10 -10
  186. package/dist-bundled/es/{p-Bs8TP3Rb-BdcS7d5q.js → p-D0coZTd2-KhJZ57gK.js} +3 -3
  187. package/dist-bundled/es/{p-CCpxJ8wu-CMYQqNoP.js → p-DKOr5iAk-DA3Kc4Cn.js} +9 -9
  188. package/dist-bundled/es/{p-Chb2OeFe-DDv_WPhe.js → p-DYjV5XrH-CI9LfBFx.js} +3 -3
  189. package/dist-bundled/es/{p-C-HyXFGR-UnFcWLOQ.js → p-DZ6xQXis-XT86MMis.js} +7 -7
  190. package/dist-bundled/es/{p-CHGTBObD-D_K9_Tmh.js → p-DaB_FzcG-DnRTURxL.js} +1 -1
  191. package/dist-bundled/es/{p-DxX3B1f0-D1URliVh.js → p-DgKrPmDn-C2CSKicX.js} +6 -6
  192. package/dist-bundled/es/{p-UVmSPzTd-CR1higgJ.js → p-Dg_WeHpV-DehzGL6g.js} +9 -9
  193. package/dist-bundled/es/{p-UxDcM-C5-BJO4X0jM.js → p-Do_VlNHg-_g7lcvwR.js} +2 -2
  194. package/dist-bundled/es/{p-DELTZ9Fh-Byr0nLtY.js → p-DrDadv7P-D4rbSYTr.js} +4 -4
  195. package/dist-bundled/es/{p-bhEHIxPv-ujyxL30O.js → p-Dw_kb9MC-BTd0lrGA.js} +36 -21
  196. package/dist-bundled/es/{p-CZBiavxU-CIstIm2b.js → p-GcC8pCKF-CZJFTFeN.js} +10 -10
  197. package/dist-bundled/es/{p-BrYLEey4-DuajY4uD.js → p-KQxuw_F--BTSoDfF9.js} +9 -9
  198. package/dist-bundled/es/{p-d-t7__OQ-CKPQZt2t.js → p-PcSMc4jQ-CzYLaIZr.js} +14 -14
  199. package/dist-bundled/es/{p-D4Pimu_8-ARSuGBs4.js → p-iQRr_fAH-ClfWEu03.js} +13 -13
  200. package/dist-bundled/es/{p-u06XOrpj-C1tNznDd.js → p-j2_DKwBz-CqyuxxnN.js} +8 -8
  201. package/dist-bundled/es/{p-Bw2pVReY-K9pdG-hw.js → p-jGho9nbS-BDiBvsn2.js} +10 -10
  202. package/dist-bundled/es/{p-Bzjuvoza-CzNs69NV.js → p-xbqOQZl9-BK9vjfj7.js} +15 -15
  203. package/dist-bundled/umd/gids-action-bar.umd.js +3 -3
  204. package/dist-bundled/umd/gids-activity-gauge.umd.js +2 -2
  205. package/dist-bundled/umd/gids-advanced-tooltip.umd.js +2 -2
  206. package/dist-bundled/umd/gids-bar-chart.umd.js +1 -1
  207. package/dist-bundled/umd/gids-bento-card.umd.js +5 -0
  208. package/dist-bundled/umd/gids-calendar-header-panel.umd.js +1 -1
  209. package/dist-bundled/umd/gids-calendar-month-list.umd.js +1 -1
  210. package/dist-bundled/umd/gids-calendar-year-list.umd.js +1 -1
  211. package/dist-bundled/umd/gids-calendar.umd.js +1 -1
  212. package/dist-bundled/umd/gids-carousel.umd.js +5 -0
  213. package/dist-bundled/umd/gids-chart-legend-item.umd.js +1 -1
  214. package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
  215. package/dist-bundled/umd/gids-chart.umd.js +1 -1
  216. package/dist-bundled/umd/gids-chevron-button.umd.js +1 -1
  217. package/dist-bundled/umd/gids-dot.umd.js +1 -1
  218. package/dist-bundled/umd/gids-dropdown-field.umd.js +1 -1
  219. package/dist-bundled/umd/gids-dropdown-picker.umd.js +2 -2
  220. package/dist-bundled/umd/gids-dropdown.umd.js +1 -1
  221. package/dist-bundled/umd/gids-expansion-body-list-item.umd.js +1 -1
  222. package/dist-bundled/umd/gids-expansion-body-list.umd.js +1 -1
  223. package/dist-bundled/umd/gids-expansion-group.umd.js +1 -1
  224. package/dist-bundled/umd/gids-expansion.umd.js +1 -1
  225. package/dist-bundled/umd/gids-field.umd.js +2 -2
  226. package/dist-bundled/umd/gids-filter.umd.js +3 -3
  227. package/dist-bundled/umd/gids-flyout-panel.umd.js +5 -0
  228. package/dist-bundled/umd/gids-header-navigation-item.umd.js +2 -2
  229. package/dist-bundled/umd/gids-header-navigation.umd.js +2 -2
  230. package/dist-bundled/umd/gids-icon.umd.js +1 -1
  231. package/dist-bundled/umd/gids-input.umd.js +2 -2
  232. package/dist-bundled/umd/gids-line-chart.umd.js +1 -1
  233. package/dist-bundled/umd/gids-md-table.umd.js +1 -1
  234. package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
  235. package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
  236. package/dist-bundled/umd/gids-password-field.umd.js +1 -1
  237. package/dist-bundled/umd/gids-pie-chart.umd.js +1 -1
  238. package/dist-bundled/umd/gids-popover.umd.js +2 -2
  239. package/dist-bundled/umd/gids-profile-menu-header.umd.js +1 -1
  240. package/dist-bundled/umd/gids-profile-menu.umd.js +2 -2
  241. package/dist-bundled/umd/gids-profile.umd.js +2 -2
  242. package/dist-bundled/umd/gids-scrim.umd.js +1 -1
  243. package/dist-bundled/umd/gids-skeleton.umd.js +1 -1
  244. package/dist-bundled/umd/gids-tab-item.umd.js +1 -1
  245. package/dist-bundled/umd/gids-tab.umd.js +1 -1
  246. package/dist-bundled/umd/gids-text-field.umd.js +2 -2
  247. package/dist-bundled/umd/gids-toggle-button.umd.js +3 -3
  248. package/dist-bundled/umd/gids-tooltip.umd.js +2 -2
  249. package/dist-bundled/umd/gids-transfer-list.umd.js +1 -1
  250. package/dist-bundled/umd/index.umd.js +2 -2
  251. package/dist-bundled/umd-complete/gids-core-web.umd.js +4 -4
  252. package/package.json +29 -5
  253. package/dist/p-B8kX8Vqv.js +0 -1
  254. package/dist/p-BBszCFSA.js +0 -1
  255. package/dist/p-Bw2pVReY.js +0 -1
  256. package/dist/p-C2POfZhu.js +0 -1
  257. package/dist/p-CXFvqDBs.js +0 -1
  258. package/dist/p-CZBiavxU.js +0 -1
  259. package/dist/p-CcpdJCql.js +0 -1
  260. package/dist/p-D4Pimu_8.js +0 -1
  261. package/dist/p-DMNS1d8v.js +0 -1
  262. package/dist/p-DObJEzlz.js +0 -1
  263. package/dist/p-Dg2yoUxw.js +0 -1
  264. package/dist/p-UVmSPzTd.js +0 -1
  265. package/dist/p-UxDcM-C5.js +0 -1
  266. package/dist/p-bhEHIxPv.js +0 -1
  267. package/dist-bundled/es/p-B8kX8Vqv-trBz4jdS.js +0 -7
  268. package/dist-bundled/es/p-BBszCFSA-BN0-eWJX.js +0 -115
  269. package/dist-bundled/es/p-BKcvOO8o-L5KtCP_k.js +0 -1024
  270. package/dist-bundled/es/p-CcpdJCql-CkEW2RAp.js +0 -64
  271. /package/dist-bundled/es/{p-Bf3p-DY2-CPqEc-vc.js → p-B4hcsDH0-CPqEc-vc.js} +0 -0
@@ -1,1024 +0,0 @@
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
- };