@solvimon/solvimon-web 0.1.0-alpha.28 → 0.1.0-alpha.29

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 (189) hide show
  1. package/README.md +26 -1
  2. package/dist/{Alert.vue.es-lIiAWf2S.mjs → Alert.vue.es-CNrEaLvh.mjs} +58 -46
  3. package/dist/AuthProvider.handle-DKfNs8rr.mjs +50 -0
  4. package/dist/{Avatar.vue.es-Beg7umjO.mjs → Avatar.vue.es-r0NbcIib.mjs} +1 -1
  5. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DBGe1PvD.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-Cp4yGqaw.mjs} +8 -8
  6. package/dist/{Button.vue.es-rh6mITmN.mjs → Button.vue.es-Zw--kuaU.mjs} +4 -4
  7. package/dist/{ChargeOnDemandModal-CPjPa_uq.mjs → ChargeOnDemandModal-B8FDkS9U.mjs} +35 -34
  8. package/dist/Checkout.entry.ce-DsGl-5aR.mjs +4202 -0
  9. package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-2D8VM_7W.mjs +828 -0
  10. package/dist/{Chip.vue.es-Cn2R_0mE.mjs → Chip.vue.es-D3UDSyXC.mjs} +3 -3
  11. package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +32 -0
  12. package/dist/{ContextMenu.vue.es-DRxsa7bZ.mjs → ContextMenu.vue.es-B9mFpUQK.mjs} +87 -88
  13. package/dist/{CustomerBillingInformation.vue.es-DQfL5RMR.mjs → CustomerBillingInformation.vue.es-B8NiQaJs.mjs} +3 -3
  14. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Ct-eYaEN.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DBivC5Eb.mjs} +21 -20
  15. package/dist/CustomerShippingAddresses-Bj8Y17O8.mjs +397 -0
  16. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BzTSwo4i.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BmPKfIjT.mjs} +798 -792
  17. package/dist/{DividerText.vue.es-M0XqSz55.mjs → DividerText.vue.es-CNbgif-3.mjs} +1 -1
  18. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CVP-7ne3.mjs +55 -0
  19. package/dist/{ErrorNotification.vue.es-CKlt4hr2.mjs → ErrorNotification.vue.es-DNd65mQq.mjs} +2 -2
  20. package/dist/FormMessage.vue.es-Cjv358Ab.mjs +39 -0
  21. package/dist/{IconButton.vue.es-oe4MVBK1.mjs → IconButton.vue.es-C8lYFx5_.mjs} +2 -2
  22. package/dist/{IconTitle.vue.es-BO6KBS4v.mjs → IconTitle.vue.es-O2kcqgKm.mjs} +3 -3
  23. package/dist/{Input.vue.es-DAlPmtE_.mjs → Input.vue.es-D8Oj8MWv.mjs} +23 -22
  24. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CCTl5GWa.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-rhqYVdfV.mjs} +2 -2
  25. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DMGqj_Uk.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-06R-M8Q3.mjs} +4 -4
  26. package/dist/InvoicePreview.vue.es-4Q2hzaFS.mjs +286 -0
  27. package/dist/InvoicePricingClauseChip.vue.es-DKU0xu0t.mjs +124 -0
  28. package/dist/Label.vue.es-DtpLM1KH.mjs +113 -0
  29. package/dist/{Modal.vue.es-CTNACAst.mjs → Modal.vue.es-C8ZcO117.mjs} +109 -103
  30. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-3DQLCR3U.mjs +441 -0
  31. package/dist/PaymentCompletedCard.vue_vue_type_script_setup_true_lang-DfTb9psX.mjs +48 -0
  32. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DLfAfB_m.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BoGTtg5G.mjs} +46 -88
  33. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CKm-XYuF.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BIAm22Kq.mjs} +3 -3
  34. package/dist/{PaymentHistoryBlock-BmA8jbMb.mjs → PaymentHistoryBlock-BvY2nXGV.mjs} +1 -1
  35. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BDMse2lO.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-bQKhUonq.mjs} +4 -4
  36. package/dist/{PaymentIntegrationForm-D1Xw-xIt.mjs → PaymentIntegrationForm-CcfQSzKM.mjs} +1 -1
  37. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCxw0PCv.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvzcLJVq.mjs} +68 -69
  38. package/dist/{PaymentIntegrationFormAdyen-CfT5aD4L.mjs → PaymentIntegrationFormAdyen-DqgDfO6K.mjs} +126 -117
  39. package/dist/{PaymentIntegrationFormStripe-DKXJ-mjd.mjs → PaymentIntegrationFormStripe-BYdAkvLt.mjs} +193 -179
  40. package/dist/{PaymentMethod.vue.es-Cauxx4Xr.mjs → PaymentMethod.vue.es-b0p3a0L-.mjs} +7 -7
  41. package/dist/{PaymentMethodForm-CypZOYUZ.mjs → PaymentMethodForm-BsTrTwCg.mjs} +1 -1
  42. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-De8FgdYD.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-sUOmLORl.mjs} +7 -7
  43. package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Dw28tfpD.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DsnAhR79.mjs} +36 -35
  44. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-OtjVO7lR.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CSW4LfmH.mjs} +7 -7
  45. package/dist/{PlanCustomizationEditor-Xtww2r9K.mjs → PlanCustomizationEditor-D29N4HUM.mjs} +9 -9
  46. package/dist/PortalLinkUnverified-B_EE2wTJ.mjs +52 -0
  47. package/dist/{PortalNotAvailable-B_59GUwN.mjs → PortalNotAvailable-DPE9y37H.mjs} +2 -2
  48. package/dist/{PricingGroupRangeInput.vue.es-C9LJW3b8.mjs → PricingGroupRangeInput.vue.es-tIMXIhpZ.mjs} +14 -13
  49. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DdWxoB8q.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DqxWxSQe.mjs} +32 -32
  50. package/dist/RadioGroupExtended.vue.es-3nDXqIGi.mjs +176 -0
  51. package/dist/{Section.vue.es-iS8hVGWA.mjs → Section.vue.es-CvX9tg2f.mjs} +1 -1
  52. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cl7I1Apo.mjs +60 -0
  53. package/dist/ShippingAddressesModal-C4p1IXXk.mjs +418 -0
  54. package/dist/{StepInput.vue.es-Dpan1RQd.mjs → StepInput.vue.es-DweyzpkL.mjs} +4 -4
  55. package/dist/{SubscriptionDetails.entry.ce-DufQX3uI.mjs → SubscriptionDetails.entry.ce-D5SwM0YS.mjs} +230 -225
  56. package/dist/{SubscriptionSchedules-DAahcNoI.mjs → SubscriptionSchedules-BZqlpAtk.mjs} +1 -1
  57. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BH7DdOWK.mjs +5185 -0
  58. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-Wmjqy7RZ.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-DoJxiqVB.mjs} +3 -3
  59. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BeRLuEyR.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BbjdBHSQ.mjs} +23 -22
  60. package/dist/TooltipParagraph.vue.es-Dw0ndjle.mjs +132 -0
  61. package/dist/TranslationOverride.vue_vue_type_script_setup_true_lang-BhjZVMSx.mjs +31 -0
  62. package/dist/{TrialChip.vue.es-B-XBSHWE.mjs → TrialChip.vue.es-DOopmaXA.mjs} +2 -2
  63. package/dist/{api.es-QaC926Xu.mjs → api.es-qgvzNMU-.mjs} +2 -2
  64. package/dist/{cn.es-2bVdkiFV.mjs → cn.es-B8acFrov.mjs} +380 -476
  65. package/dist/components/BillingInformation/BillingInformation.mjs +9 -7
  66. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +57 -54
  67. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +20 -18
  68. package/dist/components/Invoice/Invoice.mjs +2660 -193
  69. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +6 -4
  70. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +18 -17
  71. package/dist/components/InvoicesList/InvoicesList.mjs +13 -11
  72. package/dist/components/PaymentHistory/PaymentHistory.mjs +8 -6
  73. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +19 -17
  74. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +19 -17
  75. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +20 -18
  76. package/dist/components/WalletBalances/WalletBalances.mjs +17 -15
  77. package/dist/customElements-BTj4ii4f.mjs +5072 -0
  78. package/dist/{customer-CqddTiOr.mjs → customer-BIjC0CWJ.mjs} +1 -1
  79. package/dist/customer.es-DQKl6wFt.mjs +24 -0
  80. package/dist/{de-DE-BW8dMvhW.mjs → de-DE-DBbERiFr.mjs} +38 -0
  81. package/dist/{de-DE-BNMj3boy.mjs → de-DE-UJ6X6jXu.mjs} +1 -1
  82. package/dist/floating-ui.vue.es-BvAf8-si.mjs +1003 -0
  83. package/dist/{formControl-CsITfsBk.mjs → formControl-BZQLHnOO.mjs} +5 -5
  84. package/dist/fr-FR-Cvvbkwlj.mjs +307 -0
  85. package/dist/fr-FR-IWJE-urI.mjs +431 -0
  86. package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +4 -0
  87. package/dist/{index.es-CXkP_k3u.mjs → index.es-C7J3WGGo.mjs} +4 -4
  88. package/dist/index.es-CpmQmvOg.mjs +633 -0
  89. package/dist/index.mjs +2 -2
  90. package/dist/{invoices-Cf1qDAv4.mjs → invoices-e1sKLgxg.mjs} +3 -3
  91. package/dist/{it-IT-Byg06KWc.mjs → it-IT-B7ui2oxO.mjs} +38 -0
  92. package/dist/{it-IT-DRvuxM1F.mjs → it-IT-DnJP5URH.mjs} +1 -1
  93. package/dist/{nl-NL-x3zQqzZ7.mjs → nl-NL-Bafh2xoT.mjs} +38 -0
  94. package/dist/{nl-NL-DLUwWbMG.mjs → nl-NL-q9xfTZF0.mjs} +1 -1
  95. package/dist/{paymentMethods-BUuOmDq9.mjs → paymentMethods-B_82JGk_.mjs} +2 -2
  96. package/dist/paymentMethods-Nfv9HdkS.mjs +61 -0
  97. package/dist/{paymentOutcome-D17VD4MV.mjs → paymentOutcome-BXEU5-84.mjs} +5 -5
  98. package/dist/payments-BnxbzQUC.mjs +68 -0
  99. package/dist/pricing-BOhvWWMj.mjs +29 -0
  100. package/dist/{pricingPlanScheduleOverrides-COr9F8DO.mjs → pricingPlanScheduleOverrides-Dxv5FOBd.mjs} +2 -2
  101. package/dist/{pricingPlanSchedules-BK_o9p6h.mjs → pricingPlanSchedules-Dv7ZCgNp.mjs} +1 -1
  102. package/dist/screens/Checkout/Checkout.mjs +2 -2
  103. package/dist/screens/CustomerOverview/CustomerOverview.mjs +128 -83
  104. package/dist/screens/PayInvoice/PayInvoice.mjs +572 -218
  105. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +21 -19
  106. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  107. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +261 -266
  108. package/dist/{sorting.es-qtEN8J8T.mjs → sorting.es-CVyKw23D.mjs} +1 -1
  109. package/dist/subscriptions-BWXZGK0E.mjs +66 -0
  110. package/dist/taxId.es-DkD3Ltr8.mjs +243 -0
  111. package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -0
  112. package/dist/types/components/customer/ShippingAddressForm/ShippingAddressForm.types.d.ts +9 -0
  113. package/dist/types/components/customer/ShippingAddresses/ShippingAddressCard.types.d.ts +11 -0
  114. package/dist/types/components/customer/ShippingAddresses/ShippingAddressList.types.d.ts +9 -0
  115. package/dist/types/components/customer/ShippingAddresses/ShippingAddressesModal.types.d.ts +26 -0
  116. package/dist/types/components/invoices/InvoiceOrderSummary/InvoiceOrderSummary.types.d.ts +5 -0
  117. package/dist/types/components/payments/PayButton/PayButton.types.d.ts +2 -0
  118. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +11 -0
  119. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +4 -1
  120. package/dist/types/components/providers/AuthProvider/AuthProvider.handle.d.ts +17 -0
  121. package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +23 -1
  122. package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +12 -0
  123. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +3 -1
  124. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
  125. package/dist/types/components/providers/Provider/Provider.types.d.ts +1 -1
  126. package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -1
  127. package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +16 -0
  128. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +2 -0
  129. package/dist/types/public/components/CustomerShippingAddresses/CustomerShippingAddresses.types.d.ts +12 -0
  130. package/dist/types/public/core/types.d.ts +5 -0
  131. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +3 -1
  132. package/dist/types/translations/supported.d.ts +1 -1
  133. package/dist/types/types/portalAuthentication.d.ts +2 -0
  134. package/dist/types/types/portalToken.d.ts +9 -0
  135. package/dist/types/types/shippingAddress.d.ts +9 -0
  136. package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +2 -0
  137. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +1 -1
  138. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +27 -6
  139. package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +3 -0
  140. package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +6 -0
  141. package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +9 -1
  142. package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +16 -1
  143. package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +10 -0
  144. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyVariable.d.ts +16 -0
  145. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +6 -0
  146. package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -1
  147. package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +12 -3
  148. package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +71 -0
  149. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +14 -0
  150. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +1 -0
  151. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +35 -0
  152. package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +16 -0
  153. package/dist/types/vendor/@solvimon/solvimon-types/types/ShippingAddress.d.ts +54 -0
  154. package/dist/{useActionDispatchProvider-DC_fUykI.mjs → useActionDispatchProvider-3W2vEyIg.mjs} +1 -1
  155. package/dist/{useCustomer-C3kTh7wn.mjs → useCustomer-cObBvDOu.mjs} +2 -2
  156. package/dist/useCustomerFormLabels-DJWf2O17.mjs +1173 -0
  157. package/dist/{useIncrementalLoading-C_sHmW7d.mjs → useIncrementalLoading-CATuO36d.mjs} +2 -2
  158. package/dist/{useInvoiceData-BIh8-h8b.mjs → useInvoiceData-DD44HTl7.mjs} +2 -2
  159. package/dist/{useInvoicesList-Y6p0Pqpy.mjs → useInvoicesList-CpB-41MQ.mjs} +10 -10
  160. package/dist/useLazyFloating.es-CycqRyeb.mjs +68 -0
  161. package/dist/useLoadInitialData-qzdnBoui.mjs +15 -0
  162. package/dist/{usePaymentFormHold-FfNc578l.mjs → usePaymentFormHold-ByUZi3A-.mjs} +28 -36
  163. package/dist/{usePaymentMethodAvailability-CnYTvG15.mjs → usePaymentMethodAvailability-DUdrs0Ji.mjs} +4 -4
  164. package/dist/usePaymentMethods-ByaKF7mf.mjs +21 -0
  165. package/dist/{usePayments-CykCZPG2.mjs → usePayments-BXABv-lF.mjs} +9 -9
  166. package/dist/{usePortal-CxzKGhbK.mjs → usePortal-CwR_FxTb.mjs} +1 -1
  167. package/dist/{useService-B0OQJmif.mjs → useService-BZcbUZHI.mjs} +3 -3
  168. package/dist/{useTimePeriod.es-JkXdHNWr.mjs → useTimePeriod.es-BpdiVwg8.mjs} +1 -1
  169. package/package.json +7 -7
  170. package/dist/Checkbox.vue.es-DsyiJ-VY.mjs +0 -50
  171. package/dist/Checkout.entry.ce-BZ1rYQvt.mjs +0 -5279
  172. package/dist/ContentWithAsideLayout-BCM8tmZN.mjs +0 -38
  173. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-Bk4zwyWa.mjs +0 -362
  174. package/dist/FormMessage.vue.es-jG3fQZms.mjs +0 -29
  175. package/dist/InvoiceSummary.vue.es-DbNoGfYN.mjs +0 -2596
  176. package/dist/RadioGroupExtended.vue.es-UtKsdmiv.mjs +0 -163
  177. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Djc1SkEU.mjs +0 -688
  178. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DNr1CqVj.mjs +0 -5221
  179. package/dist/TooltipParagraph.vue.es-BjCn2BF6.mjs +0 -129
  180. package/dist/customElements-Di3zwlEU.mjs +0 -6447
  181. package/dist/customer.es-B5ppZf0j.mjs +0 -20
  182. package/dist/floating-ui.vue.es-CYt0fSY7.mjs +0 -1108
  183. package/dist/icon-sprite.svg.es-BZIz7-0d.mjs +0 -4
  184. package/dist/payments-Ci8bF4C6.mjs +0 -45
  185. package/dist/subscriptions-CwogJODR.mjs +0 -54
  186. package/dist/useCustomerFormLabels-CK7K50nB.mjs +0 -1369
  187. package/dist/useLoadInitialData-4k_Cyqef.mjs +0 -15
  188. package/dist/usePaymentMethodOptions-1QBcmgUf.mjs +0 -40
  189. package/dist/usePaymentMethods-gvr-rmwE.mjs +0 -15
@@ -0,0 +1,1003 @@
1
+ import "vue";
2
+ const I = Math.min, R = Math.max, et = Math.round, tt = Math.floor, E = (t) => ({
3
+ x: t,
4
+ y: t
5
+ }), Wt = {
6
+ left: "right",
7
+ right: "left",
8
+ bottom: "top",
9
+ top: "bottom"
10
+ }, Bt = {
11
+ start: "end",
12
+ end: "start"
13
+ };
14
+ function gt(t, e, n) {
15
+ return R(t, I(e, n));
16
+ }
17
+ function J(t, e) {
18
+ return typeof t == "function" ? t(e) : t;
19
+ }
20
+ function W(t) {
21
+ return t.split("-")[0];
22
+ }
23
+ function Q(t) {
24
+ return t.split("-")[1];
25
+ }
26
+ function Rt(t) {
27
+ return t === "x" ? "y" : "x";
28
+ }
29
+ function Ot(t) {
30
+ return t === "y" ? "height" : "width";
31
+ }
32
+ const Nt = /* @__PURE__ */ new Set(["top", "bottom"]);
33
+ function M(t) {
34
+ return Nt.has(W(t)) ? "y" : "x";
35
+ }
36
+ function Ct(t) {
37
+ return Rt(M(t));
38
+ }
39
+ function Vt(t, e, n) {
40
+ n === void 0 && (n = !1);
41
+ const o = Q(t), i = Ct(t), r = Ot(i);
42
+ let s = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
43
+ return e.reference[r] > e.floating[r] && (s = nt(s)), [s, nt(s)];
44
+ }
45
+ function Ht(t) {
46
+ const e = nt(t);
47
+ return [at(t), e, at(e)];
48
+ }
49
+ function at(t) {
50
+ return t.replace(/start|end/g, (e) => Bt[e]);
51
+ }
52
+ const pt = ["left", "right"], wt = ["right", "left"], _t = ["top", "bottom"], $t = ["bottom", "top"];
53
+ function zt(t, e, n) {
54
+ switch (t) {
55
+ case "top":
56
+ case "bottom":
57
+ return n ? e ? wt : pt : e ? pt : wt;
58
+ case "left":
59
+ case "right":
60
+ return e ? _t : $t;
61
+ default:
62
+ return [];
63
+ }
64
+ }
65
+ function It(t, e, n, o) {
66
+ const i = Q(t);
67
+ let r = zt(W(t), n === "start", o);
68
+ return i && (r = r.map((s) => s + "-" + i), e && (r = r.concat(r.map(at)))), r;
69
+ }
70
+ function nt(t) {
71
+ return t.replace(/left|right|bottom|top/g, (e) => Wt[e]);
72
+ }
73
+ function Xt(t) {
74
+ return {
75
+ top: 0,
76
+ right: 0,
77
+ bottom: 0,
78
+ left: 0,
79
+ ...t
80
+ };
81
+ }
82
+ function jt(t) {
83
+ return typeof t != "number" ? Xt(t) : {
84
+ top: t,
85
+ right: t,
86
+ bottom: t,
87
+ left: t
88
+ };
89
+ }
90
+ function ot(t) {
91
+ const {
92
+ x: e,
93
+ y: n,
94
+ width: o,
95
+ height: i
96
+ } = t;
97
+ return {
98
+ width: o,
99
+ height: i,
100
+ top: n,
101
+ left: e,
102
+ right: e + o,
103
+ bottom: n + i,
104
+ x: e,
105
+ y: n
106
+ };
107
+ }
108
+ function xt(t, e, n) {
109
+ let {
110
+ reference: o,
111
+ floating: i
112
+ } = t;
113
+ const r = M(e), s = Ct(e), c = Ot(s), l = W(e), f = r === "y", a = o.x + o.width / 2 - i.width / 2, u = o.y + o.height / 2 - i.height / 2, m = o[c] / 2 - i[c] / 2;
114
+ let d;
115
+ switch (l) {
116
+ case "top":
117
+ d = {
118
+ x: a,
119
+ y: o.y - i.height
120
+ };
121
+ break;
122
+ case "bottom":
123
+ d = {
124
+ x: a,
125
+ y: o.y + o.height
126
+ };
127
+ break;
128
+ case "right":
129
+ d = {
130
+ x: o.x + o.width,
131
+ y: u
132
+ };
133
+ break;
134
+ case "left":
135
+ d = {
136
+ x: o.x - i.width,
137
+ y: u
138
+ };
139
+ break;
140
+ default:
141
+ d = {
142
+ x: o.x,
143
+ y: o.y
144
+ };
145
+ }
146
+ switch (Q(e)) {
147
+ case "start":
148
+ d[s] -= m * (n && f ? -1 : 1);
149
+ break;
150
+ case "end":
151
+ d[s] += m * (n && f ? -1 : 1);
152
+ break;
153
+ }
154
+ return d;
155
+ }
156
+ async function Yt(t, e) {
157
+ var n;
158
+ e === void 0 && (e = {});
159
+ const {
160
+ x: o,
161
+ y: i,
162
+ platform: r,
163
+ rects: s,
164
+ elements: c,
165
+ strategy: l
166
+ } = t, {
167
+ boundary: f = "clippingAncestors",
168
+ rootBoundary: a = "viewport",
169
+ elementContext: u = "floating",
170
+ altBoundary: m = !1,
171
+ padding: d = 0
172
+ } = J(e, t), h = jt(d), w = c[m ? u === "floating" ? "reference" : "floating" : u], g = ot(await r.getClippingRect({
173
+ 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)),
174
+ boundary: f,
175
+ rootBoundary: a,
176
+ strategy: l
177
+ })), x = u === "floating" ? {
178
+ x: o,
179
+ y: i,
180
+ width: s.floating.width,
181
+ height: s.floating.height
182
+ } : s.reference, y = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(c.floating)), v = await (r.isElement == null ? void 0 : r.isElement(y)) ? await (r.getScale == null ? void 0 : r.getScale(y)) || {
183
+ x: 1,
184
+ y: 1
185
+ } : {
186
+ x: 1,
187
+ y: 1
188
+ }, A = ot(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
189
+ elements: c,
190
+ rect: x,
191
+ offsetParent: y,
192
+ strategy: l
193
+ }) : x);
194
+ return {
195
+ top: (g.top - A.top + h.top) / v.y,
196
+ bottom: (A.bottom - g.bottom + h.bottom) / v.y,
197
+ left: (g.left - A.left + h.left) / v.x,
198
+ right: (A.right - g.right + h.right) / v.x
199
+ };
200
+ }
201
+ const qt = async (t, e, n) => {
202
+ const {
203
+ placement: o = "bottom",
204
+ strategy: i = "absolute",
205
+ middleware: r = [],
206
+ platform: s
207
+ } = n, c = r.filter(Boolean), l = await (s.isRTL == null ? void 0 : s.isRTL(e));
208
+ let f = await s.getElementRects({
209
+ reference: t,
210
+ floating: e,
211
+ strategy: i
212
+ }), {
213
+ x: a,
214
+ y: u
215
+ } = xt(f, o, l), m = o, d = {}, h = 0;
216
+ for (let w = 0; w < c.length; w++) {
217
+ var p;
218
+ const {
219
+ name: g,
220
+ fn: x
221
+ } = c[w], {
222
+ x: y,
223
+ y: v,
224
+ data: A,
225
+ reset: b
226
+ } = await x({
227
+ x: a,
228
+ y: u,
229
+ initialPlacement: o,
230
+ placement: m,
231
+ strategy: i,
232
+ middlewareData: d,
233
+ rects: f,
234
+ platform: {
235
+ ...s,
236
+ detectOverflow: (p = s.detectOverflow) != null ? p : Yt
237
+ },
238
+ elements: {
239
+ reference: t,
240
+ floating: e
241
+ }
242
+ });
243
+ a = y ?? a, u = v ?? u, d = {
244
+ ...d,
245
+ [g]: {
246
+ ...d[g],
247
+ ...A
248
+ }
249
+ }, b && h <= 50 && (h++, typeof b == "object" && (b.placement && (m = b.placement), b.rects && (f = b.rects === !0 ? await s.getElementRects({
250
+ reference: t,
251
+ floating: e,
252
+ strategy: i
253
+ }) : b.rects), {
254
+ x: a,
255
+ y: u
256
+ } = xt(f, m, l)), w = -1);
257
+ }
258
+ return {
259
+ x: a,
260
+ y: u,
261
+ placement: m,
262
+ strategy: i,
263
+ middlewareData: d
264
+ };
265
+ }, Ut = function(t) {
266
+ return t === void 0 && (t = {}), {
267
+ name: "flip",
268
+ options: t,
269
+ async fn(e) {
270
+ var n, o;
271
+ const {
272
+ placement: i,
273
+ middlewareData: r,
274
+ rects: s,
275
+ initialPlacement: c,
276
+ platform: l,
277
+ elements: f
278
+ } = e, {
279
+ mainAxis: a = !0,
280
+ crossAxis: u = !0,
281
+ fallbackPlacements: m,
282
+ fallbackStrategy: d = "bestFit",
283
+ fallbackAxisSideDirection: h = "none",
284
+ flipAlignment: p = !0,
285
+ ...w
286
+ } = J(t, e);
287
+ if ((n = r.arrow) != null && n.alignmentOffset)
288
+ return {};
289
+ const g = W(i), x = M(c), y = W(c) === c, v = await (l.isRTL == null ? void 0 : l.isRTL(f.floating)), A = m || (y || !p ? [nt(c)] : Ht(c)), b = h !== "none";
290
+ !m && b && A.push(...It(c, p, h, v));
291
+ const T = [c, ...A], N = await l.detectOverflow(e, w), V = [];
292
+ let F = ((o = r.flip) == null ? void 0 : o.overflows) || [];
293
+ if (a && V.push(N[g]), u) {
294
+ const H = Vt(i, s, v);
295
+ V.push(N[H[0]], N[H[1]]);
296
+ }
297
+ if (F = [...F, {
298
+ placement: i,
299
+ overflows: V
300
+ }], !V.every((H) => H <= 0)) {
301
+ var Y, q;
302
+ const H = (((Y = r.flip) == null ? void 0 : Y.index) || 0) + 1, lt = T[H];
303
+ if (lt && (!(u === "alignment" ? x !== M(lt) : !1) || // We leave the current main axis only if every placement on that axis
304
+ // overflows the main axis.
305
+ F.every((C) => M(C.placement) === x ? C.overflows[0] > 0 : !0)))
306
+ return {
307
+ data: {
308
+ index: H,
309
+ overflows: F
310
+ },
311
+ reset: {
312
+ placement: lt
313
+ }
314
+ };
315
+ let K = (q = F.filter((_) => _.overflows[0] <= 0).sort((_, C) => _.overflows[1] - C.overflows[1])[0]) == null ? void 0 : q.placement;
316
+ if (!K)
317
+ switch (d) {
318
+ case "bestFit": {
319
+ var U;
320
+ const _ = (U = F.filter((C) => {
321
+ if (b) {
322
+ const k = M(C.placement);
323
+ return k === x || // Create a bias to the `y` side axis due to horizontal
324
+ // reading directions favoring greater width.
325
+ k === "y";
326
+ }
327
+ return !0;
328
+ }).map((C) => [C.placement, C.overflows.filter((k) => k > 0).reduce((k, kt) => k + kt, 0)]).sort((C, k) => C[1] - k[1])[0]) == null ? void 0 : U[0];
329
+ _ && (K = _);
330
+ break;
331
+ }
332
+ case "initialPlacement":
333
+ K = c;
334
+ break;
335
+ }
336
+ if (i !== K)
337
+ return {
338
+ reset: {
339
+ placement: K
340
+ }
341
+ };
342
+ }
343
+ return {};
344
+ }
345
+ };
346
+ }, Kt = /* @__PURE__ */ new Set(["left", "top"]);
347
+ async function Gt(t, e) {
348
+ const {
349
+ placement: n,
350
+ platform: o,
351
+ elements: i
352
+ } = t, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), s = W(n), c = Q(n), l = M(n) === "y", f = Kt.has(s) ? -1 : 1, a = r && l ? -1 : 1, u = J(e, t);
353
+ let {
354
+ mainAxis: m,
355
+ crossAxis: d,
356
+ alignmentAxis: h
357
+ } = typeof u == "number" ? {
358
+ mainAxis: u,
359
+ crossAxis: 0,
360
+ alignmentAxis: null
361
+ } : {
362
+ mainAxis: u.mainAxis || 0,
363
+ crossAxis: u.crossAxis || 0,
364
+ alignmentAxis: u.alignmentAxis
365
+ };
366
+ return c && typeof h == "number" && (d = c === "end" ? h * -1 : h), l ? {
367
+ x: d * a,
368
+ y: m * f
369
+ } : {
370
+ x: m * f,
371
+ y: d * a
372
+ };
373
+ }
374
+ const Jt = function(t) {
375
+ return t === void 0 && (t = 0), {
376
+ name: "offset",
377
+ options: t,
378
+ async fn(e) {
379
+ var n, o;
380
+ const {
381
+ x: i,
382
+ y: r,
383
+ placement: s,
384
+ middlewareData: c
385
+ } = e, l = await Gt(e, t);
386
+ return s === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
387
+ x: i + l.x,
388
+ y: r + l.y,
389
+ data: {
390
+ ...l,
391
+ placement: s
392
+ }
393
+ };
394
+ }
395
+ };
396
+ }, Qt = function(t) {
397
+ return t === void 0 && (t = {}), {
398
+ name: "shift",
399
+ options: t,
400
+ async fn(e) {
401
+ const {
402
+ x: n,
403
+ y: o,
404
+ placement: i,
405
+ platform: r
406
+ } = e, {
407
+ mainAxis: s = !0,
408
+ crossAxis: c = !1,
409
+ limiter: l = {
410
+ fn: (g) => {
411
+ let {
412
+ x,
413
+ y
414
+ } = g;
415
+ return {
416
+ x,
417
+ y
418
+ };
419
+ }
420
+ },
421
+ ...f
422
+ } = J(t, e), a = {
423
+ x: n,
424
+ y: o
425
+ }, u = await r.detectOverflow(e, f), m = M(W(i)), d = Rt(m);
426
+ let h = a[d], p = a[m];
427
+ if (s) {
428
+ const g = d === "y" ? "top" : "left", x = d === "y" ? "bottom" : "right", y = h + u[g], v = h - u[x];
429
+ h = gt(y, h, v);
430
+ }
431
+ if (c) {
432
+ const g = m === "y" ? "top" : "left", x = m === "y" ? "bottom" : "right", y = p + u[g], v = p - u[x];
433
+ p = gt(y, p, v);
434
+ }
435
+ const w = l.fn({
436
+ ...e,
437
+ [d]: h,
438
+ [m]: p
439
+ });
440
+ return {
441
+ ...w,
442
+ data: {
443
+ x: w.x - n,
444
+ y: w.y - o,
445
+ enabled: {
446
+ [d]: s,
447
+ [m]: c
448
+ }
449
+ }
450
+ };
451
+ }
452
+ };
453
+ }, Zt = function(t) {
454
+ return t === void 0 && (t = {}), {
455
+ name: "size",
456
+ options: t,
457
+ async fn(e) {
458
+ var n, o;
459
+ const {
460
+ placement: i,
461
+ rects: r,
462
+ platform: s,
463
+ elements: c
464
+ } = e, {
465
+ apply: l = () => {
466
+ },
467
+ ...f
468
+ } = J(t, e), a = await s.detectOverflow(e, f), u = W(i), m = Q(i), d = M(i) === "y", {
469
+ width: h,
470
+ height: p
471
+ } = r.floating;
472
+ let w, g;
473
+ u === "top" || u === "bottom" ? (w = u, g = m === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (g = u, w = m === "end" ? "top" : "bottom");
474
+ const x = p - a.top - a.bottom, y = h - a.left - a.right, v = I(p - a[w], x), A = I(h - a[g], y), b = !e.middlewareData.shift;
475
+ let T = v, N = A;
476
+ if ((n = e.middlewareData.shift) != null && n.enabled.x && (N = y), (o = e.middlewareData.shift) != null && o.enabled.y && (T = x), b && !m) {
477
+ const F = R(a.left, 0), Y = R(a.right, 0), q = R(a.top, 0), U = R(a.bottom, 0);
478
+ d ? N = h - 2 * (F !== 0 || Y !== 0 ? F + Y : R(a.left, a.right)) : T = p - 2 * (q !== 0 || U !== 0 ? q + U : R(a.top, a.bottom));
479
+ }
480
+ await l({
481
+ ...e,
482
+ availableWidth: N,
483
+ availableHeight: T
484
+ });
485
+ const V = await s.getDimensions(c.floating);
486
+ return h !== V.width || p !== V.height ? {
487
+ reset: {
488
+ rects: !0
489
+ }
490
+ } : {};
491
+ }
492
+ };
493
+ };
494
+ function it() {
495
+ return typeof window < "u";
496
+ }
497
+ function j(t) {
498
+ return St(t) ? (t.nodeName || "").toLowerCase() : "#document";
499
+ }
500
+ function O(t) {
501
+ var e;
502
+ return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
503
+ }
504
+ function P(t) {
505
+ var e;
506
+ return (e = (St(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
507
+ }
508
+ function St(t) {
509
+ return it() ? t instanceof Node || t instanceof O(t).Node : !1;
510
+ }
511
+ function S(t) {
512
+ return it() ? t instanceof Element || t instanceof O(t).Element : !1;
513
+ }
514
+ function D(t) {
515
+ return it() ? t instanceof HTMLElement || t instanceof O(t).HTMLElement : !1;
516
+ }
517
+ function yt(t) {
518
+ return !it() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof O(t).ShadowRoot;
519
+ }
520
+ const te = /* @__PURE__ */ new Set(["inline", "contents"]);
521
+ function Z(t) {
522
+ const {
523
+ overflow: e,
524
+ overflowX: n,
525
+ overflowY: o,
526
+ display: i
527
+ } = L(t);
528
+ return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !te.has(i);
529
+ }
530
+ const ee = /* @__PURE__ */ new Set(["table", "td", "th"]);
531
+ function ne(t) {
532
+ return ee.has(j(t));
533
+ }
534
+ const oe = [":popover-open", ":modal"];
535
+ function st(t) {
536
+ return oe.some((e) => {
537
+ try {
538
+ return t.matches(e);
539
+ } catch {
540
+ return !1;
541
+ }
542
+ });
543
+ }
544
+ const ie = ["transform", "translate", "scale", "rotate", "perspective"], se = ["transform", "translate", "scale", "rotate", "perspective", "filter"], re = ["paint", "layout", "strict", "content"];
545
+ function dt(t) {
546
+ const e = mt(), n = S(t) ? L(t) : t;
547
+ return ie.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || se.some((o) => (n.willChange || "").includes(o)) || re.some((o) => (n.contain || "").includes(o));
548
+ }
549
+ function ce(t) {
550
+ let e = B(t);
551
+ for (; D(e) && !X(e); ) {
552
+ if (dt(e))
553
+ return e;
554
+ if (st(e))
555
+ return null;
556
+ e = B(e);
557
+ }
558
+ return null;
559
+ }
560
+ function mt() {
561
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
562
+ }
563
+ const le = /* @__PURE__ */ new Set(["html", "body", "#document"]);
564
+ function X(t) {
565
+ return le.has(j(t));
566
+ }
567
+ function L(t) {
568
+ return O(t).getComputedStyle(t);
569
+ }
570
+ function rt(t) {
571
+ return S(t) ? {
572
+ scrollLeft: t.scrollLeft,
573
+ scrollTop: t.scrollTop
574
+ } : {
575
+ scrollLeft: t.scrollX,
576
+ scrollTop: t.scrollY
577
+ };
578
+ }
579
+ function B(t) {
580
+ if (j(t) === "html")
581
+ return t;
582
+ const e = (
583
+ // Step into the shadow DOM of the parent of a slotted node.
584
+ t.assignedSlot || // DOM Element detected.
585
+ t.parentNode || // ShadowRoot detected.
586
+ yt(t) && t.host || // Fallback.
587
+ P(t)
588
+ );
589
+ return yt(e) ? e.host : e;
590
+ }
591
+ function Lt(t) {
592
+ const e = B(t);
593
+ return X(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : D(e) && Z(e) ? e : Lt(e);
594
+ }
595
+ function G(t, e, n) {
596
+ var o;
597
+ e === void 0 && (e = []), n === void 0 && (n = !0);
598
+ const i = Lt(t), r = i === ((o = t.ownerDocument) == null ? void 0 : o.body), s = O(i);
599
+ if (r) {
600
+ const c = ut(s);
601
+ return e.concat(s, s.visualViewport || [], Z(i) ? i : [], c && n ? G(c) : []);
602
+ }
603
+ return e.concat(i, G(i, [], n));
604
+ }
605
+ function ut(t) {
606
+ return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
607
+ }
608
+ function Tt(t) {
609
+ const e = L(t);
610
+ let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
611
+ const i = D(t), r = i ? t.offsetWidth : n, s = i ? t.offsetHeight : o, c = et(n) !== r || et(o) !== s;
612
+ return c && (n = r, o = s), {
613
+ width: n,
614
+ height: o,
615
+ $: c
616
+ };
617
+ }
618
+ function ht(t) {
619
+ return S(t) ? t : t.contextElement;
620
+ }
621
+ function z(t) {
622
+ const e = ht(t);
623
+ if (!D(e))
624
+ return E(1);
625
+ const n = e.getBoundingClientRect(), {
626
+ width: o,
627
+ height: i,
628
+ $: r
629
+ } = Tt(e);
630
+ let s = (r ? et(n.width) : n.width) / o, c = (r ? et(n.height) : n.height) / i;
631
+ return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
632
+ x: s,
633
+ y: c
634
+ };
635
+ }
636
+ const fe = /* @__PURE__ */ E(0);
637
+ function Et(t) {
638
+ const e = O(t);
639
+ return !mt() || !e.visualViewport ? fe : {
640
+ x: e.visualViewport.offsetLeft,
641
+ y: e.visualViewport.offsetTop
642
+ };
643
+ }
644
+ function ae(t, e, n) {
645
+ return e === void 0 && (e = !1), !n || e && n !== O(t) ? !1 : e;
646
+ }
647
+ function $(t, e, n, o) {
648
+ e === void 0 && (e = !1), n === void 0 && (n = !1);
649
+ const i = t.getBoundingClientRect(), r = ht(t);
650
+ let s = E(1);
651
+ e && (o ? S(o) && (s = z(o)) : s = z(t));
652
+ const c = ae(r, n, o) ? Et(r) : E(0);
653
+ let l = (i.left + c.x) / s.x, f = (i.top + c.y) / s.y, a = i.width / s.x, u = i.height / s.y;
654
+ if (r) {
655
+ const m = O(r), d = o && S(o) ? O(o) : o;
656
+ let h = m, p = ut(h);
657
+ for (; p && o && d !== h; ) {
658
+ const w = z(p), g = p.getBoundingClientRect(), x = L(p), y = g.left + (p.clientLeft + parseFloat(x.paddingLeft)) * w.x, v = g.top + (p.clientTop + parseFloat(x.paddingTop)) * w.y;
659
+ l *= w.x, f *= w.y, a *= w.x, u *= w.y, l += y, f += v, h = O(p), p = ut(h);
660
+ }
661
+ }
662
+ return ot({
663
+ width: a,
664
+ height: u,
665
+ x: l,
666
+ y: f
667
+ });
668
+ }
669
+ function ct(t, e) {
670
+ const n = rt(t).scrollLeft;
671
+ return e ? e.left + n : $(P(t)).left + n;
672
+ }
673
+ function Dt(t, e) {
674
+ const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - ct(t, n), i = n.top + e.scrollTop;
675
+ return {
676
+ x: o,
677
+ y: i
678
+ };
679
+ }
680
+ function ue(t) {
681
+ let {
682
+ elements: e,
683
+ rect: n,
684
+ offsetParent: o,
685
+ strategy: i
686
+ } = t;
687
+ const r = i === "fixed", s = P(o), c = e ? st(e.floating) : !1;
688
+ if (o === s || c && r)
689
+ return n;
690
+ let l = {
691
+ scrollLeft: 0,
692
+ scrollTop: 0
693
+ }, f = E(1);
694
+ const a = E(0), u = D(o);
695
+ if ((u || !u && !r) && ((j(o) !== "body" || Z(s)) && (l = rt(o)), D(o))) {
696
+ const d = $(o);
697
+ f = z(o), a.x = d.x + o.clientLeft, a.y = d.y + o.clientTop;
698
+ }
699
+ const m = s && !u && !r ? Dt(s, l) : E(0);
700
+ return {
701
+ width: n.width * f.x,
702
+ height: n.height * f.y,
703
+ x: n.x * f.x - l.scrollLeft * f.x + a.x + m.x,
704
+ y: n.y * f.y - l.scrollTop * f.y + a.y + m.y
705
+ };
706
+ }
707
+ function de(t) {
708
+ return Array.from(t.getClientRects());
709
+ }
710
+ function me(t) {
711
+ const e = P(t), n = rt(t), o = t.ownerDocument.body, i = R(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), r = R(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
712
+ let s = -n.scrollLeft + ct(t);
713
+ const c = -n.scrollTop;
714
+ return L(o).direction === "rtl" && (s += R(e.clientWidth, o.clientWidth) - i), {
715
+ width: i,
716
+ height: r,
717
+ x: s,
718
+ y: c
719
+ };
720
+ }
721
+ const vt = 25;
722
+ function he(t, e) {
723
+ const n = O(t), o = P(t), i = n.visualViewport;
724
+ let r = o.clientWidth, s = o.clientHeight, c = 0, l = 0;
725
+ if (i) {
726
+ r = i.width, s = i.height;
727
+ const a = mt();
728
+ (!a || a && e === "fixed") && (c = i.offsetLeft, l = i.offsetTop);
729
+ }
730
+ const f = ct(o);
731
+ if (f <= 0) {
732
+ const a = o.ownerDocument, u = a.body, m = getComputedStyle(u), d = a.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, h = Math.abs(o.clientWidth - u.clientWidth - d);
733
+ h <= vt && (r -= h);
734
+ } else f <= vt && (r += f);
735
+ return {
736
+ width: r,
737
+ height: s,
738
+ x: c,
739
+ y: l
740
+ };
741
+ }
742
+ const ge = /* @__PURE__ */ new Set(["absolute", "fixed"]);
743
+ function pe(t, e) {
744
+ const n = $(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, r = D(t) ? z(t) : E(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = i * r.x, f = o * r.y;
745
+ return {
746
+ width: s,
747
+ height: c,
748
+ x: l,
749
+ y: f
750
+ };
751
+ }
752
+ function bt(t, e, n) {
753
+ let o;
754
+ if (e === "viewport")
755
+ o = he(t, n);
756
+ else if (e === "document")
757
+ o = me(P(t));
758
+ else if (S(e))
759
+ o = pe(e, n);
760
+ else {
761
+ const i = Et(t);
762
+ o = {
763
+ x: e.x - i.x,
764
+ y: e.y - i.y,
765
+ width: e.width,
766
+ height: e.height
767
+ };
768
+ }
769
+ return ot(o);
770
+ }
771
+ function Pt(t, e) {
772
+ const n = B(t);
773
+ return n === e || !S(n) || X(n) ? !1 : L(n).position === "fixed" || Pt(n, e);
774
+ }
775
+ function we(t, e) {
776
+ const n = e.get(t);
777
+ if (n)
778
+ return n;
779
+ let o = G(t, [], !1).filter((c) => S(c) && j(c) !== "body"), i = null;
780
+ const r = L(t).position === "fixed";
781
+ let s = r ? B(t) : t;
782
+ for (; S(s) && !X(s); ) {
783
+ const c = L(s), l = dt(s);
784
+ !l && c.position === "fixed" && (i = null), (r ? !l && !i : !l && c.position === "static" && !!i && ge.has(i.position) || Z(s) && !l && Pt(t, s)) ? o = o.filter((a) => a !== s) : i = c, s = B(s);
785
+ }
786
+ return e.set(t, o), o;
787
+ }
788
+ function xe(t) {
789
+ let {
790
+ element: e,
791
+ boundary: n,
792
+ rootBoundary: o,
793
+ strategy: i
794
+ } = t;
795
+ const s = [...n === "clippingAncestors" ? st(e) ? [] : we(e, this._c) : [].concat(n), o], c = s[0], l = s.reduce((f, a) => {
796
+ const u = bt(e, a, i);
797
+ return f.top = R(u.top, f.top), f.right = I(u.right, f.right), f.bottom = I(u.bottom, f.bottom), f.left = R(u.left, f.left), f;
798
+ }, bt(e, c, i));
799
+ return {
800
+ width: l.right - l.left,
801
+ height: l.bottom - l.top,
802
+ x: l.left,
803
+ y: l.top
804
+ };
805
+ }
806
+ function ye(t) {
807
+ const {
808
+ width: e,
809
+ height: n
810
+ } = Tt(t);
811
+ return {
812
+ width: e,
813
+ height: n
814
+ };
815
+ }
816
+ function ve(t, e, n) {
817
+ const o = D(e), i = P(e), r = n === "fixed", s = $(t, !0, r, e);
818
+ let c = {
819
+ scrollLeft: 0,
820
+ scrollTop: 0
821
+ };
822
+ const l = E(0);
823
+ function f() {
824
+ l.x = ct(i);
825
+ }
826
+ if (o || !o && !r)
827
+ if ((j(e) !== "body" || Z(i)) && (c = rt(e)), o) {
828
+ const d = $(e, !0, r, e);
829
+ l.x = d.x + e.clientLeft, l.y = d.y + e.clientTop;
830
+ } else i && f();
831
+ r && !o && i && f();
832
+ const a = i && !o && !r ? Dt(i, c) : E(0), u = s.left + c.scrollLeft - l.x - a.x, m = s.top + c.scrollTop - l.y - a.y;
833
+ return {
834
+ x: u,
835
+ y: m,
836
+ width: s.width,
837
+ height: s.height
838
+ };
839
+ }
840
+ function ft(t) {
841
+ return L(t).position === "static";
842
+ }
843
+ function At(t, e) {
844
+ if (!D(t) || L(t).position === "fixed")
845
+ return null;
846
+ if (e)
847
+ return e(t);
848
+ let n = t.offsetParent;
849
+ return P(t) === n && (n = n.ownerDocument.body), n;
850
+ }
851
+ function Ft(t, e) {
852
+ const n = O(t);
853
+ if (st(t))
854
+ return n;
855
+ if (!D(t)) {
856
+ let i = B(t);
857
+ for (; i && !X(i); ) {
858
+ if (S(i) && !ft(i))
859
+ return i;
860
+ i = B(i);
861
+ }
862
+ return n;
863
+ }
864
+ let o = At(t, e);
865
+ for (; o && ne(o) && ft(o); )
866
+ o = At(o, e);
867
+ return o && X(o) && ft(o) && !dt(o) ? n : o || ce(t) || n;
868
+ }
869
+ const be = async function(t) {
870
+ const e = this.getOffsetParent || Ft, n = this.getDimensions, o = await n(t.floating);
871
+ return {
872
+ reference: ve(t.reference, await e(t.floating), t.strategy),
873
+ floating: {
874
+ x: 0,
875
+ y: 0,
876
+ width: o.width,
877
+ height: o.height
878
+ }
879
+ };
880
+ };
881
+ function Ae(t) {
882
+ return L(t).direction === "rtl";
883
+ }
884
+ const Re = {
885
+ convertOffsetParentRelativeRectToViewportRelativeRect: ue,
886
+ getDocumentElement: P,
887
+ getClippingRect: xe,
888
+ getOffsetParent: Ft,
889
+ getElementRects: be,
890
+ getClientRects: de,
891
+ getDimensions: ye,
892
+ getScale: z,
893
+ isElement: S,
894
+ isRTL: Ae
895
+ };
896
+ function Mt(t, e) {
897
+ return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
898
+ }
899
+ function Oe(t, e) {
900
+ let n = null, o;
901
+ const i = P(t);
902
+ function r() {
903
+ var c;
904
+ clearTimeout(o), (c = n) == null || c.disconnect(), n = null;
905
+ }
906
+ function s(c, l) {
907
+ c === void 0 && (c = !1), l === void 0 && (l = 1), r();
908
+ const f = t.getBoundingClientRect(), {
909
+ left: a,
910
+ top: u,
911
+ width: m,
912
+ height: d
913
+ } = f;
914
+ if (c || e(), !m || !d)
915
+ return;
916
+ const h = tt(u), p = tt(i.clientWidth - (a + m)), w = tt(i.clientHeight - (u + d)), g = tt(a), y = {
917
+ rootMargin: -h + "px " + -p + "px " + -w + "px " + -g + "px",
918
+ threshold: R(0, I(1, l)) || 1
919
+ };
920
+ let v = !0;
921
+ function A(b) {
922
+ const T = b[0].intersectionRatio;
923
+ if (T !== l) {
924
+ if (!v)
925
+ return s();
926
+ T ? s(!1, T) : o = setTimeout(() => {
927
+ s(!1, 1e-7);
928
+ }, 1e3);
929
+ }
930
+ T === 1 && !Mt(f, t.getBoundingClientRect()) && s(), v = !1;
931
+ }
932
+ try {
933
+ n = new IntersectionObserver(A, {
934
+ ...y,
935
+ // Handle <iframe>s
936
+ root: i.ownerDocument
937
+ });
938
+ } catch {
939
+ n = new IntersectionObserver(A, y);
940
+ }
941
+ n.observe(t);
942
+ }
943
+ return s(!0), r;
944
+ }
945
+ function Se(t, e, n, o) {
946
+ o === void 0 && (o = {});
947
+ const {
948
+ ancestorScroll: i = !0,
949
+ ancestorResize: r = !0,
950
+ elementResize: s = typeof ResizeObserver == "function",
951
+ layoutShift: c = typeof IntersectionObserver == "function",
952
+ animationFrame: l = !1
953
+ } = o, f = ht(t), a = i || r ? [...f ? G(f) : [], ...G(e)] : [];
954
+ a.forEach((g) => {
955
+ i && g.addEventListener("scroll", n, {
956
+ passive: !0
957
+ }), r && g.addEventListener("resize", n);
958
+ });
959
+ const u = f && c ? Oe(f, n) : null;
960
+ let m = -1, d = null;
961
+ s && (d = new ResizeObserver((g) => {
962
+ let [x] = g;
963
+ x && x.target === f && d && (d.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
964
+ var y;
965
+ (y = d) == null || y.observe(e);
966
+ })), n();
967
+ }), f && !l && d.observe(f), d.observe(e));
968
+ let h, p = l ? $(t) : null;
969
+ l && w();
970
+ function w() {
971
+ const g = $(t);
972
+ p && !Mt(p, g) && n(), p = g, h = requestAnimationFrame(w);
973
+ }
974
+ return n(), () => {
975
+ var g;
976
+ a.forEach((x) => {
977
+ i && x.removeEventListener("scroll", n), r && x.removeEventListener("resize", n);
978
+ }), u == null || u(), (g = d) == null || g.disconnect(), d = null, l && cancelAnimationFrame(h);
979
+ };
980
+ }
981
+ const Le = Jt, Te = Qt, Ee = Ut, De = Zt, Pe = (t, e, n) => {
982
+ const o = /* @__PURE__ */ new Map(), i = {
983
+ platform: Re,
984
+ ...n
985
+ }, r = {
986
+ ...i.platform,
987
+ _c: o
988
+ };
989
+ return qt(t, e, {
990
+ ...i,
991
+ platform: r
992
+ });
993
+ };
994
+ export {
995
+ Se as autoUpdate,
996
+ Pe as computePosition,
997
+ Ee as flip,
998
+ G as getOverflowAncestors,
999
+ Le as offset,
1000
+ Re as platform,
1001
+ Te as shift,
1002
+ De as size
1003
+ };