@yuno-payments/dashboard-api-mfe 0.39.4 → 0.39.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (497) hide show
  1. package/build/{esm/index.js → index.js} +1 -2
  2. package/build/{cjs/types → types}/common/config.d.ts +1 -1
  3. package/package.json +2 -3
  4. package/build/cjs/index.js +0 -43
  5. package/build/cjs/index.js.map +0 -1
  6. package/build/esm/index.js.map +0 -1
  7. package/build/esm/types/__mocks__/@yuno/dashboard-authentication-mfe/index.d.ts +0 -10
  8. package/build/esm/types/api/api.d.ts +0 -537
  9. package/build/esm/types/api/api.singleton.d.ts +0 -9
  10. package/build/esm/types/api/api.types.d.ts +0 -199
  11. package/build/esm/types/api/index.d.ts +0 -3
  12. package/build/esm/types/api-provider.d.ts +0 -4
  13. package/build/esm/types/common/config.d.ts +0 -13
  14. package/build/esm/types/constants/errors-code.constant.d.ts +0 -5
  15. package/build/esm/types/constants/index.d.ts +0 -1
  16. package/build/esm/types/lib/http-client/__tests__/http-client.test.d.ts +0 -1
  17. package/build/esm/types/lib/http-client/api.config.d.ts +0 -2
  18. package/build/esm/types/lib/http-client/axios.d.ts +0 -19
  19. package/build/esm/types/lib/http-client/http-client.d.ts +0 -168
  20. package/build/esm/types/lib/http-client/index.d.ts +0 -2
  21. package/build/esm/types/msw/browser.d.ts +0 -1
  22. package/build/esm/types/msw/handlers/index.d.ts +0 -1
  23. package/build/esm/types/msw/handlers/insights.d.ts +0 -1
  24. package/build/esm/types/msw/handlers/organizations.d.ts +0 -1
  25. package/build/esm/types/msw/handlers/payments.d.ts +0 -1
  26. package/build/esm/types/msw/index.d.ts +0 -1
  27. package/build/esm/types/msw/mocks/insights/conversion-rate/overview-fraud-3ds.mock.d.ts +0 -14
  28. package/build/esm/types/msw/mocks/insights/conversion-rate/overview.mock.d.ts +0 -34
  29. package/build/esm/types/msw/mocks/insights/overview/overview-metrics.mock.d.ts +0 -9
  30. package/build/esm/types/msw/mocks/insights/overview/overview.mock.d.ts +0 -139
  31. package/build/esm/types/msw/mocks/payments/payments.mock.d.ts +0 -92
  32. package/build/esm/types/msw/mocks/payments/transaction-details.mock.d.ts +0 -579
  33. package/build/esm/types/mutations/S3Client/S3Client.mutation.d.ts +0 -6
  34. package/build/esm/types/mutations/S3Client/index.d.ts +0 -1
  35. package/build/esm/types/mutations/accounts/accounts.mutation.d.ts +0 -52
  36. package/build/esm/types/mutations/accounts/delete-mutation.d.ts +0 -20
  37. package/build/esm/types/mutations/accounts/index.d.ts +0 -1
  38. package/build/esm/types/mutations/ai/ai.mutation.d.ts +0 -28
  39. package/build/esm/types/mutations/ai/ai.mutation.test.d.ts +0 -1
  40. package/build/esm/types/mutations/ai/index.d.ts +0 -1
  41. package/build/esm/types/mutations/audit/audit-api.mutation.d.ts +0 -5
  42. package/build/esm/types/mutations/audit/audit.mutation.d.ts +0 -6
  43. package/build/esm/types/mutations/audit/index.d.ts +0 -2
  44. package/build/esm/types/mutations/batch-refunds/batch-refunds.mutation.d.ts +0 -32
  45. package/build/esm/types/mutations/batch-refunds/batch-refunds.mutation.test.d.ts +0 -1
  46. package/build/esm/types/mutations/batch-refunds/index.d.ts +0 -1
  47. package/build/esm/types/mutations/chartgpt/chartgpt.mutation.d.ts +0 -37
  48. package/build/esm/types/mutations/chartgpt/index.d.ts +0 -1
  49. package/build/esm/types/mutations/checkouts/checkouts.mutation.d.ts +0 -11
  50. package/build/esm/types/mutations/checkouts/index.d.ts +0 -2
  51. package/build/esm/types/mutations/checkouts/styling/styling.mutation.d.ts +0 -2
  52. package/build/esm/types/mutations/connections/connections.mutation.d.ts +0 -36
  53. package/build/esm/types/mutations/connections/index.d.ts +0 -1
  54. package/build/esm/types/mutations/developers/developers.mutation.d.ts +0 -21
  55. package/build/esm/types/mutations/developers/index.d.ts +0 -1
  56. package/build/esm/types/mutations/fraud-screening/fraud-screening.mutation.d.ts +0 -52
  57. package/build/esm/types/mutations/fraud-screening/index.d.ts +0 -1
  58. package/build/esm/types/mutations/index.d.ts +0 -30
  59. package/build/esm/types/mutations/insights/index.d.ts +0 -1
  60. package/build/esm/types/mutations/insights/insights.mutation.d.ts +0 -2
  61. package/build/esm/types/mutations/multi-factor-authentication/index.d.ts +0 -1
  62. package/build/esm/types/mutations/multi-factor-authentication/multi-factor-authentication.mutation.d.ts +0 -12
  63. package/build/esm/types/mutations/notifications/index.d.ts +0 -1
  64. package/build/esm/types/mutations/notifications/notifications.mutation.d.ts +0 -6
  65. package/build/esm/types/mutations/organization-settings/index.d.ts +0 -1
  66. package/build/esm/types/mutations/organization-settings/organization-settings.mutations.d.ts +0 -9
  67. package/build/esm/types/mutations/organizations/index.d.ts +0 -1
  68. package/build/esm/types/mutations/organizations/organizations.mutation.d.ts +0 -2
  69. package/build/esm/types/mutations/payment-links/index.d.ts +0 -1
  70. package/build/esm/types/mutations/payment-links/payment-links.mutation.d.ts +0 -12
  71. package/build/esm/types/mutations/payments/index.d.ts +0 -1
  72. package/build/esm/types/mutations/payments/payments.mutation.d.ts +0 -13
  73. package/build/esm/types/mutations/reconciliations/index.d.ts +0 -2
  74. package/build/esm/types/mutations/reconciliations/reconciliations-alerts.mutation.d.ts +0 -5
  75. package/build/esm/types/mutations/reconciliations/reconciliations.mutation.d.ts +0 -4
  76. package/build/esm/types/mutations/reports/index.d.ts +0 -1
  77. package/build/esm/types/mutations/reports/reports.mutation.d.ts +0 -8
  78. package/build/esm/types/mutations/routing-monitors/index.d.ts +0 -1
  79. package/build/esm/types/mutations/routing-monitors/routing-monitors.mutation.d.ts +0 -4
  80. package/build/esm/types/mutations/saml-config/index.d.ts +0 -1
  81. package/build/esm/types/mutations/saml-config/saml-config.query.d.ts +0 -4
  82. package/build/esm/types/mutations/scheduled-reports/index.d.ts +0 -1
  83. package/build/esm/types/mutations/scheduled-reports/scheduled-reports.mutation.d.ts +0 -8
  84. package/build/esm/types/mutations/security/index.d.ts +0 -1
  85. package/build/esm/types/mutations/security/security.mutation.d.ts +0 -3
  86. package/build/esm/types/mutations/settings/index.d.ts +0 -1
  87. package/build/esm/types/mutations/settings/settings.mutation.d.ts +0 -17
  88. package/build/esm/types/mutations/smart-routing/index.d.ts +0 -1
  89. package/build/esm/types/mutations/smart-routing/smart-routing.mutation.d.ts +0 -67
  90. package/build/esm/types/mutations/team/index.d.ts +0 -1
  91. package/build/esm/types/mutations/team/team.mutaion.test.d.ts +0 -1
  92. package/build/esm/types/mutations/team/team.mutation.d.ts +0 -8
  93. package/build/esm/types/mutations/template-reporting/index.d.ts +0 -1
  94. package/build/esm/types/mutations/template-reporting/template-reporting.mutation.d.ts +0 -20
  95. package/build/esm/types/mutations/users/index.d.ts +0 -1
  96. package/build/esm/types/mutations/users/users.mutation.d.ts +0 -16
  97. package/build/esm/types/mutations/velocity-rules/index.d.ts +0 -1
  98. package/build/esm/types/mutations/velocity-rules/velocity-rules.mutation.d.ts +0 -5
  99. package/build/esm/types/queries/accounts/accounts.query.d.ts +0 -24
  100. package/build/esm/types/queries/accounts/index.d.ts +0 -1
  101. package/build/esm/types/queries/audit/audit.query.d.ts +0 -11
  102. package/build/esm/types/queries/audit/index.d.ts +0 -1
  103. package/build/esm/types/queries/batch-refunds/batch-refunds.query.d.ts +0 -3
  104. package/build/esm/types/queries/batch-refunds/index.d.ts +0 -1
  105. package/build/esm/types/queries/chartgpt/chartgpt.query.d.ts +0 -44
  106. package/build/esm/types/queries/chartgpt/index.d.ts +0 -1
  107. package/build/esm/types/queries/checkouts/checkouts.query.d.ts +0 -15
  108. package/build/esm/types/queries/checkouts/index.d.ts +0 -2
  109. package/build/esm/types/queries/checkouts/styling/styling.query.d.ts +0 -25
  110. package/build/esm/types/queries/cms/cms.query.d.ts +0 -14
  111. package/build/esm/types/queries/cms/index.d.ts +0 -1
  112. package/build/esm/types/queries/connections/connections.query.d.ts +0 -3
  113. package/build/esm/types/queries/connections/index.d.ts +0 -1
  114. package/build/esm/types/queries/data-report/data-report.query.d.ts +0 -17
  115. package/build/esm/types/queries/data-report/fraud/fraud.query.d.ts +0 -17
  116. package/build/esm/types/queries/data-report/fraud/fraud.query.test.d.ts +0 -1
  117. package/build/esm/types/queries/data-report/index.d.ts +0 -2
  118. package/build/esm/types/queries/developers/developers.query.d.ts +0 -14
  119. package/build/esm/types/queries/developers/index.d.ts +0 -1
  120. package/build/esm/types/queries/dialogs/dialogs.query.d.ts +0 -2
  121. package/build/esm/types/queries/dialogs/index.d.ts +0 -1
  122. package/build/esm/types/queries/feature-flags/feature-flags.test.d.ts +0 -1
  123. package/build/esm/types/queries/feature-flags/index.d.ts +0 -8
  124. package/build/esm/types/queries/firebase/firebase.query.d.ts +0 -10
  125. package/build/esm/types/queries/firebase/index.d.ts +0 -1
  126. package/build/esm/types/queries/fraud-screening/fraud-screening.query.d.ts +0 -11
  127. package/build/esm/types/queries/fraud-screening/index.d.ts +0 -1
  128. package/build/esm/types/queries/index.d.ts +0 -28
  129. package/build/esm/types/queries/mfa/index.d.ts +0 -1
  130. package/build/esm/types/queries/mfa/organization-settings.query.d.ts +0 -11
  131. package/build/esm/types/queries/notifications/index.d.ts +0 -1
  132. package/build/esm/types/queries/notifications/notifications.query.d.ts +0 -12
  133. package/build/esm/types/queries/organizations/index.d.ts +0 -1
  134. package/build/esm/types/queries/organizations/organizations.query.d.ts +0 -28
  135. package/build/esm/types/queries/payment-links/index.d.ts +0 -1
  136. package/build/esm/types/queries/payment-links/payment-links.query.d.ts +0 -7
  137. package/build/esm/types/queries/payments/index.d.ts +0 -2
  138. package/build/esm/types/queries/payments/payments.query.d.ts +0 -36
  139. package/build/esm/types/queries/payments/payouts.query.d.ts +0 -6
  140. package/build/esm/types/queries/reconciliations/index.d.ts +0 -6
  141. package/build/esm/types/queries/reconciliations/reconciliations-advancements.query.d.ts +0 -9
  142. package/build/esm/types/queries/reconciliations/reconciliations-agenda.query.d.ts +0 -9
  143. package/build/esm/types/queries/reconciliations/reconciliations-alerts.query.d.ts +0 -8
  144. package/build/esm/types/queries/reconciliations/reconciliations-fees.query.d.ts +0 -9
  145. package/build/esm/types/queries/reconciliations/reconciliations-sales.query.d.ts +0 -9
  146. package/build/esm/types/queries/reconciliations/reconciliations.query.d.ts +0 -11
  147. package/build/esm/types/queries/reports/index.d.ts +0 -1
  148. package/build/esm/types/queries/reports/reports.query.d.ts +0 -13
  149. package/build/esm/types/queries/routing-monitors/index.d.ts +0 -1
  150. package/build/esm/types/queries/routing-monitors/routing-monitors.query.d.ts +0 -4
  151. package/build/esm/types/queries/saml-config/index.d.ts +0 -1
  152. package/build/esm/types/queries/saml-config/saml-config.query.d.ts +0 -4
  153. package/build/esm/types/queries/smart-routing/index.d.ts +0 -1
  154. package/build/esm/types/queries/smart-routing/smart-routing.query.d.ts +0 -30
  155. package/build/esm/types/queries/team/index.d.ts +0 -1
  156. package/build/esm/types/queries/team/team.query.d.ts +0 -14
  157. package/build/esm/types/queries/template-reporting/index.d.ts +0 -1
  158. package/build/esm/types/queries/template-reporting/template-reporting.query.d.ts +0 -7
  159. package/build/esm/types/queries/translation/index.d.ts +0 -1
  160. package/build/esm/types/queries/translation/translation.query.d.ts +0 -5
  161. package/build/esm/types/queries/users/index.d.ts +0 -1
  162. package/build/esm/types/queries/users/users.query.d.ts +0 -25
  163. package/build/esm/types/queries/velocity-rules/index.d.ts +0 -1
  164. package/build/esm/types/queries/velocity-rules/velocity-rules.query.d.ts +0 -6
  165. package/build/esm/types/store/index.d.ts +0 -3
  166. package/build/esm/types/types/accounts/accounts.d.ts +0 -11
  167. package/build/esm/types/types/accounts/index.d.ts +0 -1
  168. package/build/esm/types/types/ai/ai.d.ts +0 -78
  169. package/build/esm/types/types/ai/index.d.ts +0 -1
  170. package/build/esm/types/types/allowed-list/allowed-list.d.ts +0 -9
  171. package/build/esm/types/types/allowed-list/index.d.ts +0 -1
  172. package/build/esm/types/types/audit/audit.d.ts +0 -191
  173. package/build/esm/types/types/audit/index.d.ts +0 -1
  174. package/build/esm/types/types/batch-refunds/batch-refunds.d.ts +0 -38
  175. package/build/esm/types/types/batch-refunds/index.d.ts +0 -1
  176. package/build/esm/types/types/checkout/checkout.d.ts +0 -207
  177. package/build/esm/types/types/checkout/index.d.ts +0 -1
  178. package/build/esm/types/types/checkout/styling/styling.d.ts +0 -215
  179. package/build/esm/types/types/cms/cms.d.ts +0 -47
  180. package/build/esm/types/types/cms/index.d.ts +0 -1
  181. package/build/esm/types/types/connection/connection.d.ts +0 -54
  182. package/build/esm/types/types/connection/costs.d.ts +0 -26
  183. package/build/esm/types/types/connection/index.d.ts +0 -2
  184. package/build/esm/types/types/country/country.d.ts +0 -12
  185. package/build/esm/types/types/country/index.d.ts +0 -1
  186. package/build/esm/types/types/customized-api-keys/customized-api-keys.d.ts +0 -30
  187. package/build/esm/types/types/customized-api-keys/index.d.ts +0 -1
  188. package/build/esm/types/types/data-report/conversion-rate.types.d.ts +0 -48
  189. package/build/esm/types/types/data-report/data-report.d.ts +0 -51
  190. package/build/esm/types/types/data-report/fraud.types.d.ts +0 -165
  191. package/build/esm/types/types/data-report/index.d.ts +0 -3
  192. package/build/esm/types/types/developer/developer.d.ts +0 -13
  193. package/build/esm/types/types/developer/index.d.ts +0 -1
  194. package/build/esm/types/types/feature-flags/intex.d.ts +0 -13
  195. package/build/esm/types/types/fraud-screening/fraud-screening.d.ts +0 -109
  196. package/build/esm/types/types/fraud-screening/index.d.ts +0 -1
  197. package/build/esm/types/types/index.d.ts +0 -31
  198. package/build/esm/types/types/mfa/index.d.ts +0 -1
  199. package/build/esm/types/types/mfa/mfa.d.ts +0 -6
  200. package/build/esm/types/types/notifications/index.d.ts +0 -1
  201. package/build/esm/types/types/notifications/notifications.d.ts +0 -39
  202. package/build/esm/types/types/operation-transaction/index.d.ts +0 -1
  203. package/build/esm/types/types/operation-transaction/operation-transaction.d.ts +0 -28
  204. package/build/esm/types/types/organization/index.d.ts +0 -1
  205. package/build/esm/types/types/organization/organization.d.ts +0 -134
  206. package/build/esm/types/types/organization-settings/index.d.ts +0 -1
  207. package/build/esm/types/types/organization-settings/organization-settings.d.ts +0 -27
  208. package/build/esm/types/types/payment/index.d.ts +0 -1
  209. package/build/esm/types/types/payment/payment.d.ts +0 -566
  210. package/build/esm/types/types/payment-links/index.d.ts +0 -1
  211. package/build/esm/types/types/payment-links/payment-links.d.ts +0 -15
  212. package/build/esm/types/types/payouts/index.d.ts +0 -1
  213. package/build/esm/types/types/payouts/payouts.d.ts +0 -105
  214. package/build/esm/types/types/reconciliation/index.d.ts +0 -6
  215. package/build/esm/types/types/reconciliation/reconciliation-advancements.d.ts +0 -40
  216. package/build/esm/types/types/reconciliation/reconciliation-agenda.d.ts +0 -84
  217. package/build/esm/types/types/reconciliation/reconciliation-alerts.d.ts +0 -38
  218. package/build/esm/types/types/reconciliation/reconciliation-fees.d.ts +0 -45
  219. package/build/esm/types/types/reconciliation/reconciliation-sales.d.ts +0 -56
  220. package/build/esm/types/types/reconciliation/reconciliation.d.ts +0 -345
  221. package/build/esm/types/types/reports/index.d.ts +0 -1
  222. package/build/esm/types/types/reports/reports.d.ts +0 -136
  223. package/build/esm/types/types/routing-monitors/index.d.ts +0 -1
  224. package/build/esm/types/types/routing-monitors/routing-monitors.d.ts +0 -35
  225. package/build/esm/types/types/s3-client/index.d.ts +0 -1
  226. package/build/esm/types/types/s3-client/s3-client.d.ts +0 -19
  227. package/build/esm/types/types/saml-config/index.d.ts +0 -1
  228. package/build/esm/types/types/saml-config/saml-config.d.ts +0 -28
  229. package/build/esm/types/types/smart-routing/index.d.ts +0 -1
  230. package/build/esm/types/types/smart-routing/smart-routing.d.ts +0 -330
  231. package/build/esm/types/types/team/index.d.ts +0 -1
  232. package/build/esm/types/types/team/team.d.ts +0 -75
  233. package/build/esm/types/types/template-reporting/common.types.d.ts +0 -60
  234. package/build/esm/types/types/template-reporting/index.d.ts +0 -47
  235. package/build/esm/types/types/template-reporting/schedule.types.d.ts +0 -58
  236. package/build/esm/types/types/template-reporting/template.types.d.ts +0 -86
  237. package/build/esm/types/types/translation/index.d.ts +0 -1
  238. package/build/esm/types/types/translation/translation.d.ts +0 -8
  239. package/build/esm/types/types/user/index.d.ts +0 -1
  240. package/build/esm/types/types/user/user.d.ts +0 -181
  241. package/build/esm/types/types/velocity-rules/index.d.ts +0 -1
  242. package/build/esm/types/types/velocity-rules/velocity-rules.d.ts +0 -15
  243. package/build/esm/types/types/webhook/index.d.ts +0 -1
  244. package/build/esm/types/types/webhook/webhook.d.ts +0 -63
  245. package/build/esm/types/utils/enums.d.ts +0 -162
  246. package/build/esm/types/utils/handler-error.d.ts +0 -6
  247. package/build/esm/types/utils/test-utils.d.ts +0 -4
  248. package/build/esm/types/utils/use-localstorage.d.ts +0 -2
  249. package/build/esm/types/websockets/index.d.ts +0 -1
  250. package/build/esm/types/websockets/use-chart-assistant-socket.d.ts +0 -17
  251. package/build/esm/types/websockets/use-chart-assistant-socket.test.d.ts +0 -1
  252. package/build/esm/types/yuno-dashboard-api-mfe.d.ts +0 -8
  253. /package/build/{cjs/types → types}/__mocks__/@yuno/dashboard-authentication-mfe/index.d.ts +0 -0
  254. /package/build/{cjs/types → types}/api/api.d.ts +0 -0
  255. /package/build/{cjs/types → types}/api/api.singleton.d.ts +0 -0
  256. /package/build/{cjs/types → types}/api/api.types.d.ts +0 -0
  257. /package/build/{cjs/types → types}/api/index.d.ts +0 -0
  258. /package/build/{cjs/types → types}/api-provider.d.ts +0 -0
  259. /package/build/{cjs/types → types}/constants/errors-code.constant.d.ts +0 -0
  260. /package/build/{cjs/types → types}/constants/index.d.ts +0 -0
  261. /package/build/{cjs/types → types}/lib/http-client/__tests__/http-client.test.d.ts +0 -0
  262. /package/build/{cjs/types → types}/lib/http-client/api.config.d.ts +0 -0
  263. /package/build/{cjs/types → types}/lib/http-client/axios.d.ts +0 -0
  264. /package/build/{cjs/types → types}/lib/http-client/http-client.d.ts +0 -0
  265. /package/build/{cjs/types → types}/lib/http-client/index.d.ts +0 -0
  266. /package/build/{cjs/types → types}/msw/browser.d.ts +0 -0
  267. /package/build/{cjs/types → types}/msw/handlers/index.d.ts +0 -0
  268. /package/build/{cjs/types → types}/msw/handlers/insights.d.ts +0 -0
  269. /package/build/{cjs/types → types}/msw/handlers/organizations.d.ts +0 -0
  270. /package/build/{cjs/types → types}/msw/handlers/payments.d.ts +0 -0
  271. /package/build/{cjs/types → types}/msw/index.d.ts +0 -0
  272. /package/build/{cjs/types → types}/msw/mocks/insights/conversion-rate/overview-fraud-3ds.mock.d.ts +0 -0
  273. /package/build/{cjs/types → types}/msw/mocks/insights/conversion-rate/overview.mock.d.ts +0 -0
  274. /package/build/{cjs/types → types}/msw/mocks/insights/overview/overview-metrics.mock.d.ts +0 -0
  275. /package/build/{cjs/types → types}/msw/mocks/insights/overview/overview.mock.d.ts +0 -0
  276. /package/build/{cjs/types → types}/msw/mocks/payments/payments.mock.d.ts +0 -0
  277. /package/build/{cjs/types → types}/msw/mocks/payments/transaction-details.mock.d.ts +0 -0
  278. /package/build/{cjs/types → types}/mutations/S3Client/S3Client.mutation.d.ts +0 -0
  279. /package/build/{cjs/types → types}/mutations/S3Client/index.d.ts +0 -0
  280. /package/build/{cjs/types → types}/mutations/accounts/accounts.mutation.d.ts +0 -0
  281. /package/build/{cjs/types → types}/mutations/accounts/delete-mutation.d.ts +0 -0
  282. /package/build/{cjs/types → types}/mutations/accounts/index.d.ts +0 -0
  283. /package/build/{cjs/types → types}/mutations/ai/ai.mutation.d.ts +0 -0
  284. /package/build/{cjs/types → types}/mutations/ai/ai.mutation.test.d.ts +0 -0
  285. /package/build/{cjs/types → types}/mutations/ai/index.d.ts +0 -0
  286. /package/build/{cjs/types → types}/mutations/audit/audit-api.mutation.d.ts +0 -0
  287. /package/build/{cjs/types → types}/mutations/audit/audit.mutation.d.ts +0 -0
  288. /package/build/{cjs/types → types}/mutations/audit/index.d.ts +0 -0
  289. /package/build/{cjs/types → types}/mutations/batch-refunds/batch-refunds.mutation.d.ts +0 -0
  290. /package/build/{cjs/types → types}/mutations/batch-refunds/batch-refunds.mutation.test.d.ts +0 -0
  291. /package/build/{cjs/types → types}/mutations/batch-refunds/index.d.ts +0 -0
  292. /package/build/{cjs/types → types}/mutations/chartgpt/chartgpt.mutation.d.ts +0 -0
  293. /package/build/{cjs/types → types}/mutations/chartgpt/index.d.ts +0 -0
  294. /package/build/{cjs/types → types}/mutations/checkouts/checkouts.mutation.d.ts +0 -0
  295. /package/build/{cjs/types → types}/mutations/checkouts/index.d.ts +0 -0
  296. /package/build/{cjs/types → types}/mutations/checkouts/styling/styling.mutation.d.ts +0 -0
  297. /package/build/{cjs/types → types}/mutations/connections/connections.mutation.d.ts +0 -0
  298. /package/build/{cjs/types → types}/mutations/connections/index.d.ts +0 -0
  299. /package/build/{cjs/types → types}/mutations/developers/developers.mutation.d.ts +0 -0
  300. /package/build/{cjs/types → types}/mutations/developers/index.d.ts +0 -0
  301. /package/build/{cjs/types → types}/mutations/fraud-screening/fraud-screening.mutation.d.ts +0 -0
  302. /package/build/{cjs/types → types}/mutations/fraud-screening/index.d.ts +0 -0
  303. /package/build/{cjs/types → types}/mutations/index.d.ts +0 -0
  304. /package/build/{cjs/types → types}/mutations/insights/index.d.ts +0 -0
  305. /package/build/{cjs/types → types}/mutations/insights/insights.mutation.d.ts +0 -0
  306. /package/build/{cjs/types → types}/mutations/multi-factor-authentication/index.d.ts +0 -0
  307. /package/build/{cjs/types → types}/mutations/multi-factor-authentication/multi-factor-authentication.mutation.d.ts +0 -0
  308. /package/build/{cjs/types → types}/mutations/notifications/index.d.ts +0 -0
  309. /package/build/{cjs/types → types}/mutations/notifications/notifications.mutation.d.ts +0 -0
  310. /package/build/{cjs/types → types}/mutations/organization-settings/index.d.ts +0 -0
  311. /package/build/{cjs/types → types}/mutations/organization-settings/organization-settings.mutations.d.ts +0 -0
  312. /package/build/{cjs/types → types}/mutations/organizations/index.d.ts +0 -0
  313. /package/build/{cjs/types → types}/mutations/organizations/organizations.mutation.d.ts +0 -0
  314. /package/build/{cjs/types → types}/mutations/payment-links/index.d.ts +0 -0
  315. /package/build/{cjs/types → types}/mutations/payment-links/payment-links.mutation.d.ts +0 -0
  316. /package/build/{cjs/types → types}/mutations/payments/index.d.ts +0 -0
  317. /package/build/{cjs/types → types}/mutations/payments/payments.mutation.d.ts +0 -0
  318. /package/build/{cjs/types → types}/mutations/reconciliations/index.d.ts +0 -0
  319. /package/build/{cjs/types → types}/mutations/reconciliations/reconciliations-alerts.mutation.d.ts +0 -0
  320. /package/build/{cjs/types → types}/mutations/reconciliations/reconciliations.mutation.d.ts +0 -0
  321. /package/build/{cjs/types → types}/mutations/reports/index.d.ts +0 -0
  322. /package/build/{cjs/types → types}/mutations/reports/reports.mutation.d.ts +0 -0
  323. /package/build/{cjs/types → types}/mutations/routing-monitors/index.d.ts +0 -0
  324. /package/build/{cjs/types → types}/mutations/routing-monitors/routing-monitors.mutation.d.ts +0 -0
  325. /package/build/{cjs/types → types}/mutations/saml-config/index.d.ts +0 -0
  326. /package/build/{cjs/types → types}/mutations/saml-config/saml-config.query.d.ts +0 -0
  327. /package/build/{cjs/types → types}/mutations/scheduled-reports/index.d.ts +0 -0
  328. /package/build/{cjs/types → types}/mutations/scheduled-reports/scheduled-reports.mutation.d.ts +0 -0
  329. /package/build/{cjs/types → types}/mutations/security/index.d.ts +0 -0
  330. /package/build/{cjs/types → types}/mutations/security/security.mutation.d.ts +0 -0
  331. /package/build/{cjs/types → types}/mutations/settings/index.d.ts +0 -0
  332. /package/build/{cjs/types → types}/mutations/settings/settings.mutation.d.ts +0 -0
  333. /package/build/{cjs/types → types}/mutations/smart-routing/index.d.ts +0 -0
  334. /package/build/{cjs/types → types}/mutations/smart-routing/smart-routing.mutation.d.ts +0 -0
  335. /package/build/{cjs/types → types}/mutations/team/index.d.ts +0 -0
  336. /package/build/{cjs/types → types}/mutations/team/team.mutaion.test.d.ts +0 -0
  337. /package/build/{cjs/types → types}/mutations/team/team.mutation.d.ts +0 -0
  338. /package/build/{cjs/types → types}/mutations/template-reporting/index.d.ts +0 -0
  339. /package/build/{cjs/types → types}/mutations/template-reporting/template-reporting.mutation.d.ts +0 -0
  340. /package/build/{cjs/types → types}/mutations/users/index.d.ts +0 -0
  341. /package/build/{cjs/types → types}/mutations/users/users.mutation.d.ts +0 -0
  342. /package/build/{cjs/types → types}/mutations/velocity-rules/index.d.ts +0 -0
  343. /package/build/{cjs/types → types}/mutations/velocity-rules/velocity-rules.mutation.d.ts +0 -0
  344. /package/build/{cjs/types → types}/queries/accounts/accounts.query.d.ts +0 -0
  345. /package/build/{cjs/types → types}/queries/accounts/index.d.ts +0 -0
  346. /package/build/{cjs/types → types}/queries/audit/audit.query.d.ts +0 -0
  347. /package/build/{cjs/types → types}/queries/audit/index.d.ts +0 -0
  348. /package/build/{cjs/types → types}/queries/batch-refunds/batch-refunds.query.d.ts +0 -0
  349. /package/build/{cjs/types → types}/queries/batch-refunds/index.d.ts +0 -0
  350. /package/build/{cjs/types → types}/queries/chartgpt/chartgpt.query.d.ts +0 -0
  351. /package/build/{cjs/types → types}/queries/chartgpt/index.d.ts +0 -0
  352. /package/build/{cjs/types → types}/queries/checkouts/checkouts.query.d.ts +0 -0
  353. /package/build/{cjs/types → types}/queries/checkouts/index.d.ts +0 -0
  354. /package/build/{cjs/types → types}/queries/checkouts/styling/styling.query.d.ts +0 -0
  355. /package/build/{cjs/types → types}/queries/cms/cms.query.d.ts +0 -0
  356. /package/build/{cjs/types → types}/queries/cms/index.d.ts +0 -0
  357. /package/build/{cjs/types → types}/queries/connections/connections.query.d.ts +0 -0
  358. /package/build/{cjs/types → types}/queries/connections/index.d.ts +0 -0
  359. /package/build/{cjs/types → types}/queries/data-report/data-report.query.d.ts +0 -0
  360. /package/build/{cjs/types → types}/queries/data-report/fraud/fraud.query.d.ts +0 -0
  361. /package/build/{cjs/types → types}/queries/data-report/fraud/fraud.query.test.d.ts +0 -0
  362. /package/build/{cjs/types → types}/queries/data-report/index.d.ts +0 -0
  363. /package/build/{cjs/types → types}/queries/developers/developers.query.d.ts +0 -0
  364. /package/build/{cjs/types → types}/queries/developers/index.d.ts +0 -0
  365. /package/build/{cjs/types → types}/queries/dialogs/dialogs.query.d.ts +0 -0
  366. /package/build/{cjs/types → types}/queries/dialogs/index.d.ts +0 -0
  367. /package/build/{cjs/types → types}/queries/feature-flags/feature-flags.test.d.ts +0 -0
  368. /package/build/{cjs/types → types}/queries/feature-flags/index.d.ts +0 -0
  369. /package/build/{cjs/types → types}/queries/firebase/firebase.query.d.ts +0 -0
  370. /package/build/{cjs/types → types}/queries/firebase/index.d.ts +0 -0
  371. /package/build/{cjs/types → types}/queries/fraud-screening/fraud-screening.query.d.ts +0 -0
  372. /package/build/{cjs/types → types}/queries/fraud-screening/index.d.ts +0 -0
  373. /package/build/{cjs/types → types}/queries/index.d.ts +0 -0
  374. /package/build/{cjs/types → types}/queries/mfa/index.d.ts +0 -0
  375. /package/build/{cjs/types → types}/queries/mfa/organization-settings.query.d.ts +0 -0
  376. /package/build/{cjs/types → types}/queries/notifications/index.d.ts +0 -0
  377. /package/build/{cjs/types → types}/queries/notifications/notifications.query.d.ts +0 -0
  378. /package/build/{cjs/types → types}/queries/organizations/index.d.ts +0 -0
  379. /package/build/{cjs/types → types}/queries/organizations/organizations.query.d.ts +0 -0
  380. /package/build/{cjs/types → types}/queries/payment-links/index.d.ts +0 -0
  381. /package/build/{cjs/types → types}/queries/payment-links/payment-links.query.d.ts +0 -0
  382. /package/build/{cjs/types → types}/queries/payments/index.d.ts +0 -0
  383. /package/build/{cjs/types → types}/queries/payments/payments.query.d.ts +0 -0
  384. /package/build/{cjs/types → types}/queries/payments/payouts.query.d.ts +0 -0
  385. /package/build/{cjs/types → types}/queries/reconciliations/index.d.ts +0 -0
  386. /package/build/{cjs/types → types}/queries/reconciliations/reconciliations-advancements.query.d.ts +0 -0
  387. /package/build/{cjs/types → types}/queries/reconciliations/reconciliations-agenda.query.d.ts +0 -0
  388. /package/build/{cjs/types → types}/queries/reconciliations/reconciliations-alerts.query.d.ts +0 -0
  389. /package/build/{cjs/types → types}/queries/reconciliations/reconciliations-fees.query.d.ts +0 -0
  390. /package/build/{cjs/types → types}/queries/reconciliations/reconciliations-sales.query.d.ts +0 -0
  391. /package/build/{cjs/types → types}/queries/reconciliations/reconciliations.query.d.ts +0 -0
  392. /package/build/{cjs/types → types}/queries/reports/index.d.ts +0 -0
  393. /package/build/{cjs/types → types}/queries/reports/reports.query.d.ts +0 -0
  394. /package/build/{cjs/types → types}/queries/routing-monitors/index.d.ts +0 -0
  395. /package/build/{cjs/types → types}/queries/routing-monitors/routing-monitors.query.d.ts +0 -0
  396. /package/build/{cjs/types → types}/queries/saml-config/index.d.ts +0 -0
  397. /package/build/{cjs/types → types}/queries/saml-config/saml-config.query.d.ts +0 -0
  398. /package/build/{cjs/types → types}/queries/smart-routing/index.d.ts +0 -0
  399. /package/build/{cjs/types → types}/queries/smart-routing/smart-routing.query.d.ts +0 -0
  400. /package/build/{cjs/types → types}/queries/team/index.d.ts +0 -0
  401. /package/build/{cjs/types → types}/queries/team/team.query.d.ts +0 -0
  402. /package/build/{cjs/types → types}/queries/template-reporting/index.d.ts +0 -0
  403. /package/build/{cjs/types → types}/queries/template-reporting/template-reporting.query.d.ts +0 -0
  404. /package/build/{cjs/types → types}/queries/translation/index.d.ts +0 -0
  405. /package/build/{cjs/types → types}/queries/translation/translation.query.d.ts +0 -0
  406. /package/build/{cjs/types → types}/queries/users/index.d.ts +0 -0
  407. /package/build/{cjs/types → types}/queries/users/users.query.d.ts +0 -0
  408. /package/build/{cjs/types → types}/queries/velocity-rules/index.d.ts +0 -0
  409. /package/build/{cjs/types → types}/queries/velocity-rules/velocity-rules.query.d.ts +0 -0
  410. /package/build/{cjs/types → types}/store/index.d.ts +0 -0
  411. /package/build/{cjs/types → types}/types/accounts/accounts.d.ts +0 -0
  412. /package/build/{cjs/types → types}/types/accounts/index.d.ts +0 -0
  413. /package/build/{cjs/types → types}/types/ai/ai.d.ts +0 -0
  414. /package/build/{cjs/types → types}/types/ai/index.d.ts +0 -0
  415. /package/build/{cjs/types → types}/types/allowed-list/allowed-list.d.ts +0 -0
  416. /package/build/{cjs/types → types}/types/allowed-list/index.d.ts +0 -0
  417. /package/build/{cjs/types → types}/types/audit/audit.d.ts +0 -0
  418. /package/build/{cjs/types → types}/types/audit/index.d.ts +0 -0
  419. /package/build/{cjs/types → types}/types/batch-refunds/batch-refunds.d.ts +0 -0
  420. /package/build/{cjs/types → types}/types/batch-refunds/index.d.ts +0 -0
  421. /package/build/{cjs/types → types}/types/checkout/checkout.d.ts +0 -0
  422. /package/build/{cjs/types → types}/types/checkout/index.d.ts +0 -0
  423. /package/build/{cjs/types → types}/types/checkout/styling/styling.d.ts +0 -0
  424. /package/build/{cjs/types → types}/types/cms/cms.d.ts +0 -0
  425. /package/build/{cjs/types → types}/types/cms/index.d.ts +0 -0
  426. /package/build/{cjs/types → types}/types/connection/connection.d.ts +0 -0
  427. /package/build/{cjs/types → types}/types/connection/costs.d.ts +0 -0
  428. /package/build/{cjs/types → types}/types/connection/index.d.ts +0 -0
  429. /package/build/{cjs/types → types}/types/country/country.d.ts +0 -0
  430. /package/build/{cjs/types → types}/types/country/index.d.ts +0 -0
  431. /package/build/{cjs/types → types}/types/customized-api-keys/customized-api-keys.d.ts +0 -0
  432. /package/build/{cjs/types → types}/types/customized-api-keys/index.d.ts +0 -0
  433. /package/build/{cjs/types → types}/types/data-report/conversion-rate.types.d.ts +0 -0
  434. /package/build/{cjs/types → types}/types/data-report/data-report.d.ts +0 -0
  435. /package/build/{cjs/types → types}/types/data-report/fraud.types.d.ts +0 -0
  436. /package/build/{cjs/types → types}/types/data-report/index.d.ts +0 -0
  437. /package/build/{cjs/types → types}/types/developer/developer.d.ts +0 -0
  438. /package/build/{cjs/types → types}/types/developer/index.d.ts +0 -0
  439. /package/build/{cjs/types → types}/types/feature-flags/intex.d.ts +0 -0
  440. /package/build/{cjs/types → types}/types/fraud-screening/fraud-screening.d.ts +0 -0
  441. /package/build/{cjs/types → types}/types/fraud-screening/index.d.ts +0 -0
  442. /package/build/{cjs/types → types}/types/index.d.ts +0 -0
  443. /package/build/{cjs/types → types}/types/mfa/index.d.ts +0 -0
  444. /package/build/{cjs/types → types}/types/mfa/mfa.d.ts +0 -0
  445. /package/build/{cjs/types → types}/types/notifications/index.d.ts +0 -0
  446. /package/build/{cjs/types → types}/types/notifications/notifications.d.ts +0 -0
  447. /package/build/{cjs/types → types}/types/operation-transaction/index.d.ts +0 -0
  448. /package/build/{cjs/types → types}/types/operation-transaction/operation-transaction.d.ts +0 -0
  449. /package/build/{cjs/types → types}/types/organization/index.d.ts +0 -0
  450. /package/build/{cjs/types → types}/types/organization/organization.d.ts +0 -0
  451. /package/build/{cjs/types → types}/types/organization-settings/index.d.ts +0 -0
  452. /package/build/{cjs/types → types}/types/organization-settings/organization-settings.d.ts +0 -0
  453. /package/build/{cjs/types → types}/types/payment/index.d.ts +0 -0
  454. /package/build/{cjs/types → types}/types/payment/payment.d.ts +0 -0
  455. /package/build/{cjs/types → types}/types/payment-links/index.d.ts +0 -0
  456. /package/build/{cjs/types → types}/types/payment-links/payment-links.d.ts +0 -0
  457. /package/build/{cjs/types → types}/types/payouts/index.d.ts +0 -0
  458. /package/build/{cjs/types → types}/types/payouts/payouts.d.ts +0 -0
  459. /package/build/{cjs/types → types}/types/reconciliation/index.d.ts +0 -0
  460. /package/build/{cjs/types → types}/types/reconciliation/reconciliation-advancements.d.ts +0 -0
  461. /package/build/{cjs/types → types}/types/reconciliation/reconciliation-agenda.d.ts +0 -0
  462. /package/build/{cjs/types → types}/types/reconciliation/reconciliation-alerts.d.ts +0 -0
  463. /package/build/{cjs/types → types}/types/reconciliation/reconciliation-fees.d.ts +0 -0
  464. /package/build/{cjs/types → types}/types/reconciliation/reconciliation-sales.d.ts +0 -0
  465. /package/build/{cjs/types → types}/types/reconciliation/reconciliation.d.ts +0 -0
  466. /package/build/{cjs/types → types}/types/reports/index.d.ts +0 -0
  467. /package/build/{cjs/types → types}/types/reports/reports.d.ts +0 -0
  468. /package/build/{cjs/types → types}/types/routing-monitors/index.d.ts +0 -0
  469. /package/build/{cjs/types → types}/types/routing-monitors/routing-monitors.d.ts +0 -0
  470. /package/build/{cjs/types → types}/types/s3-client/index.d.ts +0 -0
  471. /package/build/{cjs/types → types}/types/s3-client/s3-client.d.ts +0 -0
  472. /package/build/{cjs/types → types}/types/saml-config/index.d.ts +0 -0
  473. /package/build/{cjs/types → types}/types/saml-config/saml-config.d.ts +0 -0
  474. /package/build/{cjs/types → types}/types/smart-routing/index.d.ts +0 -0
  475. /package/build/{cjs/types → types}/types/smart-routing/smart-routing.d.ts +0 -0
  476. /package/build/{cjs/types → types}/types/team/index.d.ts +0 -0
  477. /package/build/{cjs/types → types}/types/team/team.d.ts +0 -0
  478. /package/build/{cjs/types → types}/types/template-reporting/common.types.d.ts +0 -0
  479. /package/build/{cjs/types → types}/types/template-reporting/index.d.ts +0 -0
  480. /package/build/{cjs/types → types}/types/template-reporting/schedule.types.d.ts +0 -0
  481. /package/build/{cjs/types → types}/types/template-reporting/template.types.d.ts +0 -0
  482. /package/build/{cjs/types → types}/types/translation/index.d.ts +0 -0
  483. /package/build/{cjs/types → types}/types/translation/translation.d.ts +0 -0
  484. /package/build/{cjs/types → types}/types/user/index.d.ts +0 -0
  485. /package/build/{cjs/types → types}/types/user/user.d.ts +0 -0
  486. /package/build/{cjs/types → types}/types/velocity-rules/index.d.ts +0 -0
  487. /package/build/{cjs/types → types}/types/velocity-rules/velocity-rules.d.ts +0 -0
  488. /package/build/{cjs/types → types}/types/webhook/index.d.ts +0 -0
  489. /package/build/{cjs/types → types}/types/webhook/webhook.d.ts +0 -0
  490. /package/build/{cjs/types → types}/utils/enums.d.ts +0 -0
  491. /package/build/{cjs/types → types}/utils/handler-error.d.ts +0 -0
  492. /package/build/{cjs/types → types}/utils/test-utils.d.ts +0 -0
  493. /package/build/{cjs/types → types}/utils/use-localstorage.d.ts +0 -0
  494. /package/build/{cjs/types → types}/websockets/index.d.ts +0 -0
  495. /package/build/{cjs/types → types}/websockets/use-chart-assistant-socket.d.ts +0 -0
  496. /package/build/{cjs/types → types}/websockets/use-chart-assistant-socket.test.d.ts +0 -0
  497. /package/build/{cjs/types → types}/yuno-dashboard-api-mfe.d.ts +0 -0
@@ -39,5 +39,4 @@ cookie/index.js:
39
39
  * MIT Licensed
40
40
  *)
41
41
  */
42
- function Hr(e){const t=Gr.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[e]);return n}function Vr(){return Hr(document.cookie)}function $r(e){const t=e.headers.get("cookie"),n=t?Hr(t):{},o=function(e){if("undefined"==typeof document||"undefined"==typeof location)return{};switch(e.credentials){case"same-origin":{const t=new URL(e.url);return location.origin===t.origin?Vr():{}}case"include":return Vr();default:return{}}}(e);for(const t in o)e.headers.append("cookie",Gr.serialize(t,o[t]));const r=Ke.getCookies(e.url),a=Object.fromEntries(r.map(e=>[e.key,e.value]));for(const t of r)e.headers.append("cookie",t.toString());return{...o,...a,...n}}var Kr=(e=>(e.HEAD="HEAD",e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.OPTIONS="OPTIONS",e.DELETE="DELETE",e))(Kr||{});class Qr extends C{constructor(e,t,n,o){const r="function"==typeof t?"[custom predicate]":t;super({info:{header:`${e}${r?` ${r}`:""}`,path:t,method:e},resolver:n,options:o}),this.checkRedundantQueryParameters()}checkRedundantQueryParameters(){const{method:e,path:t}=this.info;if(!t||t instanceof RegExp||"function"==typeof t)return;if(Pr(t)===t)return;const n=function(e){return new URL(`/${e}`,"http://localhost").searchParams}(t);n.forEach((e,t)=>{}),_.warn(`Found a redundant usage of query parameters in the request handler URL for "${e} ${t}". Please match against a path instead and access query parameters using "new URL(request.url).searchParams" instead. Learn more: https://mswjs.io/docs/http/intercepting-requests#querysearch-parameters`)}async parse(e){const t=new URL(e.request.url),n=$r(e.request);if("function"==typeof this.info.path){const t=await this.info.path({request:e.request,cookies:n});return{match:"boolean"==typeof t?{matches:t,params:{}}:t,cookies:n}}return{match:this.info.path?Lr(t,this.info.path,e.resolutionContext?.baseUrl):{matches:!1,params:{}},cookies:n}}async predicate(e){const t=this.matchMethod(e.request.method),n=e.parsedResult.match.matches;return t&&n}matchMethod(e){return this.info.method instanceof RegExp?this.info.method.test(e):(t=this.info.method,n=e,t.toLowerCase()===n.toLowerCase());var t,n}extendResolverArgs(e){return{params:e.parsedResult.match?.params||{},cookies:e.parsedResult.cookies}}async log(e){const t=R(e.request.url),n=await async function(e){const t=e.clone(),n=await t.text();return{url:new URL(e.url),method:e.method,headers:Object.fromEntries(e.headers.entries()),body:n}}(e.request),o=await async function(e){const t=e.clone(),n=await t.text(),o=t.status||200;return{status:o,statusText:t.statusText||_r[o]||"OK",headers:Object.fromEntries(t.headers.entries()),body:n}}(e.response),r=(a=o.status)<300?"#69AB32":a<400?"#F0BB4B":"#E95F5D";var a;console.groupCollapsed(_.formatMessage(`${An()} ${e.request.method} ${t} (%c${o.status} ${o.statusText}%c)`),`color:${r}`,"color:inherit"),console.log("Request",n),console.log("Handler:",this),console.log("Response",o),console.groupEnd()}}function Jr(e){return(t,n,o={})=>new Qr(e,t,n,o)}const Xr={all:Jr(/.+/),head:Jr(Kr.HEAD),get:Jr(Kr.GET),post:Jr(Kr.POST),put:Jr(Kr.PUT),delete:Jr(Kr.DELETE),patch:Jr(Kr.PATCH),options:Jr(Kr.OPTIONS)},Yr=Symbol("bodyType");class Zr extends Or{[Yr]=null;constructor(e,t){const n=jt(t);super(e,n),function(e,t){t.type&&Object.defineProperty(e,"type",{value:t.type,enumerable:!0,writable:!1});const n=t.headers.get("set-cookie");if(n&&(Object.defineProperty(e,Ot,{value:n,enumerable:!1,writable:!1}),"undefined"!=typeof document)){const e=It.prototype.getSetCookie.call(t.headers);for(const t of e)document.cookie=t}}(this,n)}static error(){return super.error()}static text(e,t){const n=jt(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/plain"),n.headers.has("Content-Length")||n.headers.set("Content-Length",e?new Blob([e]).size.toString():"0"),new Zr(e,n)}static json(e,t){const n=jt(t);n.headers.has("Content-Type")||n.headers.set("Content-Type","application/json");const o=JSON.stringify(e);return n.headers.has("Content-Length")||n.headers.set("Content-Length",o?new Blob([o]).size.toString():"0"),new Zr(o,n)}static xml(e,t){const n=jt(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/xml"),new Zr(e,n)}static html(e,t){const n=jt(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/html"),new Zr(e,n)}static arrayBuffer(e,t){const n=jt(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","application/octet-stream"),e&&!n.headers.has("Content-Length")&&n.headers.set("Content-Length",e.byteLength.toString()),new Zr(e,n)}static formData(e,t){return new Zr(e,jt(t))}}k("undefined"!=typeof URL,_.formatMessage('Global "URL" class is not defined. This likely means that you\'re running MSW in an environment that doesn\'t support all Node.js standard API (e.g. React Native). If that\'s the case, please use an appropriate polyfill for the "URL" class, like "react-native-url-polyfill".'));var ea,ta={content:[{test_credential:!0,organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83146,code:"a6d708a9-0227-44eb-a044-0738b644d0fb",order_id:"1739814014074",status:"ERROR",sub_status:"ERROR",amount_value:300,currency_code:"MXN",created_at:"2025-02-17T17:40:46.747839Z",updated_at:"2025-02-17T17:40:48.555749Z",captured:0,refunded:0,country:"MX",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",description:"test description",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"5d1558b0-4e6a-4268-a543-7b713b1de986",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82453,payment_id:83146,document_number:"IESF960301230",email:"rizinuta@fijwam.eg"}],card_transaction:[{card_transaction_id:19733,transaction_id:83459,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]},{test_credential:!1,organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83145,code:"240622a6-654d-44de-ae61-b718afeeb78f",order_id:"1739813914789",status:"ERROR",sub_status:"ERROR",amount_value:300,currency_code:"MXN",created_at:"2025-02-17T17:39:04.220012Z",updated_at:"2025-02-17T17:39:05.658776Z",captured:0,refunded:0,country:"MX",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",description:"test description",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"2e1180e4-4a2a-4f63-ab7a-25e2ec07314a",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82452,payment_id:83145,document_number:"GOOT991014HASNLT07",email:"beisguw@obi.cv"}],card_transaction:[{card_transaction_id:19732,transaction_id:83458,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]},{organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83144,code:"98855a76-4a79-4d2e-9a0a-876a1541a95e",order_id:"2222T",status:"ERROR",sub_status:"ERROR",amount_value:250,currency_code:"MXN",created_at:"2025-02-17T17:38:17.243160Z",updated_at:"2025-02-17T17:38:18.866741Z",captured:0,refunded:0,country:"MX",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",description:"SUCCEEDED",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"250e2c9c-b178-4762-9364-9037a8ed99a6",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82451,payment_id:83144,document_number:"9999999999",email:"tito.gonzalez@y.uno"}],card_transaction:[{card_transaction_id:19731,transaction_id:83457,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]}],last_page:!0},na={test_credential:!0,id:83146,code:"a6d708a9-0227-44eb-a044-0738b644d0fb",order_id:"1739814014074",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",organization_customer_external_id:"1739814014074",checkout_session:"b6ac7dcf-d76e-4d94-a781-5c6642aac69b",status:"ERROR",amount_value:300,currency_code:"MXN",description:"test description",created_at:"2025-02-17T17:40:46.747839Z",updated_at:"2025-02-17T17:40:48.555749Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"29ebcc56-977d-44ee-aea0-6aa5fc1893d7",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b",platform:"WEB",routing_flow_code:"06d778ad-1824-41c8-a80f-e65a8e2417ac",captured:0,refunded:0,account_integration_code:null,metadata:"[]",chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"00df007e-5603-4173-87cf-336fe81429a4",version:null,merchant_reference:"1739814014074",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82453,email:"rizinuta@fijwam.eg",gender:"female",last_name:"Hegmann",created_at:"2025-02-17T17:40:46.756582+00:00",first_name:"Aaron",ip_address:"187.189.168.116",payment_id:83146,updated_at:"2025-02-17T17:40:46.756584+00:00",nationality:"MX",phone_number:"3991111111",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",date_of_birth:"1990-02-28",document_type:"RFC",document_number:"IESF960301230",device_fingerprint:null,phone_country_code:"52",device_fingerprints:"{}",geolocation_latitude:null,browser_info_language:"en",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36",payment_method_payer_id:null,browser_info_color_depth:"5",browser_info_java_enabled:"false",browser_info_screen_width:"8",browser_info_accept_header:"application/json",browser_info_screen_height:"8",browser_info_accept_browser:"*/*",browser_info_accept_content:"*/*",merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"1739814014074",browser_info_browser_time_difference:"300"}],payment_order:[{id:73140,created_at:"2025-02-17T17:40:46.789867+00:00",fee_amount:null,payment_id:83146,tip_amount:null,updated_at:"2025-02-17T17:40:46.789868+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73619,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"Clothes",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:40:46.793886+00:00",updated_at:"2025-02-17T17:40:46.793888+00:00",unit_amount:300,payment_order_id:73140,manufacture_part_number:"XYZ123456"}],customer_payer_address:[{id:161666,type:"SHIPPING",created_at:"2025-02-17T17:40:46.767136+00:00",updated_at:"2025-02-17T17:40:46.767138+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"68890000",customer_payer_id:82453,address_neighborhood:null},{id:161667,type:"BILLING",created_at:"2025-02-17T17:40:46.77174+00:00",updated_at:"2025-02-17T17:40:46.771742+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:null,address_country:"MX",address_zip_code:"68890000",customer_payer_id:82453,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},oa={test_credential:!1,id:83145,code:"240622a6-654d-44de-ae61-b718afeeb78f",order_id:"1739813914789",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",organization_customer_external_id:"1739813914789",checkout_session:"b80837d6-a234-486f-a28d-d6bf3fab9da3",status:"ERROR",amount_value:300,currency_code:"MXN",description:"test description",created_at:"2025-02-17T17:39:04.220012Z",updated_at:"2025-02-17T17:39:05.658776Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"f68e1740-7c89-443b-bd17-0a80d758477d",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b80837d6-a234-486f-a28d-d6bf3fab9da3",platform:"WEB",routing_flow_code:"e45f1ef1-3d24-4d83-bc91-2f6ca5159dc7",captured:0,refunded:0,account_integration_code:null,metadata:"[]",chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"faf5c3bc-eae2-4192-9680-3783332796af",version:null,merchant_reference:"1739813914789",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82452,email:"beisguw@obi.cv",gender:"female",last_name:"Hegmann",created_at:"2025-02-17T17:39:04.227478+00:00",first_name:"Aaron",ip_address:"187.189.168.116",payment_id:83145,updated_at:"2025-02-17T17:39:04.22748+00:00",nationality:"MX",phone_number:"3991111111",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",date_of_birth:"1990-02-28",document_type:"CURP",document_number:"GOOT991014HASNLT07",device_fingerprint:null,phone_country_code:"52",device_fingerprints:"{}",geolocation_latitude:null,browser_info_language:"en",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36",payment_method_payer_id:null,browser_info_color_depth:"5",browser_info_java_enabled:"false",browser_info_screen_width:"8",browser_info_accept_header:"application/json",browser_info_screen_height:"8",browser_info_accept_browser:"*/*",browser_info_accept_content:"*/*",merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"1739813914789",browser_info_browser_time_difference:"300"}],payment_order:[{id:73139,created_at:"2025-02-17T17:39:04.25785+00:00",fee_amount:null,payment_id:83145,tip_amount:null,updated_at:"2025-02-17T17:39:04.257851+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73618,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"Clothes",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:39:04.261319+00:00",updated_at:"2025-02-17T17:39:04.26132+00:00",unit_amount:300,payment_order_id:73139,manufacture_part_number:"XYZ123456"}],customer_payer_address:[{id:161664,type:"SHIPPING",created_at:"2025-02-17T17:39:04.237363+00:00",updated_at:"2025-02-17T17:39:04.237364+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"68890000",customer_payer_id:82452,address_neighborhood:null},{id:161665,type:"BILLING",created_at:"2025-02-17T17:39:04.241131+00:00",updated_at:"2025-02-17T17:39:04.241132+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:null,address_country:"MX",address_zip_code:"68890000",customer_payer_id:82452,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},ra={id:83144,code:"98855a76-4a79-4d2e-9a0a-876a1541a95e",order_id:"2222T",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",organization_customer_external_id:"Merchan3",checkout_session:"47f2445d-9105-49ce-9a2a-659977159272",status:"ERROR",amount_value:250,currency_code:"MXN",description:"SUCCEEDED",created_at:"2025-02-17T17:38:17.243160Z",updated_at:"2025-02-17T17:38:18.866741Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"6e6a2156-e2ed-40e5-92fa-b105f9e56433",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://google.com/?checkoutSession=47f2445d-9105-49ce-9a2a-659977159272",platform:null,routing_flow_code:"19ceb649-9a47-4fd4-bb6f-a83a09c62f0c",captured:0,refunded:0,account_integration_code:null,metadata:'[{"key":"country?","value":"MXN"},{"key":"Merchan_type","value":"D05,T5,T6,D02"}]',chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"5826b7b5-a68b-44e9-b338-a95045696384",version:null,merchant_reference:"2222T",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82451,email:"tito.gonzalez@y.uno",gender:"M",last_name:"Olivares",created_at:"2025-02-17T17:38:17.248723+00:00",first_name:"Tito Gonzalez",ip_address:"192.0.2.1",payment_id:83144,updated_at:"2025-02-17T17:38:17.248725+00:00",nationality:"CO",phone_number:"4499068531",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",date_of_birth:"1993-11-11",document_type:"INE",document_number:"9999999999",device_fingerprint:"hi88287gbd8d7d782ge0023",phone_country_code:"52",device_fingerprints:'{"DEFAULT":"hi88287gbd8d7d782ge0023"}',geolocation_latitude:null,browser_info_language:"es",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"string",payment_method_payer_id:null,browser_info_color_depth:"8",browser_info_java_enabled:null,browser_info_screen_width:"720",browser_info_accept_header:"string",browser_info_screen_height:"1280",browser_info_accept_browser:null,browser_info_accept_content:null,merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"Merchan3",browser_info_browser_time_difference:null}],payment_order:[{id:73138,created_at:"2025-02-17T17:38:17.268872+00:00",fee_amount:0,payment_id:83144,tip_amount:null,updated_at:"2025-02-17T17:38:17.268873+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73615,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:38:17.272809+00:00",updated_at:"2025-02-17T17:38:17.27281+00:00",unit_amount:500,payment_order_id:73138,manufacture_part_number:"XYZ123456"},{id:73616,name:"t-shirt",brand:"Nike",id_item:"333d",category:"clothes",quantity:1,sku_code:"292929292",created_at:"2025-02-17T17:38:17.275665+00:00",updated_at:"2025-02-17T17:38:17.275666+00:00",unit_amount:1e3,payment_order_id:73138,manufacture_part_number:"0A98C0A9"},{id:73617,name:"t-shirt",brand:"FFF",id_item:"089qq8998",category:"clothes",quantity:2,sku_code:"098091",created_at:"2025-02-17T17:38:17.278489+00:00",updated_at:"2025-02-17T17:38:17.27849+00:00",unit_amount:1500,payment_order_id:73138,manufacture_part_number:"0SAD9DD9D"}],customer_payer_address:[{id:161662,type:"SHIPPING",created_at:"2025-02-17T17:38:17.253338+00:00",updated_at:"2025-02-17T17:38:17.253339+00:00",address_city:"Aguascalientes",address_state:"Aguascalientes",address_line_1:"Paseo de la asunción sur 503",address_line_2:"Jardines de Aguascalientes",address_country:"MX",address_zip_code:"20270",customer_payer_id:82451,address_neighborhood:null},{id:161663,type:"BILLING",created_at:"2025-02-17T17:38:17.256549+00:00",updated_at:"2025-02-17T17:38:17.25655+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"111111",customer_payer_id:82451,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},aa=[{created_at:"2025-05-25T13:50:51.304216Z",amount_value:32350,currency_code:"COP",transaction_type:"PURCHASE",status_history:"DECLINED",provider_id:"REDEBAN_DIRECT",code:"d054b44d-8e22-486a-ac66-f76cc8ddf97a",category:"CARD",merchant_reference:"CO_Order_2337202644",description:null,title_description:"timeLine.purchaseDeclined",light_text:"by provider",show_amount:!0,show_provider:!0,provider_status:null,sub_status_history:null,provider_response_code:null,provider_raw_response:null,parent_payment_method_type:null,wallet_title_description:""},{created_at:"2025-05-25T13:50:49.783312Z",amount_value:32350,currency_code:"COP",transaction_type:"PURCHASE",status_history:"CREATED",provider_id:"REDEBAN_DIRECT",code:"d054b44d-8e22-486a-ac66-f76cc8ddf97a",category:"CARD",merchant_reference:"CO_Order_2337202644",description:"timeLine.descriptionPurchaseCreated",title_description:"timeLine.purchaseCreated",light_text:null,show_amount:!0,show_provider:!0,provider_status:null,sub_status_history:null,provider_response_code:null,provider_raw_response:null,parent_payment_method_type:null,wallet_title_description:""}],ia={content:[{test_credential:!0,id:"83459",code:"5d1558b0-4e6a-4268-a543-7b713b1de986",type:"PURCHASE",transaction_data_type:"transaction",vault_on_success:"",parent_id:"",payment_id:83146,customer_payment_method_code:"",status:"ERROR",category:"CARD",amount:300,created_at:"2025-02-17T17:40:47.474187Z",updated_at:"2025-02-17T17:40:48.203256Z",payment_method:{vaulted_token:"",type:"CARD",vault_on_success:!1,token:"fb0f5521-d61e-43f0-883e-a6629de43f1a",payment_method_detail:{card:{verify:"false",capture:"true",installments:"1",first_installments_deferral:"",installments_type:null,installments_amount:null,soft_descriptor:null,authorization_code:null,retrieval_reference_number:null,card_data:{holder_name:"TITO GLEZ",iin:"41111111",ifd:"1111",expiration_month:"5",expiration_year:"27",number_lenght:"16",security_code_lenght:"3",brand:"VISA",issuer_name:"CONOTOXIA SP Z O O",issuer_code:null,category:"CLASSIC",type:"DEBIT",installments:""}},bnpl:null,bank_transfer:null,wallet:null,payment_link:null,ticket:null}},response_code:"INVALID_CREDENTIALS",response_message:"Invalid credentials",merchant_reference:"1739814014074",provider_data:{id:"83459",transaction_id:"",account_id:"",sub_status:"",status:"",status_detail:"3001",raw_response:{value:'{"code":3001,"message":"Invalid credentials"}'},response_message:"Invalid credentials",raw_notification:"",action_data:'{"image":null,"image_type":null,"redirect":{"init_url":"","success_url":"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b","error_url":"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b"},"otp":{"length":0,"expiration_time":null,"retries":{"accepts":null,"number":null},"payment_instructions":null},"payment_code":{"code":null,"reference":"","expiration_time":null},"three_d_secure_redirect":{"init_url":null,"access_token":null,"redirect_url":null},"request_html":null,"sdk_provider":{"gateway":"","provider_id":null,"merchant_id":"","merchant_name":null,"amount":{"currency":"","value":"0"},"protocol_version":null,"payment_methods":null,"payment_method_type":null,"supported_networks":null,"session":null,"init_url":null,"client_id":null,"intent":null,"components":null},"expiration_time":null,"image_details":null,"info":{"screen_info":null},"render_html":null,"ui":null}'},reason:null,description:"test description",one_time_token:"fb0f5521-d61e-43f0-883e-a6629de43f1a",require_action_type:"CHECK_STATUS",parent_provider:"",account_integration_code:"9bf85421-5326-4616-826e-8575a5d69629",technical_reverse_provider_transaction_id:"",technical_reverse_transaction_type:"",technical_reverse_status:"",stand_alone:null,fraud_screening:null}]},sa=[Xr.post("https://dev.y.uno/dashboard-bff/api/payments/lazy",function(){return Zr.json(ta)}),Xr.get("https://dev.y.uno/dashboard-bff/api/payments/v2/a6d708a9-0227-44eb-a044-0738b644d0fb",function(){return Zr.json(na)}),Xr.get("https://dev.y.uno/dashboard-bff/api/payments/v2/240622a6-654d-44de-ae61-b718afeeb78f",function(){return Zr.json(oa)}),Xr.get("https://dev.y.uno/dashboard-bff/api/payments/v2/98855a76-4a79-4d2e-9a0a-876a1541a95e",function(){return Zr.json(ra)}),Xr.get("https://dev.y.uno/dashboard-bff/api/transactions/by-payment/:id/history",function(){return Zr.json(aa)}),Xr.get("https://dev.y.uno/dashboard-bff/api/payments/:id/transactions/details",function(){return Zr.json(ia)})],ca={total:{total_conversion_rate:.8491,insight_payment_total_conversion_rate_periodicity:{"2025-05-05":.854357872962925,"2025-05-06":.8464466315045402,"2025-05-07":.8464068445151444}},cards:{cards_approvals_rate:.8537,insight_payment_total_conversion_rate_periodicity_for_card:{"2025-05-05":.8535902892724836,"2025-05-06":.8544554997052155,"2025-05-07":.8529382291046492}},apms:{apms_conversion_rate:.846,insight_payment_total_conversion_rate_periodicity_for_apm:{"2025-05-05":.8548995923297599,"2025-05-06":.8409580339477246,"2025-05-07":.8419575308800616}},cards_without_insufficient_funds:{without_insufficient_funds_conversion_rate:.8993,insight_conversion_rate_without_insufficient_funds:{"2025-05-05":.9018141803473709,"2025-05-06":.9025951512661153,"2025-05-07":.8933830566240437}}},ua={fraud:{conversion_rate_fraud_transactions:0,conversion_fraud_transactions_periodicity:null},"3ds":{conversion_rate_card_transactions3ds:.25,conversion_rate_card_transactions3ds_periodicity:{"2025-05-05":.2391304347826087,"2025-05-06":.3023255813953488,"2025-05-07":.21568627450980393}}},la={sales_volume_metric_group:{distribution:[{key:"2025-04-03",total:2146090},{key:"2025-04-04",total:498220},{key:"2025-04-05",total:563560},{key:"2025-04-06",total:822600},{key:"2025-04-07",total:660445},{key:"2025-04-08",total:553400},{key:"2025-04-09",total:464195},{key:"2025-04-10",total:470835},{key:"2025-04-11",total:3482795},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:207200},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:277185},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:152590},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:1060845},{key:"2025-04-21",total:715160},{key:"2025-04-22",total:686465},{key:"2025-04-23",total:268490},{key:"2025-04-24",total:699500},{key:"2025-04-25",total:306090},{key:"2025-04-26",total:469500},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:1610220},{key:"2025-04-29",total:699965},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:666160},{key:"2025-05-02",total:52565}],total:19121355,average:637378.5},total_payments:{distribution:[{key:"2025-04-03",total:18},{key:"2025-04-04",total:10},{key:"2025-04-05",total:6},{key:"2025-04-06",total:9},{key:"2025-04-07",total:14},{key:"2025-04-08",total:12},{key:"2025-04-09",total:13},{key:"2025-04-10",total:12},{key:"2025-04-11",total:23},{key:"2025-04-12",total:3},{key:"2025-04-13",total:5},{key:"2025-04-14",total:7},{key:"2025-04-15",total:7},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:3},{key:"2025-04-19",total:1},{key:"2025-04-20",total:11},{key:"2025-04-21",total:13},{key:"2025-04-22",total:15},{key:"2025-04-23",total:10},{key:"2025-04-24",total:14},{key:"2025-04-25",total:9},{key:"2025-04-26",total:6},{key:"2025-04-27",total:3},{key:"2025-04-28",total:21},{key:"2025-04-29",total:15},{key:"2025-04-30",total:9},{key:"2025-05-01",total:7},{key:"2025-05-02",total:2}],total:285,average:9.5},average_ticket:{distribution:[{key:"2025-04-03",total:118580.63,min_ticket:12665,max_ticket:882e3},{key:"2025-04-04",total:51146.67,min_ticket:25900,max_ticket:121500},{key:"2025-04-05",total:74692,min_ticket:23800,max_ticket:190100},{key:"2025-04-06",total:85150,min_ticket:20900,max_ticket:141400},{key:"2025-04-07",total:46528.75,min_ticket:16200,max_ticket:125e3},{key:"2025-04-08",total:48290.91,min_ticket:21900,max_ticket:106700},{key:"2025-04-09",total:34366.25,min_ticket:13900,max_ticket:64005},{key:"2025-04-10",total:39730.45,min_ticket:15900,max_ticket:74545},{key:"2025-04-11",total:76968.93,min_ticket:15900,max_ticket:454200},{key:"2025-04-12",total:42528.33,min_ticket:29835,max_ticket:66130},{key:"2025-04-13",total:48800,min_ticket:21900,max_ticket:64800},{key:"2025-04-14",total:35138.57,min_ticket:7900,max_ticket:55100},{key:"2025-04-15",total:41117,min_ticket:35800,max_ticket:53100},{key:"2025-04-16",total:35497,min_ticket:21420,max_ticket:53700},{key:"2025-04-17",total:73650,min_ticket:47700,max_ticket:99600},{key:"2025-04-18",total:47947.5,min_ticket:39200,max_ticket:56695},{key:"2025-04-19",total:41800,min_ticket:41800,max_ticket:41800},{key:"2025-04-20",total:61248.33,min_ticket:25900,max_ticket:121600},{key:"2025-04-21",total:74095,min_ticket:16200,max_ticket:308e3},{key:"2025-04-22",total:47066.54,min_ticket:15900,max_ticket:98200},{key:"2025-04-23",total:28732.22,min_ticket:9900,max_ticket:39200},{key:"2025-04-24",total:40025,min_ticket:20200,max_ticket:109600},{key:"2025-04-25",total:34755.71,min_ticket:15900,max_ticket:45390},{key:"2025-04-26",total:84900,min_ticket:34800,max_ticket:130400},{key:"2025-04-27",total:121600,min_ticket:5e4,max_ticket:162300},{key:"2025-04-28",total:62873.33,min_ticket:21900,max_ticket:293400},{key:"2025-04-29",total:47213.75,min_ticket:11900,max_ticket:113700},{key:"2025-04-30",total:53593.33,min_ticket:27800,max_ticket:120600},{key:"2025-05-01",total:93426.67,min_ticket:15900,max_ticket:159500},{key:"2025-05-02",total:26282.5,min_ticket:22900,max_ticket:29665}],total:58001.28,min_ticket:7900,max_ticket:882e3},conversion_rate:null,total_payments_and_conversion_rate:{payments:{distribution:[{key:"2025-04-03",total:18},{key:"2025-04-04",total:10},{key:"2025-04-05",total:6},{key:"2025-04-06",total:9},{key:"2025-04-07",total:14},{key:"2025-04-08",total:12},{key:"2025-04-09",total:13},{key:"2025-04-10",total:12},{key:"2025-04-11",total:23},{key:"2025-04-12",total:3},{key:"2025-04-13",total:5},{key:"2025-04-14",total:7},{key:"2025-04-15",total:7},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:3},{key:"2025-04-19",total:1},{key:"2025-04-20",total:11},{key:"2025-04-21",total:13},{key:"2025-04-22",total:15},{key:"2025-04-23",total:10},{key:"2025-04-24",total:14},{key:"2025-04-25",total:9},{key:"2025-04-26",total:6},{key:"2025-04-27",total:3},{key:"2025-04-28",total:21},{key:"2025-04-29",total:15},{key:"2025-04-30",total:9},{key:"2025-05-01",total:7},{key:"2025-05-02",total:2}],total:285},conversion_rate:{distribution:[{key:"2025-04-03",total:.8889},{key:"2025-04-04",total:.9},{key:"2025-04-05",total:.8333},{key:"2025-04-06",total:.8889},{key:"2025-04-07",total:.8571},{key:"2025-04-08",total:.9167},{key:"2025-04-09",total:.9231},{key:"2025-04-10",total:.9167},{key:"2025-04-11",total:.6087},{key:"2025-04-12",total:1},{key:"2025-04-13",total:.6},{key:"2025-04-14",total:1},{key:"2025-04-15",total:.7143},{key:"2025-04-16",total:1},{key:"2025-04-17",total:1},{key:"2025-04-18",total:.6667},{key:"2025-04-19",total:1},{key:"2025-04-20",total:.2727},{key:"2025-04-21",total:.6154},{key:"2025-04-22",total:.8667},{key:"2025-04-23",total:.9},{key:"2025-04-24",total:.8571},{key:"2025-04-25",total:.7778},{key:"2025-04-26",total:.6667},{key:"2025-04-27",total:1},{key:"2025-04-28",total:.5714},{key:"2025-04-29",total:.8},{key:"2025-04-30",total:1},{key:"2025-05-01",total:.8571},{key:"2025-05-02",total:1}],total:.793}},quantity_status_distribution:[{SUCCEEDED:{distribution:[{key:"2025-04-03",total:16},{key:"2025-04-04",total:9},{key:"2025-04-05",total:5},{key:"2025-04-06",total:8},{key:"2025-04-07",total:12},{key:"2025-04-08",total:11},{key:"2025-04-09",total:12},{key:"2025-04-10",total:11},{key:"2025-04-11",total:14},{key:"2025-04-12",total:3},{key:"2025-04-13",total:3},{key:"2025-04-14",total:7},{key:"2025-04-15",total:5},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:2},{key:"2025-04-19",total:1},{key:"2025-04-20",total:3},{key:"2025-04-21",total:8},{key:"2025-04-22",total:13},{key:"2025-04-23",total:9},{key:"2025-04-24",total:12},{key:"2025-04-25",total:7},{key:"2025-04-26",total:4},{key:"2025-04-27",total:3},{key:"2025-04-28",total:12},{key:"2025-04-29",total:12},{key:"2025-04-30",total:9},{key:"2025-05-01",total:6},{key:"2025-05-02",total:2}],total:226}},{DECLINED:{distribution:[{key:"2025-04-03",total:2},{key:"2025-04-04",total:1},{key:"2025-04-05",total:1},{key:"2025-04-06",total:1},{key:"2025-04-07",total:2},{key:"2025-04-08",total:1},{key:"2025-04-09",total:1},{key:"2025-04-10",total:1},{key:"2025-04-11",total:9},{key:"2025-04-13",total:2},{key:"2025-04-15",total:2},{key:"2025-04-18",total:1},{key:"2025-04-20",total:8},{key:"2025-04-21",total:5},{key:"2025-04-22",total:2},{key:"2025-04-23",total:1},{key:"2025-04-24",total:2},{key:"2025-04-25",total:2},{key:"2025-04-26",total:2},{key:"2025-04-28",total:9},{key:"2025-04-29",total:3},{key:"2025-05-01",total:1}],total:59}}],volume_successful_payments:13108290,volume_successful_payments_by_periodicity:[{key:"2025-04-03",total:1897290},{key:"2025-04-04",total:460320},{key:"2025-04-05",total:373460},{key:"2025-04-06",total:681200},{key:"2025-04-07",total:558345},{key:"2025-04-08",total:531200},{key:"2025-04-09",total:412395},{key:"2025-04-10",total:437035},{key:"2025-04-11",total:1077565},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:146400},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:205585},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:95895},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:183745},{key:"2025-04-21",total:592760},{key:"2025-04-22",total:611865},{key:"2025-04-23",total:258590},{key:"2025-04-24",total:480300},{key:"2025-04-25",total:243290},{key:"2025-04-26",total:339600},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:754480},{key:"2025-04-29",total:566565},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:560560},{key:"2025-05-02",total:52565}],quantity_successful_payments:226,quantity_successful_payments_by_periodicity:[{key:"2025-04-03",total:16},{key:"2025-04-04",total:9},{key:"2025-04-05",total:5},{key:"2025-04-06",total:8},{key:"2025-04-07",total:12},{key:"2025-04-08",total:11},{key:"2025-04-09",total:12},{key:"2025-04-10",total:11},{key:"2025-04-11",total:14},{key:"2025-04-12",total:3},{key:"2025-04-13",total:3},{key:"2025-04-14",total:7},{key:"2025-04-15",total:5},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:2},{key:"2025-04-19",total:1},{key:"2025-04-20",total:3},{key:"2025-04-21",total:8},{key:"2025-04-22",total:13},{key:"2025-04-23",total:9},{key:"2025-04-24",total:12},{key:"2025-04-25",total:7},{key:"2025-04-26",total:4},{key:"2025-04-27",total:3},{key:"2025-04-28",total:12},{key:"2025-04-29",total:12},{key:"2025-04-30",total:9},{key:"2025-05-01",total:6},{key:"2025-05-02",total:2}],average_provider_latency:[{PAYMENTEZ:{distribution:[{key:"2025-04-03",total:1582.1429},{key:"2025-04-04",total:1972.6667},{key:"2025-04-05",total:2059.25},{key:"2025-04-06",total:1772},{key:"2025-04-07",total:1236.1667},{key:"2025-04-08",total:1310.7143},{key:"2025-04-09",total:1645.25},{key:"2025-04-10",total:2277},{key:"2025-04-11",total:1729.7143},{key:"2025-04-12",total:0},{key:"2025-04-13",total:1870},{key:"2025-04-14",total:1109},{key:"2025-04-15",total:1110},{key:"2025-04-16",total:1255.5},{key:"2025-04-17",total:0},{key:"2025-04-18",total:0},{key:"2025-04-19",total:1930},{key:"2025-04-20",total:0},{key:"2025-04-21",total:1502.3333},{key:"2025-04-22",total:2444.25},{key:"2025-04-23",total:1450.6667},{key:"2025-04-24",total:1376.75},{key:"2025-04-25",total:2074},{key:"2025-04-26",total:2339.75},{key:"2025-04-27",total:0},{key:"2025-04-28",total:1719.8},{key:"2025-04-29",total:1600.5},{key:"2025-04-30",total:1692.5},{key:"2025-05-01",total:1468.5},{key:"2025-05-02",total:0}],total:1727.7576}},{NUVEI:{distribution:[{key:"2025-04-03",total:3110.5},{key:"2025-04-04",total:2706.6667},{key:"2025-04-05",total:3637.5},{key:"2025-04-06",total:2654.4},{key:"2025-04-07",total:3068.1429},{key:"2025-04-08",total:2907.6},{key:"2025-04-09",total:2998.6667},{key:"2025-04-10",total:2732.5714},{key:"2025-04-11",total:3071.4167},{key:"2025-04-12",total:3222},{key:"2025-04-13",total:3020.3333},{key:"2025-04-14",total:2870},{key:"2025-04-15",total:3333},{key:"2025-04-16",total:3319},{key:"2025-04-17",total:3217},{key:"2025-04-18",total:2612},{key:"2025-04-19",total:0},{key:"2025-04-20",total:1829.7778},{key:"2025-04-21",total:2948.875},{key:"2025-04-22",total:3199},{key:"2025-04-23",total:2890.5},{key:"2025-04-24",total:3157},{key:"2025-04-25",total:3302},{key:"2025-04-26",total:2752},{key:"2025-04-27",total:3965.6667},{key:"2025-04-28",total:3059.7333},{key:"2025-04-29",total:3012.1},{key:"2025-04-30",total:3227.6667},{key:"2025-05-01",total:2788.6667},{key:"2025-05-02",total:3353}],total:2973.3793}},{WOMPI:{distribution:[{key:"2025-04-03",total:6647},{key:"2025-04-04",total:5687},{key:"2025-04-05",total:0},{key:"2025-04-06",total:5731.6667},{key:"2025-04-07",total:4024},{key:"2025-04-08",total:8196},{key:"2025-04-09",total:6371.25},{key:"2025-04-10",total:4857},{key:"2025-04-11",total:5636.6364},{key:"2025-04-12",total:0},{key:"2025-04-13",total:7057.5},{key:"2025-04-14",total:0},{key:"2025-04-15",total:6098.3333},{key:"2025-04-16",total:7633},{key:"2025-04-17",total:4292},{key:"2025-04-18",total:7642.5},{key:"2025-04-19",total:0},{key:"2025-04-20",total:7386.5},{key:"2025-04-21",total:6093.1667},{key:"2025-04-22",total:7832.75},{key:"2025-04-23",total:5280.4},{key:"2025-04-24",total:7190.5},{key:"2025-04-25",total:0},{key:"2025-04-26",total:4156},{key:"2025-04-27",total:0},{key:"2025-04-28",total:8211.6667},{key:"2025-04-29",total:6907.3333},{key:"2025-04-30",total:6054},{key:"2025-05-01",total:7726.3333},{key:"2025-05-02",total:0}],total:6579.7901}}],total_subscriptions_and_conversion_rate:{subscriptions:{distribution:null,total:0},subscriptions_succeeded:{distribution:null,total:0},conversion_rate:{distribution:null,total:0}},total_status_distribution:[{SUCCEEDED:{distribution:[{key:"2025-04-03",total:1897290},{key:"2025-04-04",total:460320},{key:"2025-04-05",total:373460},{key:"2025-04-06",total:681200},{key:"2025-04-07",total:558345},{key:"2025-04-08",total:531200},{key:"2025-04-09",total:412395},{key:"2025-04-10",total:437035},{key:"2025-04-11",total:1077565},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:146400},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:205585},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:95895},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:183745},{key:"2025-04-21",total:592760},{key:"2025-04-22",total:611865},{key:"2025-04-23",total:258590},{key:"2025-04-24",total:480300},{key:"2025-04-25",total:243290},{key:"2025-04-26",total:339600},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:754480},{key:"2025-04-29",total:566565},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:560560},{key:"2025-05-02",total:52565}],total:13108290}},{DECLINED:{distribution:[{key:"2025-04-03",total:248800},{key:"2025-04-04",total:37900},{key:"2025-04-05",total:190100},{key:"2025-04-06",total:141400},{key:"2025-04-07",total:102100},{key:"2025-04-08",total:22200},{key:"2025-04-09",total:51800},{key:"2025-04-10",total:33800},{key:"2025-04-11",total:2405230},{key:"2025-04-13",total:60800},{key:"2025-04-15",total:71600},{key:"2025-04-18",total:56695},{key:"2025-04-20",total:877100},{key:"2025-04-21",total:122400},{key:"2025-04-22",total:74600},{key:"2025-04-23",total:9900},{key:"2025-04-24",total:219200},{key:"2025-04-25",total:62800},{key:"2025-04-26",total:129900},{key:"2025-04-28",total:855740},{key:"2025-04-29",total:133400},{key:"2025-05-01",total:105600}],total:6013065}}]};!function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(ea||(ea={}));var da={sales_volume_metric_group:la.sales_volume_metric_group,total_payments:la.total_payments},ha=Xr.get("/api/insights/overview-metrics",function(){return Zr.json(da)}),pa=[Xr.get("/api/v3/insights/overview-metrics/".concat(ea.GENERAL),function(){return Zr.json({sales_volume_metric_group:da.sales_volume_metric_group})}),Xr.get("/api/v3/insights/overview-metrics/".concat(ea.LATENCY),function(){return Zr.json({latency_metrics:{average_response_time:250,distribution:[{key:"2025-04-01",value:200},{key:"2025-04-02",value:300}]}})}),Xr.get("/api/v3/insights/overview-metrics/".concat(ea.STATUS),function(){return Zr.json({status_metrics:{success_rate:95,distribution:[{key:"2025-04-01",value:98},{key:"2025-04-02",value:92}]}})}),Xr.get("/api/v3/insights/overview-metrics/".concat(ea.SUBSCRIPTIONS),function(){return Zr.json({subscription_metrics:{active_subscriptions:1e3,distribution:[{key:"2025-04-01",value:950},{key:"2025-04-02",value:1050}]}})})],fa=e([ha],pa,!0),ma=e([Xr.post("https://dev.y.uno/dashboard-bff/api/v3/insights/conversion-rate/overview",function(){return Zr.json(ca)}),Xr.post("https://dev.y.uno/dashboard-bff/api/v3/insights/conversion-rate/overview-fraud-3ds",function(){return Zr.json(ua)}),Xr.get("*/dialogs",function(){return Zr.json({})}),Xr.get("*/accounts/webhooks/:accountCode",function(){return Zr.json({})}),Xr.get("*/accounts/webhooks/params-catalog",function(){return Zr.json({})}),Xr.get("*/accounts/webhooks-v2/:accountCode",function(){return Zr.json({})})],fa,!0),ga=e(e([],sa,!0),ma,!0),ya=function(...e){return new wr(...e)}.apply(void 0,ga),va="MSW_ENABLED";function ba(e){e?(localStorage.setItem(va,"true"),console.info("MSW enabled. Reload the page to activate the mocks.")):(localStorage.removeItem(va),console.info("MSW disabled. Reload the page to disable the mocks.")),window.location.reload()}function ka(){return"true"===localStorage.getItem(va)}function wa(e,t){return function(){return e.apply(t,arguments)}}"undefined"!=typeof window&&(window.enableMSW=function(){return ba(!0)},window.disableMSW=function(){return ba(!1)},window.isMSWEnabled=ka);const{toString:_a}=Object.prototype,{getPrototypeOf:xa}=Object,{iterator:Ea,toStringTag:Sa}=Symbol,Ca=(Ra=Object.create(null),e=>{const t=_a.call(e);return Ra[t]||(Ra[t]=t.slice(8,-1).toLowerCase())});var Ra;const Ta=e=>(e=e.toLowerCase(),t=>Ca(t)===e),Ia=e=>t=>typeof t===e,{isArray:Aa}=Array,Oa=Ia("undefined");function ja(e){return null!==e&&!Oa(e)&&null!==e.constructor&&!Oa(e.constructor)&&La(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Pa=Ta("ArrayBuffer");const Da=Ia("string"),La=Ia("function"),qa=Ia("number"),za=e=>null!==e&&"object"==typeof e,Ma=e=>{if("object"!==Ca(e))return!1;const t=xa(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Sa in e||Ea in e)},Na=Ta("Date"),Ua=Ta("File"),Ba=Ta("Blob"),Fa=Ta("FileList"),Wa=Ta("URLSearchParams"),[Ga,Ha,Va,$a]=["ReadableStream","Request","Response","Headers"].map(Ta);function Ka(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let o,r;if("object"!=typeof e&&(e=[e]),Aa(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{if(ja(e))return;const r=n?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;let i;for(o=0;o<a;o++)i=r[o],t.call(null,e[i],i,e)}}function Qa(e,t){if(ja(e))return null;t=t.toLowerCase();const n=Object.keys(e);let o,r=n.length;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Ja="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Xa=e=>!Oa(e)&&e!==Ja;const Ya=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&xa(Uint8Array)),Za=Ta("HTMLFormElement"),ei=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ti=Ta("RegExp"),ni=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Ka(n,(n,r)=>{let a;!1!==(a=t(n,r,e))&&(o[r]=a||n)}),Object.defineProperties(e,o)};const oi=Ta("AsyncFunction"),ri=(ai="function"==typeof setImmediate,ii=La(Ja.postMessage),ai?setImmediate:ii?(si=`axios@${Math.random()}`,ci=[],Ja.addEventListener("message",({source:e,data:t})=>{e===Ja&&t===si&&ci.length&&ci.shift()()},!1),e=>{ci.push(e),Ja.postMessage(si,"*")}):e=>setTimeout(e));var ai,ii,si,ci;const ui="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Ja):"undefined"!=typeof process&&process.nextTick||ri;var li={isArray:Aa,isArrayBuffer:Pa,isBuffer:ja,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||La(e.append)&&("formdata"===(t=Ca(e))||"object"===t&&La(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Pa(e.buffer),t},isString:Da,isNumber:qa,isBoolean:e=>!0===e||!1===e,isObject:za,isPlainObject:Ma,isEmptyObject:e=>{if(!za(e)||ja(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Ga,isRequest:Ha,isResponse:Va,isHeaders:$a,isUndefined:Oa,isDate:Na,isFile:Ua,isBlob:Ba,isRegExp:ti,isFunction:La,isStream:e=>za(e)&&La(e.pipe),isURLSearchParams:Wa,isTypedArray:Ya,isFileList:Fa,forEach:Ka,merge:function e(){const{caseless:t,skipUndefined:n}=Xa(this)&&this||{},o={},r=(r,a)=>{const i=t&&Qa(o,a)||a;Ma(o[i])&&Ma(r)?o[i]=e(o[i],r):Ma(r)?o[i]=e({},r):Aa(r)?o[i]=r.slice():n&&Oa(r)||(o[i]=r)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Ka(arguments[e],r);return o},extend:(e,t,n,{allOwnKeys:o}={})=>(Ka(t,(t,o)=>{n&&La(t)?e[o]=wa(t,n):e[o]=t},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let r,a,i;const s={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),a=r.length;a-- >0;)i=r[a],o&&!o(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&xa(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Ca,kindOfTest:Ta,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return-1!==o&&o===n},toArray:e=>{if(!e)return null;if(Aa(e))return e;let t=e.length;if(!qa(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Ea]).call(e);let o;for(;(o=n.next())&&!o.done;){const n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:Za,hasOwnProperty:ei,hasOwnProp:ei,reduceDescriptors:ni,freezeMethods:e=>{ni(e,(t,n)=>{if(La(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const o=e[n];La(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},o=e=>{e.forEach(e=>{n[e]=!0})};return Aa(e)?o(e):o(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Qa,global:Ja,isContextDefined:Xa,isSpecCompliantForm:function(e){return!!(e&&La(e.append)&&"FormData"===e[Sa]&&e[Ea])},toJSONObject:e=>{const t=new Array(10),n=(e,o)=>{if(za(e)){if(t.indexOf(e)>=0)return;if(ja(e))return e;if(!("toJSON"in e)){t[o]=e;const r=Aa(e)?[]:{};return Ka(e,(e,t)=>{const a=n(e,o+1);!Oa(a)&&(r[t]=a)}),t[o]=void 0,r}}return e};return n(e,0)},isAsyncFn:oi,isThenable:e=>e&&(za(e)||La(e))&&La(e.then)&&La(e.catch),setImmediate:ri,asap:ui,isIterable:e=>null!=e&&La(e[Ea])};function di(e,t,n,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r,this.status=r.status?r.status:null)}li.inherits(di,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:li.toJSONObject(this.config),code:this.code,status:this.status}}});const hi=di.prototype,pi={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{pi[e]={value:e}}),Object.defineProperties(di,pi),Object.defineProperty(hi,"isAxiosError",{value:!0}),di.from=(e,t,n,o,r,a)=>{const i=Object.create(hi);li.toFlatObject(e,i,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const s=e&&e.message?e.message:"Error",c=null==t&&e?e.code:t;return di.call(i,s,c,n,o,r),e&&null==i.cause&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",a&&Object.assign(i,a),i};function fi(e){return li.isPlainObject(e)||li.isArray(e)}function mi(e){return li.endsWith(e,"[]")?e.slice(0,-2):e}function gi(e,t,n){return e?e.concat(t).map(function(e,t){return e=mi(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const yi=li.toFlatObject(li,{},null,function(e){return/^is[A-Z]/.test(e)});function vi(e,t,n){if(!li.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(n=li.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!li.isUndefined(t[e])})).metaTokens,r=n.visitor||u,a=n.dots,i=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&li.isSpecCompliantForm(t);if(!li.isFunction(r))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(li.isDate(e))return e.toISOString();if(li.isBoolean(e))return e.toString();if(!s&&li.isBlob(e))throw new di("Blob is not supported. Use a Buffer instead.");return li.isArrayBuffer(e)||li.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,r){let s=e;if(e&&!r&&"object"==typeof e)if(li.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(li.isArray(e)&&function(e){return li.isArray(e)&&!e.some(fi)}(e)||(li.isFileList(e)||li.endsWith(n,"[]"))&&(s=li.toArray(e)))return n=mi(n),s.forEach(function(e,o){!li.isUndefined(e)&&null!==e&&t.append(!0===i?gi([n],o,a):null===i?n:n+"[]",c(e))}),!1;return!!fi(e)||(t.append(gi(r,n,a),c(e)),!1)}const l=[],d=Object.assign(yi,{defaultVisitor:u,convertValue:c,isVisitable:fi});if(!li.isObject(e))throw new TypeError("data must be an object");return function e(n,o){if(!li.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+o.join("."));l.push(n),li.forEach(n,function(n,a){!0===(!(li.isUndefined(n)||null===n)&&r.call(t,n,li.isString(a)?a.trim():a,o,d))&&e(n,o?o.concat(a):[a])}),l.pop()}}(e),t}function bi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ki(e,t){this._pairs=[],e&&vi(e,this,t)}const wi=ki.prototype;function _i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function xi(e,t,n){if(!t)return e;const o=n&&n.encode||_i;li.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let a;if(a=r?r(t,n):li.isURLSearchParams(t)?t.toString():new ki(t,n).toString(o),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}wi.append=function(e,t){this._pairs.push([e,t])},wi.toString=function(e){const t=e?function(t){return e.call(this,t,bi)}:bi;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var Ei=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){li.forEach(this.handlers,function(t){null!==t&&e(t)})}},Si={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ci={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ki,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Ri="undefined"!=typeof window&&"undefined"!=typeof document,Ti="object"==typeof navigator&&navigator||void 0,Ii=Ri&&(!Ti||["ReactNative","NativeScript","NS"].indexOf(Ti.product)<0),Ai="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Oi=Ri&&window.location.href||"http://localhost";var ji={...Object.freeze({__proto__:null,hasBrowserEnv:Ri,hasStandardBrowserEnv:Ii,hasStandardBrowserWebWorkerEnv:Ai,navigator:Ti,origin:Oi}),...Ci};function Pi(e){function t(e,n,o,r){let a=e[r++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),s=r>=e.length;if(a=!a&&li.isArray(o)?o.length:a,s)return li.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!i;o[a]&&li.isObject(o[a])||(o[a]=[]);return t(e,n,o[a],r)&&li.isArray(o[a])&&(o[a]=function(e){const t={},n=Object.keys(e);let o;const r=n.length;let a;for(o=0;o<r;o++)a=n[o],t[a]=e[a];return t}(o[a])),!i}if(li.isFormData(e)&&li.isFunction(e.entries)){const n={};return li.forEachEntry(e,(e,o)=>{t(function(e){return li.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),o,n,0)}),n}return null}const Di={transitional:Si,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,r=li.isObject(e);r&&li.isHTMLForm(e)&&(e=new FormData(e));if(li.isFormData(e))return o?JSON.stringify(Pi(e)):e;if(li.isArrayBuffer(e)||li.isBuffer(e)||li.isStream(e)||li.isFile(e)||li.isBlob(e)||li.isReadableStream(e))return e;if(li.isArrayBufferView(e))return e.buffer;if(li.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return vi(e,new ji.classes.URLSearchParams,{visitor:function(e,t,n,o){return ji.isNode&&li.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((a=li.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return vi(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||o?(t.setContentType("application/json",!1),function(e,t,n){if(li.isString(e))try{return(t||JSON.parse)(e),li.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Di.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(li.isResponse(e)||li.isReadableStream(e))return e;if(e&&li.isString(e)&&(n&&!this.responseType||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw di.from(e,di.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ji.classes.FormData,Blob:ji.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};li.forEach(["delete","get","head","post","put","patch"],e=>{Di.headers[e]={}});var Li=Di;const qi=li.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const zi=Symbol("internals");function Mi(e){return e&&String(e).trim().toLowerCase()}function Ni(e){return!1===e||null==e?e:li.isArray(e)?e.map(Ni):String(e)}function Ui(e,t,n,o,r){return li.isFunction(o)?o.call(this,t,n):(r&&(t=n),li.isString(t)?li.isString(o)?-1!==t.indexOf(o):li.isRegExp(o)?o.test(t):void 0:void 0)}class Bi{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function r(e,t,n){const r=Mi(t);if(!r)throw new Error("header name must be a non-empty string");const a=li.findKey(o,r);(!a||void 0===o[a]||!0===n||void 0===n&&!1!==o[a])&&(o[a||t]=Ni(e))}const a=(e,t)=>li.forEach(e,(e,n)=>r(e,n,t));if(li.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(li.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,o,r;return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),o=e.substring(r+1).trim(),!n||t[n]&&qi[n]||("set-cookie"===n?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t})(e),t);else if(li.isObject(e)&&li.isIterable(e)){let n,o,r={};for(const t of e){if(!li.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[o=t[0]]=(n=r[o])?li.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(r,t)}else null!=e&&r(t,e,n);return this}get(e,t){if(e=Mi(e)){const n=li.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}(e);if(li.isFunction(t))return t.call(this,e,n);if(li.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Mi(e)){const n=li.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ui(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function r(e){if(e=Mi(e)){const r=li.findKey(n,e);!r||t&&!Ui(0,n[r],r,t)||(delete n[r],o=!0)}}return li.isArray(e)?e.forEach(r):r(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const r=t[n];e&&!Ui(0,this[r],r,e,!0)||(delete this[r],o=!0)}return o}normalize(e){const t=this,n={};return li.forEach(this,(o,r)=>{const a=li.findKey(n,r);if(a)return t[a]=Ni(o),void delete t[r];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(r):String(r).trim();i!==r&&delete t[r],t[i]=Ni(o),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return li.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=e&&li.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[zi]=this[zi]={accessors:{}}).accessors,n=this.prototype;function o(e){const o=Mi(e);t[o]||(!function(e,t){const n=li.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(e,n,r){return this[o].call(this,t,e,n,r)},configurable:!0})})}(n,e),t[o]=!0)}return li.isArray(e)?e.forEach(o):o(e),this}}Bi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),li.reduceDescriptors(Bi.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),li.freezeMethods(Bi);var Fi=Bi;function Wi(e,t){const n=this||Li,o=t||n,r=Fi.from(o.headers);let a=o.data;return li.forEach(e,function(e){a=e.call(n,a,r.normalize(),t?t.status:void 0)}),r.normalize(),a}function Gi(e){return!(!e||!e.__CANCEL__)}function Hi(e,t,n){di.call(this,null==e?"canceled":e,di.ERR_CANCELED,t,n),this.name="CanceledError"}function Vi(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new di("Request failed with status code "+n.status,[di.ERR_BAD_REQUEST,di.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}li.inherits(Hi,di,{__CANCEL__:!0});const $i=(e,t,n=3)=>{let o=0;const r=function(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=o[i];r||(r=c),n[a]=s,o[a]=c;let l=i,d=0;for(;l!==a;)d+=n[l++],l%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),c-r<t)return;const h=u&&c-u;return h?Math.round(1e3*d/h):void 0}}(50,250);return function(e,t){let n,o,r=0,a=1e3/t;const i=(t,a=Date.now())=>{r=a,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-r;s>=a?i(e,t):(n=e,o||(o=setTimeout(()=>{o=null,i(n)},a-s)))},()=>n&&i(n)]}(n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,s=a-o,c=r(s);o=a;e({loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:c||void 0,estimated:c&&i&&a<=i?(i-a)/c:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},Ki=(e,t)=>{const n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},Qi=e=>(...t)=>li.asap(()=>e(...t));var Ji=ji.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ji.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ji.origin),ji.navigator&&/(msie|trident)/i.test(ji.navigator.userAgent)):()=>!0,Xi=ji.hasStandardBrowserEnv?{write(e,t,n,o,r,a){const i=[e+"="+encodeURIComponent(t)];li.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),li.isString(o)&&i.push("path="+o),li.isString(r)&&i.push("domain="+r),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Yi(e,t,n){let o=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(o||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Zi=e=>e instanceof Fi?{...e}:e;function es(e,t){t=t||{};const n={};function o(e,t,n,o){return li.isPlainObject(e)&&li.isPlainObject(t)?li.merge.call({caseless:o},e,t):li.isPlainObject(t)?li.merge({},t):li.isArray(t)?t.slice():t}function r(e,t,n,r){return li.isUndefined(t)?li.isUndefined(e)?void 0:o(void 0,e,0,r):o(e,t,0,r)}function a(e,t){if(!li.isUndefined(t))return o(void 0,t)}function i(e,t){return li.isUndefined(t)?li.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function s(n,r,a){return a in t?o(n,r):a in e?o(void 0,n):void 0}const c={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t,n)=>r(Zi(e),Zi(t),0,!0)};return li.forEach(Object.keys({...e,...t}),function(o){const a=c[o]||r,i=a(e[o],t[o],o);li.isUndefined(i)&&a!==s||(n[o]=i)}),n}var ts=e=>{const t=es({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:a,headers:i,auth:s}=t;if(t.headers=i=Fi.from(i),t.url=xi(Yi(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),li.isFormData(n))if(ji.hasStandardBrowserEnv||ji.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(li.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&i.set(e,n)})}if(ji.hasStandardBrowserEnv&&(o&&li.isFunction(o)&&(o=o(t)),o||!1!==o&&Ji(t.url))){const e=r&&a&&Xi.read(a);e&&i.set(r,e)}return t};var ns="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const o=ts(e);let r=o.data;const a=Fi.from(o.headers).normalize();let i,s,c,u,l,{responseType:d,onUploadProgress:h,onDownloadProgress:p}=o;function f(){u&&u(),l&&l(),o.cancelToken&&o.cancelToken.unsubscribe(i),o.signal&&o.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function g(){if(!m)return;const o=Fi.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Vi(function(e){t(e),f()},function(e){n(e),f()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:o,config:e,request:m}),m=null}m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new di("Request aborted",di.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const o=new di(t&&t.message?t.message:"Network Error",di.ERR_NETWORK,e,m);o.event=t||null,n(o),m=null},m.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const r=o.transitional||Si;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),n(new di(t,r.clarifyTimeoutError?di.ETIMEDOUT:di.ECONNABORTED,e,m)),m=null},void 0===r&&a.setContentType(null),"setRequestHeader"in m&&li.forEach(a.toJSON(),function(e,t){m.setRequestHeader(t,e)}),li.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),d&&"json"!==d&&(m.responseType=o.responseType),p&&([c,l]=$i(p,!0),m.addEventListener("progress",c)),h&&m.upload&&([s,u]=$i(h),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",u)),(o.cancelToken||o.signal)&&(i=t=>{m&&(n(!t||t.type?new Hi(null,e,m):t),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(i),o.signal&&(o.signal.aborted?i():o.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(o.url);y&&-1===ji.protocols.indexOf(y)?n(new di("Unsupported protocol "+y+":",di.ERR_BAD_REQUEST,e)):m.send(r||null)})};var os=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,o=new AbortController;const r=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;o.abort(t instanceof di?t:new Hi(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{a=null,r(new di(`timeout ${t} of ms exceeded`,di.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r));const{signal:s}=o;return s.unsubscribe=()=>li.asap(i),s}};const rs=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let o,r=0;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},as=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},is=(e,t,n,o)=>{const r=async function*(e,t){for await(const n of as(e))yield*rs(n,t)}(e,t);let a,i=0,s=e=>{a||(a=!0,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await r.next();if(t)return s(),void e.close();let a=o.byteLength;if(n){let e=i+=a;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw s(e),e}},cancel:e=>(s(e),r.return())},{highWaterMark:2})},{isFunction:ss}=li,cs=(({Request:e,Response:t})=>({Request:e,Response:t}))(li.global),{ReadableStream:us,TextEncoder:ls}=li.global,ds=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},hs=e=>{e=li.merge.call({skipUndefined:!0},cs,e);const{fetch:t,Request:n,Response:o}=e,r=t?ss(t):"function"==typeof fetch,a=ss(n),i=ss(o);if(!r)return!1;const s=r&&ss(us),c=r&&("function"==typeof ls?(e=>t=>e.encode(t))(new ls):async e=>new Uint8Array(await new n(e).arrayBuffer())),u=a&&s&&ds(()=>{let e=!1;const t=new n(ji.origin,{body:new us,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),l=i&&s&&ds(()=>li.isReadableStream(new o("").body)),d={stream:l&&(e=>e.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new di(`Response type '${e}' is not supported`,di.ERR_NOT_SUPPORT,n)})});const h=async(e,t)=>{const o=li.toFiniteNumber(e.getContentLength());return null==o?(async e=>{if(null==e)return 0;if(li.isBlob(e))return e.size;if(li.isSpecCompliantForm(e)){const t=new n(ji.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return li.isArrayBufferView(e)||li.isArrayBuffer(e)?e.byteLength:(li.isURLSearchParams(e)&&(e+=""),li.isString(e)?(await c(e)).byteLength:void 0)})(t):o};return async e=>{let{url:r,method:i,data:s,signal:c,cancelToken:p,timeout:f,onDownloadProgress:m,onUploadProgress:g,responseType:y,headers:v,withCredentials:b="same-origin",fetchOptions:k}=ts(e),w=t||fetch;y=y?(y+"").toLowerCase():"text";let _=os([c,p&&p.toAbortSignal()],f),x=null;const E=_&&_.unsubscribe&&(()=>{_.unsubscribe()});let S;try{if(g&&u&&"get"!==i&&"head"!==i&&0!==(S=await h(v,s))){let e,t=new n(r,{method:"POST",body:s,duplex:"half"});if(li.isFormData(s)&&(e=t.headers.get("content-type"))&&v.setContentType(e),t.body){const[e,n]=Ki(S,$i(Qi(g)));s=is(t.body,65536,e,n)}}li.isString(b)||(b=b?"include":"omit");const t=a&&"credentials"in n.prototype,c={...k,signal:_,method:i.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:"half",credentials:t?b:void 0};x=a&&new n(r,c);let p=await(a?w(x,k):w(r,c));const f=l&&("stream"===y||"response"===y);if(l&&(m||f&&E)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=p[t]});const t=li.toFiniteNumber(p.headers.get("content-length")),[n,r]=m&&Ki(t,$i(Qi(m),!0))||[];p=new o(is(p.body,65536,n,()=>{r&&r(),E&&E()}),e)}y=y||"text";let C=await d[li.findKey(d,y)||"text"](p,e);return!f&&E&&E(),await new Promise((t,n)=>{Vi(t,n,{data:C,headers:Fi.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:x})})}catch(t){if(E&&E(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new di("Network Error",di.ERR_NETWORK,e,x),{cause:t.cause||t});throw di.from(t,t&&t.code,e,x)}}},ps=new Map,fs=e=>{let t=e?e.env:{};const{fetch:n,Request:o,Response:r}=t,a=[o,r,n];let i,s,c=a.length,u=ps;for(;c--;)i=a[c],s=u.get(i),void 0===s&&u.set(i,s=c?new Map:hs(t)),u=s;return s};fs();const ms={http:null,xhr:ns,fetch:{get:fs}};li.forEach(ms,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const gs=e=>`- ${e}`,ys=e=>li.isFunction(e)||null===e||!1===e;var vs=(e,t)=>{e=li.isArray(e)?e:[e];const{length:n}=e;let o,r;const a={};for(let i=0;i<n;i++){let n;if(o=e[i],r=o,!ys(o)&&(r=ms[(n=String(o)).toLowerCase()],void 0===r))throw new di(`Unknown adapter '${n}'`);if(r&&(li.isFunction(r)||(r=r.get(t))))break;a[n||"#"+i]=r}if(!r){const e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new di("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(gs).join("\n"):" "+gs(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function bs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Hi(null,e)}function ks(e){bs(e),e.headers=Fi.from(e.headers),e.data=Wi.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return vs(e.adapter||Li.adapter,e)(e).then(function(t){return bs(e),t.data=Wi.call(e,e.transformResponse,t),t.headers=Fi.from(t.headers),t},function(t){return Gi(t)||(bs(e),t&&t.response&&(t.response.data=Wi.call(e,e.transformResponse,t.response),t.response.headers=Fi.from(t.response.headers))),Promise.reject(t)})}const ws="1.12.2",_s={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{_s[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const xs={};_s.transitional=function(e,t,n){function o(e,t){return"[Axios v"+ws+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,a)=>{if(!1===e)throw new di(o(r," has been removed"+(t?" in "+t:"")),di.ERR_DEPRECATED);return t&&!xs[r]&&(xs[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},_s.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var Es={assertOptions:function(e,t,n){if("object"!=typeof e)throw new di("options must be an object",di.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const a=o[r],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new di("option "+a+" must be "+n,di.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new di("Unknown option "+a,di.ERR_BAD_OPTION)}},validators:_s};const Ss=Es.validators;let Cs=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Ei,response:new Ei}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=es(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:r}=t;void 0!==n&&Es.assertOptions(n,{silentJSONParsing:Ss.transitional(Ss.boolean),forcedJSONParsing:Ss.transitional(Ss.boolean),clarifyTimeoutError:Ss.transitional(Ss.boolean)},!1),null!=o&&(li.isFunction(o)?t.paramsSerializer={serialize:o}:Es.assertOptions(o,{encode:Ss.function,serialize:Ss.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Es.assertOptions(t,{baseUrl:Ss.spelling("baseURL"),withXsrfToken:Ss.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=r&&li.merge(r.common,r[t.method]);r&&li.forEach(["delete","get","head","post","put","patch","common"],e=>{delete r[e]}),t.headers=Fi.concat(a,r);const i=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,i.unshift(e.fulfilled,e.rejected))});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,d=0;if(!s){const e=[ks.bind(this),void 0];for(e.unshift(...i),e.push(...c),l=e.length,u=Promise.resolve(t);d<l;)u=u.then(e[d++],e[d++]);return u}l=i.length;let h=t;for(;d<l;){const e=i[d++],t=i[d++];try{h=e(h)}catch(e){t.call(this,e);break}}try{u=ks.call(this,h)}catch(e){return Promise.reject(e)}for(d=0,l=c.length;d<l;)u=u.then(c[d++],c[d++]);return u}getUri(e){return xi(Yi((e=es(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};li.forEach(["delete","get","head","options"],function(e){Cs.prototype[e]=function(t,n){return this.request(es(n||{},{method:e,url:t,data:(n||{}).data}))}}),li.forEach(["post","put","patch"],function(e){function t(t){return function(n,o,r){return this.request(es(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}Cs.prototype[e]=t(),Cs.prototype[e+"Form"]=t(!0)});var Rs=Cs;class Ts{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const o=new Promise(e=>{n.subscribe(e),t=e}).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e(function(e,o,r){n.reason||(n.reason=new Hi(e,o,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Ts(function(t){e=t}),cancel:e}}}var Is=Ts;const As={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(As).forEach(([e,t])=>{As[t]=e});var Os=As;const js=function e(t){const n=new Rs(t),o=wa(Rs.prototype.request,n);return li.extend(o,Rs.prototype,n,{allOwnKeys:!0}),li.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(es(t,n))},o}(Li);js.Axios=Rs,js.CanceledError=Hi,js.CancelToken=Is,js.isCancel=Gi,js.VERSION=ws,js.toFormData=vi,js.AxiosError=di,js.Cancel=js.CanceledError,js.all=function(e){return Promise.all(e)},js.spread=function(e){return function(t){return e.apply(null,t)}},js.isAxiosError=function(e){return li.isObject(e)&&!0===e.isAxiosError},js.mergeConfig=es,js.AxiosHeaders=Fi,js.formToJSON=e=>Pi(li.isHTMLForm(e)?new FormData(e):e),js.getAdapter=vs,js.HttpStatusCode=Os,js.default=js;var Ps=js,Ds=function(e){function t(t){var n,o,a,i,s=this;return(s=e.call(this,t)||this).token="",null===(o=null===(n=s.instance)||void 0===n?void 0:n.interceptors)||void 0===o||o.request.use(function(e){return r(r({},e),{defaults:{headers:r(r({},e.headers),{Authorization:"Bearer ".concat(s.getToken())})}})},function(e){return Promise.reject(e)}),null===(i=null===(a=s.instance)||void 0===a?void 0:a.interceptors)||void 0===i||i.response.use(function(e){return r({},e)},function(e){return Promise.reject(e)}),s}return o(t,e),t.prototype.getToken=function(){return"Bearer ".concat(this.token)},t.prototype.setToken=function(e){this.token=e},t.prototype.getUri=function(e){return this.instance.getUri(e)},t.prototype.getCancelTokenSource=function(){var e;return this.cancelToken&&this.cancelToken.cancel(),this.cancelToken=null===(e=Ps.CancelToken)||void 0===e?void 0:e.source(),this.cancelToken},t.prototype.request=function(e){var t;return e.cancelToken=null===(t=this.getCancelTokenSource())||void 0===t?void 0:t.token,this.instance.request(e)},t.prototype.get=function(e,t){return this.instance.get(e,t)},t.prototype.options=function(e,t){return this.instance.options(e,t)},t.prototype.delete=function(e,t){return this.instance.delete(e,t)},t.prototype.head=function(e,t){return this.instance.head(e,t)},t.prototype.post=function(e,t,n){return this.instance.post(e,t,n)},t.prototype.put=function(e,t,n){return this.instance.put(e,t,n)},t.prototype.patch=function(e,t,n){return this.instance.patch(e,t,n)},t.prototype.success=function(e){return null==e?void 0:e.data},t.prototype.error=function(e){throw e},t}(function(e){this.instance=Ps.create(e)}),Ls="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function qs(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}),n}var zs=TypeError,Ms=qs(Object.freeze({__proto__:null,default:{}})),Ns="function"==typeof Map&&Map.prototype,Us=Object.getOwnPropertyDescriptor&&Ns?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Bs=Ns&&Us&&"function"==typeof Us.get?Us.get:null,Fs=Ns&&Map.prototype.forEach,Ws="function"==typeof Set&&Set.prototype,Gs=Object.getOwnPropertyDescriptor&&Ws?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Hs=Ws&&Gs&&"function"==typeof Gs.get?Gs.get:null,Vs=Ws&&Set.prototype.forEach,$s="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Ks="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Qs="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Js=Boolean.prototype.valueOf,Xs=Object.prototype.toString,Ys=Function.prototype.toString,Zs=String.prototype.match,ec=String.prototype.slice,tc=String.prototype.replace,nc=String.prototype.toUpperCase,oc=String.prototype.toLowerCase,rc=RegExp.prototype.test,ac=Array.prototype.concat,ic=Array.prototype.join,sc=Array.prototype.slice,cc=Math.floor,uc="function"==typeof BigInt?BigInt.prototype.valueOf:null,lc=Object.getOwnPropertySymbols,dc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,hc="function"==typeof Symbol&&"object"==typeof Symbol.iterator,pc="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hc||"symbol")?Symbol.toStringTag:null,fc=Object.prototype.propertyIsEnumerable,mc=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function gc(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||rc.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-cc(-e):cc(e);if(o!==e){var r=String(o),a=ec.call(t,r.length+1);return tc.call(r,n,"$&_")+"."+tc.call(tc.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return tc.call(t,n,"$&_")}var yc=Ms,vc=yc.custom,bc=Tc(vc)?vc:null,kc={__proto__:null,double:'"',single:"'"},wc={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},_c=function e(t,n,o,r){var a=n||{};if(Ac(a,"quoteStyle")&&!Ac(kc,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ac(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=!Ac(a,"customInspect")||a.customInspect;if("boolean"!=typeof i&&"symbol"!==i)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ac(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ac(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Pc(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var c=String(t);return s?gc(t,c):c}if("bigint"==typeof t){var u=String(t)+"n";return s?gc(t,u):u}var l=void 0===a.depth?5:a.depth;if(void 0===o&&(o=0),o>=l&&l>0&&"object"==typeof t)return Cc(t)?"[Array]":"[Object]";var d=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=ic.call(Array(e.indent+1)," ")}return{base:n,prev:ic.call(Array(t+1),n)}}(a,o);if(void 0===r)r=[];else if(jc(r,t)>=0)return"[Circular]";function h(t,n,i){if(n&&(r=sc.call(r)).push(n),i){var s={depth:a.depth};return Ac(a,"quoteStyle")&&(s.quoteStyle=a.quoteStyle),e(t,s,o+1,r)}return e(t,a,o+1,r)}if("function"==typeof t&&!Rc(t)){var p=function(e){if(e.name)return e.name;var t=Zs.call(Ys.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),f=Nc(t,h);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(f.length>0?" { "+ic.call(f,", ")+" }":"")}if(Tc(t)){var m=hc?tc.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):dc.call(t);return"object"!=typeof t||hc?m:Lc(m)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var g="<"+oc.call(String(t.nodeName)),y=t.attributes||[],v=0;v<y.length;v++)g+=" "+y[v].name+"="+xc(Ec(y[v].value),"double",a);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+oc.call(String(t.nodeName))+">"}if(Cc(t)){if(0===t.length)return"[]";var b=Nc(t,h);return d&&!function(e){for(var t=0;t<e.length;t++)if(jc(e[t],"\n")>=0)return!1;return!0}(b)?"["+Mc(b,d)+"]":"[ "+ic.call(b,", ")+" ]"}if(function(e){return"[object Error]"===Oc(e)&&Sc(e)}(t)){var k=Nc(t,h);return"cause"in Error.prototype||!("cause"in t)||fc.call(t,"cause")?0===k.length?"["+String(t)+"]":"{ ["+String(t)+"] "+ic.call(k,", ")+" }":"{ ["+String(t)+"] "+ic.call(ac.call("[cause]: "+h(t.cause),k),", ")+" }"}if("object"==typeof t&&i){if(bc&&"function"==typeof t[bc]&&yc)return yc(t,{depth:l-o});if("symbol"!==i&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!Bs||!e||"object"!=typeof e)return!1;try{Bs.call(e);try{Hs.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var w=[];return Fs&&Fs.call(t,function(e,n){w.push(h(n,t,!0)+" => "+h(e,t))}),zc("Map",Bs.call(t),w,d)}if(function(e){if(!Hs||!e||"object"!=typeof e)return!1;try{Hs.call(e);try{Bs.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var _=[];return Vs&&Vs.call(t,function(e){_.push(h(e,t))}),zc("Set",Hs.call(t),_,d)}if(function(e){if(!$s||!e||"object"!=typeof e)return!1;try{$s.call(e,$s);try{Ks.call(e,Ks)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return qc("WeakMap");if(function(e){if(!Ks||!e||"object"!=typeof e)return!1;try{Ks.call(e,Ks);try{$s.call(e,$s)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return qc("WeakSet");if(function(e){if(!Qs||!e||"object"!=typeof e)return!1;try{return Qs.call(e),!0}catch(e){}return!1}(t))return qc("WeakRef");if(function(e){return"[object Number]"===Oc(e)&&Sc(e)}(t))return Lc(h(Number(t)));if(function(e){if(!e||"object"!=typeof e||!uc)return!1;try{return uc.call(e),!0}catch(e){}return!1}(t))return Lc(h(uc.call(t)));if(function(e){return"[object Boolean]"===Oc(e)&&Sc(e)}(t))return Lc(Js.call(t));if(function(e){return"[object String]"===Oc(e)&&Sc(e)}(t))return Lc(h(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==Ls&&t===Ls)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===Oc(e)&&Sc(e)}(t)&&!Rc(t)){var x=Nc(t,h),E=mc?mc(t)===Object.prototype:t instanceof Object||t.constructor===Object,S=t instanceof Object?"":"null prototype",C=!E&&pc&&Object(t)===t&&pc in t?ec.call(Oc(t),8,-1):S?"Object":"",R=(E||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(C||S?"["+ic.call(ac.call([],C||[],S||[]),": ")+"] ":"");return 0===x.length?R+"{}":d?R+"{"+Mc(x,d)+"}":R+"{ "+ic.call(x,", ")+" }"}return String(t)};function xc(e,t,n){var o=n.quoteStyle||t,r=kc[o];return r+e+r}function Ec(e){return tc.call(String(e),/"/g,"&quot;")}function Sc(e){return!pc||!("object"==typeof e&&(pc in e||void 0!==e[pc]))}function Cc(e){return"[object Array]"===Oc(e)&&Sc(e)}function Rc(e){return"[object RegExp]"===Oc(e)&&Sc(e)}function Tc(e){if(hc)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!dc)return!1;try{return dc.call(e),!0}catch(e){}return!1}var Ic=Object.prototype.hasOwnProperty||function(e){return e in this};function Ac(e,t){return Ic.call(e,t)}function Oc(e){return Xs.call(e)}function jc(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function Pc(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return Pc(ec.call(e,0,t.maxStringLength),t)+o}var r=wc[t.quoteStyle||"single"];return r.lastIndex=0,xc(tc.call(tc.call(e,r,"\\$1"),/[\x00-\x1f]/g,Dc),"single",t)}function Dc(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+nc.call(t.toString(16))}function Lc(e){return"Object("+e+")"}function qc(e){return e+" { ? }"}function zc(e,t,n,o){return e+" ("+t+") {"+(o?Mc(n,o):ic.call(n,", "))+"}"}function Mc(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+ic.call(e,","+n)+"\n"+t.prev}function Nc(e,t){var n=Cc(e),o=[];if(n){o.length=e.length;for(var r=0;r<e.length;r++)o[r]=Ac(e,r)?t(e[r],e):""}var a,i="function"==typeof lc?lc(e):[];if(hc){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var c in e)Ac(e,c)&&(n&&String(Number(c))===c&&c<e.length||hc&&a["$"+c]instanceof Symbol||(rc.call(/[^\w$]/,c)?o.push(t(c,e)+": "+t(e[c],e)):o.push(c+": "+t(e[c],e))));if("function"==typeof lc)for(var u=0;u<i.length;u++)fc.call(e,i[u])&&o.push("["+t(i[u])+"]: "+t(e[i[u]],e));return o}var Uc=_c,Bc=zs,Fc=function(e,t,n){for(var o,r=e;null!=(o=r.next);r=o)if(o.key===t)return r.next=o.next,n||(o.next=e.next,e.next=o),o},Wc=Object,Gc=Error,Hc=EvalError,Vc=RangeError,$c=ReferenceError,Kc=SyntaxError,Qc=URIError,Jc=Math.abs,Xc=Math.floor,Yc=Math.max,Zc=Math.min,eu=Math.pow,tu=Math.round,nu=Number.isNaN||function(e){return e!=e},ou=Object.getOwnPropertyDescriptor;if(ou)try{ou([],"length")}catch(e){ou=null}var ru=ou,au=Object.defineProperty||!1;if(au)try{au({},"a",{value:1})}catch(e){au=!1}var iu,su,cu,uu,lu,du,hu,pu,fu,mu,gu,yu,vu,bu,ku,wu,_u=au;function xu(){return du?lu:(du=1,lu="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function Eu(){return pu?hu:(pu=1,hu=Wc.getPrototypeOf||null)}function Su(){if(mu)return fu;mu=1;var e=Object.prototype.toString,t=Math.max,n=function(e,t){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var r=0;r<t.length;r+=1)n[r+e.length]=t[r];return n};return fu=function(o){var r=this;if("function"!=typeof r||"[object Function]"!==e.apply(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var a,i=function(e,t){for(var n=[],o=t||0,r=0;o<e.length;o+=1,r+=1)n[r]=e[o];return n}(arguments,1),s=t(0,r.length-i.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(a=Function("binder","return function ("+function(e,t){for(var n="",o=0;o<e.length;o+=1)n+=e[o],o+1<e.length&&(n+=t);return n}(c,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var e=r.apply(this,n(i,arguments));return Object(e)===e?e:this}return r.apply(o,n(i,arguments))}),r.prototype){var l=function(){};l.prototype=r.prototype,a.prototype=new l,l.prototype=null}return a},fu}function Cu(){if(yu)return gu;yu=1;var e=Su();return gu=Function.prototype.bind||e}function Ru(){return bu?vu:(bu=1,vu=Function.prototype.call)}function Tu(){return wu?ku:(wu=1,ku=Function.prototype.apply)}var Iu,Au,Ou,ju,Pu,Du,Lu,qu="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,zu=Cu(),Mu=Tu(),Nu=Ru(),Uu=qu||zu.call(Nu,Mu),Bu=Cu(),Fu=zs,Wu=Ru(),Gu=Uu,Hu=function(e){if(e.length<1||"function"!=typeof e[0])throw new Fu("a function is required");return Gu(Bu,Wu,e)};var Vu=Wc,$u=Gc,Ku=Hc,Qu=Vc,Ju=$c,Xu=Kc,Yu=zs,Zu=Qc,el=Jc,tl=Xc,nl=Yc,ol=Zc,rl=eu,al=tu,il=function(e){return nu(e)||0===e?e:e<0?-1:1},sl=Function,cl=function(e){try{return sl('"use strict"; return ('+e+").constructor;")()}catch(e){}},ul=ru,ll=_u,dl=function(){throw new Yu},hl=ul?function(){try{return dl}catch(e){try{return ul(arguments,"callee").get}catch(e){return dl}}}():dl,pl=function(){if(uu)return cu;uu=1;var e="undefined"!=typeof Symbol&&Symbol,t=su?iu:(su=1,iu=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var o in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0});return cu=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),fl=function(){if(ju)return Ou;ju=1;var e=xu(),t=Eu(),n=function(){if(Au)return Iu;Au=1;var e,t=Hu,n=ru;try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var o=!!e&&n&&n(Object.prototype,"__proto__"),r=Object,a=r.getPrototypeOf;return Iu=o&&"function"==typeof o.get?t([o.get]):"function"==typeof a&&function(e){return a(null==e?e:r(e))}}();return Ou=e?function(t){return e(t)}:t?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}:n?function(e){return n(e)}:null}(),ml=Eu(),gl=xu(),yl=Tu(),vl=Ru(),bl={},kl="undefined"!=typeof Uint8Array&&fl?fl(Uint8Array):Lu,wl={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?Lu:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Lu:ArrayBuffer,"%ArrayIteratorPrototype%":pl&&fl?fl([][Symbol.iterator]()):Lu,"%AsyncFromSyncIteratorPrototype%":Lu,"%AsyncFunction%":bl,"%AsyncGenerator%":bl,"%AsyncGeneratorFunction%":bl,"%AsyncIteratorPrototype%":bl,"%Atomics%":"undefined"==typeof Atomics?Lu:Atomics,"%BigInt%":"undefined"==typeof BigInt?Lu:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?Lu:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?Lu:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Lu:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$u,"%eval%":eval,"%EvalError%":Ku,"%Float16Array%":"undefined"==typeof Float16Array?Lu:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?Lu:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Lu:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Lu:FinalizationRegistry,"%Function%":sl,"%GeneratorFunction%":bl,"%Int8Array%":"undefined"==typeof Int8Array?Lu:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Lu:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Lu:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":pl&&fl?fl(fl([][Symbol.iterator]())):Lu,"%JSON%":"object"==typeof JSON?JSON:Lu,"%Map%":"undefined"==typeof Map?Lu:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&pl&&fl?fl((new Map)[Symbol.iterator]()):Lu,"%Math%":Math,"%Number%":Number,"%Object%":Vu,"%Object.getOwnPropertyDescriptor%":ul,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Lu:Promise,"%Proxy%":"undefined"==typeof Proxy?Lu:Proxy,"%RangeError%":Qu,"%ReferenceError%":Ju,"%Reflect%":"undefined"==typeof Reflect?Lu:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Lu:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&pl&&fl?fl((new Set)[Symbol.iterator]()):Lu,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Lu:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":pl&&fl?fl(""[Symbol.iterator]()):Lu,"%Symbol%":pl?Symbol:Lu,"%SyntaxError%":Xu,"%ThrowTypeError%":hl,"%TypedArray%":kl,"%TypeError%":Yu,"%Uint8Array%":"undefined"==typeof Uint8Array?Lu:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Lu:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Lu:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Lu:Uint32Array,"%URIError%":Zu,"%WeakMap%":"undefined"==typeof WeakMap?Lu:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Lu:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Lu:WeakSet,"%Function.prototype.call%":vl,"%Function.prototype.apply%":yl,"%Object.defineProperty%":ll,"%Object.getPrototypeOf%":ml,"%Math.abs%":el,"%Math.floor%":tl,"%Math.max%":nl,"%Math.min%":ol,"%Math.pow%":rl,"%Math.round%":al,"%Math.sign%":il,"%Reflect.getPrototypeOf%":gl};if(fl)try{null.error}catch(e){var _l=fl(fl(e));wl["%Error.prototype%"]=_l}var xl,El,Sl,Cl,Rl,Tl,Il,Al,Ol,jl,Pl,Dl,Ll=function e(t){var n;if("%AsyncFunction%"===t)n=cl("async function () {}");else if("%GeneratorFunction%"===t)n=cl("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=cl("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&fl&&(n=fl(r.prototype))}return wl[t]=n,n},ql={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},zl=Cu(),Ml=function(){if(Du)return Pu;Du=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=Cu();return Pu=n.call(e,t)}(),Nl=zl.call(vl,Array.prototype.concat),Ul=zl.call(yl,Array.prototype.splice),Bl=zl.call(vl,String.prototype.replace),Fl=zl.call(vl,String.prototype.slice),Wl=zl.call(vl,RegExp.prototype.exec),Gl=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Hl=/\\(\\)?/g,Vl=function(e,t){var n,o=e;if(Ml(ql,o)&&(o="%"+(n=ql[o])[0]+"%"),Ml(wl,o)){var r=wl[o];if(r===bl&&(r=Ll(o)),void 0===r&&!t)throw new Yu("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:r}}throw new Xu("intrinsic "+e+" does not exist!")},$l=function(e,t){if("string"!=typeof e||0===e.length)throw new Yu("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Yu('"allowMissing" argument must be a boolean');if(null===Wl(/^%?[^%]*%?$/,e))throw new Xu("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=Fl(e,0,1),n=Fl(e,-1);if("%"===t&&"%"!==n)throw new Xu("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new Xu("invalid intrinsic syntax, expected opening `%`");var o=[];return Bl(e,Gl,function(e,t,n,r){o[o.length]=n?Bl(r,Hl,"$1"):t||e}),o}(e),o=n.length>0?n[0]:"",r=Vl("%"+o+"%",t),a=r.name,i=r.value,s=!1,c=r.alias;c&&(o=c[0],Ul(n,Nl([0,1],c)));for(var u=1,l=!0;u<n.length;u+=1){var d=n[u],h=Fl(d,0,1),p=Fl(d,-1);if(('"'===h||"'"===h||"`"===h||'"'===p||"'"===p||"`"===p)&&h!==p)throw new Xu("property names with quotes must have matching quotes");if("constructor"!==d&&l||(s=!0),Ml(wl,a="%"+(o+="."+d)+"%"))i=wl[a];else if(null!=i){if(!(d in i)){if(!t)throw new Yu("base intrinsic for "+e+" exists, but the property is not available.");return}if(ul&&u+1>=n.length){var f=ul(i,d);i=(l=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:i[d]}else l=Ml(i,d),i=i[d];l&&!s&&(wl[a]=i)}}return i},Kl=$l,Ql=Hu,Jl=Ql([Kl("%String.prototype.indexOf%")]),Xl=function(e,t){var n=Kl(e,!!t);return"function"==typeof n&&Jl(e,".prototype.")>-1?Ql([n]):n},Yl=Xl,Zl=_c,ed=zs,td=$l("%Map%",!0),nd=Yl("Map.prototype.get",!0),od=Yl("Map.prototype.set",!0),rd=Yl("Map.prototype.has",!0),ad=Yl("Map.prototype.delete",!0),id=Yl("Map.prototype.size",!0),sd=!!td&&function(){var e,t={assert:function(e){if(!t.has(e))throw new ed("Side channel does not contain "+Zl(e))},delete:function(t){if(e){var n=ad(e,t);return 0===id(e)&&(e=void 0),n}return!1},get:function(t){if(e)return nd(e,t)},has:function(t){return!!e&&rd(e,t)},set:function(t,n){e||(e=new td),od(e,t,n)}};return t},cd=Xl,ud=_c,ld=sd,dd=zs,hd=$l("%WeakMap%",!0),pd=cd("WeakMap.prototype.get",!0),fd=cd("WeakMap.prototype.set",!0),md=cd("WeakMap.prototype.has",!0),gd=cd("WeakMap.prototype.delete",!0),yd=zs,vd=_c,bd=(hd?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new dd("Side channel does not contain "+ud(e))},delete:function(n){if(hd&&n&&("object"==typeof n||"function"==typeof n)){if(e)return gd(e,n)}else if(ld&&t)return t.delete(n);return!1},get:function(n){return hd&&n&&("object"==typeof n||"function"==typeof n)&&e?pd(e,n):t&&t.get(n)},has:function(n){return hd&&n&&("object"==typeof n||"function"==typeof n)&&e?md(e,n):!!t&&t.has(n)},set:function(n,o){hd&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new hd),fd(e,n,o)):ld&&(t||(t=ld()),t.set(n,o))}};return n}:ld)||sd||function(){var e,t={assert:function(e){if(!t.has(e))throw new Bc("Side channel does not contain "+Uc(e))},delete:function(t){var n=e&&e.next,o=function(e,t){if(e)return Fc(e,t,!0)}(e,t);return o&&n&&n===o&&(e=void 0),!!o},get:function(t){return function(e,t){if(e){var n=Fc(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!Fc(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var o=Fc(e,t);o?o.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t},kd=String.prototype.replace,wd=/%20/g,_d="RFC3986",xd={default:_d,formatters:{RFC1738:function(e){return kd.call(e,wd,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:_d},Ed=xd,Sd=Object.prototype.hasOwnProperty,Cd=Array.isArray,Rd=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Td=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(n[o]=e[o]);return n},Id=1024,Ad={arrayToObject:Td,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var r=t[o],a=r.obj[r.prop],i=Object.keys(a),s=0;s<i.length;++s){var c=i[s],u=a[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Cd(n)){for(var o=[],r=0;r<n.length;++r)void 0!==n[r]&&o.push(n[r]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,n){var o=e.replace(/\+/g," ");if("iso-8859-1"===n)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,n,o,r){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var i="",s=0;s<a.length;s+=Id){for(var c=a.length>=Id?a.slice(s,s+Id):a,u=[],l=0;l<c.length;++l){var d=c.charCodeAt(l);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||r===Ed.RFC1738&&(40===d||41===d)?u[u.length]=c.charAt(l):d<128?u[u.length]=Rd[d]:d<2048?u[u.length]=Rd[192|d>>6]+Rd[128|63&d]:d<55296||d>=57344?u[u.length]=Rd[224|d>>12]+Rd[128|d>>6&63]+Rd[128|63&d]:(l+=1,d=65536+((1023&d)<<10|1023&c.charCodeAt(l)),u[u.length]=Rd[240|d>>18]+Rd[128|d>>12&63]+Rd[128|d>>6&63]+Rd[128|63&d])}i+=u.join("")}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(Cd(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(t(e[o]));return n}return t(e)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(Cd(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!Sd.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var r=t;return Cd(t)&&!Cd(n)&&(r=Td(t,o)),Cd(t)&&Cd(n)?(n.forEach(function(n,r){if(Sd.call(t,r)){var a=t[r];a&&"object"==typeof a&&n&&"object"==typeof n?t[r]=e(a,n,o):t.push(n)}else t[r]=n}),t):Object.keys(n).reduce(function(t,r){var a=n[r];return Sd.call(t,r)?t[r]=e(t[r],a,o):t[r]=a,t},r)}},Od=function(){var e,t={assert:function(e){if(!t.has(e))throw new yd("Side channel does not contain "+vd(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=bd()),e.set(t,n)}};return t},jd=Ad,Pd=xd,Dd=Object.prototype.hasOwnProperty,Ld={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},qd=Array.isArray,zd=Array.prototype.push,Md=function(e,t){zd.apply(e,qd(t)?t:[t])},Nd=Date.prototype.toISOString,Ud=Pd.default,Bd={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:jd.encode,encodeValuesOnly:!1,format:Ud,formatter:Pd.formatters[Ud],indices:!1,serializeDate:function(e){return Nd.call(e)},skipNulls:!1,strictNullHandling:!1},Fd={},Wd=function e(t,n,o,r,a,i,s,c,u,l,d,h,p,f,m,g,y,v){for(var b,k=t,w=v,_=0,x=!1;void 0!==(w=w.get(Fd))&&!x;){var E=w.get(t);if(_+=1,void 0!==E){if(E===_)throw new RangeError("Cyclic object value");x=!0}void 0===w.get(Fd)&&(_=0)}if("function"==typeof l?k=l(n,k):k instanceof Date?k=p(k):"comma"===o&&qd(k)&&(k=jd.maybeMap(k,function(e){return e instanceof Date?p(e):e})),null===k){if(i)return u&&!g?u(n,Bd.encoder,y,"key",f):n;k=""}if("string"==typeof(b=k)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||jd.isBuffer(k))return u?[m(g?n:u(n,Bd.encoder,y,"key",f))+"="+m(u(k,Bd.encoder,y,"value",f))]:[m(n)+"="+m(String(k))];var S,C=[];if(void 0===k)return C;if("comma"===o&&qd(k))g&&u&&(k=jd.maybeMap(k,u)),S=[{value:k.length>0?k.join(",")||null:void 0}];else if(qd(l))S=l;else{var R=Object.keys(k);S=d?R.sort(d):R}var T=c?n.replace(/\./g,"%2E"):n,I=r&&qd(k)&&1===k.length?T+"[]":T;if(a&&qd(k)&&0===k.length)return I+"[]";for(var A=0;A<S.length;++A){var O=S[A],j="object"==typeof O&&void 0!==O.value?O.value:k[O];if(!s||null!==j){var P=h&&c?O.replace(/\./g,"%2E"):O,D=qd(k)?"function"==typeof o?o(I,P):I:I+(h?"."+P:"["+P+"]");v.set(t,_);var L=Od();L.set(Fd,v),Md(C,e(j,D,o,r,a,i,s,c,"comma"===o&&g&&qd(k)?null:u,l,d,h,p,f,m,g,y,L))}}return C},Gd=Ad,Hd=Object.prototype.hasOwnProperty,Vd=Array.isArray,$d={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Gd.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},Kd=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},Qd=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Jd=function(e,t,n,o){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,i=n.depth>0&&/(\[[^[\]]*])/.exec(r),s=i?r.slice(0,i.index):r,c=[];if(s){if(!n.plainObjects&&Hd.call(Object.prototype,s)&&!n.allowPrototypes)return;c.push(s)}for(var u=0;n.depth>0&&null!==(i=a.exec(r))&&u<n.depth;){if(u+=1,!n.plainObjects&&Hd.call(Object.prototype,i[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(i[1])}if(i){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");c.push("["+r.slice(i.index)+"]")}return function(e,t,n,o){for(var r=o?t:Qd(t,n),a=e.length-1;a>=0;--a){var i,s=e[a];if("[]"===s&&n.parseArrays)i=n.allowEmptyArrays&&(""===r||n.strictNullHandling&&null===r)?[]:[].concat(r);else{i=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,l=parseInt(u,10);n.parseArrays||""!==u?!isNaN(l)&&s!==u&&String(l)===u&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(i=[])[l]=r:"__proto__"!==u&&(i[u]=r):i={0:r}}r=i}return r}(c,t,n,o)}},Xd=function(e,t){var n,o=e,r=function(e){if(!e)return Bd;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||Bd.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Pd.default;if(void 0!==e.format){if(!Dd.call(Pd.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o,r=Pd.formatters[n],a=Bd.filter;if(("function"==typeof e.filter||qd(e.filter))&&(a=e.filter),o=e.arrayFormat in Ld?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":Bd.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var i=void 0===e.allowDots?!0===e.encodeDotInKeys||Bd.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Bd.addQueryPrefix,allowDots:i,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Bd.allowEmptyArrays,arrayFormat:o,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Bd.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?Bd.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Bd.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:Bd.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:Bd.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Bd.encodeValuesOnly,filter:a,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Bd.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Bd.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Bd.strictNullHandling}}(t);"function"==typeof r.filter?o=(0,r.filter)("",o):qd(r.filter)&&(n=r.filter);var a=[];if("object"!=typeof o||null===o)return"";var i=Ld[r.arrayFormat],s="comma"===i&&r.commaRoundTrip;n||(n=Object.keys(o)),r.sort&&n.sort(r.sort);for(var c=Od(),u=0;u<n.length;++u){var l=n[u];r.skipNulls&&null===o[l]||Md(a,Wd(o[l],l,i,s,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,c))}var d=a.join(r.delimiter),h=!0===r.addQueryPrefix?"?":"";return r.charsetSentinel&&("iso-8859-1"===r.charset?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),d.length>0?h+d:""},Yd=function(e,t){var n=function(e){if(!e)return $d;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?$d.charset:e.charset,n=void 0===e.duplicates?$d.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||$d.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:$d.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:$d.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:$d.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:$d.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:$d.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:$d.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:$d.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:$d.decoder,delimiter:"string"==typeof e.delimiter||Gd.isRegExp(e.delimiter)?e.delimiter:$d.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:$d.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:$d.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:$d.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:$d.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:$d.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:$d.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var o="string"==typeof e?function(e,t){var n={__proto__:null},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var r,a=t.parameterLimit===1/0?void 0:t.parameterLimit,i=o.split(t.delimiter,a),s=-1,c=t.charset;if(t.charsetSentinel)for(r=0;r<i.length;++r)0===i[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===i[r]?c="utf-8":"utf8=%26%2310003%3B"===i[r]&&(c="iso-8859-1"),s=r,r=i.length);for(r=0;r<i.length;++r)if(r!==s){var u,l,d=i[r],h=d.indexOf("]="),p=-1===h?d.indexOf("="):h+1;-1===p?(u=t.decoder(d,$d.decoder,c,"key"),l=t.strictNullHandling?null:""):(u=t.decoder(d.slice(0,p),$d.decoder,c,"key"),l=Gd.maybeMap(Qd(d.slice(p+1),t),function(e){return t.decoder(e,$d.decoder,c,"value")})),l&&t.interpretNumericEntities&&"iso-8859-1"===c&&(l=Kd(l)),d.indexOf("[]=")>-1&&(l=Vd(l)?[l]:l);var f=Hd.call(n,u);f&&"combine"===t.duplicates?n[u]=Gd.combine(n[u],l):f&&"last"!==t.duplicates||(n[u]=l)}return n}(e,n):e,r=n.plainObjects?Object.create(null):{},a=Object.keys(o),i=0;i<a.length;++i){var s=a[i],c=Jd(s,o[s],n,"string"==typeof e);r=Gd.merge(r,c,n)}return!0===n.allowSparse?r:Gd.compact(r)},Zd={formats:xd,parse:Yd,stringify:Xd},eh={withCredentials:!0,timeout:9e4,baseURL:"https://jsonplaceholder.typicode.com/",headers:{"Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache","Content-Type":"application/json",Accept:"application/json"},paramsSerializer:function(e){return Zd.stringify(e,{indices:!1})}};!function(e){var t,n;(t=e.NotificationStatus||(e.NotificationStatus={})).SETTLED="SETTLED",t.NOT_SETTLED="NOT_SETTLED",(n=e.NotificationReason||(e.NotificationReason={})).REFUNDED="REFUNDED",n.RESOLVED="RESOLVED",n.CANCELLED="CANCELLED",n.SERVICE_SUSPENDED="SERVICE_SUSPENDED",n.ORDER_STOPPED="ORDER_STOPPED",n.DISMISS="DISMISS"}(xl||(xl={})),function(e){e.PAYMENTS="payments",e.INSIGHTS="insights"}(El||(El={})),function(e){var t;(t=e.CustomClaims||(e.CustomClaims={})).ORGANIZATION_CODE="https://dashboard.dev.y.uno/organization_code",t.USER_CODE="https://dashboard.dev.y.uno/user_code",t.USER_EMAIL="https://dashboard.dev.y.uno/user_email"}(Sl||(Sl={})),function(e){var t;(t=e.CountryCode||(e.CountryCode={})).COLOMBIA="CO",t.MEXICO="MX",t.BRAZIL="BR",t.ARGENTINA="AR",t.CHILE="CL",t.PERU="PE",t.URUGUAY="UR",t.ECUADOR="EC"}(Cl||(Cl={})),function(e){var t,n;(t=e.Locale||(e.Locale={})).EN="en",t.ES="es",t.PT="pt",(n=e.Target||(e.Target={})).BLANK="_blank",n.PARENT="_parent",n.SELF="_self",n.TOP="_top"}(Rl||(Rl={})),function(e){e.PAYMENTS="PAYMENTS",e.TRANSACTIONS="TRANSACTIONS",e.FRAUD_TRANSACTIONS="FRAUD_TRANSACTIONS",e.PAYOUTS="PAYOUTS"}(Tl||(Tl={})),function(e){e.ALL="ALL",e.DEFAULT="DEFAULT",e.CUSTOM="CUSTOM"}(Il||(Il={})),function(e){var t,n;(t=e.StepType||(e.StepType={})).FRAUD="FRAUD",t.PAYMENT="PAYMENT",t.THREE_D_SECURE="THREE_D_SECURE",t.CYBERSOURCE_3DS="CYBERSOURCE_3DS",(n=e.DeclineGroupType||(e.DeclineGroupType={})).PROVIDER_STATUS="PROVIDER_STATUS",n.MAC_CODE="MAC_CODE"}(Al||(Al={})),function(e){var t;(t=e.InsightsVolumeMetricsV2Path||(e.InsightsVolumeMetricsV2Path={})).REFUNDS_AND_CHARGEBACKS="refunds-and-chargebacks",t.APPROVED_PAYMENTS="approved-payments",t.PAYMENT_METHODS="payment-methods",t.PROVIDERS="providers",t.COUNTRIES="countries",t.UNIQUE_CUSTOMER_PAYMENTS="unique-customer-payments",t.TOTAL_PAYMENTS="total-payments",function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(e.OverviewMetricType||(e.OverviewMetricType={}))}(Ol||(Ol={})),function(e){e.TRANSACTIONS="TRANSACTION_RECONCILIATION",e.SETTLEMENTS="SETTLEMENTS",e.SETTLEMENTS_HEADER="SETTLEMENTS_HEADER",e.AGENDA="AGENDA",e.SALES_CONCILIATION="SALES_CONCILIATION",e.ADVANCEMENTS="ADVANCEMENTS",e.FEES="FEES"}(jl||(jl={})),function(e){e.TOTAL_AMOUNT="AGENDA_TOTAL_AMOUNT",e.DAILY="AGENDA_DAILY_DISTRIBUTION",e.PAYMENT_METHOD="AGENDA_PAYMENT_METHOD_DISTRIBUTION",e.CARD_BRAND="AGENDA_CARD_BRAND_DISTRIBUTION"}(Pl||(Pl={})),function(e){var t;(t=e.AIGenerateStatus||(e.AIGenerateStatus={})).ACCEPTED="ACCEPTED",t.REFUSED="REFUSED",t.FRONT_FAILED="FRONT_FAILED"}(Dl||(Dl={}));var th=["PAUSED","ACTIVE"],nh={PAUSED:"pause",DELETED:"delete",ACTIVE:"unpause"},oh="DELETED",rh={CR_CARD_BIN:"bin",CR_CARD_BRAND:"brand",CR_CARD_ISSUER_NAME:"issuer-name",CR_CARD_TYPE:"type",CR_FALLBACK:"fallback"},ah=function(e){return!(null==e?void 0:e.data)||"string"==typeof(null==e?void 0:e.data)&&""===(null==e?void 0:e.data)},ih=[{status:"CREATED",sub_status:"CREATED",icon:"FlagBanner",type:"info",label:"Created",sub_status_icon:"FlagBanner",sub_status_label:"Created"},{status:"CREATED",sub_status:"REJECTED",icon:"WarningCircle",type:"error",label:"Created",sub_status_icon:"WarningCircle",sub_status_label:"Rejected"},{status:"ERROR",sub_status:"CREATED",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Created"},{status:"ERROR",sub_status:"ERROR",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Error"},{status:"ERROR",sub_status:"TIMEOUT",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Timeout"},{status:"ERROR",sub_status:"PENDING_REVERSE",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Pending reverse"},{status:"ERROR",sub_status:"REVERSED_BY_TIMEOUT",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Reversed by timeout"},{status:"SUCCEEDED",sub_status:"CREATED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Created"},{status:"SUCCEEDED",sub_status:"PARTIALLY_APPROVED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially approved"},{status:"SUCCEEDED",sub_status:"APPROVED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Approved"},{status:"SUCCEEDED",sub_status:"CAPTURED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Captured"},{status:"SUCCEEDED",sub_status:"PARTIALLY_CAPTURED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially captured"},{status:"SUCCEEDED",sub_status:"PARTIALLY_REFUNDED",icon:"ArrowCircleLeft",type:"success",label:"Succeeded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Partially refunded"},{status:"CANCELED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Canceled",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"CANCELED",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"info",label:"Cancellation pending",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"CANCELED",sub_status:"CANCELED",icon:"Prohibit",type:"error",label:"Canceled",sub_status_icon:"Prohibit",sub_status_label:"Canceled"},{status:"DECLINED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"DECLINED",sub_status:"DECLINED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Declined"},{status:"REJECTED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"REJECTED",sub_status:"REJECTED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Rejected"},{status:"REFUNDED",sub_status:"CREATED",icon:"ArrowCircleLeft",type:"secondary",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Created"},{status:"REFUNDED",sub_status:"PARTIALLY_REFUNDED",icon:"ArrowCircleLeft",type:"success",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Partially refunded"},{status:"REFUNDED",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"secondary",label:"Refunded",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"REFUNDED",sub_status:"REFUNDED",icon:"ArrowCircleLeft",type:"secondary",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Refunded"},{status:"PENDING",sub_status:"CREATED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Created"},{status:"PENDING",sub_status:"AUTHORIZED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Authorized"},{status:"PENDING",sub_status:"WAITING_ADDITIONAL_STEP",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Waiting additional step"},{status:"PENDING",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"VERIFIED",sub_status:"CREATED",icon:"CheckCircle",type:"success",label:"Verified",sub_status_icon:"CheckCircle",sub_status_label:"Created"},{status:"VERIFIED",sub_status:"VERIFIED",icon:"CheckCircle",type:"success",label:"Verified",sub_status_icon:"CheckCircle",sub_status_label:"Verified"},{status:"READY_TO_PAY",sub_status:"CREATED",icon:"FlagBanner",type:"info",label:"Ready to pay",sub_status_icon:"FlagBanner",sub_status_label:"Created"},{status:"READY_TO_PAY",sub_status:"READY_TO_PAY",icon:"FlagBanner",type:"info",label:"Ready to pay",sub_status_icon:"FlagBanner",sub_status_label:"Ready to pay"},{status:"EXPIRED",sub_status:"CREATED",icon:"Clock",type:"error",label:"Expired",sub_status_icon:"Clock",sub_status_label:"Created"},{status:"EXPIRED",sub_status:"EXPIRED",icon:"Clock",type:"error",label:"Expired",sub_status_icon:"Clock",sub_status_label:"Expired"},{status:"PENDING",sub_status:"IN_PROCESS",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"In process"},{status:"PENDING",sub_status:"PENDING_FRAUD_REVIEW",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Pending fraud review"},{status:"REJECTED",sub_status:"FRAUD_DECLINED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"DECLINED",sub_status:"FRAUD_DECLINED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"FRAUD_VERIFIED",sub_status:"FRAUD_SCREENING_VERIFIED",icon:"CheckCircle",type:"success",label:"Fraud verified",sub_status_icon:"CheckCircle",sub_status_label:"Fraud screening verified"},{status:"SUCCEEDED",sub_status:"PARTIALLY_CHARGEBACKED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially chargebacked"},{status:"IN_DISPUTE",sub_status:"RECEIVED",icon:"ArrowCircleLeft",type:"secondary",label:"In dispute",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Received"},{status:"IN_DISPUTE",sub_status:"PENDING_REVIEW",icon:"ArrowCircleLeft",type:"secondary",label:"In dispute",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Pending review"},{status:"CHARGEBACK",sub_status:"LOST",icon:"Prohibit",type:"error",label:"Chargeback",sub_status_icon:"Prohibit",sub_status_label:"Lost"},{status:"SUCCEEDED",sub_status:"VERIFIED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Verified"},{status:"SUCCEEDED",sub_status:"FRAUD_DECLINED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"PENDING",sub_status:"FRAUD_DECLINED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"}],sh=[{status:"SUCCEEDED",icon:"CheckCircle",type:"success",label:"Succeeded"},{status:"CREATED",icon:"FlagBanner",type:"info",label:"Created"},{status:"ERROR",icon:"WarningCircle",type:"error",label:"Error"},{status:"EXPIRED",icon:"Clock",type:"error",label:"Expired"},{status:"CANCELED",icon:"Prohibit",type:"error",label:"Canceled"},{status:"DECLINED",icon:"Prohibit",type:"error",label:"Declined"},{status:"PENDING",icon:"Clock",type:"warning",label:"Pending"},{status:"REJECTED",icon:"Prohibit",type:"error",label:"Rejected"},{status:"WON",icon:"CheckCircle",type:"success",label:"Won"},{status:"LOST",icon:"WarningCircle",type:"error",label:"Lost"}],ch=[{id:1,status:"RECONCILED",sub_status:"AUTOMATICALLY",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Automatically",sub_status_icon:"CheckCircle"},{id:2,status:"RECONCILED",sub_status:"MANUALLY",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Manually",sub_status_icon:"CheckCircle"},{id:3,status:"NOT_RECONCILED",sub_status:"PENDING",type:"warning",label:"Not reconciled",icon:"Clock",sub_status_label:"Pending",sub_status_icon:"Clock"},{id:4,status:"NOT_RECONCILED",sub_status:"MISSING",type:"warning",label:"Not reconciled",icon:"Clock",sub_status_label:"Missing",sub_status_icon:"Clock"},{id:5,status:"RECONCILED",sub_status:"STATUS_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Status conflict",sub_status_icon:"CheckCircle"},{id:6,status:"RECONCILED",sub_status:"DATE_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Date conflict",sub_status_icon:"CheckCircle"},{id:7,status:"RECONCILED",sub_status:"AMOUNT_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Amount conflict",sub_status_icon:"CheckCircle"},{id:8,status:"RECONCILING_INSTALLMENTS",sub_status:"PENDING_INSTALLMENTS",type:"warning",label:"Reconciling installments",icon:"Clock",sub_status_label:"Pending installments",sub_status_icon:"Clock"},{id:9,status:"NON_RECONCILABLE",sub_status:"AUTOMATICALLY",type:"warning",label:"Non Reconciliable",icon:"Clock",sub_status_label:"Automatically",sub_status_icon:"Clock"}],uh=[{identifier:"America/Argentina/Buenos_Aires",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Asuncion",utc_offset:{dst:"-04:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Bogota",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Caracas",utc_offset:{dst:"-04:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Chicago",utc_offset:{dst:"-05:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Costa_Rica",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/El_Salvador",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Guatemala",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Guayaquil",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Havana",utc_offset:{dst:"-05:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/La_Paz",utc_offset:{dst:"-04:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Lima",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Managua",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Mexico_City",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Montevideo",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Panama",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Phoenix",utc_offset:{dst:"-07:00",std:"-07:00"},abbreviation:{dst:"GMT",std:"-7"}},{identifier:"America/Santiago",utc_offset:{dst:"-04:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Sao_Paulo",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Tegucigalpa",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"Asia/Famagusta",utc_offset:{dst:"+02:00",std:"+03:00"},abbreviation:{dst:"EET",std:""}},{identifier:"Asia/Seoul",utc_offset:{dst:"+09:00",std:"+09:00"},abbreviation:{dst:"KST",std:""}},{identifier:"Asia/Shanghai",utc_offset:{dst:"+08:00",std:"+08:00"},abbreviation:{dst:"CST",std:""}},{identifier:"Asia/Tokyo",utc_offset:{dst:"+09:00",std:"+09:00"},abbreviation:{dst:"JST",std:""}},{identifier:"Australia/Sydney",utc_offset:{dst:"+10:00",std:"+11:00"},abbreviation:{dst:"AEST",std:""}},{identifier:"Coordinated Universal Time",utc_offset:{dst:"+00:00",std:"+00:00"},abbreviation:{dst:"UTC",std:""}},{identifier:"Europe/Madrid",utc_offset:{dst:"+01:00",std:"+01:00"},abbreviation:{dst:"GMT",std:"+1"}},{identifier:"Europe/Moscow",utc_offset:{dst:"+03:00",std:"+03:00"},abbreviation:{dst:"MSK",std:""}},{identifier:"India",utc_offset:{dst:"+03:00",std:"+03:00"},abbreviation:{dst:"IST",std:""}}],lh=[{id:1,value:"ACCOUNTS",type:"source"},{id:2,value:"CHECKOUT",type:"source"},{id:3,value:"CREATE",type:"event"},{id:4,value:"UPDATE",type:"event"},{id:5,value:"CONNECTIONS",type:"source"},{id:6,value:"ROLES",type:"source"},{id:7,value:"ROUTING",type:"source"},{id:8,value:"TEAMS",type:"source"},{id:9,value:"WEBHOOKS",type:"source"},{id:10,value:"PAYMENT_LINKS",type:"source"},{id:11,value:"DELETE",type:"event"}],dh={docs_url:"https://docs.y.uno/reference/api-reference-overview"},hh={en:[{text:"Home",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"en",submenues:null},{text:"Payments",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"en",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Payment links",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Connections",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"en",submenues:null},{text:"Reconciliations",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"en",submenues:null},{text:"Routing",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"en",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"en",submenues:null},{text:"Developers",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"SUPPORT",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"en",submenues:null},{text:"API Reference",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"en",submenues:null},{text:"Audit logs",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"en",submenues:null}],pt:[{text:"Pagamentos",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"pt",submenues:null},{text:"Início",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"pt",submenues:null},{text:"ASSISTÊNCIA",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"pt",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"pt",submenues:null},{text:"Programadores",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Links de pagamento",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Reconciliações",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"pt",submenues:null},{text:"Auditoria",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"API referência",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"pt",submenues:null},{text:"Conexões",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"pt",submenues:null},{text:"Roteamento",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"pt",submenues:null}],es:[{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"es",submenues:null},{text:"Inicio",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Pagos",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"es",submenues:null},{text:"Ruteo",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"es",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"es",submenues:null},{text:"Desarrolladores",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Registros de auditoria",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"ASISTENCIA",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"es",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Documentación de la API",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"es",submenues:null},{text:"Enlaces de pago",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Conexiones",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"es",submenues:null},{text:"Conciliaciones",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"es",submenues:null}]},ph=[{code:"en",name:"English (en)"},{code:"es",name:"Spanish (es)"},{code:"pt",name:"Portuguese (pt)"}];const fh=[];for(let e=0;e<256;++e)fh.push((e+256).toString(16).slice(1));let mh;const gh=new Uint8Array(16);var yh={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function vh(e,t,n){if(yh.randomUUID&&!t&&!e)return yh.randomUUID();const o=(e=e||{}).random??e.rng?.()??function(){if(!mh){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");mh=crypto.getRandomValues.bind(crypto)}return mh(gh)}();if(o.length<16)throw new Error("Random bytes length must be >= 16");if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=o[e];return t}return function(e,t=0){return(fh[e[t+0]]+fh[e[t+1]]+fh[e[t+2]]+fh[e[t+3]]+"-"+fh[e[t+4]]+fh[e[t+5]]+"-"+fh[e[t+6]]+fh[e[t+7]]+"-"+fh[e[t+8]]+fh[e[t+9]]+"-"+fh[e[t+10]]+fh[e[t+11]]+fh[e[t+12]]+fh[e[t+13]]+fh[e[t+14]]+fh[e[t+15]]).toLowerCase()}(o)}var bh=function(e){return{account_codes:e&&(null==e?void 0:e.length)>0?null==e?void 0:e.split(","):[]}},kh=function(e){function i(t){var n=t?r(r({},eh),t):eh;return e.call(this,n)||this}return o(i,e),i.prototype.simulateAxiosError=function(){return new Promise(function(e,t){t({name:"AxiosError"})})},i.prototype.updateReconciliationReportTemplate=function(e){var t=e.type===jl.TRANSACTIONS?"TRANSACTIONS":e.type,n=r(r({},e),{type:t});return this.put("/v1/reconciliation/reports/templates",n)},i.prototype.createReconciliationReportTemplate=function(e){var t=e.type===jl.TRANSACTIONS?"TRANSACTIONS":e.type,n=r(r({},e),{type:t});return this.post("/v1/reconciliation/reports/templates",n)},i.prototype.getReconciliationTransactions=function(e){var t=e.account_code;return delete e.account_code,this.post("v2/reconciliation/transactions",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},i.prototype.getReconciliationSettlements=function(e){var t=e.account_code;return delete e.account_code,this.post("/reconciliation/settlements",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},i.prototype.getReconciliationMetrics=function(e){var t=e.account_code;return delete e.account_code,this.post("/reconciliation/reports",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},i.prototype.getReconciliationFilters=function(){return this.get("/reconciliation/filters")},i.prototype.getReconciliationsReportColumns=function(e,t){return this.get("/v1/reconciliation/reports/columns/".concat(e,"/").concat(t))},i.prototype.getReconciliationReportTemplates=function(){return this.get("/v1/reconciliation/reports/templates")},i.prototype.getAllTableColumns=function(e){return this.get("/v1/reconciliation/table/".concat(e,"/columns"))},i.prototype.getReconciliationActive=function(){return this.get("/v1/reconciliation/status")},i.prototype.getReconciliationAlerts=function(e,t){return this.post("/reconciliation/alerts/list",e,{params:t})},i.prototype.postReconciliationAlert=function(e){return this.post("/reconciliation/alerts",e)},i.prototype.updateReconciliationAlert=function(e){return this.patch("/reconciliation/alerts",e)},i.prototype.deleteReconciliationAlert=function(e){return this.delete("/reconciliation/alerts",{params:e})},i.prototype.getReconciliationAgenda=function(e,t){return this.post("/reconciliation/agenda/list",e,{params:t})},i.prototype.getReconciliationAgendaInsightByKey=function(e,t){return this.post("/reconciliation/agenda/insights",e,{params:t})},i.prototype.getReconciliationSales=function(e,t){return this.post("/reconciliation/sales/list",e,{params:t})},i.prototype.getReconciliationAdvancements=function(e,t){return this.post("/reconciliation/advancements/list",e,{params:t})},i.prototype.getReconciliationFees=function(e,t){return this.post("/reconciliation/fees/list",e,{params:t})},i.prototype.postPaymentsLazy=function(e){var t=e.account_code,n=a(e,["account_code"]);return n.start_date||(n.start_date=new Date),n.end_date||(n.end_date=new Date),this.post("/payments/lazy",{account_codes:(null==t?void 0:t.split(","))||[]},{params:n})},i.prototype.postPayouts=function(e){var t=e.account_code,n=a(e,["account_code"]);return n.start_date||(n.start_date=new Date),n.end_date||(n.end_date=new Date),this.post("/payouts",{account_codes:(null==t?void 0:t.split(","))||[]},{params:n})},i.prototype.getPayoutsFilters=function(e){return this.get("/payouts/filters",{headers:{"x-organization-code":e}})},i.prototype.postPaymentsEvaluated=function(e){e.account_code;var t=a(e,["account_code"]);return t.start_date||(t.start_date=new Date),t.end_date||(t.end_date=new Date),this.post("/payments/evaluated",t)},i.prototype.getPaymentV2=function(e){return this.get("/payments/v2/".concat(e))},i.prototype.postTransactions=function(e){var t=e.account_code,n=a(e,["account_code"]);return this.post("/v2/transactions",{account_codes:(null==t?void 0:t.split(","))||[]},{params:n})},i.prototype.postFraudTransactions=function(e){var t=e.account_code,n=a(e,["account_code"]);return this.post("/fraud-transactions",{account_codes:(null==t?void 0:t.split(","))||[]},{params:n})},i.prototype.getPayoutDetails=function(e){var t={"x-organization-code":e.organization_code};return this.get("/payouts/detail/".concat(e.payout_code),{headers:t})},i.prototype.getPayoutTransactionDetails=function(e){var t={"x-organization-code":e.organization_code};return this.get("/payouts/".concat(e.payout_code,"/transaction/").concat(e.transaction_code,"/detail"),{headers:t})},i.prototype.getPayoutHistoryDetails=function(e,t){var n={"x-organization-code":t};return this.get("/payouts/".concat(e.payout_code,"/history"),{headers:n})},i.prototype.getPaymentMethodsByCountry=function(e,t){var n=e.provider_id,o=e.country,r=localStorage.getItem("x-organization-code"),a={"x-organization-code":t};return this.get("/organizations/provider-params/".concat(n,"/").concat(o),r?{}:{headers:a})},i.prototype.getOrgByName=function(e){return this.post("/organizations/get-by-name",{org_name:e})},i.prototype.createOperationTransaction=function(e,t,n,o){return this.post("/payments/".concat(n,"/transactions/").concat(t,"/").concat(o),e)},i.prototype.getPaymentMethodsAndProviders=function(){return this.get("/payments/payment-methods/providers")},i.prototype.getTransactionDetailsV2=function(e){return this.get("/payments/".concat(e.payment_code,"/transactions/details"),{params:{payment_code:e.payment_code,size:99}})},i.prototype.getTransactionRawResponse=function(e){return this.get("/transactions/".concat(e.transaction_code,"/raw-response"))},i.prototype.uploadChargebacks=function(e,t,n,o){return this.post("/chargebacks/upload-file/payment/".concat(t,"/transaction/").concat(n),e,{onUploadProgress:function(e){o(e.total?Math.round(100*e.loaded/e.total):0)},headers:{"x-account-code":null==e?void 0:e.account_id,"x-idempotency-key":vh()}})},i.prototype.getPaymentTransactionsDetails=function(e){var t=e.transaction_code;return this.get("/transactions/".concat(t,"/details"))},i.prototype.getTransactionHistoryByPaymentCode=function(e){var t=e.payment_code;return this.get("/transactions/by-payment/".concat(t,"/history"))},i.prototype.getDeveloperCredentials=function(e,t){return this.get("/v2/developers/credentials",{headers:{"x-password":e,"x-account-code":t}})},i.prototype.getDeveloperCredentialsValidatePassword=function(e){return this.get("/validate-password",{headers:{"x-password":e}})},i.prototype.getAllowedIps=function(){return this.get("/allowlist-ips")},i.prototype.patchAllowedIps=function(e){return this.patch("/allowlist-ips",e)},i.prototype.getOrganization=function(){return this.get("/organizations",{headers:{"x-organization-code":""}})},i.prototype.getAllOrganization=function(){return this.get("/organizations/all")},i.prototype.getProviderParams=function(e,t){var n,o=localStorage.getItem("x-organization-code"),r={"x-organization-code":o?null===(n=JSON.parse(o))||void 0===n?void 0:n.value:t};return this.get("/organizations/provider-params/".concat(e.id),{headers:r})},i.prototype.getIntegrationByAccountV2=function(e){var t=e.accountCode,n={"x-organization-code":e.organizationCode,"x-account-code":t};return this.post("/connections/my-connections",{account_code:t},{headers:n})},i.prototype.putCosts=function(e){return t(this,void 0,void 0,function(){return n(this,function(t){return[2,this.put("/connections/costs",{costs:[e]})]})})},i.prototype.updateOrganizationStatus=function(){return t(this,void 0,void 0,function(){return n(this,function(e){return[2,this.patch("/organizations/status")]})})},i.prototype.getIntegrationParams=function(e){var t=e.accountCode,n=e.integration_code;return this.get("/connections/integration-params/".concat(n),t?{headers:{"x-account-code":t}}:{})},i.prototype.getConnectionsByPaymentMethod=function(e,o){return t(this,void 0,void 0,function(){return n(this,function(t){return[2,this.get("/organizations/connections/".concat(e,"/").concat(o))]})})},i.prototype.getHashPylon=function(){return this.get("/pylon-hash")},i.prototype.getConnections=function(){return this.get("/connections")},i.prototype.postValidateStatusConnection=function(e){var t=e.payload,n={"x-account-code":e.accountCode};return this.post("/connections/validate-status",t,{headers:n})},i.prototype.postChangeStatusConnection=function(e){var t=e.payload,n=e.accountCode,o="/connections/change-status";if(t.status==oh)return delete t.status,this.delete(o,{data:t});Object.values(th).includes(null==t?void 0:t.status)&&(o="".concat(o,"/").concat(nh[t.status]),delete t.status);var r={"x-account-code":n};return this.post(o,t,{headers:r})},i.prototype.postMultiConnection=function(e){var t=e.payload;return this.post("/connections/multi-accounts",t)},i.prototype.postMultiConnectionValidate=function(){return this.get("/connection/valid-accounts")},i.prototype.patchConnection=function(e){var t,n=e.payload,o=e.connectionCode,a=localStorage.getItem("account"),i=a?null===(t=JSON.parse(a).value)||void 0===t?void 0:t.code:"";return this.patch("/connections/".concat(o),r({account_code:i},n))},i.prototype.postDefaultRoutes=function(e){var t=e.payload;return this.post("/connections/default-routes",t)},i.prototype.getDialogs=function(){return this.get("/dialogs")},i.prototype.getWebhookParamsV2=function(){return this.get("/accounts/webhooks-v2/params-catalog")},i.prototype.getWebhooksV3=function(e){var t=e.accountCode,n=e.name;return this.post("/accounts/webhooks-v2/search",{name:n},{headers:{"x-account-code":t}})},i.prototype.getWebhooksV2Detail=function(e){var t=e.accountCode;return this.get("/accounts/webhooks-v2/detail/".concat(t))},i.prototype.postWebhookV2MultiAccount=function(e){var t=e.payload;return this.post("/accounts/webhooks/multi-account",t)},i.prototype.deleteWebhookV2=function(e,t){return this.delete("/accounts/webhooks-v2/".concat(e,"/").concat(t))},i.prototype.updateWebhookV2=function(e,t,n){return this.patch("/accounts/webhooks-v2/".concat(e,"/").concat(n),t)},i.prototype.getMenu=function(){return this.get("/cms/menu")},i.prototype.postWebhookLogs=function(e){var t=e.payload,n=t.account_code,o=a(t,["account_code"]),r={account_codes:n};return this.post("/v2/webhooks/organization",r,{params:o})},i.prototype.postResendWebhooks=function(e){var t=e.codes;return this.post("/v2/webhooks/organization/resend",{codes:t})},i.prototype.postExportApiLogs=function(e){return this.post("/v1/api-logs/organization/export",e)},i.prototype.postApiLogs=function(e){var t=e.payload,n=t.account_code,o=a(t,["account_code"]),r={account_codes:n};return this.post("/v2/api-logs/organization",r,{params:o})},i.prototype.getApiLogsDetailByPaymentCode=function(e){return this.get("/v2/api-logs/payment/".concat(e,"/details"))},i.prototype.useGetPaymentStatusesStyles=function(){return this.get("/cms/payment/statuses")},i.prototype.useGetTransactionStatusesStyles=function(){return this.get("/cms/transaction/statuses")},i.prototype.useGetReconciliationTransactionStatusesStyles=function(){return this.get("/cms/reconciliation/transaction/statuses")},i.prototype.useGetCountriesConfig=function(){return this.get("/country-data-api/v1/config")},i.prototype.useGetCountriesConfigV2=function(e){var t=e?{"accept-language":e}:{};return this.get("/country-data/v2/config",{params:t})},i.prototype.useGetTimeZoneCatalog=function(){return this.get("/cms/timezone/catalog")},i.prototype.useGetAuditLogsFilters=function(){return this.get("/cms/audit-logs-filters")},i.prototype.getDashboardStaticContents=function(){return this.get("/cms/static-contents")},i.prototype.getLocales=function(){return this.get("/cms/locales")},i.prototype.getSmartRoutingMethods=function(e){return this.get("/smart-routing/methods/".concat(e))},i.prototype.putSmartRoutingToggleMethod=function(e,t,n){return this.put("/smart-routing/methods/".concat(e,"/").concat(t),{active:n})},i.prototype.getSmartRoutingConditionTypes=function(e,t){return this.get("/smart-routing/condition-types/".concat(e,"/").concat(t))},i.prototype.getSmartRoutingConditionPaymentMethod=function(e,t){var n={"x-account-code":e};return this.get("/smart-routing/payment-methods/".concat(t,"/conditions"),{headers:n})},i.prototype.getSmartRoutingConditionTypesValues=function(e,t){return this.get("/smart-routing/condition-types-values/".concat(e,"/").concat(t))},i.prototype.getSmartRoutingNextSteps=function(e,t,n){return this.get("/smart-routing/next-route/".concat(e,"/").concat(t,"/").concat(n))},i.prototype.getSmartRoutingWorkflowVersion=function(e,t){return this.get("/smart-routing/workflow-version/".concat(e,"/").concat(t))},i.prototype.getSmartRoutingWorkflow=function(e,t){return this.get("/smart-routing/workflow/".concat(e,"/").concat(t))},i.prototype.putSmartRoutingUpdateWorkflow=function(e,t){return this.put("/smart-routing/update-workflow/".concat(e),t)},i.prototype.putSmartRoutingUpdateWorkflowName=function(e,t){return this.put("/smart-routing/workflow/".concat(e,"/edit-name"),t)},i.prototype.postSmartRoutingCreateWorkflow=function(e,t){return this.post("/smart-routing/create-workflow/".concat(e),t)},i.prototype.postSmartRoutingPublishVersion=function(e,t,n){var o={"x-organization-code":n};return this.post("/smart-routing/publish-version/".concat(e,"/").concat(t),{},{headers:o})},i.prototype.deleteSmartRoutingVersion=function(e,t){return this.delete("/smart-routing/delete-version/".concat(e,"/").concat(t))},i.prototype.postSmartRoutingDuplicateVersion=function(e,t){return this.post("/smart-routing/duplicate-version/".concat(e,"/").concat(t))},i.prototype.getSmartRoutingDeclinedGroup=function(e){return this.get("/smart-routing/declined-groups/".concat(e))},i.prototype.updateSmartRoutingDeclinedGroup=function(e,t,n){return this.put("/smart-routing/declined-groups/".concat(e,"/").concat(t),n)},i.prototype.createSmartRoutingDeclinedGroup=function(e,t){return this.post("/smart-routing/declined-groups/".concat(e),t)},i.prototype.getSmartRoutingPaymentRoute=function(e,t){return this.get("/smart-routing/payment-route/".concat(e,"/").concat(t))},i.prototype.updateSmartRoutingFavorite=function(e,t,n){return this.put("/smart-routing/favorite/".concat(e,"/").concat(t),{favorite:n})},i.prototype.getSmartRoutingSimulateConditionTypeValues=function(e){return this.get("/smart-routing/condition-types-values-list/".concat(e))},i.prototype.simulateSmartRoutingTransaction=function(e,t,n){return this.post("/smart-routing/simulate-transaction/".concat(e,"/").concat(t),n)},i.prototype.getSmartRoutingSearchConditionValues=function(e,t){return this.get("/smart-routing/search-condition-values/".concat(e,"/").concat(t))},i.prototype.getProviderConversionRatesData=function(){return this.get("/smart-routing/conversion-rates/all")},i.prototype.updateMonitorRedistribution=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/monitor-redistribution",t,{headers:n})},i.prototype.removeDeclinedGroup=function(e,t){var n={"x-organization-code":e};return this.delete("/smart-routing/declined-groups/".concat(t),{headers:n})},i.prototype.multiAccountDeclinedGroupCreate=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/declined-groups/massive/create",t,{headers:n})},i.prototype.generateAIWorkflowRoutes=function(e,t){var n={"x-organization-code":e};return this.post("/ai/generate-route",t,{headers:n})},i.prototype.postAIGenerationFeedback=function(e){return this.post("/ai/generation-feedback",e)},i.prototype.getRoutingMonitorsTemplates=function(e){var t={"x-organization-code":e};return this.get("/routing-monitor/templates",{headers:t})},i.prototype.getRoutingMonitorsTemplate=function(e,t){var n={"x-organization-code":t};return this.get("/routing-monitor/template/".concat(e),{headers:n})},i.prototype.createMonitorThreshold=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/threshold",e,{headers:n})},i.prototype.createMonitorTemplate=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/template",e,{headers:n})},i.prototype.getSmartRoutingDataReport=function(e){return this.get("/data-report",{params:e})},i.prototype.getInsightsMetricsConversionRateV2=function(e,t){var n=e.account_code,o=e.connection_name,r=a(e,["account_code","connection_name"]),i=bh(n);return o&&(i.connection_name=o.split(",")),this.post("/insights/conversion-rate/".concat(t),i,{params:r})},i.prototype.getInsightsMetricsConversionRateViewMore=function(e,t){var n=e.account_code,o=a(e,["account_code"]);return this.post("/insights/conversion-rate/cards/metrics/".concat(t),bh(n),{params:o})},i.prototype.getInsightFallbackMetrics=function(e){var t=e.account_code,n=a(e,["account_code"]);return this.post("/insights/conversion-rate/fallback",bh(t),{params:n})},i.prototype.getInsightsMetricsVolume=function(e,t){var n=t.connection_name,o=a(t,["connection_name"]),i={account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]};return n&&(i=r(r({},i),{connection_name:null==n?void 0:n.split(",")})),this.post("/insights/volume/metrics",i,{params:o})},i.prototype.getInsightsMetricsVolumeV2=function(e,t,n){var o=n.connection_name,i=a(n,["connection_name"]),s={account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]};return o&&(s=r(r({},s),{connection_name:null==o?void 0:o.split(",")})),this.post("/insights/volume/".concat(t),s,{params:i})},i.prototype.getInsightsFraudScreeningVolumeAndCountTx=function(e,t){return this.post("/insights/fraud-screening/volume-and-count-tx",e,{params:t})},i.prototype.getInsightsFraudScreeningConversionRate=function(e,t){return this.post("/insights/fraud-screening/conversion-rate",e,{params:t})},i.prototype.getInsights3dsVolumeAndCountTx=function(e,t){return this.post("/insights/3ds/volume-and-count-tx",e,{params:t})},i.prototype.getInsights3dsConversionRateAndEvolution=function(e,t){return this.post("/insights/3ds/conversion-rate-and-evolution",e,{params:t})},i.prototype.getInsights3dsDeclineReasons=function(e,t){return this.post("/insights/3ds/decline-reasons",e,{params:t})},i.prototype.getInsights3dsFrictionlessVsChallenge=function(e,t){return this.post("/insights/3ds/frictionless-vs-challenge",e,{params:t})},i.prototype.getInsightsChargebacksVolumeAndCountTx=function(e,t){return this.post("/insights/chargebacks/volume-and-count-tx",e,{params:t})},i.prototype.getInsightsChargebacksTotalRateAndEvolution=function(e,t){return this.post("/insights/chargebacks/total-rate-and-evolution",e,{params:t})},i.prototype.getInsightsChargebacksWinRate=function(e,t){return this.post("/insights/chargebacks/win-rate",e,{params:t})},i.prototype.getInsightsChargebacksDisputed=function(e,t){return this.post("/insights/chargebacks/disputed",e,{params:t})},i.prototype.getInsightsChargebacksByProviderAndCardBrand=function(e,t){return this.post("/insights/chargebacks/by-provider-and-card-brand",e,{params:t})},i.prototype.getInsightsChargebacksReasonsDistribution=function(e,t){return this.post("/insights/chargebacks/reasons-distribution",e,{params:t})},i.prototype.getInsightsChargebacksStatusDistribution=function(e,t){return this.post("/insights/chargebacks/status-distribution",e,{params:t})},i.prototype.getInsightsChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},i.prototype.getInsightOverview=function(e){var t=e.account_code,n=e.connection_name,o=a(e,["account_code","connection_name"]),i=bh(t);return n&&(i=r(r({},i),{connection_name:null==n?void 0:n.split(",")})),this.post("/insights/overview",i,{params:o})},i.prototype.getInsightOverviewV3=function(e,t){var n=e.account_code,o=e.connection_name,i=a(e,["account_code","connection_name"]),s=bh(n);return o&&(s=r(r({},s),{connection_name:null==o?void 0:o.split(",")})),this.post("/insights/overview/".concat(t),s,{params:i})},i.prototype.getInsighstHomeMetrics=function(e){return this.post("/insights/dashboard-home-metrics",e)},i.prototype.getInsightsMetricsTotalPaymentsAndFraud=function(e,t){return this.post("/insights/payments-and-fraud/payments",{account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]},{params:t})},i.prototype.getInsightsMetricsCustomerPaymentsAndFraud=function(e,t){return this.post("/insights/payments-and-fraud/customer",{account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]},{params:t})},i.prototype.getCheckouts=function(e){var t=e.accountCode;return this.get("/checkouts/".concat(t))},i.prototype.getCheckoutTemplate=function(e){var t=e.accountCode;return this.get("/v2/checkouts/template/".concat(t))},i.prototype.getNameAndIcon=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/icon-name?type=").concat(n))},i.prototype.getRequiredFields=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/required-fields?type=").concat(n))},i.prototype.updateCheckoutTemplate=function(e){var t=e.accountCode,n=e.template;return this.post("/v2/checkouts/template",{account_code:t,template:n})},i.prototype.updateIsActiveCheckout=function(e){var t,n=localStorage.getItem("account"),o=n?null===(t=JSON.parse(n).value)||void 0===t?void 0:t.code:"";return this.patch("/checkouts/publish",e,{headers:{"x-account-code":o}})},i.prototype.getStylingSdkDynamic=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},i.prototype.getStylingTheme=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkouts/styling/theme",{headers:t})},i.prototype.updateStylingTheme=function(e){var t=e.accountCode,n=e.theme,o={"x-account-code":t};return this.patch("/checkouts/styling/theme",n,{headers:o})},i.prototype.getStylingSettings=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},i.prototype.getStylingSettingsV2=function(e){var t=e.accountCode,n=e.environment,o={"x-account-code":t,"x-environment":void 0===n?"live":n};return this.get("/v1/checkouts/builder/settings",{headers:o})},i.prototype.changeStylingSettings=function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n,r=e.payload,a={"x-account-code":t,"x-environment":o,"Content-Type":"application/json"};return this.patch("/v1/checkouts/builder/settings",r,{headers:a})},i.prototype.emailVerification=function(e){return this.get("/user/email-verification/".concat(e))},i.prototype.createReconciliationsReportV2=function(e){return this.post("/v2/reports/create",e)},i.prototype.createReportV2=function(e){return this.post("/reports",e)},i.prototype.getTotalRowsForExport=function(e){return this.post("/reports/count",e)},i.prototype.reportsList=function(){return this.get("/reports")},i.prototype.reportsListMultiEnv=function(){return this.get("/reports/multi-environment")},i.prototype.downloadReports=function(e){return this.get("/reports-redirect/".concat(e))},i.prototype.cancelReport=function(e){return this.patch("/reports/".concat(e))},i.prototype.getReportTemplates=function(){return this.get("/reports/templates")},i.prototype.createReportTemplate=function(e){return this.post("/reports/templates",e)},i.prototype.updateReportTemplate=function(e){return this.put("/reports/templates",e)},i.prototype.getReportColumns=function(e,t){return this.get("/reports/columns/".concat(e,"/").concat(t))},i.prototype.getReportTemplatesList=function(e){return this.get("/template-reporting/report-templates",{params:{module:e.module}})},i.prototype.getReportTemplateById=function(e){return this.get("/template-reporting/report-templates/".concat(e))},i.prototype.createTemplateReporting=function(e){return this.post("/template-reporting/report-templates",e)},i.prototype.cloneReportTemplate=function(e,t){return this.post("/template-reporting/report-templates/".concat(e,"/clone"),t)},i.prototype.updateTemplateSelection=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/selection"),t)},i.prototype.changeTemplateStatus=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/status"),t)},i.prototype.deleteReportTemplate=function(e){return this.delete("/template-reporting/report-templates/".concat(e))},i.prototype.getReportSchedulesList=function(){return this.get("/template-reporting/report-schedules")},i.prototype.getReportScheduleById=function(e){return this.get("/template-reporting/report-schedules/".concat(e))},i.prototype.createReportSchedule=function(e){return this.post("/template-reporting/report-schedules",e)},i.prototype.deactivateReportSchedule=function(e){return this.patch("/template-reporting/report-schedules/".concat(e,"/disable"))},i.prototype.deleteReportSchedule=function(e){return this.delete("/template-reporting/report-schedules/".concat(e))},i.prototype.getRefundPdf=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/refund-pdf/".concat(e),{headers:o})},i.prototype.getProofOfCancel=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-cancel"),{headers:o})},i.prototype.getProofOfPayment=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-payment"),{headers:o})},i.prototype.getScheduledReport=function(e){return this.get("/scheduled-reports?reportType=".concat(e))},i.prototype.postScheduledReport=function(e){return this.post("/scheduled-reports",e)},i.prototype.updateScheduledReport=function(e,t){return this.patch("/scheduled-reports/".concat(e),t)},i.prototype.deleteScheduledReport=function(e){return this.delete("/scheduled-reports/".concat(e))},i.prototype.getProfile=function(){return this.get("/user")},i.prototype.getUserFull=function(){return this.get("/user-full")},i.prototype.getImpersonationUsers=function(){return this.get("/impersonation/user")},i.prototype.getImpersonationEnabled=function(){return this.get("/impersonation/enabled")},i.prototype.getUsersToImpersonate=function(e,t,n,o,a){void 0===n&&(n=1),void 0===o&&(o=10);var i=r({account_codes:t||[],page:n,page_size:o},a&&{search_value:a});return this.post("/impersonation/user/organization/".concat(e,"/users-to-impersonate"),i)},i.prototype.getAccountsForImpersonation=function(e){return this.get("/impersonation/user/organization/".concat(e,"/accounts"))},i.prototype.updateProfile=function(e){return this.patch("/user",e)},i.prototype.inviteUsersMassive=function(e,t){var n={"x-organization-code":t};return this.post("user/invite/massive",e,{headers:n})},i.prototype.unInviteUsersV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/user/uninvite/".concat(t),{headers:n})},i.prototype.getAccounts=function(e){var t={"x-organization-code":e};return this.get("/accounts-user",{headers:t})},i.prototype.getAccountsV2=function(){return this.get("/accounts-user")},i.prototype.getAccountsByUser=function(e){return this.get("/accounts-user/user/".concat(e))},i.prototype.putAccountsUserMassive=function(e,t,n){var o={"x-organization-code":e};return this.put("/accounts-user/role/massive/user/".concat(t),n,{headers:o})},i.prototype.deleteAccountsUserMassive=function(e,t,n){var o={"x-organization-code":e};return this.delete("/accounts-user/role/massive/user/".concat(t),{data:n,headers:o})},i.prototype.postAccount=function(e,t){return this.post("/accounts",{name:e,principal:t})},i.prototype.patchAccountV2=function(e){var t=e.name,n=e.code,o=e.principal;return this.patch("/accounts/with-principal",{name:t,principal:o},{headers:{"x-account-code":n}})},i.prototype.putAccountPrincipal=function(e){var t=e.account_code;return this.put("/user-accounts/principal",{account_code:t})},i.prototype.getMergedNotifications=function(){return this.get("/notifications-all")},i.prototype.getNotificationsCustomer=function(e){return this.get("/notifications/".concat(e))},i.prototype.getValidateOpsgenieKey=function(e){return this.get("/notifications/opsgenie/validate/".concat(e))},i.prototype.postSlackMessageChannel=function(e){return this.post("/slack-channel-message",e)},i.prototype.pathNotification=function(e){return this.patch("/notifications",e)},i.prototype.getNotificationsNumber=function(e){return this.get("/notifications/".concat(e,"/number"))},i.prototype.teamsFiltersMembers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/teams/filters/members",{headers:t})},i.prototype.postMembersPaginatedV2=function(e){var t=e.organizationCode,n=e.accountCodes,o=e.email,r=e.page,a=e.pageSize,i={"x-organization-code":t};return this.post("/teams/paginated",{account_codes:n,email:o,page:r,page_size:a},{headers:i})},i.prototype.getRoles=function(){return this.get("/teams/roles")},i.prototype.setCustodian=function(){return this.post("/teams/custodian")},i.prototype.deleteUserTeamV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/teams/".concat(t),{headers:n})},i.prototype.createRoles=function(e,t){return this.post("/teams/roles",e,{headers:{"x-account-code":t}})},i.prototype.editRoles=function(e,t){var n=e.payload,o=e.id;return this.patch("/teams/roles/".concat(o),n,{headers:{"x-account-code":t}})},i.prototype.deleteRoles=function(e){return this.delete("/teams/roles/".concat(e))},i.prototype.getRolesPermissions=function(){return this.get("/teams/permissions")},i.prototype.getFeatureFlagId=function(e){var t=e.name,n=a(e,["name"]);return this.post("/feature-flags/evaluate",{name:t,parameters:n})},i.prototype.getFeatureFlagIdAll=function(e){var o=e.accountCode;return t(this,void 0,void 0,function(){var e,t;return n(this,function(n){switch(n.label){case 0:return[4,this.get("/feature-flags/names",o?{headers:{"x-account-code":o}}:{})];case 1:return e=n.sent(),t={},e.data.feature_flag_names.forEach(function(e){t[e]=!0}),[2,{data:t,status:200,statusText:"OK",headers:{},config:{}}]}})})},i.prototype.getPermissionsCatalog=function(){return this.get("/teams/permissions-catalog")},i.prototype.changePasswordV2=function(e){return this.patch("/user/change-password-profile",e)},i.prototype.getCardBrands=function(){return this.get("/catalog/card-brands")},i.prototype.getPaymentFilters=function(e){return this.get("/payments/filters?section=".concat(e))},i.prototype.getPaymentMetricsFilters=function(){return this.get("/payments/metrics/filters")},i.prototype.sendPaymentNotification=function(e,t){return this.post("/payments/".concat(e.paymentCode,"/transactions/").concat(e.transactionCode,"/settle"),t)},i.prototype.postAuditMonitors=function(e){return this.post("/routing-monitor/audit",e)},i.prototype.getAuditMonitorDetail=function(e){return this.get("/routing-monitor/audit-monitors-details/".concat(e))},i.prototype.getAuditEvents=function(e){return this.post("v2/events/organization?time_zone=".concat(null==e?void 0:e.time_zone,"&now=").concat(null==e?void 0:e.now,"&page=").concat(null==e?void 0:e.page,"&size=").concat(null==e?void 0:e.size,"&periodicity=").concat(e.periodicity,"&event=").concat(e.event,"&source=").concat(e.source,"&search=").concat(e.search,"&start_date=").concat(e.start_date,"&end_date=").concat(e.end_date),{account_codes:null==e?void 0:e.account_code})},i.prototype.getPaymentLinks=function(e,t){return this.get("/v2/payment-links/".concat(t),{params:e})},i.prototype.getPaymentLinksByCode=function(e){return this.get("/v2/payment-links/by-code/".concat(e))},i.prototype.postPaymentLinks=function(e){var t=e.payload,n=e.accountCode;return this.post("/v2/payment-links/".concat(n),t)},i.prototype.patchPaymentLinks=function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return this.patch("/v2/payment-links/".concat(n,"/").concat(o),t)},i.prototype.postDeletePaymentLink=function(e){var t=e.code;return this.post("/v2/payment-links/cancel/".concat(t))},i.prototype.getTimezone=function(e){return this.get("/cms/timezone/catalog",{headers:{"x-organization-code":e}})},i.prototype.firebaseUserSubscribe=function(e){return this.post("/firebase/user/subscribe",e)},i.prototype.postUserSettings=function(e){return this.patch("/user-settings",e)},i.prototype.postUserSettingsTables=function(e,t){return this.patch("/user-settings/".concat(t),e)},i.prototype.postUserSettingsPinned=function(e){return this.patch("/user-settings/pinned_sections",e)},i.prototype.postUserThemeSettings=function(e){return this.patch("/user-settings/theme",e)},i.prototype.getMfaTokenValidation=function(e,t){return this.post("/mfa/token",{password:e,otp_input:t,user_code:""})},i.prototype.getEmailOtp=function(){return this.post("/mfa/send-otp",{})},i.prototype.confirmMfaOtp=function(e){return this.post("/mfa/confirm/otp",e)},i.prototype.unrollMfa=function(e){return this.post("/mfa/unroll/otp",{password:e})},i.prototype.sendOTPForMFA=function(){return this.post("/mfa/send-otp")},i.prototype.getConfigAllowlist=function(e){var t={"x-account-code":e};return this.get("/yuno-fraud-screening-int/allow-lists/config",{headers:t})},i.prototype.getBlackListType=function(e){var t={"x-account-code":e};return this.get("/blacklist",{headers:t})},i.prototype.postBlockList=function(e,t,n,o){var r={name:t,account_codes:e,page:n,size:o};return this.post("/blacklist",r)},i.prototype.getBlackListSummary=function(e,t){return void 0===t&&(t=null),this.get("/blacklist/get-one/".concat(e,"/summary"),t?{headers:{"x-account-code":t}}:{})},i.prototype.getBlacklistDetail=function(e,t,n,o,r){void 0===n&&(n=26),void 0===o&&(o=null),void 0===r&&(r=null);var a="/blacklist/get-one/".concat(e,"/detail?offset=").concat(t,"&limit=").concat(n);return r&&(null==r?void 0:r.length)>0&&(a+="&search=".concat(r)),this.get(a,o?{headers:{"x-account-code":o}}:{})},i.prototype.getAllowlistDetail=function(e,t){return void 0===t&&(t=null),this.get("/yuno-fraud-screening-int/allow-lists/".concat(e),t?{headers:{"x-account-code":t}}:{})},i.prototype.postAllowlistItems=function(e){var t=e.payload;return this.post("yuno-fraud-screening-int/allow-lists/".concat(t.code,"/items/pageable"),t,t.account&&{headers:{"x-account-code":t.account}})},i.prototype.postGetAllowlist=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/pageable",t)},i.prototype.postCreateAllowlistMultiAccount=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/massive",t)},i.prototype.patchChangeStatusAllowlist=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.code),{active:t.active},(null==t?void 0:t.account)&&{headers:{"x-account-code":null==t?void 0:t.account}})},i.prototype.patchChangeStatusAllowlistItem=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items/").concat(t.item_allowlist_code),{active:t.active})},i.prototype.patchAddAllowlistItems=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items"),t,t.account&&{headers:{"x-account-code":t.account}})},i.prototype.deleteAllowlistItem=function(e){var t=e.payload,n={"x-account-code":t.account_code};return this.delete("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items/").concat(t.allowlist_item_id),{headers:n})},i.prototype.validateAllowlistItems=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/validate/duplicate-items"),t,{headers:{"x-account-code":t.account_code}})},i.prototype.patchAllowlist=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code),t,t.account&&{headers:{"x-account-code":t.account}})},i.prototype.postBlackListMultiAccount=function(e){var t=e.payload;return this.post("/blacklist/create/multi-account",t,t.account&&{headers:{"x-account-code":t.account}})},i.prototype.putBlackListType=function(e){return this.put("/blacklist/edit",e)},i.prototype.changeBlackListStatus=function(e){return this.put("/blacklist/change-status",e)},i.prototype.changeBlackListStatusItem=function(e){return this.put("/blacklist/change-item-status",e)},i.prototype.postBlackListItems=function(e){var t=e.payload;return this.post("/blacklist/items",t)},i.prototype.postBlackListBatch=function(e){var t=e.blacklist_code,n=e.expiration_days,o=e.file,r=e.handleSetProgress;return this.post("/blacklist/create-batch/".concat(t),{expiration_days:n,file:o},{onUploadProgress:function(e){r(e.total?Math.round(100*e.loaded/e.total):0)}})},i.prototype.deleteBlackListType=function(e){var t=e.black_list_code;return this.delete("/blacklist/delete/".concat(t))},i.prototype.deleteBlockListItem=function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return this.delete("/blacklist/".concat(t,"/items/").concat(n),{headers:{"x-account-code":o}})},i.prototype.valiateBlockListItems=function(e){var t=e.payload;return this.post("/blacklist/".concat(t.blocklist_code,"/validate/duplicate-items"),t,{headers:{"x-account-code":t.account_code}})},i.prototype.getVelocityRules=function(e){return this.post("/yuno-fraud-screening-int/velocity-rules-list",r({},e))},i.prototype.postChangePaymentsWebhook=function(e){var t=e.status,n=e.paymentCode;return this.post("/yuno-fraud-screening-int/payments/webhook",{status:t,payment_code:n})},i.prototype.uploadFileS3ClientBatchRefunds=function(e){var t=e.payload,n=e.handleSetProgress,o=this.getCancelTokenSource();return{promise:this.post("/batch-refunds/upload-s3-file",t,{onUploadProgress:function(e){return null==n?void 0:n(e.total?Math.round(100*e.loaded/e.total):0)},cancelToken:o.token}),cancel:function(){return o.cancel()}}},i.prototype.uploadFileS3ClientChargeBacks=function(e){var t=e.payload,n=e.handleSetProgress,o=this.getCancelTokenSource();return{promise:this.post("/chargebacks/upload-s3-file",t,{cancelToken:o.token,onUploadProgress:function(e){null==n||n(e.total?Math.round(100*e.loaded/e.total):0)}}),cancel:function(){return o.cancel()}}},i.prototype.batchRefundByFile=function(e){var t=e.payload;return this.post("/batch-refund-by-file",r({},t))},i.prototype.uploadBatchRefundsV2=function(e){var t=e.payload;return this.post("/batch-refunds",r({},t))},i.prototype.getBatchRefunds=function(e,t){return this.get("/batch-refunds?limit=".concat(e,"&offset=").concat(t))},i.prototype.getBatchRefundProcessedFileDownload=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/processed-file-download"),{headers:o})},i.prototype.getBatchRefundUserFileDownload=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/user-file-download"),{headers:o})},i.prototype.getMFAConfig=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/config",{headers:t})},i.prototype.getMFAExcludedUsers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/excluded-users",{headers:t})},i.prototype.getMFAEnforcementStatus=function(){return this.get("/mfa/enforcement-status")},i.prototype.updateMFAConfig=function(e,t){return this.post("/organization-settings/mfa/config",e,{headers:{"x-organization-code":t}})},i.prototype.mfaExcludeUsers=function(e,t){return this.post("/organization-settings/mfa/exclude-users",e,{headers:{"x-organization-code":t}})},i.prototype.getAllConfigRules=function(){return this.get("/yuno-fraud-screening-int/velocity-rules/config/all")},i.prototype.getConditionalConfigRules=function(e){return this.get("/yuno-fraud-screening-int/velocity-rules/config/conditional/".concat(e))},i.prototype.getRule=function(e){return this.get("/yuno-fraud-screening-int/velocity-rules/".concat(e.idRule),(null==e?void 0:e.accountCode)&&{headers:{"x-account-code":null==e?void 0:e.accountCode}})},i.prototype.postCreateRuleMultiAccount=function(e,t){return this.post("/yuno-fraud-screening-int/velocity-rules/multi-account",e,{headers:{"x-account-code":t}})},i.prototype.postEditRule=function(e,t,n){return this.patch("/yuno-fraud-screening-int/velocity-rules/".concat(t),e,{headers:{"x-account-code":n}})},i.prototype.postApiKeysRoll=function(e,t,n){return this.post("/credentials-manager/v1/keys/roll/".concat(t),e,{headers:{"x-password":n}})},i.prototype.patchApiKeysEditNote=function(e,t){return this.patch("/credentials-manager/keys/edit-note/".concat(t),e)},i.prototype.getCustomizedApiKeysMembers=function(){return this.get("/organization-user/resources/users/customized-keys")},i.prototype.getCustomizedApiKeysAccounts=function(){return this.get("/organization-user/resources/accounts/customized-keys")},i.prototype.postCreateCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys",e)},i.prototype.pathCreateCustomizedApiKeys=function(e,t){return this.patch("/credentials-manager/key/".concat(t),e)},i.prototype.postCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys/retrieve",{account_codes:e})},i.prototype.getCustomizedApiKeysProducts=function(){return this.get("/credentials-manager/product-list")},i.prototype.getCustomizedApiKeysToken=function(e,t){return this.get("/credentials-manager/keys/show-token/".concat(e),{headers:{"x-password":t}})},i.prototype.validatePasswordStatus=function(){return this.get("/validate-password-status")},i.prototype.deleteCustomizedApiKeys=function(e){return this.delete("/credentials-manager/key/".concat(e))},i.prototype.postCreateInsightsReport=function(e){var t="CR_FALLBACK"===(null==e?void 0:e.type)?"/insights/conversion-rate/".concat(rh[null==e?void 0:e.type],"/export"):"/insights/conversion-rate/cards/metrics/".concat(rh[null==e?void 0:e.type],"/export");return this.post(t,e)},i.prototype.getInsightsReport=function(e){return this.get("/insights/conversion-rate/exports/".concat(null==e?void 0:e.type,"/by-user"))},i.prototype.getInsightsReportAgain=function(e){return this.get("/insights/conversion-rate/exports/".concat(e.code))},i.prototype.createUserAuth0=function(e){return this.post("/user/auth0",e)},i.prototype.getSamlConfig=function(){return this.get("/saml-config")},i.prototype.createSamlConfig=function(e){return this.post("/saml-config",e)},i.prototype.updateSamlConfig=function(e){return this.patch("/saml-config",e)},i.prototype.deleteSamlConfig=function(){return this.delete("/saml-config")},i.prototype.postCall=function(e){return this.post("/ai-agent-caller/demo",e)},i.prototype.getLoginMethods=function(){return this.get("/organization/login-methods")},i.prototype.changeLoginMethods=function(e){return this.patch("/organization/login-methods/".concat(e.methodCode),{enabled:e.enabled})},i.prototype.postValidateCredentials=function(e){var t=e.payload;return this.post("/connections/validate-credentials",t)},i.prototype.getInsightsConversionRateOverview=function(e,t){return this.post("/v3/insights/conversion-rate/overview",e,{params:t})},i.prototype.getInsightsConversionRateOverviewFraud3ds=function(e,t){return this.post("/v3/insights/conversion-rate/overview-fraud-3ds",e,{params:t})},i.prototype.getConversionRateChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},i.prototype.get3DSExemptions=function(){return this.get("/routing/3ds-exemptions")},i.prototype.getNetworkTokensOnboarding=function(){return this.get("/network-tokens/onboarding")},i.prototype.createChartGPTChart=function(e){return this.post("/data-assistant/charts",e)},i.prototype.deleteChartGPTChart=function(e){return this.delete("/data-assistant/charts/".concat(e))},i.prototype.getChartById=function(e){return this.get("/data-assistant/charts/".concat(e))},i.prototype.patchChartGPTChart=function(e,t){return this.patch("/data-assistant/charts/".concat(e),t)},i.prototype.executeChartGPTChart=function(e){return void 0===e&&(e=""),this.get("/data-assistant/charts/".concat(e,"/execute"))},i.prototype.getChartsByUser=function(){return this.get("/data-assistant/user/charts")},i.prototype.getLanguages=function(){return this.get("/languages")},i.prototype.getTranslations=function(e){return this.get("/translations?language=".concat(e))},i.prototype.getCommunications=function(e){return this.post("/communications",e)},i.prototype.getCommunicationsFilters=function(){return this.get("/communications/filters")},i.prototype.getCommunicationDetails=function(e,t){var n={"x-account-code":t};return this.get("/communications/".concat(e,"/details"),{headers:n})},i}(Ds),wh={ENVIRONMENT:"",BFF_URL_PROD:"",BFF_URL_SBX:"",BFF_URL_STG:"",BFF_URL_DEV:"",BFF_URL_LOCAL:"https://dev.y.uno",WS_URL_LOCAL:"",WS_URL_PROD:"",WS_URL_SBX:"",WS_URL_STG:"",WS_URL_DEV:""},_h=function(e){function a(t){return e.call(this,t)||this}return o(a,e),a.refreshInstance=function(e){var t;return this.classInstance=new a(r(r({},e),{baseURL:wh["BFF_URL_".concat(wh.ENVIRONMENT)]})),null===(t=this.classInstance.instance.interceptors)||void 0===t||t.response.use(function(e){return e},function(e){var t;if(401!==(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status))return Promise.reject(e);window.location.href="/auth/logout"}),this.classInstance},a.getInstance=function(e){var t,n;if(this.classInstance){var o=localStorage.getItem("account");if(o){var i=null===(n=null===(t=JSON.parse(o))||void 0===t?void 0:t.value)||void 0===n?void 0:n.code,s=this.classInstance.instance.defaults.headers["x-account-code"];!!i&&""!==i&&i!==s&&(this.classInstance.instance.defaults.headers["x-account-code"]=i)}return this.classInstance}return this.classInstance=new a(r(r({},e),{baseURL:(null==e?void 0:e.baseURL)||wh["BFF_URL_".concat(wh.ENVIRONMENT)]})),this.classInstance},a.setMode=function(e){return t(this,void 0,void 0,function(){return n(this,function(t){return this.classInstance.instance.interceptors.request.use(function(t){return t.headers&&(t.headers["X-Environment"]=e),t},function(e){return Promise.reject(e)}),[2]})})},a}(kh);class xh{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Eh="undefined"==typeof window||"Deno"in window;function Sh(){}function Ch(e){return"number"==typeof e&&e>=0&&e!==1/0}function Rh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Th(e,t,n){return Bh(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Ih(e,t,n){return Bh(e)?[{...t,queryKey:e},n]:[e||{},t]}function Ah(e,t){const{type:n="all",exact:o,fetchStatus:r,predicate:a,queryKey:i,stale:s}=e;if(Bh(i))if(o){if(t.queryHash!==jh(i,t.options))return!1}else if(!Dh(t.queryKey,i))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((void 0===r||r===t.state.fetchStatus)&&!(a&&!a(t)))}function Oh(e,t){const{exact:n,fetching:o,predicate:r,mutationKey:a}=e;if(Bh(a)){if(!t.options.mutationKey)return!1;if(n){if(Ph(t.options.mutationKey)!==Ph(a))return!1}else if(!Dh(t.options.mutationKey,a))return!1}return("boolean"!=typeof o||"loading"===t.state.status===o)&&!(r&&!r(t))}function jh(e,t){return((null==t?void 0:t.queryKeyHashFn)||Ph)(e)}function Ph(e){return JSON.stringify(e,(e,t)=>Nh(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Dh(e,t){return Lh(e,t)}function Lh(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some(n=>!Lh(e[n],t[n])))}function qh(e,t){if(e===t)return e;const n=Mh(e)&&Mh(t);if(n||Nh(e)&&Nh(t)){const o=n?e.length:Object.keys(e).length,r=n?t:Object.keys(t),a=r.length,i=n?[]:{};let s=0;for(let o=0;o<a;o++){const a=n?o:r[o];i[a]=qh(e[a],t[a]),i[a]===e[a]&&s++}return o===a&&s===o?e:i}return t}function zh(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Mh(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Nh(e){if(!Uh(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Uh(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Uh(e){return"[object Object]"===Object.prototype.toString.call(e)}function Bh(e){return Array.isArray(e)}function Fh(e){return new Promise(t=>{setTimeout(t,e)})}function Wh(e){Fh(0).then(e)}function Gh(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?qh(e,t):t}const Hh=new class extends xh{constructor(){super(),this.setup=e=>{if(!Eh&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},Vh=["online","offline"];const $h=new class extends xh{constructor(){super(),this.setup=e=>{if(!Eh&&window.addEventListener){const t=()=>e();return Vh.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{Vh.forEach(e=>{window.removeEventListener(e,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function Kh(e){return Math.min(1e3*2**e,3e4)}function Qh(e){return"online"!==(null!=e?e:"online")||$h.isOnline()}class Jh{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function Xh(e){return e instanceof Jh}function Yh(e){let t,n,o,r=!1,a=0,i=!1;const s=new Promise((e,t)=>{n=e,o=t}),c=()=>!Hh.isFocused()||"always"!==e.networkMode&&!$h.isOnline(),u=o=>{i||(i=!0,null==e.onSuccess||e.onSuccess(o),null==t||t(),n(o))},l=n=>{i||(i=!0,null==e.onError||e.onError(n),null==t||t(),o(n))},d=()=>new Promise(n=>{t=e=>{const t=i||!c();return t&&n(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,i||null==e.onContinue||e.onContinue()}),h=()=>{if(i)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(u).catch(t=>{var n,o;if(i)return;const s=null!=(n=e.retry)?n:3,u=null!=(o=e.retryDelay)?o:Kh,p="function"==typeof u?u(a,t):u,f=!0===s||"number"==typeof s&&a<s||"function"==typeof s&&s(a,t);!r&&f?(a++,null==e.onFail||e.onFail(a,t),Fh(p).then(()=>{if(c())return d()}).then(()=>{r?l(t):h()})):l(t)})};return Qh(e.networkMode)?h():d().then(h),{promise:s,cancel:t=>{i||(l(new Jh(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1}}}const Zh=console;const ep=function(){let e=[],t=0,n=e=>{e()},o=e=>{e()};const r=o=>{t?e.push(o):Wh(()=>{n(o)})},a=()=>{const t=e;e=[],t.length&&Wh(()=>{o(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||a()}return n},batchCalls:e=>(...t)=>{r(()=>{e(...t)})},schedule:r,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{o=e}}}();class tp{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ch(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:Eh?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class np extends tp{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||Zh,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,o=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=o?o:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=Gh(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(Sh).catch(Sh):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Rh(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,o;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var r;return null==(r=this.retryer)||r.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const a=function(){if("function"==typeof AbortController)return new AbortController}(),i={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};s(i);const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(i)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var u;(s(c),null==(n=this.options.behavior)||n.onFetch(c),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(o=c.fetchOptions)?void 0:o.meta))&&this.dispatch({type:"fetch",meta:null==(u=c.fetchOptions)?void 0:u.meta});const l=e=>{var t,n,o,r;(Xh(e)&&e.silent||this.dispatch({type:"error",error:e}),Xh(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(o=(r=this.cache.config).onSettled)||o.call(r,this.state.data,e,this));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Yh({fn:c.fetchFn,abort:null==a?void 0:a.abort.bind(a),onSuccess:e=>{var t,n,o,r;void 0!==e?(this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(o=(r=this.cache.config).onSettled)||o.call(r,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):l(new Error(this.queryHash+" data is undefined"))},onError:l,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,o;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:Qh(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(o=e.dataUpdatedAt)?o:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=e.error;return Xh(r)&&r.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),ep.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}class op extends xh{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var o;const r=t.queryKey,a=null!=(o=t.queryHash)?o:jh(r,t);let i=this.get(a);return i||(i=new np({cache:this,logger:e.getLogger(),queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){ep.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=Ih(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find(e=>Ah(n,e))}findAll(e,t){const[n]=Ih(e,t);return Object.keys(n).length>0?this.queries.filter(e=>Ah(n,e)):this.queries}notify(e){ep.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){ep.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){ep.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class rp extends tp{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||Zh,this.observers=[],this.state=e.state||ap(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=Yh({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,o,r,a,i,s,c,u;if(!t){var l,d,h,p;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(l=(d=this.mutationCache.config).onMutate)?void 0:l.call(d,this.state.variables,this));const e=await(null==(h=(p=this.options).onMutate)?void 0:h.call(p,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const f=await e();return await(null==(n=(o=this.mutationCache.config).onSuccess)?void 0:n.call(o,f,this.state.variables,this.state.context,this)),await(null==(r=(a=this.options).onSuccess)?void 0:r.call(a,f,this.state.variables,this.state.context)),await(null==(i=(s=this.mutationCache.config).onSettled)?void 0:i.call(s,f,null,this.state.variables,this.state.context,this)),await(null==(c=(u=this.options).onSettled)?void 0:c.call(u,f,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:f}),f}catch(e){try{var f,m,g,y,v,b,k,w;throw await(null==(f=(m=this.mutationCache.config).onError)?void 0:f.call(m,e,this.state.variables,this.state.context,this)),await(null==(g=(y=this.options).onError)?void 0:g.call(y,e,this.state.variables,this.state.context)),await(null==(v=(b=this.mutationCache.config).onSettled)?void 0:v.call(b,void 0,e,this.state.variables,this.state.context,this)),await(null==(k=(w=this.options).onSettled)?void 0:k.call(w,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Qh(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),ep.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function ap(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class ip extends xh{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const o=new rp({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(o),o}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){ep.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(t=>Oh(e,t))}findAll(e){return this.mutations.filter(t=>Oh(e,t))}notify(e){ep.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{const e=this.mutations.filter(e=>e.state.isPaused);return ep.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(Sh)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function sp(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,o,r,a,i;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,c=null==(o=e.fetchOptions)||null==(r=o.meta)?void 0:r.fetchMore,u=null==c?void 0:c.pageParam,l="forward"===(null==c?void 0:c.direction),d="backward"===(null==c?void 0:c.direction),h=(null==(a=e.state.data)?void 0:a.pages)||[],p=(null==(i=e.state.data)?void 0:i.pageParams)||[];let f=p,m=!1;const g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),y=(e,t,n,o)=>(f=o?[t,...f]:[...f,t],o?[n,...e]:[...e,n]),v=(t,n,o,r)=>{if(m)return Promise.reject("Cancelled");if(void 0===o&&!n&&t.length)return Promise.resolve(t);const a={queryKey:e.queryKey,pageParam:o,meta:e.options.meta};var i;i=a,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?m=!0:null==(n=e.signal)||n.addEventListener("abort",()=>{m=!0}),e.signal}});const s=g(a);return Promise.resolve(s).then(e=>y(t,o,e,r))};let b;if(h.length)if(l){const t=void 0!==u,n=t?u:cp(e.options,h);b=v(h,t,n)}else if(d){const t=void 0!==u,n=t?u:(k=e.options,w=h,null==k.getPreviousPageParam?void 0:k.getPreviousPageParam(w[0],w));b=v(h,t,n,!0)}else{f=[];const t=void 0===e.options.getNextPageParam;b=!s||!h[0]||s(h[0],0,h)?v([],t,p[0]):Promise.resolve(y([],p[0],h[0]));for(let n=1;n<h.length;n++)b=b.then(o=>{if(!s||!h[n]||s(h[n],n,h)){const r=t?p[n]:cp(e.options,o);return v(o,t,r)}return Promise.resolve(y(o,p[n],h[n]))})}else b=v([]);var k,w;const _=b.then(e=>({pages:e,pageParams:f}));return _}}}}function cp(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class up extends xh{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),lp(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return dp(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return dp(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),zh(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const r=this.hasListeners();r&&hp(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(t),!r||this.currentQuery===o&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const a=this.computeRefetchInterval();!r||this.currentQuery===o&&this.options.enabled===n.enabled&&a===this.currentRefetchInterval||this.updateRefetchInterval(a)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){if(n.keepPreviousData)return!1;if(void 0!==n.placeholderData)return t.isPlaceholderData;if(!zh(e.getCurrentResult(),t))return!0;return!1}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(Sh)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),Eh||this.currentResult.isStale||!Ch(this.options.staleTime))return;const e=Rh(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},e)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!Eh&&!1!==this.options.enabled&&Ch(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Hh.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,o=this.options,r=this.currentResult,a=this.currentResultState,i=this.currentResultOptions,s=e!==n,c=s?e.state:this.currentQueryInitialState,u=s?this.currentResult:this.previousQueryResult,{state:l}=e;let d,{dataUpdatedAt:h,error:p,errorUpdatedAt:f,fetchStatus:m,status:g}=l,y=!1,v=!1;if(t._optimisticResults){const r=this.hasListeners(),a=!r&&lp(e,t),i=r&&hp(e,n,t,o);(a||i)&&(m=Qh(e.options.networkMode)?"fetching":"paused",h||(g="loading")),"isRestoring"===t._optimisticResults&&(m="idle")}if(t.keepPreviousData&&!l.dataUpdatedAt&&null!=u&&u.isSuccess&&"error"!==g)d=u.data,h=u.dataUpdatedAt,g=u.status,y=!0;else if(t.select&&void 0!==l.data)if(r&&l.data===(null==a?void 0:a.data)&&t.select===this.selectFn)d=this.selectResult;else try{this.selectFn=t.select,d=t.select(l.data),d=Gh(null==r?void 0:r.data,d,t),this.selectResult=d,this.selectError=null}catch(e){this.selectError=e}else d=l.data;if(void 0!==t.placeholderData&&void 0===d&&"loading"===g){let e;if(null!=r&&r.isPlaceholderData&&t.placeholderData===(null==i?void 0:i.placeholderData))e=r.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){this.selectError=e}void 0!==e&&(g="success",d=Gh(null==r?void 0:r.data,e,t),v=!0)}this.selectError&&(p=this.selectError,d=this.selectResult,f=Date.now(),g="error");const b="fetching"===m,k="loading"===g,w="error"===g;return{status:g,fetchStatus:m,isLoading:k,isSuccess:"success"===g,isError:w,isInitialLoading:k&&b,data:d,dataUpdatedAt:h,error:p,errorUpdatedAt:f,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:l.dataUpdateCount>0||l.errorUpdateCount>0,isFetchedAfterMount:l.dataUpdateCount>c.dataUpdateCount||l.errorUpdateCount>c.errorUpdateCount,isFetching:b,isRefetching:b&&!k,isLoadingError:w&&0===l.dataUpdatedAt,isPaused:"paused"===m,isPlaceholderData:v,isPreviousData:y,isRefetchError:w&&0!==l.dataUpdatedAt,isStale:pp(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,zh(n,t))return;this.currentResult=n;const o={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const o=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&o.add("error"),Object.keys(this.currentResult).some(e=>{const n=e;return this.currentResult[n]!==t[n]&&o.has(n)})})()&&(o.listeners=!0),this.notify({...o,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||Xh(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){ep.batch(()=>{var t,n,o,r;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(o=(r=this.options).onSettled)||o.call(r,this.currentResult.data,null);else if(e.onError){var a,i,s,c;null==(a=(i=this.options).onError)||a.call(i,this.currentResult.error),null==(s=(c=this.options).onSettled)||s.call(c,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function lp(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&dp(e,t,t.refetchOnMount)}function dp(e,t,n){if(!1!==t.enabled){const o="function"==typeof n?n(e):n;return"always"===o||!1!==o&&pp(e,t)}return!1}function hp(e,t,n,o){return!1!==n.enabled&&(e!==t||!1===o.enabled)&&(!n.suspense||"error"!==e.state.status)&&pp(e,n)}function pp(e,t){return e.isStaleByTime(t.staleTime)}class fp extends xh{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),zh(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.currentMutation)||e.removeObserver(this))}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},t="loading"===e.status,n={...e,isLoading:t,isPending:t,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(e){ep.batch(()=>{var t,n,o,r;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(o=(r=this.mutateOptions).onSettled)||o.call(r,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var a,i,s,c;null==(a=(i=this.mutateOptions).onError)||a.call(i,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(c=this.mutateOptions).onSettled)||s.call(c,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)})})}}var mp={exports:{}},gp={},yp=s;var vp="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},bp=yp.useState,kp=yp.useEffect,wp=yp.useLayoutEffect,_p=yp.useDebugValue;function xp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!vp(e,n)}catch(e){return!0}}var Ep="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),o=bp({inst:{value:n,getSnapshot:t}}),r=o[0].inst,a=o[1];return wp(function(){r.value=n,r.getSnapshot=t,xp(r)&&a({inst:r})},[e,n,t]),kp(function(){return xp(r)&&a({inst:r}),e(function(){xp(r)&&a({inst:r})})},[e]),_p(n),n};gp.useSyncExternalStore=void 0!==yp.useSyncExternalStore?yp.useSyncExternalStore:Ep,mp.exports=gp;const Sp=mp.exports.useSyncExternalStore,Cp=i.createContext(void 0),Rp=i.createContext(!1);function Tp(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Cp),window.ReactQueryClientContext):Cp)}const Ip=({context:e}={})=>{const t=i.useContext(Tp(e,i.useContext(Rp)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Ap=({client:e,children:t,context:n,contextSharing:o=!1})=>{i.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const r=Tp(n,o);return i.createElement(Rp.Provider,{value:!n&&o},i.createElement(r.Provider,{value:e},t))},Op=i.createContext(!1);Op.Provider;const jp=i.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function Pp(e,t){return"function"==typeof e?e(...t):!!e}function Dp(e,t){const n=Ip({context:e.context}),o=i.useContext(Op),r=i.useContext(jp),a=n.defaultQueryOptions(e);a._optimisticResults=o?"isRestoring":"optimistic",a.onError&&(a.onError=ep.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=ep.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=ep.batchCalls(a.onSettled)),(e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.cacheTime&&(e.cacheTime=Math.max(e.cacheTime,1e3)))})(a),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(a,r),(e=>{i.useEffect(()=>{e.clearReset()},[e])})(r);const[s]=i.useState(()=>new t(n,a)),c=s.getOptimisticResult(a);if(Sp(i.useCallback(e=>{const t=o?()=>{}:s.subscribe(ep.batchCalls(e));return s.updateResult(),t},[s,o]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),i.useEffect(()=>{s.setOptions(a,{listeners:!1})},[a,s]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(a,c,o))throw((e,t,n)=>t.fetchOptimistic(e).then(({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)}).catch(t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)}))(a,s,r);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:o})=>e.isError&&!t.isReset()&&!e.isFetching&&Pp(n,[e.error,o]))({result:c,errorResetBoundary:r,useErrorBoundary:a.useErrorBoundary,query:s.getCurrentQuery()}))throw c.error;return a.notifyOnChangeProps?c:s.trackResult(c)}function Lp(e,t,n){return Dp(Th(e,t,n),up)}function qp(e,t,n){const o=function(e,t,n){return Bh(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),r=Ip({context:o.context}),[a]=i.useState(()=>new fp(r,o));i.useEffect(()=>{a.setOptions(o)},[a,o]);const s=Sp(i.useCallback(e=>a.subscribe(ep.batchCalls(e)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),c=i.useCallback((e,t)=>{a.mutate(e,t).catch(zp)},[a]);if(s.error&&Pp(a.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:c,mutateAsync:s.mutate}}function zp(){}function Mp(e){return qp(function(e){var t=e.payload;return _h.getInstance().postWebhookV2MultiAccount({payload:t})},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Np(e){return qp(function(e){var t=e.code,n=e.accountCode;return _h.getInstance().deleteWebhookV2(t,n)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Up(e){return qp(function(e){var t=e.code,n=e.payload,o=e.accountCode;return _h.getInstance().updateWebhookV2(t,n,o)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Bp(){return qp(function(e){var t=e.name,n=e.principal;return _h.getInstance().postAccount(t,n)})}function Fp(){return qp(function(e){var t=e.name,n=e.code,o=e.principal;return _h.getInstance().patchAccountV2({name:t,code:n,principal:o})})}function Wp(){return qp(function(e){var t=e.account_code;return _h.getInstance().putAccountPrincipal({account_code:t})})}function Gp(){return qp(function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return _h.getInstance().putAccountsUserMassive(t,n,o)})}function Hp(){return qp(function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return _h.getInstance().deleteAccountsUserMassive(t,n,o)})}function Vp(){return qp(["post-validate-status-connection"],function(e){var t=e.payload,n=e.accountCode;return _h.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function $p(){return qp(["post-change-status-connection"],function(e){var t=e.payload,n=e.accountCode;return _h.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Kp(){return qp(function(e){return _h.getInstance().putCosts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Qp(){return qp(["post-connection"],function(e){var t=e.payload;return _h.getInstance().postMultiConnection({payload:t}).then(function(e){return null==e?void 0:e.data})})}function Jp(){return qp(["new-post-connection-validate"],function(){return _h.getInstance().postMultiConnectionValidate().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Xp(){return qp(["patch-connection"],function(e){var t=e.payload,n=e.connectionCode;return _h.getInstance().patchConnection({payload:t,connectionCode:n}).then(function(e){return null==e?void 0:e.data})})}function Yp(){return qp(function(e){var t=e.payload;return _h.getInstance().postDefaultRoutes({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function Zp(){return qp(function(e){return _h.getInstance().postValidateCredentials(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function ef(){return qp(["patch-organizations"],function(){return _h.getInstance().updateOrganizationStatus().then(function(e){return null==e?void 0:e.data})})}function tf(){return qp(function(e){return _h.getInstance().getOrgByName(e).then(function(e){return null==e?void 0:e.data})})}function nf(){var e=this;return qp(function(o){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,_h.getInstance().changePasswordV2(o).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function of(e){return qp(function(e){return _h.getInstance().updateProfile(e)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function rf(){return qp(function(e){return _h.getInstance().inviteUsersMassive(e,e.organizationCode)})}function af(){return qp(function(e){var t=e.userCode,n=e.organizationCode;return _h.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})})}function sf(){return qp(function(e){return _h.getInstance().createUserAuth0(e)})}function cf(){return qp(function(e){return _h.getInstance().postCall(e)})}function uf(){return qp(function(e){return _h.getInstance().changeLoginMethods(e)})}function lf(e){return qp(function(e){return _h.getInstance().updateIsActiveCheckout(e)},e)}function df(){return qp(function(e){var t=e.accountCode,n=e.template;return _h.getInstance().updateCheckoutTemplate({accountCode:t,template:n}).then(function(e){return null==e?void 0:e.data})})}function hf(){return qp(function(e){var t=e.accountCode,n=e.theme;return _h.getInstance().updateStylingTheme({accountCode:t,theme:n}).then(function(e){return null==e?void 0:e.data})})}function pf(){return qp(function(e){var t=e.payload,n=e.transactionId,o=e.paymentId,r=e.action;return _h.getInstance().createOperationTransaction(t,n,o,r)})}function ff(){return qp(function(e){var t=e.payload,n=e.paymentId,o=e.transactionId,r=e.handleSetProgress;return _h.getInstance().uploadChargebacks(t,n,o,r)})}var mf=new op({}),gf=new class{constructor(e={}){this.queryCache=e.queryCache||new op,this.mutationCache=e.mutationCache||new ip,this.logger=e.logger||Zh,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=Hh.subscribe(()=>{Hh.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=$h.subscribe(()=>{$h.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=Ih(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const o=Th(e,t,n),r=this.getQueryData(o.queryKey);return r?Promise.resolve(r):this.fetchQuery(o)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const o=this.queryCache.find(e),r=function(e,t){return"function"==typeof e?e(t):e}(t,null==o?void 0:o.state.data);if(void 0===r)return;const a=Th(e),i=this.defaultQueryOptions(a);return this.queryCache.build(this,i).setData(r,{...n,manual:!0})}setQueriesData(e,t,n){return ep.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=Ih(e,t),o=this.queryCache;ep.batch(()=>{o.findAll(n).forEach(e=>{o.remove(e)})})}resetQueries(e,t,n){const[o,r]=Ih(e,t,n),a=this.queryCache,i={type:"active",...o};return ep.batch(()=>(a.findAll(o).forEach(e=>{e.reset()}),this.refetchQueries(i,r)))}cancelQueries(e,t,n){const[o,r={}]=Ih(e,t,n);void 0===r.revert&&(r.revert=!0);const a=ep.batch(()=>this.queryCache.findAll(o).map(e=>e.cancel(r)));return Promise.all(a).then(Sh).catch(Sh)}invalidateQueries(e,t,n){const[o,r]=Ih(e,t,n);return ep.batch(()=>{var e,t;if(this.queryCache.findAll(o).forEach(e=>{e.invalidate()}),"none"===o.refetchType)return Promise.resolve();const n={...o,type:null!=(e=null!=(t=o.refetchType)?t:o.type)?e:"active"};return this.refetchQueries(n,r)})}refetchQueries(e,t,n){const[o,r]=Ih(e,t,n),a=ep.batch(()=>this.queryCache.findAll(o).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...r,cancelRefetch:null==(t=null==r?void 0:r.cancelRefetch)||t,meta:{refetchPage:o.refetchPage}})}));let i=Promise.all(a).then(Sh);return null!=r&&r.throwOnError||(i=i.catch(Sh)),i}fetchQuery(e,t,n){const o=Th(e,t,n),r=this.defaultQueryOptions(o);void 0===r.retry&&(r.retry=!1);const a=this.queryCache.build(this,r);return a.isStaleByTime(r.staleTime)?a.fetch(r):Promise.resolve(a.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Sh).catch(Sh)}fetchInfiniteQuery(e,t,n){const o=Th(e,t,n);return o.behavior=sp(),this.fetchQuery(o)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Sh).catch(Sh)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find(t=>Ph(e)===Ph(t.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(t=>Dh(e,t.queryKey));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find(t=>Ph(e)===Ph(t.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(t=>Dh(e,t.mutationKey));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=jh(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:!1,staleTime:3e5,useErrorBoundary:!0}},queryCache:mf});function yf(){return qp(function(e){return _h.getInstance().createReconciliationsReportV2(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function vf(){return qp(function(e){return _h.getInstance().createReportV2(e).then(function(e){return null==e?void 0:e.data})})}function bf(){return qp(function(e){return _h.getInstance().getTotalRowsForExport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function kf(){return qp(function(e){return _h.getInstance().cancelReport(e).then(function(e){return null==e?void 0:e.data})})}function wf(o){var r=this;return qp(function(){return t(r,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().createReportTemplate(o).then(function(e){return null==e?void 0:e.data})]})})},{onMutate:function(o){return t(r,void 0,void 0,function(){var t;return n(this,function(n){switch(n.label){case 0:return[4,gf.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return n.sent(),t=gf.getQueryData(["GET/reports/templates"]),gf.setQueryData(["GET/reports/templates"],function(t){return e(e([],t,!0),[o],!1)}),[2,{previousTemplates:t}]}})})},onError:function(e,t,n){gf.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){gf.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function _f(e){return qp(function(){return _h.getInstance().updateReportTemplate(e).then(function(e){return null==e?void 0:e.data})})}function xf(e,o,r){var a=this;return void 0===r&&(r=null),qp(function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().postSmartRoutingCreateWorkflow(e,o).then(function(e){return null==e?void 0:e.data})];case 1:return[2,t.sent()]}})})},r)}function Ef(e,o){var r=this,a=e.versionCode,i=e.accountCode,s=e.organizationCode;return void 0===o&&(o=null),qp(function(){return t(r,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,_h.getInstance().postSmartRoutingPublishVersion(i,a,s).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})},o)}function Sf(e,t){var n=e.data,o=e.accountCode;return void 0===t&&(t=null),qp(function(){return _h.getInstance().putSmartRoutingUpdateWorkflow(o,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},t)}function Cf(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),qp(function(){return _h.getInstance().deleteSmartRoutingVersion(o,n).then(function(e){return null==e?void 0:e.data})},t)}function Rf(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),qp(function(){return _h.getInstance().postSmartRoutingDuplicateVersion(o,n).then(function(e){return null==e?void 0:e.data})},t)}function Tf(e,t){var n=e.paymentMethod,o=e.active,r=e.accountCode;return void 0===t&&(t=null),qp(function(){return _h.getInstance().putSmartRoutingToggleMethod(r,n,o).then(function(e){return null==e?void 0:e.data})},t)}function If(e,t){var n=e.declinedId,o=e.accountCode;return void 0===t&&(t=null),qp(function(e){return void 0===e&&(e=null),_h.getInstance().updateSmartRoutingDeclinedGroup(o,n,e).then(function(e){return null==e?void 0:e.data})},t)}function Af(e){var t=e.accountCode;return qp(function(e){return void 0===e&&(e=null),_h.getInstance().createSmartRoutingDeclinedGroup(t,e).then(function(e){return null==e?void 0:e.data})},e.options)}function Of(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),qp(function(e){return void 0===e&&(e=!1),_h.getInstance().updateSmartRoutingFavorite(o,n,e).then(function(e){return null==e?void 0:e.data})},t)}function jf(e,t){var n=e.code,o=e.name,r=e.accountCode;return void 0===t&&(t=null),qp(function(){return _h.getInstance().putSmartRoutingUpdateWorkflowName(r,{code:n,name:o}).then(function(e){return null==e?void 0:e.data})},t)}function Pf(e,t){var n=e.accountCode,o=e.workflowVersionCode;return void 0===t&&(t=null),qp(function(e){return _h.getInstance().simulateSmartRoutingTransaction(n,o,e).then(function(e){return null==e?void 0:e.data})},t)}function Df(e,t){return void 0===t&&(t=null),qp(function(t){return _h.getInstance().updateMonitorRedistribution(e,t).then(function(e){return null==e?void 0:e.data})},t)}function Lf(e,t){return void 0===t&&(t={}),qp(function(t){var n=t.declinedGroupCode;return _h.getInstance().removeDeclinedGroup(e,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},r(r({},t),{useErrorBoundary:!1}))}function qf(e,t){return void 0===t&&(t={}),qp(function(t){var n=t.payload;return _h.getInstance().multiAccountDeclinedGroupCreate(e,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},r(r({},t),{useErrorBoundary:!1}))}var zf=function(e){return qp(function(t){return _h.getInstance().createMonitorThreshold(t,e).then(function(e){return e.data})})},Mf=function(e){return qp(function(t){return _h.getInstance().createMonitorTemplate(t,e).then(function(e){return e.data})})};function Nf(){return qp(function(e){var t=e.payload;return _h.getInstance().postSlackMessageChannel(t).then(function(e){return null==e?void 0:e.data})})}function Uf(){return qp(function(e){var t=e.userCode,n=e.organizationCode;return _h.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then(function(e){return null==e?void 0:e.data})})}function Bf(){return qp(function(){return _h.getInstance().setCustodian().then(function(e){return null==e?void 0:e.data})})}function Ff(){return qp(function(e){var t=e.payload,n=e.accountCode;return _h.getInstance().createRoles(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Wf(){var e=this;return qp(function(o){var r=o.payload,a=o.id,i=o.accountCode;return t(e,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().editRoles({payload:r,id:a},i)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}})})},{useErrorBoundary:!1})}function Gf(){return qp(function(e){return _h.getInstance().deleteRoles(e).then(function(e){return null==e?void 0:e.data})})}function Hf(){return qp(["post-payment-links"],function(e){var t=e.payload,n=e.accountCode;return _h.getInstance().postPaymentLinks({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})})}function Vf(){return qp(["post-delete-payment-link"],function(e){var t=e.code;return _h.getInstance().postDeletePaymentLink({code:t}).then(function(e){return null==e?void 0:e.data})})}function $f(){return qp(["patch-payment-links"],function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return _h.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:o}).then(function(e){return null==e?void 0:e.data})})}function Kf(){return qp(function(e){var t=e.payload;return _h.getInstance().postUserSettings(t)},{onMutate:function(e){return e}})}function Qf(){return qp(function(e){return _h.getInstance().postUserThemeSettings(e)})}function Jf(){return qp(function(e){var t=e.payload,n=e.section;return _h.getInstance().postUserSettingsTables(t,n)},{onMutate:function(e){return e},onSuccess:function(e){var t=gf.getQueryData(["fetch-profile"]);e.data&&gf.setQueryData(["fetch-profile"],r(r({},t),{settings:e.data}))}})}function Xf(e){return qp(["pinned-sections"],function(e){var t=e.payload;return _h.getInstance().postUserSettingsPinned(t)},{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function Yf(){return qp(function(e){var t=e.password,n=e.otp;return _h.getInstance().getMfaTokenValidation(t,n).then(function(e){return null==e?void 0:e.data})})}function Zf(){return qp(function(){return _h.getInstance().getEmailOtp().then(function(e){return null==e?void 0:e.data})})}function em(){return qp(function(e){return _h.getInstance().confirmMfaOtp(e).then(function(e){return null==e?void 0:e.data})})}function tm(){return qp(function(e){return _h.getInstance().unrollMfa(e).then(function(e){return null==e?void 0:e.data})})}function nm(){return qp(function(){return _h.getInstance().validatePasswordStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return{valid:!1}})})}function om(){return qp(["post-get-allowlist-items"],function(e){var t=e.payload;return _h.getInstance().postAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function rm(){return qp(["post-get-allowlist-multi-account"],function(e){var t=e.payload;return _h.getInstance().postGetAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function am(){return qp(["post-create-allowlist-multi-account"],function(e){var t=e.payload;return _h.getInstance().postCreateAllowlistMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function im(){return qp(["patch-change-status-allowlist"],function(e){var t=e.payload;return _h.getInstance().patchChangeStatusAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function sm(){return qp(["patch-change-status-allowlist-item"],function(e){var t=e.payload;return _h.getInstance().patchChangeStatusAllowlistItem({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function cm(){return qp(["post-add-allowlist-items"],function(e){var t=e.payload;return _h.getInstance().patchAddAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function um(){return qp(["patch-allowlist"],function(e){var t=e.payload;return _h.getInstance().patchAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function lm(){return qp(["post-blacklist-multi-account"],function(e){var t=e.payload;return _h.getInstance().postBlackListMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function dm(){return qp(["put-blacklist"],function(e){return _h.getInstance().putBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function hm(){return qp(["change-blacklist"],function(e){return _h.getInstance().changeBlackListStatus(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function pm(){return qp(["change-blacklist-item"],function(e){return _h.getInstance().changeBlackListStatusItem(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function fm(){return qp(["post-blacklist-items"],function(e){var t=e.payload;return _h.getInstance().postBlackListItems({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function mm(){return qp(["delete-blacklist"],function(e){var t=e.black_list_code;return _h.getInstance().deleteBlackListType({black_list_code:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function gm(e){var t=e.handleSetProgress;return qp(["post-blacklist-batch"],function(e){var n=e.blacklist_code,o=e.expiration_days,r=e.file;return _h.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:o,file:r,handleSetProgress:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function ym(){return qp(["change-payments-webhook"],function(e){var t=e.status,n=e.paymentCode;return _h.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function vm(){return qp(["delete-blacklist-items"],function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return _h.getInstance().deleteBlockListItem({blocklist_code:t,blocklist_item_id:n,account_code:o}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function bm(){return qp(["valiate-blacklist-items"],function(e){return _h.getInstance().valiateBlockListItems({payload:e}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function km(){return qp(["delete-allowlist-item"],function(e){return _h.getInstance().deleteAllowlistItem({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function wm(){return qp(["validate-allowlist-items"],function(e){return _h.getInstance().validateAllowlistItems({payload:e}).then(function(e){return e.data}).catch(function(e){return e})})}function _m(e){var t=e.fileName,n=e.onSuccess,o=e.onError,r=c(0),a=r[0],i=r[1],s=u({cancel:function(){return null}}),l=qp(["upload-file-chargeback",t],function(e){var t=_h.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:i}),r=t.promise,a=t.cancel;return s.current.cancel=a,r.then(function(e){return null==n||n(null==e?void 0:e.data),null==e?void 0:e.data}).catch(function(e){throw null==o||o(),e})},{useErrorBoundary:!1});return{mutation:l,cancelRequest:s.current.cancel,progress:a}}function xm(){return qp(function(e){return _h.getInstance().uploadBatchRefundsV2({payload:e}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Em(){var e=this;return qp(function(o){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().batchRefundByFile({payload:o}).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function Sm(){var e=this;return qp(function(o){var r=o.batchRefundId,a=o.organizationCode,i=o.accountCode;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().getBatchRefundProcessedFileDownload(r,a,i).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function Cm(){var e=this;return qp(function(o){var r=o.batchRefundId,a=o.organizationCode,i=o.accountCode;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().getBatchRefundUserFileDownload(r,a,i).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function Rm(){var e=u({cancel:function(){return null}}),t=qp(["upload-file"],function(t){var n=_h.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),o=n.promise,r=n.cancel;return e.current.cancel=r,o.then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})});return{mutation:t,cancelRequest:e.current.cancel}}function Tm(){return qp(function(e){var t=e.payload,n=e.organizationCode;return _h.getInstance().updateMFAConfig(t,n)})}function Im(){return qp(function(e){var t=e.payload,n=e.organizationCode;return _h.getInstance().mfaExcludeUsers(t,n)})}function Am(e){return Lp(["GET/scheduled-reports",e],function(){return _h.getInstance().getScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Om(){return qp(function(e){var t=e.payload;return _h.getInstance().postScheduledReport(t).then(function(e){return{data:e.data,status:e.status}}).catch(function(e){return e})})}function jm(){return qp(function(e){var t=e.reportCode,n=e.payload;return _h.getInstance().updateScheduledReport(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Pm(){return qp(function(e){return _h.getInstance().deleteScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Dm(){return qp(function(e){return _h.getInstance().getConditionalConfigRules(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Lm(){return qp(function(e){return _h.getInstance().getRule(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function qm(){return qp(function(e){var t=e.payload,n=e.accountCode;return _h.getInstance().postCreateRuleMultiAccount(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function zm(){return qp(function(e){var t=e.payload,n=e.ruleId,o=e.accountCode;return _h.getInstance().postEditRule(t,n,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Mm(){return qp(function(e){var t=e.payload;return _h.getInstance().postCreateCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Nm(){return qp(function(e){var t=e.payload,n=e.code;return _h.getInstance().pathCreateCustomizedApiKeys(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Um(){return qp(function(e){var t=e.code,n=e.password;return _h.getInstance().getCustomizedApiKeysToken(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Bm(){return qp(function(e){var t=e.passwordOtp;return _h.getInstance().getDeveloperCredentialsValidatePassword(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Fm(){return qp(function(e){var t=e.code;return _h.getInstance().deleteCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Wm(){return qp(function(e){var t=e.payload,n=e.code;return _h.getInstance().patchApiKeysEditNote(t,n).then(function(e){return e.data}).catch(function(e){return e})})}function Gm(){return qp(function(e){var t=e.payload,n=e.code,o=e.password;return _h.getInstance().postApiKeysRoll(t,n,o).then(function(e){return e.data}).catch(function(e){return e})})}function Hm(){return qp(function(e){var t=e.password,n=e.accountCode;return _h.getInstance().getDeveloperCredentials(t,n).then(function(e){return r(r({},null==e?void 0:e.data),{isValid:!0})}).catch(function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}})})}function Vm(e){return qp(function(e){var t=e.payload;return _h.getInstance().postAuditMonitors(t)},{onMutate:e.onMutate})}function $m(){return qp(function(e){var t=e.codes;return _h.getInstance().postResendWebhooks({codes:t}).then(function(e){return null==e?void 0:e.data})})}function Km(){return qp(function(e){return _h.getInstance().postExportApiLogs(e).then(function(e){return null==e?void 0:e.data})})}function Qm(o){var r=this;return qp(function(){return _h.getInstance().createReconciliationReportTemplate(o).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{onMutate:function(o){return t(r,void 0,void 0,function(){var t,r;return n(this,function(n){switch(n.label){case 0:return[4,gf.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return n.sent(),t=null===(r=gf.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===r?void 0:r.templates,gf.setQueryData(["GET/reconciliation/reports/templates"],function(t){return{templates:e(e([],t.templates,!0),[o],!1)}}),[2,{previousTemplates:t}]}})})},onError:function(e,t,n){gf.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){gf.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function Jm(e){return qp(function(){return _h.getInstance().updateReconciliationReportTemplate(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Xm(){return qp(["POST/reconciliation/alerts"],function(e){return _h.getInstance().postReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){gf.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Ym(){return qp(["DELETE/reconciliation/alerts"],function(e){return _h.getInstance().deleteReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){gf.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Zm(){return qp(["UPDATE/reconciliation/alerts"],function(e){return _h.getInstance().updateReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){gf.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function eg(){return qp(function(e){var t=e.payload;return _h.getInstance().postCreateInsightsReport(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function tg(){return qp(function(e){return _h.getInstance().createSamlConfig(e)})}function ng(){return qp(function(e){return _h.getInstance().updateSamlConfig(e)})}function og(){return qp(function(){return _h.getInstance().deleteSamlConfig()})}function rg(e,t){return void 0===t&&(t={}),qp(function(t){return _h.getInstance().generateAIWorkflowRoutes(e,t).then(function(e){return null==e?void 0:e.data})},r(r({},t),{useErrorBoundary:!1}))}function ag(e){return void 0===e&&(e={}),qp(function(e){return _h.getInstance().postAIGenerationFeedback(e).then(function(e){return null==e?void 0:e.data})},r(r({},e),{useErrorBoundary:!1}))}function ig(){return qp(function(e){return _h.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function sg(){return qp(function(e){return _h.getInstance().deleteChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function cg(){return qp(function(e){var t=e.chart_id,n=e.type,o=e.name,r=e.user_prompt,a=void 0===r?"":r;return _h.getInstance().patchChartGPTChart(t,{type:n,name:o,user_prompt:a}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function ug(){var e=this;return qp(function(o){return t(e,void 0,void 0,function(){var e,t,r,a,i;return n(this,function(n){switch(n.label){case 0:return[4,_h.getInstance().createChartGPTChart(o)];case 1:if(e=n.sent(),!(t=null!==(a=null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.chartgpt_id)&&void 0!==a?a:null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:t}]}})})},{useErrorBoundary:!1})}function lg(){var e=this;return qp(["POST/template-reporting/report-templates"],function(o){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().createTemplateReporting(o).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){gf.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function dg(){var e=this;return qp(["POST/template-reporting/report-templates/clone"],function(o){var r=o.templateId,a=o.payload;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().cloneReportTemplate(r,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){gf.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function hg(){var e=this;return qp(["POST/template-reporting/report-templates/selection"],function(o){var r=o.templateId,a=o.payload;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().updateTemplateSelection(r,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){gf.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function pg(){var e=this;return qp(["POST/template-reporting/report-templates/status"],function(o){var r=o.templateId,a=o.payload;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().changeTemplateStatus(r,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){gf.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function fg(){var e=this;return qp(["DELETE/template-reporting/report-templates"],function(o){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().deleteReportTemplate(o).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){gf.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function mg(){var e=this;return qp(["POST/template-reporting/report-schedules"],function(o){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().createReportSchedule(o).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){gf.invalidateQueries({queryKey:["GET/template-reporting/schedules"]})},useErrorBoundary:!1})}function gg(){var e=this;return qp(["POST/template-reporting/report-schedules/deactivate"],function(o){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().deactivateReportSchedule(o).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){gf.invalidateQueries({queryKey:["GET/template-reporting/schedules"]})},useErrorBoundary:!1})}function yg(){var e=this;return qp(["DELETE/template-reporting/report-schedules"],function(o){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().deleteReportSchedule(o).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){gf.invalidateQueries({queryKey:["GET/template-reporting/schedules"]})},useErrorBoundary:!1})}var vg=function(){var e,t;return null===(t=null===(e=function(e){var t=localStorage.getItem(e),n=c(t&&JSON.parse(t)),o=n[0],r=n[1];return l(function(){var t=function(t){if(t.key===e){var n=t.newValue;r(n)}};return window.addEventListener("storage",t),function(){window.removeEventListener("storage",t)}},[e]),o}("account"))||void 0===e?void 0:e.value)||void 0===t?void 0:t.organization_code};function bg(e){var o=this;return Lp(["fetch-payments-lazy",e],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().postPaymentsLazy(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function kg(e){return Lp(["fetch-payments-evaluated",e],function(){return _h.getInstance().postPaymentsEvaluated(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function wg(e){var o=this,r=e.paymentCode,a=e.enabled,i=void 0===a||a,s=_h.getInstance();return Lp(["get-payment-v2",r],function(){return t(o,void 0,void 0,function(){return n(this,function(e){return[2,s.getPaymentV2(r).then(function(e){return e.data})]})})},{enabled:i,cacheTime:500,useErrorBoundary:!1})}function _g(e){var o=this,r=e.payment_code,a=e.enabled,i=void 0===a||a,s=_h.getInstance();return Lp(["get-payment-transaction-details-v2",r],function(){return t(o,void 0,void 0,function(){return n(this,function(e){return[2,s.getTransactionDetailsV2({payment_code:r}).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!r&&i,cacheTime:0,useErrorBoundary:!1})}function xg(e){var o=this,r=e.transaction_code,a=e.enabled,i=void 0===a||a,s=_h.getInstance();return Lp(["get-payment-transaction-raw-response",r],function(){return t(o,void 0,void 0,function(){return n(this,function(e){return[2,s.getTransactionRawResponse({transaction_code:r})]})})},{enabled:!!r&&i,cacheTime:0,useErrorBoundary:!1})}function Eg(e){var t=vg();return Lp(["payment-methods",e],function(){return _h.getInstance().getPaymentMethodsByCountry({provider_id:null==e?void 0:e.provider_id,country:null==e?void 0:e.country},t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!(null==e?void 0:e.provider_id),useErrorBoundary:!1})}function Sg(){return Lp({queryKey:["/payment-methods/providers"],queryFn:function(){return _h.getInstance().getPaymentMethodsAndProviders().then(function(e){return null==e?void 0:e.data})},cacheTime:864e5,useErrorBoundary:!1})}function Cg(){return Lp(["GET/catalog/card-brands"],function(){return _h.getInstance().getCardBrands().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Rg(e,t){return void 0===e&&(e=!0),void 0===t&&(t=El.PAYMENTS),Lp(["payment-filters",e,t],function(){return _h.getInstance().getPaymentFilters(t).then(function(e){return null==e?void 0:e.data})},{enabled:e,useErrorBoundary:!1,cacheTime:3e5})}function Tg(){return Lp(["payment-metrics-filters"],function(){return _h.getInstance().getPaymentMetricsFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Ig(e){var t=e.transaction_code,n=e.enabled;return Lp(["payment-transaction-details",t],function(){return _h.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Ag(e){var t=e.payment_code,n=e.enabled;return Lp(["transaction-history",t],function(){return _h.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Og(e){var o=this;return Lp(["POST/transactions",JSON.stringify(e)],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().postTransactions(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function jg(e){var o=this;return Lp(["POST/fraud-transactions",JSON.stringify(e)],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().postFraudTransactions(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function Pg(e){return Lp(["GET/payout-detail",JSON.stringify(e)],function(){var t=_h.getInstance();return e.organization_code?t.getPayoutDetails(e).then(function(e){return null==e?void 0:e.data}):{}},{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function Dg(e){return Lp(["GET/payout-transaction-detail",JSON.stringify(e)],function(){return _h.getInstance().getPayoutTransactionDetails(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0,useErrorBoundary:!1})}function Lg(e){var t=vg();return Lp(["GET/payout-history-detail",JSON.stringify(e)],function(){return _h.getInstance().getPayoutHistoryDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function qg(e,o){var r=this,a=vg();return Lp(["GET/useGetProofOfCancel",a,e,o],function(){return t(r,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().getProofOfCancel(e,a,o).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!a&&!!o,cacheTime:0,useErrorBoundary:!1})}function zg(e,o){var r=this,a=vg();return Lp(["GET/useGetProofOfPayment",a,e,o],function(){return t(r,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().getProofOfPayment(e,a,o).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!a&&!!o,cacheTime:0,useErrorBoundary:!1})}function Mg(e,o,r){var a=this,i=_h.getInstance();return Lp(["send-payment-notification",e,o],function(){return t(a,void 0,void 0,function(){var t,a;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,i.sendPaymentNotification(e,o)];case 1:return t=n.sent(),r.onSuccess(),[2,t.data];case 2:throw a=n.sent(),r.onError(),a;case 3:return[2]}})})},{enabled:r.enabled,cacheTime:0,useErrorBoundary:!1})}function Ng(e){return Lp(["usePayoutsList",e&&JSON.stringify(e)],function(){var t=_h.getInstance();if(e)return t.postPayouts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&!!Object.values(e).length,cacheTime:0})}function Ug(e){var o=this;void 0===e&&(e=!0);var r=vg();return Lp(["getPayoutsFilters",r],function(){return t(o,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().getPayoutsFilters(r).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{enabled:e&&!!r})}function Bg(e){var t=e.password,n=e.accountCode;return Lp(["developers"],function(){return _h.getInstance().getDeveloperCredentials(t,n).then(function(e){return r(r({},null==e?void 0:e.data),{isValid:!0})}).catch(function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}})},{enabled:!1,cacheTime:0})}function Fg(){return Lp(["fetch-customized-api-keys-members"],function(){return _h.getInstance().getCustomizedApiKeysMembers().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Wg(){return Lp(["developers-get-allowed-ips"],function(){return _h.getInstance().getAllowedIps().then(function(e){return(null==e?void 0:e.data)?r(r({},null==e?void 0:e.data),{isError:!1}):null}).catch(function(e){return r(r({},e),{isError:!0})})},{enabled:!1,cacheTime:0})}function Gg(){return Lp(["fetch-customized-api-keys-accounts"],function(){return _h.getInstance().getCustomizedApiKeysAccounts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Hg(e){return Lp(["fetch-customized-api-keys",e],function(){return _h.getInstance().postCustomizedApiKeys(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0,enabled:!!(null==e?void 0:e.length)})}function Vg(){return Lp(["fetch-customized-api-keys-products"],function(){return _h.getInstance().getCustomizedApiKeysProducts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0})}function $g(){return qp(["developers-patch-allowed-ips"],function(e){return _h.getInstance().patchAllowedIps(e).then(function(e){return(null==e?void 0:e.data)?r(r({},null==e?void 0:e.data),{isError:!1}):null}).catch(function(e){return r(r({},e),{isError:!0})})},{cacheTime:0})}function Kg(){return Lp(["fetch-organizations"],function(){return _h.getInstance().getOrganization().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Qg(){return Lp(["fetch-all-organizations",vg()],function(){return _h.getInstance().getAllOrganization().then(function(e){return(null==e?void 0:e.data)||[]})},{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})}function Jg(e){var t=vg();return Lp(["organizations-provider-params",e],function(e){var n=e.queryKey;return _h.getInstance().getProviderParams(n[1],t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.id),useErrorBoundary:!1})}function Xg(e){var t=e.integration_code,n=e.enabled,o=e.accountCode;return Lp(["integration-params",t,o],function(){return t.includes("undefined")?{}:_h.getInstance().getIntegrationParams({accountCode:o,integration_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:n,useErrorBoundary:!1})}function Yg(e){var t=e.accountCode,n=e.organizationCode,o=vg();return Lp(["organizations-account-integrations",t,n],function(){return _h.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||o}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:!!t,useErrorBoundary:!1})}function Zg(e){var t=e.accountCode,n=e.paymentMethod;return Lp(["fetch-connections-by-payment-method",n,t],function(){return _h.getInstance().getConnectionsByPaymentMethod(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function ey(){var e=this;return Lp(["fetch-hash-pylon"],function(){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().getHashPylon()]})})},{keepPreviousData:!0,useErrorBoundary:!1})}function ty(){return Lp(["connections"],function(){return _h.getInstance().getConnections().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function ny(){return Lp(["dialogs"],function(){return _h.getInstance().getDialogs().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,retryDelay:2e3,cacheTime:36e5})}function oy(){return Lp(["params-catalog"],function(){return _h.getInstance().getWebhookParamsV2().then(function(e){return null==e?void 0:e.data})})}function ry(e){var t=e.accountCode,n=e.name;return Lp(["webhooks",t,n],function(){return _h.getInstance().getWebhooksV3({accountCode:t,name:n}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,useErrorBoundary:!1})}function ay(e){var t=e.accountCode,n=e.enabled;return Lp(["webhooks-detail",t],function(){return _h.getInstance().getWebhooksV2Detail({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!n})}function iy(e){var t,n=vg(),o=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Lp({queryKey:["accounts",o],queryFn:function(){return _h.getInstance().getAccounts(o).then(function(e){return null==e?void 0:e.data})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!o})}function sy(e){return Lp(["accountsV2",e],function(){return _h.getInstance().getAccountsV2().then(function(e){return(null==e?void 0:e.data)||[]}).catch(function(e){throw e})},{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function cy(e){return Lp(["accountsV2-by-user",e],function(){return e?_h.getInstance().getAccountsByUser(e).then(function(e){return{accountsV2ByUser:(null==e?void 0:e.data)||null}}).catch(function(e){return{accountsV2ByUser:[],error:e}}):{accountsV2ByUser:[]}},{enabled:!!e,staleTime:0})}function uy(e,o){var r=this;return Lp({queryKey:["accounts-for-impersonation",e,o],queryFn:function(){return t(r,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().getAccountsForImpersonation(e).then(function(e){var t,n;return(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.response)||void 0===n?void 0:n.map(function(e){return{label:e.name,value:o?e.code_testing:e.code_live,code_live:e.code_live,code_testing:e.code_testing}}))||[]})]})})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function ly(){return Lp(["menu"],function(){return _h.getInstance().getMenu().then(function(e){return ah(e)?hh:null==e?void 0:e.data}).catch(function(){return hh})})}function dy(){return Lp(["/payment/statuses/style"],function(){return _h.getInstance().useGetPaymentStatusesStyles().then(function(e){return ah(e)?ih:null==e?void 0:e.data}).catch(function(){return ih})})}function hy(){return Lp(["/transaction/statuses/style"],function(){return _h.getInstance().useGetTransactionStatusesStyles().then(function(e){return ah(e)?sh:null==e?void 0:e.data}).catch(function(){return sh})},{cacheTime:36e5,useErrorBoundary:!1})}function py(){return Lp(["/reconciliation/transaction/statuses/style"],function(){return _h.getInstance().useGetReconciliationTransactionStatusesStyles().then(function(e){return ah(e)?ch:null==e?void 0:e.data}).catch(function(){return ch})})}function fy(){return Lp(["timezone-catalog"],function(){return _h.getInstance().useGetTimeZoneCatalog().then(function(e){return ah(e)?uh:null==e?void 0:e.data}).catch(function(){return uh})})}function my(){return Lp(["/cms/audit-logs-filters"],function(){return _h.getInstance().useGetAuditLogsFilters().then(function(e){return ah(e)?lh:null==e?void 0:e.data}).catch(function(){return lh})})}function gy(){return Lp(["/cms/static-contents"],function(){return _h.getInstance().getDashboardStaticContents().then(function(e){var t,n;return ah(e)?dh:(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t[0])||void 0===n?void 0:n.data)||{}})},{cacheTime:6048e5,useErrorBoundary:!1})}function yy(){return Lp(["/cms/locales"],function(){return _h.getInstance().getLocales().then(function(e){return ah(e)?ph:e.data}).catch(function(){return ph})})}var vy=function(){var e=c("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return l(function(){window.addEventListener("storage",function(e){"isTesting"===e.key&&n("ON"===e.newValue)})},[]),{isTesting:t}};function by(e){return Lp(["smart-routing-methods",e],function(){return _h.getInstance().getSmartRoutingMethods(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function ky(e,t){return Lp(["smart-routing-workflow",t,e],function(){return _h.getInstance().getSmartRoutingWorkflow(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e,cacheTime:0,retry:!1})}function wy(e,t){return Lp(["smart-routing-condition-types",e,t],function(){return _h.getInstance().getSmartRoutingConditionTypes(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e})}function _y(e,t){return Lp(["smart-routing-condition-payment-method",e,t],function(){return _h.getInstance().getSmartRoutingConditionPaymentMethod(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:null!==t})}function xy(e,t){return Lp(["smart-routing-condition-types-values",t,e],function(){return _h.getInstance().getSmartRoutingConditionTypesValues(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!e,useErrorBoundary:!1})}function Ey(e){var t=e.accountCode,n=e.workflowVersionId;return Lp(["smart-routing-workflow-version",n,t],function(){return _h.getInstance().getSmartRoutingWorkflowVersion(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!n&&!!t,cacheTime:0})}function Sy(e,t,n){return Lp(["smart-routing-next-route",e,n,t],function(){return _h.getInstance().getSmartRoutingNextSteps(e,t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function Cy(e){return Lp(["smart-routing-decline-groups",e],function(){return _h.getInstance().getSmartRoutingDeclinedGroup(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function Ry(e,t){return Lp(["smart-routing-payment-route",e,t],function(){return _h.getInstance().getSmartRoutingPaymentRoute(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&!!t,cacheTime:0})}function Ty(e){return Lp(["smart-routing-simulate-condition-type-values",e],function(){return _h.getInstance().getSmartRoutingSimulateConditionTypeValues(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function Iy(e){var t=e.text,n=e.conditionType;return Lp(["smart-routing-search-condition-values",t,n],function(){return _h.getInstance().getSmartRoutingSearchConditionValues(n,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!n&&!!t,cacheTime:0})}function Ay(){return Lp(["smart-routing-conversion-rates"],function(){return _h.getInstance().getProviderConversionRatesData().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!1,useErrorBoundary:!1})}function Oy(){var e=this;return Lp({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,_h.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})}function jy(){var e=this;return Lp({queryKey:["smart-routing-network-tokens-onboarding"],queryFn:function(){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,_h.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})}function Py(e){return Lp(["fetch-routing-monitors-templates",e],function(){return _h.getInstance().getRoutingMonitorsTemplates(e).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Dy(e,t){return Lp(["fetch-routing-monitors-template",e],function(){return _h.getInstance().getRoutingMonitorsTemplate(e,t).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e&&!!t&&"NONE"!==e,useErrorBoundary:!1})}function Ly(e){var t=e.accountCode;return Lp(["checkouts",t],function(){return _h.getInstance().getCheckouts({accountCode:t}).then(function(e){return e.data})},{cacheTime:0,enabled:Boolean(t)})}function qy(e){var t=e.accountCode;return Lp(["checkouts-template"],function(){return _h.getInstance().getCheckoutTemplate({accountCode:t}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:Boolean(t)})}var zy=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},My=function(e,t){var n=e.paymentMethodType,o=e.type;return Lp(zy({paymentMethodType:n,type:o}),function(){return _h.getInstance().getNameAndIcon({paymentMethodType:n,type:o}).then(function(e){return null==e?void 0:e.data})},t)},Ny=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},Uy=function(e,t){var n=e.paymentMethodType,o=e.type;return Lp(Ny({paymentMethodType:n,type:o}),function(){return _h.getInstance().getRequiredFields({paymentMethodType:n,type:o}).then(function(e){return null==e?void 0:e.data})},t)};function By(e){var t=e.accountCode;return Lp(["styling-sdk-dynamic",t],function(){return _h.getInstance().getStylingSdkDynamic({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Fy(e){var t=e.accountCode;return Lp(["styling-theme",t],function(){return _h.getInstance().getStylingTheme({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Wy(e){var t=e.accountCode;return Lp(["styling-settings",t],function(){return _h.getInstance().getStylingSettings({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Gy(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n;return Lp(["styling-settings-v2",t],function(){return _h.getInstance().getStylingSettingsV2({accountCode:t,environment:o}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Hy(){return qp(function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n,r=e.payload;return _h.getInstance().changeStylingSettings({accountCode:t,environment:o,payload:r}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function Vy(){return Lp(["fetch-profile"],function(){return _h.getInstance().getProfile().then(function(e){var t=null==e?void 0:e.data;return t&&localStorage.setItem("user",JSON.stringify(t)),t}).catch(function(e){throw e})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function $y(){var e=this;return Lp(["get-user-full"],function(){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,_h.getInstance().getUserFull()];case 1:return[2,e.sent().data]}})})},{keepPreviousData:!0,useErrorBoundary:!1})}function Ky(e,t){return Lp(["fetch-permissions",e,t],function(){var e,t,n,o=localStorage.getItem("account"),r=localStorage.getItem("user"),a=o&&JSON.parse(o),i=r&&JSON.parse(r);return((null==i?void 0:i.merlin)?null===(e=null==i?void 0:i.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==a?void 0:a.value)||void 0===t?void 0:t.role)||void 0===n?void 0:n.permission_ids.map(function(e){return{permission_name:e,description:e,resource_server_name:e,resource_server_identifier:e}}))||[]})}function Qy(e){return Lp(["email-verification",e],function(){return _h.getInstance().emailVerification(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function Jy(){return Lp({queryKey:["get-login-methods"],queryFn:function(){return _h.getInstance().getLoginMethods().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})}})}function Xy(){return Lp(["fetch-impersonation-users"],function(){return _h.getInstance().getImpersonationUsers().then(function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.result)||[]})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Yy(){return Lp(["fetch-impersonation-enabled"],function(){return _h.getInstance().getImpersonationEnabled().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Zy(e,o,r,a,i){var s=this;return void 0===r&&(r=1),void 0===a&&(a=10),Lp(["get-users-to-impersonate",e,o,r,a,i],function(){return t(s,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().getUsersToImpersonate(e,o,r,a,i).then(function(e){return null==e?void 0:e.data})]})})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function ev(e){var t;return Lp(["fetch-communications",e],function(){return _h.getInstance().getCommunications(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null===(t=e.account_codes)||void 0===t?void 0:t.length),useErrorBoundary:!1,cacheTime:3e3})}function tv(){return Lp(["fetch-communications-filters"],function(){return _h.getInstance().getCommunicationsFilters().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function nv(e,t){return Lp(["fetch-communication-details",e],function(){return _h.getInstance().getCommunicationDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,useErrorBoundary:!1,cacheTime:0})}function ov(e){return Lp(["notifications-customer",e],function(){return _h.getInstance().getNotificationsCustomer(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,keepPreviousData:!1})}function rv(e){return Lp(["validate-opsgenie-key",e],function(){return _h.getInstance().getValidateOpsgenieKey(e).then(function(e){return null==e?void 0:e.data}).catch(function(){return{error:!0}})},{enabled:!!e,cacheTime:0})}function av(){return Lp(["notifications-merged"],function(){return _h.getInstance().getMergedNotifications().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{keepPreviousData:!1,cacheTime:0})}function iv(){return qp(function(e){return _h.getInstance().getNotificationsNumber(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function sv(){var e=this;return qp(function(o){return t(e,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().pathNotification(o)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}})})})}var cv={key:"metadata_fields",name:"metadata_fields"};function uv(){return Lp(["reports"],function(){return _h.getInstance().reportsList().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function lv(e){return void 0===e&&(e=!0),Lp(["reports-multi-env"],function(){return _h.getInstance().reportsListMultiEnv().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e})}function dv(e,t,n){return void 0===t&&(t=!1),Lp(["reports/".concat(e)],function(){return _h.getInstance().downloadReports(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,onSuccess:n,useErrorBoundary:!1})}function hv(e){return Lp(["GET/reports/templates"],function(){return _h.getInstance().getReportTemplates().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,useErrorBoundary:!1})}function pv(o,r,a){var i=this;return Lp(["GET/reports/columns/".concat(r,"/").concat(a)],function(){return t(i,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().getReportColumns(r,a).then(function(t){return r===Il.ALL&&a===Tl.PAYMENTS?e(e([],null==t?void 0:t.data,!0),[cv],!1):null==t?void 0:t.data}).catch(function(e){return e})]})})},{enabled:o,useErrorBoundary:!1})}function fv(e,o){var r=this,a=vg();return Lp(["getRefundPdf",e,a,o],function(){return t(r,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().getRefundPdf(e,a,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})]})})},{enabled:!!e&&!!a,useErrorBoundary:!1})}function mv(){var e=vg();return Lp(["teams-filters-members"],function(){return _h.getInstance().teamsFiltersMembers({organizationCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0})}function gv(e){var t=e.organizationCode,n=e.accountCodes,o=e.email,r=e.page,a=e.pageSize,i=vg();return Lp(["fetch-post-members-v2",t,n,o,r,a],function(){return _h.getInstance().postMembersPaginatedV2({organizationCode:i,accountCodes:n,email:o,page:r,pageSize:a}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function yv(){return Lp(["fetch-roles"],function(){return _h.getInstance().getRoles().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function vv(){return Lp(["fetch-rolespermissions"],function(){return _h.getInstance().getRolesPermissions().then(function(e){return null==e?void 0:e.data})})}function bv(){return Lp(["fetch-permissions-catalog"],function(){return _h.getInstance().getPermissionsCatalog().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function kv(e){return Lp(["data-report",e],function(){return _h.getInstance().getSmartRoutingDataReport(e).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,useErrorBoundary:!1})}function wv(e,t,n){return void 0===n&&(n=!0),Lp(["get-insights-conversion-rate-metrics-v2",e,t],function(){return _h.getInstance().getInsightsMetricsConversionRateV2(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:n&&(!!(null==e?void 0:e.currency_code)&&"Empty"!==(null==e?void 0:e.currency_code)&&"string"==typeof(null==e?void 0:e.currency_code)||Array.isArray(null==e?void 0:e.currency_code)&&0===(null==e?void 0:e.currency_code.length)),staleTime:3e5,cacheTime:3e5,useErrorBoundary:!1,retry:1})}function _v(e,t){return Lp(["get-insights-conversion-rate-view-more-metrics",t,e],function(){return _h.getInstance().getInsightsMetricsConversionRateViewMore(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled)&&!!t,cacheTime:200,useErrorBoundary:!1})}function xv(e){return Lp(["get-insights-conversion-rate-fallback-metrics",e],function(){return _h.getInstance().getInsightFallbackMetrics(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled),cacheTime:200,useErrorBoundary:!1})}function Ev(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Lp(["get-insights-volume-metrics",t,e],function(){return _h.getInstance().getInsightsMetricsVolume(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Sv(e,t,n,o){return void 0===o&&(o=!0),delete t.account_code,Lp(["get-insights-volume-metrics-v2",t,e,n],function(){return _h.getInstance().getInsightsMetricsVolumeV2(e,n,t).then(function(e){return null==e?void 0:e.data})},{enabled:o,cacheTime:200,useErrorBoundary:!1})}function Cv(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Lp(["get-insights-total-payment-fraud-metrics",t,e],function(){return _h.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Rv(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Lp(["get-insights-customer-payment-fraud-metrics",t,e],function(){return _h.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Tv(e){return Lp(["get-insights-overview",e],function(){return _h.getInstance().getInsightOverview(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled)&&void 0!==e.account_code,cacheTime:200,useErrorBoundary:!1})}function Iv(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Lp(["get-insights-overview-v3",e,t],function(){return _h.getInstance().getInsightOverviewV3(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:0,useErrorBoundary:!1})}function Av(e){return Lp(["get-insights-home-metrics",e],function(){return _h.getInstance().getInsighstHomeMetrics(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.currency_code)&&!!(null==e?void 0:e.account_codes)&&!!(null==e?void 0:e.organization_code)&&(null==e?void 0:e.isLiveMode)&&!!(null==e?void 0:e.timezone),cacheTime:200,useErrorBoundary:!1})}function Ov(e){return Lp(["get-insights-reports",e],function(){return _h.getInstance().getInsightsReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!(null==e?void 0:e.type),cacheTime:0,useErrorBoundary:!1})}function jv(e){return Lp(["get-insights-reports-again",e],function(){return _h.getInstance().getInsightsReportAgain(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!(null==e?void 0:e.code),cacheTime:0,useErrorBoundary:!1})}function Pv(e,o,r){var a=this;return void 0===r&&(r={enabled:!0}),Lp({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,o],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}})})},enabled:r.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Dv(e,o,r){var a=this;return void 0===r&&(r={enabled:!0}),Lp({queryKey:["post-insights-fraud-screening-conversion-rate",e,o],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().getInsightsFraudScreeningConversionRate(e,o)];case 1:return[2,t.sent()]}})})},enabled:r.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Lv(e,o,r){var a=this;return void 0===r&&(r={enabled:!0}),Lp({queryKey:["post-insights-3ds-volume-and-count-tx",o,e],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().getInsights3dsVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}})})},enabled:r.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function qv(e,o,r){var a=this;return void 0===r&&(r={enabled:!0}),Lp({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,o],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().getInsights3dsConversionRateAndEvolution(e,o)];case 1:return[2,t.sent()]}})})},enabled:r.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function zv(e,o,r){var a=this;return void 0===r&&(r={enabled:!0}),Lp({queryKey:["post-insights-3ds-decline-reasons",e,o],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().getInsights3dsDeclineReasons(e,o)];case 1:return[2,t.sent()]}})})},enabled:r.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Mv(e,o,r){var a=this;return void 0===r&&(r={enabled:!0}),Lp({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,o],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().getInsights3dsFrictionlessVsChallenge(e,o)];case 1:return[2,t.sent()]}})})},enabled:r.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Nv(e,o,r){var a=this;return void 0===r&&(r={enabled:!0}),Lp({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,o],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().getInsightsChargebacksVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}})})},enabled:r.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Uv(e,o,r){var a=this;return void 0===r&&(r={enabled:!0}),Lp({queryKey:["post-insights-chargebacks-total-rate-and-evolution",e,o],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().getInsightsChargebacksTotalRateAndEvolution(e,o)];case 1:return[2,t.sent()]}})})},enabled:r.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Bv(e,o,r){var a=this;return void 0===r&&(r={enabled:!0}),Lp({queryKey:["post-insights-chargebacks-win-rate",e,o],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().getInsightsChargebacksWinRate(e,o)];case 1:return[2,t.sent()]}})})},enabled:r.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Fv(e,o,r){var a=this;return void 0===r&&(r={enabled:!0}),Lp({queryKey:["post-insights-chargebacks-disputed",e,o],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().getInsightsChargebacksDisputed(e,o)];case 1:return[2,t.sent()]}})})},enabled:r.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Wv(e,o,r){var a=this;return void 0===r&&(r={enabled:!0}),Lp({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,o],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,o)];case 1:return[2,t.sent()]}})})},enabled:r.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Gv(e,o,r){var a=this;return void 0===r&&(r={enabled:!0}),Lp({queryKey:["post-insights-chargebacks-reasons-distribution",e,o],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().getInsightsChargebacksReasonsDistribution(e,o)];case 1:return[2,t.sent()]}})})},enabled:r.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Hv(e,o,r){var a=this;return void 0===r&&(r={enabled:!0}),Lp({queryKey:["post-insights-chargebacks-status-distribution",e,o],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().getInsightsChargebacksStatusDistribution(e,o)];case 1:return[2,t.sent()]}})})},enabled:r.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Vv(e,o,r){var a=this;return void 0===r&&(r={enabled:!0}),Lp({queryKey:["post-insights-chargebacks-by-card-brand",e,o],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().getInsightsChargebacksByCardBrand(e,o)];case 1:return[2,t.sent()]}})})},enabled:r.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function $v(e,t){return Lp(["fetch-reconciliation-transaction",e],function(){return _h.getInstance().getReconciliationTransactions(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})}function Kv(e,t){return Lp(["fetch-reconciliation-settlements",e],function(){return _h.getInstance().getReconciliationSettlements(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})}function Qv(e,t){return Lp(["fetch-reconciliation-metrics",e],function(){return _h.getInstance().getReconciliationMetrics(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t,cacheTime:500})}function Jv(){return Lp(["GET-reconciliation-filters"],function(){return _h.getInstance().getReconciliationFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Xv(e){return Lp(["GET/v1/reconciliation/table/".concat(e,"/columns")],function(){return _h.getInstance().getAllTableColumns(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Yv(){return Lp(["GET/v1/reconciliation/active"],function(){return _h.getInstance().getReconciliationActive().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Zv(e,t,n){return Lp(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],function(){return _h.getInstance().getReconciliationsReportColumns(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{enabled:e,useErrorBoundary:!1})}function eb(e){return Lp(["GET/reconciliation/reports/templates"],function(){return _h.getInstance().getReconciliationReportTemplates().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{enabled:e,useErrorBoundary:!1})}function tb(e){var t=e.body,n=e.params,o=e.enabled;return Lp(["GET/reconciliation/alerts/list",t,n],function(){return _h.getInstance().getReconciliationAlerts(t,n).then(function(e){return e.data})},{enabled:o,useErrorBoundary:!1})}function nb(e){var t=e.body,n=e.params,o=e.enabled;return Lp(["GET/reconciliation/agenda/list",t,n],function(){return _h.getInstance().getReconciliationAgenda(t,n).then(function(e){return e.data})},{enabled:o,useErrorBoundary:!1})}function ob(e){var t=e.body,n=e.params,o=e.enabled;return Lp(["GET/reconciliation/agenda/insights",t,n],function(){return _h.getInstance().getReconciliationAgendaInsightByKey(t,n).then(function(e){return e.data})},{enabled:o,useErrorBoundary:!1})}function rb(e){var t=e.body,n=e.params,o=e.enabled;return Lp(["GET/reconciliation/sales/list",t,n],function(){return _h.getInstance().getReconciliationSales(t,n).then(function(e){return e.data})},{enabled:o,useErrorBoundary:!1})}function ab(e){var t=e.body,n=e.params,o=e.enabled;return Lp(["GET/reconciliation/advancements/list",t,n],function(){return _h.getInstance().getReconciliationAdvancements(t,n).then(function(e){return e.data})},{enabled:o,useErrorBoundary:!1})}function ib(e){var t=e.body,n=e.params,o=e.enabled;return Lp(["GET/reconciliation/fees/list",t,n],function(){return _h.getInstance().getReconciliationFees(t,n).then(function(e){return e.data})},{enabled:o,useErrorBoundary:!1})}function sb(e){var o=this,r=Object.values(e).filter(Boolean);return Lp(["feature-flags",r],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().getFeatureFlagId(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:r.length>1,useErrorBoundary:!1})}function cb(e){var o=this,r=Lp({queryKey:["all-feature-flags",Object.values(e).filter(Boolean)],queryFn:function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().getFeatureFlagIdAll({accountCode:e.account_code}).then(function(e){return null==e?void 0:e.data})]})})},enabled:!!e.account_code&&!!e.organization_code&&!!e.email,cacheTime:9e5,useErrorBoundary:!1}),a=Ip();return l(function(){a.setQueryData(["cached-feature-flags"],r)},[r,a]),r}function ub(e){var t,n,o=Ip(),a=o.getQueryState(["cached-feature-flags"]),i=Boolean(!(null===(t=null==a?void 0:a.data)||void 0===t?void 0:t.status)||"loading"===(null===(n=null==a?void 0:a.data)||void 0===n?void 0:n.status)),s=Lp({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=null==t?void 0:t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=o.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}});return r(r({},s),{isLoading:i})}function lb(e){return Lp(["events",e],function(){return _h.getInstance().getAuditEvents(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.account_code&&!!e.organizationCode,cacheTime:0,keepPreviousData:!0,useErrorBoundary:!1})}function db(e){return Lp(["audit-monitor-event-detail",e],function(){return _h.getInstance().getAuditMonitorDetail(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:null!==e,cacheTime:0,useErrorBoundary:!1})}function hb(e){return Lp(["api-logs",e],function(){return _h.getInstance().postApiLogs({payload:e}).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.organizationCode,cacheTime:0,useErrorBoundary:!1})}function pb(e){var t=e.params;return Lp(["webhook-logs",t],function(){return _h.getInstance().postWebhookLogs({payload:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t.organizationCode,cacheTime:0,useErrorBoundary:!1})}function fb(e){return Lp(["api-logs-detail",e],function(){return _h.getInstance().getApiLogsDetailByPaymentCode(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function mb(e,t){return Lp(["fetch-payment-links",e,t],function(){return _h.getInstance().getPaymentLinks(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,cacheTime:0})}function gb(e){return Lp(["payment-link"],function(){return _h.getInstance().getPaymentLinksByCode(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function yb(e){return void 0===e&&(e=!0),Lp(["countries",e],function(){return _h.getInstance().useGetCountriesConfig().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,keepPreviousData:!0})}function vb(e){var t=localStorage.getItem("lang")||"en",n=e||t;return Lp(["countries-v2",n],function(){return _h.getInstance().useGetCountriesConfigV2(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!0,keepPreviousData:!0})}function bb(e){return Lp(["timezone"],function(){return _h.getInstance().getTimezone(e).then(function(e){return ah(e)?uh:null==e?void 0:e.data}).catch(function(){return uh})},{enabled:!0,keepPreviousData:!0})}function kb(e){return qp(function(e){var t=e.payload;return _h.getInstance().firebaseUserSubscribe(t)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function wb(e,t){return Lp(["get-cofig-allow-list",e],function(){return _h.getInstance().getConfigAllowlist(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0,enabled:!!e&&!!t})}function _b(e){return Lp(["get-black-list",e],function(){return _h.getInstance().getBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e})}function xb(e,t,n,o){var r;return Lp(["post-black-list",e],function(){return _h.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=o?o:25).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:(null===(r=e[0])||void 0===r?void 0:r.length)>0&&null!==t,useErrorBoundary:!1})}function Eb(e,t,n){return Lp(["get-block-list-summary",e,t,n],function(){var o=_h.getInstance();return n?o.getBlackListSummary(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e}):Promise.resolve({})},{enabled:!!e&&!!n})}function Sb(e,t,n,o,r,a){return Lp(["black-list-detail",e,t,o,r,a],function(){return _h.getInstance().getBlacklistDetail(e,t,n,o,r).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&a,cacheTime:0})}function Cb(e,t,n){return Lp(["allow-list-detail",e],function(){return _h.getInstance().getAllowlistDetail(e,t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e&&!!n})}function Rb(e){return Lp(["query-post-get-allowlist-multi-account",JSON.stringify(e)],function(){return _h.getInstance().postGetAllowlist({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function Tb(e,o){var r=this;return void 0===e&&(e=26),void 0===o&&(o=0),Lp(["batch-refunds",e,o],function(){return t(r,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().getBatchRefunds(e,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{cacheTime:0})}function Ib(e){return Lp(["velocity-rules",e],function(){var t=_h.getInstance();return e?t.getVelocityRules(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e}):Promise.resolve({})},{enabled:!!e,keepPreviousData:!0})}function Ab(){return Lp(["config-rules"],function(){return _h.getInstance().getAllConfigRules().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0})}function Ob(e,t){var n=e.organizationCode;return Lp(["mfa-excluded-users",n],function(){return _h.getInstance().getMFAExcludedUsers({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function jb(e,t){var n=e.organizationCode;return Lp(["mfa-config",n],function(){return _h.getInstance().getMFAConfig({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function Pb(e,t){return Lp(["mfa-enforcement-status",e.accountCode],function(){return _h.getInstance().getMFAEnforcementStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function Db(e){return Lp(["fetch-organization-saml-config",e],function(){return _h.getInstance().getSamlConfig().then(function(e){return e.data})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Lb(e){return Lp(["chartgpt-chart-execute",e],function(){return _h.getInstance().executeChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e})}function qb(){return Lp(["chartgpt-user-charts"],function(){return _h.getInstance().getChartsByUser().then(function(e){return null==e?void 0:e.data})},{cacheTime:0})}function zb(){var e=this;return Lp(["chartgpt-user-charts-with-results"],function(){return t(e,void 0,void 0,function(){var e,o,a,i=this;return n(this,function(s){switch(s.label){case 0:return[4,(e=_h.getInstance()).getChartsByUser()];case 1:return o=s.sent(),a=(null==o?void 0:o.data)||[],[4,Promise.all(a.map(function(o){return t(i,void 0,void 0,function(){var t,a,i,s,c,u,l,d;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.executeChartGPTChart(o.code)];case 1:return t=n.sent(),[2,r(r({},o),{user_prompt:null!==(s=null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.user_prompt)&&void 0!==s?s:o.user_prompt,unit_to_display:null!==(u=null===(c=null==t?void 0:t.data)||void 0===c?void 0:c.unit_to_display)&&void 0!==u?u:o.unit_to_display,results:null!==(d=null===(l=null==t?void 0:t.data)||void 0===l?void 0:l.results)&&void 0!==d?d:[]})];case 2:return a=n.sent(),console.error("Failed to execute chart ".concat(o.chart_id,":"),a),[2,r(r({},o),{results:[]})];case 3:return[2]}})})}))];case 2:return[2,s.sent()]}})})})}function Mb(e,o,r){var a=this;return void 0===r&&(r=!0),Lp(["chartgpt-patch-and-execute",e,o],function(){return t(a,void 0,void 0,function(){var t,r,a,i,s;return n(this,function(n){switch(n.label){case 0:return[4,(t=_h.getInstance()).patchChartGPTChart(e,o)];case 1:return r=n.sent(),a=null==r?void 0:r.data,[4,t.executeChartGPTChart(e)];case 2:return i=n.sent(),s=null==i?void 0:i.data,[2,{chart:a,execution:s}]}})})},{enabled:r&&!!e,retry:!1})}function Nb(){return Lp(["languages"],function(){return _h.getInstance().getLanguages().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:300})}function Ub(){var e=localStorage.getItem("lang")||"en";return Lp(["translations",e],function(){return _h.getInstance().getTranslations(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:3e4})}function Bb(e,o){var r=this;return Lp(["GET/template-reporting/templates",e],function(){return t(r,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().getReportTemplatesList(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o,useErrorBoundary:!1,cacheTime:0})}function Fb(e,o){var r=this;return Lp(["GET/template-reporting/template-by-id",e],function(){return t(r,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().getReportTemplateById(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o&&!!e,useErrorBoundary:!1,cacheTime:0})}function Wb(e){var o=this;return Lp(["GET/template-reporting/schedules"],function(){return t(o,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().getReportSchedulesList().then(function(e){return null==e?void 0:e.data})]})})},{enabled:e,useErrorBoundary:!1,cacheTime:0})}function Gb(e,o){var r=this;return Lp(["GET/template-reporting/schedule-by-id",e],function(){return t(r,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().getReportScheduleById(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o&&!!e,useErrorBoundary:!1,cacheTime:0})}const Hb=function(){return null};var Vb,$b={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};function Kb(e){var o=this,a=e.children,i=d(function(){return"testing"},[""]),s=c(!1),u=s[0],m=s[1],g=h(function(e){return t(o,void 0,void 0,function(){var t,o,a,s,c;return n(this,function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),o=t&&JSON.parse(t),a=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",s=localStorage.getItem("x-organization-code"),c=s?JSON.parse(s).value:"",[4,_h.refreshInstance({headers:r(r({},o),{"X-Environment":a||i,"x-organization-code":c,"x-account-code":e.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return n.sent(),[2]}})})},[i]);l(function(){return addEventListener("ACCOUNT_CHANGED",g),function(){window.removeEventListener("ACCOUNT_CHANGED",g)}},[g]);var y=h(function(e){return t(o,void 0,void 0,function(){var t,o,a,s,c,u,l;return n(this,function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),(o=t&&JSON.parse(t))?(a=localStorage.getItem("x-organization-code"),s=localStorage.getItem("account"),c=s?null===(l=JSON.parse(s).value)||void 0===l?void 0:l.code:"",u=a?JSON.parse(a).value:"",[4,_h.refreshInstance({headers:r(r({},o),{"X-Environment":e||i,"x-organization-code":u,"x-account-code":c,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:n.sent(),gf.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),m(!0),n.label=2;case 2:return[2]}})})},[i,m]);return l(function(){var e=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live";window.addEventListener("storage",function(t){if("token"===t.key||"isTesting"===t.key){var n="OFF"===t.newValue?"live":"testing";"isTesting"===t.key?y(n):"token"===t.key&&y(e)}}),y(e)},[m,y]),u?f(Ap,r({client:gf},{children:[a,p(Hb,{initialIsOpen:!1})]})):p("div",{style:$b})}!function(e){e.ECONNABORTED="ECONNABORTED",e.ETIMEDOUT="ETIMEDOUT",e.ERR_BAD_REQUEST="ERR_BAD_REQUEST"}(Vb||(Vb={}));var Qb=function(){var e=u(null),t=u(null),n=u(null),o=c(!1),r=o[0],a=o[1],i=c(null),s=i[0],d=i[1],p=c(null),f=p[0],m=p[1],g=h(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null)},[]),y=h(function(){var o;if((null===(o=e.current)||void 0===o?void 0:o.readyState)!==WebSocket.OPEN){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),m(null);try{var r=new WebSocket("".concat(wh["WS_URL_".concat(wh.ENVIRONMENT)],"/data-assistant/charts/ws"));e.current=r,r.onopen=function(){a(!0);var e=localStorage.getItem("token");e&&r.send(JSON.stringify({type:"auth",token:e})),t.current=setInterval(function(){r.readyState===WebSocket.OPEN?r.send(JSON.stringify({type:"ping"})):(g(),a(!1))},3e4)},r.onmessage=function(e){try{var t=JSON.parse(e.data);d(t)}catch(e){m("Failed to parse server response")}},r.onerror=function(e){m("Connection error occurred"),a(!1)},r.onclose=function(e){a(!1),g(),e.wasClean||1e3===e.code||(n.current=setTimeout(function(){y()},5e3))}}catch(e){m("Failed to establish connection")}}},[]),v=h(function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"subscribe",chart_id:t}))},[]),b=h(function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"unsubscribe",chart_id:t}))},[]),k=h(function(){d(null)},[]),w=h(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),e.current&&(a(!1),e.current.close(1e3,"Manual disconnect"),e.current=null)},[]);return l(function(){return y(),function(){g(),w()}},[]),{subscribe:v,unsubscribe:b,disconnect:w,connect:y,clearChartData:k,isConnected:r,chartData:s,connectionError:f}},Jb=["LOCAL","DEV","STG"].includes("");"undefined"!=typeof window&&Jb&&function(){t(this,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:if(!ka())return console.info('MSW is disabled. Run "window.enableMSW()" to enable it.'),[2];console.info('MSW is enabled. Run "window.disableMSW()" to disable it.'),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,ya.start({serviceWorker:{url:"/mockServiceWorker.js"},onUnhandledRequest:"bypass"})];case 2:return t.sent(),[3,4];case 3:return e=t.sent(),console.error("Error starting MSW:",e),[3,4];case 4:return[2]}})})}();export{Dl as AI,kh as Api,Vb as ApiErrorCodes,Kb as ApiProvider,_h as ApiSingleton,Rl as Cms,Cl as Country,Ol as DataReport,Sl as Organization,El as PaymentFiltersSection,Pl as ReconciliationAgendaInsight,jl as ReconciliationReportType,Tl as ReportType,xl as SendPaymentNotification,Al as SmartRouting,Il as TemplateType,zy as getQueryKeyGetNameAndIcon,Ny as getQueryKeyRequiredFields,mf as queryCache,gf as queryClient,Oy as use3DSExemptions,rg as useAICreateWorkflow,cb as useAllFeatureFlags,Cb as useAllowListDetail,Sb as useBlackListDetail,ub as useCachedFeatureFlag,kf as useCancelReport,nf as useChangePasswordV2,ym as useChangePaymentsWebhook,hm as useChangeStatusBlackList,pm as useChangeStatusItemBlackList,Hy as useChangeStylingSettings,pg as useChangeTemplateStatus,ff as useChargebacksUpload,Qb as useChartAssistantSocket,Lb as useChartExecute,dg as useCloneTemplate,nv as useCommunicationDetails,ev as useCommunications,tv as useCommunicationsFilters,em as useConfirmedOtpMfa,bf as useCountRowsForReport,ug as useCreateAndExecuteChart,ig as useCreateChart,Mf as useCreateMonitorTemplate,zf as useCreateMonitorThreshold,pf as useCreateOperationTransaction,Hf as useCreatePaymentLinks,Xm as useCreateReconciliationAlert,Qm as useCreateReconciliationReportTemplate,yf as useCreateReconciliationsReportV2,wf as useCreateReportTemplate,vf as useCreateReportV2,Ff as useCreateRoles,tg as useCreateSamlConfig,mg as useCreateSchedule,Om as useCreateScheduledReport,lg as useCreateTemplate,sf as useCreateUserAuth0,xf as useCreateWorkflow,gg as useDeactivateSchedule,Hp as useDeleteAccountsUserMassive,km as useDeleteAllowlistItem,mm as useDeleteBlackListType,vm as useDeleteBlockListItem,sg as useDeleteChart,Fm as useDeleteCustomizedApiKeys,Vf as useDeletePaymentLink,Ym as useDeleteReconciliationAlert,Gf as useDeleteRoles,og as useDeleteSamlConfig,yg as useDeleteSchedule,Pm as useDeleteScheduledReport,fg as useDeleteTemplate,Uf as useDeleteUserTeamV2,Cf as useDeleteVersion,Np as useDeleteWebhookV2,Rf as useDuplicateVersion,$f as useEditPaymentLinks,Wf as useEditRoles,Qy as useEmailVerification,Im as useExcludeUsers,Km as useExportApiLogs,sb as useFeatureFlags,kb as useFirebaseUserSubscribe,ag as useGenerateFeedback,iy as useGetAccounts,cy as useGetAccountsByUser,uy as useGetAccountsForImpersonation,sy as useGetAccountsV2,Ab as useGetAllConfigRules,Qg as useGetAllOrganizations,ab as useGetAllReconciliationsAdvancements,nb as useGetAllReconciliationsAgenda,tb as useGetAllReconciliationsAlerts,ib as useGetAllReconciliationsFees,rb as useGetAllReconciliationsSales,Xv as useGetAllTableColumns,Wg as useGetAllowedIps,fb as useGetApiLogsDetailByPaymentCode,lb as useGetAuditEvents,my as useGetAuditLogsFilters,db as useGetAuditMonitorEventDetail,Sm as useGetBatchRefundProcessedFileDownload,Cm as useGetBatchRefundUserFileDownload,Tb as useGetBatchRefunds,_b as useGetBlackList,Eb as useGetBlockListSummary,Cg as useGetCardBrands,qb as useGetChartsByUser,zb as useGetChartsByUserWithResults,qy as useGetCheckoutTemplate,Ly as useGetCheckouts,Dm as useGetConditionalConfigRules,wb as useGetConfigAllowlist,ty as useGetConnections,Zg as useGetConnectionsByPaymentMethod,yb as useGetCountriesConfigPaymentLink,vb as useGetCountriesConfigPaymentLinkV2,Bg as useGetCredentials,Hm as useGetCredentialsMFA,Hg as useGetCustomizedApiKeys,Gg as useGetCustomizedApiKeysAccounts,Fg as useGetCustomizedApiKeysMembers,Vg as useGetCustomizedApiKeysProducts,Um as useGetCustomizedApiKeysToken,gy as useGetDashboardStaticContents,ny as useGetDialogs,dv as useGetDownloadReport,Zf as useGetEmailOtp,ey as useGetHashPylon,Yy as useGetImpersonationEnabled,Xy as useGetImpersonationUsers,Ov as useGetInsightsReport,jv as useGetInsightsReportAgain,Yg as useGetIntegrationByAccountV2,Xg as useGetIntegrationParams,Nb as useGetLanguages,yy as useGetLocales,Jy as useGetLoginMethods,jb as useGetMFAConfig,Ob as useGetMFAExcludedUsers,Pb as useGetMFAStatus,ly as useGetMenu,av as useGetMergedNotifications,My as useGetNameAndIcon,ov as useGetNotificationsCustomer,iv as useGetNotificationsNumberMutation,Kg as useGetOrganization,Rg as useGetPaymentFilters,gb as useGetPaymentLinkByCode,mb as useGetPaymentLinks,Sg as useGetPaymentMethodsAndProviders,Tg as useGetPaymentMetricsFilters,dy as useGetPaymentStatusesStyles,Ig as useGetPaymentTransactionsDetails,wg as useGetPaymentV2,Eg as useGetPaymentsMethodsByCountry,Pg as useGetPayoutDetail,Lg as useGetPayoutHistoryDetail,Dg as useGetPayoutTransactionDetail,Ky as useGetPermissions,bv as useGetPermissionsCatalog,Vy as useGetProfile,qg as useGetProofOfCancel,zg as useGetProofOfPayment,Jg as useGetProviderParams,Yv as useGetReconciliationActive,ob as useGetReconciliationAgendaInsightsByKey,Jv as useGetReconciliationFilters,Qv as useGetReconciliationMetrics,py as useGetReconciliationTransactionStatusesStyles,$v as useGetReconciliationTransactions,Zv as useGetReconciliationsReportColumns,eb as useGetReconciliationsReportTemplates,fv as useGetRefundPdf,pv as useGetReportColumns,hv as useGetReportTemplates,uv as useGetReportsList,lv as useGetReportsListMultiEnv,Uy as useGetRequiredFields,yv as useGetRoles,vv as useGetRolesPermissions,Dy as useGetRoutingMonitorsTemplate,Py as useGetRoutingMonitorsTemplates,Lm as useGetRule,Db as useGetSamlConfig,Gb as useGetScheduleById,Am as useGetScheduledReportsList,Wb as useGetSchedulesList,Kv as useGetSettlements,_y as useGetSmartRoutingConditionPaymentMethod,wy as useGetSmartRoutingConditionTypes,xy as useGetSmartRoutingConditionTypesValues,kv as useGetSmartRoutingDataReport,Cy as useGetSmartRoutingDeclineGroups,by as useGetSmartRoutingMethods,Sy as useGetSmartRoutingNextRoute,Ry as useGetSmartRoutingPaymentRoute,Iy as useGetSmartRoutingSearchConditionValues,Ty as useGetSmartRoutingSimulateConditionTypeValues,ky as useGetSmartRoutingWorkflow,Ey as useGetSmartRoutingWorkflowVersion,By as useGetStylingSdkDynamic,Wy as useGetStylingSettings,Gy as useGetStylingSettingsV2,Fy as useGetStylingTheme,mv as useGetTeamsFiltersMembers,Fb as useGetTemplateById,Bb as useGetTemplatesList,fy as useGetTimeZoneCatalog,bb as useGetTimezonePaymentLink,Yf as useGetTokenValidation,_g as useGetTransactionDetailsV2,Ag as useGetTransactionHistoryByPaymentCode,xg as useGetTransactionRawResponse,hy as useGetTransactionStatusesStyles,Ub as useGetTranslations,$y as useGetUserFull,Zy as useGetUsersToImpersonate,rv as useGetValidateOpsgenieKey,oy as useGetWebhookParamsV2,ay as useGetWebhooksV2Detail,ry as useGetWebhooksV3,qv as useInsights3dsConversionRateAndEvolution,zv as useInsights3dsDeclineReasons,Mv as useInsights3dsFrictionlessVsChallenge,Lv as useInsights3dsVolumeAndCountTx,Vv as useInsightsChargebacksByCardBrand,Wv as useInsightsChargebacksByProviderAndCardBrand,Fv as useInsightsChargebacksDisputed,Gv as useInsightsChargebacksReasonsDistribution,Hv as useInsightsChargebacksStatusDistribution,Uv as useInsightsChargebacksTotalRateAndEvolution,Nv as useInsightsChargebacksVolumeAndCountTx,Bv as useInsightsChargebacksWinRate,wv as useInsightsConversionRateMetricsV2,Rv as useInsightsCustomerPaymentsAndFraudMetrics,xv as useInsightsFallbackMetrics,Dv as useInsightsFraudScreeningConversionRate,Pv as useInsightsFraudScreeningVolumeAndCountTx,Av as useInsightsHomeMetrics,Tv as useInsightsOverviewMetrics,Iv as useInsightsOverviewMetricsV3,Cv as useInsightsTotalPaymentsAndFraudMetrics,Ev as useInsightsVolumeMetrics,Sv as useInsightsVolumeMetricsV2,rf as useInviteUsersMultiaccountMassive,vy as useIsTesting,uf as useLoginMethods,jy as useNetworkTokensOnboarding,Jp as useNewPostConnectionValidate,Fp as usePatchAccountV2,cm as usePatchAddAllowlistItems,$g as usePatchAllowedIps,um as usePatchAllowlist,Mb as usePatchAndExecuteChart,Wm as usePatchApiKeysEditNote,im as usePatchChangeStatusAllowlist,sm as usePatchChangeStatusAllowlistItem,cg as usePatchChartName,Xp as usePatchConnection,Nm as usePathCreateCustomizedApiKeys,sv as usePathNotifications,Ug as usePayoutsFilters,Ng as usePayoutsList,Bp as usePostAccount,Rb as usePostAllowlistMultiAccount,Gm as usePostApiKeysRoll,hb as usePostApiLogs,Vm as usePostAuditMonitors,Em as usePostBatchRefundByFile,gm as usePostBlackListBatch,fm as usePostBlackListItems,lm as usePostBlackListMultiAccount,xb as usePostBlockList,cf as usePostCall,$p as usePostChangeStatusConnection,Qp as usePostConnectionMultiAccount,am as usePostCreateAllowlistMultiAccount,Mm as usePostCreateCustomizedApiKeys,eg as usePostCreateInsightsReport,qm as usePostCreateRuleMultiAccount,Bm as usePostCredentialsValidatePassword,Yp as usePostDefaultRoutes,zm as usePostEditRule,jg as usePostFraudTransactions,om as usePostGetAllowlistItems,rm as usePostGetAllowlistMultiAccount,gv as usePostMembersPaginatedV2,kg as usePostPaymentsEvaluated,bg as usePostPaymentsLazy,Nf as usePostSlackMessageChannel,Og as usePostTransactions,Kf as usePostUserSettings,Xf as usePostUserSettingsPinned,Jf as usePostUserSettingsTables,Qf as usePostUserThemeSettings,Vp as usePostValideStatusConnection,Ib as usePostVelocityRules,pb as usePostWebhookLogs,Mp as usePostWebhookMultiAccount,Ay as useProviderConversionRatesData,Ef as usePublishVersion,Wp as usePutAccountPrincipal,Gp as usePutAccountsUserMassive,dm as usePutBlackListType,Kp as usePutCosts,$m as useResendWebhooks,Sf as useSaveVersion,Mg as useSendPaymentNotification,Bf as useSetCustodian,Af as useSmartRoutingCreateDeclinedGroup,jf as useSmartRoutingEditWorkflowName,qf as useSmartRoutingMultiAccountDeclinedGroupCreate,Lf as useSmartRoutingRemoveDeclinedGroup,Pf as useSmartRoutingSimulateTransaction,Of as useSmartRoutingToggleFavorite,If as useSmartRoutingUpdateDeclinedGroup,Df as useSmartRoutingUpdateMonitorRedistribution,Tf as useToggleMethod,af as useUnInviteUsersV2,tm as useUnrollUserV2,df as useUpdateCheckoutTemplate,lf as useUpdateIsActiveCheckout,Tm as useUpdateMFAConfig,ef as useUpdateOrganizationStatus,of as useUpdateProfile,Zm as useUpdateReconciliationAlert,Jm as useUpdateReconciliationReportTemplate,_f as useUpdateReportTemplate,ng as useUpdateSamlConfig,jm as useUpdateScheduledReport,hf as useUpdateStylingTheme,hg as useUpdateTemplateSelection,Up as useUpdateWebhookV2,_m as useUploadBatchRefundsFileV2,xm as useUploadBatchRefundsV2,Rm as useUploadFileS3ClientBatchRefunds,wm as useValiateAllowlistItems,bm as useValidateBlockListItems,Zp as useValidateCredentials,tf as useValidateOrgName,nm as useValidatePasswordStatus,_v as useViewMoreMetrics};
43
- //# sourceMappingURL=index.js.map
42
+ function Hr(e){const t=Gr.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[e]);return n}function Vr(){return Hr(document.cookie)}function $r(e){const t=e.headers.get("cookie"),n=t?Hr(t):{},o=function(e){if("undefined"==typeof document||"undefined"==typeof location)return{};switch(e.credentials){case"same-origin":{const t=new URL(e.url);return location.origin===t.origin?Vr():{}}case"include":return Vr();default:return{}}}(e);for(const t in o)e.headers.append("cookie",Gr.serialize(t,o[t]));const r=Ke.getCookies(e.url),a=Object.fromEntries(r.map(e=>[e.key,e.value]));for(const t of r)e.headers.append("cookie",t.toString());return{...o,...a,...n}}var Kr=(e=>(e.HEAD="HEAD",e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.OPTIONS="OPTIONS",e.DELETE="DELETE",e))(Kr||{});class Qr extends C{constructor(e,t,n,o){const r="function"==typeof t?"[custom predicate]":t;super({info:{header:`${e}${r?` ${r}`:""}`,path:t,method:e},resolver:n,options:o}),this.checkRedundantQueryParameters()}checkRedundantQueryParameters(){const{method:e,path:t}=this.info;if(!t||t instanceof RegExp||"function"==typeof t)return;if(Pr(t)===t)return;const n=function(e){return new URL(`/${e}`,"http://localhost").searchParams}(t);n.forEach((e,t)=>{}),_.warn(`Found a redundant usage of query parameters in the request handler URL for "${e} ${t}". Please match against a path instead and access query parameters using "new URL(request.url).searchParams" instead. Learn more: https://mswjs.io/docs/http/intercepting-requests#querysearch-parameters`)}async parse(e){const t=new URL(e.request.url),n=$r(e.request);if("function"==typeof this.info.path){const t=await this.info.path({request:e.request,cookies:n});return{match:"boolean"==typeof t?{matches:t,params:{}}:t,cookies:n}}return{match:this.info.path?Lr(t,this.info.path,e.resolutionContext?.baseUrl):{matches:!1,params:{}},cookies:n}}async predicate(e){const t=this.matchMethod(e.request.method),n=e.parsedResult.match.matches;return t&&n}matchMethod(e){return this.info.method instanceof RegExp?this.info.method.test(e):(t=this.info.method,n=e,t.toLowerCase()===n.toLowerCase());var t,n}extendResolverArgs(e){return{params:e.parsedResult.match?.params||{},cookies:e.parsedResult.cookies}}async log(e){const t=R(e.request.url),n=await async function(e){const t=e.clone(),n=await t.text();return{url:new URL(e.url),method:e.method,headers:Object.fromEntries(e.headers.entries()),body:n}}(e.request),o=await async function(e){const t=e.clone(),n=await t.text(),o=t.status||200;return{status:o,statusText:t.statusText||_r[o]||"OK",headers:Object.fromEntries(t.headers.entries()),body:n}}(e.response),r=(a=o.status)<300?"#69AB32":a<400?"#F0BB4B":"#E95F5D";var a;console.groupCollapsed(_.formatMessage(`${An()} ${e.request.method} ${t} (%c${o.status} ${o.statusText}%c)`),`color:${r}`,"color:inherit"),console.log("Request",n),console.log("Handler:",this),console.log("Response",o),console.groupEnd()}}function Jr(e){return(t,n,o={})=>new Qr(e,t,n,o)}const Xr={all:Jr(/.+/),head:Jr(Kr.HEAD),get:Jr(Kr.GET),post:Jr(Kr.POST),put:Jr(Kr.PUT),delete:Jr(Kr.DELETE),patch:Jr(Kr.PATCH),options:Jr(Kr.OPTIONS)},Yr=Symbol("bodyType");class Zr extends Or{[Yr]=null;constructor(e,t){const n=jt(t);super(e,n),function(e,t){t.type&&Object.defineProperty(e,"type",{value:t.type,enumerable:!0,writable:!1});const n=t.headers.get("set-cookie");if(n&&(Object.defineProperty(e,Ot,{value:n,enumerable:!1,writable:!1}),"undefined"!=typeof document)){const e=It.prototype.getSetCookie.call(t.headers);for(const t of e)document.cookie=t}}(this,n)}static error(){return super.error()}static text(e,t){const n=jt(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/plain"),n.headers.has("Content-Length")||n.headers.set("Content-Length",e?new Blob([e]).size.toString():"0"),new Zr(e,n)}static json(e,t){const n=jt(t);n.headers.has("Content-Type")||n.headers.set("Content-Type","application/json");const o=JSON.stringify(e);return n.headers.has("Content-Length")||n.headers.set("Content-Length",o?new Blob([o]).size.toString():"0"),new Zr(o,n)}static xml(e,t){const n=jt(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/xml"),new Zr(e,n)}static html(e,t){const n=jt(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/html"),new Zr(e,n)}static arrayBuffer(e,t){const n=jt(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","application/octet-stream"),e&&!n.headers.has("Content-Length")&&n.headers.set("Content-Length",e.byteLength.toString()),new Zr(e,n)}static formData(e,t){return new Zr(e,jt(t))}}k("undefined"!=typeof URL,_.formatMessage('Global "URL" class is not defined. This likely means that you\'re running MSW in an environment that doesn\'t support all Node.js standard API (e.g. React Native). If that\'s the case, please use an appropriate polyfill for the "URL" class, like "react-native-url-polyfill".'));var ea,ta={content:[{test_credential:!0,organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83146,code:"a6d708a9-0227-44eb-a044-0738b644d0fb",order_id:"1739814014074",status:"ERROR",sub_status:"ERROR",amount_value:300,currency_code:"MXN",created_at:"2025-02-17T17:40:46.747839Z",updated_at:"2025-02-17T17:40:48.555749Z",captured:0,refunded:0,country:"MX",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",description:"test description",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"5d1558b0-4e6a-4268-a543-7b713b1de986",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82453,payment_id:83146,document_number:"IESF960301230",email:"rizinuta@fijwam.eg"}],card_transaction:[{card_transaction_id:19733,transaction_id:83459,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]},{test_credential:!1,organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83145,code:"240622a6-654d-44de-ae61-b718afeeb78f",order_id:"1739813914789",status:"ERROR",sub_status:"ERROR",amount_value:300,currency_code:"MXN",created_at:"2025-02-17T17:39:04.220012Z",updated_at:"2025-02-17T17:39:05.658776Z",captured:0,refunded:0,country:"MX",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",description:"test description",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"2e1180e4-4a2a-4f63-ab7a-25e2ec07314a",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82452,payment_id:83145,document_number:"GOOT991014HASNLT07",email:"beisguw@obi.cv"}],card_transaction:[{card_transaction_id:19732,transaction_id:83458,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]},{organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83144,code:"98855a76-4a79-4d2e-9a0a-876a1541a95e",order_id:"2222T",status:"ERROR",sub_status:"ERROR",amount_value:250,currency_code:"MXN",created_at:"2025-02-17T17:38:17.243160Z",updated_at:"2025-02-17T17:38:18.866741Z",captured:0,refunded:0,country:"MX",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",description:"SUCCEEDED",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"250e2c9c-b178-4762-9364-9037a8ed99a6",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82451,payment_id:83144,document_number:"9999999999",email:"tito.gonzalez@y.uno"}],card_transaction:[{card_transaction_id:19731,transaction_id:83457,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]}],last_page:!0},na={test_credential:!0,id:83146,code:"a6d708a9-0227-44eb-a044-0738b644d0fb",order_id:"1739814014074",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",organization_customer_external_id:"1739814014074",checkout_session:"b6ac7dcf-d76e-4d94-a781-5c6642aac69b",status:"ERROR",amount_value:300,currency_code:"MXN",description:"test description",created_at:"2025-02-17T17:40:46.747839Z",updated_at:"2025-02-17T17:40:48.555749Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"29ebcc56-977d-44ee-aea0-6aa5fc1893d7",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b",platform:"WEB",routing_flow_code:"06d778ad-1824-41c8-a80f-e65a8e2417ac",captured:0,refunded:0,account_integration_code:null,metadata:"[]",chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"00df007e-5603-4173-87cf-336fe81429a4",version:null,merchant_reference:"1739814014074",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82453,email:"rizinuta@fijwam.eg",gender:"female",last_name:"Hegmann",created_at:"2025-02-17T17:40:46.756582+00:00",first_name:"Aaron",ip_address:"187.189.168.116",payment_id:83146,updated_at:"2025-02-17T17:40:46.756584+00:00",nationality:"MX",phone_number:"3991111111",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",date_of_birth:"1990-02-28",document_type:"RFC",document_number:"IESF960301230",device_fingerprint:null,phone_country_code:"52",device_fingerprints:"{}",geolocation_latitude:null,browser_info_language:"en",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36",payment_method_payer_id:null,browser_info_color_depth:"5",browser_info_java_enabled:"false",browser_info_screen_width:"8",browser_info_accept_header:"application/json",browser_info_screen_height:"8",browser_info_accept_browser:"*/*",browser_info_accept_content:"*/*",merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"1739814014074",browser_info_browser_time_difference:"300"}],payment_order:[{id:73140,created_at:"2025-02-17T17:40:46.789867+00:00",fee_amount:null,payment_id:83146,tip_amount:null,updated_at:"2025-02-17T17:40:46.789868+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73619,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"Clothes",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:40:46.793886+00:00",updated_at:"2025-02-17T17:40:46.793888+00:00",unit_amount:300,payment_order_id:73140,manufacture_part_number:"XYZ123456"}],customer_payer_address:[{id:161666,type:"SHIPPING",created_at:"2025-02-17T17:40:46.767136+00:00",updated_at:"2025-02-17T17:40:46.767138+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"68890000",customer_payer_id:82453,address_neighborhood:null},{id:161667,type:"BILLING",created_at:"2025-02-17T17:40:46.77174+00:00",updated_at:"2025-02-17T17:40:46.771742+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:null,address_country:"MX",address_zip_code:"68890000",customer_payer_id:82453,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},oa={test_credential:!1,id:83145,code:"240622a6-654d-44de-ae61-b718afeeb78f",order_id:"1739813914789",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",organization_customer_external_id:"1739813914789",checkout_session:"b80837d6-a234-486f-a28d-d6bf3fab9da3",status:"ERROR",amount_value:300,currency_code:"MXN",description:"test description",created_at:"2025-02-17T17:39:04.220012Z",updated_at:"2025-02-17T17:39:05.658776Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"f68e1740-7c89-443b-bd17-0a80d758477d",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b80837d6-a234-486f-a28d-d6bf3fab9da3",platform:"WEB",routing_flow_code:"e45f1ef1-3d24-4d83-bc91-2f6ca5159dc7",captured:0,refunded:0,account_integration_code:null,metadata:"[]",chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"faf5c3bc-eae2-4192-9680-3783332796af",version:null,merchant_reference:"1739813914789",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82452,email:"beisguw@obi.cv",gender:"female",last_name:"Hegmann",created_at:"2025-02-17T17:39:04.227478+00:00",first_name:"Aaron",ip_address:"187.189.168.116",payment_id:83145,updated_at:"2025-02-17T17:39:04.22748+00:00",nationality:"MX",phone_number:"3991111111",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",date_of_birth:"1990-02-28",document_type:"CURP",document_number:"GOOT991014HASNLT07",device_fingerprint:null,phone_country_code:"52",device_fingerprints:"{}",geolocation_latitude:null,browser_info_language:"en",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36",payment_method_payer_id:null,browser_info_color_depth:"5",browser_info_java_enabled:"false",browser_info_screen_width:"8",browser_info_accept_header:"application/json",browser_info_screen_height:"8",browser_info_accept_browser:"*/*",browser_info_accept_content:"*/*",merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"1739813914789",browser_info_browser_time_difference:"300"}],payment_order:[{id:73139,created_at:"2025-02-17T17:39:04.25785+00:00",fee_amount:null,payment_id:83145,tip_amount:null,updated_at:"2025-02-17T17:39:04.257851+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73618,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"Clothes",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:39:04.261319+00:00",updated_at:"2025-02-17T17:39:04.26132+00:00",unit_amount:300,payment_order_id:73139,manufacture_part_number:"XYZ123456"}],customer_payer_address:[{id:161664,type:"SHIPPING",created_at:"2025-02-17T17:39:04.237363+00:00",updated_at:"2025-02-17T17:39:04.237364+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"68890000",customer_payer_id:82452,address_neighborhood:null},{id:161665,type:"BILLING",created_at:"2025-02-17T17:39:04.241131+00:00",updated_at:"2025-02-17T17:39:04.241132+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:null,address_country:"MX",address_zip_code:"68890000",customer_payer_id:82452,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},ra={id:83144,code:"98855a76-4a79-4d2e-9a0a-876a1541a95e",order_id:"2222T",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",organization_customer_external_id:"Merchan3",checkout_session:"47f2445d-9105-49ce-9a2a-659977159272",status:"ERROR",amount_value:250,currency_code:"MXN",description:"SUCCEEDED",created_at:"2025-02-17T17:38:17.243160Z",updated_at:"2025-02-17T17:38:18.866741Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"6e6a2156-e2ed-40e5-92fa-b105f9e56433",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://google.com/?checkoutSession=47f2445d-9105-49ce-9a2a-659977159272",platform:null,routing_flow_code:"19ceb649-9a47-4fd4-bb6f-a83a09c62f0c",captured:0,refunded:0,account_integration_code:null,metadata:'[{"key":"country?","value":"MXN"},{"key":"Merchan_type","value":"D05,T5,T6,D02"}]',chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"5826b7b5-a68b-44e9-b338-a95045696384",version:null,merchant_reference:"2222T",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82451,email:"tito.gonzalez@y.uno",gender:"M",last_name:"Olivares",created_at:"2025-02-17T17:38:17.248723+00:00",first_name:"Tito Gonzalez",ip_address:"192.0.2.1",payment_id:83144,updated_at:"2025-02-17T17:38:17.248725+00:00",nationality:"CO",phone_number:"4499068531",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",date_of_birth:"1993-11-11",document_type:"INE",document_number:"9999999999",device_fingerprint:"hi88287gbd8d7d782ge0023",phone_country_code:"52",device_fingerprints:'{"DEFAULT":"hi88287gbd8d7d782ge0023"}',geolocation_latitude:null,browser_info_language:"es",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"string",payment_method_payer_id:null,browser_info_color_depth:"8",browser_info_java_enabled:null,browser_info_screen_width:"720",browser_info_accept_header:"string",browser_info_screen_height:"1280",browser_info_accept_browser:null,browser_info_accept_content:null,merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"Merchan3",browser_info_browser_time_difference:null}],payment_order:[{id:73138,created_at:"2025-02-17T17:38:17.268872+00:00",fee_amount:0,payment_id:83144,tip_amount:null,updated_at:"2025-02-17T17:38:17.268873+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73615,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:38:17.272809+00:00",updated_at:"2025-02-17T17:38:17.27281+00:00",unit_amount:500,payment_order_id:73138,manufacture_part_number:"XYZ123456"},{id:73616,name:"t-shirt",brand:"Nike",id_item:"333d",category:"clothes",quantity:1,sku_code:"292929292",created_at:"2025-02-17T17:38:17.275665+00:00",updated_at:"2025-02-17T17:38:17.275666+00:00",unit_amount:1e3,payment_order_id:73138,manufacture_part_number:"0A98C0A9"},{id:73617,name:"t-shirt",brand:"FFF",id_item:"089qq8998",category:"clothes",quantity:2,sku_code:"098091",created_at:"2025-02-17T17:38:17.278489+00:00",updated_at:"2025-02-17T17:38:17.27849+00:00",unit_amount:1500,payment_order_id:73138,manufacture_part_number:"0SAD9DD9D"}],customer_payer_address:[{id:161662,type:"SHIPPING",created_at:"2025-02-17T17:38:17.253338+00:00",updated_at:"2025-02-17T17:38:17.253339+00:00",address_city:"Aguascalientes",address_state:"Aguascalientes",address_line_1:"Paseo de la asunción sur 503",address_line_2:"Jardines de Aguascalientes",address_country:"MX",address_zip_code:"20270",customer_payer_id:82451,address_neighborhood:null},{id:161663,type:"BILLING",created_at:"2025-02-17T17:38:17.256549+00:00",updated_at:"2025-02-17T17:38:17.25655+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"111111",customer_payer_id:82451,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},aa=[{created_at:"2025-05-25T13:50:51.304216Z",amount_value:32350,currency_code:"COP",transaction_type:"PURCHASE",status_history:"DECLINED",provider_id:"REDEBAN_DIRECT",code:"d054b44d-8e22-486a-ac66-f76cc8ddf97a",category:"CARD",merchant_reference:"CO_Order_2337202644",description:null,title_description:"timeLine.purchaseDeclined",light_text:"by provider",show_amount:!0,show_provider:!0,provider_status:null,sub_status_history:null,provider_response_code:null,provider_raw_response:null,parent_payment_method_type:null,wallet_title_description:""},{created_at:"2025-05-25T13:50:49.783312Z",amount_value:32350,currency_code:"COP",transaction_type:"PURCHASE",status_history:"CREATED",provider_id:"REDEBAN_DIRECT",code:"d054b44d-8e22-486a-ac66-f76cc8ddf97a",category:"CARD",merchant_reference:"CO_Order_2337202644",description:"timeLine.descriptionPurchaseCreated",title_description:"timeLine.purchaseCreated",light_text:null,show_amount:!0,show_provider:!0,provider_status:null,sub_status_history:null,provider_response_code:null,provider_raw_response:null,parent_payment_method_type:null,wallet_title_description:""}],ia={content:[{test_credential:!0,id:"83459",code:"5d1558b0-4e6a-4268-a543-7b713b1de986",type:"PURCHASE",transaction_data_type:"transaction",vault_on_success:"",parent_id:"",payment_id:83146,customer_payment_method_code:"",status:"ERROR",category:"CARD",amount:300,created_at:"2025-02-17T17:40:47.474187Z",updated_at:"2025-02-17T17:40:48.203256Z",payment_method:{vaulted_token:"",type:"CARD",vault_on_success:!1,token:"fb0f5521-d61e-43f0-883e-a6629de43f1a",payment_method_detail:{card:{verify:"false",capture:"true",installments:"1",first_installments_deferral:"",installments_type:null,installments_amount:null,soft_descriptor:null,authorization_code:null,retrieval_reference_number:null,card_data:{holder_name:"TITO GLEZ",iin:"41111111",ifd:"1111",expiration_month:"5",expiration_year:"27",number_lenght:"16",security_code_lenght:"3",brand:"VISA",issuer_name:"CONOTOXIA SP Z O O",issuer_code:null,category:"CLASSIC",type:"DEBIT",installments:""}},bnpl:null,bank_transfer:null,wallet:null,payment_link:null,ticket:null}},response_code:"INVALID_CREDENTIALS",response_message:"Invalid credentials",merchant_reference:"1739814014074",provider_data:{id:"83459",transaction_id:"",account_id:"",sub_status:"",status:"",status_detail:"3001",raw_response:{value:'{"code":3001,"message":"Invalid credentials"}'},response_message:"Invalid credentials",raw_notification:"",action_data:'{"image":null,"image_type":null,"redirect":{"init_url":"","success_url":"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b","error_url":"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b"},"otp":{"length":0,"expiration_time":null,"retries":{"accepts":null,"number":null},"payment_instructions":null},"payment_code":{"code":null,"reference":"","expiration_time":null},"three_d_secure_redirect":{"init_url":null,"access_token":null,"redirect_url":null},"request_html":null,"sdk_provider":{"gateway":"","provider_id":null,"merchant_id":"","merchant_name":null,"amount":{"currency":"","value":"0"},"protocol_version":null,"payment_methods":null,"payment_method_type":null,"supported_networks":null,"session":null,"init_url":null,"client_id":null,"intent":null,"components":null},"expiration_time":null,"image_details":null,"info":{"screen_info":null},"render_html":null,"ui":null}'},reason:null,description:"test description",one_time_token:"fb0f5521-d61e-43f0-883e-a6629de43f1a",require_action_type:"CHECK_STATUS",parent_provider:"",account_integration_code:"9bf85421-5326-4616-826e-8575a5d69629",technical_reverse_provider_transaction_id:"",technical_reverse_transaction_type:"",technical_reverse_status:"",stand_alone:null,fraud_screening:null}]},sa=[Xr.post("https://dev.y.uno/dashboard-bff/api/payments/lazy",function(){return Zr.json(ta)}),Xr.get("https://dev.y.uno/dashboard-bff/api/payments/v2/a6d708a9-0227-44eb-a044-0738b644d0fb",function(){return Zr.json(na)}),Xr.get("https://dev.y.uno/dashboard-bff/api/payments/v2/240622a6-654d-44de-ae61-b718afeeb78f",function(){return Zr.json(oa)}),Xr.get("https://dev.y.uno/dashboard-bff/api/payments/v2/98855a76-4a79-4d2e-9a0a-876a1541a95e",function(){return Zr.json(ra)}),Xr.get("https://dev.y.uno/dashboard-bff/api/transactions/by-payment/:id/history",function(){return Zr.json(aa)}),Xr.get("https://dev.y.uno/dashboard-bff/api/payments/:id/transactions/details",function(){return Zr.json(ia)})],ca={total:{total_conversion_rate:.8491,insight_payment_total_conversion_rate_periodicity:{"2025-05-05":.854357872962925,"2025-05-06":.8464466315045402,"2025-05-07":.8464068445151444}},cards:{cards_approvals_rate:.8537,insight_payment_total_conversion_rate_periodicity_for_card:{"2025-05-05":.8535902892724836,"2025-05-06":.8544554997052155,"2025-05-07":.8529382291046492}},apms:{apms_conversion_rate:.846,insight_payment_total_conversion_rate_periodicity_for_apm:{"2025-05-05":.8548995923297599,"2025-05-06":.8409580339477246,"2025-05-07":.8419575308800616}},cards_without_insufficient_funds:{without_insufficient_funds_conversion_rate:.8993,insight_conversion_rate_without_insufficient_funds:{"2025-05-05":.9018141803473709,"2025-05-06":.9025951512661153,"2025-05-07":.8933830566240437}}},ua={fraud:{conversion_rate_fraud_transactions:0,conversion_fraud_transactions_periodicity:null},"3ds":{conversion_rate_card_transactions3ds:.25,conversion_rate_card_transactions3ds_periodicity:{"2025-05-05":.2391304347826087,"2025-05-06":.3023255813953488,"2025-05-07":.21568627450980393}}},la={sales_volume_metric_group:{distribution:[{key:"2025-04-03",total:2146090},{key:"2025-04-04",total:498220},{key:"2025-04-05",total:563560},{key:"2025-04-06",total:822600},{key:"2025-04-07",total:660445},{key:"2025-04-08",total:553400},{key:"2025-04-09",total:464195},{key:"2025-04-10",total:470835},{key:"2025-04-11",total:3482795},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:207200},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:277185},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:152590},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:1060845},{key:"2025-04-21",total:715160},{key:"2025-04-22",total:686465},{key:"2025-04-23",total:268490},{key:"2025-04-24",total:699500},{key:"2025-04-25",total:306090},{key:"2025-04-26",total:469500},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:1610220},{key:"2025-04-29",total:699965},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:666160},{key:"2025-05-02",total:52565}],total:19121355,average:637378.5},total_payments:{distribution:[{key:"2025-04-03",total:18},{key:"2025-04-04",total:10},{key:"2025-04-05",total:6},{key:"2025-04-06",total:9},{key:"2025-04-07",total:14},{key:"2025-04-08",total:12},{key:"2025-04-09",total:13},{key:"2025-04-10",total:12},{key:"2025-04-11",total:23},{key:"2025-04-12",total:3},{key:"2025-04-13",total:5},{key:"2025-04-14",total:7},{key:"2025-04-15",total:7},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:3},{key:"2025-04-19",total:1},{key:"2025-04-20",total:11},{key:"2025-04-21",total:13},{key:"2025-04-22",total:15},{key:"2025-04-23",total:10},{key:"2025-04-24",total:14},{key:"2025-04-25",total:9},{key:"2025-04-26",total:6},{key:"2025-04-27",total:3},{key:"2025-04-28",total:21},{key:"2025-04-29",total:15},{key:"2025-04-30",total:9},{key:"2025-05-01",total:7},{key:"2025-05-02",total:2}],total:285,average:9.5},average_ticket:{distribution:[{key:"2025-04-03",total:118580.63,min_ticket:12665,max_ticket:882e3},{key:"2025-04-04",total:51146.67,min_ticket:25900,max_ticket:121500},{key:"2025-04-05",total:74692,min_ticket:23800,max_ticket:190100},{key:"2025-04-06",total:85150,min_ticket:20900,max_ticket:141400},{key:"2025-04-07",total:46528.75,min_ticket:16200,max_ticket:125e3},{key:"2025-04-08",total:48290.91,min_ticket:21900,max_ticket:106700},{key:"2025-04-09",total:34366.25,min_ticket:13900,max_ticket:64005},{key:"2025-04-10",total:39730.45,min_ticket:15900,max_ticket:74545},{key:"2025-04-11",total:76968.93,min_ticket:15900,max_ticket:454200},{key:"2025-04-12",total:42528.33,min_ticket:29835,max_ticket:66130},{key:"2025-04-13",total:48800,min_ticket:21900,max_ticket:64800},{key:"2025-04-14",total:35138.57,min_ticket:7900,max_ticket:55100},{key:"2025-04-15",total:41117,min_ticket:35800,max_ticket:53100},{key:"2025-04-16",total:35497,min_ticket:21420,max_ticket:53700},{key:"2025-04-17",total:73650,min_ticket:47700,max_ticket:99600},{key:"2025-04-18",total:47947.5,min_ticket:39200,max_ticket:56695},{key:"2025-04-19",total:41800,min_ticket:41800,max_ticket:41800},{key:"2025-04-20",total:61248.33,min_ticket:25900,max_ticket:121600},{key:"2025-04-21",total:74095,min_ticket:16200,max_ticket:308e3},{key:"2025-04-22",total:47066.54,min_ticket:15900,max_ticket:98200},{key:"2025-04-23",total:28732.22,min_ticket:9900,max_ticket:39200},{key:"2025-04-24",total:40025,min_ticket:20200,max_ticket:109600},{key:"2025-04-25",total:34755.71,min_ticket:15900,max_ticket:45390},{key:"2025-04-26",total:84900,min_ticket:34800,max_ticket:130400},{key:"2025-04-27",total:121600,min_ticket:5e4,max_ticket:162300},{key:"2025-04-28",total:62873.33,min_ticket:21900,max_ticket:293400},{key:"2025-04-29",total:47213.75,min_ticket:11900,max_ticket:113700},{key:"2025-04-30",total:53593.33,min_ticket:27800,max_ticket:120600},{key:"2025-05-01",total:93426.67,min_ticket:15900,max_ticket:159500},{key:"2025-05-02",total:26282.5,min_ticket:22900,max_ticket:29665}],total:58001.28,min_ticket:7900,max_ticket:882e3},conversion_rate:null,total_payments_and_conversion_rate:{payments:{distribution:[{key:"2025-04-03",total:18},{key:"2025-04-04",total:10},{key:"2025-04-05",total:6},{key:"2025-04-06",total:9},{key:"2025-04-07",total:14},{key:"2025-04-08",total:12},{key:"2025-04-09",total:13},{key:"2025-04-10",total:12},{key:"2025-04-11",total:23},{key:"2025-04-12",total:3},{key:"2025-04-13",total:5},{key:"2025-04-14",total:7},{key:"2025-04-15",total:7},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:3},{key:"2025-04-19",total:1},{key:"2025-04-20",total:11},{key:"2025-04-21",total:13},{key:"2025-04-22",total:15},{key:"2025-04-23",total:10},{key:"2025-04-24",total:14},{key:"2025-04-25",total:9},{key:"2025-04-26",total:6},{key:"2025-04-27",total:3},{key:"2025-04-28",total:21},{key:"2025-04-29",total:15},{key:"2025-04-30",total:9},{key:"2025-05-01",total:7},{key:"2025-05-02",total:2}],total:285},conversion_rate:{distribution:[{key:"2025-04-03",total:.8889},{key:"2025-04-04",total:.9},{key:"2025-04-05",total:.8333},{key:"2025-04-06",total:.8889},{key:"2025-04-07",total:.8571},{key:"2025-04-08",total:.9167},{key:"2025-04-09",total:.9231},{key:"2025-04-10",total:.9167},{key:"2025-04-11",total:.6087},{key:"2025-04-12",total:1},{key:"2025-04-13",total:.6},{key:"2025-04-14",total:1},{key:"2025-04-15",total:.7143},{key:"2025-04-16",total:1},{key:"2025-04-17",total:1},{key:"2025-04-18",total:.6667},{key:"2025-04-19",total:1},{key:"2025-04-20",total:.2727},{key:"2025-04-21",total:.6154},{key:"2025-04-22",total:.8667},{key:"2025-04-23",total:.9},{key:"2025-04-24",total:.8571},{key:"2025-04-25",total:.7778},{key:"2025-04-26",total:.6667},{key:"2025-04-27",total:1},{key:"2025-04-28",total:.5714},{key:"2025-04-29",total:.8},{key:"2025-04-30",total:1},{key:"2025-05-01",total:.8571},{key:"2025-05-02",total:1}],total:.793}},quantity_status_distribution:[{SUCCEEDED:{distribution:[{key:"2025-04-03",total:16},{key:"2025-04-04",total:9},{key:"2025-04-05",total:5},{key:"2025-04-06",total:8},{key:"2025-04-07",total:12},{key:"2025-04-08",total:11},{key:"2025-04-09",total:12},{key:"2025-04-10",total:11},{key:"2025-04-11",total:14},{key:"2025-04-12",total:3},{key:"2025-04-13",total:3},{key:"2025-04-14",total:7},{key:"2025-04-15",total:5},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:2},{key:"2025-04-19",total:1},{key:"2025-04-20",total:3},{key:"2025-04-21",total:8},{key:"2025-04-22",total:13},{key:"2025-04-23",total:9},{key:"2025-04-24",total:12},{key:"2025-04-25",total:7},{key:"2025-04-26",total:4},{key:"2025-04-27",total:3},{key:"2025-04-28",total:12},{key:"2025-04-29",total:12},{key:"2025-04-30",total:9},{key:"2025-05-01",total:6},{key:"2025-05-02",total:2}],total:226}},{DECLINED:{distribution:[{key:"2025-04-03",total:2},{key:"2025-04-04",total:1},{key:"2025-04-05",total:1},{key:"2025-04-06",total:1},{key:"2025-04-07",total:2},{key:"2025-04-08",total:1},{key:"2025-04-09",total:1},{key:"2025-04-10",total:1},{key:"2025-04-11",total:9},{key:"2025-04-13",total:2},{key:"2025-04-15",total:2},{key:"2025-04-18",total:1},{key:"2025-04-20",total:8},{key:"2025-04-21",total:5},{key:"2025-04-22",total:2},{key:"2025-04-23",total:1},{key:"2025-04-24",total:2},{key:"2025-04-25",total:2},{key:"2025-04-26",total:2},{key:"2025-04-28",total:9},{key:"2025-04-29",total:3},{key:"2025-05-01",total:1}],total:59}}],volume_successful_payments:13108290,volume_successful_payments_by_periodicity:[{key:"2025-04-03",total:1897290},{key:"2025-04-04",total:460320},{key:"2025-04-05",total:373460},{key:"2025-04-06",total:681200},{key:"2025-04-07",total:558345},{key:"2025-04-08",total:531200},{key:"2025-04-09",total:412395},{key:"2025-04-10",total:437035},{key:"2025-04-11",total:1077565},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:146400},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:205585},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:95895},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:183745},{key:"2025-04-21",total:592760},{key:"2025-04-22",total:611865},{key:"2025-04-23",total:258590},{key:"2025-04-24",total:480300},{key:"2025-04-25",total:243290},{key:"2025-04-26",total:339600},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:754480},{key:"2025-04-29",total:566565},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:560560},{key:"2025-05-02",total:52565}],quantity_successful_payments:226,quantity_successful_payments_by_periodicity:[{key:"2025-04-03",total:16},{key:"2025-04-04",total:9},{key:"2025-04-05",total:5},{key:"2025-04-06",total:8},{key:"2025-04-07",total:12},{key:"2025-04-08",total:11},{key:"2025-04-09",total:12},{key:"2025-04-10",total:11},{key:"2025-04-11",total:14},{key:"2025-04-12",total:3},{key:"2025-04-13",total:3},{key:"2025-04-14",total:7},{key:"2025-04-15",total:5},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:2},{key:"2025-04-19",total:1},{key:"2025-04-20",total:3},{key:"2025-04-21",total:8},{key:"2025-04-22",total:13},{key:"2025-04-23",total:9},{key:"2025-04-24",total:12},{key:"2025-04-25",total:7},{key:"2025-04-26",total:4},{key:"2025-04-27",total:3},{key:"2025-04-28",total:12},{key:"2025-04-29",total:12},{key:"2025-04-30",total:9},{key:"2025-05-01",total:6},{key:"2025-05-02",total:2}],average_provider_latency:[{PAYMENTEZ:{distribution:[{key:"2025-04-03",total:1582.1429},{key:"2025-04-04",total:1972.6667},{key:"2025-04-05",total:2059.25},{key:"2025-04-06",total:1772},{key:"2025-04-07",total:1236.1667},{key:"2025-04-08",total:1310.7143},{key:"2025-04-09",total:1645.25},{key:"2025-04-10",total:2277},{key:"2025-04-11",total:1729.7143},{key:"2025-04-12",total:0},{key:"2025-04-13",total:1870},{key:"2025-04-14",total:1109},{key:"2025-04-15",total:1110},{key:"2025-04-16",total:1255.5},{key:"2025-04-17",total:0},{key:"2025-04-18",total:0},{key:"2025-04-19",total:1930},{key:"2025-04-20",total:0},{key:"2025-04-21",total:1502.3333},{key:"2025-04-22",total:2444.25},{key:"2025-04-23",total:1450.6667},{key:"2025-04-24",total:1376.75},{key:"2025-04-25",total:2074},{key:"2025-04-26",total:2339.75},{key:"2025-04-27",total:0},{key:"2025-04-28",total:1719.8},{key:"2025-04-29",total:1600.5},{key:"2025-04-30",total:1692.5},{key:"2025-05-01",total:1468.5},{key:"2025-05-02",total:0}],total:1727.7576}},{NUVEI:{distribution:[{key:"2025-04-03",total:3110.5},{key:"2025-04-04",total:2706.6667},{key:"2025-04-05",total:3637.5},{key:"2025-04-06",total:2654.4},{key:"2025-04-07",total:3068.1429},{key:"2025-04-08",total:2907.6},{key:"2025-04-09",total:2998.6667},{key:"2025-04-10",total:2732.5714},{key:"2025-04-11",total:3071.4167},{key:"2025-04-12",total:3222},{key:"2025-04-13",total:3020.3333},{key:"2025-04-14",total:2870},{key:"2025-04-15",total:3333},{key:"2025-04-16",total:3319},{key:"2025-04-17",total:3217},{key:"2025-04-18",total:2612},{key:"2025-04-19",total:0},{key:"2025-04-20",total:1829.7778},{key:"2025-04-21",total:2948.875},{key:"2025-04-22",total:3199},{key:"2025-04-23",total:2890.5},{key:"2025-04-24",total:3157},{key:"2025-04-25",total:3302},{key:"2025-04-26",total:2752},{key:"2025-04-27",total:3965.6667},{key:"2025-04-28",total:3059.7333},{key:"2025-04-29",total:3012.1},{key:"2025-04-30",total:3227.6667},{key:"2025-05-01",total:2788.6667},{key:"2025-05-02",total:3353}],total:2973.3793}},{WOMPI:{distribution:[{key:"2025-04-03",total:6647},{key:"2025-04-04",total:5687},{key:"2025-04-05",total:0},{key:"2025-04-06",total:5731.6667},{key:"2025-04-07",total:4024},{key:"2025-04-08",total:8196},{key:"2025-04-09",total:6371.25},{key:"2025-04-10",total:4857},{key:"2025-04-11",total:5636.6364},{key:"2025-04-12",total:0},{key:"2025-04-13",total:7057.5},{key:"2025-04-14",total:0},{key:"2025-04-15",total:6098.3333},{key:"2025-04-16",total:7633},{key:"2025-04-17",total:4292},{key:"2025-04-18",total:7642.5},{key:"2025-04-19",total:0},{key:"2025-04-20",total:7386.5},{key:"2025-04-21",total:6093.1667},{key:"2025-04-22",total:7832.75},{key:"2025-04-23",total:5280.4},{key:"2025-04-24",total:7190.5},{key:"2025-04-25",total:0},{key:"2025-04-26",total:4156},{key:"2025-04-27",total:0},{key:"2025-04-28",total:8211.6667},{key:"2025-04-29",total:6907.3333},{key:"2025-04-30",total:6054},{key:"2025-05-01",total:7726.3333},{key:"2025-05-02",total:0}],total:6579.7901}}],total_subscriptions_and_conversion_rate:{subscriptions:{distribution:null,total:0},subscriptions_succeeded:{distribution:null,total:0},conversion_rate:{distribution:null,total:0}},total_status_distribution:[{SUCCEEDED:{distribution:[{key:"2025-04-03",total:1897290},{key:"2025-04-04",total:460320},{key:"2025-04-05",total:373460},{key:"2025-04-06",total:681200},{key:"2025-04-07",total:558345},{key:"2025-04-08",total:531200},{key:"2025-04-09",total:412395},{key:"2025-04-10",total:437035},{key:"2025-04-11",total:1077565},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:146400},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:205585},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:95895},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:183745},{key:"2025-04-21",total:592760},{key:"2025-04-22",total:611865},{key:"2025-04-23",total:258590},{key:"2025-04-24",total:480300},{key:"2025-04-25",total:243290},{key:"2025-04-26",total:339600},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:754480},{key:"2025-04-29",total:566565},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:560560},{key:"2025-05-02",total:52565}],total:13108290}},{DECLINED:{distribution:[{key:"2025-04-03",total:248800},{key:"2025-04-04",total:37900},{key:"2025-04-05",total:190100},{key:"2025-04-06",total:141400},{key:"2025-04-07",total:102100},{key:"2025-04-08",total:22200},{key:"2025-04-09",total:51800},{key:"2025-04-10",total:33800},{key:"2025-04-11",total:2405230},{key:"2025-04-13",total:60800},{key:"2025-04-15",total:71600},{key:"2025-04-18",total:56695},{key:"2025-04-20",total:877100},{key:"2025-04-21",total:122400},{key:"2025-04-22",total:74600},{key:"2025-04-23",total:9900},{key:"2025-04-24",total:219200},{key:"2025-04-25",total:62800},{key:"2025-04-26",total:129900},{key:"2025-04-28",total:855740},{key:"2025-04-29",total:133400},{key:"2025-05-01",total:105600}],total:6013065}}]};!function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(ea||(ea={}));var da={sales_volume_metric_group:la.sales_volume_metric_group,total_payments:la.total_payments},ha=Xr.get("/api/insights/overview-metrics",function(){return Zr.json(da)}),pa=[Xr.get("/api/v3/insights/overview-metrics/".concat(ea.GENERAL),function(){return Zr.json({sales_volume_metric_group:da.sales_volume_metric_group})}),Xr.get("/api/v3/insights/overview-metrics/".concat(ea.LATENCY),function(){return Zr.json({latency_metrics:{average_response_time:250,distribution:[{key:"2025-04-01",value:200},{key:"2025-04-02",value:300}]}})}),Xr.get("/api/v3/insights/overview-metrics/".concat(ea.STATUS),function(){return Zr.json({status_metrics:{success_rate:95,distribution:[{key:"2025-04-01",value:98},{key:"2025-04-02",value:92}]}})}),Xr.get("/api/v3/insights/overview-metrics/".concat(ea.SUBSCRIPTIONS),function(){return Zr.json({subscription_metrics:{active_subscriptions:1e3,distribution:[{key:"2025-04-01",value:950},{key:"2025-04-02",value:1050}]}})})],fa=e([ha],pa,!0),ma=e([Xr.post("https://dev.y.uno/dashboard-bff/api/v3/insights/conversion-rate/overview",function(){return Zr.json(ca)}),Xr.post("https://dev.y.uno/dashboard-bff/api/v3/insights/conversion-rate/overview-fraud-3ds",function(){return Zr.json(ua)}),Xr.get("*/dialogs",function(){return Zr.json({})}),Xr.get("*/accounts/webhooks/:accountCode",function(){return Zr.json({})}),Xr.get("*/accounts/webhooks/params-catalog",function(){return Zr.json({})}),Xr.get("*/accounts/webhooks-v2/:accountCode",function(){return Zr.json({})})],fa,!0),ga=e(e([],sa,!0),ma,!0),ya=function(...e){return new wr(...e)}.apply(void 0,ga),va="MSW_ENABLED";function ba(e){e?(localStorage.setItem(va,"true"),console.info("MSW enabled. Reload the page to activate the mocks.")):(localStorage.removeItem(va),console.info("MSW disabled. Reload the page to disable the mocks.")),window.location.reload()}function ka(){return"true"===localStorage.getItem(va)}function wa(e,t){return function(){return e.apply(t,arguments)}}"undefined"!=typeof window&&(window.enableMSW=function(){return ba(!0)},window.disableMSW=function(){return ba(!1)},window.isMSWEnabled=ka);const{toString:_a}=Object.prototype,{getPrototypeOf:xa}=Object,{iterator:Ea,toStringTag:Sa}=Symbol,Ca=(Ra=Object.create(null),e=>{const t=_a.call(e);return Ra[t]||(Ra[t]=t.slice(8,-1).toLowerCase())});var Ra;const Ta=e=>(e=e.toLowerCase(),t=>Ca(t)===e),Ia=e=>t=>typeof t===e,{isArray:Aa}=Array,Oa=Ia("undefined");function ja(e){return null!==e&&!Oa(e)&&null!==e.constructor&&!Oa(e.constructor)&&La(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Pa=Ta("ArrayBuffer");const Da=Ia("string"),La=Ia("function"),qa=Ia("number"),za=e=>null!==e&&"object"==typeof e,Ma=e=>{if("object"!==Ca(e))return!1;const t=xa(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Sa in e||Ea in e)},Na=Ta("Date"),Ua=Ta("File"),Ba=Ta("Blob"),Fa=Ta("FileList"),Wa=Ta("URLSearchParams"),[Ga,Ha,Va,$a]=["ReadableStream","Request","Response","Headers"].map(Ta);function Ka(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let o,r;if("object"!=typeof e&&(e=[e]),Aa(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{if(ja(e))return;const r=n?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;let i;for(o=0;o<a;o++)i=r[o],t.call(null,e[i],i,e)}}function Qa(e,t){if(ja(e))return null;t=t.toLowerCase();const n=Object.keys(e);let o,r=n.length;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Ja="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Xa=e=>!Oa(e)&&e!==Ja;const Ya=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&xa(Uint8Array)),Za=Ta("HTMLFormElement"),ei=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ti=Ta("RegExp"),ni=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Ka(n,(n,r)=>{let a;!1!==(a=t(n,r,e))&&(o[r]=a||n)}),Object.defineProperties(e,o)};const oi=Ta("AsyncFunction"),ri=(ai="function"==typeof setImmediate,ii=La(Ja.postMessage),ai?setImmediate:ii?(si=`axios@${Math.random()}`,ci=[],Ja.addEventListener("message",({source:e,data:t})=>{e===Ja&&t===si&&ci.length&&ci.shift()()},!1),e=>{ci.push(e),Ja.postMessage(si,"*")}):e=>setTimeout(e));var ai,ii,si,ci;const ui="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Ja):"undefined"!=typeof process&&process.nextTick||ri;var li={isArray:Aa,isArrayBuffer:Pa,isBuffer:ja,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||La(e.append)&&("formdata"===(t=Ca(e))||"object"===t&&La(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Pa(e.buffer),t},isString:Da,isNumber:qa,isBoolean:e=>!0===e||!1===e,isObject:za,isPlainObject:Ma,isEmptyObject:e=>{if(!za(e)||ja(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Ga,isRequest:Ha,isResponse:Va,isHeaders:$a,isUndefined:Oa,isDate:Na,isFile:Ua,isBlob:Ba,isRegExp:ti,isFunction:La,isStream:e=>za(e)&&La(e.pipe),isURLSearchParams:Wa,isTypedArray:Ya,isFileList:Fa,forEach:Ka,merge:function e(){const{caseless:t,skipUndefined:n}=Xa(this)&&this||{},o={},r=(r,a)=>{const i=t&&Qa(o,a)||a;Ma(o[i])&&Ma(r)?o[i]=e(o[i],r):Ma(r)?o[i]=e({},r):Aa(r)?o[i]=r.slice():n&&Oa(r)||(o[i]=r)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Ka(arguments[e],r);return o},extend:(e,t,n,{allOwnKeys:o}={})=>(Ka(t,(t,o)=>{n&&La(t)?e[o]=wa(t,n):e[o]=t},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let r,a,i;const s={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),a=r.length;a-- >0;)i=r[a],o&&!o(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&xa(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Ca,kindOfTest:Ta,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return-1!==o&&o===n},toArray:e=>{if(!e)return null;if(Aa(e))return e;let t=e.length;if(!qa(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Ea]).call(e);let o;for(;(o=n.next())&&!o.done;){const n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:Za,hasOwnProperty:ei,hasOwnProp:ei,reduceDescriptors:ni,freezeMethods:e=>{ni(e,(t,n)=>{if(La(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const o=e[n];La(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},o=e=>{e.forEach(e=>{n[e]=!0})};return Aa(e)?o(e):o(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Qa,global:Ja,isContextDefined:Xa,isSpecCompliantForm:function(e){return!!(e&&La(e.append)&&"FormData"===e[Sa]&&e[Ea])},toJSONObject:e=>{const t=new Array(10),n=(e,o)=>{if(za(e)){if(t.indexOf(e)>=0)return;if(ja(e))return e;if(!("toJSON"in e)){t[o]=e;const r=Aa(e)?[]:{};return Ka(e,(e,t)=>{const a=n(e,o+1);!Oa(a)&&(r[t]=a)}),t[o]=void 0,r}}return e};return n(e,0)},isAsyncFn:oi,isThenable:e=>e&&(za(e)||La(e))&&La(e.then)&&La(e.catch),setImmediate:ri,asap:ui,isIterable:e=>null!=e&&La(e[Ea])};function di(e,t,n,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r,this.status=r.status?r.status:null)}li.inherits(di,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:li.toJSONObject(this.config),code:this.code,status:this.status}}});const hi=di.prototype,pi={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{pi[e]={value:e}}),Object.defineProperties(di,pi),Object.defineProperty(hi,"isAxiosError",{value:!0}),di.from=(e,t,n,o,r,a)=>{const i=Object.create(hi);li.toFlatObject(e,i,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const s=e&&e.message?e.message:"Error",c=null==t&&e?e.code:t;return di.call(i,s,c,n,o,r),e&&null==i.cause&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",a&&Object.assign(i,a),i};function fi(e){return li.isPlainObject(e)||li.isArray(e)}function mi(e){return li.endsWith(e,"[]")?e.slice(0,-2):e}function gi(e,t,n){return e?e.concat(t).map(function(e,t){return e=mi(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const yi=li.toFlatObject(li,{},null,function(e){return/^is[A-Z]/.test(e)});function vi(e,t,n){if(!li.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(n=li.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!li.isUndefined(t[e])})).metaTokens,r=n.visitor||u,a=n.dots,i=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&li.isSpecCompliantForm(t);if(!li.isFunction(r))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(li.isDate(e))return e.toISOString();if(li.isBoolean(e))return e.toString();if(!s&&li.isBlob(e))throw new di("Blob is not supported. Use a Buffer instead.");return li.isArrayBuffer(e)||li.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,r){let s=e;if(e&&!r&&"object"==typeof e)if(li.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(li.isArray(e)&&function(e){return li.isArray(e)&&!e.some(fi)}(e)||(li.isFileList(e)||li.endsWith(n,"[]"))&&(s=li.toArray(e)))return n=mi(n),s.forEach(function(e,o){!li.isUndefined(e)&&null!==e&&t.append(!0===i?gi([n],o,a):null===i?n:n+"[]",c(e))}),!1;return!!fi(e)||(t.append(gi(r,n,a),c(e)),!1)}const l=[],d=Object.assign(yi,{defaultVisitor:u,convertValue:c,isVisitable:fi});if(!li.isObject(e))throw new TypeError("data must be an object");return function e(n,o){if(!li.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+o.join("."));l.push(n),li.forEach(n,function(n,a){!0===(!(li.isUndefined(n)||null===n)&&r.call(t,n,li.isString(a)?a.trim():a,o,d))&&e(n,o?o.concat(a):[a])}),l.pop()}}(e),t}function bi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ki(e,t){this._pairs=[],e&&vi(e,this,t)}const wi=ki.prototype;function _i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function xi(e,t,n){if(!t)return e;const o=n&&n.encode||_i;li.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let a;if(a=r?r(t,n):li.isURLSearchParams(t)?t.toString():new ki(t,n).toString(o),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}wi.append=function(e,t){this._pairs.push([e,t])},wi.toString=function(e){const t=e?function(t){return e.call(this,t,bi)}:bi;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var Ei=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){li.forEach(this.handlers,function(t){null!==t&&e(t)})}},Si={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ci={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ki,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Ri="undefined"!=typeof window&&"undefined"!=typeof document,Ti="object"==typeof navigator&&navigator||void 0,Ii=Ri&&(!Ti||["ReactNative","NativeScript","NS"].indexOf(Ti.product)<0),Ai="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Oi=Ri&&window.location.href||"http://localhost";var ji={...Object.freeze({__proto__:null,hasBrowserEnv:Ri,hasStandardBrowserEnv:Ii,hasStandardBrowserWebWorkerEnv:Ai,navigator:Ti,origin:Oi}),...Ci};function Pi(e){function t(e,n,o,r){let a=e[r++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),s=r>=e.length;if(a=!a&&li.isArray(o)?o.length:a,s)return li.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!i;o[a]&&li.isObject(o[a])||(o[a]=[]);return t(e,n,o[a],r)&&li.isArray(o[a])&&(o[a]=function(e){const t={},n=Object.keys(e);let o;const r=n.length;let a;for(o=0;o<r;o++)a=n[o],t[a]=e[a];return t}(o[a])),!i}if(li.isFormData(e)&&li.isFunction(e.entries)){const n={};return li.forEachEntry(e,(e,o)=>{t(function(e){return li.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),o,n,0)}),n}return null}const Di={transitional:Si,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,r=li.isObject(e);r&&li.isHTMLForm(e)&&(e=new FormData(e));if(li.isFormData(e))return o?JSON.stringify(Pi(e)):e;if(li.isArrayBuffer(e)||li.isBuffer(e)||li.isStream(e)||li.isFile(e)||li.isBlob(e)||li.isReadableStream(e))return e;if(li.isArrayBufferView(e))return e.buffer;if(li.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return vi(e,new ji.classes.URLSearchParams,{visitor:function(e,t,n,o){return ji.isNode&&li.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((a=li.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return vi(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||o?(t.setContentType("application/json",!1),function(e,t,n){if(li.isString(e))try{return(t||JSON.parse)(e),li.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Di.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(li.isResponse(e)||li.isReadableStream(e))return e;if(e&&li.isString(e)&&(n&&!this.responseType||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw di.from(e,di.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ji.classes.FormData,Blob:ji.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};li.forEach(["delete","get","head","post","put","patch"],e=>{Di.headers[e]={}});var Li=Di;const qi=li.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const zi=Symbol("internals");function Mi(e){return e&&String(e).trim().toLowerCase()}function Ni(e){return!1===e||null==e?e:li.isArray(e)?e.map(Ni):String(e)}function Ui(e,t,n,o,r){return li.isFunction(o)?o.call(this,t,n):(r&&(t=n),li.isString(t)?li.isString(o)?-1!==t.indexOf(o):li.isRegExp(o)?o.test(t):void 0:void 0)}class Bi{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function r(e,t,n){const r=Mi(t);if(!r)throw new Error("header name must be a non-empty string");const a=li.findKey(o,r);(!a||void 0===o[a]||!0===n||void 0===n&&!1!==o[a])&&(o[a||t]=Ni(e))}const a=(e,t)=>li.forEach(e,(e,n)=>r(e,n,t));if(li.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(li.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,o,r;return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),o=e.substring(r+1).trim(),!n||t[n]&&qi[n]||("set-cookie"===n?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t})(e),t);else if(li.isObject(e)&&li.isIterable(e)){let n,o,r={};for(const t of e){if(!li.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[o=t[0]]=(n=r[o])?li.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(r,t)}else null!=e&&r(t,e,n);return this}get(e,t){if(e=Mi(e)){const n=li.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}(e);if(li.isFunction(t))return t.call(this,e,n);if(li.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Mi(e)){const n=li.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ui(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function r(e){if(e=Mi(e)){const r=li.findKey(n,e);!r||t&&!Ui(0,n[r],r,t)||(delete n[r],o=!0)}}return li.isArray(e)?e.forEach(r):r(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const r=t[n];e&&!Ui(0,this[r],r,e,!0)||(delete this[r],o=!0)}return o}normalize(e){const t=this,n={};return li.forEach(this,(o,r)=>{const a=li.findKey(n,r);if(a)return t[a]=Ni(o),void delete t[r];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(r):String(r).trim();i!==r&&delete t[r],t[i]=Ni(o),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return li.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=e&&li.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[zi]=this[zi]={accessors:{}}).accessors,n=this.prototype;function o(e){const o=Mi(e);t[o]||(!function(e,t){const n=li.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(e,n,r){return this[o].call(this,t,e,n,r)},configurable:!0})})}(n,e),t[o]=!0)}return li.isArray(e)?e.forEach(o):o(e),this}}Bi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),li.reduceDescriptors(Bi.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),li.freezeMethods(Bi);var Fi=Bi;function Wi(e,t){const n=this||Li,o=t||n,r=Fi.from(o.headers);let a=o.data;return li.forEach(e,function(e){a=e.call(n,a,r.normalize(),t?t.status:void 0)}),r.normalize(),a}function Gi(e){return!(!e||!e.__CANCEL__)}function Hi(e,t,n){di.call(this,null==e?"canceled":e,di.ERR_CANCELED,t,n),this.name="CanceledError"}function Vi(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new di("Request failed with status code "+n.status,[di.ERR_BAD_REQUEST,di.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}li.inherits(Hi,di,{__CANCEL__:!0});const $i=(e,t,n=3)=>{let o=0;const r=function(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=o[i];r||(r=c),n[a]=s,o[a]=c;let l=i,d=0;for(;l!==a;)d+=n[l++],l%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),c-r<t)return;const h=u&&c-u;return h?Math.round(1e3*d/h):void 0}}(50,250);return function(e,t){let n,o,r=0,a=1e3/t;const i=(t,a=Date.now())=>{r=a,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-r;s>=a?i(e,t):(n=e,o||(o=setTimeout(()=>{o=null,i(n)},a-s)))},()=>n&&i(n)]}(n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,s=a-o,c=r(s);o=a;e({loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:c||void 0,estimated:c&&i&&a<=i?(i-a)/c:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},Ki=(e,t)=>{const n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},Qi=e=>(...t)=>li.asap(()=>e(...t));var Ji=ji.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ji.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ji.origin),ji.navigator&&/(msie|trident)/i.test(ji.navigator.userAgent)):()=>!0,Xi=ji.hasStandardBrowserEnv?{write(e,t,n,o,r,a){const i=[e+"="+encodeURIComponent(t)];li.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),li.isString(o)&&i.push("path="+o),li.isString(r)&&i.push("domain="+r),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Yi(e,t,n){let o=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(o||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Zi=e=>e instanceof Fi?{...e}:e;function es(e,t){t=t||{};const n={};function o(e,t,n,o){return li.isPlainObject(e)&&li.isPlainObject(t)?li.merge.call({caseless:o},e,t):li.isPlainObject(t)?li.merge({},t):li.isArray(t)?t.slice():t}function r(e,t,n,r){return li.isUndefined(t)?li.isUndefined(e)?void 0:o(void 0,e,0,r):o(e,t,0,r)}function a(e,t){if(!li.isUndefined(t))return o(void 0,t)}function i(e,t){return li.isUndefined(t)?li.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function s(n,r,a){return a in t?o(n,r):a in e?o(void 0,n):void 0}const c={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t,n)=>r(Zi(e),Zi(t),0,!0)};return li.forEach(Object.keys({...e,...t}),function(o){const a=c[o]||r,i=a(e[o],t[o],o);li.isUndefined(i)&&a!==s||(n[o]=i)}),n}var ts=e=>{const t=es({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:a,headers:i,auth:s}=t;if(t.headers=i=Fi.from(i),t.url=xi(Yi(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),li.isFormData(n))if(ji.hasStandardBrowserEnv||ji.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(li.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&i.set(e,n)})}if(ji.hasStandardBrowserEnv&&(o&&li.isFunction(o)&&(o=o(t)),o||!1!==o&&Ji(t.url))){const e=r&&a&&Xi.read(a);e&&i.set(r,e)}return t};var ns="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const o=ts(e);let r=o.data;const a=Fi.from(o.headers).normalize();let i,s,c,u,l,{responseType:d,onUploadProgress:h,onDownloadProgress:p}=o;function f(){u&&u(),l&&l(),o.cancelToken&&o.cancelToken.unsubscribe(i),o.signal&&o.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function g(){if(!m)return;const o=Fi.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Vi(function(e){t(e),f()},function(e){n(e),f()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:o,config:e,request:m}),m=null}m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new di("Request aborted",di.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const o=new di(t&&t.message?t.message:"Network Error",di.ERR_NETWORK,e,m);o.event=t||null,n(o),m=null},m.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const r=o.transitional||Si;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),n(new di(t,r.clarifyTimeoutError?di.ETIMEDOUT:di.ECONNABORTED,e,m)),m=null},void 0===r&&a.setContentType(null),"setRequestHeader"in m&&li.forEach(a.toJSON(),function(e,t){m.setRequestHeader(t,e)}),li.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),d&&"json"!==d&&(m.responseType=o.responseType),p&&([c,l]=$i(p,!0),m.addEventListener("progress",c)),h&&m.upload&&([s,u]=$i(h),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",u)),(o.cancelToken||o.signal)&&(i=t=>{m&&(n(!t||t.type?new Hi(null,e,m):t),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(i),o.signal&&(o.signal.aborted?i():o.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(o.url);y&&-1===ji.protocols.indexOf(y)?n(new di("Unsupported protocol "+y+":",di.ERR_BAD_REQUEST,e)):m.send(r||null)})};var os=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,o=new AbortController;const r=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;o.abort(t instanceof di?t:new Hi(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{a=null,r(new di(`timeout ${t} of ms exceeded`,di.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r));const{signal:s}=o;return s.unsubscribe=()=>li.asap(i),s}};const rs=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let o,r=0;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},as=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},is=(e,t,n,o)=>{const r=async function*(e,t){for await(const n of as(e))yield*rs(n,t)}(e,t);let a,i=0,s=e=>{a||(a=!0,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await r.next();if(t)return s(),void e.close();let a=o.byteLength;if(n){let e=i+=a;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw s(e),e}},cancel:e=>(s(e),r.return())},{highWaterMark:2})},{isFunction:ss}=li,cs=(({Request:e,Response:t})=>({Request:e,Response:t}))(li.global),{ReadableStream:us,TextEncoder:ls}=li.global,ds=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},hs=e=>{e=li.merge.call({skipUndefined:!0},cs,e);const{fetch:t,Request:n,Response:o}=e,r=t?ss(t):"function"==typeof fetch,a=ss(n),i=ss(o);if(!r)return!1;const s=r&&ss(us),c=r&&("function"==typeof ls?(e=>t=>e.encode(t))(new ls):async e=>new Uint8Array(await new n(e).arrayBuffer())),u=a&&s&&ds(()=>{let e=!1;const t=new n(ji.origin,{body:new us,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),l=i&&s&&ds(()=>li.isReadableStream(new o("").body)),d={stream:l&&(e=>e.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new di(`Response type '${e}' is not supported`,di.ERR_NOT_SUPPORT,n)})});const h=async(e,t)=>{const o=li.toFiniteNumber(e.getContentLength());return null==o?(async e=>{if(null==e)return 0;if(li.isBlob(e))return e.size;if(li.isSpecCompliantForm(e)){const t=new n(ji.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return li.isArrayBufferView(e)||li.isArrayBuffer(e)?e.byteLength:(li.isURLSearchParams(e)&&(e+=""),li.isString(e)?(await c(e)).byteLength:void 0)})(t):o};return async e=>{let{url:r,method:i,data:s,signal:c,cancelToken:p,timeout:f,onDownloadProgress:m,onUploadProgress:g,responseType:y,headers:v,withCredentials:b="same-origin",fetchOptions:k}=ts(e),w=t||fetch;y=y?(y+"").toLowerCase():"text";let _=os([c,p&&p.toAbortSignal()],f),x=null;const E=_&&_.unsubscribe&&(()=>{_.unsubscribe()});let S;try{if(g&&u&&"get"!==i&&"head"!==i&&0!==(S=await h(v,s))){let e,t=new n(r,{method:"POST",body:s,duplex:"half"});if(li.isFormData(s)&&(e=t.headers.get("content-type"))&&v.setContentType(e),t.body){const[e,n]=Ki(S,$i(Qi(g)));s=is(t.body,65536,e,n)}}li.isString(b)||(b=b?"include":"omit");const t=a&&"credentials"in n.prototype,c={...k,signal:_,method:i.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:"half",credentials:t?b:void 0};x=a&&new n(r,c);let p=await(a?w(x,k):w(r,c));const f=l&&("stream"===y||"response"===y);if(l&&(m||f&&E)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=p[t]});const t=li.toFiniteNumber(p.headers.get("content-length")),[n,r]=m&&Ki(t,$i(Qi(m),!0))||[];p=new o(is(p.body,65536,n,()=>{r&&r(),E&&E()}),e)}y=y||"text";let C=await d[li.findKey(d,y)||"text"](p,e);return!f&&E&&E(),await new Promise((t,n)=>{Vi(t,n,{data:C,headers:Fi.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:x})})}catch(t){if(E&&E(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new di("Network Error",di.ERR_NETWORK,e,x),{cause:t.cause||t});throw di.from(t,t&&t.code,e,x)}}},ps=new Map,fs=e=>{let t=e?e.env:{};const{fetch:n,Request:o,Response:r}=t,a=[o,r,n];let i,s,c=a.length,u=ps;for(;c--;)i=a[c],s=u.get(i),void 0===s&&u.set(i,s=c?new Map:hs(t)),u=s;return s};fs();const ms={http:null,xhr:ns,fetch:{get:fs}};li.forEach(ms,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const gs=e=>`- ${e}`,ys=e=>li.isFunction(e)||null===e||!1===e;var vs=(e,t)=>{e=li.isArray(e)?e:[e];const{length:n}=e;let o,r;const a={};for(let i=0;i<n;i++){let n;if(o=e[i],r=o,!ys(o)&&(r=ms[(n=String(o)).toLowerCase()],void 0===r))throw new di(`Unknown adapter '${n}'`);if(r&&(li.isFunction(r)||(r=r.get(t))))break;a[n||"#"+i]=r}if(!r){const e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new di("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(gs).join("\n"):" "+gs(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function bs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Hi(null,e)}function ks(e){bs(e),e.headers=Fi.from(e.headers),e.data=Wi.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return vs(e.adapter||Li.adapter,e)(e).then(function(t){return bs(e),t.data=Wi.call(e,e.transformResponse,t),t.headers=Fi.from(t.headers),t},function(t){return Gi(t)||(bs(e),t&&t.response&&(t.response.data=Wi.call(e,e.transformResponse,t.response),t.response.headers=Fi.from(t.response.headers))),Promise.reject(t)})}const ws="1.12.2",_s={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{_s[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const xs={};_s.transitional=function(e,t,n){function o(e,t){return"[Axios v"+ws+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,a)=>{if(!1===e)throw new di(o(r," has been removed"+(t?" in "+t:"")),di.ERR_DEPRECATED);return t&&!xs[r]&&(xs[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},_s.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var Es={assertOptions:function(e,t,n){if("object"!=typeof e)throw new di("options must be an object",di.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const a=o[r],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new di("option "+a+" must be "+n,di.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new di("Unknown option "+a,di.ERR_BAD_OPTION)}},validators:_s};const Ss=Es.validators;let Cs=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Ei,response:new Ei}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=es(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:r}=t;void 0!==n&&Es.assertOptions(n,{silentJSONParsing:Ss.transitional(Ss.boolean),forcedJSONParsing:Ss.transitional(Ss.boolean),clarifyTimeoutError:Ss.transitional(Ss.boolean)},!1),null!=o&&(li.isFunction(o)?t.paramsSerializer={serialize:o}:Es.assertOptions(o,{encode:Ss.function,serialize:Ss.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Es.assertOptions(t,{baseUrl:Ss.spelling("baseURL"),withXsrfToken:Ss.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=r&&li.merge(r.common,r[t.method]);r&&li.forEach(["delete","get","head","post","put","patch","common"],e=>{delete r[e]}),t.headers=Fi.concat(a,r);const i=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,i.unshift(e.fulfilled,e.rejected))});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,d=0;if(!s){const e=[ks.bind(this),void 0];for(e.unshift(...i),e.push(...c),l=e.length,u=Promise.resolve(t);d<l;)u=u.then(e[d++],e[d++]);return u}l=i.length;let h=t;for(;d<l;){const e=i[d++],t=i[d++];try{h=e(h)}catch(e){t.call(this,e);break}}try{u=ks.call(this,h)}catch(e){return Promise.reject(e)}for(d=0,l=c.length;d<l;)u=u.then(c[d++],c[d++]);return u}getUri(e){return xi(Yi((e=es(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};li.forEach(["delete","get","head","options"],function(e){Cs.prototype[e]=function(t,n){return this.request(es(n||{},{method:e,url:t,data:(n||{}).data}))}}),li.forEach(["post","put","patch"],function(e){function t(t){return function(n,o,r){return this.request(es(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}Cs.prototype[e]=t(),Cs.prototype[e+"Form"]=t(!0)});var Rs=Cs;class Ts{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const o=new Promise(e=>{n.subscribe(e),t=e}).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e(function(e,o,r){n.reason||(n.reason=new Hi(e,o,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Ts(function(t){e=t}),cancel:e}}}var Is=Ts;const As={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(As).forEach(([e,t])=>{As[t]=e});var Os=As;const js=function e(t){const n=new Rs(t),o=wa(Rs.prototype.request,n);return li.extend(o,Rs.prototype,n,{allOwnKeys:!0}),li.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(es(t,n))},o}(Li);js.Axios=Rs,js.CanceledError=Hi,js.CancelToken=Is,js.isCancel=Gi,js.VERSION=ws,js.toFormData=vi,js.AxiosError=di,js.Cancel=js.CanceledError,js.all=function(e){return Promise.all(e)},js.spread=function(e){return function(t){return e.apply(null,t)}},js.isAxiosError=function(e){return li.isObject(e)&&!0===e.isAxiosError},js.mergeConfig=es,js.AxiosHeaders=Fi,js.formToJSON=e=>Pi(li.isHTMLForm(e)?new FormData(e):e),js.getAdapter=vs,js.HttpStatusCode=Os,js.default=js;var Ps=js,Ds=function(e){function t(t){var n,o,a,i,s=this;return(s=e.call(this,t)||this).token="",null===(o=null===(n=s.instance)||void 0===n?void 0:n.interceptors)||void 0===o||o.request.use(function(e){return r(r({},e),{defaults:{headers:r(r({},e.headers),{Authorization:"Bearer ".concat(s.getToken())})}})},function(e){return Promise.reject(e)}),null===(i=null===(a=s.instance)||void 0===a?void 0:a.interceptors)||void 0===i||i.response.use(function(e){return r({},e)},function(e){return Promise.reject(e)}),s}return o(t,e),t.prototype.getToken=function(){return"Bearer ".concat(this.token)},t.prototype.setToken=function(e){this.token=e},t.prototype.getUri=function(e){return this.instance.getUri(e)},t.prototype.getCancelTokenSource=function(){var e;return this.cancelToken&&this.cancelToken.cancel(),this.cancelToken=null===(e=Ps.CancelToken)||void 0===e?void 0:e.source(),this.cancelToken},t.prototype.request=function(e){var t;return e.cancelToken=null===(t=this.getCancelTokenSource())||void 0===t?void 0:t.token,this.instance.request(e)},t.prototype.get=function(e,t){return this.instance.get(e,t)},t.prototype.options=function(e,t){return this.instance.options(e,t)},t.prototype.delete=function(e,t){return this.instance.delete(e,t)},t.prototype.head=function(e,t){return this.instance.head(e,t)},t.prototype.post=function(e,t,n){return this.instance.post(e,t,n)},t.prototype.put=function(e,t,n){return this.instance.put(e,t,n)},t.prototype.patch=function(e,t,n){return this.instance.patch(e,t,n)},t.prototype.success=function(e){return null==e?void 0:e.data},t.prototype.error=function(e){throw e},t}(function(e){this.instance=Ps.create(e)}),Ls="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function qs(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}),n}var zs=TypeError,Ms=qs(Object.freeze({__proto__:null,default:{}})),Ns="function"==typeof Map&&Map.prototype,Us=Object.getOwnPropertyDescriptor&&Ns?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Bs=Ns&&Us&&"function"==typeof Us.get?Us.get:null,Fs=Ns&&Map.prototype.forEach,Ws="function"==typeof Set&&Set.prototype,Gs=Object.getOwnPropertyDescriptor&&Ws?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Hs=Ws&&Gs&&"function"==typeof Gs.get?Gs.get:null,Vs=Ws&&Set.prototype.forEach,$s="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Ks="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Qs="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Js=Boolean.prototype.valueOf,Xs=Object.prototype.toString,Ys=Function.prototype.toString,Zs=String.prototype.match,ec=String.prototype.slice,tc=String.prototype.replace,nc=String.prototype.toUpperCase,oc=String.prototype.toLowerCase,rc=RegExp.prototype.test,ac=Array.prototype.concat,ic=Array.prototype.join,sc=Array.prototype.slice,cc=Math.floor,uc="function"==typeof BigInt?BigInt.prototype.valueOf:null,lc=Object.getOwnPropertySymbols,dc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,hc="function"==typeof Symbol&&"object"==typeof Symbol.iterator,pc="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hc||"symbol")?Symbol.toStringTag:null,fc=Object.prototype.propertyIsEnumerable,mc=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function gc(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||rc.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-cc(-e):cc(e);if(o!==e){var r=String(o),a=ec.call(t,r.length+1);return tc.call(r,n,"$&_")+"."+tc.call(tc.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return tc.call(t,n,"$&_")}var yc=Ms,vc=yc.custom,bc=Tc(vc)?vc:null,kc={__proto__:null,double:'"',single:"'"},wc={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},_c=function e(t,n,o,r){var a=n||{};if(Ac(a,"quoteStyle")&&!Ac(kc,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ac(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=!Ac(a,"customInspect")||a.customInspect;if("boolean"!=typeof i&&"symbol"!==i)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ac(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ac(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Pc(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var c=String(t);return s?gc(t,c):c}if("bigint"==typeof t){var u=String(t)+"n";return s?gc(t,u):u}var l=void 0===a.depth?5:a.depth;if(void 0===o&&(o=0),o>=l&&l>0&&"object"==typeof t)return Cc(t)?"[Array]":"[Object]";var d=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=ic.call(Array(e.indent+1)," ")}return{base:n,prev:ic.call(Array(t+1),n)}}(a,o);if(void 0===r)r=[];else if(jc(r,t)>=0)return"[Circular]";function h(t,n,i){if(n&&(r=sc.call(r)).push(n),i){var s={depth:a.depth};return Ac(a,"quoteStyle")&&(s.quoteStyle=a.quoteStyle),e(t,s,o+1,r)}return e(t,a,o+1,r)}if("function"==typeof t&&!Rc(t)){var p=function(e){if(e.name)return e.name;var t=Zs.call(Ys.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),f=Nc(t,h);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(f.length>0?" { "+ic.call(f,", ")+" }":"")}if(Tc(t)){var m=hc?tc.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):dc.call(t);return"object"!=typeof t||hc?m:Lc(m)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var g="<"+oc.call(String(t.nodeName)),y=t.attributes||[],v=0;v<y.length;v++)g+=" "+y[v].name+"="+xc(Ec(y[v].value),"double",a);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+oc.call(String(t.nodeName))+">"}if(Cc(t)){if(0===t.length)return"[]";var b=Nc(t,h);return d&&!function(e){for(var t=0;t<e.length;t++)if(jc(e[t],"\n")>=0)return!1;return!0}(b)?"["+Mc(b,d)+"]":"[ "+ic.call(b,", ")+" ]"}if(function(e){return"[object Error]"===Oc(e)&&Sc(e)}(t)){var k=Nc(t,h);return"cause"in Error.prototype||!("cause"in t)||fc.call(t,"cause")?0===k.length?"["+String(t)+"]":"{ ["+String(t)+"] "+ic.call(k,", ")+" }":"{ ["+String(t)+"] "+ic.call(ac.call("[cause]: "+h(t.cause),k),", ")+" }"}if("object"==typeof t&&i){if(bc&&"function"==typeof t[bc]&&yc)return yc(t,{depth:l-o});if("symbol"!==i&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!Bs||!e||"object"!=typeof e)return!1;try{Bs.call(e);try{Hs.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var w=[];return Fs&&Fs.call(t,function(e,n){w.push(h(n,t,!0)+" => "+h(e,t))}),zc("Map",Bs.call(t),w,d)}if(function(e){if(!Hs||!e||"object"!=typeof e)return!1;try{Hs.call(e);try{Bs.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var _=[];return Vs&&Vs.call(t,function(e){_.push(h(e,t))}),zc("Set",Hs.call(t),_,d)}if(function(e){if(!$s||!e||"object"!=typeof e)return!1;try{$s.call(e,$s);try{Ks.call(e,Ks)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return qc("WeakMap");if(function(e){if(!Ks||!e||"object"!=typeof e)return!1;try{Ks.call(e,Ks);try{$s.call(e,$s)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return qc("WeakSet");if(function(e){if(!Qs||!e||"object"!=typeof e)return!1;try{return Qs.call(e),!0}catch(e){}return!1}(t))return qc("WeakRef");if(function(e){return"[object Number]"===Oc(e)&&Sc(e)}(t))return Lc(h(Number(t)));if(function(e){if(!e||"object"!=typeof e||!uc)return!1;try{return uc.call(e),!0}catch(e){}return!1}(t))return Lc(h(uc.call(t)));if(function(e){return"[object Boolean]"===Oc(e)&&Sc(e)}(t))return Lc(Js.call(t));if(function(e){return"[object String]"===Oc(e)&&Sc(e)}(t))return Lc(h(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==Ls&&t===Ls)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===Oc(e)&&Sc(e)}(t)&&!Rc(t)){var x=Nc(t,h),E=mc?mc(t)===Object.prototype:t instanceof Object||t.constructor===Object,S=t instanceof Object?"":"null prototype",C=!E&&pc&&Object(t)===t&&pc in t?ec.call(Oc(t),8,-1):S?"Object":"",R=(E||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(C||S?"["+ic.call(ac.call([],C||[],S||[]),": ")+"] ":"");return 0===x.length?R+"{}":d?R+"{"+Mc(x,d)+"}":R+"{ "+ic.call(x,", ")+" }"}return String(t)};function xc(e,t,n){var o=n.quoteStyle||t,r=kc[o];return r+e+r}function Ec(e){return tc.call(String(e),/"/g,"&quot;")}function Sc(e){return!pc||!("object"==typeof e&&(pc in e||void 0!==e[pc]))}function Cc(e){return"[object Array]"===Oc(e)&&Sc(e)}function Rc(e){return"[object RegExp]"===Oc(e)&&Sc(e)}function Tc(e){if(hc)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!dc)return!1;try{return dc.call(e),!0}catch(e){}return!1}var Ic=Object.prototype.hasOwnProperty||function(e){return e in this};function Ac(e,t){return Ic.call(e,t)}function Oc(e){return Xs.call(e)}function jc(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function Pc(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return Pc(ec.call(e,0,t.maxStringLength),t)+o}var r=wc[t.quoteStyle||"single"];return r.lastIndex=0,xc(tc.call(tc.call(e,r,"\\$1"),/[\x00-\x1f]/g,Dc),"single",t)}function Dc(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+nc.call(t.toString(16))}function Lc(e){return"Object("+e+")"}function qc(e){return e+" { ? }"}function zc(e,t,n,o){return e+" ("+t+") {"+(o?Mc(n,o):ic.call(n,", "))+"}"}function Mc(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+ic.call(e,","+n)+"\n"+t.prev}function Nc(e,t){var n=Cc(e),o=[];if(n){o.length=e.length;for(var r=0;r<e.length;r++)o[r]=Ac(e,r)?t(e[r],e):""}var a,i="function"==typeof lc?lc(e):[];if(hc){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var c in e)Ac(e,c)&&(n&&String(Number(c))===c&&c<e.length||hc&&a["$"+c]instanceof Symbol||(rc.call(/[^\w$]/,c)?o.push(t(c,e)+": "+t(e[c],e)):o.push(c+": "+t(e[c],e))));if("function"==typeof lc)for(var u=0;u<i.length;u++)fc.call(e,i[u])&&o.push("["+t(i[u])+"]: "+t(e[i[u]],e));return o}var Uc=_c,Bc=zs,Fc=function(e,t,n){for(var o,r=e;null!=(o=r.next);r=o)if(o.key===t)return r.next=o.next,n||(o.next=e.next,e.next=o),o},Wc=Object,Gc=Error,Hc=EvalError,Vc=RangeError,$c=ReferenceError,Kc=SyntaxError,Qc=URIError,Jc=Math.abs,Xc=Math.floor,Yc=Math.max,Zc=Math.min,eu=Math.pow,tu=Math.round,nu=Number.isNaN||function(e){return e!=e},ou=Object.getOwnPropertyDescriptor;if(ou)try{ou([],"length")}catch(e){ou=null}var ru=ou,au=Object.defineProperty||!1;if(au)try{au({},"a",{value:1})}catch(e){au=!1}var iu,su,cu,uu,lu,du,hu,pu,fu,mu,gu,yu,vu,bu,ku,wu,_u=au;function xu(){return du?lu:(du=1,lu="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function Eu(){return pu?hu:(pu=1,hu=Wc.getPrototypeOf||null)}function Su(){if(mu)return fu;mu=1;var e=Object.prototype.toString,t=Math.max,n=function(e,t){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var r=0;r<t.length;r+=1)n[r+e.length]=t[r];return n};return fu=function(o){var r=this;if("function"!=typeof r||"[object Function]"!==e.apply(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var a,i=function(e,t){for(var n=[],o=t||0,r=0;o<e.length;o+=1,r+=1)n[r]=e[o];return n}(arguments,1),s=t(0,r.length-i.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(a=Function("binder","return function ("+function(e,t){for(var n="",o=0;o<e.length;o+=1)n+=e[o],o+1<e.length&&(n+=t);return n}(c,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var e=r.apply(this,n(i,arguments));return Object(e)===e?e:this}return r.apply(o,n(i,arguments))}),r.prototype){var l=function(){};l.prototype=r.prototype,a.prototype=new l,l.prototype=null}return a},fu}function Cu(){if(yu)return gu;yu=1;var e=Su();return gu=Function.prototype.bind||e}function Ru(){return bu?vu:(bu=1,vu=Function.prototype.call)}function Tu(){return wu?ku:(wu=1,ku=Function.prototype.apply)}var Iu,Au,Ou,ju,Pu,Du,Lu,qu="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,zu=Cu(),Mu=Tu(),Nu=Ru(),Uu=qu||zu.call(Nu,Mu),Bu=Cu(),Fu=zs,Wu=Ru(),Gu=Uu,Hu=function(e){if(e.length<1||"function"!=typeof e[0])throw new Fu("a function is required");return Gu(Bu,Wu,e)};var Vu=Wc,$u=Gc,Ku=Hc,Qu=Vc,Ju=$c,Xu=Kc,Yu=zs,Zu=Qc,el=Jc,tl=Xc,nl=Yc,ol=Zc,rl=eu,al=tu,il=function(e){return nu(e)||0===e?e:e<0?-1:1},sl=Function,cl=function(e){try{return sl('"use strict"; return ('+e+").constructor;")()}catch(e){}},ul=ru,ll=_u,dl=function(){throw new Yu},hl=ul?function(){try{return dl}catch(e){try{return ul(arguments,"callee").get}catch(e){return dl}}}():dl,pl=function(){if(uu)return cu;uu=1;var e="undefined"!=typeof Symbol&&Symbol,t=su?iu:(su=1,iu=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var o in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0});return cu=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),fl=function(){if(ju)return Ou;ju=1;var e=xu(),t=Eu(),n=function(){if(Au)return Iu;Au=1;var e,t=Hu,n=ru;try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var o=!!e&&n&&n(Object.prototype,"__proto__"),r=Object,a=r.getPrototypeOf;return Iu=o&&"function"==typeof o.get?t([o.get]):"function"==typeof a&&function(e){return a(null==e?e:r(e))}}();return Ou=e?function(t){return e(t)}:t?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}:n?function(e){return n(e)}:null}(),ml=Eu(),gl=xu(),yl=Tu(),vl=Ru(),bl={},kl="undefined"!=typeof Uint8Array&&fl?fl(Uint8Array):Lu,wl={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?Lu:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Lu:ArrayBuffer,"%ArrayIteratorPrototype%":pl&&fl?fl([][Symbol.iterator]()):Lu,"%AsyncFromSyncIteratorPrototype%":Lu,"%AsyncFunction%":bl,"%AsyncGenerator%":bl,"%AsyncGeneratorFunction%":bl,"%AsyncIteratorPrototype%":bl,"%Atomics%":"undefined"==typeof Atomics?Lu:Atomics,"%BigInt%":"undefined"==typeof BigInt?Lu:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?Lu:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?Lu:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Lu:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$u,"%eval%":eval,"%EvalError%":Ku,"%Float16Array%":"undefined"==typeof Float16Array?Lu:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?Lu:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Lu:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Lu:FinalizationRegistry,"%Function%":sl,"%GeneratorFunction%":bl,"%Int8Array%":"undefined"==typeof Int8Array?Lu:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Lu:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Lu:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":pl&&fl?fl(fl([][Symbol.iterator]())):Lu,"%JSON%":"object"==typeof JSON?JSON:Lu,"%Map%":"undefined"==typeof Map?Lu:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&pl&&fl?fl((new Map)[Symbol.iterator]()):Lu,"%Math%":Math,"%Number%":Number,"%Object%":Vu,"%Object.getOwnPropertyDescriptor%":ul,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Lu:Promise,"%Proxy%":"undefined"==typeof Proxy?Lu:Proxy,"%RangeError%":Qu,"%ReferenceError%":Ju,"%Reflect%":"undefined"==typeof Reflect?Lu:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Lu:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&pl&&fl?fl((new Set)[Symbol.iterator]()):Lu,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Lu:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":pl&&fl?fl(""[Symbol.iterator]()):Lu,"%Symbol%":pl?Symbol:Lu,"%SyntaxError%":Xu,"%ThrowTypeError%":hl,"%TypedArray%":kl,"%TypeError%":Yu,"%Uint8Array%":"undefined"==typeof Uint8Array?Lu:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Lu:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Lu:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Lu:Uint32Array,"%URIError%":Zu,"%WeakMap%":"undefined"==typeof WeakMap?Lu:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Lu:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Lu:WeakSet,"%Function.prototype.call%":vl,"%Function.prototype.apply%":yl,"%Object.defineProperty%":ll,"%Object.getPrototypeOf%":ml,"%Math.abs%":el,"%Math.floor%":tl,"%Math.max%":nl,"%Math.min%":ol,"%Math.pow%":rl,"%Math.round%":al,"%Math.sign%":il,"%Reflect.getPrototypeOf%":gl};if(fl)try{null.error}catch(e){var _l=fl(fl(e));wl["%Error.prototype%"]=_l}var xl,El,Sl,Cl,Rl,Tl,Il,Al,Ol,jl,Pl,Dl,Ll=function e(t){var n;if("%AsyncFunction%"===t)n=cl("async function () {}");else if("%GeneratorFunction%"===t)n=cl("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=cl("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&fl&&(n=fl(r.prototype))}return wl[t]=n,n},ql={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},zl=Cu(),Ml=function(){if(Du)return Pu;Du=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=Cu();return Pu=n.call(e,t)}(),Nl=zl.call(vl,Array.prototype.concat),Ul=zl.call(yl,Array.prototype.splice),Bl=zl.call(vl,String.prototype.replace),Fl=zl.call(vl,String.prototype.slice),Wl=zl.call(vl,RegExp.prototype.exec),Gl=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Hl=/\\(\\)?/g,Vl=function(e,t){var n,o=e;if(Ml(ql,o)&&(o="%"+(n=ql[o])[0]+"%"),Ml(wl,o)){var r=wl[o];if(r===bl&&(r=Ll(o)),void 0===r&&!t)throw new Yu("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:r}}throw new Xu("intrinsic "+e+" does not exist!")},$l=function(e,t){if("string"!=typeof e||0===e.length)throw new Yu("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Yu('"allowMissing" argument must be a boolean');if(null===Wl(/^%?[^%]*%?$/,e))throw new Xu("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=Fl(e,0,1),n=Fl(e,-1);if("%"===t&&"%"!==n)throw new Xu("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new Xu("invalid intrinsic syntax, expected opening `%`");var o=[];return Bl(e,Gl,function(e,t,n,r){o[o.length]=n?Bl(r,Hl,"$1"):t||e}),o}(e),o=n.length>0?n[0]:"",r=Vl("%"+o+"%",t),a=r.name,i=r.value,s=!1,c=r.alias;c&&(o=c[0],Ul(n,Nl([0,1],c)));for(var u=1,l=!0;u<n.length;u+=1){var d=n[u],h=Fl(d,0,1),p=Fl(d,-1);if(('"'===h||"'"===h||"`"===h||'"'===p||"'"===p||"`"===p)&&h!==p)throw new Xu("property names with quotes must have matching quotes");if("constructor"!==d&&l||(s=!0),Ml(wl,a="%"+(o+="."+d)+"%"))i=wl[a];else if(null!=i){if(!(d in i)){if(!t)throw new Yu("base intrinsic for "+e+" exists, but the property is not available.");return}if(ul&&u+1>=n.length){var f=ul(i,d);i=(l=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:i[d]}else l=Ml(i,d),i=i[d];l&&!s&&(wl[a]=i)}}return i},Kl=$l,Ql=Hu,Jl=Ql([Kl("%String.prototype.indexOf%")]),Xl=function(e,t){var n=Kl(e,!!t);return"function"==typeof n&&Jl(e,".prototype.")>-1?Ql([n]):n},Yl=Xl,Zl=_c,ed=zs,td=$l("%Map%",!0),nd=Yl("Map.prototype.get",!0),od=Yl("Map.prototype.set",!0),rd=Yl("Map.prototype.has",!0),ad=Yl("Map.prototype.delete",!0),id=Yl("Map.prototype.size",!0),sd=!!td&&function(){var e,t={assert:function(e){if(!t.has(e))throw new ed("Side channel does not contain "+Zl(e))},delete:function(t){if(e){var n=ad(e,t);return 0===id(e)&&(e=void 0),n}return!1},get:function(t){if(e)return nd(e,t)},has:function(t){return!!e&&rd(e,t)},set:function(t,n){e||(e=new td),od(e,t,n)}};return t},cd=Xl,ud=_c,ld=sd,dd=zs,hd=$l("%WeakMap%",!0),pd=cd("WeakMap.prototype.get",!0),fd=cd("WeakMap.prototype.set",!0),md=cd("WeakMap.prototype.has",!0),gd=cd("WeakMap.prototype.delete",!0),yd=zs,vd=_c,bd=(hd?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new dd("Side channel does not contain "+ud(e))},delete:function(n){if(hd&&n&&("object"==typeof n||"function"==typeof n)){if(e)return gd(e,n)}else if(ld&&t)return t.delete(n);return!1},get:function(n){return hd&&n&&("object"==typeof n||"function"==typeof n)&&e?pd(e,n):t&&t.get(n)},has:function(n){return hd&&n&&("object"==typeof n||"function"==typeof n)&&e?md(e,n):!!t&&t.has(n)},set:function(n,o){hd&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new hd),fd(e,n,o)):ld&&(t||(t=ld()),t.set(n,o))}};return n}:ld)||sd||function(){var e,t={assert:function(e){if(!t.has(e))throw new Bc("Side channel does not contain "+Uc(e))},delete:function(t){var n=e&&e.next,o=function(e,t){if(e)return Fc(e,t,!0)}(e,t);return o&&n&&n===o&&(e=void 0),!!o},get:function(t){return function(e,t){if(e){var n=Fc(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!Fc(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var o=Fc(e,t);o?o.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t},kd=String.prototype.replace,wd=/%20/g,_d="RFC3986",xd={default:_d,formatters:{RFC1738:function(e){return kd.call(e,wd,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:_d},Ed=xd,Sd=Object.prototype.hasOwnProperty,Cd=Array.isArray,Rd=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Td=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(n[o]=e[o]);return n},Id=1024,Ad={arrayToObject:Td,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var r=t[o],a=r.obj[r.prop],i=Object.keys(a),s=0;s<i.length;++s){var c=i[s],u=a[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Cd(n)){for(var o=[],r=0;r<n.length;++r)void 0!==n[r]&&o.push(n[r]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,n){var o=e.replace(/\+/g," ");if("iso-8859-1"===n)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,n,o,r){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var i="",s=0;s<a.length;s+=Id){for(var c=a.length>=Id?a.slice(s,s+Id):a,u=[],l=0;l<c.length;++l){var d=c.charCodeAt(l);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||r===Ed.RFC1738&&(40===d||41===d)?u[u.length]=c.charAt(l):d<128?u[u.length]=Rd[d]:d<2048?u[u.length]=Rd[192|d>>6]+Rd[128|63&d]:d<55296||d>=57344?u[u.length]=Rd[224|d>>12]+Rd[128|d>>6&63]+Rd[128|63&d]:(l+=1,d=65536+((1023&d)<<10|1023&c.charCodeAt(l)),u[u.length]=Rd[240|d>>18]+Rd[128|d>>12&63]+Rd[128|d>>6&63]+Rd[128|63&d])}i+=u.join("")}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(Cd(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(t(e[o]));return n}return t(e)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(Cd(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!Sd.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var r=t;return Cd(t)&&!Cd(n)&&(r=Td(t,o)),Cd(t)&&Cd(n)?(n.forEach(function(n,r){if(Sd.call(t,r)){var a=t[r];a&&"object"==typeof a&&n&&"object"==typeof n?t[r]=e(a,n,o):t.push(n)}else t[r]=n}),t):Object.keys(n).reduce(function(t,r){var a=n[r];return Sd.call(t,r)?t[r]=e(t[r],a,o):t[r]=a,t},r)}},Od=function(){var e,t={assert:function(e){if(!t.has(e))throw new yd("Side channel does not contain "+vd(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=bd()),e.set(t,n)}};return t},jd=Ad,Pd=xd,Dd=Object.prototype.hasOwnProperty,Ld={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},qd=Array.isArray,zd=Array.prototype.push,Md=function(e,t){zd.apply(e,qd(t)?t:[t])},Nd=Date.prototype.toISOString,Ud=Pd.default,Bd={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:jd.encode,encodeValuesOnly:!1,format:Ud,formatter:Pd.formatters[Ud],indices:!1,serializeDate:function(e){return Nd.call(e)},skipNulls:!1,strictNullHandling:!1},Fd={},Wd=function e(t,n,o,r,a,i,s,c,u,l,d,h,p,f,m,g,y,v){for(var b,k=t,w=v,_=0,x=!1;void 0!==(w=w.get(Fd))&&!x;){var E=w.get(t);if(_+=1,void 0!==E){if(E===_)throw new RangeError("Cyclic object value");x=!0}void 0===w.get(Fd)&&(_=0)}if("function"==typeof l?k=l(n,k):k instanceof Date?k=p(k):"comma"===o&&qd(k)&&(k=jd.maybeMap(k,function(e){return e instanceof Date?p(e):e})),null===k){if(i)return u&&!g?u(n,Bd.encoder,y,"key",f):n;k=""}if("string"==typeof(b=k)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||jd.isBuffer(k))return u?[m(g?n:u(n,Bd.encoder,y,"key",f))+"="+m(u(k,Bd.encoder,y,"value",f))]:[m(n)+"="+m(String(k))];var S,C=[];if(void 0===k)return C;if("comma"===o&&qd(k))g&&u&&(k=jd.maybeMap(k,u)),S=[{value:k.length>0?k.join(",")||null:void 0}];else if(qd(l))S=l;else{var R=Object.keys(k);S=d?R.sort(d):R}var T=c?n.replace(/\./g,"%2E"):n,I=r&&qd(k)&&1===k.length?T+"[]":T;if(a&&qd(k)&&0===k.length)return I+"[]";for(var A=0;A<S.length;++A){var O=S[A],j="object"==typeof O&&void 0!==O.value?O.value:k[O];if(!s||null!==j){var P=h&&c?O.replace(/\./g,"%2E"):O,D=qd(k)?"function"==typeof o?o(I,P):I:I+(h?"."+P:"["+P+"]");v.set(t,_);var L=Od();L.set(Fd,v),Md(C,e(j,D,o,r,a,i,s,c,"comma"===o&&g&&qd(k)?null:u,l,d,h,p,f,m,g,y,L))}}return C},Gd=Ad,Hd=Object.prototype.hasOwnProperty,Vd=Array.isArray,$d={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Gd.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},Kd=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},Qd=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Jd=function(e,t,n,o){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,i=n.depth>0&&/(\[[^[\]]*])/.exec(r),s=i?r.slice(0,i.index):r,c=[];if(s){if(!n.plainObjects&&Hd.call(Object.prototype,s)&&!n.allowPrototypes)return;c.push(s)}for(var u=0;n.depth>0&&null!==(i=a.exec(r))&&u<n.depth;){if(u+=1,!n.plainObjects&&Hd.call(Object.prototype,i[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(i[1])}if(i){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");c.push("["+r.slice(i.index)+"]")}return function(e,t,n,o){for(var r=o?t:Qd(t,n),a=e.length-1;a>=0;--a){var i,s=e[a];if("[]"===s&&n.parseArrays)i=n.allowEmptyArrays&&(""===r||n.strictNullHandling&&null===r)?[]:[].concat(r);else{i=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,l=parseInt(u,10);n.parseArrays||""!==u?!isNaN(l)&&s!==u&&String(l)===u&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(i=[])[l]=r:"__proto__"!==u&&(i[u]=r):i={0:r}}r=i}return r}(c,t,n,o)}},Xd=function(e,t){var n,o=e,r=function(e){if(!e)return Bd;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||Bd.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Pd.default;if(void 0!==e.format){if(!Dd.call(Pd.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o,r=Pd.formatters[n],a=Bd.filter;if(("function"==typeof e.filter||qd(e.filter))&&(a=e.filter),o=e.arrayFormat in Ld?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":Bd.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var i=void 0===e.allowDots?!0===e.encodeDotInKeys||Bd.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Bd.addQueryPrefix,allowDots:i,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Bd.allowEmptyArrays,arrayFormat:o,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Bd.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?Bd.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Bd.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:Bd.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:Bd.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Bd.encodeValuesOnly,filter:a,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Bd.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Bd.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Bd.strictNullHandling}}(t);"function"==typeof r.filter?o=(0,r.filter)("",o):qd(r.filter)&&(n=r.filter);var a=[];if("object"!=typeof o||null===o)return"";var i=Ld[r.arrayFormat],s="comma"===i&&r.commaRoundTrip;n||(n=Object.keys(o)),r.sort&&n.sort(r.sort);for(var c=Od(),u=0;u<n.length;++u){var l=n[u];r.skipNulls&&null===o[l]||Md(a,Wd(o[l],l,i,s,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,c))}var d=a.join(r.delimiter),h=!0===r.addQueryPrefix?"?":"";return r.charsetSentinel&&("iso-8859-1"===r.charset?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),d.length>0?h+d:""},Yd=function(e,t){var n=function(e){if(!e)return $d;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?$d.charset:e.charset,n=void 0===e.duplicates?$d.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||$d.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:$d.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:$d.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:$d.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:$d.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:$d.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:$d.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:$d.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:$d.decoder,delimiter:"string"==typeof e.delimiter||Gd.isRegExp(e.delimiter)?e.delimiter:$d.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:$d.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:$d.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:$d.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:$d.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:$d.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:$d.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var o="string"==typeof e?function(e,t){var n={__proto__:null},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var r,a=t.parameterLimit===1/0?void 0:t.parameterLimit,i=o.split(t.delimiter,a),s=-1,c=t.charset;if(t.charsetSentinel)for(r=0;r<i.length;++r)0===i[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===i[r]?c="utf-8":"utf8=%26%2310003%3B"===i[r]&&(c="iso-8859-1"),s=r,r=i.length);for(r=0;r<i.length;++r)if(r!==s){var u,l,d=i[r],h=d.indexOf("]="),p=-1===h?d.indexOf("="):h+1;-1===p?(u=t.decoder(d,$d.decoder,c,"key"),l=t.strictNullHandling?null:""):(u=t.decoder(d.slice(0,p),$d.decoder,c,"key"),l=Gd.maybeMap(Qd(d.slice(p+1),t),function(e){return t.decoder(e,$d.decoder,c,"value")})),l&&t.interpretNumericEntities&&"iso-8859-1"===c&&(l=Kd(l)),d.indexOf("[]=")>-1&&(l=Vd(l)?[l]:l);var f=Hd.call(n,u);f&&"combine"===t.duplicates?n[u]=Gd.combine(n[u],l):f&&"last"!==t.duplicates||(n[u]=l)}return n}(e,n):e,r=n.plainObjects?Object.create(null):{},a=Object.keys(o),i=0;i<a.length;++i){var s=a[i],c=Jd(s,o[s],n,"string"==typeof e);r=Gd.merge(r,c,n)}return!0===n.allowSparse?r:Gd.compact(r)},Zd={formats:xd,parse:Yd,stringify:Xd},eh={withCredentials:!0,timeout:9e4,baseURL:"https://jsonplaceholder.typicode.com/",headers:{"Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache","Content-Type":"application/json",Accept:"application/json"},paramsSerializer:function(e){return Zd.stringify(e,{indices:!1})}};!function(e){var t,n;(t=e.NotificationStatus||(e.NotificationStatus={})).SETTLED="SETTLED",t.NOT_SETTLED="NOT_SETTLED",(n=e.NotificationReason||(e.NotificationReason={})).REFUNDED="REFUNDED",n.RESOLVED="RESOLVED",n.CANCELLED="CANCELLED",n.SERVICE_SUSPENDED="SERVICE_SUSPENDED",n.ORDER_STOPPED="ORDER_STOPPED",n.DISMISS="DISMISS"}(xl||(xl={})),function(e){e.PAYMENTS="payments",e.INSIGHTS="insights"}(El||(El={})),function(e){var t;(t=e.CustomClaims||(e.CustomClaims={})).ORGANIZATION_CODE="https://dashboard.dev.y.uno/organization_code",t.USER_CODE="https://dashboard.dev.y.uno/user_code",t.USER_EMAIL="https://dashboard.dev.y.uno/user_email"}(Sl||(Sl={})),function(e){var t;(t=e.CountryCode||(e.CountryCode={})).COLOMBIA="CO",t.MEXICO="MX",t.BRAZIL="BR",t.ARGENTINA="AR",t.CHILE="CL",t.PERU="PE",t.URUGUAY="UR",t.ECUADOR="EC"}(Cl||(Cl={})),function(e){var t,n;(t=e.Locale||(e.Locale={})).EN="en",t.ES="es",t.PT="pt",(n=e.Target||(e.Target={})).BLANK="_blank",n.PARENT="_parent",n.SELF="_self",n.TOP="_top"}(Rl||(Rl={})),function(e){e.PAYMENTS="PAYMENTS",e.TRANSACTIONS="TRANSACTIONS",e.FRAUD_TRANSACTIONS="FRAUD_TRANSACTIONS",e.PAYOUTS="PAYOUTS"}(Tl||(Tl={})),function(e){e.ALL="ALL",e.DEFAULT="DEFAULT",e.CUSTOM="CUSTOM"}(Il||(Il={})),function(e){var t,n;(t=e.StepType||(e.StepType={})).FRAUD="FRAUD",t.PAYMENT="PAYMENT",t.THREE_D_SECURE="THREE_D_SECURE",t.CYBERSOURCE_3DS="CYBERSOURCE_3DS",(n=e.DeclineGroupType||(e.DeclineGroupType={})).PROVIDER_STATUS="PROVIDER_STATUS",n.MAC_CODE="MAC_CODE"}(Al||(Al={})),function(e){var t;(t=e.InsightsVolumeMetricsV2Path||(e.InsightsVolumeMetricsV2Path={})).REFUNDS_AND_CHARGEBACKS="refunds-and-chargebacks",t.APPROVED_PAYMENTS="approved-payments",t.PAYMENT_METHODS="payment-methods",t.PROVIDERS="providers",t.COUNTRIES="countries",t.UNIQUE_CUSTOMER_PAYMENTS="unique-customer-payments",t.TOTAL_PAYMENTS="total-payments",function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(e.OverviewMetricType||(e.OverviewMetricType={}))}(Ol||(Ol={})),function(e){e.TRANSACTIONS="TRANSACTION_RECONCILIATION",e.SETTLEMENTS="SETTLEMENTS",e.SETTLEMENTS_HEADER="SETTLEMENTS_HEADER",e.AGENDA="AGENDA",e.SALES_CONCILIATION="SALES_CONCILIATION",e.ADVANCEMENTS="ADVANCEMENTS",e.FEES="FEES"}(jl||(jl={})),function(e){e.TOTAL_AMOUNT="AGENDA_TOTAL_AMOUNT",e.DAILY="AGENDA_DAILY_DISTRIBUTION",e.PAYMENT_METHOD="AGENDA_PAYMENT_METHOD_DISTRIBUTION",e.CARD_BRAND="AGENDA_CARD_BRAND_DISTRIBUTION"}(Pl||(Pl={})),function(e){var t;(t=e.AIGenerateStatus||(e.AIGenerateStatus={})).ACCEPTED="ACCEPTED",t.REFUSED="REFUSED",t.FRONT_FAILED="FRONT_FAILED"}(Dl||(Dl={}));var th=["PAUSED","ACTIVE"],nh={PAUSED:"pause",DELETED:"delete",ACTIVE:"unpause"},oh="DELETED",rh={CR_CARD_BIN:"bin",CR_CARD_BRAND:"brand",CR_CARD_ISSUER_NAME:"issuer-name",CR_CARD_TYPE:"type",CR_FALLBACK:"fallback"},ah=function(e){return!(null==e?void 0:e.data)||"string"==typeof(null==e?void 0:e.data)&&""===(null==e?void 0:e.data)},ih=[{status:"CREATED",sub_status:"CREATED",icon:"FlagBanner",type:"info",label:"Created",sub_status_icon:"FlagBanner",sub_status_label:"Created"},{status:"CREATED",sub_status:"REJECTED",icon:"WarningCircle",type:"error",label:"Created",sub_status_icon:"WarningCircle",sub_status_label:"Rejected"},{status:"ERROR",sub_status:"CREATED",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Created"},{status:"ERROR",sub_status:"ERROR",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Error"},{status:"ERROR",sub_status:"TIMEOUT",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Timeout"},{status:"ERROR",sub_status:"PENDING_REVERSE",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Pending reverse"},{status:"ERROR",sub_status:"REVERSED_BY_TIMEOUT",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Reversed by timeout"},{status:"SUCCEEDED",sub_status:"CREATED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Created"},{status:"SUCCEEDED",sub_status:"PARTIALLY_APPROVED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially approved"},{status:"SUCCEEDED",sub_status:"APPROVED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Approved"},{status:"SUCCEEDED",sub_status:"CAPTURED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Captured"},{status:"SUCCEEDED",sub_status:"PARTIALLY_CAPTURED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially captured"},{status:"SUCCEEDED",sub_status:"PARTIALLY_REFUNDED",icon:"ArrowCircleLeft",type:"success",label:"Succeeded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Partially refunded"},{status:"CANCELED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Canceled",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"CANCELED",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"info",label:"Cancellation pending",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"CANCELED",sub_status:"CANCELED",icon:"Prohibit",type:"error",label:"Canceled",sub_status_icon:"Prohibit",sub_status_label:"Canceled"},{status:"DECLINED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"DECLINED",sub_status:"DECLINED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Declined"},{status:"REJECTED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"REJECTED",sub_status:"REJECTED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Rejected"},{status:"REFUNDED",sub_status:"CREATED",icon:"ArrowCircleLeft",type:"secondary",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Created"},{status:"REFUNDED",sub_status:"PARTIALLY_REFUNDED",icon:"ArrowCircleLeft",type:"success",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Partially refunded"},{status:"REFUNDED",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"secondary",label:"Refunded",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"REFUNDED",sub_status:"REFUNDED",icon:"ArrowCircleLeft",type:"secondary",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Refunded"},{status:"PENDING",sub_status:"CREATED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Created"},{status:"PENDING",sub_status:"AUTHORIZED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Authorized"},{status:"PENDING",sub_status:"WAITING_ADDITIONAL_STEP",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Waiting additional step"},{status:"PENDING",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"VERIFIED",sub_status:"CREATED",icon:"CheckCircle",type:"success",label:"Verified",sub_status_icon:"CheckCircle",sub_status_label:"Created"},{status:"VERIFIED",sub_status:"VERIFIED",icon:"CheckCircle",type:"success",label:"Verified",sub_status_icon:"CheckCircle",sub_status_label:"Verified"},{status:"READY_TO_PAY",sub_status:"CREATED",icon:"FlagBanner",type:"info",label:"Ready to pay",sub_status_icon:"FlagBanner",sub_status_label:"Created"},{status:"READY_TO_PAY",sub_status:"READY_TO_PAY",icon:"FlagBanner",type:"info",label:"Ready to pay",sub_status_icon:"FlagBanner",sub_status_label:"Ready to pay"},{status:"EXPIRED",sub_status:"CREATED",icon:"Clock",type:"error",label:"Expired",sub_status_icon:"Clock",sub_status_label:"Created"},{status:"EXPIRED",sub_status:"EXPIRED",icon:"Clock",type:"error",label:"Expired",sub_status_icon:"Clock",sub_status_label:"Expired"},{status:"PENDING",sub_status:"IN_PROCESS",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"In process"},{status:"PENDING",sub_status:"PENDING_FRAUD_REVIEW",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Pending fraud review"},{status:"REJECTED",sub_status:"FRAUD_DECLINED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"DECLINED",sub_status:"FRAUD_DECLINED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"FRAUD_VERIFIED",sub_status:"FRAUD_SCREENING_VERIFIED",icon:"CheckCircle",type:"success",label:"Fraud verified",sub_status_icon:"CheckCircle",sub_status_label:"Fraud screening verified"},{status:"SUCCEEDED",sub_status:"PARTIALLY_CHARGEBACKED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially chargebacked"},{status:"IN_DISPUTE",sub_status:"RECEIVED",icon:"ArrowCircleLeft",type:"secondary",label:"In dispute",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Received"},{status:"IN_DISPUTE",sub_status:"PENDING_REVIEW",icon:"ArrowCircleLeft",type:"secondary",label:"In dispute",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Pending review"},{status:"CHARGEBACK",sub_status:"LOST",icon:"Prohibit",type:"error",label:"Chargeback",sub_status_icon:"Prohibit",sub_status_label:"Lost"},{status:"SUCCEEDED",sub_status:"VERIFIED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Verified"},{status:"SUCCEEDED",sub_status:"FRAUD_DECLINED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"PENDING",sub_status:"FRAUD_DECLINED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"}],sh=[{status:"SUCCEEDED",icon:"CheckCircle",type:"success",label:"Succeeded"},{status:"CREATED",icon:"FlagBanner",type:"info",label:"Created"},{status:"ERROR",icon:"WarningCircle",type:"error",label:"Error"},{status:"EXPIRED",icon:"Clock",type:"error",label:"Expired"},{status:"CANCELED",icon:"Prohibit",type:"error",label:"Canceled"},{status:"DECLINED",icon:"Prohibit",type:"error",label:"Declined"},{status:"PENDING",icon:"Clock",type:"warning",label:"Pending"},{status:"REJECTED",icon:"Prohibit",type:"error",label:"Rejected"},{status:"WON",icon:"CheckCircle",type:"success",label:"Won"},{status:"LOST",icon:"WarningCircle",type:"error",label:"Lost"}],ch=[{id:1,status:"RECONCILED",sub_status:"AUTOMATICALLY",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Automatically",sub_status_icon:"CheckCircle"},{id:2,status:"RECONCILED",sub_status:"MANUALLY",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Manually",sub_status_icon:"CheckCircle"},{id:3,status:"NOT_RECONCILED",sub_status:"PENDING",type:"warning",label:"Not reconciled",icon:"Clock",sub_status_label:"Pending",sub_status_icon:"Clock"},{id:4,status:"NOT_RECONCILED",sub_status:"MISSING",type:"warning",label:"Not reconciled",icon:"Clock",sub_status_label:"Missing",sub_status_icon:"Clock"},{id:5,status:"RECONCILED",sub_status:"STATUS_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Status conflict",sub_status_icon:"CheckCircle"},{id:6,status:"RECONCILED",sub_status:"DATE_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Date conflict",sub_status_icon:"CheckCircle"},{id:7,status:"RECONCILED",sub_status:"AMOUNT_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Amount conflict",sub_status_icon:"CheckCircle"},{id:8,status:"RECONCILING_INSTALLMENTS",sub_status:"PENDING_INSTALLMENTS",type:"warning",label:"Reconciling installments",icon:"Clock",sub_status_label:"Pending installments",sub_status_icon:"Clock"},{id:9,status:"NON_RECONCILABLE",sub_status:"AUTOMATICALLY",type:"warning",label:"Non Reconciliable",icon:"Clock",sub_status_label:"Automatically",sub_status_icon:"Clock"}],uh=[{identifier:"America/Argentina/Buenos_Aires",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Asuncion",utc_offset:{dst:"-04:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Bogota",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Caracas",utc_offset:{dst:"-04:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Chicago",utc_offset:{dst:"-05:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Costa_Rica",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/El_Salvador",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Guatemala",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Guayaquil",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Havana",utc_offset:{dst:"-05:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/La_Paz",utc_offset:{dst:"-04:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Lima",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Managua",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Mexico_City",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Montevideo",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Panama",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Phoenix",utc_offset:{dst:"-07:00",std:"-07:00"},abbreviation:{dst:"GMT",std:"-7"}},{identifier:"America/Santiago",utc_offset:{dst:"-04:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Sao_Paulo",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Tegucigalpa",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"Asia/Famagusta",utc_offset:{dst:"+02:00",std:"+03:00"},abbreviation:{dst:"EET",std:""}},{identifier:"Asia/Seoul",utc_offset:{dst:"+09:00",std:"+09:00"},abbreviation:{dst:"KST",std:""}},{identifier:"Asia/Shanghai",utc_offset:{dst:"+08:00",std:"+08:00"},abbreviation:{dst:"CST",std:""}},{identifier:"Asia/Tokyo",utc_offset:{dst:"+09:00",std:"+09:00"},abbreviation:{dst:"JST",std:""}},{identifier:"Australia/Sydney",utc_offset:{dst:"+10:00",std:"+11:00"},abbreviation:{dst:"AEST",std:""}},{identifier:"Coordinated Universal Time",utc_offset:{dst:"+00:00",std:"+00:00"},abbreviation:{dst:"UTC",std:""}},{identifier:"Europe/Madrid",utc_offset:{dst:"+01:00",std:"+01:00"},abbreviation:{dst:"GMT",std:"+1"}},{identifier:"Europe/Moscow",utc_offset:{dst:"+03:00",std:"+03:00"},abbreviation:{dst:"MSK",std:""}},{identifier:"India",utc_offset:{dst:"+03:00",std:"+03:00"},abbreviation:{dst:"IST",std:""}}],lh=[{id:1,value:"ACCOUNTS",type:"source"},{id:2,value:"CHECKOUT",type:"source"},{id:3,value:"CREATE",type:"event"},{id:4,value:"UPDATE",type:"event"},{id:5,value:"CONNECTIONS",type:"source"},{id:6,value:"ROLES",type:"source"},{id:7,value:"ROUTING",type:"source"},{id:8,value:"TEAMS",type:"source"},{id:9,value:"WEBHOOKS",type:"source"},{id:10,value:"PAYMENT_LINKS",type:"source"},{id:11,value:"DELETE",type:"event"}],dh={docs_url:"https://docs.y.uno/reference/api-reference-overview"},hh={en:[{text:"Home",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"en",submenues:null},{text:"Payments",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"en",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Payment links",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Connections",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"en",submenues:null},{text:"Reconciliations",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"en",submenues:null},{text:"Routing",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"en",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"en",submenues:null},{text:"Developers",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"SUPPORT",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"en",submenues:null},{text:"API Reference",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"en",submenues:null},{text:"Audit logs",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"en",submenues:null}],pt:[{text:"Pagamentos",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"pt",submenues:null},{text:"Início",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"pt",submenues:null},{text:"ASSISTÊNCIA",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"pt",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"pt",submenues:null},{text:"Programadores",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Links de pagamento",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Reconciliações",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"pt",submenues:null},{text:"Auditoria",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"API referência",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"pt",submenues:null},{text:"Conexões",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"pt",submenues:null},{text:"Roteamento",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"pt",submenues:null}],es:[{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"es",submenues:null},{text:"Inicio",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Pagos",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"es",submenues:null},{text:"Ruteo",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"es",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"es",submenues:null},{text:"Desarrolladores",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Registros de auditoria",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"ASISTENCIA",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"es",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Documentación de la API",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"es",submenues:null},{text:"Enlaces de pago",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Conexiones",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"es",submenues:null},{text:"Conciliaciones",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"es",submenues:null}]},ph=[{code:"en",name:"English (en)"},{code:"es",name:"Spanish (es)"},{code:"pt",name:"Portuguese (pt)"}];const fh=[];for(let e=0;e<256;++e)fh.push((e+256).toString(16).slice(1));let mh;const gh=new Uint8Array(16);var yh={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function vh(e,t,n){if(yh.randomUUID&&!t&&!e)return yh.randomUUID();const o=(e=e||{}).random??e.rng?.()??function(){if(!mh){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");mh=crypto.getRandomValues.bind(crypto)}return mh(gh)}();if(o.length<16)throw new Error("Random bytes length must be >= 16");if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=o[e];return t}return function(e,t=0){return(fh[e[t+0]]+fh[e[t+1]]+fh[e[t+2]]+fh[e[t+3]]+"-"+fh[e[t+4]]+fh[e[t+5]]+"-"+fh[e[t+6]]+fh[e[t+7]]+"-"+fh[e[t+8]]+fh[e[t+9]]+"-"+fh[e[t+10]]+fh[e[t+11]]+fh[e[t+12]]+fh[e[t+13]]+fh[e[t+14]]+fh[e[t+15]]).toLowerCase()}(o)}var bh=function(e){return{account_codes:e&&(null==e?void 0:e.length)>0?null==e?void 0:e.split(","):[]}},kh=function(e){function i(t){var n=t?r(r({},eh),t):eh;return e.call(this,n)||this}return o(i,e),i.prototype.simulateAxiosError=function(){return new Promise(function(e,t){t({name:"AxiosError"})})},i.prototype.updateReconciliationReportTemplate=function(e){var t=e.type===jl.TRANSACTIONS?"TRANSACTIONS":e.type,n=r(r({},e),{type:t});return this.put("/v1/reconciliation/reports/templates",n)},i.prototype.createReconciliationReportTemplate=function(e){var t=e.type===jl.TRANSACTIONS?"TRANSACTIONS":e.type,n=r(r({},e),{type:t});return this.post("/v1/reconciliation/reports/templates",n)},i.prototype.getReconciliationTransactions=function(e){var t=e.account_code;return delete e.account_code,this.post("v2/reconciliation/transactions",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},i.prototype.getReconciliationSettlements=function(e){var t=e.account_code;return delete e.account_code,this.post("/reconciliation/settlements",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},i.prototype.getReconciliationMetrics=function(e){var t=e.account_code;return delete e.account_code,this.post("/reconciliation/reports",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},i.prototype.getReconciliationFilters=function(){return this.get("/reconciliation/filters")},i.prototype.getReconciliationsReportColumns=function(e,t){return this.get("/v1/reconciliation/reports/columns/".concat(e,"/").concat(t))},i.prototype.getReconciliationReportTemplates=function(){return this.get("/v1/reconciliation/reports/templates")},i.prototype.getAllTableColumns=function(e){return this.get("/v1/reconciliation/table/".concat(e,"/columns"))},i.prototype.getReconciliationActive=function(){return this.get("/v1/reconciliation/status")},i.prototype.getReconciliationAlerts=function(e,t){return this.post("/reconciliation/alerts/list",e,{params:t})},i.prototype.postReconciliationAlert=function(e){return this.post("/reconciliation/alerts",e)},i.prototype.updateReconciliationAlert=function(e){return this.patch("/reconciliation/alerts",e)},i.prototype.deleteReconciliationAlert=function(e){return this.delete("/reconciliation/alerts",{params:e})},i.prototype.getReconciliationAgenda=function(e,t){return this.post("/reconciliation/agenda/list",e,{params:t})},i.prototype.getReconciliationAgendaInsightByKey=function(e,t){return this.post("/reconciliation/agenda/insights",e,{params:t})},i.prototype.getReconciliationSales=function(e,t){return this.post("/reconciliation/sales/list",e,{params:t})},i.prototype.getReconciliationAdvancements=function(e,t){return this.post("/reconciliation/advancements/list",e,{params:t})},i.prototype.getReconciliationFees=function(e,t){return this.post("/reconciliation/fees/list",e,{params:t})},i.prototype.postPaymentsLazy=function(e){var t=e.account_code,n=a(e,["account_code"]);return n.start_date||(n.start_date=new Date),n.end_date||(n.end_date=new Date),this.post("/payments/lazy",{account_codes:(null==t?void 0:t.split(","))||[]},{params:n})},i.prototype.postPayouts=function(e){var t=e.account_code,n=a(e,["account_code"]);return n.start_date||(n.start_date=new Date),n.end_date||(n.end_date=new Date),this.post("/payouts",{account_codes:(null==t?void 0:t.split(","))||[]},{params:n})},i.prototype.getPayoutsFilters=function(e){return this.get("/payouts/filters",{headers:{"x-organization-code":e}})},i.prototype.postPaymentsEvaluated=function(e){e.account_code;var t=a(e,["account_code"]);return t.start_date||(t.start_date=new Date),t.end_date||(t.end_date=new Date),this.post("/payments/evaluated",t)},i.prototype.getPaymentV2=function(e){return this.get("/payments/v2/".concat(e))},i.prototype.postTransactions=function(e){var t=e.account_code,n=a(e,["account_code"]);return this.post("/v2/transactions",{account_codes:(null==t?void 0:t.split(","))||[]},{params:n})},i.prototype.postFraudTransactions=function(e){var t=e.account_code,n=a(e,["account_code"]);return this.post("/fraud-transactions",{account_codes:(null==t?void 0:t.split(","))||[]},{params:n})},i.prototype.getPayoutDetails=function(e){var t={"x-organization-code":e.organization_code};return this.get("/payouts/detail/".concat(e.payout_code),{headers:t})},i.prototype.getPayoutTransactionDetails=function(e){var t={"x-organization-code":e.organization_code};return this.get("/payouts/".concat(e.payout_code,"/transaction/").concat(e.transaction_code,"/detail"),{headers:t})},i.prototype.getPayoutHistoryDetails=function(e,t){var n={"x-organization-code":t};return this.get("/payouts/".concat(e.payout_code,"/history"),{headers:n})},i.prototype.getPaymentMethodsByCountry=function(e,t){var n=e.provider_id,o=e.country,r=localStorage.getItem("x-organization-code"),a={"x-organization-code":t};return this.get("/organizations/provider-params/".concat(n,"/").concat(o),r?{}:{headers:a})},i.prototype.getOrgByName=function(e){return this.post("/organizations/get-by-name",{org_name:e})},i.prototype.createOperationTransaction=function(e,t,n,o){return this.post("/payments/".concat(n,"/transactions/").concat(t,"/").concat(o),e)},i.prototype.getPaymentMethodsAndProviders=function(){return this.get("/payments/payment-methods/providers")},i.prototype.getTransactionDetailsV2=function(e){return this.get("/payments/".concat(e.payment_code,"/transactions/details"),{params:{payment_code:e.payment_code,size:99}})},i.prototype.getTransactionRawResponse=function(e){return this.get("/transactions/".concat(e.transaction_code,"/raw-response"))},i.prototype.uploadChargebacks=function(e,t,n,o){return this.post("/chargebacks/upload-file/payment/".concat(t,"/transaction/").concat(n),e,{onUploadProgress:function(e){o(e.total?Math.round(100*e.loaded/e.total):0)},headers:{"x-account-code":null==e?void 0:e.account_id,"x-idempotency-key":vh()}})},i.prototype.getPaymentTransactionsDetails=function(e){var t=e.transaction_code;return this.get("/transactions/".concat(t,"/details"))},i.prototype.getTransactionHistoryByPaymentCode=function(e){var t=e.payment_code;return this.get("/transactions/by-payment/".concat(t,"/history"))},i.prototype.getDeveloperCredentials=function(e,t){return this.get("/v2/developers/credentials",{headers:{"x-password":e,"x-account-code":t}})},i.prototype.getDeveloperCredentialsValidatePassword=function(e){return this.get("/validate-password",{headers:{"x-password":e}})},i.prototype.getAllowedIps=function(){return this.get("/allowlist-ips")},i.prototype.patchAllowedIps=function(e){return this.patch("/allowlist-ips",e)},i.prototype.getOrganization=function(){return this.get("/organizations",{headers:{"x-organization-code":""}})},i.prototype.getAllOrganization=function(){return this.get("/organizations/all")},i.prototype.getProviderParams=function(e,t){var n,o=localStorage.getItem("x-organization-code"),r={"x-organization-code":o?null===(n=JSON.parse(o))||void 0===n?void 0:n.value:t};return this.get("/organizations/provider-params/".concat(e.id),{headers:r})},i.prototype.getIntegrationByAccountV2=function(e){var t=e.accountCode,n={"x-organization-code":e.organizationCode,"x-account-code":t};return this.post("/connections/my-connections",{account_code:t},{headers:n})},i.prototype.putCosts=function(e){return t(this,void 0,void 0,function(){return n(this,function(t){return[2,this.put("/connections/costs",{costs:[e]})]})})},i.prototype.updateOrganizationStatus=function(){return t(this,void 0,void 0,function(){return n(this,function(e){return[2,this.patch("/organizations/status")]})})},i.prototype.getIntegrationParams=function(e){var t=e.accountCode,n=e.integration_code;return this.get("/connections/integration-params/".concat(n),t?{headers:{"x-account-code":t}}:{})},i.prototype.getConnectionsByPaymentMethod=function(e,o){return t(this,void 0,void 0,function(){return n(this,function(t){return[2,this.get("/organizations/connections/".concat(e,"/").concat(o))]})})},i.prototype.getHashPylon=function(){return this.get("/pylon-hash")},i.prototype.getConnections=function(){return this.get("/connections")},i.prototype.postValidateStatusConnection=function(e){var t=e.payload,n={"x-account-code":e.accountCode};return this.post("/connections/validate-status",t,{headers:n})},i.prototype.postChangeStatusConnection=function(e){var t=e.payload,n=e.accountCode,o="/connections/change-status";if(t.status==oh)return delete t.status,this.delete(o,{data:t});Object.values(th).includes(null==t?void 0:t.status)&&(o="".concat(o,"/").concat(nh[t.status]),delete t.status);var r={"x-account-code":n};return this.post(o,t,{headers:r})},i.prototype.postMultiConnection=function(e){var t=e.payload;return this.post("/connections/multi-accounts",t)},i.prototype.postMultiConnectionValidate=function(){return this.get("/connection/valid-accounts")},i.prototype.patchConnection=function(e){var t,n=e.payload,o=e.connectionCode,a=localStorage.getItem("account"),i=a?null===(t=JSON.parse(a).value)||void 0===t?void 0:t.code:"";return this.patch("/connections/".concat(o),r({account_code:i},n))},i.prototype.postDefaultRoutes=function(e){var t=e.payload;return this.post("/connections/default-routes",t)},i.prototype.getDialogs=function(){return this.get("/dialogs")},i.prototype.getWebhookParamsV2=function(){return this.get("/accounts/webhooks-v2/params-catalog")},i.prototype.getWebhooksV3=function(e){var t=e.accountCode,n=e.name;return this.post("/accounts/webhooks-v2/search",{name:n},{headers:{"x-account-code":t}})},i.prototype.getWebhooksV2Detail=function(e){var t=e.accountCode;return this.get("/accounts/webhooks-v2/detail/".concat(t))},i.prototype.postWebhookV2MultiAccount=function(e){var t=e.payload;return this.post("/accounts/webhooks/multi-account",t)},i.prototype.deleteWebhookV2=function(e,t){return this.delete("/accounts/webhooks-v2/".concat(e,"/").concat(t))},i.prototype.updateWebhookV2=function(e,t,n){return this.patch("/accounts/webhooks-v2/".concat(e,"/").concat(n),t)},i.prototype.getMenu=function(){return this.get("/cms/menu")},i.prototype.postWebhookLogs=function(e){var t=e.payload,n=t.account_code,o=a(t,["account_code"]),r={account_codes:n};return this.post("/v2/webhooks/organization",r,{params:o})},i.prototype.postResendWebhooks=function(e){var t=e.codes;return this.post("/v2/webhooks/organization/resend",{codes:t})},i.prototype.postExportApiLogs=function(e){return this.post("/v1/api-logs/organization/export",e)},i.prototype.postApiLogs=function(e){var t=e.payload,n=t.account_code,o=a(t,["account_code"]),r={account_codes:n};return this.post("/v2/api-logs/organization",r,{params:o})},i.prototype.getApiLogsDetailByPaymentCode=function(e){return this.get("/v2/api-logs/payment/".concat(e,"/details"))},i.prototype.useGetPaymentStatusesStyles=function(){return this.get("/cms/payment/statuses")},i.prototype.useGetTransactionStatusesStyles=function(){return this.get("/cms/transaction/statuses")},i.prototype.useGetReconciliationTransactionStatusesStyles=function(){return this.get("/cms/reconciliation/transaction/statuses")},i.prototype.useGetCountriesConfig=function(){return this.get("/country-data-api/v1/config")},i.prototype.useGetCountriesConfigV2=function(e){var t=e?{"accept-language":e}:{};return this.get("/country-data/v2/config",{params:t})},i.prototype.useGetTimeZoneCatalog=function(){return this.get("/cms/timezone/catalog")},i.prototype.useGetAuditLogsFilters=function(){return this.get("/cms/audit-logs-filters")},i.prototype.getDashboardStaticContents=function(){return this.get("/cms/static-contents")},i.prototype.getLocales=function(){return this.get("/cms/locales")},i.prototype.getSmartRoutingMethods=function(e){return this.get("/smart-routing/methods/".concat(e))},i.prototype.putSmartRoutingToggleMethod=function(e,t,n){return this.put("/smart-routing/methods/".concat(e,"/").concat(t),{active:n})},i.prototype.getSmartRoutingConditionTypes=function(e,t){return this.get("/smart-routing/condition-types/".concat(e,"/").concat(t))},i.prototype.getSmartRoutingConditionPaymentMethod=function(e,t){var n={"x-account-code":e};return this.get("/smart-routing/payment-methods/".concat(t,"/conditions"),{headers:n})},i.prototype.getSmartRoutingConditionTypesValues=function(e,t){return this.get("/smart-routing/condition-types-values/".concat(e,"/").concat(t))},i.prototype.getSmartRoutingNextSteps=function(e,t,n){return this.get("/smart-routing/next-route/".concat(e,"/").concat(t,"/").concat(n))},i.prototype.getSmartRoutingWorkflowVersion=function(e,t){return this.get("/smart-routing/workflow-version/".concat(e,"/").concat(t))},i.prototype.getSmartRoutingWorkflow=function(e,t){return this.get("/smart-routing/workflow/".concat(e,"/").concat(t))},i.prototype.putSmartRoutingUpdateWorkflow=function(e,t){return this.put("/smart-routing/update-workflow/".concat(e),t)},i.prototype.putSmartRoutingUpdateWorkflowName=function(e,t){return this.put("/smart-routing/workflow/".concat(e,"/edit-name"),t)},i.prototype.postSmartRoutingCreateWorkflow=function(e,t){return this.post("/smart-routing/create-workflow/".concat(e),t)},i.prototype.postSmartRoutingPublishVersion=function(e,t,n){var o={"x-organization-code":n};return this.post("/smart-routing/publish-version/".concat(e,"/").concat(t),{},{headers:o})},i.prototype.deleteSmartRoutingVersion=function(e,t){return this.delete("/smart-routing/delete-version/".concat(e,"/").concat(t))},i.prototype.postSmartRoutingDuplicateVersion=function(e,t){return this.post("/smart-routing/duplicate-version/".concat(e,"/").concat(t))},i.prototype.getSmartRoutingDeclinedGroup=function(e){return this.get("/smart-routing/declined-groups/".concat(e))},i.prototype.updateSmartRoutingDeclinedGroup=function(e,t,n){return this.put("/smart-routing/declined-groups/".concat(e,"/").concat(t),n)},i.prototype.createSmartRoutingDeclinedGroup=function(e,t){return this.post("/smart-routing/declined-groups/".concat(e),t)},i.prototype.getSmartRoutingPaymentRoute=function(e,t){return this.get("/smart-routing/payment-route/".concat(e,"/").concat(t))},i.prototype.updateSmartRoutingFavorite=function(e,t,n){return this.put("/smart-routing/favorite/".concat(e,"/").concat(t),{favorite:n})},i.prototype.getSmartRoutingSimulateConditionTypeValues=function(e){return this.get("/smart-routing/condition-types-values-list/".concat(e))},i.prototype.simulateSmartRoutingTransaction=function(e,t,n){return this.post("/smart-routing/simulate-transaction/".concat(e,"/").concat(t),n)},i.prototype.getSmartRoutingSearchConditionValues=function(e,t){return this.get("/smart-routing/search-condition-values/".concat(e,"/").concat(t))},i.prototype.getProviderConversionRatesData=function(){return this.get("/smart-routing/conversion-rates/all")},i.prototype.updateMonitorRedistribution=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/monitor-redistribution",t,{headers:n})},i.prototype.removeDeclinedGroup=function(e,t){var n={"x-organization-code":e};return this.delete("/smart-routing/declined-groups/".concat(t),{headers:n})},i.prototype.multiAccountDeclinedGroupCreate=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/declined-groups/massive/create",t,{headers:n})},i.prototype.generateAIWorkflowRoutes=function(e,t){var n={"x-organization-code":e};return this.post("/ai/generate-route",t,{headers:n})},i.prototype.postAIGenerationFeedback=function(e){return this.post("/ai/generation-feedback",e)},i.prototype.getRoutingMonitorsTemplates=function(e){var t={"x-organization-code":e};return this.get("/routing-monitor/templates",{headers:t})},i.prototype.getRoutingMonitorsTemplate=function(e,t){var n={"x-organization-code":t};return this.get("/routing-monitor/template/".concat(e),{headers:n})},i.prototype.createMonitorThreshold=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/threshold",e,{headers:n})},i.prototype.createMonitorTemplate=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/template",e,{headers:n})},i.prototype.getSmartRoutingDataReport=function(e){return this.get("/data-report",{params:e})},i.prototype.getInsightsMetricsConversionRateV2=function(e,t){var n=e.account_code,o=e.connection_name,r=a(e,["account_code","connection_name"]),i=bh(n);return o&&(i.connection_name=o.split(",")),this.post("/insights/conversion-rate/".concat(t),i,{params:r})},i.prototype.getInsightsMetricsConversionRateViewMore=function(e,t){var n=e.account_code,o=a(e,["account_code"]);return this.post("/insights/conversion-rate/cards/metrics/".concat(t),bh(n),{params:o})},i.prototype.getInsightFallbackMetrics=function(e){var t=e.account_code,n=a(e,["account_code"]);return this.post("/insights/conversion-rate/fallback",bh(t),{params:n})},i.prototype.getInsightsMetricsVolume=function(e,t){var n=t.connection_name,o=a(t,["connection_name"]),i={account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]};return n&&(i=r(r({},i),{connection_name:null==n?void 0:n.split(",")})),this.post("/insights/volume/metrics",i,{params:o})},i.prototype.getInsightsMetricsVolumeV2=function(e,t,n){var o=n.connection_name,i=a(n,["connection_name"]),s={account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]};return o&&(s=r(r({},s),{connection_name:null==o?void 0:o.split(",")})),this.post("/insights/volume/".concat(t),s,{params:i})},i.prototype.getInsightsFraudScreeningVolumeAndCountTx=function(e,t){return this.post("/insights/fraud-screening/volume-and-count-tx",e,{params:t})},i.prototype.getInsightsFraudScreeningConversionRate=function(e,t){return this.post("/insights/fraud-screening/conversion-rate",e,{params:t})},i.prototype.getInsights3dsVolumeAndCountTx=function(e,t){return this.post("/insights/3ds/volume-and-count-tx",e,{params:t})},i.prototype.getInsights3dsConversionRateAndEvolution=function(e,t){return this.post("/insights/3ds/conversion-rate-and-evolution",e,{params:t})},i.prototype.getInsights3dsDeclineReasons=function(e,t){return this.post("/insights/3ds/decline-reasons",e,{params:t})},i.prototype.getInsights3dsFrictionlessVsChallenge=function(e,t){return this.post("/insights/3ds/frictionless-vs-challenge",e,{params:t})},i.prototype.getInsightsChargebacksVolumeAndCountTx=function(e,t){return this.post("/insights/chargebacks/volume-and-count-tx",e,{params:t})},i.prototype.getInsightsChargebacksTotalRateAndEvolution=function(e,t){return this.post("/insights/chargebacks/total-rate-and-evolution",e,{params:t})},i.prototype.getInsightsChargebacksWinRate=function(e,t){return this.post("/insights/chargebacks/win-rate",e,{params:t})},i.prototype.getInsightsChargebacksDisputed=function(e,t){return this.post("/insights/chargebacks/disputed",e,{params:t})},i.prototype.getInsightsChargebacksByProviderAndCardBrand=function(e,t){return this.post("/insights/chargebacks/by-provider-and-card-brand",e,{params:t})},i.prototype.getInsightsChargebacksReasonsDistribution=function(e,t){return this.post("/insights/chargebacks/reasons-distribution",e,{params:t})},i.prototype.getInsightsChargebacksStatusDistribution=function(e,t){return this.post("/insights/chargebacks/status-distribution",e,{params:t})},i.prototype.getInsightsChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},i.prototype.getInsightOverview=function(e){var t=e.account_code,n=e.connection_name,o=a(e,["account_code","connection_name"]),i=bh(t);return n&&(i=r(r({},i),{connection_name:null==n?void 0:n.split(",")})),this.post("/insights/overview",i,{params:o})},i.prototype.getInsightOverviewV3=function(e,t){var n=e.account_code,o=e.connection_name,i=a(e,["account_code","connection_name"]),s=bh(n);return o&&(s=r(r({},s),{connection_name:null==o?void 0:o.split(",")})),this.post("/insights/overview/".concat(t),s,{params:i})},i.prototype.getInsighstHomeMetrics=function(e){return this.post("/insights/dashboard-home-metrics",e)},i.prototype.getInsightsMetricsTotalPaymentsAndFraud=function(e,t){return this.post("/insights/payments-and-fraud/payments",{account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]},{params:t})},i.prototype.getInsightsMetricsCustomerPaymentsAndFraud=function(e,t){return this.post("/insights/payments-and-fraud/customer",{account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]},{params:t})},i.prototype.getCheckouts=function(e){var t=e.accountCode;return this.get("/checkouts/".concat(t))},i.prototype.getCheckoutTemplate=function(e){var t=e.accountCode;return this.get("/v2/checkouts/template/".concat(t))},i.prototype.getNameAndIcon=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/icon-name?type=").concat(n))},i.prototype.getRequiredFields=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/required-fields?type=").concat(n))},i.prototype.updateCheckoutTemplate=function(e){var t=e.accountCode,n=e.template;return this.post("/v2/checkouts/template",{account_code:t,template:n})},i.prototype.updateIsActiveCheckout=function(e){var t,n=localStorage.getItem("account"),o=n?null===(t=JSON.parse(n).value)||void 0===t?void 0:t.code:"";return this.patch("/checkouts/publish",e,{headers:{"x-account-code":o}})},i.prototype.getStylingSdkDynamic=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},i.prototype.getStylingTheme=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkouts/styling/theme",{headers:t})},i.prototype.updateStylingTheme=function(e){var t=e.accountCode,n=e.theme,o={"x-account-code":t};return this.patch("/checkouts/styling/theme",n,{headers:o})},i.prototype.getStylingSettings=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},i.prototype.getStylingSettingsV2=function(e){var t=e.accountCode,n=e.environment,o={"x-account-code":t,"x-environment":void 0===n?"live":n};return this.get("/v1/checkouts/builder/settings",{headers:o})},i.prototype.changeStylingSettings=function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n,r=e.payload,a={"x-account-code":t,"x-environment":o,"Content-Type":"application/json"};return this.patch("/v1/checkouts/builder/settings",r,{headers:a})},i.prototype.emailVerification=function(e){return this.get("/user/email-verification/".concat(e))},i.prototype.createReconciliationsReportV2=function(e){return this.post("/v2/reports/create",e)},i.prototype.createReportV2=function(e){return this.post("/reports",e)},i.prototype.getTotalRowsForExport=function(e){return this.post("/reports/count",e)},i.prototype.reportsList=function(){return this.get("/reports")},i.prototype.reportsListMultiEnv=function(){return this.get("/reports/multi-environment")},i.prototype.downloadReports=function(e){return this.get("/reports-redirect/".concat(e))},i.prototype.cancelReport=function(e){return this.patch("/reports/".concat(e))},i.prototype.getReportTemplates=function(){return this.get("/reports/templates")},i.prototype.createReportTemplate=function(e){return this.post("/reports/templates",e)},i.prototype.updateReportTemplate=function(e){return this.put("/reports/templates",e)},i.prototype.getReportColumns=function(e,t){return this.get("/reports/columns/".concat(e,"/").concat(t))},i.prototype.getReportTemplatesList=function(e){return this.get("/template-reporting/report-templates",{params:{module:e.module}})},i.prototype.getReportTemplateById=function(e){return this.get("/template-reporting/report-templates/".concat(e))},i.prototype.createTemplateReporting=function(e){return this.post("/template-reporting/report-templates",e)},i.prototype.cloneReportTemplate=function(e,t){return this.post("/template-reporting/report-templates/".concat(e,"/clone"),t)},i.prototype.updateTemplateSelection=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/selection"),t)},i.prototype.changeTemplateStatus=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/status"),t)},i.prototype.deleteReportTemplate=function(e){return this.delete("/template-reporting/report-templates/".concat(e))},i.prototype.getReportSchedulesList=function(){return this.get("/template-reporting/report-schedules")},i.prototype.getReportScheduleById=function(e){return this.get("/template-reporting/report-schedules/".concat(e))},i.prototype.createReportSchedule=function(e){return this.post("/template-reporting/report-schedules",e)},i.prototype.deactivateReportSchedule=function(e){return this.patch("/template-reporting/report-schedules/".concat(e,"/disable"))},i.prototype.deleteReportSchedule=function(e){return this.delete("/template-reporting/report-schedules/".concat(e))},i.prototype.getRefundPdf=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/refund-pdf/".concat(e),{headers:o})},i.prototype.getProofOfCancel=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-cancel"),{headers:o})},i.prototype.getProofOfPayment=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-payment"),{headers:o})},i.prototype.getScheduledReport=function(e){return this.get("/scheduled-reports?reportType=".concat(e))},i.prototype.postScheduledReport=function(e){return this.post("/scheduled-reports",e)},i.prototype.updateScheduledReport=function(e,t){return this.patch("/scheduled-reports/".concat(e),t)},i.prototype.deleteScheduledReport=function(e){return this.delete("/scheduled-reports/".concat(e))},i.prototype.getProfile=function(){return this.get("/user")},i.prototype.getUserFull=function(){return this.get("/user-full")},i.prototype.getImpersonationUsers=function(){return this.get("/impersonation/user")},i.prototype.getImpersonationEnabled=function(){return this.get("/impersonation/enabled")},i.prototype.getUsersToImpersonate=function(e,t,n,o,a){void 0===n&&(n=1),void 0===o&&(o=10);var i=r({account_codes:t||[],page:n,page_size:o},a&&{search_value:a});return this.post("/impersonation/user/organization/".concat(e,"/users-to-impersonate"),i)},i.prototype.getAccountsForImpersonation=function(e){return this.get("/impersonation/user/organization/".concat(e,"/accounts"))},i.prototype.updateProfile=function(e){return this.patch("/user",e)},i.prototype.inviteUsersMassive=function(e,t){var n={"x-organization-code":t};return this.post("user/invite/massive",e,{headers:n})},i.prototype.unInviteUsersV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/user/uninvite/".concat(t),{headers:n})},i.prototype.getAccounts=function(e){var t={"x-organization-code":e};return this.get("/accounts-user",{headers:t})},i.prototype.getAccountsV2=function(){return this.get("/accounts-user")},i.prototype.getAccountsByUser=function(e){return this.get("/accounts-user/user/".concat(e))},i.prototype.putAccountsUserMassive=function(e,t,n){var o={"x-organization-code":e};return this.put("/accounts-user/role/massive/user/".concat(t),n,{headers:o})},i.prototype.deleteAccountsUserMassive=function(e,t,n){var o={"x-organization-code":e};return this.delete("/accounts-user/role/massive/user/".concat(t),{data:n,headers:o})},i.prototype.postAccount=function(e,t){return this.post("/accounts",{name:e,principal:t})},i.prototype.patchAccountV2=function(e){var t=e.name,n=e.code,o=e.principal;return this.patch("/accounts/with-principal",{name:t,principal:o},{headers:{"x-account-code":n}})},i.prototype.putAccountPrincipal=function(e){var t=e.account_code;return this.put("/user-accounts/principal",{account_code:t})},i.prototype.getMergedNotifications=function(){return this.get("/notifications-all")},i.prototype.getNotificationsCustomer=function(e){return this.get("/notifications/".concat(e))},i.prototype.getValidateOpsgenieKey=function(e){return this.get("/notifications/opsgenie/validate/".concat(e))},i.prototype.postSlackMessageChannel=function(e){return this.post("/slack-channel-message",e)},i.prototype.pathNotification=function(e){return this.patch("/notifications",e)},i.prototype.getNotificationsNumber=function(e){return this.get("/notifications/".concat(e,"/number"))},i.prototype.teamsFiltersMembers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/teams/filters/members",{headers:t})},i.prototype.postMembersPaginatedV2=function(e){var t=e.organizationCode,n=e.accountCodes,o=e.email,r=e.page,a=e.pageSize,i={"x-organization-code":t};return this.post("/teams/paginated",{account_codes:n,email:o,page:r,page_size:a},{headers:i})},i.prototype.getRoles=function(){return this.get("/teams/roles")},i.prototype.setCustodian=function(){return this.post("/teams/custodian")},i.prototype.deleteUserTeamV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/teams/".concat(t),{headers:n})},i.prototype.createRoles=function(e,t){return this.post("/teams/roles",e,{headers:{"x-account-code":t}})},i.prototype.editRoles=function(e,t){var n=e.payload,o=e.id;return this.patch("/teams/roles/".concat(o),n,{headers:{"x-account-code":t}})},i.prototype.deleteRoles=function(e){return this.delete("/teams/roles/".concat(e))},i.prototype.getRolesPermissions=function(){return this.get("/teams/permissions")},i.prototype.getFeatureFlagId=function(e){var t=e.name,n=a(e,["name"]);return this.post("/feature-flags/evaluate",{name:t,parameters:n})},i.prototype.getFeatureFlagIdAll=function(e){var o=e.accountCode;return t(this,void 0,void 0,function(){var e,t;return n(this,function(n){switch(n.label){case 0:return[4,this.get("/feature-flags/names",o?{headers:{"x-account-code":o}}:{})];case 1:return e=n.sent(),t={},e.data.feature_flag_names.forEach(function(e){t[e]=!0}),[2,{data:t,status:200,statusText:"OK",headers:{},config:{}}]}})})},i.prototype.getPermissionsCatalog=function(){return this.get("/teams/permissions-catalog")},i.prototype.changePasswordV2=function(e){return this.patch("/user/change-password-profile",e)},i.prototype.getCardBrands=function(){return this.get("/catalog/card-brands")},i.prototype.getPaymentFilters=function(e){return this.get("/payments/filters?section=".concat(e))},i.prototype.getPaymentMetricsFilters=function(){return this.get("/payments/metrics/filters")},i.prototype.sendPaymentNotification=function(e,t){return this.post("/payments/".concat(e.paymentCode,"/transactions/").concat(e.transactionCode,"/settle"),t)},i.prototype.postAuditMonitors=function(e){return this.post("/routing-monitor/audit",e)},i.prototype.getAuditMonitorDetail=function(e){return this.get("/routing-monitor/audit-monitors-details/".concat(e))},i.prototype.getAuditEvents=function(e){return this.post("v2/events/organization?time_zone=".concat(null==e?void 0:e.time_zone,"&now=").concat(null==e?void 0:e.now,"&page=").concat(null==e?void 0:e.page,"&size=").concat(null==e?void 0:e.size,"&periodicity=").concat(e.periodicity,"&event=").concat(e.event,"&source=").concat(e.source,"&search=").concat(e.search,"&start_date=").concat(e.start_date,"&end_date=").concat(e.end_date),{account_codes:null==e?void 0:e.account_code})},i.prototype.getPaymentLinks=function(e,t){return this.get("/v2/payment-links/".concat(t),{params:e})},i.prototype.getPaymentLinksByCode=function(e){return this.get("/v2/payment-links/by-code/".concat(e))},i.prototype.postPaymentLinks=function(e){var t=e.payload,n=e.accountCode;return this.post("/v2/payment-links/".concat(n),t)},i.prototype.patchPaymentLinks=function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return this.patch("/v2/payment-links/".concat(n,"/").concat(o),t)},i.prototype.postDeletePaymentLink=function(e){var t=e.code;return this.post("/v2/payment-links/cancel/".concat(t))},i.prototype.getTimezone=function(e){return this.get("/cms/timezone/catalog",{headers:{"x-organization-code":e}})},i.prototype.firebaseUserSubscribe=function(e){return this.post("/firebase/user/subscribe",e)},i.prototype.postUserSettings=function(e){return this.patch("/user-settings",e)},i.prototype.postUserSettingsTables=function(e,t){return this.patch("/user-settings/".concat(t),e)},i.prototype.postUserSettingsPinned=function(e){return this.patch("/user-settings/pinned_sections",e)},i.prototype.postUserThemeSettings=function(e){return this.patch("/user-settings/theme",e)},i.prototype.getMfaTokenValidation=function(e,t){return this.post("/mfa/token",{password:e,otp_input:t,user_code:""})},i.prototype.getEmailOtp=function(){return this.post("/mfa/send-otp",{})},i.prototype.confirmMfaOtp=function(e){return this.post("/mfa/confirm/otp",e)},i.prototype.unrollMfa=function(e){return this.post("/mfa/unroll/otp",{password:e})},i.prototype.sendOTPForMFA=function(){return this.post("/mfa/send-otp")},i.prototype.getConfigAllowlist=function(e){var t={"x-account-code":e};return this.get("/yuno-fraud-screening-int/allow-lists/config",{headers:t})},i.prototype.getBlackListType=function(e){var t={"x-account-code":e};return this.get("/blacklist",{headers:t})},i.prototype.postBlockList=function(e,t,n,o){var r={name:t,account_codes:e,page:n,size:o};return this.post("/blacklist",r)},i.prototype.getBlackListSummary=function(e,t){return void 0===t&&(t=null),this.get("/blacklist/get-one/".concat(e,"/summary"),t?{headers:{"x-account-code":t}}:{})},i.prototype.getBlacklistDetail=function(e,t,n,o,r){void 0===n&&(n=26),void 0===o&&(o=null),void 0===r&&(r=null);var a="/blacklist/get-one/".concat(e,"/detail?offset=").concat(t,"&limit=").concat(n);return r&&(null==r?void 0:r.length)>0&&(a+="&search=".concat(r)),this.get(a,o?{headers:{"x-account-code":o}}:{})},i.prototype.getAllowlistDetail=function(e,t){return void 0===t&&(t=null),this.get("/yuno-fraud-screening-int/allow-lists/".concat(e),t?{headers:{"x-account-code":t}}:{})},i.prototype.postAllowlistItems=function(e){var t=e.payload;return this.post("yuno-fraud-screening-int/allow-lists/".concat(t.code,"/items/pageable"),t,t.account&&{headers:{"x-account-code":t.account}})},i.prototype.postGetAllowlist=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/pageable",t)},i.prototype.postCreateAllowlistMultiAccount=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/massive",t)},i.prototype.patchChangeStatusAllowlist=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.code),{active:t.active},(null==t?void 0:t.account)&&{headers:{"x-account-code":null==t?void 0:t.account}})},i.prototype.patchChangeStatusAllowlistItem=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items/").concat(t.item_allowlist_code),{active:t.active})},i.prototype.patchAddAllowlistItems=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items"),t,t.account&&{headers:{"x-account-code":t.account}})},i.prototype.deleteAllowlistItem=function(e){var t=e.payload,n={"x-account-code":t.account_code};return this.delete("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items/").concat(t.allowlist_item_id),{headers:n})},i.prototype.validateAllowlistItems=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/validate/duplicate-items"),t,{headers:{"x-account-code":t.account_code}})},i.prototype.patchAllowlist=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code),t,t.account&&{headers:{"x-account-code":t.account}})},i.prototype.postBlackListMultiAccount=function(e){var t=e.payload;return this.post("/blacklist/create/multi-account",t,t.account&&{headers:{"x-account-code":t.account}})},i.prototype.putBlackListType=function(e){return this.put("/blacklist/edit",e)},i.prototype.changeBlackListStatus=function(e){return this.put("/blacklist/change-status",e)},i.prototype.changeBlackListStatusItem=function(e){return this.put("/blacklist/change-item-status",e)},i.prototype.postBlackListItems=function(e){var t=e.payload;return this.post("/blacklist/items",t)},i.prototype.postBlackListBatch=function(e){var t=e.blacklist_code,n=e.expiration_days,o=e.file,r=e.handleSetProgress;return this.post("/blacklist/create-batch/".concat(t),{expiration_days:n,file:o},{onUploadProgress:function(e){r(e.total?Math.round(100*e.loaded/e.total):0)}})},i.prototype.deleteBlackListType=function(e){var t=e.black_list_code;return this.delete("/blacklist/delete/".concat(t))},i.prototype.deleteBlockListItem=function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return this.delete("/blacklist/".concat(t,"/items/").concat(n),{headers:{"x-account-code":o}})},i.prototype.valiateBlockListItems=function(e){var t=e.payload;return this.post("/blacklist/".concat(t.blocklist_code,"/validate/duplicate-items"),t,{headers:{"x-account-code":t.account_code}})},i.prototype.getVelocityRules=function(e){return this.post("/yuno-fraud-screening-int/velocity-rules-list",r({},e))},i.prototype.postChangePaymentsWebhook=function(e){var t=e.status,n=e.paymentCode;return this.post("/yuno-fraud-screening-int/payments/webhook",{status:t,payment_code:n})},i.prototype.uploadFileS3ClientBatchRefunds=function(e){var t=e.payload,n=e.handleSetProgress,o=this.getCancelTokenSource();return{promise:this.post("/batch-refunds/upload-s3-file",t,{onUploadProgress:function(e){return null==n?void 0:n(e.total?Math.round(100*e.loaded/e.total):0)},cancelToken:o.token}),cancel:function(){return o.cancel()}}},i.prototype.uploadFileS3ClientChargeBacks=function(e){var t=e.payload,n=e.handleSetProgress,o=this.getCancelTokenSource();return{promise:this.post("/chargebacks/upload-s3-file",t,{cancelToken:o.token,onUploadProgress:function(e){null==n||n(e.total?Math.round(100*e.loaded/e.total):0)}}),cancel:function(){return o.cancel()}}},i.prototype.batchRefundByFile=function(e){var t=e.payload;return this.post("/batch-refund-by-file",r({},t))},i.prototype.uploadBatchRefundsV2=function(e){var t=e.payload;return this.post("/batch-refunds",r({},t))},i.prototype.getBatchRefunds=function(e,t){return this.get("/batch-refunds?limit=".concat(e,"&offset=").concat(t))},i.prototype.getBatchRefundProcessedFileDownload=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/processed-file-download"),{headers:o})},i.prototype.getBatchRefundUserFileDownload=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/user-file-download"),{headers:o})},i.prototype.getMFAConfig=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/config",{headers:t})},i.prototype.getMFAExcludedUsers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/excluded-users",{headers:t})},i.prototype.getMFAEnforcementStatus=function(){return this.get("/mfa/enforcement-status")},i.prototype.updateMFAConfig=function(e,t){return this.post("/organization-settings/mfa/config",e,{headers:{"x-organization-code":t}})},i.prototype.mfaExcludeUsers=function(e,t){return this.post("/organization-settings/mfa/exclude-users",e,{headers:{"x-organization-code":t}})},i.prototype.getAllConfigRules=function(){return this.get("/yuno-fraud-screening-int/velocity-rules/config/all")},i.prototype.getConditionalConfigRules=function(e){return this.get("/yuno-fraud-screening-int/velocity-rules/config/conditional/".concat(e))},i.prototype.getRule=function(e){return this.get("/yuno-fraud-screening-int/velocity-rules/".concat(e.idRule),(null==e?void 0:e.accountCode)&&{headers:{"x-account-code":null==e?void 0:e.accountCode}})},i.prototype.postCreateRuleMultiAccount=function(e,t){return this.post("/yuno-fraud-screening-int/velocity-rules/multi-account",e,{headers:{"x-account-code":t}})},i.prototype.postEditRule=function(e,t,n){return this.patch("/yuno-fraud-screening-int/velocity-rules/".concat(t),e,{headers:{"x-account-code":n}})},i.prototype.postApiKeysRoll=function(e,t,n){return this.post("/credentials-manager/v1/keys/roll/".concat(t),e,{headers:{"x-password":n}})},i.prototype.patchApiKeysEditNote=function(e,t){return this.patch("/credentials-manager/keys/edit-note/".concat(t),e)},i.prototype.getCustomizedApiKeysMembers=function(){return this.get("/organization-user/resources/users/customized-keys")},i.prototype.getCustomizedApiKeysAccounts=function(){return this.get("/organization-user/resources/accounts/customized-keys")},i.prototype.postCreateCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys",e)},i.prototype.pathCreateCustomizedApiKeys=function(e,t){return this.patch("/credentials-manager/key/".concat(t),e)},i.prototype.postCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys/retrieve",{account_codes:e})},i.prototype.getCustomizedApiKeysProducts=function(){return this.get("/credentials-manager/product-list")},i.prototype.getCustomizedApiKeysToken=function(e,t){return this.get("/credentials-manager/keys/show-token/".concat(e),{headers:{"x-password":t}})},i.prototype.validatePasswordStatus=function(){return this.get("/validate-password-status")},i.prototype.deleteCustomizedApiKeys=function(e){return this.delete("/credentials-manager/key/".concat(e))},i.prototype.postCreateInsightsReport=function(e){var t="CR_FALLBACK"===(null==e?void 0:e.type)?"/insights/conversion-rate/".concat(rh[null==e?void 0:e.type],"/export"):"/insights/conversion-rate/cards/metrics/".concat(rh[null==e?void 0:e.type],"/export");return this.post(t,e)},i.prototype.getInsightsReport=function(e){return this.get("/insights/conversion-rate/exports/".concat(null==e?void 0:e.type,"/by-user"))},i.prototype.getInsightsReportAgain=function(e){return this.get("/insights/conversion-rate/exports/".concat(e.code))},i.prototype.createUserAuth0=function(e){return this.post("/user/auth0",e)},i.prototype.getSamlConfig=function(){return this.get("/saml-config")},i.prototype.createSamlConfig=function(e){return this.post("/saml-config",e)},i.prototype.updateSamlConfig=function(e){return this.patch("/saml-config",e)},i.prototype.deleteSamlConfig=function(){return this.delete("/saml-config")},i.prototype.postCall=function(e){return this.post("/ai-agent-caller/demo",e)},i.prototype.getLoginMethods=function(){return this.get("/organization/login-methods")},i.prototype.changeLoginMethods=function(e){return this.patch("/organization/login-methods/".concat(e.methodCode),{enabled:e.enabled})},i.prototype.postValidateCredentials=function(e){var t=e.payload;return this.post("/connections/validate-credentials",t)},i.prototype.getInsightsConversionRateOverview=function(e,t){return this.post("/v3/insights/conversion-rate/overview",e,{params:t})},i.prototype.getInsightsConversionRateOverviewFraud3ds=function(e,t){return this.post("/v3/insights/conversion-rate/overview-fraud-3ds",e,{params:t})},i.prototype.getConversionRateChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},i.prototype.get3DSExemptions=function(){return this.get("/routing/3ds-exemptions")},i.prototype.getNetworkTokensOnboarding=function(){return this.get("/network-tokens/onboarding")},i.prototype.createChartGPTChart=function(e){return this.post("/data-assistant/charts",e)},i.prototype.deleteChartGPTChart=function(e){return this.delete("/data-assistant/charts/".concat(e))},i.prototype.getChartById=function(e){return this.get("/data-assistant/charts/".concat(e))},i.prototype.patchChartGPTChart=function(e,t){return this.patch("/data-assistant/charts/".concat(e),t)},i.prototype.executeChartGPTChart=function(e){return void 0===e&&(e=""),this.get("/data-assistant/charts/".concat(e,"/execute"))},i.prototype.getChartsByUser=function(){return this.get("/data-assistant/user/charts")},i.prototype.getLanguages=function(){return this.get("/languages")},i.prototype.getTranslations=function(e){return this.get("/translations?language=".concat(e))},i.prototype.getCommunications=function(e){return this.post("/communications",e)},i.prototype.getCommunicationsFilters=function(){return this.get("/communications/filters")},i.prototype.getCommunicationDetails=function(e,t){var n={"x-account-code":t};return this.get("/communications/".concat(e,"/details"),{headers:n})},i}(Ds),wh={ENVIRONMENT:"",BFF_URL_PROD:"",BFF_URL_SBX:"",BFF_URL_STG:"",BFF_URL_DEV:"",BFF_URL_LOCAL:"",WS_URL_LOCAL:"",WS_URL_PROD:"",WS_URL_SBX:"",WS_URL_STG:"",WS_URL_DEV:""},_h=function(e){function a(t){return e.call(this,t)||this}return o(a,e),a.refreshInstance=function(e){var t;return this.classInstance=new a(r(r({},e),{baseURL:"https://dev.y.uno/dashboard-bff/api/"})),null===(t=this.classInstance.instance.interceptors)||void 0===t||t.response.use(function(e){return e},function(e){var t;if(401!==(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status))return Promise.reject(e);window.location.href="/auth/logout"}),this.classInstance},a.getInstance=function(e){var t,n;if(this.classInstance){var o=localStorage.getItem("account");if(o){var i=null===(n=null===(t=JSON.parse(o))||void 0===t?void 0:t.value)||void 0===n?void 0:n.code,s=this.classInstance.instance.defaults.headers["x-account-code"];!!i&&""!==i&&i!==s&&(this.classInstance.instance.defaults.headers["x-account-code"]=i)}return this.classInstance}return this.classInstance=new a(r(r({},e),{baseURL:(null==e?void 0:e.baseURL)||wh["BFF_URL_".concat(wh.ENVIRONMENT)]})),this.classInstance},a.setMode=function(e){return t(this,void 0,void 0,function(){return n(this,function(t){return this.classInstance.instance.interceptors.request.use(function(t){return t.headers&&(t.headers["X-Environment"]=e),t},function(e){return Promise.reject(e)}),[2]})})},a}(kh);class xh{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Eh="undefined"==typeof window||"Deno"in window;function Sh(){}function Ch(e){return"number"==typeof e&&e>=0&&e!==1/0}function Rh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Th(e,t,n){return Bh(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Ih(e,t,n){return Bh(e)?[{...t,queryKey:e},n]:[e||{},t]}function Ah(e,t){const{type:n="all",exact:o,fetchStatus:r,predicate:a,queryKey:i,stale:s}=e;if(Bh(i))if(o){if(t.queryHash!==jh(i,t.options))return!1}else if(!Dh(t.queryKey,i))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((void 0===r||r===t.state.fetchStatus)&&!(a&&!a(t)))}function Oh(e,t){const{exact:n,fetching:o,predicate:r,mutationKey:a}=e;if(Bh(a)){if(!t.options.mutationKey)return!1;if(n){if(Ph(t.options.mutationKey)!==Ph(a))return!1}else if(!Dh(t.options.mutationKey,a))return!1}return("boolean"!=typeof o||"loading"===t.state.status===o)&&!(r&&!r(t))}function jh(e,t){return((null==t?void 0:t.queryKeyHashFn)||Ph)(e)}function Ph(e){return JSON.stringify(e,(e,t)=>Nh(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Dh(e,t){return Lh(e,t)}function Lh(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some(n=>!Lh(e[n],t[n])))}function qh(e,t){if(e===t)return e;const n=Mh(e)&&Mh(t);if(n||Nh(e)&&Nh(t)){const o=n?e.length:Object.keys(e).length,r=n?t:Object.keys(t),a=r.length,i=n?[]:{};let s=0;for(let o=0;o<a;o++){const a=n?o:r[o];i[a]=qh(e[a],t[a]),i[a]===e[a]&&s++}return o===a&&s===o?e:i}return t}function zh(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Mh(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Nh(e){if(!Uh(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Uh(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Uh(e){return"[object Object]"===Object.prototype.toString.call(e)}function Bh(e){return Array.isArray(e)}function Fh(e){return new Promise(t=>{setTimeout(t,e)})}function Wh(e){Fh(0).then(e)}function Gh(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?qh(e,t):t}const Hh=new class extends xh{constructor(){super(),this.setup=e=>{if(!Eh&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},Vh=["online","offline"];const $h=new class extends xh{constructor(){super(),this.setup=e=>{if(!Eh&&window.addEventListener){const t=()=>e();return Vh.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{Vh.forEach(e=>{window.removeEventListener(e,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function Kh(e){return Math.min(1e3*2**e,3e4)}function Qh(e){return"online"!==(null!=e?e:"online")||$h.isOnline()}class Jh{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function Xh(e){return e instanceof Jh}function Yh(e){let t,n,o,r=!1,a=0,i=!1;const s=new Promise((e,t)=>{n=e,o=t}),c=()=>!Hh.isFocused()||"always"!==e.networkMode&&!$h.isOnline(),u=o=>{i||(i=!0,null==e.onSuccess||e.onSuccess(o),null==t||t(),n(o))},l=n=>{i||(i=!0,null==e.onError||e.onError(n),null==t||t(),o(n))},d=()=>new Promise(n=>{t=e=>{const t=i||!c();return t&&n(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,i||null==e.onContinue||e.onContinue()}),h=()=>{if(i)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(u).catch(t=>{var n,o;if(i)return;const s=null!=(n=e.retry)?n:3,u=null!=(o=e.retryDelay)?o:Kh,p="function"==typeof u?u(a,t):u,f=!0===s||"number"==typeof s&&a<s||"function"==typeof s&&s(a,t);!r&&f?(a++,null==e.onFail||e.onFail(a,t),Fh(p).then(()=>{if(c())return d()}).then(()=>{r?l(t):h()})):l(t)})};return Qh(e.networkMode)?h():d().then(h),{promise:s,cancel:t=>{i||(l(new Jh(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1}}}const Zh=console;const ep=function(){let e=[],t=0,n=e=>{e()},o=e=>{e()};const r=o=>{t?e.push(o):Wh(()=>{n(o)})},a=()=>{const t=e;e=[],t.length&&Wh(()=>{o(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||a()}return n},batchCalls:e=>(...t)=>{r(()=>{e(...t)})},schedule:r,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{o=e}}}();class tp{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ch(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:Eh?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class np extends tp{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||Zh,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,o=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=o?o:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=Gh(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(Sh).catch(Sh):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Rh(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,o;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var r;return null==(r=this.retryer)||r.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const a=function(){if("function"==typeof AbortController)return new AbortController}(),i={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};s(i);const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(i)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var u;(s(c),null==(n=this.options.behavior)||n.onFetch(c),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(o=c.fetchOptions)?void 0:o.meta))&&this.dispatch({type:"fetch",meta:null==(u=c.fetchOptions)?void 0:u.meta});const l=e=>{var t,n,o,r;(Xh(e)&&e.silent||this.dispatch({type:"error",error:e}),Xh(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(o=(r=this.cache.config).onSettled)||o.call(r,this.state.data,e,this));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Yh({fn:c.fetchFn,abort:null==a?void 0:a.abort.bind(a),onSuccess:e=>{var t,n,o,r;void 0!==e?(this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(o=(r=this.cache.config).onSettled)||o.call(r,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):l(new Error(this.queryHash+" data is undefined"))},onError:l,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,o;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:Qh(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(o=e.dataUpdatedAt)?o:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=e.error;return Xh(r)&&r.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),ep.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}class op extends xh{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var o;const r=t.queryKey,a=null!=(o=t.queryHash)?o:jh(r,t);let i=this.get(a);return i||(i=new np({cache:this,logger:e.getLogger(),queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){ep.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=Ih(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find(e=>Ah(n,e))}findAll(e,t){const[n]=Ih(e,t);return Object.keys(n).length>0?this.queries.filter(e=>Ah(n,e)):this.queries}notify(e){ep.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){ep.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){ep.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class rp extends tp{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||Zh,this.observers=[],this.state=e.state||ap(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=Yh({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,o,r,a,i,s,c,u;if(!t){var l,d,h,p;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(l=(d=this.mutationCache.config).onMutate)?void 0:l.call(d,this.state.variables,this));const e=await(null==(h=(p=this.options).onMutate)?void 0:h.call(p,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const f=await e();return await(null==(n=(o=this.mutationCache.config).onSuccess)?void 0:n.call(o,f,this.state.variables,this.state.context,this)),await(null==(r=(a=this.options).onSuccess)?void 0:r.call(a,f,this.state.variables,this.state.context)),await(null==(i=(s=this.mutationCache.config).onSettled)?void 0:i.call(s,f,null,this.state.variables,this.state.context,this)),await(null==(c=(u=this.options).onSettled)?void 0:c.call(u,f,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:f}),f}catch(e){try{var f,m,g,y,v,b,k,w;throw await(null==(f=(m=this.mutationCache.config).onError)?void 0:f.call(m,e,this.state.variables,this.state.context,this)),await(null==(g=(y=this.options).onError)?void 0:g.call(y,e,this.state.variables,this.state.context)),await(null==(v=(b=this.mutationCache.config).onSettled)?void 0:v.call(b,void 0,e,this.state.variables,this.state.context,this)),await(null==(k=(w=this.options).onSettled)?void 0:k.call(w,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Qh(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),ep.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function ap(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class ip extends xh{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const o=new rp({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(o),o}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){ep.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(t=>Oh(e,t))}findAll(e){return this.mutations.filter(t=>Oh(e,t))}notify(e){ep.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{const e=this.mutations.filter(e=>e.state.isPaused);return ep.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(Sh)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function sp(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,o,r,a,i;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,c=null==(o=e.fetchOptions)||null==(r=o.meta)?void 0:r.fetchMore,u=null==c?void 0:c.pageParam,l="forward"===(null==c?void 0:c.direction),d="backward"===(null==c?void 0:c.direction),h=(null==(a=e.state.data)?void 0:a.pages)||[],p=(null==(i=e.state.data)?void 0:i.pageParams)||[];let f=p,m=!1;const g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),y=(e,t,n,o)=>(f=o?[t,...f]:[...f,t],o?[n,...e]:[...e,n]),v=(t,n,o,r)=>{if(m)return Promise.reject("Cancelled");if(void 0===o&&!n&&t.length)return Promise.resolve(t);const a={queryKey:e.queryKey,pageParam:o,meta:e.options.meta};var i;i=a,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?m=!0:null==(n=e.signal)||n.addEventListener("abort",()=>{m=!0}),e.signal}});const s=g(a);return Promise.resolve(s).then(e=>y(t,o,e,r))};let b;if(h.length)if(l){const t=void 0!==u,n=t?u:cp(e.options,h);b=v(h,t,n)}else if(d){const t=void 0!==u,n=t?u:(k=e.options,w=h,null==k.getPreviousPageParam?void 0:k.getPreviousPageParam(w[0],w));b=v(h,t,n,!0)}else{f=[];const t=void 0===e.options.getNextPageParam;b=!s||!h[0]||s(h[0],0,h)?v([],t,p[0]):Promise.resolve(y([],p[0],h[0]));for(let n=1;n<h.length;n++)b=b.then(o=>{if(!s||!h[n]||s(h[n],n,h)){const r=t?p[n]:cp(e.options,o);return v(o,t,r)}return Promise.resolve(y(o,p[n],h[n]))})}else b=v([]);var k,w;const _=b.then(e=>({pages:e,pageParams:f}));return _}}}}function cp(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class up extends xh{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),lp(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return dp(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return dp(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),zh(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const r=this.hasListeners();r&&hp(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(t),!r||this.currentQuery===o&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const a=this.computeRefetchInterval();!r||this.currentQuery===o&&this.options.enabled===n.enabled&&a===this.currentRefetchInterval||this.updateRefetchInterval(a)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){if(n.keepPreviousData)return!1;if(void 0!==n.placeholderData)return t.isPlaceholderData;if(!zh(e.getCurrentResult(),t))return!0;return!1}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(Sh)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),Eh||this.currentResult.isStale||!Ch(this.options.staleTime))return;const e=Rh(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},e)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!Eh&&!1!==this.options.enabled&&Ch(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Hh.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,o=this.options,r=this.currentResult,a=this.currentResultState,i=this.currentResultOptions,s=e!==n,c=s?e.state:this.currentQueryInitialState,u=s?this.currentResult:this.previousQueryResult,{state:l}=e;let d,{dataUpdatedAt:h,error:p,errorUpdatedAt:f,fetchStatus:m,status:g}=l,y=!1,v=!1;if(t._optimisticResults){const r=this.hasListeners(),a=!r&&lp(e,t),i=r&&hp(e,n,t,o);(a||i)&&(m=Qh(e.options.networkMode)?"fetching":"paused",h||(g="loading")),"isRestoring"===t._optimisticResults&&(m="idle")}if(t.keepPreviousData&&!l.dataUpdatedAt&&null!=u&&u.isSuccess&&"error"!==g)d=u.data,h=u.dataUpdatedAt,g=u.status,y=!0;else if(t.select&&void 0!==l.data)if(r&&l.data===(null==a?void 0:a.data)&&t.select===this.selectFn)d=this.selectResult;else try{this.selectFn=t.select,d=t.select(l.data),d=Gh(null==r?void 0:r.data,d,t),this.selectResult=d,this.selectError=null}catch(e){this.selectError=e}else d=l.data;if(void 0!==t.placeholderData&&void 0===d&&"loading"===g){let e;if(null!=r&&r.isPlaceholderData&&t.placeholderData===(null==i?void 0:i.placeholderData))e=r.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){this.selectError=e}void 0!==e&&(g="success",d=Gh(null==r?void 0:r.data,e,t),v=!0)}this.selectError&&(p=this.selectError,d=this.selectResult,f=Date.now(),g="error");const b="fetching"===m,k="loading"===g,w="error"===g;return{status:g,fetchStatus:m,isLoading:k,isSuccess:"success"===g,isError:w,isInitialLoading:k&&b,data:d,dataUpdatedAt:h,error:p,errorUpdatedAt:f,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:l.dataUpdateCount>0||l.errorUpdateCount>0,isFetchedAfterMount:l.dataUpdateCount>c.dataUpdateCount||l.errorUpdateCount>c.errorUpdateCount,isFetching:b,isRefetching:b&&!k,isLoadingError:w&&0===l.dataUpdatedAt,isPaused:"paused"===m,isPlaceholderData:v,isPreviousData:y,isRefetchError:w&&0!==l.dataUpdatedAt,isStale:pp(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,zh(n,t))return;this.currentResult=n;const o={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const o=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&o.add("error"),Object.keys(this.currentResult).some(e=>{const n=e;return this.currentResult[n]!==t[n]&&o.has(n)})})()&&(o.listeners=!0),this.notify({...o,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||Xh(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){ep.batch(()=>{var t,n,o,r;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(o=(r=this.options).onSettled)||o.call(r,this.currentResult.data,null);else if(e.onError){var a,i,s,c;null==(a=(i=this.options).onError)||a.call(i,this.currentResult.error),null==(s=(c=this.options).onSettled)||s.call(c,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function lp(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&dp(e,t,t.refetchOnMount)}function dp(e,t,n){if(!1!==t.enabled){const o="function"==typeof n?n(e):n;return"always"===o||!1!==o&&pp(e,t)}return!1}function hp(e,t,n,o){return!1!==n.enabled&&(e!==t||!1===o.enabled)&&(!n.suspense||"error"!==e.state.status)&&pp(e,n)}function pp(e,t){return e.isStaleByTime(t.staleTime)}class fp extends xh{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),zh(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.currentMutation)||e.removeObserver(this))}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},t="loading"===e.status,n={...e,isLoading:t,isPending:t,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(e){ep.batch(()=>{var t,n,o,r;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(o=(r=this.mutateOptions).onSettled)||o.call(r,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var a,i,s,c;null==(a=(i=this.mutateOptions).onError)||a.call(i,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(c=this.mutateOptions).onSettled)||s.call(c,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)})})}}var mp={exports:{}},gp={},yp=s;var vp="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},bp=yp.useState,kp=yp.useEffect,wp=yp.useLayoutEffect,_p=yp.useDebugValue;function xp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!vp(e,n)}catch(e){return!0}}var Ep="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),o=bp({inst:{value:n,getSnapshot:t}}),r=o[0].inst,a=o[1];return wp(function(){r.value=n,r.getSnapshot=t,xp(r)&&a({inst:r})},[e,n,t]),kp(function(){return xp(r)&&a({inst:r}),e(function(){xp(r)&&a({inst:r})})},[e]),_p(n),n};gp.useSyncExternalStore=void 0!==yp.useSyncExternalStore?yp.useSyncExternalStore:Ep,mp.exports=gp;const Sp=mp.exports.useSyncExternalStore,Cp=i.createContext(void 0),Rp=i.createContext(!1);function Tp(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Cp),window.ReactQueryClientContext):Cp)}const Ip=({context:e}={})=>{const t=i.useContext(Tp(e,i.useContext(Rp)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Ap=({client:e,children:t,context:n,contextSharing:o=!1})=>{i.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const r=Tp(n,o);return i.createElement(Rp.Provider,{value:!n&&o},i.createElement(r.Provider,{value:e},t))},Op=i.createContext(!1);Op.Provider;const jp=i.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function Pp(e,t){return"function"==typeof e?e(...t):!!e}function Dp(e,t){const n=Ip({context:e.context}),o=i.useContext(Op),r=i.useContext(jp),a=n.defaultQueryOptions(e);a._optimisticResults=o?"isRestoring":"optimistic",a.onError&&(a.onError=ep.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=ep.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=ep.batchCalls(a.onSettled)),(e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.cacheTime&&(e.cacheTime=Math.max(e.cacheTime,1e3)))})(a),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(a,r),(e=>{i.useEffect(()=>{e.clearReset()},[e])})(r);const[s]=i.useState(()=>new t(n,a)),c=s.getOptimisticResult(a);if(Sp(i.useCallback(e=>{const t=o?()=>{}:s.subscribe(ep.batchCalls(e));return s.updateResult(),t},[s,o]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),i.useEffect(()=>{s.setOptions(a,{listeners:!1})},[a,s]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(a,c,o))throw((e,t,n)=>t.fetchOptimistic(e).then(({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)}).catch(t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)}))(a,s,r);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:o})=>e.isError&&!t.isReset()&&!e.isFetching&&Pp(n,[e.error,o]))({result:c,errorResetBoundary:r,useErrorBoundary:a.useErrorBoundary,query:s.getCurrentQuery()}))throw c.error;return a.notifyOnChangeProps?c:s.trackResult(c)}function Lp(e,t,n){return Dp(Th(e,t,n),up)}function qp(e,t,n){const o=function(e,t,n){return Bh(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),r=Ip({context:o.context}),[a]=i.useState(()=>new fp(r,o));i.useEffect(()=>{a.setOptions(o)},[a,o]);const s=Sp(i.useCallback(e=>a.subscribe(ep.batchCalls(e)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),c=i.useCallback((e,t)=>{a.mutate(e,t).catch(zp)},[a]);if(s.error&&Pp(a.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:c,mutateAsync:s.mutate}}function zp(){}function Mp(e){return qp(function(e){var t=e.payload;return _h.getInstance().postWebhookV2MultiAccount({payload:t})},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Np(e){return qp(function(e){var t=e.code,n=e.accountCode;return _h.getInstance().deleteWebhookV2(t,n)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Up(e){return qp(function(e){var t=e.code,n=e.payload,o=e.accountCode;return _h.getInstance().updateWebhookV2(t,n,o)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Bp(){return qp(function(e){var t=e.name,n=e.principal;return _h.getInstance().postAccount(t,n)})}function Fp(){return qp(function(e){var t=e.name,n=e.code,o=e.principal;return _h.getInstance().patchAccountV2({name:t,code:n,principal:o})})}function Wp(){return qp(function(e){var t=e.account_code;return _h.getInstance().putAccountPrincipal({account_code:t})})}function Gp(){return qp(function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return _h.getInstance().putAccountsUserMassive(t,n,o)})}function Hp(){return qp(function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return _h.getInstance().deleteAccountsUserMassive(t,n,o)})}function Vp(){return qp(["post-validate-status-connection"],function(e){var t=e.payload,n=e.accountCode;return _h.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function $p(){return qp(["post-change-status-connection"],function(e){var t=e.payload,n=e.accountCode;return _h.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Kp(){return qp(function(e){return _h.getInstance().putCosts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Qp(){return qp(["post-connection"],function(e){var t=e.payload;return _h.getInstance().postMultiConnection({payload:t}).then(function(e){return null==e?void 0:e.data})})}function Jp(){return qp(["new-post-connection-validate"],function(){return _h.getInstance().postMultiConnectionValidate().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Xp(){return qp(["patch-connection"],function(e){var t=e.payload,n=e.connectionCode;return _h.getInstance().patchConnection({payload:t,connectionCode:n}).then(function(e){return null==e?void 0:e.data})})}function Yp(){return qp(function(e){var t=e.payload;return _h.getInstance().postDefaultRoutes({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function Zp(){return qp(function(e){return _h.getInstance().postValidateCredentials(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function ef(){return qp(["patch-organizations"],function(){return _h.getInstance().updateOrganizationStatus().then(function(e){return null==e?void 0:e.data})})}function tf(){return qp(function(e){return _h.getInstance().getOrgByName(e).then(function(e){return null==e?void 0:e.data})})}function nf(){var e=this;return qp(function(o){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,_h.getInstance().changePasswordV2(o).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function of(e){return qp(function(e){return _h.getInstance().updateProfile(e)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function rf(){return qp(function(e){return _h.getInstance().inviteUsersMassive(e,e.organizationCode)})}function af(){return qp(function(e){var t=e.userCode,n=e.organizationCode;return _h.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})})}function sf(){return qp(function(e){return _h.getInstance().createUserAuth0(e)})}function cf(){return qp(function(e){return _h.getInstance().postCall(e)})}function uf(){return qp(function(e){return _h.getInstance().changeLoginMethods(e)})}function lf(e){return qp(function(e){return _h.getInstance().updateIsActiveCheckout(e)},e)}function df(){return qp(function(e){var t=e.accountCode,n=e.template;return _h.getInstance().updateCheckoutTemplate({accountCode:t,template:n}).then(function(e){return null==e?void 0:e.data})})}function hf(){return qp(function(e){var t=e.accountCode,n=e.theme;return _h.getInstance().updateStylingTheme({accountCode:t,theme:n}).then(function(e){return null==e?void 0:e.data})})}function pf(){return qp(function(e){var t=e.payload,n=e.transactionId,o=e.paymentId,r=e.action;return _h.getInstance().createOperationTransaction(t,n,o,r)})}function ff(){return qp(function(e){var t=e.payload,n=e.paymentId,o=e.transactionId,r=e.handleSetProgress;return _h.getInstance().uploadChargebacks(t,n,o,r)})}var mf=new op({}),gf=new class{constructor(e={}){this.queryCache=e.queryCache||new op,this.mutationCache=e.mutationCache||new ip,this.logger=e.logger||Zh,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=Hh.subscribe(()=>{Hh.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=$h.subscribe(()=>{$h.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=Ih(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const o=Th(e,t,n),r=this.getQueryData(o.queryKey);return r?Promise.resolve(r):this.fetchQuery(o)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const o=this.queryCache.find(e),r=function(e,t){return"function"==typeof e?e(t):e}(t,null==o?void 0:o.state.data);if(void 0===r)return;const a=Th(e),i=this.defaultQueryOptions(a);return this.queryCache.build(this,i).setData(r,{...n,manual:!0})}setQueriesData(e,t,n){return ep.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=Ih(e,t),o=this.queryCache;ep.batch(()=>{o.findAll(n).forEach(e=>{o.remove(e)})})}resetQueries(e,t,n){const[o,r]=Ih(e,t,n),a=this.queryCache,i={type:"active",...o};return ep.batch(()=>(a.findAll(o).forEach(e=>{e.reset()}),this.refetchQueries(i,r)))}cancelQueries(e,t,n){const[o,r={}]=Ih(e,t,n);void 0===r.revert&&(r.revert=!0);const a=ep.batch(()=>this.queryCache.findAll(o).map(e=>e.cancel(r)));return Promise.all(a).then(Sh).catch(Sh)}invalidateQueries(e,t,n){const[o,r]=Ih(e,t,n);return ep.batch(()=>{var e,t;if(this.queryCache.findAll(o).forEach(e=>{e.invalidate()}),"none"===o.refetchType)return Promise.resolve();const n={...o,type:null!=(e=null!=(t=o.refetchType)?t:o.type)?e:"active"};return this.refetchQueries(n,r)})}refetchQueries(e,t,n){const[o,r]=Ih(e,t,n),a=ep.batch(()=>this.queryCache.findAll(o).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...r,cancelRefetch:null==(t=null==r?void 0:r.cancelRefetch)||t,meta:{refetchPage:o.refetchPage}})}));let i=Promise.all(a).then(Sh);return null!=r&&r.throwOnError||(i=i.catch(Sh)),i}fetchQuery(e,t,n){const o=Th(e,t,n),r=this.defaultQueryOptions(o);void 0===r.retry&&(r.retry=!1);const a=this.queryCache.build(this,r);return a.isStaleByTime(r.staleTime)?a.fetch(r):Promise.resolve(a.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Sh).catch(Sh)}fetchInfiniteQuery(e,t,n){const o=Th(e,t,n);return o.behavior=sp(),this.fetchQuery(o)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Sh).catch(Sh)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find(t=>Ph(e)===Ph(t.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(t=>Dh(e,t.queryKey));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find(t=>Ph(e)===Ph(t.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(t=>Dh(e,t.mutationKey));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=jh(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:!1,staleTime:3e5,useErrorBoundary:!0}},queryCache:mf});function yf(){return qp(function(e){return _h.getInstance().createReconciliationsReportV2(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function vf(){return qp(function(e){return _h.getInstance().createReportV2(e).then(function(e){return null==e?void 0:e.data})})}function bf(){return qp(function(e){return _h.getInstance().getTotalRowsForExport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function kf(){return qp(function(e){return _h.getInstance().cancelReport(e).then(function(e){return null==e?void 0:e.data})})}function wf(o){var r=this;return qp(function(){return t(r,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().createReportTemplate(o).then(function(e){return null==e?void 0:e.data})]})})},{onMutate:function(o){return t(r,void 0,void 0,function(){var t;return n(this,function(n){switch(n.label){case 0:return[4,gf.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return n.sent(),t=gf.getQueryData(["GET/reports/templates"]),gf.setQueryData(["GET/reports/templates"],function(t){return e(e([],t,!0),[o],!1)}),[2,{previousTemplates:t}]}})})},onError:function(e,t,n){gf.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){gf.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function _f(e){return qp(function(){return _h.getInstance().updateReportTemplate(e).then(function(e){return null==e?void 0:e.data})})}function xf(e,o,r){var a=this;return void 0===r&&(r=null),qp(function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().postSmartRoutingCreateWorkflow(e,o).then(function(e){return null==e?void 0:e.data})];case 1:return[2,t.sent()]}})})},r)}function Ef(e,o){var r=this,a=e.versionCode,i=e.accountCode,s=e.organizationCode;return void 0===o&&(o=null),qp(function(){return t(r,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,_h.getInstance().postSmartRoutingPublishVersion(i,a,s).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})},o)}function Sf(e,t){var n=e.data,o=e.accountCode;return void 0===t&&(t=null),qp(function(){return _h.getInstance().putSmartRoutingUpdateWorkflow(o,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},t)}function Cf(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),qp(function(){return _h.getInstance().deleteSmartRoutingVersion(o,n).then(function(e){return null==e?void 0:e.data})},t)}function Rf(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),qp(function(){return _h.getInstance().postSmartRoutingDuplicateVersion(o,n).then(function(e){return null==e?void 0:e.data})},t)}function Tf(e,t){var n=e.paymentMethod,o=e.active,r=e.accountCode;return void 0===t&&(t=null),qp(function(){return _h.getInstance().putSmartRoutingToggleMethod(r,n,o).then(function(e){return null==e?void 0:e.data})},t)}function If(e,t){var n=e.declinedId,o=e.accountCode;return void 0===t&&(t=null),qp(function(e){return void 0===e&&(e=null),_h.getInstance().updateSmartRoutingDeclinedGroup(o,n,e).then(function(e){return null==e?void 0:e.data})},t)}function Af(e){var t=e.accountCode;return qp(function(e){return void 0===e&&(e=null),_h.getInstance().createSmartRoutingDeclinedGroup(t,e).then(function(e){return null==e?void 0:e.data})},e.options)}function Of(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),qp(function(e){return void 0===e&&(e=!1),_h.getInstance().updateSmartRoutingFavorite(o,n,e).then(function(e){return null==e?void 0:e.data})},t)}function jf(e,t){var n=e.code,o=e.name,r=e.accountCode;return void 0===t&&(t=null),qp(function(){return _h.getInstance().putSmartRoutingUpdateWorkflowName(r,{code:n,name:o}).then(function(e){return null==e?void 0:e.data})},t)}function Pf(e,t){var n=e.accountCode,o=e.workflowVersionCode;return void 0===t&&(t=null),qp(function(e){return _h.getInstance().simulateSmartRoutingTransaction(n,o,e).then(function(e){return null==e?void 0:e.data})},t)}function Df(e,t){return void 0===t&&(t=null),qp(function(t){return _h.getInstance().updateMonitorRedistribution(e,t).then(function(e){return null==e?void 0:e.data})},t)}function Lf(e,t){return void 0===t&&(t={}),qp(function(t){var n=t.declinedGroupCode;return _h.getInstance().removeDeclinedGroup(e,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},r(r({},t),{useErrorBoundary:!1}))}function qf(e,t){return void 0===t&&(t={}),qp(function(t){var n=t.payload;return _h.getInstance().multiAccountDeclinedGroupCreate(e,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},r(r({},t),{useErrorBoundary:!1}))}var zf=function(e){return qp(function(t){return _h.getInstance().createMonitorThreshold(t,e).then(function(e){return e.data})})},Mf=function(e){return qp(function(t){return _h.getInstance().createMonitorTemplate(t,e).then(function(e){return e.data})})};function Nf(){return qp(function(e){var t=e.payload;return _h.getInstance().postSlackMessageChannel(t).then(function(e){return null==e?void 0:e.data})})}function Uf(){return qp(function(e){var t=e.userCode,n=e.organizationCode;return _h.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then(function(e){return null==e?void 0:e.data})})}function Bf(){return qp(function(){return _h.getInstance().setCustodian().then(function(e){return null==e?void 0:e.data})})}function Ff(){return qp(function(e){var t=e.payload,n=e.accountCode;return _h.getInstance().createRoles(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Wf(){var e=this;return qp(function(o){var r=o.payload,a=o.id,i=o.accountCode;return t(e,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().editRoles({payload:r,id:a},i)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}})})},{useErrorBoundary:!1})}function Gf(){return qp(function(e){return _h.getInstance().deleteRoles(e).then(function(e){return null==e?void 0:e.data})})}function Hf(){return qp(["post-payment-links"],function(e){var t=e.payload,n=e.accountCode;return _h.getInstance().postPaymentLinks({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})})}function Vf(){return qp(["post-delete-payment-link"],function(e){var t=e.code;return _h.getInstance().postDeletePaymentLink({code:t}).then(function(e){return null==e?void 0:e.data})})}function $f(){return qp(["patch-payment-links"],function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return _h.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:o}).then(function(e){return null==e?void 0:e.data})})}function Kf(){return qp(function(e){var t=e.payload;return _h.getInstance().postUserSettings(t)},{onMutate:function(e){return e}})}function Qf(){return qp(function(e){return _h.getInstance().postUserThemeSettings(e)})}function Jf(){return qp(function(e){var t=e.payload,n=e.section;return _h.getInstance().postUserSettingsTables(t,n)},{onMutate:function(e){return e},onSuccess:function(e){var t=gf.getQueryData(["fetch-profile"]);e.data&&gf.setQueryData(["fetch-profile"],r(r({},t),{settings:e.data}))}})}function Xf(e){return qp(["pinned-sections"],function(e){var t=e.payload;return _h.getInstance().postUserSettingsPinned(t)},{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function Yf(){return qp(function(e){var t=e.password,n=e.otp;return _h.getInstance().getMfaTokenValidation(t,n).then(function(e){return null==e?void 0:e.data})})}function Zf(){return qp(function(){return _h.getInstance().getEmailOtp().then(function(e){return null==e?void 0:e.data})})}function em(){return qp(function(e){return _h.getInstance().confirmMfaOtp(e).then(function(e){return null==e?void 0:e.data})})}function tm(){return qp(function(e){return _h.getInstance().unrollMfa(e).then(function(e){return null==e?void 0:e.data})})}function nm(){return qp(function(){return _h.getInstance().validatePasswordStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return{valid:!1}})})}function om(){return qp(["post-get-allowlist-items"],function(e){var t=e.payload;return _h.getInstance().postAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function rm(){return qp(["post-get-allowlist-multi-account"],function(e){var t=e.payload;return _h.getInstance().postGetAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function am(){return qp(["post-create-allowlist-multi-account"],function(e){var t=e.payload;return _h.getInstance().postCreateAllowlistMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function im(){return qp(["patch-change-status-allowlist"],function(e){var t=e.payload;return _h.getInstance().patchChangeStatusAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function sm(){return qp(["patch-change-status-allowlist-item"],function(e){var t=e.payload;return _h.getInstance().patchChangeStatusAllowlistItem({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function cm(){return qp(["post-add-allowlist-items"],function(e){var t=e.payload;return _h.getInstance().patchAddAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function um(){return qp(["patch-allowlist"],function(e){var t=e.payload;return _h.getInstance().patchAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function lm(){return qp(["post-blacklist-multi-account"],function(e){var t=e.payload;return _h.getInstance().postBlackListMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function dm(){return qp(["put-blacklist"],function(e){return _h.getInstance().putBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function hm(){return qp(["change-blacklist"],function(e){return _h.getInstance().changeBlackListStatus(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function pm(){return qp(["change-blacklist-item"],function(e){return _h.getInstance().changeBlackListStatusItem(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function fm(){return qp(["post-blacklist-items"],function(e){var t=e.payload;return _h.getInstance().postBlackListItems({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function mm(){return qp(["delete-blacklist"],function(e){var t=e.black_list_code;return _h.getInstance().deleteBlackListType({black_list_code:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function gm(e){var t=e.handleSetProgress;return qp(["post-blacklist-batch"],function(e){var n=e.blacklist_code,o=e.expiration_days,r=e.file;return _h.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:o,file:r,handleSetProgress:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function ym(){return qp(["change-payments-webhook"],function(e){var t=e.status,n=e.paymentCode;return _h.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function vm(){return qp(["delete-blacklist-items"],function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return _h.getInstance().deleteBlockListItem({blocklist_code:t,blocklist_item_id:n,account_code:o}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function bm(){return qp(["valiate-blacklist-items"],function(e){return _h.getInstance().valiateBlockListItems({payload:e}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function km(){return qp(["delete-allowlist-item"],function(e){return _h.getInstance().deleteAllowlistItem({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function wm(){return qp(["validate-allowlist-items"],function(e){return _h.getInstance().validateAllowlistItems({payload:e}).then(function(e){return e.data}).catch(function(e){return e})})}function _m(e){var t=e.fileName,n=e.onSuccess,o=e.onError,r=c(0),a=r[0],i=r[1],s=u({cancel:function(){return null}}),l=qp(["upload-file-chargeback",t],function(e){var t=_h.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:i}),r=t.promise,a=t.cancel;return s.current.cancel=a,r.then(function(e){return null==n||n(null==e?void 0:e.data),null==e?void 0:e.data}).catch(function(e){throw null==o||o(),e})},{useErrorBoundary:!1});return{mutation:l,cancelRequest:s.current.cancel,progress:a}}function xm(){return qp(function(e){return _h.getInstance().uploadBatchRefundsV2({payload:e}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Em(){var e=this;return qp(function(o){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().batchRefundByFile({payload:o}).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function Sm(){var e=this;return qp(function(o){var r=o.batchRefundId,a=o.organizationCode,i=o.accountCode;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().getBatchRefundProcessedFileDownload(r,a,i).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function Cm(){var e=this;return qp(function(o){var r=o.batchRefundId,a=o.organizationCode,i=o.accountCode;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().getBatchRefundUserFileDownload(r,a,i).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function Rm(){var e=u({cancel:function(){return null}}),t=qp(["upload-file"],function(t){var n=_h.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),o=n.promise,r=n.cancel;return e.current.cancel=r,o.then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})});return{mutation:t,cancelRequest:e.current.cancel}}function Tm(){return qp(function(e){var t=e.payload,n=e.organizationCode;return _h.getInstance().updateMFAConfig(t,n)})}function Im(){return qp(function(e){var t=e.payload,n=e.organizationCode;return _h.getInstance().mfaExcludeUsers(t,n)})}function Am(e){return Lp(["GET/scheduled-reports",e],function(){return _h.getInstance().getScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Om(){return qp(function(e){var t=e.payload;return _h.getInstance().postScheduledReport(t).then(function(e){return{data:e.data,status:e.status}}).catch(function(e){return e})})}function jm(){return qp(function(e){var t=e.reportCode,n=e.payload;return _h.getInstance().updateScheduledReport(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Pm(){return qp(function(e){return _h.getInstance().deleteScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Dm(){return qp(function(e){return _h.getInstance().getConditionalConfigRules(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Lm(){return qp(function(e){return _h.getInstance().getRule(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function qm(){return qp(function(e){var t=e.payload,n=e.accountCode;return _h.getInstance().postCreateRuleMultiAccount(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function zm(){return qp(function(e){var t=e.payload,n=e.ruleId,o=e.accountCode;return _h.getInstance().postEditRule(t,n,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Mm(){return qp(function(e){var t=e.payload;return _h.getInstance().postCreateCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Nm(){return qp(function(e){var t=e.payload,n=e.code;return _h.getInstance().pathCreateCustomizedApiKeys(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Um(){return qp(function(e){var t=e.code,n=e.password;return _h.getInstance().getCustomizedApiKeysToken(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Bm(){return qp(function(e){var t=e.passwordOtp;return _h.getInstance().getDeveloperCredentialsValidatePassword(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Fm(){return qp(function(e){var t=e.code;return _h.getInstance().deleteCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Wm(){return qp(function(e){var t=e.payload,n=e.code;return _h.getInstance().patchApiKeysEditNote(t,n).then(function(e){return e.data}).catch(function(e){return e})})}function Gm(){return qp(function(e){var t=e.payload,n=e.code,o=e.password;return _h.getInstance().postApiKeysRoll(t,n,o).then(function(e){return e.data}).catch(function(e){return e})})}function Hm(){return qp(function(e){var t=e.password,n=e.accountCode;return _h.getInstance().getDeveloperCredentials(t,n).then(function(e){return r(r({},null==e?void 0:e.data),{isValid:!0})}).catch(function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}})})}function Vm(e){return qp(function(e){var t=e.payload;return _h.getInstance().postAuditMonitors(t)},{onMutate:e.onMutate})}function $m(){return qp(function(e){var t=e.codes;return _h.getInstance().postResendWebhooks({codes:t}).then(function(e){return null==e?void 0:e.data})})}function Km(){return qp(function(e){return _h.getInstance().postExportApiLogs(e).then(function(e){return null==e?void 0:e.data})})}function Qm(o){var r=this;return qp(function(){return _h.getInstance().createReconciliationReportTemplate(o).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{onMutate:function(o){return t(r,void 0,void 0,function(){var t,r;return n(this,function(n){switch(n.label){case 0:return[4,gf.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return n.sent(),t=null===(r=gf.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===r?void 0:r.templates,gf.setQueryData(["GET/reconciliation/reports/templates"],function(t){return{templates:e(e([],t.templates,!0),[o],!1)}}),[2,{previousTemplates:t}]}})})},onError:function(e,t,n){gf.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){gf.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function Jm(e){return qp(function(){return _h.getInstance().updateReconciliationReportTemplate(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Xm(){return qp(["POST/reconciliation/alerts"],function(e){return _h.getInstance().postReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){gf.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Ym(){return qp(["DELETE/reconciliation/alerts"],function(e){return _h.getInstance().deleteReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){gf.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Zm(){return qp(["UPDATE/reconciliation/alerts"],function(e){return _h.getInstance().updateReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){gf.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function eg(){return qp(function(e){var t=e.payload;return _h.getInstance().postCreateInsightsReport(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function tg(){return qp(function(e){return _h.getInstance().createSamlConfig(e)})}function ng(){return qp(function(e){return _h.getInstance().updateSamlConfig(e)})}function og(){return qp(function(){return _h.getInstance().deleteSamlConfig()})}function rg(e,t){return void 0===t&&(t={}),qp(function(t){return _h.getInstance().generateAIWorkflowRoutes(e,t).then(function(e){return null==e?void 0:e.data})},r(r({},t),{useErrorBoundary:!1}))}function ag(e){return void 0===e&&(e={}),qp(function(e){return _h.getInstance().postAIGenerationFeedback(e).then(function(e){return null==e?void 0:e.data})},r(r({},e),{useErrorBoundary:!1}))}function ig(){return qp(function(e){return _h.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function sg(){return qp(function(e){return _h.getInstance().deleteChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function cg(){return qp(function(e){var t=e.chart_id,n=e.type,o=e.name,r=e.user_prompt,a=void 0===r?"":r;return _h.getInstance().patchChartGPTChart(t,{type:n,name:o,user_prompt:a}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function ug(){var e=this;return qp(function(o){return t(e,void 0,void 0,function(){var e,t,r,a,i;return n(this,function(n){switch(n.label){case 0:return[4,_h.getInstance().createChartGPTChart(o)];case 1:if(e=n.sent(),!(t=null!==(a=null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.chartgpt_id)&&void 0!==a?a:null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:t}]}})})},{useErrorBoundary:!1})}function lg(){var e=this;return qp(["POST/template-reporting/report-templates"],function(o){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().createTemplateReporting(o).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){gf.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function dg(){var e=this;return qp(["POST/template-reporting/report-templates/clone"],function(o){var r=o.templateId,a=o.payload;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().cloneReportTemplate(r,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){gf.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function hg(){var e=this;return qp(["POST/template-reporting/report-templates/selection"],function(o){var r=o.templateId,a=o.payload;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().updateTemplateSelection(r,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){gf.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function pg(){var e=this;return qp(["POST/template-reporting/report-templates/status"],function(o){var r=o.templateId,a=o.payload;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().changeTemplateStatus(r,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){gf.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function fg(){var e=this;return qp(["DELETE/template-reporting/report-templates"],function(o){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().deleteReportTemplate(o).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){gf.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function mg(){var e=this;return qp(["POST/template-reporting/report-schedules"],function(o){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().createReportSchedule(o).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){gf.invalidateQueries({queryKey:["GET/template-reporting/schedules"]})},useErrorBoundary:!1})}function gg(){var e=this;return qp(["POST/template-reporting/report-schedules/deactivate"],function(o){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().deactivateReportSchedule(o).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){gf.invalidateQueries({queryKey:["GET/template-reporting/schedules"]})},useErrorBoundary:!1})}function yg(){var e=this;return qp(["DELETE/template-reporting/report-schedules"],function(o){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().deleteReportSchedule(o).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){gf.invalidateQueries({queryKey:["GET/template-reporting/schedules"]})},useErrorBoundary:!1})}var vg=function(){var e,t;return null===(t=null===(e=function(e){var t=localStorage.getItem(e),n=c(t&&JSON.parse(t)),o=n[0],r=n[1];return l(function(){var t=function(t){if(t.key===e){var n=t.newValue;r(n)}};return window.addEventListener("storage",t),function(){window.removeEventListener("storage",t)}},[e]),o}("account"))||void 0===e?void 0:e.value)||void 0===t?void 0:t.organization_code};function bg(e){var o=this;return Lp(["fetch-payments-lazy",e],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().postPaymentsLazy(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function kg(e){return Lp(["fetch-payments-evaluated",e],function(){return _h.getInstance().postPaymentsEvaluated(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function wg(e){var o=this,r=e.paymentCode,a=e.enabled,i=void 0===a||a,s=_h.getInstance();return Lp(["get-payment-v2",r],function(){return t(o,void 0,void 0,function(){return n(this,function(e){return[2,s.getPaymentV2(r).then(function(e){return e.data})]})})},{enabled:i,cacheTime:500,useErrorBoundary:!1})}function _g(e){var o=this,r=e.payment_code,a=e.enabled,i=void 0===a||a,s=_h.getInstance();return Lp(["get-payment-transaction-details-v2",r],function(){return t(o,void 0,void 0,function(){return n(this,function(e){return[2,s.getTransactionDetailsV2({payment_code:r}).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!r&&i,cacheTime:0,useErrorBoundary:!1})}function xg(e){var o=this,r=e.transaction_code,a=e.enabled,i=void 0===a||a,s=_h.getInstance();return Lp(["get-payment-transaction-raw-response",r],function(){return t(o,void 0,void 0,function(){return n(this,function(e){return[2,s.getTransactionRawResponse({transaction_code:r})]})})},{enabled:!!r&&i,cacheTime:0,useErrorBoundary:!1})}function Eg(e){var t=vg();return Lp(["payment-methods",e],function(){return _h.getInstance().getPaymentMethodsByCountry({provider_id:null==e?void 0:e.provider_id,country:null==e?void 0:e.country},t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!(null==e?void 0:e.provider_id),useErrorBoundary:!1})}function Sg(){return Lp({queryKey:["/payment-methods/providers"],queryFn:function(){return _h.getInstance().getPaymentMethodsAndProviders().then(function(e){return null==e?void 0:e.data})},cacheTime:864e5,useErrorBoundary:!1})}function Cg(){return Lp(["GET/catalog/card-brands"],function(){return _h.getInstance().getCardBrands().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Rg(e,t){return void 0===e&&(e=!0),void 0===t&&(t=El.PAYMENTS),Lp(["payment-filters",e,t],function(){return _h.getInstance().getPaymentFilters(t).then(function(e){return null==e?void 0:e.data})},{enabled:e,useErrorBoundary:!1,cacheTime:3e5})}function Tg(){return Lp(["payment-metrics-filters"],function(){return _h.getInstance().getPaymentMetricsFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Ig(e){var t=e.transaction_code,n=e.enabled;return Lp(["payment-transaction-details",t],function(){return _h.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Ag(e){var t=e.payment_code,n=e.enabled;return Lp(["transaction-history",t],function(){return _h.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Og(e){var o=this;return Lp(["POST/transactions",JSON.stringify(e)],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().postTransactions(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function jg(e){var o=this;return Lp(["POST/fraud-transactions",JSON.stringify(e)],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().postFraudTransactions(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function Pg(e){return Lp(["GET/payout-detail",JSON.stringify(e)],function(){var t=_h.getInstance();return e.organization_code?t.getPayoutDetails(e).then(function(e){return null==e?void 0:e.data}):{}},{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function Dg(e){return Lp(["GET/payout-transaction-detail",JSON.stringify(e)],function(){return _h.getInstance().getPayoutTransactionDetails(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0,useErrorBoundary:!1})}function Lg(e){var t=vg();return Lp(["GET/payout-history-detail",JSON.stringify(e)],function(){return _h.getInstance().getPayoutHistoryDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function qg(e,o){var r=this,a=vg();return Lp(["GET/useGetProofOfCancel",a,e,o],function(){return t(r,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().getProofOfCancel(e,a,o).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!a&&!!o,cacheTime:0,useErrorBoundary:!1})}function zg(e,o){var r=this,a=vg();return Lp(["GET/useGetProofOfPayment",a,e,o],function(){return t(r,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().getProofOfPayment(e,a,o).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!a&&!!o,cacheTime:0,useErrorBoundary:!1})}function Mg(e,o,r){var a=this,i=_h.getInstance();return Lp(["send-payment-notification",e,o],function(){return t(a,void 0,void 0,function(){var t,a;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,i.sendPaymentNotification(e,o)];case 1:return t=n.sent(),r.onSuccess(),[2,t.data];case 2:throw a=n.sent(),r.onError(),a;case 3:return[2]}})})},{enabled:r.enabled,cacheTime:0,useErrorBoundary:!1})}function Ng(e){return Lp(["usePayoutsList",e&&JSON.stringify(e)],function(){var t=_h.getInstance();if(e)return t.postPayouts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&!!Object.values(e).length,cacheTime:0})}function Ug(e){var o=this;void 0===e&&(e=!0);var r=vg();return Lp(["getPayoutsFilters",r],function(){return t(o,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().getPayoutsFilters(r).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{enabled:e&&!!r})}function Bg(e){var t=e.password,n=e.accountCode;return Lp(["developers"],function(){return _h.getInstance().getDeveloperCredentials(t,n).then(function(e){return r(r({},null==e?void 0:e.data),{isValid:!0})}).catch(function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}})},{enabled:!1,cacheTime:0})}function Fg(){return Lp(["fetch-customized-api-keys-members"],function(){return _h.getInstance().getCustomizedApiKeysMembers().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Wg(){return Lp(["developers-get-allowed-ips"],function(){return _h.getInstance().getAllowedIps().then(function(e){return(null==e?void 0:e.data)?r(r({},null==e?void 0:e.data),{isError:!1}):null}).catch(function(e){return r(r({},e),{isError:!0})})},{enabled:!1,cacheTime:0})}function Gg(){return Lp(["fetch-customized-api-keys-accounts"],function(){return _h.getInstance().getCustomizedApiKeysAccounts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Hg(e){return Lp(["fetch-customized-api-keys",e],function(){return _h.getInstance().postCustomizedApiKeys(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0,enabled:!!(null==e?void 0:e.length)})}function Vg(){return Lp(["fetch-customized-api-keys-products"],function(){return _h.getInstance().getCustomizedApiKeysProducts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0})}function $g(){return qp(["developers-patch-allowed-ips"],function(e){return _h.getInstance().patchAllowedIps(e).then(function(e){return(null==e?void 0:e.data)?r(r({},null==e?void 0:e.data),{isError:!1}):null}).catch(function(e){return r(r({},e),{isError:!0})})},{cacheTime:0})}function Kg(){return Lp(["fetch-organizations"],function(){return _h.getInstance().getOrganization().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Qg(){return Lp(["fetch-all-organizations",vg()],function(){return _h.getInstance().getAllOrganization().then(function(e){return(null==e?void 0:e.data)||[]})},{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})}function Jg(e){var t=vg();return Lp(["organizations-provider-params",e],function(e){var n=e.queryKey;return _h.getInstance().getProviderParams(n[1],t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.id),useErrorBoundary:!1})}function Xg(e){var t=e.integration_code,n=e.enabled,o=e.accountCode;return Lp(["integration-params",t,o],function(){return t.includes("undefined")?{}:_h.getInstance().getIntegrationParams({accountCode:o,integration_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:n,useErrorBoundary:!1})}function Yg(e){var t=e.accountCode,n=e.organizationCode,o=vg();return Lp(["organizations-account-integrations",t,n],function(){return _h.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||o}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:!!t,useErrorBoundary:!1})}function Zg(e){var t=e.accountCode,n=e.paymentMethod;return Lp(["fetch-connections-by-payment-method",n,t],function(){return _h.getInstance().getConnectionsByPaymentMethod(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function ey(){var e=this;return Lp(["fetch-hash-pylon"],function(){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().getHashPylon()]})})},{keepPreviousData:!0,useErrorBoundary:!1})}function ty(){return Lp(["connections"],function(){return _h.getInstance().getConnections().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function ny(){return Lp(["dialogs"],function(){return _h.getInstance().getDialogs().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,retryDelay:2e3,cacheTime:36e5})}function oy(){return Lp(["params-catalog"],function(){return _h.getInstance().getWebhookParamsV2().then(function(e){return null==e?void 0:e.data})})}function ry(e){var t=e.accountCode,n=e.name;return Lp(["webhooks",t,n],function(){return _h.getInstance().getWebhooksV3({accountCode:t,name:n}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,useErrorBoundary:!1})}function ay(e){var t=e.accountCode,n=e.enabled;return Lp(["webhooks-detail",t],function(){return _h.getInstance().getWebhooksV2Detail({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!n})}function iy(e){var t,n=vg(),o=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Lp({queryKey:["accounts",o],queryFn:function(){return _h.getInstance().getAccounts(o).then(function(e){return null==e?void 0:e.data})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!o})}function sy(e){return Lp(["accountsV2",e],function(){return _h.getInstance().getAccountsV2().then(function(e){return(null==e?void 0:e.data)||[]}).catch(function(e){throw e})},{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function cy(e){return Lp(["accountsV2-by-user",e],function(){return e?_h.getInstance().getAccountsByUser(e).then(function(e){return{accountsV2ByUser:(null==e?void 0:e.data)||null}}).catch(function(e){return{accountsV2ByUser:[],error:e}}):{accountsV2ByUser:[]}},{enabled:!!e,staleTime:0})}function uy(e,o){var r=this;return Lp({queryKey:["accounts-for-impersonation",e,o],queryFn:function(){return t(r,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().getAccountsForImpersonation(e).then(function(e){var t,n;return(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.response)||void 0===n?void 0:n.map(function(e){return{label:e.name,value:o?e.code_testing:e.code_live,code_live:e.code_live,code_testing:e.code_testing}}))||[]})]})})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function ly(){return Lp(["menu"],function(){return _h.getInstance().getMenu().then(function(e){return ah(e)?hh:null==e?void 0:e.data}).catch(function(){return hh})})}function dy(){return Lp(["/payment/statuses/style"],function(){return _h.getInstance().useGetPaymentStatusesStyles().then(function(e){return ah(e)?ih:null==e?void 0:e.data}).catch(function(){return ih})})}function hy(){return Lp(["/transaction/statuses/style"],function(){return _h.getInstance().useGetTransactionStatusesStyles().then(function(e){return ah(e)?sh:null==e?void 0:e.data}).catch(function(){return sh})},{cacheTime:36e5,useErrorBoundary:!1})}function py(){return Lp(["/reconciliation/transaction/statuses/style"],function(){return _h.getInstance().useGetReconciliationTransactionStatusesStyles().then(function(e){return ah(e)?ch:null==e?void 0:e.data}).catch(function(){return ch})})}function fy(){return Lp(["timezone-catalog"],function(){return _h.getInstance().useGetTimeZoneCatalog().then(function(e){return ah(e)?uh:null==e?void 0:e.data}).catch(function(){return uh})})}function my(){return Lp(["/cms/audit-logs-filters"],function(){return _h.getInstance().useGetAuditLogsFilters().then(function(e){return ah(e)?lh:null==e?void 0:e.data}).catch(function(){return lh})})}function gy(){return Lp(["/cms/static-contents"],function(){return _h.getInstance().getDashboardStaticContents().then(function(e){var t,n;return ah(e)?dh:(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t[0])||void 0===n?void 0:n.data)||{}})},{cacheTime:6048e5,useErrorBoundary:!1})}function yy(){return Lp(["/cms/locales"],function(){return _h.getInstance().getLocales().then(function(e){return ah(e)?ph:e.data}).catch(function(){return ph})})}var vy=function(){var e=c("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return l(function(){window.addEventListener("storage",function(e){"isTesting"===e.key&&n("ON"===e.newValue)})},[]),{isTesting:t}};function by(e){return Lp(["smart-routing-methods",e],function(){return _h.getInstance().getSmartRoutingMethods(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function ky(e,t){return Lp(["smart-routing-workflow",t,e],function(){return _h.getInstance().getSmartRoutingWorkflow(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e,cacheTime:0,retry:!1})}function wy(e,t){return Lp(["smart-routing-condition-types",e,t],function(){return _h.getInstance().getSmartRoutingConditionTypes(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e})}function _y(e,t){return Lp(["smart-routing-condition-payment-method",e,t],function(){return _h.getInstance().getSmartRoutingConditionPaymentMethod(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:null!==t})}function xy(e,t){return Lp(["smart-routing-condition-types-values",t,e],function(){return _h.getInstance().getSmartRoutingConditionTypesValues(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!e,useErrorBoundary:!1})}function Ey(e){var t=e.accountCode,n=e.workflowVersionId;return Lp(["smart-routing-workflow-version",n,t],function(){return _h.getInstance().getSmartRoutingWorkflowVersion(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!n&&!!t,cacheTime:0})}function Sy(e,t,n){return Lp(["smart-routing-next-route",e,n,t],function(){return _h.getInstance().getSmartRoutingNextSteps(e,t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function Cy(e){return Lp(["smart-routing-decline-groups",e],function(){return _h.getInstance().getSmartRoutingDeclinedGroup(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function Ry(e,t){return Lp(["smart-routing-payment-route",e,t],function(){return _h.getInstance().getSmartRoutingPaymentRoute(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&!!t,cacheTime:0})}function Ty(e){return Lp(["smart-routing-simulate-condition-type-values",e],function(){return _h.getInstance().getSmartRoutingSimulateConditionTypeValues(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function Iy(e){var t=e.text,n=e.conditionType;return Lp(["smart-routing-search-condition-values",t,n],function(){return _h.getInstance().getSmartRoutingSearchConditionValues(n,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!n&&!!t,cacheTime:0})}function Ay(){return Lp(["smart-routing-conversion-rates"],function(){return _h.getInstance().getProviderConversionRatesData().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!1,useErrorBoundary:!1})}function Oy(){var e=this;return Lp({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,_h.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})}function jy(){var e=this;return Lp({queryKey:["smart-routing-network-tokens-onboarding"],queryFn:function(){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,_h.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})}function Py(e){return Lp(["fetch-routing-monitors-templates",e],function(){return _h.getInstance().getRoutingMonitorsTemplates(e).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Dy(e,t){return Lp(["fetch-routing-monitors-template",e],function(){return _h.getInstance().getRoutingMonitorsTemplate(e,t).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e&&!!t&&"NONE"!==e,useErrorBoundary:!1})}function Ly(e){var t=e.accountCode;return Lp(["checkouts",t],function(){return _h.getInstance().getCheckouts({accountCode:t}).then(function(e){return e.data})},{cacheTime:0,enabled:Boolean(t)})}function qy(e){var t=e.accountCode;return Lp(["checkouts-template"],function(){return _h.getInstance().getCheckoutTemplate({accountCode:t}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:Boolean(t)})}var zy=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},My=function(e,t){var n=e.paymentMethodType,o=e.type;return Lp(zy({paymentMethodType:n,type:o}),function(){return _h.getInstance().getNameAndIcon({paymentMethodType:n,type:o}).then(function(e){return null==e?void 0:e.data})},t)},Ny=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},Uy=function(e,t){var n=e.paymentMethodType,o=e.type;return Lp(Ny({paymentMethodType:n,type:o}),function(){return _h.getInstance().getRequiredFields({paymentMethodType:n,type:o}).then(function(e){return null==e?void 0:e.data})},t)};function By(e){var t=e.accountCode;return Lp(["styling-sdk-dynamic",t],function(){return _h.getInstance().getStylingSdkDynamic({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Fy(e){var t=e.accountCode;return Lp(["styling-theme",t],function(){return _h.getInstance().getStylingTheme({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Wy(e){var t=e.accountCode;return Lp(["styling-settings",t],function(){return _h.getInstance().getStylingSettings({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Gy(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n;return Lp(["styling-settings-v2",t],function(){return _h.getInstance().getStylingSettingsV2({accountCode:t,environment:o}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Hy(){return qp(function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n,r=e.payload;return _h.getInstance().changeStylingSettings({accountCode:t,environment:o,payload:r}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function Vy(){return Lp(["fetch-profile"],function(){return _h.getInstance().getProfile().then(function(e){var t=null==e?void 0:e.data;return t&&localStorage.setItem("user",JSON.stringify(t)),t}).catch(function(e){throw e})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function $y(){var e=this;return Lp(["get-user-full"],function(){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,_h.getInstance().getUserFull()];case 1:return[2,e.sent().data]}})})},{keepPreviousData:!0,useErrorBoundary:!1})}function Ky(e,t){return Lp(["fetch-permissions",e,t],function(){var e,t,n,o=localStorage.getItem("account"),r=localStorage.getItem("user"),a=o&&JSON.parse(o),i=r&&JSON.parse(r);return((null==i?void 0:i.merlin)?null===(e=null==i?void 0:i.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==a?void 0:a.value)||void 0===t?void 0:t.role)||void 0===n?void 0:n.permission_ids.map(function(e){return{permission_name:e,description:e,resource_server_name:e,resource_server_identifier:e}}))||[]})}function Qy(e){return Lp(["email-verification",e],function(){return _h.getInstance().emailVerification(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function Jy(){return Lp({queryKey:["get-login-methods"],queryFn:function(){return _h.getInstance().getLoginMethods().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})}})}function Xy(){return Lp(["fetch-impersonation-users"],function(){return _h.getInstance().getImpersonationUsers().then(function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.result)||[]})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Yy(){return Lp(["fetch-impersonation-enabled"],function(){return _h.getInstance().getImpersonationEnabled().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Zy(e,o,r,a,i){var s=this;return void 0===r&&(r=1),void 0===a&&(a=10),Lp(["get-users-to-impersonate",e,o,r,a,i],function(){return t(s,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().getUsersToImpersonate(e,o,r,a,i).then(function(e){return null==e?void 0:e.data})]})})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function ev(e){var t;return Lp(["fetch-communications",e],function(){return _h.getInstance().getCommunications(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null===(t=e.account_codes)||void 0===t?void 0:t.length),useErrorBoundary:!1,cacheTime:3e3})}function tv(){return Lp(["fetch-communications-filters"],function(){return _h.getInstance().getCommunicationsFilters().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function nv(e,t){return Lp(["fetch-communication-details",e],function(){return _h.getInstance().getCommunicationDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,useErrorBoundary:!1,cacheTime:0})}function ov(e){return Lp(["notifications-customer",e],function(){return _h.getInstance().getNotificationsCustomer(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,keepPreviousData:!1})}function rv(e){return Lp(["validate-opsgenie-key",e],function(){return _h.getInstance().getValidateOpsgenieKey(e).then(function(e){return null==e?void 0:e.data}).catch(function(){return{error:!0}})},{enabled:!!e,cacheTime:0})}function av(){return Lp(["notifications-merged"],function(){return _h.getInstance().getMergedNotifications().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{keepPreviousData:!1,cacheTime:0})}function iv(){return qp(function(e){return _h.getInstance().getNotificationsNumber(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function sv(){var e=this;return qp(function(o){return t(e,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().pathNotification(o)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}})})})}var cv={key:"metadata_fields",name:"metadata_fields"};function uv(){return Lp(["reports"],function(){return _h.getInstance().reportsList().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function lv(e){return void 0===e&&(e=!0),Lp(["reports-multi-env"],function(){return _h.getInstance().reportsListMultiEnv().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e})}function dv(e,t,n){return void 0===t&&(t=!1),Lp(["reports/".concat(e)],function(){return _h.getInstance().downloadReports(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,onSuccess:n,useErrorBoundary:!1})}function hv(e){return Lp(["GET/reports/templates"],function(){return _h.getInstance().getReportTemplates().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,useErrorBoundary:!1})}function pv(o,r,a){var i=this;return Lp(["GET/reports/columns/".concat(r,"/").concat(a)],function(){return t(i,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().getReportColumns(r,a).then(function(t){return r===Il.ALL&&a===Tl.PAYMENTS?e(e([],null==t?void 0:t.data,!0),[cv],!1):null==t?void 0:t.data}).catch(function(e){return e})]})})},{enabled:o,useErrorBoundary:!1})}function fv(e,o){var r=this,a=vg();return Lp(["getRefundPdf",e,a,o],function(){return t(r,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().getRefundPdf(e,a,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})]})})},{enabled:!!e&&!!a,useErrorBoundary:!1})}function mv(){var e=vg();return Lp(["teams-filters-members"],function(){return _h.getInstance().teamsFiltersMembers({organizationCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0})}function gv(e){var t=e.organizationCode,n=e.accountCodes,o=e.email,r=e.page,a=e.pageSize,i=vg();return Lp(["fetch-post-members-v2",t,n,o,r,a],function(){return _h.getInstance().postMembersPaginatedV2({organizationCode:i,accountCodes:n,email:o,page:r,pageSize:a}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function yv(){return Lp(["fetch-roles"],function(){return _h.getInstance().getRoles().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function vv(){return Lp(["fetch-rolespermissions"],function(){return _h.getInstance().getRolesPermissions().then(function(e){return null==e?void 0:e.data})})}function bv(){return Lp(["fetch-permissions-catalog"],function(){return _h.getInstance().getPermissionsCatalog().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function kv(e){return Lp(["data-report",e],function(){return _h.getInstance().getSmartRoutingDataReport(e).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,useErrorBoundary:!1})}function wv(e,t,n){return void 0===n&&(n=!0),Lp(["get-insights-conversion-rate-metrics-v2",e,t],function(){return _h.getInstance().getInsightsMetricsConversionRateV2(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:n&&(!!(null==e?void 0:e.currency_code)&&"Empty"!==(null==e?void 0:e.currency_code)&&"string"==typeof(null==e?void 0:e.currency_code)||Array.isArray(null==e?void 0:e.currency_code)&&0===(null==e?void 0:e.currency_code.length)),staleTime:3e5,cacheTime:3e5,useErrorBoundary:!1,retry:1})}function _v(e,t){return Lp(["get-insights-conversion-rate-view-more-metrics",t,e],function(){return _h.getInstance().getInsightsMetricsConversionRateViewMore(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled)&&!!t,cacheTime:200,useErrorBoundary:!1})}function xv(e){return Lp(["get-insights-conversion-rate-fallback-metrics",e],function(){return _h.getInstance().getInsightFallbackMetrics(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled),cacheTime:200,useErrorBoundary:!1})}function Ev(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Lp(["get-insights-volume-metrics",t,e],function(){return _h.getInstance().getInsightsMetricsVolume(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Sv(e,t,n,o){return void 0===o&&(o=!0),delete t.account_code,Lp(["get-insights-volume-metrics-v2",t,e,n],function(){return _h.getInstance().getInsightsMetricsVolumeV2(e,n,t).then(function(e){return null==e?void 0:e.data})},{enabled:o,cacheTime:200,useErrorBoundary:!1})}function Cv(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Lp(["get-insights-total-payment-fraud-metrics",t,e],function(){return _h.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Rv(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Lp(["get-insights-customer-payment-fraud-metrics",t,e],function(){return _h.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Tv(e){return Lp(["get-insights-overview",e],function(){return _h.getInstance().getInsightOverview(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled)&&void 0!==e.account_code,cacheTime:200,useErrorBoundary:!1})}function Iv(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Lp(["get-insights-overview-v3",e,t],function(){return _h.getInstance().getInsightOverviewV3(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:0,useErrorBoundary:!1})}function Av(e){return Lp(["get-insights-home-metrics",e],function(){return _h.getInstance().getInsighstHomeMetrics(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.currency_code)&&!!(null==e?void 0:e.account_codes)&&!!(null==e?void 0:e.organization_code)&&(null==e?void 0:e.isLiveMode)&&!!(null==e?void 0:e.timezone),cacheTime:200,useErrorBoundary:!1})}function Ov(e){return Lp(["get-insights-reports",e],function(){return _h.getInstance().getInsightsReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!(null==e?void 0:e.type),cacheTime:0,useErrorBoundary:!1})}function jv(e){return Lp(["get-insights-reports-again",e],function(){return _h.getInstance().getInsightsReportAgain(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!(null==e?void 0:e.code),cacheTime:0,useErrorBoundary:!1})}function Pv(e,o,r){var a=this;return void 0===r&&(r={enabled:!0}),Lp({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,o],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}})})},enabled:r.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Dv(e,o,r){var a=this;return void 0===r&&(r={enabled:!0}),Lp({queryKey:["post-insights-fraud-screening-conversion-rate",e,o],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().getInsightsFraudScreeningConversionRate(e,o)];case 1:return[2,t.sent()]}})})},enabled:r.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Lv(e,o,r){var a=this;return void 0===r&&(r={enabled:!0}),Lp({queryKey:["post-insights-3ds-volume-and-count-tx",o,e],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().getInsights3dsVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}})})},enabled:r.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function qv(e,o,r){var a=this;return void 0===r&&(r={enabled:!0}),Lp({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,o],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().getInsights3dsConversionRateAndEvolution(e,o)];case 1:return[2,t.sent()]}})})},enabled:r.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function zv(e,o,r){var a=this;return void 0===r&&(r={enabled:!0}),Lp({queryKey:["post-insights-3ds-decline-reasons",e,o],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().getInsights3dsDeclineReasons(e,o)];case 1:return[2,t.sent()]}})})},enabled:r.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Mv(e,o,r){var a=this;return void 0===r&&(r={enabled:!0}),Lp({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,o],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().getInsights3dsFrictionlessVsChallenge(e,o)];case 1:return[2,t.sent()]}})})},enabled:r.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Nv(e,o,r){var a=this;return void 0===r&&(r={enabled:!0}),Lp({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,o],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().getInsightsChargebacksVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}})})},enabled:r.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Uv(e,o,r){var a=this;return void 0===r&&(r={enabled:!0}),Lp({queryKey:["post-insights-chargebacks-total-rate-and-evolution",e,o],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().getInsightsChargebacksTotalRateAndEvolution(e,o)];case 1:return[2,t.sent()]}})})},enabled:r.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Bv(e,o,r){var a=this;return void 0===r&&(r={enabled:!0}),Lp({queryKey:["post-insights-chargebacks-win-rate",e,o],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().getInsightsChargebacksWinRate(e,o)];case 1:return[2,t.sent()]}})})},enabled:r.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Fv(e,o,r){var a=this;return void 0===r&&(r={enabled:!0}),Lp({queryKey:["post-insights-chargebacks-disputed",e,o],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().getInsightsChargebacksDisputed(e,o)];case 1:return[2,t.sent()]}})})},enabled:r.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Wv(e,o,r){var a=this;return void 0===r&&(r={enabled:!0}),Lp({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,o],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,o)];case 1:return[2,t.sent()]}})})},enabled:r.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Gv(e,o,r){var a=this;return void 0===r&&(r={enabled:!0}),Lp({queryKey:["post-insights-chargebacks-reasons-distribution",e,o],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().getInsightsChargebacksReasonsDistribution(e,o)];case 1:return[2,t.sent()]}})})},enabled:r.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Hv(e,o,r){var a=this;return void 0===r&&(r={enabled:!0}),Lp({queryKey:["post-insights-chargebacks-status-distribution",e,o],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().getInsightsChargebacksStatusDistribution(e,o)];case 1:return[2,t.sent()]}})})},enabled:r.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Vv(e,o,r){var a=this;return void 0===r&&(r={enabled:!0}),Lp({queryKey:["post-insights-chargebacks-by-card-brand",e,o],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,_h.getInstance().getInsightsChargebacksByCardBrand(e,o)];case 1:return[2,t.sent()]}})})},enabled:r.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function $v(e,t){return Lp(["fetch-reconciliation-transaction",e],function(){return _h.getInstance().getReconciliationTransactions(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})}function Kv(e,t){return Lp(["fetch-reconciliation-settlements",e],function(){return _h.getInstance().getReconciliationSettlements(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})}function Qv(e,t){return Lp(["fetch-reconciliation-metrics",e],function(){return _h.getInstance().getReconciliationMetrics(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t,cacheTime:500})}function Jv(){return Lp(["GET-reconciliation-filters"],function(){return _h.getInstance().getReconciliationFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Xv(e){return Lp(["GET/v1/reconciliation/table/".concat(e,"/columns")],function(){return _h.getInstance().getAllTableColumns(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Yv(){return Lp(["GET/v1/reconciliation/active"],function(){return _h.getInstance().getReconciliationActive().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Zv(e,t,n){return Lp(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],function(){return _h.getInstance().getReconciliationsReportColumns(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{enabled:e,useErrorBoundary:!1})}function eb(e){return Lp(["GET/reconciliation/reports/templates"],function(){return _h.getInstance().getReconciliationReportTemplates().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{enabled:e,useErrorBoundary:!1})}function tb(e){var t=e.body,n=e.params,o=e.enabled;return Lp(["GET/reconciliation/alerts/list",t,n],function(){return _h.getInstance().getReconciliationAlerts(t,n).then(function(e){return e.data})},{enabled:o,useErrorBoundary:!1})}function nb(e){var t=e.body,n=e.params,o=e.enabled;return Lp(["GET/reconciliation/agenda/list",t,n],function(){return _h.getInstance().getReconciliationAgenda(t,n).then(function(e){return e.data})},{enabled:o,useErrorBoundary:!1})}function ob(e){var t=e.body,n=e.params,o=e.enabled;return Lp(["GET/reconciliation/agenda/insights",t,n],function(){return _h.getInstance().getReconciliationAgendaInsightByKey(t,n).then(function(e){return e.data})},{enabled:o,useErrorBoundary:!1})}function rb(e){var t=e.body,n=e.params,o=e.enabled;return Lp(["GET/reconciliation/sales/list",t,n],function(){return _h.getInstance().getReconciliationSales(t,n).then(function(e){return e.data})},{enabled:o,useErrorBoundary:!1})}function ab(e){var t=e.body,n=e.params,o=e.enabled;return Lp(["GET/reconciliation/advancements/list",t,n],function(){return _h.getInstance().getReconciliationAdvancements(t,n).then(function(e){return e.data})},{enabled:o,useErrorBoundary:!1})}function ib(e){var t=e.body,n=e.params,o=e.enabled;return Lp(["GET/reconciliation/fees/list",t,n],function(){return _h.getInstance().getReconciliationFees(t,n).then(function(e){return e.data})},{enabled:o,useErrorBoundary:!1})}function sb(e){var o=this,r=Object.values(e).filter(Boolean);return Lp(["feature-flags",r],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().getFeatureFlagId(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:r.length>1,useErrorBoundary:!1})}function cb(e){var o=this,r=Lp({queryKey:["all-feature-flags",Object.values(e).filter(Boolean)],queryFn:function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().getFeatureFlagIdAll({accountCode:e.account_code}).then(function(e){return null==e?void 0:e.data})]})})},enabled:!!e.account_code&&!!e.organization_code&&!!e.email,cacheTime:9e5,useErrorBoundary:!1}),a=Ip();return l(function(){a.setQueryData(["cached-feature-flags"],r)},[r,a]),r}function ub(e){var t,n,o=Ip(),a=o.getQueryState(["cached-feature-flags"]),i=Boolean(!(null===(t=null==a?void 0:a.data)||void 0===t?void 0:t.status)||"loading"===(null===(n=null==a?void 0:a.data)||void 0===n?void 0:n.status)),s=Lp({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=null==t?void 0:t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=o.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}});return r(r({},s),{isLoading:i})}function lb(e){return Lp(["events",e],function(){return _h.getInstance().getAuditEvents(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.account_code&&!!e.organizationCode,cacheTime:0,keepPreviousData:!0,useErrorBoundary:!1})}function db(e){return Lp(["audit-monitor-event-detail",e],function(){return _h.getInstance().getAuditMonitorDetail(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:null!==e,cacheTime:0,useErrorBoundary:!1})}function hb(e){return Lp(["api-logs",e],function(){return _h.getInstance().postApiLogs({payload:e}).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.organizationCode,cacheTime:0,useErrorBoundary:!1})}function pb(e){var t=e.params;return Lp(["webhook-logs",t],function(){return _h.getInstance().postWebhookLogs({payload:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t.organizationCode,cacheTime:0,useErrorBoundary:!1})}function fb(e){return Lp(["api-logs-detail",e],function(){return _h.getInstance().getApiLogsDetailByPaymentCode(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function mb(e,t){return Lp(["fetch-payment-links",e,t],function(){return _h.getInstance().getPaymentLinks(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,cacheTime:0})}function gb(e){return Lp(["payment-link"],function(){return _h.getInstance().getPaymentLinksByCode(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function yb(e){return void 0===e&&(e=!0),Lp(["countries",e],function(){return _h.getInstance().useGetCountriesConfig().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,keepPreviousData:!0})}function vb(e){var t=localStorage.getItem("lang")||"en",n=e||t;return Lp(["countries-v2",n],function(){return _h.getInstance().useGetCountriesConfigV2(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!0,keepPreviousData:!0})}function bb(e){return Lp(["timezone"],function(){return _h.getInstance().getTimezone(e).then(function(e){return ah(e)?uh:null==e?void 0:e.data}).catch(function(){return uh})},{enabled:!0,keepPreviousData:!0})}function kb(e){return qp(function(e){var t=e.payload;return _h.getInstance().firebaseUserSubscribe(t)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function wb(e,t){return Lp(["get-cofig-allow-list",e],function(){return _h.getInstance().getConfigAllowlist(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0,enabled:!!e&&!!t})}function _b(e){return Lp(["get-black-list",e],function(){return _h.getInstance().getBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e})}function xb(e,t,n,o){var r;return Lp(["post-black-list",e],function(){return _h.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=o?o:25).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:(null===(r=e[0])||void 0===r?void 0:r.length)>0&&null!==t,useErrorBoundary:!1})}function Eb(e,t,n){return Lp(["get-block-list-summary",e,t,n],function(){var o=_h.getInstance();return n?o.getBlackListSummary(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e}):Promise.resolve({})},{enabled:!!e&&!!n})}function Sb(e,t,n,o,r,a){return Lp(["black-list-detail",e,t,o,r,a],function(){return _h.getInstance().getBlacklistDetail(e,t,n,o,r).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&a,cacheTime:0})}function Cb(e,t,n){return Lp(["allow-list-detail",e],function(){return _h.getInstance().getAllowlistDetail(e,t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e&&!!n})}function Rb(e){return Lp(["query-post-get-allowlist-multi-account",JSON.stringify(e)],function(){return _h.getInstance().postGetAllowlist({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function Tb(e,o){var r=this;return void 0===e&&(e=26),void 0===o&&(o=0),Lp(["batch-refunds",e,o],function(){return t(r,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().getBatchRefunds(e,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{cacheTime:0})}function Ib(e){return Lp(["velocity-rules",e],function(){var t=_h.getInstance();return e?t.getVelocityRules(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e}):Promise.resolve({})},{enabled:!!e,keepPreviousData:!0})}function Ab(){return Lp(["config-rules"],function(){return _h.getInstance().getAllConfigRules().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0})}function Ob(e,t){var n=e.organizationCode;return Lp(["mfa-excluded-users",n],function(){return _h.getInstance().getMFAExcludedUsers({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function jb(e,t){var n=e.organizationCode;return Lp(["mfa-config",n],function(){return _h.getInstance().getMFAConfig({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function Pb(e,t){return Lp(["mfa-enforcement-status",e.accountCode],function(){return _h.getInstance().getMFAEnforcementStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function Db(e){return Lp(["fetch-organization-saml-config",e],function(){return _h.getInstance().getSamlConfig().then(function(e){return e.data})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Lb(e){return Lp(["chartgpt-chart-execute",e],function(){return _h.getInstance().executeChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e})}function qb(){return Lp(["chartgpt-user-charts"],function(){return _h.getInstance().getChartsByUser().then(function(e){return null==e?void 0:e.data})},{cacheTime:0})}function zb(){var e=this;return Lp(["chartgpt-user-charts-with-results"],function(){return t(e,void 0,void 0,function(){var e,o,a,i=this;return n(this,function(s){switch(s.label){case 0:return[4,(e=_h.getInstance()).getChartsByUser()];case 1:return o=s.sent(),a=(null==o?void 0:o.data)||[],[4,Promise.all(a.map(function(o){return t(i,void 0,void 0,function(){var t,a,i,s,c,u,l,d;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.executeChartGPTChart(o.code)];case 1:return t=n.sent(),[2,r(r({},o),{user_prompt:null!==(s=null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.user_prompt)&&void 0!==s?s:o.user_prompt,unit_to_display:null!==(u=null===(c=null==t?void 0:t.data)||void 0===c?void 0:c.unit_to_display)&&void 0!==u?u:o.unit_to_display,results:null!==(d=null===(l=null==t?void 0:t.data)||void 0===l?void 0:l.results)&&void 0!==d?d:[]})];case 2:return a=n.sent(),console.error("Failed to execute chart ".concat(o.chart_id,":"),a),[2,r(r({},o),{results:[]})];case 3:return[2]}})})}))];case 2:return[2,s.sent()]}})})})}function Mb(e,o,r){var a=this;return void 0===r&&(r=!0),Lp(["chartgpt-patch-and-execute",e,o],function(){return t(a,void 0,void 0,function(){var t,r,a,i,s;return n(this,function(n){switch(n.label){case 0:return[4,(t=_h.getInstance()).patchChartGPTChart(e,o)];case 1:return r=n.sent(),a=null==r?void 0:r.data,[4,t.executeChartGPTChart(e)];case 2:return i=n.sent(),s=null==i?void 0:i.data,[2,{chart:a,execution:s}]}})})},{enabled:r&&!!e,retry:!1})}function Nb(){return Lp(["languages"],function(){return _h.getInstance().getLanguages().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:300})}function Ub(){var e=localStorage.getItem("lang")||"en";return Lp(["translations",e],function(){return _h.getInstance().getTranslations(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:3e4})}function Bb(e,o){var r=this;return Lp(["GET/template-reporting/templates",e],function(){return t(r,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().getReportTemplatesList(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o,useErrorBoundary:!1,cacheTime:0})}function Fb(e,o){var r=this;return Lp(["GET/template-reporting/template-by-id",e],function(){return t(r,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().getReportTemplateById(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o&&!!e,useErrorBoundary:!1,cacheTime:0})}function Wb(e){var o=this;return Lp(["GET/template-reporting/schedules"],function(){return t(o,void 0,void 0,function(){return n(this,function(e){return[2,_h.getInstance().getReportSchedulesList().then(function(e){return null==e?void 0:e.data})]})})},{enabled:e,useErrorBoundary:!1,cacheTime:0})}function Gb(e,o){var r=this;return Lp(["GET/template-reporting/schedule-by-id",e],function(){return t(r,void 0,void 0,function(){return n(this,function(t){return[2,_h.getInstance().getReportScheduleById(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o&&!!e,useErrorBoundary:!1,cacheTime:0})}const Hb=function(){return null};var Vb,$b={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};function Kb(e){var o=this,a=e.children,i=d(function(){return"testing"},[""]),s=c(!1),u=s[0],m=s[1],g=h(function(e){return t(o,void 0,void 0,function(){var t,o,a,s,c;return n(this,function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),o=t&&JSON.parse(t),a=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",s=localStorage.getItem("x-organization-code"),c=s?JSON.parse(s).value:"",[4,_h.refreshInstance({headers:r(r({},o),{"X-Environment":a||i,"x-organization-code":c,"x-account-code":e.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return n.sent(),[2]}})})},[i]);l(function(){return addEventListener("ACCOUNT_CHANGED",g),function(){window.removeEventListener("ACCOUNT_CHANGED",g)}},[g]);var y=h(function(e){return t(o,void 0,void 0,function(){var t,o,a,s,c,u,l;return n(this,function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),(o=t&&JSON.parse(t))?(a=localStorage.getItem("x-organization-code"),s=localStorage.getItem("account"),c=s?null===(l=JSON.parse(s).value)||void 0===l?void 0:l.code:"",u=a?JSON.parse(a).value:"",[4,_h.refreshInstance({headers:r(r({},o),{"X-Environment":e||i,"x-organization-code":u,"x-account-code":c,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:n.sent(),gf.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),m(!0),n.label=2;case 2:return[2]}})})},[i,m]);return l(function(){var e=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live";window.addEventListener("storage",function(t){if("token"===t.key||"isTesting"===t.key){var n="OFF"===t.newValue?"live":"testing";"isTesting"===t.key?y(n):"token"===t.key&&y(e)}}),y(e)},[m,y]),u?f(Ap,r({client:gf},{children:[a,p(Hb,{initialIsOpen:!1})]})):p("div",{style:$b})}!function(e){e.ECONNABORTED="ECONNABORTED",e.ETIMEDOUT="ETIMEDOUT",e.ERR_BAD_REQUEST="ERR_BAD_REQUEST"}(Vb||(Vb={}));var Qb=function(){var e=u(null),t=u(null),n=u(null),o=c(!1),r=o[0],a=o[1],i=c(null),s=i[0],d=i[1],p=c(null),f=p[0],m=p[1],g=h(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null)},[]),y=h(function(){var o;if((null===(o=e.current)||void 0===o?void 0:o.readyState)!==WebSocket.OPEN){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),m(null);try{var r=new WebSocket("".concat(wh["WS_URL_".concat(wh.ENVIRONMENT)],"/data-assistant/charts/ws"));e.current=r,r.onopen=function(){a(!0);var e=localStorage.getItem("token");e&&r.send(JSON.stringify({type:"auth",token:e})),t.current=setInterval(function(){r.readyState===WebSocket.OPEN?r.send(JSON.stringify({type:"ping"})):(g(),a(!1))},3e4)},r.onmessage=function(e){try{var t=JSON.parse(e.data);d(t)}catch(e){m("Failed to parse server response")}},r.onerror=function(e){m("Connection error occurred"),a(!1)},r.onclose=function(e){a(!1),g(),e.wasClean||1e3===e.code||(n.current=setTimeout(function(){y()},5e3))}}catch(e){m("Failed to establish connection")}}},[]),v=h(function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"subscribe",chart_id:t}))},[]),b=h(function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"unsubscribe",chart_id:t}))},[]),k=h(function(){d(null)},[]),w=h(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),e.current&&(a(!1),e.current.close(1e3,"Manual disconnect"),e.current=null)},[]);return l(function(){return y(),function(){g(),w()}},[]),{subscribe:v,unsubscribe:b,disconnect:w,connect:y,clearChartData:k,isConnected:r,chartData:s,connectionError:f}},Jb=["LOCAL","DEV","STG"].includes("");"undefined"!=typeof window&&Jb&&function(){t(this,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:if(!ka())return console.info('MSW is disabled. Run "window.enableMSW()" to enable it.'),[2];console.info('MSW is enabled. Run "window.disableMSW()" to disable it.'),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,ya.start({serviceWorker:{url:"/mockServiceWorker.js"},onUnhandledRequest:"bypass"})];case 2:return t.sent(),[3,4];case 3:return e=t.sent(),console.error("Error starting MSW:",e),[3,4];case 4:return[2]}})})}();export{Dl as AI,kh as Api,Vb as ApiErrorCodes,Kb as ApiProvider,_h as ApiSingleton,Rl as Cms,Cl as Country,Ol as DataReport,Sl as Organization,El as PaymentFiltersSection,Pl as ReconciliationAgendaInsight,jl as ReconciliationReportType,Tl as ReportType,xl as SendPaymentNotification,Al as SmartRouting,Il as TemplateType,zy as getQueryKeyGetNameAndIcon,Ny as getQueryKeyRequiredFields,mf as queryCache,gf as queryClient,Oy as use3DSExemptions,rg as useAICreateWorkflow,cb as useAllFeatureFlags,Cb as useAllowListDetail,Sb as useBlackListDetail,ub as useCachedFeatureFlag,kf as useCancelReport,nf as useChangePasswordV2,ym as useChangePaymentsWebhook,hm as useChangeStatusBlackList,pm as useChangeStatusItemBlackList,Hy as useChangeStylingSettings,pg as useChangeTemplateStatus,ff as useChargebacksUpload,Qb as useChartAssistantSocket,Lb as useChartExecute,dg as useCloneTemplate,nv as useCommunicationDetails,ev as useCommunications,tv as useCommunicationsFilters,em as useConfirmedOtpMfa,bf as useCountRowsForReport,ug as useCreateAndExecuteChart,ig as useCreateChart,Mf as useCreateMonitorTemplate,zf as useCreateMonitorThreshold,pf as useCreateOperationTransaction,Hf as useCreatePaymentLinks,Xm as useCreateReconciliationAlert,Qm as useCreateReconciliationReportTemplate,yf as useCreateReconciliationsReportV2,wf as useCreateReportTemplate,vf as useCreateReportV2,Ff as useCreateRoles,tg as useCreateSamlConfig,mg as useCreateSchedule,Om as useCreateScheduledReport,lg as useCreateTemplate,sf as useCreateUserAuth0,xf as useCreateWorkflow,gg as useDeactivateSchedule,Hp as useDeleteAccountsUserMassive,km as useDeleteAllowlistItem,mm as useDeleteBlackListType,vm as useDeleteBlockListItem,sg as useDeleteChart,Fm as useDeleteCustomizedApiKeys,Vf as useDeletePaymentLink,Ym as useDeleteReconciliationAlert,Gf as useDeleteRoles,og as useDeleteSamlConfig,yg as useDeleteSchedule,Pm as useDeleteScheduledReport,fg as useDeleteTemplate,Uf as useDeleteUserTeamV2,Cf as useDeleteVersion,Np as useDeleteWebhookV2,Rf as useDuplicateVersion,$f as useEditPaymentLinks,Wf as useEditRoles,Qy as useEmailVerification,Im as useExcludeUsers,Km as useExportApiLogs,sb as useFeatureFlags,kb as useFirebaseUserSubscribe,ag as useGenerateFeedback,iy as useGetAccounts,cy as useGetAccountsByUser,uy as useGetAccountsForImpersonation,sy as useGetAccountsV2,Ab as useGetAllConfigRules,Qg as useGetAllOrganizations,ab as useGetAllReconciliationsAdvancements,nb as useGetAllReconciliationsAgenda,tb as useGetAllReconciliationsAlerts,ib as useGetAllReconciliationsFees,rb as useGetAllReconciliationsSales,Xv as useGetAllTableColumns,Wg as useGetAllowedIps,fb as useGetApiLogsDetailByPaymentCode,lb as useGetAuditEvents,my as useGetAuditLogsFilters,db as useGetAuditMonitorEventDetail,Sm as useGetBatchRefundProcessedFileDownload,Cm as useGetBatchRefundUserFileDownload,Tb as useGetBatchRefunds,_b as useGetBlackList,Eb as useGetBlockListSummary,Cg as useGetCardBrands,qb as useGetChartsByUser,zb as useGetChartsByUserWithResults,qy as useGetCheckoutTemplate,Ly as useGetCheckouts,Dm as useGetConditionalConfigRules,wb as useGetConfigAllowlist,ty as useGetConnections,Zg as useGetConnectionsByPaymentMethod,yb as useGetCountriesConfigPaymentLink,vb as useGetCountriesConfigPaymentLinkV2,Bg as useGetCredentials,Hm as useGetCredentialsMFA,Hg as useGetCustomizedApiKeys,Gg as useGetCustomizedApiKeysAccounts,Fg as useGetCustomizedApiKeysMembers,Vg as useGetCustomizedApiKeysProducts,Um as useGetCustomizedApiKeysToken,gy as useGetDashboardStaticContents,ny as useGetDialogs,dv as useGetDownloadReport,Zf as useGetEmailOtp,ey as useGetHashPylon,Yy as useGetImpersonationEnabled,Xy as useGetImpersonationUsers,Ov as useGetInsightsReport,jv as useGetInsightsReportAgain,Yg as useGetIntegrationByAccountV2,Xg as useGetIntegrationParams,Nb as useGetLanguages,yy as useGetLocales,Jy as useGetLoginMethods,jb as useGetMFAConfig,Ob as useGetMFAExcludedUsers,Pb as useGetMFAStatus,ly as useGetMenu,av as useGetMergedNotifications,My as useGetNameAndIcon,ov as useGetNotificationsCustomer,iv as useGetNotificationsNumberMutation,Kg as useGetOrganization,Rg as useGetPaymentFilters,gb as useGetPaymentLinkByCode,mb as useGetPaymentLinks,Sg as useGetPaymentMethodsAndProviders,Tg as useGetPaymentMetricsFilters,dy as useGetPaymentStatusesStyles,Ig as useGetPaymentTransactionsDetails,wg as useGetPaymentV2,Eg as useGetPaymentsMethodsByCountry,Pg as useGetPayoutDetail,Lg as useGetPayoutHistoryDetail,Dg as useGetPayoutTransactionDetail,Ky as useGetPermissions,bv as useGetPermissionsCatalog,Vy as useGetProfile,qg as useGetProofOfCancel,zg as useGetProofOfPayment,Jg as useGetProviderParams,Yv as useGetReconciliationActive,ob as useGetReconciliationAgendaInsightsByKey,Jv as useGetReconciliationFilters,Qv as useGetReconciliationMetrics,py as useGetReconciliationTransactionStatusesStyles,$v as useGetReconciliationTransactions,Zv as useGetReconciliationsReportColumns,eb as useGetReconciliationsReportTemplates,fv as useGetRefundPdf,pv as useGetReportColumns,hv as useGetReportTemplates,uv as useGetReportsList,lv as useGetReportsListMultiEnv,Uy as useGetRequiredFields,yv as useGetRoles,vv as useGetRolesPermissions,Dy as useGetRoutingMonitorsTemplate,Py as useGetRoutingMonitorsTemplates,Lm as useGetRule,Db as useGetSamlConfig,Gb as useGetScheduleById,Am as useGetScheduledReportsList,Wb as useGetSchedulesList,Kv as useGetSettlements,_y as useGetSmartRoutingConditionPaymentMethod,wy as useGetSmartRoutingConditionTypes,xy as useGetSmartRoutingConditionTypesValues,kv as useGetSmartRoutingDataReport,Cy as useGetSmartRoutingDeclineGroups,by as useGetSmartRoutingMethods,Sy as useGetSmartRoutingNextRoute,Ry as useGetSmartRoutingPaymentRoute,Iy as useGetSmartRoutingSearchConditionValues,Ty as useGetSmartRoutingSimulateConditionTypeValues,ky as useGetSmartRoutingWorkflow,Ey as useGetSmartRoutingWorkflowVersion,By as useGetStylingSdkDynamic,Wy as useGetStylingSettings,Gy as useGetStylingSettingsV2,Fy as useGetStylingTheme,mv as useGetTeamsFiltersMembers,Fb as useGetTemplateById,Bb as useGetTemplatesList,fy as useGetTimeZoneCatalog,bb as useGetTimezonePaymentLink,Yf as useGetTokenValidation,_g as useGetTransactionDetailsV2,Ag as useGetTransactionHistoryByPaymentCode,xg as useGetTransactionRawResponse,hy as useGetTransactionStatusesStyles,Ub as useGetTranslations,$y as useGetUserFull,Zy as useGetUsersToImpersonate,rv as useGetValidateOpsgenieKey,oy as useGetWebhookParamsV2,ay as useGetWebhooksV2Detail,ry as useGetWebhooksV3,qv as useInsights3dsConversionRateAndEvolution,zv as useInsights3dsDeclineReasons,Mv as useInsights3dsFrictionlessVsChallenge,Lv as useInsights3dsVolumeAndCountTx,Vv as useInsightsChargebacksByCardBrand,Wv as useInsightsChargebacksByProviderAndCardBrand,Fv as useInsightsChargebacksDisputed,Gv as useInsightsChargebacksReasonsDistribution,Hv as useInsightsChargebacksStatusDistribution,Uv as useInsightsChargebacksTotalRateAndEvolution,Nv as useInsightsChargebacksVolumeAndCountTx,Bv as useInsightsChargebacksWinRate,wv as useInsightsConversionRateMetricsV2,Rv as useInsightsCustomerPaymentsAndFraudMetrics,xv as useInsightsFallbackMetrics,Dv as useInsightsFraudScreeningConversionRate,Pv as useInsightsFraudScreeningVolumeAndCountTx,Av as useInsightsHomeMetrics,Tv as useInsightsOverviewMetrics,Iv as useInsightsOverviewMetricsV3,Cv as useInsightsTotalPaymentsAndFraudMetrics,Ev as useInsightsVolumeMetrics,Sv as useInsightsVolumeMetricsV2,rf as useInviteUsersMultiaccountMassive,vy as useIsTesting,uf as useLoginMethods,jy as useNetworkTokensOnboarding,Jp as useNewPostConnectionValidate,Fp as usePatchAccountV2,cm as usePatchAddAllowlistItems,$g as usePatchAllowedIps,um as usePatchAllowlist,Mb as usePatchAndExecuteChart,Wm as usePatchApiKeysEditNote,im as usePatchChangeStatusAllowlist,sm as usePatchChangeStatusAllowlistItem,cg as usePatchChartName,Xp as usePatchConnection,Nm as usePathCreateCustomizedApiKeys,sv as usePathNotifications,Ug as usePayoutsFilters,Ng as usePayoutsList,Bp as usePostAccount,Rb as usePostAllowlistMultiAccount,Gm as usePostApiKeysRoll,hb as usePostApiLogs,Vm as usePostAuditMonitors,Em as usePostBatchRefundByFile,gm as usePostBlackListBatch,fm as usePostBlackListItems,lm as usePostBlackListMultiAccount,xb as usePostBlockList,cf as usePostCall,$p as usePostChangeStatusConnection,Qp as usePostConnectionMultiAccount,am as usePostCreateAllowlistMultiAccount,Mm as usePostCreateCustomizedApiKeys,eg as usePostCreateInsightsReport,qm as usePostCreateRuleMultiAccount,Bm as usePostCredentialsValidatePassword,Yp as usePostDefaultRoutes,zm as usePostEditRule,jg as usePostFraudTransactions,om as usePostGetAllowlistItems,rm as usePostGetAllowlistMultiAccount,gv as usePostMembersPaginatedV2,kg as usePostPaymentsEvaluated,bg as usePostPaymentsLazy,Nf as usePostSlackMessageChannel,Og as usePostTransactions,Kf as usePostUserSettings,Xf as usePostUserSettingsPinned,Jf as usePostUserSettingsTables,Qf as usePostUserThemeSettings,Vp as usePostValideStatusConnection,Ib as usePostVelocityRules,pb as usePostWebhookLogs,Mp as usePostWebhookMultiAccount,Ay as useProviderConversionRatesData,Ef as usePublishVersion,Wp as usePutAccountPrincipal,Gp as usePutAccountsUserMassive,dm as usePutBlackListType,Kp as usePutCosts,$m as useResendWebhooks,Sf as useSaveVersion,Mg as useSendPaymentNotification,Bf as useSetCustodian,Af as useSmartRoutingCreateDeclinedGroup,jf as useSmartRoutingEditWorkflowName,qf as useSmartRoutingMultiAccountDeclinedGroupCreate,Lf as useSmartRoutingRemoveDeclinedGroup,Pf as useSmartRoutingSimulateTransaction,Of as useSmartRoutingToggleFavorite,If as useSmartRoutingUpdateDeclinedGroup,Df as useSmartRoutingUpdateMonitorRedistribution,Tf as useToggleMethod,af as useUnInviteUsersV2,tm as useUnrollUserV2,df as useUpdateCheckoutTemplate,lf as useUpdateIsActiveCheckout,Tm as useUpdateMFAConfig,ef as useUpdateOrganizationStatus,of as useUpdateProfile,Zm as useUpdateReconciliationAlert,Jm as useUpdateReconciliationReportTemplate,_f as useUpdateReportTemplate,ng as useUpdateSamlConfig,jm as useUpdateScheduledReport,hf as useUpdateStylingTheme,hg as useUpdateTemplateSelection,Up as useUpdateWebhookV2,_m as useUploadBatchRefundsFileV2,xm as useUploadBatchRefundsV2,Rm as useUploadFileS3ClientBatchRefunds,wm as useValiateAllowlistItems,bm as useValidateBlockListItems,Zp as useValidateCredentials,tf as useValidateOrgName,nm as useValidatePasswordStatus,_v as useViewMoreMetrics};